@momentum-design/components 0.122.12 → 0.122.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  "use strict";(()=>{var py=Object.create;var Ud=Object.defineProperty;var nm=Object.getOwnPropertyDescriptor;var my=Object.getOwnPropertyNames;var uy=Object.getPrototypeOf,fy=Object.prototype.hasOwnProperty;var vy=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var gy=(n,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of my(o))!fy.call(n,s)&&s!==t&&Ud(n,s,{get:()=>o[s],enumerable:!(r=nm(o,s))||r.enumerable});return n};var by=(n,o,t)=>(t=n!=null?py(uy(n)):{},gy(o||!n||!n.__esModule?Ud(t,"default",{value:n,enumerable:!0}):t,n));var p=(n,o,t,r)=>{for(var s=r>1?void 0:r?nm(o,t):o,d=n.length-1,m;d>=0;d--)(m=n[d])&&(s=(r?m(o,t,s):m(s))||s);return r&&s&&Ud(o,t,s),s};var lu=vy((_a,ll)=>{typeof navigator<"u"&&function(n,o){typeof _a=="object"&&typeof ll<"u"?ll.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(_a,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},d=function(){return t},m=function(i){o=i},b=function(){return o};function x(e){return document.createElement(e)}function L(e,i){var a,l=e.length,h;for(a=0;a<l;a+=1){h=e[a].prototype;for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&(i.prototype[c]=h[c])}}function U(e,i){return Object.getOwnPropertyDescriptor(e,i)}function K(e){function i(){}return i.prototype=e,i}var Z=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(a){this.audios.push(a)},pause:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].pause()},resume:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].resume()},setRate:function(a){var l,h=this.audios.length;for(l=0;l<h;l+=1)this.audios[l].setRate(a)},createAudio:function(a){return this.audioFactory?this.audioFactory(a):window.Howl?new window.Howl({src:[a]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(a){this.audioFactory=a},setVolume:function(a){this._volume=a,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var a,l=this.audios.length;for(a=0;a<l;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),X=function(){function e(a,l){var h=0,c=[],v;switch(a){case"int16":case"uint8c":v=1;break;default:v=1.1;break}for(h=0;h<l;h+=1)c.push(v);return c}function i(a,l){return a==="float32"?new Float32Array(l):a==="int16"?new Int16Array(l):a==="uint8c"?new Uint8ClampedArray(l):e(a,l)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i:e}();function it(e){return Array.apply(null,{length:e})}function dt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(a){return typeof a}:dt=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},dt(e)}var lt=!0,gt=null,St=null,Ct="",Gt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),zt=!1,Yt=Math.pow,Zt=Math.sqrt,ne=Math.floor,fr=Math.max,we=Math.min,Qe={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,a=e.length;for(i=0;i<a;i+=1)Qe[e[i]]=Math[e[i]]})();function vr(){return{}}Qe.random=Math.random,Qe.abs=function(e){var i=dt(e);if(i==="object"&&e.length){var a=it(e.length),l,h=e.length;for(l=0;l<h;l+=1)a[l]=Math.abs(e[l]);return a}return Math.abs(e)};var gr=150,kt=Math.PI/180,me=.5519;function Je(e){zt=!!e}function tr(e){return zt?Math.round(e):e}function er(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function rr(e,i,a,l){this.type=e,this.currentTime=i,this.totalTime=a,this.direction=l<0?-1:1}function vn(e,i){this.type=e,this.direction=i<0?-1:1}function up(e,i,a,l){this.type=e,this.currentLoop=a,this.totalLoops=i,this.direction=l<0?-1:1}function fp(e,i,a){this.type=e,this.firstFrame=i,this.totalFrames=a}function vp(e,i){this.type=e,this.target=i}function pb(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function mb(e){this.type="configError",this.nativeError=e}function GA(e,i){this.type=e,this.nativeError=i}var Ne=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function wd(e,i,a){var l,h,c,v,A,g,k,R;switch(v=Math.floor(e*6),A=e*6-v,g=a*(1-i),k=a*(1-A*i),R=a*(1-(1-A)*i),v%6){case 0:l=a,h=R,c=g;break;case 1:l=k,h=a,c=g;break;case 2:l=g,h=a,c=R;break;case 3:l=g,h=k,c=a;break;case 4:l=R,h=g,c=a;break;case 5:l=a,h=g,c=k;break;default:break}return[l,h,c]}function Nd(e,i,a){var l=Math.max(e,i,a),h=Math.min(e,i,a),c=l-h,v,A=l===0?0:c/l,g=l/255;switch(l){case h:v=0;break;case e:v=i-a+c*(i<a?6:0),v/=6*c;break;case i:v=a-e+c*2,v/=6*c;break;case a:v=e-i+c*4,v/=6*c;break;default:break}return[v,A,g]}function gp(e,i){var a=Nd(e[0]*255,e[1]*255,e[2]*255);return a[1]+=i,a[1]>1?a[1]=1:a[1]<=0&&(a[1]=0),wd(a[0],a[1],a[2])}function bp(e,i){var a=Nd(e[0]*255,e[1]*255,e[2]*255);return a[2]+=i,a[2]>1?a[2]=1:a[2]<0&&(a[2]=0),wd(a[0],a[1],a[2])}function yp(e,i){var a=Nd(e[0]*255,e[1]*255,e[2]*255);return a[0]+=i/360,a[0]>1?a[0]-=1:a[0]<0&&(a[0]+=1),wd(a[0],a[1],a[2])}var YA=function(){var e=[],i,a;for(i=0;i<256;i+=1)a=i.toString(16),e[i]=a.length===1?"0"+a:a;return function(l,h,c){return l<0&&(l=0),h<0&&(h=0),c<0&&(c=0),"#"+e[l]+e[h]+e[c]}}(),ub=function(i){lt=!!i},fb=function(){return lt},vb=function(i){gt=i},gn=function(){return gt},WA=function(i){St=i},Ep=function(){return St},bn=function(i){gr=i},js=function(){return gr},gb=function(i){Ct=i},jA=function(){return Ct};function Tt(e){return document.createElementNS(n,e)}function yn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yn=function(a){return typeof a}:yn=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},yn(e)}var Ks=function(){var e=1,i=[],a,l,h={onmessage:function(){},postMessage:function(M){a({data:M})}},c={postMessage:function(M){h.onmessage({data:M})}};function v(T){if(window.Worker&&window.Blob&&d()){var M=new Blob(["var _workerSelf = self; self.onmessage = ",T.toString()],{type:"text/javascript"}),D=URL.createObjectURL(M);return new Worker(D)}return a=T,h}function A(){l||(l=v(function(M){function D(){function V(J,I){var P,f,y=J.length,Y,$,nt,ft;for(f=0;f<y;f+=1)if(P=J[f],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for($=Et.length,Y=0;Y<$;Y+=1)if(Et[Y].pt.k.i)w(Et[Y].pt.k);else for(ft=Et[Y].pt.k.length,nt=0;nt<ft;nt+=1)Et[Y].pt.k[nt].s&&w(Et[Y].pt.k[nt].s[0]),Et[Y].pt.k[nt].e&&w(Et[Y].pt.k[nt].e[0])}P.ty===0?(P.layers=E(P.refId,I),V(P.layers,I)):P.ty===4?S(P.shapes):P.ty===5&&xt(P)}}function N(J,I){if(J){var P=0,f=J.length;for(P=0;P<f;P+=1)J[P].t===1&&(J[P].data.layers=E(J[P].data.refId,I),V(J[P].data.layers,I))}}function C(J,I){for(var P=0,f=I.length;P<f;){if(I[P].id===J)return I[P];P+=1}return null}function E(J,I){var P=C(J,I);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function S(J){var I,P=J.length,f,y;for(I=P-1;I>=0;I-=1)if(J[I].ty==="sh")if(J[I].ks.k.i)w(J[I].ks.k);else for(y=J[I].ks.k.length,f=0;f<y;f+=1)J[I].ks.k[f].s&&w(J[I].ks.k[f].s[0]),J[I].ks.k[f].e&&w(J[I].ks.k[f].e[0]);else J[I].ty==="gr"&&S(J[I].it)}function w(J){var I,P=J.i.length;for(I=0;I<P;I+=1)J.i[I][0]+=J.v[I][0],J.i[I][1]+=J.v[I][1],J.o[I][0]+=J.v[I][0],J.o[I][1]+=J.v[I][1]}function F(J,I){var P=I?I.split("."):[100,100,100];return J[0]>P[0]?!0:P[0]>J[0]?!1:J[1]>P[1]?!0:P[1]>J[1]?!1:J[2]>P[2]?!0:P[2]>J[2]?!1:null}var H=function(){var J=[4,4,14];function I(f){var y=f.t.d;f.t.d={k:[{s:y,t:0}]}}function P(f){var y,Y=f.length;for(y=0;y<Y;y+=1)f[y].ty===5&&I(f[y])}return function(f){if(F(J,f.v)&&(P(f.layers),f.assets)){var y,Y=f.assets.length;for(y=0;y<Y;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),W=function(){var J=[4,7,99];return function(I){if(I.chars&&!F(J,I.v)){var P,f=I.chars.length;for(P=0;P<f;P+=1){var y=I.chars[P];y.data&&y.data.shapes&&(S(y.data.shapes),y.data.ip=0,y.data.op=99999,y.data.st=0,y.data.sr=1,y.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},I.chars[P].t||(y.data.shapes.push({ty:"no"}),y.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),et=function(){var J=[5,7,15];function I(f){var y=f.t.p;typeof y.a=="number"&&(y.a={a:0,k:y.a}),typeof y.p=="number"&&(y.p={a:0,k:y.p}),typeof y.r=="number"&&(y.r={a:0,k:y.r})}function P(f){var y,Y=f.length;for(y=0;y<Y;y+=1)f[y].ty===5&&I(f[y])}return function(f){if(F(J,f.v)&&(P(f.layers),f.assets)){var y,Y=f.assets.length;for(y=0;y<Y;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),yt=function(){var J=[4,1,9];function I(f){var y,Y=f.length,$,nt;for(y=0;y<Y;y+=1)if(f[y].ty==="gr")I(f[y].it);else if(f[y].ty==="fl"||f[y].ty==="st")if(f[y].c.k&&f[y].c.k[0].i)for(nt=f[y].c.k.length,$=0;$<nt;$+=1)f[y].c.k[$].s&&(f[y].c.k[$].s[0]/=255,f[y].c.k[$].s[1]/=255,f[y].c.k[$].s[2]/=255,f[y].c.k[$].s[3]/=255),f[y].c.k[$].e&&(f[y].c.k[$].e[0]/=255,f[y].c.k[$].e[1]/=255,f[y].c.k[$].e[2]/=255,f[y].c.k[$].e[3]/=255);else f[y].c.k[0]/=255,f[y].c.k[1]/=255,f[y].c.k[2]/=255,f[y].c.k[3]/=255}function P(f){var y,Y=f.length;for(y=0;y<Y;y+=1)f[y].ty===4&&I(f[y].shapes)}return function(f){if(F(J,f.v)&&(P(f.layers),f.assets)){var y,Y=f.assets.length;for(y=0;y<Y;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}(),pt=function(){var J=[4,4,18];function I(f){var y,Y=f.length,$,nt;for(y=Y-1;y>=0;y-=1)if(f[y].ty==="sh")if(f[y].ks.k.i)f[y].ks.k.c=f[y].closed;else for(nt=f[y].ks.k.length,$=0;$<nt;$+=1)f[y].ks.k[$].s&&(f[y].ks.k[$].s[0].c=f[y].closed),f[y].ks.k[$].e&&(f[y].ks.k[$].e[0].c=f[y].closed);else f[y].ty==="gr"&&I(f[y].it)}function P(f){var y,Y,$=f.length,nt,ft,Et,Rt;for(Y=0;Y<$;Y+=1){if(y=f[Y],y.hasMask){var Mt=y.masksProperties;for(ft=Mt.length,nt=0;nt<ft;nt+=1)if(Mt[nt].pt.k.i)Mt[nt].pt.k.c=Mt[nt].cl;else for(Rt=Mt[nt].pt.k.length,Et=0;Et<Rt;Et+=1)Mt[nt].pt.k[Et].s&&(Mt[nt].pt.k[Et].s[0].c=Mt[nt].cl),Mt[nt].pt.k[Et].e&&(Mt[nt].pt.k[Et].e[0].c=Mt[nt].cl)}y.ty===4&&I(y.shapes)}}return function(f){if(F(J,f.v)&&(P(f.layers),f.assets)){var y,Y=f.assets.length;for(y=0;y<Y;y+=1)f.assets[y].layers&&P(f.assets[y].layers)}}}();function ot(J){J.__complete||(yt(J),H(J),W(J),et(J),pt(J),V(J.layers,J.assets),N(J.chars,J.assets),J.__complete=!0)}function xt(J){J.t.a.length===0&&"m"in J.t.p}var ct={};return ct.completeData=ot,ct.checkColors=yt,ct.checkChars=W,ct.checkPathProperties=et,ct.checkShapes=pt,ct.completeLayers=V,ct}if(c.dataManager||(c.dataManager=D()),c.assetLoader||(c.assetLoader=function(){function V(C){var E=C.getResponseHeader("content-type");return E&&C.responseType==="json"&&E.indexOf("json")!==-1||C.response&&yn(C.response)==="object"?C.response:C.response&&typeof C.response=="string"?JSON.parse(C.response):C.responseText?JSON.parse(C.responseText):null}function N(C,E,S,w){var F,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)F=V(H),S(F);else try{F=V(H),S(F)}catch(W){w&&w(W)}};try{H.open(["G","E","T"].join(""),C,!0)}catch{H.open(["G","E","T"].join(""),E+"/"+C,!0)}H.send()}return{load:N}}()),M.data.type==="loadAnimation")c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.dataManager.completeData(V),c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})});else if(M.data.type==="complete"){var O=M.data.animation;c.dataManager.completeData(O),c.postMessage({id:M.data.id,payload:O,status:"success"})}else M.data.type==="loadData"&&c.assetLoader.load(M.data.path,M.data.fullPath,function(V){c.postMessage({id:M.data.id,payload:V,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})})}),l.onmessage=function(T){var M=T.data,D=M.id,O=i[D];i[D]=null,M.status==="success"?O.onComplete(M.payload):O.onError&&O.onError()})}function g(T,M){e+=1;var D="processId_"+e;return i[D]={onComplete:T,onError:M},D}function k(T,M,D){A();var O=g(M,D);l.postMessage({type:"loadAnimation",path:T,fullPath:window.location.origin+window.location.pathname,id:O})}function R(T,M,D){A();var O=g(M,D);l.postMessage({type:"loadData",path:T,fullPath:window.location.origin+window.location.pathname,id:O})}function G(T,M,D){A();var O=g(M,D);l.postMessage({type:"complete",animation:T,id:O})}return{loadAnimation:k,loadData:R,completeAnimation:G}}(),bb=function(){var e=function(){var N=x("canvas");N.width=1,N.height=1;var C=N.getContext("2d");return C.fillStyle="rgba(0,0,0,0)",C.fillRect(0,0,1,1),N}();function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(N,C,E){var S="";if(N.e)S=N.p;else if(C){var w=N.p;w.indexOf("images/")!==-1&&(w=w.split("/")[1]),S=C+w}else S=E,S+=N.u?N.u:"",S+=N.p;return S}function h(N){var C=0,E=setInterval((function(){var S=N.getBBox();(S.width||C>500)&&(this._imageLoaded(),clearInterval(E)),C+=1}).bind(this),50)}function c(N){var C=l(N,this.assetsPath,this.path),E=Tt("image");Gt?this.testImageLoaded(E):E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.setAttributeNS("http://www.w3.org/1999/xlink","href",C),this._elementHelper.append?this._elementHelper.append(E):this._elementHelper.appendChild(E);var S={img:E,assetData:N};return S}function v(N){var C=l(N,this.assetsPath,this.path),E=x("img");E.crossOrigin="anonymous",E.addEventListener("load",this._imageLoaded,!1),E.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),E.src=C;var S={img:E,assetData:N};return S}function A(N){var C={assetData:N},E=l(N,this.assetsPath,this.path);return Ks.loadData(E,(function(S){C.img=S,this._footageLoaded()}).bind(this),(function(){C.img={},this._footageLoaded()}).bind(this)),C}function g(N,C){this.imagesLoadedCb=C;var E,S=N.length;for(E=0;E<S;E+=1)N[E].layers||(!N[E].t||N[E].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(N[E]))):N[E].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(N[E]))))}function k(N){this.path=N||""}function R(N){this.assetsPath=N||""}function G(N){for(var C=0,E=this.images.length;C<E;){if(this.images[C].assetData===N)return this.images[C].img;C+=1}return null}function T(){this.imagesLoadedCb=null,this.images.length=0}function M(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function O(N,C){N==="svg"?(this._elementHelper=C,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function V(){this._imageLoaded=i.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=h.bind(this),this.createFootageData=A.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return V.prototype={loadAssets:g,setAssetsPath:R,setPath:k,loadedImages:M,loadedFootages:D,destroy:T,getAsset:G,createImgData:v,createImageData:c,imageLoaded:i,footageLoaded:a,setCacheType:O},V}();function Tp(){}Tp.prototype={triggerEvent:function(i,a){if(this._cbs[i])for(var l=this._cbs[i],h=0;h<l.length;h+=1)l[h](a)},addEventListener:function(i,a){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(a),(function(){this.removeEventListener(i,a)}).bind(this)},removeEventListener:function(i,a){if(!a)this._cbs[i]=null;else if(this._cbs[i]){for(var l=0,h=this._cbs[i].length;l<h;)this._cbs[i][l]===a&&(this._cbs[i].splice(l,1),l-=1,h-=1),l+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var yb=function(){function e(i){for(var a=i.split(`\r
2
- `),l={},h,c=0,v=0;v<a.length;v+=1)h=a[v].split(":"),h.length===2&&(l[h[0]]=h[1].trim(),c+=1);if(c===0)throw new Error;return l}return function(i){for(var a=[],l=0;l<i.length;l+=1){var h=i[l],c={time:h.tm,duration:h.dr};try{c.payload=JSON.parse(i[l].cm)}catch{try{c.payload=e(i[l].cm)}catch{c.payload={name:i[l].cm}}}a.push(c)}return a}}(),Eb=function(){function e(i){this.compositions.push(i)}return function(){function i(a){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===a)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),qs={},Tb=function(i,a){qs[i]=a};function xb(e){return qs[e]}function Ab(){if(qs.canvas)return"canvas";for(var e in qs)if(qs[e])return e;return""}function Xs(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xs=function(a){return typeof a}:Xs=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Xs(e)}var ut=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Ne(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=fb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Eb(),this.imagePreloader=new bb,this.audioController=Z(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new rr("drawnFrame",0,0,0),this.expressionsPlugin=gn()};L([Tp],ut),ut.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var a=xb(i);this.renderer=new a(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Ks.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ut.prototype.onSetupError=function(){this.trigger("data_failed")},ut.prototype.setupAnimation=function(e){Ks.completeAnimation(e,this.configAnimation)},ut.prototype.setData=function(e,i){i&&Xs(i)!=="object"&&(i=JSON.parse(i));var a={wrapper:e,animationData:i},l=e.attributes;a.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",a.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:Ab()||"canvas";var h=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";h==="false"?a.loop=!1:h==="true"?a.loop=!0:h!==""&&(a.loop=parseInt(h,10));var c=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;a.autoplay=c!=="false",a.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var v=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";v==="false"&&(a.prerender=!1),a.path?this.setParams(a):this.trigger("destroy")},ut.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,a,l=i.length,h=e.layers,c,v=h.length;for(c=0;c<v;c+=1)for(a=0;a<l;){if(i[a].id===h[c].id){i[a]=h[c];break}a+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,a=0;a<l;a+=1)this.animationData.assets.push(e.assets[a]);this.animationData.__complete=!1,Ks.completeAnimation(this.animationData,this.onSegmentComplete)},ut.prototype.onSegmentComplete=function(e){this.animationData=e;var i=gn();i&&i.initExpressions(this),this.loadNextSegment()},ut.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ks.loadData(a,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ut.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ut.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ut.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ut.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=yb(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ut.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ut.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=gn();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ut.prototype.resize=function(e,i){var a=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(a,l)},ut.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ut.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ut.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ut.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ut.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ut.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ut.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ut.prototype.getMarkerData=function(e){for(var i,a=0;a<this.markers.length;a+=1)if(i=this.markers[a],i.payload&&i.payload.name===e)return i;return null},ut.prototype.goToAndStop=function(e,i,a){if(!(a&&this.name!==a)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&this.goToAndStop(h.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ut.prototype.goToAndPlay=function(e,i,a){if(!(a&&this.name!==a)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&(h.duration?this.playSegments([h.time,h.time+h.duration],!0):this.goToAndStop(h.time,!0))}else this.goToAndStop(l,i,a);this.play()}},ut.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,a=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(a=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(a=!0,i=0)):this.setCurrentRawFrameValue(i),a&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ut.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ut.prototype.setSegment=function(e,i){var a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?a=e:this.currentRawFrame+this.firstFrame>i&&(a=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,a!==-1&&this.goToAndStop(a,!0)},ut.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),Xs(e[0])==="object"){var a,l=e.length;for(a=0;a<l;a+=1)this.segments.push(e[a])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ut.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ut.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ut.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ut.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ut.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ut.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ut.prototype.setLoop=function(e){this.loop=e},ut.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ut.prototype.getVolume=function(){return this.audioController.getVolume()},ut.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ut.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ut.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ut.prototype.getPath=function(){return this.path},ut.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var a=e.p;a.indexOf("images/")!==-1&&(a=a.split("/")[1]),i=this.assetsPath+a}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ut.prototype.getAssetData=function(e){for(var i=0,a=this.assets.length;i<a;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ut.prototype.hide=function(){this.renderer.hide()},ut.prototype.show=function(){this.renderer.show()},ut.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ut.prototype.updateDocumentData=function(e,i,a){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,a)}catch{}},ut.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new rr(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new up(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new vn(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new fp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new vp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new rr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new up(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new vn(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new fp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new vp(e,this))},ut.prototype.triggerRenderFrameError=function(e){var i=new pb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ut.prototype.triggerConfigError=function(e){var i=new mb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var Qt=function(){var e={},i=[],a=0,l=0,h=0,c=!0,v=!1;function A(I){for(var P=0,f=I.target;P<l;)i[P].animation===f&&(i.splice(P,1),P-=1,l-=1,f.isPaused||G()),P+=1}function g(I,P){if(!I)return null;for(var f=0;f<l;){if(i[f].elem===I&&i[f].elem!==null)return i[f].animation;f+=1}var y=new ut;return T(y,I),y.setData(I,P),y}function k(){var I,P=i.length,f=[];for(I=0;I<P;I+=1)f.push(i[I].animation);return f}function R(){h+=1,yt()}function G(){h-=1}function T(I,P){I.addEventListener("destroy",A),I.addEventListener("_active",R),I.addEventListener("_idle",G),i.push({elem:P,animation:I}),l+=1}function M(I){var P=new ut;return T(P,null),P.setParams(I),P}function D(I,P){var f;for(f=0;f<l;f+=1)i[f].animation.setSpeed(I,P)}function O(I,P){var f;for(f=0;f<l;f+=1)i[f].animation.setDirection(I,P)}function V(I){var P;for(P=0;P<l;P+=1)i[P].animation.play(I)}function N(I){var P=I-a,f;for(f=0;f<l;f+=1)i[f].animation.advanceTime(P);a=I,h&&!v?window.requestAnimationFrame(N):c=!0}function C(I){a=I,window.requestAnimationFrame(N)}function E(I){var P;for(P=0;P<l;P+=1)i[P].animation.pause(I)}function S(I,P,f){var y;for(y=0;y<l;y+=1)i[y].animation.goToAndStop(I,P,f)}function w(I){var P;for(P=0;P<l;P+=1)i[P].animation.stop(I)}function F(I){var P;for(P=0;P<l;P+=1)i[P].animation.togglePause(I)}function H(I){var P;for(P=l-1;P>=0;P-=1)i[P].animation.destroy(I)}function W(I,P,f){var y=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,$=y.length;for(Y=0;Y<$;Y+=1)f&&y[Y].setAttribute("data-bm-type",f),g(y[Y],I);if(P&&$===0){f||(f="svg");var nt=document.getElementsByTagName("body")[0];nt.innerText="";var ft=x("div");ft.style.width="100%",ft.style.height="100%",ft.setAttribute("data-bm-type",f),nt.appendChild(ft),g(ft,I)}}function et(){var I;for(I=0;I<l;I+=1)i[I].animation.resize()}function yt(){!v&&h&&c&&(window.requestAnimationFrame(C),c=!1)}function pt(){v=!0}function ot(){v=!1,yt()}function xt(I,P){var f;for(f=0;f<l;f+=1)i[f].animation.setVolume(I,P)}function ct(I){var P;for(P=0;P<l;P+=1)i[P].animation.mute(I)}function J(I){var P;for(P=0;P<l;P+=1)i[P].animation.unmute(I)}return e.registerAnimation=g,e.loadAnimation=M,e.setSpeed=D,e.setDirection=O,e.play=V,e.pause=E,e.stop=w,e.togglePause=F,e.searchAnimations=W,e.resize=et,e.goToAndStop=S,e.destroy=H,e.freeze=pt,e.unfreeze=ot,e.setVolume=xt,e.mute=ct,e.unmute=J,e.getRegisteredAnimations=k,e}(),Zs=function(){var e={};e.getBezierEasing=a;var i={};function a(C,E,S,w,F){var H=F||("bez_"+C+"_"+E+"_"+S+"_"+w).replace(/\./g,"p");if(i[H])return i[H];var W=new N([C,E,S,w]);return i[H]=W,W}var l=4,h=.001,c=1e-7,v=10,A=11,g=1/(A-1),k=typeof Float32Array=="function";function R(C,E){return 1-3*E+3*C}function G(C,E){return 3*E-6*C}function T(C){return 3*C}function M(C,E,S){return((R(E,S)*C+G(E,S))*C+T(E))*C}function D(C,E,S){return 3*R(E,S)*C*C+2*G(E,S)*C+T(E)}function O(C,E,S,w,F){var H,W,et=0;do W=E+(S-E)/2,H=M(W,w,F)-C,H>0?S=W:E=W;while(Math.abs(H)>c&&++et<v);return W}function V(C,E,S,w){for(var F=0;F<l;++F){var H=D(E,S,w);if(H===0)return E;var W=M(E,S,w)-C;E-=W/H}return E}function N(C){this._p=C,this._mSampleValues=k?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return N.prototype={get:function(E){var S=this._p[0],w=this._p[1],F=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),S===w&&F===H?E:E===0?0:E===1?1:M(this._getTForX(E),w,H)},_precompute:function(){var E=this._p[0],S=this._p[1],w=this._p[2],F=this._p[3];this._precomputed=!0,(E!==S||w!==F)&&this._calcSampleValues()},_calcSampleValues:function(){for(var E=this._p[0],S=this._p[2],w=0;w<A;++w)this._mSampleValues[w]=M(w*g,E,S)},_getTForX:function(E){for(var S=this._p[0],w=this._p[2],F=this._mSampleValues,H=0,W=1,et=A-1;W!==et&&F[W]<=E;++W)H+=g;--W;var yt=(E-F[W])/(F[W+1]-F[W]),pt=H+yt*g,ot=D(pt,S,w);return ot>=h?V(E,pt,S,w):ot===0?pt:O(E,H,H+g,S,w)}},e}(),xp=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),En=function(){return function(e,i,a){var l=0,h=e,c=it(h),v={newElement:A,release:g};function A(){var k;return l?(l-=1,k=c[l]):k=i(),k}function g(k){l===h&&(c=xp.double(c),h*=2),a&&a(k),c[l]=k,l+=1}return v}}(),Ap=function(){function e(){return{addedLength:0,percents:X("float32",js()),lengths:X("float32",js())}}return En(8,e)}(),Sp=function(){function e(){return{lengths:[],totalLength:0}}function i(a){var l,h=a.lengths.length;for(l=0;l<h;l+=1)Ap.release(a.lengths[l]);a.lengths.length=0}return En(8,e,i)}();function Sb(){var e=Math;function i(T,M,D,O,V,N){var C=T*O+M*V+D*N-V*O-N*T-D*M;return C>-.001&&C<.001}function a(T,M,D,O,V,N,C,E,S){if(D===0&&N===0&&S===0)return i(T,M,O,V,C,E);var w=e.sqrt(e.pow(O-T,2)+e.pow(V-M,2)+e.pow(N-D,2)),F=e.sqrt(e.pow(C-T,2)+e.pow(E-M,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(C-O,2)+e.pow(E-V,2)+e.pow(S-N,2)),W;return w>F?w>H?W=w-F-H:W=H-F-w:H>F?W=H-F-w:W=F-w-H,W>-1e-4&&W<1e-4}var l=function(){return function(T,M,D,O){var V=js(),N,C,E,S,w,F=0,H,W=[],et=[],yt=Ap.newElement();for(E=D.length,N=0;N<V;N+=1){for(w=N/(V-1),H=0,C=0;C<E;C+=1)S=Yt(1-w,3)*T[C]+3*Yt(1-w,2)*w*D[C]+3*(1-w)*Yt(w,2)*O[C]+Yt(w,3)*M[C],W[C]=S,et[C]!==null&&(H+=Yt(W[C]-et[C],2)),et[C]=W[C];H&&(H=Zt(H),F+=H),yt.percents[N]=w,yt.lengths[N]=F}return yt.addedLength=F,yt}}();function h(T){var M=Sp.newElement(),D=T.c,O=T.v,V=T.o,N=T.i,C,E=T._length,S=M.lengths,w=0;for(C=0;C<E-1;C+=1)S[C]=l(O[C],O[C+1],V[C],N[C+1]),w+=S[C].addedLength;return D&&E&&(S[C]=l(O[C],O[0],V[C],N[0]),w+=S[C].addedLength),M.totalLength=w,M}function c(T){this.segmentLength=0,this.points=new Array(T)}function v(T,M){this.partialLength=T,this.point=M}var A=function(){var T={};return function(M,D,O,V){var N=(M[0]+"_"+M[1]+"_"+D[0]+"_"+D[1]+"_"+O[0]+"_"+O[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!T[N]){var C=js(),E,S,w,F,H,W=0,et,yt,pt=null;M.length===2&&(M[0]!==D[0]||M[1]!==D[1])&&i(M[0],M[1],D[0],D[1],M[0]+O[0],M[1]+O[1])&&i(M[0],M[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(C=2);var ot=new c(C);for(w=O.length,E=0;E<C;E+=1){for(yt=it(w),H=E/(C-1),et=0,S=0;S<w;S+=1)F=Yt(1-H,3)*M[S]+3*Yt(1-H,2)*H*(M[S]+O[S])+3*(1-H)*Yt(H,2)*(D[S]+V[S])+Yt(H,3)*D[S],yt[S]=F,pt!==null&&(et+=Yt(yt[S]-pt[S],2));et=Zt(et),W+=et,ot.points[E]=new v(et,yt),pt=yt}ot.segmentLength=W,T[N]=ot}return T[N]}}();function g(T,M){var D=M.percents,O=M.lengths,V=D.length,N=ne((V-1)*T),C=T*M.addedLength,E=0;if(N===V-1||N===0||C===O[N])return D[N];for(var S=O[N]>C?-1:1,w=!0;w;)if(O[N]<=C&&O[N+1]>C?(E=(C-O[N])/(O[N+1]-O[N]),w=!1):N+=S,N<0||N>=V-1){if(N===V-1)return D[N];w=!1}return D[N]+(D[N+1]-D[N])*E}function k(T,M,D,O,V,N){var C=g(V,N),E=1-C,S=e.round((E*E*E*T[0]+(C*E*E+E*C*E+E*E*C)*D[0]+(C*C*E+E*C*C+C*E*C)*O[0]+C*C*C*M[0])*1e3)/1e3,w=e.round((E*E*E*T[1]+(C*E*E+E*C*E+E*E*C)*D[1]+(C*C*E+E*C*C+C*E*C)*O[1]+C*C*C*M[1])*1e3)/1e3;return[S,w]}var R=X("float32",8);function G(T,M,D,O,V,N,C){V<0?V=0:V>1&&(V=1);var E=g(V,C);N=N>1?1:N;var S=g(N,C),w,F=T.length,H=1-E,W=1-S,et=H*H*H,yt=E*H*H*3,pt=E*E*H*3,ot=E*E*E,xt=H*H*W,ct=E*H*W+H*E*W+H*H*S,J=E*E*W+H*E*S+E*H*S,I=E*E*S,P=H*W*W,f=E*W*W+H*S*W+H*W*S,y=E*S*W+H*S*S+E*W*S,Y=E*S*S,$=W*W*W,nt=S*W*W+W*S*W+W*W*S,ft=S*S*W+W*S*S+S*W*S,Et=S*S*S;for(w=0;w<F;w+=1)R[w*4]=e.round((et*T[w]+yt*D[w]+pt*O[w]+ot*M[w])*1e3)/1e3,R[w*4+1]=e.round((xt*T[w]+ct*D[w]+J*O[w]+I*M[w])*1e3)/1e3,R[w*4+2]=e.round((P*T[w]+f*D[w]+y*O[w]+Y*M[w])*1e3)/1e3,R[w*4+3]=e.round(($*T[w]+nt*D[w]+ft*O[w]+Et*M[w])*1e3)/1e3;return R}return{getSegmentsLength:h,getNewSegment:G,getPointInSegment:k,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:a}}var kr=Sb(),oo=r,Ip=Math.abs;function _p(e,i){var a=this.offsetTime,l;this.propType==="multidimensional"&&(l=X("float32",this.pv.length));for(var h=i.lastIndex,c=h,v=this.keyframes.length-1,A=!0,g,k,R;A;){if(g=this.keyframes[c],k=this.keyframes[c+1],c===v-1&&e>=k.t-a){g.h&&(g=k),h=0;break}if(k.t-a>e){h=c;break}c<v-1?c+=1:(h=0,A=!1)}R=this.keyframesMetadata[c]||{};var G,T,M,D,O,V,N=k.t-a,C=g.t-a,E;if(g.to){R.bezierData||(R.bezierData=kr.buildBezierData(g.s,k.s||g.e,g.to,g.ti));var S=R.bezierData;if(e>=N||e<C){var w=e>=N?S.points.length-1:0;for(T=S.points[w].point.length,G=0;G<T;G+=1)l[G]=S.points[w].point[G]}else{R.__fnct?V=R.__fnct:(V=Zs.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,R.__fnct=V),M=V((e-C)/(N-C));var F=S.segmentLength*M,H,W=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastAddedLength:0;for(O=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastPoint:0,A=!0,D=S.points.length;A;){if(W+=S.points[O].partialLength,F===0||M===0||O===S.points.length-1){for(T=S.points[O].point.length,G=0;G<T;G+=1)l[G]=S.points[O].point[G];break}else if(F>=W&&F<W+S.points[O+1].partialLength){for(H=(F-W)/S.points[O+1].partialLength,T=S.points[O].point.length,G=0;G<T;G+=1)l[G]=S.points[O].point[G]+(S.points[O+1].point[G]-S.points[O].point[G])*H;break}O<D-1?O+=1:A=!1}i._lastPoint=O,i._lastAddedLength=W-S.points[O].partialLength,i._lastKeyframeIndex=c}}else{var et,yt,pt,ot,xt;if(v=g.s.length,E=k.s||g.e,this.sh&&g.h!==1)if(e>=N)l[0]=E[0],l[1]=E[1],l[2]=E[2];else if(e<=C)l[0]=g.s[0],l[1]=g.s[1],l[2]=g.s[2];else{var ct=Cp(g.s),J=Cp(E),I=(e-C)/(N-C);_b(l,Ib(ct,J,I))}else for(c=0;c<v;c+=1)g.h!==1&&(e>=N?M=1:e<C?M=0:(g.o.x.constructor===Array?(R.__fnct||(R.__fnct=[]),R.__fnct[c]?V=R.__fnct[c]:(et=g.o.x[c]===void 0?g.o.x[0]:g.o.x[c],yt=g.o.y[c]===void 0?g.o.y[0]:g.o.y[c],pt=g.i.x[c]===void 0?g.i.x[0]:g.i.x[c],ot=g.i.y[c]===void 0?g.i.y[0]:g.i.y[c],V=Zs.getBezierEasing(et,yt,pt,ot).get,R.__fnct[c]=V)):R.__fnct?V=R.__fnct:(et=g.o.x,yt=g.o.y,pt=g.i.x,ot=g.i.y,V=Zs.getBezierEasing(et,yt,pt,ot).get,g.keyframeMetadata=V),M=V((e-C)/(N-C)))),E=k.s||g.e,xt=g.h===1?g.s[c]:g.s[c]+(E[c]-g.s[c])*M,this.propType==="multidimensional"?l[c]=xt:l=xt}return i.lastIndex=h,l}function Ib(e,i,a){var l=[],h=e[0],c=e[1],v=e[2],A=e[3],g=i[0],k=i[1],R=i[2],G=i[3],T,M,D,O,V;return M=h*g+c*k+v*R+A*G,M<0&&(M=-M,g=-g,k=-k,R=-R,G=-G),1-M>1e-6?(T=Math.acos(M),D=Math.sin(T),O=Math.sin((1-a)*T)/D,V=Math.sin(a*T)/D):(O=1-a,V=a),l[0]=O*h+V*g,l[1]=O*c+V*k,l[2]=O*v+V*R,l[3]=O*A+V*G,l}function _b(e,i){var a=i[0],l=i[1],h=i[2],c=i[3],v=Math.atan2(2*l*c-2*a*h,1-2*l*l-2*h*h),A=Math.asin(2*a*l+2*h*c),g=Math.atan2(2*a*c-2*l*h,1-2*a*a-2*h*h);e[0]=v/kt,e[1]=A/kt,e[2]=g/kt}function Cp(e){var i=e[0]*kt,a=e[1]*kt,l=e[2]*kt,h=Math.cos(i/2),c=Math.cos(a/2),v=Math.cos(l/2),A=Math.sin(i/2),g=Math.sin(a/2),k=Math.sin(l/2),R=h*c*v-A*g*k,G=A*g*v+h*c*k,T=A*c*v+h*g*k,M=h*g*v-A*c*k;return[G,T,M,R]}function kp(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==oo&&(this._caching.lastFrame>=a&&e>=a||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function Tn(e){var i;if(this.propType==="unidimensional")i=e*this.mult,Ip(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var a=0,l=this.v.length;a<l;)i=e[a]*this.mult,Ip(this.v[a]-i)>1e-5&&(this.v[a]=i,this._mdf=!0),a+=1}function xn(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)a=this.effectsSequence[e](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function An(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function Cb(e,i,a,l){this.propType="unidimensional",this.mult=a||1,this.data=i,this.v=a?i.k*a:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=xn,this.setVValue=Tn,this.addEffect=An}function kb(e,i,a,l){this.propType="multidimensional",this.mult=a||1,this.data=i,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h,c=i.k.length;for(this.v=X("float32",c),this.pv=X("float32",c),this.vel=X("float32",c),h=0;h<c;h+=1)this.v[h]=i.k[h]*this.mult,this.pv[h]=i.k[h];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=xn,this.setVValue=Tn,this.addEffect=An}function wb(e,i,a,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:oo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=oo,this.pv=oo,this._isFirstFrame=!0,this.getValue=xn,this.setVValue=Tn,this.interpolateValue=_p,this.effectsSequence=[kp.bind(this)],this.addEffect=An}function Nb(e,i,a,l){this.propType="multidimensional";var h,c=i.k.length,v,A,g,k;for(h=0;h<c-1;h+=1)i.k[h].to&&i.k[h].s&&i.k[h+1]&&i.k[h+1].s&&(v=i.k[h].s,A=i.k[h+1].s,g=i.k[h].to,k=i.k[h].ti,(v.length===2&&!(v[0]===A[0]&&v[1]===A[1])&&kr.pointOnLine2D(v[0],v[1],A[0],A[1],v[0]+g[0],v[1]+g[1])&&kr.pointOnLine2D(v[0],v[1],A[0],A[1],A[0]+k[0],A[1]+k[1])||v.length===3&&!(v[0]===A[0]&&v[1]===A[1]&&v[2]===A[2])&&kr.pointOnLine3D(v[0],v[1],v[2],A[0],A[1],A[2],v[0]+g[0],v[1]+g[1],v[2]+g[2])&&kr.pointOnLine3D(v[0],v[1],v[2],A[0],A[1],A[2],A[0]+k[0],A[1]+k[1],A[2]+k[2]))&&(i.k[h].to=null,i.k[h].ti=null),v[0]===A[0]&&v[1]===A[1]&&g[0]===0&&g[1]===0&&k[0]===0&&k[1]===0&&(v.length===2||v[2]===A[2]&&g[2]===0&&k[2]===0)&&(i.k[h].to=null,i.k[h].ti=null));this.effectsSequence=[kp.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=xn,this.setVValue=Tn,this.interpolateValue=_p,this.frameId=-1;var R=i.k[0].s.length;for(this.v=X("float32",R),this.pv=X("float32",R),h=0;h<R;h+=1)this.v[h]=oo,this.pv[h]=oo;this._caching={lastFrame:oo,lastIndex:0,value:X("float32",R)},this.addEffect=An}var at=function(){function e(a,l,h,c,v){l.sid&&(l=a.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new Cb(a,l,c,v);else if(typeof l.k[0]=="number")A=new kb(a,l,c,v);else switch(h){case 0:A=new wb(a,l,c,v);break;case 1:A=new Nb(a,l,c,v);break;default:break}return A.effectsSequence.length&&v.addDynamicProperty(A),A}var i={getProp:e};return i}();function le(){}le.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var so=function(){function e(){return X("float32",2)}return En(8,e)}();function Wr(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}Wr.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var a=0;a<i;)this.v[a]=so.newElement(),this.o[a]=so.newElement(),this.i[a]=so.newElement(),a+=1},Wr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Wr.prototype.doubleArrayLength=function(){this.v=this.v.concat(it(this._maxLength)),this.i=this.i.concat(it(this._maxLength)),this.o=this.o.concat(it(this._maxLength)),this._maxLength*=2},Wr.prototype.setXYAt=function(e,i,a,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),a){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[l]||c[l]&&!h)&&(c[l]=so.newElement()),c[l][0]=e,c[l][1]=i},Wr.prototype.setTripleAt=function(e,i,a,l,h,c,v,A){this.setXYAt(e,i,"v",v,A),this.setXYAt(a,l,"o",v,A),this.setXYAt(h,c,"i",v,A)},Wr.prototype.reverse=function(){var e=new Wr;e.setPathData(this.c,this._length);var i=this.v,a=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],a[0][0],a[0][1],0,!1),h=1);var c=this._length-1,v=this._length,A;for(A=h;A<v;A+=1)e.setTripleAt(i[c][0],i[c][1],l[c][0],l[c][1],a[c][0],a[c][1],A,!1),c-=1;return e},Wr.prototype.length=function(){return this._length};var ue=function(){function e(){return new Wr}function i(h){var c=h._length,v;for(v=0;v<c;v+=1)so.release(h.v[v]),so.release(h.i[v]),so.release(h.o[v]),h.v[v]=null,h.i[v]=null,h.o[v]=null;h._length=0,h.c=!1}function a(h){var c=l.newElement(),v,A=h._length===void 0?h.v.length:h._length;for(c.setLength(A),c.c=h.c,v=0;v<A;v+=1)c.setTripleAt(h.v[v][0],h.v[v][1],h.o[v][0],h.o[v][1],h.i[v][0],h.i[v][1],v);return c}var l=En(4,e,i);return l.clone=a,l}();function Ld(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}Ld.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(it(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Ld.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ue.release(this.shapes[e]);this._length=0};var qo=function(){var e={newShapeCollection:h,release:c},i=0,a=4,l=it(a);function h(){var v;return i?(i-=1,v=l[i]):v=new Ld,v}function c(v){var A,g=v._length;for(A=0;A<g;A+=1)ue.release(v.shapes[A]);v._length=0,i===a&&(l=xp.double(l),a*=2),l[i]=v,i+=1}return e}(),Sn=function(){var e=-999999;function i(N,C,E){var S=E.lastIndex,w,F,H,W,et,yt,pt,ot,xt,ct=this.keyframes;if(N<ct[0].t-this.offsetTime)w=ct[0].s[0],H=!0,S=0;else if(N>=ct[ct.length-1].t-this.offsetTime)w=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var J=S,I=ct.length-1,P=!0,f,y,Y;P&&(f=ct[J],y=ct[J+1],!(y.t-this.offsetTime>N));)J<I-1?J+=1:P=!1;if(Y=this.keyframesMetadata[J]||{},H=f.h===1,S=J,!H){if(N>=y.t-this.offsetTime)ot=1;else if(N<f.t-this.offsetTime)ot=0;else{var $;Y.__fnct?$=Y.__fnct:($=Zs.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,Y.__fnct=$),ot=$((N-(f.t-this.offsetTime))/(y.t-this.offsetTime-(f.t-this.offsetTime)))}F=y.s?y.s[0]:f.e[0]}w=f.s[0]}for(yt=C._length,pt=w.i[0].length,E.lastIndex=S,W=0;W<yt;W+=1)for(et=0;et<pt;et+=1)xt=H?w.i[W][et]:w.i[W][et]+(F.i[W][et]-w.i[W][et])*ot,C.i[W][et]=xt,xt=H?w.o[W][et]:w.o[W][et]+(F.o[W][et]-w.o[W][et])*ot,C.o[W][et]=xt,xt=H?w.v[W][et]:w.v[W][et]+(F.v[W][et]-w.v[W][et])*ot,C.v[W][et]=xt}function a(){var N=this.comp.renderedFrame-this.offsetTime,C=this.keyframes[0].t-this.offsetTime,E=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==e&&(S<C&&N<C||S>E&&N>E)||(this._caching.lastIndex=S<N?this._caching.lastIndex:0,this.interpolateShape(N,this.pv,this._caching)),this._caching.lastFrame=N,this.pv}function l(){this.paths=this.localShapeCollection}function h(N,C){if(N._length!==C._length||N.c!==C.c)return!1;var E,S=N._length;for(E=0;E<S;E+=1)if(N.v[E][0]!==C.v[E][0]||N.v[E][1]!==C.v[E][1]||N.o[E][0]!==C.o[E][0]||N.o[E][1]!==C.o[E][1]||N.i[E][0]!==C.i[E][0]||N.i[E][1]!==C.i[E][1])return!1;return!0}function c(N){h(this.v,N)||(this.v=ue.clone(N),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function v(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var N;this.kf?N=this.pv:this.data.ks?N=this.data.ks.k:N=this.data.pt.k;var C,E=this.effectsSequence.length;for(C=0;C<E;C+=1)N=this.effectsSequence[C](N);this.setVValue(N),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(N,C,E){this.propType="shape",this.comp=N.comp,this.container=N,this.elem=N,this.data=C,this.k=!1,this.kf=!1,this._mdf=!1;var S=E===3?C.pt.k:C.ks.k;this.v=ue.clone(S),this.pv=ue.clone(this.v),this.localShapeCollection=qo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function g(N){this.effectsSequence.push(N),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=v,A.prototype.setVValue=c,A.prototype.addEffect=g;function k(N,C,E){this.propType="shape",this.comp=N.comp,this.elem=N,this.container=N,this.offsetTime=N.data.st,this.keyframes=E===3?C.pt.k:C.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=ue.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=ue.clone(this.v),this.localShapeCollection=qo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[a.bind(this)]}k.prototype.getValue=v,k.prototype.interpolateShape=i,k.prototype.setVValue=c,k.prototype.addEffect=g;var R=function(){var N=me;function C(E,S){this.v=ue.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=qo.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=E,this.comp=E.comp,this.frameId=-1,this.initDynamicPropertyContainer(E),this.p=at.getProp(E,S.p,1,0,this),this.s=at.getProp(E,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return C.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],w=this.p.v[1],F=this.s.v[0]/2,H=this.s.v[1]/2,W=this.d!==3,et=this.v;et.v[0][0]=S,et.v[0][1]=w-H,et.v[1][0]=W?S+F:S-F,et.v[1][1]=w,et.v[2][0]=S,et.v[2][1]=w+H,et.v[3][0]=W?S-F:S+F,et.v[3][1]=w,et.i[0][0]=W?S-F*N:S+F*N,et.i[0][1]=w-H,et.i[1][0]=W?S+F:S-F,et.i[1][1]=w-H*N,et.i[2][0]=W?S+F*N:S-F*N,et.i[2][1]=w+H,et.i[3][0]=W?S-F:S+F,et.i[3][1]=w+H*N,et.o[0][0]=W?S+F*N:S-F*N,et.o[0][1]=w-H,et.o[1][0]=W?S+F:S-F,et.o[1][1]=w+H*N,et.o[2][0]=W?S-F*N:S+F*N,et.o[2][1]=w+H,et.o[3][0]=W?S-F:S+F,et.o[3][1]=w-H*N}},L([le],C),C}(),G=function(){function N(C,E){this.v=ue.newElement(),this.v.setPathData(!0,0),this.elem=C,this.comp=C.comp,this.data=E,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),E.sy===1?(this.ir=at.getProp(C,E.ir,0,0,this),this.is=at.getProp(C,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(C,E.pt,0,0,this),this.p=at.getProp(C,E.p,1,0,this),this.r=at.getProp(C,E.r,0,kt,this),this.or=at.getProp(C,E.or,0,0,this),this.os=at.getProp(C,E.os,0,.01,this),this.localShapeCollection=qo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return N.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var E=Math.floor(this.pt.v)*2,S=Math.PI*2/E,w=!0,F=this.or.v,H=this.ir.v,W=this.os.v,et=this.is.v,yt=2*Math.PI*F/(E*2),pt=2*Math.PI*H/(E*2),ot,xt,ct,J,I=-Math.PI/2;I+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,ot=0;ot<E;ot+=1){xt=w?F:H,ct=w?W:et,J=w?yt:pt;var f=xt*Math.cos(I),y=xt*Math.sin(I),Y=f===0&&y===0?0:y/Math.sqrt(f*f+y*y),$=f===0&&y===0?0:-f/Math.sqrt(f*f+y*y);f+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(f,y,f-Y*J*ct*P,y-$*J*ct*P,f+Y*J*ct*P,y+$*J*ct*P,ot,!0),w=!w,I+=S*P}},convertPolygonToPath:function(){var E=Math.floor(this.pt.v),S=Math.PI*2/E,w=this.or.v,F=this.os.v,H=2*Math.PI*w/(E*4),W,et=-Math.PI*.5,yt=this.data.d===3?-1:1;for(et+=this.r.v,this.v._length=0,W=0;W<E;W+=1){var pt=w*Math.cos(et),ot=w*Math.sin(et),xt=pt===0&&ot===0?0:ot/Math.sqrt(pt*pt+ot*ot),ct=pt===0&&ot===0?0:-pt/Math.sqrt(pt*pt+ot*ot);pt+=+this.p.v[0],ot+=+this.p.v[1],this.v.setTripleAt(pt,ot,pt-xt*H*F*yt,ot-ct*H*F*yt,pt+xt*H*F*yt,ot+ct*H*F*yt,W,!0),et+=S*yt}this.paths.length=0,this.paths[0]=this.v}},L([le],N),N}(),T=function(){function N(C,E){this.v=ue.newElement(),this.v.c=!0,this.localShapeCollection=qo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=C,this.comp=C.comp,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),this.p=at.getProp(C,E.p,1,0,this),this.s=at.getProp(C,E.s,1,0,this),this.r=at.getProp(C,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return N.prototype={convertRectToPath:function(){var E=this.p.v[0],S=this.p.v[1],w=this.s.v[0]/2,F=this.s.v[1]/2,H=we(w,F,this.r.v),W=H*(1-me);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(E+w,S-F+H,E+w,S-F+H,E+w,S-F+W,0,!0),this.v.setTripleAt(E+w,S+F-H,E+w,S+F-W,E+w,S+F-H,1,!0),H!==0?(this.v.setTripleAt(E+w-H,S+F,E+w-H,S+F,E+w-W,S+F,2,!0),this.v.setTripleAt(E-w+H,S+F,E-w+W,S+F,E-w+H,S+F,3,!0),this.v.setTripleAt(E-w,S+F-H,E-w,S+F-H,E-w,S+F-W,4,!0),this.v.setTripleAt(E-w,S-F+H,E-w,S-F+W,E-w,S-F+H,5,!0),this.v.setTripleAt(E-w+H,S-F,E-w+H,S-F,E-w+W,S-F,6,!0),this.v.setTripleAt(E+w-H,S-F,E+w-W,S-F,E+w-H,S-F,7,!0)):(this.v.setTripleAt(E-w,S+F,E-w+W,S+F,E-w,S+F,2),this.v.setTripleAt(E-w,S-F,E-w,S-F+W,E-w,S-F,3))):(this.v.setTripleAt(E+w,S-F+H,E+w,S-F+W,E+w,S-F+H,0,!0),H!==0?(this.v.setTripleAt(E+w-H,S-F,E+w-H,S-F,E+w-W,S-F,1,!0),this.v.setTripleAt(E-w+H,S-F,E-w+W,S-F,E-w+H,S-F,2,!0),this.v.setTripleAt(E-w,S-F+H,E-w,S-F+H,E-w,S-F+W,3,!0),this.v.setTripleAt(E-w,S+F-H,E-w,S+F-W,E-w,S+F-H,4,!0),this.v.setTripleAt(E-w+H,S+F,E-w+H,S+F,E-w+W,S+F,5,!0),this.v.setTripleAt(E+w-H,S+F,E+w-W,S+F,E+w-H,S+F,6,!0),this.v.setTripleAt(E+w,S+F-H,E+w,S+F-H,E+w,S+F-W,7,!0)):(this.v.setTripleAt(E-w,S-F,E-w+W,S-F,E-w,S-F,1,!0),this.v.setTripleAt(E-w,S+F,E-w,S+F-W,E-w,S+F,2,!0),this.v.setTripleAt(E+w,S+F,E+w-W,S+F,E+w,S+F,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},L([le],N),N}();function M(N,C,E){var S;if(E===3||E===4){var w=E===3?C.pt:C.ks,F=w.k;F.length?S=new k(N,C,E):S=new A(N,C,E)}else E===5?S=new T(N,C):E===6?S=new R(N,C):E===7&&(S=new G(N,C));return S.k&&N.addDynamicProperty(S),S}function D(){return A}function O(){return k}var V={};return V.getShapeProp=M,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=O,V}();var fe=function(){var e=Math.cos,i=Math.sin,a=Math.tan,l=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function v(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(1,0,0,0,0,y,-Y,0,0,Y,y,0,0,0,0,1)}function A(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(y,0,Y,0,0,1,0,0,-Y,0,y,0,0,0,0,1)}function g(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function k(f,y){return this._t(1,y,f,1,0,0)}function R(f,y){return this.shear(a(f),a(y))}function G(f,y){var Y=e(y),$=i(y);return this._t(Y,$,0,0,-$,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(f),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-$,0,0,$,Y,0,0,0,0,1,0,0,0,0,1)}function T(f,y,Y){return!Y&&Y!==0&&(Y=1),f===1&&y===1&&Y===1?this:this._t(f,0,0,0,0,y,0,0,0,0,Y,0,0,0,0,1)}function M(f,y,Y,$,nt,ft,Et,Rt,Mt,Jt,Re,Nr,Me,de,Ye,Dt){return this.props[0]=f,this.props[1]=y,this.props[2]=Y,this.props[3]=$,this.props[4]=nt,this.props[5]=ft,this.props[6]=Et,this.props[7]=Rt,this.props[8]=Mt,this.props[9]=Jt,this.props[10]=Re,this.props[11]=Nr,this.props[12]=Me,this.props[13]=de,this.props[14]=Ye,this.props[15]=Dt,this}function D(f,y,Y){return Y=Y||0,f!==0||y!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,f,y,Y,1):this}function O(f,y,Y,$,nt,ft,Et,Rt,Mt,Jt,Re,Nr,Me,de,Ye,Dt){var ht=this.props;if(f===1&&y===0&&Y===0&&$===0&&nt===0&&ft===1&&Et===0&&Rt===0&&Mt===0&&Jt===0&&Re===1&&Nr===0)return ht[12]=ht[12]*f+ht[15]*Me,ht[13]=ht[13]*ft+ht[15]*de,ht[14]=ht[14]*Re+ht[15]*Ye,ht[15]*=Dt,this._identityCalculated=!1,this;var qr=ht[0],Ii=ht[1],Xr=ht[2],Lr=ht[3],Zr=ht[4],Qr=ht[5],Oe=ht[6],_i=ht[7],Ci=ht[8],yr=ht[9],ki=ht[10],Er=ht[11],co=ht[12],Mn=ht[13],On=ht[14],Pn=ht[15];return ht[0]=qr*f+Ii*nt+Xr*Mt+Lr*Me,ht[1]=qr*y+Ii*ft+Xr*Jt+Lr*de,ht[2]=qr*Y+Ii*Et+Xr*Re+Lr*Ye,ht[3]=qr*$+Ii*Rt+Xr*Nr+Lr*Dt,ht[4]=Zr*f+Qr*nt+Oe*Mt+_i*Me,ht[5]=Zr*y+Qr*ft+Oe*Jt+_i*de,ht[6]=Zr*Y+Qr*Et+Oe*Re+_i*Ye,ht[7]=Zr*$+Qr*Rt+Oe*Nr+_i*Dt,ht[8]=Ci*f+yr*nt+ki*Mt+Er*Me,ht[9]=Ci*y+yr*ft+ki*Jt+Er*de,ht[10]=Ci*Y+yr*Et+ki*Re+Er*Ye,ht[11]=Ci*$+yr*Rt+ki*Nr+Er*Dt,ht[12]=co*f+Mn*nt+On*Mt+Pn*Me,ht[13]=co*y+Mn*ft+On*Jt+Pn*de,ht[14]=co*Y+Mn*Et+On*Re+Pn*Ye,ht[15]=co*$+Mn*Rt+On*Nr+Pn*Dt,this._identityCalculated=!1,this}function V(f){var y=f.props;return this.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])}function N(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function C(f){for(var y=0;y<16;){if(f.props[y]!==this.props[y])return!1;y+=1}return!0}function E(f){var y;for(y=0;y<16;y+=1)f.props[y]=this.props[y];return f}function S(f){var y;for(y=0;y<16;y+=1)this.props[y]=f[y]}function w(f,y,Y){return{x:f*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],y:f*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],z:f*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}}function F(f,y,Y){return f*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12]}function H(f,y,Y){return f*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13]}function W(f,y,Y){return f*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}function et(){var f=this.props[0]*this.props[5]-this.props[1]*this.props[4],y=this.props[5]/f,Y=-this.props[1]/f,$=-this.props[4]/f,nt=this.props[0]/f,ft=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/f,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/f,Rt=new fe;return Rt.props[0]=y,Rt.props[1]=Y,Rt.props[4]=$,Rt.props[5]=nt,Rt.props[12]=ft,Rt.props[13]=Et,Rt}function yt(f){var y=this.getInverseMatrix();return y.applyToPointArray(f[0],f[1],f[2]||0)}function pt(f){var y,Y=f.length,$=[];for(y=0;y<Y;y+=1)$[y]=yt(f[y]);return $}function ot(f,y,Y){var $=X("float32",6);if(this.isIdentity())$[0]=f[0],$[1]=f[1],$[2]=y[0],$[3]=y[1],$[4]=Y[0],$[5]=Y[1];else{var nt=this.props[0],ft=this.props[1],Et=this.props[4],Rt=this.props[5],Mt=this.props[12],Jt=this.props[13];$[0]=f[0]*nt+f[1]*Et+Mt,$[1]=f[0]*ft+f[1]*Rt+Jt,$[2]=y[0]*nt+y[1]*Et+Mt,$[3]=y[0]*ft+y[1]*Rt+Jt,$[4]=Y[0]*nt+Y[1]*Et+Mt,$[5]=Y[0]*ft+Y[1]*Rt+Jt}return $}function xt(f,y,Y){var $;return this.isIdentity()?$=[f,y,Y]:$=[f*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],f*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],f*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]],$}function ct(f,y){if(this.isIdentity())return f+","+y;var Y=this.props;return Math.round((f*Y[0]+y*Y[4]+Y[12])*100)/100+","+Math.round((f*Y[1]+y*Y[5]+Y[13])*100)/100}function J(){for(var f=0,y=this.props,Y="matrix3d(",$=1e4;f<16;)Y+=l(y[f]*$)/$,Y+=f===15?")":",",f+=1;return Y}function I(f){var y=1e4;return f<1e-6&&f>0||f>-1e-6&&f<0?l(f*y)/y:f}function P(){var f=this.props,y=I(f[0]),Y=I(f[1]),$=I(f[4]),nt=I(f[5]),ft=I(f[12]),Et=I(f[13]);return"matrix("+y+","+Y+","+$+","+nt+","+ft+","+Et+")"}return function(){this.reset=h,this.rotate=c,this.rotateX=v,this.rotateY=A,this.rotateZ=g,this.skew=R,this.skewFromAxis=G,this.shear=k,this.scale=T,this.setTransform=M,this.translate=D,this.transform=O,this.multiply=V,this.applyToPoint=w,this.applyToX=F,this.applyToY=H,this.applyToZ=W,this.applyToPointArray=xt,this.applyToTriplePoints=ot,this.applyToPointStringified=ct,this.toCSS=J,this.to2dCSS=P,this.clone=E,this.cloneFromProps=S,this.equals=C,this.inversePoints=pt,this.inversePoint=yt,this.getInverseMatrix=et,this._t=this.transform,this.isIdentity=N,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function In(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?In=function(a){return typeof a}:In=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},In(e)}var Ot={},_n="__[STANDALONE]__",wp="__[ANIMATIONDATA]__",Np="";function Lb(e){m(e)}function Lp(){_n===!0?Qt.searchAnimations(wp,_n,Np):Qt.searchAnimations()}function Rb(e){ub(e)}function Mb(e){gb(e)}function Ob(e){return _n===!0&&(e.animationData=JSON.parse(wp)),Qt.loadAnimation(e)}function Pb(e){if(typeof e=="string")switch(e){case"high":bn(200);break;default:case"medium":bn(50);break;case"low":bn(10);break}else!isNaN(e)&&e>1&&bn(e);js()>=50?Je(!1):Je(!0)}function Db(){return typeof navigator<"u"}function Fb(e,i){e==="expressions"&&vb(i)}function $b(e){switch(e){case"propertyFactory":return at;case"shapePropertyFactory":return Sn;case"matrix":return fe;default:return null}}Ot.play=Qt.play,Ot.pause=Qt.pause,Ot.setLocationHref=Lb,Ot.togglePause=Qt.togglePause,Ot.setSpeed=Qt.setSpeed,Ot.setDirection=Qt.setDirection,Ot.stop=Qt.stop,Ot.searchAnimations=Lp,Ot.registerAnimation=Qt.registerAnimation,Ot.loadAnimation=Ob,Ot.setSubframeRendering=Rb,Ot.resize=Qt.resize,Ot.goToAndStop=Qt.goToAndStop,Ot.destroy=Qt.destroy,Ot.setQuality=Pb,Ot.inBrowser=Db,Ot.installPlugin=Fb,Ot.freeze=Qt.freeze,Ot.unfreeze=Qt.unfreeze,Ot.setVolume=Qt.setVolume,Ot.mute=Qt.mute,Ot.unmute=Qt.unmute,Ot.getRegisteredAnimations=Qt.getRegisteredAnimations,Ot.useWebWorker=s,Ot.setIDPrefix=Mb,Ot.__getFactory=$b,Ot.version="5.12.2";function zb(){document.readyState==="complete"&&(clearInterval(Ub),Lp())}function Vb(e){for(var i=Rp.split("&"),a=0;a<i.length;a+=1){var l=i[a].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var Rp="";if(_n){var Mp=document.getElementsByTagName("script"),Bb=Mp.length-1,Op=Mp[Bb]||{src:""};Rp=Op.src?Op.src.replace(/^[^\?]+\??/,""):"",Np=Vb("renderer")}var Ub=setInterval(zb,100);try{!((typeof _a>"u"?"undefined":In(_a))==="object"&&typeof ll<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ot)}catch{}var yi=function(){var e={},i={};e.registerModifier=a,e.getModifier=l;function a(h,c){i[h]||(i[h]=c)}function l(h,c,v){return new i[h](c,v)}return e}();function ir(){}ir.prototype.initModifierProperties=function(){},ir.prototype.addShapeToModifier=function(){},ir.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:qo.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},ir.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ir.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},L([le],ir);function br(){}L([ir],br),br.prototype.initModifierProperties=function(e,i){this.s=at.getProp(e,i.s,0,.01,this),this.e=at.getProp(e,i.e,0,.01,this),this.o=at.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},br.prototype.addShapeToModifier=function(e){e.pathsData=[]},br.prototype.calculateShapeEdges=function(e,i,a,l,h){var c=[];i<=1?c.push({s:e,e:i}):e>=1?c.push({s:e-1,e:i-1}):(c.push({s:e,e:1}),c.push({s:0,e:i-1}));var v=[],A,g=c.length,k;for(A=0;A<g;A+=1)if(k=c[A],!(k.e*h<l||k.s*h>l+a)){var R,G;k.s*h<=l?R=0:R=(k.s*h-l)/a,k.e*h>=l+a?G=1:G=(k.e*h-l)/a,v.push([R,G])}return v.length||v.push([0,0]),v},br.prototype.releasePathsData=function(e){var i,a=e.length;for(i=0;i<a;i+=1)Sp.release(e[i]);return e.length=0,e},br.prototype.processShapes=function(e){var i,a;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?i=1+l:this.s.v<0?i=0+l:i=this.s.v+l,this.e.v>1?a=1+l:this.e.v<0?a=0+l:a=this.e.v+l,i>a){var h=i;i=a,a=h}i=Math.round(i*1e4)*1e-4,a=Math.round(a*1e4)*1e-4,this.sValue=i,this.eValue=a}else i=this.sValue,a=this.eValue;var c,v,A=this.shapes.length,g,k,R,G,T,M=0;if(a===i)for(v=0;v<A;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(a===1&&i===0||a===0&&i===1){if(this._mdf)for(v=0;v<A;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var D=[],O,V;for(v=0;v<A;v+=1)if(O=this.shapes[v],!O.shape._mdf&&!this._mdf&&!e&&this.m!==2)O.shape.paths=O.localShapeCollection;else{if(c=O.shape.paths,k=c._length,T=0,!O.shape._mdf&&O.pathsData.length)T=O.totalShapeLength;else{for(R=this.releasePathsData(O.pathsData),g=0;g<k;g+=1)G=kr.getSegmentsLength(c.shapes[g]),R.push(G),T+=G.totalLength;O.totalShapeLength=T,O.pathsData=R}M+=T,O.shape._mdf=!0}var N=i,C=a,E=0,S;for(v=A-1;v>=0;v-=1)if(O=this.shapes[v],O.shape._mdf){for(V=O.localShapeCollection,V.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,a,O.totalShapeLength,E,M),E+=O.totalShapeLength):S=[[N,C]],k=S.length,g=0;g<k;g+=1){N=S[g][0],C=S[g][1],D.length=0,C<=1?D.push({s:O.totalShapeLength*N,e:O.totalShapeLength*C}):N>=1?D.push({s:O.totalShapeLength*(N-1),e:O.totalShapeLength*(C-1)}):(D.push({s:O.totalShapeLength*N,e:O.totalShapeLength}),D.push({s:0,e:O.totalShapeLength*(C-1)}));var w=this.addShapes(O,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=O.shape.paths.shapes[O.shape.paths._length-1];if(F.c){var H=w.pop();this.addPaths(w,V),w=this.addShapes(O,D[1],H)}else this.addPaths(w,V),w=this.addShapes(O,D[1])}this.addPaths(w,V)}}O.shape.paths=V}}},br.prototype.addPaths=function(e,i){var a,l=e.length;for(a=0;a<l;a+=1)i.addShape(e[a])},br.prototype.addSegment=function(e,i,a,l,h,c,v){h.setXYAt(i[0],i[1],"o",c),h.setXYAt(a[0],a[1],"i",c+1),v&&h.setXYAt(e[0],e[1],"v",c),h.setXYAt(l[0],l[1],"v",c+1)},br.prototype.addSegmentFromArray=function(e,i,a,l){i.setXYAt(e[1],e[5],"o",a),i.setXYAt(e[2],e[6],"i",a+1),l&&i.setXYAt(e[0],e[4],"v",a),i.setXYAt(e[3],e[7],"v",a+1)},br.prototype.addShapes=function(e,i,a){var l=e.pathsData,h=e.shape.paths.shapes,c,v=e.shape.paths._length,A,g,k=0,R,G,T,M,D=[],O,V=!0;for(a?(G=a._length,O=a._length):(a=ue.newElement(),G=0,O=0),D.push(a),c=0;c<v;c+=1){for(T=l[c].lengths,a.c=h[c].c,g=h[c].c?T.length:T.length+1,A=1;A<g;A+=1)if(R=T[A-1],k+R.addedLength<i.s)k+=R.addedLength,a.c=!1;else if(k>i.e){a.c=!1;break}else i.s<=k&&i.e>=k+R.addedLength?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[A],h[c].v[A],a,G,V),V=!1):(M=kr.getNewSegment(h[c].v[A-1],h[c].v[A],h[c].o[A-1],h[c].i[A],(i.s-k)/R.addedLength,(i.e-k)/R.addedLength,T[A-1]),this.addSegmentFromArray(M,a,G,V),V=!1,a.c=!1),k+=R.addedLength,G+=1;if(h[c].c&&T.length){if(R=T[A-1],k<=i.e){var N=T[A-1].addedLength;i.s<=k&&i.e>=k+N?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[0],h[c].v[0],a,G,V),V=!1):(M=kr.getNewSegment(h[c].v[A-1],h[c].v[0],h[c].o[A-1],h[c].i[0],(i.s-k)/N,(i.e-k)/N,T[A-1]),this.addSegmentFromArray(M,a,G,V),V=!1,a.c=!1)}else a.c=!1;k+=R.addedLength,G+=1}if(a._length&&(a.setXYAt(a.v[O][0],a.v[O][1],"i",O),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),k>i.e)break;c<v-1&&(a=ue.newElement(),V=!0,D.push(a),G=0)}return D};function Qs(){}L([ir],Qs),Qs.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Qs.prototype.processPath=function(e,i){var a=i/100,l=[0,0],h=e._length,c=0;for(c=0;c<h;c+=1)l[0]+=e.v[c][0],l[1]+=e.v[c][1];l[0]/=h,l[1]/=h;var v=ue.newElement();v.c=e.c;var A,g,k,R,G,T;for(c=0;c<h;c+=1)A=e.v[c][0]+(l[0]-e.v[c][0])*a,g=e.v[c][1]+(l[1]-e.v[c][1])*a,k=e.o[c][0]+(l[0]-e.o[c][0])*-a,R=e.o[c][1]+(l[1]-e.o[c][1])*-a,G=e.i[c][0]+(l[0]-e.i[c][0])*-a,T=e.i[c][1]+(l[1]-e.i[c][1])*-a,v.setTripleAt(A,g,k,R,G,T,c);return v},Qs.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.amount.v;if(v!==0){var A,g;for(a=0;a<l;a+=1){if(A=this.shapes[a],g=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(i[h],v));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Rd=function(){var e=[0,0];function i(g){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var R,G;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(R=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(R=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(R=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){R=[],G=[];var T=this.px,M=this.py;T._caching.lastFrame+T.offsetTime<=T.keyframes[0].t?(R[0]=T.getValueAtTime((T.keyframes[0].t+.01)/k,0),R[1]=M.getValueAtTime((M.keyframes[0].t+.01)/k,0),G[0]=T.getValueAtTime(T.keyframes[0].t/k,0),G[1]=M.getValueAtTime(M.keyframes[0].t/k,0)):T._caching.lastFrame+T.offsetTime>=T.keyframes[T.keyframes.length-1].t?(R[0]=T.getValueAtTime(T.keyframes[T.keyframes.length-1].t/k,0),R[1]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/k,0),G[0]=T.getValueAtTime((T.keyframes[T.keyframes.length-1].t-.01)/k,0),G[1]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/k,0)):(R=[T.pv,M.pv],G[0]=T.getValueAtTime((T._caching.lastFrame+T.offsetTime-.01)/k,T.offsetTime),G[1]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/k,M.offsetTime))}else G=e,R=G;this.v.rotate(-Math.atan2(R[1]-G[1],R[0]-G[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 h(){}function c(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(g,k,R){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=k,this.v=new fe,this.pre=new fe,this.appliedTransformations=0,this.initDynamicPropertyContainer(R||g),k.p&&k.p.s?(this.px=at.getProp(g,k.p.x,0,0,this),this.py=at.getProp(g,k.p.y,0,0,this),k.p.z&&(this.pz=at.getProp(g,k.p.z,0,0,this))):this.p=at.getProp(g,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=at.getProp(g,k.rx,0,kt,this),this.ry=at.getProp(g,k.ry,0,kt,this),this.rz=at.getProp(g,k.rz,0,kt,this),k.or.k[0].ti){var G,T=k.or.k.length;for(G=0;G<T;G+=1)k.or.k[G].to=null,k.or.k[G].ti=null}this.or=at.getProp(g,k.or,1,kt,this),this.or.sh=!0}else this.r=at.getProp(g,k.r||{k:0},0,kt,this);k.sk&&(this.sk=at.getProp(g,k.sk,0,kt,this),this.sa=at.getProp(g,k.sa,0,kt,this)),this.a=at.getProp(g,k.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(g,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=at.getProp(g,k.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}v.prototype={applyToMatrix:i,getValue:a,precalculateMatrix:l,autoOrient:h},L([le],v),v.prototype.addDynamicProperty=c,v.prototype._addDynamicProperty=le.prototype.addDynamicProperty;function A(g,k,R){return new v(g,k,R)}return{getTransformProperty:A}}();function wr(){}L([ir],wr),wr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=at.getProp(e,i.c,0,null,this),this.o=at.getProp(e,i.o,0,null,this),this.tr=Rd.getTransformProperty(e,i.tr,this),this.so=at.getProp(e,i.tr.so,0,.01,this),this.eo=at.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new fe,this.rMatrix=new fe,this.sMatrix=new fe,this.tMatrix=new fe,this.matrix=new fe},wr.prototype.applyTransforms=function(e,i,a,l,h,c){var v=c?-1:1,A=l.s.v[0]+(1-l.s.v[0])*(1-h),g=l.s.v[1]+(1-l.s.v[1])*(1-h);e.translate(l.p.v[0]*v*h,l.p.v[1]*v*h,l.p.v[2]),i.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),i.rotate(-l.r.v*v*h),i.translate(l.a.v[0],l.a.v[1],l.a.v[2]),a.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),a.scale(c?1/A:A,c?1/g:g),a.translate(l.a.v[0],l.a.v[1],l.a.v[2])},wr.prototype.init=function(e,i,a,l){for(this.elem=e,this.arr=i,this.pos=a,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[a]);a>0;)a-=1,this._elements.unshift(i[a]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},wr.prototype.resetElements=function(e){var i,a=e.length;for(i=0;i<a;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},wr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},wr.prototype.changeGroupRender=function(e,i){var a,l=e.length;for(a=0;a<l;a+=1)e[a]._render=i,e[a].ty==="gr"&&this.changeGroupRender(e[a].it,i)},wr.prototype.processShapes=function(e){var i,a,l,h,c,v=!1;if(this._mdf||e){var A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),v=!0}c=0;var k;for(l=0;l<=this._groups.length-1;l+=1){if(k=c<A,this._groups[l]._render=k,this.changeGroupRender(this._groups[l].it,k),!k){var R=this.elemsData[l].it,G=R[R.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}c+=1}this._currentCopies=A;var T=this.o.v,M=T%1,D=T>0?Math.floor(T):Math.ceil(T),O=this.pMatrix.props,V=this.rMatrix.props,N=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var C=0;if(T>0){for(;C<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,M,!1),C+=M)}else if(T<0){for(;C>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-M,!0),C-=M)}l=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,c=this._currentCopies;for(var E,S;c;){if(i=this.elemsData[l].it,a=i[i.length-1].transform.mProps.v.props,S=a.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(l/(this._currentCopies-1)),C!==0){for((l!==0&&h===1||l!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(V[0],V[1],V[2],V[3],V[4],V[5],V[6],V[7],V[8],V[9],V[10],V[11],V[12],V[13],V[14],V[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),this.matrix.transform(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]),E=0;E<S;E+=1)a[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<S;E+=1)a[E]=this.matrix.props[E];C+=1,c-=1,l+=h}}else for(c=this._currentCopies,l=0,h=1;c;)i=this.elemsData[l].it,a=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,c-=1,l+=h;return v},wr.prototype.addShape=function(){};function Js(){}L([ir],Js),Js.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=at.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Js.prototype.processPath=function(e,i){var a=ue.newElement();a.c=e.c;var l,h=e._length,c,v,A,g,k,R,G=0,T,M,D,O,V,N;for(l=0;l<h;l+=1)c=e.v[l],A=e.o[l],v=e.i[l],c[0]===A[0]&&c[1]===A[1]&&c[0]===v[0]&&c[1]===v[1]?(l===0||l===h-1)&&!e.c?(a.setTripleAt(c[0],c[1],A[0],A[1],v[0],v[1],G),G+=1):(l===0?g=e.v[h-1]:g=e.v[l-1],k=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),R=k?Math.min(k/2,i)/k:0,V=c[0]+(g[0]-c[0])*R,T=V,N=c[1]-(c[1]-g[1])*R,M=N,D=T-(T-c[0])*me,O=M-(M-c[1])*me,a.setTripleAt(T,M,D,O,V,N,G),G+=1,l===h-1?g=e.v[0]:g=e.v[l+1],k=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),R=k?Math.min(k/2,i)/k:0,D=c[0]+(g[0]-c[0])*R,T=D,O=c[1]+(g[1]-c[1])*R,M=O,V=T-(T-c[0])*me,N=M-(M-c[1])*me,a.setTripleAt(T,M,D,O,V,N,G),G+=1):(a.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],G),G+=1);return a},Js.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.rd.v;if(v!==0){var A,g;for(a=0;a<l;a+=1){if(A=this.shapes[a],g=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(i[h],v));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Cn(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function Md(e){return Math.abs(e)<=1e-5}function Pp(e,i,a){return e*(1-a)+i*a}function Ei(e,i,a){return[Pp(e[0],i[0],a),Pp(e[1],i[1],a)]}function Hb(e,i,a){if(e===0)return[];var l=i*i-4*e*a;if(l<0)return[];var h=-i/(2*e);if(l===0)return[h];var c=Math.sqrt(l)/(2*e);return[h-c,h+c]}function Dp(e,i,a,l){return[-e+3*i-3*a+l,3*e-6*i+3*a,-3*e+3*i,e]}function Fp(e){return new jt(e,e,e,e,!1)}function jt(e,i,a,l,h){h&&Zo(e,i)&&(i=Ei(e,l,1/3)),h&&Zo(a,l)&&(a=Ei(e,l,2/3));var c=Dp(e[0],i[0],a[0],l[0]),v=Dp(e[1],i[1],a[1],l[1]);this.a=[c[0],v[0]],this.b=[c[1],v[1]],this.c=[c[2],v[2]],this.d=[c[3],v[3]],this.points=[e,i,a,l]}jt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},jt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},jt.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},jt.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},jt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Md(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,a=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(a<0)return[];var l=Math.sqrt(a);return Md(l)?l>0&&l<1?[i]:[]:[i-l,i+l].filter(function(h){return h>0&&h<1})},jt.prototype.split=function(e){if(e<=0)return[Fp(this.points[0]),this];if(e>=1)return[this,Fp(this.points[this.points.length-1])];var i=Ei(this.points[0],this.points[1],e),a=Ei(this.points[1],this.points[2],e),l=Ei(this.points[2],this.points[3],e),h=Ei(i,a,e),c=Ei(a,l,e),v=Ei(h,c,e);return[new jt(this.points[0],i,h,v,!0),new jt(v,c,l,this.points[3],!0)]};function $p(e,i){var a=e.points[0][i],l=e.points[e.points.length-1][i];if(a>l){var h=l;l=a,a=h}for(var c=Hb(3*e.a[i],2*e.b[i],e.c[i]),v=0;v<c.length;v+=1)if(c[v]>0&&c[v]<1){var A=e.point(c[v])[i];A<a?a=A:A>l&&(l=A)}return{min:a,max:l}}jt.prototype.bounds=function(){return{x:$p(this,0),y:$p(this,1)}},jt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function kn(e,i,a){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+a)/2,t1:i,t2:a}}function zp(e){var i=e.bez.split(.5);return[kn(i[0],e.t1,e.t),kn(i[1],e.t,e.t2)]}function Gb(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function ta(e,i,a,l,h,c){if(Gb(e,i)){if(a>=c||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){h.push([e.t,i.t]);return}var v=zp(e),A=zp(i);ta(v[0],A[0],a+1,l,h,c),ta(v[0],A[1],a+1,l,h,c),ta(v[1],A[0],a+1,l,h,c),ta(v[1],A[1],a+1,l,h,c)}}jt.prototype.intersections=function(e,i,a){i===void 0&&(i=2),a===void 0&&(a=7);var l=[];return ta(kn(this,0,1),kn(e,0,1),0,i,l,a),l},jt.shapeSegment=function(e,i){var a=(i+1)%e.length();return new jt(e.v[i],e.o[i],e.i[a],e.v[a],!0)},jt.shapeSegmentInverted=function(e,i){var a=(i+1)%e.length();return new jt(e.v[a],e.i[a],e.o[i],e.v[i],!0)};function Od(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function wn(e,i,a,l){var h=[e[0],e[1],1],c=[i[0],i[1],1],v=[a[0],a[1],1],A=[l[0],l[1],1],g=Od(Od(h,c),Od(v,A));return Md(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function Xo(e,i,a){return[e[0]+Math.cos(i)*a,e[1]-Math.sin(i)*a]}function Pd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function Zo(e,i){return Cn(e[0],i[0])&&Cn(e[1],i[1])}function ea(){}L([ir],ea),ea.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=at.getProp(e,i.s,0,null,this),this.frequency=at.getProp(e,i.r,0,null,this),this.pointsType=at.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Vp(e,i,a,l,h,c,v){var A=a-Math.PI/2,g=a+Math.PI/2,k=i[0]+Math.cos(a)*l*h,R=i[1]-Math.sin(a)*l*h;e.setTripleAt(k,R,k+Math.cos(A)*c,R-Math.sin(A)*c,k+Math.cos(g)*v,R-Math.sin(g)*v,e.length())}function Yb(e,i){var a=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*a[0]-Math.sin(l)*a[1],Math.sin(l)*a[0]+Math.cos(l)*a[1]];return h}function Wb(e,i){var a=i===0?e.length()-1:i-1,l=(i+1)%e.length(),h=e.v[a],c=e.v[l],v=Yb(h,c);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function Bp(e,i,a,l,h,c,v){var A=Wb(i,a),g=i.v[a%i._length],k=i.v[a===0?i._length-1:a-1],R=i.v[(a+1)%i._length],G=c===2?Math.sqrt(Math.pow(g[0]-k[0],2)+Math.pow(g[1]-k[1],2)):0,T=c===2?Math.sqrt(Math.pow(g[0]-R[0],2)+Math.pow(g[1]-R[1],2)):0;Vp(e,i.v[a%i._length],A,v,l,T/((h+1)*2),G/((h+1)*2),c)}function jb(e,i,a,l,h,c){for(var v=0;v<l;v+=1){var A=(v+1)/(l+1),g=h===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,k=i.normalAngle(A),R=i.point(A);Vp(e,R,k,c,a,g/((l+1)*2),g/((l+1)*2),h),c=-c}return c}ea.prototype.processPath=function(e,i,a,l){var h=e._length,c=ue.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var v=-1,A=jt.shapeSegment(e,0);Bp(c,e,0,i,a,l,v);for(var g=0;g<h;g+=1)v=jb(c,A,i,a,l,-v),g===h-1&&!e.c?A=null:A=jt.shapeSegment(e,(g+1)%h),Bp(c,e,g+1,i,a,l,v);return c},ea.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==0){var k,R;for(a=0;a<l;a+=1){if(k=this.shapes[a],R=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(R.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,c=k.shape.paths._length,h=0;h<c;h+=1)R.addShape(this.processPath(i[h],v,A,g));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Dd(e,i,a){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[Xo(e,l,a),Xo(i,l,a)]}function Qo(e,i){var a,l,h,c,v,A,g;g=Dd(e.points[0],e.points[1],i),a=g[0],l=g[1],g=Dd(e.points[1],e.points[2],i),h=g[0],c=g[1],g=Dd(e.points[2],e.points[3],i),v=g[0],A=g[1];var k=wn(a,l,h,c);k===null&&(k=l);var R=wn(v,A,h,c);return R===null&&(R=v),new jt(a,k,R,A)}function Up(e,i,a,l,h){var c=i.points[3],v=a.points[0];if(l===3||Zo(c,v))return c;if(l===2){var A=-i.tangentAngle(1),g=-a.tangentAngle(0)+Math.PI,k=wn(c,Xo(c,A+Math.PI/2,100),v,Xo(v,A+Math.PI/2,100)),R=k?Pd(k,c):Pd(c,v)/2,G=Xo(c,A,2*R*me);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=Xo(v,g,2*R*me),e.setTripleAt(v[0],v[1],v[0],v[1],G[0],G[1],e.length()),v}var T=Zo(c,i.points[2])?i.points[0]:i.points[2],M=Zo(v,a.points[1])?a.points[3]:a.points[1],D=wn(T,c,v,M);return D&&Pd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function Hp(e,i){var a=e.intersections(i);return a.length&&Cn(a[0][0],1)&&a.shift(),a.length?a[0]:null}function Gp(e,i){var a=e.slice(),l=i.slice(),h=Hp(e[e.length-1],i[0]);return h&&(a[e.length-1]=e[e.length-1].split(h[0])[0],l[0]=i[0].split(h[1])[1]),e.length>1&&i.length>1&&(h=Hp(e[0],i[i.length-1]),h)?[[e[0].split(h[0])[0]],[i[i.length-1].split(h[1])[1]]]:[a,l]}function Kb(e){for(var i,a=1;a<e.length;a+=1)i=Gp(e[a-1],e[a]),e[a-1]=i[0],e[a]=i[1];return e.length>1&&(i=Gp(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function Yp(e,i){var a=e.inflectionPoints(),l,h,c,v;if(a.length===0)return[Qo(e,i)];if(a.length===1||Cn(a[1],1))return c=e.split(a[0]),l=c[0],h=c[1],[Qo(l,i),Qo(h,i)];c=e.split(a[0]),l=c[0];var A=(a[1]-a[0])/(1-a[0]);return c=c[1].split(A),v=c[0],h=c[1],[Qo(l,i),Qo(v,i),Qo(h,i)]}function ra(){}L([ir],ra),ra.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this.miterLimit=at.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},ra.prototype.processPath=function(e,i,a,l){var h=ue.newElement();h.c=e.c;var c=e.length();e.c||(c-=1);var v,A,g,k=[];for(v=0;v<c;v+=1)g=jt.shapeSegment(e,v),k.push(Yp(g,i));if(!e.c)for(v=c-1;v>=0;v-=1)g=jt.shapeSegmentInverted(e,v),k.push(Yp(g,i));k=Kb(k);var R=null,G=null;for(v=0;v<k.length;v+=1){var T=k[v];for(G&&(R=Up(h,G,T[0],a,l)),G=T[T.length-1],A=0;A<T.length;A+=1)g=T[A],R&&Zo(g.points[0],R)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],h.length()),h.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],h.length()),R=g.points[3]}return k.length&&Up(h,G,k[0][0],a,l),h},ra.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.amount.v,A=this.miterLimit.v,g=this.lineJoin;if(v!==0){var k,R;for(a=0;a<l;a+=1){if(k=this.shapes[a],R=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(R.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,c=k.shape.paths._length,h=0;h<c;h+=1)R.addShape(this.processPath(i[h],v,g,A));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Wp(e){for(var i=e.fStyle?e.fStyle.split(" "):[],a="normal",l="normal",h=i.length,c,v=0;v<h;v+=1)switch(c=i[v].toLowerCase(),c){case"italic":l="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:l,weight:e.fWeight||a}}var ao=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var l=127988,h=917631,c=917601,v=917626,A=65039,g=8205,k=127462,R=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function T(I){var P=I.split(","),f,y=P.length,Y=[];for(f=0;f<y;f+=1)P[f]!=="sans-serif"&&P[f]!=="monospace"&&Y.push(P[f]);return Y.join(",")}function M(I,P){var f=x("span");f.setAttribute("aria-hidden",!0),f.style.fontFamily=P;var y=x("span");y.innerText="giItT1WQy@!-/#",f.style.position="absolute",f.style.left="-10000px",f.style.top="-10000px",f.style.fontSize="300px",f.style.fontVariant="normal",f.style.fontStyle="normal",f.style.fontWeight="normal",f.style.letterSpacing="0",f.appendChild(y),document.body.appendChild(f);var Y=y.offsetWidth;return y.style.fontFamily=T(I)+", "+P,{node:y,w:Y,parent:f}}function D(){var I,P=this.fonts.length,f,y,Y=P;for(I=0;I<P;I+=1)this.fonts[I].loaded?Y-=1:this.fonts[I].fOrigin==="n"||this.fonts[I].origin===0?this.fonts[I].loaded=!0:(f=this.fonts[I].monoCase.node,y=this.fonts[I].monoCase.w,f.offsetWidth!==y?(Y-=1,this.fonts[I].loaded=!0):(f=this.fonts[I].sansCase.node,y=this.fonts[I].sansCase.w,f.offsetWidth!==y&&(Y-=1,this.fonts[I].loaded=!0)),this.fonts[I].loaded&&(this.fonts[I].sansCase.parent.parentNode.removeChild(this.fonts[I].sansCase.parent),this.fonts[I].monoCase.parent.parentNode.removeChild(this.fonts[I].monoCase.parent)));Y!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function O(I,P){var f=document.body&&P?"svg":"canvas",y,Y=Wp(I);if(f==="svg"){var $=Tt("text");$.style.fontSize="100px",$.setAttribute("font-family",I.fFamily),$.setAttribute("font-style",Y.style),$.setAttribute("font-weight",Y.weight),$.textContent="1",I.fClass?($.style.fontFamily="inherit",$.setAttribute("class",I.fClass)):$.style.fontFamily=I.fFamily,P.appendChild($),y=$}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=Y.style+" "+Y.weight+" 100px "+I.fFamily,y=nt}function ft(Et){return f==="svg"?(y.textContent=Et,y.getComputedTextLength()):y.measureText(Et).width}return{measureText:ft}}function V(I,P){if(!I){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=I.list;return}if(!document.body){this.isLoaded=!0,I.list.forEach(function(Re){Re.helper=O(Re),Re.cache={}}),this.fonts=I.list;return}var f=I.list,y,Y=f.length,$=Y;for(y=0;y<Y;y+=1){var nt=!0,ft,Et;if(f[y].loaded=!1,f[y].monoCase=M(f[y].fFamily,"monospace"),f[y].sansCase=M(f[y].fFamily,"sans-serif"),!f[y].fPath)f[y].loaded=!0,$-=1;else if(f[y].fOrigin==="p"||f[y].origin===3){if(ft=document.querySelectorAll('style[f-forigin="p"][f-family="'+f[y].fFamily+'"], style[f-origin="3"][f-family="'+f[y].fFamily+'"]'),ft.length>0&&(nt=!1),nt){var Rt=x("style");Rt.setAttribute("f-forigin",f[y].fOrigin),Rt.setAttribute("f-origin",f[y].origin),Rt.setAttribute("f-family",f[y].fFamily),Rt.type="text/css",Rt.innerText="@font-face {font-family: "+f[y].fFamily+"; font-style: normal; src: url('"+f[y].fPath+"');}",P.appendChild(Rt)}}else if(f[y].fOrigin==="g"||f[y].origin===1){for(ft=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<ft.length;Et+=1)ft[Et].href.indexOf(f[y].fPath)!==-1&&(nt=!1);if(nt){var Mt=x("link");Mt.setAttribute("f-forigin",f[y].fOrigin),Mt.setAttribute("f-origin",f[y].origin),Mt.type="text/css",Mt.rel="stylesheet",Mt.href=f[y].fPath,document.body.appendChild(Mt)}}else if(f[y].fOrigin==="t"||f[y].origin===2){for(ft=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<ft.length;Et+=1)f[y].fPath===ft[Et].src&&(nt=!1);if(nt){var Jt=x("link");Jt.setAttribute("f-forigin",f[y].fOrigin),Jt.setAttribute("f-origin",f[y].origin),Jt.setAttribute("rel","stylesheet"),Jt.setAttribute("href",f[y].fPath),P.appendChild(Jt)}}f[y].helper=O(f[y],P),f[y].cache={},this.fonts.push(f[y])}$===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function N(I){if(I){this.chars||(this.chars=[]);var P,f=I.length,y,Y=this.chars.length,$;for(P=0;P<f;P+=1){for(y=0,$=!1;y<Y;)this.chars[y].style===I[P].style&&this.chars[y].fFamily===I[P].fFamily&&this.chars[y].ch===I[P].ch&&($=!0),y+=1;$||(this.chars.push(I[P]),Y+=1)}}}function C(I,P,f){for(var y=0,Y=this.chars.length;y<Y;){if(this.chars[y].ch===I&&this.chars[y].style===P&&this.chars[y].fFamily===f)return this.chars[y];y+=1}return(typeof I=="string"&&I.charCodeAt(0)!==13||!I)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",I,P,f)),i}function E(I,P,f){var y=this.getFontByName(P),Y=I;if(!y.cache[Y]){var $=y.helper;if(I===" "){var nt=$.measureText("|"+I+"|"),ft=$.measureText("||");y.cache[Y]=(nt-ft)/100}else y.cache[Y]=$.measureText(I)/100}return y.cache[Y]*f}function S(I){for(var P=0,f=this.fonts.length;P<f;){if(this.fonts[P].fName===I)return this.fonts[P];P+=1}return this.fonts[0]}function w(I){var P=0,f=I.charCodeAt(0);if(f>=55296&&f<=56319){var y=I.charCodeAt(1);y>=56320&&y<=57343&&(P=(f-55296)*1024+y-56320+65536)}return P}function F(I,P){var f=I.toString(16)+P.toString(16);return G.indexOf(f)!==-1}function H(I){return I===g}function W(I){return I===A}function et(I){var P=w(I);return P>=k&&P<=R}function yt(I){return et(I.substr(0,2))&&et(I.substr(2,2))}function pt(I){return a.indexOf(I)!==-1}function ot(I,P){var f=w(I.substr(P,2));if(f!==l)return!1;var y=0;for(P+=2;y<5;){if(f=w(I.substr(P,2)),f<c||f>v)return!1;y+=1,P+=2}return w(I.substr(P,2))===h}function xt(){this.isLoaded=!0}var ct=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)};ct.isModifier=F,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=et,ct.isCombinedCharacter=pt,ct.isRegionalFlag=ot,ct.isVariationSelector=W,ct.BLACK_FLAG_CODE_POINT=l;var J={addChars:N,addFonts:V,getCharData:C,getFontByName:S,measureText:E,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=J,ct}();function jp(e){this.animationData=e}jp.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function qb(e){return new jp(e)}function Nn(){}Nn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},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(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?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 i,a=this.renderableComponents.length;for(i=0;i<a;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Fd=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function Xb(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function Zb(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function Qb(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function Jb(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function ty(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function ey(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function ry(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function iy(){this.p={}}function Kp(e,i){var a=e.ef||[];this.effectElements=[];var l,h=a.length,c;for(l=0;l<h;l+=1)c=new ia(a[l],i),this.effectElements.push(c)}function ia(e,i){this.init(e,i)}L([le],ia),ia.prototype.getValue=ia.prototype.iterateDynamicProperties,ia.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,l=this.data.ef.length,h,c=this.data.ef;for(a=0;a<l;a+=1){switch(h=null,c[a].ty){case 0:h=new Xb(c[a],i,this);break;case 1:h=new Zb(c[a],i,this);break;case 2:h=new Qb(c[a],i,this);break;case 3:h=new Jb(c[a],i,this);break;case 4:case 7:h=new ry(c[a],i,this);break;case 10:h=new ty(c[a],i,this);break;case 11:h=new ey(c[a],i,this);break;case 5:h=new Kp(c[a],i,this);break;default:h=new iy(c[a],i,this);break}h&&this.effectElements.push(h)}};function Ti(){}Ti.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,a=this.data.masksProperties.length;i<a;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Ep();if(i){var a=i("layer"),l=i("effects"),h=i("shape"),c=i("text"),v=i("comp");this.layerInterface=a(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var A=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(A),this.data.ty===0||this.data.xt?this.compInterface=v(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=Fd(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=i},initBaseData:function(i,a,l){this.globalData=a,this.comp=l,this.data=i,this.layerId=Ne(),this.data.sr||(this.data.sr=1),this.effectsManager=new Kp(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function xi(){}xi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,a){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(a||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function Ai(e,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,a)}Ai.prototype.prepareFrame=function(){},L([Nn,Ti,xi],Ai),Ai.prototype.getBaseElement=function(){return null},Ai.prototype.renderFrame=function(){},Ai.prototype.destroy=function(){},Ai.prototype.initExpressions=function(){var e=Ep();if(e){var i=e("footage");this.layerInterface=i(this)}},Ai.prototype.getFootageData=function(){return this.footageData};function Le(e,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,a),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Le.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},L([Nn,Ti,xi],Le),Le.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Le.prototype.show=function(){},Le.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Le.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Le.prototype.resume=function(){this._canPlay=!0},Le.prototype.setRate=function(e){this.audio.rate(e)},Le.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Le.prototype.getBaseElement=function(){return null},Le.prototype.destroy=function(){},Le.prototype.sourceRectAtTime=function(){},Le.prototype.initExpressions=function(){};function ve(){}ve.prototype.checkLayers=function(e){var i,a=this.layers.length,l;for(this.completeLayers=!0,i=a-1;i>=0;i-=1)this.elements[i]||(l=this.layers[i],l.ip-l.st<=e-this.layers[i].st&&l.op-l.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},ve.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},ve.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ve.prototype.createAudio=function(e){return new Le(e,this.globalData,this)},ve.prototype.createFootage=function(e){return new Ai(e,this.globalData,this)},ve.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},ve.prototype.includeLayers=function(e){this.completeLayers=!1;var i,a=e.length,l,h=this.layers.length;for(i=0;i<a;i+=1)for(l=0;l<h;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},ve.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},ve.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ve.prototype.buildElementParenting=function(e,i,a){for(var l=this.elements,h=this.layers,c=0,v=h.length;c<v;)h[c].ind==i&&(!l[c]||l[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(a.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,a):e.setHierarchy(a))),c+=1},ve.prototype.addPendingElement=function(e){this.pendingElements.push(e)},ve.prototype.searchExtraCompositions=function(e){var i,a=e.length;for(i=0;i<a;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},ve.prototype.getElementById=function(e){var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},ve.prototype.getElementByPath=function(e){var i=e.shift(),a;if(typeof i=="number")a=this.elements[i];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===i){a=this.elements[l];break}}return e.length===0?a:a.getElementByPath(e)},ve.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new ao,this.globalData.slotManager=qb(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var oy={TRANSFORM_EFFECT:"transformEFfect"};function Jo(){}Jo.prototype={initTransform:function(){var i=new fe;this.finalTransform={mProp:this.data.ks?Rd.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,a=this.finalTransform.mat,l=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<h;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,a.cloneFromProps(i),l=0;l<h;l+=1)a.multiply(this.hierarchy[l].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var i=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<a;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),i=1;i<a;i+=1){var h=this.localTransforms[i].matrix;l.multiply(h)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(i=0;i<a;i+=1)c*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(oy.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new fe;var a=0,l=i.length;for(a=0;a<l;a+=1)this.localTransforms.push(i[a])}}},globalToLocal:function(i){var a=[];a.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&a.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,v=a.length,A;for(c=0;c<v;c+=1)A=a[c].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new fe};function no(e,i,a){this.data=e,this.element=i,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,h,c=this.masksProperties?this.masksProperties.length:0;this.viewData=it(c),this.solidPath="";var v,A=this.masksProperties,g=0,k=[],R,G,T=Ne(),M,D,O,V,N="clipPath",C="clip-path";for(h=0;h<c;h+=1)if((A[h].mode!=="a"&&A[h].mode!=="n"||A[h].inv||A[h].o.k!==100||A[h].o.x)&&(N="mask",C="mask"),(A[h].mode==="s"||A[h].mode==="i")&&g===0?(M=Tt("rect"),M.setAttribute("fill","#ffffff"),M.setAttribute("width",this.element.comp.data.w||0),M.setAttribute("height",this.element.comp.data.h||0),k.push(M)):M=null,v=Tt("path"),A[h].mode==="n")this.viewData[h]={op:at.getProp(this.element,A[h].o,0,.01,this.element),prop:Sn.getShapeProp(this.element,A[h],3),elem:v,lastPath:""},l.appendChild(v);else{g+=1,v.setAttribute("fill",A[h].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var E;if(A[h].x.k!==0?(N="mask",C="mask",V=at.getProp(this.element,A[h].x,0,null,this.element),E=Ne(),D=Tt("filter"),D.setAttribute("id",E),O=Tt("feMorphology"),O.setAttribute("operator","erode"),O.setAttribute("in","SourceGraphic"),O.setAttribute("radius","0"),D.appendChild(O),l.appendChild(D),v.setAttribute("stroke",A[h].mode==="s"?"#000000":"#ffffff")):(O=null,V=null),this.storedData[h]={elem:v,x:V,expan:O,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},A[h].mode==="i"){G=k.length;var S=Tt("g");for(R=0;R<G;R+=1)S.appendChild(k[R]);var w=Tt("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",T+"_"+g),w.appendChild(v),l.appendChild(w),S.setAttribute("mask","url("+b()+"#"+T+"_"+g+")"),k.length=0,k.push(S)}else k.push(v);A[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:v,lastPath:"",op:at.getProp(this.element,A[h].o,0,.01,this.element),prop:Sn.getShapeProp(this.element,A[h],3),invRect:M},this.viewData[h].prop.k||this.drawPath(A[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=Tt(N),c=k.length,h=0;h<c;h+=1)this.maskElement.appendChild(k[h]);g>0&&(this.maskElement.setAttribute("id",T),this.element.maskedElement.setAttribute(C,"url("+b()+"#"+T+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}no.prototype.getMaskProperty=function(e){return this.viewData[e].prop},no.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,a,l=this.masksProperties.length;for(a=0;a<l;a+=1)if((this.viewData[a].prop._mdf||e)&&this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]),(this.viewData[a].op._mdf||e)&&this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v),this.masksProperties[a].mode!=="n"&&(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[a].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[a].x&&(this.storedData[a].x._mdf||e))){var h=this.storedData[a].expan;this.storedData[a].x.v<0?(this.storedData[a].lastOperator!=="erode"&&(this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+b()+"#"+this.storedData[a].filterId+")")),h.setAttribute("radius",-this.storedData[a].x.v)):(this.storedData[a].lastOperator!=="dilate"&&(this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null)),this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2))}},no.prototype.getMaskelement=function(){return this.maskElement},no.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},no.prototype.drawPath=function(e,i,a){var l=" M"+i.v[0][0]+","+i.v[0][1],h,c;for(c=i._length,h=1;h<c;h+=1)l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[h][0]+","+i.i[h][1]+" "+i.v[h][0]+","+i.v[h][1];if(i.c&&c>1&&(l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),a.lastPath!==l){var v="";a.elem&&(i.c&&(v=e.inv?this.solidPath+l:l),a.elem.setAttribute("d",v)),a.lastPath=l}},no.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var oa=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=a;function i(l,h){var c=Tt("filter");return c.setAttribute("id",l),h!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function a(){var l=Tt("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 e}(),qp=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),Ln={},Xp="filter_result_";function $d(e){var i,a="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=Ne(),c=oa.createFilter(h,!0),v=0;this.filters=[];var A;for(i=0;i<l;i+=1){A=null;var g=e.data.ef[i].ty;if(Ln[g]){var k=Ln[g].effect;A=new k(c,e.effectsManager.effectElements[i],e,Xp+v,a),a=Xp+v,Ln[g].countsAsEffect&&(v+=1)}A&&this.filters.push(A)}v&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+b()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}$d.prototype.renderFrame=function(e){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(e)},$d.prototype.getEffects=function(e){var i,a=this.filters.length,l=[];for(i=0;i<a;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function KA(e,i,a){Ln[e]={effect:i,countsAsEffect:a}}function sa(){}sa.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var a=Tt("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var l=Tt("clipPath"),h=Tt("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=Ne();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var v=Tt("g");v.setAttribute("clip-path","url("+b()+"#"+c+")"),v.appendChild(this.layerElement),this.transformedElement=v,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+b()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new no(this.data,this,this.globalData),this.renderableEffectsManager=new $d(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var a=this.layerId+"_"+i,l,h,c,v;if(i===1||i===3){var A=Tt("mask");A.setAttribute("id",a),A.setAttribute("mask-type",i===3?"luminance":"alpha"),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(c),this.globalData.defs.appendChild(A),!qp.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=Ne(),h=oa.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(oa.createAlphaToLuminanceFilter()),v=Tt("g"),v.appendChild(c),A.appendChild(v),v.setAttribute("filter","url("+b()+"#"+l+")"))}else if(i===2){var g=Tt("mask");g.setAttribute("id",a),g.setAttribute("mask-type","alpha");var k=Tt("g");g.appendChild(k),l=Ne(),h=oa.createFilter(l);var R=Tt("feComponentTransfer");R.setAttribute("in","SourceGraphic"),h.appendChild(R);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),R.appendChild(G),this.globalData.defs.appendChild(h);var T=Tt("rect");T.setAttribute("width",this.comp.data.w),T.setAttribute("height",this.comp.data.h),T.setAttribute("x","0"),T.setAttribute("y","0"),T.setAttribute("fill","#ffffff"),T.setAttribute("opacity","0"),k.setAttribute("filter","url("+b()+"#"+l+")"),k.appendChild(T),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(c),qp.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(oa.createAlphaToLuminanceFilter()),v=Tt("g"),k.appendChild(T),v.appendChild(this.layerElement),k.appendChild(v)),this.globalData.defs.appendChild(g)}this.matteMasks[i]=a}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+b()+"#"+i+")")}};function ts(){}ts.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function aa(){}(function(){var e={initElement:function(a,l,h){this.initFrame(),this.initBaseData(a,l,h),this.initTransform(a,l,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};L([Nn,K(e)],aa)})();function na(e,i,a){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}L([Ti,Jo,sa,ts,xi,aa],na),na.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},na.prototype.sourceRectAtTime=function(){return this.sourceRect};function sy(e,i){this.elem=e,this.pos=i}function Zp(){}Zp.prototype={addShapeToModifiers:function(i){var a,l=this.shapeModifiers.length;for(a=0;a<l;a+=1)this.shapeModifiers[a].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var a=0,l=this.shapeModifiers.length;a<l;)if(this.shapeModifiers[a].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,a=this.shapes.length;for(i=0;i<a;i+=1)this.shapes[i].sh.reset();a=this.shapeModifiers.length;var l;for(i=a-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var a=this.processedElements,l=0,h=a.length;l<h;){if(a[l].elem===i)return a[l].pos;l+=1}return 0},addProcessedElement:function(i,a){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===i){l[h].pos=a;return}l.push(new sy(i,a))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var Qp={1:"butt",2:"round",3:"square"},Jp={1:"miter",2:"round",3:"bevel"};function tm(e,i,a){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=a,this.lvl=i,this._isAnimated=!!a.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}tm.prototype.setAsAnimated=function(){this._isAnimated=!0};function em(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}em.prototype.reset=function(){this.d="",this._mdf=!1};function Rn(e,i,a,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=X("float32",i.length?i.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(l);var h,c=i.length||0,v;for(h=0;h<c;h+=1)v=at.getProp(e,i[h].v,0,0,this),this.k=v.k||this.k,this.dataProps[h]={n:i[h].n,p:v};this.k||this.getValue(!0),this._isAnimated=this.k}Rn.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,a=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<a;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},L([le],Rn);function rm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.w=at.getProp(e,i.w,0,null,this),this.d=new Rn(e,i.d||{},"svg",this),this.c=at.getProp(e,i.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}L([le],rm);function im(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.c=at.getProp(e,i.c,1,255,this),this.style=a}L([le],im);function om(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=a}L([le],om);function la(e,i,a){this.data=i,this.c=X("uint8c",i.p*4);var l=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=X("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(a),this.prop=at.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}la.prototype.comparePoints=function(e,i){for(var a=0,l=this.o.length/2,h;a<l;){if(h=Math.abs(e[a*4]-e[i*4+a*2]),h>.01)return!1;a+=1}return!0},la.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},la.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,a=this.data.p*4,l,h;for(i=0;i<a;i+=1)l=i%4===0?100:255,h=Math.round(this.prop.v[i]*l),this.c[i]!==h&&(this.c[i]=h,this._cmdf=!e);if(this.o.length)for(a=this.prop.v.length,i=this.data.p*4;i<a;i+=1)l=i%2===0?100:1,h=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==h&&(this.o[i-this.data.p*4]=h,this._omdf=!e);this._mdf=!e}},L([le],la);function es(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,a)}es.prototype.initGradientData=function(e,i,a){this.o=at.getProp(e,i.o,0,.01,this),this.s=at.getProp(e,i.s,1,null,this),this.e=at.getProp(e,i.e,1,null,this),this.h=at.getProp(e,i.h||{k:0},0,.01,this),this.a=at.getProp(e,i.a||{k:0},0,kt,this),this.g=new la(e,i.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,i),this.setGradientOpacity(i,a),this._isAnimated=!!this._isAnimated},es.prototype.setGradientData=function(e,i){var a=Ne(),l=Tt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",a),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var h=[],c,v,A;for(A=i.g.p*4,v=0;v<A;v+=4)c=Tt("stop"),l.appendChild(c),h.push(c);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+b()+"#"+a+")"),this.gf=l,this.cst=h},es.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var a,l,h,c=Tt("mask"),v=Tt("path");c.appendChild(v);var A=Ne(),g=Ne();c.setAttribute("id",g);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",A),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),h=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var R=this.stops;for(l=e.g.p*4;l<h;l+=2)a=Tt("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(a),R.push(a);v.setAttribute(e.ty==="gf"?"fill":"stroke","url("+b()+"#"+A+")"),e.ty==="gs"&&(v.setAttribute("stroke-linecap",Qp[e.lc||2]),v.setAttribute("stroke-linejoin",Jp[e.lj||2]),e.lj===1&&v.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=c,this.ost=R,this.maskId=g,i.msElem=v}},L([le],es);function sm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(e,i.w,0,null,this),this.d=new Rn(e,i.d||{},"svg",this),this.initGradientData(e,i,a),this._isAnimated=!!this._isAnimated}L([es,le],sm);function ay(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function ny(e,i,a){this.transform={mProps:e,op:i,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var am=function(i,a,l,h){if(a===0)return"";var c=i.o,v=i.i,A=i.v,g,k=" M"+h.applyToPointStringified(A[0][0],A[0][1]);for(g=1;g<a;g+=1)k+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[g][0],v[g][1])+" "+h.applyToPointStringified(A[g][0],A[g][1]);return l&&a&&(k+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[0][0],v[0][1])+" "+h.applyToPointStringified(A[0][0],A[0][1]),k+="z"),k},ly=function(){var e=new fe,i=new fe,a={createRenderFunction:l};function l(G){switch(G.ty){case"fl":return A;case"gf":return k;case"gs":return g;case"st":return R;case"sh":case"el":case"rc":case"sr":return v;case"tr":return h;case"no":return c;default:return null}}function h(G,T,M){(M||T.transform.op._mdf)&&T.transform.container.setAttribute("opacity",T.transform.op.v),(M||T.transform.mProps._mdf)&&T.transform.container.setAttribute("transform",T.transform.mProps.v.to2dCSS())}function c(){}function v(G,T,M){var D,O,V,N,C,E,S=T.styles.length,w=T.lvl,F,H,W,et;for(E=0;E<S;E+=1){if(N=T.sh._mdf||M,T.styles[E].lvl<w){for(H=i.reset(),W=w-T.styles[E].lvl,et=T.transformers.length-1;!N&&W>0;)N=T.transformers[et].mProps._mdf||N,W-=1,et-=1;if(N)for(W=w-T.styles[E].lvl,et=T.transformers.length-1;W>0;)H.multiply(T.transformers[et].mProps.v),W-=1,et-=1}else H=e;if(F=T.sh.paths,O=F._length,N){for(V="",D=0;D<O;D+=1)C=F.shapes[D],C&&C._length&&(V+=am(C,C._length,C.c,H));T.caches[E]=V}else V=T.caches[E];T.styles[E].d+=G.hd===!0?"":V,T.styles[E]._mdf=N||T.styles[E]._mdf}}function A(G,T,M){var D=T.style;(T.c._mdf||M)&&D.pElem.setAttribute("fill","rgb("+ne(T.c.v[0])+","+ne(T.c.v[1])+","+ne(T.c.v[2])+")"),(T.o._mdf||M)&&D.pElem.setAttribute("fill-opacity",T.o.v)}function g(G,T,M){k(G,T,M),R(G,T,M)}function k(G,T,M){var D=T.gf,O=T.g._hasOpacity,V=T.s.v,N=T.e.v;if(T.o._mdf||M){var C=G.ty==="gf"?"fill-opacity":"stroke-opacity";T.style.pElem.setAttribute(C,T.o.v)}if(T.s._mdf||M){var E=G.t===1?"x1":"cx",S=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(S,V[1]),O&&!T.g._collapsable&&(T.of.setAttribute(E,V[0]),T.of.setAttribute(S,V[1]))}var w,F,H,W;if(T.g._cmdf||M){w=T.cst;var et=T.g.c;for(H=w.length,F=0;F<H;F+=1)W=w[F],W.setAttribute("offset",et[F*4]+"%"),W.setAttribute("stop-color","rgb("+et[F*4+1]+","+et[F*4+2]+","+et[F*4+3]+")")}if(O&&(T.g._omdf||M)){var yt=T.g.o;for(T.g._collapsable?w=T.cst:w=T.ost,H=w.length,F=0;F<H;F+=1)W=w[F],T.g._collapsable||W.setAttribute("offset",yt[F*2]+"%"),W.setAttribute("stop-opacity",yt[F*2+1])}if(G.t===1)(T.e._mdf||M)&&(D.setAttribute("x2",N[0]),D.setAttribute("y2",N[1]),O&&!T.g._collapsable&&(T.of.setAttribute("x2",N[0]),T.of.setAttribute("y2",N[1])));else{var pt;if((T.s._mdf||T.e._mdf||M)&&(pt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)),D.setAttribute("r",pt),O&&!T.g._collapsable&&T.of.setAttribute("r",pt)),T.e._mdf||T.h._mdf||T.a._mdf||M){pt||(pt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)));var ot=Math.atan2(N[1]-V[1],N[0]-V[0]),xt=T.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=pt*xt,J=Math.cos(ot+T.a.v)*ct+V[0],I=Math.sin(ot+T.a.v)*ct+V[1];D.setAttribute("fx",J),D.setAttribute("fy",I),O&&!T.g._collapsable&&(T.of.setAttribute("fx",J),T.of.setAttribute("fy",I))}}}function R(G,T,M){var D=T.style,O=T.d;O&&(O._mdf||M)&&O.dashStr&&(D.pElem.setAttribute("stroke-dasharray",O.dashStr),D.pElem.setAttribute("stroke-dashoffset",O.dashoffset[0])),T.c&&(T.c._mdf||M)&&D.pElem.setAttribute("stroke","rgb("+ne(T.c.v[0])+","+ne(T.c.v[1])+","+ne(T.c.v[2])+")"),(T.o._mdf||M)&&D.pElem.setAttribute("stroke-opacity",T.o.v),(T.w._mdf||M)&&(D.pElem.setAttribute("stroke-width",T.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",T.w.v))}return a}();function Kt(e,i,a){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,a),this.prevViewData=[]}L([Ti,Jo,sa,Zp,ts,xi,aa],Kt),Kt.prototype.initSecondaryElement=function(){},Kt.prototype.identityMatrix=new fe,Kt.prototype.buildExpressionInterface=function(){},Kt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Kt.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,a,l,h=this.stylesList.length,c,v=[],A=!1;for(l=0;l<h;l+=1){for(c=this.stylesList[l],A=!1,v.length=0,e=0;e<i;e+=1)a=this.shapes[e],a.styles.indexOf(c)!==-1&&(v.push(a),A=a._isAnimated||A);v.length>1&&A&&this.setShapesAsAnimated(v)}},Kt.prototype.setShapesAsAnimated=function(e){var i,a=e.length;for(i=0;i<a;i+=1)e[i].setAsAnimated()},Kt.prototype.createStyleElement=function(e,i){var a,l=new em(e,i),h=l.pElem;if(e.ty==="st")a=new rm(this,e,l);else if(e.ty==="fl")a=new im(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?es:sm;a=new c(this,e,l),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),h.setAttribute("mask","url("+b()+"#"+a.maskId+")"))}else e.ty==="no"&&(a=new om(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",Qp[e.lc||2]),h.setAttribute("stroke-linejoin",Jp[e.lj||2]),h.setAttribute("fill-opacity","0"),e.lj===1&&h.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&h.setAttribute("fill-rule","evenodd"),e.ln&&h.setAttribute("id",e.ln),e.cl&&h.setAttribute("class",e.cl),e.bm&&(h.style["mix-blend-mode"]=Fd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,a),a},Kt.prototype.createGroupElement=function(e){var i=new ay;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=Fd(e.bm)),i},Kt.prototype.createTransformElement=function(e,i){var a=Rd.getTransformProperty(this,e,this),l=new ny(a,a.o,i);return this.addToAnimatedContents(e,l),l},Kt.prototype.createShapeElement=function(e,i,a){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=Sn.getShapeProp(this,e,l,this),c=new tm(i,a,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Kt.prototype.addToAnimatedContents=function(e,i){for(var a=0,l=this.animatedContents.length;a<l;){if(this.animatedContents[a].element===i)return;a+=1}this.animatedContents.push({fn:ly.createRenderFunction(e),element:i,data:e})},Kt.prototype.setElementStyles=function(e){var i=e.styles,a,l=this.stylesList.length;for(a=0;a<l;a+=1)this.stylesList[a].closed||i.push(this.stylesList[a])},Kt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Kt.prototype.searchShapes=function(e,i,a,l,h,c,v){var A=[].concat(c),g,k=e.length-1,R,G,T=[],M=[],D,O,V;for(g=k;g>=0;g-=1){if(V=this.searchProcessedElement(e[g]),V?i[g]=a[V-1]:e[g]._render=v,e[g].ty==="fl"||e[g].ty==="st"||e[g].ty==="gf"||e[g].ty==="gs"||e[g].ty==="no")V?i[g].style.closed=!1:i[g]=this.createStyleElement(e[g],h),e[g]._render&&i[g].style.pElem.parentNode!==l&&l.appendChild(i[g].style.pElem),T.push(i[g].style);else if(e[g].ty==="gr"){if(!V)i[g]=this.createGroupElement(e[g]);else for(G=i[g].it.length,R=0;R<G;R+=1)i[g].prevViewData[R]=i[g].it[R];this.searchShapes(e[g].it,i[g].it,i[g].prevViewData,i[g].gr,h+1,A,v),e[g]._render&&i[g].gr.parentNode!==l&&l.appendChild(i[g].gr)}else e[g].ty==="tr"?(V||(i[g]=this.createTransformElement(e[g],l)),D=i[g].transform,A.push(D)):e[g].ty==="sh"||e[g].ty==="rc"||e[g].ty==="el"||e[g].ty==="sr"?(V||(i[g]=this.createShapeElement(e[g],A,h)),this.setElementStyles(i[g])):e[g].ty==="tm"||e[g].ty==="rd"||e[g].ty==="ms"||e[g].ty==="pb"||e[g].ty==="zz"||e[g].ty==="op"?(V?(O=i[g],O.closed=!1):(O=yi.getModifier(e[g].ty),O.init(this,e[g]),i[g]=O,this.shapeModifiers.push(O)),M.push(O)):e[g].ty==="rp"&&(V?(O=i[g],O.closed=!0):(O=yi.getModifier(e[g].ty),i[g]=O,O.init(this,e,g,i),this.shapeModifiers.push(O),v=!1),M.push(O));this.addProcessedElement(e[g],g+1)}for(k=T.length,g=0;g<k;g+=1)T[g].closed=!0;for(k=M.length,g=0;g<k;g+=1)M[g].closed=!0},Kt.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Kt.prototype.renderShape=function(){var e,i=this.animatedContents.length,a;for(e=0;e<i;e+=1)a=this.animatedContents[e],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0&&a.fn(a.data,a.element,this._isFirstFrame)},Kt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function zd(e,i,a,l,h,c){this.o=e,this.sw=i,this.sc=a,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!i,sc:!!a,fc:!!l,m:!0,p:!0}}zd.prototype.update=function(e,i,a,l,h,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var v=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,v=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,v=!0),this.sc!==a&&(this.sc=a,this._mdf.sc=!0,v=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,v=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,v=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,v=!0),v};function Se(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Se.prototype.defaultBoxWidth=[0,0],Se.prototype.copyData=function(e,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);return e},Se.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Se.prototype.searchProperty=function(){return this.searchKeyframes()},Se.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Se.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Se.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,h=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(l=0;l<h;l+=1)a!==this.keysIndex?c=this.effectsSequence[l](c,c.t):c=this.effectsSequence[l](this.currentData,c.t);i!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Se.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,a=0,l=e.length;a<=l-1&&!(a===l-1||e[a+1].t>i);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},Se.prototype.buildFinalText=function(e){for(var i=[],a=0,l=e.length,h,c,v=!1,A=!1,g="";a<l;)v=A,A=!1,h=e.charCodeAt(a),g=e.charAt(a),ao.isCombinedCharacter(h)?v=!0:h>=55296&&h<=56319?ao.isRegionalFlag(e,a)?g=e.substr(a,14):(c=e.charCodeAt(a+1),c>=56320&&c<=57343&&(ao.isModifier(h,c)?(g=e.substr(a,2),v=!0):ao.isFlagEmoji(e.substr(a,4))?g=e.substr(a,4):g=e.substr(a,2))):h>56319?(c=e.charCodeAt(a+1),ao.isVariationSelector(h)&&(v=!0)):ao.isZeroWidthJoiner(h)&&(v=!0,A=!0),v?(i[i.length-1]+=g,v=!1):i.push(g),a+=g.length;return i},Se.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,a=this.data,l=[],h,c,v,A=0,g,k=a.m.g,R=0,G=0,T=0,M=[],D=0,O=0,V,N,C=i.getFontByName(e.f),E,S=0,w=Wp(C);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var F=e.tr/1e3*e.finalSize,H;if(e.sz)for(var W=!0,et=e.sz[0],yt=e.sz[1],pt,ot;W;){ot=this.buildFinalText(e.t),pt=0,D=0,c=ot.length,F=e.tr/1e3*e.finalSize;var xt=-1;for(h=0;h<c;h+=1)H=ot[h].charCodeAt(0),v=!1,ot[h]===" "?xt=h:(H===13||H===3)&&(D=0,v=!0,pt+=e.finalLineHeight||e.finalSize*1.2),i.chars?(E=i.getCharData(ot[h],C.fStyle,C.fFamily),S=v?0:E.w*e.finalSize/100):S=i.measureText(ot[h],e.f,e.finalSize),D+S>et&&ot[h]!==" "?(xt===-1?c+=1:h=xt,pt+=e.finalLineHeight||e.finalSize*1.2,ot.splice(h,xt===h?1:0,"\r"),xt=-1,D=0):(D+=S,D+=F);pt+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<pt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=ot,c=e.finalText.length,W=!1)}D=-F,S=0;var ct=0,J;for(h=0;h<c;h+=1)if(v=!1,J=e.finalText[h],H=J.charCodeAt(0),H===13||H===3?(ct=0,M.push(D),O=D>O?D:O,D=-2*F,g="",v=!0,T+=1):g=J,i.chars?(E=i.getCharData(J,C.fStyle,i.getFontByName(e.f).fFamily),S=v?0:E.w*e.finalSize/100):S=i.measureText(g,e.f,e.finalSize),J===" "?ct+=S+F:(D+=S+F+ct,ct=0),l.push({l:S,an:S,add:R,n:v,anIndexes:[],val:g,line:T,animatorJustifyOffset:0}),k==2){if(R+=S,g===""||g===" "||h===c-1){for((g===""||g===" ")&&(R-=S);G<=h;)l[G].an=R,l[G].ind=A,l[G].extra=S,G+=1;A+=1,R=0}}else if(k==3){if(R+=S,g===""||h===c-1){for(g===""&&(R-=S);G<=h;)l[G].an=R,l[G].ind=A,l[G].extra=S,G+=1;R=0,A+=1}}else l[A].ind=A,l[A].extra=0,A+=1;if(e.l=l,O=D>O?D:O,M.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=O,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=M;var I=a.a,P,f;N=I.length;var y,Y,$=[];for(V=0;V<N;V+=1){for(P=I[V],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),Y=0,y=P.s.b,h=0;h<c;h+=1)f=l[h],f.anIndexes[V]=Y,(y==1&&f.val!==""||y==2&&f.val!==""&&f.val!==" "||y==3&&(f.n||f.val==" "||h==c-1)||y==4&&(f.n||h==c-1))&&(P.s.rn===1&&$.push(Y),Y+=1);a.a[V].s.totalChars=Y;var nt=-1,ft;if(P.s.rn===1)for(h=0;h<c;h+=1)f=l[h],nt!=f.anIndexes[V]&&(nt=f.anIndexes[V],ft=$.splice(Math.floor(Math.random()*$.length),1)[0]),f.anIndexes[V]=ft}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=C.ascent*e.finalSize/100},Se.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var a=this.copyData({},this.data.d.k[i].s);a=this.copyData(a,e),this.data.d.k[i].s=a,this.recalculate(i),this.setCurrentData(a),this.elem.addDynamicProperty(this)},Se.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},Se.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Se.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var dy=function(){var e=Math.max,i=Math.min,a=Math.floor;function l(c,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=at.getProp(c,v.s||{k:0},0,0,this),"e"in v?this.e=at.getProp(c,v.e,0,0,this):this.e={v:100},this.o=at.getProp(c,v.o||{k:0},0,0,this),this.xe=at.getProp(c,v.xe||{k:0},0,0,this),this.ne=at.getProp(c,v.ne||{k:0},0,0,this),this.sm=at.getProp(c,v.sm||{k:100},0,0,this),this.a=at.getProp(c,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(v){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,g=0,k=1,R=1;this.ne.v>0?A=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:R=1+this.xe.v/100;var G=Zs.getBezierEasing(A,g,k,R).get,T=0,M=this.finalS,D=this.finalE,O=this.data.sh;if(O===2)D===M?T=v>=D?1:0:T=e(0,i(.5/(D-M)+(v-M)/(D-M),1)),T=G(T);else if(O===3)D===M?T=v>=D?0:1:T=1-e(0,i(.5/(D-M)+(v-M)/(D-M),1)),T=G(T);else if(O===4)D===M?T=0:(T=e(0,i(.5/(D-M)+(v-M)/(D-M),1)),T<.5?T*=2:T=1-2*(T-.5)),T=G(T);else if(O===5){if(D===M)T=0;else{var V=D-M;v=i(e(0,v+.5-M),D-M);var N=-V/2+v,C=V/2;T=Math.sqrt(1-N*N/(C*C))}T=G(T)}else O===6?(D===M?T=0:(v=i(e(0,v+.5-M),D-M),T=(1+Math.cos(Math.PI+Math.PI*2*v/(D-M)))/2),T=G(T)):(v>=a(M)&&(v-M<0?T=e(0,i(i(D,1)-(M-v),1)):T=e(0,i(D-v,1))),T=G(T));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var S=.5-E*.5;T<S?T=0:(T=(T-S)/E,T>1&&(T=1))}return T*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 A=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/A,k=this.s.v/A+g,R=this.e.v/A+g;if(k>R){var G=k;k=R,R=G}this.finalS=k,this.finalE=R}},L([le],l);function h(c,v,A){return new l(c,v,A)}return{getTextSelectorProp:h}}();function cy(e,i,a){var l={propType:!1},h=at.getProp,c=i.a;this.a={r:c.r?h(e,c.r,0,kt,a):l,rx:c.rx?h(e,c.rx,0,kt,a):l,ry:c.ry?h(e,c.ry,0,kt,a):l,sk:c.sk?h(e,c.sk,0,kt,a):l,sa:c.sa?h(e,c.sa,0,kt,a):l,s:c.s?h(e,c.s,1,.01,a):l,a:c.a?h(e,c.a,1,0,a):l,o:c.o?h(e,c.o,0,.01,a):l,p:c.p?h(e,c.p,1,0,a):l,sw:c.sw?h(e,c.sw,0,0,a):l,sc:c.sc?h(e,c.sc,1,0,a):l,fc:c.fc?h(e,c.fc,1,0,a):l,fh:c.fh?h(e,c.fh,0,0,a):l,fs:c.fs?h(e,c.fs,0,.01,a):l,fb:c.fb?h(e,c.fb,0,.01,a):l,t:c.t?h(e,c.t,0,0,a):l},this.s=dy.getTextSelectorProp(e,i.s,a),this.s.t=i.s.t}function lo(e,i,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=a,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}lo.prototype.searchProperties=function(){var e,i=this._textData.a.length,a,l=at.getProp;for(e=0;e<i;e+=1)a=this._textData.a[e],this._animatorsData[e]=new cy(this._elem,a,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=l(this._elem,this._textData.m.a,1,0,this)},lo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,v=this._renderType,A=this.renderedLetters.length,g,k,R,G,T=e.l,M,D,O,V,N,C,E,S,w,F,H,W,et,yt,pt;if(this._hasMaskedPath){if(pt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var ot=pt.v;this._pathData.r.v&&(ot=ot.reverse()),M={tLength:0,segments:[]},G=ot._length-1;var xt;for(W=0,R=0;R<G;R+=1)xt=kr.buildBezierData(ot.v[R],ot.v[R+1],[ot.o[R][0]-ot.v[R][0],ot.o[R][1]-ot.v[R][1]],[ot.i[R+1][0]-ot.v[R+1][0],ot.i[R+1][1]-ot.v[R+1][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),W+=xt.segmentLength;R=G,pt.v.c&&(xt=kr.buildBezierData(ot.v[R],ot.v[0],[ot.o[R][0]-ot.v[R][0],ot.o[R][1]-ot.v[R][1]],[ot.i[0][0]-ot.v[0][0],ot.i[0][1]-ot.v[0][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),W+=xt.segmentLength),this._pathData.pi=M}if(M=this._pathData.pi,D=this._pathData.f.v,E=0,C=1,V=0,N=!0,F=M.segments,D<0&&pt.v.c)for(M.tLength<Math.abs(D)&&(D=-Math.abs(D)%M.tLength),E=F.length-1,w=F[E].points,C=w.length-1;D<0;)D+=w[C].partialLength,C-=1,C<0&&(E-=1,w=F[E].points,C=w.length-1);w=F[E].points,S=w[C-1],O=w[C],H=O.partialLength}G=T.length,g=0,k=0;var ct=e.finalSize*1.2*.714,J=!0,I,P,f,y,Y;y=l.length;var $,nt=-1,ft,Et,Rt,Mt=D,Jt=E,Re=C,Nr=-1,Me,de,Ye,Dt,ht,qr,Ii,Xr,Lr="",Zr=this.defaultPropsArray,Qr;if(e.j===2||e.j===1){var Oe=0,_i=0,Ci=e.j===2?-.5:-1,yr=0,ki=!0;for(R=0;R<G;R+=1)if(T[R].n){for(Oe&&(Oe+=_i);yr<R;)T[yr].animatorJustifyOffset=Oe,yr+=1;Oe=0,ki=!0}else{for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(ki&&e.j===2&&(_i+=I.t.v*Ci),P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?Oe+=I.t.v*$[0]*Ci:Oe+=I.t.v*$*Ci);ki=!1}for(Oe&&(Oe+=_i);yr<R;)T[yr].animatorJustifyOffset=Oe,yr+=1}for(R=0;R<G;R+=1){if(c.reset(),Me=1,T[R].n)g=0,k+=e.yOffset,k+=J?1:0,D=Mt,J=!1,this._hasMaskedPath&&(E=Jt,C=Re,w=F[E].points,S=w[C-1],O=w[C],H=O.partialLength,V=0),Lr="",Xr="",qr="",Qr="",Zr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Nr!==T[R].line){switch(e.j){case 1:D+=W-e.lineWidths[T[R].line];break;case 2:D+=(W-e.lineWidths[T[R].line])/2;break;default:break}Nr=T[R].line}nt!==T[R].ind&&(T[nt]&&(D+=T[nt].extra),D+=T[R].an/2,nt=T[R].ind),D+=a[0]*T[R].an*.005;var Er=0;for(f=0;f<y;f+=1)I=l[f].a,I.p.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?Er+=I.p.v[0]*$[0]:Er+=I.p.v[0]*$),I.a.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?Er+=I.a.v[0]*$[0]:Er+=I.a.v[0]*$);for(N=!0,this._pathData.a.v&&(D=T[0].an*.5+(W-this._pathData.f.v-T[0].an*.5-T[T.length-1].an*.5)*nt/(G-1),D+=this._pathData.f.v);N;)V+H>=D+Er||!w?(et=(D+Er-V)/O.partialLength,Et=S.point[0]+(O.point[0]-S.point[0])*et,Rt=S.point[1]+(O.point[1]-S.point[1])*et,c.translate(-a[0]*T[R].an*.005,-(a[1]*ct)*.01),N=!1):w&&(V+=O.partialLength,C+=1,C>=w.length&&(C=0,E+=1,F[E]?w=F[E].points:pt.v.c?(C=0,E=0,w=F[E].points):(V-=O.partialLength,w=null)),w&&(S=O,O=w[C],H=O.partialLength));ft=T[R].an/2-T[R].add,c.translate(-ft,0,0)}else ft=T[R].an/2-T[R].add,c.translate(-ft,0,0),c.translate(-a[0]*T[R].an*.005,-a[1]*ct*.01,0);for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),(g!==0||e.j!==0)&&(this._hasMaskedPath?$.length?D+=I.t.v*$[0]:D+=I.t.v*$:$.length?g+=I.t.v*$[0]:g+=I.t.v*$));for(e.strokeWidthAnim&&(Ye=e.sw||0),e.strokeColorAnim&&(e.sc?de=[e.sc[0],e.sc[1],e.sc[2]]:de=[0,0,0]),e.fillColorAnim&&e.fc&&(Dt=[e.fc[0],e.fc[1],e.fc[2]]),f=0;f<y;f+=1)I=l[f].a,I.a.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?c.translate(-I.a.v[0]*$[0],-I.a.v[1]*$[1],I.a.v[2]*$[2]):c.translate(-I.a.v[0]*$,-I.a.v[1]*$,I.a.v[2]*$));for(f=0;f<y;f+=1)I=l[f].a,I.s.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?c.scale(1+(I.s.v[0]-1)*$[0],1+(I.s.v[1]-1)*$[1],1):c.scale(1+(I.s.v[0]-1)*$,1+(I.s.v[1]-1)*$,1));for(f=0;f<y;f+=1){if(I=l[f].a,P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),I.sk.propType&&($.length?c.skewFromAxis(-I.sk.v*$[0],I.sa.v*$[1]):c.skewFromAxis(-I.sk.v*$,I.sa.v*$)),I.r.propType&&($.length?c.rotateZ(-I.r.v*$[2]):c.rotateZ(-I.r.v*$)),I.ry.propType&&($.length?c.rotateY(I.ry.v*$[1]):c.rotateY(I.ry.v*$)),I.rx.propType&&($.length?c.rotateX(I.rx.v*$[0]):c.rotateX(I.rx.v*$)),I.o.propType&&($.length?Me+=(I.o.v*$[0]-Me)*$[0]:Me+=(I.o.v*$-Me)*$),e.strokeWidthAnim&&I.sw.propType&&($.length?Ye+=I.sw.v*$[0]:Ye+=I.sw.v*$),e.strokeColorAnim&&I.sc.propType)for(ht=0;ht<3;ht+=1)$.length?de[ht]+=(I.sc.v[ht]-de[ht])*$[0]:de[ht]+=(I.sc.v[ht]-de[ht])*$;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(ht=0;ht<3;ht+=1)$.length?Dt[ht]+=(I.fc.v[ht]-Dt[ht])*$[0]:Dt[ht]+=(I.fc.v[ht]-Dt[ht])*$;I.fh.propType&&($.length?Dt=yp(Dt,I.fh.v*$[0]):Dt=yp(Dt,I.fh.v*$)),I.fs.propType&&($.length?Dt=gp(Dt,I.fs.v*$[0]):Dt=gp(Dt,I.fs.v*$)),I.fb.propType&&($.length?Dt=bp(Dt,I.fb.v*$[0]):Dt=bp(Dt,I.fb.v*$))}}for(f=0;f<y;f+=1)I=l[f].a,I.p.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),this._hasMaskedPath?$.length?c.translate(0,I.p.v[1]*$[0],-I.p.v[2]*$[1]):c.translate(0,I.p.v[1]*$,-I.p.v[2]*$):$.length?c.translate(I.p.v[0]*$[0],I.p.v[1]*$[1],-I.p.v[2]*$[2]):c.translate(I.p.v[0]*$,I.p.v[1]*$,-I.p.v[2]*$));if(e.strokeWidthAnim&&(qr=Ye<0?0:Ye),e.strokeColorAnim&&(Ii="rgb("+Math.round(de[0]*255)+","+Math.round(de[1]*255)+","+Math.round(de[2]*255)+")"),e.fillColorAnim&&e.fc&&(Xr="rgb("+Math.round(Dt[0]*255)+","+Math.round(Dt[1]*255)+","+Math.round(Dt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,a[1]*ct*.01+k,0),this._pathData.p.v){yt=(O.point[1]-S.point[1])/(O.point[0]-S.point[0]);var co=Math.atan(yt)*180/Math.PI;O.point[0]<S.point[0]&&(co+=180),c.rotate(-co*Math.PI/180)}c.translate(Et,Rt,0),D-=a[0]*T[R].an*.005,T[R+1]&&nt!==T[R+1].ind&&(D+=T[R].an/2,D+=e.tr*.001*e.finalSize)}else{switch(c.translate(g,k,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(T[R].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[R].line]),0,0);break;case 2:c.translate(T[R].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[R].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(ft,0,0),c.translate(a[0]*T[R].an*.005,a[1]*ct*.01,0),g+=T[R].l+e.tr*.001*e.finalSize}v==="html"?Lr=c.toCSS():v==="svg"?Lr=c.to2dCSS():Zr=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],Qr=Me}A<=R?(Y=new zd(Qr,qr,Ii,Xr,Lr,Zr),this.renderedLetters.push(Y),A+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[R],this.lettersChangedFlag=Y.update(Qr,qr,Ii,Xr,Lr,Zr)||this.lettersChangedFlag)}}},lo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},lo.prototype.mHelper=new fe,lo.prototype.defaultPropsArray=[],L([le],lo);function or(){}or.prototype.initElement=function(e,i,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,a),this.textProperty=new Se(this,e.t,this.dynamicProperties),this.textAnimator=new lo(e.t,this.renderType,this),this.initTransform(e,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},or.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},or.prototype.createPathShape=function(e,i){var a,l=i.length,h,c="";for(a=0;a<l;a+=1)i[a].ty==="sh"&&(h=i[a].ks.k,c+=am(h,h.i.length,!0,e));return c},or.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},or.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},or.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},or.prototype.applyTextPropertiesToMatrix=function(e,i,a,l,h){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a])/2,0,0);break;default:break}i.translate(l,h,0)},or.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},or.prototype.emptyProp=new zd,or.prototype.destroy=function(){},or.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var hy={shapes:[]};function jr(e,i,a){this.textSpans=[],this.renderType="svg",this.initElement(e,i,a)}L([Ti,Jo,sa,ts,xi,aa,or],jr),jr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},jr.prototype.buildTextContents=function(e){for(var i=0,a=e.length,l=[],h="";i<a;)e[i]==="\r"||e[i]===""?(l.push(h),h=""):h+=e[i],i+=1;return l.push(h),l},jr.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var a=e.shapes[0];if(a.it){var l=a.it[a.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},jr.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,a=this.textProperty.currentData;this.renderedLetters=it(a?a.l.length:0),a.fc?this.layerElement.setAttribute("fill",this.buildColor(a.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var l=this.globalData.fontManager.getFontByName(a.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=a.fWeight,c=a.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",a.t);var v=a.l||[],A=!!this.globalData.fontManager.chars;i=v.length;var g,k=this.mHelper,R="",G=this.data.singleShape,T=0,M=0,D=!0,O=a.tr*.001*a.finalSize;if(G&&!A&&!a.sz){var V=this.textContainer,N="start";switch(a.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}V.setAttribute("text-anchor",N),V.setAttribute("letter-spacing",O);var C=this.buildTextContents(a.finalText);for(i=C.length,M=a.ps?a.ps[1]+a.ascent:0,e=0;e<i;e+=1)g=this.textSpans[e].span||Tt("tspan"),g.textContent=C[e],g.setAttribute("x",0),g.setAttribute("y",M),g.style.display="inherit",V.appendChild(g),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=g,M+=a.finalLineHeight;this.layerElement.appendChild(V)}else{var E=this.textSpans.length,S;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!A||!G||e===0){if(g=E>e?this.textSpans[e].span:Tt(A?"g":"text"),E<=e){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=g,A){var w=Tt("g");g.appendChild(w),this.textSpans[e].childSpan=w}this.textSpans[e].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(k.reset(),G&&(v[e].n&&(T=-O,M+=a.yOffset,M+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(a,k,v[e].line,T,M),T+=v[e].l||0,T+=O),A){S=this.globalData.fontManager.getCharData(a.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var F;if(S.t===1)F=new da(S.data,this.globalData,this);else{var H=hy;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,a.finalSize)),F=new Kt(H,this.globalData,this)}if(this.textSpans[e].glyph){var W=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(W.layerElement),W.destroy()}this.textSpans[e].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[e].childSpan.appendChild(F.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else G&&g.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),g.textContent=v[e].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&g&&g.setAttribute("d",R)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},jr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},jr.prototype.getValue=function(){var e,i=this.textSpans.length,a;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)a=this.textSpans[e].glyph,a&&(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf&&(this._mdf=!0))},jr.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var h,c,v;for(e=0;e<i;e+=1)l[e].n||(h=a[e],c=this.textSpans[e].span,v=this.textSpans[e].glyph,v&&v.renderFrame(),h._mdf.m&&c.setAttribute("transform",h.m),h._mdf.o&&c.setAttribute("opacity",h.o),h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h._mdf.sc&&c.setAttribute("stroke",h.sc),h._mdf.fc&&c.setAttribute("fill",h.fc))}};function Vd(e,i,a){this.initElement(e,i,a)}L([na],Vd),Vd.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Si(e,i,a){this.initFrame(),this.initBaseData(e,i,a),this.initFrame(),this.initTransform(e,i,a),this.initHierarchy()}Si.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Si.prototype.renderFrame=function(){},Si.prototype.getBaseElement=function(){return null},Si.prototype.destroy=function(){},Si.prototype.sourceRectAtTime=function(){},Si.prototype.hide=function(){},L([Ti,Jo,ts,xi],Si);function re(){}L([ve],re),re.prototype.createNull=function(e){return new Si(e,this.globalData,this)},re.prototype.createShape=function(e){return new Kt(e,this.globalData,this)},re.prototype.createText=function(e){return new jr(e,this.globalData,this)},re.prototype.createImage=function(e){return new na(e,this.globalData,this)},re.prototype.createSolid=function(e){return new Vd(e,this.globalData,this)},re.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var a=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=Ne();a.setAttribute("id",h),a.appendChild(l),this.layerElement.setAttribute("clip-path","url("+b()+"#"+h+")"),i.appendChild(a),this.layers=e.layers,this.elements=it(e.layers.length)},re.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},re.prototype.updateContainerSize=function(){},re.prototype.findIndexByInd=function(e){var i=0,a=this.layers.length;for(i=0;i<a;i+=1)if(this.layers[i].ind===e)return i;return-1},re.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var a=this.createItem(this.layers[e]);if(i[e]=a,gn()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(a);else{var h=i[l],c=h.getMatte(this.layers[e].tt);a.setMatte(c)}}}},re.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,a=this.elements.length;i<a;){if(this.elements[i]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,h=this.elements[l],c=h.getMatte(this.layers[i].tt);e.setMatte(c);break}i+=1}}},re.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<a;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},re.prototype.appendElementInPos=function(e,i){var a=e.getBaseElement();if(a){for(var l=0,h;l<i;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(h=this.elements[l].getBaseElement()),l+=1;h?this.layerElement.insertBefore(a,h):this.layerElement.appendChild(a)}},re.prototype.hide=function(){this.layerElement.style.display="none"},re.prototype.show=function(){this.layerElement.style.display="block"};function Kr(){}L([Ti,Jo,ts,xi,aa],Kr),Kr.prototype.initElement=function(e,i,a){this.initFrame(),this.initBaseData(e,i,a),this.initTransform(e,i,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},Kr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var a,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=l-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},Kr.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Kr.prototype.setElements=function(e){this.elements=e},Kr.prototype.getElements=function(){return this.elements},Kr.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},Kr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function da(e,i,a){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,a),this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}L([re,Kr,sa],da),da.prototype.createComp=function(e){return new da(e,this.globalData,this)};function Bd(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var a="";if(i&&i.title){var l=Tt("title"),h=Ne();l.setAttribute("id",h),l.textContent=i.title,this.svgElement.appendChild(l),a+=h}if(i&&i.description){var c=Tt("desc"),v=Ne();c.setAttribute("id",v),c.textContent=i.description,this.svgElement.appendChild(c),a+=" "+v}a&&this.svgElement.setAttribute("aria-labelledby",a);var A=Tt("defs");this.svgElement.appendChild(A);var g=Tt("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:A,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return L([re],Bd),Bd.prototype.createComp=function(e){return new da(e,this.globalData,this)},Tb("svg",Bd),yi.registerModifier("tm",br),yi.registerModifier("pb",Qs),yi.registerModifier("rp",wr),yi.registerModifier("rd",Js),yi.registerModifier("zz",ea),yi.registerModifier("op",ra),Ot})});var Dn=globalThis,Fn=Dn.ShadowRoot&&(Dn.ShadyCSS===void 0||Dn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hd=Symbol(),lm=new WeakMap,ca=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==Hd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Fn&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=lm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&lm.set(t,o))}return o}toString(){return this.cssText}},dm=n=>new ca(typeof n=="string"?n:n+"",void 0,Hd),B=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((r,s,d)=>r+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[d+1],n[0]);return new ca(t,n,Hd)},Gd=(n,o)=>{if(Fn)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Dn.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,n.appendChild(r)}},$n=Fn?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return dm(t)})(n):n;var{is:yy,defineProperty:Ey,getOwnPropertyDescriptor:Ty,getOwnPropertyNames:xy,getOwnPropertySymbols:Ay,getPrototypeOf:Sy}=Object,wi=globalThis,cm=wi.trustedTypes,Iy=cm?cm.emptyScript:"",Yd=wi.reactiveElementPolyfillSupport,ha=(n,o)=>n,pa={toAttribute(n,o){switch(o){case Boolean:n=n?Iy:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},zn=(n,o)=>!yy(n,o),hm={attribute:!0,type:String,converter:pa,reflect:!1,hasChanged:zn},pm,mm;(pm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(mm=wi.litPropertyMetadata)!=null||(wi.litPropertyMetadata=new WeakMap);var Jr=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=hm){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&Ey(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var m;let{get:s,set:d}=(m=Ty(this.prototype,o))!=null?m:{get(){return this[t]},set(b){this[t]=b}};return{get(){return s==null?void 0:s.call(this)},set(b){let x=s==null?void 0:s.call(this);d.call(this,b),this.requestUpdate(o,x,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:hm}static _$Ei(){if(this.hasOwnProperty(ha("elementProperties")))return;let o=Sy(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(ha("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ha("properties"))){let t=this.properties,r=[...xy(t),...Ay(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift($n(s))}else o!==void 0&&t.push($n(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Gd(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var d;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let m=(((d=r.converter)==null?void 0:d.toAttribute)!==void 0?r.converter:pa).toAttribute(t,r.type);this._$Em=o,m==null?this.removeAttribute(s):this.setAttribute(s,m),this._$Em=null}}_$AK(o,t){var d;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let m=r.getPropertyOptions(s),b=typeof m.converter=="function"?{fromAttribute:m.converter}:((d=m.converter)==null?void 0:d.fromAttribute)!==void 0?m.converter:pa;this._$Em=s,this[s]=b.fromAttribute(t,m.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:zn)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,b]of this._$Ep)this[m]=b;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[m,b]of d)b.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],b)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(d=>{var m;return(m=d.hostUpdate)==null?void 0:m.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},um;Jr.elementStyles=[],Jr.shadowRootOptions={mode:"open"},Jr[ha("elementProperties")]=new Map,Jr[ha("finalized")]=new Map,Yd==null||Yd({ReactiveElement:Jr}),((um=wi.reactiveElementVersions)!=null?um:wi.reactiveElementVersions=[]).push("2.0.4");var ua=globalThis,Vn=ua.trustedTypes,fm=Vn?Vn.createPolicy("lit-html",{createHTML:n=>n}):void 0,Kd="$lit$",ti=`lit$${Math.random().toFixed(9).slice(2)}$`,qd="?"+ti,_y=`<${qd}>`,mo=document,fa=()=>mo.createComment(""),va=n=>n===null||typeof n!="object"&&typeof n!="function",Xd=Array.isArray,xm=n=>Xd(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Wd=`[
2
+ `),l={},h,c=0,v=0;v<a.length;v+=1)h=a[v].split(":"),h.length===2&&(l[h[0]]=h[1].trim(),c+=1);if(c===0)throw new Error;return l}return function(i){for(var a=[],l=0;l<i.length;l+=1){var h=i[l],c={time:h.tm,duration:h.dr};try{c.payload=JSON.parse(i[l].cm)}catch{try{c.payload=e(i[l].cm)}catch{c.payload={name:i[l].cm}}}a.push(c)}return a}}(),Eb=function(){function e(i){this.compositions.push(i)}return function(){function i(a){for(var l=0,h=this.compositions.length;l<h;){if(this.compositions[l].data&&this.compositions[l].data.nm===a)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),qs={},Tb=function(i,a){qs[i]=a};function xb(e){return qs[e]}function Ab(){if(qs.canvas)return"canvas";for(var e in qs)if(qs[e])return e;return""}function Xs(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xs=function(a){return typeof a}:Xs=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Xs(e)}var ut=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Ne(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=fb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Eb(),this.imagePreloader=new bb,this.audioController=Z(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new rr("drawnFrame",0,0,0),this.expressionsPlugin=gn()};L([Tp],ut),ut.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var a=xb(i);this.renderer=new a(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Ks.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ut.prototype.onSetupError=function(){this.trigger("data_failed")},ut.prototype.setupAnimation=function(e){Ks.completeAnimation(e,this.configAnimation)},ut.prototype.setData=function(e,i){i&&Xs(i)!=="object"&&(i=JSON.parse(i));var a={wrapper:e,animationData:i},l=e.attributes;a.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",a.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:Ab()||"canvas";var h=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";h==="false"?a.loop=!1:h==="true"?a.loop=!0:h!==""&&(a.loop=parseInt(h,10));var c=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;a.autoplay=c!=="false",a.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var v=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";v==="false"&&(a.prerender=!1),a.path?this.setParams(a):this.trigger("destroy")},ut.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,a,l=i.length,h=e.layers,c,v=h.length;for(c=0;c<v;c+=1)for(a=0;a<l;){if(i[a].id===h[c].id){i[a]=h[c];break}a+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,a=0;a<l;a+=1)this.animationData.assets.push(e.assets[a]);this.animationData.__complete=!1,Ks.completeAnimation(this.animationData,this.onSegmentComplete)},ut.prototype.onSegmentComplete=function(e){this.animationData=e;var i=gn();i&&i.initExpressions(this),this.loadNextSegment()},ut.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ks.loadData(a,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ut.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ut.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ut.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ut.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=yb(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ut.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ut.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=gn();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ut.prototype.resize=function(e,i){var a=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(a,l)},ut.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ut.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ut.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ut.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ut.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ut.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ut.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ut.prototype.getMarkerData=function(e){for(var i,a=0;a<this.markers.length;a+=1)if(i=this.markers[a],i.payload&&i.payload.name===e)return i;return null},ut.prototype.goToAndStop=function(e,i,a){if(!(a&&this.name!==a)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&this.goToAndStop(h.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ut.prototype.goToAndPlay=function(e,i,a){if(!(a&&this.name!==a)){var l=Number(e);if(isNaN(l)){var h=this.getMarkerData(e);h&&(h.duration?this.playSegments([h.time,h.time+h.duration],!0):this.goToAndStop(h.time,!0))}else this.goToAndStop(l,i,a);this.play()}},ut.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,a=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(a=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(a=!0,i=0)):this.setCurrentRawFrameValue(i),a&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ut.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ut.prototype.setSegment=function(e,i){var a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?a=e:this.currentRawFrame+this.firstFrame>i&&(a=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,a!==-1&&this.goToAndStop(a,!0)},ut.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),Xs(e[0])==="object"){var a,l=e.length;for(a=0;a<l;a+=1)this.segments.push(e[a])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ut.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ut.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ut.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ut.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ut.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ut.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ut.prototype.setLoop=function(e){this.loop=e},ut.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ut.prototype.getVolume=function(){return this.audioController.getVolume()},ut.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ut.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ut.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ut.prototype.getPath=function(){return this.path},ut.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var a=e.p;a.indexOf("images/")!==-1&&(a=a.split("/")[1]),i=this.assetsPath+a}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ut.prototype.getAssetData=function(e){for(var i=0,a=this.assets.length;i<a;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ut.prototype.hide=function(){this.renderer.hide()},ut.prototype.show=function(){this.renderer.show()},ut.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ut.prototype.updateDocumentData=function(e,i,a){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,a)}catch{}},ut.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new rr(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new up(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new vn(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new fp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new vp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new rr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new up(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new vn(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new fp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new vp(e,this))},ut.prototype.triggerRenderFrameError=function(e){var i=new pb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ut.prototype.triggerConfigError=function(e){var i=new mb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var Qt=function(){var e={},i=[],a=0,l=0,h=0,c=!0,v=!1;function A(I){for(var P=0,f=I.target;P<l;)i[P].animation===f&&(i.splice(P,1),P-=1,l-=1,f.isPaused||G()),P+=1}function g(I,P){if(!I)return null;for(var f=0;f<l;){if(i[f].elem===I&&i[f].elem!==null)return i[f].animation;f+=1}var y=new ut;return T(y,I),y.setData(I,P),y}function k(){var I,P=i.length,f=[];for(I=0;I<P;I+=1)f.push(i[I].animation);return f}function R(){h+=1,yt()}function G(){h-=1}function T(I,P){I.addEventListener("destroy",A),I.addEventListener("_active",R),I.addEventListener("_idle",G),i.push({elem:P,animation:I}),l+=1}function M(I){var P=new ut;return T(P,null),P.setParams(I),P}function D(I,P){var f;for(f=0;f<l;f+=1)i[f].animation.setSpeed(I,P)}function O(I,P){var f;for(f=0;f<l;f+=1)i[f].animation.setDirection(I,P)}function V(I){var P;for(P=0;P<l;P+=1)i[P].animation.play(I)}function N(I){var P=I-a,f;for(f=0;f<l;f+=1)i[f].animation.advanceTime(P);a=I,h&&!v?window.requestAnimationFrame(N):c=!0}function C(I){a=I,window.requestAnimationFrame(N)}function E(I){var P;for(P=0;P<l;P+=1)i[P].animation.pause(I)}function S(I,P,f){var y;for(y=0;y<l;y+=1)i[y].animation.goToAndStop(I,P,f)}function w(I){var P;for(P=0;P<l;P+=1)i[P].animation.stop(I)}function F(I){var P;for(P=0;P<l;P+=1)i[P].animation.togglePause(I)}function H(I){var P;for(P=l-1;P>=0;P-=1)i[P].animation.destroy(I)}function W(I,P,f){var y=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,$=y.length;for(Y=0;Y<$;Y+=1)f&&y[Y].setAttribute("data-bm-type",f),g(y[Y],I);if(P&&$===0){f||(f="svg");var nt=document.getElementsByTagName("body")[0];nt.innerText="";var ft=x("div");ft.style.width="100%",ft.style.height="100%",ft.setAttribute("data-bm-type",f),nt.appendChild(ft),g(ft,I)}}function et(){var I;for(I=0;I<l;I+=1)i[I].animation.resize()}function yt(){!v&&h&&c&&(window.requestAnimationFrame(C),c=!1)}function pt(){v=!0}function ot(){v=!1,yt()}function xt(I,P){var f;for(f=0;f<l;f+=1)i[f].animation.setVolume(I,P)}function ct(I){var P;for(P=0;P<l;P+=1)i[P].animation.mute(I)}function J(I){var P;for(P=0;P<l;P+=1)i[P].animation.unmute(I)}return e.registerAnimation=g,e.loadAnimation=M,e.setSpeed=D,e.setDirection=O,e.play=V,e.pause=E,e.stop=w,e.togglePause=F,e.searchAnimations=W,e.resize=et,e.goToAndStop=S,e.destroy=H,e.freeze=pt,e.unfreeze=ot,e.setVolume=xt,e.mute=ct,e.unmute=J,e.getRegisteredAnimations=k,e}(),Zs=function(){var e={};e.getBezierEasing=a;var i={};function a(C,E,S,w,F){var H=F||("bez_"+C+"_"+E+"_"+S+"_"+w).replace(/\./g,"p");if(i[H])return i[H];var W=new N([C,E,S,w]);return i[H]=W,W}var l=4,h=.001,c=1e-7,v=10,A=11,g=1/(A-1),k=typeof Float32Array=="function";function R(C,E){return 1-3*E+3*C}function G(C,E){return 3*E-6*C}function T(C){return 3*C}function M(C,E,S){return((R(E,S)*C+G(E,S))*C+T(E))*C}function D(C,E,S){return 3*R(E,S)*C*C+2*G(E,S)*C+T(E)}function O(C,E,S,w,F){var H,W,et=0;do W=E+(S-E)/2,H=M(W,w,F)-C,H>0?S=W:E=W;while(Math.abs(H)>c&&++et<v);return W}function V(C,E,S,w){for(var F=0;F<l;++F){var H=D(E,S,w);if(H===0)return E;var W=M(E,S,w)-C;E-=W/H}return E}function N(C){this._p=C,this._mSampleValues=k?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return N.prototype={get:function(E){var S=this._p[0],w=this._p[1],F=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),S===w&&F===H?E:E===0?0:E===1?1:M(this._getTForX(E),w,H)},_precompute:function(){var E=this._p[0],S=this._p[1],w=this._p[2],F=this._p[3];this._precomputed=!0,(E!==S||w!==F)&&this._calcSampleValues()},_calcSampleValues:function(){for(var E=this._p[0],S=this._p[2],w=0;w<A;++w)this._mSampleValues[w]=M(w*g,E,S)},_getTForX:function(E){for(var S=this._p[0],w=this._p[2],F=this._mSampleValues,H=0,W=1,et=A-1;W!==et&&F[W]<=E;++W)H+=g;--W;var yt=(E-F[W])/(F[W+1]-F[W]),pt=H+yt*g,ot=D(pt,S,w);return ot>=h?V(E,pt,S,w):ot===0?pt:O(E,H,H+g,S,w)}},e}(),xp=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),En=function(){return function(e,i,a){var l=0,h=e,c=it(h),v={newElement:A,release:g};function A(){var k;return l?(l-=1,k=c[l]):k=i(),k}function g(k){l===h&&(c=xp.double(c),h*=2),a&&a(k),c[l]=k,l+=1}return v}}(),Ap=function(){function e(){return{addedLength:0,percents:X("float32",js()),lengths:X("float32",js())}}return En(8,e)}(),Sp=function(){function e(){return{lengths:[],totalLength:0}}function i(a){var l,h=a.lengths.length;for(l=0;l<h;l+=1)Ap.release(a.lengths[l]);a.lengths.length=0}return En(8,e,i)}();function Sb(){var e=Math;function i(T,M,D,O,V,N){var C=T*O+M*V+D*N-V*O-N*T-D*M;return C>-.001&&C<.001}function a(T,M,D,O,V,N,C,E,S){if(D===0&&N===0&&S===0)return i(T,M,O,V,C,E);var w=e.sqrt(e.pow(O-T,2)+e.pow(V-M,2)+e.pow(N-D,2)),F=e.sqrt(e.pow(C-T,2)+e.pow(E-M,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(C-O,2)+e.pow(E-V,2)+e.pow(S-N,2)),W;return w>F?w>H?W=w-F-H:W=H-F-w:H>F?W=H-F-w:W=F-w-H,W>-1e-4&&W<1e-4}var l=function(){return function(T,M,D,O){var V=js(),N,C,E,S,w,F=0,H,W=[],et=[],yt=Ap.newElement();for(E=D.length,N=0;N<V;N+=1){for(w=N/(V-1),H=0,C=0;C<E;C+=1)S=Yt(1-w,3)*T[C]+3*Yt(1-w,2)*w*D[C]+3*(1-w)*Yt(w,2)*O[C]+Yt(w,3)*M[C],W[C]=S,et[C]!==null&&(H+=Yt(W[C]-et[C],2)),et[C]=W[C];H&&(H=Zt(H),F+=H),yt.percents[N]=w,yt.lengths[N]=F}return yt.addedLength=F,yt}}();function h(T){var M=Sp.newElement(),D=T.c,O=T.v,V=T.o,N=T.i,C,E=T._length,S=M.lengths,w=0;for(C=0;C<E-1;C+=1)S[C]=l(O[C],O[C+1],V[C],N[C+1]),w+=S[C].addedLength;return D&&E&&(S[C]=l(O[C],O[0],V[C],N[0]),w+=S[C].addedLength),M.totalLength=w,M}function c(T){this.segmentLength=0,this.points=new Array(T)}function v(T,M){this.partialLength=T,this.point=M}var A=function(){var T={};return function(M,D,O,V){var N=(M[0]+"_"+M[1]+"_"+D[0]+"_"+D[1]+"_"+O[0]+"_"+O[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!T[N]){var C=js(),E,S,w,F,H,W=0,et,yt,pt=null;M.length===2&&(M[0]!==D[0]||M[1]!==D[1])&&i(M[0],M[1],D[0],D[1],M[0]+O[0],M[1]+O[1])&&i(M[0],M[1],D[0],D[1],D[0]+V[0],D[1]+V[1])&&(C=2);var ot=new c(C);for(w=O.length,E=0;E<C;E+=1){for(yt=it(w),H=E/(C-1),et=0,S=0;S<w;S+=1)F=Yt(1-H,3)*M[S]+3*Yt(1-H,2)*H*(M[S]+O[S])+3*(1-H)*Yt(H,2)*(D[S]+V[S])+Yt(H,3)*D[S],yt[S]=F,pt!==null&&(et+=Yt(yt[S]-pt[S],2));et=Zt(et),W+=et,ot.points[E]=new v(et,yt),pt=yt}ot.segmentLength=W,T[N]=ot}return T[N]}}();function g(T,M){var D=M.percents,O=M.lengths,V=D.length,N=ne((V-1)*T),C=T*M.addedLength,E=0;if(N===V-1||N===0||C===O[N])return D[N];for(var S=O[N]>C?-1:1,w=!0;w;)if(O[N]<=C&&O[N+1]>C?(E=(C-O[N])/(O[N+1]-O[N]),w=!1):N+=S,N<0||N>=V-1){if(N===V-1)return D[N];w=!1}return D[N]+(D[N+1]-D[N])*E}function k(T,M,D,O,V,N){var C=g(V,N),E=1-C,S=e.round((E*E*E*T[0]+(C*E*E+E*C*E+E*E*C)*D[0]+(C*C*E+E*C*C+C*E*C)*O[0]+C*C*C*M[0])*1e3)/1e3,w=e.round((E*E*E*T[1]+(C*E*E+E*C*E+E*E*C)*D[1]+(C*C*E+E*C*C+C*E*C)*O[1]+C*C*C*M[1])*1e3)/1e3;return[S,w]}var R=X("float32",8);function G(T,M,D,O,V,N,C){V<0?V=0:V>1&&(V=1);var E=g(V,C);N=N>1?1:N;var S=g(N,C),w,F=T.length,H=1-E,W=1-S,et=H*H*H,yt=E*H*H*3,pt=E*E*H*3,ot=E*E*E,xt=H*H*W,ct=E*H*W+H*E*W+H*H*S,J=E*E*W+H*E*S+E*H*S,I=E*E*S,P=H*W*W,f=E*W*W+H*S*W+H*W*S,y=E*S*W+H*S*S+E*W*S,Y=E*S*S,$=W*W*W,nt=S*W*W+W*S*W+W*W*S,ft=S*S*W+W*S*S+S*W*S,Et=S*S*S;for(w=0;w<F;w+=1)R[w*4]=e.round((et*T[w]+yt*D[w]+pt*O[w]+ot*M[w])*1e3)/1e3,R[w*4+1]=e.round((xt*T[w]+ct*D[w]+J*O[w]+I*M[w])*1e3)/1e3,R[w*4+2]=e.round((P*T[w]+f*D[w]+y*O[w]+Y*M[w])*1e3)/1e3,R[w*4+3]=e.round(($*T[w]+nt*D[w]+ft*O[w]+Et*M[w])*1e3)/1e3;return R}return{getSegmentsLength:h,getNewSegment:G,getPointInSegment:k,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:a}}var kr=Sb(),oo=r,Ip=Math.abs;function _p(e,i){var a=this.offsetTime,l;this.propType==="multidimensional"&&(l=X("float32",this.pv.length));for(var h=i.lastIndex,c=h,v=this.keyframes.length-1,A=!0,g,k,R;A;){if(g=this.keyframes[c],k=this.keyframes[c+1],c===v-1&&e>=k.t-a){g.h&&(g=k),h=0;break}if(k.t-a>e){h=c;break}c<v-1?c+=1:(h=0,A=!1)}R=this.keyframesMetadata[c]||{};var G,T,M,D,O,V,N=k.t-a,C=g.t-a,E;if(g.to){R.bezierData||(R.bezierData=kr.buildBezierData(g.s,k.s||g.e,g.to,g.ti));var S=R.bezierData;if(e>=N||e<C){var w=e>=N?S.points.length-1:0;for(T=S.points[w].point.length,G=0;G<T;G+=1)l[G]=S.points[w].point[G]}else{R.__fnct?V=R.__fnct:(V=Zs.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,R.__fnct=V),M=V((e-C)/(N-C));var F=S.segmentLength*M,H,W=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastAddedLength:0;for(O=i.lastFrame<e&&i._lastKeyframeIndex===c?i._lastPoint:0,A=!0,D=S.points.length;A;){if(W+=S.points[O].partialLength,F===0||M===0||O===S.points.length-1){for(T=S.points[O].point.length,G=0;G<T;G+=1)l[G]=S.points[O].point[G];break}else if(F>=W&&F<W+S.points[O+1].partialLength){for(H=(F-W)/S.points[O+1].partialLength,T=S.points[O].point.length,G=0;G<T;G+=1)l[G]=S.points[O].point[G]+(S.points[O+1].point[G]-S.points[O].point[G])*H;break}O<D-1?O+=1:A=!1}i._lastPoint=O,i._lastAddedLength=W-S.points[O].partialLength,i._lastKeyframeIndex=c}}else{var et,yt,pt,ot,xt;if(v=g.s.length,E=k.s||g.e,this.sh&&g.h!==1)if(e>=N)l[0]=E[0],l[1]=E[1],l[2]=E[2];else if(e<=C)l[0]=g.s[0],l[1]=g.s[1],l[2]=g.s[2];else{var ct=Cp(g.s),J=Cp(E),I=(e-C)/(N-C);_b(l,Ib(ct,J,I))}else for(c=0;c<v;c+=1)g.h!==1&&(e>=N?M=1:e<C?M=0:(g.o.x.constructor===Array?(R.__fnct||(R.__fnct=[]),R.__fnct[c]?V=R.__fnct[c]:(et=g.o.x[c]===void 0?g.o.x[0]:g.o.x[c],yt=g.o.y[c]===void 0?g.o.y[0]:g.o.y[c],pt=g.i.x[c]===void 0?g.i.x[0]:g.i.x[c],ot=g.i.y[c]===void 0?g.i.y[0]:g.i.y[c],V=Zs.getBezierEasing(et,yt,pt,ot).get,R.__fnct[c]=V)):R.__fnct?V=R.__fnct:(et=g.o.x,yt=g.o.y,pt=g.i.x,ot=g.i.y,V=Zs.getBezierEasing(et,yt,pt,ot).get,g.keyframeMetadata=V),M=V((e-C)/(N-C)))),E=k.s||g.e,xt=g.h===1?g.s[c]:g.s[c]+(E[c]-g.s[c])*M,this.propType==="multidimensional"?l[c]=xt:l=xt}return i.lastIndex=h,l}function Ib(e,i,a){var l=[],h=e[0],c=e[1],v=e[2],A=e[3],g=i[0],k=i[1],R=i[2],G=i[3],T,M,D,O,V;return M=h*g+c*k+v*R+A*G,M<0&&(M=-M,g=-g,k=-k,R=-R,G=-G),1-M>1e-6?(T=Math.acos(M),D=Math.sin(T),O=Math.sin((1-a)*T)/D,V=Math.sin(a*T)/D):(O=1-a,V=a),l[0]=O*h+V*g,l[1]=O*c+V*k,l[2]=O*v+V*R,l[3]=O*A+V*G,l}function _b(e,i){var a=i[0],l=i[1],h=i[2],c=i[3],v=Math.atan2(2*l*c-2*a*h,1-2*l*l-2*h*h),A=Math.asin(2*a*l+2*h*c),g=Math.atan2(2*a*c-2*l*h,1-2*a*a-2*h*h);e[0]=v/kt,e[1]=A/kt,e[2]=g/kt}function Cp(e){var i=e[0]*kt,a=e[1]*kt,l=e[2]*kt,h=Math.cos(i/2),c=Math.cos(a/2),v=Math.cos(l/2),A=Math.sin(i/2),g=Math.sin(a/2),k=Math.sin(l/2),R=h*c*v-A*g*k,G=A*g*v+h*c*k,T=A*c*v+h*g*k,M=h*g*v-A*c*k;return[G,T,M,R]}function kp(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==oo&&(this._caching.lastFrame>=a&&e>=a||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function Tn(e){var i;if(this.propType==="unidimensional")i=e*this.mult,Ip(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var a=0,l=this.v.length;a<l;)i=e[a]*this.mult,Ip(this.v[a]-i)>1e-5&&(this.v[a]=i,this._mdf=!0),a+=1}function xn(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)a=this.effectsSequence[e](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function An(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function Cb(e,i,a,l){this.propType="unidimensional",this.mult=a||1,this.data=i,this.v=a?i.k*a:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=xn,this.setVValue=Tn,this.addEffect=An}function kb(e,i,a,l){this.propType="multidimensional",this.mult=a||1,this.data=i,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h,c=i.k.length;for(this.v=X("float32",c),this.pv=X("float32",c),this.vel=X("float32",c),h=0;h<c;h+=1)this.v[h]=i.k[h]*this.mult,this.pv[h]=i.k[h];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=xn,this.setVValue=Tn,this.addEffect=An}function wb(e,i,a,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:oo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=oo,this.pv=oo,this._isFirstFrame=!0,this.getValue=xn,this.setVValue=Tn,this.interpolateValue=_p,this.effectsSequence=[kp.bind(this)],this.addEffect=An}function Nb(e,i,a,l){this.propType="multidimensional";var h,c=i.k.length,v,A,g,k;for(h=0;h<c-1;h+=1)i.k[h].to&&i.k[h].s&&i.k[h+1]&&i.k[h+1].s&&(v=i.k[h].s,A=i.k[h+1].s,g=i.k[h].to,k=i.k[h].ti,(v.length===2&&!(v[0]===A[0]&&v[1]===A[1])&&kr.pointOnLine2D(v[0],v[1],A[0],A[1],v[0]+g[0],v[1]+g[1])&&kr.pointOnLine2D(v[0],v[1],A[0],A[1],A[0]+k[0],A[1]+k[1])||v.length===3&&!(v[0]===A[0]&&v[1]===A[1]&&v[2]===A[2])&&kr.pointOnLine3D(v[0],v[1],v[2],A[0],A[1],A[2],v[0]+g[0],v[1]+g[1],v[2]+g[2])&&kr.pointOnLine3D(v[0],v[1],v[2],A[0],A[1],A[2],A[0]+k[0],A[1]+k[1],A[2]+k[2]))&&(i.k[h].to=null,i.k[h].ti=null),v[0]===A[0]&&v[1]===A[1]&&g[0]===0&&g[1]===0&&k[0]===0&&k[1]===0&&(v.length===2||v[2]===A[2]&&g[2]===0&&k[2]===0)&&(i.k[h].to=null,i.k[h].ti=null));this.effectsSequence=[kp.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=xn,this.setVValue=Tn,this.interpolateValue=_p,this.frameId=-1;var R=i.k[0].s.length;for(this.v=X("float32",R),this.pv=X("float32",R),h=0;h<R;h+=1)this.v[h]=oo,this.pv[h]=oo;this._caching={lastFrame:oo,lastIndex:0,value:X("float32",R)},this.addEffect=An}var at=function(){function e(a,l,h,c,v){l.sid&&(l=a.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new Cb(a,l,c,v);else if(typeof l.k[0]=="number")A=new kb(a,l,c,v);else switch(h){case 0:A=new wb(a,l,c,v);break;case 1:A=new Nb(a,l,c,v);break;default:break}return A.effectsSequence.length&&v.addDynamicProperty(A),A}var i={getProp:e};return i}();function le(){}le.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var so=function(){function e(){return X("float32",2)}return En(8,e)}();function Wr(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}Wr.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var a=0;a<i;)this.v[a]=so.newElement(),this.o[a]=so.newElement(),this.i[a]=so.newElement(),a+=1},Wr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Wr.prototype.doubleArrayLength=function(){this.v=this.v.concat(it(this._maxLength)),this.i=this.i.concat(it(this._maxLength)),this.o=this.o.concat(it(this._maxLength)),this._maxLength*=2},Wr.prototype.setXYAt=function(e,i,a,l,h){var c;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),a){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[l]||c[l]&&!h)&&(c[l]=so.newElement()),c[l][0]=e,c[l][1]=i},Wr.prototype.setTripleAt=function(e,i,a,l,h,c,v,A){this.setXYAt(e,i,"v",v,A),this.setXYAt(a,l,"o",v,A),this.setXYAt(h,c,"i",v,A)},Wr.prototype.reverse=function(){var e=new Wr;e.setPathData(this.c,this._length);var i=this.v,a=this.o,l=this.i,h=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],a[0][0],a[0][1],0,!1),h=1);var c=this._length-1,v=this._length,A;for(A=h;A<v;A+=1)e.setTripleAt(i[c][0],i[c][1],l[c][0],l[c][1],a[c][0],a[c][1],A,!1),c-=1;return e},Wr.prototype.length=function(){return this._length};var ue=function(){function e(){return new Wr}function i(h){var c=h._length,v;for(v=0;v<c;v+=1)so.release(h.v[v]),so.release(h.i[v]),so.release(h.o[v]),h.v[v]=null,h.i[v]=null,h.o[v]=null;h._length=0,h.c=!1}function a(h){var c=l.newElement(),v,A=h._length===void 0?h.v.length:h._length;for(c.setLength(A),c.c=h.c,v=0;v<A;v+=1)c.setTripleAt(h.v[v][0],h.v[v][1],h.o[v][0],h.o[v][1],h.i[v][0],h.i[v][1],v);return c}var l=En(4,e,i);return l.clone=a,l}();function Ld(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}Ld.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(it(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Ld.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ue.release(this.shapes[e]);this._length=0};var qo=function(){var e={newShapeCollection:h,release:c},i=0,a=4,l=it(a);function h(){var v;return i?(i-=1,v=l[i]):v=new Ld,v}function c(v){var A,g=v._length;for(A=0;A<g;A+=1)ue.release(v.shapes[A]);v._length=0,i===a&&(l=xp.double(l),a*=2),l[i]=v,i+=1}return e}(),Sn=function(){var e=-999999;function i(N,C,E){var S=E.lastIndex,w,F,H,W,et,yt,pt,ot,xt,ct=this.keyframes;if(N<ct[0].t-this.offsetTime)w=ct[0].s[0],H=!0,S=0;else if(N>=ct[ct.length-1].t-this.offsetTime)w=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var J=S,I=ct.length-1,P=!0,f,y,Y;P&&(f=ct[J],y=ct[J+1],!(y.t-this.offsetTime>N));)J<I-1?J+=1:P=!1;if(Y=this.keyframesMetadata[J]||{},H=f.h===1,S=J,!H){if(N>=y.t-this.offsetTime)ot=1;else if(N<f.t-this.offsetTime)ot=0;else{var $;Y.__fnct?$=Y.__fnct:($=Zs.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,Y.__fnct=$),ot=$((N-(f.t-this.offsetTime))/(y.t-this.offsetTime-(f.t-this.offsetTime)))}F=y.s?y.s[0]:f.e[0]}w=f.s[0]}for(yt=C._length,pt=w.i[0].length,E.lastIndex=S,W=0;W<yt;W+=1)for(et=0;et<pt;et+=1)xt=H?w.i[W][et]:w.i[W][et]+(F.i[W][et]-w.i[W][et])*ot,C.i[W][et]=xt,xt=H?w.o[W][et]:w.o[W][et]+(F.o[W][et]-w.o[W][et])*ot,C.o[W][et]=xt,xt=H?w.v[W][et]:w.v[W][et]+(F.v[W][et]-w.v[W][et])*ot,C.v[W][et]=xt}function a(){var N=this.comp.renderedFrame-this.offsetTime,C=this.keyframes[0].t-this.offsetTime,E=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==e&&(S<C&&N<C||S>E&&N>E)||(this._caching.lastIndex=S<N?this._caching.lastIndex:0,this.interpolateShape(N,this.pv,this._caching)),this._caching.lastFrame=N,this.pv}function l(){this.paths=this.localShapeCollection}function h(N,C){if(N._length!==C._length||N.c!==C.c)return!1;var E,S=N._length;for(E=0;E<S;E+=1)if(N.v[E][0]!==C.v[E][0]||N.v[E][1]!==C.v[E][1]||N.o[E][0]!==C.o[E][0]||N.o[E][1]!==C.o[E][1]||N.i[E][0]!==C.i[E][0]||N.i[E][1]!==C.i[E][1])return!1;return!0}function c(N){h(this.v,N)||(this.v=ue.clone(N),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function v(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var N;this.kf?N=this.pv:this.data.ks?N=this.data.ks.k:N=this.data.pt.k;var C,E=this.effectsSequence.length;for(C=0;C<E;C+=1)N=this.effectsSequence[C](N);this.setVValue(N),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(N,C,E){this.propType="shape",this.comp=N.comp,this.container=N,this.elem=N,this.data=C,this.k=!1,this.kf=!1,this._mdf=!1;var S=E===3?C.pt.k:C.ks.k;this.v=ue.clone(S),this.pv=ue.clone(this.v),this.localShapeCollection=qo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function g(N){this.effectsSequence.push(N),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=v,A.prototype.setVValue=c,A.prototype.addEffect=g;function k(N,C,E){this.propType="shape",this.comp=N.comp,this.elem=N,this.container=N,this.offsetTime=N.data.st,this.keyframes=E===3?C.pt.k:C.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=ue.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=ue.clone(this.v),this.localShapeCollection=qo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[a.bind(this)]}k.prototype.getValue=v,k.prototype.interpolateShape=i,k.prototype.setVValue=c,k.prototype.addEffect=g;var R=function(){var N=me;function C(E,S){this.v=ue.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=qo.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=E,this.comp=E.comp,this.frameId=-1,this.initDynamicPropertyContainer(E),this.p=at.getProp(E,S.p,1,0,this),this.s=at.getProp(E,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return C.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],w=this.p.v[1],F=this.s.v[0]/2,H=this.s.v[1]/2,W=this.d!==3,et=this.v;et.v[0][0]=S,et.v[0][1]=w-H,et.v[1][0]=W?S+F:S-F,et.v[1][1]=w,et.v[2][0]=S,et.v[2][1]=w+H,et.v[3][0]=W?S-F:S+F,et.v[3][1]=w,et.i[0][0]=W?S-F*N:S+F*N,et.i[0][1]=w-H,et.i[1][0]=W?S+F:S-F,et.i[1][1]=w-H*N,et.i[2][0]=W?S+F*N:S-F*N,et.i[2][1]=w+H,et.i[3][0]=W?S-F:S+F,et.i[3][1]=w+H*N,et.o[0][0]=W?S+F*N:S-F*N,et.o[0][1]=w-H,et.o[1][0]=W?S+F:S-F,et.o[1][1]=w+H*N,et.o[2][0]=W?S-F*N:S+F*N,et.o[2][1]=w+H,et.o[3][0]=W?S-F:S+F,et.o[3][1]=w-H*N}},L([le],C),C}(),G=function(){function N(C,E){this.v=ue.newElement(),this.v.setPathData(!0,0),this.elem=C,this.comp=C.comp,this.data=E,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),E.sy===1?(this.ir=at.getProp(C,E.ir,0,0,this),this.is=at.getProp(C,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(C,E.pt,0,0,this),this.p=at.getProp(C,E.p,1,0,this),this.r=at.getProp(C,E.r,0,kt,this),this.or=at.getProp(C,E.or,0,0,this),this.os=at.getProp(C,E.os,0,.01,this),this.localShapeCollection=qo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return N.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var E=Math.floor(this.pt.v)*2,S=Math.PI*2/E,w=!0,F=this.or.v,H=this.ir.v,W=this.os.v,et=this.is.v,yt=2*Math.PI*F/(E*2),pt=2*Math.PI*H/(E*2),ot,xt,ct,J,I=-Math.PI/2;I+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,ot=0;ot<E;ot+=1){xt=w?F:H,ct=w?W:et,J=w?yt:pt;var f=xt*Math.cos(I),y=xt*Math.sin(I),Y=f===0&&y===0?0:y/Math.sqrt(f*f+y*y),$=f===0&&y===0?0:-f/Math.sqrt(f*f+y*y);f+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(f,y,f-Y*J*ct*P,y-$*J*ct*P,f+Y*J*ct*P,y+$*J*ct*P,ot,!0),w=!w,I+=S*P}},convertPolygonToPath:function(){var E=Math.floor(this.pt.v),S=Math.PI*2/E,w=this.or.v,F=this.os.v,H=2*Math.PI*w/(E*4),W,et=-Math.PI*.5,yt=this.data.d===3?-1:1;for(et+=this.r.v,this.v._length=0,W=0;W<E;W+=1){var pt=w*Math.cos(et),ot=w*Math.sin(et),xt=pt===0&&ot===0?0:ot/Math.sqrt(pt*pt+ot*ot),ct=pt===0&&ot===0?0:-pt/Math.sqrt(pt*pt+ot*ot);pt+=+this.p.v[0],ot+=+this.p.v[1],this.v.setTripleAt(pt,ot,pt-xt*H*F*yt,ot-ct*H*F*yt,pt+xt*H*F*yt,ot+ct*H*F*yt,W,!0),et+=S*yt}this.paths.length=0,this.paths[0]=this.v}},L([le],N),N}(),T=function(){function N(C,E){this.v=ue.newElement(),this.v.c=!0,this.localShapeCollection=qo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=C,this.comp=C.comp,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(C),this.p=at.getProp(C,E.p,1,0,this),this.s=at.getProp(C,E.s,1,0,this),this.r=at.getProp(C,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return N.prototype={convertRectToPath:function(){var E=this.p.v[0],S=this.p.v[1],w=this.s.v[0]/2,F=this.s.v[1]/2,H=we(w,F,this.r.v),W=H*(1-me);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(E+w,S-F+H,E+w,S-F+H,E+w,S-F+W,0,!0),this.v.setTripleAt(E+w,S+F-H,E+w,S+F-W,E+w,S+F-H,1,!0),H!==0?(this.v.setTripleAt(E+w-H,S+F,E+w-H,S+F,E+w-W,S+F,2,!0),this.v.setTripleAt(E-w+H,S+F,E-w+W,S+F,E-w+H,S+F,3,!0),this.v.setTripleAt(E-w,S+F-H,E-w,S+F-H,E-w,S+F-W,4,!0),this.v.setTripleAt(E-w,S-F+H,E-w,S-F+W,E-w,S-F+H,5,!0),this.v.setTripleAt(E-w+H,S-F,E-w+H,S-F,E-w+W,S-F,6,!0),this.v.setTripleAt(E+w-H,S-F,E+w-W,S-F,E+w-H,S-F,7,!0)):(this.v.setTripleAt(E-w,S+F,E-w+W,S+F,E-w,S+F,2),this.v.setTripleAt(E-w,S-F,E-w,S-F+W,E-w,S-F,3))):(this.v.setTripleAt(E+w,S-F+H,E+w,S-F+W,E+w,S-F+H,0,!0),H!==0?(this.v.setTripleAt(E+w-H,S-F,E+w-H,S-F,E+w-W,S-F,1,!0),this.v.setTripleAt(E-w+H,S-F,E-w+W,S-F,E-w+H,S-F,2,!0),this.v.setTripleAt(E-w,S-F+H,E-w,S-F+H,E-w,S-F+W,3,!0),this.v.setTripleAt(E-w,S+F-H,E-w,S+F-W,E-w,S+F-H,4,!0),this.v.setTripleAt(E-w+H,S+F,E-w+H,S+F,E-w+W,S+F,5,!0),this.v.setTripleAt(E+w-H,S+F,E+w-W,S+F,E+w-H,S+F,6,!0),this.v.setTripleAt(E+w,S+F-H,E+w,S+F-H,E+w,S+F-W,7,!0)):(this.v.setTripleAt(E-w,S-F,E-w+W,S-F,E-w,S-F,1,!0),this.v.setTripleAt(E-w,S+F,E-w,S+F-W,E-w,S+F,2,!0),this.v.setTripleAt(E+w,S+F,E+w-W,S+F,E+w,S+F,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},L([le],N),N}();function M(N,C,E){var S;if(E===3||E===4){var w=E===3?C.pt:C.ks,F=w.k;F.length?S=new k(N,C,E):S=new A(N,C,E)}else E===5?S=new T(N,C):E===6?S=new R(N,C):E===7&&(S=new G(N,C));return S.k&&N.addDynamicProperty(S),S}function D(){return A}function O(){return k}var V={};return V.getShapeProp=M,V.getConstructorFunction=D,V.getKeyframedConstructorFunction=O,V}();var fe=function(){var e=Math.cos,i=Math.sin,a=Math.tan,l=Math.round;function h(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function v(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(1,0,0,0,0,y,-Y,0,0,Y,y,0,0,0,0,1)}function A(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(y,0,Y,0,0,1,0,0,-Y,0,y,0,0,0,0,1)}function g(f){if(f===0)return this;var y=e(f),Y=i(f);return this._t(y,-Y,0,0,Y,y,0,0,0,0,1,0,0,0,0,1)}function k(f,y){return this._t(1,y,f,1,0,0)}function R(f,y){return this.shear(a(f),a(y))}function G(f,y){var Y=e(y),$=i(y);return this._t(Y,$,0,0,-$,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(f),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-$,0,0,$,Y,0,0,0,0,1,0,0,0,0,1)}function T(f,y,Y){return!Y&&Y!==0&&(Y=1),f===1&&y===1&&Y===1?this:this._t(f,0,0,0,0,y,0,0,0,0,Y,0,0,0,0,1)}function M(f,y,Y,$,nt,ft,Et,Rt,Mt,Jt,Re,Nr,Me,de,Ye,Dt){return this.props[0]=f,this.props[1]=y,this.props[2]=Y,this.props[3]=$,this.props[4]=nt,this.props[5]=ft,this.props[6]=Et,this.props[7]=Rt,this.props[8]=Mt,this.props[9]=Jt,this.props[10]=Re,this.props[11]=Nr,this.props[12]=Me,this.props[13]=de,this.props[14]=Ye,this.props[15]=Dt,this}function D(f,y,Y){return Y=Y||0,f!==0||y!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,f,y,Y,1):this}function O(f,y,Y,$,nt,ft,Et,Rt,Mt,Jt,Re,Nr,Me,de,Ye,Dt){var ht=this.props;if(f===1&&y===0&&Y===0&&$===0&&nt===0&&ft===1&&Et===0&&Rt===0&&Mt===0&&Jt===0&&Re===1&&Nr===0)return ht[12]=ht[12]*f+ht[15]*Me,ht[13]=ht[13]*ft+ht[15]*de,ht[14]=ht[14]*Re+ht[15]*Ye,ht[15]*=Dt,this._identityCalculated=!1,this;var qr=ht[0],Ii=ht[1],Xr=ht[2],Lr=ht[3],Zr=ht[4],Qr=ht[5],Oe=ht[6],_i=ht[7],Ci=ht[8],yr=ht[9],ki=ht[10],Er=ht[11],co=ht[12],Mn=ht[13],On=ht[14],Pn=ht[15];return ht[0]=qr*f+Ii*nt+Xr*Mt+Lr*Me,ht[1]=qr*y+Ii*ft+Xr*Jt+Lr*de,ht[2]=qr*Y+Ii*Et+Xr*Re+Lr*Ye,ht[3]=qr*$+Ii*Rt+Xr*Nr+Lr*Dt,ht[4]=Zr*f+Qr*nt+Oe*Mt+_i*Me,ht[5]=Zr*y+Qr*ft+Oe*Jt+_i*de,ht[6]=Zr*Y+Qr*Et+Oe*Re+_i*Ye,ht[7]=Zr*$+Qr*Rt+Oe*Nr+_i*Dt,ht[8]=Ci*f+yr*nt+ki*Mt+Er*Me,ht[9]=Ci*y+yr*ft+ki*Jt+Er*de,ht[10]=Ci*Y+yr*Et+ki*Re+Er*Ye,ht[11]=Ci*$+yr*Rt+ki*Nr+Er*Dt,ht[12]=co*f+Mn*nt+On*Mt+Pn*Me,ht[13]=co*y+Mn*ft+On*Jt+Pn*de,ht[14]=co*Y+Mn*Et+On*Re+Pn*Ye,ht[15]=co*$+Mn*Rt+On*Nr+Pn*Dt,this._identityCalculated=!1,this}function V(f){var y=f.props;return this.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])}function N(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function C(f){for(var y=0;y<16;){if(f.props[y]!==this.props[y])return!1;y+=1}return!0}function E(f){var y;for(y=0;y<16;y+=1)f.props[y]=this.props[y];return f}function S(f){var y;for(y=0;y<16;y+=1)this.props[y]=f[y]}function w(f,y,Y){return{x:f*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],y:f*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],z:f*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}}function F(f,y,Y){return f*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12]}function H(f,y,Y){return f*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13]}function W(f,y,Y){return f*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]}function et(){var f=this.props[0]*this.props[5]-this.props[1]*this.props[4],y=this.props[5]/f,Y=-this.props[1]/f,$=-this.props[4]/f,nt=this.props[0]/f,ft=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/f,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/f,Rt=new fe;return Rt.props[0]=y,Rt.props[1]=Y,Rt.props[4]=$,Rt.props[5]=nt,Rt.props[12]=ft,Rt.props[13]=Et,Rt}function yt(f){var y=this.getInverseMatrix();return y.applyToPointArray(f[0],f[1],f[2]||0)}function pt(f){var y,Y=f.length,$=[];for(y=0;y<Y;y+=1)$[y]=yt(f[y]);return $}function ot(f,y,Y){var $=X("float32",6);if(this.isIdentity())$[0]=f[0],$[1]=f[1],$[2]=y[0],$[3]=y[1],$[4]=Y[0],$[5]=Y[1];else{var nt=this.props[0],ft=this.props[1],Et=this.props[4],Rt=this.props[5],Mt=this.props[12],Jt=this.props[13];$[0]=f[0]*nt+f[1]*Et+Mt,$[1]=f[0]*ft+f[1]*Rt+Jt,$[2]=y[0]*nt+y[1]*Et+Mt,$[3]=y[0]*ft+y[1]*Rt+Jt,$[4]=Y[0]*nt+Y[1]*Et+Mt,$[5]=Y[0]*ft+Y[1]*Rt+Jt}return $}function xt(f,y,Y){var $;return this.isIdentity()?$=[f,y,Y]:$=[f*this.props[0]+y*this.props[4]+Y*this.props[8]+this.props[12],f*this.props[1]+y*this.props[5]+Y*this.props[9]+this.props[13],f*this.props[2]+y*this.props[6]+Y*this.props[10]+this.props[14]],$}function ct(f,y){if(this.isIdentity())return f+","+y;var Y=this.props;return Math.round((f*Y[0]+y*Y[4]+Y[12])*100)/100+","+Math.round((f*Y[1]+y*Y[5]+Y[13])*100)/100}function J(){for(var f=0,y=this.props,Y="matrix3d(",$=1e4;f<16;)Y+=l(y[f]*$)/$,Y+=f===15?")":",",f+=1;return Y}function I(f){var y=1e4;return f<1e-6&&f>0||f>-1e-6&&f<0?l(f*y)/y:f}function P(){var f=this.props,y=I(f[0]),Y=I(f[1]),$=I(f[4]),nt=I(f[5]),ft=I(f[12]),Et=I(f[13]);return"matrix("+y+","+Y+","+$+","+nt+","+ft+","+Et+")"}return function(){this.reset=h,this.rotate=c,this.rotateX=v,this.rotateY=A,this.rotateZ=g,this.skew=R,this.skewFromAxis=G,this.shear=k,this.scale=T,this.setTransform=M,this.translate=D,this.transform=O,this.multiply=V,this.applyToPoint=w,this.applyToX=F,this.applyToY=H,this.applyToZ=W,this.applyToPointArray=xt,this.applyToTriplePoints=ot,this.applyToPointStringified=ct,this.toCSS=J,this.to2dCSS=P,this.clone=E,this.cloneFromProps=S,this.equals=C,this.inversePoints=pt,this.inversePoint=yt,this.getInverseMatrix=et,this._t=this.transform,this.isIdentity=N,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function In(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?In=function(a){return typeof a}:In=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},In(e)}var Ot={},_n="__[STANDALONE]__",wp="__[ANIMATIONDATA]__",Np="";function Lb(e){m(e)}function Lp(){_n===!0?Qt.searchAnimations(wp,_n,Np):Qt.searchAnimations()}function Rb(e){ub(e)}function Mb(e){gb(e)}function Ob(e){return _n===!0&&(e.animationData=JSON.parse(wp)),Qt.loadAnimation(e)}function Pb(e){if(typeof e=="string")switch(e){case"high":bn(200);break;default:case"medium":bn(50);break;case"low":bn(10);break}else!isNaN(e)&&e>1&&bn(e);js()>=50?Je(!1):Je(!0)}function Db(){return typeof navigator<"u"}function Fb(e,i){e==="expressions"&&vb(i)}function $b(e){switch(e){case"propertyFactory":return at;case"shapePropertyFactory":return Sn;case"matrix":return fe;default:return null}}Ot.play=Qt.play,Ot.pause=Qt.pause,Ot.setLocationHref=Lb,Ot.togglePause=Qt.togglePause,Ot.setSpeed=Qt.setSpeed,Ot.setDirection=Qt.setDirection,Ot.stop=Qt.stop,Ot.searchAnimations=Lp,Ot.registerAnimation=Qt.registerAnimation,Ot.loadAnimation=Ob,Ot.setSubframeRendering=Rb,Ot.resize=Qt.resize,Ot.goToAndStop=Qt.goToAndStop,Ot.destroy=Qt.destroy,Ot.setQuality=Pb,Ot.inBrowser=Db,Ot.installPlugin=Fb,Ot.freeze=Qt.freeze,Ot.unfreeze=Qt.unfreeze,Ot.setVolume=Qt.setVolume,Ot.mute=Qt.mute,Ot.unmute=Qt.unmute,Ot.getRegisteredAnimations=Qt.getRegisteredAnimations,Ot.useWebWorker=s,Ot.setIDPrefix=Mb,Ot.__getFactory=$b,Ot.version="5.12.2";function zb(){document.readyState==="complete"&&(clearInterval(Ub),Lp())}function Vb(e){for(var i=Rp.split("&"),a=0;a<i.length;a+=1){var l=i[a].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var Rp="";if(_n){var Mp=document.getElementsByTagName("script"),Bb=Mp.length-1,Op=Mp[Bb]||{src:""};Rp=Op.src?Op.src.replace(/^[^\?]+\??/,""):"",Np=Vb("renderer")}var Ub=setInterval(zb,100);try{!((typeof _a>"u"?"undefined":In(_a))==="object"&&typeof ll<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Ot)}catch{}var yi=function(){var e={},i={};e.registerModifier=a,e.getModifier=l;function a(h,c){i[h]||(i[h]=c)}function l(h,c,v){return new i[h](c,v)}return e}();function ir(){}ir.prototype.initModifierProperties=function(){},ir.prototype.addShapeToModifier=function(){},ir.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:qo.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},ir.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ir.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},L([le],ir);function br(){}L([ir],br),br.prototype.initModifierProperties=function(e,i){this.s=at.getProp(e,i.s,0,.01,this),this.e=at.getProp(e,i.e,0,.01,this),this.o=at.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},br.prototype.addShapeToModifier=function(e){e.pathsData=[]},br.prototype.calculateShapeEdges=function(e,i,a,l,h){var c=[];i<=1?c.push({s:e,e:i}):e>=1?c.push({s:e-1,e:i-1}):(c.push({s:e,e:1}),c.push({s:0,e:i-1}));var v=[],A,g=c.length,k;for(A=0;A<g;A+=1)if(k=c[A],!(k.e*h<l||k.s*h>l+a)){var R,G;k.s*h<=l?R=0:R=(k.s*h-l)/a,k.e*h>=l+a?G=1:G=(k.e*h-l)/a,v.push([R,G])}return v.length||v.push([0,0]),v},br.prototype.releasePathsData=function(e){var i,a=e.length;for(i=0;i<a;i+=1)Sp.release(e[i]);return e.length=0,e},br.prototype.processShapes=function(e){var i,a;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?i=1+l:this.s.v<0?i=0+l:i=this.s.v+l,this.e.v>1?a=1+l:this.e.v<0?a=0+l:a=this.e.v+l,i>a){var h=i;i=a,a=h}i=Math.round(i*1e4)*1e-4,a=Math.round(a*1e4)*1e-4,this.sValue=i,this.eValue=a}else i=this.sValue,a=this.eValue;var c,v,A=this.shapes.length,g,k,R,G,T,M=0;if(a===i)for(v=0;v<A;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(a===1&&i===0||a===0&&i===1){if(this._mdf)for(v=0;v<A;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var D=[],O,V;for(v=0;v<A;v+=1)if(O=this.shapes[v],!O.shape._mdf&&!this._mdf&&!e&&this.m!==2)O.shape.paths=O.localShapeCollection;else{if(c=O.shape.paths,k=c._length,T=0,!O.shape._mdf&&O.pathsData.length)T=O.totalShapeLength;else{for(R=this.releasePathsData(O.pathsData),g=0;g<k;g+=1)G=kr.getSegmentsLength(c.shapes[g]),R.push(G),T+=G.totalLength;O.totalShapeLength=T,O.pathsData=R}M+=T,O.shape._mdf=!0}var N=i,C=a,E=0,S;for(v=A-1;v>=0;v-=1)if(O=this.shapes[v],O.shape._mdf){for(V=O.localShapeCollection,V.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,a,O.totalShapeLength,E,M),E+=O.totalShapeLength):S=[[N,C]],k=S.length,g=0;g<k;g+=1){N=S[g][0],C=S[g][1],D.length=0,C<=1?D.push({s:O.totalShapeLength*N,e:O.totalShapeLength*C}):N>=1?D.push({s:O.totalShapeLength*(N-1),e:O.totalShapeLength*(C-1)}):(D.push({s:O.totalShapeLength*N,e:O.totalShapeLength}),D.push({s:0,e:O.totalShapeLength*(C-1)}));var w=this.addShapes(O,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=O.shape.paths.shapes[O.shape.paths._length-1];if(F.c){var H=w.pop();this.addPaths(w,V),w=this.addShapes(O,D[1],H)}else this.addPaths(w,V),w=this.addShapes(O,D[1])}this.addPaths(w,V)}}O.shape.paths=V}}},br.prototype.addPaths=function(e,i){var a,l=e.length;for(a=0;a<l;a+=1)i.addShape(e[a])},br.prototype.addSegment=function(e,i,a,l,h,c,v){h.setXYAt(i[0],i[1],"o",c),h.setXYAt(a[0],a[1],"i",c+1),v&&h.setXYAt(e[0],e[1],"v",c),h.setXYAt(l[0],l[1],"v",c+1)},br.prototype.addSegmentFromArray=function(e,i,a,l){i.setXYAt(e[1],e[5],"o",a),i.setXYAt(e[2],e[6],"i",a+1),l&&i.setXYAt(e[0],e[4],"v",a),i.setXYAt(e[3],e[7],"v",a+1)},br.prototype.addShapes=function(e,i,a){var l=e.pathsData,h=e.shape.paths.shapes,c,v=e.shape.paths._length,A,g,k=0,R,G,T,M,D=[],O,V=!0;for(a?(G=a._length,O=a._length):(a=ue.newElement(),G=0,O=0),D.push(a),c=0;c<v;c+=1){for(T=l[c].lengths,a.c=h[c].c,g=h[c].c?T.length:T.length+1,A=1;A<g;A+=1)if(R=T[A-1],k+R.addedLength<i.s)k+=R.addedLength,a.c=!1;else if(k>i.e){a.c=!1;break}else i.s<=k&&i.e>=k+R.addedLength?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[A],h[c].v[A],a,G,V),V=!1):(M=kr.getNewSegment(h[c].v[A-1],h[c].v[A],h[c].o[A-1],h[c].i[A],(i.s-k)/R.addedLength,(i.e-k)/R.addedLength,T[A-1]),this.addSegmentFromArray(M,a,G,V),V=!1,a.c=!1),k+=R.addedLength,G+=1;if(h[c].c&&T.length){if(R=T[A-1],k<=i.e){var N=T[A-1].addedLength;i.s<=k&&i.e>=k+N?(this.addSegment(h[c].v[A-1],h[c].o[A-1],h[c].i[0],h[c].v[0],a,G,V),V=!1):(M=kr.getNewSegment(h[c].v[A-1],h[c].v[0],h[c].o[A-1],h[c].i[0],(i.s-k)/N,(i.e-k)/N,T[A-1]),this.addSegmentFromArray(M,a,G,V),V=!1,a.c=!1)}else a.c=!1;k+=R.addedLength,G+=1}if(a._length&&(a.setXYAt(a.v[O][0],a.v[O][1],"i",O),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),k>i.e)break;c<v-1&&(a=ue.newElement(),V=!0,D.push(a),G=0)}return D};function Qs(){}L([ir],Qs),Qs.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Qs.prototype.processPath=function(e,i){var a=i/100,l=[0,0],h=e._length,c=0;for(c=0;c<h;c+=1)l[0]+=e.v[c][0],l[1]+=e.v[c][1];l[0]/=h,l[1]/=h;var v=ue.newElement();v.c=e.c;var A,g,k,R,G,T;for(c=0;c<h;c+=1)A=e.v[c][0]+(l[0]-e.v[c][0])*a,g=e.v[c][1]+(l[1]-e.v[c][1])*a,k=e.o[c][0]+(l[0]-e.o[c][0])*-a,R=e.o[c][1]+(l[1]-e.o[c][1])*-a,G=e.i[c][0]+(l[0]-e.i[c][0])*-a,T=e.i[c][1]+(l[1]-e.i[c][1])*-a,v.setTripleAt(A,g,k,R,G,T,c);return v},Qs.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.amount.v;if(v!==0){var A,g;for(a=0;a<l;a+=1){if(A=this.shapes[a],g=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(i[h],v));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Rd=function(){var e=[0,0];function i(g){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var k;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var R,G;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(R=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(R=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(R=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){R=[],G=[];var T=this.px,M=this.py;T._caching.lastFrame+T.offsetTime<=T.keyframes[0].t?(R[0]=T.getValueAtTime((T.keyframes[0].t+.01)/k,0),R[1]=M.getValueAtTime((M.keyframes[0].t+.01)/k,0),G[0]=T.getValueAtTime(T.keyframes[0].t/k,0),G[1]=M.getValueAtTime(M.keyframes[0].t/k,0)):T._caching.lastFrame+T.offsetTime>=T.keyframes[T.keyframes.length-1].t?(R[0]=T.getValueAtTime(T.keyframes[T.keyframes.length-1].t/k,0),R[1]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/k,0),G[0]=T.getValueAtTime((T.keyframes[T.keyframes.length-1].t-.01)/k,0),G[1]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/k,0)):(R=[T.pv,M.pv],G[0]=T.getValueAtTime((T._caching.lastFrame+T.offsetTime-.01)/k,T.offsetTime),G[1]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/k,M.offsetTime))}else G=e,R=G;this.v.rotate(-Math.atan2(R[1]-G[1],R[0]-G[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 h(){}function c(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(g,k,R){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=k,this.v=new fe,this.pre=new fe,this.appliedTransformations=0,this.initDynamicPropertyContainer(R||g),k.p&&k.p.s?(this.px=at.getProp(g,k.p.x,0,0,this),this.py=at.getProp(g,k.p.y,0,0,this),k.p.z&&(this.pz=at.getProp(g,k.p.z,0,0,this))):this.p=at.getProp(g,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=at.getProp(g,k.rx,0,kt,this),this.ry=at.getProp(g,k.ry,0,kt,this),this.rz=at.getProp(g,k.rz,0,kt,this),k.or.k[0].ti){var G,T=k.or.k.length;for(G=0;G<T;G+=1)k.or.k[G].to=null,k.or.k[G].ti=null}this.or=at.getProp(g,k.or,1,kt,this),this.or.sh=!0}else this.r=at.getProp(g,k.r||{k:0},0,kt,this);k.sk&&(this.sk=at.getProp(g,k.sk,0,kt,this),this.sa=at.getProp(g,k.sa,0,kt,this)),this.a=at.getProp(g,k.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(g,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=at.getProp(g,k.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}v.prototype={applyToMatrix:i,getValue:a,precalculateMatrix:l,autoOrient:h},L([le],v),v.prototype.addDynamicProperty=c,v.prototype._addDynamicProperty=le.prototype.addDynamicProperty;function A(g,k,R){return new v(g,k,R)}return{getTransformProperty:A}}();function wr(){}L([ir],wr),wr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=at.getProp(e,i.c,0,null,this),this.o=at.getProp(e,i.o,0,null,this),this.tr=Rd.getTransformProperty(e,i.tr,this),this.so=at.getProp(e,i.tr.so,0,.01,this),this.eo=at.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new fe,this.rMatrix=new fe,this.sMatrix=new fe,this.tMatrix=new fe,this.matrix=new fe},wr.prototype.applyTransforms=function(e,i,a,l,h,c){var v=c?-1:1,A=l.s.v[0]+(1-l.s.v[0])*(1-h),g=l.s.v[1]+(1-l.s.v[1])*(1-h);e.translate(l.p.v[0]*v*h,l.p.v[1]*v*h,l.p.v[2]),i.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),i.rotate(-l.r.v*v*h),i.translate(l.a.v[0],l.a.v[1],l.a.v[2]),a.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),a.scale(c?1/A:A,c?1/g:g),a.translate(l.a.v[0],l.a.v[1],l.a.v[2])},wr.prototype.init=function(e,i,a,l){for(this.elem=e,this.arr=i,this.pos=a,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[a]);a>0;)a-=1,this._elements.unshift(i[a]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},wr.prototype.resetElements=function(e){var i,a=e.length;for(i=0;i<a;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},wr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},wr.prototype.changeGroupRender=function(e,i){var a,l=e.length;for(a=0;a<l;a+=1)e[a]._render=i,e[a].ty==="gr"&&this.changeGroupRender(e[a].it,i)},wr.prototype.processShapes=function(e){var i,a,l,h,c,v=!1;if(this._mdf||e){var A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),v=!0}c=0;var k;for(l=0;l<=this._groups.length-1;l+=1){if(k=c<A,this._groups[l]._render=k,this.changeGroupRender(this._groups[l].it,k),!k){var R=this.elemsData[l].it,G=R[R.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}c+=1}this._currentCopies=A;var T=this.o.v,M=T%1,D=T>0?Math.floor(T):Math.ceil(T),O=this.pMatrix.props,V=this.rMatrix.props,N=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var C=0;if(T>0){for(;C<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),C+=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,M,!1),C+=M)}else if(T<0){for(;C>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),C-=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-M,!0),C-=M)}l=this.data.m===1?0:this._currentCopies-1,h=this.data.m===1?1:-1,c=this._currentCopies;for(var E,S;c;){if(i=this.elemsData[l].it,a=i[i.length-1].transform.mProps.v.props,S=a.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(l/(this._currentCopies-1)),C!==0){for((l!==0&&h===1||l!==this._currentCopies-1&&h===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(V[0],V[1],V[2],V[3],V[4],V[5],V[6],V[7],V[8],V[9],V[10],V[11],V[12],V[13],V[14],V[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),this.matrix.transform(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]),E=0;E<S;E+=1)a[E]=this.matrix.props[E];this.matrix.reset()}else for(this.matrix.reset(),E=0;E<S;E+=1)a[E]=this.matrix.props[E];C+=1,c-=1,l+=h}}else for(c=this._currentCopies,l=0,h=1;c;)i=this.elemsData[l].it,a=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,c-=1,l+=h;return v},wr.prototype.addShape=function(){};function Js(){}L([ir],Js),Js.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=at.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Js.prototype.processPath=function(e,i){var a=ue.newElement();a.c=e.c;var l,h=e._length,c,v,A,g,k,R,G=0,T,M,D,O,V,N;for(l=0;l<h;l+=1)c=e.v[l],A=e.o[l],v=e.i[l],c[0]===A[0]&&c[1]===A[1]&&c[0]===v[0]&&c[1]===v[1]?(l===0||l===h-1)&&!e.c?(a.setTripleAt(c[0],c[1],A[0],A[1],v[0],v[1],G),G+=1):(l===0?g=e.v[h-1]:g=e.v[l-1],k=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),R=k?Math.min(k/2,i)/k:0,V=c[0]+(g[0]-c[0])*R,T=V,N=c[1]-(c[1]-g[1])*R,M=N,D=T-(T-c[0])*me,O=M-(M-c[1])*me,a.setTripleAt(T,M,D,O,V,N,G),G+=1,l===h-1?g=e.v[0]:g=e.v[l+1],k=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),R=k?Math.min(k/2,i)/k:0,D=c[0]+(g[0]-c[0])*R,T=D,O=c[1]+(g[1]-c[1])*R,M=O,V=T-(T-c[0])*me,N=M-(M-c[1])*me,a.setTripleAt(T,M,D,O,V,N,G),G+=1):(a.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],G),G+=1);return a},Js.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.rd.v;if(v!==0){var A,g;for(a=0;a<l;a+=1){if(A=this.shapes[a],g=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,c=A.shape.paths._length,h=0;h<c;h+=1)g.addShape(this.processPath(i[h],v));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Cn(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function Md(e){return Math.abs(e)<=1e-5}function Pp(e,i,a){return e*(1-a)+i*a}function Ei(e,i,a){return[Pp(e[0],i[0],a),Pp(e[1],i[1],a)]}function Hb(e,i,a){if(e===0)return[];var l=i*i-4*e*a;if(l<0)return[];var h=-i/(2*e);if(l===0)return[h];var c=Math.sqrt(l)/(2*e);return[h-c,h+c]}function Dp(e,i,a,l){return[-e+3*i-3*a+l,3*e-6*i+3*a,-3*e+3*i,e]}function Fp(e){return new Kt(e,e,e,e,!1)}function Kt(e,i,a,l,h){h&&Zo(e,i)&&(i=Ei(e,l,1/3)),h&&Zo(a,l)&&(a=Ei(e,l,2/3));var c=Dp(e[0],i[0],a[0],l[0]),v=Dp(e[1],i[1],a[1],l[1]);this.a=[c[0],v[0]],this.b=[c[1],v[1]],this.c=[c[2],v[2]],this.d=[c[3],v[3]],this.points=[e,i,a,l]}Kt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Kt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Kt.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},Kt.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},Kt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Md(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,a=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(a<0)return[];var l=Math.sqrt(a);return Md(l)?l>0&&l<1?[i]:[]:[i-l,i+l].filter(function(h){return h>0&&h<1})},Kt.prototype.split=function(e){if(e<=0)return[Fp(this.points[0]),this];if(e>=1)return[this,Fp(this.points[this.points.length-1])];var i=Ei(this.points[0],this.points[1],e),a=Ei(this.points[1],this.points[2],e),l=Ei(this.points[2],this.points[3],e),h=Ei(i,a,e),c=Ei(a,l,e),v=Ei(h,c,e);return[new Kt(this.points[0],i,h,v,!0),new Kt(v,c,l,this.points[3],!0)]};function $p(e,i){var a=e.points[0][i],l=e.points[e.points.length-1][i];if(a>l){var h=l;l=a,a=h}for(var c=Hb(3*e.a[i],2*e.b[i],e.c[i]),v=0;v<c.length;v+=1)if(c[v]>0&&c[v]<1){var A=e.point(c[v])[i];A<a?a=A:A>l&&(l=A)}return{min:a,max:l}}Kt.prototype.bounds=function(){return{x:$p(this,0),y:$p(this,1)}},Kt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function kn(e,i,a){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+a)/2,t1:i,t2:a}}function zp(e){var i=e.bez.split(.5);return[kn(i[0],e.t1,e.t),kn(i[1],e.t,e.t2)]}function Gb(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function ta(e,i,a,l,h,c){if(Gb(e,i)){if(a>=c||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){h.push([e.t,i.t]);return}var v=zp(e),A=zp(i);ta(v[0],A[0],a+1,l,h,c),ta(v[0],A[1],a+1,l,h,c),ta(v[1],A[0],a+1,l,h,c),ta(v[1],A[1],a+1,l,h,c)}}Kt.prototype.intersections=function(e,i,a){i===void 0&&(i=2),a===void 0&&(a=7);var l=[];return ta(kn(this,0,1),kn(e,0,1),0,i,l,a),l},Kt.shapeSegment=function(e,i){var a=(i+1)%e.length();return new Kt(e.v[i],e.o[i],e.i[a],e.v[a],!0)},Kt.shapeSegmentInverted=function(e,i){var a=(i+1)%e.length();return new Kt(e.v[a],e.i[a],e.o[i],e.v[i],!0)};function Od(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function wn(e,i,a,l){var h=[e[0],e[1],1],c=[i[0],i[1],1],v=[a[0],a[1],1],A=[l[0],l[1],1],g=Od(Od(h,c),Od(v,A));return Md(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function Xo(e,i,a){return[e[0]+Math.cos(i)*a,e[1]-Math.sin(i)*a]}function Pd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function Zo(e,i){return Cn(e[0],i[0])&&Cn(e[1],i[1])}function ea(){}L([ir],ea),ea.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=at.getProp(e,i.s,0,null,this),this.frequency=at.getProp(e,i.r,0,null,this),this.pointsType=at.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Vp(e,i,a,l,h,c,v){var A=a-Math.PI/2,g=a+Math.PI/2,k=i[0]+Math.cos(a)*l*h,R=i[1]-Math.sin(a)*l*h;e.setTripleAt(k,R,k+Math.cos(A)*c,R-Math.sin(A)*c,k+Math.cos(g)*v,R-Math.sin(g)*v,e.length())}function Yb(e,i){var a=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,h=[Math.cos(l)*a[0]-Math.sin(l)*a[1],Math.sin(l)*a[0]+Math.cos(l)*a[1]];return h}function Wb(e,i){var a=i===0?e.length()-1:i-1,l=(i+1)%e.length(),h=e.v[a],c=e.v[l],v=Yb(h,c);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function Bp(e,i,a,l,h,c,v){var A=Wb(i,a),g=i.v[a%i._length],k=i.v[a===0?i._length-1:a-1],R=i.v[(a+1)%i._length],G=c===2?Math.sqrt(Math.pow(g[0]-k[0],2)+Math.pow(g[1]-k[1],2)):0,T=c===2?Math.sqrt(Math.pow(g[0]-R[0],2)+Math.pow(g[1]-R[1],2)):0;Vp(e,i.v[a%i._length],A,v,l,T/((h+1)*2),G/((h+1)*2),c)}function jb(e,i,a,l,h,c){for(var v=0;v<l;v+=1){var A=(v+1)/(l+1),g=h===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,k=i.normalAngle(A),R=i.point(A);Vp(e,R,k,c,a,g/((l+1)*2),g/((l+1)*2),h),c=-c}return c}ea.prototype.processPath=function(e,i,a,l){var h=e._length,c=ue.newElement();if(c.c=e.c,e.c||(h-=1),h===0)return c;var v=-1,A=Kt.shapeSegment(e,0);Bp(c,e,0,i,a,l,v);for(var g=0;g<h;g+=1)v=jb(c,A,i,a,l,-v),g===h-1&&!e.c?A=null:A=Kt.shapeSegment(e,(g+1)%h),Bp(c,e,g+1,i,a,l,v);return c},ea.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==0){var k,R;for(a=0;a<l;a+=1){if(k=this.shapes[a],R=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(R.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,c=k.shape.paths._length,h=0;h<c;h+=1)R.addShape(this.processPath(i[h],v,A,g));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Dd(e,i,a){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[Xo(e,l,a),Xo(i,l,a)]}function Qo(e,i){var a,l,h,c,v,A,g;g=Dd(e.points[0],e.points[1],i),a=g[0],l=g[1],g=Dd(e.points[1],e.points[2],i),h=g[0],c=g[1],g=Dd(e.points[2],e.points[3],i),v=g[0],A=g[1];var k=wn(a,l,h,c);k===null&&(k=l);var R=wn(v,A,h,c);return R===null&&(R=v),new Kt(a,k,R,A)}function Up(e,i,a,l,h){var c=i.points[3],v=a.points[0];if(l===3||Zo(c,v))return c;if(l===2){var A=-i.tangentAngle(1),g=-a.tangentAngle(0)+Math.PI,k=wn(c,Xo(c,A+Math.PI/2,100),v,Xo(v,A+Math.PI/2,100)),R=k?Pd(k,c):Pd(c,v)/2,G=Xo(c,A,2*R*me);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=Xo(v,g,2*R*me),e.setTripleAt(v[0],v[1],v[0],v[1],G[0],G[1],e.length()),v}var T=Zo(c,i.points[2])?i.points[0]:i.points[2],M=Zo(v,a.points[1])?a.points[3]:a.points[1],D=wn(T,c,v,M);return D&&Pd(D,c)<h?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):c}function Hp(e,i){var a=e.intersections(i);return a.length&&Cn(a[0][0],1)&&a.shift(),a.length?a[0]:null}function Gp(e,i){var a=e.slice(),l=i.slice(),h=Hp(e[e.length-1],i[0]);return h&&(a[e.length-1]=e[e.length-1].split(h[0])[0],l[0]=i[0].split(h[1])[1]),e.length>1&&i.length>1&&(h=Hp(e[0],i[i.length-1]),h)?[[e[0].split(h[0])[0]],[i[i.length-1].split(h[1])[1]]]:[a,l]}function Kb(e){for(var i,a=1;a<e.length;a+=1)i=Gp(e[a-1],e[a]),e[a-1]=i[0],e[a]=i[1];return e.length>1&&(i=Gp(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function Yp(e,i){var a=e.inflectionPoints(),l,h,c,v;if(a.length===0)return[Qo(e,i)];if(a.length===1||Cn(a[1],1))return c=e.split(a[0]),l=c[0],h=c[1],[Qo(l,i),Qo(h,i)];c=e.split(a[0]),l=c[0];var A=(a[1]-a[0])/(1-a[0]);return c=c[1].split(A),v=c[0],h=c[1],[Qo(l,i),Qo(v,i),Qo(h,i)]}function ra(){}L([ir],ra),ra.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=at.getProp(e,i.a,0,null,this),this.miterLimit=at.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},ra.prototype.processPath=function(e,i,a,l){var h=ue.newElement();h.c=e.c;var c=e.length();e.c||(c-=1);var v,A,g,k=[];for(v=0;v<c;v+=1)g=Kt.shapeSegment(e,v),k.push(Yp(g,i));if(!e.c)for(v=c-1;v>=0;v-=1)g=Kt.shapeSegmentInverted(e,v),k.push(Yp(g,i));k=Kb(k);var R=null,G=null;for(v=0;v<k.length;v+=1){var T=k[v];for(G&&(R=Up(h,G,T[0],a,l)),G=T[T.length-1],A=0;A<T.length;A+=1)g=T[A],R&&Zo(g.points[0],R)?h.setXYAt(g.points[1][0],g.points[1][1],"o",h.length()-1):h.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],h.length()),h.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],h.length()),R=g.points[3]}return k.length&&Up(h,G,k[0][0],a,l),h},ra.prototype.processShapes=function(e){var i,a,l=this.shapes.length,h,c,v=this.amount.v,A=this.miterLimit.v,g=this.lineJoin;if(v!==0){var k,R;for(a=0;a<l;a+=1){if(k=this.shapes[a],R=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(R.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,c=k.shape.paths._length,h=0;h<c;h+=1)R.addShape(this.processPath(i[h],v,g,A));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Wp(e){for(var i=e.fStyle?e.fStyle.split(" "):[],a="normal",l="normal",h=i.length,c,v=0;v<h;v+=1)switch(c=i[v].toLowerCase(),c){case"italic":l="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:l,weight:e.fWeight||a}}var ao=function(){var e=5e3,i={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var l=127988,h=917631,c=917601,v=917626,A=65039,g=8205,k=127462,R=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function T(I){var P=I.split(","),f,y=P.length,Y=[];for(f=0;f<y;f+=1)P[f]!=="sans-serif"&&P[f]!=="monospace"&&Y.push(P[f]);return Y.join(",")}function M(I,P){var f=x("span");f.setAttribute("aria-hidden",!0),f.style.fontFamily=P;var y=x("span");y.innerText="giItT1WQy@!-/#",f.style.position="absolute",f.style.left="-10000px",f.style.top="-10000px",f.style.fontSize="300px",f.style.fontVariant="normal",f.style.fontStyle="normal",f.style.fontWeight="normal",f.style.letterSpacing="0",f.appendChild(y),document.body.appendChild(f);var Y=y.offsetWidth;return y.style.fontFamily=T(I)+", "+P,{node:y,w:Y,parent:f}}function D(){var I,P=this.fonts.length,f,y,Y=P;for(I=0;I<P;I+=1)this.fonts[I].loaded?Y-=1:this.fonts[I].fOrigin==="n"||this.fonts[I].origin===0?this.fonts[I].loaded=!0:(f=this.fonts[I].monoCase.node,y=this.fonts[I].monoCase.w,f.offsetWidth!==y?(Y-=1,this.fonts[I].loaded=!0):(f=this.fonts[I].sansCase.node,y=this.fonts[I].sansCase.w,f.offsetWidth!==y&&(Y-=1,this.fonts[I].loaded=!0)),this.fonts[I].loaded&&(this.fonts[I].sansCase.parent.parentNode.removeChild(this.fonts[I].sansCase.parent),this.fonts[I].monoCase.parent.parentNode.removeChild(this.fonts[I].monoCase.parent)));Y!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function O(I,P){var f=document.body&&P?"svg":"canvas",y,Y=Wp(I);if(f==="svg"){var $=Tt("text");$.style.fontSize="100px",$.setAttribute("font-family",I.fFamily),$.setAttribute("font-style",Y.style),$.setAttribute("font-weight",Y.weight),$.textContent="1",I.fClass?($.style.fontFamily="inherit",$.setAttribute("class",I.fClass)):$.style.fontFamily=I.fFamily,P.appendChild($),y=$}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=Y.style+" "+Y.weight+" 100px "+I.fFamily,y=nt}function ft(Et){return f==="svg"?(y.textContent=Et,y.getComputedTextLength()):y.measureText(Et).width}return{measureText:ft}}function V(I,P){if(!I){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=I.list;return}if(!document.body){this.isLoaded=!0,I.list.forEach(function(Re){Re.helper=O(Re),Re.cache={}}),this.fonts=I.list;return}var f=I.list,y,Y=f.length,$=Y;for(y=0;y<Y;y+=1){var nt=!0,ft,Et;if(f[y].loaded=!1,f[y].monoCase=M(f[y].fFamily,"monospace"),f[y].sansCase=M(f[y].fFamily,"sans-serif"),!f[y].fPath)f[y].loaded=!0,$-=1;else if(f[y].fOrigin==="p"||f[y].origin===3){if(ft=document.querySelectorAll('style[f-forigin="p"][f-family="'+f[y].fFamily+'"], style[f-origin="3"][f-family="'+f[y].fFamily+'"]'),ft.length>0&&(nt=!1),nt){var Rt=x("style");Rt.setAttribute("f-forigin",f[y].fOrigin),Rt.setAttribute("f-origin",f[y].origin),Rt.setAttribute("f-family",f[y].fFamily),Rt.type="text/css",Rt.innerText="@font-face {font-family: "+f[y].fFamily+"; font-style: normal; src: url('"+f[y].fPath+"');}",P.appendChild(Rt)}}else if(f[y].fOrigin==="g"||f[y].origin===1){for(ft=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<ft.length;Et+=1)ft[Et].href.indexOf(f[y].fPath)!==-1&&(nt=!1);if(nt){var Mt=x("link");Mt.setAttribute("f-forigin",f[y].fOrigin),Mt.setAttribute("f-origin",f[y].origin),Mt.type="text/css",Mt.rel="stylesheet",Mt.href=f[y].fPath,document.body.appendChild(Mt)}}else if(f[y].fOrigin==="t"||f[y].origin===2){for(ft=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<ft.length;Et+=1)f[y].fPath===ft[Et].src&&(nt=!1);if(nt){var Jt=x("link");Jt.setAttribute("f-forigin",f[y].fOrigin),Jt.setAttribute("f-origin",f[y].origin),Jt.setAttribute("rel","stylesheet"),Jt.setAttribute("href",f[y].fPath),P.appendChild(Jt)}}f[y].helper=O(f[y],P),f[y].cache={},this.fonts.push(f[y])}$===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function N(I){if(I){this.chars||(this.chars=[]);var P,f=I.length,y,Y=this.chars.length,$;for(P=0;P<f;P+=1){for(y=0,$=!1;y<Y;)this.chars[y].style===I[P].style&&this.chars[y].fFamily===I[P].fFamily&&this.chars[y].ch===I[P].ch&&($=!0),y+=1;$||(this.chars.push(I[P]),Y+=1)}}}function C(I,P,f){for(var y=0,Y=this.chars.length;y<Y;){if(this.chars[y].ch===I&&this.chars[y].style===P&&this.chars[y].fFamily===f)return this.chars[y];y+=1}return(typeof I=="string"&&I.charCodeAt(0)!==13||!I)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",I,P,f)),i}function E(I,P,f){var y=this.getFontByName(P),Y=I;if(!y.cache[Y]){var $=y.helper;if(I===" "){var nt=$.measureText("|"+I+"|"),ft=$.measureText("||");y.cache[Y]=(nt-ft)/100}else y.cache[Y]=$.measureText(I)/100}return y.cache[Y]*f}function S(I){for(var P=0,f=this.fonts.length;P<f;){if(this.fonts[P].fName===I)return this.fonts[P];P+=1}return this.fonts[0]}function w(I){var P=0,f=I.charCodeAt(0);if(f>=55296&&f<=56319){var y=I.charCodeAt(1);y>=56320&&y<=57343&&(P=(f-55296)*1024+y-56320+65536)}return P}function F(I,P){var f=I.toString(16)+P.toString(16);return G.indexOf(f)!==-1}function H(I){return I===g}function W(I){return I===A}function et(I){var P=w(I);return P>=k&&P<=R}function yt(I){return et(I.substr(0,2))&&et(I.substr(2,2))}function pt(I){return a.indexOf(I)!==-1}function ot(I,P){var f=w(I.substr(P,2));if(f!==l)return!1;var y=0;for(P+=2;y<5;){if(f=w(I.substr(P,2)),f<c||f>v)return!1;y+=1,P+=2}return w(I.substr(P,2))===h}function xt(){this.isLoaded=!0}var ct=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)};ct.isModifier=F,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=et,ct.isCombinedCharacter=pt,ct.isRegionalFlag=ot,ct.isVariationSelector=W,ct.BLACK_FLAG_CODE_POINT=l;var J={addChars:N,addFonts:V,getCharData:C,getFontByName:S,measureText:E,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=J,ct}();function jp(e){this.animationData=e}jp.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function qb(e){return new jp(e)}function Nn(){}Nn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},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(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?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 i,a=this.renderableComponents.length;for(i=0;i<a;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Fd=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function Xb(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function Zb(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function Qb(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function Jb(e,i,a){this.p=at.getProp(i,e.v,1,0,a)}function ty(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function ey(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function ry(e,i,a){this.p=at.getProp(i,e.v,0,0,a)}function iy(){this.p={}}function Kp(e,i){var a=e.ef||[];this.effectElements=[];var l,h=a.length,c;for(l=0;l<h;l+=1)c=new ia(a[l],i),this.effectElements.push(c)}function ia(e,i){this.init(e,i)}L([le],ia),ia.prototype.getValue=ia.prototype.iterateDynamicProperties,ia.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,l=this.data.ef.length,h,c=this.data.ef;for(a=0;a<l;a+=1){switch(h=null,c[a].ty){case 0:h=new Xb(c[a],i,this);break;case 1:h=new Zb(c[a],i,this);break;case 2:h=new Qb(c[a],i,this);break;case 3:h=new Jb(c[a],i,this);break;case 4:case 7:h=new ry(c[a],i,this);break;case 10:h=new ty(c[a],i,this);break;case 11:h=new ey(c[a],i,this);break;case 5:h=new Kp(c[a],i,this);break;default:h=new iy(c[a],i,this);break}h&&this.effectElements.push(h)}};function Ti(){}Ti.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,a=this.data.masksProperties.length;i<a;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Ep();if(i){var a=i("layer"),l=i("effects"),h=i("shape"),c=i("text"),v=i("comp");this.layerInterface=a(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var A=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(A),this.data.ty===0||this.data.xt?this.compInterface=v(this):this.data.ty===4?(this.layerInterface.shapeInterface=h(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=Fd(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=i},initBaseData:function(i,a,l){this.globalData=a,this.comp=l,this.data=i,this.layerId=Ne(),this.data.sr||(this.data.sr=1),this.effectsManager=new Kp(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function xi(){}xi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,a){var l,h=this.dynamicProperties.length;for(l=0;l<h;l+=1)(a||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function Ai(e,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,a)}Ai.prototype.prepareFrame=function(){},L([Nn,Ti,xi],Ai),Ai.prototype.getBaseElement=function(){return null},Ai.prototype.renderFrame=function(){},Ai.prototype.destroy=function(){},Ai.prototype.initExpressions=function(){var e=Ep();if(e){var i=e("footage");this.layerInterface=i(this)}},Ai.prototype.getFootageData=function(){return this.footageData};function Le(e,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,a),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Le.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},L([Nn,Ti,xi],Le),Le.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Le.prototype.show=function(){},Le.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Le.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Le.prototype.resume=function(){this._canPlay=!0},Le.prototype.setRate=function(e){this.audio.rate(e)},Le.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Le.prototype.getBaseElement=function(){return null},Le.prototype.destroy=function(){},Le.prototype.sourceRectAtTime=function(){},Le.prototype.initExpressions=function(){};function ve(){}ve.prototype.checkLayers=function(e){var i,a=this.layers.length,l;for(this.completeLayers=!0,i=a-1;i>=0;i-=1)this.elements[i]||(l=this.layers[i],l.ip-l.st<=e-this.layers[i].st&&l.op-l.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},ve.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},ve.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ve.prototype.createAudio=function(e){return new Le(e,this.globalData,this)},ve.prototype.createFootage=function(e){return new Ai(e,this.globalData,this)},ve.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},ve.prototype.includeLayers=function(e){this.completeLayers=!1;var i,a=e.length,l,h=this.layers.length;for(i=0;i<a;i+=1)for(l=0;l<h;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},ve.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},ve.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ve.prototype.buildElementParenting=function(e,i,a){for(var l=this.elements,h=this.layers,c=0,v=h.length;c<v;)h[c].ind==i&&(!l[c]||l[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(a.push(l[c]),l[c].setAsParent(),h[c].parent!==void 0?this.buildElementParenting(e,h[c].parent,a):e.setHierarchy(a))),c+=1},ve.prototype.addPendingElement=function(e){this.pendingElements.push(e)},ve.prototype.searchExtraCompositions=function(e){var i,a=e.length;for(i=0;i<a;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},ve.prototype.getElementById=function(e){var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},ve.prototype.getElementByPath=function(e){var i=e.shift(),a;if(typeof i=="number")a=this.elements[i];else{var l,h=this.elements.length;for(l=0;l<h;l+=1)if(this.elements[l].data.nm===i){a=this.elements[l];break}}return e.length===0?a:a.getElementByPath(e)},ve.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new ao,this.globalData.slotManager=qb(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var oy={TRANSFORM_EFFECT:"transformEFfect"};function Jo(){}Jo.prototype={initTransform:function(){var i=new fe;this.finalTransform={mProp:this.data.ks?Rd.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,a=this.finalTransform.mat,l=0,h=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<h;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,a.cloneFromProps(i),l=0;l<h;l+=1)a.multiply(this.hierarchy[l].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var i=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<a;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),i=1;i<a;i+=1){var h=this.localTransforms[i].matrix;l.multiply(h)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(i=0;i<a;i+=1)c*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(oy.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new fe;var a=0,l=i.length;for(a=0;a<l;a+=1)this.localTransforms.push(i[a])}}},globalToLocal:function(i){var a=[];a.push(this.finalTransform);for(var l=!0,h=this.comp;l;)h.finalTransform?(h.data.hasMask&&a.splice(0,0,h.finalTransform),h=h.comp):l=!1;var c,v=a.length,A;for(c=0;c<v;c+=1)A=a[c].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new fe};function no(e,i,a){this.data=e,this.element=i,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,h,c=this.masksProperties?this.masksProperties.length:0;this.viewData=it(c),this.solidPath="";var v,A=this.masksProperties,g=0,k=[],R,G,T=Ne(),M,D,O,V,N="clipPath",C="clip-path";for(h=0;h<c;h+=1)if((A[h].mode!=="a"&&A[h].mode!=="n"||A[h].inv||A[h].o.k!==100||A[h].o.x)&&(N="mask",C="mask"),(A[h].mode==="s"||A[h].mode==="i")&&g===0?(M=Tt("rect"),M.setAttribute("fill","#ffffff"),M.setAttribute("width",this.element.comp.data.w||0),M.setAttribute("height",this.element.comp.data.h||0),k.push(M)):M=null,v=Tt("path"),A[h].mode==="n")this.viewData[h]={op:at.getProp(this.element,A[h].o,0,.01,this.element),prop:Sn.getShapeProp(this.element,A[h],3),elem:v,lastPath:""},l.appendChild(v);else{g+=1,v.setAttribute("fill",A[h].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var E;if(A[h].x.k!==0?(N="mask",C="mask",V=at.getProp(this.element,A[h].x,0,null,this.element),E=Ne(),D=Tt("filter"),D.setAttribute("id",E),O=Tt("feMorphology"),O.setAttribute("operator","erode"),O.setAttribute("in","SourceGraphic"),O.setAttribute("radius","0"),D.appendChild(O),l.appendChild(D),v.setAttribute("stroke",A[h].mode==="s"?"#000000":"#ffffff")):(O=null,V=null),this.storedData[h]={elem:v,x:V,expan:O,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},A[h].mode==="i"){G=k.length;var S=Tt("g");for(R=0;R<G;R+=1)S.appendChild(k[R]);var w=Tt("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",T+"_"+g),w.appendChild(v),l.appendChild(w),S.setAttribute("mask","url("+b()+"#"+T+"_"+g+")"),k.length=0,k.push(S)}else k.push(v);A[h].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[h]={elem:v,lastPath:"",op:at.getProp(this.element,A[h].o,0,.01,this.element),prop:Sn.getShapeProp(this.element,A[h],3),invRect:M},this.viewData[h].prop.k||this.drawPath(A[h],this.viewData[h].prop.v,this.viewData[h])}for(this.maskElement=Tt(N),c=k.length,h=0;h<c;h+=1)this.maskElement.appendChild(k[h]);g>0&&(this.maskElement.setAttribute("id",T),this.element.maskedElement.setAttribute(C,"url("+b()+"#"+T+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}no.prototype.getMaskProperty=function(e){return this.viewData[e].prop},no.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,a,l=this.masksProperties.length;for(a=0;a<l;a+=1)if((this.viewData[a].prop._mdf||e)&&this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]),(this.viewData[a].op._mdf||e)&&this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v),this.masksProperties[a].mode!=="n"&&(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[a].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[a].x&&(this.storedData[a].x._mdf||e))){var h=this.storedData[a].expan;this.storedData[a].x.v<0?(this.storedData[a].lastOperator!=="erode"&&(this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+b()+"#"+this.storedData[a].filterId+")")),h.setAttribute("radius",-this.storedData[a].x.v)):(this.storedData[a].lastOperator!=="dilate"&&(this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null)),this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2))}},no.prototype.getMaskelement=function(){return this.maskElement},no.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},no.prototype.drawPath=function(e,i,a){var l=" M"+i.v[0][0]+","+i.v[0][1],h,c;for(c=i._length,h=1;h<c;h+=1)l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[h][0]+","+i.i[h][1]+" "+i.v[h][0]+","+i.v[h][1];if(i.c&&c>1&&(l+=" C"+i.o[h-1][0]+","+i.o[h-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),a.lastPath!==l){var v="";a.elem&&(i.c&&(v=e.inv?this.solidPath+l:l),a.elem.setAttribute("d",v)),a.lastPath=l}},no.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var oa=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=a;function i(l,h){var c=Tt("filter");return c.setAttribute("id",l),h!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function a(){var l=Tt("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 e}(),qp=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),Ln={},Xp="filter_result_";function $d(e){var i,a="SourceGraphic",l=e.data.ef?e.data.ef.length:0,h=Ne(),c=oa.createFilter(h,!0),v=0;this.filters=[];var A;for(i=0;i<l;i+=1){A=null;var g=e.data.ef[i].ty;if(Ln[g]){var k=Ln[g].effect;A=new k(c,e.effectsManager.effectElements[i],e,Xp+v,a),a=Xp+v,Ln[g].countsAsEffect&&(v+=1)}A&&this.filters.push(A)}v&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+b()+"#"+h+")")),this.filters.length&&e.addRenderableComponent(this)}$d.prototype.renderFrame=function(e){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(e)},$d.prototype.getEffects=function(e){var i,a=this.filters.length,l=[];for(i=0;i<a;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function KA(e,i,a){Ln[e]={effect:i,countsAsEffect:a}}function sa(){}sa.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var a=Tt("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var l=Tt("clipPath"),h=Tt("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=Ne();if(l.setAttribute("id",c),l.appendChild(h),this.globalData.defs.appendChild(l),this.checkMasks()){var v=Tt("g");v.setAttribute("clip-path","url("+b()+"#"+c+")"),v.appendChild(this.layerElement),this.transformedElement=v,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+b()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new no(this.data,this,this.globalData),this.renderableEffectsManager=new $d(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var a=this.layerId+"_"+i,l,h,c,v;if(i===1||i===3){var A=Tt("mask");A.setAttribute("id",a),A.setAttribute("mask-type",i===3?"luminance":"alpha"),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(c),this.globalData.defs.appendChild(A),!qp.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=Ne(),h=oa.createFilter(l),this.globalData.defs.appendChild(h),h.appendChild(oa.createAlphaToLuminanceFilter()),v=Tt("g"),v.appendChild(c),A.appendChild(v),v.setAttribute("filter","url("+b()+"#"+l+")"))}else if(i===2){var g=Tt("mask");g.setAttribute("id",a),g.setAttribute("mask-type","alpha");var k=Tt("g");g.appendChild(k),l=Ne(),h=oa.createFilter(l);var R=Tt("feComponentTransfer");R.setAttribute("in","SourceGraphic"),h.appendChild(R);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),R.appendChild(G),this.globalData.defs.appendChild(h);var T=Tt("rect");T.setAttribute("width",this.comp.data.w),T.setAttribute("height",this.comp.data.h),T.setAttribute("x","0"),T.setAttribute("y","0"),T.setAttribute("fill","#ffffff"),T.setAttribute("opacity","0"),k.setAttribute("filter","url("+b()+"#"+l+")"),k.appendChild(T),c=Tt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(c),qp.maskType||(g.setAttribute("mask-type","luminance"),h.appendChild(oa.createAlphaToLuminanceFilter()),v=Tt("g"),k.appendChild(T),v.appendChild(this.layerElement),k.appendChild(v)),this.globalData.defs.appendChild(g)}this.matteMasks[i]=a}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+b()+"#"+i+")")}};function ts(){}ts.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function aa(){}(function(){var e={initElement:function(a,l,h){this.initFrame(),this.initBaseData(a,l,h),this.initTransform(a,l,h),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};L([Nn,K(e)],aa)})();function na(e,i,a){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}L([Ti,Jo,sa,ts,xi,aa],na),na.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},na.prototype.sourceRectAtTime=function(){return this.sourceRect};function sy(e,i){this.elem=e,this.pos=i}function Zp(){}Zp.prototype={addShapeToModifiers:function(i){var a,l=this.shapeModifiers.length;for(a=0;a<l;a+=1)this.shapeModifiers[a].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var a=0,l=this.shapeModifiers.length;a<l;)if(this.shapeModifiers[a].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,a=this.shapes.length;for(i=0;i<a;i+=1)this.shapes[i].sh.reset();a=this.shapeModifiers.length;var l;for(i=a-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var a=this.processedElements,l=0,h=a.length;l<h;){if(a[l].elem===i)return a[l].pos;l+=1}return 0},addProcessedElement:function(i,a){for(var l=this.processedElements,h=l.length;h;)if(h-=1,l[h].elem===i){l[h].pos=a;return}l.push(new sy(i,a))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var Qp={1:"butt",2:"round",3:"square"},Jp={1:"miter",2:"round",3:"bevel"};function tm(e,i,a){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=a,this.lvl=i,this._isAnimated=!!a.k;for(var l=0,h=e.length;l<h;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}tm.prototype.setAsAnimated=function(){this._isAnimated=!0};function em(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}em.prototype.reset=function(){this.d="",this._mdf=!1};function Rn(e,i,a,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=X("float32",i.length?i.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(l);var h,c=i.length||0,v;for(h=0;h<c;h+=1)v=at.getProp(e,i[h].v,0,0,this),this.k=v.k||this.k,this.dataProps[h]={n:i[h].n,p:v};this.k||this.getValue(!0),this._isAnimated=this.k}Rn.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,a=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<a;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},L([le],Rn);function rm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.w=at.getProp(e,i.w,0,null,this),this.d=new Rn(e,i.d||{},"svg",this),this.c=at.getProp(e,i.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}L([le],rm);function im(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(e,i.o,0,.01,this),this.c=at.getProp(e,i.c,1,255,this),this.style=a}L([le],im);function om(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=a}L([le],om);function la(e,i,a){this.data=i,this.c=X("uint8c",i.p*4);var l=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=X("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(a),this.prop=at.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}la.prototype.comparePoints=function(e,i){for(var a=0,l=this.o.length/2,h;a<l;){if(h=Math.abs(e[a*4]-e[i*4+a*2]),h>.01)return!1;a+=1}return!0},la.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},la.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,a=this.data.p*4,l,h;for(i=0;i<a;i+=1)l=i%4===0?100:255,h=Math.round(this.prop.v[i]*l),this.c[i]!==h&&(this.c[i]=h,this._cmdf=!e);if(this.o.length)for(a=this.prop.v.length,i=this.data.p*4;i<a;i+=1)l=i%2===0?100:1,h=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==h&&(this.o[i-this.data.p*4]=h,this._omdf=!e);this._mdf=!e}},L([le],la);function es(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,a)}es.prototype.initGradientData=function(e,i,a){this.o=at.getProp(e,i.o,0,.01,this),this.s=at.getProp(e,i.s,1,null,this),this.e=at.getProp(e,i.e,1,null,this),this.h=at.getProp(e,i.h||{k:0},0,.01,this),this.a=at.getProp(e,i.a||{k:0},0,kt,this),this.g=new la(e,i.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,i),this.setGradientOpacity(i,a),this._isAnimated=!!this._isAnimated},es.prototype.setGradientData=function(e,i){var a=Ne(),l=Tt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",a),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var h=[],c,v,A;for(A=i.g.p*4,v=0;v<A;v+=4)c=Tt("stop"),l.appendChild(c),h.push(c);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+b()+"#"+a+")"),this.gf=l,this.cst=h},es.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var a,l,h,c=Tt("mask"),v=Tt("path");c.appendChild(v);var A=Ne(),g=Ne();c.setAttribute("id",g);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",A),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),h=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var R=this.stops;for(l=e.g.p*4;l<h;l+=2)a=Tt("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(a),R.push(a);v.setAttribute(e.ty==="gf"?"fill":"stroke","url("+b()+"#"+A+")"),e.ty==="gs"&&(v.setAttribute("stroke-linecap",Qp[e.lc||2]),v.setAttribute("stroke-linejoin",Jp[e.lj||2]),e.lj===1&&v.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=c,this.ost=R,this.maskId=g,i.msElem=v}},L([le],es);function sm(e,i,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(e,i.w,0,null,this),this.d=new Rn(e,i.d||{},"svg",this),this.initGradientData(e,i,a),this._isAnimated=!!this._isAnimated}L([es,le],sm);function ay(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function ny(e,i,a){this.transform={mProps:e,op:i,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var am=function(i,a,l,h){if(a===0)return"";var c=i.o,v=i.i,A=i.v,g,k=" M"+h.applyToPointStringified(A[0][0],A[0][1]);for(g=1;g<a;g+=1)k+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[g][0],v[g][1])+" "+h.applyToPointStringified(A[g][0],A[g][1]);return l&&a&&(k+=" C"+h.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+h.applyToPointStringified(v[0][0],v[0][1])+" "+h.applyToPointStringified(A[0][0],A[0][1]),k+="z"),k},ly=function(){var e=new fe,i=new fe,a={createRenderFunction:l};function l(G){switch(G.ty){case"fl":return A;case"gf":return k;case"gs":return g;case"st":return R;case"sh":case"el":case"rc":case"sr":return v;case"tr":return h;case"no":return c;default:return null}}function h(G,T,M){(M||T.transform.op._mdf)&&T.transform.container.setAttribute("opacity",T.transform.op.v),(M||T.transform.mProps._mdf)&&T.transform.container.setAttribute("transform",T.transform.mProps.v.to2dCSS())}function c(){}function v(G,T,M){var D,O,V,N,C,E,S=T.styles.length,w=T.lvl,F,H,W,et;for(E=0;E<S;E+=1){if(N=T.sh._mdf||M,T.styles[E].lvl<w){for(H=i.reset(),W=w-T.styles[E].lvl,et=T.transformers.length-1;!N&&W>0;)N=T.transformers[et].mProps._mdf||N,W-=1,et-=1;if(N)for(W=w-T.styles[E].lvl,et=T.transformers.length-1;W>0;)H.multiply(T.transformers[et].mProps.v),W-=1,et-=1}else H=e;if(F=T.sh.paths,O=F._length,N){for(V="",D=0;D<O;D+=1)C=F.shapes[D],C&&C._length&&(V+=am(C,C._length,C.c,H));T.caches[E]=V}else V=T.caches[E];T.styles[E].d+=G.hd===!0?"":V,T.styles[E]._mdf=N||T.styles[E]._mdf}}function A(G,T,M){var D=T.style;(T.c._mdf||M)&&D.pElem.setAttribute("fill","rgb("+ne(T.c.v[0])+","+ne(T.c.v[1])+","+ne(T.c.v[2])+")"),(T.o._mdf||M)&&D.pElem.setAttribute("fill-opacity",T.o.v)}function g(G,T,M){k(G,T,M),R(G,T,M)}function k(G,T,M){var D=T.gf,O=T.g._hasOpacity,V=T.s.v,N=T.e.v;if(T.o._mdf||M){var C=G.ty==="gf"?"fill-opacity":"stroke-opacity";T.style.pElem.setAttribute(C,T.o.v)}if(T.s._mdf||M){var E=G.t===1?"x1":"cx",S=E==="x1"?"y1":"cy";D.setAttribute(E,V[0]),D.setAttribute(S,V[1]),O&&!T.g._collapsable&&(T.of.setAttribute(E,V[0]),T.of.setAttribute(S,V[1]))}var w,F,H,W;if(T.g._cmdf||M){w=T.cst;var et=T.g.c;for(H=w.length,F=0;F<H;F+=1)W=w[F],W.setAttribute("offset",et[F*4]+"%"),W.setAttribute("stop-color","rgb("+et[F*4+1]+","+et[F*4+2]+","+et[F*4+3]+")")}if(O&&(T.g._omdf||M)){var yt=T.g.o;for(T.g._collapsable?w=T.cst:w=T.ost,H=w.length,F=0;F<H;F+=1)W=w[F],T.g._collapsable||W.setAttribute("offset",yt[F*2]+"%"),W.setAttribute("stop-opacity",yt[F*2+1])}if(G.t===1)(T.e._mdf||M)&&(D.setAttribute("x2",N[0]),D.setAttribute("y2",N[1]),O&&!T.g._collapsable&&(T.of.setAttribute("x2",N[0]),T.of.setAttribute("y2",N[1])));else{var pt;if((T.s._mdf||T.e._mdf||M)&&(pt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)),D.setAttribute("r",pt),O&&!T.g._collapsable&&T.of.setAttribute("r",pt)),T.e._mdf||T.h._mdf||T.a._mdf||M){pt||(pt=Math.sqrt(Math.pow(V[0]-N[0],2)+Math.pow(V[1]-N[1],2)));var ot=Math.atan2(N[1]-V[1],N[0]-V[0]),xt=T.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=pt*xt,J=Math.cos(ot+T.a.v)*ct+V[0],I=Math.sin(ot+T.a.v)*ct+V[1];D.setAttribute("fx",J),D.setAttribute("fy",I),O&&!T.g._collapsable&&(T.of.setAttribute("fx",J),T.of.setAttribute("fy",I))}}}function R(G,T,M){var D=T.style,O=T.d;O&&(O._mdf||M)&&O.dashStr&&(D.pElem.setAttribute("stroke-dasharray",O.dashStr),D.pElem.setAttribute("stroke-dashoffset",O.dashoffset[0])),T.c&&(T.c._mdf||M)&&D.pElem.setAttribute("stroke","rgb("+ne(T.c.v[0])+","+ne(T.c.v[1])+","+ne(T.c.v[2])+")"),(T.o._mdf||M)&&D.pElem.setAttribute("stroke-opacity",T.o.v),(T.w._mdf||M)&&(D.pElem.setAttribute("stroke-width",T.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",T.w.v))}return a}();function qt(e,i,a){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,a),this.prevViewData=[]}L([Ti,Jo,sa,Zp,ts,xi,aa],qt),qt.prototype.initSecondaryElement=function(){},qt.prototype.identityMatrix=new fe,qt.prototype.buildExpressionInterface=function(){},qt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},qt.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,a,l,h=this.stylesList.length,c,v=[],A=!1;for(l=0;l<h;l+=1){for(c=this.stylesList[l],A=!1,v.length=0,e=0;e<i;e+=1)a=this.shapes[e],a.styles.indexOf(c)!==-1&&(v.push(a),A=a._isAnimated||A);v.length>1&&A&&this.setShapesAsAnimated(v)}},qt.prototype.setShapesAsAnimated=function(e){var i,a=e.length;for(i=0;i<a;i+=1)e[i].setAsAnimated()},qt.prototype.createStyleElement=function(e,i){var a,l=new em(e,i),h=l.pElem;if(e.ty==="st")a=new rm(this,e,l);else if(e.ty==="fl")a=new im(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?es:sm;a=new c(this,e,l),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),h.setAttribute("mask","url("+b()+"#"+a.maskId+")"))}else e.ty==="no"&&(a=new om(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(h.setAttribute("stroke-linecap",Qp[e.lc||2]),h.setAttribute("stroke-linejoin",Jp[e.lj||2]),h.setAttribute("fill-opacity","0"),e.lj===1&&h.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&h.setAttribute("fill-rule","evenodd"),e.ln&&h.setAttribute("id",e.ln),e.cl&&h.setAttribute("class",e.cl),e.bm&&(h.style["mix-blend-mode"]=Fd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,a),a},qt.prototype.createGroupElement=function(e){var i=new ay;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=Fd(e.bm)),i},qt.prototype.createTransformElement=function(e,i){var a=Rd.getTransformProperty(this,e,this),l=new ny(a,a.o,i);return this.addToAnimatedContents(e,l),l},qt.prototype.createShapeElement=function(e,i,a){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var h=Sn.getShapeProp(this,e,l,this),c=new tm(i,a,h);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},qt.prototype.addToAnimatedContents=function(e,i){for(var a=0,l=this.animatedContents.length;a<l;){if(this.animatedContents[a].element===i)return;a+=1}this.animatedContents.push({fn:ly.createRenderFunction(e),element:i,data:e})},qt.prototype.setElementStyles=function(e){var i=e.styles,a,l=this.stylesList.length;for(a=0;a<l;a+=1)this.stylesList[a].closed||i.push(this.stylesList[a])},qt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},qt.prototype.searchShapes=function(e,i,a,l,h,c,v){var A=[].concat(c),g,k=e.length-1,R,G,T=[],M=[],D,O,V;for(g=k;g>=0;g-=1){if(V=this.searchProcessedElement(e[g]),V?i[g]=a[V-1]:e[g]._render=v,e[g].ty==="fl"||e[g].ty==="st"||e[g].ty==="gf"||e[g].ty==="gs"||e[g].ty==="no")V?i[g].style.closed=!1:i[g]=this.createStyleElement(e[g],h),e[g]._render&&i[g].style.pElem.parentNode!==l&&l.appendChild(i[g].style.pElem),T.push(i[g].style);else if(e[g].ty==="gr"){if(!V)i[g]=this.createGroupElement(e[g]);else for(G=i[g].it.length,R=0;R<G;R+=1)i[g].prevViewData[R]=i[g].it[R];this.searchShapes(e[g].it,i[g].it,i[g].prevViewData,i[g].gr,h+1,A,v),e[g]._render&&i[g].gr.parentNode!==l&&l.appendChild(i[g].gr)}else e[g].ty==="tr"?(V||(i[g]=this.createTransformElement(e[g],l)),D=i[g].transform,A.push(D)):e[g].ty==="sh"||e[g].ty==="rc"||e[g].ty==="el"||e[g].ty==="sr"?(V||(i[g]=this.createShapeElement(e[g],A,h)),this.setElementStyles(i[g])):e[g].ty==="tm"||e[g].ty==="rd"||e[g].ty==="ms"||e[g].ty==="pb"||e[g].ty==="zz"||e[g].ty==="op"?(V?(O=i[g],O.closed=!1):(O=yi.getModifier(e[g].ty),O.init(this,e[g]),i[g]=O,this.shapeModifiers.push(O)),M.push(O)):e[g].ty==="rp"&&(V?(O=i[g],O.closed=!0):(O=yi.getModifier(e[g].ty),i[g]=O,O.init(this,e,g,i),this.shapeModifiers.push(O),v=!1),M.push(O));this.addProcessedElement(e[g],g+1)}for(k=T.length,g=0;g<k;g+=1)T[g].closed=!0;for(k=M.length,g=0;g<k;g+=1)M[g].closed=!0},qt.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},qt.prototype.renderShape=function(){var e,i=this.animatedContents.length,a;for(e=0;e<i;e+=1)a=this.animatedContents[e],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0&&a.fn(a.data,a.element,this._isFirstFrame)},qt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function zd(e,i,a,l,h,c){this.o=e,this.sw=i,this.sc=a,this.fc=l,this.m=h,this.p=c,this._mdf={o:!0,sw:!!i,sc:!!a,fc:!!l,m:!0,p:!0}}zd.prototype.update=function(e,i,a,l,h,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var v=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,v=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,v=!0),this.sc!==a&&(this.sc=a,this._mdf.sc=!0,v=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,v=!0),this.m!==h&&(this.m=h,this._mdf.m=!0,v=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,v=!0),v};function Se(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Se.prototype.defaultBoxWidth=[0,0],Se.prototype.copyData=function(e,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);return e},Se.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Se.prototype.searchProperty=function(){return this.searchKeyframes()},Se.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Se.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Se.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,h=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(l=0;l<h;l+=1)a!==this.keysIndex?c=this.effectsSequence[l](c,c.t):c=this.effectsSequence[l](this.currentData,c.t);i!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Se.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,a=0,l=e.length;a<=l-1&&!(a===l-1||e[a+1].t>i);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},Se.prototype.buildFinalText=function(e){for(var i=[],a=0,l=e.length,h,c,v=!1,A=!1,g="";a<l;)v=A,A=!1,h=e.charCodeAt(a),g=e.charAt(a),ao.isCombinedCharacter(h)?v=!0:h>=55296&&h<=56319?ao.isRegionalFlag(e,a)?g=e.substr(a,14):(c=e.charCodeAt(a+1),c>=56320&&c<=57343&&(ao.isModifier(h,c)?(g=e.substr(a,2),v=!0):ao.isFlagEmoji(e.substr(a,4))?g=e.substr(a,4):g=e.substr(a,2))):h>56319?(c=e.charCodeAt(a+1),ao.isVariationSelector(h)&&(v=!0)):ao.isZeroWidthJoiner(h)&&(v=!0,A=!0),v?(i[i.length-1]+=g,v=!1):i.push(g),a+=g.length;return i},Se.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,a=this.data,l=[],h,c,v,A=0,g,k=a.m.g,R=0,G=0,T=0,M=[],D=0,O=0,V,N,C=i.getFontByName(e.f),E,S=0,w=Wp(C);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var F=e.tr/1e3*e.finalSize,H;if(e.sz)for(var W=!0,et=e.sz[0],yt=e.sz[1],pt,ot;W;){ot=this.buildFinalText(e.t),pt=0,D=0,c=ot.length,F=e.tr/1e3*e.finalSize;var xt=-1;for(h=0;h<c;h+=1)H=ot[h].charCodeAt(0),v=!1,ot[h]===" "?xt=h:(H===13||H===3)&&(D=0,v=!0,pt+=e.finalLineHeight||e.finalSize*1.2),i.chars?(E=i.getCharData(ot[h],C.fStyle,C.fFamily),S=v?0:E.w*e.finalSize/100):S=i.measureText(ot[h],e.f,e.finalSize),D+S>et&&ot[h]!==" "?(xt===-1?c+=1:h=xt,pt+=e.finalLineHeight||e.finalSize*1.2,ot.splice(h,xt===h?1:0,"\r"),xt=-1,D=0):(D+=S,D+=F);pt+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<pt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=ot,c=e.finalText.length,W=!1)}D=-F,S=0;var ct=0,J;for(h=0;h<c;h+=1)if(v=!1,J=e.finalText[h],H=J.charCodeAt(0),H===13||H===3?(ct=0,M.push(D),O=D>O?D:O,D=-2*F,g="",v=!0,T+=1):g=J,i.chars?(E=i.getCharData(J,C.fStyle,i.getFontByName(e.f).fFamily),S=v?0:E.w*e.finalSize/100):S=i.measureText(g,e.f,e.finalSize),J===" "?ct+=S+F:(D+=S+F+ct,ct=0),l.push({l:S,an:S,add:R,n:v,anIndexes:[],val:g,line:T,animatorJustifyOffset:0}),k==2){if(R+=S,g===""||g===" "||h===c-1){for((g===""||g===" ")&&(R-=S);G<=h;)l[G].an=R,l[G].ind=A,l[G].extra=S,G+=1;A+=1,R=0}}else if(k==3){if(R+=S,g===""||h===c-1){for(g===""&&(R-=S);G<=h;)l[G].an=R,l[G].ind=A,l[G].extra=S,G+=1;R=0,A+=1}}else l[A].ind=A,l[A].extra=0,A+=1;if(e.l=l,O=D>O?D:O,M.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=O,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=M;var I=a.a,P,f;N=I.length;var y,Y,$=[];for(V=0;V<N;V+=1){for(P=I[V],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),Y=0,y=P.s.b,h=0;h<c;h+=1)f=l[h],f.anIndexes[V]=Y,(y==1&&f.val!==""||y==2&&f.val!==""&&f.val!==" "||y==3&&(f.n||f.val==" "||h==c-1)||y==4&&(f.n||h==c-1))&&(P.s.rn===1&&$.push(Y),Y+=1);a.a[V].s.totalChars=Y;var nt=-1,ft;if(P.s.rn===1)for(h=0;h<c;h+=1)f=l[h],nt!=f.anIndexes[V]&&(nt=f.anIndexes[V],ft=$.splice(Math.floor(Math.random()*$.length),1)[0]),f.anIndexes[V]=ft}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=C.ascent*e.finalSize/100},Se.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var a=this.copyData({},this.data.d.k[i].s);a=this.copyData(a,e),this.data.d.k[i].s=a,this.recalculate(i),this.setCurrentData(a),this.elem.addDynamicProperty(this)},Se.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},Se.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Se.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var dy=function(){var e=Math.max,i=Math.min,a=Math.floor;function l(c,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=at.getProp(c,v.s||{k:0},0,0,this),"e"in v?this.e=at.getProp(c,v.e,0,0,this):this.e={v:100},this.o=at.getProp(c,v.o||{k:0},0,0,this),this.xe=at.getProp(c,v.xe||{k:0},0,0,this),this.ne=at.getProp(c,v.ne||{k:0},0,0,this),this.sm=at.getProp(c,v.sm||{k:100},0,0,this),this.a=at.getProp(c,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(v){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,g=0,k=1,R=1;this.ne.v>0?A=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:R=1+this.xe.v/100;var G=Zs.getBezierEasing(A,g,k,R).get,T=0,M=this.finalS,D=this.finalE,O=this.data.sh;if(O===2)D===M?T=v>=D?1:0:T=e(0,i(.5/(D-M)+(v-M)/(D-M),1)),T=G(T);else if(O===3)D===M?T=v>=D?0:1:T=1-e(0,i(.5/(D-M)+(v-M)/(D-M),1)),T=G(T);else if(O===4)D===M?T=0:(T=e(0,i(.5/(D-M)+(v-M)/(D-M),1)),T<.5?T*=2:T=1-2*(T-.5)),T=G(T);else if(O===5){if(D===M)T=0;else{var V=D-M;v=i(e(0,v+.5-M),D-M);var N=-V/2+v,C=V/2;T=Math.sqrt(1-N*N/(C*C))}T=G(T)}else O===6?(D===M?T=0:(v=i(e(0,v+.5-M),D-M),T=(1+Math.cos(Math.PI+Math.PI*2*v/(D-M)))/2),T=G(T)):(v>=a(M)&&(v-M<0?T=e(0,i(i(D,1)-(M-v),1)):T=e(0,i(D-v,1))),T=G(T));if(this.sm.v!==100){var E=this.sm.v*.01;E===0&&(E=1e-8);var S=.5-E*.5;T<S?T=0:(T=(T-S)/E,T>1&&(T=1))}return T*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 A=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/A,k=this.s.v/A+g,R=this.e.v/A+g;if(k>R){var G=k;k=R,R=G}this.finalS=k,this.finalE=R}},L([le],l);function h(c,v,A){return new l(c,v,A)}return{getTextSelectorProp:h}}();function cy(e,i,a){var l={propType:!1},h=at.getProp,c=i.a;this.a={r:c.r?h(e,c.r,0,kt,a):l,rx:c.rx?h(e,c.rx,0,kt,a):l,ry:c.ry?h(e,c.ry,0,kt,a):l,sk:c.sk?h(e,c.sk,0,kt,a):l,sa:c.sa?h(e,c.sa,0,kt,a):l,s:c.s?h(e,c.s,1,.01,a):l,a:c.a?h(e,c.a,1,0,a):l,o:c.o?h(e,c.o,0,.01,a):l,p:c.p?h(e,c.p,1,0,a):l,sw:c.sw?h(e,c.sw,0,0,a):l,sc:c.sc?h(e,c.sc,1,0,a):l,fc:c.fc?h(e,c.fc,1,0,a):l,fh:c.fh?h(e,c.fh,0,0,a):l,fs:c.fs?h(e,c.fs,0,.01,a):l,fb:c.fb?h(e,c.fb,0,.01,a):l,t:c.t?h(e,c.t,0,0,a):l},this.s=dy.getTextSelectorProp(e,i.s,a),this.s.t=i.s.t}function lo(e,i,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=a,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}lo.prototype.searchProperties=function(){var e,i=this._textData.a.length,a,l=at.getProp;for(e=0;e<i;e+=1)a=this._textData.a[e],this._animatorsData[e]=new cy(this._elem,a,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=l(this._elem,this._textData.m.a,1,0,this)},lo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,l=this._animatorsData,h=this._textData,c=this.mHelper,v=this._renderType,A=this.renderedLetters.length,g,k,R,G,T=e.l,M,D,O,V,N,C,E,S,w,F,H,W,et,yt,pt;if(this._hasMaskedPath){if(pt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var ot=pt.v;this._pathData.r.v&&(ot=ot.reverse()),M={tLength:0,segments:[]},G=ot._length-1;var xt;for(W=0,R=0;R<G;R+=1)xt=kr.buildBezierData(ot.v[R],ot.v[R+1],[ot.o[R][0]-ot.v[R][0],ot.o[R][1]-ot.v[R][1]],[ot.i[R+1][0]-ot.v[R+1][0],ot.i[R+1][1]-ot.v[R+1][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),W+=xt.segmentLength;R=G,pt.v.c&&(xt=kr.buildBezierData(ot.v[R],ot.v[0],[ot.o[R][0]-ot.v[R][0],ot.o[R][1]-ot.v[R][1]],[ot.i[0][0]-ot.v[0][0],ot.i[0][1]-ot.v[0][1]]),M.tLength+=xt.segmentLength,M.segments.push(xt),W+=xt.segmentLength),this._pathData.pi=M}if(M=this._pathData.pi,D=this._pathData.f.v,E=0,C=1,V=0,N=!0,F=M.segments,D<0&&pt.v.c)for(M.tLength<Math.abs(D)&&(D=-Math.abs(D)%M.tLength),E=F.length-1,w=F[E].points,C=w.length-1;D<0;)D+=w[C].partialLength,C-=1,C<0&&(E-=1,w=F[E].points,C=w.length-1);w=F[E].points,S=w[C-1],O=w[C],H=O.partialLength}G=T.length,g=0,k=0;var ct=e.finalSize*1.2*.714,J=!0,I,P,f,y,Y;y=l.length;var $,nt=-1,ft,Et,Rt,Mt=D,Jt=E,Re=C,Nr=-1,Me,de,Ye,Dt,ht,qr,Ii,Xr,Lr="",Zr=this.defaultPropsArray,Qr;if(e.j===2||e.j===1){var Oe=0,_i=0,Ci=e.j===2?-.5:-1,yr=0,ki=!0;for(R=0;R<G;R+=1)if(T[R].n){for(Oe&&(Oe+=_i);yr<R;)T[yr].animatorJustifyOffset=Oe,yr+=1;Oe=0,ki=!0}else{for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(ki&&e.j===2&&(_i+=I.t.v*Ci),P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?Oe+=I.t.v*$[0]*Ci:Oe+=I.t.v*$*Ci);ki=!1}for(Oe&&(Oe+=_i);yr<R;)T[yr].animatorJustifyOffset=Oe,yr+=1}for(R=0;R<G;R+=1){if(c.reset(),Me=1,T[R].n)g=0,k+=e.yOffset,k+=J?1:0,D=Mt,J=!1,this._hasMaskedPath&&(E=Jt,C=Re,w=F[E].points,S=w[C-1],O=w[C],H=O.partialLength,V=0),Lr="",Xr="",qr="",Qr="",Zr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Nr!==T[R].line){switch(e.j){case 1:D+=W-e.lineWidths[T[R].line];break;case 2:D+=(W-e.lineWidths[T[R].line])/2;break;default:break}Nr=T[R].line}nt!==T[R].ind&&(T[nt]&&(D+=T[nt].extra),D+=T[R].an/2,nt=T[R].ind),D+=a[0]*T[R].an*.005;var Er=0;for(f=0;f<y;f+=1)I=l[f].a,I.p.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?Er+=I.p.v[0]*$[0]:Er+=I.p.v[0]*$),I.a.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?Er+=I.a.v[0]*$[0]:Er+=I.a.v[0]*$);for(N=!0,this._pathData.a.v&&(D=T[0].an*.5+(W-this._pathData.f.v-T[0].an*.5-T[T.length-1].an*.5)*nt/(G-1),D+=this._pathData.f.v);N;)V+H>=D+Er||!w?(et=(D+Er-V)/O.partialLength,Et=S.point[0]+(O.point[0]-S.point[0])*et,Rt=S.point[1]+(O.point[1]-S.point[1])*et,c.translate(-a[0]*T[R].an*.005,-(a[1]*ct)*.01),N=!1):w&&(V+=O.partialLength,C+=1,C>=w.length&&(C=0,E+=1,F[E]?w=F[E].points:pt.v.c?(C=0,E=0,w=F[E].points):(V-=O.partialLength,w=null)),w&&(S=O,O=w[C],H=O.partialLength));ft=T[R].an/2-T[R].add,c.translate(-ft,0,0)}else ft=T[R].an/2-T[R].add,c.translate(-ft,0,0),c.translate(-a[0]*T[R].an*.005,-a[1]*ct*.01,0);for(f=0;f<y;f+=1)I=l[f].a,I.t.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),(g!==0||e.j!==0)&&(this._hasMaskedPath?$.length?D+=I.t.v*$[0]:D+=I.t.v*$:$.length?g+=I.t.v*$[0]:g+=I.t.v*$));for(e.strokeWidthAnim&&(Ye=e.sw||0),e.strokeColorAnim&&(e.sc?de=[e.sc[0],e.sc[1],e.sc[2]]:de=[0,0,0]),e.fillColorAnim&&e.fc&&(Dt=[e.fc[0],e.fc[1],e.fc[2]]),f=0;f<y;f+=1)I=l[f].a,I.a.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?c.translate(-I.a.v[0]*$[0],-I.a.v[1]*$[1],I.a.v[2]*$[2]):c.translate(-I.a.v[0]*$,-I.a.v[1]*$,I.a.v[2]*$));for(f=0;f<y;f+=1)I=l[f].a,I.s.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),$.length?c.scale(1+(I.s.v[0]-1)*$[0],1+(I.s.v[1]-1)*$[1],1):c.scale(1+(I.s.v[0]-1)*$,1+(I.s.v[1]-1)*$,1));for(f=0;f<y;f+=1){if(I=l[f].a,P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),I.sk.propType&&($.length?c.skewFromAxis(-I.sk.v*$[0],I.sa.v*$[1]):c.skewFromAxis(-I.sk.v*$,I.sa.v*$)),I.r.propType&&($.length?c.rotateZ(-I.r.v*$[2]):c.rotateZ(-I.r.v*$)),I.ry.propType&&($.length?c.rotateY(I.ry.v*$[1]):c.rotateY(I.ry.v*$)),I.rx.propType&&($.length?c.rotateX(I.rx.v*$[0]):c.rotateX(I.rx.v*$)),I.o.propType&&($.length?Me+=(I.o.v*$[0]-Me)*$[0]:Me+=(I.o.v*$-Me)*$),e.strokeWidthAnim&&I.sw.propType&&($.length?Ye+=I.sw.v*$[0]:Ye+=I.sw.v*$),e.strokeColorAnim&&I.sc.propType)for(ht=0;ht<3;ht+=1)$.length?de[ht]+=(I.sc.v[ht]-de[ht])*$[0]:de[ht]+=(I.sc.v[ht]-de[ht])*$;if(e.fillColorAnim&&e.fc){if(I.fc.propType)for(ht=0;ht<3;ht+=1)$.length?Dt[ht]+=(I.fc.v[ht]-Dt[ht])*$[0]:Dt[ht]+=(I.fc.v[ht]-Dt[ht])*$;I.fh.propType&&($.length?Dt=yp(Dt,I.fh.v*$[0]):Dt=yp(Dt,I.fh.v*$)),I.fs.propType&&($.length?Dt=gp(Dt,I.fs.v*$[0]):Dt=gp(Dt,I.fs.v*$)),I.fb.propType&&($.length?Dt=bp(Dt,I.fb.v*$[0]):Dt=bp(Dt,I.fb.v*$))}}for(f=0;f<y;f+=1)I=l[f].a,I.p.propType&&(P=l[f].s,$=P.getMult(T[R].anIndexes[f],h.a[f].s.totalChars),this._hasMaskedPath?$.length?c.translate(0,I.p.v[1]*$[0],-I.p.v[2]*$[1]):c.translate(0,I.p.v[1]*$,-I.p.v[2]*$):$.length?c.translate(I.p.v[0]*$[0],I.p.v[1]*$[1],-I.p.v[2]*$[2]):c.translate(I.p.v[0]*$,I.p.v[1]*$,-I.p.v[2]*$));if(e.strokeWidthAnim&&(qr=Ye<0?0:Ye),e.strokeColorAnim&&(Ii="rgb("+Math.round(de[0]*255)+","+Math.round(de[1]*255)+","+Math.round(de[2]*255)+")"),e.fillColorAnim&&e.fc&&(Xr="rgb("+Math.round(Dt[0]*255)+","+Math.round(Dt[1]*255)+","+Math.round(Dt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,a[1]*ct*.01+k,0),this._pathData.p.v){yt=(O.point[1]-S.point[1])/(O.point[0]-S.point[0]);var co=Math.atan(yt)*180/Math.PI;O.point[0]<S.point[0]&&(co+=180),c.rotate(-co*Math.PI/180)}c.translate(Et,Rt,0),D-=a[0]*T[R].an*.005,T[R+1]&&nt!==T[R+1].ind&&(D+=T[R].an/2,D+=e.tr*.001*e.finalSize)}else{switch(c.translate(g,k,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(T[R].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[R].line]),0,0);break;case 2:c.translate(T[R].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[T[R].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(ft,0,0),c.translate(a[0]*T[R].an*.005,a[1]*ct*.01,0),g+=T[R].l+e.tr*.001*e.finalSize}v==="html"?Lr=c.toCSS():v==="svg"?Lr=c.to2dCSS():Zr=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],Qr=Me}A<=R?(Y=new zd(Qr,qr,Ii,Xr,Lr,Zr),this.renderedLetters.push(Y),A+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[R],this.lettersChangedFlag=Y.update(Qr,qr,Ii,Xr,Lr,Zr)||this.lettersChangedFlag)}}},lo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},lo.prototype.mHelper=new fe,lo.prototype.defaultPropsArray=[],L([le],lo);function or(){}or.prototype.initElement=function(e,i,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,a),this.textProperty=new Se(this,e.t,this.dynamicProperties),this.textAnimator=new lo(e.t,this.renderType,this),this.initTransform(e,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},or.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},or.prototype.createPathShape=function(e,i){var a,l=i.length,h,c="";for(a=0;a<l;a+=1)i[a].ty==="sh"&&(h=i[a].ks.k,c+=am(h,h.i.length,!0,e));return c},or.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},or.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},or.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},or.prototype.applyTextPropertiesToMatrix=function(e,i,a,l,h){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a])/2,0,0);break;default:break}i.translate(l,h,0)},or.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},or.prototype.emptyProp=new zd,or.prototype.destroy=function(){},or.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var hy={shapes:[]};function jr(e,i,a){this.textSpans=[],this.renderType="svg",this.initElement(e,i,a)}L([Ti,Jo,sa,ts,xi,aa,or],jr),jr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},jr.prototype.buildTextContents=function(e){for(var i=0,a=e.length,l=[],h="";i<a;)e[i]==="\r"||e[i]===""?(l.push(h),h=""):h+=e[i],i+=1;return l.push(h),l},jr.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var a=e.shapes[0];if(a.it){var l=a.it[a.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},jr.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,a=this.textProperty.currentData;this.renderedLetters=it(a?a.l.length:0),a.fc?this.layerElement.setAttribute("fill",this.buildColor(a.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var l=this.globalData.fontManager.getFontByName(a.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var h=a.fWeight,c=a.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",h)}this.layerElement.setAttribute("aria-label",a.t);var v=a.l||[],A=!!this.globalData.fontManager.chars;i=v.length;var g,k=this.mHelper,R="",G=this.data.singleShape,T=0,M=0,D=!0,O=a.tr*.001*a.finalSize;if(G&&!A&&!a.sz){var V=this.textContainer,N="start";switch(a.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}V.setAttribute("text-anchor",N),V.setAttribute("letter-spacing",O);var C=this.buildTextContents(a.finalText);for(i=C.length,M=a.ps?a.ps[1]+a.ascent:0,e=0;e<i;e+=1)g=this.textSpans[e].span||Tt("tspan"),g.textContent=C[e],g.setAttribute("x",0),g.setAttribute("y",M),g.style.display="inherit",V.appendChild(g),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=g,M+=a.finalLineHeight;this.layerElement.appendChild(V)}else{var E=this.textSpans.length,S;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!A||!G||e===0){if(g=E>e?this.textSpans[e].span:Tt(A?"g":"text"),E<=e){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=g,A){var w=Tt("g");g.appendChild(w),this.textSpans[e].childSpan=w}this.textSpans[e].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(k.reset(),G&&(v[e].n&&(T=-O,M+=a.yOffset,M+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(a,k,v[e].line,T,M),T+=v[e].l||0,T+=O),A){S=this.globalData.fontManager.getCharData(a.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var F;if(S.t===1)F=new da(S.data,this.globalData,this);else{var H=hy;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,a.finalSize)),F=new qt(H,this.globalData,this)}if(this.textSpans[e].glyph){var W=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(W.layerElement),W.destroy()}this.textSpans[e].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[e].childSpan.appendChild(F.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else G&&g.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),g.textContent=v[e].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&g&&g.setAttribute("d",R)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},jr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},jr.prototype.getValue=function(){var e,i=this.textSpans.length,a;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)a=this.textSpans[e].glyph,a&&(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf&&(this._mdf=!0))},jr.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var h,c,v;for(e=0;e<i;e+=1)l[e].n||(h=a[e],c=this.textSpans[e].span,v=this.textSpans[e].glyph,v&&v.renderFrame(),h._mdf.m&&c.setAttribute("transform",h.m),h._mdf.o&&c.setAttribute("opacity",h.o),h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h._mdf.sc&&c.setAttribute("stroke",h.sc),h._mdf.fc&&c.setAttribute("fill",h.fc))}};function Vd(e,i,a){this.initElement(e,i,a)}L([na],Vd),Vd.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Si(e,i,a){this.initFrame(),this.initBaseData(e,i,a),this.initFrame(),this.initTransform(e,i,a),this.initHierarchy()}Si.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Si.prototype.renderFrame=function(){},Si.prototype.getBaseElement=function(){return null},Si.prototype.destroy=function(){},Si.prototype.sourceRectAtTime=function(){},Si.prototype.hide=function(){},L([Ti,Jo,ts,xi],Si);function re(){}L([ve],re),re.prototype.createNull=function(e){return new Si(e,this.globalData,this)},re.prototype.createShape=function(e){return new qt(e,this.globalData,this)},re.prototype.createText=function(e){return new jr(e,this.globalData,this)},re.prototype.createImage=function(e){return new na(e,this.globalData,this)},re.prototype.createSolid=function(e){return new Vd(e,this.globalData,this)},re.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var a=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var h=Ne();a.setAttribute("id",h),a.appendChild(l),this.layerElement.setAttribute("clip-path","url("+b()+"#"+h+")"),i.appendChild(a),this.layers=e.layers,this.elements=it(e.layers.length)},re.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},re.prototype.updateContainerSize=function(){},re.prototype.findIndexByInd=function(e){var i=0,a=this.layers.length;for(i=0;i<a;i+=1)if(this.layers[i].ind===e)return i;return-1},re.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var a=this.createItem(this.layers[e]);if(i[e]=a,gn()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(a);else{var h=i[l],c=h.getMatte(this.layers[e].tt);a.setMatte(c)}}}},re.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,a=this.elements.length;i<a;){if(this.elements[i]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,h=this.elements[l],c=h.getMatte(this.layers[i].tt);e.setMatte(c);break}i+=1}}},re.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,a=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=a-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<a;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},re.prototype.appendElementInPos=function(e,i){var a=e.getBaseElement();if(a){for(var l=0,h;l<i;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(h=this.elements[l].getBaseElement()),l+=1;h?this.layerElement.insertBefore(a,h):this.layerElement.appendChild(a)}},re.prototype.hide=function(){this.layerElement.style.display="none"},re.prototype.show=function(){this.layerElement.style.display="block"};function Kr(){}L([Ti,Jo,ts,xi,aa],Kr),Kr.prototype.initElement=function(e,i,a){this.initFrame(),this.initBaseData(e,i,a),this.initTransform(e,i,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},Kr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var a,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=l-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},Kr.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Kr.prototype.setElements=function(e){this.elements=e},Kr.prototype.getElements=function(){return this.elements},Kr.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},Kr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function da(e,i,a){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,a),this.tm=e.tm?at.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}L([re,Kr,sa],da),da.prototype.createComp=function(e){return new da(e,this.globalData,this)};function Bd(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var a="";if(i&&i.title){var l=Tt("title"),h=Ne();l.setAttribute("id",h),l.textContent=i.title,this.svgElement.appendChild(l),a+=h}if(i&&i.description){var c=Tt("desc"),v=Ne();c.setAttribute("id",v),c.textContent=i.description,this.svgElement.appendChild(c),a+=" "+v}a&&this.svgElement.setAttribute("aria-labelledby",a);var A=Tt("defs");this.svgElement.appendChild(A);var g=Tt("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:A,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return L([re],Bd),Bd.prototype.createComp=function(e){return new da(e,this.globalData,this)},Tb("svg",Bd),yi.registerModifier("tm",br),yi.registerModifier("pb",Qs),yi.registerModifier("rp",wr),yi.registerModifier("rd",Js),yi.registerModifier("zz",ea),yi.registerModifier("op",ra),Ot})});var Dn=globalThis,Fn=Dn.ShadowRoot&&(Dn.ShadyCSS===void 0||Dn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hd=Symbol(),lm=new WeakMap,ca=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==Hd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Fn&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=lm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&lm.set(t,o))}return o}toString(){return this.cssText}},dm=n=>new ca(typeof n=="string"?n:n+"",void 0,Hd),B=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((r,s,d)=>r+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[d+1],n[0]);return new ca(t,n,Hd)},Gd=(n,o)=>{if(Fn)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Dn.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,n.appendChild(r)}},$n=Fn?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return dm(t)})(n):n;var{is:yy,defineProperty:Ey,getOwnPropertyDescriptor:Ty,getOwnPropertyNames:xy,getOwnPropertySymbols:Ay,getPrototypeOf:Sy}=Object,wi=globalThis,cm=wi.trustedTypes,Iy=cm?cm.emptyScript:"",Yd=wi.reactiveElementPolyfillSupport,ha=(n,o)=>n,pa={toAttribute(n,o){switch(o){case Boolean:n=n?Iy:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},zn=(n,o)=>!yy(n,o),hm={attribute:!0,type:String,converter:pa,reflect:!1,hasChanged:zn},pm,mm;(pm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(mm=wi.litPropertyMetadata)!=null||(wi.litPropertyMetadata=new WeakMap);var Jr=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=hm){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&Ey(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var m;let{get:s,set:d}=(m=Ty(this.prototype,o))!=null?m:{get(){return this[t]},set(b){this[t]=b}};return{get(){return s==null?void 0:s.call(this)},set(b){let x=s==null?void 0:s.call(this);d.call(this,b),this.requestUpdate(o,x,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:hm}static _$Ei(){if(this.hasOwnProperty(ha("elementProperties")))return;let o=Sy(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(ha("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ha("properties"))){let t=this.properties,r=[...xy(t),...Ay(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift($n(s))}else o!==void 0&&t.push($n(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Gd(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var d;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let m=(((d=r.converter)==null?void 0:d.toAttribute)!==void 0?r.converter:pa).toAttribute(t,r.type);this._$Em=o,m==null?this.removeAttribute(s):this.setAttribute(s,m),this._$Em=null}}_$AK(o,t){var d;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let m=r.getPropertyOptions(s),b=typeof m.converter=="function"?{fromAttribute:m.converter}:((d=m.converter)==null?void 0:d.fromAttribute)!==void 0?m.converter:pa;this._$Em=s,this[s]=b.fromAttribute(t,m.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:zn)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,b]of this._$Ep)this[m]=b;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[m,b]of d)b.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],b)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(s=this._$EO)==null||s.forEach(d=>{var m;return(m=d.hostUpdate)==null?void 0:m.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},um;Jr.elementStyles=[],Jr.shadowRootOptions={mode:"open"},Jr[ha("elementProperties")]=new Map,Jr[ha("finalized")]=new Map,Yd==null||Yd({ReactiveElement:Jr}),((um=wi.reactiveElementVersions)!=null?um:wi.reactiveElementVersions=[]).push("2.0.4");var ua=globalThis,Vn=ua.trustedTypes,fm=Vn?Vn.createPolicy("lit-html",{createHTML:n=>n}):void 0,Kd="$lit$",ti=`lit$${Math.random().toFixed(9).slice(2)}$`,qd="?"+ti,_y=`<${qd}>`,mo=document,fa=()=>mo.createComment(""),va=n=>n===null||typeof n!="object"&&typeof n!="function",Xd=Array.isArray,xm=n=>Xd(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Wd=`[
3
3
  \f\r]`,ma=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vm=/-->/g,gm=/>/g,ho=RegExp(`>|${Wd}(?:([^\\s"'>=/]+)(${Wd}*=${Wd}*(?:[^
4
4
  \f\r"'\`<>=]|("|')|))|$)`,"g"),bm=/'/g,ym=/"/g,Am=/^(?:script|style|textarea|title)$/i,Zd=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),_=Zd(1),t0=Zd(2),e0=Zd(3),ge=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Em=new WeakMap,po=mo.createTreeWalker(mo,129);function Sm(n,o){if(!Xd(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return fm!==void 0?fm.createHTML(o):o}var Im=(n,o)=>{let t=n.length-1,r=[],s,d=o===2?"<svg>":o===3?"<math>":"",m=ma;for(let b=0;b<t;b++){let x=n[b],L,U,K=-1,Z=0;for(;Z<x.length&&(m.lastIndex=Z,U=m.exec(x),U!==null);)Z=m.lastIndex,m===ma?U[1]==="!--"?m=vm:U[1]!==void 0?m=gm:U[2]!==void 0?(Am.test(U[2])&&(s=RegExp("</"+U[2],"g")),m=ho):U[3]!==void 0&&(m=ho):m===ho?U[0]===">"?(m=s!=null?s:ma,K=-1):U[1]===void 0?K=-2:(K=m.lastIndex-U[2].length,L=U[1],m=U[3]===void 0?ho:U[3]==='"'?ym:bm):m===ym||m===bm?m=ho:m===vm||m===gm?m=ma:(m=ho,s=void 0);let X=m===ho&&n[b+1].startsWith("/>")?" ":"";d+=m===ma?x+_y:K>=0?(r.push(L),x.slice(0,K)+Kd+x.slice(K)+ti+X):x+ti+(K===-2?b:X)}return[Sm(n,d+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},ga=class n{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let d=0,m=0,b=o.length-1,x=this.parts,[L,U]=Im(o,t);if(this.el=n.createElement(L,r),po.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(s=po.nextNode())!==null&&x.length<b;){if(s.nodeType===1){if(s.hasAttributes())for(let K of s.getAttributeNames())if(K.endsWith(Kd)){let Z=U[m++],X=s.getAttribute(K).split(ti),it=/([.?@])?(.*)/.exec(Z);x.push({type:1,index:d,name:it[2],strings:X,ctor:it[1]==="."?Un:it[1]==="?"?Hn:it[1]==="@"?Gn:fo}),s.removeAttribute(K)}else K.startsWith(ti)&&(x.push({type:6,index:d}),s.removeAttribute(K));if(Am.test(s.tagName)){let K=s.textContent.split(ti),Z=K.length-1;if(Z>0){s.textContent=Vn?Vn.emptyScript:"";for(let X=0;X<Z;X++)s.append(K[X],fa()),po.nextNode(),x.push({type:2,index:++d});s.append(K[Z],fa())}}}else if(s.nodeType===8)if(s.data===qd)x.push({type:2,index:d});else{let K=-1;for(;(K=s.data.indexOf(ti,K+1))!==-1;)x.push({type:7,index:d}),K+=ti.length-1}d++}}static createElement(o,t){let r=mo.createElement("template");return r.innerHTML=o,r}};function uo(n,o,t=n,r){var m,b,x;if(o===ge)return o;let s=r!==void 0?(m=t.o)==null?void 0:m[r]:t.l,d=va(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((b=s==null?void 0:s._$AO)==null||b.call(s,!1),d===void 0?s=void 0:(s=new d(n),s._$AT(n,t,r)),r!==void 0?((x=t.o)!=null?x:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=uo(n,s._$AS(n,o.values),s,r)),o}var Bn=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var L;let{el:{content:t},parts:r}=this._$AD,s=((L=o==null?void 0:o.creationScope)!=null?L:mo).importNode(t,!0);po.currentNode=s;let d=po.nextNode(),m=0,b=0,x=r[0];for(;x!==void 0;){if(m===x.index){let U;x.type===2?U=new rs(d,d.nextSibling,this,o):x.type===1?U=new x.ctor(d,x.name,x.strings,this,o):x.type===6&&(U=new Yn(d,this,o)),this._$AV.push(U),x=r[++b]}m!==(x==null?void 0:x.index)&&(d=po.nextNode(),m++)}return po.currentNode=mo,s}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},rs=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var d;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(d=s==null?void 0:s.isConnected)!=null?d:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=uo(this,o,t),va(o)?o===j||o==null||o===""?(this._$AH!==j&&this._$AR(),this._$AH=j):o!==this._$AH&&o!==ge&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):xm(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==j&&va(this._$AH)?this._$AA.nextSibling.data=o:this.T(mo.createTextNode(o)),this._$AH=o}$(o){var d;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=ga.createElement(Sm(r.h,r.h[0]),this.options)),r);if(((d=this._$AH)==null?void 0:d._$AD)===s)this._$AH.p(t);else{let m=new Bn(s,this),b=m.u(this.options);m.p(t),this.T(b),this._$AH=m}}_$AC(o){let t=Em.get(o.strings);return t===void 0&&Em.set(o.strings,t=new ga(o)),t}k(o){Xd(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let d of o)s===t.length?t.push(r=new n(this.O(fa()),this.O(fa()),this,this.options)):r=t[s],r._$AI(d),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},fo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,d){this.type=1,this._$AH=j,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=j}_$AI(o,t=this,r,s){let d=this.strings,m=!1;if(d===void 0)o=uo(this,o,t,0),m=!va(o)||o!==this._$AH&&o!==ge,m&&(this._$AH=o);else{let b=o,x,L;for(o=d[0],x=0;x<d.length-1;x++)L=uo(this,b[r+x],t,x),L===ge&&(L=this._$AH[x]),m||(m=!va(L)||L!==this._$AH[x]),L===j?o=j:o!==j&&(o+=(L!=null?L:"")+d[x+1]),this._$AH[x]=L}m&&!s&&this.j(o)}j(o){o===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Un=class extends fo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===j?void 0:o}},Hn=class extends fo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==j)}},Gn=class extends fo{constructor(o,t,r,s,d){super(o,t,r,s,d),this.type=5}_$AI(o,t=this){var m;if((o=(m=uo(this,o,t,0))!=null?m:j)===ge)return;let r=this._$AH,s=o===j&&r!==j||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,d=o!==j&&(r===j||s);s&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},Yn=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){uo(this,o)}},_m={M:Kd,P:ti,A:qd,C:1,L:Im,R:Bn,D:xm,V:uo,I:rs,H:fo,N:Hn,U:Gn,B:Un,F:Yn},jd=ua.litHtmlPolyfillSupport,Tm;jd==null||jd(ga,rs),((Tm=ua.litHtmlVersions)!=null?Tm:ua.litHtmlVersions=[]).push("3.2.0");var Cm=(n,o,t)=>{var d,m;let r=(d=t==null?void 0:t.renderBefore)!=null?d:o,s=r._$litPart$;if(s===void 0){let b=(m=t==null?void 0:t.renderBefore)!=null?m:null;r._$litPart$=s=new rs(o.insertBefore(fa(),b),b,void 0,t!=null?t:{})}return s._$AI(n),s};var Ni=class extends Jr{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Cm(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return ge}},km;Ni._$litElement$=!0,Ni.finalized=!0,(km=globalThis.litElementHydrateSupport)==null||km.call(globalThis,{LitElement:Ni});var Qd=globalThis.litElementPolyfillSupport;Qd==null||Qd({LitElement:Ni});var wm;((wm=globalThis.litElementVersions)!=null?wm:globalThis.litElementVersions=[]).push("4.1.0");var Cy={attribute:!0,type:String,converter:pa,reflect:!1,hasChanged:zn},ky=(n=Cy,o,t)=>{let{kind:r,metadata:s}=t,d=globalThis.litPropertyMetadata.get(s);if(d===void 0&&globalThis.litPropertyMetadata.set(s,d=new Map),d.set(t.name,n),r==="accessor"){let{name:m}=t;return{set(b){let x=o.get.call(this);o.set.call(this,b),this.requestUpdate(m,x,n)},init(b){return b!==void 0&&this.P(m,void 0,n),b}}}if(r==="setter"){let{name:m}=t;return function(b){let x=this[m];o.call(this,b),this.requestUpdate(m,x,n)}}throw Error("Unsupported decorator location: "+r)};function u(n){return(o,t)=>typeof t=="object"?ky(n,o,t):((r,s,d)=>{let m=s.hasOwnProperty(d);return s.constructor.createProperty(d,m?{...r,wrapped:!0}:r),m?Object.getOwnPropertyDescriptor(s,d):void 0})(n,o,t)}function vt(n){return u({...n,state:!0,attribute:!1})}function Nm(n){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,n)}}var Rr=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function be(n,o){return(t,r,s)=>{let d=m=>{var b,x;return(x=(b=m.renderRoot)==null?void 0:b.querySelector(n))!=null?x:null};if(o){let{get:m,set:b}=typeof r=="object"?t:s!=null?s:(()=>{let x=Symbol();return{get(){return this[x]},set(L){this[x]=L}}})();return Rr(t,r,{get(){let x=m.call(this);return x===void 0&&(x=d(this),(x!==null||this.hasUpdated)&&b.call(this,x)),x}})}return Rr(t,r,{get(){return d(this)}})}}var Jd;function Lm(n){return(o,t)=>Rr(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:Jd!=null?Jd:Jd=document.createDocumentFragment()).querySelectorAll(n)}})}function Pt(n){return(o,t)=>{let{slot:r,selector:s}=n!=null?n:{},d="slot"+(r?`[name=${r}]`:":not([name])");return Rr(o,t,{get(){var x,L;let m=(x=this.renderRoot)==null?void 0:x.querySelector(d),b=(L=m==null?void 0:m.assignedElements(n))!=null?L:[];return s===void 0?b:b.filter(U=>U.matches(s))}})}}function Wn(n){return(o,t)=>{let{slot:r}=n!=null?n:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Rr(o,t,{get(){var m,b;let d=(m=this.renderRoot)==null?void 0:m.querySelector(s);return(b=d==null?void 0:d.assignedNodes(n))!=null?b:[]}})}}var wy={PREFIX:"mdc",SEPARATOR:"-"},Ny={NAMESPACE:wy},tc=Ny;var Ly=n=>[tc.NAMESPACE.PREFIX,n].join(tc.NAMESPACE.SEPARATOR),z={constructTagName:Ly};var rt={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var Rm=z.constructTagName("buttonsimple"),vo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},is={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},ba={SIZE:vo[32],TYPE:is.BUTTON,ROLE:rt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var ei=z.constructTagName("button"),Ft={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},ya={40:40,32:32,28:28,24:24},sr={64:64,52:52,20:20,...ya},go={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},os={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Pe={VARIANT:Ft.PRIMARY,SIZE:ya[32],COLOR:go.DEFAULT,TYPE_INTERNAL:os.ICON,TYPE:is.BUTTON,INVERTED:!1};var jn=n=>{class o extends n{constructor(){super(...arguments);this.variant=Pe.VARIANT;this.color=Pe.COLOR;this.typeInternal=Pe.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values(Ft).includes(s)?s:Pe.VARIANT)}setColor(s){!Object.values(go).includes(s)||this.variant===Ft.TERTIARY?this.setAttribute("color",`${Pe.COLOR}`):this.setAttribute("color",s)}setSize(s){let m=this.typeInternal===os.ICON?Object.values(sr).includes(s)&&!(s===sr[20]&&this.variant!==Ft.TERTIARY):Object.values(ya).includes(s);this.setAttribute("size",m?`${s}`:`${Pe.SIZE}`)}inferButtonType(){var L,U,K,Z,X,it;let s=(U=(L=this.shadowRoot)==null?void 0:L.querySelector("slot:not([name])"))==null?void 0:U.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,d=(Z=(K=this.shadowRoot)==null?void 0:K.querySelector('slot[name="prefix"]'))==null?void 0:Z.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,m=this.prefixIcon||d&&d>0,b=(it=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:it.assignedNodes().filter(dt=>{var lt;return dt.nodeType!==Node.TEXT_NODE||((lt=dt.textContent)==null?void 0:lt.trim())}).length,x=this.postfixIcon||b&&b>0;s&&(m||x)?(this.typeInternal=os.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(m||x)?(this.typeInternal=os.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=os.PILL,this.setAttribute("data-btn-type","pill"))}}return p([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),p([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),p([u({type:String})],o.prototype,"variant",2),p([u({type:String})],o.prototype,"color",2),p([vt()],o.prototype,"typeInternal",2),o};var Mm=B`
5
5
  :host {
@@ -925,7 +925,7 @@
925
925
  :host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
926
926
  border-bottom: 1px solid var(--mdc-accordiongroup-border-color);
927
927
  }
928
- `,Jm=[Zy,...At()];var oi=class extends q{constructor(){super();this.size=Aa.SIZE;this.variant=Aa.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(r=>{r!==t.target&&r.hasAttribute("expanded")&&r.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,r){[...this.accordionItems].forEach(s=>{s.setAttribute(t,r)}),[...this.accordionButtonItems].forEach(s=>{s.setAttribute(t,r)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=Aa.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=Aa.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return _` <slot></slot> `}};oi.styles=[...q.styles,...Jm],p([u({type:String,reflect:!0})],oi.prototype,"size",2),p([u({type:String,reflect:!0})],oi.prototype,"variant",2),p([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],oi.prototype,"allowMultiple",2),p([Pt({selector:rl})],oi.prototype,"accordionItems",2),p([Pt({selector:el})],oi.prototype,"accordionButtonItems",2);var cc=oi;cc.register(Xm);var Qy=cc;ds.register(el);var Jy=ds;var tE=B`
928
+ `,Jm=[Zy,...At()];var oi=class extends q{constructor(){super();this.size=Aa.SIZE;this.variant=Aa.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(r=>{r!==t.target&&r.hasAttribute("expanded")&&r.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,r){[...this.accordionItems].forEach(s=>{s.setAttribute(t,r)}),[...this.accordionButtonItems].forEach(s=>{s.setAttribute(t,r)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=Aa.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=Aa.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return _` <slot></slot> `}};oi.styles=[...q.styles,...Jm],p([u({type:String,reflect:!0})],oi.prototype,"size",2),p([u({type:String,reflect:!0})],oi.prototype,"variant",2),p([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],oi.prototype,"allowMultiple",2),p([Pt({selector:rl})],oi.prototype,"accordionItems",2),p([Pt({selector:el})],oi.prototype,"accordionButtonItems",2);var cc=oi;cc.register(Xm);var Qy=cc;ds.register(el);var Jy=ds;var Wt=n=>{class o extends n{}return p([u({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var tE=B`
929
929
  :host {
930
930
  height: 1.5rem;
931
931
  gap: 0.25rem;
@@ -946,10 +946,14 @@
946
946
 
947
947
  :host::part(label) {
948
948
  color: var(--mdc-chip-color);
949
+ text-overflow: ellipsis;
950
+ white-space: nowrap;
951
+ overflow: hidden;
949
952
  }
950
953
 
951
954
  :host::part(icon) {
952
955
  color: var(--mdc-chip-icon-color);
956
+ flex-shrink: 0;
953
957
  }
954
958
 
955
959
  :host([variant='neutral']:hover) {
@@ -1027,8 +1031,8 @@
1027
1031
  :host([variant='informational']:active) {
1028
1032
  --mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
1029
1033
  }
1030
- `,tu=[bt,tE,...At()];var eu=z.constructTagName("alertchip"),Eo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},cs={VARIANT:Eo.NEUTRAL,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:vo[24],ROLE:"button"};var ru=n=>({[Eo.ERROR]:"error-legacy-badge-filled",[Eo.WARNING]:"warning-badge-filled",[Eo.SUCCESS]:"check-circle-badge-filled",[Eo.INFORMATIONAL]:"info-badge-filled",[Eo.NEUTRAL]:"dnd-presence-badge-filled"})[n];var hs=class extends ie{constructor(){super(...arguments);this.variant=cs.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=cs.SIZE,this.role=cs.ROLE}render(){return _`
1031
- <mdc-icon part="icon" name="${ru(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1034
+ `,tu=[bt,tE,...At()];var eu=z.constructTagName("alertchip"),Eo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},cs={VARIANT:Eo.NEUTRAL,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:vo[24],ROLE:"button"};var ru=n=>({[Eo.ERROR]:"error-legacy-badge-filled",[Eo.WARNING]:"warning-badge-filled",[Eo.SUCCESS]:"check-circle-badge-filled",[Eo.INFORMATIONAL]:"info-badge-filled",[Eo.NEUTRAL]:"dnd-presence-badge-filled"})[n];var hs=class extends Wt(ie){constructor(){super(...arguments);this.variant=cs.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=cs.SIZE,this.role=cs.ROLE}render(){return _`
1035
+ <mdc-icon part="icon" name="${this.iconName||ru(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1032
1036
  ${this.label?_`<mdc-text part="label" type="${cs.TEXT_TYPE}" tagname="${cs.TAG_NAME}"
1033
1037
  >${this.label}</mdc-text
1034
1038
  >`:j}
@@ -1201,7 +1205,7 @@
1201
1205
  mdc-text::part(text) {
1202
1206
  margin: 0;
1203
1207
  }
1204
- `,fu=[cE];var Wt=class extends fl(hl(cl(us(q)))){constructor(){super(...arguments);this.id="";this.visible=ar.VISIBLE;this.zIndex=ar.Z_INDEX;this.size=ar.SIZE;this.variant=ar.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=ar.HEADER_TAG_NAME;this.descriptionTagName=ar.DESCRIPTION_TAG_NAME;this.role=ar.ROLE;this.disableAriaHasPopup=ar.DISABLE_ARIA_HAS_POPUP;this.focusTrap=ar.FOCUS_TRAP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(t.preventDefault(),t.stopPropagation(),this.closeDialog())}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(r=this.deactivateFocusTrap)==null||r.call(this),this.focusBackToTrigger(),Fi.onDestroyedDialog(this)}applyZIndex(){var t;this.style.setProperty("z-index",`${this.zIndex}`),(t=this.backdropElement)==null||t.style.setProperty("z-index",`${this.zIndex-1}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),Fi.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerId")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.setupAriaHasPopup()),t.has("visible")){let r=t.get("visible");await this.isOpenUpdated(r,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=ar.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,r;this.disableAriaHasPopup||(r=this.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerId&&this.setAttribute("aria-labelledby",this.triggerId)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerId&&this.setAttribute("aria-describedby",this.triggerId))}closeDialog(){Fi.onCloseDialog(this,!1)}async isOpenUpdated(t,r){var s,d,m,b,x;t!==r&&(r&&!t?(this.lastActiveElement=document.activeElement,this.removeBackdrop(),this.createBackdrop("dialog"),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((s=this.activateFocusTrap)==null||s.call(this)),(d=this.setInitialFocus)==null||d.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),Fi.onShowDialog(this)):!r&&t&&(this.removeBackdrop(),(b=this.triggerElement)==null||b.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(x=this.deactivateFocusTrap)==null||x.call(this),this.focusBackToTrigger(),Fi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?_` <div part="header-section">
1208
+ `,fu=[cE];var jt=class extends fl(hl(cl(us(q)))){constructor(){super(...arguments);this.id="";this.visible=ar.VISIBLE;this.zIndex=ar.Z_INDEX;this.size=ar.SIZE;this.variant=ar.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=ar.HEADER_TAG_NAME;this.descriptionTagName=ar.DESCRIPTION_TAG_NAME;this.role=ar.ROLE;this.disableAriaHasPopup=ar.DISABLE_ARIA_HAS_POPUP;this.focusTrap=ar.FOCUS_TRAP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(t.preventDefault(),t.stopPropagation(),this.closeDialog())}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(r=this.deactivateFocusTrap)==null||r.call(this),this.focusBackToTrigger(),Fi.onDestroyedDialog(this)}applyZIndex(){var t;this.style.setProperty("z-index",`${this.zIndex}`),(t=this.backdropElement)==null||t.style.setProperty("z-index",`${this.zIndex-1}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),Fi.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerId")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.setupAriaHasPopup()),t.has("visible")){let r=t.get("visible");await this.isOpenUpdated(r,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=ar.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,r;this.disableAriaHasPopup||(r=this.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerId&&this.setAttribute("aria-labelledby",this.triggerId)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerId&&this.setAttribute("aria-describedby",this.triggerId))}closeDialog(){Fi.onCloseDialog(this,!1)}async isOpenUpdated(t,r){var s,d,m,b,x;t!==r&&(r&&!t?(this.lastActiveElement=document.activeElement,this.removeBackdrop(),this.createBackdrop("dialog"),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((s=this.activateFocusTrap)==null||s.call(this)),(d=this.setInitialFocus)==null||d.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),Fi.onShowDialog(this)):!r&&t&&(this.removeBackdrop(),(b=this.triggerElement)==null||b.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(x=this.deactivateFocusTrap)==null||x.call(this),this.focusBackToTrigger(),Fi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?_` <div part="header-section">
1205
1209
  <div part="header">
1206
1210
  <slot name="header-prefix"></slot>
1207
1211
  <mdc-text
@@ -1232,7 +1236,7 @@
1232
1236
  @click="${this.closeDialog}"
1233
1237
  ></mdc-button>
1234
1238
  ${this.renderBody()} ${this.renderFooter()}
1235
- `}};Wt.styles=[...q.styles,...fu],p([u({type:String,reflect:!0})],Wt.prototype,"id",2),p([u({type:String,reflect:!0})],Wt.prototype,"triggerId",2),p([u({type:Boolean,reflect:!0})],Wt.prototype,"visible",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],Wt.prototype,"zIndex",2),p([u({type:String,reflect:!0})],Wt.prototype,"size",2),p([u({type:String,reflect:!0})],Wt.prototype,"variant",2),p([u({type:String,attribute:"close-button-aria-label"})],Wt.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-label"})],Wt.prototype,"ariaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Wt.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],Wt.prototype,"ariaDescribedby",2),p([u({type:String,reflect:!0,attribute:"aria-description"})],Wt.prototype,"ariaDescription",2),p([u({type:String,reflect:!0,attribute:"header-text"})],Wt.prototype,"headerText",2),p([u({type:String,reflect:!0,attribute:"description-text"})],Wt.prototype,"descriptionText",2),p([u({type:String,reflect:!0,attribute:"header-tag-name"})],Wt.prototype,"headerTagName",2),p([u({type:String,reflect:!0,attribute:"description-tag-name"})],Wt.prototype,"descriptionTagName",2),p([u({type:String,reflect:!0})],Wt.prototype,"role",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Wt.prototype,"disableAriaHasPopup",2),p([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Wt.prototype,"focusTrap",2);var fs=Wt;var hE=B`
1239
+ `}};jt.styles=[...q.styles,...fu],p([u({type:String,reflect:!0})],jt.prototype,"id",2),p([u({type:String,reflect:!0})],jt.prototype,"triggerId",2),p([u({type:Boolean,reflect:!0})],jt.prototype,"visible",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],jt.prototype,"zIndex",2),p([u({type:String,reflect:!0})],jt.prototype,"size",2),p([u({type:String,reflect:!0})],jt.prototype,"variant",2),p([u({type:String,attribute:"close-button-aria-label"})],jt.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-label"})],jt.prototype,"ariaLabel",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],jt.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],jt.prototype,"ariaDescribedby",2),p([u({type:String,reflect:!0,attribute:"aria-description"})],jt.prototype,"ariaDescription",2),p([u({type:String,reflect:!0,attribute:"header-text"})],jt.prototype,"headerText",2),p([u({type:String,reflect:!0,attribute:"description-text"})],jt.prototype,"descriptionText",2),p([u({type:String,reflect:!0,attribute:"header-tag-name"})],jt.prototype,"headerTagName",2),p([u({type:String,reflect:!0,attribute:"description-tag-name"})],jt.prototype,"descriptionTagName",2),p([u({type:String,reflect:!0})],jt.prototype,"role",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],jt.prototype,"disableAriaHasPopup",2),p([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],jt.prototype,"focusTrap",2);var fs=jt;var hE=B`
1236
1240
  :host {
1237
1241
  --mdc-announcementdialog-illustration-background-color: var(--mds-color-theme-background-solid-secondary-normal);
1238
1242
 
@@ -1353,7 +1357,7 @@
1353
1357
  <slot name="trailing"></slot>
1354
1358
  </div>
1355
1359
  </header>
1356
- `}};yl.styles=[...q.styles,...Iu];var Ec=yl;var _u=z.constructTagName("appheader");Ec.register(_u);var vE=Ec;var Cu=z.constructTagName("avatar"),Ie={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Tc=99,gE="user-regular",Vt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},gs={TYPE:Ie.PHOTO,SIZE:Vt[32],ICON_NAME:gE};var El=n=>{class o extends n{constructor(){super(...arguments);this.size=gs.SIZE;this.isTyping=!1}}return p([u({type:String})],o.prototype,"src",2),p([u({type:String})],o.prototype,"initials",2),p([u({type:String})],o.prototype,"presence",2),p([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),p([u({type:Number})],o.prototype,"counter",2),p([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var qt=n=>{class o extends n{}return p([u({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var bE=[bt,B`
1360
+ `}};yl.styles=[...q.styles,...Iu];var Ec=yl;var _u=z.constructTagName("appheader");Ec.register(_u);var vE=Ec;var Cu=z.constructTagName("avatar"),Ie={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Tc=99,gE="user-regular",Vt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},gs={TYPE:Ie.PHOTO,SIZE:Vt[32],ICON_NAME:gE};var El=n=>{class o extends n{constructor(){super(...arguments);this.size=gs.SIZE;this.isTyping=!1}}return p([u({type:String})],o.prototype,"src",2),p([u({type:String})],o.prototype,"initials",2),p([u({type:String})],o.prototype,"presence",2),p([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),p([u({type:Number})],o.prototype,"counter",2),p([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var bE=[bt,B`
1357
1361
  :host {
1358
1362
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
1359
1363
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -1509,7 +1513,7 @@
1509
1513
  outline: 0.125rem solid;
1510
1514
  }
1511
1515
  }
1512
- `],ku=bE;var wu=z.constructTagName("presence"),xe={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},Xt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},bs={TYPE:xe.ACTIVE,SIZE:Xt[32]};var Nu=n=>({[Vt[124]]:Xt[124],[Vt[88]]:Xt[88],[Vt[72]]:Xt[72],[Vt[64]]:Xt[64],[Vt[48]]:Xt[48],[Vt[32]]:Xt[32],[Vt[24]]:Xt[24]})[n]||Xt[32],Lu=n=>({[Vt[124]]:4.75,[Vt[88]]:3,[Vt[72]]:2.5,[Vt[64]]:2.25,[Vt[48]]:1.75,[Vt[32]]:1.25,[Vt[24]]:1})[n]||1.25,Ru=n=>({[Vt[124]]:st.HEADING_XLARGE_MEDIUM,[Vt[88]]:st.HEADING_LARGE_MEDIUM,[Vt[72]]:st.HEADING_MIDSIZE_MEDIUM,[Vt[64]]:st.HEADING_SMALL_MEDIUM,[Vt[48]]:st.HEADING_SMALL_MEDIUM,[Vt[32]]:st.BODY_MIDSIZE_MEDIUM,[Vt[24]]:st.BODY_SMALL_MEDIUM})[n]||st.BODY_MIDSIZE_MEDIUM;var wa=class extends El(qt(q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Ie.COUNTER&&(this.counter||this.counter===0)||this.isTyping?j:this.presence?_`
1516
+ `],ku=bE;var wu=z.constructTagName("presence"),xe={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},Xt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},bs={TYPE:xe.ACTIVE,SIZE:Xt[32]};var Nu=n=>({[Vt[124]]:Xt[124],[Vt[88]]:Xt[88],[Vt[72]]:Xt[72],[Vt[64]]:Xt[64],[Vt[48]]:Xt[48],[Vt[32]]:Xt[32],[Vt[24]]:Xt[24]})[n]||Xt[32],Lu=n=>({[Vt[124]]:4.75,[Vt[88]]:3,[Vt[72]]:2.5,[Vt[64]]:2.25,[Vt[48]]:1.75,[Vt[32]]:1.25,[Vt[24]]:1})[n]||1.25,Ru=n=>({[Vt[124]]:st.HEADING_XLARGE_MEDIUM,[Vt[88]]:st.HEADING_LARGE_MEDIUM,[Vt[72]]:st.HEADING_MIDSIZE_MEDIUM,[Vt[64]]:st.HEADING_SMALL_MEDIUM,[Vt[48]]:st.HEADING_SMALL_MEDIUM,[Vt[32]]:st.BODY_MIDSIZE_MEDIUM,[Vt[24]]:st.BODY_SMALL_MEDIUM})[n]||st.BODY_MIDSIZE_MEDIUM;var wa=class extends El(Wt(q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Ie.COUNTER&&(this.counter||this.counter===0)||this.isTyping?j:this.presence?_`
1513
1517
  <mdc-presence part="presence" type="${this.presence}" size="${Nu(this.size)}"></mdc-presence>
1514
1518
  `:j}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return _`
1515
1519
  <img
@@ -1658,7 +1662,7 @@
1658
1662
  :host::part(presence) {
1659
1663
  z-index: 2;
1660
1664
  }
1661
- `,...At()],Du=xE;var Na=class extends El(qt(ie)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=rt.BUTTON,this.type=Pe.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Vt).includes(t)?`${t}`:gs.SIZE.toString())}render(){return _`
1665
+ `,...At()],Du=xE;var Na=class extends El(Wt(ie)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=rt.BUTTON,this.type=Pe.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Vt).includes(t)?`${t}`:gs.SIZE.toString())}render(){return _`
1662
1666
  <div part="overlay" aria-hidden="true"></div>
1663
1667
  <mdc-avatar
1664
1668
  exportparts="content, photo, presence, loading-wrapper, loader"
@@ -1746,7 +1750,7 @@
1746
1750
  outline: none;
1747
1751
  }
1748
1752
  }
1749
- `],zu=SE;var Fr=class extends qt(q){constructor(){super(...arguments);this.variant=zi.VARIANT;this.maxCounter=zi.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(t,r){return r===void 0||typeof r!="number"||t===0?"":r>t?`${t}+`:t>zi.MAX_COUNTER_LIMIT||r>zi.MAX_COUNTER_LIMIT?`${zi.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(t){return _`
1753
+ `],zu=SE;var Fr=class extends Wt(q){constructor(){super(...arguments);this.variant=zi.VARIANT;this.maxCounter=zi.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(t,r){return r===void 0||typeof r!="number"||t===0?"":r>t?`${t}+`:t>zi.MAX_COUNTER_LIMIT||r>zi.MAX_COUNTER_LIMIT?`${zi.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(t){return _`
1750
1754
  <mdc-icon
1751
1755
  part="badge-icon ${this.overlay?"badge-overlay":""}"
1752
1756
  name="${tt(t)}"
@@ -2961,6 +2965,16 @@
2961
2965
  background-color: var(--mdc-chip-background-color);
2962
2966
  }
2963
2967
 
2968
+ :host::part(icon) {
2969
+ flex-shrink: 0;
2970
+ }
2971
+
2972
+ :host::part(label) {
2973
+ text-overflow: ellipsis;
2974
+ white-space: nowrap;
2975
+ overflow: hidden;
2976
+ }
2977
+
2964
2978
  :host([color='cobalt']) {
2965
2979
  --mdc-chip-border-color: var(--mds-color-theme-outline-theme-normal);
2966
2980
  --mdc-chip-background-color: var(--mds-color-theme-background-label-cobalt-normal);
@@ -3005,7 +3019,7 @@
3005
3019
  --mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
3006
3020
  --mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
3007
3021
  }
3008
- `,tv=[bt,$T];var _s=class extends qt(q){constructor(){super(...arguments);this.color=Bl.COLOR;this.label=""}renderIcon(){return this.iconName?_` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return _`
3022
+ `,tv=[bt,$T];var _s=class extends Wt(q){constructor(){super(...arguments);this.color=Bl.COLOR;this.label=""}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return _`
3009
3023
  ${this.renderIcon()}
3010
3024
  ${this.label?_`<mdc-text part="label" type="${Bl.TEXT_TYPE}" tagname="${Bl.TAG_NAME}"
3011
3025
  >${this.label}</mdc-text
@@ -3104,7 +3118,7 @@
3104
3118
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3105
3119
  cursor: auto;
3106
3120
  }
3107
- `,rv=[bt,zT,...At()];var ks=class extends qt(ie){constructor(){super(...arguments);this.color=Cs.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Cs.ROLE,this.size=Cs.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?_` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return _`
3121
+ `,rv=[bt,zT,...At()];var ks=class extends Wt(ie){constructor(){super(...arguments);this.color=Cs.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Cs.ROLE,this.size=Cs.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?_` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return _`
3108
3122
  ${this.renderIcon()}
3109
3123
  ${this.label?_`<mdc-text part="label" type="${Cs.TEXT_TYPE}" tagname="${Cs.TAG_NAME}"
3110
3124
  >${this.label}</mdc-text
@@ -3568,7 +3582,7 @@
3568
3582
  width: 1.25rem;
3569
3583
  height: 1.25rem;
3570
3584
  }
3571
- `,pv=[bt,JT];var ql=z.constructTagName("inputchip"),Xl={TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var $o=class extends qt(Bt(q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return _`
3585
+ `,pv=[bt,JT];var ql=z.constructTagName("inputchip"),Xl={TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var $o=class extends Wt(Bt(q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return _`
3572
3586
  <slot name="prefix">
3573
3587
  ${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:j}
3574
3588
  </slot>
@@ -3646,7 +3660,7 @@
3646
3660
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
3647
3661
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
3648
3662
  }
3649
- `,mv=[ex];var Ga=class extends qt($r){constructor(){super(...arguments);this.size=pu.LINK_SIZE}getIconSize(){switch(this.size){case ml.SMALL:return ul.SMALL;case ml.MIDSIZE:return ul.MIDSIZE;default:return ul.LARGE}}renderAnchorContent(){return _` <slot></slot>
3663
+ `,mv=[ex];var Ga=class extends Wt($r){constructor(){super(...arguments);this.size=pu.LINK_SIZE}getIconSize(){switch(this.size){case ml.SMALL:return ul.SMALL;case ml.MIDSIZE:return ul.MIDSIZE;default:return ul.LARGE}}renderAnchorContent(){return _` <slot></slot>
3650
3664
  ${this.iconName?_`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:j}`}};Ga.styles=[...$r.styles,...mv],p([u({type:String,reflect:!0})],Ga.prototype,"size",2);var rh=Ga;rh.register(pl);var rx=rh;var uv=z.constructTagName("linkbutton"),Ls={12:12,14:14,16:16},Rs={SIZE:Ls[16],ROLE:rt.BUTTON,INLINE:ys.INLINE,INVERTED:ys.INVERTED};var fv=n=>{switch(n){case Ls[12]:return .75;case Ls[14]:return .875;default:return 1}};var ix=B`
3651
3665
  :host {
3652
3666
  gap: 0.25rem;
@@ -3746,7 +3760,7 @@
3746
3760
  color: var(--mdc-link-color-disabled);
3747
3761
  pointer-events: none;
3748
3762
  }
3749
- `,vv=[ix,...At()];var zo=class extends qt(ie){constructor(){super(...arguments);this.size=Rs.SIZE;this.inline=Rs.INLINE;this.inverted=Rs.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Rs.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ls).includes(t)?`${t}`:Rs.SIZE.toString())}render(){return _`
3763
+ `,vv=[ix,...At()];var zo=class extends Wt(ie){constructor(){super(...arguments);this.size=Rs.SIZE;this.inline=Rs.INLINE;this.inverted=Rs.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Rs.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ls).includes(t)?`${t}`:Rs.SIZE.toString())}render(){return _`
3750
3764
  <slot></slot>
3751
3765
  ${this.iconName?_` <mdc-icon name=${this.iconName} size=${fv(this.size)} length-unit="rem"></mdc-icon> `:j}
3752
3766
  `}};zo.styles=[...$r.styles,...vv],p([u({type:Number,reflect:!0})],zo.prototype,"size",2),p([u({type:Boolean,reflect:!0})],zo.prototype,"inline",2),p([u({type:Boolean,reflect:!0})],zo.prototype,"inverted",2);var ih=zo;ih.register(uv);var ox=ih;$r.register(ju);var sx=$r;var Ms=n=>{class o extends n{constructor(...s){super(...s);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.handleNavigationClick=s=>{let d=s.target,m=this.getCurrentIndex(d);if(m!==-1){let b=!(this.navItems.at(m)!==d&&document.activeElement===s.target);this.resetTabIndexAndSetFocus(m,void 0,b)}};this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}async firstUpdated(s){super.firstUpdated(s),this.setInitialFocus()}setInitialFocus(){let s=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(s,void 0,!1)}handleNavigationKeyDown(s){let d=new Set([Q.ARROW_DOWN,Q.ARROW_UP,Q.HOME,Q.END]),m=window.getComputedStyle(this).direction==="rtl",b=this.resolveDirectionKey(s.key,m);if(!d.has(b))return;let x=s.target,L=this.getCurrentIndex(x);if(L!==-1){switch(this.resetTabIndexes(L),b){case Q.HOME:{this.resetTabIndexAndSetFocus(0,L);break}case Q.END:{this.resetTabIndexAndSetFocus(this.navItems.length-1,L);break}case Q.ARROW_DOWN:{let U=this.shouldLoop()?0:L,K=L+1===this.navItems.length?U:L+1;this.resetTabIndexAndSetFocus(K,L);break}case Q.ARROW_UP:{let U=this.shouldLoop()?this.navItems.length-1:L,K=L-1===-1?U:L-1;this.resetTabIndexAndSetFocus(K,L);break}default:break}this.propagateAllKeyEvents||(s.stopPropagation(),s.preventDefault())}}getCurrentIndex(s){return s?this.navItems.findIndex(d=>d===s||!!(d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(s,d=!0){var m;if(this.navItems.length>0){this.navItems.forEach(L=>L.setAttribute("tabindex","-1"));let b=this.navItems.at(s)?s:0,x=(m=this.navItems.at(b))!=null?m:this.navItems.find(Boolean);x&&(x.setAttribute("tabindex","0"),d&&x.focus())}}resetTabIndexAndSetFocus(s,d,m=!0){var L;let{navItems:b}=this;if(b.length===0)return;let x=(L=b.at(s))!=null?L:b.find(Boolean);s===d&&x&&x.getAttribute("tabindex")==="0"||(d===void 0?b.forEach(U=>U.setAttribute("tabindex","-1")):b.at(d)&&b.at(d).setAttribute("tabindex","-1"),x.setAttribute("tabindex","0"),m&&(x.focus({preventScroll:!0}),x.scrollIntoView({block:"nearest"})))}resolveDirectionKey(s,d){if(!d)return s;switch(s){case Q.ARROW_LEFT:return Q.ARROW_RIGHT;case Q.ARROW_RIGHT:return Q.ARROW_LEFT;default:return s}}shouldLoop(){return this.loop!=="false"}}return o};var Zl=z.constructTagName("listitem"),Ya={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},gv={VARIANT:Ya.FULL_WIDTH};var Ht={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var bv=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING);var ax=n=>!!n,Ur=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||ax,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Ht.CREATED,this.itemCreationHandler),this.host.addEventListener(Ht.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Ht.CREATED,this.itemCreationHandler),this.host.removeEventListener(Ht.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}addItem(o,t=void 0){var s;let r=o;if(this.isValidItem(r)&&!this.cache.includes(r)){let d=t===void 0?this.cache.findIndex(m=>bv(r,m)):t;this.onStoreUpdate&&((s=this.onStoreUpdate)==null||s.call(this,r,"added",d===-1?this.cache.length:d,this.cache.slice())),d===-1?this.cache.push(r):d>=0&&this.cache.splice(d,0,r)}}delete(o){var r;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((r=this.onStoreUpdate)==null||r.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var Yi=n=>{class o extends n{constructor(...s){super(...s);this.handleItemCreation=s=>{let d=s.target;d&&d.addEventListener(Ht.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===Ht.DESTROYED&&(s.target.removeEventListener(Ht.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(Ht.CREATED,this.handleItemCreation)}}return o};var nx=B`
@@ -4152,7 +4166,7 @@
4152
4166
  :host .hidden-checkmark {
4153
4167
  visibility: hidden;
4154
4168
  }
4155
- `,zv=[Ax];var Fs=class extends Jl(pr){constructor(){super();this.checked=!1;this.indicator=$v.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=rt.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===tn.CHECKBOX?_`
4169
+ `,zv=[Ax];var Fs=class extends Jl(pr){constructor(){super();this.checked=!1;this.indicator=$v.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=rt.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===tn.CHECKBOX?_`
4156
4170
  <mdc-staticcheckbox
4157
4171
  slot="leading-controls"
4158
4172
  ?checked="${this.checked}"
@@ -4201,7 +4215,7 @@
4201
4215
  :host .hidden-checkmark {
4202
4216
  visibility: hidden;
4203
4217
  }
4204
- `,Bv=[Ix];var $s=class extends Jl(pr){constructor(){super();this.checked=!1;this.indicator=Vv.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=rt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${fi}, ${te}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(r=>{r!==this&&r.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===rd.RADIO?_`
4218
+ `,Bv=[Ix];var $s=class extends Jl(pr){constructor(){super();this.checked=!1;this.indicator=Vv.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=rt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${fi}, ${te}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(r=>{r!==this&&r.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===rd.RADIO?_`
4205
4219
  <mdc-staticradio
4206
4220
  slot="leading-controls"
4207
4221
  ?checked="${this.checked}"
@@ -4243,7 +4257,7 @@
4243
4257
  ::slotted(mdc-divider) {
4244
4258
  margin-block: 0.25rem;
4245
4259
  }
4246
- `,Yv=[Cx];var en=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===rt.MENUITEM||o===rt.MENUITEMCHECKBOX||o===rt.MENUITEMRADIO},bh=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===te};var rn=class extends Ve{constructor(){super();this.placement=lh.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(Ce.peek()!==this)return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var r;(r=this.triggerElement)!=null&&r.hasAttribute("soft-disabled")||!this.isEventFromTrigger(t)||(this.visible?this.hide():this.show())};this.handleItemCreation=t=>{let r=t.target;en(r)&&(t.stopImmediatePropagation(),r.addEventListener("destroyed",this.handleItemChangeEvent),r.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(r=>r.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let r=!1;this.collectMenuItems();let s=t.target,d=this.getCurrentIndex(s);if(d===-1)return;this.resetTabIndexes(d);let m=window.getComputedStyle(this).direction==="rtl";switch(this.resolveDirectionKey(t.key,m)){case Q.HOME:{this.resetTabIndexAndSetFocus(0,d),r=!0;break}case Q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,d),r=!0;break}case Q.ARROW_DOWN:{let x=d+1===this.menuItems.length?0:d+1;this.resetTabIndexAndSetFocus(x,d),r=!0;break}case Q.ARROW_UP:{let x=d-1===-1?this.menuItems.length-1:d-1;this.resetTabIndexAndSetFocus(x,d),r=!0;break}case Q.ARROW_RIGHT:{let x=this.getSubMenuPopoverOfTarget(s);x&&(x.show(),r=!0);break}case Q.ARROW_LEFT:{bh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,d),r=!0);break}case Q.ESCAPE:{this.resetTabIndexAndSetFocus(0,d),r=!0;break}case Q.ENTER:{this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}case Q.SPACE:{r=!0;break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let r=!1,s=t.target;switch(t.key){case Q.SPACE:{s.matches(`${ed}, ${td}`)||this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("click",this.handleMouseClick),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,d;let r=t.getAttribute("id");return r?(d=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:d.call(s,`${te}[triggerid="${r}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=r.map(d=>d.tagName.toLowerCase()===fi?Array.from(d.children).filter(m=>en(m)):en(d)?d:[]).flat().filter(d=>!!d&&!d.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(d=>this.getSubMenuPopoverOfTarget(d))}getOpenSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.visible&&r.push(d)}),r}connectedCallback(){super.connectedCallback(),this.role=rt.MENU,this.ariaOrientation=lh.ORIENTATION,this.backdrop=!1,this.color=No.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,r){return t===r||!this.triggerElement?Promise.resolve():(r&&(this.backdrop=![Xa,Qi].includes(this.triggerElement.tagName.toLowerCase())),r===!1&&this.menuItemsWithSubMenus.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,r))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(r=>r.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t)}resetTabIndexAndSetFocus(t,r){t!==r&&(this.menuItems[r].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){for(;Ce.peek()!==t&&bh(Ce.peek());){let r=Ce.pop();if(r)r.hide();else break}}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(d=>d!==t);this.getOpenSubMenusOfItems(r).forEach(d=>{d.hide()})}fireMenuItemAction(t){t.matches(Xa)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(t.stopPropagation(),!(!en(r)||!t.isTrusted)){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}resolveDirectionKey(t,r){if(!r)return t;switch(t){case Q.ARROW_LEFT:return Q.ARROW_RIGHT;case Q.ARROW_RIGHT:return Q.ARROW_LEFT;default:return t}}};rn.styles=[...Ve.styles,...Yv],p([u({type:String,reflect:!0})],rn.prototype,"placement",2);var yh=rn;yh.register(te);var kx=yh;var id=class{constructor(o,t,r){this.variant=o,this.expanded=t,this.parentNavTooltipText=r}hasSiblingWithTriggerId(o){var s,d;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((d=(s=o==null?void 0:o.parentElement)==null?void 0:s.children)!=null?d:[]).some(m=>m!==o&&m.tagName.toLowerCase()===te&&m.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(te);if(!s)break;let d=s.getAttribute("triggerid");if(!d)break;let m=document.getElementById(d);if(m&&m.tagName.toLowerCase()===Qi)t.push(m),r=m;else break}return t}setCurrentActiveNavMenuItem(o){var d;let t=((d=this.currentActiveNavMenuItem)==null?void 0:d.navId)===(o==null?void 0:o.navId),r=(o==null?void 0:o.disableAriaCurrent)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||r||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(b=>{b.removeAttribute("tooltip-text"),b.removeAttribute("tooltip-placement"),b.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(m=>{m.setAttribute("tooltip-text",this.parentNavTooltipText||""),m.setAttribute("tooltip-placement",wt.BOTTOM),m.setAttribute("active","")})}};id.context=ji;var od=id;var wx=B`
4260
+ `,Yv=[Cx];var en=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===rt.MENUITEM||o===rt.MENUITEMCHECKBOX||o===rt.MENUITEMRADIO},bh=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===te};var rn=class extends Ve{constructor(){super();this.placement=lh.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(Ce.peek()!==this)return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var r;(r=this.triggerElement)!=null&&r.hasAttribute("soft-disabled")||!this.isEventFromTrigger(t)||(this.visible?this.hide():this.show())};this.handleItemCreation=t=>{let r=t.target;en(r)&&(t.stopImmediatePropagation(),r.addEventListener("destroyed",this.handleItemChangeEvent),r.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(r=>r.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let r=!1;this.collectMenuItems();let s=t.target,d=this.getCurrentIndex(s);if(d===-1)return;this.resetTabIndexes(d);let m=window.getComputedStyle(this).direction==="rtl";switch(this.resolveDirectionKey(t.key,m)){case Q.HOME:{this.resetTabIndexAndSetFocus(0,d),r=!0;break}case Q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,d),r=!0;break}case Q.ARROW_DOWN:{let x=d+1===this.menuItems.length?0:d+1;this.resetTabIndexAndSetFocus(x,d),r=!0;break}case Q.ARROW_UP:{let x=d-1===-1?this.menuItems.length-1:d-1;this.resetTabIndexAndSetFocus(x,d),r=!0;break}case Q.ARROW_RIGHT:{let x=this.getSubMenuPopoverOfTarget(s);x&&(x.show(),r=!0);break}case Q.ARROW_LEFT:{bh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,d),r=!0);break}case Q.ESCAPE:{this.resetTabIndexAndSetFocus(0,d),r=!0;break}case Q.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}case Q.SPACE:{r=!0;break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let r=!1,s=t.target;switch(t.key){case Q.SPACE:{!s.matches(`${ed}, ${td}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0));break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("click",this.handleMouseClick),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,d;let r=t.getAttribute("id");return r?(d=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:d.call(s,`${te}[triggerid="${r}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=r.map(d=>d.tagName.toLowerCase()===fi?Array.from(d.children).filter(m=>en(m)):en(d)?d:[]).flat().filter(d=>!!d&&!d.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(d=>this.getSubMenuPopoverOfTarget(d))}getOpenSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.visible&&r.push(d)}),r}connectedCallback(){super.connectedCallback(),this.role=rt.MENU,this.ariaOrientation=lh.ORIENTATION,this.backdrop=!1,this.color=No.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,r){return t===r||!this.triggerElement?Promise.resolve():(r&&(this.backdrop=![Xa,Qi].includes(this.triggerElement.tagName.toLowerCase())),r===!1&&this.menuItemsWithSubMenus.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,r))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(r=>r.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t)}resetTabIndexAndSetFocus(t,r){t!==r&&(this.menuItems[r].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){for(;Ce.peek()!==t&&bh(Ce.peek());){let r=Ce.pop();if(r)r.hide();else break}}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(d=>d!==t);this.getOpenSubMenusOfItems(r).forEach(d=>{d.hide()})}fireMenuItemAction(t){t.matches(Xa)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(t.stopPropagation(),!(!en(r)||!t.isTrusted||r.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}resolveDirectionKey(t,r){if(!r)return t;switch(t){case Q.ARROW_LEFT:return Q.ARROW_RIGHT;case Q.ARROW_RIGHT:return Q.ARROW_LEFT;default:return t}}};rn.styles=[...Ve.styles,...Yv],p([u({type:String,reflect:!0})],rn.prototype,"placement",2);var yh=rn;yh.register(te);var kx=yh;var id=class{constructor(o,t,r){this.variant=o,this.expanded=t,this.parentNavTooltipText=r}hasSiblingWithTriggerId(o){var s,d;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((d=(s=o==null?void 0:o.parentElement)==null?void 0:s.children)!=null?d:[]).some(m=>m!==o&&m.tagName.toLowerCase()===te&&m.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(te);if(!s)break;let d=s.getAttribute("triggerid");if(!d)break;let m=document.getElementById(d);if(m&&m.tagName.toLowerCase()===Qi)t.push(m),r=m;else break}return t}setCurrentActiveNavMenuItem(o){var d;let t=((d=this.currentActiveNavMenuItem)==null?void 0:d.navId)===(o==null?void 0:o.navId),r=(o==null?void 0:o.disableAriaCurrent)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||r||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(b=>{b.removeAttribute("tooltip-text"),b.removeAttribute("tooltip-placement"),b.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(m=>{m.setAttribute("tooltip-text",this.parentNavTooltipText||""),m.setAttribute("tooltip-placement",wt.BOTTOM),m.setAttribute("active","")})}};id.context=ji;var od=id;var wx=B`
4247
4261
  :host {
4248
4262
  --mdc-sidenavigation-expanded-width: 15rem;
4249
4263
  --mdc-sidenavigation-collapsed-width: 4.5rem;
@@ -4524,7 +4538,7 @@
4524
4538
  left: -0.75rem;
4525
4539
  top: 0.875rem;
4526
4540
  }
4527
- `,...At()],Kv=Rx;var Xe=class extends qt(pr){constructor(){super();this.maxCounter=Gv.MAX_COUNTER;this.ariaLabel=null;this.sideNavigationContext=Fe.consume({host:this,context:Vo.Context});this.emitNavMenuItemActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(r)};this.addEventListener("click",this.handleClickEvent.bind(this)),this.addEventListener("focusin",this.renderDynamicTooltip.bind(this)),this.addEventListener("mouseenter",this.renderDynamicTooltip.bind(this)),this.addEventListener("focusout",this.removeTooltip.bind(this)),this.addEventListener("mouseout",this.removeTooltip.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}updated(){var r,s;let t=(r=this.sideNavigationContext)==null?void 0:r.value;if(t)if(this.showLabel=this.isNested()?!0:t.expanded,this.showLabel)this.removeAttribute("aria-label");else{let d=(s=this.label)!=null?s:"";this.ariaLabel=this.ariaLabel||d,this.setAttribute("aria-label",d)}}removeTooltip(){let t=document.querySelector(`${Qa}[triggerid="${this.id}"]`);t&&t.remove()}renderDynamicTooltip(){if(!this.tooltipText)return;this.id||(this.id=`mdc-navmenuitem-${Te()}`),this.removeTooltip();let t=document.createElement(Qa);t.id=`mdc-navmenuitem-tooltip-${Te()}`,t.textContent=this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("visible",""),t.setAttribute("show-arrow",""),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===te)return!0;t=t.parentElement}return!1}modifyIconName(t){if(!this.iconName)return;let r=this.iconName.endsWith("-filled"),s=bo(this.iconName);t?r||(this.prevIconName=this.iconName,this.iconName=`${s}-filled`):this.prevIconName&&(this.iconName=this.prevIconName)}handleClickEvent(){this.disabled||this.emitNavMenuItemActiveChange(this.active)}update(t){super.update(t),t.has("active")&&this.modifyIconName(this.active)}renderTextLabel(t){return _`
4541
+ `,...At()],Kv=Rx;var Xe=class extends Wt(pr){constructor(){super();this.maxCounter=Gv.MAX_COUNTER;this.ariaLabel=null;this.sideNavigationContext=Fe.consume({host:this,context:Vo.Context});this.emitNavMenuItemActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(r)};this.addEventListener("click",this.handleClickEvent.bind(this)),this.addEventListener("focusin",this.renderDynamicTooltip.bind(this)),this.addEventListener("mouseenter",this.renderDynamicTooltip.bind(this)),this.addEventListener("focusout",this.removeTooltip.bind(this)),this.addEventListener("mouseout",this.removeTooltip.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}updated(){var r,s;let t=(r=this.sideNavigationContext)==null?void 0:r.value;if(t)if(this.showLabel=this.isNested()?!0:t.expanded,this.showLabel)this.removeAttribute("aria-label");else{let d=(s=this.label)!=null?s:"";this.ariaLabel=this.ariaLabel||d,this.setAttribute("aria-label",d)}}removeTooltip(){let t=document.querySelector(`${Qa}[triggerid="${this.id}"]`);t&&t.remove()}renderDynamicTooltip(){if(!this.tooltipText)return;this.id||(this.id=`mdc-navmenuitem-${Te()}`),this.removeTooltip();let t=document.createElement(Qa);t.id=`mdc-navmenuitem-tooltip-${Te()}`,t.textContent=this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("visible",""),t.setAttribute("show-arrow",""),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===te)return!0;t=t.parentElement}return!1}modifyIconName(t){if(!this.iconName)return;let r=this.iconName.endsWith("-filled"),s=bo(this.iconName);t?r||(this.prevIconName=this.iconName,this.iconName=`${s}-filled`):this.prevIconName&&(this.iconName=this.prevIconName)}handleClickEvent(){this.disabled||this.emitNavMenuItemActiveChange(this.active)}update(t){super.update(t),t.has("active")&&this.modifyIconName(this.active)}renderTextLabel(t){return _`
4528
4542
  <mdc-text
4529
4543
  type=${this.active?st.BODY_MIDSIZE_BOLD:st.BODY_MIDSIZE_MEDIUM}
4530
4544
  tagname=${mt.SPAN}
@@ -5839,7 +5853,7 @@
5839
5853
  background-color: var(--mdc-tab-pill-active-background-color-disabled);
5840
5854
  color: var(--mdc-tab-pill-active-color-disabled);
5841
5855
  }
5842
- `,...At()],Cg=fA;var ro=class extends qt(ie){constructor(){super(...arguments);this.active=gd.ACTIVE;this.variant=gd.VARIANT;this.handleTabActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role=rt.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${bo(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(jh).includes(t)?t:gd.VARIANT)}setActive(t,r){super.setActive(t,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return _`
5856
+ `,...At()],Cg=fA;var ro=class extends Wt(ie){constructor(){super(...arguments);this.active=gd.ACTIVE;this.variant=gd.VARIANT;this.handleTabActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role=rt.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${bo(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(jh).includes(t)?t:gd.VARIANT)}setActive(t,r){super.setActive(t,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return _`
5843
5857
  <div part="container">
5844
5858
  <slot name="prefix">
5845
5859
  ${this.iconName?_` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:j}
@@ -6339,7 +6353,7 @@
6339
6353
  top: var(--mdc-virtualizedlist-hidden-top) !important;
6340
6354
  left: 0 !important;
6341
6355
  }
6342
- `],Qg=MA;var Jg=z.constructTagName("virtualizedlist"),N8=z.constructTagName("virtualizedwrapper"),mn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var Ge=class extends Ut(Ps){constructor(){super();this.virtualizerProps=mn.VIRTUALIZER_PROPS;this.loop=mn.LOOP;this.scrollAnchoring=mn.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=mn.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.handleElementFirstUpdateCompleted=t=>{var r,s;this.observeSizeChanges&&this.navItems.find(d=>d===t.target)!==void 0&&((s=(r=this.virtualizer)==null?void 0:r.measureElement)==null||s.call(r,t.target))};this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Ht.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?r:[]}get navItems(){var t,r,s,d;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let m=(d=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?d:"data-index";this.virtualizedNavItems=new Cd(super.navItems,b=>Number(b.getAttribute(m)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?r:0}connectedCallback(){this.virtualizerController=new Id(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no"}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null}async update(t){super.update(t),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(r=>{var s,d;this.observeSizeChanges&&((d=(s=this.virtualizer)==null?void 0:s.measureElement)==null||d.call(s,r))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var d,m;let{virtualizer:r}=this;if(!r)return;let s=r.measurementsCache.slice();if(r.setOptions({...r.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&s.length>0){let b=Math.abs(this.virtualizerProps.count-((d=t==null?void 0:t.count)!=null?d:0)),x=this.selectedIndex,L=this.firstKey,U=new _d(x-b,x+b,{includeEnd:!0}),K=(m=Array.from(U).find(X=>r.options.getItemKey(X)===this.selectedKey))!=null?m:this.selectedIndex;if(this.setSelectedIndex(K),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&x!==this.selectedIndex||!this.focusWithin&&this.firstKey!==L){let X=r.measurementsCache[this.selectedIndex].end-s[x].end;this.scrollRef.scrollTop+=X}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var r,s,d,m,b;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(b=(m=(d=this.virtualizer)==null?void 0:d.getVirtualItems)==null?void 0:m.call(d))!=null?b:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var x,L,U,K;let{navItems:r,virtualizerProps:s,virtualizer:d}=this,m=(L=(x=s.rangeExtractor)==null?void 0:x.call(s,t))!=null?L:sp(t);return this.hiddenIndexes.forEach(Z=>{let X=r.at(Z);X&&(X.removeAttribute("data-virtualized-hidden"),X.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(K=(U=this.virtualizer)==null?void 0:U.options.getItemKey(this.firstIndex))!=null?K:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Z=>{var X;m.includes(Z)||(Z<t.startIndex&&Z>=0&&(m.unshift(Z),this.hiddenIndexes.push(Z)),Z>t.endIndex&&Z<((X=d==null?void 0:d.options.count)!=null?X:0)&&(m.push(Z),this.hiddenIndexes.push(Z)))}),this.updateHiddenItemsPosition(),m.sort((Z,X)=>Z-X),m}updateHiddenItemsPosition(){let{navItems:t,virtualizerProps:r,virtualizer:s}=this;if(!s||r.count===0)return;let{measurementsCache:d,range:m}=s;this.hiddenIndexes.forEach(b=>{var L;let x=t.at(b);if(x){let U=d[(L=m==null?void 0:m.startIndex)!=null?L:0],K=d[b];x.setAttribute("data-virtualized-hidden","true"),x.style.setProperty("--mdc-virtualizedlist-hidden-top",`${K.start-U.start}px`)}})}isElementSelected(t){var r;return((r=this.virtualizer)==null?void 0:r.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:r,getItemKey:s}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(r-1,t)),this.selectedKey=s(t),this.scrollAnchoring&&this.selectedIndex+1===r&&(this.atBottom="yes")}}onElementStoreUpdate(t,r){if(r==="added"){let s=this.isElementSelected(t);t.tabIndex=s?0:-1,this.setAriaSetSize(t)}else r==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,r){this.syncUI(),await this.updateComplete,this.requestUpdate(),!r&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(s=>s()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let r=t.target;this.atBottom==="re-evaluate"||r.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=r.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&r>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=r-s<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var r,s,d,m;switch(t.key){case Q.HOME:{(s=(r=this.virtualizer)==null?void 0:r.scrollToIndex)==null||s.call(r,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Q.END:{let b=this.virtualizerProps.count-1;(m=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||m.call(d,b,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(b));break}case Q.ARROW_UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,r=!0){super.resetTabIndexes(t,r),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,r,s){if(this.navItems.find(m=>{var b;return((b=this.virtualizer)==null?void 0:b.indexFromElement(m))===t})===void 0){this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,r,s),this.setSelectedIndex(t)});return}super.resetTabIndexAndSetFocus(t,r,s),this.setSelectedIndex(t)}setAriaSetSize(t){var r,s;t.setAttribute("aria-setsize",`${(s=(r=this.virtualizer)==null?void 0:r.options.count)!=null?s:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=r-t-s),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,r){var s,d;(d=(s=this.virtualizer).scrollToIndex)==null||d.call(s,t,r),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var d;let t=this.virtualItems.find(({index:m})=>!this.hiddenIndexes.includes(m)),r=(d=t==null?void 0:t.start)!=null?d:0;window.getComputedStyle(this);let s=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(s=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${s+r}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}render(){var t;return _`
6356
+ `],Qg=MA;var Jg=z.constructTagName("virtualizedlist"),L8=z.constructTagName("virtualizedwrapper"),mn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var Ge=class extends Ut(Ps){constructor(){super();this.virtualizerProps=mn.VIRTUALIZER_PROPS;this.loop=mn.LOOP;this.scrollAnchoring=mn.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=mn.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.handleElementFirstUpdateCompleted=t=>{var r,s;this.observeSizeChanges&&this.navItems.find(d=>d===t.target)!==void 0&&((s=(r=this.virtualizer)==null?void 0:r.measureElement)==null||s.call(r,t.target))};this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Ht.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?r:[]}get navItems(){var t,r,s,d;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let m=(d=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?d:"data-index";this.virtualizedNavItems=new Cd(super.navItems,b=>Number(b.getAttribute(m)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?r:0}connectedCallback(){this.virtualizerController=new Id(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no"}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null}async update(t){super.update(t),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(r=>{var s,d;this.observeSizeChanges&&((d=(s=this.virtualizer)==null?void 0:s.measureElement)==null||d.call(s,r))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var d,m;let{virtualizer:r}=this;if(!r)return;let s=r.measurementsCache.slice();if(r.setOptions({...r.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&s.length>0){let b=Math.abs(this.virtualizerProps.count-((d=t==null?void 0:t.count)!=null?d:0)),x=this.selectedIndex,L=this.firstKey,U=new _d(x-b,x+b,{includeEnd:!0}),K=(m=Array.from(U).find(X=>r.options.getItemKey(X)===this.selectedKey))!=null?m:this.selectedIndex;if(this.setSelectedIndex(K),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&x!==this.selectedIndex||!this.focusWithin&&this.firstKey!==L){let X=r.measurementsCache[this.selectedIndex].end-s[x].end;this.scrollRef.scrollTop+=X}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var r,s,d,m,b;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(b=(m=(d=this.virtualizer)==null?void 0:d.getVirtualItems)==null?void 0:m.call(d))!=null?b:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var x,L,U,K;let{navItems:r,virtualizerProps:s,virtualizer:d}=this,m=(L=(x=s.rangeExtractor)==null?void 0:x.call(s,t))!=null?L:sp(t);return this.hiddenIndexes.forEach(Z=>{let X=r.at(Z);X&&(X.removeAttribute("data-virtualized-hidden"),X.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(K=(U=this.virtualizer)==null?void 0:U.options.getItemKey(this.firstIndex))!=null?K:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Z=>{var X;m.includes(Z)||(Z<t.startIndex&&Z>=0&&(m.unshift(Z),this.hiddenIndexes.push(Z)),Z>t.endIndex&&Z<((X=d==null?void 0:d.options.count)!=null?X:0)&&(m.push(Z),this.hiddenIndexes.push(Z)))}),this.updateHiddenItemsPosition(),m.sort((Z,X)=>Z-X),m}updateHiddenItemsPosition(){let{navItems:t,virtualizerProps:r,virtualizer:s}=this;if(!s||r.count===0)return;let{measurementsCache:d,range:m}=s;this.hiddenIndexes.forEach(b=>{var L;let x=t.at(b);if(x){let U=d[(L=m==null?void 0:m.startIndex)!=null?L:0],K=d[b];x.setAttribute("data-virtualized-hidden","true"),x.style.setProperty("--mdc-virtualizedlist-hidden-top",`${K.start-U.start}px`)}})}isElementSelected(t){var r;return((r=this.virtualizer)==null?void 0:r.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:r,getItemKey:s}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(r-1,t)),this.selectedKey=s(t),this.scrollAnchoring&&this.selectedIndex+1===r&&(this.atBottom="yes")}}onElementStoreUpdate(t,r){if(r==="added"){let s=this.isElementSelected(t);t.tabIndex=s?0:-1,this.setAriaSetSize(t)}else r==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,r){this.syncUI(),await this.updateComplete,this.requestUpdate(),!r&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(s=>s()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let r=t.target;this.atBottom==="re-evaluate"||r.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=r.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&r>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=r-s<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var r,s,d,m;switch(t.key){case Q.HOME:{(s=(r=this.virtualizer)==null?void 0:r.scrollToIndex)==null||s.call(r,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Q.END:{let b=this.virtualizerProps.count-1;(m=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||m.call(d,b,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(b));break}case Q.ARROW_UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,r=!0){super.resetTabIndexes(t,r),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,r,s){if(this.navItems.find(m=>{var b;return((b=this.virtualizer)==null?void 0:b.indexFromElement(m))===t})===void 0){this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,r,s),this.setSelectedIndex(t)});return}super.resetTabIndexAndSetFocus(t,r,s),this.setSelectedIndex(t)}setAriaSetSize(t){var r,s;t.setAttribute("aria-setsize",`${(s=(r=this.virtualizer)==null?void 0:r.options.count)!=null?s:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=r-t-s),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,r){var s,d;(d=(s=this.virtualizer).scrollToIndex)==null||d.call(s,t,r),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var d;let t=this.virtualItems.find(({index:m})=>!this.hiddenIndexes.includes(m)),r=(d=t==null?void 0:t.start)!=null?d:0;window.getComputedStyle(this);let s=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(s=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${s+r}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}render(){var t;return _`
6343
6357
  <slot name="list-header"></slot>
6344
6358
  <div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
6345
6359
  <div part="wrapper">