1import{$ as ae,Bb as zt,Cb as an,Db as na,Eb as sa,Hb as ln,J as _e,Ka as Xo,M as K,Ma as ea,N as Gt,Nb as me,Ob as cn,Pb as oa,Qb as hn,Ra as hs,Rb as aa,S as Ht,Sb as la,T as Ei,Tb as ca,U as cs,Ub as ha,W as sn,Wb as ds,Xb as dn,Zb as Wt,_b as fi,aa as xi,ba as jt,c as Yo,d as mr,da as Ti,f as Lt,ha as $t,lb as ta,m as Jo,ma as on,oa as gr,pa as ce,qa as vr,qb as mt,ra as X,rb as ia,s as nn,sb as oi,ta as at,u as ls,v as si,w as R,wa as Zo,x as L,zb as ra}from"./chunk-MCW6KQOF.js";import{$b as qo,Aa as Mt,Ab as Kr,Ac as ke,Ba as Qr,C as zr,Cb as zo,D as it,Dc as Qo,E as Bo,Ea as dr,Eb as pr,Fb as Yr,Fc as st,G as We,Gb as Jr,Gc as ot,H as qn,Hb as pt,I as Wr,Ia as Vt,Ib as At,J as No,Ja as di,Jc as zi,Ka as rt,Kb as Dt,Lb as ts,Lc as pi,Mc as fr,N as Le,Nb as is,Oa as Jn,Ob as rs,P as Lo,Pb as It,Qb as qe,R as Qn,Rb as Qe,Rc as Nt,S as Go,Sb as ns,Tb as ve,Tc as Ko,Ub as ye,Uc as rn,V as pe,Vb as Hi,Vc as ss,Yb as Zr,Zb as Wo,Zd as os,_b as Uo,a as G,ac as ji,b as z,ba as Ho,bb as jo,bc as Ft,ca as Kn,cb as $o,cc as Fe,d as Kl,db as ee,dc as wi,e as Yl,ea as Ge,ec as fe,fa as He,fc as Xr,ga as hr,gc as en,ha as Ur,hc as tn,i as Oo,ia as qr,ib as oe,ic as $i,jb as ui,jc as ti,ka as Ue,kb as Zn,kc as ii,l as ue,la as U,lb as Ni,lc as ri,m as Jt,ma as Zt,mb as ur,mc as nt,oa as Xt,ob as Li,oc as ni,p as $r,pb as Y,pc as Ee,qa as I,qb as Xn,qc as Bt,r as Ro,rc as ft,s as ne,tb as Ie,ub as ei,ue as as,va as Yn,vb as ie,x as $,xa as Ci,xb as we,y as Ne,ya as Pi,yb as es,z as Vo,za as Tt,zb as Gi}from"./chunk-ZPQOTUNW.js";var Cl=Kl((exports,module)=>{"use strict";typeof document<"u"&&typeof navigator<"u"&&(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.lottie=t())})(exports,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,i=e.length,n;for(r=0;r<i;r+=1){n=e[r].prototype;for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t.prototype[s]=n[s])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].pause()},resume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].resume()},setRate:function(r){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(r,i){var n=0,s=[],o;switch(r){case"int16":case"uint8c":o=1;break;default:o=1.1;break}for(n=0;n<i;n+=1)s.push(o);return s}function t(r,i){return r==="float32"?new Float32Array(i):r==="int16"?new Int16Array(i):r==="uint8c"?new Uint8ClampedArray(i):e(r,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var r=createSizedArray(e.length),i,n=e.length;for(i=0;i<n;i+=1)r[i]=Math.abs(e[i]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}
vendor: 125,669 bytes, lines 1-2
1function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,r){var i,n,s,o,a,l,c,d;switch(o=Math.floor(e*6),a=e*6-o,l=r*(1-t),c=r*(1-a*t),d=r*(1-(1-a)*t),o%6){case 0:i=r,n=d,s=l;break;case 1:i=c,n=r,s=l;break;case 2:i=l,n=r,s=d;break;case 3:i=l,n=c,s=r;break;case 4:i=d,n=l,s=r;break;case 5:i=r,n=l,s=c;break;default:break}return[i,n,s]}function RGBtoHSV(e,t,r){var i=Math.max(e,t,r),n=Math.min(e,t,r),s=i-n,o,a=i===0?0:s/i,l=i/255;switch(i){case n:o=0;break;case e:o=t-r+s*(t<r?6:0),o/=6*s;break;case t:o=r-e+s*2,o/=6*s;break;case r:o=e-t+s*4,o/=6*s;break;default:break}return[o,a,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=(function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(i,n,s){return i<0&&(i=0),n<0&&(n=0),s<0&&(s=0),"#"+e[i]+e[n]+e[s]}})(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(e)}var dataManager=(function(){var e=1,t=[],r,i,n={onmessage:function(){},postMessage:function(u){r({data:u})}},s={postMessage:function(u){n.onmessage({data:u})}};function o(h){if(window.Worker&&window.Blob&&getWebWorker()){var u=new Blob(["var _workerSelf = self; self.onmessage = ",h.toString()],{type:"text/javascript"}),g=URL.createObjectURL(u);return new Worker(g)}return r=h,n}function a(){i||(i=o(function(u){function g(){function P(O,w){var T,b,S=O.length,D,A,H,q;for(b=0;b<S;b+=1)if(T=O[b],"ks"in T&&!T.completed){if(T.completed=!0,T.hasMask){var Q=T.masksProperties;for(A=Q.length,D=0;D<A;D+=1)if(Q[D].pt.k.i)C(Q[D].pt.k);else for(q=Q[D].pt.k.length,H=0;H<q;H+=1)Q[D].pt.k[H].s&&C(Q[D].pt.k[H].s[0]),Q[D].pt.k[H].e&&C(Q[D].pt.k[H].e[0])}T.ty===0?(T.layers=p(T.refId,w),P(T.layers,w)):T.ty===4?y(T.shapes):T.ty===5&&N(T)}}function m(O,w){if(O){var T=0,b=O.length;for(T=0;T<b;T+=1)O[T].t===1&&(O[T].data.layers=p(O[T].data.refId,w),P(O[T].data.layers,w))}}function v(O,w){for(var T=0,b=w.length;T<b;){if(w[T].id===O)return w[T];T+=1}return null}function p(O,w){var T=v(O,w);return T?T.layers.__used?JSON.parse(JSON.stringify(T.layers)):(T.layers.__used=!0,T.layers):null}function y(O){var w,T=O.length,b,S;for(w=T-1;w>=0;w-=1)if(O[w].ty==="sh")if(O[w].ks.k.i)C(O[w].ks.k);else for(S=O[w].ks.k.length,b=0;b<S;b+=1)O[w].ks.k[b].s&&C(O[w].ks.k[b].s[0]),O[w].ks.k[b].e&&C(O[w].ks.k[b].e[0]);else O[w].ty==="gr"&&y(O[w].it)}function C(O){var w,T=O.i.length;for(w=0;w<T;w+=1)O.i[w][0]+=O.v[w][0],O.i[w][1]+=O.v[w][1],O.o[w][0]+=O.v[w][0],O.o[w][1]+=O.v[w][1]}function E(O,w){var T=w?w.split("."):[100,100,100];return O[0]>T[0]?!0:T[0]>O[0]?!1:O[1]>T[1]?!0:T[1]>O[1]?!1:O[2]>T[2]?!0:T[2]>O[2]?!1:null}var x=(function(){var O=[4,4,14];function w(b){var S=b.t.d;b.t.d={k:[{s:S,t:0}]}}function T(b){var S,D=b.length;for(S=0;S<D;S+=1)b[S].ty===5&&w(b[S])}return function(b){if(E(O,b.v)&&(T(b.layers),b.assets)){var S,D=b.assets.length;for(S=0;S<D;S+=1)b.assets[S].layers&&T(b.assets[S].layers)}}})(),M=(function(){var O=[4,7,99];return function(w){if(w.chars&&!E(O,w.v)){var T,b=w.chars.length;for(T=0;T<b;T+=1){var S=w.chars[T];S.data&&S.data.shapes&&(y(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.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}},w.chars[T].t||(S.data.shapes.push({ty:"no"}),S.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"})))}}}})(),F=(function(){var O=[5,7,15];function w(b){var S=b.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function T(b){var S,D=b.length;for(S=0;S<D;S+=1)b[S].ty===5&&w(b[S])}return function(b){if(E(O,b.v)&&(T(b.layers),b.assets)){var S,D=b.assets.length;for(S=0;S<D;S+=1)b.assets[S].layers&&T(b.assets[S].layers)}}})(),B=(function(){var O=[4,1,9];function w(b){var S,D=b.length,A,H;for(S=0;S<D;S+=1)if(b[S].ty==="gr")w(b[S].it);else if(b[S].ty==="fl"||b[S].ty==="st")if(b[S].c.k&&b[S].c.k[0].i)for(H=b[S].c.k.length,A=0;A<H;A+=1)b[S].c.k[A].s&&(b[S].c.k[A].s[0]/=255,b[S].c.k[A].s[1]/=255,b[S].c.k[A].s[2]/=255,b[S].c.k[A].s[3]/=255),b[S].c.k[A].e&&(b[S].c.k[A].e[0]/=255,b[S].c.k[A].e[1]/=255,b[S].c.k[A].e[2]/=255,b[S].c.k[A].e[3]/=255);else b[S].c.k[0]/=255,b[S].c.k[1]/=255,b[S].c.k[2]/=255,b[S].c.k[3]/=255}function T(b){var S,D=b.length;for(S=0;S<D;S+=1)b[S].ty===4&&w(b[S].shapes)}return function(b){if(E(O,b.v)&&(T(b.layers),b.assets)){var S,D=b.assets.length;for(S=0;S<D;S+=1)b.assets[S].layers&&T(b.assets[S].layers)}}})(),V=(function(){var O=[4,4,18];function w(b){var S,D=b.length,A,H;for(S=D-1;S>=0;S-=1)if(b[S].ty==="sh")if(b[S].ks.k.i)b[S].ks.k.c=b[S].closed;else for(H=b[S].ks.k.length,A=0;A<H;A+=1)b[S].ks.k[A].s&&(b[S].ks.k[A].s[0].c=b[S].closed),b[S].ks.k[A].e&&(b[S].ks.k[A].e[0].c=b[S].closed);else b[S].ty==="gr"&&w(b[S].it)}function T(b){var S,D,A=b.length,H,q,Q,J;for(D=0;D<A;D+=1){if(S=b[D],S.hasMask){var Z=S.masksProperties;for(q=Z.length,H=0;H<q;H+=1)if(Z[H].pt.k.i)Z[H].pt.k.c=Z[H].cl;else for(J=Z[H].pt.k.length,Q=0;Q<J;Q+=1)Z[H].pt.k[Q].s&&(Z[H].pt.k[Q].s[0].c=Z[H].cl),Z[H].pt.k[Q].e&&(Z[H].pt.k[Q].e[0].c=Z[H].cl)}S.ty===4&&w(S.shapes)}}return function(b){if(E(O,b.v)&&(T(b.layers),b.assets)){var S,D=b.assets.length;for(S=0;S<D;S+=1)b.assets[S].layers&&T(b.assets[S].layers)}}})();function k(O){O.__complete||(B(O),x(O),M(O),F(O),V(O),P(O.layers,O.assets),m(O.chars,O.assets),O.__complete=!0)}function N(O){O.t.a.length===0&&"m"in O.t.p}var j={};return j.completeData=k,j.checkColors=B,j.checkChars=M,j.checkPathProperties=F,j.checkShapes=V,j.completeLayers=P,j}if(s.dataManager||(s.dataManager=g()),s.assetLoader||(s.assetLoader=(function(){function P(v){var p=v.getResponseHeader("content-type");return p&&v.responseType==="json"&&p.indexOf("json")!==-1||v.response&&_typeof$5(v.response)==="object"?v.response:v.response&&typeof v.response=="string"?JSON.parse(v.response):v.responseText?JSON.parse(v.responseText):null}function m(v,p,y,C){var E,x=new XMLHttpRequest;try{x.responseType="json"}catch{}x.onreadystatechange=function(){if(x.readyState===4)if(x.status===200)E=P(x),y(E);else try{E=P(x),y(E)}catch(M){C&&C(M)}};try{x.open(["G","E","T"].join(""),v,!0)}catch{x.open(["G","E","T"].join(""),p+"/"+v,!0)}x.send()}return{load:m}})()),u.data.type==="loadAnimation")s.assetLoader.load(u.data.path,u.data.fullPath,function(P){s.dataManager.completeData(P),s.postMessage({id:u.data.id,payload:P,status:"success"})},function(){s.postMessage({id:u.data.id,status:"error"})});else if(u.data.type==="complete"){var f=u.data.animation;s.dataManager.completeData(f),s.postMessage({id:u.data.id,payload:f,status:"success"})}else u.data.type==="loadData"&&s.assetLoader.load(u.data.path,u.data.fullPath,function(P){s.postMessage({id:u.data.id,payload:P,status:"success"})},function(){s.postMessage({id:u.data.id,status:"error"})})}),i.onmessage=function(h){var u=h.data,g=u.id,f=t[g];t[g]=null,u.status==="success"?f.onComplete(u.payload):f.onError&&f.onError()})}function l(h,u){e+=1;var g="processId_"+e;return t[g]={onComplete:h,onError:u},g}function c(h,u,g){a();var f=l(u,g);i.postMessage({type:"loadAnimation",path:h,fullPath:window.location.origin+window.location.pathname,id:f})}function d(h,u,g){a();var f=l(u,g);i.postMessage({type:"loadData",path:h,fullPath:window.location.origin+window.location.pathname,id:f})}function _(h,u,g){a();var f=l(u,g);i.postMessage({type:"complete",animation:h,id:f})}return{loadAnimation:c,loadData:d,completeAnimation:_}})(),ImagePreloader=(function(){var e=(function(){var m=createTag("canvas");m.width=1,m.height=1;var v=m.getContext("2d");return v.fillStyle="rgba(0,0,0,0)",v.fillRect(0,0,1,1),m})();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(m,v,p){var y="";if(m.e)y=m.p;else if(v){var C=m.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),y=v+C}else y=p,y+=m.u?m.u:"",y+=m.p;return y}function n(m){var v=0,p=setInterval((function(){var y=m.getBBox();(y.width||v>500)&&(this._imageLoaded(),clearInterval(p)),v+=1}).bind(this),50)}function s(m){var v=i(m,this.assetsPath,this.path),p=createNS("image");isSafari?this.testImageLoaded(p):p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),p.setAttributeNS("http://www.w3.org/1999/xlink","href",v),this._elementHelper.append?this._elementHelper.append(p):this._elementHelper.appendChild(p);var y={img:p,assetData:m};return y}function o(m){var v=i(m,this.assetsPath,this.path),p=createTag("img");p.crossOrigin="anonymous",p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),p.src=v;var y={img:p,assetData:m};return y}function a(m){var v={assetData:m},p=i(m,this.assetsPath,this.path);return dataManager.loadData(p,(function(y){v.img=y,this._footageLoaded()}).bind(this),(function(){v.img={},this._footageLoaded()}).bind(this)),v}function l(m,v){this.imagesLoadedCb=v;var p,y=m.length;for(p=0;p<y;p+=1)m[p].layers||(!m[p].t||m[p].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(m[p]))):m[p].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(m[p]))))}function c(m){this.path=m||""}function d(m){this.assetsPath=m||""}function _(m){for(var v=0,p=this.images.length;v<p;){if(this.images[v].assetData===m)return this.images[v].img;v+=1}return null}function h(){this.imagesLoadedCb=null,this.images.length=0}function u(){return this.totalImages===this.loadedAssets}function g(){return this.totalFootages===this.loadedFootagesCount}function f(m,v){m==="svg"?(this._elementHelper=v,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function P(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.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 P.prototype={loadAssets:l,setAssetsPath:d,setPath:c,loadedImages:u,loadedFootages:g,destroy:h,getAsset:_,createImgData:o,createImageData:s,imageLoaded:t,footageLoaded:r,setCacheType:f},P})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var i=this._cbs[t],n=0;n<i.length;n+=1)i[n](r)},addEventListener:function(t,r){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(r),(function(){this.removeEventListener(t,r)}).bind(this)},removeEventListener:function(t,r){if(!r)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,n=this._cbs[t].length;i<n;)this._cbs[t][i]===r&&(this._cbs[t].splice(i,1),i-=1,n-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var r=t.split(`\r 2`),i={},n,s=0,o=0;o<r.length;o+=1)n=r[o].split(":"),n.length===2&&(i[n[0]]=n[1].trim(),s+=1);if(s===0)throw new Error;return i}return function(t){for(var r=[],i=0;i<t.length;i+=1){var n=t[i],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(t[i].cm)}catch{try{s.payload=e(t[i].cm)}catch{s.payload={name:t[i].cm}}}r.push(s)}return r}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var i=0,n=this.compositions.length;i<n;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,r){renderers[t]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";n==="false"?r.loop=!1:n==="true"?r.loop=!0:n!==""&&(r.loop=parseInt(n,10));var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;r.autoplay=s!=="false",r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var o=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";o==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,r,i=t.length,n=e.layers,s,o=n.length;for(s=0;s<o;s+=1)for(r=0;r<i;){if(t[r].id===n[s].id){t[r]=n[s];break}r+=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(i=e.assets.length,r=0;r<i;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if(t=this.markers[r],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var n=this.getMarkerData(e);n&&this.goToAndStop(n.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var n=this.getMarkerData(e);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,t=0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,r)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],r=0,i=0,n=0,s=!0,o=!1;function a(w){for(var T=0,b=w.target;T<i;)t[T].animation===b&&(t.splice(T,1),T-=1,i-=1,b.isPaused||_()),T+=1}function l(w,T){if(!w)return null;for(var b=0;b<i;){if(t[b].elem===w&&t[b].elem!==null)return t[b].animation;b+=1}var S=new AnimationItem;return h(S,w),S.setData(w,T),S}function c(){var w,T=t.length,b=[];for(w=0;w<T;w+=1)b.push(t[w].animation);return b}function d(){n+=1,B()}function _(){n-=1}function h(w,T){w.addEventListener("destroy",a),w.addEventListener("_active",d),w.addEventListener("_idle",_),t.push({elem:T,animation:w}),i+=1}function u(w){var T=new AnimationItem;return h(T,null),T.setParams(w),T}function g(w,T){var b;for(b=0;b<i;b+=1)t[b].animation.setSpeed(w,T)}function f(w,T){var b;for(b=0;b<i;b+=1)t[b].animation.setDirection(w,T)}function P(w){var T;for(T=0;T<i;T+=1)t[T].animation.play(w)}function m(w){var T=w-r,b;for(b=0;b<i;b+=1)t[b].animation.advanceTime(T);r=w,n&&!o?window.requestAnimationFrame(m):s=!0}function v(w){r=w,window.requestAnimationFrame(m)}function p(w){var T;for(T=0;T<i;T+=1)t[T].animation.pause(w)}function y(w,T,b){var S;for(S=0;S<i;S+=1)t[S].animation.goToAndStop(w,T,b)}function C(w){var T;for(T=0;T<i;T+=1)t[T].animation.stop(w)}function E(w){var T;for(T=0;T<i;T+=1)t[T].animation.togglePause(w)}function x(w){var T;for(T=i-1;T>=0;T-=1)t[T].animation.destroy(w)}function M(w,T,b){var S=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),D,A=S.length;for(D=0;D<A;D+=1)b&&S[D].setAttribute("data-bm-type",b),l(S[D],w);if(T&&A===0){b||(b="svg");var H=document.getElementsByTagName("body")[0];H.innerText="";var q=createTag("div");q.style.width="100%",q.style.height="100%",q.setAttribute("data-bm-type",b),H.appendChild(q),l(q,w)}}function F(){var w;for(w=0;w<i;w+=1)t[w].animation.resize()}function B(){!o&&n&&s&&(window.requestAnimationFrame(v),s=!1)}function V(){o=!0}function k(){o=!1,B()}function N(w,T){var b;for(b=0;b<i;b+=1)t[b].animation.setVolume(w,T)}function j(w){var T;for(T=0;T<i;T+=1)t[T].animation.mute(w)}function O(w){var T;for(T=0;T<i;T+=1)t[T].animation.unmute(w)}return e.registerAnimation=l,e.loadAnimation=u,e.setSpeed=g,e.setDirection=f,e.play=P,e.pause=p,e.stop=C,e.togglePause=E,e.searchAnimations=M,e.resize=F,e.goToAndStop=y,e.destroy=x,e.freeze=V,e.unfreeze=k,e.setVolume=N,e.mute=j,e.unmute=O,e.getRegisteredAnimations=c,e})(),BezierFactory=(function(){var e={};e.getBezierEasing=r;var t={};function r(v,p,y,C,E){var x=E||("bez_"+v+"_"+p+"_"+y+"_"+C).replace(/\./g,"p");if(t[x])return t[x];var M=new m([v,p,y,C]);return t[x]=M,M}var i=4,n=.001,s=1e-7,o=10,a=11,l=1/(a-1),c=typeof Float32Array=="function";function d(v,p){return 1-3*p+3*v}function _(v,p){return 3*p-6*v}function h(v){return 3*v}function u(v,p,y){return((d(p,y)*v+_(p,y))*v+h(p))*v}function g(v,p,y){return 3*d(p,y)*v*v+2*_(p,y)*v+h(p)}function f(v,p,y,C,E){var x,M,F=0;do M=p+(y-p)/2,x=u(M,C,E)-v,x>0?y=M:p=M;while(Math.abs(x)>s&&++F<o);return M}function P(v,p,y,C){for(var E=0;E<i;++E){var x=g(p,y,C);if(x===0)return p;var M=u(p,y,C)-v;p-=M/x}return p}function m(v){this._p=v,this._mSampleValues=c?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return m.prototype={get:function(p){var y=this._p[0],C=this._p[1],E=this._p[2],x=this._p[3];return this._precomputed||this._precompute(),y===C&&E===x?p:p===0?0:p===1?1:u(this._getTForX(p),C,x)},_precompute:function(){var p=this._p[0],y=this._p[1],C=this._p[2],E=this._p[3];this._precomputed=!0,(p!==y||C!==E)&&this._calcSampleValues()},_calcSampleValues:function(){for(var p=this._p[0],y=this._p[2],C=0;C<a;++C)this._mSampleValues[C]=u(C*l,p,y)},_getTForX:function(p){for(var y=this._p[0],C=this._p[2],E=this._mSampleValues,x=0,M=1,F=a-1;M!==F&&E[M]<=p;++M)x+=l;--M;var B=(p-E[M])/(E[M+1]-E[M]),V=x+B*l,k=g(V,y,C);return k>=n?P(p,V,y,C):k===0?V:f(p,x,x+l,y,C)}},e})(),pooling=(function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}})(),poolFactory=(function(){return function(e,t,r){var i=0,n=e,s=createSizedArray(n),o={newElement:a,release:l};function a(){var c;return i?(i-=1,c=s[i]):c=t(),c}function l(c){i===n&&(s=pooling.double(s),n*=2),r&&r(c),s[i]=c,i+=1}return o}})(),bezierLengthPool=(function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)})(),segmentsLengthPool=(function(){function e(){return{lengths:[],totalLength:0}}function t(r){var i,n=r.lengths.length;for(i=0;i<n;i+=1)bezierLengthPool.release(r.lengths[i]);r.lengths.length=0}return poolFactory(8,e,t)})();function bezFunction(){var e=Math;function t(h,u,g,f,P,m){var v=h*f+u*P+g*m-P*f-m*h-g*u;return v>-.001&&v<.001}function r(h,u,g,f,P,m,v,p,y){if(g===0&&m===0&&y===0)return t(h,u,f,P,v,p);var C=e.sqrt(e.pow(f-h,2)+e.pow(P-u,2)+e.pow(m-g,2)),E=e.sqrt(e.pow(v-h,2)+e.pow(p-u,2)+e.pow(y-g,2)),x=e.sqrt(e.pow(v-f,2)+e.pow(p-P,2)+e.pow(y-m,2)),M;return C>E?C>x?M=C-E-x:M=x-E-C:x>E?M=x-E-C:M=E-C-x,M>-1e-4&&M<1e-4}var i=(function(){return function(h,u,g,f){var P=getDefaultCurveSegments(),m,v,p,y,C,E=0,x,M=[],F=[],B=bezierLengthPool.newElement();for(p=g.length,m=0;m<P;m+=1){for(C=m/(P-1),x=0,v=0;v<p;v+=1)y=bmPow(1-C,3)*h[v]+3*bmPow(1-C,2)*C*g[v]+3*(1-C)*bmPow(C,2)*f[v]+bmPow(C,3)*u[v],M[v]=y,F[v]!==null&&(x+=bmPow(M[v]-F[v],2)),F[v]=M[v];x&&(x=bmSqrt(x),E+=x),B.percents[m]=C,B.lengths[m]=E}return B.addedLength=E,B}})();function n(h){var u=segmentsLengthPool.newElement(),g=h.c,f=h.v,P=h.o,m=h.i,v,p=h._length,y=u.lengths,C=0;for(v=0;v<p-1;v+=1)y[v]=i(f[v],f[v+1],P[v],m[v+1]),C+=y[v].addedLength;return g&&p&&(y[v]=i(f[v],f[0],P[v],m[0]),C+=y[v].addedLength),u.totalLength=C,u}function s(h){this.segmentLength=0,this.points=new Array(h)}function o(h,u){this.partialLength=h,this.point=u}var a=(function(){var h={};return function(u,g,f,P){var m=(u[0]+"_"+u[1]+"_"+g[0]+"_"+g[1]+"_"+f[0]+"_"+f[1]+"_"+P[0]+"_"+P[1]).replace(/\./g,"p");if(!h[m]){var v=getDefaultCurveSegments(),p,y,C,E,x,M=0,F,B,V=null;u.length===2&&(u[0]!==g[0]||u[1]!==g[1])&&t(u[0],u[1],g[0],g[1],u[0]+f[0],u[1]+f[1])&&t(u[0],u[1],g[0],g[1],g[0]+P[0],g[1]+P[1])&&(v=2);var k=new s(v);for(C=f.length,p=0;p<v;p+=1){for(B=createSizedArray(C),x=p/(v-1),F=0,y=0;y<C;y+=1)E=bmPow(1-x,3)*u[y]+3*bmPow(1-x,2)*x*(u[y]+f[y])+3*(1-x)*bmPow(x,2)*(g[y]+P[y])+bmPow(x,3)*g[y],B[y]=E,V!==null&&(F+=bmPow(B[y]-V[y],2));F=bmSqrt(F),M+=F,k.points[p]=new o(F,B),V=B}k.segmentLength=M,h[m]=k}return h[m]}})();function l(h,u){var g=u.percents,f=u.lengths,P=g.length,m=bmFloor((P-1)*h),v=h*u.addedLength,p=0;if(m===P-1||m===0||v===f[m])return g[m];for(var y=f[m]>v?-1:1,C=!0;C;)if(f[m]<=v&&f[m+1]>v?(p=(v-f[m])/(f[m+1]-f[m]),C=!1):m+=y,m<0||m>=P-1){if(m===P-1)return g[m];C=!1}return g[m]+(g[m+1]-g[m])*p}function c(h,u,g,f,P,m){var v=l(P,m),p=1-v,y=e.round((p*p*p*h[0]+(v*p*p+p*v*p+p*p*v)*g[0]+(v*v*p+p*v*v+v*p*v)*f[0]+v*v*v*u[0])*1e3)/1e3,C=e.round((p*p*p*h[1]+(v*p*p+p*v*p+p*p*v)*g[1]+(v*v*p+p*v*v+v*p*v)*f[1]+v*v*v*u[1])*1e3)/1e3;return[y,C]}var d=createTypedArray("float32",8);function _(h,u,g,f,P,m,v){P<0?P=0:P>1&&(P=1);var p=l(P,v);m=m>1?1:m;var y=l(m,v),C,E=h.length,x=1-p,M=1-y,F=x*x*x,B=p*x*x*3,V=p*p*x*3,k=p*p*p,N=x*x*M,j=p*x*M+x*p*M+x*x*y,O=p*p*M+x*p*y+p*x*y,w=p*p*y,T=x*M*M,b=p*M*M+x*y*M+x*M*y,S=p*y*M+x*y*y+p*M*y,D=p*y*y,A=M*M*M,H=y*M*M+M*y*M+M*M*y,q=y*y*M+M*y*y+y*M*y,Q=y*y*y;for(C=0;C<E;C+=1)d[C*4]=e.round((F*h[C]+B*g[C]+V*f[C]+k*u[C])*1e3)/1e3,d[C*4+1]=e.round((N*h[C]+j*g[C]+O*f[C]+w*u[C])*1e3)/1e3,d[C*4+2]=e.round((T*h[C]+b*g[C]+S*f[C]+D*u[C])*1e3)/1e3,d[C*4+3]=e.round((A*h[C]+H*g[C]+q*f[C]+Q*u[C])*1e3)/1e3;return d}return{getSegmentsLength:n,getNewSegment:_,getPointInSegment:c,buildBezierData:a,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var n=t.lastIndex,s=n,o=this.keyframes.length-1,a=!0,l,c,d;a;){if(l=this.keyframes[s],c=this.keyframes[s+1],s===o-1&&e>=c.t-r){l.h&&(l=c),n=0;break}if(c.t-r>e){n=s;break}s<o-1?s+=1:(n=0,a=!1)}d=this.keyframesMetadata[s]||{};var _,h,u,g,f,P,m=c.t-r,v=l.t-r,p;if(l.to){d.bezierData||(d.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var y=d.bezierData;if(e>=m||e<v){var C=e>=m?y.points.length-1:0;for(h=y.points[C].point.length,_=0;_<h;_+=1)i[_]=y.points[C].point[_]}else{d.__fnct?P=d.__fnct:(P=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,d.__fnct=P),u=P((e-v)/(m-v));var E=y.segmentLength*u,x,M=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastAddedLength:0;for(f=t.lastFrame<e&&t._lastKeyframeIndex===s?t._lastPoint:0,a=!0,g=y.points.length;a;){if(M+=y.points[f].partialLength,E===0||u===0||f===y.points.length-1){for(h=y.points[f].point.length,_=0;_<h;_+=1)i[_]=y.points[f].point[_];break}else if(E>=M&&E<M+y.points[f+1].partialLength){for(x=(E-M)/y.points[f+1].partialLength,h=y.points[f].point.length,_=0;_<h;_+=1)i[_]=y.points[f].point[_]+(y.points[f+1].point[_]-y.points[f].point[_])*x;break}f<g-1?f+=1:a=!1}t._lastPoint=f,t._lastAddedLength=M-y.points[f].partialLength,t._lastKeyframeIndex=s}}else{var F,B,V,k,N;if(o=l.s.length,p=c.s||l.e,this.sh&&l.h!==1)if(e>=m)i[0]=p[0],i[1]=p[1],i[2]=p[2];else if(e<=v)i[0]=l.s[0],i[1]=l.s[1],i[2]=l.s[2];else{var j=createQuaternion(l.s),O=createQuaternion(p),w=(e-v)/(m-v);quaternionToEuler(i,slerp(j,O,w))}else for(s=0;s<o;s+=1)l.h!==1&&(e>=m?u=1:e<v?u=0:(l.o.x.constructor===Array?(d.__fnct||(d.__fnct=[]),d.__fnct[s]?P=d.__fnct[s]:(F=l.o.x[s]===void 0?l.o.x[0]:l.o.x[s],B=l.o.y[s]===void 0?l.o.y[0]:l.o.y[s],V=l.i.x[s]===void 0?l.i.x[0]:l.i.x[s],k=l.i.y[s]===void 0?l.i.y[0]:l.i.y[s],P=BezierFactory.getBezierEasing(F,B,V,k).get,d.__fnct[s]=P)):d.__fnct?P=d.__fnct:(F=l.o.x,B=l.o.y,V=l.i.x,k=l.i.y,P=BezierFactory.getBezierEasing(F,B,V,k).get,l.keyframeMetadata=P),u=P((e-v)/(m-v)))),p=c.s||l.e,N=l.h===1?l.s[s]:l.s[s]+(p[s]-l.s[s])*u,this.propType==="multidimensional"?i[s]=N:i=N}return t.lastIndex=n,i}function slerp(e,t,r){var i=[],n=e[0],s=e[1],o=e[2],a=e[3],l=t[0],c=t[1],d=t[2],_=t[3],h,u,g,f,P;return u=n*l+s*c+o*d+a*_,u<0&&(u=-u,l=-l,c=-c,d=-d,_=-_),1-u>1e-6?(h=Math.acos(u),g=Math.sin(h),f=Math.sin((1-r)*h)/g,P=Math.sin(r*h)/g):(f=1-r,P=r),i[0]=f*n+P*l,i[1]=f*s+P*c,i[2]=f*o+P*d,i[3]=f*a+P*_,i}function quaternionToEuler(e,t){var r=t[0],i=t[1],n=t[2],s=t[3],o=Math.atan2(2*i*s-2*r*n,1-2*i*i-2*n*n),a=Math.asin(2*r*i+2*n*s),l=Math.atan2(2*r*s-2*i*n,1-2*r*r-2*n*n);e[0]=o/degToRads,e[1]=a/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,n=Math.cos(t/2),s=Math.cos(r/2),o=Math.cos(i/2),a=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(i/2),d=n*s*o-a*l*c,_=a*l*o+n*s*c,h=a*s*o+n*l*c,u=n*l*o-a*s*c;return[_,h,u,d]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,i){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,i){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n,s=t.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),n=0;n<s;n+=1)this.v[n]=t.k[n]*this.mult,this.pv[n]=t.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,i){this.propType="multidimensional";var n,s=t.k.length,o,a,l,c;for(n=0;n<s-1;n+=1)t.k[n].to&&t.k[n].s&&t.k[n+1]&&t.k[n+1].s&&(o=t.k[n].s,a=t.k[n+1].s,l=t.k[n].to,c=t.k[n].ti,(o.length===2&&!(o[0]===a[0]&&o[1]===a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+l[0],o[1]+l[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+c[0],a[1]+c[1])||o.length===3&&!(o[0]===a[0]&&o[1]===a[1]&&o[2]===a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+l[0],o[1]+l[1],o[2]+l[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+c[0],a[1]+c[1],a[2]+c[2]))&&(t.k[n].to=null,t.k[n].ti=null),o[0]===a[0]&&o[1]===a[1]&&l[0]===0&&l[1]===0&&c[0]===0&&c[1]===0&&(o.length===2||o[2]===a[2]&&l[2]===0&&c[2]===0)&&(t.k[n].to=null,t.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var d=t.k[0].s.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),n=0;n<d;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",d)},this.addEffect=addEffect}var PropertyFactory=(function(){function e(r,i,n,s,o){i.sid&&(i=r.globalData.slotManager.getProp(i));var a;if(!i.k.length)a=new ValueProperty(r,i,s,o);else if(typeof i.k[0]=="number")a=new MultiDimensionalProperty(r,i,s,o);else switch(n){case 0:a=new KeyframedValueProperty(r,i,s,o);break;case 1:a=new KeyframedMultidimensionalProperty(r,i,s,o);break;default:break}return a.effectsSequence.length&&o.addDynamicProperty(a),a}var t={getProp:e};return t})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)})();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,i,n){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[];break}(!s[i]||s[i]&&!n)&&(s[i]=pointPool.newElement()),s[i][0]=e,s[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,n,s,o,a){this.setXYAt(e,t,"v",o,a),this.setXYAt(r,i,"o",o,a),this.setXYAt(n,s,"i",o,a)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,n=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var s=this._length-1,o=this._length,a;for(a=n;a<o;a+=1)e.setTripleAt(t[s][0],t[s][1],i[s][0],i[s][1],r[s][0],r[s][1],a,!1),s-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function e(){return new ShapePath}function t(n){var s=n._length,o;for(o=0;o<s;o+=1)pointPool.release(n.v[o]),pointPool.release(n.i[o]),pointPool.release(n.o[o]),n.v[o]=null,n.i[o]=null,n.o[o]=null;n._length=0,n.c=!1}function r(n){var s=i.newElement(),o,a=n._length===void 0?n.v.length:n._length;for(s.setLength(a),s.c=n.c,o=0;o<a;o+=1)s.setTripleAt(n.v[o][0],n.v[o][1],n.o[o][0],n.o[o][1],n.i[o][0],n.i[o][1],o);return s}var i=poolFactory(4,e,t);return i.clone=r,i})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(function(){var e={newShapeCollection:n,release:s},t=0,r=4,i=createSizedArray(r);function n(){var o;return t?(t-=1,o=i[t]):o=new ShapeCollection,o}function s(o){var a,l=o._length;for(a=0;a<l;a+=1)shapePool.release(o.shapes[a]);o._length=0,t===r&&(i=pooling.double(i),r*=2),i[t]=o,t+=1}return e})(),ShapePropertyFactory=(function(){var e=-999999;function t(m,v,p){var y=p.lastIndex,C,E,x,M,F,B,V,k,N,j=this.keyframes;if(m<j[0].t-this.offsetTime)C=j[0].s[0],x=!0,y=0;else if(m>=j[j.length-1].t-this.offsetTime)C=j[j.length-1].s?j[j.length-1].s[0]:j[j.length-2].e[0],x=!0;else{for(var O=y,w=j.length-1,T=!0,b,S,D;T&&(b=j[O],S=j[O+1],!(S.t-this.offsetTime>m));)O<w-1?O+=1:T=!1;if(D=this.keyframesMetadata[O]||{},x=b.h===1,y=O,!x){if(m>=S.t-this.offsetTime)k=1;else if(m<b.t-this.offsetTime)k=0;else{var A;D.__fnct?A=D.__fnct:(A=BezierFactory.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y).get,D.__fnct=A),k=A((m-(b.t-this.offsetTime))/(S.t-this.offsetTime-(b.t-this.offsetTime)))}E=S.s?S.s[0]:b.e[0]}C=b.s[0]}for(B=v._length,V=C.i[0].length,p.lastIndex=y,M=0;M<B;M+=1)for(F=0;F<V;F+=1)N=x?C.i[M][F]:C.i[M][F]+(E.i[M][F]-C.i[M][F])*k,v.i[M][F]=N,N=x?C.o[M][F]:C.o[M][F]+(E.o[M][F]-C.o[M][F])*k,v.o[M][F]=N,N=x?C.v[M][F]:C.v[M][F]+(E.v[M][F]-C.v[M][F])*k,v.v[M][F]=N}function r(){var m=this.comp.renderedFrame-this.offsetTime,v=this.keyframes[0].t-this.offsetTime,p=this.keyframes[this.keyframes.length-1].t-this.offsetTime,y=this._caching.lastFrame;return y!==e&&(y<v&&m<v||y>p&&m>p)||(this._caching.lastIndex=y<m?this._caching.lastIndex:0,this.interpolateShape(m,this.pv,this._caching)),this._caching.lastFrame=m,this.pv}function i(){this.paths=this.localShapeCollection}function n(m,v){if(m._length!==v._length||m.c!==v.c)return!1;var p,y=m._length;for(p=0;p<y;p+=1)if(m.v[p][0]!==v.v[p][0]||m.v[p][1]!==v.v[p][1]||m.o[p][0]!==v.o[p][0]||m.o[p][1]!==v.o[p][1]||m.i[p][0]!==v.i[p][0]||m.i[p][1]!==v.i[p][1])return!1;return!0}function s(m){n(this.v,m)||(this.v=shapePool.clone(m),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){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 m;this.kf?m=this.pv:this.data.ks?m=this.data.ks.k:m=this.data.pt.k;var v,p=this.effectsSequence.length;for(v=0;v<p;v+=1)m=this.effectsSequence[v](m);this.setVValue(m),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function a(m,v,p){this.propType="shape",this.comp=m.comp,this.container=m,this.elem=m,this.data=v,this.k=!1,this.kf=!1,this._mdf=!1;var y=p===3?v.pt.k:v.ks.k;this.v=shapePool.clone(y),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function l(m){this.effectsSequence.push(m),this.container.addDynamicProperty(this)}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=s,a.prototype.addEffect=l;function c(m,v,p){this.propType="shape",this.comp=m.comp,this.elem=m,this.container=m,this.offsetTime=m.data.st,this.keyframes=p===3?v.pt.k:v.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var y=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,y),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}c.prototype.getValue=o,c.prototype.interpolateShape=t,c.prototype.setVValue=s,c.prototype.addEffect=l;var d=(function(){var m=roundCorner;function v(p,y){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=y.d,this.elem=p,this.comp=p.comp,this.frameId=-1,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,y.p,1,0,this),this.s=PropertyFactory.getProp(p,y.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return v.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var y=this.p.v[0],C=this.p.v[1],E=this.s.v[0]/2,x=this.s.v[1]/2,M=this.d!==3,F=this.v;F.v[0][0]=y,F.v[0][1]=C-x,F.v[1][0]=M?y+E:y-E,F.v[1][1]=C,F.v[2][0]=y,F.v[2][1]=C+x,F.v[3][0]=M?y-E:y+E,F.v[3][1]=C,F.i[0][0]=M?y-E*m:y+E*m,F.i[0][1]=C-x,F.i[1][0]=M?y+E:y-E,F.i[1][1]=C-x*m,F.i[2][0]=M?y+E*m:y-E*m,F.i[2][1]=C+x,F.i[3][0]=M?y-E:y+E,F.i[3][1]=C+x*m,F.o[0][0]=M?y+E*m:y-E*m,F.o[0][1]=C-x,F.o[1][0]=M?y+E:y-E,F.o[1][1]=C+x*m,F.o[2][0]=M?y-E*m:y+E*m,F.o[2][1]=C+x,F.o[3][0]=M?y-E:y+E,F.o[3][1]=C-x*m}},extendPrototype([DynamicPropertyContainer],v),v})(),_=(function(){function m(v,p){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=v,this.comp=v.comp,this.data=p,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(v),p.sy===1?(this.ir=PropertyFactory.getProp(v,p.ir,0,0,this),this.is=PropertyFactory.getProp(v,p.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(v,p.pt,0,0,this),this.p=PropertyFactory.getProp(v,p.p,1,0,this),this.r=PropertyFactory.getProp(v,p.r,0,degToRads,this),this.or=PropertyFactory.getProp(v,p.or,0,0,this),this.os=PropertyFactory.getProp(v,p.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return m.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var p=Math.floor(this.pt.v)*2,y=Math.PI*2/p,C=!0,E=this.or.v,x=this.ir.v,M=this.os.v,F=this.is.v,B=2*Math.PI*E/(p*2),V=2*Math.PI*x/(p*2),k,N,j,O,w=-Math.PI/2;w+=this.r.v;var T=this.data.d===3?-1:1;for(this.v._length=0,k=0;k<p;k+=1){N=C?E:x,j=C?M:F,O=C?B:V;var b=N*Math.cos(w),S=N*Math.sin(w),D=b===0&&S===0?0:S/Math.sqrt(b*b+S*S),A=b===0&&S===0?0:-b/Math.sqrt(b*b+S*S);b+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(b,S,b-D*O*j*T,S-A*O*j*T,b+D*O*j*T,S+A*O*j*T,k,!0),C=!C,w+=y*T}},convertPolygonToPath:function(){var p=Math.floor(this.pt.v),y=Math.PI*2/p,C=this.or.v,E=this.os.v,x=2*Math.PI*C/(p*4),M,F=-Math.PI*.5,B=this.data.d===3?-1:1;for(F+=this.r.v,this.v._length=0,M=0;M<p;M+=1){var V=C*Math.cos(F),k=C*Math.sin(F),N=V===0&&k===0?0:k/Math.sqrt(V*V+k*k),j=V===0&&k===0?0:-V/Math.sqrt(V*V+k*k);V+=+this.p.v[0],k+=+this.p.v[1],this.v.setTripleAt(V,k,V-N*x*E*B,k-j*x*E*B,V+N*x*E*B,k+j*x*E*B,M,!0),F+=y*B}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],m),m})(),h=(function(){function m(v,p){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=v,this.comp=v.comp,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(v),this.p=PropertyFactory.getProp(v,p.p,1,0,this),this.s=PropertyFactory.getProp(v,p.s,1,0,this),this.r=PropertyFactory.getProp(v,p.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return m.prototype={convertRectToPath:function(){var p=this.p.v[0],y=this.p.v[1],C=this.s.v[0]/2,E=this.s.v[1]/2,x=bmMin(C,E,this.r.v),M=x*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(p+C,y-E+x,p+C,y-E+x,p+C,y-E+M,0,!0),this.v.setTripleAt(p+C,y+E-x,p+C,y+E-M,p+C,y+E-x,1,!0),x!==0?(this.v.setTripleAt(p+C-x,y+E,p+C-x,y+E,p+C-M,y+E,2,!0),this.v.setTripleAt(p-C+x,y+E,p-C+M,y+E,p-C+x,y+E,3,!0),this.v.setTripleAt(p-C,y+E-x,p-C,y+E-x,p-C,y+E-M,4,!0),this.v.setTripleAt(p-C,y-E+x,p-C,y-E+M,p-C,y-E+x,5,!0),this.v.setTripleAt(p-C+x,y-E,p-C+x,y-E,p-C+M,y-E,6,!0),this.v.setTripleAt(p+C-x,y-E,p+C-M,y-E,p+C-x,y-E,7,!0)):(this.v.setTripleAt(p-C,y+E,p-C+M,y+E,p-C,y+E,2),this.v.setTripleAt(p-C,y-E,p-C,y-E+M,p-C,y-E,3))):(this.v.setTripleAt(p+C,y-E+x,p+C,y-E+M,p+C,y-E+x,0,!0),x!==0?(this.v.setTripleAt(p+C-x,y-E,p+C-x,y-E,p+C-M,y-E,1,!0),this.v.setTripleAt(p-C+x,y-E,p-C+M,y-E,p-C+x,y-E,2,!0),this.v.setTripleAt(p-C,y-E+x,p-C,y-E+x,p-C,y-E+M,3,!0),this.v.setTripleAt(p-C,y+E-x,p-C,y+E-M,p-C,y+E-x,4,!0),this.v.setTripleAt(p-C+x,y+E,p-C+x,y+E,p-C+M,y+E,5,!0),this.v.setTripleAt(p+C-x,y+E,p+C-M,y+E,p+C-x,y+E,6,!0),this.v.setTripleAt(p+C,y+E-x,p+C,y+E-x,p+C,y+E-M,7,!0)):(this.v.setTripleAt(p-C,y-E,p-C+M,y-E,p-C,y-E,1,!0),this.v.setTripleAt(p-C,y+E,p-C,y+E-M,p-C,y+E,2,!0),this.v.setTripleAt(p+C,y+E,p+C-M,y+E,p+C,y+E,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],m),m})();function u(m,v,p){var y;if(p===3||p===4){var C=p===3?v.pt:v.ks,E=C.k;E.length?y=new c(m,v,p):y=new a(m,v,p)}else p===5?y=new h(m,v):p===6?y=new d(m,v):p===7&&(y=new _(m,v));return y.k&&m.addDynamicProperty(y),y}function g(){return a}function f(){return c}var P={};return P.getShapeProp=u,P.getConstructorFunction=g,P.getKeyframedConstructorFunction=f,P})();var Matrix=(function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function n(){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 s(b){if(b===0)return this;var S=e(b),D=t(b);return this._t(S,-D,0,0,D,S,0,0,0,0,1,0,0,0,0,1)}function o(b){if(b===0)return this;var S=e(b),D=t(b);return this._t(1,0,0,0,0,S,-D,0,0,D,S,0,0,0,0,1)}function a(b){if(b===0)return this;var S=e(b),D=t(b);return this._t(S,0,D,0,0,1,0,0,-D,0,S,0,0,0,0,1)}function l(b){if(b===0)return this;var S=e(b),D=t(b);return this._t(S,-D,0,0,D,S,0,0,0,0,1,0,0,0,0,1)}function c(b,S){return this._t(1,S,b,1,0,0)}function d(b,S){return this.shear(r(b),r(S))}function _(b,S){var D=e(S),A=t(S);return this._t(D,A,0,0,-A,D,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(b),1,0,0,0,0,1,0,0,0,0,1)._t(D,-A,0,0,A,D,0,0,0,0,1,0,0,0,0,1)}function h(b,S,D){return!D&&D!==0&&(D=1),b===1&&S===1&&D===1?this:this._t(b,0,0,0,0,S,0,0,0,0,D,0,0,0,0,1)}function u(b,S,D,A,H,q,Q,J,Z,le,de,Je,Be,ge,$e,te){return this.props[0]=b,this.props[1]=S,this.props[2]=D,this.props[3]=A,this.props[4]=H,this.props[5]=q,this.props[6]=Q,this.props[7]=J,this.props[8]=Z,this.props[9]=le,this.props[10]=de,this.props[11]=Je,this.props[12]=Be,this.props[13]=ge,this.props[14]=$e,this.props[15]=te,this}function g(b,S,D){return D=D||0,b!==0||S!==0||D!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,b,S,D,1):this}function f(b,S,D,A,H,q,Q,J,Z,le,de,Je,Be,ge,$e,te){var W=this.props;if(b===1&&S===0&&D===0&&A===0&&H===0&&q===1&&Q===0&&J===0&&Z===0&&le===0&&de===1&&Je===0)return W[12]=W[12]*b+W[15]*Be,W[13]=W[13]*q+W[15]*ge,W[14]=W[14]*de+W[15]*$e,W[15]*=te,this._identityCalculated=!1,this;var St=W[0],Ct=W[1],dt=W[2],ut=W[3],Pt=W[4],De=W[5],Se=W[6],wt=W[7],Et=W[8],ze=W[9],xt=W[10],Ze=W[11],Rt=W[12],Si=W[13],Hr=W[14],jr=W[15];return W[0]=St*b+Ct*H+dt*Z+ut*Be,W[1]=St*S+Ct*q+dt*le+ut*ge,W[2]=St*D+Ct*Q+dt*de+ut*$e,W[3]=St*A+Ct*J+dt*Je+ut*te,W[4]=Pt*b+De*H+Se*Z+wt*Be,W[5]=Pt*S+De*q+Se*le+wt*ge,W[6]=Pt*D+De*Q+Se*de+wt*$e,W[7]=Pt*A+De*J+Se*Je+wt*te,W[8]=Et*b+ze*H+xt*Z+Ze*Be,W[9]=Et*S+ze*q+xt*le+Ze*ge,W[10]=Et*D+ze*Q+xt*de+Ze*$e,W[11]=Et*A+ze*J+xt*Je+Ze*te,W[12]=Rt*b+Si*H+Hr*Z+jr*Be,W[13]=Rt*S+Si*q+Hr*le+jr*ge,W[14]=Rt*D+Si*Q+Hr*de+jr*$e,W[15]=Rt*A+Si*J+Hr*Je+jr*te,this._identityCalculated=!1,this}function P(b){var S=b.props;return this.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15])}function m(){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 v(b){for(var S=0;S<16;){if(b.props[S]!==this.props[S])return!1;S+=1}return!0}function p(b){var S;for(S=0;S<16;S+=1)b.props[S]=this.props[S];return b}function y(b){var S;for(S=0;S<16;S+=1)this.props[S]=b[S]}function C(b,S,D){return{x:b*this.props[0]+S*this.props[4]+D*this.props[8]+this.props[12],y:b*this.props[1]+S*this.props[5]+D*this.props[9]+this.props[13],z:b*this.props[2]+S*this.props[6]+D*this.props[10]+this.props[14]}}function E(b,S,D){return b*this.props[0]+S*this.props[4]+D*this.props[8]+this.props[12]}function x(b,S,D){return b*this.props[1]+S*this.props[5]+D*this.props[9]+this.props[13]}function M(b,S,D){return b*this.props[2]+S*this.props[6]+D*this.props[10]+this.props[14]}function F(){var b=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/b,D=-this.props[1]/b,A=-this.props[4]/b,H=this.props[0]/b,q=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/b,Q=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/b,J=new Matrix;return J.props[0]=S,J.props[1]=D,J.props[4]=A,J.props[5]=H,J.props[12]=q,J.props[13]=Q,J}function B(b){var S=this.getInverseMatrix();return S.applyToPointArray(b[0],b[1],b[2]||0)}function V(b){var S,D=b.length,A=[];for(S=0;S<D;S+=1)A[S]=B(b[S]);return A}function k(b,S,D){var A=createTypedArray("float32",6);if(this.isIdentity())A[0]=b[0],A[1]=b[1],A[2]=S[0],A[3]=S[1],A[4]=D[0],A[5]=D[1];else{var H=this.props[0],q=this.props[1],Q=this.props[4],J=this.props[5],Z=this.props[12],le=this.props[13];A[0]=b[0]*H+b[1]*Q+Z,A[1]=b[0]*q+b[1]*J+le,A[2]=S[0]*H+S[1]*Q+Z,A[3]=S[0]*q+S[1]*J+le,A[4]=D[0]*H+D[1]*Q+Z,A[5]=D[0]*q+D[1]*J+le}return A}function N(b,S,D){var A;return this.isIdentity()?A=[b,S,D]:A=[b*this.props[0]+S*this.props[4]+D*this.props[8]+this.props[12],b*this.props[1]+S*this.props[5]+D*this.props[9]+this.props[13],b*this.props[2]+S*this.props[6]+D*this.props[10]+this.props[14]],A}function j(b,S){if(this.isIdentity())return b+","+S;var D=this.props;return Math.round((b*D[0]+S*D[4]+D[12])*100)/100+","+Math.round((b*D[1]+S*D[5]+D[13])*100)/100}function O(){for(var b=0,S=this.props,D="matrix3d(",A=1e4;b<16;)D+=i(S[b]*A)/A,D+=b===15?")":",",b+=1;return D}function w(b){var S=1e4;return b<1e-6&&b>0||b>-1e-6&&b<0?i(b*S)/S:b}function T(){var b=this.props,S=w(b[0]),D=w(b[1]),A=w(b[4]),H=w(b[5]),q=w(b[12]),Q=w(b[13]);return"matrix("+S+","+D+","+A+","+H+","+q+","+Q+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=o,this.rotateY=a,this.rotateZ=l,this.skew=d,this.skewFromAxis=_,this.shear=c,this.scale=h,this.setTransform=u,this.translate=g,this.transform=f,this.multiply=P,this.applyToPoint=C,this.applyToX=E,this.applyToY=x,this.applyToZ=M,this.applyToPointArray=N,this.applyToTriplePoints=k,this.applyToPointStringified=j,this.toCSS=O,this.to2dCSS=T,this.clone=p,this.cloneFromProps=y,this.equals=v,this.inversePoints=V,this.inversePoint=B,this.getInverseMatrix=F,this._t=this.transform,this.isIdentity=m,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return standalone===!0&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var i=t[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{!((typeof exports>"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};e.registerModifier=r,e.getModifier=i;function r(n,s){t[n]||(t[n]=s)}function i(n,s,o){return new t[n](s,o)}return e})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,i,n){var s=[];t<=1?s.push({s:e,e:t}):e>=1?s.push({s:e-1,e:t-1}):(s.push({s:e,e:1}),s.push({s:0,e:t-1}));var o=[],a,l=s.length,c;for(a=0;a<l;a+=1)if(c=s[a],!(c.e*n<i||c.s*n>i+r)){var d,_;c.s*n<=i?d=0:d=(c.s*n-i)/r,c.e*n>=i+r?_=1:_=(c.e*n-i)/r,o.push([d,_])}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,t>r){var n=t;t=r,r=n}t=Math.round(t*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,o,a=this.shapes.length,l,c,d,_,h,u=0;if(r===t)for(o=0;o<a;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(o=0;o<a;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var g=[],f,P;for(o=0;o<a;o+=1)if(f=this.shapes[o],!f.shape._mdf&&!this._mdf&&!e&&this.m!==2)f.shape.paths=f.localShapeCollection;else{if(s=f.shape.paths,c=s._length,h=0,!f.shape._mdf&&f.pathsData.length)h=f.totalShapeLength;else{for(d=this.releasePathsData(f.pathsData),l=0;l<c;l+=1)_=bez.getSegmentsLength(s.shapes[l]),d.push(_),h+=_.totalLength;f.totalShapeLength=h,f.pathsData=d}u+=h,f.shape._mdf=!0}var m=t,v=r,p=0,y;for(o=a-1;o>=0;o-=1)if(f=this.shapes[o],f.shape._mdf){for(P=f.localShapeCollection,P.releaseShapes(),this.m===2&&a>1?(y=this.calculateShapeEdges(t,r,f.totalShapeLength,p,u),p+=f.totalShapeLength):y=[[m,v]],c=y.length,l=0;l<c;l+=1){m=y[l][0],v=y[l][1],g.length=0,v<=1?g.push({s:f.totalShapeLength*m,e:f.totalShapeLength*v}):m>=1?g.push({s:f.totalShapeLength*(m-1),e:f.totalShapeLength*(v-1)}):(g.push({s:f.totalShapeLength*m,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(v-1)}));var C=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1){var E=f.shape.paths.shapes[f.shape.paths._length-1];if(E.c){var x=C.pop();this.addPaths(C,P),C=this.addShapes(f,g[1],x)}else this.addPaths(C,P),C=this.addShapes(f,g[1])}this.addPaths(C,P)}}f.shape.paths=P}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,i,n,s,o){n.setXYAt(t[0],t[1],"o",s),n.setXYAt(r[0],r[1],"i",s+1),o&&n.setXYAt(e[0],e[1],"v",s),n.setXYAt(i[0],i[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,i){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),i&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var i=e.pathsData,n=e.shape.paths.shapes,s,o=e.shape.paths._length,a,l,c=0,d,_,h,u,g=[],f,P=!0;for(r?(_=r._length,f=r._length):(r=shapePool.newElement(),_=0,f=0),g.push(r),s=0;s<o;s+=1){for(h=i[s].lengths,r.c=n[s].c,l=n[s].c?h.length:h.length+1,a=1;a<l;a+=1)if(d=h[a-1],c+d.addedLength<t.s)c+=d.addedLength,r.c=!1;else if(c>t.e){r.c=!1;break}else t.s<=c&&t.e>=c+d.addedLength?(this.addSegment(n[s].v[a-1],n[s].o[a-1],n[s].i[a],n[s].v[a],r,_,P),P=!1):(u=bez.getNewSegment(n[s].v[a-1],n[s].v[a],n[s].o[a-1],n[s].i[a],(t.s-c)/d.addedLength,(t.e-c)/d.addedLength,h[a-1]),this.addSegmentFromArray(u,r,_,P),P=!1,r.c=!1),c+=d.addedLength,_+=1;if(n[s].c&&h.length){if(d=h[a-1],c<=t.e){var m=h[a-1].addedLength;t.s<=c&&t.e>=c+m?(this.addSegment(n[s].v[a-1],n[s].o[a-1],n[s].i[0],n[s].v[0],r,_,P),P=!1):(u=bez.getNewSegment(n[s].v[a-1],n[s].v[0],n[s].o[a-1],n[s].i[0],(t.s-c)/m,(t.e-c)/m,h[a-1]),this.addSegmentFromArray(u,r,_,P),P=!1,r.c=!1)}else r.c=!1;c+=d.addedLength,_+=1}if(r._length&&(r.setXYAt(r.v[f][0],r.v[f][1],"i",f),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),c>t.e)break;s<o-1&&(r=shapePool.newElement(),P=!0,g.push(r),_=0)}return g};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,i=[0,0],n=e._length,s=0;for(s=0;s<n;s+=1)i[0]+=e.v[s][0],i[1]+=e.v[s][1];i[0]/=n,i[1]/=n;var o=shapePool.newElement();o.c=e.c;var a,l,c,d,_,h;for(s=0;s<n;s+=1)a=e.v[s][0]+(i[0]-e.v[s][0])*r,l=e.v[s][1]+(i[1]-e.v[s][1])*r,c=e.o[s][0]+(i[0]-e.o[s][0])*-r,d=e.o[s][1]+(i[1]-e.o[s][1])*-r,_=e.i[s][0]+(i[0]-e.i[s][0])*-r,h=e.i[s][1]+(i[1]-e.i[s][1])*-r,o.setTripleAt(a,l,c,d,_,h,s);return o},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,n,s,o=this.amount.v;if(o!==0){var a,l;for(r=0;r<i;r+=1){if(a=this.shapes[r],l=a.localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,s=a.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],o));a.shape.paths=a.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(l){var c=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||c,this.a&&l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&l.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&l.skewFromAxis(-this.sk.v,this.sa.v),this.r?l.rotate(-this.r.v):l.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?l.translate(this.px.v,this.py.v,-this.pz.v):l.translate(this.px.v,this.py.v,0):l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(l){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||l){var c;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var d,_;if(c=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(d=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),_=this.p.getValueAtTime(this.p.keyframes[0].t/c,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(d=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),_=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(d=this.p.pv,_=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){d=[],_=[];var h=this.px,u=this.py;h._caching.lastFrame+h.offsetTime<=h.keyframes[0].t?(d[0]=h.getValueAtTime((h.keyframes[0].t+.01)/c,0),d[1]=u.getValueAtTime((u.keyframes[0].t+.01)/c,0),_[0]=h.getValueAtTime(h.keyframes[0].t/c,0),_[1]=u.getValueAtTime(u.keyframes[0].t/c,0)):h._caching.lastFrame+h.offsetTime>=h.keyframes[h.keyframes.length-1].t?(d[0]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/c,0),d[1]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/c,0),_[0]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/c,0),_[1]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/c,0)):(d=[h.pv,u.pv],_[0]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/c,h.offsetTime),_[1]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/c,u.offsetTime))}else _=e,d=_;this.v.rotate(-Math.atan2(d[1]-_[1],d[0]-_[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 i(){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 n(){}function s(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function o(l,c,d){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(d||l),c.p&&c.p.s?(this.px=PropertyFactory.getProp(l,c.p.x,0,0,this),this.py=PropertyFactory.getProp(l,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(l,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(l,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,c.rz,0,degToRads,this),c.or.k[0].ti){var _,h=c.or.k.length;for(_=0;_<h;_+=1)c.or.k[_].to=null,c.or.k[_].ti=null}this.or=PropertyFactory.getProp(l,c.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,c.r||{k:0},0,degToRads,this);c.sk&&(this.sk=PropertyFactory.getProp(l,c.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,c.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,c.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,c.s||{k:[100,100,100]},1,.01,this),c.o?this.o=PropertyFactory.getProp(l,c.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}o.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:i,autoOrient:n},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=s,o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function a(l,c,d){return new o(l,c,d)}return{getTransformProperty:a}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,i,n,s){var o=s?-1:1,a=i.s.v[0]+(1-i.s.v[0])*(1-n),l=i.s.v[1]+(1-i.s.v[1])*(1-n);e.translate(i.p.v[0]*o*n,i.p.v[1]*o*n,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*o*n),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(s?1/a:a,s?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,i){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,i,n,s,o=!1;if(this._mdf||e){var a=Math.ceil(this.c.v);if(this._groups.length<a){for(;this._groups.length<a;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}s=0;var c;for(i=0;i<=this._groups.length-1;i+=1){if(c=s<a,this._groups[i]._render=c,this.changeGroupRender(this._groups[i].it,c),!c){var d=this.elemsData[i].it,_=d[d.length-1];_.transform.op.v!==0?(_.transform.op._mdf=!0,_.transform.op.v=0):_.transform.op._mdf=!1}s+=1}this._currentCopies=a;var h=this.o.v,u=h%1,g=h>0?Math.floor(h):Math.ceil(h),f=this.pMatrix.props,P=this.rMatrix.props,m=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v=0;if(h>0){for(;v<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),v+=u)}else if(h<0){for(;v>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),v-=u)}i=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,s=this._currentCopies;for(var p,y;s;){if(t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,y=r.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),v!==0){for((i!==0&&n===1||i!==this._currentCopies-1&&n===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(P[0],P[1],P[2],P[3],P[4],P[5],P[6],P[7],P[8],P[9],P[10],P[11],P[12],P[13],P[14],P[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),p=0;p<y;p+=1)r[p]=this.matrix.props[p];this.matrix.reset()}else for(this.matrix.reset(),p=0;p<y;p+=1)r[p]=this.matrix.props[p];v+=1,s-=1,i+=n}}else for(s=this._currentCopies,i=0,n=1;s;)t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,s-=1,i+=n;return o},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r=shapePool.newElement();r.c=e.c;var i,n=e._length,s,o,a,l,c,d,_=0,h,u,g,f,P,m;for(i=0;i<n;i+=1)s=e.v[i],a=e.o[i],o=e.i[i],s[0]===a[0]&&s[1]===a[1]&&s[0]===o[0]&&s[1]===o[1]?(i===0||i===n-1)&&!e.c?(r.setTripleAt(s[0],s[1],a[0],a[1],o[0],o[1],_),_+=1):(i===0?l=e.v[n-1]:l=e.v[i-1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),d=c?Math.min(c/2,t)/c:0,P=s[0]+(l[0]-s[0])*d,h=P,m=s[1]-(s[1]-l[1])*d,u=m,g=h-(h-s[0])*roundCorner,f=u-(u-s[1])*roundCorner,r.setTripleAt(h,u,g,f,P,m,_),_+=1,i===n-1?l=e.v[0]:l=e.v[i+1],c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),d=c?Math.min(c/2,t)/c:0,g=s[0]+(l[0]-s[0])*d,h=g,f=s[1]+(l[1]-s[1])*d,u=f,P=h-(h-s[0])*roundCorner,m=u-(u-s[1])*roundCorner,r.setTripleAt(h,u,g,f,P,m,_),_+=1):(r.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],_),_+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,n,s,o=this.rd.v;if(o!==0){var a,l;for(r=0;r<i;r+=1){if(a=this.shapes[r],l=a.localShapeCollection,!(!a.shape._mdf&&!this._mdf&&!e))for(l.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,s=a.shape.paths._length,n=0;n<s;n+=1)l.addShape(this.processPath(t[n],o));a.shape.paths=a.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(e===0)return[];var i=t*t-4*e*r;if(i<0)return[];var n=-t/(2*e);if(i===0)return[n];var s=Math.sqrt(i)/(2*e);return[n-s,n+s]}function polynomialCoefficients(e,t,r,i){return[-e+3*t-3*r+i,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,i,n){n&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var s=polynomialCoefficients(e[0],t[0],r[0],i[0]),o=polynomialCoefficients(e[1],t[1],r[1],i[1]);this.a=[s[0],o[0]],this.b=[s[1],o[1]],this.c=[s[2],o[2]],this.d=[s[3],o[3]],this.points=[e,t,r,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(n){return n>0&&n<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),n=lerpPoint(t,r,e),s=lerpPoint(r,i,e),o=lerpPoint(n,s,e);return[new PolynomialBezier(this.points[0],t,n,o,!0),new PolynomialBezier(o,s,i,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var n=i;i=r,r=n}for(var s=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<s.length;o+=1)if(s[o]>0&&s[o]<1){var a=e.point(s[o])[t];a<r?r=a:a>i&&(i=a)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,r,i,n,s){if(boxIntersect(e,t)){if(r>=s||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){n.push([e.t,t.t]);return}var o=splitData(e),a=splitData(t);intersectsImpl(o[0],a[0],r+1,i,n,s),intersectsImpl(o[0],a[1],r+1,i,n,s),intersectsImpl(o[1],a[0],r+1,i,n,s),intersectsImpl(o[1],a[1],r+1,i,n,s)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var n=[e[0],e[1],1],s=[t[0],t[1],1],o=[r[0],r[1],1],a=[i[0],i[1],1],l=crossProduct(crossProduct(n,s),crossProduct(o,a));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,r,i,n,s,o){var a=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*i*n,d=t[1]-Math.sin(r)*i*n;e.setTripleAt(c,d,c+Math.cos(a)*s,d-Math.sin(a)*s,c+Math.cos(l)*o,d-Math.sin(l)*o,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,n=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return n}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,i=(t+1)%e.length(),n=e.v[r],s=e.v[i],o=getPerpendicularVector(n,s);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,r,i,n,s,o){var a=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[r===0?t._length-1:r-1],d=t.v[(r+1)%t._length],_=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,h=s===2?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0;setPoint(e,t.v[r%t._length],a,o,i,h/((n+1)*2),_/((n+1)*2),s)}function zigZagSegment(e,t,r,i,n,s){for(var o=0;o<i;o+=1){var a=(o+1)/(i+1),l=n===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(a),d=t.point(a);setPoint(e,d,c,s,r,l/((i+1)*2),l/((i+1)*2),n),s=-s}return s}ZigZagModifier.prototype.processPath=function(e,t,r,i){var n=e._length,s=shapePool.newElement();if(s.c=e.c,e.c||(n-=1),n===0)return s;var o=-1,a=PolynomialBezier.shapeSegment(e,0);zigZagCorner(s,e,0,t,r,i,o);for(var l=0;l<n;l+=1)o=zigZagSegment(s,a,t,r,i,-o),l===n-1&&!e.c?a=null:a=PolynomialBezier.shapeSegment(e,(l+1)%n),zigZagCorner(s,e,l+1,t,r,i,o);return s},ZigZagModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,n,s,o=this.amplitude.v,a=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(o!==0){var c,d;for(r=0;r<i;r+=1){if(c=this.shapes[r],d=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)d.addShape(this.processPath(t[n],o,a,l));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,r),polarOffset(t,i,r)]}function offsetSegment(e,t){var r,i,n,s,o,a,l;l=linearOffset(e.points[0],e.points[1],t),r=l[0],i=l[1],l=linearOffset(e.points[1],e.points[2],t),n=l[0],s=l[1],l=linearOffset(e.points[2],e.points[3],t),o=l[0],a=l[1];var c=lineIntersection(r,i,n,s);c===null&&(c=i);var d=lineIntersection(o,a,n,s);return d===null&&(d=o),new PolynomialBezier(r,c,d,a)}function joinLines(e,t,r,i,n){var s=t.points[3],o=r.points[0];if(i===3||pointEqual(s,o))return s;if(i===2){var a=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(s,polarOffset(s,a+Math.PI/2,100),o,polarOffset(o,a+Math.PI/2,100)),d=c?pointDistance(c,s):pointDistance(s,o)/2,_=polarOffset(s,a,2*d*roundCorner);return e.setXYAt(_[0],_[1],"o",e.length()-1),_=polarOffset(o,l,2*d*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],_[0],_[1],e.length()),o}var h=pointEqual(s,t.points[2])?t.points[0]:t.points[2],u=pointEqual(o,r.points[1])?r.points[3]:r.points[1],g=lineIntersection(h,s,o,u);return g&&pointDistance(g,s)<n?(e.setTripleAt(g[0],g[1],g[0],g[1],g[0],g[1],e.length()),g):s}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),i=t.slice(),n=getIntersection(e[e.length-1],t[0]);return n&&(r[e.length-1]=e[e.length-1].split(n[0])[0],i[0]=t[0].split(n[1])[1]),e.length>1&&t.length>1&&(n=getIntersection(e[0],t[t.length-1]),n)?[[e[0].split(n[0])[0]],[t[t.length-1].split(n[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r=e.inflectionPoints(),i,n,s,o;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return s=e.split(r[0]),i=s[0],n=s[1],[offsetSegment(i,t),offsetSegment(n,t)];s=e.split(r[0]),i=s[0];var a=(r[1]-r[0])/(1-r[0]);return s=s[1].split(a),o=s[0],n=s[1],[offsetSegment(i,t),offsetSegment(o,t),offsetSegment(n,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var n=shapePool.newElement();n.c=e.c;var s=e.length();e.c||(s-=1);var o,a,l,c=[];for(o=0;o<s;o+=1)l=PolynomialBezier.shapeSegment(e,o),c.push(offsetSegmentSplit(l,t));if(!e.c)for(o=s-1;o>=0;o-=1)l=PolynomialBezier.shapeSegmentInverted(e,o),c.push(offsetSegmentSplit(l,t));c=pruneIntersections(c);var d=null,_=null;for(o=0;o<c.length;o+=1){var h=c[o];for(_&&(d=joinLines(n,_,h[0],r,i)),_=h[h.length-1],a=0;a<h.length;a+=1)l=h[a],d&&pointEqual(l.points[0],d)?n.setXYAt(l.points[1][0],l.points[1][1],"o",n.length()-1):n.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],n.length()),n.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],n.length()),d=l.points[3]}return c.length&&joinLines(n,_,c[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,n,s,o=this.amount.v,a=this.miterLimit.v,l=this.lineJoin;if(o!==0){var c,d;for(r=0;r<i;r+=1){if(c=this.shapes[r],d=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),c.shape._mdf=!0,t=c.shape.paths.shapes,s=c.shape.paths._length,n=0;n<s;n+=1)d.addShape(this.processPath(t[n],o,l,a));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",n=t.length,s,o=0;o<n;o+=1)switch(s=t[o].toLowerCase(),s){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break;default:break}return{style:i,weight:e.fWeight||r}}var FontManager=(function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,n=917631,s=917601,o=917626,a=65039,l=8205,c=127462,d=127487,_=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function h(w){var T=w.split(","),b,S=T.length,D=[];for(b=0;b<S;b+=1)T[b]!=="sans-serif"&&T[b]!=="monospace"&&D.push(T[b]);return D.join(",")}function u(w,T){var b=createTag("span");b.setAttribute("aria-hidden",!0),b.style.fontFamily=T;var S=createTag("span");S.innerText="giItT1WQy@!-/#",b.style.position="absolute",b.style.left="-10000px",b.style.top="-10000px",b.style.fontSize="300px",b.style.fontVariant="normal",b.style.fontStyle="normal",b.style.fontWeight="normal",b.style.letterSpacing="0",b.appendChild(S),document.body.appendChild(b);var D=S.offsetWidth;return S.style.fontFamily=h(w)+", "+T,{node:S,w:D,parent:b}}function g(){var w,T=this.fonts.length,b,S,D=T;for(w=0;w<T;w+=1)this.fonts[w].loaded?D-=1:this.fonts[w].fOrigin==="n"||this.fonts[w].origin===0?this.fonts[w].loaded=!0:(b=this.fonts[w].monoCase.node,S=this.fonts[w].monoCase.w,b.offsetWidth!==S?(D-=1,this.fonts[w].loaded=!0):(b=this.fonts[w].sansCase.node,S=this.fonts[w].sansCase.w,b.offsetWidth!==S&&(D-=1,this.fonts[w].loaded=!0)),this.fonts[w].loaded&&(this.fonts[w].sansCase.parent.parentNode.removeChild(this.fonts[w].sansCase.parent),this.fonts[w].monoCase.parent.parentNode.removeChild(this.fonts[w].monoCase.parent)));D!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function f(w,T){var b=document.body&&T?"svg":"canvas",S,D=getFontProperties(w);if(b==="svg"){var A=createNS("text");A.style.fontSize="100px",A.setAttribute("font-family",w.fFamily),A.setAttribute("font-style",D.style),A.setAttribute("font-weight",D.weight),A.textContent="1",w.fClass?(A.style.fontFamily="inherit",A.setAttribute("class",w.fClass)):A.style.fontFamily=w.fFamily,T.appendChild(A),S=A}else{var H=new OffscreenCanvas(500,500).getContext("2d");H.font=D.style+" "+D.weight+" 100px "+w.fFamily,S=H}function q(Q){return b==="svg"?(S.textContent=Q,S.getComputedTextLength()):S.measureText(Q).width}return{measureText:q}}function P(w,T){if(!w){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=w.list;return}if(!document.body){this.isLoaded=!0,w.list.forEach(function(de){de.helper=f(de),de.cache={}}),this.fonts=w.list;return}var b=w.list,S,D=b.length,A=D;for(S=0;S<D;S+=1){var H=!0,q,Q;if(b[S].loaded=!1,b[S].monoCase=u(b[S].fFamily,"monospace"),b[S].sansCase=u(b[S].fFamily,"sans-serif"),!b[S].fPath)b[S].loaded=!0,A-=1;else if(b[S].fOrigin==="p"||b[S].origin===3){if(q=document.querySelectorAll('style[f-forigin="p"][f-family="'+b[S].fFamily+'"], style[f-origin="3"][f-family="'+b[S].fFamily+'"]'),q.length>0&&(H=!1),H){var J=createTag("style");J.setAttribute("f-forigin",b[S].fOrigin),J.setAttribute("f-origin",b[S].origin),J.setAttribute("f-family",b[S].fFamily),J.type="text/css",J.innerText="@font-face {font-family: "+b[S].fFamily+"; font-style: normal; src: url('"+b[S].fPath+"');}",T.appendChild(J)}}else if(b[S].fOrigin==="g"||b[S].origin===1){for(q=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Q=0;Q<q.length;Q+=1)q[Q].href.indexOf(b[S].fPath)!==-1&&(H=!1);if(H){var Z=createTag("link");Z.setAttribute("f-forigin",b[S].fOrigin),Z.setAttribute("f-origin",b[S].origin),Z.type="text/css",Z.rel="stylesheet",Z.href=b[S].fPath,document.body.appendChild(Z)}}else if(b[S].fOrigin==="t"||b[S].origin===2){for(q=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Q=0;Q<q.length;Q+=1)b[S].fPath===q[Q].src&&(H=!1);if(H){var le=createTag("link");le.setAttribute("f-forigin",b[S].fOrigin),le.setAttribute("f-origin",b[S].origin),le.setAttribute("rel","stylesheet"),le.setAttribute("href",b[S].fPath),T.appendChild(le)}}b[S].helper=f(b[S],T),b[S].cache={},this.fonts.push(b[S])}A===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function m(w){if(w){this.chars||(this.chars=[]);var T,b=w.length,S,D=this.chars.length,A;for(T=0;T<b;T+=1){for(S=0,A=!1;S<D;)this.chars[S].style===w[T].style&&this.chars[S].fFamily===w[T].fFamily&&this.chars[S].ch===w[T].ch&&(A=!0),S+=1;A||(this.chars.push(w[T]),D+=1)}}}function v(w,T,b){for(var S=0,D=this.chars.length;S<D;){if(this.chars[S].ch===w&&this.chars[S].style===T&&this.chars[S].fFamily===b)return this.chars[S];S+=1}return(typeof w=="string"&&w.charCodeAt(0)!==13||!w)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",w,T,b)),t}function p(w,T,b){var S=this.getFontByName(T),D=w;if(!S.cache[D]){var A=S.helper;if(w===" "){var H=A.measureText("|"+w+"|"),q=A.measureText("||");S.cache[D]=(H-q)/100}else S.cache[D]=A.measureText(w)/100}return S.cache[D]*b}function y(w){for(var T=0,b=this.fonts.length;T<b;){if(this.fonts[T].fName===w)return this.fonts[T];T+=1}return this.fonts[0]}function C(w){var T=0,b=w.charCodeAt(0);if(b>=55296&&b<=56319){var S=w.charCodeAt(1);S>=56320&&S<=57343&&(T=(b-55296)*1024+S-56320+65536)}return T}function E(w,T){var b=w.toString(16)+T.toString(16);return _.indexOf(b)!==-1}function x(w){return w===l}function M(w){return w===a}function F(w){var T=C(w);return T>=c&&T<=d}function B(w){return F(w.substr(0,2))&&F(w.substr(2,2))}function V(w){return r.indexOf(w)!==-1}function k(w,T){var b=C(w.substr(T,2));if(b!==i)return!1;var S=0;for(T+=2;S<5;){if(b=C(w.substr(T,2)),b<s||b>o)return!1;S+=1,T+=2}return C(w.substr(T,2))===n}function N(){this.isLoaded=!0}var j=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)};j.isModifier=E,j.isZeroWidthJoiner=x,j.isFlagEmoji=B,j.isRegionalCode=F,j.isCombinedCharacter=V,j.isRegionalFlag=k,j.isVariationSelector=M,j.BLACK_FLAG_CODE_POINT=i;var O={addChars:m,addFonts:P,getCharData:v,getFontByName:y,measureText:p,checkLoadedFonts:g,setIsLoaded:N};return j.prototype=O,j})();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,r=this.renderableComponents.length;for(t=0;t<r;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}})();function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r=e.ef||[];this.effectElements=[];var i,n=r.length,s;for(i=0;i<n;i+=1)s=new GroupEffect(r[i],t),this.effectElements.push(s)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,n,s=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,s[r].ty){case 0:n=new SliderEffect(s[r],t,this);break;case 1:n=new AngleEffect(s[r],t,this);break;case 2:n=new ColorEffect(s[r],t,this);break;case 3:n=new PointEffect(s[r],t,this);break;case 4:case 7:n=new CheckboxEffect(s[r],t,this);break;case 10:n=new LayerIndexEffect(s[r],t,this);break;case 11:n=new MaskIndexEffect(s[r],t,this);break;case 5:n=new EffectsManager(s[r],t,this);break;default:n=new NoValueEffect(s[r],t,this);break}n&&this.effectElements.push(n)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,r=this.data.masksProperties.length;t<r;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var r=t("layer"),i=t("effects"),n=t("shape"),s=t("text"),o=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),this.data.ty===0||this.data.xt?this.compInterface=o(this):this.data.ty===4?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=s(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=t},initBaseData:function(t,r,i){this.globalData=r,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,r){var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)(r||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,r=this.layers.length,i;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,r=e.length,i,n=this.layers.length;for(t=0;t<r;t+=1)for(i=0;i<n;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var i=this.elements,n=this.layers,s=0,o=n.length;s<o;)n[s].ind==t&&(!i[s]||i[s]===!0?(this.buildItem(s),this.addPendingElement(e)):(r.push(i[s]),i[s].setAsParent(),n[s].parent!==void 0?this.buildElementParenting(e,n[s].parent,r):e.setHierarchy(r))),s+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),r;if(typeof t=="number")r=this.elements[t];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===t){r=this.elements[i];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,r=this.finalTransform.mat,i=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<n;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,r.cloneFromProps(t),i=0;i<n;i+=1)r.multiply(this.hierarchy[i].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<r;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<r;t+=1){var n=this.localTransforms[t].matrix;i.multiply(n)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var s=this.finalTransform.localOpacity;for(t=0;t<r;t+=1)s*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=s}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,i=t.length;for(r=0;r<i;r+=1)this.localTransforms.push(t[r])}}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&r.splice(0,0,n.finalTransform),n=n.comp):i=!1;var s,o=r.length,a;for(s=0;s<o;s+=1)a=r[s].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,n,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var o,a=this.masksProperties,l=0,c=[],d,_,h=createElementID(),u,g,f,P,m="clipPath",v="clip-path";for(n=0;n<s;n+=1)if((a[n].mode!=="a"&&a[n].mode!=="n"||a[n].inv||a[n].o.k!==100||a[n].o.x)&&(m="mask",v="mask"),(a[n].mode==="s"||a[n].mode==="i")&&l===0?(u=createNS("rect"),u.setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),c.push(u)):u=null,o=createNS("path"),a[n].mode==="n")this.viewData[n]={op:PropertyFactory.getProp(this.element,a[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[n],3),elem:o,lastPath:""},i.appendChild(o);else{l+=1,o.setAttribute("fill",a[n].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero");var p;if(a[n].x.k!==0?(m="mask",v="mask",P=PropertyFactory.getProp(this.element,a[n].x,0,null,this.element),p=createElementID(),g=createNS("filter"),g.setAttribute("id",p),f=createNS("feMorphology"),f.setAttribute("operator","erode"),f.setAttribute("in","SourceGraphic"),f.setAttribute("radius","0"),g.appendChild(f),i.appendChild(g),o.setAttribute("stroke",a[n].mode==="s"?"#000000":"#ffffff")):(f=null,P=null),this.storedData[n]={elem:o,x:P,expan:f,lastPath:"",lastOperator:"",filterId:p,lastRadius:0},a[n].mode==="i"){_=c.length;var y=createNS("g");for(d=0;d<_;d+=1)y.appendChild(c[d]);var C=createNS("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",h+"_"+l),C.appendChild(o),i.appendChild(C),y.setAttribute("mask","url("+getLocationHref()+"#"+h+"_"+l+")"),c.length=0,c.push(y)}else c.push(o);a[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,a[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,a[n],3),invRect:u},this.viewData[n].prop.k||this.drawPath(a[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(m),s=c.length,n=0;n<s;n+=1)this.maskElement.appendChild(c[n]);l>0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+h+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r<i;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var n=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),n.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,r){var i=" M"+t.v[0][0]+","+t.v[0][1],n,s;for(s=t._length,n=1;n<s;n+=1)i+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&s>1&&(i+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==i){var o="";r.elem&&(t.c&&(o=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",o)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=r;function t(i,n){var s=createNS("filter");return s.setAttribute("id",i),n!==!0&&(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,n=createElementID(),s=filtersFactory.createFilter(n,!0),o=0;this.filters=[];var a;for(t=0;t<i;t+=1){a=null;var l=e.data.ef[t].ty;if(registeredEffects$1[l]){var c=registeredEffects$1[l].effect;a=new c(s,e.effectsManager.effectElements[t],e,idPrefix+o,r),r=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)}a&&this.filters.push(a)}o&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),t=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(i.setAttribute("id",s),i.appendChild(n),this.globalData.defs.appendChild(i),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("op
2acity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var r=this.layerId+"_"+t,i,n,s,o;if(t===1||t===3){var a=createNS("mask");a.setAttribute("id",r),a.setAttribute("mask-type",t===3?"luminance":"alpha"),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(s),this.globalData.defs.appendChild(a),!featureSupport.maskType&&t===1&&(a.setAttribute("mask-type","luminance"),i=createElementID(),n=filtersFactory.createFilter(i),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),o.appendChild(s),a.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type","alpha");var c=createNS("g");l.appendChild(c),i=createElementID(),n=filtersFactory.createFilter(i);var d=createNS("feComponentTransfer");d.setAttribute("in","SourceGraphic"),n.appendChild(d);var _=createNS("feFuncA");_.setAttribute("type","table"),_.setAttribute("tableValues","1.0 0.0"),d.appendChild(_),this.globalData.defs.appendChild(n);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),c.appendChild(h),s=createNS("use"),s.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(s),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),c.appendChild(h),o.appendChild(this.layerElement),c.appendChild(o)),this.globalData.defs.appendChild(l)}this.matteMasks[t]=r}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(r,i,n){this.initFrame(),this.initBaseData(r,i,n),this.initTransform(r,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.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(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var r,i=this.shapeModifiers.length;for(r=0;r<i;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,i=this.shapeModifiers.length;r<i;)if(this.shapeModifiers[r].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,r=this.shapes.length;for(t=0;t<r;t+=1)this.shapes[t].sh.reset();r=this.shapeModifiers.length;var i;for(t=r-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,i=0,n=r.length;i<n;){if(r[i].elem===t)return r[i].pos;i+=1}return 0},addProcessedElement:function(t,r){for(var i=this.processedElements,n=i.length;n;)if(n-=1,i[n].elem===t){i[n].pos=r;return}i.push(new ProcessedElement(t,r))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var i=0,n=e.length;i<n;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,r,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var n,s=t.length||0,o;for(n=0;n<s;n+=1)o=PropertyFactory.getProp(e,t[n].v,0,0,this),this.k=o.k||this.k,this.dataProps[n]={n:t[n].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&
vendor: 51,023 bytes, line 2
2!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<r;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,i=this.o.length/2,n;r<i;){if(n=Math.abs(e[r*4]-e[t*4+r*2]),n>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r=this.data.p*4,i,n;for(t=0;t<r;t+=1)i=t%4===0?100:255,n=Math.round(this.prop.v[t]*i),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)i=t%2===0?100:1,n=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==n&&(this.o[t-this.data.p*4]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n=[],s,o,a;for(a=t.g.p*4,o=0;o<a;o+=4)s=createNS("stop"),i.appendChild(s),n.push(s);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=n},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,s=createNS("mask"),o=createNS("path");s.appendChild(o);var a=createElementID(),l=createElementID();s.setAttribute("id",l);var c=createNS(e.t===1?"linearGradient":"radialGradient");c.setAttribute("id",a),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),n=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(i=e.g.p*4;i<n;i+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),d.push(r);o.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),e.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=s,this.ost=d,this.maskId=l,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,r,i,n){if(r===0)return"";var s=t.o,o=t.i,a=t.v,l,c=" M"+n.applyToPointStringified(a[0][0],a[0][1]);for(l=1;l<r;l+=1)c+=" C"+n.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+n.applyToPointStringified(o[l][0],o[l][1])+" "+n.applyToPointStringified(a[l][0],a[l][1]);return i&&r&&(c+=" C"+n.applyToPointStringified(s[l-1][0],s[l-1][1])+" "+n.applyToPointStringified(o[0][0],o[0][1])+" "+n.applyToPointStringified(a[0][0],a[0][1]),c+="z"),c},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:i};function i(_){switch(_.ty){case"fl":return a;case"gf":return c;case"gs":return l;case"st":return d;case"sh":case"el":case"rc":case"sr":return o;case"tr":return n;case"no":return s;default:return null}}function n(_,h,u){(u||h.transform.op._mdf)&&h.transform.container.setAttribute("opacity",h.transform.op.v),(u||h.transform.mProps._mdf)&&h.transform.container.setAttribute("transform",h.transform.mProps.v.to2dCSS())}function s(){}function o(_,h,u){var g,f,P,m,v,p,y=h.styles.length,C=h.lvl,E,x,M,F;for(p=0;p<y;p+=1){if(m=h.sh._mdf||u,h.styles[p].lvl<C){for(x=t.reset(),M=C-h.styles[p].lvl,F=h.transformers.length-1;!m&&M>0;)m=h.transformers[F].mProps._mdf||m,M-=1,F-=1;if(m)for(M=C-h.styles[p].lvl,F=h.transformers.length-1;M>0;)x.multiply(h.transformers[F].mProps.v),M-=1,F-=1}else x=e;if(E=h.sh.paths,f=E._length,m){for(P="",g=0;g<f;g+=1)v=E.shapes[g],v&&v._length&&(P+=buildShapeString(v,v._length,v.c,x));h.caches[p]=P}else P=h.caches[p];h.styles[p].d+=_.hd===!0?"":P,h.styles[p]._mdf=m||h.styles[p]._mdf}}function a(_,h,u){var g=h.style;(h.c._mdf||u)&&g.pElem.setAttribute("fill","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||u)&&g.pElem.setAttribute("fill-opacity",h.o.v)}function l(_,h,u){c(_,h,u),d(_,h,u)}function c(_,h,u){var g=h.gf,f=h.g._hasOpacity,P=h.s.v,m=h.e.v;if(h.o._mdf||u){var v=_.ty==="gf"?"fill-opacity":"stroke-opacity";h.style.pElem.setAttribute(v,h.o.v)}if(h.s._mdf||u){var p=_.t===1?"x1":"cx",y=p==="x1"?"y1":"cy";g.setAttribute(p,P[0]),g.setAttribute(y,P[1]),f&&!h.g._collapsable&&(h.of.setAttribute(p,P[0]),h.of.setAttribute(y,P[1]))}var C,E,x,M;if(h.g._cmdf||u){C=h.cst;var F=h.g.c;for(x=C.length,E=0;E<x;E+=1)M=C[E],M.setAttribute("offset",F[E*4]+"%"),M.setAttribute("stop-color","rgb("+F[E*4+1]+","+F[E*4+2]+","+F[E*4+3]+")")}if(f&&(h.g._omdf||u)){var B=h.g.o;for(h.g._collapsable?C=h.cst:C=h.ost,x=C.length,E=0;E<x;E+=1)M=C[E],h.g._collapsable||M.setAttribute("offset",B[E*2]+"%"),M.setAttribute("stop-opacity",B[E*2+1])}if(_.t===1)(h.e._mdf||u)&&(g.setAttribute("x2",m[0]),g.setAttribute("y2",m[1]),f&&!h.g._collapsable&&(h.of.setAttribute("x2",m[0]),h.of.setAttribute("y2",m[1])));else{var V;if((h.s._mdf||h.e._mdf||u)&&(V=Math.sqrt(Math.pow(P[0]-m[0],2)+Math.pow(P[1]-m[1],2)),g.setAttribute("r",V),f&&!h.g._collapsable&&h.of.setAttribute("r",V)),h.s._mdf||h.e._mdf||h.h._mdf||h.a._mdf||u){V||(V=Math.sqrt(Math.pow(P[0]-m[0],2)+Math.pow(P[1]-m[1],2)));var k=Math.atan2(m[1]-P[1],m[0]-P[0]),N=h.h.v;N>=1?N=.99:N<=-1&&(N=-.99);var j=V*N,O=Math.cos(k+h.a.v)*j+P[0],w=Math.sin(k+h.a.v)*j+P[1];g.setAttribute("fx",O),g.setAttribute("fy",w),f&&!h.g._collapsable&&(h.of.setAttribute("fx",O),h.of.setAttribute("fy",w))}}}function d(_,h,u){var g=h.style,f=h.d;f&&(f._mdf||u)&&f.dashStr&&(g.pElem.setAttribute("stroke-dasharray",f.dashStr),g.pElem.setAttribute("stroke-dashoffset",f.dashoffset[0])),h.c&&(h.c._mdf||u)&&g.pElem.setAttribute("stroke","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||u)&&g.pElem.setAttribute("stroke-opacity",h.o.v),(h.w._mdf||u)&&(g.pElem.setAttribute("stroke-width",h.w.v),g.msElem&&g.msElem.setAttribute("stroke-width",h.w.v))}return r})();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,r,i,n=this.stylesList.length,s,o=[],a=!1;for(i=0;i<n;i+=1){for(s=this.stylesList[i],a=!1,o.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(s)!==-1&&(o.push(r),a=r._isAnimated||a);o.length>1&&a&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,i=new SVGStyleData(e,t),n=i.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var s=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new s(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(n.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),n.setAttribute("fill-opacity","0"),e.lj===1&&n.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&n.setAttribute("fill-rule","evenodd"),e.ln&&n.setAttribute("id",e.ln),e.cl&&n.setAttribute("class",e.cl),e.bm&&(n.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var n=ShapePropertyFactory.getShapeProp(this,e,i,this),s=new SVGShapeData(t,r,n);return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(e,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,r,i=this.stylesList.length;for(r=0;r<i;r+=1)t.indexOf(this.stylesList[r])===-1&&!this.stylesList[r].closed&&t.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,i,n,s,o){var a=[].concat(s),l,c=e.length-1,d,_,h=[],u=[],g,f,P;for(l=c;l>=0;l-=1){if(P=this.searchProcessedElement(e[l]),P?t[l]=r[P-1]:e[l]._render=o,e[l].ty==="fl"||e[l].ty==="st"||e[l].ty==="gf"||e[l].ty==="gs"||e[l].ty==="no")P?t[l].style.closed=e[l].hd:t[l]=this.createStyleElement(e[l],n),e[l]._render&&t[l].style.pElem.parentNode!==i&&i.appendChild(t[l].style.pElem),h.push(t[l].style);else if(e[l].ty==="gr"){if(!P)t[l]=this.createGroupElement(e[l]);else for(_=t[l].it.length,d=0;d<_;d+=1)t[l].prevViewData[d]=t[l].it[d];this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,t[l].gr,n+1,a,o),e[l]._render&&t[l].gr.parentNode!==i&&i.appendChild(t[l].gr)}else e[l].ty==="tr"?(P||(t[l]=this.createTransformElement(e[l],i)),g=t[l].transform,a.push(g)):e[l].ty==="sh"||e[l].ty==="rc"||e[l].ty==="el"||e[l].ty==="sr"?(P||(t[l]=this.createShapeElement(e[l],a,n)),this.setElementStyles(t[l])):e[l].ty==="tm"||e[l].ty==="rd"||e[l].ty==="ms"||e[l].ty==="pb"||e[l].ty==="zz"||e[l].ty==="op"?(P?(f=t[l],f.closed=!1):(f=ShapeModifiers.getModifier(e[l].ty),f.init(this,e[l]),t[l]=f,this.shapeModifiers.push(f)),u.push(f)):e[l].ty==="rp"&&(P?(f=t[l],f.closed=!0):(f=ShapeModifiers.getModifier(e[l].ty),t[l]=f,f.init(this,e,l,t),this.shapeModifiers.push(f),o=!1),u.push(f));this.addProcessedElement(e[l],l+1)}for(c=h.length,l=0;l<c;l+=1)h[l].closed=!0;for(c=u.length,l=0;l<c;l+=1)u[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,r;for(e=0;e<t;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,r,i,n,s){this.o=e,this.sw=t,this.sc=r,this.fc=i,this.m=n,this.p=s,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,i,n,s){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 o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,o=!0),s.length&&(this.p[0]!==s[0]||this.p[1]!==s[1]||this.p[4]!==s[4]||this.p[5]!==s[5]||this.p[12]!==s[12]||this.p[13]!==s[13])&&(this.p=s,this._mdf.p=!0,o=!0),o};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,n=this.effectsSequence.length,s=e||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)r!==this.keysIndex?s=this.effectsSequence[i](s,s.t):s=this.effectsSequence[i](this.currentData,s.t);t!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],r=0,i=e.length,n,s,o=!1,a=!1,l="";r<i;)o=a,a=!1,n=e.charCodeAt(r),l=e.charAt(r),FontManager.isCombinedCharacter(n)?o=!0:n>=55296&&n<=56319?FontManager.isRegionalFlag(e,r)?l=e.substr(r,14):(s=e.charCodeAt(r+1),s>=56320&&s<=57343&&(FontManager.isModifier(n,s)?(l=e.substr(r,2),o=!0):FontManager.isFlagEmoji(e.substr(r,4))?l=e.substr(r,4):l=e.substr(r,2))):n>56319?(s=e.charCodeAt(r+1),FontManager.isVariationSelector(n)&&(o=!0)):FontManager.isZeroWidthJoiner(n)&&(o=!0,a=!0),o?(t[t.length-1]+=l,o=!1):t.push(l),r+=l.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,i=[],n,s,o,a=0,l,c=r.m.g,d=0,_=0,h=0,u=[],g=0,f=0,P,m,v=t.getFontByName(e.f),p,y=0,C=getFontProperties(v);e.fWeight=C.weight,e.fStyle=C.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),s=e.finalText.length,e.finalLineHeight=e.lh;var E=e.tr/1e3*e.finalSize,x;if(e.sz)for(var M=!0,F=e.sz[0],B=e.sz[1],V,k;M;){k=this.buildFinalText(e.t),V=0,g=0,s=k.length,E=e.tr/1e3*e.finalSize;var N=-1;for(n=0;n<s;n+=1)x=k[n].charCodeAt(0),o=!1,k[n]===" "?N=n:(x===13||x===3)&&(g=0,o=!0,V+=e.finalLineHeight||e.finalSize*1.2),t.chars?(p=t.getCharData(k[n],v.fStyle,v.fFamily),y=o?0:p.w*e.finalSize/100):y=t.measureText(k[n],e.f,e.finalSize),g+y>F&&k[n]!==" "?(N===-1?s+=1:n=N,V+=e.finalLineHeight||e.finalSize*1.2,k.splice(n,N===n?1:0,"\r"),N=-1,g=0):(g+=y,g+=E);V+=v.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&B<V?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=k,s=e.finalText.length,M=!1)}g=-E,y=0;var j=0,O;for(n=0;n<s;n+=1)if(o=!1,O=e.finalText[n],x=O.charCodeAt(0),x===13||x===3?(j=0,u.push(g),f=g>f?g:f,g=-2*E,l="",o=!0,h+=1):l=O,t.chars?(p=t.getCharData(O,v.fStyle,t.getFontByName(e.f).fFamily),y=o?0:p.w*e.finalSize/100):y=t.measureText(l,e.f,e.finalSize),O===" "?j+=y+E:(g+=y+E+j,j=0),i.push({l:y,an:y,add:d,n:o,anIndexes:[],val:l,line:h,animatorJustifyOffset:0}),c==2){if(d+=y,l===""||l===" "||n===s-1){for((l===""||l===" ")&&(d-=y);_<=n;)i[_].an=d,i[_].ind=a,i[_].extra=y,_+=1;a+=1,d=0}}else if(c==3){if(d+=y,l===""||n===s-1){for(l===""&&(d-=y);_<=n;)i[_].an=d,i[_].ind=a,i[_].extra=y,_+=1;d=0,a+=1}}else i[a].ind=a,i[a].extra=0,a+=1;if(e.l=i,f=g>f?g:f,u.push(g),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=f,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=u;var w=r.a,T,b;m=w.length;var S,D,A=[];for(P=0;P<m;P+=1){for(T=w[P],T.a.sc&&(e.strokeColorAnim=!0),T.a.sw&&(e.strokeWidthAnim=!0),(T.a.fc||T.a.fh||T.a.fs||T.a.fb)&&(e.fillColorAnim=!0),D=0,S=T.s.b,n=0;n<s;n+=1)b=i[n],b.anIndexes[P]=D,(S==1&&b.val!==""||S==2&&b.val!==""&&b.val!==" "||S==3&&(b.n||b.val==" "||n==s-1)||S==4&&(b.n||n==s-1))&&(T.s.rn===1&&A.push(D),D+=1);r.a[P].s.totalChars=D;var H=-1,q;if(T.s.rn===1)for(n=0;n<s;n+=1)b=i[n],H!=b.anIndexes[P]&&(H=b.anIndexes[P],q=A.splice(Math.floor(Math.random()*A.length),1)[0]),b.anIndexes[P]=q}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=v.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,r=Math.floor;function i(s,o){this._currentTextLength=-1,this.k=!1,this.data=o,this.elem=s,this.comp=s.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(s),this.s=PropertyFactory.getProp(s,o.s||{k:0},0,0,this),"e"in o?this.e=PropertyFactory.getProp(s,o.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(s,o.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(s,o.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(s,o.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(s,o.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(s,o.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,l=0,c=1,d=1;this.ne.v>0?a=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:d=1+this.xe.v/100;var _=BezierFactory.getBezierEasing(a,l,c,d).get,h=0,u=this.finalS,g=this.finalE,f=this.data.sh;if(f===2)g===u?h=o>=g?1:0:h=e(0,t(.5/(g-u)+(o-u)/(g-u),1)),h=_(h);else if(f===3)g===u?h=o>=g?0:1:h=1-e(0,t(.5/(g-u)+(o-u)/(g-u),1)),h=_(h);else if(f===4)g===u?h=0:(h=e(0,t(.5/(g-u)+(o-u)/(g-u),1)),h<.5?h*=2:h=1-2*(h-.5)),h=_(h);else if(f===5){if(g===u)h=0;else{var P=g-u;o=t(e(0,o+.5-u),g-u);var m=-P/2+o,v=P/2;h=Math.sqrt(1-m*m/(v*v))}h=_(h)}else f===6?(g===u?h=0:(o=t(e(0,o+.5-u),g-u),h=(1+Math.cos(Math.PI+Math.PI*2*o/(g-u)))/2),h=_(h)):(o>=r(u)&&(o-u<0?h=e(0,t(t(g,1)-(u-o),1)):h=e(0,t(g-o,1))),h=_(h));if(this.sm.v!==100){var p=this.sm.v*.01;p===0&&(p=1e-8);var y=.5-p*.5;h<y?h=0:(h=(h-y)/p,h>1&&(h=1))}return h*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var a=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/a,c=this.s.v/a+l,d=this.e.v/a+l;if(c>d){var _=c;c=d,d=_}this.finalS=c,this.finalE=d}},extendPrototype([DynamicPropertyContainer],i);function n(s,o,a){return new i(s,o,a)}return{getTextSelectorProp:n}})();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},n=PropertyFactory.getProp,s=t.a;this.a={r:s.r?n(e,s.r,0,degToRads,r):i,rx:s.rx?n(e,s.rx,0,degToRads,r):i,ry:s.ry?n(e,s.ry,0,degToRads,r):i,sk:s.sk?n(e,s.sk,0,degToRads,r):i,sa:s.sa?n(e,s.sa,0,degToRads,r):i,s:s.s?n(e,s.s,1,.01,r):i,a:s.a?n(e,s.a,1,0,r):i,o:s.o?n(e,s.o,0,.01,r):i,p:s.p?n(e,s.p,1,0,r):i,sw:s.sw?n(e,s.sw,0,0,r):i,sc:s.sc?n(e,s.sc,1,0,r):i,fc:s.fc?n(e,s.fc,1,0,r):i,fh:s.fh?n(e,s.fh,0,0,r):i,fs:s.fs?n(e,s.fs,0,.01,r):i,fb:s.fb?n(e,s.fb,0,.01,r):i,t:s.t?n(e,s.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e<t;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(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=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,i=this._animatorsData,n=this._textData,s=this.mHelper,o=this._renderType,a=this.renderedLetters.length,l,c,d,_,h=e.l,u,g,f,P,m,v,p,y,C,E,x,M,F,B,V;if(this._hasMaskedPath){if(V=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k=V.v;this._pathData.r.v&&(k=k.reverse()),u={tLength:0,segments:[]},_=k._length-1;var N;for(M=0,d=0;d<_;d+=1)N=bez.buildBezierData(k.v[d],k.v[d+1],[k.o[d][0]-k.v[d][0],k.o[d][1]-k.v[d][1]],[k.i[d+1][0]-k.v[d+1][0],k.i[d+1][1]-k.v[d+1][1]]),u.tLength+=N.segmentLength,u.segments.push(N),M+=N.segmentLength;d=_,V.v.c&&(N=bez.buildBezierData(k.v[d],k.v[0],[k.o[d][0]-k.v[d][0],k.o[d][1]-k.v[d][1]],[k.i[0][0]-k.v[0][0],k.i[0][1]-k.v[0][1]]),u.tLength+=N.segmentLength,u.segments.push(N),M+=N.segmentLength),this._pathData.pi=u}if(u=this._pathData.pi,g=this._pathData.f.v,p=0,v=1,P=0,m=!0,E=u.segments,g<0&&V.v.c)for(u.tLength<Math.abs(g)&&(g=-Math.abs(g)%u.tLength),p=E.length-1,C=E[p].points,v=C.length-1;g<0;)g+=C[v].partialLength,v-=1,v<0&&(p-=1,C=E[p].points,v=C.length-1);C=E[p].points,y=C[v-1],f=C[v],x=f.partialLength}_=h.length,l=0,c=0;var j=e.finalSize*1.2*.714,O=!0,w,T,b,S,D;S=i.length;var A,H=-1,q,Q,J,Z=g,le=p,de=v,Je=-1,Be,ge,$e,te,W,St,Ct,dt,ut="",Pt=this.defaultPropsArray,De;if(e.j===2||e.j===1){var Se=0,wt=0,Et=e.j===2?-.5:-1,ze=0,xt=!0;for(d=0;d<_;d+=1)if(h[d].n){for(Se&&(Se+=wt);ze<d;)h[ze].animatorJustifyOffset=Se,ze+=1;Se=0,xt=!0}else{for(b=0;b<S;b+=1)w=i[b].a,w.t.propType&&(xt&&e.j===2&&(wt+=w.t.v*Et),T=i[b].s,A=T.getMult(h[d].anIndexes[b],n.a[b].s.totalChars),A.length?Se+=w.t.v*A[0]*Et:Se+=w.t.v*A*Et);xt=!1}for(Se&&(Se+=wt);ze<d;)h[ze].animatorJustifyOffset=Se,ze+=1}for(d=0;d<_;d+=1){if(s.reset(),Be=1,h[d].n)l=0,c+=e.yOffset,c+=O?1:0,g=Z,O=!1,this._hasMaskedPath&&(p=le,v=de,C=E[p].points,y=C[v-1],f=C[v],x=f.partialLength,P=0),ut="",dt="",St="",De="",Pt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Je!==h[d].line){switch(e.j){case 1:g+=M-e.lineWidths[h[d].line];break;case 2:g+=(M-e.lineWidths[h[d].line])/2;break;default:break}Je=h[d].line}H!==h[d].ind&&(h[H]&&(g+=h[H].extra),g+=h[d].an/2,H=h[d].ind),g+=r[0]*h[d].an*.005;var Ze=0;for(b=0;b<S;b+=1)w=i[b].a,w.p.propType&&(T=i[b].s,A=T.getMult(h[d].anIndexes[b],n.a[b].s.totalChars),A.length?Ze+=w.p.v[0]*A[0]:Ze+=w.p.v[0]*A),w.a.propType&&(T=i[b].s,A=T.getMult(h[d].anIndexes[b],n.a[b].s.totalChars),A.length?Ze+=w.a.v[0]*A[0]:Ze+=w.a.v[0]*A);for(m=!0,this._pathData.a.v&&(g=h[0].an*.5+(M-this._pathData.f.v-h[0].an*.5-h[h.length-1].an*.5)*H/(_-1),g+=this._pathData.f.v);m;)P+x>=g+Ze||!C?(F=(g+Ze-P)/f.partialLength,Q=y.point[0]+(f.point[0]-y.point[0])*F,J=y.point[1]+(f.point[1]-y.point[1])*F,s.translate(-r[0]*h[d].an*.005,-(r[1]*j)*.01),m=!1):C&&(P+=f.partialLength,v+=1,v>=C.length&&(v=0,p+=1,E[p]?C=E[p].points:V.v.c?(v=0,p=0,C=E[p].points):(P-=f.partialLength,C=null)),C&&(y=f,f=C[v],x=f.partialLength));q=h[d].an/2-h[d].add,s.translate(-q,0,0)}else q=h[d].an/2-h[d].add,s.translate(-q,0,0),s.translate(-r[0]*h[d].an*.005,-r[1]*j*.01,0);for(b=0;b<S;b+=1)w=i[b].a,w.t.propType&&(T=i[b].s,A=T.getMult(h[d].anIndexes[b],n.a[b].s.totalChars),(l!==0||e.j!==0)&&(this._hasMaskedPath?A.length?g+=w.t.v*A[0]:g+=w.t.v*A:A.length?l+=w.t.v*A[0]:l+=w.t.v*A));for(e.strokeWidthAnim&&($e=e.sw||0),e.strokeColorAnim&&(e.sc?ge=[e.sc[0],e.sc[1],e.sc[2]]:ge=[0,0,0]),e.fillColorAnim&&e.fc&&(te=[e.fc[0],e.fc[1],e.fc[2]]),b=0;b<S;b+=1)w=i[b].a,w.a.propType&&(T=i[b].s,A=T.getMult(h[d].anIndexes[b],n.a[b].s.totalChars),A.length?s.translate(-w.a.v[0]*A[0],-w.a.v[1]*A[1],w.a.v[2]*A[2]):s.translate(-w.a.v[0]*A,-w.a.v[1]*A,w.a.v[2]*A));for(b=0;b<S;b+=1)w=i[b].a,w.s.propType&&(T=i[b].s,A=T.getMult(h[d].anIndexes[b],n.a[b].s.totalChars),A.length?s.scale(1+(w.s.v[0]-1)*A[0],1+(w.s.v[1]-1)*A[1],1):s.scale(1+(w.s.v[0]-1)*A,1+(w.s.v[1]-1)*A,1));for(b=0;b<S;b+=1){if(w=i[b].a,T=i[b].s,A=T.getMult(h[d].anIndexes[b],n.a[b].s.totalChars),w.sk.propType&&(A.length?s.skewFromAxis(-w.sk.v*A[0],w.sa.v*A[1]):s.skewFromAxis(-w.sk.v*A,w.sa.v*A)),w.r.propType&&(A.length?s.rotateZ(-w.r.v*A[2]):s.rotateZ(-w.r.v*A)),w.ry.propType&&(A.length?s.rotateY(w.ry.v*A[1]):s.rotateY(w.ry.v*A)),w.rx.propType&&(A.length?s.rotateX(w.rx.v*A[0]):s.rotateX(w.rx.v*A)),w.o.propType&&(A.length?Be+=(w.o.v*A[0]-Be)*A[0]:Be+=(w.o.v*A-Be)*A),e.strokeWidthAnim&&w.sw.propType&&(A.length?$e+=w.sw.v*A[0]:$e+=w.sw.v*A),e.strokeColorAnim&&w.sc.propType)for(W=0;W<3;W+=1)A.length?ge[W]+=(w.sc.v[W]-ge[W])*A[0]:ge[W]+=(w.sc.v[W]-ge[W])*A;if(e.fillColorAnim&&e.fc){if(w.fc.propType)for(W=0;W<3;W+=1)A.length?te[W]+=(w.fc.v[W]-te[W])*A[0]:te[W]+=(w.fc.v[W]-te[W])*A;w.fh.propType&&(A.length?te=addHueToRGB(te,w.fh.v*A[0]):te=addHueToRGB(te,w.fh.v*A)),w.fs.propType&&(A.length?te=addSaturationToRGB(te,w.fs.v*A[0]):te=addSaturationToRGB(te,w.fs.v*A)),w.fb.propType&&(A.length?te=addBrightnessToRGB(te,w.fb.v*A[0]):te=addBrightnessToRGB(te,w.fb.v*A))}}for(b=0;b<S;b+=1)w=i[b].a,w.p.propType&&(T=i[b].s,A=T.getMult(h[d].anIndexes[b],n.a[b].s.totalChars),this._hasMaskedPath?A.length?s.translate(0,w.p.v[1]*A[0],-w.p.v[2]*A[1]):s.translate(0,w.p.v[1]*A,-w.p.v[2]*A):A.length?s.translate(w.p.v[0]*A[0],w.p.v[1]*A[1],-w.p.v[2]*A[2]):s.translate(w.p.v[0]*A,w.p.v[1]*A,-w.p.v[2]*A));if(e.strokeWidthAnim&&(St=$e<0?0:$e),e.strokeColorAnim&&(Ct="rgb("+Math.round(ge[0]*255)+","+Math.round(ge[1]*255)+","+Math.round(ge[2]*255)+")"),e.fillColorAnim&&e.fc&&(dt="rgb("+Math.round(te[0]*255)+","+Math.round(te[1]*255)+","+Math.round(te[2]*255)+")"),this._hasMaskedPath){if(s.translate(0,-e.ls),s.translate(0,r[1]*j*.01+c,0),this._pathData.p.v){B=(f.point[1]-y.point[1])/(f.point[0]-y.point[0]);var Rt=Math.atan(B)*180/Math.PI;f.point[0]<y.point[0]&&(Rt+=180),s.rotate(-Rt*Math.PI/180)}s.translate(Q,J,0),g-=r[0]*h[d].an*.005,h[d+1]&&H!==h[d+1].ind&&(g+=h[d].an/2,g+=e.tr*.001*e.finalSize)}else{switch(s.translate(l,c,0),e.ps&&s.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:s.translate(h[d].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[d].line]),0,0);break;case 2:s.translate(h[d].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[d].line])/2,0,0);break;default:break}s.translate(0,-e.ls),s.translate(q,0,0),s.translate(r[0]*h[d].an*.005,r[1]*j*.01,0),l+=h[d].l+e.tr*.001*e.finalSize}o==="html"?ut=s.toCSS():o==="svg"?ut=s.to2dCSS():Pt=[s.props[0],s.props[1],s.props[2],s.props[3],s.props[4],s.props[5],s.props[6],s.props[7],s.props[8],s.props[9],s.props[10],s.props[11],s.props[12],s.props[13],s.props[14],s.props[15]],De=Be}a<=d?(D=new LetterProps(De,St,Ct,dt,ut,Pt),this.renderedLetters.push(D),a+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[d],this.lettersChangedFlag=D.update(De,St,Ct,dt,ut,Pt)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,i=t.length,n,s="";for(r=0;r<i;r+=1)t[r].ty==="sh"&&(n=t[r].ks.k,s+=buildShapeString(n,n.i.length,!0,e));return s},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,i,n){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break;default:break}t.translate(i,n,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,i=[],n="";t<r;)e[t]==="\r"||e[t]==="�"?(i.push(n),n=""):n+=e[t],t+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var n=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var o=r.l||[],a=!!this.globalData.fontManager.chars;t=o.length;var l,c=this.mHelper,d="",_=this.data.singleShape,h=0,u=0,g=!0,f=r.tr*.001*r.finalSize;if(_&&!a&&!r.sz){var P=this.textContainer,m="start";switch(r.j){case 1:m="end";break;case 2:m="middle";break;default:m="start";break}P.setAttribute("text-anchor",m),P.setAttribute("letter-spacing",f);var v=this.buildTextContents(r.finalText);for(t=v.length,u=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)l=this.textSpans[e].span||createNS("tspan"),l.textContent=v[e],l.setAttribute("x",0),l.setAttribute("y",u),l.style.display="inherit",P.appendChild(l),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=l,u+=r.finalLineHeight;this.layerElement.appendChild(P)}else{var p=this.textSpans.length,y;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!a||!_||e===0){if(l=p>e?this.textSpans[e].span:createNS(a?"g":"text"),p<=e){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=l,a){var C=createNS("g");l.appendChild(C),this.textSpans[e].childSpan=C}this.textSpans[e].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(c.reset(),_&&(o[e].n&&(h=-f,u+=r.yOffset,u+=g?1:0,g=!1),this.applyTextPropertiesToMatrix(r,c,o[e].line,h,u),h+=o[e].l||0,h+=f),a){y=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var E;if(y.t===1)E=new SVGCompElement(y.data,this.globalData,this);else{var x=emptyShapeData;y.data&&y.data.shapes&&(x=this.buildShapeData(y.data,r.finalSize)),E=new SVGShapeElement(x,this.globalData,this)}if(this.textSpans[e].glyph){var M=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(M.layerElement),M.destroy()}this.textSpans[e].glyph=E,E._debug=!0,E.prepareFrame(0),E.renderFrame(),this.textSpans[e].childSpan.appendChild(E.layerElement),y.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else _&&l.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),l.textContent=o[e].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}_&&l&&l.setAttribute("d",d)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,r=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var n,s,o;for(e=0;e<t;e+=1)i[e].n||(n=r[e],s=this.textSpans[e].span,o=this.textSpans[e].glyph,o&&o.renderFrame(),n._mdf.m&&s.setAttribute("transform",n.m),n._mdf.o&&s.setAttribute("opacity",n.o),n._mdf.sw&&s.setAttribute("stroke-width",n.sw),n._mdf.sc&&s.setAttribute("stroke",n.sc),n._mdf.fc&&s.setAttribute("fill",n.fc))}};function ISolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(r);else{var n=t[i],s=n.getMatte(this.layers[e].tt);r.setMatte(s)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,n=this.elements[i],s=n.getMatte(this.layers[t].tt);e.setMatte(s);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var i=0,n;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=t.title,this.svgElement.appendChild(i),r+=n}if(t&&t.description){var s=createNS("desc"),o=createElementID();s.setAttribute("id",o),s.textContent=t.description,this.svgElement.appendChild(s),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var a=createNS("defs");this.svgElement.appendChild(a);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var r,i=t.length,n="_";for(r=0;r<i;r+=1)n+=t[r].transform.key+"_";var s=this.sequences[n];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=s,this.sequenceList.push(s)),s},processSequence:function(t,r){for(var i=0,n=t.transforms.length,s=r;i<n&&!r;){if(t.transforms[i].transform.mProps._mdf){s=!0;break}i+=1}if(s)for(t.finalTransform.reset(),i=n-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=s},processSequences:function(t){var r,i=this.sequenceList.length;for(r=0;r<i;r+=1)this.processSequence(this.sequenceList[r],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",r=null,i=null,n=null;function s(){var l=createNS("svg"),c=createNS("filter"),d=createNS("feColorMatrix");return c.setAttribute("id",t),d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),c.appendChild(d),l.appendChild(c),l.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function o(){r||(n=s(),document.body.appendChild(n),r=createTag("canvas"),i=r.getContext("2d"),i.filter="url
2(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function a(l){return r||o(),r.width=l.width,r.height=l.height,i.filter="url(#"+t+")",r}return{load:o,get:a}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(e){var t,r=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(t=0;t<r;t+=1){i=null;var n=e.data.ef[t].ty;if(registeredEffects[n]){var s=registeredEffects[n].effect;i=new s(e.effectsManager.effectElements[t],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,n=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,i=this.masksProperties.length,n,s,o;for(t.beginPath(),r=0;r<i;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),o=this.viewData[r].v,n=e.applyToPointArray(o.v[0][0],o.v[0][1],0),t.moveTo(n[0],n[1]);var a,l=o._length;for(a=1;a<l;a+=1)s=e.applyToTriplePoints(o.o[a-1],o.i[a],o.v[a]),t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);s=e.applyToTriplePoints(o.o[a-1],o.i[0],o.v[0]),t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas),s=n.getContext("2d");s.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,
vendor: 109,777 bytes, line 2
20,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n=4;t.ty==="rc"?n=5:t.ty==="el"?n=6:t.ty==="sr"&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var s,o=r.length,a;for(s=0;s<o;s+=1)r[s].closed||(a={transforms:i.addTransformSequence(r[s].transforms),trNodes:[]},this.styledShapes.push(a),r[s].elements.push(a))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var n=new DashProperty(this,e.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,i,n){var s,o=e.length-1,a,l,c=[],d=[],_,h,u,g=[].concat(n);for(s=o;s>=0;s-=1){if(_=this.searchProcessedElement(e[s]),_?t[s]=r[_-1]:e[s]._shouldRender=i,e[s].ty==="fl"||e[s].ty==="st"||e[s].ty==="gf"||e[s].ty==="gs")_?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],g),c.push(t[s].style);else if(e[s].ty==="gr"){if(!_)t[s]=this.createGroupElement(e[s]);else for(l=t[s].it.length,a=0;a<l;a+=1)t[s].prevViewData[a]=t[s].it[a];this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,i,g)}else e[s].ty==="tr"?(_||(u=this.createTransformElement(e[s]),t[s]=u),g.push(t[s]),this.addTransformToStyleList(t[s])):e[s].ty==="sh"||e[s].ty==="rc"||e[s].ty==="el"||e[s].ty==="sr"?_||(t[s]=this.createShapeElement(e[s])):e[s].ty==="tm"||e[s].ty==="rd"||e[s].ty==="pb"||e[s].ty==="zz"||e[s].ty==="op"?(_?(h=t[s],h.closed=!1):(h=ShapeModifiers.getModifier(e[s].ty),h.init(this,e[s]),t[s]=h,this.shapeModifiers.push(h)),d.push(h)):e[s].ty==="rp"&&(_?(h=t[s],h.closed=!0):(h=ShapeModifiers.getModifier(e[s].ty),t[s]=h,h.init(this,e,s,t),this.shapeModifiers.push(h),i=!1),d.push(h));this.addProcessedElement(e[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),o=d.length,s=0;s<o;s+=1)d[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,r,i,n,s,o,a,l=this.globalData.renderer,c=this.globalData.canvasContext,d,_;for(e=0;e<t;e+=1)if(_=this.stylesList[e],d=_.type,!((d==="st"||d==="gs")&&_.wi===0||!_.data._shouldRender||_.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),o=_.elements,d==="st"||d==="gs"?(l.ctxStrokeStyle(d==="st"?_.co:_.grd),l.ctxLineWidth(_.wi),l.ctxLineCap(_.lc),l.ctxLineJoin(_.lj),l.ctxMiterLimit(_.ml||0)):l.ctxFillStyle(d==="fl"?_.co:_.grd),l.ctxOpacity(_.coOp),d!=="st"&&d!=="gs"&&c.beginPath(),l.ctxTransform(_.preTransforms.finalTransform.props),i=o.length,r=0;r<i;r+=1){for((d==="st"||d==="gs")&&(c.beginPath(),_.da&&(c.setLineDash(_.da),c.lineDashOffset=_.do)),a=o[r].trNodes,s=a.length,n=0;n<s;n+=1)a[n].t==="m"?c.moveTo(a[n].p[0],a[n].p[1]):a[n].t==="c"?c.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):c.closePath();(d==="st"||d==="gs")&&(l.ctxStroke(),_.da&&c.setLineDash(this.dashResetter))}d!=="st"&&d!=="gs"&&this.globalData.renderer.ctxFill(_.r),l.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,i){var n,s=t.length-1,o;for(o=e,n=s;n>=0;n-=1)t[n].ty==="tr"?(o=r[n].transform,this.renderShapeTransform(e,o)):t[n].ty==="sh"||t[n].ty==="el"||t[n].ty==="rc"||t[n].ty==="sr"?this.renderPath(t[n],r[n]):t[n].ty==="fl"?this.renderFill(t[n],r[n],o):t[n].ty==="st"?this.renderStroke(t[n],r[n],o):t[n].ty==="gf"||t[n].ty==="gs"?this.renderGradientFill(t[n],r[n],o):t[n].ty==="gr"?this.renderShape(o,t[n].it,r[n].it):t[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,i=t.paths,n,s,o,a=i._length;r.length=0;var l=e.transforms.finalTransform;for(o=0;o<a;o+=1){var c=i.shapes[o];if(c&&c.v){for(s=c._length,n=1;n<s;n+=1)n===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),r.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});s===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&s&&(r.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,i=t.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var i=t.style,n;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var s=this.globalData.canvasContext,o=t.s.v,a=t.e.v;if(e.t===1)n=s.createLinearGradient(o[0],o[1],a[0],a[1]);else{var l=Math.sqrt(Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)),c=Math.atan2(a[1]-o[1],a[0]-o[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var _=l*d,h=Math.cos(c+t.a.v)*_+o[0],u=Math.sin(c+t.a.v)*_+o[1];n=s.createRadialGradient(h,u,0,o[0],o[1],l)}var g,f=e.g.p,P=t.g.c,m=1;for(g=0;g<f;g+=1)t.g._hasOpacity&&t.g._collapsable&&(m=t.g.o[g*2+1]),n.addColorStop(P[g*4]/100,"rgba("+P[g*4+1]+","+P[g*4+2]+","+P[g*4+3]+","+m+")");i.grd=n}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var i=t.style,n=t.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),n,s,o=e.l,a=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,s=e.finalText.length;var l,c,d,_,h,u,g,f,P,m,v=this.data.singleShape,p=e.tr*.001*e.finalSize,y=0,C=0,E=!0,x=0;for(n=0;n<s;n+=1){l=this.globalData.fontManager.getCharData(e.finalText[n],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),c=l&&l.data||{},a.reset(),v&&o[n].n&&(y=-p,C+=e.yOffset,C+=E?1:0,E=!1),h=c.shapes?c.shapes[0].it:[],g=h.length,a.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,a,o[n].line,y,C),P=createSizedArray(g-1);var M=0;for(u=0;u<g;u+=1)if(h[u].ty==="sh"){for(_=h[u].ks.k.i.length,f=h[u].ks.k,m=[],d=1;d<_;d+=1)d===1&&m.push(a.applyToX(f.v[0][0],f.v[0][1],0),a.applyToY(f.v[0][0],f.v[0][1],0)),m.push(a.applyToX(f.o[d-1][0],f.o[d-1][1],0),a.applyToY(f.o[d-1][0],f.o[d-1][1],0),a.applyToX(f.i[d][0],f.i[d][1],0),a.applyToY(f.i[d][0],f.i[d][1],0),a.applyToX(f.v[d][0],f.v[d][1],0),a.applyToY(f.v[d][0],f.v[d][1],0));m.push(a.applyToX(f.o[d-1][0],f.o[d-1][1],0),a.applyToY(f.o[d-1][0],f.o[d-1][1],0),a.applyToX(f.i[0][0],f.i[0][1],0),a.applyToY(f.i[0][0],f.i[0][1],0),a.applyToX(f.v[0][0],f.v[0][1],0),a.applyToY(f.v[0][0],f.v[0][1],0)),P[M]=m,M+=1}v&&(y+=o[n].l,y+=p),this.textSpans[x]?this.textSpans[x].elem=P:this.textSpans[x]={elem:P},x+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,r,i,n,s,o,a=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;r=l.length;var c,d=null,_=null,h=null,u,g,f=this.globalData.renderer;for(t=0;t<r;t+=1)if(!l[t].n){if(c=a[t],c&&(f.save(),f.ctxTransform(c.p),f.ctxOpacity(c.o)),this.fill){for(c&&c.fc?d!==c.fc&&(f.ctxFillStyle(c.fc),d=c.fc):d!==this.values.fill&&(d=this.values.fill,f.ctxFillStyle(this.values.fill)),u=this.textSpans[t].elem,n=u.length,this.globalData.canvasContext.beginPath(),i=0;i<n;i+=1)for(g=u[i],o=g.length,this.globalData.canvasContext.moveTo(g[0],g[1]),s=2;s<o;s+=6)this.globalData.canvasContext.bezierCurveTo(g[s],g[s+1],g[s+2],g[s+3],g[s+4],g[s+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(c&&c.sw?h!==c.sw&&(h=c.sw,f.ctxLineWidth(c.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),c&&c.sc?_!==c.sc&&(_=c.sc,f.ctxStrokeStyle(c.sc)):_!==this.values.stroke&&(_=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),u=this.textSpans[t].elem,n=u.length,this.globalData.canvasContext.beginPath(),i=0;i<n;i+=1)for(g=u[i],o=g.length,this.globalData.canvasContext.moveTo(g[0],g[1]),s=2;s<o;s+=6)this.globalData.canvasContext.bezierCurveTo(g[s],g[s+1],g[s+2],g[s+3],g[s+4],g[s+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}c&&this.globalData.renderer.restore()}};function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),r=this.img.width,i=this.img.height,n=r/i,s=this.assetData.w/this.assetData.h,o,a,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>s&&l==="xMidYMid slice"||n<s&&l!=="xMidYMid slice"?(a=i,o=a*s):(o=r,a=o/s),t.drawImage(this.img,(r-o)/2,(i-a)/2,o,a,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,i){this.canvasContext.fillRect(e,t,r,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var r,i;e?(r=e,i=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var n,s;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),a=o[1]||"meet",l=o[0]||"xMidYMid",c=l.substr(0,4),d=l.substr(4);n=r/i,s=this.transformCanvas.w/this.transformCanvas.h,s>n&&a==="meet"||s<n&&a==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),c==="xMid"&&(s<n&&a==="meet"||s>n&&a==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:c==="xMax"&&(s<n&&a==="meet"||s>n&&a==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,d==="YMid"&&(s>n&&a==="meet"||s<n&&a==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:d==="YMax"&&(s>n&&a==="meet"||s<n&&a==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],r=t.transform,i,n=this.cTr.props;for(i=0;i<16;i+=1)n[i]=r[i];if(e){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)r.transform[i]=t[i];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=r.opacity,n.fillStyle=r.fillStyle,n.strokeStyle=r.strokeStyle,n.lineWidth=r.lineWidth,n.lineCap=r.lineCap,n.lineJoin=r.lineJoin,n.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,r=this.layers.length;for(t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();t.transform=r,t.webkitTransform=r}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r=e.sh.v,i=e.transformers,n,s=r._length,o,a,l,c;if(!(s<=1)){for(n=0;n<s-1;n+=1)o=this.getTransformedPoint(i,r.v[n]),a=this.getTransformedPoint(i,r.o[n]),l=this.getTransformedPoint(i,r.i[n+1]),c=this.getTransformedPoint(i,r.v[n+1]),this.checkBounds(o,a,l,c,t);r.c&&(o=this.getTransformedPoint(i,r.v[n]),a=this.getTransformedPoint(i,r.o[n]),l=this.getTransformedPoint(i,r.i[0]),c=this.getTransformedPoint(i,r.v[0]),this.checkBounds(o,a,l,c,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,i,n){this.getBoundsOfCurve(e,t,r,i);var s=this.shapeBoundingBox;n.x=bmMin(s.left,n.x),n.xMax=bmMax(s.right,n.xMax),n.y=bmMin(s.top,n.y),n.yMax=bmMax(s.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,i){for(var n=[[e[0],i[0]],[e[1],i[1]]],s,o,a,l,c,d,_,h=0;h<2;++h)o=6*e[h]-12*t[h]+6*r[h],s=-3*e[h]+9*t[h]-9*r[h]+3*i[h],a=3*t[h]-3*e[h],o|=0,s|=0,a|=0,s===0&&o===0||(s===0?(l=-a/o,l>0&&l<1&&n[h].push(this.calculateF(l,e,t,r,i,h))):(c=o*o-4*a*s,c>=0&&(d=(-o+bmSqrt(c))/(2*s),d>0&&d<1&&n[h].push(this.calculateF(d,e,t,r,i,h)),_=(-o-bmSqrt(c))/(2*s),_>0&&_<1&&n[h].push(this.calculateF(_,e,t,r,i,h)))));this.shapeBoundingBox.left=bmMin.apply(null,n[0]),this.shapeBoundingBox.top=bmMin.apply(null,n[1]),this.shapeBoundingBox.right=bmMax.apply(null,n[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,n[1])},HShapeElement.prototype.calculateF=function(e,t,r,i,n,s){return bmPow(1-e,3)*t[s]+3*bmPow(1-e,2)*e*r[s]+3*(1-e)*bmPow(e,2)*i[s]+bmPow(e,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var n=e.keyframes[i].s;n>r&&(r=n)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=n,i.webkitTransform=n}}};function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var n=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=n}var o,a,l=e.l;a=l.length;var c,d,_,h=this.mHelper,u,g="",f=0;for(o=0;o<a;o+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?c=this.textPaths[f]:(c=createNS("path"),c.setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?(d=this.textSpans[f],_=d.children[0]):(d=createTag("div"),d.style.lineHeight=0,_=createNS("svg"),_.appendChild(c),styleDiv(d)))):this.isMasked?c=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(d=this.textSpans[f],c=this.textPaths[f]):(d=createTag("span"),styleDiv(d),c=createTag("span"),styleDiv(c),d.appendChild(c)),this.globalData.fontManager.chars){var P=this.globalData.fontManager.getCharData(e.finalText[o],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),m;if(P?m=P.data:m=null,h.reset(),m&&m.shapes&&m.shapes.length&&(u=m.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),g=this.createPathShape(h,u),c.setAttribute("d",g)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(d),m&&m.shapes){document.body.appendChild(_);var v=_.getBBox();_.setAttribute("width",v.width+2),_.setAttribute("height",v.height+2),_.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var p=_.style,y="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";p.transform=y,p.webkitTransform=y,l[o].yOffset=v.y-1}else _.setAttribute("width",1),_.setAttribute("height",1);d.appendChild(_)}}else if(c.textContent=l[o].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(d);var C=c.style,E="translate3d(0,"+-e.finalSize/1.2+"px,0)";C.transform=E,C.webkitTransform=E}this.isMasked?this.textSpans[f]=c:this.textSpans[f]=d,this.textSpans[f].style.display="block",this.textPaths[f]=c,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,i,n=0,s=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;i=o.length;var a,l,c;for(r=0;r<i;r+=1)o[r].n?n+=1:(l=this.textSpans[r],c=this.textPaths[r],a=s[n],n+=1,a._mdf.m&&(this.isMasked?l.setAttribute("transform",a.m):(l.style.webkitTransform=a.m,l.style.transform=a.m)),l.style.opacity=a.o,a.sw&&a._mdf.sw&&c.setAttribute("stroke-width",a.sw),a.sc&&a._mdf.sc&&c.setAttribute("stroke",a.sc),a.fc&&a._mdf.fc&&(c.setAttribute("fill",a.fc),c.style.color=a.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height));var _=1;if(this.currentBBox.w!==d.width+_*2||this.currentBBox.h!==d.height+_*2||this.currentBBox.x!==d.x-_||this.currentBBox.y!==d.y-_){this.currentBBox.w=d.width+_*2,this.currentBBox.h=d.height+_*2,this.currentBBox.x=d.x-_,this.currentBBox.y=d.y-_,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=h,e.webkitTransform=h}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var n,s=e.ks.or.k.length;for(n=0;n<s;n+=1)e.ks.or.k[n].to=null,e.ks.or.k[n].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,r,i,n;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){i=r.perspectiveElem.style,n=r.container.style;var s=this.pe.v+"px",o="0px 0px 0px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=s,i.webkitPerspective=s,n.transformOrigin=o,n.mozTransformOrigin=o,n.webkitTransformOrigin=o,i.transform=a,i.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,r;if(this.hierarchy)for(r=this.hierarchy.length,t=0;t<r;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(r=this.hierarchy.length-1,t=r;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;this.p?n=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:n=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),o=[n[0]/s,n[1]/s,n[2]/s],a=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],a),c=Math.atan2(o[0],-o[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var _,h,u;for(t=0;t<r;t+=1)if(_=this.comp.threeDElements[t],_.type==="3d"){if(d){var g=this.mat.toCSS();u=_.container.style,u.transform=g,u.webkitTransform=g}this.pe._mdf&&(h=_.perspectiveElem.style,h.perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var n=0,s,o,a;n<t;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement&&(o=this.elements[n],a=this.layers[n].ddd?this.getThreeDContainerByPos(n):o.getBaseElement(),s=a||s),n+=1;s?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,s):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r=createTag("div"),i,n;styleDiv(r);var s=createTag("div");if(styleDiv(s),t==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var o="50% 50%";i.webkitTransformOrigin=o,i.mozTransformOrigin=o,i.transformOrigin=o,n=s.style;var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.transform=a,n.webkitTransform=a}r.appendChild(s);var l={container:s,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,i="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(i!=="2d"&&(i="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;r<i;){if(t<=this.threeDElements[r].endPos){for(var n=this.threeDElements[r].startPos,s;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(s=this.elements[n].getBaseElement()),n+=1;s?this.threeDElements[r].container.insertBefore(e,s):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),i.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var s=createNS("defs");n.appendChild(s),this.data=e,this.setupGlobalData(e,n),this.globalData.defs=s,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,r=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,n,s,o,a;i>r?(n=e/this.globalData.compSize.w,s=e/this.globalData.compSize.w,o=0,a=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(n=t/this.globalData.compSize.h,s=t/this.globalData.compSize.h,o=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,a=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+n+",0,0,0,0,"+s+",0,0,0,0,1,0,"+o+","+a+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r<i;r+=1){var n=this.threeDElements[r].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,i=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t],i,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}};function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r=0,i;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=(function(){return function(e){function t(r){for(var i=0,n=e.layers.length;i<n;){if(e.layers[i].nm===r||e.layers[i].ind===r)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}})();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(e)}function seedRandom(e,t){var r=this,i=256,n=6,s=52,o="random",a=t.pow(i,n),l=t.pow(2,s),c=l*2,d=i-1,_;function h(p,y,C){var E=[];y=y===!0?{entropy:!0}:y||{};var x=P(f(y.entropy?[p,v(e)]:p===null?m():p,3),E),M=new u(E),F=function(){for(var V=M.g(n),k=a,N=0;V<l;)V=(V+N)*i,k*=i,N=M.g(1);for(;V>=c;)V/=2,k/=2,N>>>=1;return(V+N)/k};return F.int32=function(){return M.g(4)|0},F.quick=function(){return M.g(4)/4294967296},F.double=F,P(v(M.S),e),(y.pass||C||function(B,V,k,N){return N&&(N.S&&g(N,M),B.state=function(){return g(M,{})}),k?(t[o]=B,V):B})(F,x,"global"in y?y.global:this==t,y.state)}t["seed"+o]=h;function u(p){var y,C=p.length,E=this,x=0,M=E.i=E.j=0,F=E.S=[];for(C||(p=[C++]);x<i;)F[x]=x++;for(x=0;x<i;x++)F[x]=F[M=d&M+p[x%C]+(y=F[x])],F[M]=y;E.g=function(B){for(var V,k=0,N=E.i,j=E.j,O=E.S;B--;)V=O[N=d&N+1],k=k*i+O[d&(O[N]=O[j=d&j+V])+(O[j]=V)];return E.i=N,E.j=j,k}}function g(p,y){return y.i=p.i,y.j=p.j,y.S=p.S.slice(),y}function f(p,y){var C=[],E=_typeof$2(p),x;if(y&&E=="object")for(x in p)try{C.push(f(p[x],y-1))}catch{}return C.length?C:E=="string"?p:p+"\0"}function P(p,y){for(var C=p+"",E,x=0;x<C.length;)y[d&x]=d&(E^=y[d&x]*19)+C.charCodeAt(x++);return v(y)}function m(){try{if(_)return v(_.randomBytes(i));var p=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(p),v(p)}catch{var y=r.navigator,C=y&&y.plugins;return[+new Date,r,C,r.screen,v(e)]}}function v(p){return String.fromCharCode.apply(0,p)}P(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(e)}var ExpressionManager=(function(){"use strict";var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,n=[];for(r=0;r<i;r+=1)n[r]=-e[r];return n}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t)||r==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,s=e.length,o=t.length,a=[];n<s||n<o;)(typeof e[n]=="number"||e[n]instanceof Number)&&(typeof t[n]=="number"||t[n]instanceof Number)?a[n]=e[n]+t[n]:a[n]=t[n]===void 0?e[n]:e[n]||t[n],n+=1;return a}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t))return r==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,s=e.length,o=t.length,a=[];n<s||n<o;)(typeof e[n]=="number"||e[n]instanceof Number)&&(typeof t[n]=="number"||t[n]instanceof Number)?a[n]=e[n]-t[n]:a[n]=t[n]===void 0?e[n]:e[n]||t[n],n+=1;return a}return 0}function mul(e,t){var r=_typeof$1(e),i=_typeof$1(t),n;if(isNumerable(r,e)&&isNumerable(i,t))return e*t;var s,o;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(o=e.length,n=createTypedArray("float32",o),s=0;s<o;s+=1)n[s]=e[s]*t;return n}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,n=createTypedArray("float32",o),s=0;s<o;s+=1)n[s]=e*t[s];return n}return 0}function div(e,t){var r=_typeof$1(e),i=_typeof$1(t),n;if(isNumerable(r,e)&&isNumerable(i,t))return e/t;var s,o;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(o=e.length,n=createTypedArray("float32",o),s=0;s<o;s+=1)n[s]=e[s]/t;return n}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,n=createTypedArray("float32",o),s=0;s<o;s+=1)n[s]=e/t[s];return n}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var i=r;r=t,t=i}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,i=Math.min(e.length,t.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(t[r]-e[r],2);return Math.sqrt(n)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],i=e[2],n=Math.max(t,r,i),s=Math.min(t,r,i),o,a,l=(n+s)/2;if(n===s)o=0,a=0;else{var c=n-s;switch(a=l>.5?c/(2-n-s):c/(n+s),n){case t:o=(r-i)/c+(r<i?6:0);break;case r:o=(i-t)/c+2;break;case i:o=(t-r)/c+4;break;default:break}o/=6}return[o,a,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t=e[0],r=e[1],i=e[2],n,s,o;if(r===0)n=i,o=i,s=i;else{var a=i<.5?i*(1+r):i+r-i*r,l=2*i-a;n=hue2rgb(l,a,t+1/3),s=hue2rgb(l,a,t),o=hue2rgb(l,a,t-1/3)}return[n,s,o,e[3]]}function linear(e,t,r,i,n){if((i===void 0||n===void 0)&&(i=t,n=r,t=0,r=1),r<t){var s=r;r=t,t=s}if(e<=t)return i;if(e>=r)return n;var o=r===t?0:(e-t)/(r-t);if(!i.length)return i+(n-i)*o;var a,l=i.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=i[a]+(n[a]-i[a])*o;return c}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,i=t.length;e||(e=createTypedArray("float32",i));var n=createTypedArray("float32",i),s=BMMath.random();for(r=0;r<i;r+=1)n[r]=e[r]+s*(t[r]-e[r]);return n}e===void 0&&(e=0);var o=BMMath.random();return e+o*(t-e)}function createPath(e,t,r,i){var n,s=e.length,o=shapePool.newElement();o.setPathData(!!i,s);var a=[0,0],l,c;for(n=0;n<s;n+=1)l=t&&t[n]?t[n]:a,c=r&&r[n]?r[n]:a,o.setTripleAt(e[n][0],e[n][1],c[0]+e[n][0],c[1]+e[n][1],l[0]+e[n][0],l[1]+e[n][1],n,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,r){var i,n,s=this.pv.length?this.pv.length:1,o=createTypedArray("float32",s);t=5;var a=Math.floor(time*t);for(i=0,n=0;i<a;){for(n=0;n<s;n+=1)o[n]+=-r+r*2*BMMath.random();i+=1}var l=time*t,c=l-Math.floor(l),d=createTypedArray("float32",s);if(s>1){for(n=0;n<s;n+=1)d[n]=this.pv[n]+o[n]+(-r+r*2*BMMath.random())*c;return d}return this.pv+o[0]+(-r+r*2*BMMath.random())*c}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,n=-Math.atan2(r[1],r[2])/degToRads;return[n,i,0]}function easeOut(e,t,r,i,n){return applyEase(easeOutBez,e,t,r,i,n)}function easeIn(e,t,r,i,n){return applyEase(easeInBez,e,t,r,i,n)}function ease(e,t,r,i,n){return applyEase(easeInOutBez,e,t,r,i,n)}function applyEase(e,t,r,i,n,s){n===void 0?(n=r,s=i):t=(t-r)/(i-r),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(n)){var a,l=n.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=(s[a]-n[a])*o+n[a];return c}return(s-n)*o+n}function nearestKey(e){var t,r=data.k.length,i,n;if(!data.k.length||typeof data.k[0]=="number")i=0,n=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,n=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){i=t+1,n=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,n=data.k[t+1].t):(i=t+1,n=data.k[t].t);break}i===-1&&(i=t+1,n=data.k[t].t)}var s={};return s.index=i,s.time=n/elem.comp.globalData.frameRate,s}function key(e){var t,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=n.length,r=0;r<i;r+=1)t[r]=n[r],t.value[r]=n[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(r){var i=0,n=[];function s(){i+=1}function o(){i-=1,i===0&&l()}function a(c){n.indexOf(c)===-1&&n.push(c)}function l(){var c,d=n.length;for(c=0;c<d;c+=1)n[c].release();n.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=s,r.renderer.globalData.popExpression=o,r.renderer.globalData.registerExpressionProperty=a}return e})(),MaskManagerInterface=(function(){function e(r,i){this._mask=r,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(i){var n=createSizedArray(i.viewData.length),s,o=i.viewData.length;for(s=0;s<o;s+=1)n[s]=new e(i.viewData[s],i.masksProperties[s]);var a=function(c){for(s=0;s<o;){if(i.masksProperties[s].nm===c)return n[s];s+=1}return null};return a};return t})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(o,a,l){Object.defineProperty(o,"velocity",{get:function(){return a.getVelocityAtTime(a.comp.currentFrame)}}),o.numKeys=a.keyframes?a.keyframes.length:0,o.key=function(c){if(!o.numKeys)return 0;var d="";"s"in a.keyframes[c-1]?d=a.keyframes[c-1].s:"e"in a.keyframes[c-2]?d=a.keyframes[c-2].e:d=a.keyframes[c-2].s;var _=l==="unidimensional"?new Number(d):Object.assign({},d);return _.time=a.keyframes[c-1].t/a.elem.comp.globalData.frameRate,_.value=l==="unidimensional"?d[0]:d,_},o.valueAtTime=a.getValueAtTime,o.speedAtTime=a.getSpeedAtTime,o.velocityAtTime=a.getVelocityAtTime,o.propertyGroup=a.propertyGroup}function i(o){(!o||!("pv"in o))&&(o=e);var a=1/o.mult,l=o.pv*a,c=new Number(l);return c.value=l,r(c,o,"unidimensional"),function(){return o.k&&o.getValue(),l=o.v*a,c.value!==l&&(c=new Number(l),c.value=l,c[0]=l,r(c,o,"unidimensional")),c}}function n(o){(!o||!("pv"in o))&&(o=t);var a=1/o.mult,l=o.data&&o.data.l||o.pv.length,c=createTypedArray("float32",l),d=createTypedArray("float32",l);return c.value=d,r(c,o,"multidimensional"),function(){o.k&&o.getValue();for(var _=0;_<l;_+=1)d[_]=o.v[_]*a,c[_]=d[_];return c}}function s(){return e}return function(o){return o?o.propType==="unidimensional"?i(o):n(o):s}})(),TransformExpressionInterface=(function(){return function(e){function t(o){switch(o){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var r,i,n,s;return e.p?s=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(n=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?s():[r(),i(),n?n():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}})(),LayerExpressionInterface=(function(){function e(c){var d=new Matrix;if(c!==void 0){var _=this._elem.finalTransform.mProp.getValueAtTime(c);_.clone(d)}else{var h=this._elem.finalTransform.mProp;h.applyToMatrix(d)}return d}function t(c,d){var _=this.getMatrix(d);return _.props[12]=0,_.props[13]=0,_.props[14]=0,this.applyPoint(_,c)}function r(c,d){var _=this.getMatrix(d);return this.applyPoint(_,c)}function i(c,d){var _=this.getMatrix(d);return _.props[12]=0,_.props[13]=0,_.props[14]=0,this.invertPoint(_,c)}function n(c,d){var _=this.getMatrix(d);return this.invertPoint(_,c)}function s(c,d){if(this._elem.hierarchy&&this._elem.hierarchy.length){var _,h=this._elem.hierarchy.length;for(_=0;_<h;_+=1)this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(d[0],d[1],d[2]||0)}function o(c,d){if(this._elem.hierarchy&&this._elem.hierarchy.length){var _,h=this._elem.hierarchy.length;for(_=0;_<h;_+=1)this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(d)}function a(c){var d=new Matrix;if(d.reset(),this._elem.finalTransform.mProp.applyToMatrix(d),this._elem.hierarchy&&this._elem.hierarchy.length){var _,h=this._elem.hierarchy.length;for(_=0;_<h;_+=1)this._elem.hierarchy[_].finalTransform.mProp.applyToMatrix(d);return d.inversePoint(c)}return d.inversePoint(c)}function l(){return[1,1,1,1]}return function(c){var d;function _(f){u.mask=new MaskManagerInterface(f,c)}function h(f){u.effect=f}function u(f){switch(f){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return d;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=e,u.invertPoint=o,u.applyPoint=s,u.toWorld=r,u.toWorldVec=t,u.fromWorld=n,u.fromWorldVec=i,u.toComp=r,u.fromComp=a,u.sampleImage=l,u.sourceRectAtTime=c.sourceRectAtTime.bind(c),u._elem=c,d=TransformExpressionInterface(c.finalTransform.mProp);var g=getDescriptor(d,"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(d,"rotation"),scale:getDescriptor(d,"scale"),position:getDescriptor(d,"position"),opacity:getDescriptor(d,"opacity"),anchorPoint:g,anchor_point:g,transform:{get:function(){return d}},active:{get:function(){return c.isInRange}}}),u.startTime=c.data.st,u.index=c.data.ind,u.source=c.data.refId,u.height=c.data.ty===0?c.data.h:100,u.width=c.data.ty===0?c.data.w:100,u.inPoint=c.data.ip/c.comp.globalData.frameRate,u.outPoint=c.data.op/c.comp.globalData.frameRate,u._name=c.data.nm,u.registerMaskInterface=_,u.registerEffectsInterface=h,u}})(),propertyGroupFactory=(function(){return function(e,t){return function(r){return r=r===void 0?1:r,r<=0?e:t(r-1)}}})(),PropertyInterface=(function(){return function(e,t){var r={_name:e};function i(n){return n=n===void 0?1:n,n<=0?r:t(n-1)}return i}})(),EffectsExpressionInterface=(function(){var e={createEffectsInterface:t};function t(n,s){if(n.effectsManager){var o=[],a=n.data.ef,l,c=n.effectsManager.effectElements.length;for(l=0;l<c;l+=1)o.push(r(a[l],n.effectsManager.effectElements[l],s,n));var d=n.data.ef||[],_=function(u){for(l=0,c=d.length;l<c;){if(u===d[l].nm||u===d[l].mn||u===d[l].ix)return o[l];l+=1}return null};return Object.defineProperty(_,"numProperties",{get:function(){return d.length}}),_}return null}function r(n,s,o,a){function l(u){for(var g=n.ef,f=0,P=g.length;f<P;){if(u===g[f].nm||u===g[f].mn||u===g[f].ix)return g[f].ty===5?d[f]:d[f]();f+=1}throw new Error}var c=propertyGroupFactory(l,o),d=[],_,h=n.ef.length;for(_=0;_<h;_+=1)n.ef[_].ty===5?d.push(r(n.ef[_],s.effectElements[_],s.effectElements[_].propertyGroup,a)):d.push(i(s.effectElements[_],n.ef[_].ty,a,c));return n.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return d[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:c}}),l.enabled=n.en!==0,l.active=l.enabled,l}function i(n,s,o,a){var l=ExpressionPropertyInterface(n.p);function c(){return s===10?o.comp.compInterface(n.p.v):l()}return n.p.setGroupProperty&&n.p.setGroupProperty(PropertyInterface("",a)),c}return e})(),ShapePathInterface=(function(){return function(t,r,i){var n=r.sh;function s(a){return a==="Shape"||a==="shape"||a==="Path"||a==="path"||a==="ADBE Vector Shape"||a===2?s.path:null}var o=propertyGroupFactory(s,i);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(s,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),s}})(),ShapeExpressionInterface=(function(){function e(g,f,P){var m=[],v,p=g?g.length:0;for(v=0;v<p;v+=1)g[v].ty==="gr"?m.push(r(g[v],f[v],P)):g[v].ty==="fl"?m.push(i(g[v],f[v],P)):g[v].ty==="st"?m.push(o(g[v],f[v],P)):g[v].ty==="tm"?m.push(a(g[v],f[v],P)):g[v].ty==="tr"||(g[v].ty==="el"?m.push(c(g[v],f[v],P)):g[v].ty==="sr"?m.push(d(g[v],f[v],P)):g[v].ty==="sh"?m.push(ShapePathInterface(g[v],f[v],P)):g[v].ty==="rc"?m.push(_(g[v],f[v],P)):g[v].ty==="rd"?m.push(h(g[v],f[v],P)):g[v].ty==="rp"?m.push(u(g[v],f[v],P)):g[v].ty==="gf"?m.push(n(g[v],f[v],P)):m.push(s(g[v],f[v],P)));return m}function t(g,f,P){var m,v=function(C){for(var E=0,x=m.length;E<x;){if(m[E]._name===C||m[E].mn===C||m[E].propertyIndex===C||m[E].ix===C||m[E].ind===C)return m[E];E+=1}return typeof C=="number"?m[C-1]:null};v.propertyGroup=propertyGroupFactory(v,P),m=e(g.it,f.it,v.propertyGroup),v.numProperties=m.length;var p=l(g.it[g.it.length-1],f.it[f.it.length-1],v.propertyGroup);return v.transform=p,v.propertyIndex=g.cix,v._name=g.nm,v}function r(g,f,P){var m=function(C){switch(C){case"ADBE Vectors Group":case"Contents":case 2:return m.content;default:return m.transform}};m.propertyGroup=propertyGroupFactory(m,P);var v=t(g,f,m.propertyGroup),p=l(g.it[g.it.length-1],f.it[f.it.length-1],m.propertyGroup);return m.content=v,m.transform=p,Object.defineProperty(m,"_name",{get:function(){return g.nm}}),m.numProperties=g.np,m.propertyIndex=g.ix,m.nm=g.nm,m.mn=g.mn,m}function i(g,f,P){function m(v){return v==="Color"||v==="color"?m.color:v==="Opacity"||v==="opacity"?m.opacity:null}return Object.defineProperties(m,{color:{get:ExpressionPropertyInterface(f.c)},opacity:{get:ExpressionPropertyInterface(f.o)},_name:{value:g.nm},mn:{value:g.mn}}),f.c.setGroupProperty(PropertyInterface("Color",P)),f.o.setGroupProperty(PropertyInterface("Opacity",P)),m}function n(g,f,P){function m(v){return v==="Start Point"||v==="start point"?m.startPoint:v==="End Point"||v==="end point"?m.endPoint:v==="Opacity"||v==="opacity"?m.opacity:null}return Object.defineProperties(m,{startPoint:{get:ExpressionPropertyInterface(f.s)},endPoint:{get:ExpressionPropertyInterface(f.e)},opacity:{get:ExpressionPropertyInterface(f.o)},type:{get:function(){return"a"}},_name:{value:g.nm},mn:{value:g.mn}}),f.s.setGroupProperty(PropertyInterface("Start Point",P)),f.e.setGroupProperty(PropertyInterface("End Point",P)),f.o.setGroupProperty(PropertyInterface("Opacity",P)),m}function s(){function g(){return null}return g}function o(g,f,P){var m=propertyGroupFactory(x,P),v=propertyGroupFactory(E,m);function p(M){Object.defineProperty(E,g.d[M].nm,{get:ExpressionPropertyInterface(f.d.dataProps[M].p)})}var y,C=g.d?g.d.length:0,E={};for(y=0;y<C;y+=1)p(y),f.d.dataProps[y].p.setGroupProperty(v);function x(M){return M==="Color"||M==="color"?x.color:M==="Opacity"||M==="opacity"?x.opacity:M==="Stroke Width"||M==="stroke width"?x.strokeWidth:null}return Object.defineProperties(x,{color:{get:ExpressionPropertyInterface(f.c)},opacity:{get:ExpressionPropertyInterface(f.o)},strokeWidth:{get:ExpressionPropertyInterface(f.w)},dash:{get:function(){return E}},_name:{value:g.nm},mn:{value:g.mn}}),f.c.setGroupProperty(PropertyInterface("Color",m)),f.o.setGroupProperty(PropertyInterface("Opacity",m)),f.w.setGroupProperty(PropertyInterface("Stroke Width",m)),x}function a(g,f,P){function m(p){return p===g.e.ix||p==="End"||p==="end"?m.end:p===g.s.ix?m.start:p===g.o.ix?m.offset:null}var v=propertyGroupFactory(m,P);return m.propertyIndex=g.ix,f.s.setGroupProperty(PropertyInterface("Start",v)),f.e.setGroupProperty(PropertyInterface("End",v)),f.o.setGroupProperty(PropertyInterface("Offset",v)),m.propertyIndex=g.ix,m.propertyGroup=P,Object.defineProperties(m,{start:{get:ExpressionPropertyInterface(f.s)},end:{get:ExpressionPropertyInterface(f.e)},offset:{get:ExpressionPropertyInterface(f.o)},_name:{value:g.nm}}),m.mn=g.mn,m}function l(g,f,P){function m(p){return g.a.ix===p||p==="Anchor Point"?m.anchorPoint:g.o.ix===p||p==="Opacity"?m.opacity:g.p.ix===p||p==="Position"?m.position:g.r.ix===p||p==="Rotation"||p==="ADBE Vector Rotation"?m.rotation:g.s.ix===p||p==="Scale"?m.scale:g.sk&&g.sk.ix===p||p==="Skew"?m.skew:g.sa&&g.sa.ix===p||p==="Skew Axis"?m.skewAxis:null}var v=propertyGroupFactory(m,P);return f.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",v)),f.transform.mProps.p.setGroupProperty(PropertyInterface("Position",v)),f.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",v)),f.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",v)),f.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",v)),f.transform.mProps.sk&&(f.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",v)),f.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",v))),f.transform.op.setGroupProperty(PropertyInterface("Opacity",v)),Object.defineProperties(m,{opacity:{get:ExpressionPropertyInterface(f.transform.mProps.o)},position:{get:ExpressionPropertyInterface(f.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(f.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(f.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(f.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(f.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(f.transform.mProps.sa)},_name:{value:g.nm}}),m.ty="tr",m.mn=g.mn,m.propertyGroup=P,m}function c(g,f,P){function m(y){return g.p.ix===y?m.position:g.s.ix===y?m.size:null}var v=propertyGroupFactory(m,P);m.propertyIndex=g.ix;var p=f.sh.ty==="tm"?f.sh.prop:f.sh;return p.s.setGroupProperty(PropertyInterface("Size",v)),p.p.setGroupProperty(PropertyInterface("Position",v)),Object.defineProperties(m,{size:{get:ExpressionPropertyInterface(p.s)},position:{get:ExpressionPropertyInterface(p.p)},_name:{value:g.nm}}),m.mn=g.mn,m}function d(g,f,P){function m(y){return g.p.ix===y?m.position:g.r.ix===y?m.rotation:g.pt.ix===y?m.points:g.or.ix===y||y==="ADBE Vector Star Outer Radius"?m.outerRadius:g.os.ix===y?m.outerRoundness:g.ir&&(g.ir.ix===y||y==="ADBE Vector Star Inner Radius")?m.innerRadius:g.is&&g.is.ix===y?m.innerRoundness:null}var v=propertyGroupFactory(m,P),p=f.sh.ty==="tm"?f.sh.prop:f.sh;return m.propertyIndex=g.ix,p.or.setGroupProperty(PropertyInterface("Outer Radius",v)),p.os.setGroupProperty(PropertyInterface("Outer Roundness",v)),p.pt.setGroupProperty(PropertyInterface("Points",v)),p.p.setGroupProperty(PropertyInterface("Position",v)),p.r.setGroupProperty(PropertyInterface("Rotation",v)),g.ir&&(p.ir.setGroupProperty(PropertyInterface("Inner Radius",v)),p.is.setGroupProperty(PropertyInterface("Inner Roundness",v))),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(p.p)},rotation:{get:ExpressionPropertyInterface(p.r)},points:{get:ExpressionPropertyInterface(p.pt)},outerRadius:{get:ExpressionPropertyInterface(p.or)},outerRoundness:{get:ExpressionPropertyInterface(p.os)},innerRadius:{get:ExpressionPropertyInterface(p.ir)},innerRoundness:{get:ExpressionPropertyInterface(p.is)},_name:{value:g.nm}}),m.mn=g.mn,m}function _(g,f,P){function m(y){return g.p.ix===y?m.position:g.r.ix===y?m.roundness:g.s.ix===y||y==="Size"||y==="ADBE Vector Rect Size"?m.size:null}var v=propertyGroupFactory(m,P),p=f.sh.ty==="tm"?f.sh.prop:f.sh;return m.propertyIndex=g.ix,p.p.setGroupProperty(PropertyInterface("Position",v)),p.s.setGroupProperty(PropertyInterface("Size",v)),p.r.setGroupProperty(PropertyInterface("Rotation",v)),Object.defineProperties(m,{position:{get:ExpressionPropertyInterface(p.p)},roundness:{get:ExpressionPropertyInterface(p.r)},size:{get:ExpressionPropertyInterface(p.s)},_name:{value:g.nm}}),m.mn=g.mn,m}function h(g,f,P){function m(y){return g.r.ix===y||y==="Round Corners 1"?m.radius:null}var v=propertyGroupFactory(m,P),p=f;return m.propertyIndex=g.ix,p.rd.setGroupProperty(PropertyInterface("Radius",v)),Object.defineProperties(m,{radius:{get:ExpressionPropertyInterface(p.rd)},_name:{value:g.nm}}),m.mn=g.mn,m}function u(g,f,P){function m(y){return g.c.ix===y||y==="Copies"?m.copies:g.o.ix===y||y==="Offset"?m.offset:null}var v=propertyGroupFactory(m,P),p=f;return m.propertyIndex=g.ix,p.c.setGroupProperty(PropertyInterface("Copies",v)),p.o.setGroupProperty(PropertyInterface("Offset",v)),Object.defineProperties(m,{copies:{get:ExpressionPropertyInterface(p.c)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:g.nm}}),m.mn=g.mn,m}return function(g,f,P){var m;function v(y){if(typeof y=="number")return y=y===void 0?1:y,y===0?P:m[y-1];for(var C=0,E=m.length;C<E;){if(m[C]._name===y)return m[C];C+=1}return null}function p(){return P}return v.propertyGroup=propertyGroupFactory(v,p),m=e(g,f,v.propertyGroup),v.numProperties=m.length,v._name="Contents",v}})(),TextExpressionInterface=(function(){return function(e){var t;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return(!t||n!==t.value)&&(t=new String(n),t.value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r}})();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}var FootageInterface=(function(){var e=function(i){var n="",s=i.getFootageData();function o(){return n="",s=i.getFootageData(),a}function a(l){if(s[l])return n=l,s=s[l],_typeof(s)==="object"?a:s;var c=l.indexOf(n);if(c!==-1){var d=parseInt(l.substr(c+n.length),10);return s=s[d],_typeof(s)==="object"?a:s}return""}return o},t=function(i){function n(s){return s==="Outline"?n.outlineInterface():null}return n._name="Outline",n.outlineInterface=e(i),n};return function(r){function i(n){return n==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(r),i}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=(function(){function e(o,a,l){a.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(o,a,l).bind(l)))}function t(o){return o*=this.elem.globalData.frameRate,o-=this.offsetTime,o!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<o?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(o,this._cachingAtTime),this._cachingAtTime.lastFrame=o),this._cachingAtTime.value}function r(o){var a=-.01,l=this.getValueAtTime(o),c=this.getValueAtTime(o+a),d=0;if(l.length){var _;for(_=0;_<l.length;_+=1)d+=Math.pow(c[_]-l[_],2);d=Math.sqrt(d)*100}else d=0;return d}function i(o){if(this.vel!==void 0)return this.vel;var a=-.001,l=this.getValueAtTime(o),c=this.getValueAtTime(o+a),d;if(l.length){d=createTypedArray("float32",l.length);var _;for(_=0;_<l.length;_+=1)d[_]=(c[_]-l[_])/a}else d=(c-l)/a;return d}function n(){return this.pv}function s(o){this.propertyGroup=o}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:n,setGroupProperty:s}})();function addPropertyDecorator(){function e(h,u,g){if(!this.k||!this.keyframes)return this.pv;h=h?h.toLowerCase():"";var f=this.comp.renderedFrame,P=this.keyframes,m=P[P.length-1].t;if(f<=m)return this.pv;var v,p;g?(u?v=Math.abs(m-this.elem.comp.globalData.frameRate*u):v=Math.max(0,m-this.elem.data.ip),p=m-v):((!u||u>P.length-1)&&(u=P.length-1),p=P[P.length-1-u].t,v=m-p);var y,C,E;if(h==="pingpong"){var x=Math.floor((f-p)/v);if(x%2!==0)return this.getValueAtTime((v-(f-p)%v+p)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var M=this.getValueAtTime(p/this.comp.globalData.frameRate,0),F=this.getValueAtTime(m/this.comp.globalData.frameRate,0),B=this.getValueAtTime(((f-p)%v+p)/this.comp.globalData.frameRate,0),V=Math.floor((f-p)/v);if(this.pv.length){for(E=new Array(M.length),C=E.length,y=0;y<C;y+=1)E[y]=(F[y]-M[y])*V+B[y];return E}return(F-M)*V+B}else if(h==="continue"){var k=this.getValueAtTime(m/this.comp.globalData.frameRate,0),N=this.getValueAtTime((m-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(E=new Array(k.length),C=E.length,y=0;y<C;y+=1)E[y]=k[y]+(k[y]-N[y])*((f-m)/this.comp.globalData.frameRate)/5e-4;return E}return k+(k-N)*((f-m)/.001)}return this.getValueAtTime(((f-p)%v+p)/this.comp.globalData.frameRate,0)}function t(h,u,g){if(!this.k)return this.pv;h=h?h.toLowerCase():"";var f=this.comp.renderedFrame,P=this.keyframes,m=P[0].t;if(f>=m)return this.pv;var v,p;g?(u?v=Math.abs(this.elem.comp.globalData.frameRate*u):v=Math.max(0,this.elem.data.op-m),p=m+v):((!u||u>P.length-1)&&(u=P.length-1),p=P[u].t,v=p-m);var y,C,E;if(h==="pingpong"){var x=Math.floor((m-f)/v);if(x%2===0)return this.getValueAtTime(((m-f)%v+m)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var M=this.getValueAtTime(m/this.comp.globalData.frameRate,0),F=this.getValueAtTime(p/this.comp.globalData.frameRate,0),B=this.getValueAtTime((v-(m-f)%v+m)/this.comp.globalData.frameRate,0),V=Math.floor((m-f)/v)+1;if(this.pv.length){for(E=new Array(M.length),C=E.length,y=0;y<C;y+=1)E[y]=B[y]-(F[y]-M[y])*V;return E}return B-(F-M)*V}else if(h==="continue"){var k=this.getValueAtTime(m/this.comp.globalData.frameRate,0),N=this.getValueAtTime((m+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(E=new Array(k.length),C=E.length,y=0;y<C;y+=1)E[y]=k[y]+(k[y]-N[y])*(m-f)/.001;return E}return k+(k-N)*(m-f)/.001}return this.getValueAtTime((v-((m-f)%v+m))/this.comp.globalData.frameRate,0)}function r(h,u){if(!this.k)return this.pv;if(h=(h||.4)*.5,u=Math.floor(u||5),u<=1)return this.pv;var g=this.comp.renderedFrame/this.comp.globalData.frameRate,f=g-h,P=g+h,m=u>1?(P-f)/(u-1):1,v=0,p=0,y;this.pv.length?y=createTypedArray("float32",this.pv.length):y=0;for(var C;v<u;){if(C=this.getValueAtTime(f+v*m),this.pv.length)for(p=0;p<this.pv.length;p+=1)y[p]+=C[p];else y+=C;v+=1}if(this.pv.length)for(p=0;p<this.pv.length;p+=1)y[p]/=u;else y/=u;return y}function i(h){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var u=this._transformCachingAtTime.v;if(u.cloneFromProps(this.pre.props),this.appliedTransformations<1){var g=this.a.getValueAtTime(h);u.translate(-g[0]*this.a.mult,-g[1]*this.a.mult,g[2]*this.a.mult)}if(this.appliedTransformations<2){var f=this.s.getValueAtTime(h);u.scale(f[0]*this.s.mult,f[1]*this.s.mult,f[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var P=this.sk.getValueAtTime(h),m=this.sa.getValueAtTime(h);u.skewFromAxis(-P*this.sk.mult,m*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var v=this.r.getValueAtTime(h);u.rotate(-v*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var p=this.rz.getValueAtTime(h),y=this.ry.getValueAtTime(h),C=this.rx.getValueAtTime(h),E=this.or.getValueAtTime(h);u.rotateZ(-p*this.rz.mult).rotateY(y*this.ry.mult).rotateX(C*this.rx.mult).rotateZ(-E[2]*this.or.mult).rotateY(E[1]*this.or.mult).rotateX(E[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var x=this.px.getValueAtTime(h),M=this.py.getValueAtTime(h);if(this.data.p.z){var F=this.pz.getValueAtTime(h);u.translate(x*this.px.mult,M*this.py.mult,-F*this.pz.mult)}else u.translate(x*this.px.mult,M*this.py.mult,0)}else{var B=this.p.getValueAtTime(h);u.translate(B[0]*this.p.mult,B[1]*this.p.mult,-B[2]*this.p.mult)}return u}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(h,u,g){var f=s(h,u,g);return f.dynamicProperties.length?f.getValueAtTime=i.bind(f):f.getValueAtTime=n.bind(f),f.setGroupProperty=expressionHelpers.setGroupProperty,f};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(h,u,g,f,P){var m=o(h,u,g,f,P);m.kf?m.getValueAtTime=expressionHelpers.getValueAtTime.bind(m):m.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m.loopOut=e,m.loopIn=t,m.smooth=r,m.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(m),m.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(m),m.numKeys=u.a===1?u.k.length:0,m.propertyIndex=u.ix;var v=0;return g!==0&&(v=createTypedArray("float32",u.a===1?u.k[0].s.length:u.k.length)),m._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:v},expressionHelpers.searchExpressions(h,u,m),m.k&&P.addDynamicProperty(m),m};function a(h){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),h*=this.elem.globalData.frameRate,h-=this.offsetTime,h!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<h?this._caching.lastIndex:0,this._cachingAtTime.lastTime=h,this.interpolateShape(h,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function d(){}d.prototype={vertices:function(u,g){this.k&&this.getValue();var f=this.v;g!==void 0&&(f=this.getValueAtTime(g,0));var P,m=f._length,v=f[u],p=f.v,y=createSizedArray(m);for(P=0;P<m;P+=1)u==="i"||u==="o"?y[P]=[v[P][0]-p[P][0],v[P][1]-p[P][1]]:y[P]=[v[P][0],v[P][1]];return y},points:function(u){return this.vertices("v",u)},inTangents:function(u){return this.vertices("i",u)},outTangents:function(u){return this.vertices("o",u)},isClosed:function(){return this.v.c},pointOnPath:function(u,g){var f=this.v;g!==void 0&&(f=this.getValueAtTime(g,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(f));for(var P=this._segmentsLength,m=P.lengths,v=P.totalLength*u,p=0,y=m.length,C=0,E;p<y;){if(C+m[p].addedLength>v){var x=p,M=f.c&&p===y-1?0:p+1,F=(v-C)/m[p].addedLength;E=bez.getPointInSegment(f.v[x],f.v[M],f.o[x],f.i[M],F,m[p]);break}else C+=m[p].addedLength;p+=1}return E||(E=f.c?[f.v[0][0],f.v[0][1]]:[f.v[f._length-1][0],f.v[f._length-1][1]]),E},vectorOnPath:function(u,g,f){u==1?u=this.v.c:u==0&&(u=.999);var P=this.pointOnPath(u,g),m=this.pointOnPath(u+.001,g),v=m[0]-P[0],p=m[1]-P[1],y=Math.sqrt(Math.pow(v,2)+Math.pow(p,2));if(y===0)return[0,0];var C=f==="tangent"?[v/y,p/y]:[-p/y,v/y];return C},tangentOnPath:function(u,g){return this.vectorOnPath(u,g,"tangent")},normalOnPath:function(u,g){return this.vectorOnPath(u,g,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([d],l),extendPrototype([d],c),c.prototype.getValueAtTime=a,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var _=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(h,u,g,f,P){var m=_(h,u,g,f,P);return m.propertyIndex=u.ix,m.lock=!1,g===3?expressionHelpers.searchExpressions(h,u.pt,m):g===4&&expressionHelpers.searchExpressions(h,u.ks,m),m.k&&h.addDynamicProperty(m),m}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,r){var i=this.calculateExpression(r);if(t.t!==i){var n={};return this.copyData(n,t),n.t=i.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),r=this.searchExpressions();return this.kf=t||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,r){var i=createNS("feMerge");i.setAttribute("result",t);var n,s;for(s=0;s<r.length;s+=1)n=createNS("feMergeNode"),n.setAttribute("in",r[s]),i.appendChild(n),i.appendChild(n);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,i,n){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",i+"_tint_1"),e.appendChild(s),s=createNS("feColorMatrix"),s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i+"_tint_2"),e.appendChild(s),this.matrixFilter=s;var o=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);e.appendChild(o)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,r,i){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",i),e.appendChild(n),this.matrixFilter=n}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,r,i,n;for(this.filterManager.effectElements[1].p.v===1?(n=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,n=i+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),i;i<n;i+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask"),o=createElementID();s.setAttribute("id",o),s.setAttribute("mask-type","alpha"),s.appendChild(r),this.elem.globalData.defs.appendChild(s);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+o+")");e[0];)a.appendChild(e[0]);this.elem.layerElement.appendChild(a),this.masker=s,r.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,r=this.paths.length,i,n;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&n.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,a=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=n.getTotalLength();s="0 0 0 "+l*o+" ";var c=l*(a-o),d=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,_=Math.floor(c/d),h;for(h=0;h<_;h+=1)s+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+l*10+" 0 0"}else s="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",s)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(u[0]*255)+","+bmFloor(u[1]*255)+","+bmFloor(u[2]*255)+")")}};function SVGTritoneFilter(e,t,r,i){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),this.matrixFilter=s;var o=createNS("feFuncR");o.setAttribute("type","table"),s.appendChild(o),this.feFuncR=o;var a=createNS("feFuncG");a.setAttribute("type","table"),s.appendChild(a),this.feFuncG=a;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,e.appendChild(s)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+t[0],s=i[1]+" "+r[1]+" "+t[1],o=i[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",o)}};function SVGProLevelsFilter(e,t,r,i){this.filterManager=t;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||n[10].p.v!==0||n[11].p.k||n[11].p.v!==1||n[12].p.k||n[12].p.v!==1||n[13].p.k||n[13].p.v!==0||n[14].p.k||n[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||n[17].p.v!==0||n[18].p.k||n[18].p.v!==1||n[19].p.k||n[19].p.v!==1||n[20].p.k||n[20].p.v!==0||n[21].p.k||n[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||n[24].p.v!==0||n[25].p.k||n[25].p.v!==1||n[26].p.k||n[26].p.v!==1||n[27].p.k||n[27].p.v!==0||n[28].p.k||n[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||n[31].p.v!==0||n[32].p.k||n[32].p.v!==1||n[33].p.k||n[33].p.v!==1||n[34].p.k||n[34].p.v!==0||n[35].p.k||n[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(s)),(n[3].p.k||n[3].p.v!==0||n[4].p.k||n[4].p.v!==1||n[5].p.k||n[5].p.v!==1||n[6].p.k||n[6].p.v!==0||n[7].p.k||n[7].p.v!==1)&&(s=createNS("feComponentTransfer"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),e.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,i,n){for(var s=0,o=256,a,l=Math.min(e,t),c=Math.max(e,t),d=Array.call(null,{length:o}),_,h=0,u=n-i,g=t-e;s<=256;)a=s/256,a<=l?_=g<0?n:i:a>=c?_=g<0?i:n:_=i+u*Math.pow((a-e)/g,1/r),d[h]=_,h+=1,s+=256/(o-1);return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,r,i,n){var s=t.container.globalData.renderConfig.filterSize,o=t.data.fs||s;e.setAttribute("x",o.x||s.x),e.setAttribute("y",o.y||s.y),e.setAttribute("width",o.width||s.width),e.setAttribute("height",o.height||s.height),this.filterManager=t;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",i+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,e.appendChild(a);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",i+"_drop_shadow_1"),l.setAttribute("result",i+"_drop_shadow_2"),this.feOff
2set=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var d=createNS("feComposite");d.setAttribute("in",i+"_drop_shadow_3"),d.setAttribute("in2",i+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(d);var _=this.createMergeNode(i,[i+"_drop_shadow_4",n]);e.appendChild(_)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),s=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var i=r.children,n=0,s=i.length;n<s&&i[n]!==e.layerElement;)n+=1;var o;n<=s-2&&(o=i[n+1]);var a=createNS("use");a.setAttribute("href","#"+t),o?r.insertBefore(a,o):r.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var n=e.globalData.defs;n.appendChild(i);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(t,r),s.appendChild(t.layerElement),n.appendChild(s);var o=createNS("use");o.setAttribute("href","#"+r),i.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,i=t.length;r<i;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");n.setAttribute("result",i),e.appendChild(n),this.feGaussianBlur=n}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,n=i==3?0:r,s=i==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+s);var o=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,i=t[1].p.v,n=t[2].p.v===1,s=t[3].p.v,o=n?s:t[4].p.v,a=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(o*.01,s*.01,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-a*degToRads,(l+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})});var ba=(()=>{class e{_renderer;_elementRef;onChange=r=>{};onTouched=()=>{};constructor(r,i){this._renderer=r,this._elementRef=i}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}static \u0275fac=function(i){return new(i||e)(Y(Li),Y(rt))};static \u0275dir=ie({type:e})}return e})(),wr=(()=>{class e extends ba{static \u0275fac=(()=>{let r;return function(n){return(r||(r=di(e)))(n||e)}})();static \u0275dir=ie({type:e,features:[we]})}return e})(),qt=new Xt(""),Jl={provide:qt,useExisting:Ue(()=>Zl),multi:!0},Zl=(()=>{class e extends wr{writeValue(r){this.setProperty("checked",r)}static \u0275fac=(()=>{let r;return function(n){return(r||(r=di(e)))(n||e)}})();static \u0275dir=ie({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,n){i&1&&Fe("change",function(o){return n.onChange(o.target.checked)})("blur",function(){return n.onTouched()})}
vendor: 6,376 bytes, line 2
2,standalone:!1,features:[ke([Jl]),we]})}return e})(),Xl={provide:qt,useExisting:Ue(()=>Sa),multi:!0};function ec(){let e=ss()?ss().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var tc=new Xt(""),Sa=(()=>{class e extends ba{_compositionMode;_composing=!1;constructor(r,i,n){super(r,i),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!ec())}writeValue(r){let i=r??"";this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}static \u0275fac=function(i){return new(i||e)(Y(Li),Y(rt),Y(tc,8))};static \u0275dir=ie({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,n){i&1&&Fe("input",function(o){return n._handleInput(o.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(o){return n._compositionEnd(o.target.value)})},standalone:!1,features:[ke([Xl]),we]})}return e})();function ms(e){return e==null||gs(e)===0}function gs(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var gi=new Xt(""),Qi=new Xt(""),ic=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,da=class{static min(t){return rc(t)}static max(t){return nc(t)}static required(t){return sc(t)}static requiredTrue(t){return oc(t)}static email(t){return ac(t)}static minLength(t){return lc(t)}static maxLength(t){return Ca(t)}static pattern(t){return cc(t)}static nullValidator(t){return pn()}static compose(t){return Ma(t)}static composeAsync(t){return Da(t)}};function rc(e){return t=>{if(t.value==null||e==null)return null;let r=parseFloat(t.value);return!isNaN(r)&&r<e?{min:{min:e,actual:t.value}}:null}}function nc(e){return t=>{if(t.value==null||e==null)return null;let r=parseFloat(t.value);return!isNaN(r)&&r>e?{max:{max:e,actual:t.value}}:null}}function sc(e){return ms(e.value)?{required:!0}:null}function oc(e){return e.value===!0?null:{required:!0}}function ac(e){return ms(e.value)||ic.test(e.value)?null:{email:!0}}function lc(e){return t=>{let r=t.value?.length??gs(t.value);return r===null||r===0?null:r<e?{minlength:{requiredLength:e,actualLength:r}}:null}}function Ca(e){return t=>{let r=t.value?.length??gs(t.value);return r!==null&&r>e?{maxlength:{requiredLength:e,actualLength:r}}:null}}function cc(e){if(!e)return pn;let t,r;return typeof e=="string"?(r="",e.charAt(0)!=="^"&&(r+="^"),r+=e,e.charAt(e.length-1)!=="$"&&(r+="$"),t=new RegExp(r)):(r=e.toString(),t=e),i=>{if(ms(i.value))return null;let n=i.value;return t.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function pn(e){return null}function Pa(e){return e!=null}function wa(e){return zo(e)?Ro(e):e}function Ea(e){let t={};return e.forEach(r=>{t=r!=null?G(G({},t),r):t}),Object.keys(t).length===0?null:t}function xa(e,t){return t.map(r=>r(e))}function hc(e){return!e.validate}function Ta(e){return e.map(t=>hc(t)?t:r=>t.validate(r))}function Ma(e){if(!e)return null;let t=e.filter(Pa);return t.length==0?null:function(r){return Ea(xa(r,t))}}function Aa(e){return e!=null?Ma(Ta(e)):null}function Da(e){if(!e)return null;let t=e.filter(Pa);return t.length==0?null:function(r){let i=xa(r,t).map(wa);return zr(i).pipe($(Ea))}}function Ia(e){return e!=null?Da(Ta(e)):null}function ua(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Fa(e){return e._rawValidators}function ka(e){return e._rawAsyncValidators}function us(e){return e?Array.isArray(e)?e:[e]:[]}function fn(e,t){return Array.isArray(e)?e.includes(t):e===t}function pa(e,t){let r=us(t);return us(e).forEach(n=>{fn(r,n)||r.push(n)}),r}function fa(e,t){return us(t).filter(r=>!fn(e,r))}var mn=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Aa(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ia(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,r){return this.control?this.control.hasError(t,r):!1}getError(t,r){return this.control?this.control.getError(t,r):null}},lt=class extends mn{name;get formDirective(){return null}get path(){return null}},Ut=class extends mn{_parent=null;name=null;valueAccessor=null},gn=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}
vendor: 10,422 bytes, line 2
2get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},dc={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},yf=z(G({},dc),{"[class.ng-submitted]":"isSubmitted"}),_f=(()=>{class e extends gn{constructor(r){super(r)}static \u0275fac=function(i){return new(i||e)(Y(Ut,2))};static \u0275dir=ie({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,n){i&2&&nt("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[we]})}return e})(),bf=(()=>{class e extends gn{constructor(r){super(r)}static \u0275fac=function(i){return new(i||e)(Y(lt,10))};static \u0275dir=ie({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,n){i&2&&nt("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},standalone:!1,features:[we]})}return e})();var yr="VALID",un="INVALID",Wi="PENDING",_r="DISABLED",mi=class{},vn=class extends mi{value;source;constructor(t,r){super(),this.value=t,this.source=r}},br=class extends mi{pristine;source;constructor(t,r){super(),this.pristine=t,this.source=r}},Sr=class extends mi{touched;source;constructor(t,r){super(),this.touched=t,this.source=r}},Ui=class extends mi{status;source;constructor(t,r){super(),this.status=t,this.source=r}},ps=class extends mi{source;constructor(t){super(),this.source=t}},Cr=class extends mi{source;constructor(t){super(),this.source=t}};function vs(e){return(Pn(e)?e.validators:e)||null}function uc(e){return Array.isArray(e)?Aa(e):e||null}function ys(e,t){return(Pn(t)?t.asyncValidators:e)||null}function pc(e){return Array.isArray(e)?Ia(e):e||null}function Pn(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Oa(e,t,r){let i=e.controls;if(!(t?Object.keys(i):i).length)throw new qr(1e3,"");if(!i[r])throw new qr(1001,"")}function Ra(e,t,r){e._forEachChild((i,n)=>{if(r[n]===void 0)throw new qr(1002,"")})}var qi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,r){this._assignValidators(t),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return pi(this.statusReactive)}set status(t){pi(()=>this.statusReactive.set(t))}_status=fr(()=>this.statusReactive());statusReactive=dr(void 0);get valid(){return this.status===yr}get invalid(){return this.status===un}get pending(){return this.status==Wi}get disabled(){return this.status===_r}get enabled(){return this.status!==_r}errors;get pristine(){return pi(this.pristineReactive)}set pristine(t){pi(()=>this.pristineReactive.set(t))}_pristine=fr(()=>this.pristineReactive());pristineReactive=dr(!0);get dirty(){return!this.pristine}get touched(){return pi(this.touchedReactive)}set touched(t){pi(()=>this.touchedReactive.set(t))}_touched=fr(()=>this.touchedReactive());touchedReactive=dr(!1);get untouched(){return!this.touched}_events=new ue;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(pa(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(pa(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(fa(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(fa(t,this._rawAsyncValidators))}hasValidator(t){return fn(this._rawValidators,t)}hasAsyncValidator(t){return fn(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let r=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(z(G({},t),{sourceControl:i})),r&&t.emitEvent!==!1&&this._events.next(new Sr(!0,i))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(t))}markAsUntouched(t={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),r&&t.emitEvent!==!1&&this._events.next(new Sr(!1,i))}markAsDirty(t={}){let r=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(z(G({},t),{sourceControl:i})),r&&t.emitEvent!==!1&&this._events.next(new br(!1,i))}markAsPristine(t={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),r&&t.emitEvent!==!1&&this._events.next(new br(!0,i))}markAsPending(t={}){this.status=Wi;let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ui(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(z(G({},t),{sourceControl:r}))}disable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=_r,this.errors=null,this._forEachChild(n=>{n.disable(z(G({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new vn(this.value,i)),this._events.next(new Ui(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(z(G({},t),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=yr,this._forEachChild(i=>{i.enable(z(G({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(z(G({},t),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,r){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===yr||this.status===Wi)&&this._runAsyncValidator(i,t.emitEvent)}let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new vn(this.value,r)),this._events.next(new Ui(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(z(G({},t),{sourceControl:r}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_r:yr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,r){if(this.asyncValidator){this.status=Wi,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1,shouldHaveEmitted:t!==!1};let i=wa(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:r,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,r={}){this.errors=t,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(t){let r=t;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((i,n)=>i&&i._find(n),this)}getError(t,r){let i=r?this.get(r):this;return i&&i.errors?i.errors[t]:null}hasError(t,r){return!!this.getError(t,r)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,r,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new Ui(this.status,r)),this._parent&&this._parent._updateControlsErrors(t,r,i)}_initObservables(){this.valueChanges=new oe,this.statusChanges=new oe}_calculateStatus(){return this._allControlsDisabled()?_r:this.errors?un:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wi)?Wi:this._anyControlsHaveStatus(un)?un:yr}_anyControlsHaveStatus(t){return this._anyControls(r=>r.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,r){let i=!this._anyControlsDirty(),n=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&this._events.next(new br(this.pristine,r))}_updateTouched(t={},r){this.touched=this._anyControlsTouched(),this._events.next(new Sr(this.touched,r)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Pn(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let r=this._parent&&this._parent.dirty;return!t&&!!r&&!this._parent._anyControlsDirty()}
vendor: 8,807 bytes, line 2
2_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=uc(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=pc(this._rawAsyncValidators)}},yn=class extends qi{constructor(t,r,i){super(vs(r),ys(i,r)),this.controls=t,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,r){return this.controls[t]?this.controls[t]:(this.controls[t]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(t,r,i={}){this.registerControl(t,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(t,r,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],r&&this.registerControl(t,r),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,r={}){Ra(this,!0,t),Object.keys(t).forEach(i=>{Oa(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(t,r={}){t!=null&&(Object.keys(t).forEach(i=>{let n=this.controls[i];n&&n.patchValue(t[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(t={},r={}){this._forEachChild((i,n)=>{i.reset(t?t[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r),r?.emitEvent!==!1&&this._events.next(new Cr(this))}getRawValue(){return this._reduceChildren({},(t,r,i)=>(t[i]=r.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(r,i)=>i._syncPendingControls()?!0:r);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(r=>{let i=this.controls[r];i&&t(i,r)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[r,i]of Object.entries(this.controls))if(this.contains(r)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(r,i,n)=>((i.enabled||this.disabled)&&(r[n]=i.value),r))}_reduceChildren(t,r){let i=t;return this._forEachChild((n,s)=>{i=r(i,n,s)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var fs=class extends yn{};var Ki=new Xt("",{providedIn:"root",factory:()=>Er}),Er="always";function wn(e,t){return[...t.path,e]}function _n(e,t,r=Er){_s(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||r==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),mc(e,t),vc(e,t),gc(e,t),fc(e,t)}function bn(e,t,r=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Cn(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Sn(e,t){e.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(t)})}function fc(e,t){if(t.valueAccessor.setDisabledState){let r=i=>{t.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(r),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(r)})}}function _s(e,t){let r=Fa(e);t.validator!==null?e.setValidators(ua(r,t.validator)):typeof r=="function"&&e.setValidators([r]);let i=ka(e);t.asyncValidator!==null?e.setAsyncValidators(ua(i,t.asyncValidator)):typeof i=="function"&&e.setAsyncValidators([i]);let n=()=>e.updateValueAndValidity();Sn(t._rawValidators,n),Sn(t._rawAsyncValidators,n)}function Cn(e,t){let r=!1;if(e!==null){if(t.validator!==null){let n=Fa(e);if(Array.isArray(n)&&n.length>0){let s=n.filter(o=>o!==t.validator);s.length!==n.length&&(r=!0,e.setValidators(s))}}if(t.asyncValidator!==null){let n=ka(e);if(Array.isArray(n)&&n.length>0){let s=n.filter(o=>o!==t.asyncValidator);s.length!==n.length&&(r=!0,e.setAsyncValidators(s))}}}let i=()=>{};return Sn(t._rawValidators,i),Sn(t._rawAsyncValidators,i),r}function mc(e,t){t.valueAccessor.registerOnChange(r=>{e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Va(e,t)})}function gc(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Va(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Va(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function vc(e,t){let r=(i,n)=>{t.valueAccessor.writeValue(i),n&&t.viewToModelUpdate(i)};e.registerOnChange(r),t._registerOnDestroy(()=>{e._unregisterOnChange(r)})}function yc(e,t){e==null,_s(e,t)}function _c(e,t){return Cn(e,t)}function bs(e,t){if(!e.hasOwnProperty("model"))return!1;let r=e.model;return r.isFirstChange()?!0:!Object.is(t,r.currentValue)}function bc(e){return Object.getPrototypeOf(e.constructor)===wr}function Sc(e,t){e._syncPendingControls(),t.forEach(r=>{let i=r.control;i.updateOn==="submit"&&i._pendingChange&&(r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Ss(e,t){if(!t)return null;Array.isArray(t);let r,i,n;return t.forEach(s=>{s.constructor===Sa?r=s:bc(s)?i=s:n=s}),n||i||r||null}function Cc(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function ma(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function ga(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Mi=class extends qi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,r,i){super(vs(r),ys(i,r)),this._applyFormState(t),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pn(r)&&(r.nonNullable||r.initialValueIsDefault)&&(ga(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,r={}){this.value=this._pendingValue=t,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(t,r={}){this.setValue(t,r)}reset(t=this.defaultValue,r={}){this._applyFormState(t),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1,r?.emitEvent!==!1&&this._events.next(new Cr(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ma(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ma(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){ga(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Pc=e=>e instanceof Mi,wc=(()=>{class e extends lt{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return wn(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let r;return function(n){return(r||(r=di(e)))(n||e)}})();static \u0275dir=ie({type:e,standalone:!1,features:[we]})}return e})();var Ec={provide:Ut,useExisting:Ue(()=>xc)},va=Promise.resolve(),xc=(()=>{class e extends Ut{_changeDetectorRef;callSetDisabledState;control=new Mi;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new oe;constructor(r,i,n,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this._parent=r,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Ss(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),bs(r,this.viewModel)&&(this._updateV
2alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){_n(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(r){va.then(()=>{this.control.setValue(r,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(r){let i=r.isDisabled.currentValue,n=i!==0&&Ko(i);va.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(r){return this._parent?wn(r,this._parent):[r]}static \u0275fac=function(i){return new(i||e)(Y(lt,9),Y(gi,10),Y(Qi,10),Y(qt,10),Y(Nt,8),Y(Ki,8))};static \u0275dir=ie({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ke([Ec]),we,Vt]})}return e})();var Cf=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275dir=ie({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var Tc={provide:qt,useExisting:Ue(()=>Ac),multi:!0};var Mc=(()=>{class e{_accessors=[];add(r,i){this._accessors.push([r,i])}remove(r){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===r){this._accessors.splice(i,1);return}}select(r){this._accessors.forEach(i=>{this._isSameGroup(i,r)&&i[1]!==r&&i[1].fireUncheck(r.value)})}_isSameGroup(r,i){return r[0].control?r[0]._parent===i._control._parent&&r[1].name===i.name:!1}static \u0275fac=function(i){return new(i||e)};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ac=(()=>{class e extends wr{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=I(Ki,{optional:!0})??Er;constructor(r,i,n,s){super(r,i),this._registry=n,this._injector=s}ngOnInit(){this._control=this._injector.get(Ut),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(r){this._state=r===this.value,this.setProperty("checked",this._state)}registerOnChange(r){this._fn=r,this.onChange=()=>{r(this.value),this._registry.select(this)}}setDisabledState(r){(this.setDisabledStateFired||r||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",r),this.setDisabledStateFired=!0}fireUncheck(r){this.writeValue(r)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(i){return new(i||e)(Y(Li),Y(rt),Y(Mc),Y(Tt))};static \u0275dir=ie({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,n){i&1&&Fe("change",function(){return n.onChange()})("blur",function(){return n.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[ke([Tc]),we]})}return e})();var Cs=new Xt(""),Dc={provide:Ut,useExisting:Ue(()=>Ic)},Ic=(()=>{class e extends Ut{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(r){}model;update=new oe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(r,i,n,s,o){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=o,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Ss(this,n)}ngOnChanges(r){if(this._isControlChanged(r)){let i=r.form.previousValue;i&&bn(i,this,!1),_n(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}bs(r,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}
vendor: 15,206 bytes, line 2
2ngOnDestroy(){this.form&&bn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_isControlChanged(r){return r.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||e)(Y(gi,10),Y(Qi,10),Y(qt,10),Y(Cs,8),Y(Ki,8))};static \u0275dir=ie({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[ke([Dc]),we,Vt]})}return e})(),Fc={provide:lt,useExisting:Ue(()=>Ba)},Ba=(()=>{class e extends lt{callSetDisabledState;get submitted(){return pi(this._submittedReactive)}set submitted(r){this._submittedReactive.set(r)}_submitted=fr(()=>this._submittedReactive());_submittedReactive=dr(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new oe;constructor(r,i,n){super(),this.callSetDisabledState=n,this._setValidators(r),this._setAsyncValidators(i)}ngOnChanges(r){r.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Cn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(r){let i=this.form.get(r.path);return _n(i,r,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(r),i}getControl(r){return this.form.get(r.path)}removeControl(r){bn(r.control||null,r,!1),Cc(this.directives,r)}addFormGroup(r){this._setUpFormContainer(r)}removeFormGroup(r){this._cleanUpFormContainer(r)}getFormGroup(r){return this.form.get(r.path)}addFormArray(r){this._setUpFormContainer(r)}removeFormArray(r){this._cleanUpFormContainer(r)}getFormArray(r){return this.form.get(r.path)}updateModel(r,i){this.form.get(r.path).setValue(i)}onSubmit(r){return this._submittedReactive.set(!0),Sc(this.form,this.directives),this.ngSubmit.emit(r),this.form._events.next(new ps(this.control)),r?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(r=void 0,i={}){this.form.reset(r,i),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(r=>{let i=r.control,n=this.form.get(r.path);i!==n&&(bn(i||null,r),Pc(n)&&(_n(n,r,this.callSetDisabledState),r.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(r){let i=this.form.get(r.path);yc(i,r),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(r){if(this.form){let i=this.form.get(r.path);i&&_c(i,r)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_s(this.form,this),this._oldForm&&Cn(this._oldForm,this)}static \u0275fac=function(i){return new(i||e)(Y(gi,10),Y(Qi,10),Y(Ki,8))};static \u0275dir=ie({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,n){i&1&&Fe("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ke([Fc]),we,Vt]})}return e})(),kc={provide:lt,useExisting:Ue(()=>Na)},Na=(()=>{class e extends wc{name=null;constructor(r,i,n){super(),this._parent=r,this._setValidators(i),this._setAsyncValidators(n)}_checkParentType(){Ga(this._parent)}static \u0275fac=function(i){return new(i||e)(Y(lt,13),Y(gi,10),Y(Qi,10))};static \u0275dir=ie({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ke([kc]),we]})}return e})(),Oc={provide:lt,useExisting:Ue(()=>La)},La=(()=>{class e extends lt{_parent;name=null;constructor(r,i,n){super(),this._parent=r,this._setValidators(i),this._setAsyncValidators(n)}ngOnInit(){Ga(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return wn(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||e)(Y(lt,13),Y(gi,10),Y(Qi,10))};static \u0275dir=ie({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ke([Oc]),we]})}return e})();function Ga(e){return!(e instanceof Na)&&!(e instanceof Ba)&&!(e instanceof La)}var Rc={provide:Ut,useExisting:Ue(()=>Vc)},Vc=(()=>{class e extends Ut{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(r){}model;update=new oe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(r,i,n,s,o){super(),this._ngModelWarningConfig=o,this._parent=r,this._setValidators(i),this._setAsyncValidators(n),this.valueAccessor=Ss(this,s)}ngOnChanges(r){this._added||this._setUpControl(),bs(r,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}get path(){return wn(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||e)(Y(lt,13),Y(gi,10),Y(Qi,10),Y(qt,10),Y(Cs,8))};static \u0275dir=ie({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ke([Rc]),we,Vt]})}return e})();var Bc={provide:qt,useExisting:Ue(()=>ja),multi:!0};function Ha(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Nc(e){return e.split(":")[0]}var ja=(()=>{class e extends wr{value;_optionMap=new Map;_idCounter=0;set compareWith(r){this._compareWith=r}_compareWith=Object.is;appRefInjector=I(pr).injector;destroyRef=I(Qr);cdr=I(Nt);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Ni({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(r){this.cdr.markForCheck(),this.value=r;let i=this._getOptionId(r),n=Ha(i,r);this.setProperty("value",n)}registerOnChange(r){this.onChange=i=>{this.value=this._getOptionValue(i),r(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(r){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),r))return i;return null}_getOptionValue(r){let i=Nc(r);return this._optionMap.has(i)?this._optionMap.get(i):r}static \u0275fac=(()=>{let r;return function(n){return(r||(r=di(e)))(n||e)}})();static \u0275dir=ie({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,n){i&1&&Fe("change",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[ke([Bc]),we]})}return e})(),Pf=(()=>{class e{_element;_renderer;_select;id;constructor(r,i,n){this._element=r,this._renderer=i,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(r){this._select!=null&&(this._select._optionMap.set(this.id,r),this._setElementValue(Ha(this.id,r)),this._select._writeValueAfterRender())}set value(r){this._setElementValue(r),this._select&&this._select._writeValueAfterRender()}_setElementValue(r){this._renderer.setProperty(this._element.nativeElement,"value",r)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select._writeValueAfterRender())}static \u0275fac=function(i){return new(i||e)(Y(rt),Y(Li),Y(ja,9))};static \u0275dir=ie({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Lc={provide:qt,useExisting:Ue(()=>$a),multi:!0};function ya(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Gc(e){return e.split(":")[0]}var $a=(()=>{class e extends wr{value;_optionMap=new Map;_idCounter=0;set compareWith(r){this._compareWith=r}_compareWith=Object.is;writeValue(r){this.value=r;let i;if(Array.isArray(r)){let n=r.map(s=>this._getOptionId(s));i=(s,o)=>{s._setSelected(n.indexOf(o.toString())>-1)}}else i=(n,s)=>{n._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(r){this.onChange=i=>{let n=[],s=i.selectedOptions;if(s!==void 0){let o=s;for(let a=0;a<o.length;a++){let l=o[a],c=this._getOptionValue(l.value);n.push(c)}}else{let o=i.options;for(let a=0;a<o.length;a++){let l=o[a];if(l.selected){let c=this._getOptionValue(l.value);n.push(c)}}}this.value=n,r(n)}}_registerOption(r){let i=(this._idCounter++).toString();return this._optionMap.set(i,r),i}_getOptionId(r){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,r))return i;return null}_getOptionValue(r){let i=Gc(r);return this._optionMap.has(i)?this._optionMap.get(i)._value:r}static \u0275fac=(()=>{let r;return function(n){return(r||(r=di(e)))(n||e)}})();static \u0275dir=ie({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,n){i&1&&Fe("change",function(o){return n.onChange(o.target)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[ke([Lc]),we]})}return e})(),wf=(()=>{class e{_element;_renderer;_select;id;_value;constructor(r,i,n){this._element=r,this._renderer=i,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(r){this._select!=null&&(this._value=r,this._setElementValue(ya(this.id,r)),this._select.writeValue(this._select.value))}set value(r){this._select?(this._value=r,this._setElementValue(ya(this.id,r)),this._select.writeValue(this._select.value)):this._setElementValue(r)}_setElementValue(r){this._renderer.setProperty(this._element.nativeElement,"value",r)}_setSelected(r){this._renderer.setProperty(this._element.nativeElement,"selected",r)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||e)(Y(rt),Y(Li),Y($a,9))};static \u0275dir=ie({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();function Hc(e){return typeof e=="number"?e:parseInt(e,10)}var jc=(()=>{class e{_validator=pn;_onChange;_enabled;ngOnChanges(r){if(this.inputName in r){let i=this.normalizeInput(r[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):pn,this._onChange&&this._onChange()}}validate(r){return this._validator(r)}registerOnValidatorChange(r){this._onChange=r}enabled(r){return r!=null}static \u0275fac=function(i){return new(i||e)};static \u0275dir=ie({type:e,features:[Vt]})}return e})();var $c={provide:gi,useExisting:Ue(()=>zc),multi:!0},zc=(()=>{class e extends jc{maxlength;inputName="maxlength";normalizeInput=r=>Hc(r);createValidator=r=>Ca(r);static \u0275fac=(()=>{let r;return function(n){return(r||(r=di(e)))(n||e)}})();static \u0275dir=ie({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,n){i&2&&pt("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ke([$c]),we]})}return e})();var za=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=ei({type:e});static \u0275inj=Zt({})}return e})(),Pr=class extends qi{constructor(t,r,i){super(vs(r),ys(i,r)),this.controls=t,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,r={}){Array.isArray(t)?t.forEach(i=>{this.controls.push(i),this._registerControl(i)}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(t,r,i={}){this.controls.splice(t,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,r={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(t,r,i={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),r&&(this.controls.splice(n,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,r={}){Ra(this,!1,t),t.forEach((i,n)=>{Oa(this,!1,n),this.at(n).setValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(t,r={}){t!=null&&(t.forEach((i,n)=>{this.at(n)&&this.at(n).patchValue(i,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(t=[],r={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r),r?.emitEvent!==!1&&this._events.next(new Cr(this))}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((r,i)=>i._syncPendingControls()?!0:r,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((r,i)=>{t(r,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(r=>r.enabled&&t(r))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function _a(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var Wa=(()=>{class e{useNonNullable=!1;get nonNullable(){let r=new e;return r.useNonNullable=!0,r}group(r,i=null){let n=this._reduceControls(r),s={};return _a(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new yn(n,s)}record(r,i=null){let n=this._reduceControls(r);return new fs(n,i)}control(r,i,n){let s={};return this.useNonNullable?(_a(i)?s=i:(s.validators=i,s.asyncValidators=n),new Mi(r,z(G
2({},s),{nonNullable:!0}))):new Mi(r,i,n)}array(r,i,n){let s=r.map(o=>this._createControl(o));return new Pr(s,i,n)}_reduceControls(r){let i={};return Object.keys(r).forEach(n=>{i[n]=this._createControl(r[n])}),i}_createControl(r){if(r instanceof Mi)return r;if(r instanceof qi)return r;if(Array.isArray(r)){let i=r[0],n=r.length>1?r[1]:null,s=r.length>2?r[2]:null;return this.control(i,n,s)}else return this.control(r)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ef=(()=>{class e{static withConfig(r){return{ngModule:e,providers:[{provide:Ki,useValue:r.callSetDisabledState??Er}]}}static \u0275fac=function(i){return new(i||e)};static \u0275mod=ei({type:e});static \u0275inj=Zt({imports:[za]})}return e})(),xf=(()=>{class e{static withConfig(r){return{ngModule:e,providers:[{provide:Cs,useValue:r.warnOnNgModelWithFormControl??"always"},{provide:Ki,useValue:r.callSetDisabledState??Er}]}}static \u0275fac=function(i){return new(i||e)};static \u0275mod=ei({type:e});static \u0275inj=Zt({imports:[za]})}return e})();var be="top",Oe="bottom",xe="right",Ce="left",En="auto",vi=[be,Oe,xe,Ce],ai="start",Ai="end",Ua="clippingParents",xn="viewport",Yi="popper",qa="reference",Ps=vi.reduce(function(e,t){return e.concat([t+"-"+ai,t+"-"+Ai])},[]),Tn=[].concat(vi,[En]).reduce(function(e,t){return e.concat([t,t+"-"+ai,t+"-"+Ai])},[]),Wc="beforeRead",Uc="read",qc="afterRead",Qc="beforeMain",Kc="main",Yc="afterMain",Jc="beforeWrite",Zc="write",Xc="afterWrite",Qa=[Wc,Uc,qc,Qc,Kc,Yc,Jc,Zc,Xc];function Te(e){return e?(e.nodeName||"").toLowerCase():null}function he(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gt(e){var t=he(e).Element;return e instanceof t||e instanceof Element}function Pe(e){var t=he(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ji(e){if(typeof ShadowRoot>"u")return!1;var t=he(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function eh(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},n=t.attributes[r]||{},s=t.elements[r];!Pe(s)||!Te(s)||(Object.assign(s.style,i),Object.keys(n).forEach(function(o){var a=n[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function th(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var n=t.elements[i],s=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),a=o.reduce(function(l,c){return l[c]="",l},{});!Pe(n)||!Te(n)||(Object.assign(n.style,a),Object.keys(s).forEach(function(l){n.removeAttribute(l)}))})}}var Ka={name:"applyStyles",enabled:!0,phase:"write",fn:eh,effect:th,requires:["computeStyles"]};function Me(e){return e.split("-")[0]}var kt=Math.max,Di=Math.min,li=Math.round;function Zi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xr(){return!/^((?!chrome|android).)*safari/i.test(Zi())}function vt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),n=1,s=1;t&&Pe(e)&&(n=e.offsetWidth>0&&li(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&li(i.height)/e.offsetHeight||1);var o=gt(e)?he(e):window,a=o.visualViewport,l=!xr()&&r,c=(i.left+(l&&a?a.offsetLeft:0))/n,d=(i.top+(l&&a?a.offsetTop:0))/s,_=i.width/n,h=i.height/s;return{width:_,height:h,top:d,right:c+_,bottom:d+h,left:c,x:c,y:d}}function Ii(e){var t=vt(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Tr(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ji(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ke(e){return he(e).getComputedStyle(e)}function ws(e){return["table","td","th"].indexOf(Te(e))>=0}function Re(e){return((gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function ci(e){return Te(e)==="html"?e:e.assignedSlot||e.parentNode||(Ji(e)?e.host:null)||Re(e)}function Ya(e){return!Pe(e)||Ke(e).position==="fixed"?null:e.offsetParent}
vendor: 8,365 bytes, line 2
2function ih(e){var t=/firefox/i.test(Zi()),r=/Trident/i.test(Zi());if(r&&Pe(e)){var i=Ke(e);if(i.position==="fixed")return null}var n=ci(e);for(Ji(n)&&(n=n.host);Pe(n)&&["html","body"].indexOf(Te(n))<0;){var s=Ke(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function Ot(e){for(var t=he(e),r=Ya(e);r&&ws(r)&&Ke(r).position==="static";)r=Ya(r);return r&&(Te(r)==="html"||Te(r)==="body"&&Ke(r).position==="static")?t:r||ih(e)||t}function Fi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ki(e,t,r){return kt(e,Di(t,r))}function Ja(e,t,r){var i=ki(e,t,r);return i>r?r:i}function Mr(){return{top:0,right:0,bottom:0,left:0}}function Ar(e){return Object.assign({},Mr(),e)}function Dr(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var rh=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ar(typeof t!="number"?t:Dr(t,vi))};function nh(e){var t,r=e.state,i=e.name,n=e.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,a=Me(r.placement),l=Fi(a),c=[Ce,xe].indexOf(a)>=0,d=c?"height":"width";if(!(!s||!o)){var _=rh(n.padding,r),h=Ii(s),u=l==="y"?be:Ce,g=l==="y"?Oe:xe,f=r.rects.reference[d]+r.rects.reference[l]-o[l]-r.rects.popper[d],P=o[l]-r.rects.reference[l],m=Ot(s),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,p=f/2-P/2,y=_[u],C=v-h[d]-_[g],E=v/2-h[d]/2+p,x=ki(y,E,C),M=l;r.modifiersData[i]=(t={},t[M]=x,t.centerOffset=x-E,t)}}function sh(e){var t=e.state,r=e.options,i=r.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Tr(t.elements.popper,n)&&(t.elements.arrow=n))}var Es={name:"arrow",enabled:!0,phase:"main",fn:nh,effect:sh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yt(e){return e.split("-")[1]}var oh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ah(e,t){var r=e.x,i=e.y,n=t.devicePixelRatio||1;return{x:li(r*n)/n||0,y:li(i*n)/n||0}}function Za(e){var t,r=e.popper,i=e.popperRect,n=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,_=e.isFixed,h=o.x,u=h===void 0?0:h,g=o.y,f=g===void 0?0:g,P=typeof d=="function"?d({x:u,y:f}):{x:u,y:f};u=P.x,f=P.y;var m=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),p=Ce,y=be,C=window;if(c){var E=Ot(r),x="clientHeight",M="clientWidth";if(E===he(r)&&(E=Re(r),Ke(E).position!=="static"&&a==="absolute"&&(x="scrollHeight",M="scrollWidth")),E=E,n===be||(n===Ce||n===xe)&&s===Ai){y=Oe;var F=_&&E===C&&C.visualViewport?C.visualViewport.height:E[x];f-=F-i.height,f*=l?1:-1}if(n===Ce||(n===be||n===Oe)&&s===Ai){p=xe;var B=_&&E===C&&C.visualViewport?C.visualViewport.width:E[M];u-=B-i.width,u*=l?1:-1}}var V=Object.assign({position:a},c&&oh),k=d===!0?ah({x:u,y:f},he(r)):{x:u,y:f};if(u=k.x,f=k.y,l){var N;return Object.assign({},V,(N={},N[y]=v?"0":"",N[p]=m?"0":"",N.transform=(C.devicePixelRatio||1)<=1?"translate("+u+"px, "+f+"px)":"translate3d("+u+"px, "+f+"px, 0)",N))}return Object.assign({},V,(t={},t[y]=v?f+"px":"",t[p]=m?u+"px":"",t.transform="",t))}function lh(e){var t=e.state,r=e.options,i=r.gpuAcceleration,n=i===void 0?!0:i,s=r.adaptive,o=s===void 0?!0:s,a=r.roundOffsets,l=a===void 0?!0:a,c={placement:Me(t.placement),variation:yt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Za(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Za(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Xa={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lh,data:{}};var Mn={passive:!0};function ch(e){var t=e.state,r=e.instance,i=e.options,n=i.scroll,s=n===void 0?!0:n,o=i.resize,a=o===void 0?!0:o,l=he(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",r.update,Mn)}),a&&l.addEventListener("resize",r.update,Mn),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Mn)}),a&&l.removeEventListener("resize",r.update,Mn)}}var el={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ch,data:{}};var hh={left:"right",right:"left",bottom:"top",top:"bottom"};function Xi(e){return e.replace(/left|right|bottom|top/g,function(t){return hh[t]})}var dh={start:"end",end:"start"};function An(e){return e.replace(/start|end/g,function(t){return dh[t]})}function Oi(e){var t=he(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Ri(e){return vt(Re(e)).left+Oi(e).scrollLeft}function xs(e,t){var r=he(e),i=Re(e),n=r.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(n){s=n.width,o=n.height;var c=xr();(c||!c&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:o,x:a+Ri(e),y:l}}function Ts(e){var t,r=Re(e),i=Oi(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=kt(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=kt(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+Ri(e),l=-i.scrollTop;return Ke(n||r).direction==="rtl"&&(a+=kt(r.clientWidth,n?n.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Vi(e){var t=Ke(e),r=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function Dn(e){return["html","body","#document"].indexOf(Te(e))>=0?e.ownerDocument.body:Pe(e)&&Vi(e)?e:Dn(ci(e))}function yi(e,t){var r;t===void 0&&(t=[]);var i=Dn(e),n=i===((r=e.ownerDocument)==null?void 0:r.body),s=he(i),o=n?[s].concat(s.visualViewport||[],Vi(i)?i:[]):i,a=t.concat(o);return n?a:a.concat(yi(ci(o)))}function er(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uh(e,t){var r=vt(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function tl(e,t,r){return t===xn?er(xs(e,r)):gt(t)?uh(t,r):er(Ts(Re(e)))}function ph(e){var t=yi(ci(e)),r=["absolute","fixed"].indexOf(Ke(e).position)>=0,i=r&&Pe(e)?Ot(e):e;return gt(i)?t.filter(function(n){return gt(n)&&Tr(n,i)&&Te(n)!=="body"}):[]}function Ms(e,t,r,i){var n=t==="clippingParents"?ph(e):[].concat(t),s=[].concat(n,[r]),o=s[0],a=s.reduce(function(l,c){var d=tl(e,c,i);return l.top=kt(d.top,l.top),l.right=Di(d.right,l.right),l.bottom=Di(d.bottom,l.bottom),l.left=kt(d.left,l.left),l},tl(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ir(e){var t=e.reference,r=e.element,i=e.placement,n=i?Me(i):null,s=i?yt(i):null,o=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(n){case be:l={x:o,y:t.y-r.height};break;case Oe:l={x:o,y:t.y+t.height};break;case xe:l={x:t.x+t.width,y:a};break;case Ce:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var c=n?Fi(n):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case ai:l[c]=l[c]-(t[d]/2-r[d]/2);break;case Ai:l[c]=l[c]+(t[d]/2-r[d]/2);break;default:}}return l}function _i(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=i===void 0?e.placement:i,s=r.strategy,o=s===void 0?e.strategy:s,a=r.boundary,l=a===void 0?Ua:a,c=r.rootBoundary,d=c===void 0?xn:c,_=r.elementContext,h=_===void 0?Yi:_,u=r.altBoundary,g=u===void 0?!1:u,f=r.padding,P=f===void 0?0:f,m=Ar(typeof P!="number"?P:Dr(P,vi)),v=h===Yi?qa:Yi,p=e.rects.popper,y=e.elements[g?v:h],C=Ms(gt(y)?y:y.contextElement||Re(e.elements.popper),l,d,o),E=vt(e.elements.reference),x=Ir({reference:E,element:p,strategy:"absolute",placement:n}),M=er(Object.assign({},p,x)),F=h===Yi?M:E,B={top:C.top-F.top+m.top,bottom:F.bottom-C.bottom+m.bottom,left:C.left-F.left+m.left,right:F.right-C.right+m.right},V=e.modifiersData.offset;if(h===Yi&&V){var k=V[n];Object.keys(B).forEach(function(N){var j=[xe,Oe].indexOf(N)>=0?1:-1,O=[be,Oe].indexOf(N)>=0?"y":"x";B[N]+=k[O]*j})}return B}function As(e,t){t===void 0&&(t={});
vendor: 5,080 bytes, line 2
2var r=t,i=r.placement,n=r.boundary,s=r.rootBoundary,o=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Tn:l,d=yt(i),_=d?a?Ps:Ps.filter(function(g){return yt(g)===d}):vi,h=_.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=_);var u=h.reduce(function(g,f){return g[f]=_i(e,{placement:f,boundary:n,rootBoundary:s,padding:o})[Me(f)],g},{});return Object.keys(u).sort(function(g,f){return u[g]-u[f]})}function fh(e){if(Me(e)===En)return[];var t=Xi(e);return[An(e),t,An(t)]}function mh(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var n=r.mainAxis,s=n===void 0?!0:n,o=r.altAxis,a=o===void 0?!0:o,l=r.fallbackPlacements,c=r.padding,d=r.boundary,_=r.rootBoundary,h=r.altBoundary,u=r.flipVariations,g=u===void 0?!0:u,f=r.allowedAutoPlacements,P=t.options.placement,m=Me(P),v=m===P,p=l||(v||!g?[Xi(P)]:fh(P)),y=[P].concat(p).reduce(function(Q,J){return Q.concat(Me(J)===En?As(t,{placement:J,boundary:d,rootBoundary:_,padding:c,flipVariations:g,allowedAutoPlacements:f}):J)},[]),C=t.rects.reference,E=t.rects.popper,x=new Map,M=!0,F=y[0],B=0;B<y.length;B++){var V=y[B],k=Me(V),N=yt(V)===ai,j=[be,Oe].indexOf(k)>=0,O=j?"width":"height",w=_i(t,{placement:V,boundary:d,rootBoundary:_,altBoundary:h,padding:c}),T=j?N?xe:Ce:N?Oe:be;C[O]>E[O]&&(T=Xi(T));var b=Xi(T),S=[];if(s&&S.push(w[k]<=0),a&&S.push(w[T]<=0,w[b]<=0),S.every(function(Q){return Q})){F=V,M=!1;break}x.set(V,S)}if(M)for(var D=g?3:1,A=function(J){var Z=y.find(function(le){var de=x.get(le);if(de)return de.slice(0,J).every(function(Je){return Je})});if(Z)return F=Z,"break"},H=D;H>0;H--){var q=A(H);if(q==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}var Ds={name:"flip",enabled:!0,phase:"main",fn:mh,requiresIfExists:["offset"],data:{_skip:!1}};function gh(e,t,r){var i=Me(e),n=[Ce,be].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=s[0],a=s[1];return o=o||0,a=(a||0)*n,[Ce,xe].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function vh(e){var t=e.state,r=e.options,i=e.name,n=r.offset,s=n===void 0?[0,0]:n,o=Tn.reduce(function(d,_){return d[_]=gh(_,t.rects,s),d},{}),a=o[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}var Is={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vh};function yh(e){var t=e.state,r=e.name;t.modifiersData[r]=Ir({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var il={name:"popperOffsets",enabled:!0,phase:"read",fn:yh,data:{}};function Fs(e){return e==="x"?"y":"x"}function _h(e){var t=e.state,r=e.options,i=e.name,n=r.mainAxis,s=n===void 0?!0:n,o=r.altAxis,a=o===void 0?!1:o,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,_=r.padding,h=r.tether,u=h===void 0?!0:h,g=r.tetherOffset,f=g===void 0?0:g,P=_i(t,{boundary:l,rootBoundary:c,padding:_,altBoundary:d}),m=Me(t.placement),v=yt(t.placement),p=!v,y=Fi(m),C=Fs(y),E=t.modifiersData.popperOffsets,x=t.rects.reference,M=t.rects.popper,F=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,B=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(E){if(s){var N,j=y==="y"?be:Ce,O=y==="y"?Oe:xe,w=y==="y"?"height":"width",T=E[y],b=T+P[j],S=T-P[O],D=u?-M[w]/2:0,A=v===ai?x[w]:M[w],H=v===ai?-M[w]:-x[w],q=t.elements.arrow,Q=u&&q?Ii(q):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mr(),Z=J[j],le=J[O],de=ki(0,x[w],Q[w]),Je=p?x[w]/2-D-de-Z-B.mainAxis:A-de-Z-B.mainAxis,Be=p?-x[w]/2+D+de+le+B.mainAxis:H+de+le+B.mainAxis,ge=t.elements.arrow&&Ot(t.elements.arrow),$e=ge?y==="y"?ge.clientTop||0:ge.clientLeft||0:0,te=(N=V?.[y])!=null?N:0,W=T+Je-te-$e,St=T+Be-te,Ct=ki(u?Di(b,W):b,T,u?kt(S,St):S);E[y]=Ct,k[y]=Ct-T}if(a){var dt,ut=y==="x"?be:Ce,Pt=y==="x"?Oe:xe,De=E[C],Se=C==="y"?"height":"width",wt=De+P[ut],Et=De-P[Pt],ze=[be,Ce].indexOf(m)!==-1,xt=(dt=V?.[C])!=null?dt:0,Ze=ze?wt:De-x[Se]-M[Se]-xt+B.altAxis,Rt=ze?De+x[Se]+M[Se]-xt-B.altAxis:Et,Si=u&&ze?Ja(Ze,De,Rt):ki(u?Ze:wt,De,u?Rt:Et);E[C]=Si,k[C]=Si-De}t.modifiersData[i]=k}}var ks={name:"preventOverflow",enabled:!0,phase:"main",fn:_h,requiresIfExists:["offset"]};function Os(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Rs(e){return e===he(e)||!Pe(e)?Oi(e):Os(e)}function bh(e){var t=e.getBoundingClientRect(),r=li(t.width)/e.offsetWidth||1,i=li(t.height)/e.offsetHeight||1;return r!==1||i!==1}function Vs(e,t,r){r===void 0&&(r=!1);var i=Pe(t),n=Pe(t)&&bh(t),s=Re(t),o=vt(e,n,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!r)&&((Te(t)!=="body"||Vi(s))&&(a=Rs(t)),Pe(t)?(l=vt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Ri(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Sh(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function n(s){r.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);
2o.forEach(function(a){if(!r.has(a)){var l=t.get(a);l&&n(l)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||n(s)}),i}function Bs(e){var t=Sh(e);return Qa.reduce(function(r,i){return r.concat(t.filter(function(n){return n.phase===i}))},[])}function Ns(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ls(e){var t=e.reduce(function(r,i){var n=r[i.name];return r[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var rl={placement:"bottom",modifiers:[],strategy:"absolute"};function nl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function sl(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,n=t.defaultOptions,s=n===void 0?rl:n;return function(a,l,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},rl,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},_=[],h=!1,u={state:d,setOptions:function(m){var v=typeof m=="function"?m(d.options):m;f(),d.options=Object.assign({},s,d.options,v),d.scrollParents={reference:gt(a)?yi(a):a.contextElement?yi(a.contextElement):[],popper:yi(l)};var p=Bs(Ls([].concat(i,d.options.modifiers)));return d.orderedModifiers=p.filter(function(y){return y.enabled}),g(),u.update()},forceUpdate:function(){if(!h){var m=d.elements,v=m.reference,p=m.popper;if(nl(v,p)){d.rects={reference:Vs(v,Ot(p),d.options.strategy==="fixed"),popper:Ii(p)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(B){return d.modifiersData[B.name]=Object.assign({},B.data)});for(var y=0;y<d.orderedModifiers.length;y++){if(d.reset===!0){d.reset=!1,y=-1;continue}var C=d.orderedModifiers[y],E=C.fn,x=C.options,M=x===void 0?{}:x,F=C.name;typeof E=="function"&&(d=E({state:d,options:M,name:F,instance:u})||d)}}}},update:Ns(function(){return new Promise(function(P){u.forceUpdate(),P(d)})}),destroy:function(){f(),h=!0}};if(!nl(a,l))return u;u.setOptions(c).then(function(P){!h&&c.onFirstUpdate&&c.onFirstUpdate(P)});function g(){d.orderedModifiers.forEach(function(P){var m=P.name,v=P.options,p=v===void 0?{}:v,y=P.effect;if(typeof y=="function"){var C=y({state:d,name:m,instance:u,options:p}),E=function(){};_.push(C||E)}})}function f(){_.forEach(function(P){return P()}),_=[]}return u}}var Ch=[el,il,Xa,Ka],Gs=sl({defaultModifiers:Ch});var Ph=["container"],wh=["ngbAccordionBody",""],$s=["*"];var Eh=["dialog"];function xh(e,t){if(e&1&&Ee(0),e&2){let r=fe(2);Bt(r.title)}}function Th(e,t){}function Mh(e,t){if(e&1&&(qe(0,"h3",2),Gi(1,xh,1,1,"ng-template",null,0,zi)(3,Th,0,0,"ng-template",4),Qe()),e&2){let r=ri(2),i=fe();ee(3),It("ngTemplateOutlet",i.isTitleTemplate()?i.title:r)("ngTemplateOutletContext",i.context)}}function Ah(e,t){if(e&1&&(ve(0,"span"),Ee(1),ye()),e&2){let r=fe().$implicit,i=fe();ni(i.highlightClass),ee(),Bt(r)}}function Dh(e,t){if(e&1&&(Wo(0),Ee(1),Uo()),e&2){let r=fe().$implicit;ee(),Bt(r)}}function Ih(e,t){if(e&1&&At(0,Ah,2,3,"span",0)(1,Dh,2,1,"ng-container"),e&2){let r=t.$index;Dt(r%2!==0?0:1)}}var Fh=(e,t,r)=>({result:e,term:t,formatter:r});function kh(e,t){if(e&1&&ns(0,"ngb-highlight",2),e&2){let r=t.result,i=t.term,n=t.formatter;It("result",n(r))("term",i)}}function Oh(e,t){}function Rh(e,t){if(e&1){let r=ji();qe(0,"button",3),Fe("mouseenter",function(){let n=Ci(r).$index,s=fe();return Pi(s.markActive(n))})("click",function(){let n=Ci(r).$implicit,s=fe();return Pi(s.select(n))}),Gi(1,Oh,0,0,"ng-template",4),Qe()}if(e&2){let r=t.$implicit,i=t.$index,n=fe(),s=ri(1);nt("active",i===n.activeIdx),It("id",n.id+"-"+i),ee(),It("ngTemplateOutlet",n.resultTemplate||s)("ngTemplateOutletContext",Qo(5,Fh,r,n.term,n.formatter))}}var pl={animation:!0,transitionTimerDelayMs:5},kn=(()=>{let t=class t{constructor(){this.animation=pl.animation}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Vh=(()=>{let t=class t{constructor(){this._ngbConfig=I(kn),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Bh(e){let{transitionDelay:t,transitionDuration:r}=window.getComputedStyle(e),i=parseFloat(t),n=parseFloat(r);return(i+n)*1e3}function kr(e){return e!=null?`${e}`:""}function On(e){return typeof e=="string"}function Rn(e){return e!=null}function Nh(e){return e&&e.then}function Lh(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Gh(e,t){return!t||typeof e.closest>"u"?null:e.closest(t)}function zs(e){return(e||document.body).getBoundingClientRect()}function Hh(e){return t=>new Oo(r=>{let i=o=>e.run(()=>r.next(o)),n=o=>e.run(()=>r.error(o)),s=()=>e.run(()=>r.complete());return t.subscribe({next:i,error:n,complete:s})})}function ol(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}var jh=()=>{},{transitionTimerDelayMs:$h}=pl,Fr=new Map,Qt=(e,t,r,i)=>{let n=i.context||{},s=Fr.get(t);if(s)switch(i.runningTransition){case"continue":return $r;case"stop":e.run(()=>s.transition$.complete()),n=Object.assign(s.context,n),Fr.delete(t)}let o=r(t,i.animation,n)||jh;if(!i.animation||window.getComputedStyle(t).transitionProperty==="none")return e.run(()=>o()),ne(void 0).pipe(Hh(e));let a=new ue,l=new ue,c=a.pipe(Go(!0));
2Fr.set(t,{transition$:a,complete:()=>{l.next(),l.complete()},context:n});let d=Bh(t);return e.runOutsideAngular(()=>{let _=it(t,"transitionend").pipe(He(c),We(({target:u})=>u===t)),h=Bo(d+$h).pipe(He(c));qn(h,_,l).pipe(He(c)).subscribe(()=>{Fr.delete(t),e.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()},al=e=>{Fr.get(e)?.complete()};function zh(e,t){if(typeof navigator>"u")return"0px";let{classList:r}=e,i=r.contains("show");i||r.add("show"),e.style[t]="";let n=e.getBoundingClientRect()[t]+"px";return i||r.remove("show"),n}var Wh=(e,t,r)=>{let{direction:i,maxSize:n,dimension:s}=r,{classList:o}=e;function a(){o.add("collapse"),i==="show"?o.add("show"):o.remove("show")}if(!t){a();return}return n||(n=zh(e,s),r.maxSize=n,e.style[s]=i!=="show"?n:"0px",o.remove("collapse","collapsing","show"),zs(e),o.add("collapsing")),e.style[s]=i==="show"?n:"0px",()=>{a(),o.remove("collapsing"),e.style[s]=""}},Uh=(()=>{let t=class t{constructor(){this._ngbConfig=I(kn),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ll=(()=>{let t=class t{constructor(){this._config=I(Uh),this._element=I(rt),this._zone=I(ui),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new oe,this.horizontal=this._config.horizontal,this.shown=new oe,this.hidden=new oe}set collapsed(i){this._isCollapsed!==i&&(this._isCollapsed=i,this._afterInit&&this._runTransitionWithEvents(i,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(i=this._isCollapsed){this.collapsed=!i,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(i,n){return Qt(this._zone,this._element.nativeElement,Wh,{animation:n,runningTransition:"stop",context:{direction:i?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(i,n){this._runTransition(i,n).subscribe(()=>{i?this.hidden.emit():this.shown.emit()})}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=ie({type:t,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(n,s){n&2&&nt("collapse-horizontal",s.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"]});let e=t;return e})(),qh=0,ey=(()=>{let t=class t{constructor(){this._item=I(Or),this._viewRef=null,this.elementRef=I(rt)}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){this._viewRef||(this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges())}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["","ngbAccordionBody",""]],contentQueries:function(n,s,o){if(n&1&&tn(o,ur,7),n&2){let a;ti(a=ii())&&(s._bodyTpl=a.first)}},viewQuery:function(n,s){if(n&1&&$i(Ph,7,Xn),n&2){let o;ti(o=ii())&&(s._vcr=o.first)}},hostAttrs:[1,"accordion-body"],attrs:wh,ngContentSelectors:$s,decls:3,vars:0,consts:[["container",""]],template:function(n,s){n&1&&(Xr(),qo(0,null,0),en(2))},encapsulation:2});let e=t;return e})(),Qh=(()=>{let t=class t{constructor(){this.item=I(Or),this.ngbCollapse=I(ll)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=ie({type:t,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(n,s){n&2&&(Ft("id",s.item.collapseId),pt("aria-labelledby",s.item.toggleId))},exportAs:["ngbAccordionCollapse"],features:[es([ll])]});let e=t;return e})(),Kh=(()=>{let t=class t{constructor(){this.item=I(Or),this.accordion=I(fl)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=ie({type:t,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(n,s){n&1&&Fe("click",function(){return!s.item.disabled&&s.accordion.toggle(s.item.id)}),n&2&&(Ft("id",s.item.toggleId),pt("aria-controls",s.item.collapseId)("aria-expanded",!s.item.collapsed),nt("collapsed",s.item.collapsed))}});let e=t;return e})(),ty=(()=>{let t=class t{constructor(){this.item=I(Or)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=ie({type:t,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button",1,"accordion-button"],hostVars:1,hostBindings:function(n,s){n&2&&Ft("disabled",s.item.disabled)},features:[es([Kh])]});let e=t;return e})();var Or=(()=>{let t=class t{constructor(){this._accordion=I(fl),this._cd=I(Nt),this._destroyRef=I(Qr),this._collapsed=!0,this._id=`ngb-accordion-item-${qh++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new oe,this.shown=new oe,this.hide=new oe,this.hidden=new oe}set id(i){On(i)&&i!==""&&(this._id=i)}set destroyOnHide(i){this._destroyOnHide=i}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(i){i?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:i}=this._collapse;i.animation=!1,i.collapsed=this.collapsed,i.animation=this._accordion.animation,i.hidden.pipe(ls(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id
2),this._cd.markForCheck()}),i.shown.pipe(ls(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id),this._cd.markForCheck()})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=ie({type:t,selectors:[["","ngbAccordionItem",""]],contentQueries:function(n,s,o){if(n&1&&tn(o,Qh,7),n&2){let a;ti(a=ii())&&(s._collapse=a.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(n,s){n&2&&Ft("id",s.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"]});let e=t;return e})(),fl=(()=>{let t=class t{constructor(){this._config=I(Vh),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new oe,this.shown=new oe,this.hide=new oe,this.hidden=new oe}toggle(i){this._getItem(i)?.toggle()}expand(i){this._getItem(i)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(i=>!i.collapsed)||this._items.first.expand():this._items.forEach(i=>i.expand()))}collapse(i){this._getItem(i)?.collapse()}collapseAll(){this._items?.forEach(i=>i.collapse())}isExpanded(i){let n=this._getItem(i);return n?!n.collapsed:!1}_ensureCanExpand(i){return this.closeOthers?this._items?(this._items.find(n=>!n.collapsed&&i!==n)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(i){return this._items?.find(n=>n.id===i)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=ie({type:t,selectors:[["","ngbAccordion",""]],contentQueries:function(n,s,o){if(n&1&&tn(o,Or,4),n&2){let a;ti(a=ii())&&(s._items=a)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"]});let e=t;return e})();var iy=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({});let e=t;return e})();var ry=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({});let e=t;return e})();var In=(e,t)=>t?t.some(r=>r.contains(e)):!1,cl=(e,t)=>!t||Gh(e,t)!=null,Yh=(()=>{let e=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,t=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(e()||t()):!1})(),Jh=e=>Yh?()=>setTimeout(()=>e(),100):e;function ml(e,t,r,i,n,s,o,a){r&&e.runOutsideAngular(Jh(()=>{let l=h=>{let u=h.target;return h.button===2||In(u,o)?!1:r==="inside"?In(u,s)&&cl(u,a):r==="outside"?!In(u,s):cl(u,a)||!In(u,s)},c=it(t,"keydown").pipe(He(n),We(h=>h.key==="Escape"),hr(h=>h.preventDefault())),d=it(t,"mousedown").pipe($(l),He(n)),_=it(t,"mouseup").pipe(Ur(d),We(([h,u])=>u),Lo(0),He(n));qn([c.pipe($(h=>0)),_.pipe($(h=>1))]).subscribe(h=>e.run(()=>i(h)))}))}var Zh=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function gl(e){let t=Array.from(e.querySelectorAll(Zh)).filter(r=>r.tabIndex!==-1);return[t[0],t[t.length-1]]}var Xh=(e,t,r,i=!1)=>{e.runOutsideAngular(()=>{let n=it(t,"focusin").pipe(He(r),$(s=>s.target));it(t,"keydown").pipe(He(r),We(s=>s.key==="Tab"),Ur(n)).subscribe(([s,o])=>{let[a,l]=gl(t);(o===a||o===t)&&s.shiftKey&&(l.focus(),s.preventDefault()),o===l&&!s.shiftKey&&(a.focus(),s.preventDefault())}),i&&it(t,"click").pipe(He(r),Ur(n),$(s=>s[1])).subscribe(s=>s.focus())})},ed=(()=>{let t=class t{constructor(){this._element=I(Mt).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),td=/\s+/,id=/ +/gi,rd={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","to
2p-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function nd(e,t){let[r,i]=rd[e];return t&&i||r}var sd=/^left/,od=/^right/,ad=/^start/,ld=/^end/;function cd(e,t){let[r,i]=t.split("-"),n=r.replace(sd,"start").replace(od,"end"),s=[n];if(i){let o=i;(r==="left"||r==="right")&&(o=o.replace(ad,"top").replace(ld,"bottom")),s.push(`${n}-${o}`)}return e&&(s=s.map(o=>`${e}-${o}`)),s.join(" ")}function hl({placement:e,baseClass:t},r){let i=Array.isArray(e)?e:e.split(td),n=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],s=i.findIndex(c=>c==="auto");s>=0&&n.forEach(function(c){i.find(d=>d.search("^"+c)!==-1)==null&&i.splice(s++,1,c)});let o=i.map(c=>nd(c,r.isRTL()));return{placement:o.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!t,phase:"write",fn({state:c}){let d=new RegExp(t+"(-[a-z]+)*","gi"),_=c.elements.popper,h=c.placement,u=_.className;u=u.replace(d,""),u+=` ${cd(t,h)}`,u=u.trim().replace(id," "),_.className=u}},Ds,ks,Es,{enabled:!0,name:"flip",options:{fallbackPlacements:o}}]}}function dl(e){return e}function vl(){let e=I(ed),t=null;return{createPopper(r){if(!t){let n=(r.updatePopperOptions||dl)(hl(r,e));t=Gs(r.hostElement,r.targetElement,n)}},update(){t&&t.update()},setOptions(r){if(t){let n=(r.updatePopperOptions||dl)(hl(r,e));t.setOptions(n)}},destroy(){t&&(t.destroy(),t=null)}}}function yl(e){return t=>(t.modifiers.push(Is,{name:"offset",options:{offset:()=>e}}),t)}var ny=new Date(1882,10,12),sy=new Date(2174,10,25);var oy=1e3*60*60*24;var Ws=1080,hd=24*Ws,dd=12*Ws+793,ay=29*hd+dd,ly=11*Ws+204;var ud=(()=>{let t=class t{constructor(){this._ngbConfig=I(kn),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),hi=class{constructor(t,r,i){this.nodes=t,this.viewRef=r,this.componentRef=i}},Fn=class{constructor(t){this._componentType=t,this._windowRef=null,this._contentRef=null,this._document=I(Mt),this._applicationRef=I(pr),this._injector=I(Tt),this._viewContainerRef=I(Xn),this._ngZone=I(ui)}open(t,r,i=!1){this._windowRef||(this._contentRef=this._getContentRef(t,r),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:n}=this._windowRef.location,s=new ue;Ni({mixedReadWrite:()=>{s.next(),s.complete()}},{injector:this._injector});let o=s.pipe(Vo(()=>Qt(this._ngZone,n,({classList:a})=>a.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(t=!1){return this._windowRef?Qt(this._ngZone,this._windowRef.location.nativeElement,({classList:r})=>r.remove("show"),{animation:t,runningTransition:"stop"}).pipe(hr(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):ne(void 0)}_getContentRef(t,r){if(t)if(t instanceof ur){let i=t.createEmbeddedView(r);return this._applicationRef.attachView(i),new hi([i.rootNodes],i)}else return new hi([[this._document.createTextNode(`${t}`)]]);else return new hi([])}},pd=(()=>{let t=class t{constructor(){this._document=I(Mt)}hide(){let i=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),n=this._document.body,s=n.style,{overflow:o,paddingRight:a}=s;if(i>0){let l=parseFloat(window.getComputedStyle(n).paddingRight);s.paddingRight=`${l+i}px`}return s.overflow="hidden",()=>{i>0&&(s.paddingRight=a),s.overflow=o}}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),fd=["animation","backdropClass"],md=(()=>{let t=class t{constructor(){this._nativeElement=I(rt).nativeElement,this._zone=I(ui),this._injector=I(Tt),this._cdRef=I(Nt)}ngOnInit(){Ni({mixedReadWrite:()=>Qt(this._zone,this._nativeElement,(i,n)=>{n&&zs(i),i.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return Qt(this._zone,this._nativeElement,({classList:i})=>i.remove("show"),{animation:this.animation,runningTransition:"stop"})}updateOptions(i){fd.forEach(n=>{Rn(i[n])&&(this[n]=i[n])}),this._cdRef.markForCheck()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,s){n&2&&(ni("modal-backdrop"+(s.backdropClass?" "+s.backdropClass:"")),nt("show",!s.animation)("fade",s.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(n,s){},encapsulation:2});let e=t;return e})(),_t=class{update(t){}close(t){}dismiss(t){}},Hs=class{update(t){this._windowCmptRef.instance.updateOptions(t),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._backdropCmptRef.instance.updateOptions(t)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(He(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(He(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(t,r,i,n){this._windowCmptRef=t,this._contentRef=r,this._backdropCmptRef=i,this._beforeDismiss=n,this._closed=new ue,this._dismissed=new ue,this._hidden=new ue,t.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,o)=>{this._resolve=s,this._reject=o}),this.result.then(null,()=>{})}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(t);else{let r=this._beforeDismiss();Nh(r)?r.then(i=>{i!==!1&&this._dismiss(t)},()=>{}):r!==!1&&this._dismiss(t)}}_removeModalElements(){let t=this._windowCmptRef.instance.hide(),r=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ne(void 0);t.subscribe(()=>{let{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),r.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Wr(t,r).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},js=(function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e})(js||{}),gd=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],vd=(()=>{let t=class t{constructor(){this._document=I(Mt),this._elRef=I(rt),this._zone=I(ui),this._injector=I(Tt),this._cdRef=I(Nt),this._closed$=new ue,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new oe,this.shown=new ue,this.hidden=new ue}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":On(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(i){this.dismissEvent.emit(i)}ngOnInit(){this._elWithFocus=this._document.activeElement,Ni({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:i}=this._elRef,n={animation:this.animation,runningTransition:"stop"},s=Qt(this._zone,i,()=>i.classList.remove("show"),n),o=Qt(this._zone,this._dialogEl.nativeElement,()=>{},n),a=Wr(s,o);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}updateOptions(i){gd.forEach(n=>{Rn(i[n])&&(this[n]=i[n])}),this._cdRef.markForCheck()}_show(){let i={animation:this.animation,runningTransition:"continue"},n=Qt(this._zone,this._elRef.nativeElement,(o,a)=>{a&&zs(o),o.classList.add("show")},i),s=Qt(this._zone,this._dialogEl.nativeElement,()=>{},i);Wr(n,s).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:i}=this._elRef;this._zone.runOutsideAngular(()=>{it(i,"keydown").pipe(He(this._closed$),We(s=>s.key==="Escape")).subscribe(s=>{this.keyboard?requestAnimationFrame(()=>{s.defaultPrevented||this._zone.run(()=>this.dismiss(js.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let n=!1;it(this._dialogEl.nativeElement,"mousedown").pipe(He(this._closed$),hr(()=>n=!1),Ge(()=>it(i,"mouseup").pipe(He(this._closed$),Le(1))),We(({target:s})=>i===s)).subscribe(()=>{n=!0}),it(i,"click").pipe(He(this._closed$)).subscribe(({target:s})=>{i===s&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!n&&this._zone.run(()=>this.dismiss(js.BACKDROP_CLICK))),n=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:i}=this._elRef;if(!i.contains(document.activeElement)){let n=i.querySelector("[ngbAutofocus]"),s=gl(i)[0];(n||s||i).focus()}}_restoreFocus(){let i=this._document.body,n=this._elWithFocus,s;n&&n.focus&&i.contains(n)?s=n:s=i,this._zone.runOutsideAngular(()=>{setTimeout(()=>s.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Qt(this._zone,this._elRef.nativeElement,({classList:i})=>(i.add("modal-static"),()=>i.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(n,s){if(n&1&&$i(Eh,7),n&2){let o;ti(o=ii())&&(s._dialogEl=o.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(n,s){n&2&&(pt("aria-modal",!0)("aria-labelledby",s.ariaLabelledBy)("aria-describedby",s.ariaDescribedBy)("role",s.role),ni("modal d-block"+(s.windowClass?" "+s.windowClass:"")),nt("fade",s.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:$s,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(n,s){n&1&&(Xr(),ve(0,"div",1,0)(2,"div",2),en(3),ye()()),n&2&&ni("modal-dialog"+(s.size?" modal-"+s.size:"")+(s.centered?" modal-dialog-centered":"")+s.fullscreenClass+(s.scrollable?" modal-dialog-scrollable":"")+(s.modalDialogClass?" "+s.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden} 3`],encapsulation:2});let e=t;return e})(),yd=(()=>{let t=class t{constructor(){this._applicationRef=I(pr),this._injector=I(Tt),this._environmentInjector=I(Yn),this._document=I(Mt),this._scrollBar=I(pd),this._activeWindowCmptHasChanged=new ue,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRef
3s=[],this._windowCmpts=[],this._activeInstances=new oe;let i=I(ui);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let n=this._windowCmpts[this._windowCmpts.length-1];Xh(i,n.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(n.location.nativeElement)}})}_restoreScrollBar(){let i=this._scrollBarRestoreFn;i&&(this._scrollBarRestoreFn=null,i())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(i,n,s){let o=s.container instanceof HTMLElement?s.container:Rn(s.container)?this._document.querySelector(s.container):this._document.body;if(!o)throw new Error(`The specified modal container "${s.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new _t;i=s.injector||i;let l=i.get(Yn,null)||this._environmentInjector,c=this._getContentRef(i,l,n,a,s),d=s.backdrop!==!1?this._attachBackdrop(o):void 0,_=this._attachWindowComponent(o,c.nodes),h=new Hs(_,c,d,s.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(_),h.hidden.pipe(Le(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=u=>{h.close(u)},a.dismiss=u=>{h.dismiss(u)},a.update=u=>{h.update(u)},h.update(s),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),_.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(i){this._modalRefs.forEach(n=>n.dismiss(i))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(i){let n=rn(md,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(n.hostView),i.appendChild(n.location.nativeElement),n}_attachWindowComponent(i,n){let s=rn(vd,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:n});return this._applicationRef.attachView(s.hostView),i.appendChild(s.location.nativeElement),s}_getContentRef(i,n,s,o,a){return s?s instanceof ur?this._createFromTemplateRef(s,o):On(s)?this._createFromString(s):this._createFromComponent(i,n,s,o,a):new hi([])}_createFromTemplateRef(i,n){let s={$implicit:n,close(a){n.close(a)},dismiss(a){n.dismiss(a)}},o=i.createEmbeddedView(s);return this._applicationRef.attachView(o),new hi([o.rootNodes],o)}_createFromString(i){let n=this._document.createTextNode(`${i}`);return new hi([[n]])}_createFromComponent(i,n,s,o,a){let l=Tt.create({providers:[{provide:_t,useValue:o}],parent:i}),c=rn(s,{environmentInjector:n,elementInjector:l}),d=c.location.nativeElement;return a.scrollable&&d.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new hi([[d]],c.hostView,c)}_setAriaHidden(i){let n=i.parentElement;n&&i!==this._document.body&&(Array.from(n.children).forEach(s=>{s!==i&&s.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}_revertAriaHidden(){this._ariaHiddenValues.forEach((i,n)=>{i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(i){let n=()=>{let s=this._modalRefs.indexOf(i);s>-1&&(this._modalRefs.splice(s,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(i),this._activeInstances.emit(this._modalRefs),i.result.then(n,n)}_registerWindowCmpt(i){this._windowCmpts.push(i),this._activeWindowCmptHasChanged.next(),i.onDestroy(()=>{let n=this._windowCmpts.indexOf(i);n>-1&&(this._windowCmpts.splice(n,1),this._activeWindowCmptHasChanged.next())})}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Vn=(()=>{let t=class t{constructor(){this._injector=I(Tt),this._modalStack=I(yd),this._config=I(ud)}open(i,n={}){let s=G(z(G({},this._config),{animation:this._config.animation}),n);return this._modalStack.open(this._injector,i,s)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(i){this._modalStack.dismissAll(i)}hasOpenModals(){return this._modalStack.hasOpenModals()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var _d={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function bd(e){let t=(e||"").trim();if(t.length===0)return[];let r=t.split(/\s+/).map(n=>n.split(":")).map(n=>_d[n[0]]||n),i=r.filter(n=>n.includes("manual"));if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(i.length===1&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i.length?[]:r}function Sd(e,t,r,i,n,s=0,o=0,a=$r,l=$r){let c=bd(t);if(c.length===0)return()=>{};let d=new Set,_=[],h;function u(f,P){e.addEventListener(f,P),_.push(()=>e.removeEventListener(f,P))}function g(f,P){clearTimeout(h),P>0?h=setTimeout(f,P):f()}for(let[f,P]of c)if(P?(u(f,()=>{d.add(f),g(()=>d.size>0&&i(),s)}),u(P,()=>{d.delete(f),g(()=>d.size===0&&n(),o)})):u(f,()=>r()?g(n,o):g(i,s)),f==="mouseenter"&&P==="mouseleave"&&o>0){let m=a.subscribe(()=>{d.delete(f),clearTimeout(h)}),v=l.subscribe(()=>{d.delete(f),g(()=>d.size===0&&n(),o)});_.push(()=>m.unsubscribe(),()=>v.unsubscribe())}return _.push(()=>
3clearTimeout(h)),()=>_.forEach(f=>f())}var Cd=(()=>{let t=class t{constructor(){this._ngbConfig=I(kn),this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Pd=0,wd=(()=>{let t=class t{isTitleTemplate(){return this.title instanceof ur}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,s){n&1&&Fe("mouseenter",function(){return s.onMouseEnter()})("mouseleave",function(){return s.onMouseLeave()}),n&2&&(Ft("id",s.id),ni("popover"+(s.popoverClass?" "+s.popoverClass:"")),nt("fade",s.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave"},ngContentSelectors:$s,decls:4,vars:1,consts:[["simpleTitle",""],["data-popper-arrow","",1,"popover-arrow"],[1,"popover-header"],[1,"popover-body"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,s){n&1&&(Xr(),ns(0,"div",1),At(1,Mh,4,2,"h3",2),qe(2,"div",3),en(3),Qe()),n&2&&(ee(),Dt(s.title?1:-1))},dependencies:[os],encapsulation:2,changeDetection:0});let e=t;return e})(),cy=(()=>{let t=class t{constructor(){this._config=I(Cd),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disablePopover=this._config.disablePopover,this.popoverClass=this._config.popoverClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new oe,this.hidden=new oe,this._nativeElement=I(rt).nativeElement,this._ngZone=I(ui),this._document=I(Mt),this._changeDetector=I(Nt),this._injector=I(Tt),this._ngbPopoverWindowId=`ngb-popover-${Pd++}`,this._popupService=new Fn(wd),this._windowRef=null,this._positioning=vl(),this._mouseEnterPopover=new ue,this._mouseLeavePopover=new ue,this._opening=!0,this._transitioning=!1}open(i){if(!this._opening&&this._transitioning&&(this._transitioning=!1,al(this._windowRef.location.nativeElement)),!this._windowRef&&!this._isDisabled()){let{windowRef:n,transition$:s}=this._popupService.open(this.ngbPopover,i??this.popoverContext,this.animation);this._opening=!0,this._transitioning=!0,this._windowRef=n,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",i??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._windowRef.setInput("onMouseEnter",()=>this._mouseEnterPopover.next()),this._windowRef.setInput("onMouseLeave",()=>this._mouseLeavePopover.next()),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbPopoverWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,baseClass:"bs-popover",updatePopperOptions:o=>this.popperOptions(yl([0,8])(o))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=Zn({mixedReadWrite:()=>{this._positioning.update()}},{injector:this._injector})}),ml(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),s.subscribe(()=>{this._transitioning&&(this._transitioning=!1,this.shown.emit())})}}close(i=this.animation){this._opening&&this._transitioning&&(this._transitioning=!1,al(this._windowRef.location.nativeElement)),this._windowRef&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._opening=!1,this._transitioning=!0,this._popupService.close(i).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this._transitioning&&(this._transitioning=!1,this.hidden.emit()),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=Sd(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay,this._mouseEnterPopover,this._mouseLeavePopover)}ngOnChanges({ngbPopover:i,popoverTitle:n,disablePopover:s,popoverClass:o}){o&&this.isOpen()&&this._windowRef.setInput("popoverClass",o.currentValue),(i||n||s)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_isDisabled(){return this.disablePopover?!0:!this.ngbPopover&&!this.popoverTitle}_getPositionTargetElement(){return(On(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=ie({type:t,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[Vt]});let e=t;return e})(),hy=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({});let e=t;return e})();var Ed=(()=>{let t=class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(i){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let n=kr(this.result),s=Array.isArray(this.term)?this.term:[this.term],o=d=>this.accentSensitive?d:ol(d),a=s.map(d=>Lh(o(kr(d)))).filter(d=>d),l=this.accentSensitive?n:ol(n),c=a.length?l.split(new RegExp(`(${a.join("|")})`,"gmi")):[n];if(this.accentSensitive)this.parts=c;else{let d=0;this.parts=c.map(_=>n.substring(d,d+=_.length))}}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},features:[Vt],decls:2,vars:0,consts:[[3,"class"]],template:function(n,s){n&1&&is(0,Ih,2,1,null,null,ts),n&2&&rs(s.parts)},styles:[`.ngb-highlight{font-weight:700} 4`],encapsulation:2,changeDetection:0});let e=t;return e})(),xd=new Xt("live announcer delay",{providedIn:"root",factory:()=>100});function ul(e,t=!1){let r=e.body.querySelector("#ngb-live");return r==null&&t&&(r=e.createElement("div"),r.setAttribute("id","ngb-live"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-atomic","true"),r.classList.add("visually-hidden"),e.body.appendChild(r)),r}var Td=(()=>{let t=class t{constructor(){this._document=I(Mt),this._delay=I(xd)}ngOnDestroy(){let i=ul(this._document);i&&i.parentElement.removeChild(i)}say(i){let n=ul(this._document,!0),s=this._delay;if(n!=null){n.textContent="";let o=()=>n.textContent=i;s===null?o():setTimeout(o,s)}}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Md=(()=>{let t=class t{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","to
4p-end"],this.popperOptions=i=>i}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ad=(()=>{let t=class t{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=kr,this.selectEvent=new oe,this.activeChangeEvent=new oe}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(i){this.activeIdx=i,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(i){this.selectEvent.emit(i)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(n,s){n&1&&Fe("mousedown",function(a){return a.preventDefault()}),n&2&&(Ft("id",s.id),ni("dropdown-menu show"+(s.popupClass?" "+s.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,s){n&1&&(Gi(0,kh,1,2,"ng-template",null,0,zi),is(2,Rh,2,9,"button",1,ts)),n&2&&(ee(2),rs(s.results))},dependencies:[Ed,os],encapsulation:2});let e=t;return e})(),Dd=0,dy=(()=>{let t=class t{constructor(){this._nativeElement=I(rt).nativeElement,this._config=I(Md),this._live=I(Td),this._document=I(Mt),this._ngZone=I(ui),this._changeDetector=I(Nt),this._injector=I(Tt),this._popupService=new Fn(Ad),this._positioning=vl(),this._subscription=null,this._closed$=new ue,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=it(this._nativeElement,"input").pipe($(i=>i.target.value)),this._resubscribeTypeahead$=new Jt(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new oe,this.activeDescendant=null,this.popupId=`ngb-typeahead-${Dd++}`,this._onTouched=()=>{},this._onChange=i=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:i}){i&&!i.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}writeValue(i){this._writeInputValue(this._formatItemForInput(i)),this.showHint&&(this._inputValueBackup=i)}setDisabledState(i){this._nativeElement.disabled=i}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(i){if(this.isPopupOpen())switch(i.key){case"ArrowDown":i.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":i.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let n=this._windowRef.instance.getActive();Rn(n)&&(i.preventDefault(),i.stopPropagation(),this._selectResult(n)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:i}=this._popupService.open();this._windowRef=i,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(n=>this._selectResultClosePopup(n)),this._windowRef.instance.activeChangeEvent.subscribe(n=>this.activeDescendant=n),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:n=>this.popperOptions(yl([0,2])(n))}),this._afterRenderRef=Zn({mixedReadWrite:()=>
4{this._positioning.update()}},{injector:this._injector}))}),ml(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._afterRenderRef?.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(i){let n=!1;this.selectItem.emit({item:i,preventDefault:()=>{n=!0}}),this._resubscribeTypeahead$.next(null),n||(this.writeValue(i),this._onChange(i))}_selectResultClosePopup(i){this._selectResult(i),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let i=this._inputValueBackup.toLowerCase(),n=this._formatItemForInput(this._windowRef.instance.getActive());i===n.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+n.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,n.length])):this._writeInputValue(n)}}_formatItemForInput(i){return i!=null&&this.inputFormatter?this.inputFormatter(i):kr(i)}_writeInputValue(i){this._nativeElement.value=kr(i)}_subscribeToUserInput(){let i=this._valueChanges$.pipe(hr(n=>{this._inputValueBackup=this.showHint?n:null,this._inputValueForSelectOnExact=this.selectOnExact?n:null,this._onChange(this.editable?n:null)}),this.ngbTypeahead?this.ngbTypeahead:()=>ne([]));this._subscription=this._resubscribeTypeahead$.pipe(Ge(()=>i)).subscribe(n=>{!n||n.length===0?this._closePopup():this.selectOnExact&&n.length===1&&this._formatItemForInput(n[0])===this._inputValueForSelectOnExact?(this._selectResult(n[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",n),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let s=n?n.length:0;this._live.say(s===0?"No results available":`${s} result${s===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=ie({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(n,s){n&1&&Fe("blur",function(){return s.handleBlur()})("keydown",function(a){return s.handleKeyDown(a)}),n&2&&(Ft("autocomplete",s.autocomplete),pt("aria-autocomplete",s.showHint?"both":"list")("aria-activedescendant",s.activeDescendant)("aria-controls",s.isPopupOpen()?s.popupId:null)("aria-expanded",s.isPopupOpen()),nt("open",s.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[ke([{provide:qt,useExisting:Ue(()=>t),multi:!0}]),Vt]});let e=t;return e})(),uy=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ei({type:t}),t.\u0275inj=Zt({});let e=t;return e})();function my(e,t){let r=e.controls;for(let i in r)if(r[i].invalid){let n=t.find(s=>s.nativeElement.getAttribute("formControlName")===i);if(n){let s=n.nativeElement;s.type==="radio"||s.type==="checkbox"?document.querySelectorAll(`[formControlName="${i}"]`)[0].focus():s.focus();break}}}var Kt={production:!0,localAPIUrl:"https://api.petpartners.com",akc:{recaptcha:{SITE_KEY:"6LdYyDIpAAAAAN51y31VUKGw72heJoyKGYx6P_xa",ORIGIN:"quote.akcpetinsurance.com"}},ppi:{recaptcha:{SITE_KEY:"6LefkzUpAAAAALkTYjOXP3wqcwb3eEoWoKfDW2Jc",ORIGIN:"quote.petpartners.com"}},felix:{recaptcha:{SITE_KEY:"6Lf0W08pAAAAAP0IP4i7Af_LzV2vC5Lzsi7tadc2",ORIGIN:"quote.felixcatinsurance.com"}},ppu:{recaptcha:{SITE_KEY:"6LeF3dsrAAAAAHbpZg7SW5Pr_3I4OS8xb3-cp5DD",ORIGIN:"quote.petsplusus.com"},apiUrl:"https://api.ca.petpartners.com"},skipRecaptcha:!1,featureFlags:{cfa30DayCertFeature:!1,customerPortalFeature:!0,walmartGiftCardFeature:!0},stripe:{apiUrl:"https://payment-api.ipgpet.com",returnUrl:"https://internal-api-az.petpartners.com/finance/v1/stripe/payment-intent-response"},orca:{url:"https://orca.ca.petpartners.com",path:"/SycurioPayment/Capture"},emailRedirectUrl:{felix:"https://login.felixcatinsurance.com/portal/#/email-route?email=",akc:"https://www.akcpetinsurance.com/portal/#/email-route?email=",ppi:"https://www.petpartners.com/portal/#/create-account?email="}};function Xe(e){return e?Object.keys(e).length===0&&e.constructor===Object:!0}function _y(e,t=!1){let r=0;return e&&e.pets&&e.pets.length>
40&&(e.pets.forEach(i=>{r+=i.coverage?.monthlyPremium??0,t&&(r+=i.coverage?.taxSummary?.salesTaxMonthly??0)}),r=r&&Id(r,e)),r}function Id(e,t){return e+t?.serviceFee}function by(e){return parseFloat((e*100).toFixed(0))}function Sy(e){return(e?.pets?.indexOf(e?.pets?.find(r=>r.petId===e.currentPetId))??-1)%10}function Cy(e){return Math.round((e+Number.EPSILON)*100)/100}function wy(e,t){document.getElementsByClassName(e)[0]?.scrollIntoView({behavior:"smooth",block:t??"start"})}function Ey(e,t="start"){document.getElementById(e)?.scrollIntoView({behavior:"smooth",block:t})}Date.prototype.addDays=function(e){if(!e)return this;let t=this;return t.setDate(t.getDate()+e),t};Date.prototype.addMonths=function(e){if(!e)return this;let t=this;return t.setMonth(t.getMonth()+e),t};Date.prototype.addYears=function(e){if(!e)return this;let t=this;return t.setFullYear(t.getFullYear()+e),t};Date.prototype.subtractDays=function(e){if(!e)return this;let t=this;return t.setDate(t.getDate()-e),t};Date.prototype.subtractMonths=function(e){if(!e)return this;let t=this;return t.setMonth(t.getMonth()-e),t};Date.prototype.subtractYears=function(e){if(!e)return this;let t=this;return t.setFullYear(t.getFullYear()-e),t};Date.prototype.isToday=function(){let e=new Date;return this.isSameDate(e)};Date.prototype.clone=function(){return new Date(+this)};Date.prototype.isAnotherMonth=function(e){return e&&this.getMonth()!==e.getMonth()};Date.prototype.isWeekend=function(){return this.getDay()===0||this.getDay()===6};Date.prototype.isSameDate=function(e){return e&&this.getFullYear()===e.getFullYear()&&this.getMonth()===e.getMonth()&&this.getDate()===e.getDate()};Date.prototype.isSameOrAfter=function(e){return this.isSameDate(e)||this>e};Date.prototype.isSameOrBefore=function(e){return this.isSameDate(e)||this<e};Date.prototype.isAfter=function(e){return this>e};function Us(e){return e===0?new Date().subtractMonths(6):new Date().subtractYears(e)}function ct(e){let t=new Date,r=new Date(e),i=t.getMonth()-r.getMonth(),n=t.getFullYear()-r.getFullYear();(i<0||i===0&&t.getDate()<r.getDate())&&n--;let s=n<1?0:n;return{age:s,display:s.toString()}}var _l=(()=>{let t=class t{get nativeWindow(){return window}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ky(){let e=window.location.protocol,t=kd(new _l),r=Fd(),n=xi().code,o=Kt[n]?.apiUrl||Kt.localAPIUrl,a=o||e+"//api"+t+".petpartners"+r;return a=a.replace("api.tst","test"),a}function Fd(){let e=window.location.hostname;return e.substring(e.lastIndexOf("."))}function kd(e){let t="",r="",i=e.nativeWindow.location.host;try{t=i.substring(0,i.indexOf(".")).replace("login","").replace("www","").replace("akcpetinsurance","").replace("petpartners","").replace("felixcatinsurance","").replace(".",""),/\d/.test(t)&&(r=t.match(/\d+/)[0]);let n=t.replace(r,"");t=n?r+"."+n:r}catch{console.log("Error getting suffix")}return t}function Vy(e,t=cs.English){if(!e?.length)return e;let r=t===cs.French?[...e].sort((n,s)=>new Intl.Collator(sn.FrenchCA,{sensitivity:"base"}).compare(n.display?.toLowerCase()??"",s.display?.toLowerCase()??"")):[...e],i=r.findIndex(n=>{let s=n.display?.toLowerCase();return s==="mixed"||s==="mixed breed"||s==="crossbreed"||s==="race crois\xE9e"});return i>=0&&r.unshift(r.splice(i,1)[0]),r}function Rr(e){return e.replace(/([A-Z])/g," $&").trim()}function Ly(e){if(typeof e!="object")throw new Error("Input must be an object");return Object.keys(e)}function tr(e){if(!e||!e.pets)return;let t=e.currentPetId;return e.pets.find(r=>r.petId===t)}var ir=(()=>{let t=class t{constructor(){this.document=I(Mt),this.platformId=I(Jn),this.documentIsAccessible=as(this.platformId)}static getCookieRegExp(i){let n=i.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+n+"|;\\s*"+n+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(i){try{return decodeURIComponent(i)}catch{return i}}check(i){return this.documentIsAccessible?(i=encodeURIComponent(i),t.getCookieRegExp(i).test(this.document.cookie)):!1}get(i){if(this.check(i)){i=encodeURIComponent(i);let s=t.getCookieRegExp(i).exec(this.document.cookie);return s?.[1]?t.safeDecodeURIComponent(s[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let i={},n=this.document;return n.cookie&&n.cookie!==""&&n.cookie.split(";").forEach(s=>{let[o,a]=s.split("=");i[t.safeDecodeURIComponent(o.replace(/^ /,""))]=t.safeDecodeURIComponent(a)}),i}set(i,n,s,o,a,l,c,d){if(!this.documentIsAccessible)return;if(typeof s=="number"||s instanceof Date||o||a||l||c){let u={expires:s,path:o,domain:a,secure:l,sameSite:c||"Lax",partitioned:d};this.set(i,n,u);return}let _=encodeURIComponent(i)+"="+encodeURIComponent(n)+";",h=s||{};if(h.expires)if(typeof h.expires=="number"){let u=new Date(new Date().getTime()+h.expires*1e3*60*60*24);_+="expires="+u.toUTCString()+";"}else _+="expires="+h.expires.toUTCString()+";";h.path&&(_+="path="+h.path+";"),h.domain&&(_+="domain="+h.domain+";"),h.secure===!1&&h.sameSite==="None"&&(h.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${i} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),h.secure&&(_+="secure;"),h.sameSite||(h.sameSite="Lax"),_+="sameSite="+h.sameSite+";",h.partitioned&&(_+="Partitioned;"),this.document.cookie=_}delete(i,n,s,o,a="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(i,"",{expires:l,path:n,domain:s,secure:o,sameSite:a})}deleteAll(i,n,s,o="Lax"){if(!this.documentIsAccessible)return;let a=this.getAll();for(let l in a)a.hasOwnProperty(l)&&this.delete(l,i,n,s,o)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();
4var Od=R("[Step Two] Request Loading State"),Rd="[Step Two] Load Product Monthly Preview",qs=R(Rd,L()),Vd=R("[Step Two] Load Preview Monthly Installments Success",L()),Qs=R("[Step Two] set Base Product Success",L()),Bd=R("[Step Two] Reset Base Product"),n1=R("[Step Two] Reset Step Two For CFA Change"),Ks=R("[Step Two] Load Public Limits",L()),Nd=R("[Step Two] Load Public Limits Success",L()),Ld=R("[Step Two] Load Product Monthly Preview Success",L()),Gd=R("[Step Two] Update limits",L()),Ys=R("[Step Two] Increment Upgrade Price",L()),Hd=R("[Step Two] Reset Upgrade Price"),jd=R("[Step Two] Reset Monthly Preview"),$d=R("[Step Two] Set Limits Price",L()),zd=R("[Step Two] Reset Limits Price"),Js=R("[Step Two] Reset Wellness Price"),Bn=R("[Step Two] Increment Wellness Price",L()),Zs=R("[Step Two] Load Wellness Benefit Schedule",L()),Wd=R("[Step Two] Load Wellness Benefit Schedule Success",L()),Ud=R("[Step Two] Save Step Two",L()),qd=R("[Step Two] Save Step Two Success",L()),Qd=R("[Step Two] Save Step Two Error",L()),s1=R("[Step Two] Set Selected Product",L()),Xs=R("[Step Two] Add To Selected Products",L()),eo=R("[Step Two] Remove From Selected Products",L()),Kd=R("[Step Two] Remove Multiple Products From Selected Products",L()),to=R("[Step Two] Reset Selected Products"),Yd=R("[Step Two] Reset Selected Limits"),Jd=R("[Step Two] Reset Selecteds Upgrades"),Nn=R("[Step Two] Add or Update Selected Products",L()),io=R("[Step Two] Set Selected Wellness",L()),Zd=R("[Step Two] Set Selected Limits",L()),ro=R("[Step Two] Set Selecteds Upgrade",L()),Xd=R("[Step Two] Set Selected Base Plan Mode",L()),eu=R("[Step Two] Reset Selected Wellness"),tu=R("[Step Two] Reset Selected Upgrade"),iu=R("[Step Two] Reset Quote Error"),ru=R("[Step Two] Reset Quote"),no=R("[Step Two] Reset Entire Step Two State"),so=R("[Step Two] Set Selected Products",L()),nu=R("[Step Two] Replace Selected Products",L()),su=R("[Step Two] Set Quote Public products",L()),ou=R("[Step Two] Set Quote Public Limits",L()),au={resetEntireStepTwoState:no,loading:Od,loadQuotePublicLimits:Ks,loadQuotePublicLimitsSuccess:Nd,setQuotePublicProducts:su,setQuotePublicLimits:ou,loadProductMonthlyPreview:qs,loadProductMonthlyPreviewSuccess:Ld,loadWellnessBenefitSchedule:Zs,loadWellnessBenefitScheduleSuccess:Wd,saveStepTwo:Ud,saveStepTwoSuccess:qd,saveStepTwoError:Qd,addToSelectedProducts:Xs,removeFromSelectedProducts:eo,removeMultipleFromSelectedProducts:Kd,setSelectedProducts:so,resetSelectedProducts:to,resetSelectedLimits:Yd,resetSelectedsUpgrades:Jd,addOrUpdateSelectedProducts:Nn,setSelectedWellness:io,setSelectedLimits:Zd,setSelectedsUpgrade:ro,resetSelectedWellness:eu,resetSelectedUpgrade:tu,resetQuoteError:iu,addToUpgradesPrice:Ys,resetUpgradesPrice:Hd,resetLimitsPrice:zd,setLimitsPrice:$d,resetWellnessPrice:Js,addToWellnessPrice:Bn,setBaseProduct:Qs,resetBaseProduct:Bd,resetProductMonthlyPreview:jd,loadPreviewMonthlyInstallmentsSuccess:Vd,resetStepTwoQuote:ru,SetActiveLimits:Gd,setSelectedBasePlanMode:Xd,replaceSelectedProducts:nu};var cu=R("[Step Three] Loading State"),hu=R("[Step Three] Loading Validating Membership"),du=R("[Step Three] Load Location By Postal Code",L()),uu=R("[Step Three] Load Location By Postal Code Success",L()),pu=R("[Step Three] Load State Specific Messages",L()),fu=R("[Step Three] Load State Specific Messages Success",
4L()),mu=R("[Step Three] Set Customer Information",L()),gu=R("[Step Three] Set Customer State Form",L()),vu=R("[Step Three] Set Billing Address State Form",L()),yu=R("[Step Three] Set Billing Info",L()),_u=R("[Step Three] Set Billing Address",L()),bu=R("[Step Three] Checkout",L()),Su=R("[Step Three] Checkout Success",L()),Cu=R("[Step Three] Stripe Checkout",L()),Pu=R("[Step Three] Moneris Checkout",L()),a1=R("[StepThree] Bank Withdrawal Checkout",L()),l1=R("[Step Three] Moneris Checkout Success"),c1=R("[Step Three] Moneris Checkout Error",L()),wu=R("[Step Three] Checkout Failure"),Eu=R("[Step Three] Set Go Green",L()),xu=R("[Step Three] Set Payment and Renewal Terms",L()),Tu=R("[Step Three] Set Agreement To Terms",L()),Mu=R("[Step Three] Set Use Different Billing Address",L()),Au=R("[Step Three] Set Billing Info Valid",L()),oo=R("[Step Three] Reset Billing Info Valid"),ao=R("[Step Three] Reset Agreement To Terms"),lo=R("[Step Three] Reset Go Green"),co=R("[Step Three] Reset Payment and Renewal Terms"),ho=R("[Step Three] Reset Quote Error"),Du=R("[Step Three] Save Step Three",L()),Iu=R("[Step Three] Save Step Three Success",L()),h1=R("[Step Three] Save Step Three Error",L()),Fu=R("[Step One] Validate Partner Membership",L()),ku=R("[Step One] Validate Partner Membership Response",L()),Ou=R("[Step Three] Load Public Products",L()),Ru={loading:cu,loadingValidatingMembership:hu,loadLocationByPostalCode:du,loadLocationByPostalCodeSuccess:uu,loadStateSpecificMessages:pu,loadStateSpecificMessagesSuccess:fu,setCustomerInformation:mu,setCustomerStateForm:gu,setBillingAddressStateForm:vu,setBillingInfo:yu,setBillingAddress:_u,checkout:bu,checkoutSuccess:Su,stripeCheckout:Cu,monerisCheckout:Pu,checkoutFailure:wu,setGoGreen:Eu,setAgreementToTerms:Tu,setPaymentAndRenewalTerms:xu,setUseDifferentBillingAddress:Mu,setBillingInfoValid:Au,resetBillingInfoValid:oo,resetAgreementToTerms:ao,resetGoGreen:lo,resetPaymentAndRenewalTerms:co,resetQuoteError:ho,saveStepThree:Du,saveStepThreeSuccess:Iu,validatePartnerMembership:Fu,validatePartnerMembershipResponse:ku,loadQuotePublicProductsStepThree:Ou};var uo=R("[Step One] Load State",L()),Bu=R("[Step One] Load State Success",L()),Nu=R("[State] Load State Error"),po=R("[Step One] Load Breeds",L()),Lu=R("[Step One] Load Breeds Success",L()),fo=R("[Step One] Load Ages",L()),Gu=R("[Step One] Load Ages Success",
4L()),mo=R("[Step One] Save Step One",L()),bl=R("[Step One] Save Form Data",L()),Hu=R("[Step One] Save Step One Success",L()),ju=R("[Step One] Save Step One Error",L()),$u=R("[Step One] Loading State"),go=R("[Step One] Zip Code Changed",L()),vo=R("[Step One] Reset Quote"),yo=R("[Step One] Reset Step One Store"),_o=R("[Step One] GET Quote By GUID",L()),zu=R("[Step One] GET Quote By GUID Success",L()),Wu=R("[Step One] GET Quote By GUID Error",L()),Uu=R("[Step One] Empty Action"),qu=R("[Step One] Reset Breed and Age"),Qu=R("[Step One] Validate Partner Code",L()),Ku=R("[Step One] Validate Partner Code Success",L()),Yu=R("[Step One] Validate Partner Code Error",L()),bo=R("[Step One] Update Quote With New Partner Info",L()),Ju=R("[Step One] Update Quote With New Partner Info Success",L()),Zu=R("[Step One] Update Quote With New Partner Info Error",L()),Xu={loadState:uo,loadStateSuccess:Bu,loadStateError:Nu,loadBreeds:po,loadBreedsSuccess:Lu,loadAges:fo,loadAgesSuccess:Gu,saveStepOne:mo,saveStepOneSuccess:Hu,saveStepOneError:ju,loading:$u,zipCodeChanged:go,getQuoteByGuid:_o,getQuoteByGuidSuccess:zu,getQuoteByGuidError:Wu,emptyAction:Uu,resetStepOneQuote:vo,resetAge:qu,resetStepOneStore:yo,validatePartnerCode:Qu,validatePartnerCodeSuccess:Ku,validatePartnerCodeError:Yu,updateQuoteWithNewPartnerInfo:bo,updateQuoteWithNewPartnerInfoSuccess:Ju,updateQuoteWithNewPartnerInfoError:Zu};var p1=R("[Step Four] Loading State"),f1=R("[Step Four] Load Policy",L()),m1=R("[Step Four] Load Policy Success",L());var Pl=Yl(Cl());var ep=["modalContainer"],tp=["lottieContainer"];function ip(e,t){if(e&1&&(ve(0,"div",3),Hi(1,"img",10),ye()),e&2){let r=fe();ee(),Ft("src",r.marketSettings.marketChannelSettings().svgFolder+"/gif/loading-animation.gif",$o)}}function rp(e,t){e&1&&Hi(0,"div",4,1)}function np(e,t){e&1&&(ve(0,"div",9)(1,"div",11),Hi(2,"div",12),ye()())}var wl=(()=>{let t=class t{constructor(){this.marketSettings=I(ae),this.LOTTIE_FILE="Lottie_Wait_Modal.json"}ngAfterViewInit(){setTimeout(()=>this.modalContainer.nativeElement.focus(),0),!(this.marketSettings.isAkc()||this.marketSettings.isPpi())&&this.loadLottieAnimation()}ngOnDestroy(){this.animation?.destroy()}loadLottieAnimation(){if(!this.lottieContainer?.nativeElement)return;let i=this.getLottiePath();if(!i){console.error("BasicModalComponent: Invalid Lottie path, animation not loaded");return}this.animation=Pl.default.loadAnimation({container:this.lottieContainer.nativeElement,renderer:"svg",loop:!0,autoplay:!0,path:i})}generateAllowedSvgFolders(){let i=Object.values(Ei);return["/assets/svg/","./assets/svg/","assets/svg/"].flatMap(s=>i.map(o=>`${s}${o.toLowerCase()}`))}isValidSvgFolder(i){if(!i)return!1;let n=i.toLowerCase().trim();return this.generateAllowedSvgFolders().some(s=>n===s.toLowerCase())}isValidLottiePath(i){let n=i.trim();return!(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//")||n.startsWith("javascript:")||n.startsWith("data:")||n.startsWith("vbscript:")||n.startsWith("file:")||i.includes("../")||i.includes("..\\")||!n.endsWith(".json"))}getLottiePath(){let i=this.marketSettings.marketChannelSettings().svgFolder;if(!this.isValidSvgFolder(i))return console.warn("BasicModalComponent: Blocked invalid svgFolder:",i),null;let n=`${i}/lottie-json/${this.LOTTIE_FILE}`;return this.isValidLottiePath(n)?n:(console.warn("BasicModalComponent: Blocked invalid Lottie path:",n),null)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["app-basic-modal"]],viewQuery:function(n,s){if(n&1&&($i(ep,7),$i(tp,5)),n&2){let o;ti(o=ii())&&(s.modalContainer=o.first),ti(o=ii())&&(s.lottieContainer=o.first)}},decls:11,vars:8,consts:[["modalContainer",""],["lottieContainer",""],["role","dialog","aria-modal","true","tabindex","-1",1,"modal-container"],[1,"d-flex","align-items-center","justify-content-center","w-100"],["aria-hidden","true","inert","",1,"mb-3","lottie-animation"],[1,"content-wrapper","d-flex","align-items-end","justify-content-center"],[1,"d-flex","align-items-baseline"],[1,"text-center","mb-0"],["aria-hidden","true","inert","",3,"innerHTML"],["data-title","dot-typing","aria-hidden","true","inert","",1,"snippet"],["alt","","aria-hidden","true",1,"d-block","loading-animation",3,"src"],[1,"stage"],[1,"dot-typing"]],template:function(n,s){n&1&&(ve(0,"div",2,0),st(2,"translate"),At(3,ip,2,1,"div",3)(4,rp,2,0,"div",4),ve(5,"div",5)(6,"div",6)(7,"p",7),Hi(8,"span",8),st(9,"translate"),ye()(),At(10,np,3,0,"div",9),ye()()),n&2&&(pt("aria-label",ot(2,4,"core.loadingModalSr")),ee(3),Dt(s.marketSettings.isAkc()||s.marketSettings.isPpi()?3:4),ee(5),Ft("innerHTML",ot(9,6,"core.loadingModalText"),jo),ee(2),Dt(s.marketSettings.isAkc()||s.marketSettings.isPpi()?-1:10))},dependencies:[fi],styles:["@keyframes _ngcontent-%COMP%_dot-loading{0%{box-shadow:9999px 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing)) 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing) * 2) 0 0 0 var(--loading-modal-dot-color)}16.667%{box-shadow:9999px calc(-1 * var(--loading-modal-dot-bounce-height)) 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing)) 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing) * 2) 0 0 0 var(--loading-modal-dot-color)}33.333%{box-shadow:9999px 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing)) 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing) * 2) 0 0 0 var(--loading-modal-dot-color)}50%{box-shadow:9999px 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing)) calc(-1 * var(--loading-modal-dot-bounce-height)) 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing) * 2) 0 0 0 var(--loading-modal-dot-color)}66.667%{box-shadow:9999px 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing)) 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing) * 2) 0 0 0 var(--loading-modal-dot-color)}83.333%{box-shadow:9999px 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing)) 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing) * 2) calc(-1 * var(--loading-modal-dot-bounce-height)) 0 0 var(--loading-modal-dot-color)}to{box-shadow:9999px 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing)) 0 0 0 var(--loading-modal-dot-color),calc(9999px + var(--loading-modal-dot-spacing) * 2) 0 0 0 var(--loading-modal-dot-color)}} .modal-dialog{width:auto;align-content:var(--loading-modal-align-content)}
4 .modal-dialog .modal-container{border-radius:6px;padding:var(--loading-modal-container-padding-mobile);width:auto} .modal-dialog .modal-content{width:auto;margin:0 auto;padding:var(--loading-modal-content-padding)} .modal-dialog .modal-content p{font-family:var(--loading-modal-font-family);font-size:var(--loading-modal-font-size);color:var(--loading-modal-font-color);font-style:normal;font-weight:var(--loading-modal-font-weight);line-height:var(--loading-modal-line-height)} .modal-dialog .modal-content .content-wrapper{margin-left:-5%} .dot-typing{position:relative;left:-9999px;width:var(--loading-modal-dot-size);height:var(--loading-modal-dot-size);border-radius:50%;background-color:var(--loading-modal-dot-color);color:var(--loading-modal-dot-color);box-shadow:9984px 0 0 0 var(--loading-modal-dot-color),9994px 0 0 0 var(--loading-modal-dot-color),10004px 0 0 0 var(--loading-modal-dot-color);animation:_ngcontent-%COMP%_dot-loading 1s infinite linear;margin:var(--loading-modal-dot-margin)}@media(min-width:992px){ .modal-dialog .modal-container{padding:var(--loading-modal-container-padding-desktop)}}@media(max-width:767px){ .modal-dialog .modal-container{padding:0;padding-top:.25rem} .modal.modal.show>.modal-dialog{position:fixed;inset:0;margin:auto;margin-top:var(--loading-modal-margin-top-tablet);width:var(--loading-modal-width-tablet);max-width:var(--loading-modal-width-tablet);height:fit-content;max-height:20vh;display:block} .modal.modal.show>.modal-dialog .modal-container{padding:.1rem .6rem .3rem;width:100%;box-sizing:border-box} .modal.modal.show>.modal-dialog .modal-content{display:flex;flex-direction:column;align-items:center;overflow:hidden;padding-top:0} .modal.modal.show>.modal-dialog .lottie-animation{height:14rem;width:15rem;margin:0 auto;transform:scale(.9)} .modal.modal.show>.modal-dialog .content-wrapper{margin-left:0;justify-content:center} .modal.modal.show>.modal-dialog p{font-size:calc(var(--loading-modal-font-size) * .85);line-height:.95;text-align:center;margin-bottom:0;margin-top:-.5rem}}@media(max-width:378px){ .modal.modal.show>.modal-dialog{width:75%;max-width:75%;max-height:48vh} .modal.modal.show>.modal-dialog .modal-container{padding:.7rem .9rem} .modal.modal.show>.modal-dialog .lottie-animation{height:14rem;width:15rem;transform:scale(.8);margin-bottom:.3rem} .modal.modal.show>.modal-dialog p{font-size:calc(var(--loading-modal-font-size) * .9);line-height:1}} .lottie-animation, .loading-animation{height:var(--loading-animation-height);width:var(--loading-animation-width)} .loading-animation{object-fit:contain;margin-bottom:var(--loading-animation-margin-bottom)}"],changeDetection:0});let e=t;return e})();var El=(()=>{let t=class t{constructor(){this.activeInstances=[],this.ngbModal=I(Vn)}addModalReference(i){this.activeInstances.push(i)}closeAll(){this.activeInstances.forEach(i=>{i.dismiss()}),this.activeInstances=[]}open(i,n){let s=this.ngbModal.open(i,n);this.activeInstances.push(s)}openLoadingModal(){let i={centered:!0,size:"md",keyboard:!1,backdrop:"static"},n=this.ngbModal.open(wl,i);this.addModalReference(n)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ye=Gt("stepThree"),sp=Gt("stepTwo"),op=Gt("stepOne"),ap=Gt("mainStore"),lp=K(Ye,e=>e?.isLoaded),cp=K(Ye,e=>e?.location),hp=K(op,e=>e?.stateInfo),dp=K(Ye,e=>e?.stateFilingMessages),up=K(Ye,e=>e?.customerInformation),pp=K(Ye,e=>e?.customerInfoStateForm),fp=K(ap,e=>e?.quote),mp=K(Ye,e=>e?.billingInfo),gp=K(Ye,e=>e?.billingAddress),vp=K(Ye,e=>e?.billingAddressStateForm),yp=K(Ye,e=>e?.goGreen),_p=K(Ye,e=>e?.agreementToTerms),bp=K(Ye,e=>e?.paymentAndRenewalTerms),Sp=K(Ye,e=>e?.useDifferentBillingAddress),Cp=K(Ye,e=>e?.billingInfoValid),Pp=K(Ye,e=>({billingInfo:e?.billingInfo,billingAddress:e?.billingAddress,goGreen:e?.goGreen,agreementToTerms:e?.agreementToTerms,paymentAndRenewalTerms:e?.paymentAndRenewalTerms,useDifferentBillingAddress:e?.useDifferentBillingAddress,customerInformation:e?.customerInformation})),wp=K(Ye,e=>e?.quoteError),Ep=K(sp,e=>e?.quotePublicLimits),xp={selectIsLoaded:lp,selectLocation:cp,selectStateInfo:hp,selectStateSpecificMessages:dp,selectCustomerInformation:up,selectCustomerFormState:pp,selectQuote:fp,selectBillingInfo:mp,selectBillingAddress:gp,selectBillingAddressFormState:vp,selectGoGreen:yp,selectAgreementToTerms:_p,selectPaymentAndRenewalTerms:bp,selectUseDifferentBillingAddress:Sp,selectBillingInfoValid:Cp,checkoutState:Pp,selectQuoteError:wp,selectLimits:Ep};var Ve=Gt("stepTwo"),Tp=Gt("mainStore"),So=K(Ve,e=>e?.isLoaded),ht=K(Ve,e=>e?.quotePublicProducts);var rr=K(Ve,e=>e?.quotePublicLimits),bi=K(Ve,e=>e?.productsMonthlyPreview),nr=K(Ve,e=>e?.activeLimits),Yt=K(Ve,e=>e?.baseProduct),Mp=K(Ve,e=>e?.upgradesPrice),Vr=K(Ve,e=>e?.limitsPrice),Co=K(Ve,e=>e?.wellnessPrice),Po=K(Ve,e=>e?.quoteError),Br=K(Ve,e=>e?.quote),sr=K(Ve,e=>e?.selectedProducts),wo=K(Ve,e=>e?.wellnessBenefitSchedule),or=K(Ve,e=>e?.selectedWellness),Nr=K(Ve,e=>e?.selectedsUpgrade),xl=K(Tp,e=>e?.quote?.pets),bt=K(Ve,e=>e?.selectedLimits),Ap=K(Ve,e=>e?.selectedBasePlanMode),Eo=K(xl,ht,(e,t)=>({pets:e,availableProducts:t})),Dp=K(or,Nr,bi,(e,t,r)=>({wellness:e,upgrades:t,monthlyInstallments:r})),Ip=K(or,ht,bi,(e,t,r)=>({wellness:e,products:t,monthlyInstallments:r})),Fp=K(or,Nr,ht,(e,t,r)=>({wellness:e,upgrades:t,products:r})),kp=K(sr,ht,bi,(e,t,r)=>({selectedProducts:e,selectQuotePublicProducts:t,monthlyInstallments:r})),xo={selectIsLoaded:So,selectQuotePublicProducts:ht,selectQuotePublicLimits:rr,selectProductMonthlyPreview:bi,selectActiveLimits:nr,selectBaseProduct:Yt,selectUpgradesPrice:Mp,selectLimitsPrice:Vr,selectWellnessPrice:Co,selectQuoteError:Po,selectQuote:Br,selectedProducts:sr,selectWellnessBenefitSchedule:wo,selectedWellness:or,selectedsUpgrade:Nr,selectQuotePets:xl,selectSelectedLimits:bt,selectSelectedBasePlanMode:Ap,selectQuotePetsAndAvailableProducts:Eo,selectedUpgradesChosen:Dp,selectWellnessUpgradesChosen:Ip,selectListOfUpgrades:Fp,selectListOfUpgradesAndWellness:kp};var Tl=Gt("stepFour"),H1=K(Tl,e=>e?.isLoaded),j1=K(Tl,e=>e?.policy);var Ln=(function(e){return e.add="add",e.remove="remove",e})(Ln||{});var cr=(()=>{let t=class t{constructor(){this.store=I(_e),this.marketSettings=I(ae),this.mainQuote$=this.store.select(oi),this.stepOneQuote$=this.store.select(hn),this.stepTwoQuote$=this.store.select(Br),this.selectSelectedLimits$=this.store.select(bt),this.selectQuoteError$=this.store.select(Po),this.isLoaded$=this.store.select(So),this.selectQuotePublicProducts$=this.store.select(ht),this.selectActiveLimits$=this.store.select(bt),this.baseProduct$=this.store.select(Yt),this.selectProductMonthlyPreview$=this.store.select(bi),this.stateInfo$=this.store.select(cn),this.selectedProducts$=this.store.select(sr),this.selectedWellness$=this.store.select(or),this.selectedsUpgrade$
4=this.store.select(Nr),this.selectedMultiPetFF$=this.store.select(ra),this.selectedProductsFromMainStoreById$=ne(null),this.isCompanionCare=new Jt(!1),this.isCompanionCare$=this.isCompanionCare.asObservable()}getQuotePublicLimits(i,n){this.store.dispatch(Ks({postalCode:i,marketChannelId:n}))}getWellnessBenefitSchedule(i,n,s,o){this.store.dispatch(Zs({stateCode:i,speciesId:n,marketChannelId:s,effectiveOn:o}))}loadProductMonthlyPreview(i,n){this.store.dispatch(qs({quotePetId:i,limitsWithStateFiling:n}))}setBaseProduct(i){this.store.dispatch(Qs({baseProduct:i}))}addOrUpdateToSelectedProducts(i){this.store.dispatch(Nn({product:i.value}))}addOrUpdateToSelectedProductsOnClick(i,n){let s=i.formGroupProduct.value;i.action===Ln.add&&(s.upgradeType==="wellness"&&n&&this.removeFromSelectedProductsOnStore(n),this.store.dispatch(Nn({product:s}))),i.action===Ln.remove&&(this.removeFromSelectedProductsOnStore(s.stateFilingProductId),this.marketSettings.isPpu()&&this.store.dispatch(Js()))}addToWellnessPrice(i){this.store.dispatch(Bn({wellnessPrice:i}))}setMainPriceOnStore(i){let n=i.monthlyInstallment;this.store.dispatch(Bn({wellnessPrice:n}))}setSelectedsUpgradeOnStore(i){this.store.dispatch(ro({selectedsUpgrade:i}))}setSelectedWellnessOnStore(i){this.store.dispatch(io({selectedWellness:i}))}addToUpgradesPriceOnStore(i){this.store.dispatch(Ys({upgradesPrice:i}))}removeFromSelectedProductsOnStore(i){this.store.dispatch(eo({stateFilingProductId:i}))}setFeatureFlags(i){this.store.dispatch(mt.setFeatureFlags({featureFlags:i}))}resetPetSelectedLimitsOnMainStore(){this.mainQuote$.pipe(Ge(i=>{let n=i?.pets?.find(s=>s.petId===i.currentPetId);return ne({quote:i,pet:n})}),$(i=>{let{quote:n,pet:s}=i;if(n?.pets&&s?.coverage?.selectedLimits){let o=z(G({},n),{pets:n.pets.map(a=>a.petId===s.petId?z(G({},a),{coverage:z(G({},a.coverage),{selectedLimits:{}})}):a)});this.store.dispatch(Xo({quote:o}))}}),Le(1)).subscribe()}setPetCompanionCareStatus(i){this.isCompanionCare.next(i)}getPetCompanionCareStatus(){return this.isCompanionCare.getValue()}resetStoreCFAPet(){this.store.dispatch(mt.resetCFAPetOnly())}setSelectedProductsOnStepTwoStore(i){this.store.dispatch(so({selectedProducts:i}))}setSelectedProductsFromMainStoreById(i){this.selectedProductsFromMainStoreById$=this.store.select(me.selectPetSelectedProductsById(i))}getSelectedProductsFromMainStoreById(){return this.selectedProductsFromMainStoreById$}resetAllStoreData(i=!1){i&&(this.store.dispatch(mt.resetLookUpCfaPet()),this.store.dispatch(mt.resetErrorLookUpRegisteredPet()),this.store.dispatch(mt.resetCFAPetOnly())),this.store.dispatch(mt.resetMainQuote()),this.store.dispatch(mt.resetPartnerInfo()),this.store.dispatch(mt.resetSelectedCoverageOption()),this.store.dispatch(vo()),this.store.dispatch(yo()),this.store.dispatch(no()),this.store.dispatch(ho()),this.store.dispatch(oo()),this.store.dispatch(ao()),this.store.dispatch(lo()),this.store.dispatch(co()),this.isCompanionCare.next(!1),this.store.dispatch(mt.setIsEditingPet({isEditingPet:!1})),this.store.dispatch(mt.setIsAnotherPet({isAnotherPet:!1}))}addToSelectedProducts(i){this.store.dispatch(Xs({product:i}))}resetSelectedProducts(){this.store.dispatch(to())}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Al=(()=>{let t=class t{constructor(){this.cookieService=I(ir),this.router=I(nn),this.queryParams=new Jt({}),this.searchParams=new Jt(""),this.queryParams$=this.queryParams.asObservable(),this.searchParams$=this.searchParams.asObservable()}setSearchParams(i){this.searchParams.next(i)}getSearchParams(){return this.searchParams.getValue()}setQueryParams(i){this.queryParams.next(i)}getQueryParams(){return this.queryParams.getValue()}holdParams(){this.setSearchParams(window.location.search),this.clearStorage()}clearStorage(){let i=new URLSearchParams(this.getSearchParams()),n=i.get(X.action)==="activate"&&!!i.get(X.regNo);(i.get(X.clearCache)||n)&&(this.createParamArray(i),sessionStorage.clear(),localStorage.clear(),this.cookieService.deleteAll())}createParamArray(i){let n={au:i.get(X.agentUserName)??null,action:i.get(X.action)??null,reg_no:i.get(X.regNo)??null,clearCache:i.get(X.clearCache)??null,postal_code:i.get(X.postalCode)??null,p:i.get(X.partnerCode)??null,utm_source:i.get(X.utmSource)??null,utm_medium:i.get(X.utmMedium)??null,utm_campaign:i.get(X.utmCampaign)??null,gclid:i.get(X.gclid)??null,referral_id:i.get(X.referralId)??null,subid:i.get(X.subId)??null};return this.setQueryParams(n),n}navigateCfaFlow(){return this.getQueryParams().reg_no&&this.getQueryParams().postal_code?(this.router.navigate([`/${$t.STEP_ONE}`],{queryParams:this.getQueryParams()}),!0):!1}resetQueryParamsServiceState(){let i={};this.getQueryParams().au&&(i.au=this.getQueryParams().au),this.getQueryParams().p&&(i.p=this.getQueryParams().p),this.getQueryParams().utm_source&&(i.utm_source=this.getQueryParams().utm_source),this.getQueryParams().utm_medium&&(i.utm_medium=this.getQueryParams().utm_medium),this.getQueryParams().utm_campaign&&(i.utm_campaign=this.getQueryParams().utm_campaign),this.getQueryParams().referral_id&&(i.referral_id=this.getQueryParams().referral_id),this.getQueryParams().subid&&(i.subid=this.getQueryParams().subid),this.queryParams.next(i),this.searchParams.next("")}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Dl=(()=>{let t=class t{constructor(){this.marketChannelService=I(ae),this.cookieService=I(ir),this.stateManagementService=I(cr),this.globalService=I(Wt),this.queryParamsService=I(Al),this.modalService=I(El),this.store=I(_e),this.currentUrl=si(this.store.select(me.selectCurrentUrl))}clearAllCache(){sessionStorage.clear(),localStorage.removeItem(jt.MAIN_STORE_KEY),this.cookieService.deleteAll(),this.currentUrl()===$t.STEP_FOUR&&this.clearPaidMediaCookie
4s(),this.stateManagementService.resetAllStoreData(),this.globalService.resetGlobalServiceState(),this.queryParamsService.resetQueryParamsServiceState(),this.modalService.closeAll();let i=new URL(window.location.href);i.searchParams.delete("clearCache"),window.history.replaceState({},"",i.toString())}clearPaidMediaCookies(){[X.partnerCode,X.utmCampaign,X.utmMedium,X.utmSource,X.utmTerm].forEach(n=>{this.cookieService.delete(n,"/",this.marketChannelService.marketChannelSettings().parentDomain)})}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var k_=(()=>{let t=class t{constructor(){this.baseApiUrl=I("BASE_API_URL"),this.marketSettings=I(ae),this.httpClient=I(Lt),this.flags=Kt.featureFlags,this.baseApiUrl=this.baseApiUrl}getFeatureFlags(){return this.httpClient.get(this.baseApiUrl+"/admin/v1/feature-flags")}isFeatureEnabled(i){return this.marketSettings.isPpu()?!1:!!this.flags[i]}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ae=(function(e){return e.ExamPlus="ExamPlus",e.HereditaryPlus="HereditaryPlus",e.SupportPlus="SupportPlus",e.Wellness="Wellness",e.WellnessPlus="WellnessPlus",e.BreedingCoverage="BreedingCoverage",e.ExamCare="ExamCare",e.InheritedandCongenitalCare="InheritedandCongenitalCare",e.FinalRespectsCare="FinalRespectsCare",e.Defender="Defender",e.DefenderPlus="DefenderPlus",e})(Ae||{}),R_={title:"step2.addAvailableUpgrades.wellness.title",description:"step2.addAvailableUpgrades.wellness.description",product:"step2.addAvailableUpgrades.wellness.addDefenderUpgrade"},V_={title:"step2.addAvailableUpgrades.wellness.title",description:"step2.addAvailableUpgrades.wellness.description",product:"step2.addAvailableUpgrades.wellness.addDefenderPlusUpgrade"},B_={title:"step2.addAvailableUpgrades.examPlusCoverage.title",description:"step2.addAvailableUpgrades.examPlusCoverage.description",product:"step2.addAvailableUpgrades.examPlusCoverage.addExamPlusUpgrade"},N_={title:"step2.addAvailableUpgrades.hereditaryPlusCoverage.title",description:"step2.addAvailableUpgrades.hereditaryPlusCoverage.description",product:"step2.addAvailableUpgrades.hereditaryPlusCoverage.addHereditaryPlusUpgrade"},L_={title:"step2.addAvailableUpgrades.breedingCoverage.title",description:"step2.addAvailableUpgrades.breedingCoverage.description",product:"step2.addAvailableUpgrades.breedingCoverage.addBreedingCoverageUpgrade"},G_={title:"step2.addAvailableUpgrades.supportPlusCoverage.title",description:"step2.addAvailableUpgrades.supportPlusCoverage.description",product:"step2.addAvailableUpgrades.supportPlusCoverage.addSupportPlusCoverageUpgrade"},H_={title:"step2.addAvailableUpgrades.examCareCoverage.title",description:"step2.addAvailableUpgrades.examCareCoverage.description",product:"step2.addAvailableUpgrades.examCareCoverage.addExamCareUpgrade"},j_={title:"step2.addAvailableUpgrades.inheritedAndCongenitalCareCoverage.title",description:"step2.addAvailableUpgrades.inheritedAndCongenitalCareCoverage.description",product:"step2.addAvailableUpgrades.inheritedAndCongenitalCareCoverage.addInheritedAndCongenitalCareCoverageUpgrade"},$_={title:"step2.addAvailableUpgrades.finalRespectsCareCoverage.title",description:"step2.addAvailableUpgrades.finalRespectsCareCoverage.description",product:"step2.addAvailableUpgrades.finalRespectsCareCoverage.addFinalRespectsCareCoverage"};var se=class se{};se.Title="Your Cat's Custom Quote Awaits",se.SubTitleFirstLine="We'll send you a custom quote for your cat's policy in just a few minutes.",se.UpgradesSectionTitle="Add Available Upgrades",se.UpgradesSectionSubTitle="Your plan should fit your cat, not the other way around. Tailor their coverage with our robust upgrades. PS: Upgrades may only be added or removed during enrollment or at renewal.",se.PRE_SELECT_ACCIDENT_ILLNESS_LIMITS=[{coverageLimitId:19,incidentLimitId:13,deductibleId:12,coinsuranceId:2}],se.PRE_SELECT_ACCIDENT_ONLY_LIMITS=[{coverageLimitId:16,incidentLimitId:13,deductibleId:5,coinsuranceId:1}],se.ACCIDENT_AND_ILLNESS_PRODUCTS_ORDER=[{order:0,display:"ExamPlus"},{order:1,display:"BreedingCoverage"},{order:2,display:"HereditaryPlus"},{order:3,display:"SupportPlus"}
4],se.PETLAND_WELLNESS_ADDON_ORDER=3,se.AKC_ADDONS_PRODUCTS_ORDER=[{order:1,display:Ae.Wellness},{order:2,display:Ae.ExamPlus},{order:2,display:Ae.ExamCare},{order:3,display:Ae.HereditaryPlus},{order:3,display:Ae.InheritedandCongenitalCare},{order:4,display:Ae.BreedingCoverage},{order:5,display:Ae.SupportPlus},{order:5,display:Ae.FinalRespectsCare}],se.PETLAND_ADDONS_PRODUCTS_ORDER=[{order:1,display:Ae.ExamPlus},{order:1,display:Ae.ExamCare},{order:2,display:Ae.HereditaryPlus},{order:2,display:Ae.InheritedandCongenitalCare},{order:se.PETLAND_WELLNESS_ADDON_ORDER,display:Ae.Wellness},{order:4,display:Ae.BreedingCoverage},{order:5,display:Ae.SupportPlus},{order:5,display:Ae.FinalRespectsCare}],se.EDIT_MODAL="Edit Cat",se.BreedingCoverageDetails="Breeding Coverage Details",se.AccidentOnlyPlan="Accident Only Plan",se.BASE_PRODUCT_ACCIDENT_AND_ILLNESS="CompanionCare",se.BASE_PRODUCT_ACCIDENT_AND_ILLNESS_DISPLAY="Illness",se.BASE_PRODUCT_ACCIDENT_CARE="AccidentCare",se.examplusCoverageDetails="Exam Plus",se.examplusCoverageDescription="Exam fees add up, even for the healthiest cats. We'll help cover the costs associated with just getting through the door at your regular vet, specialist, or ER. Wellness visits not included.",se.breedingCoverageDescription="For immediate protection for breeding-related care, add Breeding Coverage when you start or renew your policy. Coverage, which includes emergency c-sections and more, kicks in 30 days after purchase but excludes elective procedures. Want to add it mid-term? You\u2019ll need to begin a new policy. Opt-in at the start or renewal for seamless coverage within your policy limits and deductibles.",se.PuppyCrewCoverageTitle="Kitty Crew Coverage",se.upgradeType="UPGRADE",se.multipetDiscount="Get a 5% discount when you add more than one cat.",se.add_another_pet="Add Another Cat",se.confirmModalResult="confirm";var je=se;var Z_=(()=>{let t=class t{constructor(){this.httpClient=I(Lt),this.baseApiUrl=I("BASE_API_URL"),this.baseApiUrl=this.baseApiUrl}getUserNameInformation(i){return i===""?ne(!1):this.httpClient.get(this.baseApiUrl+`/admin/v1/sysuser?username=${i}`).pipe($(n=>!0),No(()=>ne(!1)))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var To=()=>[import("./chunk-J6L4CO53.js").then(e=>e.NgTemplateOutlet)];function Rp(e,t){if(e&1){let r=ji();qe(0,"button",8),Fe("click",function(){Ci(r);let n=fe();return Pi(n.dismiss())}),Qe()}}function Vp(e,t){if(e&1&&(qe(0,"h3",4),Ee(1),st(2,"translate"),Qe()),e&2){let r=fe();ee(),Bt(ot(2,1,r.config.title))}}function Bp(e,t){if(e&1&&(qe(0,"p"),Ee(1),st(2,"translate"),Qe()),e&2){let r=fe();ee(),ft(" ",ot(2,1,r.config.description)," ")}}function Np(e,t){if(e&1&&Zr(0,9),e&2){fe(2);let r=ri(9);It("ngTemplateOutlet",r)}}function Lp(e,t){e&1&&(qe(0,"div",6),Kr(1,Np,1,1),Yr(2,1,To),Jr(),Qe())}function Gp(e,t){if(e&1&&Zr(0,9)(1,9),e&2){fe(2);let r=ri(9),i=ri(11);It("ngTemplateOutlet",i),ee(),It("ngTemplateOutlet",r)}}function Hp(e,t){e&1&&(qe(0,"div",7),Kr(1,Gp,2,2),Yr(2,1,To),Jr(),Qe())}function jp(e,t){if(e&1&&Zr(0,9)(1,9),e&2){fe(2);let r=ri(9),i=ri(11);It("ngTemplateOutlet",r),ee(),It("ngTemplateOutlet",i)}}function $p(e,t){e&1&&(qe(0,"div",6),Kr(1,jp,2,2),Yr(2,1,To),Jr(),Qe())}function zp(e,t){if(e&1){let r=ji();qe(0,"button",10),st(1,"translate"),Fe("click",function(){Ci(r);let n=fe();return Pi(n.close("confirm"))}),Ee(2),st(3,"translate"),Qe()}if(e&2){let r=fe();ni(r.config.cancelButton?"btn btn-secondary":"btn btn-primary"),pt("aria-label",ot(1,4,r.config.confirmButton)),ee(2),ft(" ",ot(3,6,r.config.confirmButton)," ")}}function Wp(e,t){if(e&1){let r=ji();qe(0,"button",11),st(1,"translate"),Fe("click",function(){Ci(r);let n=fe();return Pi(n.dismiss())}),Ee(2),st(3,"translate"),Qe()}if(e&2){let r=fe();pt("aria-label",ot(1,2,r.config.cancelButton)),ee(2),ft(" ",ot(3,4,r.config.cancelButton)," ")}}var Il=(()=>{let t=class t{constructor(){this.activeModal=I(_t),this.marketSettings=I(ae)}close(i){this.activeModal.close(i)}dismiss(){this.activeModal.dismiss()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["app-dynamic-modal"]],inputs:{config:"config"},decls:12,vars:4,consts:[["confirmBtn",""],["cancelBtn",""],[1,"modal-header"],["type","button","role","button","aria-label","Close","tabindex","0",1,"btn-close"],[1,"modal-title"],[1,"modal-body","text-center"],[1,"modal-footer","action-buttons-side-by-side"],[1,"modal-footer","actions-buttons-below"],["type","button","role","button","aria-label","Close","tabindex","0",1,"btn-close",3,"click"],[3,"ngTemplateOutlet"],["tabindex","0","role","button","type","button",3,"click"],["type","button","tabindex","0","role","button",1,"btn","btn-primary",3,"click"]],template:function(n,s){n&1&&(qe(0,"div",2),At(1,Rp,1,0,"button",3),At(2,Vp,3,3,"h3",4),Qe(),qe(3,"div",5),At(4,Bp,3,3,"p"),Qe(),At(5,Lp,4,0,"div",6)(6,Hp,4,0,"div",7)(7,$p,4,0,"div",6),Gi(8,zp,4,8,"ng-template",null,0,zi)(10,Wp,4,6,"ng-template",null,1,zi)),n&2&&(ee(),Dt(s.config.hideCloseButton?-1:1),ee(),Dt(s.config.title?2:-1),ee(2),Dt(s.config.description?4:-1),ee(),Dt(s.config.cancelButton?s.marketSettings.isPpu()||s.marketSettings.isPpi()?6:7:5))},dependencies:[fi],encapsulation:2});let e=t;return e})();var Gn=(function(e){return e.basic="basic",e.custom="custom",e.accidentillness="accidentillness",e.accidentonly="accidentonly",e})(Gn||{});var Mo=(function(e){return e[e.THIRTY_DAYS=30]="THIRTY_DAYS",e[e.FULL_YEAR=365]="FULL_YEAR",e})(Mo||{});var et=(function(e){return e.accidentIllness="Accident_Illness",e.accidentOnly="AccidentOnly",e})(et||{});var Hn=e=>e?.code===et.accidentOnly||e?.code===et.accidentIllness;var jn=(()=>{let t=class t{constructor(){this.store=I(_e),this.currentUrlSignal=si(this.store.select(ia)),this.businessRulesService=I(tt)}
4isAkcBasicProduct(i,n){if(!i||!n)return!1;let s=tr(i);return!this.businessRulesService.isCompanionCare(s)&&!s?!1:this.limitsEqual(n,Ht.BASIC_AKC_ACCIDENT_ILLNESS_LIMITS)}limitsEqual(i,n){return Xe(i)||Xe(n)?!1:i.coverageLimit?.id===n.coverageLimit?.id&&i.incidentLimit?.id===n.incidentLimit?.id&&i.deductibleLimit?.id===n.deductibleLimit?.id&&i.coinsuranceLimit?.id===n.coinsuranceLimit?.id}sortLimitsByValue(i){return i&&[...i].sort((n,s)=>Number(n.value)-Number(s.value))}sortLimitsByValueDesc(i){return i&&[...i].sort((n,s)=>Number(s.value)-Number(n.value))}getCoverageLimitForProduct(i,n,s){if(!(!i?.limits?.[n]||!i[s]))return i.limits[n]?.find(o=>o.id===i[s])}buildSelectedLimitsFromProduct(i){return i?{coverageLimit:this.getCoverageLimitForProduct(i,"coverageLimits","coverageLimitId"),incidentLimit:this.getCoverageLimitForProduct(i,"incidentLimits","incidentLimitId"),deductibleLimit:this.getCoverageLimitForProduct(i,"deductibleLimits","deductibleId"),coinsuranceLimit:this.getCoverageLimitForProduct(i,"coinsuranceLimits","coinsuranceId")}:void 0}getDefaultLimitsForAKCProduct(i,n,s){return Ne([this.store.select(an(n)),this.store.select(zt(n)),this.store.select(sr),this.store.select(Yt)]).pipe($(([o,a,l,c])=>{let d=i===$t.STEP_THREE?o:l,_=a?.publicProducts?.baseProducts??[],h=d?.find(g=>Hn(g)&&g.termDays===s),u=_.find(g=>g.stateFilingProductId===h?.stateFilingProductId);if(!u&&i!==$t.STEP_THREE&&c?.code&&(u=_.find(g=>g.code===c.code&&g.termDays===s)),u)return this.buildSelectedLimitsFromProduct(u);if(s===Mo.THIRTY_DAYS)return Ht.THIRTY_DAYS_LIMITS}))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var $n=(()=>{let t=class t{constructor(){this.store=I(_e),this.stateManagementService=I(cr),this.businessRulesService=I(tt),this.mainQuote$=this.store.select(me.selectQuote),this.quoteSecTwo$=this.store.select(Br),this.selectQuotePublicProducts$=this.store.select(ht),this.baseProduct$=this.store.select(Yt),this.selectQuotePublicLimits$=this.store.select(rr),this.selectWellnessBenefitSchedule$=this.store.select(wo),this.selectSelectedLimits$=this.store.select(bt),this.cfaFlowSelectedOption$=this.store.select(me.selectCFACoverageOption),this.limitFactoryService=I(jn),this.marketChannelService=I(ae),this.coverageChanged=new Jt(et.accidentIllness),this.coverageChanged$=this.coverageChanged.asObservable(),this.selectedCoverage$=si(this.selectedPlanMode$(),{initialValue:et.accidentIllness}),this.haveUnsavedChanges=new ue,this.haveUnsavedChanges$=this.haveUnsavedChanges.asObservable(),this.stepTwoFormValid=!1,this.isProductCompanionCare$=si(this.isCompanionCare$(),{initialValue:!0})}isCompanionCare$(){return Ne([this.store.select(me.selectQuote),this.store.select(bt)]).pipe($(([i,n])=>{if(!i||!n)return!1;let s=tr(i),o=this.businessRulesService.isCompanionCare(s);return!o&&!s?!1:o}))}isAkcBasicProduct$(){return Ne([this.store.select(me.selectQuote),this.isCompanionCare$(),this.store.select(bt)]).pipe($(([i,n,s])=>{if(!i||!s)return!1;let o=this.marketChannelService.marketChannelSettings().limits,a=this.limitFactoryService.limitsEqual(s,o?.basicAccidentIllness);return n&&!a?!1:a}))}selectedPlanMode$(){return this.isCompanionCare$().pipe($(i=>i?et.accidentIllness:et.accidentOnly))}akcSelectedPlanMode$(){return this.isAkcBasicProduct$().pipe($(i=>i?Gn.basic:Gn.custom))}get products$(){return this.store.select(ht)}get getStepTwoFormValid(){return this.stepTwoFormValid}set setStepTwoFormValid(i){this.stepTwoFormValid=i}setHaveUnsavedChanges(i){this.haveUnsavedChanges.next(i)}getQuotePet(){return this.mainQuote$.pipe($(i=>{if(!i||!i.pets||!i.currentPetId)return null;let n=i.currentPetId;return i.pets.find(s=>s.petId===n)||null}))}isCompanionCare(){return this.getQuotePet().pipe($(i=>i?this.businessRulesService.isCompanionCare(i):!1))}setLimitsByDefaultOrPullFromStore(i){let n=[];return this.selectSelectedLimits$.pipe(Le(1),$(s=>this.businessRulesService.getLimitsFromSelectedLimits(s)||(i?this.businessRulesService.getLimitsFromProductCode(ce.AccidentIllness):this.businessRulesService.getLimitsFromProductCode(ce.AccidentOnly)))).subscribe(s=>{n=s}),n}getDefaultSelectedProductsForBaseProduct(i,n){let s=this.store.select(Yt).pipe(We(l=>!Xe(l))),o=this.stateManagementService.selectProductMonthlyPreview$.pipe(Qn((l,c)=>JSON.stringify(l)===JSON.stringify(c)),We(l=>l&&Array.isArray(l)&&l.length>0&&l[0].monthlyPreviewResults.length>0)),a=this.store.select(me.selectPetPublicProductsById(i)).pipe(We(l=>!Xe(l?.publicProducts)));return Ne([s,o,a]).pipe(Le(1),Ge(([l,c,d])=>c?.length?ne(this.businessRulesService.returnDefaultSelectedProductsForBaseProduct(l,d.publicProducts,c,n??"")):ne([])))}getWholePrice(i){return this.businessRulesService.getSumPrice(i.controls.filter(n=>n.get("isSelected")?.value).map(n=>({monthlyInstallment:n.get("monthlyInstallment")?.value})))}handleWhatCoveredLink(i){if(!i)return!1;let n=["BreedingCoverage"],s=i.toLowerCase().trim();return n.some(o=>o.toLowerCase()===s)}getNotAllowedAddonsOnSelectedProducts(i,n,s){return this.businessRulesService.getNotAllowedAddonsOnSelectedProducts(i,n,s)}updatePricesOnSelectedProducts(i,n){return i.map(s=>{let o=n.find(a=>a.stateFilingProductId===s.stateFilingProductId);return o&&(s=z(G({},s),{monthlyInstallment:o.monthlyInstallment})),s})}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Fl=(()=>{let t=class t{constructor(){this.baseApiUrl=I("BASE_API_URL"),this.httpClient=I(Lt),this.translateService=I(Zo),this.marketSettings=I(ae),this.baseApiUrl=this.baseApiUrl}getBreeds(i){return this.httpClient.get(`${this.baseApiUrl}/quote/v1/breeds/${i}`)}getBreedsByStateAndMarketChannelId(i,n,s,o){let a=new mr().set("marketChannelId",s).set("localizationCode",o);return this.httpClient.get(`${this.baseApiUrl}/quote/v1/breeds/${i}/state/${n}`,{params:a})}getStateInfoByPostalCode(i){return this.httpClient.get(`${this.baseApiUrl}/quote/v1/postalCode/${i}/state`)}getStateFiling(i){let n=new mr().set("marketChannelId",this.marketSettings.marketChannelSettings().marketChannelId).set("stateCode",i);return this.httpClient.get(`${this.baseApiUrl}/quote/v1/state-filing`,{params:n})}getLocationByPostalCode(i){return this.httpClient.get(`${this.baseApiUrl}/quote/v1/postalCode/${i}`)}getAgesByPostalCodeAndMarketChannelId(i){return this.httpClient.get(`${this.baseApiUrl}/quote/v1/postalcode/${i}/market-channel/${this.marketSettings.marketChannelSettings().marketChannelId}/ages`)}getQuoteByGuid(i){return this.httpClient.get(`${this.baseApiUrl}/quote/v1/GUID/${i}`)}saveQuote(i){return this.httpClient.post(this.baseApiUrl+"/quote/v1",i).pipe($(n=>n.data))}reCaptchaRequest(i={}){let n=xi().recaptchaCode;return this.httpClient.post(this.baseApiUrl+`/quote/v1/recaptcha-request?marketChannelCode=${n}`,i).pipe($(s=>s))}getQuoteLimitsByPostalCodeAndMarketChannelId(i,n){return this.httpClient.get(`${this.baseApiUrl}/quote/v1/limits/${i}?marketChannelId=${n}`)}getQuoteProductsByQuotePetId(i){let n=new mr().set("continuingCoverage","false");if(this.marketSettings.isPpu()){let s=this.translateService.currentLanguageCode||localStorage.getItem(jt.LANGUAGE_KEY)||this.marketSettings.marketChannelSettings().defaultLanguage;n=n.set("localizationCode",s)}return this.httpClient.get(`${this.baseApiUrl}/quote/v2/quote-pet/${i}/products`,{params:n})}getWellnessBenefitsSchedule(i,n,s,o,a){let l=new mr().set("marketChannelId",s).set("localizationCode",o);return a&&(l=l.set("effectiveOn",a)),this.httpClient.get(this.baseApiUrl+`/quote/v1/state/${i}/species/${n}/wellness-benefit-schedule`,{params:l})}getProductMonthlyPreviewByQuotePetId(i,n){return this.httpClient.post(this.baseApiUrl+`/quote/v2/preview/${i}`,n).pipe($(s=>[s]))}getStateFilingMessages(i,n,s){return this.httpClient.get(this.baseApiUrl+`/quote/v2/market-channel/${n}/state/${i}/messages`+(s?`?effectiveOn=${s}`:""))}checkOut(i){return this.httpClient.post(`${this.baseApiUrl}/quote/v2/checkout`,i)}getEnrollmentQuestionsByPostalCodeAndMarketChannelId(i,n){return this.httpClient.get(`${this.baseApiUrl}/quote/v1/postalcode/${i}/market-channel/${n}/enrollmentQuestions`).pipe($(s=>{let o=[];return s&&s.length>0&&o.push(s[0]),o.length>0?o:s}))}
4getPetLookUpRegistration(i,n,s){return this.httpClient.get(this.baseApiUrl+`/quote/v1/lookup-registration?regNo=${i}&postalCode=${s}&marketChannelId=${n}`)}getPartnerCodeValidation(i){let n=xi().marketChannelId,s=this.baseApiUrl;return(this.marketSettings.isAkc()||this.marketSettings.isPpi())&&(s=Kt.localAPIUrl),this.httpClient.get(`${s}/quote/v1/partner?groupCode=${i}&marketChannelId=${n}`)}getPartnerMembershipValidation(i){return this.httpClient.post(`${this.baseApiUrl}/quote/v1/validate-partner-membership`,i)}handleUpdateStoreAfterSavingQuote$(i,n){let s=i.pets??[];if(!s.length)return ne(n.saveQuoteSuccess({quote:i}));let a=s.filter(l=>l.petId).map(l=>this.getQuoteProductsByQuotePetId(l.petId).pipe($(c=>{let d=c?.baseProducts??[],h=(l.coverage?.selectedProducts??[]).map(u=>{let g=d.find(f=>f.stateFilingProductId===u.stateFilingProductId);return g?.code?z(G({},u),{code:g.code}):u});return z(G({},l),{coverage:z(G({},l.coverage),{selectedProducts:h})})})));return zr(a).pipe($(l=>{let c=z(G({},i),{pets:l});return n.saveQuoteSuccess({quote:c})}))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var dS=(()=>{let t=class t{constructor(){this.router=I(nn),this.store=I(_e),this.quotingService=I(Fl),this.marketChannelService=I(ae),this.globalService=I(Wt),this.cacheClearService=I(Dl),this.stepTwoService=I($n),this.ngbModal=I(Vn),this.isModalOpen=!1}init(){this.subscription||this.listenToNavigation()}listenToNavigation(){this.subscription=this.router.events.pipe(We(i=>i instanceof Jo)).subscribe(()=>this.checkQuoteExpiration())}checkQuoteExpiration(){!this.marketChannelService.isAkc()||!this.globalService.isProp103Enabled()||this.isModalOpen||this.router.url.includes($t.STEP_FOUR)||this.store.select(me.selectQuote).pipe(Le(1)).subscribe(i=>{!i?.quoteGuid||i?.stateFilingId==null||this.store.select(ds.selectStateInfo).pipe(Le(1)).subscribe(n=>{let s=n?.code?.trim();s&&this.quotingService.getStateFiling(s).subscribe({next:o=>{o?.stateFilingId!=null&&o.stateFilingId!==i.stateFilingId&&this.openExpiredModal()}})})})}openExpiredModal(){if(this.isModalOpen)return;this.isModalOpen=!0;let i={title:"quoteExpiredModal.title",description:"quoteExpiredModal.description",confirmButton:"quoteExpiredModal.startNewQuoteButton",hideCloseButton:!0},n=this.ngbModal.open(Il,{centered:!0,size:"md",keyboard:!1,backdrop:"static",windowClass:"quote-expired-modal"});n.componentInstance.config=i,n.result.then(s=>{s==="confirm"&&this.startNewQuote()},()=>{}),n.result.finally(()=>{this.isModalOpen=!1})}startNewQuote(){this.subscription?.unsubscribe(),this.stepTwoService.setHaveUnsavedChanges(!1),this.router.navigate([`/${$t.STEP_ONE}`]).then(()=>{this.cacheClearService.clearAllCache(),this.listenToNavigation()})}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var pS=(()=>{let t=class t{constructor(){}scrollToTop(){setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},500)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Bi=new Yo().append("System-Of-Record","Orca").append("Accept","application/json"),SS=(()=>{let t=class t{constructor(){this.baseApiUrl=I("BASE_API_URL"),this.http=I(Lt),this.stripeApiUrl=Kt.stripe.apiUrl,this.stripeReturnUrl=Kt.stripe.returnUrl,this.baseApiUrl=this.baseApiUrl}endpointsMetadata(){return{Environment:"",Origin:"QuoteEngine",ReturnUrl:this.stripeReturnUrl,SystemOfRecord:"Orca"}}getPublishableKey(){return this.http.get(`${this.stripeApiUrl}/publishable-key`,{headers:Bi})}getConnectedAccounts(){let i=xi();return this.http.get(`${this.stripeApiUrl}/connected-accounts/${i.code}/iaic`,{headers:Bi})}getCustomerByFullNameAndEmail(i,n){return this.http.get(`${this.stripeApiUrl}/customers/${i}/${n}`,{headers:Bi}).pipe($(s=>s.customerId))}getCustomerById(i){return this.http.get(`${this.stripeApiUrl}/customers/${i}`,{headers:Bi}).pipe($(n=>n.customerId))}postCustomer(i){return i.metadata=this.endpointsMetadata(),this.http.post(`${this.stripeApiUrl}/customers`,i,{headers:Bi}).pipe($(n=>n.customerId))}paymentIntent(i){return i.metadata=G(G({},i.metadata),this.endpointsMetadata()),i.metadata.IsRealTimePayment="True",this.http.post(`${this.stripeApiUrl}/payments`,i,{headers:Bi}).pipe($(n=>n.clientSecret))}setupIntent(i){return i.metadata=this.endpointsMetadata(),this.http.post(`${this.stripeApiUrl}/setups`,i,{headers:Bi}).pipe($(n=>n.clientSecret))}getStripeErrorMessage(i,n){return this.http.get(`${this.baseApiUrl}/billing/v1/stripe-denial-code/${i}/market-channel/${n}`)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var MS=(()=>{let t=class t{constructor(){this.httpClient=I(Lt),this.baseApiUrl="https://api.ipify.org/?format=json"}getIpAddress(){return this.httpClient.get(this.baseApiUrl).pipe($(i=>i.ip))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var tt=(()=>{let t=class t{constructor(){this.globalService=I(Wt),this.marketChannelService=I(ae),this.store=I(_e),this.stateManagementService=I(cr)}isCompanionCare(i){if(!i?.dob)return!1;let n=isNaN(ct(i.dob).age)?0:ct(i.dob).age,s=this.marketChannelService.marketChannelSettings()?.limits?.companionCareAgeLimit;return!(n>=(s||9))}getBaseProduct(i,n,s,o){let a={},l=this.globalService.getCurrentPet(i,o);if(!l||!n)return a;
4if(l?.registrationNumber&&s===at.onlyActivate)return n?.baseProducts?.find(d=>d.termDays===30);let c=this.resolveBaseProductCode(l);return a=n?.baseProducts?.find(d=>d.code===c),a}getOnlyAnnualBaseProduct(i,n,s){let o={},a=this.globalService?.getCurrentPet(i,s);if(!a||!n)return o;let l=this.resolveBaseProductCode(a);return o=n?.baseProducts?.find(c=>c.code===l),o}resolveBaseProductCode(i){let n=this.getSelectedBaseProductCode(i);if(n)return n;let s=ct(i?.dob)?.age,o=this.marketChannelService.marketChannelSettings()?.limits?.companionCareAgeLimit;return s<(o||9)||this.globalService.isProp103FeatureEnabled()?ce.AccidentIllness:ce.AccidentOnly}getSelectedBaseProductCode(i){let n=i?.coverage?.selectedProducts?.filter(a=>Hn(a));if(!n?.length)return;let o=(n.find(a=>a.termDays===365)??n[0])?.code;if(o===ce.AccidentOnly)return ce.AccidentOnly;if(o===ce.AccidentIllness)return ce.AccidentIllness}getPreferredBaseProduct(i){if(i?.length)return i.find(n=>n.termDays===365)||i[0]}getLimitsFromBaseProduct(i){return i?[{coinsuranceId:i?.coinsuranceId,coverageLimitId:i?.coverageLimitId,deductibleId:i?.deductibleId,incidentLimitId:i?.incidentLimitId}]:[]}getLimitsFromSelectedLimits(i){return Xe(i??{})?[]:[{coinsuranceId:i?.coinsuranceLimit?.id,coverageLimitId:i?.coverageLimit?.id,deductibleId:i?.deductibleLimit?.id,incidentLimitId:i?.incidentLimit?.id}]}getLimitsFromProductCode(i){return i===ce.AccidentIllness?je.PRE_SELECT_ACCIDENT_ILLNESS_LIMITS:je.PRE_SELECT_ACCIDENT_ONLY_LIMITS}matchProductOnSelectedProducts(i,n){let s=n.get("stateFilingProductId")?.value;return!!i?.find(o=>o?.stateFilingProductId===s)}getSumPrice(i){return i?.reduce((n,s)=>n+Number(s?.monthlyInstallment??0),0)}getMonthlyPrice(i,n,s){let o,a;return i?.length&&!Xe(n)&&!Xe(s)?(a=[...n?.preselectedOptions?.filter(l=>l.parentStateFilingProductId===s.stateFilingProductId)??[],...n?.upgradeOptions?.filter(l=>l.parentStateFilingProductId===s.stateFilingProductId&&l.isMandatory)??[],...n?.wellnessOptions?.filter(l=>l.parentStateFilingProductId===s.stateFilingProductId&&l.isMandatory)??[]],a.push(s),o=i?.filter(l=>a?.find(c=>c.stateFilingProductId===l.stateFilingProductId)),parseFloat(this.getSumPrice(o)?.toFixed(2))):0}getLimitsForMonthlyPreviewFromSelectedLimits(i,n){return Xe(i??{})?{}:{stateFilingProductId:n?.stateFilingProductId,coinsuranceId:i?.coinsuranceLimit?.id,coverageLimitId:i?.coverageLimit?.id,deductibleId:i?.deductibleLimit?.id,incidentLimitId:i?.incidentLimit?.id}}getUpgradeOrder(i,n){let s;switch(n){case Ei.felix:s=je.ACCIDENT_AND_ILLNESS_PRODUCTS_ORDER.find(o=>o.display.toLocaleLowerCase()===i.toLocaleLowerCase());break;case Ei.akc:default:s=(this.globalService.isPetLand()?je.PETLAND_ADDONS_PRODUCTS_ORDER:je.AKC_ADDONS_PRODUCTS_ORDER).find(o=>o.display.trim().replace(/\s+/g,"").toLocaleLowerCase()===i.trim().replace(/\s+/g,"").toLocaleLowerCase());break}return s?.order}isRelatedProduct(i,n){return Number(i?.parentStateFilingProductId)===Number(n?.stateFilingProductId)}formatUpgradeProductName(i){return i?.code===ce.SupportPlus?{name:i.display,description:Ti.RAIMBOWCOVERAGE_TEXT}:i?.code===ce.HereditaryPlus?{name:i.display,description:Ti.INHERITED_CONGENITAL_COVERAGE_TEXT}:{name:i?.display,description:i?.code===ce.BreedingCoverage?Ti.BREEDINGCOVERAGE:Ti.EXAMCARE}}returnDefaultSelectedProductsForBaseProduct(i,n,s,o){let a=n?.baseProducts?.find(_=>_.termDays===30);if(!i||!n||!s?.length)return[];let l=[],c=s[0]?.monthlyPreviewResults;if(!c)return[];o!==at.skipAndEnroll&&!Xe(a)&&l.push(z(G({},a),{monthlyInstallment:c?.find(_=>_.stateFilingProductId===a?.stateFilingProductId)?.monthlyInstallment}));let d=c?.find(_=>_.stateFilingProductId===i.stateFilingProductId);return l.push(z(G({},i),{monthlyInstallment:d?.monthlyInstallment})),n.upgradeOptions?.forEach(_=>{let h;_.parentStateFilingProductId===i.stateFilingProductId&&_.isMandatory&&(h=c?.find(u=>u.stateFilingProductId===_.stateFilingProductId),h?.isMandatory&&!this.isProductInList(l,_)&&l.push(z(G({},_),{monthlyInstallment:h.monthlyInstallment})))}),n.preselectedOptions?.forEach(_=>{let h;d?.stateFilingProductId===_.parentStateFilingProductId&&(h=c?.find(u=>u.stateFilingProductId===_.stateFilingProductId),this.isProductInList(l,_)||l.push(z(G({},_),{monthlyInstallment:h?.monthlyInstallment})))}),l}isProductInList(i,n){return!!i.find(s=>s.stateFilingProductId===n.stateFilingProductId)}getNotAllowedAddonsOnSelectedProducts(i,n,s){let o=[],a=i.concat(n).filter(l=>l.upgradeType);return o=s?.filter(l=>l?.upgradeType&&!a?.find(c=>c.stateFilingProductId===l.stateFilingProductId)),o}isOnlyActivateCfaOption(i){return i===at.onlyActivate}isActivateAndEnrollSelectedCfaOption(i){return i===at.activateAndEnroll}updatePricesOnSelectedProducts(i,n){return i.map(s=>{let o=n.find(a=>a.stateFilingProductId===s.stateFilingProductId);return o&&(s=z(G({},s),{monthlyInstallment:o.monthlyInstallment})),s})}setSelectedProducts(i,n){return i?.length&&n?.length?this.updatePricesOnSelectedProducts(n,i):n}handleStoreSelectedProducts(i,n){let s=this.setSelectedProducts(i,n);return s.length>0&&this.stateManagementService.setSelectedProductsOnStepTwoStore(s),s}haveToKeepUpgradesValues(i,n,s){return i?.selected30dOptionCoverage!==at.onlyActivate&&n&&!s}sumCollectionByProperty(i,n){return i.reduce((s,o)=>s+(Number(o[n])||0),0)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var cC=(()=>{let t=class t{constructor(){this.formBuilder=I(Wa),this.businessRulesService=I(tt),this.availableUpgradesConstants=Ti}createAddOnOptionForm(i,n,s){return this.formBuilder.group({stateFilingProductId:i?.stateFilingProductId,parentStateFilingProductId:i?.parentStateFilingProductId,display:i?.display,termDays:i?.termDays,upgradeType:n,monthlyInstallment:null,isSelected:null,order:this.businessRulesService.getUpgradeOrder(i.display,s),code:i?.code})}pushNonSelectOption(i,n){i.push(n)}matchMonthlyInstallmentById(i,n){return i?.find(s=>
4s.stateFilingProductId===n)}setMonthlyPrices(i,n){let s;i.controls?.forEach(o=>{s=this.matchMonthlyInstallmentById(n,o.value.stateFilingProductId),s&&o.patchValue({monthlyInstallment:s.monthlyInstallment},{emitEvent:!1})})}clearFormArray(i){for(;i.length!==0;)i.removeAt(0)}setNoCoverageAsOption(i){i.patchValue(0)}setNoCoverageAsNull(i){i.patchValue(null)}isNoWellnessSelected(i){return!i.value.find(n=>n.isSelected)}sortUpgradesByOrder(i){let n=i.controls.sort((s,o)=>s.get("order").value-o.get("order").value);return new Pr(n)}isSelectedUpgrade(i,n){return!!(!n||i.value.find(s=>s===n))}pushToSelectedUpgradesForm(i,n){let s=i.get("selectedsUpgrade");n?.forEach(o=>{this.isSelectedUpgrade(s,o)||s?.push(new Mi(o))})}resetAddOnFormValues(i){for(let n of i.controls)n.patchValue({isSelected:null})}validAddOnsOptionsForms(i,n){return i.status==="VALID"&&n.status==="VALID"}getWholePrice(i){let n=0;return i.controls?.forEach(s=>{s.get("isSelected")?.value&&(n+=s.get("monthlyInstallment")?.value)}),n}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var kl=(()=>{let t=class t{constructor(){this.activeModal=I(_t),this.marketSettings=I(ae),this.stepTwoConstants=je}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["app-breeding-coverage"]],decls:8,vars:4,consts:[["id","BreedingCoverage",1,"modal-container"],[1,"modal-header"],["type","button","title","Close",1,"btn-close",3,"click"],[1,"modal-title"],[1,"modal-body"]],template:function(n,s){n&1&&(ve(0,"div",0)(1,"div",1)(2,"button",2),wi("click",function(){return s.activeModal.dismiss("Cross click")}),ye(),ve(3,"h3",3),Ee(4),ye()(),ve(5,"div",4)(6,"p"),Ee(7),ye()()()),n&2&&(ee(4),Bt(s.stepTwoConstants.BreedingCoverageDetails),ee(),nt("ppi-padding",s.marketSettings.isPpi()),ee(2),ft(" ",s.stepTwoConstants.breedingCoverageDescription," "))},styles:["p[_ngcontent-%COMP%]{text-align:center}.ppi-padding[_ngcontent-%COMP%]{padding:var(--modal-body-padding-zero)}"]});let e=t;return e})();var Ol=(()=>{let t=class t{constructor(){this.activeModal=I(_t),this.stepTwoConstants=je}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["app-exam-plus-modal"]],decls:8,vars:2,consts:[["id","ExamCareCoverage",1,"modal-container"],[1,"modal-header"],["type","button","title","Close",1,"btn-close",3,"click"],[1,"modal-title"],[1,"modal-body"]],template:function(n,s){n&1&&(ve(0,"div",0)(1,"div",1)(2,"button",2),wi("click",function(){return s.activeModal.dismiss("Cross click")}),ye(),ve(3,"h3",3),Ee(4),ye()(),ve(5,"div",4)(6,"p"),Ee(7),ye()()()),n&2&&(ee(4),Bt(s.stepTwoConstants.examplusCoverageDetails),ee(3),ft(" ",s.stepTwoConstants.examplusCoverageDescription," "))},styles:["p[_ngcontent-%COMP%]{text-align:center}"]});let e=t;return e})();var Rl=(()=>{let t=class t{constructor(){this.stepTwoConstants=je,this.activeModal=I(_t),this.translatePipe=I(fi)}get modalTitle(){switch(this.productType){case"Final Respects Care":return this.translatePipe.transform("step2.finalRespectsCareTitle");case"SupportPlus":return this.translatePipe.transform("step2.supportPlusCoverageTitle");default:return""}}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Ie({type:t,selectors:[["app-rainbow-bridge-care-modal"]],features:[ke([fi])],decls:9,vars:4,consts:[["id","FinalRespectsCare",1,"modal-container"],[1,"modal-header"],["type","button","title","Close",1,"btn-close",3,"click"],[1,"modal-title"],[1,"modal-body"]],template:function(n,s){n&1&&(ve(0,"div",0)(1,"div",1)(2,"button",2),wi("click",function(){return s.activeModal.dismiss("Cross click")}),ye(),ve(3,"h3",3),Ee(4),ye()(),ve(5,"div",4)(6,"p"),Ee(7),st(8,"translate"),ye()()()),n&2&&(ee(4),ft(" ",s.modalTitle," "),ee(3),ft(" ",ot(8,2,"step2.rainbowCoverageDescription")," "))},dependencies:[fi],styles:["p[_ngcontent-%COMP%]{text-align:center}"]});let e=t;return e})();var OC=(()=>{let t=class t{constructor(){this.businessRulesService=I(tt)}getUpgradedModalByProductType(i){if(!i)return null;let n=i.trim().replace(/\s/g,"").toLocaleLowerCase();return n.includes("breedingcoverage")?kl:n.includes("examcare")||n.includes("examplus")?Ol:n.includes("finalrespectscare")||n.includes("supportplus")?Rl:null}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Vl=(()=>{let t=class t{constructor(){this.store=I(_e),this.stepTwoBusinessRulesService=I(tt),this.mainQuote$=this.store.select(oi),this.breeds$=this.store.select(ln),this.activeLimits$=this.store.select(bt),this.monthlyPremium$=this.store.select(Vr),this.openFromSummaryDetails=new ue,this.openFromSummaryDetails$=this.openFromSummaryDetails.asObservable()}getPets(){return this.mainQuote$.pipe($(i=>i?.pets?i?.pets:[]))}getPetGender(i){if(i!==1&&i!==2)throw new Error("Invalid gender id");return i==1?"Female":"Male"}getFilteredBreed(i){return this.breeds$.pipe($(n=>
4this.filterBreedById(n,i)?.display))}filterBreedById(i,n){return i?.find(s=>s.breedId===n)}getCurrentSelectedLimits(i){return this.store.select(na(i))}getBaseProductNameTranslationKey(i){return this.mainQuote$.pipe(Ge(n=>{let s=n.pets?.find(o=>o.petId===i);return this.store.select(an(s?.petId)).pipe($(o=>o?.find(l=>l.code===ce.AccidentIllness||l.code===ce.AccidentOnly)?.code===ce.AccidentIllness?Ht.ACCIDENT_AND_ILLNESS_TRANSLATION_KEY:Ht.ACCIDENT_ONLY_TRANSLATION_KEY))}))}getMonthlyPremiumWithoutUpgrades(i){return this.mainQuote$.pipe(Ge(n=>{let s=n?.pets?.find(o=>o.petId===i);return!s||!s.coverage||!s.coverage.monthlyPremium?ne(0):this.store.select(zt(s.petId)).pipe($(({publicProducts:o})=>{let a=o,l=a?.upgradeOptions||[],c=a?.wellnessOptions,d=s.coverage?.selectedProducts||[],_=0,h=0;return c?.length&&c.forEach(u=>{let g=d.find(f=>f.stateFilingProductId===u.stateFilingProductId);g&&(_+=g.monthlyInstallment??0)}),l.forEach(u=>{let g=d.find(f=>f.stateFilingProductId===u.stateFilingProductId&&!u.isMandatory);g&&(h+=g.monthlyInstallment??0)}),s.coverage?.monthlyPremium-_-h}))}))}getAnnualPremiumWithoutUpgrades(i){return this.mainQuote$.pipe(Ge(n=>{let s=n?.pets?.find(o=>o.petId===i);return!s||!s.coverage||!s.coverage.premiumNet?ne(0):this.store.select(zt(s.petId)).pipe($(({publicProducts:o})=>{let a=o,l=a?.upgradeOptions||[],c=a?.wellnessOptions,d=s.coverage?.selectedProducts||[],_=0,h=0;return c?.length&&c.forEach(u=>{let g=d.find(f=>f.stateFilingProductId===u.stateFilingProductId);g&&(_+=g.premiumNet??0)}),l.forEach(u=>{let g=d.find(f=>f.stateFilingProductId===u.stateFilingProductId&&!u.isMandatory);g&&(h+=g.premiumNet??0)}),s.coverage?.premiumNet-_-h}))}))}getWellnessUpgradePrice(){return this.store.select(Co)}getListOfUpgrades(i){return this.mainQuote$.pipe(Ge(n=>{let s=n?.pets?.find(o=>o.petId===i);return!s||!s.coverage?ne("none"):this.store.select(zt(s.petId)).pipe($(({publicProducts:o})=>{let a=[],l=o,c=this.stepTwoBusinessRulesService.getBaseProduct(n,l||{},"",s?.petId);this.baseProduct=c;let d=s.coverage?.selectedProducts||[];d.some(u=>u.code===ce.AccidentOnly)&&(this.baseProduct=l?.baseProducts?.find(u=>u.code===ce.AccidentOnly)??c);let _=d?.filter(u=>u.stateFilingProductId===l?.upgradeOptions?.find(g=>g.stateFilingProductId===u.stateFilingProductId&&u.monthlyInstallment>0)?.stateFilingProductId&&u.isMandatory===!1),h=d?.find(u=>u.stateFilingProductId===l?.wellnessOptions?.find(g=>g.stateFilingProductId===u.stateFilingProductId)?.stateFilingProductId);return!h&&(!_||_?.length===0)||(l?.wellnessOptions?.forEach(u=>{u.stateFilingProductId===h?.stateFilingProductId&&u.parentStateFilingProductId===this.baseProduct?.stateFilingProductId&&a.push(u.display)}),l?.upgradeOptions?.forEach(u=>{_?.forEach(g=>{u.stateFilingProductId===g?.stateFilingProductId&&u.parentStateFilingProductId===this.baseProduct?.stateFilingProductId&&a.push(Rr(u.display))})}),a.length===0)?"none":a}))}))}getListOfUpgradesWithPrice(i){return this.mainQuote$.pipe(Ge(n=>{let s=n?.pets?.find(o=>o.petId===i);return!s||!s.coverage?ne([]):this.store.select(zt(s.petId)).pipe($(({publicProducts:o})=>{let a=o,l=this.stepTwoBusinessRulesService.getBaseProduct(n,a,"",s?.petId);this.baseProduct=l;let c=s.coverage?.selectedProducts||[];c.some(u=>u.code===ce.AccidentOnly)&&(this.baseProduct=a?.baseProducts?.find(u=>u.code===ce.AccidentOnly)??l);let d=c?.filter(u=>u.stateFilingProductId===a?.upgradeOptions?.find(g=>g.stateFilingProductId===u.stateFilingProductId&&u.monthlyInstallment>0)?.stateFilingProductId&&u.isMandatory===!1),_=c?.find(u=>u.stateFilingProductId===a?.wellnessOptions?.find(g=>g.stateFilingProductId===u.stateFilingProductId)?.stateFilingProductId),h=[];return!_&&(d?.length===0||!d)?[]:(a?.wellnessOptions?.forEach(u=>{if(u.stateFilingProductId===_?.stateFilingProductId&&u.parentStateFilingProductId===this.baseProduct?.stateFilingProductId){let g=z(G({},u),{display:u.display});h.push(g)}}),a?.upgradeOptions?.forEach(u=>{d?.forEach(g=>{if(u.stateFilingProductId===g?.stateFilingProductId&&u.parentStateFilingProductId===this.baseProduct?.stateFilingProductId){let f=z(G({},u),{display:Rr(u.display)});h.push(f)}})}),s.coverage?.selectedProducts&&s.coverage.selectedProducts.forEac
4h(u=>{h.forEach((g,f)=>{if(u.stateFilingProductId===g.stateFilingProductId){let P=u.monthlyInstallment??0,m=u.premiumNet??0;h[f]=z(G({},h[f]),{monthlyInstallment:P,premiumNet:m})}})}),h)}))}))}getWellnessByPetId(i){return this.mainQuote$.pipe(Ge(n=>{let s=n?.pets?.find(o=>o.petId===i);return!s||!s.coverage?ne(void 0):this.store.select(zt(s.petId)).pipe($(({publicProducts:o})=>{let a=o,l=this.stepTwoBusinessRulesService.getBaseProduct(n,a,"",s?.petId);this.baseProduct=l;let d=(s.coverage?.selectedProducts||[])?.find(h=>h.stateFilingProductId===a?.wellnessOptions?.find(u=>u.stateFilingProductId===h.stateFilingProductId)?.stateFilingProductId),_;return a?.wellnessOptions?.forEach(h=>{h.stateFilingProductId===d?.stateFilingProductId&&h.parentStateFilingProductId===l?.stateFilingProductId&&(_=z(G({},h),{display:h.display}))}),_}))}))}setOpenFromSummaryDetails(i,n,s,o){this.openFromSummaryDetails.next({value:i,pet:n,editPetDetails:s,editCfaOption:o})}getSpeciesIdByBreedId(i){return this.breeds$.pipe($(n=>n?.find(s=>s.breedId===i)?.speciesId))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ao=[5,11,12,13,23],Bl=[5,11,12];var zn=class{constructor(t){this.value=t.value,this.key=t.key||"",this.label=t.label||"",this.required=!!t.required,this.order=t.order===void 0?1:t.order,this.controlType=t.controlType||"",this.type=t.type||"",this.options=t.options||[]}};var Wn=class extends zn{constructor(){super(...arguments),this.controlType="radio"}};var Nl=(()=>{let t=class t{constructor(){}handleAddAnotherPetForm(i){let n=JSON.parse(localStorage.getItem("mainStore")),s=["postalCode","email"];Object.keys(i.controls).forEach(o=>{s.includes(o)?o!=="email"&&i.get(o)?.disable():i.get(o)?.setValue(""),o==="email"&&i.get(o)?.setValue(n?.mainStore?.quote?.customer?.email),i.get(o)?.markAsUntouched()})}enableFormFields(i){Object.keys(i.controls).forEach(n=>{let s=i.get(n);s?.disabled&&s.enable()})}disableFormFields(i,n){Object.keys(i.controls).forEach(s=>{let o=i.get(s);o?.enabled&&!n?.includes(s)&&o.disable()})}disableFormFieldsExceptEmailAndPartner(i){let n=["email","partnerCode","agreement"];this.disableFormFields(i,n)}setInitialFormRawValues(i){this.formRawValue=G({},i)}getFormRawValue(){return this.formRawValue}needToResetPet(i){let n=i.getRawValue();if(!this.formRawValue)return!0;let s=this.unFormatPostalCode(this.formRawValue.postalCode),o=this.unFormatPostalCode(n.postalCode),a=this.formRawValue.breedId?.breedId!==n?.breedId?.breedId,l=this.formRawValue.age!==n?.age,c=this.formRawValue.gender!==n?.gender;return l||a||s!==o||c}formatPostalCode(i){return i&&(i.length===6?`${i.substring(0,3)} ${i.substring(3)}`:i)}unFormatPostalCode(i){return i&&i.replace(/\s/g,"")}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ll=(()=>{let t=class t{constructor(){this.store=I(_e),this.globalService=I(Wt),this.cookieService=I(ir),this.petContextService=I(dn),this.state$=this.store.select(cn),this.ages$=this.store.select(oa),this.isLoaded$=this.store.select(la),this.quote$=this.store.select(hn),this.mainQuote$=this.store.select(oi),this.postalCode$=this.store.select(ca),this.formData$=this.store.select(aa),this.error$=this.store.select(ha),this.isEditingPet$=this.store.select(sa),this.isUpdateZipCode=si(this.store.select(me.selectIsUpdateZipCode)),this.cfaModalSuccess=new ue,this.cfaModalSuccess$=this.cfaModalSuccess.asObservable(),this.formService=I(Nl),this.marketSettings=I(ae)}loadState(i){this.store.dispatch(uo({postalCode:i}))}loadBreeds(i,n){this.store.dispatch(po({stateCode:i,specieId:n}))}loadAges(i){this.store.dispatch(fo({postalCode:i}))}zipCodeChanged(i){this.store.dispatch(go({postalCode:i}))}zipCodeCFAChanged(i){this.store.dispatch(ea({postalCode:i}))}saveStepOne(i,n,s,o,a,l,c){i.partnerCode=i.partnerCode?.trim();let d=l?this.createRequestObjectWithMultiPet(o,i,a):this.createRequestObject(i,o,a,c);d=G({},this.updateRequestWithVisitorSession(s,d,n,o));let _=this.isUpdateZipCode()??!0;d=a&&_?G({},this.updateCustomerRequestWithCFAPet(d,a)):d;let h=d.pets?.some(u=>u.petId);this.isEditingPet$.pipe(Le(1)).subscribe(u=>{!u&&!h&&d.pets?.length===1&&(d=z(G({},d),{quoteGuid:null}))}),!d?.quoteGuid&&d?.pets?.length===1&&h&&(d=z(G({},d),{currentPetId:void 0,quoteGuid:null,pets:d?.pets?.map(u=>z(G({},u),{petId:void 0}))})),this.store.dispatch(mo({quote:d})),this.store.dispatch(bl({formData:i}))}updateQuoteWithNewPartnerCode(i,n){let s=!n||Object.keys(n).length===0||!n.partnerId&&!n.partnerCode,o=z(G({},i),{partnerCode:s?null:n.partnerCode??null,membershipNumber:s?null:n.membershipNumber?.toString()??null,visitorSession:z(G({},i.visitorSession),{partnerId:s?null:n.partnerId??null,partnerCode:s?null:n.partnerCode??null})});this.store.dispatch(bo({quote:o}))}updateRequestWithVisitorSession(i,n,s,o){return i&&(n.visitorSession=this.createVisitorSessionObject(i,o),n.partnerCode=n.partnerCode?n.partnerCode:i[X.partnerCode],n.customerSourceCode=i[X.customerSource],n.customerSourceDetail=i[X.customerSourceDetails]),n.visitorSession=z(G({},n.visitorSession),{ipAddress:s,userAgent:navigator.userAgent,postalCode:n.visitorSession?.postalCode??n.postalCode}),n}updateCustomerRequestWithCFAPet(i,n){return i.customer=z(G({},i.customer),{firstName:n.firstName,lastName:n.lastName,address1:n.address1,address2:n.address2,phone:n.phone}),i}getFormattedFormPet(i,n,s,o,a){let l=[];s?.pets&&s?.pets.length>0&&(l=[...s.pets]);let c=tr(s),d=this.getNewPetToPayload(s,i,n,o,a);return!c||l.length===0?l.push(d):l=l?.map(_=>_.petId===c.petId?d:_),l}createRequestObject(i,n,s,o){let a={customer:{localizationCode:localStorage.getItem(jt.LANGUAGE_KEY)||sn.EnglishCA}},l=new Date().addDays(1);l.setHours(0,0,0,0);let c=l.getTimezoneOffset()*6e4,d=new Date(l.getTime()-c),_=Us(i.age??0);_.setHours(0,0,0,0);let h=_.getTimezoneOffset()*6e4,u=new Date(_.getTime()-h);return a=z(G({},a),{marketChannelId:jt.MARKET_CHANNEL_ID,effectiveOn:d,postalCode:this.marketSettings.isPpu()?this.formService.formatPostalCode(i.postalCode.trim()):i.postalCode.trim(),partnerCode:i.partnerCode??null,currentPetId:n?.currentPetId,pets:this.getFormattedFormPet(i,u,n,s,o),discounts:null}),n?.quoteGuid&&this.globalService.getCurrentPet(n)?.registrationNumber?a.customer=z(G({},a.customer),{email:i.email.trim(),postalCode:this.marketSettings.isPpu()?this.formService.formatPostalCode(i.postalCode.trim()):i.postalCode.trim(),firstName:s?.firstName,lastName:s?.lastName,address1:s?.address1,address2:s?.address2,phone:s?.phone}):a.customer=z(G({},a.customer),{email:i.email.trim(),postalCode:this.marketSettings.isPpu()?this.formService.formatPostalCode(i.postalCode.trim()):i.postalCode.trim()}),a=z(G({},a),{quoteGuid:n?.quoteGuid}),a}createRequestObjectWithMultiPet(i,n,s){let o=i,a=new Date().addDays(1);a.setHours(0,0,0,0);let l=a.getTimezoneOffset()*6e4,c=new Date(a.getTime()-l),d=Us(n.age??0);d.setHours(0,0,0,0);let _=d.getTimezoneOffset()*6e4,h=new Date(d.getTime()-_);o=z(G({},o),{effectiveOn:c,postalCode:this.marketSettings.isPpu()?this.formService.formatPostalCode(n.postalCode.trim()):n.postalCode.trim(),discounts:null,currentPetId:i?.currentPetId,partnerCode:n.partnerCode??null});let u=G({petName:n.petName.trim().replace(/ +/g," "),breedId:n.breedId.breedId,dob:h,speciesId:n.speciesId,coverage:null,genderId:n.gender},s?.isTrialEligible?{registrationNumber:s?.regNo}:{}),g=[...o.pets||[],u];return o=z(G({},o),{pets:g}),o.customer=z(G({},o.customer),{email:n.email.trim(),postalCode:this.marketSettings.isPpu()?this.formService.formatPostalCode(n.postalCode.trim()):n.postalCode.trim()}),o}mapEnrollmentQuestionsToBaseQuestions(i){let n=[];
4return i.forEach((s,o)=>{n.push(new Wn({key:s.enrollmentQuestionId.toString(),label:s.display,options:s.responseOptions.map(a=>({key:a.enrollmentResponseId.toString(),value:a.display})),required:!0,type:"radio",order:o}))}),n}setCfaModalSuccess(i,n=!1){this.cfaModalSuccess.next({CFAPet:i,isUpdateZipCode:n})}createVisitorSessionObject(i,n){let s={marketChannelId:jt.MARKET_CHANNEL_ID,postalCode:i[X.postalCode],partnerCode:this.getVisitorSessionValue(i,X.partnerCode),customerSource:null,customerSourceDetail:null,agentUserName:i[X.agentUserName],affinityGroupCode:null,affinityGroupId:null,agentSysuserId:null,email:i[X.email],utmSource:this.getVisitorSessionValue(i,X.utmSource),utmMedium:this.getVisitorSessionValue(i,X.utmMedium),utmCampaign:this.getVisitorSessionValue(i,X.utmCampaign),regNo:i[X.regNo],gclid:i[X.gclid],mcleadCustomerId:null,referralId:i[X.referralId],subId:i[X.subId]};return Xe(n?.visitorSession)?s:z(G({},s),{createdOn:n?.visitorSession?.createdOn??null,visitorId:n?.visitorSession?.visitorId??null,visitorSessionId:n?.visitorSession?.visitorSessionId??null,customerId:n?.visitorSession?.customerId??null,partnerId:n?.visitorSession?.partnerId??null,partnerCode:n?.visitorSession?.partnerCode??null,customData:n?.visitorSession?.customData??null,agentSysuserId:n?.visitorSession?.agentSysuserId??null,referralId:s.referralId??n?.visitorSession?.referralId??null,subId:s.subId??n?.visitorSession?.subId??null})}handleAgeAndBreeds(i,n){if(i)return n?.find(s=>s.breedId===i.breedId)}getQuoteByGuid(i){this.store.dispatch(_o({privateId:i}))}isNotAllowedState(i){return["NY","CA","WA"].includes(i?.code)}getNewPetToPayload(i,n,s,o,a){let l=i?.currentPetId,c=i?.pets?.find(_=>_.petId===l&&_.coverage?.selectedLimits)?.coverage??null;return G(z(G({petId:l,petName:n.petName?.trim().replace(/ +/g," "),breedId:n.breedId?.breedId,dob:s,speciesId:n?.speciesId},c&&{coverage:a?c:null}),{genderId:n?.gender}),o?.isTrialEligible?{registrationNumber:o?.regNo}:{})}updatePartnerInfo(i){this.store.dispatch(ta({partner:i}))}getVisitorSessionValue(i,n){return i[n]||this.cookieService.get(n)||void 0}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Gl=(()=>{let t=class t{constructor(){this.store=I(_e),this.stepOneService=I(Ll),this.stepTwoService=I($n),this.businessRulesService=I(tt),this.globalService=I(Wt),this.marketSettings=I(ae),this.marketOptions=Ei,this.limitsFactoryService=I(jn),this.quote$=this.store.select(me.selectQuote),this.mainStoreQuote$=this.store.select(oi),this.breeds$=this.store.select(ln),this.quotePublicProduct$=this.store.select(ht),this.quotePublicLimits$=this.store.select(rr),this.activeLimits$=this.store.select(nr),this.priceMonthlyPreview$=this.store.select(bi),this.quoteFromStepTwo$=this.store.select(oi),this.limits$=this.store.select(rr),this.stepTwoConstants=je,this.planCardConstants=Ht,this.baseProduct$=this.store.select(Yt),this.selectedLimits$=this.store.select(bt)}getCurrentLimitCoverages(){return this.store.select(nr).pipe($(i=>i?.currentLimitCoverage))}getCurrentDeductible(){return this.store.select(nr).pipe($(i=>i?.currentDeductible))}getCurrentReimbursement(){return this.store.select(nr).pipe($(i=>i?.currentReimbursement))}getBaseProductId(i){return this.store.select(Eo).pipe($(n=>{let s=null,o=n.pets,a=n.availableProducts,l=o?.find(d=>d.petId===i),c=isNaN(+ct(l?.dob).age)?0:+ct(l?.dob).age;return s=a?.baseProducts?.[0]?.stateFilingProductId,s}))}getIncludedProductIds(i){return this.store.select(ht).pipe($(n=>{let s=[];return n?.upgradeOptions?.forEach(o=>{o.parentStateFilingProductId===i&&o.display!==Ht.BREEDING_COVERAGE&&s.find(a=>a===o.stateFilingProductId)===void 0&&(s=s.concat(o.stateFilingProductId))}),n?.preselectedOptions?.forEach(o=>{o.parentStateFilingProductId===i&&o.display!==Ht.BREEDING_COVERAGE&&s.find(a=>a===o.stateFilingProductId)===void 0&&(s=s.concat(o.stateFilingProductId))}),s}))}calculateMonthlyPrice(i,n){return n.pipe($(s=>{if(s&&s.length>0){let o=s[0].monthlyPreviewResults;if(o){let a=o.filter(l=>i.includes(l.stateFilingProductId));if(a.length>0){let l=a.reduce((c,d)=>c+d.monthlyInstallment,0);return Number(l)}}}return 0}))}getCoverageLimitsList(i){return i.pipe($(n=>{let s=n.coverageLimits;if(s){let o;return this.marketSettings.isAkc()||this.marketSettings.isPpi()?this.globalService.isProp103FeatureEnabled()?o=s.filter(a=>a.display!=="$2,500"&&a.display!=="$7,500"&&a.display!=="$15,000"&&a.display!=="$20,000"&&a.display!=="$25,000"):o=s.filter(a=>a.display!=="$1,000"):o=s.filter(a=>a.display!=="Unlimited"&&a.display!=="$1,000"&&a.display!=="$20,000"),o.sort((a,l)=>a.value-l.value)}else return[]}))}getDeductibleLimitsList(i){return i.pipe($(n=>{let s=n.deductibleLimits;return s?this.filterDeductibles(s):[]}))}filterDeductibles(i){return i.filter(n=>this.getVisibleDeductibleIds().includes(Number(n.id))).sort((n,s)=>n.value-s.value)}getVisibleDeductibleIds(){return this.marketSettings.isAkc()||this.marketSettings.isPpi()?this.globalService.isProp103FeatureEnabled()?Ao.filter(i=>i!==13):Ao:Bl}getReimbursementLimits(i){return i.pipe($(n=>n.coinsuranceLimits))}formatReimbursementLimits(i){let n=i.coinsuranceLimits;return n?n.map(o=>z(G({},o),{display:`${n}%`})):[]}getPetId(i){return i.pipe($(n=>n?.currentPetId))}getPetName(i){return i.pipe($(n=>n.pets?.[0].petName))}getPetGender(i){return i.pipe($(n=>n.pets?.[0].genderId))}getPetAge(i){return i.pipe($(n=>n.pets?.[0].dob))}getPet(){return this.mainStoreQuote$.pipe($(i=>{let n=i?.currentPetId;return i?.pets?.find(s=>
4s.petId===n)}))}getPetBreed(){return this.getPet().pipe(Ge(i=>this.breeds$.pipe($(n=>this.filterBreedById(n,i.breedId)))))}filterBreedById(i,n){return i.find(s=>s.breedId===n)}getCurrentLimitByTypeId(i,n){return i?.find(s=>s.id===n)}getFormattedSelectedLimits(i,n,s){return n&&s?z(G({},i),{coverageLimit:n?.coverageLimits?.find(o=>o.id===s?.coverage?.selectedLimits?.coverageLimitId)??i.coverageLimit,deductibleLimit:n?.deductibleLimits?.find(o=>o.id===s?.coverage?.selectedLimits?.deductibleId)??i.deductibleLimit,coinsuranceLimit:n?.coinsuranceLimits?.find(o=>o.id===s?.coverage?.selectedLimits?.coinsuranceId)??i.coinsuranceLimit}):i}getSpeciesIdByBreedId(i){return this.breeds$.pipe($(n=>n?.find(s=>s.breedId===i)?.speciesId))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Do(e){return e?.length?e.reduce((t,r)=>{if(!r.amount)return t;let i=parseFloat(r.amount.replace(/[^0-9.-]/g,""));return t+(isNaN(i)?0:i)},0):0}function Up(e){return e<1?"Under 1 Year":`${e} ${e>1?"Years":"Year"}`}var qp="Accident_Illness";function Qp(e){return e===qp?"Accident & Illness":"Accident"}function Kp(e){return!e||e.length===0?"No Upgrades":e.map(t=>t.trim()).join(", ")}function Yp(e,t,r){return r==="per-pet"?`${e}P${t+1}`:e}function Jp(e,t){return t.activationAware&&e.registrationNumber?"Activation":"Full Policy"}var Zp={"only-activate":"30 Day","activate-and-enroll":"Full policy with 30 Day","skip-and-enroll":"Skip 30 Day"};function Xp(e){return e?Zp[e]:""}function ef(e){return e||"No Partner"}function Io(e,t,r,i,n={}){let s={item_id:Yp(e,r.index,i.itemIdStrategy),item_name:Jp(r,i),affiliation:ef(t),item_brand:i.code.toUpperCase(),item_category2:r.species==="dog"?"Dog":"Cat",item_category3:r.breed,item_category4:Up(r.ageYears),item_variant:Qp(r.baseProductCode),price:r.monthlyPremium,quantity:1};return n.includeCategory&&(s.item_category=Kp(r.upgrades)),n.includeCfaCategory&&i.includeCfaCategory&&r.registrationNumber&&(s.item_category5=Xp(r.cfaOption)),s}function Hl(e){return e.reduce((t,r)=>t+(r.monthlyPremium??0),0)}function Fo(e){let t=e.currentPetIndex??0;return e.pets[t]}function Un(e){return e.coupon||"No Partner"}function ko(e,t){return t.includeTax?e?.monthlyTax??0:void 0}function jl(e,t){let r=Fo(e);if(!r)throw new Error("buildViewItem: no current pet resolved from quote.");let i=Io(e.quoteId,e.affiliation,r,t),n=ko(r,t);return{event:"view_item",language:t.language,email_address:e.email??void 0,ecommerce:z(G({currency:t.currency,coupon:Un(e),value:r.monthlyPremium},n!==void 0&&{tax:n}),{items:[i]})}}function $l(e,t){let r=Fo(e);if(!r)throw new Error("buildAddToCart: no current pet resolved from quote.");let i=Io(e.quoteId,e.affiliation,r,t,{includeCategory:!0}),n=ko(r,t),s={event:"add_to_cart",language:t.language,ecommerce:z(G({currency:t.currency,coupon:Un(e),value:r.monthlyPremium,discount_value:Do(e.discounts)},n!==void 0&&{tax:n}),{items:[i]})};return t.legacy?.addToCartOmitsEmail||(s.email_address=e.email??void 0),s}function zl(e,t){return e.pets.map(r=>Io(e.quoteId,e.affiliation,r,t,{includeCategory:!0,includeCfaCategory:!0}))}function Wl(e,t){let r=ko(Fo(e),t);return{event:"begin_checkout",language:t.language,email_address:e.email??void 0,ecommerce:z(G({billing_cycle:"Monthly",currency:t.currency,coupon:Un(e),value:Hl(e.pets)+(e.serviceFee??0),discount_value:Do(e.discounts)},r!==void 0&&{tax:r}),{items:zl(e,t)})}}function Ul(e,t){let r=t.legacy?.purchaseAlwaysUsd?"USD":t.currency,i={event:"purchase",language:t.language,ecommerce:{transaction_id:e.transactionId,billing_cycle:"Monthly",currency:r,coupon:Un(e),value:Hl(e.pets)+(e.serviceFee??0),discount_value:Do(e.discounts),items:zl(e,t)}};return t.legacy?.purchaseUsesEmailAddressKey?i.emailAddress=e.email??void 0:i.email_address=e.email??void 0,i}function Lr(){if(typeof window>"u")return;let e=window;return e.dataLayer=e.dataLayer??[],{push:t=>e.dataLayer.push(t)}}function Gr(e,t){e&&(e.push({ecommerce:null}),e.push(t))}var ql={akc:{code:"akc",currency:"USD",language:"en",includeTax:!0,itemIdStrategy:"per-pet",activationAware:!0,includeCfaCategory:!0,legacy:{purchaseAlwaysUsd:!0,purchaseUsesEmailAddressKey:!0,addToCartOmitsEmail:!0}},ppi:{code:"ppi",currency:"USD",language:"en",includeTax:!0,itemIdStrategy:"per-pet",activationAware:!0,includeCfaCategory:!0,legacy:{purchaseAlwaysUsd:!0,purchaseUsesEmailAddressKey:!0,addToCartOmitsEmail:!0}},felix:{code:"felix",currency:"USD",language:"en",includeTax:!1,itemIdStrategy:"per-quote",activationAware:!0,includeCfaCategory:!1,legacy:{purchaseAlwaysUsd:!0,purchaseUsesEmailAddressKey:!0,addToCartOmitsEmail:!0}},ppu:{code:"ppu",currency:"CAD",language:"en",includeTax:!0,itemIdStrategy:"per-pet",activationAware:!1,includeCfaCategory:!1,legacy:{purchaseAlwaysUsd:!0,purchaseUsesEmailAddressKey:!0,addToCartOmitsEmail:!0}}};var Ql=(()=>{let t=class t{toCanonicalQuote(i,n){return{quoteId:i.quoteGuid,coupon:i.partnerCode,affiliation:n.partnerInfo?.affiliate?.companyName,email:i.customer?.email,serviceFee:i.serviceFee??void 0,discounts:i.discounts?.map(s=>({amount:s.amount})),currentPetIndex:n.currentPetIndex??0,pets:n.pets.map(s=>this.toCanonicalPet(s))}}toCanonicalPurchase(i,n){return z(G({},this.toCanonicalQuote(i,n)),{transactionId:n.transactionId??""})}toCanonicalPet(i){let n=i.pet;return{index:i.index,petId:String(n.petId),species:n.speciesId===vr.Dog?"dog":"cat",breed:i.breed??"",ageYears:this.getAgeYears(n.dob),monthlyPremium:i.monthlyPremium??n.coverage?.monthlyPremium??0,monthlyTax:n.coverage?.taxSummary?.salesTaxMonthly||0,baseProductCode:i.baseProductCode,upgrades:i.upgrades,registrationNumber:n.registrationNumber,cfaOption:i.cfaOption}}getAgeYears(i){let n=ct(i).age;return isNaN(+n)?0:+n}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var fw=(()=>{let t=class t{constructor(){this.store=I(_e),this.quoteFromMainStore$=this.store.select(me.selectQuote),this.stepTwoSelectedProduct$=this.store.select(xo.selectBaseProduct),this.selectedLimitsPrice$=this.store.select(Vr).pipe(Ho(1)),this.policy$=this.store.select(me.selectPolicy),this.viewItemDataLayer$=this.store.select(me.selectViewItemDataLayer),this.partnerInfo$=this.store.select(me.selectPartnerInfo),this.dataLayerPushed=!1,this.planCardService=I(Gl),this.policySummaryService=I(Vl),this.marketChannelService=I(ae),this.petContextService=I(dn),this.businessRulesService=I(tt),this.ga4Adapter=I(Ql)}pushViewItemDataLayer(i){let n=i?.currentPetId,s=i?.pets?.find(o=>o.petId===n);Ne([ne(i),this.planCardService.getPetBreed().pipe(pe()),this.selectedLimitsPrice$.pipe(We(o=>o>0),pe()),this.viewItemDataLayer$.pipe(Le(2)),this.stepTwoSelectedProduct$,this.partnerInfo$.pipe(pe())]).pipe(Le(1),$(([o,a,l,c,d,_])=>({quote:o,breed:a?.display,monthlyPrice:l,viewItemDataLayer:c,selectBaseProduct:d,partnerInfo:_}))).subscribe(o=>{if(o&&o.monthlyPrice>0&&s?.petId){let{quote:a,breed:l,monthlyPrice:c,viewItemDataLayer:d,selectBaseProduct:_,partnerInfo:h}=o;if(d?.price!==c||d?.breed!==l||!this.dataLayerPushed){let u=this.ga4Adapter.toCanonicalQuote(a,{partnerInfo:h,currentPetIndex:0,pets:[{pet:s,index:a.pets?.findIndex(f=>f===s)??-1,breed:l??void 0,monthlyPremium:c,baseProductCode:_?.code}]});
4Gr(Lr(),jl(u,this.resolveBrand()));let g={price:c,breed:l||"Unknown",age:this.getPetAge(s?.dob),isCompanionCare:this.isCompanionCare(s)};this.store.dispatch(hs({viewItemDataLayer:g})),this.dataLayerPushed=!0}}})}pushBeginCheckoutDataLayer(i){let{currentPetId:n}=i,s=i?.pets?.find(o=>o.petId===n);!i.pets||i.pets.length===0||!s||!n||Ne([this.getsPetContextsAsync(i).pipe(pe()),this.partnerInfo$.pipe(pe())]).pipe(pe()).subscribe(([o,a])=>{let l=this.ga4Adapter.toCanonicalQuote(i,{partnerInfo:a,currentPetIndex:i.pets.findIndex(c=>c.petId===n),pets:o});Gr(Lr(),Wl(l,this.resolveBrand()))})}pushAddToCartDataLayer(i){let{currentPetId:n}=i,s=i?.pets?.find(a=>a.petId===n),o=s?.coverage?.monthlyPremium;Ne([this.getBreedName().pipe(pe()),this.getUpgradesFromSelectedProducts(s,i).pipe(pe()),this.stepTwoSelectedProduct$.pipe(pe()),this.quoteFromMainStore$.pipe(Kn(1),pe()),this.partnerInfo$.pipe(pe())]).pipe($(([a,l,c,d,_])=>({breed:a,upgrades:l,currentPet:s,monthlyPrice:o,selectBaseProduct:c,discounts:d?.discounts,partnerInfo:_}))).subscribe(({breed:a,upgrades:l,currentPet:c,monthlyPrice:d,selectBaseProduct:_,discounts:h,partnerInfo:u})=>{let g=this.ga4Adapter.toCanonicalQuote(z(G({},i),{discounts:h}),{partnerInfo:u,currentPetIndex:0,pets:[{pet:c,index:i.pets?.findIndex(f=>f.petId===c?.petId)??-1,breed:a??void 0,upgrades:l==="none"?void 0:l,baseProductCode:_?.code,monthlyPremium:d??void 0}]});Gr(Lr(),$l(g,this.resolveBrand()))})}pushPurchaseDataLayer(i){i&&Ne([this.getsPetContextsAsync(i).pipe(pe()),this.policy$.pipe(pe()),this.partnerInfo$.pipe(pe())]).pipe(pe()).subscribe(([n,s,o])=>{let a=this.ga4Adapter.toCanonicalPurchase(i,{partnerInfo:o,pets:n,transactionId:s?.policyIds?.join(", ")??""});Gr(Lr(),Ul(a,this.resolveBrand()))})}getTotalMonthlyPremium(i){return i?.reduce((s,o)=>s+o.coverage?.monthlyPremium,0)}getPetAge(i){let s=ct(i).age;return s<1?"Under 1 Year":typeof s=="string"?`${s} Year`:`${s} ${s>1?"Years":"Year"}`}isCompanionCare(i){return!((isNaN(+ct(i?.dob).age)?0:+ct(i.dob).age)>=9)}getBreedName(){return this.planCardService.getPetBreed().pipe($(i=>i?.display))}formatCoverage(i){return i==="none"?"No Upgrades":(i=i,i.map(n=>n.trim()).join(", "))}getsPetItemsAsync(i){if(!i?.pets||i.pets.length===0)return ne([]);let n=i.pets.map((s,o)=>Ne([this.getBreedNameForPet(s),this.policySummaryService.getListOfUpgrades(s.petId).pipe(pe()),this.partnerInfo$.pipe(pe())]).pipe($(([a,l,c])=>{let d=s.coverage?.selectedProducts?.find(_=>_.code===et.accidentIllness||_.code===et.accidentOnly);return z(G({item_id:this.marketChannelService.isFelix()?i.quoteGuid:`${i.quoteGuid}P${o+1}`,item_name:this.getItemName(s),affiliation:this.getAffiliationName(c),item_brand:this.marketChannelService.marketChannelSettings().code.toUpperCase(),item_category:this.formatCoverage(l),item_category2:s?.speciesId===vr.Dog?gr.Dog:gr.Cat,item_category3:a,item_category4:this.getPetAge(s.dob)},(this.marketChannelService.isAkc()||this.marketChannelService.isPpi())&&s.registrationNumber?{item_category5:this.mapCfa30DayConstantToLabel(s)}:{}),{item_variant:this.mapProductCodeToVariant(d?.code),price:s.coverage?.monthlyPremium,quantity:1})})));return Ne(n)}getsPetContextsAsync(i){if(!i?.pets||i.pets.length===0)return ne([]);let n=i.pets.map((s,o)=>Ne([this.getBreedNameForPet(s),this.policySummaryService.getListOfUpgrades(s.petId).pipe(pe())]).pipe($(([a,l])=>{let c=s.coverage?.selectedProducts?.find(d=>d.code===et.accidentIllness||d.code===et.accidentOnly);return{pet:s,index:o,breed:a,upgrades:l==="none"?void 0:l,baseProductCode:c?.code,cfaOption:this.mapCfaOption(s)}})));return Ne(n)}getBreedNameForPet(i){return i.breedId?this.policySummaryService.getFilteredBreed(i.breedId).pipe(pe()):this.getBreedName().pipe(pe())}getsPetItems(i,n,s){let o=[];return i?.pets?.forEach((l,c)=>{o.push({item_id:this.marketChannelService.isPpu()?`${i.quoteGuid}P${c+1}`:i.quoteGuid,item_name:this.getItemName(l),affiliation:"No Partner",item_brand:this.marketChannelService.marketChannelSettings().code.toUpperCase(),item_category:this.formatCoverage(s),item_category2:l?.speciesId===vr.Dog?gr.Dog:gr.Cat,item_category3:n,item_category4:this.getPetAge(l.dob),item_variant:this.isCompanionCare(l)?"Accident & Illness":"Accident Only",price:l.coverage?.monthlyPremium,quantity:1})}),o}setViewItemDataLayerValues(i){this.store.dispatch(hs({viewItemDataLayer:i}
4))}resetDataLayerFlag(){this.dataLayerPushed=!1}getAffiliationName(i){return i?.affiliate?.companyName||"No Partner"}getLanguage(){return localStorage.getItem(jt.LANGUAGE_KEY)||"en"}resolveBrand(){let i=this.marketChannelService.marketChannelSettings().code,n=this.marketChannelService.isPpu()?this.getLanguage():"en";return z(G({},ql[i]),{language:n})}getItemName(i){return!(this.marketChannelService.isAkc()||this.marketChannelService.isPpi())&&!this.marketChannelService.isFelix()?on.FullPolicy:i?.registrationNumber?on.Activation:on.FullPolicy}mapProductCodeToVariant(i){return i===ce.AccidentIllness?"Accident & Illness":"Accident"}calculateTotalDiscountAmount(i){return i?.length?i.reduce((n,s)=>{if(!s.amount)return n;let o=parseFloat(s.amount.replace(/[^0-9.-]/g,""));return n+(isNaN(o)?0:o)},0):0}mapCfa30DayConstantToLabel(i){let n=this.petContextService.getCfaCoverageOption(i.coverage);if(!n)return"";switch(n){case at.onlyActivate:return"30 Day";case at.activateAndEnroll:return"Full policy with 30 Day";case at.skipAndEnroll:return"Skip 30 Day";default:return""}}mapCfaOption(i){if(!i.coverage)return null;switch(this.petContextService.getCfaCoverageOption(i.coverage)){case at.onlyActivate:return"only-activate";case at.activateAndEnroll:return"activate-and-enroll";case at.skipAndEnroll:return"skip-and-enroll";default:return null}}getUpgradesFromSelectedProducts(i,n){return!i?.coverage?.selectedProducts||!i.petId?ne("none"):this.store.select(zt(i.petId)).pipe(pe(),$(({publicProducts:s})=>{if(!s)return"none";let o=[],a=i.coverage?.selectedProducts||[],l=s,c=this.businessRulesService.getBaseProduct(n,l||{},"",i?.petId),d=a.filter(h=>{let u=s?.upgradeOptions?.find(f=>f.stateFilingProductId===h.stateFilingProductId&&h.monthlyInstallment>0),g=h?.isSelected;return u&&(h?.isMandatory===!1||g)}),_=a.find(h=>s.wellnessOptions?.find(u=>u.stateFilingProductId===h.stateFilingProductId));return!_&&(!d||d.length===0)?"none":(_&&l?.wellnessOptions?.forEach(h=>{h.stateFilingProductId===_.stateFilingProductId&&h.parentStateFilingProductId===c?.stateFilingProductId&&o.push(h.display)}),l?.upgradeOptions?.forEach(h=>{d?.forEach(u=>{h.stateFilingProductId===u.stateFilingProductId&&h.parentStateFilingProductId===c?.stateFilingProductId&&o.push(Rr(h.display))})}),o.length===0?"none":o)}))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var vw={INDEX:"index, follow",NO_INDEX:"noindex, nofollow"};export{qt as a,Zl as b,Sa as c,gi as d,da as e,_f as f,bf as g,yn as h,Mi as i,xc as j,Cf as k,Ac as l,Ic as m,Ba as n,Na as o,La as p,Vc as q,ja as r,Pf as s,wf as t,zc as u,Pr as v,Wa as w,Ef as x,xf as y,ey as z,Qh as A,ty as B,Or as C,fl as D,iy as E,ry as F,_t as G,Vn as H,cy as I,hy as J,Ed as K,dy as L,uy as M,my as N,ct as O,Kt as P,ky as Q,Xe as R,Vy as S,Ly as T,_y as U,by as V,Sy as W,Cy as X,wy as Y,Ey as Z,Z_ as _,ir as $,uo as aa,Bu as ba,Nu as ca,po as da,Lu as ea,fo as fa,Gu as ga,mo as ha,bl as ia,Hu as ja,ju as ka,$u as la,go as ma,vo as na,yo as oa,_o as pa,zu as qa,Wu as ra,qu as sa,Qu as ta,Ku as ua,Yu as va,bo as wa,Ju as xa,Zu as ya,Xu as za,Od as Aa,Rd as Ba,qs as Ca,Vd as Da,Qs as Ea,Bd as Fa,n1 as Ga,Ks as Ha,Nd as Ia,Ld as Ja,Gd as Ka,Ys as La,Hd as Ma,jd as Na,$d as Oa,zd as Pa,Js as Qa,Bn as Ra,Zs as Sa,Wd as Ta,Ud as Ua,qd as Va,Qd as Wa,Xs as Xa,eo as Ya,Kd as Za,to as _a,Yd as $a,Jd as ab,Nn as bb,io as cb,Zd as db,ro as eb,Xd as fb,eu as gb,iu as hb,ru as ib,no as jb,so as kb,su as lb,ou as mb,au as nb,cu as ob,hu as pb,du as qb,uu as rb,pu as sb,fu as tb,mu as ub,gu as vb,vu as wb,yu as xb,_u as yb,bu as zb,Su as Ab,Cu as Bb,Pu as Cb,a1 as Db,wu as Eb,Eu as Fb,xu as Gb,Tu as Hb,Mu as Ib,Au as Jb,oo as Kb,ao as Lb,lo as Mb,co as Nb,ho as Ob,Du as Pb,Iu as Qb,h1 as Rb,Fu as Sb,ku as Tb,Ou as Ub,Ru as Vb,p1 as Wb,So as Xb,ht as Yb,Yt as Zb,Mp as _b,Vr as $b,Co as ac,Po as bc,sr as cc,bt as dc,xo as ec,Ln as fc,cr as gc,Al as hc,wl as ic,El as jc,lp as kc,cp as lc,hp as mc,dp as nc,up as oc,pp as pc,mp as qc,gp as rc,vp as sc,yp as tc,_p as uc,bp as vc,Sp as wc,Cp as xc,wp as yc,xp as zc,Dl as Ac,k_ as Bc,Ae as Cc,R_ as Dc,V_ as Ec,B_ as Fc,N_ as Gc,L_ as Hc,G_ as Ic,H_ as Jc,j_ as Kc,$_ as Lc,je as Mc,et as Nc,Hn as Oc,tt as Pc,cC as Qc,OC as Rc,Gn as Sc,Mo as Tc,jn as Uc,$n as Vc,Vl as Wc,Nl as Xc,Ll as Yc,Gl as Zc,fw as _c,Il as $c,Fl as ad,dS as bd,pS as cd,SS as dd,MS as ed,vw as fd};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.