@momentum-design/components 0.80.3 → 0.80.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +601 -317
- package/dist/browser/index.js.map +4 -4
- package/dist/components/list/list.component.d.ts +1 -1
- package/dist/components/listitem/listitem.component.js +10 -3
- package/dist/components/menupopover/menupopover.component.js +3 -1
- package/dist/components/navitem/index.d.ts +11 -0
- package/dist/components/navitem/index.js +8 -0
- package/dist/components/navitem/navitem.component.d.ts +125 -0
- package/dist/components/navitem/navitem.component.js +251 -0
- package/dist/components/navitem/navitem.constants.d.ts +16 -0
- package/dist/components/navitem/navitem.constants.js +21 -0
- package/dist/components/navitem/navitem.styles.d.ts +2 -0
- package/dist/components/navitem/navitem.styles.js +146 -0
- package/dist/components/navitem/navitem.types.d.ts +11 -0
- package/dist/components/navitem/navitem.types.js +1 -0
- package/dist/components/navitemlist/index.d.ts +7 -0
- package/dist/components/navitemlist/index.js +4 -0
- package/dist/components/navitemlist/navitemlist.component.d.ts +51 -0
- package/dist/components/navitemlist/navitemlist.component.js +92 -0
- package/dist/components/navitemlist/navitemlist.constants.d.ts +2 -0
- package/dist/components/navitemlist/navitemlist.constants.js +3 -0
- package/dist/components/navitemlist/navitemlist.styles.d.ts +2 -0
- package/dist/components/navitemlist/navitemlist.styles.js +23 -0
- package/dist/components/sidenavigation/index.d.ts +10 -0
- package/dist/components/sidenavigation/index.js +7 -0
- package/dist/components/sidenavigation/sidenavigation.component.d.ts +144 -0
- package/dist/components/sidenavigation/sidenavigation.component.js +244 -0
- package/dist/components/sidenavigation/sidenavigation.constants.d.ts +11 -0
- package/dist/components/sidenavigation/sidenavigation.constants.js +12 -0
- package/dist/components/sidenavigation/sidenavigation.context.d.ts +15 -0
- package/dist/components/sidenavigation/sidenavigation.context.js +78 -0
- package/dist/components/sidenavigation/sidenavigation.styles.d.ts +2 -0
- package/dist/components/sidenavigation/sidenavigation.styles.js +68 -0
- package/dist/components/sidenavigation/sidenavigation.types.d.ts +7 -0
- package/dist/components/sidenavigation/sidenavigation.types.js +1 -0
- package/dist/custom-elements.json +5820 -3900
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/react/index.d.ts +8 -5
- package/dist/react/index.js +8 -5
- package/dist/react/navitem/index.d.ts +43 -0
- package/dist/react/navitem/index.js +51 -0
- package/dist/react/navitemlist/index.d.ts +13 -0
- package/dist/react/navitemlist/index.js +22 -0
- package/dist/react/sidenavigation/index.d.ts +56 -0
- package/dist/react/sidenavigation/index.js +64 -0
- package/dist/utils/mixins/MenuMixin.js +45 -33
- package/dist/utils/roles.d.ts +1 -0
- package/dist/utils/roles.js +1 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";(()=>{var Nf=Object.create;var ol=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var Rf=Object.getOwnPropertyNames;var Of=Object.getPrototypeOf,Pf=Object.prototype.hasOwnProperty;var Df=(l,o)=>()=>(o||l((o={exports:{}}).exports,o),o.exports);var Ff=(l,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of Rf(o))!Pf.call(l,a)&&a!==e&&ol(l,a,{get:()=>o[a],enumerable:!(s=Gd(o,a))||s.enumerable});return l};var zf=(l,o,e)=>(e=l!=null?Nf(Of(l)):{},Ff(o||!l||!l.__esModule?ol(e,"default",{value:l,enumerable:!0}):e,l));var g=(l,o,e,s)=>{for(var a=s>1?void 0:s?Gd(o,e):o,h=l.length-1,p;h>=0;h--)(p=l[h])&&(a=(s?p(o,e,a):p(a))||a);return s&&a&&ol(o,e,a),a};var Fh=Df((ys,Va)=>{typeof navigator<"u"&&function(l,o){typeof ys=="object"&&typeof Va<"u"?Va.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=o())}(ys,function(){"use strict";var l="http://www.w3.org/2000/svg",o="",e=!1,s=-999999,a=function(r){e=!!r},h=function(){return e},p=function(r){o=r},E=function(){return o};function C(t){return document.createElement(t)}function z(t,r){var i,n=t.length,d;for(i=0;i<n;i+=1){d=t[i].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function G(t,r){return Object.getOwnPropertyDescriptor(t,r)}function Y(t){function r(){}return r.prototype=t,r}var rt=function(){function t(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].pause()},resume:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].resume()},setRate:function(i){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),J=function(){function t(i,n){var d=0,c=[],u;switch(i){case"int16":case"uint8c":u=1;break;default:u=1.1;break}for(d=0;d<n;d+=1)c.push(u);return c}function r(i,n){return i==="float32"?new Float32Array(n):i==="int16"?new Int16Array(n):i==="uint8c"?new Uint8ClampedArray(n):t(i,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:t}();function tt(t){return Array.apply(null,{length:t})}function nt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nt=function(i){return typeof i}:nt=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},nt(t)}var bt=!0,vt=null,yt=null,St="",Bt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Ft=Math.pow,ve=Math.sqrt,te=Math.floor,je=Math.max,we=Math.min,Pe={};(function(){var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r,i=t.length;for(r=0;r<i;r+=1)Pe[t[r]]=Math[t[r]]})();function We(){return{}}Pe.random=Math.random,Pe.abs=function(t){var r=nt(t);if(r==="object"&&t.length){var i=tt(t.length),n,d=t.length;for(n=0;n<d;n+=1)i[n]=Math.abs(t[n]);return i}return Math.abs(t)};var Ye=150,xt=Math.PI/180,he=.5519;function De(t){Rt=!!t}function qe(t){return Rt?Math.round(t):t}function mr(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function Fe(t,r,i,n){this.type=t,this.currentTime=r,this.totalTime=i,this.direction=n<0?-1:1}function Xs(t,r){this.type=t,this.direction=r<0?-1:1}function Xc(t,r,i,n){this.type=t,this.currentLoop=i,this.totalLoops=r,this.direction=n<0?-1:1}function Jc(t,r,i){this.type=t,this.firstFrame=r,this.totalFrames=i}function Qc(t,r){this.type=t,this.target=r}function Mu(t,r){this.type="renderFrameError",this.nativeError=t,this.currentTime=r}function Nu(t){this.type="configError",this.nativeError=t}function ty(t,r){this.type=t,this.nativeError=r}var ge=function(){var t=0;return function(){return t+=1,St+"__lottie_element_"+t}}();function jn(t,r,i){var n,d,c,u,T,f,I,L;switch(u=Math.floor(t*6),T=t*6-u,f=i*(1-r),I=i*(1-T*r),L=i*(1-(1-T)*r),u%6){case 0:n=i,d=L,c=f;break;case 1:n=I,d=i,c=f;break;case 2:n=f,d=i,c=L;break;case 3:n=f,d=I,c=i;break;case 4:n=L,d=f,c=i;break;case 5:n=i,d=f,c=I;break;default:break}return[n,d,c]}function Wn(t,r,i){var n=Math.max(t,r,i),d=Math.min(t,r,i),c=n-d,u,T=n===0?0:c/n,f=n/255;switch(n){case d:u=0;break;case t:u=r-i+c*(r<i?6:0),u/=6*c;break;case r:u=i-t+c*2,u/=6*c;break;case i:u=t-r+c*4,u/=6*c;break;default:break}return[u,T,f]}function td(t,r){var i=Wn(t[0]*255,t[1]*255,t[2]*255);return i[1]+=r,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),jn(i[0],i[1],i[2])}function ed(t,r){var i=Wn(t[0]*255,t[1]*255,t[2]*255);return i[2]+=r,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),jn(i[0],i[1],i[2])}function rd(t,r){var i=Wn(t[0]*255,t[1]*255,t[2]*255);return i[0]+=r/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),jn(i[0],i[1],i[2])}var ey=function(){var t=[],r,i;for(r=0;r<256;r+=1)i=r.toString(16),t[r]=i.length===1?"0"+i:i;return function(n,d,c){return n<0&&(n=0),d<0&&(d=0),c<0&&(c=0),"#"+t[n]+t[d]+t[c]}}(),Ru=function(r){bt=!!r},Ou=function(){return bt},Pu=function(r){vt=r},Js=function(){return vt},ry=function(r){yt=r},id=function(){return yt},Qs=function(r){Ye=r},Bo=function(){return Ye},Du=function(r){St=r},iy=function(){return St};function ut(t){return document.createElementNS(l,t)}function ta(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ta=function(i){return typeof i}:ta=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ta(t)}var Uo=function(){var t=1,r=[],i,n,d={onmessage:function(){},postMessage:function(M){i({data:M})}},c={postMessage:function(M){d.onmessage({data:M})}};function u(y){if(window.Worker&&window.Blob&&h()){var M=new Blob(["var _workerSelf = self; self.onmessage = ",y.toString()],{type:"text/javascript"}),O=URL.createObjectURL(M);return new Worker(O)}return i=y,d}function T(){n||(n=u(function(M){function O(){function $(K,_){var R,m,v=K.length,U,F,it,ht;for(m=0;m<v;m+=1)if(R=K[m],"ks"in R&&!R.completed){if(R.completed=!0,R.hasMask){var pt=R.masksProperties;for(F=pt.length,U=0;U<F;U+=1)if(pt[U].pt.k.i)k(pt[U].pt.k);else for(ht=pt[U].pt.k.length,it=0;it<ht;it+=1)pt[U].pt.k[it].s&&k(pt[U].pt.k[it].s[0]),pt[U].pt.k[it].e&&k(pt[U].pt.k[it].e[0])}R.ty===0?(R.layers=b(R.refId,_),$(R.layers,_)):R.ty===4?x(R.shapes):R.ty===5&&ft(R)}}function w(K,_){if(K){var R=0,m=K.length;for(R=0;R<m;R+=1)K[R].t===1&&(K[R].data.layers=b(K[R].data.refId,_),$(K[R].data.layers,_))}}function S(K,_){for(var R=0,m=_.length;R<m;){if(_[R].id===K)return _[R];R+=1}return null}function b(K,_){var R=S(K,_);return R?R.layers.__used?JSON.parse(JSON.stringify(R.layers)):(R.layers.__used=!0,R.layers):null}function x(K){var _,R=K.length,m,v;for(_=R-1;_>=0;_-=1)if(K[_].ty==="sh")if(K[_].ks.k.i)k(K[_].ks.k);else for(v=K[_].ks.k.length,m=0;m<v;m+=1)K[_].ks.k[m].s&&k(K[_].ks.k[m].s[0]),K[_].ks.k[m].e&&k(K[_].ks.k[m].e[0]);else K[_].ty==="gr"&&x(K[_].it)}function k(K){var _,R=K.i.length;for(_=0;_<R;_+=1)K.i[_][0]+=K.v[_][0],K.i[_][1]+=K.v[_][1],K.o[_][0]+=K.v[_][0],K.o[_][1]+=K.v[_][1]}function P(K,_){var R=_?_.split("."):[100,100,100];return K[0]>R[0]?!0:R[0]>K[0]?!1:K[1]>R[1]?!0:R[1]>K[1]?!1:K[2]>R[2]?!0:R[2]>K[2]?!1:null}var V=function(){var K=[4,4,14];function _(m){var v=m.t.d;m.t.d={k:[{s:v,t:0}]}}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===5&&_(m[v])}return function(m){if(P(K,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),H=function(){var K=[4,7,99];return function(_){if(_.chars&&!P(K,_.v)){var R,m=_.chars.length;for(R=0;R<m;R+=1){var v=_.chars[R];v.data&&v.data.shapes&&(x(v.data.shapes),v.data.ip=0,v.data.op=99999,v.data.st=0,v.data.sr=1,v.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[R].t||(v.data.shapes.push({ty:"no"}),v.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"})))}}}}(),Z=function(){var K=[5,7,15];function _(m){var v=m.t.p;typeof v.a=="number"&&(v.a={a:0,k:v.a}),typeof v.p=="number"&&(v.p={a:0,k:v.p}),typeof v.r=="number"&&(v.r={a:0,k:v.r})}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===5&&_(m[v])}return function(m){if(P(K,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),mt=function(){var K=[4,1,9];function _(m){var v,U=m.length,F,it;for(v=0;v<U;v+=1)if(m[v].ty==="gr")_(m[v].it);else if(m[v].ty==="fl"||m[v].ty==="st")if(m[v].c.k&&m[v].c.k[0].i)for(it=m[v].c.k.length,F=0;F<it;F+=1)m[v].c.k[F].s&&(m[v].c.k[F].s[0]/=255,m[v].c.k[F].s[1]/=255,m[v].c.k[F].s[2]/=255,m[v].c.k[F].s[3]/=255),m[v].c.k[F].e&&(m[v].c.k[F].e[0]/=255,m[v].c.k[F].e[1]/=255,m[v].c.k[F].e[2]/=255,m[v].c.k[F].e[3]/=255);else m[v].c.k[0]/=255,m[v].c.k[1]/=255,m[v].c.k[2]/=255,m[v].c.k[3]/=255}function R(m){var v,U=m.length;for(v=0;v<U;v+=1)m[v].ty===4&&_(m[v].shapes)}return function(m){if(P(K,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}(),at=function(){var K=[4,4,18];function _(m){var v,U=m.length,F,it;for(v=U-1;v>=0;v-=1)if(m[v].ty==="sh")if(m[v].ks.k.i)m[v].ks.k.c=m[v].closed;else for(it=m[v].ks.k.length,F=0;F<it;F+=1)m[v].ks.k[F].s&&(m[v].ks.k[F].s[0].c=m[v].closed),m[v].ks.k[F].e&&(m[v].ks.k[F].e[0].c=m[v].closed);else m[v].ty==="gr"&&_(m[v].it)}function R(m){var v,U,F=m.length,it,ht,pt,It;for(U=0;U<F;U+=1){if(v=m[U],v.hasMask){var kt=v.masksProperties;for(ht=kt.length,it=0;it<ht;it+=1)if(kt[it].pt.k.i)kt[it].pt.k.c=kt[it].cl;else for(It=kt[it].pt.k.length,pt=0;pt<It;pt+=1)kt[it].pt.k[pt].s&&(kt[it].pt.k[pt].s[0].c=kt[it].cl),kt[it].pt.k[pt].e&&(kt[it].pt.k[pt].e[0].c=kt[it].cl)}v.ty===4&&_(v.shapes)}}return function(m){if(P(K,m.v)&&(R(m.layers),m.assets)){var v,U=m.assets.length;for(v=0;v<U;v+=1)m.assets[v].layers&&R(m.assets[v].layers)}}}();function Q(K){K.__complete||(mt(K),V(K),H(K),Z(K),at(K),$(K.layers,K.assets),w(K.chars,K.assets),K.__complete=!0)}function ft(K){K.t.a.length===0&&"m"in K.t.p}var ot={};return ot.completeData=Q,ot.checkColors=mt,ot.checkChars=H,ot.checkPathProperties=Z,ot.checkShapes=at,ot.completeLayers=$,ot}if(c.dataManager||(c.dataManager=O()),c.assetLoader||(c.assetLoader=function(){function $(S){var b=S.getResponseHeader("content-type");return b&&S.responseType==="json"&&b.indexOf("json")!==-1||S.response&&ta(S.response)==="object"?S.response:S.response&&typeof S.response=="string"?JSON.parse(S.response):S.responseText?JSON.parse(S.responseText):null}function w(S,b,x,k){var P,V=new XMLHttpRequest;try{V.responseType="json"}catch{}V.onreadystatechange=function(){if(V.readyState===4)if(V.status===200)P=$(V),x(P);else try{P=$(V),x(P)}catch(H){k&&k(H)}};try{V.open(["G","E","T"].join(""),S,!0)}catch{V.open(["G","E","T"].join(""),b+"/"+S,!0)}V.send()}return{load:w}}()),M.data.type==="loadAnimation")c.assetLoader.load(M.data.path,M.data.fullPath,function($){c.dataManager.completeData($),c.postMessage({id:M.data.id,payload:$,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})});else if(M.data.type==="complete"){var N=M.data.animation;c.dataManager.completeData(N),c.postMessage({id:M.data.id,payload:N,status:"success"})}else M.data.type==="loadData"&&c.assetLoader.load(M.data.path,M.data.fullPath,function($){c.postMessage({id:M.data.id,payload:$,status:"success"})},function(){c.postMessage({id:M.data.id,status:"error"})})}),n.onmessage=function(y){var M=y.data,O=M.id,N=r[O];r[O]=null,M.status==="success"?N.onComplete(M.payload):N.onError&&N.onError()})}function f(y,M){t+=1;var O="processId_"+t;return r[O]={onComplete:y,onError:M},O}function I(y,M,O){T();var N=f(M,O);n.postMessage({type:"loadAnimation",path:y,fullPath:window.location.origin+window.location.pathname,id:N})}function L(y,M,O){T();var N=f(M,O);n.postMessage({type:"loadData",path:y,fullPath:window.location.origin+window.location.pathname,id:N})}function B(y,M,O){T();var N=f(M,O);n.postMessage({type:"complete",animation:y,id:N})}return{loadAnimation:I,loadData:L,completeAnimation:B}}(),Fu=function(){var t=function(){var w=C("canvas");w.width=1,w.height=1;var S=w.getContext("2d");return S.fillStyle="rgba(0,0,0,0)",S.fillRect(0,0,1,1),w}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(w,S,b){var x="";if(w.e)x=w.p;else if(S){var k=w.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),x=S+k}else x=b,x+=w.u?w.u:"",x+=w.p;return x}function d(w){var S=0,b=setInterval((function(){var x=w.getBBox();(x.width||S>500)&&(this._imageLoaded(),clearInterval(b)),S+=1}).bind(this),50)}function c(w){var S=n(w,this.assetsPath,this.path),b=ut("image");Bt?this.testImageLoaded(b):b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){x.img=t,this._imageLoaded()}).bind(this),!1),b.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(b):this._elementHelper.appendChild(b);var x={img:b,assetData:w};return x}function u(w){var S=n(w,this.assetsPath,this.path),b=C("img");b.crossOrigin="anonymous",b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){x.img=t,this._imageLoaded()}).bind(this),!1),b.src=S;var x={img:b,assetData:w};return x}function T(w){var S={assetData:w},b=n(w,this.assetsPath,this.path);return Uo.loadData(b,(function(x){S.img=x,this._footageLoaded()}).bind(this),(function(){S.img={},this._footageLoaded()}).bind(this)),S}function f(w,S){this.imagesLoadedCb=S;var b,x=w.length;for(b=0;b<x;b+=1)w[b].layers||(!w[b].t||w[b].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(w[b]))):w[b].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(w[b]))))}function I(w){this.path=w||""}function L(w){this.assetsPath=w||""}function B(w){for(var S=0,b=this.images.length;S<b;){if(this.images[S].assetData===w)return this.images[S].img;S+=1}return null}function y(){this.imagesLoadedCb=null,this.images.length=0}function M(){return this.totalImages===this.loadedAssets}function O(){return this.totalFootages===this.loadedFootagesCount}function N(w,S){w==="svg"?(this._elementHelper=S,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function $(){this._imageLoaded=r.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=T.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return $.prototype={loadAssets:f,setAssetsPath:L,setPath:I,loadedImages:M,loadedFootages:O,destroy:y,getAsset:B,createImgData:u,createImageData:c,imageLoaded:r,footageLoaded:i,setCacheType:N},$}();function od(){}od.prototype={triggerEvent:function(r,i){if(this._cbs[r])for(var n=this._cbs[r],d=0;d<n.length;d+=1)n[d](i)},addEventListener:function(r,i){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(i),(function(){this.removeEventListener(r,i)}).bind(this)},removeEventListener:function(r,i){if(!i)this._cbs[r]=null;else if(this._cbs[r]){for(var n=0,d=this._cbs[r].length;n<d;)this._cbs[r][n]===i&&(this._cbs[r].splice(n,1),n-=1,d-=1),n+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var zu=function(){function t(r){for(var i=r.split(`\r
|
2
|
-
`),n={},d,c=0,u=0;u<i.length;u+=1)d=i[u].split(":"),d.length===2&&(n[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return n}return function(r){for(var i=[],n=0;n<r.length;n+=1){var d=r[n],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[n].cm)}catch{try{c.payload=t(r[n].cm)}catch{c.payload={name:r[n].cm}}}i.push(c)}return i}}(),$u=function(){function t(r){this.compositions.push(r)}return function(){function r(i){for(var n=0,d=this.compositions.length;n<d;){if(this.compositions[n].data&&this.compositions[n].data.nm===i)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=t,r}}(),Ho={},Vu=function(r,i){Ho[r]=i};function Bu(t){return Ho[t]}function Uu(){if(Ho.canvas)return"canvas";for(var t in Ho)if(Ho[t])return t;return""}function Go(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Go=function(i){return typeof i}:Go=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Go(t)}var dt=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=ge(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Ou(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=$u(),this.imagePreloader=new Fu,this.audioController=rt(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Fe("drawnFrame",0,0,0),this.expressionsPlugin=Js()};z([od],dt),dt.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var r="svg";t.animType?r=t.animType:t.renderer&&(r=t.renderer);var i=Bu(r);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Uo.loadAnimation(t.path,this.configAnimation,this.onSetupError))},dt.prototype.onSetupError=function(){this.trigger("data_failed")},dt.prototype.setupAnimation=function(t){Uo.completeAnimation(t,this.configAnimation)},dt.prototype.setData=function(t,r){r&&Go(r)!=="object"&&(r=JSON.parse(r));var i={wrapper:t,animationData:r},n=t.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:Uu()||"canvas";var d=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";d==="false"?i.loop=!1:d==="true"?i.loop=!0:d!==""&&(i.loop=parseInt(d,10));var c=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;i.autoplay=c!=="false",i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var u=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";u==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},dt.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var r=this.animationData.layers,i,n=r.length,d=t.layers,c,u=d.length;for(c=0;c<u;c+=1)for(i=0;i<n;){if(r[i].id===d[c].id){r[i]=d[c];break}i+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,i=0;i<n;i+=1)this.animationData.assets.push(t.assets[i]);this.animationData.__complete=!1,Uo.completeAnimation(this.animationData,this.onSegmentComplete)},dt.prototype.onSegmentComplete=function(t){this.animationData=t;var r=Js();r&&r.initExpressions(this),this.loadNextSegment()},dt.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=t.shift();this.timeCompleted=r.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Uo.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},dt.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},dt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},dt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},dt.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=zu(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},dt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},dt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=Js();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},dt.prototype.resize=function(t,r){var i=typeof t=="number"?t:void 0,n=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(i,n)},dt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},dt.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")},dt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},dt.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},dt.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},dt.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},dt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},dt.prototype.getMarkerData=function(t){for(var r,i=0;i<this.markers.length;i+=1)if(r=this.markers[i],r.payload&&r.payload.name===t)return r;return null},dt.prototype.goToAndStop=function(t,r,i){if(!(i&&this.name!==i)){var n=Number(t);if(isNaN(n)){var d=this.getMarkerData(t);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},dt.prototype.goToAndPlay=function(t,r,i){if(!(i&&this.name!==i)){var n=Number(t);if(isNaN(n)){var d=this.getMarkerData(t);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(n,r,i);this.play()}},dt.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+t*this.frameModifier,i=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(i=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,r=0)):this.setCurrentRawFrameValue(r),i&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},dt.prototype.adjustSegment=function(t,r){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},dt.prototype.setSegment=function(t,r){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>r&&(i=r-t)),this.firstFrame=t,this.totalFrames=r-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},dt.prototype.playSegments=function(t,r){if(r&&(this.segments.length=0),Go(t[0])==="object"){var i,n=t.length;for(i=0;i<n;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},dt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},dt.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},dt.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},dt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},dt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},dt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},dt.prototype.setLoop=function(t){this.loop=t},dt.prototype.setVolume=function(t,r){r&&this.name!==r||this.audioController.setVolume(t)},dt.prototype.getVolume=function(){return this.audioController.getVolume()},dt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},dt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},dt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},dt.prototype.getPath=function(){return this.path},dt.prototype.getAssetsPath=function(t){var r="";if(t.e)r=t.p;else if(this.assetsPath){var i=t.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),r=this.assetsPath+i}else r=this.path,r+=t.u?t.u:"",r+=t.p;return r},dt.prototype.getAssetData=function(t){for(var r=0,i=this.assets.length;r<i;){if(t===this.assets[r].id)return this.assets[r];r+=1}return null},dt.prototype.hide=function(){this.renderer.hide()},dt.prototype.show=function(){this.renderer.show()},dt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},dt.prototype.updateDocumentData=function(t,r,i){try{var n=this.renderer.getElementByPath(t);n.updateDocumentData(r,i)}catch{}},dt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new Fe(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new Xc(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new Xs(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new Jc(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new Qc(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Fe(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Xc(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new Xs(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Jc(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Qc(t,this))},dt.prototype.triggerRenderFrameError=function(t){var r=new Mu(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},dt.prototype.triggerConfigError=function(t){var r=new Nu(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var Gt=function(){var t={},r=[],i=0,n=0,d=0,c=!0,u=!1;function T(_){for(var R=0,m=_.target;R<n;)r[R].animation===m&&(r.splice(R,1),R-=1,n-=1,m.isPaused||B()),R+=1}function f(_,R){if(!_)return null;for(var m=0;m<n;){if(r[m].elem===_&&r[m].elem!==null)return r[m].animation;m+=1}var v=new dt;return y(v,_),v.setData(_,R),v}function I(){var _,R=r.length,m=[];for(_=0;_<R;_+=1)m.push(r[_].animation);return m}function L(){d+=1,mt()}function B(){d-=1}function y(_,R){_.addEventListener("destroy",T),_.addEventListener("_active",L),_.addEventListener("_idle",B),r.push({elem:R,animation:_}),n+=1}function M(_){var R=new dt;return y(R,null),R.setParams(_),R}function O(_,R){var m;for(m=0;m<n;m+=1)r[m].animation.setSpeed(_,R)}function N(_,R){var m;for(m=0;m<n;m+=1)r[m].animation.setDirection(_,R)}function $(_){var R;for(R=0;R<n;R+=1)r[R].animation.play(_)}function w(_){var R=_-i,m;for(m=0;m<n;m+=1)r[m].animation.advanceTime(R);i=_,d&&!u?window.requestAnimationFrame(w):c=!0}function S(_){i=_,window.requestAnimationFrame(w)}function b(_){var R;for(R=0;R<n;R+=1)r[R].animation.pause(_)}function x(_,R,m){var v;for(v=0;v<n;v+=1)r[v].animation.goToAndStop(_,R,m)}function k(_){var R;for(R=0;R<n;R+=1)r[R].animation.stop(_)}function P(_){var R;for(R=0;R<n;R+=1)r[R].animation.togglePause(_)}function V(_){var R;for(R=n-1;R>=0;R-=1)r[R].animation.destroy(_)}function H(_,R,m){var v=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=v.length;for(U=0;U<F;U+=1)m&&v[U].setAttribute("data-bm-type",m),f(v[U],_);if(R&&F===0){m||(m="svg");var it=document.getElementsByTagName("body")[0];it.innerText="";var ht=C("div");ht.style.width="100%",ht.style.height="100%",ht.setAttribute("data-bm-type",m),it.appendChild(ht),f(ht,_)}}function Z(){var _;for(_=0;_<n;_+=1)r[_].animation.resize()}function mt(){!u&&d&&c&&(window.requestAnimationFrame(S),c=!1)}function at(){u=!0}function Q(){u=!1,mt()}function ft(_,R){var m;for(m=0;m<n;m+=1)r[m].animation.setVolume(_,R)}function ot(_){var R;for(R=0;R<n;R+=1)r[R].animation.mute(_)}function K(_){var R;for(R=0;R<n;R+=1)r[R].animation.unmute(_)}return t.registerAnimation=f,t.loadAnimation=M,t.setSpeed=O,t.setDirection=N,t.play=$,t.pause=b,t.stop=k,t.togglePause=P,t.searchAnimations=H,t.resize=Z,t.goToAndStop=x,t.destroy=V,t.freeze=at,t.unfreeze=Q,t.setVolume=ft,t.mute=ot,t.unmute=K,t.getRegisteredAnimations=I,t}(),jo=function(){var t={};t.getBezierEasing=i;var r={};function i(S,b,x,k,P){var V=P||("bez_"+S+"_"+b+"_"+x+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var H=new w([S,b,x,k]);return r[V]=H,H}var n=4,d=.001,c=1e-7,u=10,T=11,f=1/(T-1),I=typeof Float32Array=="function";function L(S,b){return 1-3*b+3*S}function B(S,b){return 3*b-6*S}function y(S){return 3*S}function M(S,b,x){return((L(b,x)*S+B(b,x))*S+y(b))*S}function O(S,b,x){return 3*L(b,x)*S*S+2*B(b,x)*S+y(b)}function N(S,b,x,k,P){var V,H,Z=0;do H=b+(x-b)/2,V=M(H,k,P)-S,V>0?x=H:b=H;while(Math.abs(V)>c&&++Z<u);return H}function $(S,b,x,k){for(var P=0;P<n;++P){var V=O(b,x,k);if(V===0)return b;var H=M(b,x,k)-S;b-=H/V}return b}function w(S){this._p=S,this._mSampleValues=I?new Float32Array(T):new Array(T),this._precomputed=!1,this.get=this.get.bind(this)}return w.prototype={get:function(b){var x=this._p[0],k=this._p[1],P=this._p[2],V=this._p[3];return this._precomputed||this._precompute(),x===k&&P===V?b:b===0?0:b===1?1:M(this._getTForX(b),k,V)},_precompute:function(){var b=this._p[0],x=this._p[1],k=this._p[2],P=this._p[3];this._precomputed=!0,(b!==x||k!==P)&&this._calcSampleValues()},_calcSampleValues:function(){for(var b=this._p[0],x=this._p[2],k=0;k<T;++k)this._mSampleValues[k]=M(k*f,b,x)},_getTForX:function(b){for(var x=this._p[0],k=this._p[2],P=this._mSampleValues,V=0,H=1,Z=T-1;H!==Z&&P[H]<=b;++H)V+=f;--H;var mt=(b-P[H])/(P[H+1]-P[H]),at=V+mt*f,Q=O(at,x,k);return Q>=d?$(b,at,x,k):Q===0?at:N(b,V,V+f,x,k)}},t}(),sd=function(){function t(r){return r.concat(tt(r.length))}return{double:t}}(),ea=function(){return function(t,r,i){var n=0,d=t,c=tt(d),u={newElement:T,release:f};function T(){var I;return n?(n-=1,I=c[n]):I=r(),I}function f(I){n===d&&(c=sd.double(c),d*=2),i&&i(I),c[n]=I,n+=1}return u}}(),ad=function(){function t(){return{addedLength:0,percents:J("float32",Bo()),lengths:J("float32",Bo())}}return ea(8,t)}(),nd=function(){function t(){return{lengths:[],totalLength:0}}function r(i){var n,d=i.lengths.length;for(n=0;n<d;n+=1)ad.release(i.lengths[n]);i.lengths.length=0}return ea(8,t,r)}();function Hu(){var t=Math;function r(y,M,O,N,$,w){var S=y*N+M*$+O*w-$*N-w*y-O*M;return S>-.001&&S<.001}function i(y,M,O,N,$,w,S,b,x){if(O===0&&w===0&&x===0)return r(y,M,N,$,S,b);var k=t.sqrt(t.pow(N-y,2)+t.pow($-M,2)+t.pow(w-O,2)),P=t.sqrt(t.pow(S-y,2)+t.pow(b-M,2)+t.pow(x-O,2)),V=t.sqrt(t.pow(S-N,2)+t.pow(b-$,2)+t.pow(x-w,2)),H;return k>P?k>V?H=k-P-V:H=V-P-k:V>P?H=V-P-k:H=P-k-V,H>-1e-4&&H<1e-4}var n=function(){return function(y,M,O,N){var $=Bo(),w,S,b,x,k,P=0,V,H=[],Z=[],mt=ad.newElement();for(b=O.length,w=0;w<$;w+=1){for(k=w/($-1),V=0,S=0;S<b;S+=1)x=Ft(1-k,3)*y[S]+3*Ft(1-k,2)*k*O[S]+3*(1-k)*Ft(k,2)*N[S]+Ft(k,3)*M[S],H[S]=x,Z[S]!==null&&(V+=Ft(H[S]-Z[S],2)),Z[S]=H[S];V&&(V=ve(V),P+=V),mt.percents[w]=k,mt.lengths[w]=P}return mt.addedLength=P,mt}}();function d(y){var M=nd.newElement(),O=y.c,N=y.v,$=y.o,w=y.i,S,b=y._length,x=M.lengths,k=0;for(S=0;S<b-1;S+=1)x[S]=n(N[S],N[S+1],$[S],w[S+1]),k+=x[S].addedLength;return O&&b&&(x[S]=n(N[S],N[0],$[S],w[0]),k+=x[S].addedLength),M.totalLength=k,M}function c(y){this.segmentLength=0,this.points=new Array(y)}function u(y,M){this.partialLength=y,this.point=M}var T=function(){var y={};return function(M,O,N,$){var w=(M[0]+"_"+M[1]+"_"+O[0]+"_"+O[1]+"_"+N[0]+"_"+N[1]+"_"+$[0]+"_"+$[1]).replace(/\./g,"p");if(!y[w]){var S=Bo(),b,x,k,P,V,H=0,Z,mt,at=null;M.length===2&&(M[0]!==O[0]||M[1]!==O[1])&&r(M[0],M[1],O[0],O[1],M[0]+N[0],M[1]+N[1])&&r(M[0],M[1],O[0],O[1],O[0]+$[0],O[1]+$[1])&&(S=2);var Q=new c(S);for(k=N.length,b=0;b<S;b+=1){for(mt=tt(k),V=b/(S-1),Z=0,x=0;x<k;x+=1)P=Ft(1-V,3)*M[x]+3*Ft(1-V,2)*V*(M[x]+N[x])+3*(1-V)*Ft(V,2)*(O[x]+$[x])+Ft(V,3)*O[x],mt[x]=P,at!==null&&(Z+=Ft(mt[x]-at[x],2));Z=ve(Z),H+=Z,Q.points[b]=new u(Z,mt),at=mt}Q.segmentLength=H,y[w]=Q}return y[w]}}();function f(y,M){var O=M.percents,N=M.lengths,$=O.length,w=te(($-1)*y),S=y*M.addedLength,b=0;if(w===$-1||w===0||S===N[w])return O[w];for(var x=N[w]>S?-1:1,k=!0;k;)if(N[w]<=S&&N[w+1]>S?(b=(S-N[w])/(N[w+1]-N[w]),k=!1):w+=x,w<0||w>=$-1){if(w===$-1)return O[w];k=!1}return O[w]+(O[w+1]-O[w])*b}function I(y,M,O,N,$,w){var S=f($,w),b=1-S,x=t.round((b*b*b*y[0]+(S*b*b+b*S*b+b*b*S)*O[0]+(S*S*b+b*S*S+S*b*S)*N[0]+S*S*S*M[0])*1e3)/1e3,k=t.round((b*b*b*y[1]+(S*b*b+b*S*b+b*b*S)*O[1]+(S*S*b+b*S*S+S*b*S)*N[1]+S*S*S*M[1])*1e3)/1e3;return[x,k]}var L=J("float32",8);function B(y,M,O,N,$,w,S){$<0?$=0:$>1&&($=1);var b=f($,S);w=w>1?1:w;var x=f(w,S),k,P=y.length,V=1-b,H=1-x,Z=V*V*V,mt=b*V*V*3,at=b*b*V*3,Q=b*b*b,ft=V*V*H,ot=b*V*H+V*b*H+V*V*x,K=b*b*H+V*b*x+b*V*x,_=b*b*x,R=V*H*H,m=b*H*H+V*x*H+V*H*x,v=b*x*H+V*x*x+b*H*x,U=b*x*x,F=H*H*H,it=x*H*H+H*x*H+H*H*x,ht=x*x*H+H*x*x+x*H*x,pt=x*x*x;for(k=0;k<P;k+=1)L[k*4]=t.round((Z*y[k]+mt*O[k]+at*N[k]+Q*M[k])*1e3)/1e3,L[k*4+1]=t.round((ft*y[k]+ot*O[k]+K*N[k]+_*M[k])*1e3)/1e3,L[k*4+2]=t.round((R*y[k]+m*O[k]+v*N[k]+U*M[k])*1e3)/1e3,L[k*4+3]=t.round((F*y[k]+it*O[k]+ht*N[k]+pt*M[k])*1e3)/1e3;return L}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:T,pointOnLine2D:r,pointOnLine3D:i}}var or=Hu(),li=s,ld=Math.abs;function cd(t,r){var i=this.offsetTime,n;this.propType==="multidimensional"&&(n=J("float32",this.pv.length));for(var d=r.lastIndex,c=d,u=this.keyframes.length-1,T=!0,f,I,L;T;){if(f=this.keyframes[c],I=this.keyframes[c+1],c===u-1&&t>=I.t-i){f.h&&(f=I),d=0;break}if(I.t-i>t){d=c;break}c<u-1?c+=1:(d=0,T=!1)}L=this.keyframesMetadata[c]||{};var B,y,M,O,N,$,w=I.t-i,S=f.t-i,b;if(f.to){L.bezierData||(L.bezierData=or.buildBezierData(f.s,I.s||f.e,f.to,f.ti));var x=L.bezierData;if(t>=w||t<S){var k=t>=w?x.points.length-1:0;for(y=x.points[k].point.length,B=0;B<y;B+=1)n[B]=x.points[k].point[B]}else{L.__fnct?$=L.__fnct:($=jo.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y,f.n).get,L.__fnct=$),M=$((t-S)/(w-S));var P=x.segmentLength*M,V,H=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(N=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastPoint:0,T=!0,O=x.points.length;T;){if(H+=x.points[N].partialLength,P===0||M===0||N===x.points.length-1){for(y=x.points[N].point.length,B=0;B<y;B+=1)n[B]=x.points[N].point[B];break}else if(P>=H&&P<H+x.points[N+1].partialLength){for(V=(P-H)/x.points[N+1].partialLength,y=x.points[N].point.length,B=0;B<y;B+=1)n[B]=x.points[N].point[B]+(x.points[N+1].point[B]-x.points[N].point[B])*V;break}N<O-1?N+=1:T=!1}r._lastPoint=N,r._lastAddedLength=H-x.points[N].partialLength,r._lastKeyframeIndex=c}}else{var Z,mt,at,Q,ft;if(u=f.s.length,b=I.s||f.e,this.sh&&f.h!==1)if(t>=w)n[0]=b[0],n[1]=b[1],n[2]=b[2];else if(t<=S)n[0]=f.s[0],n[1]=f.s[1],n[2]=f.s[2];else{var ot=dd(f.s),K=dd(b),_=(t-S)/(w-S);ju(n,Gu(ot,K,_))}else for(c=0;c<u;c+=1)f.h!==1&&(t>=w?M=1:t<S?M=0:(f.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[c]?$=L.__fnct[c]:(Z=f.o.x[c]===void 0?f.o.x[0]:f.o.x[c],mt=f.o.y[c]===void 0?f.o.y[0]:f.o.y[c],at=f.i.x[c]===void 0?f.i.x[0]:f.i.x[c],Q=f.i.y[c]===void 0?f.i.y[0]:f.i.y[c],$=jo.getBezierEasing(Z,mt,at,Q).get,L.__fnct[c]=$)):L.__fnct?$=L.__fnct:(Z=f.o.x,mt=f.o.y,at=f.i.x,Q=f.i.y,$=jo.getBezierEasing(Z,mt,at,Q).get,f.keyframeMetadata=$),M=$((t-S)/(w-S)))),b=I.s||f.e,ft=f.h===1?f.s[c]:f.s[c]+(b[c]-f.s[c])*M,this.propType==="multidimensional"?n[c]=ft:n=ft}return r.lastIndex=d,n}function Gu(t,r,i){var n=[],d=t[0],c=t[1],u=t[2],T=t[3],f=r[0],I=r[1],L=r[2],B=r[3],y,M,O,N,$;return M=d*f+c*I+u*L+T*B,M<0&&(M=-M,f=-f,I=-I,L=-L,B=-B),1-M>1e-6?(y=Math.acos(M),O=Math.sin(y),N=Math.sin((1-i)*y)/O,$=Math.sin(i*y)/O):(N=1-i,$=i),n[0]=N*d+$*f,n[1]=N*c+$*I,n[2]=N*u+$*L,n[3]=N*T+$*B,n}function ju(t,r){var i=r[0],n=r[1],d=r[2],c=r[3],u=Math.atan2(2*n*c-2*i*d,1-2*n*n-2*d*d),T=Math.asin(2*i*n+2*d*c),f=Math.atan2(2*i*c-2*n*d,1-2*i*i-2*d*d);t[0]=u/xt,t[1]=T/xt,t[2]=f/xt}function dd(t){var r=t[0]*xt,i=t[1]*xt,n=t[2]*xt,d=Math.cos(r/2),c=Math.cos(i/2),u=Math.cos(n/2),T=Math.sin(r/2),f=Math.sin(i/2),I=Math.sin(n/2),L=d*c*u-T*f*I,B=T*f*u+d*c*I,y=T*c*u+d*f*I,M=d*f*u-T*c*I;return[B,y,M,L]}function hd(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==li&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(t,this._caching);this.pv=n}return this._caching.lastFrame=t,this.pv}function ra(t){var r;if(this.propType==="unidimensional")r=t*this.mult,ld(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,n=this.v.length;i<n;)r=t[i]*this.mult,ld(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function ia(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,r=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<r;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function oa(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function Wu(t,r,i,n){this.propType="unidimensional",this.mult=i||1,this.data=r,this.v=i?r.k*i:r.k,this.pv=r.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=ia,this.setVValue=ra,this.addEffect=oa}function Yu(t,r,i,n){this.propType="multidimensional",this.mult=i||1,this.data=r,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,c=r.k.length;for(this.v=J("float32",c),this.pv=J("float32",c),this.vel=J("float32",c),d=0;d<c;d+=1)this.v[d]=r.k[d]*this.mult,this.pv[d]=r.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=ia,this.setVValue=ra,this.addEffect=oa}function qu(t,r,i,n){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:li,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.v=li,this.pv=li,this._isFirstFrame=!0,this.getValue=ia,this.setVValue=ra,this.interpolateValue=cd,this.effectsSequence=[hd.bind(this)],this.addEffect=oa}function Ku(t,r,i,n){this.propType="multidimensional";var d,c=r.k.length,u,T,f,I;for(d=0;d<c-1;d+=1)r.k[d].to&&r.k[d].s&&r.k[d+1]&&r.k[d+1].s&&(u=r.k[d].s,T=r.k[d+1].s,f=r.k[d].to,I=r.k[d].ti,(u.length===2&&!(u[0]===T[0]&&u[1]===T[1])&&or.pointOnLine2D(u[0],u[1],T[0],T[1],u[0]+f[0],u[1]+f[1])&&or.pointOnLine2D(u[0],u[1],T[0],T[1],T[0]+I[0],T[1]+I[1])||u.length===3&&!(u[0]===T[0]&&u[1]===T[1]&&u[2]===T[2])&&or.pointOnLine3D(u[0],u[1],u[2],T[0],T[1],T[2],u[0]+f[0],u[1]+f[1],u[2]+f[2])&&or.pointOnLine3D(u[0],u[1],u[2],T[0],T[1],T[2],T[0]+I[0],T[1]+I[1],T[2]+I[2]))&&(r.k[d].to=null,r.k[d].ti=null),u[0]===T[0]&&u[1]===T[1]&&f[0]===0&&f[1]===0&&I[0]===0&&I[1]===0&&(u.length===2||u[2]===T[2]&&f[2]===0&&I[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[hd.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.getValue=ia,this.setVValue=ra,this.interpolateValue=cd,this.frameId=-1;var L=r.k[0].s.length;for(this.v=J("float32",L),this.pv=J("float32",L),d=0;d<L;d+=1)this.v[d]=li,this.pv[d]=li;this._caching={lastFrame:li,lastIndex:0,value:J("float32",L)},this.addEffect=oa}var et=function(){function t(i,n,d,c,u){n.sid&&(n=i.globalData.slotManager.getProp(n));var T;if(!n.k.length)T=new Wu(i,n,c,u);else if(typeof n.k[0]=="number")T=new Yu(i,n,c,u);else switch(d){case 0:T=new qu(i,n,c,u);break;case 1:T=new Ku(i,n,c,u);break;default:break}return T.effectsSequence.length&&u.addDynamicProperty(T),T}var r={getProp:t};return r}();function ee(){}ee.prototype={addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&(this.dynamicProperties.push(r),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(r){this.container=r,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var ci=function(){function t(){return J("float32",2)}return ea(8,t)}();function pr(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}pr.prototype.setPathData=function(t,r){this.c=t,this.setLength(r);for(var i=0;i<r;)this.v[i]=ci.newElement(),this.o[i]=ci.newElement(),this.i[i]=ci.newElement(),i+=1},pr.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},pr.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},pr.prototype.setXYAt=function(t,r,i,n,d){var c;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[n]||c[n]&&!d)&&(c[n]=ci.newElement()),c[n][0]=t,c[n][1]=r},pr.prototype.setTripleAt=function(t,r,i,n,d,c,u,T){this.setXYAt(t,r,"v",u,T),this.setXYAt(i,n,"o",u,T),this.setXYAt(d,c,"i",u,T)},pr.prototype.reverse=function(){var t=new pr;t.setPathData(this.c,this._length);var r=this.v,i=this.o,n=this.i,d=0;this.c&&(t.setTripleAt(r[0][0],r[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),d=1);var c=this._length-1,u=this._length,T;for(T=d;T<u;T+=1)t.setTripleAt(r[c][0],r[c][1],n[c][0],n[c][1],i[c][0],i[c][1],T,!1),c-=1;return t},pr.prototype.length=function(){return this._length};var se=function(){function t(){return new pr}function r(d){var c=d._length,u;for(u=0;u<c;u+=1)ci.release(d.v[u]),ci.release(d.i[u]),ci.release(d.o[u]),d.v[u]=null,d.i[u]=null,d.o[u]=null;d._length=0,d.c=!1}function i(d){var c=n.newElement(),u,T=d._length===void 0?d.v.length:d._length;for(c.setLength(T),c.c=d.c,u=0;u<T;u+=1)c.setTripleAt(d.v[u][0],d.v[u][1],d.o[u][0],d.o[u][1],d.i[u][0],d.i[u][1],u);return c}var n=ea(4,t,r);return n.clone=i,n}();function Yn(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}Yn.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},Yn.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)se.release(this.shapes[t]);this._length=0};var Ki=function(){var t={newShapeCollection:d,release:c},r=0,i=4,n=tt(i);function d(){var u;return r?(r-=1,u=n[r]):u=new Yn,u}function c(u){var T,f=u._length;for(T=0;T<f;T+=1)se.release(u.shapes[T]);u._length=0,r===i&&(n=sd.double(n),i*=2),n[r]=u,r+=1}return t}(),sa=function(){var t=-999999;function r(w,S,b){var x=b.lastIndex,k,P,V,H,Z,mt,at,Q,ft,ot=this.keyframes;if(w<ot[0].t-this.offsetTime)k=ot[0].s[0],V=!0,x=0;else if(w>=ot[ot.length-1].t-this.offsetTime)k=ot[ot.length-1].s?ot[ot.length-1].s[0]:ot[ot.length-2].e[0],V=!0;else{for(var K=x,_=ot.length-1,R=!0,m,v,U;R&&(m=ot[K],v=ot[K+1],!(v.t-this.offsetTime>w));)K<_-1?K+=1:R=!1;if(U=this.keyframesMetadata[K]||{},V=m.h===1,x=K,!V){if(w>=v.t-this.offsetTime)Q=1;else if(w<m.t-this.offsetTime)Q=0;else{var F;U.__fnct?F=U.__fnct:(F=jo.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,U.__fnct=F),Q=F((w-(m.t-this.offsetTime))/(v.t-this.offsetTime-(m.t-this.offsetTime)))}P=v.s?v.s[0]:m.e[0]}k=m.s[0]}for(mt=S._length,at=k.i[0].length,b.lastIndex=x,H=0;H<mt;H+=1)for(Z=0;Z<at;Z+=1)ft=V?k.i[H][Z]:k.i[H][Z]+(P.i[H][Z]-k.i[H][Z])*Q,S.i[H][Z]=ft,ft=V?k.o[H][Z]:k.o[H][Z]+(P.o[H][Z]-k.o[H][Z])*Q,S.o[H][Z]=ft,ft=V?k.v[H][Z]:k.v[H][Z]+(P.v[H][Z]-k.v[H][Z])*Q,S.v[H][Z]=ft}function i(){var w=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,b=this.keyframes[this.keyframes.length-1].t-this.offsetTime,x=this._caching.lastFrame;return x!==t&&(x<S&&w<S||x>b&&w>b)||(this._caching.lastIndex=x<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching)),this._caching.lastFrame=w,this.pv}function n(){this.paths=this.localShapeCollection}function d(w,S){if(w._length!==S._length||w.c!==S.c)return!1;var b,x=w._length;for(b=0;b<x;b+=1)if(w.v[b][0]!==S.v[b][0]||w.v[b][1]!==S.v[b][1]||w.o[b][0]!==S.o[b][0]||w.o[b][1]!==S.o[b][1]||w.i[b][0]!==S.i[b][0]||w.i[b][1]!==S.i[b][1])return!1;return!0}function c(w){d(this.v,w)||(this.v=se.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function u(){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 w;this.kf?w=this.pv:this.data.ks?w=this.data.ks.k:w=this.data.pt.k;var S,b=this.effectsSequence.length;for(S=0;S<b;S+=1)w=this.effectsSequence[S](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function T(w,S,b){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=S,this.k=!1,this.kf=!1,this._mdf=!1;var x=b===3?S.pt.k:S.ks.k;this.v=se.clone(x),this.pv=se.clone(this.v),this.localShapeCollection=Ki.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function f(w){this.effectsSequence.push(w),this.container.addDynamicProperty(this)}T.prototype.interpolateShape=r,T.prototype.getValue=u,T.prototype.setVValue=c,T.prototype.addEffect=f;function I(w,S,b){this.propType="shape",this.comp=w.comp,this.elem=w,this.container=w,this.offsetTime=w.data.st,this.keyframes=b===3?S.pt.k:S.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var x=this.keyframes[0].s[0].i.length;this.v=se.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,x),this.pv=se.clone(this.v),this.localShapeCollection=Ki.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}I.prototype.getValue=u,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=f;var L=function(){var w=he;function S(b,x){this.v=se.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ki.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=x.d,this.elem=b,this.comp=b.comp,this.frameId=-1,this.initDynamicPropertyContainer(b),this.p=et.getProp(b,x.p,1,0,this),this.s=et.getProp(b,x.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return S.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var x=this.p.v[0],k=this.p.v[1],P=this.s.v[0]/2,V=this.s.v[1]/2,H=this.d!==3,Z=this.v;Z.v[0][0]=x,Z.v[0][1]=k-V,Z.v[1][0]=H?x+P:x-P,Z.v[1][1]=k,Z.v[2][0]=x,Z.v[2][1]=k+V,Z.v[3][0]=H?x-P:x+P,Z.v[3][1]=k,Z.i[0][0]=H?x-P*w:x+P*w,Z.i[0][1]=k-V,Z.i[1][0]=H?x+P:x-P,Z.i[1][1]=k-V*w,Z.i[2][0]=H?x+P*w:x-P*w,Z.i[2][1]=k+V,Z.i[3][0]=H?x-P:x+P,Z.i[3][1]=k+V*w,Z.o[0][0]=H?x+P*w:x-P*w,Z.o[0][1]=k-V,Z.o[1][0]=H?x+P:x-P,Z.o[1][1]=k+V*w,Z.o[2][0]=H?x-P*w:x+P*w,Z.o[2][1]=k+V,Z.o[3][0]=H?x-P:x+P,Z.o[3][1]=k-V*w}},z([ee],S),S}(),B=function(){function w(S,b){this.v=se.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=b,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),b.sy===1?(this.ir=et.getProp(S,b.ir,0,0,this),this.is=et.getProp(S,b.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=et.getProp(S,b.pt,0,0,this),this.p=et.getProp(S,b.p,1,0,this),this.r=et.getProp(S,b.r,0,xt,this),this.or=et.getProp(S,b.or,0,0,this),this.os=et.getProp(S,b.os,0,.01,this),this.localShapeCollection=Ki.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return w.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var b=Math.floor(this.pt.v)*2,x=Math.PI*2/b,k=!0,P=this.or.v,V=this.ir.v,H=this.os.v,Z=this.is.v,mt=2*Math.PI*P/(b*2),at=2*Math.PI*V/(b*2),Q,ft,ot,K,_=-Math.PI/2;_+=this.r.v;var R=this.data.d===3?-1:1;for(this.v._length=0,Q=0;Q<b;Q+=1){ft=k?P:V,ot=k?H:Z,K=k?mt:at;var m=ft*Math.cos(_),v=ft*Math.sin(_),U=m===0&&v===0?0:v/Math.sqrt(m*m+v*v),F=m===0&&v===0?0:-m/Math.sqrt(m*m+v*v);m+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(m,v,m-U*K*ot*R,v-F*K*ot*R,m+U*K*ot*R,v+F*K*ot*R,Q,!0),k=!k,_+=x*R}},convertPolygonToPath:function(){var b=Math.floor(this.pt.v),x=Math.PI*2/b,k=this.or.v,P=this.os.v,V=2*Math.PI*k/(b*4),H,Z=-Math.PI*.5,mt=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,H=0;H<b;H+=1){var at=k*Math.cos(Z),Q=k*Math.sin(Z),ft=at===0&&Q===0?0:Q/Math.sqrt(at*at+Q*Q),ot=at===0&&Q===0?0:-at/Math.sqrt(at*at+Q*Q);at+=+this.p.v[0],Q+=+this.p.v[1],this.v.setTripleAt(at,Q,at-ft*V*P*mt,Q-ot*V*P*mt,at+ft*V*P*mt,Q+ot*V*P*mt,H,!0),Z+=x*mt}this.paths.length=0,this.paths[0]=this.v}},z([ee],w),w}(),y=function(){function w(S,b){this.v=se.newElement(),this.v.c=!0,this.localShapeCollection=Ki.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),this.p=et.getProp(S,b.p,1,0,this),this.s=et.getProp(S,b.s,1,0,this),this.r=et.getProp(S,b.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return w.prototype={convertRectToPath:function(){var b=this.p.v[0],x=this.p.v[1],k=this.s.v[0]/2,P=this.s.v[1]/2,V=we(k,P,this.r.v),H=V*(1-he);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(b+k,x-P+V,b+k,x-P+V,b+k,x-P+H,0,!0),this.v.setTripleAt(b+k,x+P-V,b+k,x+P-H,b+k,x+P-V,1,!0),V!==0?(this.v.setTripleAt(b+k-V,x+P,b+k-V,x+P,b+k-H,x+P,2,!0),this.v.setTripleAt(b-k+V,x+P,b-k+H,x+P,b-k+V,x+P,3,!0),this.v.setTripleAt(b-k,x+P-V,b-k,x+P-V,b-k,x+P-H,4,!0),this.v.setTripleAt(b-k,x-P+V,b-k,x-P+H,b-k,x-P+V,5,!0),this.v.setTripleAt(b-k+V,x-P,b-k+V,x-P,b-k+H,x-P,6,!0),this.v.setTripleAt(b+k-V,x-P,b+k-H,x-P,b+k-V,x-P,7,!0)):(this.v.setTripleAt(b-k,x+P,b-k+H,x+P,b-k,x+P,2),this.v.setTripleAt(b-k,x-P,b-k,x-P+H,b-k,x-P,3))):(this.v.setTripleAt(b+k,x-P+V,b+k,x-P+H,b+k,x-P+V,0,!0),V!==0?(this.v.setTripleAt(b+k-V,x-P,b+k-V,x-P,b+k-H,x-P,1,!0),this.v.setTripleAt(b-k+V,x-P,b-k+H,x-P,b-k+V,x-P,2,!0),this.v.setTripleAt(b-k,x-P+V,b-k,x-P+V,b-k,x-P+H,3,!0),this.v.setTripleAt(b-k,x+P-V,b-k,x+P-H,b-k,x+P-V,4,!0),this.v.setTripleAt(b-k+V,x+P,b-k+V,x+P,b-k+H,x+P,5,!0),this.v.setTripleAt(b+k-V,x+P,b+k-H,x+P,b+k-V,x+P,6,!0),this.v.setTripleAt(b+k,x+P-V,b+k,x+P-V,b+k,x+P-H,7,!0)):(this.v.setTripleAt(b-k,x-P,b-k+H,x-P,b-k,x-P,1,!0),this.v.setTripleAt(b-k,x+P,b-k,x+P-H,b-k,x+P,2,!0),this.v.setTripleAt(b+k,x+P,b+k-H,x+P,b+k,x+P,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},z([ee],w),w}();function M(w,S,b){var x;if(b===3||b===4){var k=b===3?S.pt:S.ks,P=k.k;P.length?x=new I(w,S,b):x=new T(w,S,b)}else b===5?x=new y(w,S):b===6?x=new L(w,S):b===7&&(x=new B(w,S));return x.k&&w.addDynamicProperty(x),x}function O(){return T}function N(){return I}var $={};return $.getShapeProp=M,$.getConstructorFunction=O,$.getKeyframedConstructorFunction=N,$}();var ae=function(){var t=Math.cos,r=Math.sin,i=Math.tan,n=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,-U,0,0,U,v,0,0,0,0,1,0,0,0,0,1)}function u(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(1,0,0,0,0,v,-U,0,0,U,v,0,0,0,0,1)}function T(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,0,U,0,0,1,0,0,-U,0,v,0,0,0,0,1)}function f(m){if(m===0)return this;var v=t(m),U=r(m);return this._t(v,-U,0,0,U,v,0,0,0,0,1,0,0,0,0,1)}function I(m,v){return this._t(1,v,m,1,0,0)}function L(m,v){return this.shear(i(m),i(v))}function B(m,v){var U=t(v),F=r(v);return this._t(U,F,0,0,-F,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(m),1,0,0,0,0,1,0,0,0,0,1)._t(U,-F,0,0,F,U,0,0,0,0,1,0,0,0,0,1)}function y(m,v,U){return!U&&U!==0&&(U=1),m===1&&v===1&&U===1?this:this._t(m,0,0,0,0,v,0,0,0,0,U,0,0,0,0,1)}function M(m,v,U,F,it,ht,pt,It,kt,jt,ye,ar,Ee,re,Le,Lt){return this.props[0]=m,this.props[1]=v,this.props[2]=U,this.props[3]=F,this.props[4]=it,this.props[5]=ht,this.props[6]=pt,this.props[7]=It,this.props[8]=kt,this.props[9]=jt,this.props[10]=ye,this.props[11]=ar,this.props[12]=Ee,this.props[13]=re,this.props[14]=Le,this.props[15]=Lt,this}function O(m,v,U){return U=U||0,m!==0||v!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,m,v,U,1):this}function N(m,v,U,F,it,ht,pt,It,kt,jt,ye,ar,Ee,re,Le,Lt){var st=this.props;if(m===1&&v===0&&U===0&&F===0&&it===0&&ht===1&&pt===0&&It===0&&kt===0&&jt===0&&ye===1&&ar===0)return st[12]=st[12]*m+st[15]*Ee,st[13]=st[13]*ht+st[15]*re,st[14]=st[14]*ye+st[15]*Le,st[15]*=Lt,this._identityCalculated=!1,this;var vr=st[0],jr=st[1],gr=st[2],nr=st[3],br=st[4],yr=st[5],Te=st[6],Wr=st[7],Yr=st[8],Ze=st[9],qr=st[10],Xe=st[11],pi=st[12],ua=st[13],fa=st[14],va=st[15];return st[0]=vr*m+jr*it+gr*kt+nr*Ee,st[1]=vr*v+jr*ht+gr*jt+nr*re,st[2]=vr*U+jr*pt+gr*ye+nr*Le,st[3]=vr*F+jr*It+gr*ar+nr*Lt,st[4]=br*m+yr*it+Te*kt+Wr*Ee,st[5]=br*v+yr*ht+Te*jt+Wr*re,st[6]=br*U+yr*pt+Te*ye+Wr*Le,st[7]=br*F+yr*It+Te*ar+Wr*Lt,st[8]=Yr*m+Ze*it+qr*kt+Xe*Ee,st[9]=Yr*v+Ze*ht+qr*jt+Xe*re,st[10]=Yr*U+Ze*pt+qr*ye+Xe*Le,st[11]=Yr*F+Ze*It+qr*ar+Xe*Lt,st[12]=pi*m+ua*it+fa*kt+va*Ee,st[13]=pi*v+ua*ht+fa*jt+va*re,st[14]=pi*U+ua*pt+fa*ye+va*Le,st[15]=pi*F+ua*It+fa*ar+va*Lt,this._identityCalculated=!1,this}function $(m){var v=m.props;return this.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15])}function w(){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 S(m){for(var v=0;v<16;){if(m.props[v]!==this.props[v])return!1;v+=1}return!0}function b(m){var v;for(v=0;v<16;v+=1)m.props[v]=this.props[v];return m}function x(m){var v;for(v=0;v<16;v+=1)this.props[v]=m[v]}function k(m,v,U){return{x:m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12],y:m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13],z:m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]}}function P(m,v,U){return m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12]}function V(m,v,U){return m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13]}function H(m,v,U){return m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]}function Z(){var m=this.props[0]*this.props[5]-this.props[1]*this.props[4],v=this.props[5]/m,U=-this.props[1]/m,F=-this.props[4]/m,it=this.props[0]/m,ht=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/m,pt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/m,It=new ae;return It.props[0]=v,It.props[1]=U,It.props[4]=F,It.props[5]=it,It.props[12]=ht,It.props[13]=pt,It}function mt(m){var v=this.getInverseMatrix();return v.applyToPointArray(m[0],m[1],m[2]||0)}function at(m){var v,U=m.length,F=[];for(v=0;v<U;v+=1)F[v]=mt(m[v]);return F}function Q(m,v,U){var F=J("float32",6);if(this.isIdentity())F[0]=m[0],F[1]=m[1],F[2]=v[0],F[3]=v[1],F[4]=U[0],F[5]=U[1];else{var it=this.props[0],ht=this.props[1],pt=this.props[4],It=this.props[5],kt=this.props[12],jt=this.props[13];F[0]=m[0]*it+m[1]*pt+kt,F[1]=m[0]*ht+m[1]*It+jt,F[2]=v[0]*it+v[1]*pt+kt,F[3]=v[0]*ht+v[1]*It+jt,F[4]=U[0]*it+U[1]*pt+kt,F[5]=U[0]*ht+U[1]*It+jt}return F}function ft(m,v,U){var F;return this.isIdentity()?F=[m,v,U]:F=[m*this.props[0]+v*this.props[4]+U*this.props[8]+this.props[12],m*this.props[1]+v*this.props[5]+U*this.props[9]+this.props[13],m*this.props[2]+v*this.props[6]+U*this.props[10]+this.props[14]],F}function ot(m,v){if(this.isIdentity())return m+","+v;var U=this.props;return Math.round((m*U[0]+v*U[4]+U[12])*100)/100+","+Math.round((m*U[1]+v*U[5]+U[13])*100)/100}function K(){for(var m=0,v=this.props,U="matrix3d(",F=1e4;m<16;)U+=n(v[m]*F)/F,U+=m===15?")":",",m+=1;return U}function _(m){var v=1e4;return m<1e-6&&m>0||m>-1e-6&&m<0?n(m*v)/v:m}function R(){var m=this.props,v=_(m[0]),U=_(m[1]),F=_(m[4]),it=_(m[5]),ht=_(m[12]),pt=_(m[13]);return"matrix("+v+","+U+","+F+","+it+","+ht+","+pt+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=u,this.rotateY=T,this.rotateZ=f,this.skew=L,this.skewFromAxis=B,this.shear=I,this.scale=y,this.setTransform=M,this.translate=O,this.transform=N,this.multiply=$,this.applyToPoint=k,this.applyToX=P,this.applyToY=V,this.applyToZ=H,this.applyToPointArray=ft,this.applyToTriplePoints=Q,this.applyToPointStringified=ot,this.toCSS=K,this.to2dCSS=R,this.clone=b,this.cloneFromProps=x,this.equals=S,this.inversePoints=at,this.inversePoint=mt,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=J("float32",16),this.reset()}}();function aa(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?aa=function(i){return typeof i}:aa=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},aa(t)}var wt={},na="__[STANDALONE]__",md="__[ANIMATIONDATA]__",pd="";function Zu(t){p(t)}function ud(){na===!0?Gt.searchAnimations(md,na,pd):Gt.searchAnimations()}function Xu(t){Ru(t)}function Ju(t){Du(t)}function Qu(t){return na===!0&&(t.animationData=JSON.parse(md)),Gt.loadAnimation(t)}function tf(t){if(typeof t=="string")switch(t){case"high":Qs(200);break;default:case"medium":Qs(50);break;case"low":Qs(10);break}else!isNaN(t)&&t>1&&Qs(t);Bo()>=50?De(!1):De(!0)}function ef(){return typeof navigator<"u"}function rf(t,r){t==="expressions"&&Pu(r)}function of(t){switch(t){case"propertyFactory":return et;case"shapePropertyFactory":return sa;case"matrix":return ae;default:return null}}wt.play=Gt.play,wt.pause=Gt.pause,wt.setLocationHref=Zu,wt.togglePause=Gt.togglePause,wt.setSpeed=Gt.setSpeed,wt.setDirection=Gt.setDirection,wt.stop=Gt.stop,wt.searchAnimations=ud,wt.registerAnimation=Gt.registerAnimation,wt.loadAnimation=Qu,wt.setSubframeRendering=Xu,wt.resize=Gt.resize,wt.goToAndStop=Gt.goToAndStop,wt.destroy=Gt.destroy,wt.setQuality=tf,wt.inBrowser=ef,wt.installPlugin=rf,wt.freeze=Gt.freeze,wt.unfreeze=Gt.unfreeze,wt.setVolume=Gt.setVolume,wt.mute=Gt.mute,wt.unmute=Gt.unmute,wt.getRegisteredAnimations=Gt.getRegisteredAnimations,wt.useWebWorker=a,wt.setIDPrefix=Ju,wt.__getFactory=of,wt.version="5.12.2";function sf(){document.readyState==="complete"&&(clearInterval(lf),ud())}function af(t){for(var r=fd.split("&"),i=0;i<r.length;i+=1){var n=r[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}var fd="";if(na){var vd=document.getElementsByTagName("script"),nf=vd.length-1,gd=vd[nf]||{src:""};fd=gd.src?gd.src.replace(/^[^\?]+\??/,""):"",pd=af("renderer")}var lf=setInterval(sf,100);try{!((typeof ys>"u"?"undefined":aa(ys))==="object"&&typeof Va<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=wt)}catch{}var $r=function(){var t={},r={};t.registerModifier=i,t.getModifier=n;function i(d,c){r[d]||(r[d]=c)}function n(d,c,u){return new r[d](c,u)}return t}();function ze(){}ze.prototype.initModifierProperties=function(){},ze.prototype.addShapeToModifier=function(){},ze.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var r={shape:t.sh,data:t,localShapeCollection:Ki.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&t.setAsAnimated()}},ze.prototype.init=function(t,r){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r),this.frameId=s,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ze.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},z([ee],ze);function Ke(){}z([ze],Ke),Ke.prototype.initModifierProperties=function(t,r){this.s=et.getProp(t,r.s,0,.01,this),this.e=et.getProp(t,r.e,0,.01,this),this.o=et.getProp(t,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ke.prototype.addShapeToModifier=function(t){t.pathsData=[]},Ke.prototype.calculateShapeEdges=function(t,r,i,n,d){var c=[];r<=1?c.push({s:t,e:r}):t>=1?c.push({s:t-1,e:r-1}):(c.push({s:t,e:1}),c.push({s:0,e:r-1}));var u=[],T,f=c.length,I;for(T=0;T<f;T+=1)if(I=c[T],!(I.e*d<n||I.s*d>n+i)){var L,B;I.s*d<=n?L=0:L=(I.s*d-n)/i,I.e*d>=n+i?B=1:B=(I.e*d-n)/i,u.push([L,B])}return u.length||u.push([0,0]),u},Ke.prototype.releasePathsData=function(t){var r,i=t.length;for(r=0;r<i;r+=1)nd.release(t[r]);return t.length=0,t},Ke.prototype.processShapes=function(t){var r,i;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?r=1+n:this.s.v<0?r=0+n:r=this.s.v+n,this.e.v>1?i=1+n:this.e.v<0?i=0+n:i=this.e.v+n,r>i){var d=r;r=i,i=d}r=Math.round(r*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=r,this.eValue=i}else r=this.sValue,i=this.eValue;var c,u,T=this.shapes.length,f,I,L,B,y,M=0;if(i===r)for(u=0;u<T;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape._mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection,this._mdf&&(this.shapes[u].pathsData.length=0);else if(i===1&&r===0||i===0&&r===1){if(this._mdf)for(u=0;u<T;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{var O=[],N,$;for(u=0;u<T;u+=1)if(N=this.shapes[u],!N.shape._mdf&&!this._mdf&&!t&&this.m!==2)N.shape.paths=N.localShapeCollection;else{if(c=N.shape.paths,I=c._length,y=0,!N.shape._mdf&&N.pathsData.length)y=N.totalShapeLength;else{for(L=this.releasePathsData(N.pathsData),f=0;f<I;f+=1)B=or.getSegmentsLength(c.shapes[f]),L.push(B),y+=B.totalLength;N.totalShapeLength=y,N.pathsData=L}M+=y,N.shape._mdf=!0}var w=r,S=i,b=0,x;for(u=T-1;u>=0;u-=1)if(N=this.shapes[u],N.shape._mdf){for($=N.localShapeCollection,$.releaseShapes(),this.m===2&&T>1?(x=this.calculateShapeEdges(r,i,N.totalShapeLength,b,M),b+=N.totalShapeLength):x=[[w,S]],I=x.length,f=0;f<I;f+=1){w=x[f][0],S=x[f][1],O.length=0,S<=1?O.push({s:N.totalShapeLength*w,e:N.totalShapeLength*S}):w>=1?O.push({s:N.totalShapeLength*(w-1),e:N.totalShapeLength*(S-1)}):(O.push({s:N.totalShapeLength*w,e:N.totalShapeLength}),O.push({s:0,e:N.totalShapeLength*(S-1)}));var k=this.addShapes(N,O[0]);if(O[0].s!==O[0].e){if(O.length>1){var P=N.shape.paths.shapes[N.shape.paths._length-1];if(P.c){var V=k.pop();this.addPaths(k,$),k=this.addShapes(N,O[1],V)}else this.addPaths(k,$),k=this.addShapes(N,O[1])}this.addPaths(k,$)}}N.shape.paths=$}}},Ke.prototype.addPaths=function(t,r){var i,n=t.length;for(i=0;i<n;i+=1)r.addShape(t[i])},Ke.prototype.addSegment=function(t,r,i,n,d,c,u){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(i[0],i[1],"i",c+1),u&&d.setXYAt(t[0],t[1],"v",c),d.setXYAt(n[0],n[1],"v",c+1)},Ke.prototype.addSegmentFromArray=function(t,r,i,n){r.setXYAt(t[1],t[5],"o",i),r.setXYAt(t[2],t[6],"i",i+1),n&&r.setXYAt(t[0],t[4],"v",i),r.setXYAt(t[3],t[7],"v",i+1)},Ke.prototype.addShapes=function(t,r,i){var n=t.pathsData,d=t.shape.paths.shapes,c,u=t.shape.paths._length,T,f,I=0,L,B,y,M,O=[],N,$=!0;for(i?(B=i._length,N=i._length):(i=se.newElement(),B=0,N=0),O.push(i),c=0;c<u;c+=1){for(y=n[c].lengths,i.c=d[c].c,f=d[c].c?y.length:y.length+1,T=1;T<f;T+=1)if(L=y[T-1],I+L.addedLength<r.s)I+=L.addedLength,i.c=!1;else if(I>r.e){i.c=!1;break}else r.s<=I&&r.e>=I+L.addedLength?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[T],d[c].v[T],i,B,$),$=!1):(M=or.getNewSegment(d[c].v[T-1],d[c].v[T],d[c].o[T-1],d[c].i[T],(r.s-I)/L.addedLength,(r.e-I)/L.addedLength,y[T-1]),this.addSegmentFromArray(M,i,B,$),$=!1,i.c=!1),I+=L.addedLength,B+=1;if(d[c].c&&y.length){if(L=y[T-1],I<=r.e){var w=y[T-1].addedLength;r.s<=I&&r.e>=I+w?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[0],d[c].v[0],i,B,$),$=!1):(M=or.getNewSegment(d[c].v[T-1],d[c].v[0],d[c].o[T-1],d[c].i[0],(r.s-I)/w,(r.e-I)/w,y[T-1]),this.addSegmentFromArray(M,i,B,$),$=!1,i.c=!1)}else i.c=!1;I+=L.addedLength,B+=1}if(i._length&&(i.setXYAt(i.v[N][0],i.v[N][1],"i",N),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),I>r.e)break;c<u-1&&(i=se.newElement(),$=!0,O.push(i),B=0)}return O};function Wo(){}z([ze],Wo),Wo.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Wo.prototype.processPath=function(t,r){var i=r/100,n=[0,0],d=t._length,c=0;for(c=0;c<d;c+=1)n[0]+=t.v[c][0],n[1]+=t.v[c][1];n[0]/=d,n[1]/=d;var u=se.newElement();u.c=t.c;var T,f,I,L,B,y;for(c=0;c<d;c+=1)T=t.v[c][0]+(n[0]-t.v[c][0])*i,f=t.v[c][1]+(n[1]-t.v[c][1])*i,I=t.o[c][0]+(n[0]-t.o[c][0])*-i,L=t.o[c][1]+(n[1]-t.o[c][1])*-i,B=t.i[c][0]+(n[0]-t.i[c][0])*-i,y=t.i[c][1]+(n[1]-t.i[c][1])*-i,u.setTripleAt(T,f,I,L,B,y,c);return u},Wo.prototype.processShapes=function(t){var r,i,n=this.shapes.length,d,c,u=this.amount.v;if(u!==0){var T,f;for(i=0;i<n;i+=1){if(T=this.shapes[i],f=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)f.addShape(this.processPath(r[d],u));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var qn=function(){var t=[0,0];function r(f){var I=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||I,this.a&&f.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&f.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&f.skewFromAxis(-this.sk.v,this.sa.v),this.r?f.rotate(-this.r.v):f.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?f.translate(this.px.v,this.py.v,-this.pz.v):f.translate(this.px.v,this.py.v,0):f.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(f){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||f){var I;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 L,B;if(I=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/I,0),B=this.p.getValueAtTime(this.p.keyframes[0].t/I,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/I,0),B=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/I,0)):(L=this.p.pv,B=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/I,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],B=[];var y=this.px,M=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(L[0]=y.getValueAtTime((y.keyframes[0].t+.01)/I,0),L[1]=M.getValueAtTime((M.keyframes[0].t+.01)/I,0),B[0]=y.getValueAtTime(y.keyframes[0].t/I,0),B[1]=M.getValueAtTime(M.keyframes[0].t/I,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(L[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/I,0),L[1]=M.getValueAtTime(M.keyframes[M.keyframes.length-1].t/I,0),B[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/I,0),B[1]=M.getValueAtTime((M.keyframes[M.keyframes.length-1].t-.01)/I,0)):(L=[y.pv,M.pv],B[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/I,y.offsetTime),B[1]=M.getValueAtTime((M._caching.lastFrame+M.offsetTime-.01)/I,M.offsetTime))}else B=t,L=B;this.v.rotate(-Math.atan2(L[1]-B[1],L[0]-B[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function d(){}function c(f){this._addDynamicProperty(f),this.elem.addDynamicProperty(f),this._isDirty=!0}function u(f,I,L){if(this.elem=f,this.frameId=-1,this.propType="transform",this.data=I,this.v=new ae,this.pre=new ae,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||f),I.p&&I.p.s?(this.px=et.getProp(f,I.p.x,0,0,this),this.py=et.getProp(f,I.p.y,0,0,this),I.p.z&&(this.pz=et.getProp(f,I.p.z,0,0,this))):this.p=et.getProp(f,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=et.getProp(f,I.rx,0,xt,this),this.ry=et.getProp(f,I.ry,0,xt,this),this.rz=et.getProp(f,I.rz,0,xt,this),I.or.k[0].ti){var B,y=I.or.k.length;for(B=0;B<y;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=et.getProp(f,I.or,1,xt,this),this.or.sh=!0}else this.r=et.getProp(f,I.r||{k:0},0,xt,this);I.sk&&(this.sk=et.getProp(f,I.sk,0,xt,this),this.sa=et.getProp(f,I.sa,0,xt,this)),this.a=et.getProp(f,I.a||{k:[0,0,0]},1,0,this),this.s=et.getProp(f,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=et.getProp(f,I.o,0,.01,f):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}u.prototype={applyToMatrix:r,getValue:i,precalculateMatrix:n,autoOrient:d},z([ee],u),u.prototype.addDynamicProperty=c,u.prototype._addDynamicProperty=ee.prototype.addDynamicProperty;function T(f,I,L){return new u(f,I,L)}return{getTransformProperty:T}}();function sr(){}z([ze],sr),sr.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.c=et.getProp(t,r.c,0,null,this),this.o=et.getProp(t,r.o,0,null,this),this.tr=qn.getTransformProperty(t,r.tr,this),this.so=et.getProp(t,r.tr.so,0,.01,this),this.eo=et.getProp(t,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new ae,this.rMatrix=new ae,this.sMatrix=new ae,this.tMatrix=new ae,this.matrix=new ae},sr.prototype.applyTransforms=function(t,r,i,n,d,c){var u=c?-1:1,T=n.s.v[0]+(1-n.s.v[0])*(1-d),f=n.s.v[1]+(1-n.s.v[1])*(1-d);t.translate(n.p.v[0]*u*d,n.p.v[1]*u*d,n.p.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.rotate(-n.r.v*u*d),r.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(c?1/T:T,c?1/f:f),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},sr.prototype.init=function(t,r,i,n){for(this.elem=t,this.arr=r,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r[i]);i>0;)i-=1,this._elements.unshift(r[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},sr.prototype.resetElements=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._processed=!1,t[r].ty==="gr"&&this.resetElements(t[r].it)},sr.prototype.cloneElements=function(t){var r=JSON.parse(JSON.stringify(t));return this.resetElements(r),r},sr.prototype.changeGroupRender=function(t,r){var i,n=t.length;for(i=0;i<n;i+=1)t[i]._render=r,t[i].ty==="gr"&&this.changeGroupRender(t[i].it,r)},sr.prototype.processShapes=function(t){var r,i,n,d,c,u=!1;if(this._mdf||t){var T=Math.ceil(this.c.v);if(this._groups.length<T){for(;this._groups.length<T;){var f={it:this.cloneElements(this._elements),ty:"gr"};f.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,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),u=!0}c=0;var I;for(n=0;n<=this._groups.length-1;n+=1){if(I=c<T,this._groups[n]._render=I,this.changeGroupRender(this._groups[n].it,I),!I){var L=this.elemsData[n].it,B=L[L.length-1];B.transform.op.v!==0?(B.transform.op._mdf=!0,B.transform.op.v=0):B.transform.op._mdf=!1}c+=1}this._currentCopies=T;var y=this.o.v,M=y%1,O=y>0?Math.floor(y):Math.ceil(y),N=this.pMatrix.props,$=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var S=0;if(y>0){for(;S<O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,M,!1),S+=M)}else if(y<0){for(;S>O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;M&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-M,!0),S-=M)}n=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var b,x;c;){if(r=this.elemsData[n].it,i=r[r.length-1].transform.mProps.v.props,x=i.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),S!==0){for((n!==0&&d===1||n!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform($[0],$[1],$[2],$[3],$[4],$[5],$[6],$[7],$[8],$[9],$[10],$[11],$[12],$[13],$[14],$[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),b=0;b<x;b+=1)i[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<x;b+=1)i[b]=this.matrix.props[b];S+=1,c-=1,n+=d}}else for(c=this._currentCopies,n=0,d=1;c;)r=this.elemsData[n].it,i=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,c-=1,n+=d;return u},sr.prototype.addShape=function(){};function Yo(){}z([ze],Yo),Yo.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.rd=et.getProp(t,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Yo.prototype.processPath=function(t,r){var i=se.newElement();i.c=t.c;var n,d=t._length,c,u,T,f,I,L,B=0,y,M,O,N,$,w;for(n=0;n<d;n+=1)c=t.v[n],T=t.o[n],u=t.i[n],c[0]===T[0]&&c[1]===T[1]&&c[0]===u[0]&&c[1]===u[1]?(n===0||n===d-1)&&!t.c?(i.setTripleAt(c[0],c[1],T[0],T[1],u[0],u[1],B),B+=1):(n===0?f=t.v[d-1]:f=t.v[n-1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),L=I?Math.min(I/2,r)/I:0,$=c[0]+(f[0]-c[0])*L,y=$,w=c[1]-(c[1]-f[1])*L,M=w,O=y-(y-c[0])*he,N=M-(M-c[1])*he,i.setTripleAt(y,M,O,N,$,w,B),B+=1,n===d-1?f=t.v[0]:f=t.v[n+1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),L=I?Math.min(I/2,r)/I:0,O=c[0]+(f[0]-c[0])*L,y=O,N=c[1]+(f[1]-c[1])*L,M=N,$=y-(y-c[0])*he,w=M-(M-c[1])*he,i.setTripleAt(y,M,O,N,$,w,B),B+=1):(i.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],B),B+=1);return i},Yo.prototype.processShapes=function(t){var r,i,n=this.shapes.length,d,c,u=this.rd.v;if(u!==0){var T,f;for(i=0;i<n;i+=1){if(T=this.shapes[i],f=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)f.addShape(this.processPath(r[d],u));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function la(t,r){return Math.abs(t-r)*1e5<=Math.min(Math.abs(t),Math.abs(r))}function Kn(t){return Math.abs(t)<=1e-5}function bd(t,r,i){return t*(1-i)+r*i}function Vr(t,r,i){return[bd(t[0],r[0],i),bd(t[1],r[1],i)]}function cf(t,r,i){if(t===0)return[];var n=r*r-4*t*i;if(n<0)return[];var d=-r/(2*t);if(n===0)return[d];var c=Math.sqrt(n)/(2*t);return[d-c,d+c]}function yd(t,r,i,n){return[-t+3*r-3*i+n,3*t-6*r+3*i,-3*t+3*r,t]}function Ed(t){return new $t(t,t,t,t,!1)}function $t(t,r,i,n,d){d&&Xi(t,r)&&(r=Vr(t,n,1/3)),d&&Xi(i,n)&&(i=Vr(t,n,2/3));var c=yd(t[0],r[0],i[0],n[0]),u=yd(t[1],r[1],i[1],n[1]);this.a=[c[0],u[0]],this.b=[c[1],u[1]],this.c=[c[2],u[2]],this.d=[c[3],u[3]],this.points=[t,r,i,n]}$t.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},$t.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},$t.prototype.tangentAngle=function(t){var r=this.derivative(t);return Math.atan2(r[1],r[0])},$t.prototype.normalAngle=function(t){var r=this.derivative(t);return Math.atan2(r[0],r[1])},$t.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Kn(t))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var n=Math.sqrt(i);return Kn(n)?n>0&&n<1?[r]:[]:[r-n,r+n].filter(function(d){return d>0&&d<1})},$t.prototype.split=function(t){if(t<=0)return[Ed(this.points[0]),this];if(t>=1)return[this,Ed(this.points[this.points.length-1])];var r=Vr(this.points[0],this.points[1],t),i=Vr(this.points[1],this.points[2],t),n=Vr(this.points[2],this.points[3],t),d=Vr(r,i,t),c=Vr(i,n,t),u=Vr(d,c,t);return[new $t(this.points[0],r,d,u,!0),new $t(u,c,n,this.points[3],!0)]};function Td(t,r){var i=t.points[0][r],n=t.points[t.points.length-1][r];if(i>n){var d=n;n=i,i=d}for(var c=cf(3*t.a[r],2*t.b[r],t.c[r]),u=0;u<c.length;u+=1)if(c[u]>0&&c[u]<1){var T=t.point(c[u])[r];T<i?i=T:T>n&&(n=T)}return{min:i,max:n}}$t.prototype.bounds=function(){return{x:Td(this,0),y:Td(this,1)}},$t.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function ca(t,r,i){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(r+i)/2,t1:r,t2:i}}function xd(t){var r=t.bez.split(.5);return[ca(r[0],t.t1,t.t),ca(r[1],t.t,t.t2)]}function df(t,r){return Math.abs(t.cx-r.cx)*2<t.width+r.width&&Math.abs(t.cy-r.cy)*2<t.height+r.height}function qo(t,r,i,n,d,c){if(df(t,r)){if(i>=c||t.width<=n&&t.height<=n&&r.width<=n&&r.height<=n){d.push([t.t,r.t]);return}var u=xd(t),T=xd(r);qo(u[0],T[0],i+1,n,d,c),qo(u[0],T[1],i+1,n,d,c),qo(u[1],T[0],i+1,n,d,c),qo(u[1],T[1],i+1,n,d,c)}}$t.prototype.intersections=function(t,r,i){r===void 0&&(r=2),i===void 0&&(i=7);var n=[];return qo(ca(this,0,1),ca(t,0,1),0,r,n,i),n},$t.shapeSegment=function(t,r){var i=(r+1)%t.length();return new $t(t.v[r],t.o[r],t.i[i],t.v[i],!0)},$t.shapeSegmentInverted=function(t,r){var i=(r+1)%t.length();return new $t(t.v[i],t.i[i],t.o[r],t.v[r],!0)};function Zn(t,r){return[t[1]*r[2]-t[2]*r[1],t[2]*r[0]-t[0]*r[2],t[0]*r[1]-t[1]*r[0]]}function da(t,r,i,n){var d=[t[0],t[1],1],c=[r[0],r[1],1],u=[i[0],i[1],1],T=[n[0],n[1],1],f=Zn(Zn(d,c),Zn(u,T));return Kn(f[2])?null:[f[0]/f[2],f[1]/f[2]]}function Zi(t,r,i){return[t[0]+Math.cos(r)*i,t[1]-Math.sin(r)*i]}function Xn(t,r){return Math.hypot(t[0]-r[0],t[1]-r[1])}function Xi(t,r){return la(t[0],r[0])&&la(t[1],r[1])}function Ko(){}z([ze],Ko),Ko.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amplitude=et.getProp(t,r.s,0,null,this),this.frequency=et.getProp(t,r.r,0,null,this),this.pointsType=et.getProp(t,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Ad(t,r,i,n,d,c,u){var T=i-Math.PI/2,f=i+Math.PI/2,I=r[0]+Math.cos(i)*n*d,L=r[1]-Math.sin(i)*n*d;t.setTripleAt(I,L,I+Math.cos(T)*c,L-Math.sin(T)*c,I+Math.cos(f)*u,L-Math.sin(f)*u,t.length())}function hf(t,r){var i=[r[0]-t[0],r[1]-t[1]],n=-Math.PI*.5,d=[Math.cos(n)*i[0]-Math.sin(n)*i[1],Math.sin(n)*i[0]+Math.cos(n)*i[1]];return d}function mf(t,r){var i=r===0?t.length()-1:r-1,n=(r+1)%t.length(),d=t.v[i],c=t.v[n],u=hf(d,c);return Math.atan2(0,1)-Math.atan2(u[1],u[0])}function _d(t,r,i,n,d,c,u){var T=mf(r,i),f=r.v[i%r._length],I=r.v[i===0?r._length-1:i-1],L=r.v[(i+1)%r._length],B=c===2?Math.sqrt(Math.pow(f[0]-I[0],2)+Math.pow(f[1]-I[1],2)):0,y=c===2?Math.sqrt(Math.pow(f[0]-L[0],2)+Math.pow(f[1]-L[1],2)):0;Ad(t,r.v[i%r._length],T,u,n,y/((d+1)*2),B/((d+1)*2),c)}function pf(t,r,i,n,d,c){for(var u=0;u<n;u+=1){var T=(u+1)/(n+1),f=d===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,I=r.normalAngle(T),L=r.point(T);Ad(t,L,I,c,i,f/((n+1)*2),f/((n+1)*2),d),c=-c}return c}Ko.prototype.processPath=function(t,r,i,n){var d=t._length,c=se.newElement();if(c.c=t.c,t.c||(d-=1),d===0)return c;var u=-1,T=$t.shapeSegment(t,0);_d(c,t,0,r,i,n,u);for(var f=0;f<d;f+=1)u=pf(c,T,r,i,n,-u),f===d-1&&!t.c?T=null:T=$t.shapeSegment(t,(f+1)%d),_d(c,t,f+1,r,i,n,u);return c},Ko.prototype.processShapes=function(t){var r,i,n=this.shapes.length,d,c,u=this.amplitude.v,T=Math.max(0,Math.round(this.frequency.v)),f=this.pointsType.v;if(u!==0){var I,L;for(i=0;i<n;i+=1){if(I=this.shapes[i],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],u,T,f));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Jn(t,r,i){var n=Math.atan2(r[0]-t[0],r[1]-t[1]);return[Zi(t,n,i),Zi(r,n,i)]}function Ji(t,r){var i,n,d,c,u,T,f;f=Jn(t.points[0],t.points[1],r),i=f[0],n=f[1],f=Jn(t.points[1],t.points[2],r),d=f[0],c=f[1],f=Jn(t.points[2],t.points[3],r),u=f[0],T=f[1];var I=da(i,n,d,c);I===null&&(I=n);var L=da(u,T,d,c);return L===null&&(L=u),new $t(i,I,L,T)}function Sd(t,r,i,n,d){var c=r.points[3],u=i.points[0];if(n===3||Xi(c,u))return c;if(n===2){var T=-r.tangentAngle(1),f=-i.tangentAngle(0)+Math.PI,I=da(c,Zi(c,T+Math.PI/2,100),u,Zi(u,T+Math.PI/2,100)),L=I?Xn(I,c):Xn(c,u)/2,B=Zi(c,T,2*L*he);return t.setXYAt(B[0],B[1],"o",t.length()-1),B=Zi(u,f,2*L*he),t.setTripleAt(u[0],u[1],u[0],u[1],B[0],B[1],t.length()),u}var y=Xi(c,r.points[2])?r.points[0]:r.points[2],M=Xi(u,i.points[1])?i.points[3]:i.points[1],O=da(y,c,u,M);return O&&Xn(O,c)<d?(t.setTripleAt(O[0],O[1],O[0],O[1],O[0],O[1],t.length()),O):c}function Id(t,r){var i=t.intersections(r);return i.length&&la(i[0][0],1)&&i.shift(),i.length?i[0]:null}function kd(t,r){var i=t.slice(),n=r.slice(),d=Id(t[t.length-1],r[0]);return d&&(i[t.length-1]=t[t.length-1].split(d[0])[0],n[0]=r[0].split(d[1])[1]),t.length>1&&r.length>1&&(d=Id(t[0],r[r.length-1]),d)?[[t[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[i,n]}function uf(t){for(var r,i=1;i<t.length;i+=1)r=kd(t[i-1],t[i]),t[i-1]=r[0],t[i]=r[1];return t.length>1&&(r=kd(t[t.length-1],t[0]),t[t.length-1]=r[0],t[0]=r[1]),t}function Cd(t,r){var i=t.inflectionPoints(),n,d,c,u;if(i.length===0)return[Ji(t,r)];if(i.length===1||la(i[1],1))return c=t.split(i[0]),n=c[0],d=c[1],[Ji(n,r),Ji(d,r)];c=t.split(i[0]),n=c[0];var T=(i[1]-i[0])/(1-i[0]);return c=c[1].split(T),u=c[0],d=c[1],[Ji(n,r),Ji(u,r),Ji(d,r)]}function Zo(){}z([ze],Zo),Zo.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this.miterLimit=et.getProp(t,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Zo.prototype.processPath=function(t,r,i,n){var d=se.newElement();d.c=t.c;var c=t.length();t.c||(c-=1);var u,T,f,I=[];for(u=0;u<c;u+=1)f=$t.shapeSegment(t,u),I.push(Cd(f,r));if(!t.c)for(u=c-1;u>=0;u-=1)f=$t.shapeSegmentInverted(t,u),I.push(Cd(f,r));I=uf(I);var L=null,B=null;for(u=0;u<I.length;u+=1){var y=I[u];for(B&&(L=Sd(d,B,y[0],i,n)),B=y[y.length-1],T=0;T<y.length;T+=1)f=y[T],L&&Xi(f.points[0],L)?d.setXYAt(f.points[1][0],f.points[1][1],"o",d.length()-1):d.setTripleAt(f.points[0][0],f.points[0][1],f.points[1][0],f.points[1][1],f.points[0][0],f.points[0][1],d.length()),d.setTripleAt(f.points[3][0],f.points[3][1],f.points[3][0],f.points[3][1],f.points[2][0],f.points[2][1],d.length()),L=f.points[3]}return I.length&&Sd(d,B,I[0][0],i,n),d},Zo.prototype.processShapes=function(t){var r,i,n=this.shapes.length,d,c,u=this.amount.v,T=this.miterLimit.v,f=this.lineJoin;if(u!==0){var I,L;for(i=0;i<n;i+=1){if(I=this.shapes[i],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],u,f,T));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function wd(t){for(var r=t.fStyle?t.fStyle.split(" "):[],i="normal",n="normal",d=r.length,c,u=0;u<d;u+=1)switch(c=r[u].toLowerCase(),c){case"italic":n="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break;default:break}return{style:n,weight:t.fWeight||i}}var di=function(){var t=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,d=917631,c=917601,u=917626,T=65039,f=8205,I=127462,L=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function y(_){var R=_.split(","),m,v=R.length,U=[];for(m=0;m<v;m+=1)R[m]!=="sans-serif"&&R[m]!=="monospace"&&U.push(R[m]);return U.join(",")}function M(_,R){var m=C("span");m.setAttribute("aria-hidden",!0),m.style.fontFamily=R;var v=C("span");v.innerText="giItT1WQy@!-/#",m.style.position="absolute",m.style.left="-10000px",m.style.top="-10000px",m.style.fontSize="300px",m.style.fontVariant="normal",m.style.fontStyle="normal",m.style.fontWeight="normal",m.style.letterSpacing="0",m.appendChild(v),document.body.appendChild(m);var U=v.offsetWidth;return v.style.fontFamily=y(_)+", "+R,{node:v,w:U,parent:m}}function O(){var _,R=this.fonts.length,m,v,U=R;for(_=0;_<R;_+=1)this.fonts[_].loaded?U-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(m=this.fonts[_].monoCase.node,v=this.fonts[_].monoCase.w,m.offsetWidth!==v?(U-=1,this.fonts[_].loaded=!0):(m=this.fonts[_].sansCase.node,v=this.fonts[_].sansCase.w,m.offsetWidth!==v&&(U-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));U!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function N(_,R){var m=document.body&&R?"svg":"canvas",v,U=wd(_);if(m==="svg"){var F=ut("text");F.style.fontSize="100px",F.setAttribute("font-family",_.fFamily),F.setAttribute("font-style",U.style),F.setAttribute("font-weight",U.weight),F.textContent="1",_.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",_.fClass)):F.style.fontFamily=_.fFamily,R.appendChild(F),v=F}else{var it=new OffscreenCanvas(500,500).getContext("2d");it.font=U.style+" "+U.weight+" 100px "+_.fFamily,v=it}function ht(pt){return m==="svg"?(v.textContent=pt,v.getComputedTextLength()):v.measureText(pt).width}return{measureText:ht}}function $(_,R){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(ye){ye.helper=N(ye),ye.cache={}}),this.fonts=_.list;return}var m=_.list,v,U=m.length,F=U;for(v=0;v<U;v+=1){var it=!0,ht,pt;if(m[v].loaded=!1,m[v].monoCase=M(m[v].fFamily,"monospace"),m[v].sansCase=M(m[v].fFamily,"sans-serif"),!m[v].fPath)m[v].loaded=!0,F-=1;else if(m[v].fOrigin==="p"||m[v].origin===3){if(ht=document.querySelectorAll('style[f-forigin="p"][f-family="'+m[v].fFamily+'"], style[f-origin="3"][f-family="'+m[v].fFamily+'"]'),ht.length>0&&(it=!1),it){var It=C("style");It.setAttribute("f-forigin",m[v].fOrigin),It.setAttribute("f-origin",m[v].origin),It.setAttribute("f-family",m[v].fFamily),It.type="text/css",It.innerText="@font-face {font-family: "+m[v].fFamily+"; font-style: normal; src: url('"+m[v].fPath+"');}",R.appendChild(It)}}else if(m[v].fOrigin==="g"||m[v].origin===1){for(ht=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),pt=0;pt<ht.length;pt+=1)ht[pt].href.indexOf(m[v].fPath)!==-1&&(it=!1);if(it){var kt=C("link");kt.setAttribute("f-forigin",m[v].fOrigin),kt.setAttribute("f-origin",m[v].origin),kt.type="text/css",kt.rel="stylesheet",kt.href=m[v].fPath,document.body.appendChild(kt)}}else if(m[v].fOrigin==="t"||m[v].origin===2){for(ht=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),pt=0;pt<ht.length;pt+=1)m[v].fPath===ht[pt].src&&(it=!1);if(it){var jt=C("link");jt.setAttribute("f-forigin",m[v].fOrigin),jt.setAttribute("f-origin",m[v].origin),jt.setAttribute("rel","stylesheet"),jt.setAttribute("href",m[v].fPath),R.appendChild(jt)}}m[v].helper=N(m[v],R),m[v].cache={},this.fonts.push(m[v])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function w(_){if(_){this.chars||(this.chars=[]);var R,m=_.length,v,U=this.chars.length,F;for(R=0;R<m;R+=1){for(v=0,F=!1;v<U;)this.chars[v].style===_[R].style&&this.chars[v].fFamily===_[R].fFamily&&this.chars[v].ch===_[R].ch&&(F=!0),v+=1;F||(this.chars.push(_[R]),U+=1)}}}function S(_,R,m){for(var v=0,U=this.chars.length;v<U;){if(this.chars[v].ch===_&&this.chars[v].style===R&&this.chars[v].fFamily===m)return this.chars[v];v+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,R,m)),r}function b(_,R,m){var v=this.getFontByName(R),U=_;if(!v.cache[U]){var F=v.helper;if(_===" "){var it=F.measureText("|"+_+"|"),ht=F.measureText("||");v.cache[U]=(it-ht)/100}else v.cache[U]=F.measureText(_)/100}return v.cache[U]*m}function x(_){for(var R=0,m=this.fonts.length;R<m;){if(this.fonts[R].fName===_)return this.fonts[R];R+=1}return this.fonts[0]}function k(_){var R=0,m=_.charCodeAt(0);if(m>=55296&&m<=56319){var v=_.charCodeAt(1);v>=56320&&v<=57343&&(R=(m-55296)*1024+v-56320+65536)}return R}function P(_,R){var m=_.toString(16)+R.toString(16);return B.indexOf(m)!==-1}function V(_){return _===f}function H(_){return _===T}function Z(_){var R=k(_);return R>=I&&R<=L}function mt(_){return Z(_.substr(0,2))&&Z(_.substr(2,2))}function at(_){return i.indexOf(_)!==-1}function Q(_,R){var m=k(_.substr(R,2));if(m!==n)return!1;var v=0;for(R+=2;v<5;){if(m=k(_.substr(R,2)),m<c||m>u)return!1;v+=1,R+=2}return k(_.substr(R,2))===d}function ft(){this.isLoaded=!0}var ot=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ot.isModifier=P,ot.isZeroWidthJoiner=V,ot.isFlagEmoji=mt,ot.isRegionalCode=Z,ot.isCombinedCharacter=at,ot.isRegionalFlag=Q,ot.isVariationSelector=H,ot.BLACK_FLAG_CODE_POINT=n;var K={addChars:w,addFonts:$,getCharData:S,getFontByName:x,measureText:b,checkLoadedFonts:O,setIsLoaded:ft};return ot.prototype=K,ot}();function Ld(t){this.animationData=t}Ld.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function ff(t){return new Ld(t)}function ha(){}ha.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},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(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?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 r,i=this.renderableComponents.length;for(r=0;r<i;r+=1)this.renderableComponents[r].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 Qn=function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(r){return t[r]||""}}();function vf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function gf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function bf(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function yf(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function Ef(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Tf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function xf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Af(){this.p={}}function Md(t,r){var i=t.ef||[];this.effectElements=[];var n,d=i.length,c;for(n=0;n<d;n+=1)c=new Xo(i[n],r),this.effectElements.push(c)}function Xo(t,r){this.init(t,r)}z([ee],Xo),Xo.prototype.getValue=Xo.prototype.iterateDynamicProperties,Xo.prototype.init=function(t,r){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(r);var i,n=this.data.ef.length,d,c=this.data.ef;for(i=0;i<n;i+=1){switch(d=null,c[i].ty){case 0:d=new vf(c[i],r,this);break;case 1:d=new gf(c[i],r,this);break;case 2:d=new bf(c[i],r,this);break;case 3:d=new yf(c[i],r,this);break;case 4:case 7:d=new xf(c[i],r,this);break;case 10:d=new Ef(c[i],r,this);break;case 11:d=new Tf(c[i],r,this);break;case 5:d=new Md(c[i],r,this);break;default:d=new Af(c[i],r,this);break}d&&this.effectElements.push(d)}};function Br(){}Br.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,i=this.data.masksProperties.length;r<i;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=id();if(r){var i=r("layer"),n=r("effects"),d=r("shape"),c=r("text"),u=r("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var T=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(T),this.data.ty===0||this.data.xt?this.compInterface=u(this):this.data.ty===4?(this.layerInterface.shapeInterface=d(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=Qn(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=r},initBaseData:function(r,i,n){this.globalData=i,this.comp=n,this.data=r,this.layerId=ge(),this.data.sr||(this.data.sr=1),this.effectsManager=new Md(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Ur(){}Ur.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,i){var n,d=this.dynamicProperties.length;for(n=0;n<d;n+=1)(i||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function Hr(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(t,r,i)}Hr.prototype.prepareFrame=function(){},z([ha,Br,Ur],Hr),Hr.prototype.getBaseElement=function(){return null},Hr.prototype.renderFrame=function(){},Hr.prototype.destroy=function(){},Hr.prototype.initExpressions=function(){var t=id();if(t){var r=t("footage");this.layerInterface=r(this)}},Hr.prototype.getFootageData=function(){return this.footageData};function be(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.initBaseData(t,r,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=et.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}be.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},z([ha,Br,Ur],be),be.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))},be.prototype.show=function(){},be.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},be.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},be.prototype.resume=function(){this._canPlay=!0},be.prototype.setRate=function(t){this.audio.rate(t)},be.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},be.prototype.getBaseElement=function(){return null},be.prototype.destroy=function(){},be.prototype.sourceRectAtTime=function(){},be.prototype.initExpressions=function(){};function ne(){}ne.prototype.checkLayers=function(t){var r,i=this.layers.length,n;for(this.completeLayers=!0,r=i-1;r>=0;r-=1)this.elements[r]||(n=this.layers[r],n.ip-n.st<=t-this.layers[r].st&&n.op-n.st>t-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},ne.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},ne.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ne.prototype.createAudio=function(t){return new be(t,this.globalData,this)},ne.prototype.createFootage=function(t){return new Hr(t,this.globalData,this)},ne.prototype.buildAllItems=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.buildItem(t);this.checkPendingElements()},ne.prototype.includeLayers=function(t){this.completeLayers=!1;var r,i=t.length,n,d=this.layers.length;for(r=0;r<i;r+=1)for(n=0;n<d;){if(this.layers[n].id===t[r].id){this.layers[n]=t[r];break}n+=1}},ne.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},ne.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ne.prototype.buildElementParenting=function(t,r,i){for(var n=this.elements,d=this.layers,c=0,u=d.length;c<u;)d[c].ind==r&&(!n[c]||n[c]===!0?(this.buildItem(c),this.addPendingElement(t)):(i.push(n[c]),n[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(t,d[c].parent,i):t.setHierarchy(i))),c+=1},ne.prototype.addPendingElement=function(t){this.pendingElements.push(t)},ne.prototype.searchExtraCompositions=function(t){var r,i=t.length;for(r=0;r<i;r+=1)if(t[r].xt){var n=this.createComp(t[r]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},ne.prototype.getElementById=function(t){var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.ind===t)return this.elements[r];return null},ne.prototype.getElementByPath=function(t){var r=t.shift(),i;if(typeof r=="number")i=this.elements[r];else{var n,d=this.elements.length;for(n=0;n<d;n+=1)if(this.elements[n].data.nm===r){i=this.elements[n];break}}return t.length===0?i:i.getElementByPath(t)},ne.prototype.setupGlobalData=function(t,r){this.globalData.fontManager=new di,this.globalData.slotManager=ff(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,r),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var _f={TRANSFORM_EFFECT:"transformEFfect"};function Qi(){}Qi.prototype={initTransform:function(){var r=new ae;this.finalTransform={mProp:this.data.ks?qn.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,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 r,i=this.finalTransform.mat,n=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<d;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,i.cloneFromProps(r),n=0;n<d;n+=1)i.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var r=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<i;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),r=1;r<i;r+=1){var d=this.localTransforms[r].matrix;n.multiply(d)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<i;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(_f.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new ae;var i=0,n=r.length;for(i=0;i<n;i+=1)this.localTransforms.push(r[i])}}},globalToLocal:function(r){var i=[];i.push(this.finalTransform);for(var n=!0,d=this.comp;n;)d.finalTransform?(d.data.hasMask&&i.splice(0,0,d.finalTransform),d=d.comp):n=!1;var c,u=i.length,T;for(c=0;c<u;c+=1)T=i[c].mat.applyToPointArray(0,0,0),r=[r[0]-T[0],r[1]-T[1],0];return r},mHelper:new ae};function hi(t,r,i){this.data=t,this.element=r,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(c),this.solidPath="";var u,T=this.masksProperties,f=0,I=[],L,B,y=ge(),M,O,N,$,w="clipPath",S="clip-path";for(d=0;d<c;d+=1)if((T[d].mode!=="a"&&T[d].mode!=="n"||T[d].inv||T[d].o.k!==100||T[d].o.x)&&(w="mask",S="mask"),(T[d].mode==="s"||T[d].mode==="i")&&f===0?(M=ut("rect"),M.setAttribute("fill","#ffffff"),M.setAttribute("width",this.element.comp.data.w||0),M.setAttribute("height",this.element.comp.data.h||0),I.push(M)):M=null,u=ut("path"),T[d].mode==="n")this.viewData[d]={op:et.getProp(this.element,T[d].o,0,.01,this.element),prop:sa.getShapeProp(this.element,T[d],3),elem:u,lastPath:""},n.appendChild(u);else{f+=1,u.setAttribute("fill",T[d].mode==="s"?"#000000":"#ffffff"),u.setAttribute("clip-rule","nonzero");var b;if(T[d].x.k!==0?(w="mask",S="mask",$=et.getProp(this.element,T[d].x,0,null,this.element),b=ge(),O=ut("filter"),O.setAttribute("id",b),N=ut("feMorphology"),N.setAttribute("operator","erode"),N.setAttribute("in","SourceGraphic"),N.setAttribute("radius","0"),O.appendChild(N),n.appendChild(O),u.setAttribute("stroke",T[d].mode==="s"?"#000000":"#ffffff")):(N=null,$=null),this.storedData[d]={elem:u,x:$,expan:N,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},T[d].mode==="i"){B=I.length;var x=ut("g");for(L=0;L<B;L+=1)x.appendChild(I[L]);var k=ut("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",y+"_"+f),k.appendChild(u),n.appendChild(k),x.setAttribute("mask","url("+E()+"#"+y+"_"+f+")"),I.length=0,I.push(x)}else I.push(u);T[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:u,lastPath:"",op:et.getProp(this.element,T[d].o,0,.01,this.element),prop:sa.getShapeProp(this.element,T[d],3),invRect:M},this.viewData[d].prop.k||this.drawPath(T[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=ut(w),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);f>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(S,"url("+E()+"#"+y+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}hi.prototype.getMaskProperty=function(t){return this.viewData[t].prop},hi.prototype.renderFrame=function(t){var r=this.element.finalTransform.mat,i,n=this.masksProperties.length;for(i=0;i<n;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var d=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+E()+"#"+this.storedData[i].filterId+")")),d.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},hi.prototype.getMaskelement=function(){return this.maskElement},hi.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" ",t},hi.prototype.drawPath=function(t,r,i){var n=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[d][0]+","+r.i[d][1]+" "+r.v[d][0]+","+r.v[d][1];if(r.c&&c>1&&(n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),i.lastPath!==n){var u="";i.elem&&(r.c&&(u=t.inv?this.solidPath+n:n),i.elem.setAttribute("d",u)),i.lastPath=n}},hi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Jo=function(){var t={};t.createFilter=r,t.createAlphaToLuminanceFilter=i;function r(n,d){var c=ut("filter");return c.setAttribute("id",n),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function i(){var n=ut("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return t}(),Nd=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),ma={},Rd="filter_result_";function tl(t){var r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,d=ge(),c=Jo.createFilter(d,!0),u=0;this.filters=[];var T;for(r=0;r<n;r+=1){T=null;var f=t.data.ef[r].ty;if(ma[f]){var I=ma[f].effect;T=new I(c,t.effectsManager.effectElements[r],t,Rd+u,i),i=Rd+u,ma[f].countsAsEffect&&(u+=1)}T&&this.filters.push(T)}u&&(t.globalData.defs.appendChild(c),t.layerElement.setAttribute("filter","url("+E()+"#"+d+")")),this.filters.length&&t.addRenderableComponent(this)}tl.prototype.renderFrame=function(t){var r,i=this.filters.length;for(r=0;r<i;r+=1)this.filters[r].renderFrame(t)},tl.prototype.getEffects=function(t){var r,i=this.filters.length,n=[];for(r=0;r<i;r+=1)this.filters[r].type===t&&n.push(this.filters[r]);return n};function oy(t,r,i){ma[t]={effect:r,countsAsEffect:i}}function Qo(){}Qo.prototype={initRendererElement:function(){this.layerElement=ut("g")},createContainerElements:function(){this.matteElement=ut("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var i=ut("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),r=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=ut("clipPath"),d=ut("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=ge();if(n.setAttribute("id",c),n.appendChild(d),this.globalData.defs.appendChild(n),this.checkMasks()){var u=ut("g");u.setAttribute("clip-path","url("+E()+"#"+c+")"),u.appendChild(this.layerElement),this.transformedElement=u,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+E()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new hi(this.data,this,this.globalData),this.renderableEffectsManager=new tl(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var i=this.layerId+"_"+r,n,d,c,u;if(r===1||r===3){var T=ut("mask");T.setAttribute("id",i),T.setAttribute("mask-type",r===3?"luminance":"alpha"),c=ut("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),T.appendChild(c),this.globalData.defs.appendChild(T),!Nd.maskType&&r===1&&(T.setAttribute("mask-type","luminance"),n=ge(),d=Jo.createFilter(n),this.globalData.defs.appendChild(d),d.appendChild(Jo.createAlphaToLuminanceFilter()),u=ut("g"),u.appendChild(c),T.appendChild(u),u.setAttribute("filter","url("+E()+"#"+n+")"))}else if(r===2){var f=ut("mask");f.setAttribute("id",i),f.setAttribute("mask-type","alpha");var I=ut("g");f.appendChild(I),n=ge(),d=Jo.createFilter(n);var L=ut("feComponentTransfer");L.setAttribute("in","SourceGraphic"),d.appendChild(L);var B=ut("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),L.appendChild(B),this.globalData.defs.appendChild(d);var y=ut("rect");y.setAttribute("width",this.comp.data.w),y.setAttribute("height",this.comp.data.h),y.setAttribute("x","0"),y.setAttribute("y","0"),y.setAttribute("fill","#ffffff"),y.setAttribute("opacity","0"),I.setAttribute("filter","url("+E()+"#"+n+")"),I.appendChild(y),c=ut("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),Nd.maskType||(f.setAttribute("mask-type","luminance"),d.appendChild(Jo.createAlphaToLuminanceFilter()),u=ut("g"),I.appendChild(y),u.appendChild(this.layerElement),I.appendChild(u)),this.globalData.defs.appendChild(f)}this.matteMasks[r]=i}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+E()+"#"+r+")")}};function to(){}to.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function ts(){}(function(){var t={initElement:function(i,n,d){this.initFrame(),this.initBaseData(i,n,d),this.initTransform(i,n,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};z([ha,Y(t)],ts)})();function es(t,r,i){this.assetData=r.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(t,r,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}z([Br,Qi,Qo,to,Ur,ts],es),es.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=ut("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},es.prototype.sourceRectAtTime=function(){return this.sourceRect};function Sf(t,r){this.elem=t,this.pos=r}function Od(){}Od.prototype={addShapeToModifiers:function(r){var i,n=this.shapeModifiers.length;for(i=0;i<n;i+=1)this.shapeModifiers[i].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var i=0,n=this.shapeModifiers.length;i<n;)if(this.shapeModifiers[i].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,i=this.shapes.length;for(r=0;r<i;r+=1)this.shapes[r].sh.reset();i=this.shapeModifiers.length;var n;for(r=i-1;r>=0&&(n=this.shapeModifiers[r].processShapes(this._isFirstFrame),!n);r-=1);}},searchProcessedElement:function(r){for(var i=this.processedElements,n=0,d=i.length;n<d;){if(i[n].elem===r)return i[n].pos;n+=1}return 0},addProcessedElement:function(r,i){for(var n=this.processedElements,d=n.length;d;)if(d-=1,n[d].elem===r){n[d].pos=i;return}n.push(new Sf(r,i))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Pd={1:"butt",2:"round",3:"square"},Dd={1:"miter",2:"round",3:"bevel"};function Fd(t,r,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=r,this._isAnimated=!!i.k;for(var n=0,d=t.length;n<d;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}Fd.prototype.setAsAnimated=function(){this._isAnimated=!0};function zd(t,r){this.data=t,this.type=t.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=t.hd===!0,this.pElem=ut("path"),this.msElem=null}zd.prototype.reset=function(){this.d="",this._mdf=!1};function pa(t,r,i,n){this.elem=t,this.frameId=-1,this.dataProps=tt(r.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=J("float32",r.length?r.length-1:0),this.dashoffset=J("float32",1),this.initDynamicPropertyContainer(n);var d,c=r.length||0,u;for(d=0;d<c;d+=1)u=et.getProp(t,r[d].v,0,0,this),this.k=u.k||this.k,this.dataProps[d]={n:r[d].n,p:u};this.k||this.getValue(!0),this._isAnimated=this.k}pa.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var r=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<i;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},z([ee],pa);function $d(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.w=et.getProp(t,r.w,0,null,this),this.d=new pa(t,r.d||{},"svg",this),this.c=et.getProp(t,r.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}z([ee],$d);function Vd(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.c=et.getProp(t,r.c,1,255,this),this.style=i}z([ee],Vd);function Bd(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}z([ee],Bd);function rs(t,r,i){this.data=r,this.c=J("uint8c",r.p*4);var n=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=J("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=et.getProp(t,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}rs.prototype.comparePoints=function(t,r){for(var i=0,n=this.o.length/2,d;i<n;){if(d=Math.abs(t[i*4]-t[r*4+i*2]),d>.01)return!1;i+=1}return!0},rs.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,r=this.data.k.k.length;t<r;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},rs.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var r,i=this.data.p*4,n,d;for(r=0;r<i;r+=1)n=r%4===0?100:255,d=Math.round(this.prop.v[r]*n),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,r=this.data.p*4;r<i;r+=1)n=r%2===0?100:1,d=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==d&&(this.o[r-this.data.p*4]=d,this._omdf=!t);this._mdf=!t}},z([ee],rs);function eo(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,r,i)}eo.prototype.initGradientData=function(t,r,i){this.o=et.getProp(t,r.o,0,.01,this),this.s=et.getProp(t,r.s,1,null,this),this.e=et.getProp(t,r.e,1,null,this),this.h=et.getProp(t,r.h||{k:0},0,.01,this),this.a=et.getProp(t,r.a||{k:0},0,xt,this),this.g=new rs(t,r.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,r),this.setGradientOpacity(r,i),this._isAnimated=!!this._isAnimated},eo.prototype.setGradientData=function(t,r){var i=ge(),n=ut(r.t===1?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,u,T;for(T=r.g.p*4,u=0;u<T;u+=4)c=ut("stop"),n.appendChild(c),d.push(c);t.setAttribute(r.ty==="gf"?"fill":"stroke","url("+E()+"#"+i+")"),this.gf=n,this.cst=d},eo.prototype.setGradientOpacity=function(t,r){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,d,c=ut("mask"),u=ut("path");c.appendChild(u);var T=ge(),f=ge();c.setAttribute("id",f);var I=ut(t.t===1?"linearGradient":"radialGradient");I.setAttribute("id",T),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var L=this.stops;for(n=t.g.p*4;n<d;n+=2)i=ut("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(i),L.push(i);u.setAttribute(t.ty==="gf"?"fill":"stroke","url("+E()+"#"+T+")"),t.ty==="gs"&&(u.setAttribute("stroke-linecap",Pd[t.lc||2]),u.setAttribute("stroke-linejoin",Dd[t.lj||2]),t.lj===1&&u.setAttribute("stroke-miterlimit",t.ml)),this.of=I,this.ms=c,this.ost=L,this.maskId=f,r.msElem=u}},z([ee],eo);function Ud(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=et.getProp(t,r.w,0,null,this),this.d=new pa(t,r.d||{},"svg",this),this.initGradientData(t,r,i),this._isAnimated=!!this._isAnimated}z([eo,ee],Ud);function If(){this.it=[],this.prevViewData=[],this.gr=ut("g")}function kf(t,r,i){this.transform={mProps:t,op:r,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Hd=function(r,i,n,d){if(i===0)return"";var c=r.o,u=r.i,T=r.v,f,I=" M"+d.applyToPointStringified(T[0][0],T[0][1]);for(f=1;f<i;f+=1)I+=" C"+d.applyToPointStringified(c[f-1][0],c[f-1][1])+" "+d.applyToPointStringified(u[f][0],u[f][1])+" "+d.applyToPointStringified(T[f][0],T[f][1]);return n&&i&&(I+=" C"+d.applyToPointStringified(c[f-1][0],c[f-1][1])+" "+d.applyToPointStringified(u[0][0],u[0][1])+" "+d.applyToPointStringified(T[0][0],T[0][1]),I+="z"),I},Cf=function(){var t=new ae,r=new ae,i={createRenderFunction:n};function n(B){switch(B.ty){case"fl":return T;case"gf":return I;case"gs":return f;case"st":return L;case"sh":case"el":case"rc":case"sr":return u;case"tr":return d;case"no":return c;default:return null}}function d(B,y,M){(M||y.transform.op._mdf)&&y.transform.container.setAttribute("opacity",y.transform.op.v),(M||y.transform.mProps._mdf)&&y.transform.container.setAttribute("transform",y.transform.mProps.v.to2dCSS())}function c(){}function u(B,y,M){var O,N,$,w,S,b,x=y.styles.length,k=y.lvl,P,V,H,Z;for(b=0;b<x;b+=1){if(w=y.sh._mdf||M,y.styles[b].lvl<k){for(V=r.reset(),H=k-y.styles[b].lvl,Z=y.transformers.length-1;!w&&H>0;)w=y.transformers[Z].mProps._mdf||w,H-=1,Z-=1;if(w)for(H=k-y.styles[b].lvl,Z=y.transformers.length-1;H>0;)V.multiply(y.transformers[Z].mProps.v),H-=1,Z-=1}else V=t;if(P=y.sh.paths,N=P._length,w){for($="",O=0;O<N;O+=1)S=P.shapes[O],S&&S._length&&($+=Hd(S,S._length,S.c,V));y.caches[b]=$}else $=y.caches[b];y.styles[b].d+=B.hd===!0?"":$,y.styles[b]._mdf=w||y.styles[b]._mdf}}function T(B,y,M){var O=y.style;(y.c._mdf||M)&&O.pElem.setAttribute("fill","rgb("+te(y.c.v[0])+","+te(y.c.v[1])+","+te(y.c.v[2])+")"),(y.o._mdf||M)&&O.pElem.setAttribute("fill-opacity",y.o.v)}function f(B,y,M){I(B,y,M),L(B,y,M)}function I(B,y,M){var O=y.gf,N=y.g._hasOpacity,$=y.s.v,w=y.e.v;if(y.o._mdf||M){var S=B.ty==="gf"?"fill-opacity":"stroke-opacity";y.style.pElem.setAttribute(S,y.o.v)}if(y.s._mdf||M){var b=B.t===1?"x1":"cx",x=b==="x1"?"y1":"cy";O.setAttribute(b,$[0]),O.setAttribute(x,$[1]),N&&!y.g._collapsable&&(y.of.setAttribute(b,$[0]),y.of.setAttribute(x,$[1]))}var k,P,V,H;if(y.g._cmdf||M){k=y.cst;var Z=y.g.c;for(V=k.length,P=0;P<V;P+=1)H=k[P],H.setAttribute("offset",Z[P*4]+"%"),H.setAttribute("stop-color","rgb("+Z[P*4+1]+","+Z[P*4+2]+","+Z[P*4+3]+")")}if(N&&(y.g._omdf||M)){var mt=y.g.o;for(y.g._collapsable?k=y.cst:k=y.ost,V=k.length,P=0;P<V;P+=1)H=k[P],y.g._collapsable||H.setAttribute("offset",mt[P*2]+"%"),H.setAttribute("stop-opacity",mt[P*2+1])}if(B.t===1)(y.e._mdf||M)&&(O.setAttribute("x2",w[0]),O.setAttribute("y2",w[1]),N&&!y.g._collapsable&&(y.of.setAttribute("x2",w[0]),y.of.setAttribute("y2",w[1])));else{var at;if((y.s._mdf||y.e._mdf||M)&&(at=Math.sqrt(Math.pow($[0]-w[0],2)+Math.pow($[1]-w[1],2)),O.setAttribute("r",at),N&&!y.g._collapsable&&y.of.setAttribute("r",at)),y.e._mdf||y.h._mdf||y.a._mdf||M){at||(at=Math.sqrt(Math.pow($[0]-w[0],2)+Math.pow($[1]-w[1],2)));var Q=Math.atan2(w[1]-$[1],w[0]-$[0]),ft=y.h.v;ft>=1?ft=.99:ft<=-1&&(ft=-.99);var ot=at*ft,K=Math.cos(Q+y.a.v)*ot+$[0],_=Math.sin(Q+y.a.v)*ot+$[1];O.setAttribute("fx",K),O.setAttribute("fy",_),N&&!y.g._collapsable&&(y.of.setAttribute("fx",K),y.of.setAttribute("fy",_))}}}function L(B,y,M){var O=y.style,N=y.d;N&&(N._mdf||M)&&N.dashStr&&(O.pElem.setAttribute("stroke-dasharray",N.dashStr),O.pElem.setAttribute("stroke-dashoffset",N.dashoffset[0])),y.c&&(y.c._mdf||M)&&O.pElem.setAttribute("stroke","rgb("+te(y.c.v[0])+","+te(y.c.v[1])+","+te(y.c.v[2])+")"),(y.o._mdf||M)&&O.pElem.setAttribute("stroke-opacity",y.o.v),(y.w._mdf||M)&&(O.pElem.setAttribute("stroke-width",y.w.v),O.msElem&&O.msElem.setAttribute("stroke-width",y.w.v))}return i}();function Ut(t,r,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,r,i),this.prevViewData=[]}z([Br,Qi,Qo,Od,to,Ur,ts],Ut),Ut.prototype.initSecondaryElement=function(){},Ut.prototype.identityMatrix=new ae,Ut.prototype.buildExpressionInterface=function(){},Ut.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Ut.prototype.filterUniqueShapes=function(){var t,r=this.shapes.length,i,n,d=this.stylesList.length,c,u=[],T=!1;for(n=0;n<d;n+=1){for(c=this.stylesList[n],T=!1,u.length=0,t=0;t<r;t+=1)i=this.shapes[t],i.styles.indexOf(c)!==-1&&(u.push(i),T=i._isAnimated||T);u.length>1&&T&&this.setShapesAsAnimated(u)}},Ut.prototype.setShapesAsAnimated=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r].setAsAnimated()},Ut.prototype.createStyleElement=function(t,r){var i,n=new zd(t,r),d=n.pElem;if(t.ty==="st")i=new $d(this,t,n);else if(t.ty==="fl")i=new Vd(this,t,n);else if(t.ty==="gf"||t.ty==="gs"){var c=t.ty==="gf"?eo:Ud;i=new c(this,t,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),d.setAttribute("mask","url("+E()+"#"+i.maskId+")"))}else t.ty==="no"&&(i=new Bd(this,t,n));return(t.ty==="st"||t.ty==="gs")&&(d.setAttribute("stroke-linecap",Pd[t.lc||2]),d.setAttribute("stroke-linejoin",Dd[t.lj||2]),d.setAttribute("fill-opacity","0"),t.lj===1&&d.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&d.setAttribute("fill-rule","evenodd"),t.ln&&d.setAttribute("id",t.ln),t.cl&&d.setAttribute("class",t.cl),t.bm&&(d.style["mix-blend-mode"]=Qn(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,i),i},Ut.prototype.createGroupElement=function(t){var r=new If;return t.ln&&r.gr.setAttribute("id",t.ln),t.cl&&r.gr.setAttribute("class",t.cl),t.bm&&(r.gr.style["mix-blend-mode"]=Qn(t.bm)),r},Ut.prototype.createTransformElement=function(t,r){var i=qn.getTransformProperty(this,t,this),n=new kf(i,i.o,r);return this.addToAnimatedContents(t,n),n},Ut.prototype.createShapeElement=function(t,r,i){var n=4;t.ty==="rc"?n=5:t.ty==="el"?n=6:t.ty==="sr"&&(n=7);var d=sa.getShapeProp(this,t,n,this),c=new Fd(r,i,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(t,c),c},Ut.prototype.addToAnimatedContents=function(t,r){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===r)return;i+=1}this.animatedContents.push({fn:Cf.createRenderFunction(t),element:r,data:t})},Ut.prototype.setElementStyles=function(t){var r=t.styles,i,n=this.stylesList.length;for(i=0;i<n;i+=1)this.stylesList[i].closed||r.push(this.stylesList[i])},Ut.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,r=this.itemsData.length;for(t=0;t<r;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,t=0;t<r;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},Ut.prototype.searchShapes=function(t,r,i,n,d,c,u){var T=[].concat(c),f,I=t.length-1,L,B,y=[],M=[],O,N,$;for(f=I;f>=0;f-=1){if($=this.searchProcessedElement(t[f]),$?r[f]=i[$-1]:t[f]._render=u,t[f].ty==="fl"||t[f].ty==="st"||t[f].ty==="gf"||t[f].ty==="gs"||t[f].ty==="no")$?r[f].style.closed=!1:r[f]=this.createStyleElement(t[f],d),t[f]._render&&r[f].style.pElem.parentNode!==n&&n.appendChild(r[f].style.pElem),y.push(r[f].style);else if(t[f].ty==="gr"){if(!$)r[f]=this.createGroupElement(t[f]);else for(B=r[f].it.length,L=0;L<B;L+=1)r[f].prevViewData[L]=r[f].it[L];this.searchShapes(t[f].it,r[f].it,r[f].prevViewData,r[f].gr,d+1,T,u),t[f]._render&&r[f].gr.parentNode!==n&&n.appendChild(r[f].gr)}else t[f].ty==="tr"?($||(r[f]=this.createTransformElement(t[f],n)),O=r[f].transform,T.push(O)):t[f].ty==="sh"||t[f].ty==="rc"||t[f].ty==="el"||t[f].ty==="sr"?($||(r[f]=this.createShapeElement(t[f],T,d)),this.setElementStyles(r[f])):t[f].ty==="tm"||t[f].ty==="rd"||t[f].ty==="ms"||t[f].ty==="pb"||t[f].ty==="zz"||t[f].ty==="op"?($?(N=r[f],N.closed=!1):(N=$r.getModifier(t[f].ty),N.init(this,t[f]),r[f]=N,this.shapeModifiers.push(N)),M.push(N)):t[f].ty==="rp"&&($?(N=r[f],N.closed=!0):(N=$r.getModifier(t[f].ty),r[f]=N,N.init(this,t,f,r),this.shapeModifiers.push(N),u=!1),M.push(N));this.addProcessedElement(t[f],f+1)}for(I=y.length,f=0;f<I;f+=1)y[f].closed=!0;for(I=M.length,f=0;f<I;f+=1)M[f].closed=!0},Ut.prototype.renderInnerContent=function(){this.renderModifiers();var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<r;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},Ut.prototype.renderShape=function(){var t,r=this.animatedContents.length,i;for(t=0;t<r;t+=1)i=this.animatedContents[t],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},Ut.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function el(t,r,i,n,d,c){this.o=t,this.sw=r,this.sc=i,this.fc=n,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!i,fc:!!n,m:!0,p:!0}}el.prototype.update=function(t,r,i,n,d,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var u=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,u=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,u=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,u=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,u=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,u=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,u=!0),u};function me(t,r){this._frameId=s,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=t.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}me.prototype.defaultBoxWidth=[0,0],me.prototype.copyData=function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},me.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},me.prototype.searchProperty=function(){return this.searchKeyframes()},me.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},me.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},me.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,d=this.effectsSequence.length,c=t||this.data.d.k[this.keysIndex].s;for(n=0;n<d;n+=1)i!==this.keysIndex?c=this.effectsSequence[n](c,c.t):c=this.effectsSequence[n](this.currentData,c.t);r!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},me.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,r=this.elem.comp.renderedFrame,i=0,n=t.length;i<=n-1&&!(i===n-1||t[i+1].t>r);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},me.prototype.buildFinalText=function(t){for(var r=[],i=0,n=t.length,d,c,u=!1,T=!1,f="";i<n;)u=T,T=!1,d=t.charCodeAt(i),f=t.charAt(i),di.isCombinedCharacter(d)?u=!0:d>=55296&&d<=56319?di.isRegionalFlag(t,i)?f=t.substr(i,14):(c=t.charCodeAt(i+1),c>=56320&&c<=57343&&(di.isModifier(d,c)?(f=t.substr(i,2),u=!0):di.isFlagEmoji(t.substr(i,4))?f=t.substr(i,4):f=t.substr(i,2))):d>56319?(c=t.charCodeAt(i+1),di.isVariationSelector(d)&&(u=!0)):di.isZeroWidthJoiner(d)&&(u=!0,T=!0),u?(r[r.length-1]+=f,u=!1):r.push(f),i+=f.length;return r},me.prototype.completeTextData=function(t){t.__complete=!0;var r=this.elem.globalData.fontManager,i=this.data,n=[],d,c,u,T=0,f,I=i.m.g,L=0,B=0,y=0,M=[],O=0,N=0,$,w,S=r.getFontByName(t.f),b,x=0,k=wd(S);t.fWeight=k.weight,t.fStyle=k.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),c=t.finalText.length,t.finalLineHeight=t.lh;var P=t.tr/1e3*t.finalSize,V;if(t.sz)for(var H=!0,Z=t.sz[0],mt=t.sz[1],at,Q;H;){Q=this.buildFinalText(t.t),at=0,O=0,c=Q.length,P=t.tr/1e3*t.finalSize;var ft=-1;for(d=0;d<c;d+=1)V=Q[d].charCodeAt(0),u=!1,Q[d]===" "?ft=d:(V===13||V===3)&&(O=0,u=!0,at+=t.finalLineHeight||t.finalSize*1.2),r.chars?(b=r.getCharData(Q[d],S.fStyle,S.fFamily),x=u?0:b.w*t.finalSize/100):x=r.measureText(Q[d],t.f,t.finalSize),O+x>Z&&Q[d]!==" "?(ft===-1?c+=1:d=ft,at+=t.finalLineHeight||t.finalSize*1.2,Q.splice(d,ft===d?1:0,"\r"),ft=-1,O=0):(O+=x,O+=P);at+=S.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&mt<at?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=Q,c=t.finalText.length,H=!1)}O=-P,x=0;var ot=0,K;for(d=0;d<c;d+=1)if(u=!1,K=t.finalText[d],V=K.charCodeAt(0),V===13||V===3?(ot=0,M.push(O),N=O>N?O:N,O=-2*P,f="",u=!0,y+=1):f=K,r.chars?(b=r.getCharData(K,S.fStyle,r.getFontByName(t.f).fFamily),x=u?0:b.w*t.finalSize/100):x=r.measureText(f,t.f,t.finalSize),K===" "?ot+=x+P:(O+=x+P+ot,ot=0),n.push({l:x,an:x,add:L,n:u,anIndexes:[],val:f,line:y,animatorJustifyOffset:0}),I==2){if(L+=x,f===""||f===" "||d===c-1){for((f===""||f===" ")&&(L-=x);B<=d;)n[B].an=L,n[B].ind=T,n[B].extra=x,B+=1;T+=1,L=0}}else if(I==3){if(L+=x,f===""||d===c-1){for(f===""&&(L-=x);B<=d;)n[B].an=L,n[B].ind=T,n[B].extra=x,B+=1;L=0,T+=1}}else n[T].ind=T,n[T].extra=0,T+=1;if(t.l=n,N=O>N?O:N,M.push(O),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=N,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=M;var _=i.a,R,m;w=_.length;var v,U,F=[];for($=0;$<w;$+=1){for(R=_[$],R.a.sc&&(t.strokeColorAnim=!0),R.a.sw&&(t.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(t.fillColorAnim=!0),U=0,v=R.s.b,d=0;d<c;d+=1)m=n[d],m.anIndexes[$]=U,(v==1&&m.val!==""||v==2&&m.val!==""&&m.val!==" "||v==3&&(m.n||m.val==" "||d==c-1)||v==4&&(m.n||d==c-1))&&(R.s.rn===1&&F.push(U),U+=1);i.a[$].s.totalChars=U;var it=-1,ht;if(R.s.rn===1)for(d=0;d<c;d+=1)m=n[d],it!=m.anIndexes[$]&&(it=m.anIndexes[$],ht=F.splice(Math.floor(Math.random()*F.length),1)[0]),m.anIndexes[$]=ht}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=S.ascent*t.finalSize/100},me.prototype.updateDocumentData=function(t,r){r=r===void 0?this.keysIndex:r;var i=this.copyData({},this.data.d.k[r].s);i=this.copyData(i,t),this.data.d.k[r].s=i,this.recalculate(r),this.setCurrentData(i),this.elem.addDynamicProperty(this)},me.prototype.recalculate=function(t){var r=this.data.d.k[t].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},me.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},me.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var wf=function(){var t=Math.max,r=Math.min,i=Math.floor;function n(c,u){this._currentTextLength=-1,this.k=!1,this.data=u,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=et.getProp(c,u.s||{k:0},0,0,this),"e"in u?this.e=et.getProp(c,u.e,0,0,this):this.e={v:100},this.o=et.getProp(c,u.o||{k:0},0,0,this),this.xe=et.getProp(c,u.xe||{k:0},0,0,this),this.ne=et.getProp(c,u.ne||{k:0},0,0,this),this.sm=et.getProp(c,u.sm||{k:100},0,0,this),this.a=et.getProp(c,u.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(u){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var T=0,f=0,I=1,L=1;this.ne.v>0?T=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:L=1+this.xe.v/100;var B=jo.getBezierEasing(T,f,I,L).get,y=0,M=this.finalS,O=this.finalE,N=this.data.sh;if(N===2)O===M?y=u>=O?1:0:y=t(0,r(.5/(O-M)+(u-M)/(O-M),1)),y=B(y);else if(N===3)O===M?y=u>=O?0:1:y=1-t(0,r(.5/(O-M)+(u-M)/(O-M),1)),y=B(y);else if(N===4)O===M?y=0:(y=t(0,r(.5/(O-M)+(u-M)/(O-M),1)),y<.5?y*=2:y=1-2*(y-.5)),y=B(y);else if(N===5){if(O===M)y=0;else{var $=O-M;u=r(t(0,u+.5-M),O-M);var w=-$/2+u,S=$/2;y=Math.sqrt(1-w*w/(S*S))}y=B(y)}else N===6?(O===M?y=0:(u=r(t(0,u+.5-M),O-M),y=(1+Math.cos(Math.PI+Math.PI*2*u/(O-M)))/2),y=B(y)):(u>=i(M)&&(u-M<0?y=t(0,r(r(O,1)-(M-u),1)):y=t(0,r(O-u,1))),y=B(y));if(this.sm.v!==100){var b=this.sm.v*.01;b===0&&(b=1e-8);var x=.5-b*.5;y<x?y=0:(y=(y-x)/b,y>1&&(y=1))}return y*this.a.v},getValue:function(u){this.iterateDynamicProperties(),this._mdf=u||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,u&&this.data.r===2&&(this.e.v=this._currentTextLength);var T=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/T,I=this.s.v/T+f,L=this.e.v/T+f;if(I>L){var B=I;I=L,L=B}this.finalS=I,this.finalE=L}},z([ee],n);function d(c,u,T){return new n(c,u,T)}return{getTextSelectorProp:d}}();function Lf(t,r,i){var n={propType:!1},d=et.getProp,c=r.a;this.a={r:c.r?d(t,c.r,0,xt,i):n,rx:c.rx?d(t,c.rx,0,xt,i):n,ry:c.ry?d(t,c.ry,0,xt,i):n,sk:c.sk?d(t,c.sk,0,xt,i):n,sa:c.sa?d(t,c.sa,0,xt,i):n,s:c.s?d(t,c.s,1,.01,i):n,a:c.a?d(t,c.a,1,0,i):n,o:c.o?d(t,c.o,0,.01,i):n,p:c.p?d(t,c.p,1,0,i):n,sw:c.sw?d(t,c.sw,0,0,i):n,sc:c.sc?d(t,c.sc,1,0,i):n,fc:c.fc?d(t,c.fc,1,0,i):n,fh:c.fh?d(t,c.fh,0,0,i):n,fs:c.fs?d(t,c.fs,0,.01,i):n,fb:c.fb?d(t,c.fb,0,.01,i):n,t:c.t?d(t,c.t,0,0,i):n},this.s=wf.getTextSelectorProp(t,r.s,i),this.s.t=r.s.t}function mi(t,r,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=r,this._elem=i,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}mi.prototype.searchProperties=function(){var t,r=this._textData.a.length,i,n=et.getProp;for(t=0;t<r;t+=1)i=this._textData.a[t],this._animatorsData[t]=new Lf(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},mi.prototype.getMeasures=function(t,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,n=this._animatorsData,d=this._textData,c=this.mHelper,u=this._renderType,T=this.renderedLetters.length,f,I,L,B,y=t.l,M,O,N,$,w,S,b,x,k,P,V,H,Z,mt,at;if(this._hasMaskedPath){if(at=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Q=at.v;this._pathData.r.v&&(Q=Q.reverse()),M={tLength:0,segments:[]},B=Q._length-1;var ft;for(H=0,L=0;L<B;L+=1)ft=or.buildBezierData(Q.v[L],Q.v[L+1],[Q.o[L][0]-Q.v[L][0],Q.o[L][1]-Q.v[L][1]],[Q.i[L+1][0]-Q.v[L+1][0],Q.i[L+1][1]-Q.v[L+1][1]]),M.tLength+=ft.segmentLength,M.segments.push(ft),H+=ft.segmentLength;L=B,at.v.c&&(ft=or.buildBezierData(Q.v[L],Q.v[0],[Q.o[L][0]-Q.v[L][0],Q.o[L][1]-Q.v[L][1]],[Q.i[0][0]-Q.v[0][0],Q.i[0][1]-Q.v[0][1]]),M.tLength+=ft.segmentLength,M.segments.push(ft),H+=ft.segmentLength),this._pathData.pi=M}if(M=this._pathData.pi,O=this._pathData.f.v,b=0,S=1,$=0,w=!0,P=M.segments,O<0&&at.v.c)for(M.tLength<Math.abs(O)&&(O=-Math.abs(O)%M.tLength),b=P.length-1,k=P[b].points,S=k.length-1;O<0;)O+=k[S].partialLength,S-=1,S<0&&(b-=1,k=P[b].points,S=k.length-1);k=P[b].points,x=k[S-1],N=k[S],V=N.partialLength}B=y.length,f=0,I=0;var ot=t.finalSize*1.2*.714,K=!0,_,R,m,v,U;v=n.length;var F,it=-1,ht,pt,It,kt=O,jt=b,ye=S,ar=-1,Ee,re,Le,Lt,st,vr,jr,gr,nr="",br=this.defaultPropsArray,yr;if(t.j===2||t.j===1){var Te=0,Wr=0,Yr=t.j===2?-.5:-1,Ze=0,qr=!0;for(L=0;L<B;L+=1)if(y[L].n){for(Te&&(Te+=Wr);Ze<L;)y[Ze].animatorJustifyOffset=Te,Ze+=1;Te=0,qr=!0}else{for(m=0;m<v;m+=1)_=n[m].a,_.t.propType&&(qr&&t.j===2&&(Wr+=_.t.v*Yr),R=n[m].s,F=R.getMult(y[L].anIndexes[m],d.a[m].s.totalChars),F.length?Te+=_.t.v*F[0]*Yr:Te+=_.t.v*F*Yr);qr=!1}for(Te&&(Te+=Wr);Ze<L;)y[Ze].animatorJustifyOffset=Te,Ze+=1}for(L=0;L<B;L+=1){if(c.reset(),Ee=1,y[L].n)f=0,I+=t.yOffset,I+=K?1:0,O=kt,K=!1,this._hasMaskedPath&&(b=jt,S=ye,k=P[b].points,x=k[S-1],N=k[S],V=N.partialLength,$=0),nr="",gr="",vr="",yr="",br=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ar!==y[L].line){switch(t.j){case 1:O+=H-t.lineWidths[y[L].line];break;case 2:O+=(H-t.lineWidths[y[L].line])/2;break;default:break}ar=y[L].line}it!==y[L].ind&&(y[it]&&(O+=y[it].extra),O+=y[L].an/2,it=y[L].ind),O+=i[0]*y[L].an*.005;var Xe=0;for(m=0;m<v;m+=1)_=n[m].a,_.p.propType&&(R=n[m].s,F=R.getMult(y[L].anIndexes[m],d.a[m].s.totalChars),F.length?Xe+=_.p.v[0]*F[0]:Xe+=_.p.v[0]*F),_.a.propType&&(R=n[m].s,F=R.getMult(y[L].anIndexes[m],d.a[m].s.totalChars),F.length?Xe+=_.a.v[0]*F[0]:Xe+=_.a.v[0]*F);for(w=!0,this._pathData.a.v&&(O=y[0].an*.5+(H-this._pathData.f.v-y[0].an*.5-y[y.length-1].an*.5)*it/(B-1),O+=this._pathData.f.v);w;)$+V>=O+Xe||!k?(Z=(O+Xe-$)/N.partialLength,pt=x.point[0]+(N.point[0]-x.point[0])*Z,It=x.point[1]+(N.point[1]-x.point[1])*Z,c.translate(-i[0]*y[L].an*.005,-(i[1]*ot)*.01),w=!1):k&&($+=N.partialLength,S+=1,S>=k.length&&(S=0,b+=1,P[b]?k=P[b].points:at.v.c?(S=0,b=0,k=P[b].points):($-=N.partialLength,k=null)),k&&(x=N,N=k[S],V=N.partialLength));ht=y[L].an/2-y[L].add,c.translate(-ht,0,0)}else ht=y[L].an/2-y[L].add,c.translate(-ht,0,0),c.translate(-i[0]*y[L].an*.005,-i[1]*ot*.01,0);for(m=0;m<v;m+=1)_=n[m].a,_.t.propType&&(R=n[m].s,F=R.getMult(y[L].anIndexes[m],d.a[m].s.totalChars),(f!==0||t.j!==0)&&(this._hasMaskedPath?F.length?O+=_.t.v*F[0]:O+=_.t.v*F:F.length?f+=_.t.v*F[0]:f+=_.t.v*F));for(t.strokeWidthAnim&&(Le=t.sw||0),t.strokeColorAnim&&(t.sc?re=[t.sc[0],t.sc[1],t.sc[2]]:re=[0,0,0]),t.fillColorAnim&&t.fc&&(Lt=[t.fc[0],t.fc[1],t.fc[2]]),m=0;m<v;m+=1)_=n[m].a,_.a.propType&&(R=n[m].s,F=R.getMult(y[L].anIndexes[m],d.a[m].s.totalChars),F.length?c.translate(-_.a.v[0]*F[0],-_.a.v[1]*F[1],_.a.v[2]*F[2]):c.translate(-_.a.v[0]*F,-_.a.v[1]*F,_.a.v[2]*F));for(m=0;m<v;m+=1)_=n[m].a,_.s.propType&&(R=n[m].s,F=R.getMult(y[L].anIndexes[m],d.a[m].s.totalChars),F.length?c.scale(1+(_.s.v[0]-1)*F[0],1+(_.s.v[1]-1)*F[1],1):c.scale(1+(_.s.v[0]-1)*F,1+(_.s.v[1]-1)*F,1));for(m=0;m<v;m+=1){if(_=n[m].a,R=n[m].s,F=R.getMult(y[L].anIndexes[m],d.a[m].s.totalChars),_.sk.propType&&(F.length?c.skewFromAxis(-_.sk.v*F[0],_.sa.v*F[1]):c.skewFromAxis(-_.sk.v*F,_.sa.v*F)),_.r.propType&&(F.length?c.rotateZ(-_.r.v*F[2]):c.rotateZ(-_.r.v*F)),_.ry.propType&&(F.length?c.rotateY(_.ry.v*F[1]):c.rotateY(_.ry.v*F)),_.rx.propType&&(F.length?c.rotateX(_.rx.v*F[0]):c.rotateX(_.rx.v*F)),_.o.propType&&(F.length?Ee+=(_.o.v*F[0]-Ee)*F[0]:Ee+=(_.o.v*F-Ee)*F),t.strokeWidthAnim&&_.sw.propType&&(F.length?Le+=_.sw.v*F[0]:Le+=_.sw.v*F),t.strokeColorAnim&&_.sc.propType)for(st=0;st<3;st+=1)F.length?re[st]+=(_.sc.v[st]-re[st])*F[0]:re[st]+=(_.sc.v[st]-re[st])*F;if(t.fillColorAnim&&t.fc){if(_.fc.propType)for(st=0;st<3;st+=1)F.length?Lt[st]+=(_.fc.v[st]-Lt[st])*F[0]:Lt[st]+=(_.fc.v[st]-Lt[st])*F;_.fh.propType&&(F.length?Lt=rd(Lt,_.fh.v*F[0]):Lt=rd(Lt,_.fh.v*F)),_.fs.propType&&(F.length?Lt=td(Lt,_.fs.v*F[0]):Lt=td(Lt,_.fs.v*F)),_.fb.propType&&(F.length?Lt=ed(Lt,_.fb.v*F[0]):Lt=ed(Lt,_.fb.v*F))}}for(m=0;m<v;m+=1)_=n[m].a,_.p.propType&&(R=n[m].s,F=R.getMult(y[L].anIndexes[m],d.a[m].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,_.p.v[1]*F[0],-_.p.v[2]*F[1]):c.translate(0,_.p.v[1]*F,-_.p.v[2]*F):F.length?c.translate(_.p.v[0]*F[0],_.p.v[1]*F[1],-_.p.v[2]*F[2]):c.translate(_.p.v[0]*F,_.p.v[1]*F,-_.p.v[2]*F));if(t.strokeWidthAnim&&(vr=Le<0?0:Le),t.strokeColorAnim&&(jr="rgb("+Math.round(re[0]*255)+","+Math.round(re[1]*255)+","+Math.round(re[2]*255)+")"),t.fillColorAnim&&t.fc&&(gr="rgb("+Math.round(Lt[0]*255)+","+Math.round(Lt[1]*255)+","+Math.round(Lt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-t.ls),c.translate(0,i[1]*ot*.01+I,0),this._pathData.p.v){mt=(N.point[1]-x.point[1])/(N.point[0]-x.point[0]);var pi=Math.atan(mt)*180/Math.PI;N.point[0]<x.point[0]&&(pi+=180),c.rotate(-pi*Math.PI/180)}c.translate(pt,It,0),O-=i[0]*y[L].an*.005,y[L+1]&&it!==y[L+1].ind&&(O+=y[L].an/2,O+=t.tr*.001*t.finalSize)}else{switch(c.translate(f,I,0),t.ps&&c.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:c.translate(y[L].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[L].line]),0,0);break;case 2:c.translate(y[L].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[L].line])/2,0,0);break;default:break}c.translate(0,-t.ls),c.translate(ht,0,0),c.translate(i[0]*y[L].an*.005,i[1]*ot*.01,0),f+=y[L].l+t.tr*.001*t.finalSize}u==="html"?nr=c.toCSS():u==="svg"?nr=c.to2dCSS():br=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],yr=Ee}T<=L?(U=new el(yr,vr,jr,gr,nr,br),this.renderedLetters.push(U),T+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[L],this.lettersChangedFlag=U.update(yr,vr,jr,gr,nr,br)||this.lettersChangedFlag)}}},mi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},mi.prototype.mHelper=new ae,mi.prototype.defaultPropsArray=[],z([ee],mi);function $e(){}$e.prototype.initElement=function(t,r,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,r,i),this.textProperty=new me(this,t.t,this.dynamicProperties),this.textAnimator=new mi(t.t,this.renderType,this),this.initTransform(t,r,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},$e.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},$e.prototype.createPathShape=function(t,r){var i,n=r.length,d,c="";for(i=0;i<n;i+=1)r[i].ty==="sh"&&(d=r[i].ks.k,c+=Hd(d,d.i.length,!0,t));return c},$e.prototype.updateDocumentData=function(t,r){this.textProperty.updateDocumentData(t,r)},$e.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},$e.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},$e.prototype.applyTextPropertiesToMatrix=function(t,r,i,n,d){switch(t.ps&&r.translate(t.ps[0],t.ps[1]+t.ascent,0),r.translate(0,-t.ls,0),t.j){case 1:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0);break;default:break}r.translate(n,d,0)},$e.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},$e.prototype.emptyProp=new el,$e.prototype.destroy=function(){},$e.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Mf={shapes:[]};function ur(t,r,i){this.textSpans=[],this.renderType="svg",this.initElement(t,r,i)}z([Br,Qi,Qo,to,Ur,ts,$e],ur),ur.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=ut("text"))},ur.prototype.buildTextContents=function(t){for(var r=0,i=t.length,n=[],d="";r<i;)t[r]==="\r"||t[r]===""?(n.push(d),d=""):d+=t[r],r+=1;return n.push(d),n},ur.prototype.buildShapeData=function(t,r){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var n=i.it[i.it.length-1];n.s&&(n.s.k[0]=r,n.s.k[1]=r)}}return t},ur.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,r,i=this.textProperty.currentData;this.renderedLetters=tt(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var d=i.fWeight,c=i.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",i.t);var u=i.l||[],T=!!this.globalData.fontManager.chars;r=u.length;var f,I=this.mHelper,L="",B=this.data.singleShape,y=0,M=0,O=!0,N=i.tr*.001*i.finalSize;if(B&&!T&&!i.sz){var $=this.textContainer,w="start";switch(i.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}$.setAttribute("text-anchor",w),$.setAttribute("letter-spacing",N);var S=this.buildTextContents(i.finalText);for(r=S.length,M=i.ps?i.ps[1]+i.ascent:0,t=0;t<r;t+=1)f=this.textSpans[t].span||ut("tspan"),f.textContent=S[t],f.setAttribute("x",0),f.setAttribute("y",M),f.style.display="inherit",$.appendChild(f),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=f,M+=i.finalLineHeight;this.layerElement.appendChild($)}else{var b=this.textSpans.length,x;for(t=0;t<r;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!T||!B||t===0){if(f=b>t?this.textSpans[t].span:ut(T?"g":"text"),b<=t){if(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=f,T){var k=ut("g");f.appendChild(k),this.textSpans[t].childSpan=k}this.textSpans[t].span=f,this.layerElement.appendChild(f)}f.style.display="inherit"}if(I.reset(),B&&(u[t].n&&(y=-N,M+=i.yOffset,M+=O?1:0,O=!1),this.applyTextPropertiesToMatrix(i,I,u[t].line,y,M),y+=u[t].l||0,y+=N),T){x=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var P;if(x.t===1)P=new is(x.data,this.globalData,this);else{var V=Mf;x.data&&x.data.shapes&&(V=this.buildShapeData(x.data,i.finalSize)),P=new Ut(V,this.globalData,this)}if(this.textSpans[t].glyph){var H=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(H.layerElement),H.destroy()}this.textSpans[t].glyph=P,P._debug=!0,P.prepareFrame(0),P.renderFrame(),this.textSpans[t].childSpan.appendChild(P.layerElement),x.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else B&&f.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),f.textContent=u[t].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&f&&f.setAttribute("d",L)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},ur.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},ur.prototype.getValue=function(){var t,r=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)i=this.textSpans[t].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},ur.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,r,i=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;r=n.length;var d,c,u;for(t=0;t<r;t+=1)n[t].n||(d=i[t],c=this.textSpans[t].span,u=this.textSpans[t].glyph,u&&u.renderFrame(),d._mdf.m&&c.setAttribute("transform",d.m),d._mdf.o&&c.setAttribute("opacity",d.o),d._mdf.sw&&c.setAttribute("stroke-width",d.sw),d._mdf.sc&&c.setAttribute("stroke",d.sc),d._mdf.fc&&c.setAttribute("fill",d.fc))}};function rl(t,r,i){this.initElement(t,r,i)}z([es],rl),rl.prototype.createContent=function(){var t=ut("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function Gr(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initFrame(),this.initTransform(t,r,i),this.initHierarchy()}Gr.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},Gr.prototype.renderFrame=function(){},Gr.prototype.getBaseElement=function(){return null},Gr.prototype.destroy=function(){},Gr.prototype.sourceRectAtTime=function(){},Gr.prototype.hide=function(){},z([Br,Qi,to,Ur],Gr);function Kt(){}z([ne],Kt),Kt.prototype.createNull=function(t){return new Gr(t,this.globalData,this)},Kt.prototype.createShape=function(t){return new Ut(t,this.globalData,this)},Kt.prototype.createText=function(t){return new ur(t,this.globalData,this)},Kt.prototype.createImage=function(t){return new es(t,this.globalData,this)},Kt.prototype.createSolid=function(t){return new rl(t,this.globalData,this)},Kt.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var r=this.globalData.defs;this.setupGlobalData(t,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=ut("clipPath"),n=ut("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var d=ge();i.setAttribute("id",d),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+E()+"#"+d+")"),r.appendChild(i),this.layers=t.layers,this.elements=tt(t.layers.length)},Kt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,r=this.layers?this.layers.length:0;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Kt.prototype.updateContainerSize=function(){},Kt.prototype.findIndexByInd=function(t){var r=0,i=this.layers.length;for(r=0;r<i;r+=1)if(this.layers[r].ind===t)return r;return-1},Kt.prototype.buildItem=function(t){var r=this.elements;if(!(r[t]||this.layers[t].ty===99)){r[t]=!0;var i=this.createItem(this.layers[t]);if(r[t]=i,Js()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(i);else{var d=r[n],c=d.getMatte(this.layers[t].tt);i.setMatte(c)}}}},Kt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var r=0,i=this.elements.length;r<i;){if(this.elements[r]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):r-1,d=this.elements[n],c=d.getMatte(this.layers[r].tt);t.setMatte(c);break}r+=1}}},Kt.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Kt.prototype.appendElementInPos=function(t,r){var i=t.getBaseElement();if(i){for(var n=0,d;n<r;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(d=this.elements[n].getBaseElement()),n+=1;d?this.layerElement.insertBefore(i,d):this.layerElement.appendChild(i)}},Kt.prototype.hide=function(){this.layerElement.style.display="none"},Kt.prototype.show=function(){this.layerElement.style.display="block"};function fr(){}z([Br,Qi,to,Ur,ts],fr),fr.prototype.initElement=function(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initTransform(t,r,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},fr.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},fr.prototype.renderInnerContent=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},fr.prototype.setElements=function(t){this.elements=t},fr.prototype.getElements=function(){return this.elements},fr.prototype.destroyElements=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy()},fr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function is(t,r,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(t,r,i),this.tm=t.tm?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0}}z([Kt,fr,Qo],is),is.prototype.createComp=function(t){return new is(t,this.globalData,this)};function il(t,r){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=ut("svg");var i="";if(r&&r.title){var n=ut("title"),d=ge();n.setAttribute("id",d),n.textContent=r.title,this.svgElement.appendChild(n),i+=d}if(r&&r.description){var c=ut("desc"),u=ge();c.setAttribute("id",u),c.textContent=r.description,this.svgElement.appendChild(c),i+=" "+u}i&&this.svgElement.setAttribute("aria-labelledby",i);var T=ut("defs");this.svgElement.appendChild(T);var f=ut("g");this.svgElement.appendChild(f),this.layerElement=f,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:T,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return z([Kt],il),il.prototype.createComp=function(t){return new is(t,this.globalData,this)},Vu("svg",il),$r.registerModifier("tm",Ke),$r.registerModifier("pb",Wo),$r.registerModifier("rp",sr),$r.registerModifier("rd",Yo),$r.registerModifier("zz",Ko),$r.registerModifier("op",Zo),wt})});var ga=globalThis,ba=ga.ShadowRoot&&(ga.ShadyCSS===void 0||ga.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sl=Symbol(),jd=new WeakMap,os=class{constructor(o,e,s){if(this._$cssResult$=!0,s!==sl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o,e=this.t;if(ba&&o===void 0){let s=e!==void 0&&e.length===1;s&&(o=jd.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),s&&jd.set(e,o))}return o}toString(){return this.cssText}},Wd=l=>new os(typeof l=="string"?l:l+"",void 0,sl),W=(l,...o)=>{let e=l.length===1?l[0]:o.reduce((s,a,h)=>s+(p=>{if(p._$cssResult$===!0)return p.cssText;if(typeof p=="number")return p;throw Error("Value passed to 'css' function must be a 'css' function result: "+p+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+l[h+1],l[0]);return new os(e,l,sl)},al=(l,o)=>{if(ba)l.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of o){let s=document.createElement("style"),a=ga.litNonce;a!==void 0&&s.setAttribute("nonce",a),s.textContent=e.cssText,l.appendChild(s)}},ya=ba?l=>l:l=>l instanceof CSSStyleSheet?(o=>{let e="";for(let s of o.cssRules)e+=s.cssText;return Wd(e)})(l):l;var{is:$f,defineProperty:Vf,getOwnPropertyDescriptor:Bf,getOwnPropertyNames:Uf,getOwnPropertySymbols:Hf,getPrototypeOf:Gf}=Object,Kr=globalThis,Yd=Kr.trustedTypes,jf=Yd?Yd.emptyScript:"",nl=Kr.reactiveElementPolyfillSupport,ss=(l,o)=>l,as={toAttribute(l,o){switch(o){case Boolean:l=l?jf:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,o){let e=l;switch(o){case Boolean:e=l!==null;break;case Number:e=l===null?null:Number(l);break;case Object:case Array:try{e=JSON.parse(l)}catch{e=null}}return e}},Ea=(l,o)=>!$f(l,o),qd={attribute:!0,type:String,converter:as,reflect:!1,hasChanged:Ea},Kd,Zd;(Kd=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Zd=Kr.litPropertyMetadata)!=null||(Kr.litPropertyMetadata=new WeakMap);var Er=class extends HTMLElement{static addInitializer(o){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,e=qd){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(o,e),!e.noAccessor){let s=Symbol(),a=this.getPropertyDescriptor(o,s,e);a!==void 0&&Vf(this.prototype,o,a)}}static getPropertyDescriptor(o,e,s){var p;let{get:a,set:h}=(p=Bf(this.prototype,o))!=null?p:{get(){return this[e]},set(E){this[e]=E}};return{get(){return a==null?void 0:a.call(this)},set(E){let C=a==null?void 0:a.call(this);h.call(this,E),this.requestUpdate(o,C,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var e;return(e=this.elementProperties.get(o))!=null?e:qd}static _$Ei(){if(this.hasOwnProperty(ss("elementProperties")))return;let o=Gf(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(ss("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ss("properties"))){let e=this.properties,s=[...Uf(e),...Hf(e)];for(let a of s)this.createProperty(a,e[a])}let o=this[Symbol.metadata];if(o!==null){let e=litPropertyMetadata.get(o);if(e!==void 0)for(let[s,a]of e)this.elementProperties.set(s,a)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let a=this._$Eu(e,s);a!==void 0&&this._$Eh.set(a,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let e=[];if(Array.isArray(o)){let s=new Set(o.flat(1/0).reverse());for(let a of s)e.unshift(ya(a))}else o!==void 0&&e.push(ya(o));return e}static _$Eu(o,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(e=>e(this))}addController(o){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((s=o.hostConnected)==null||s.call(o))}removeController(o){var e;(e=this._$EO)==null||e.delete(o)}_$E_(){let o=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(o.set(s,this[s]),delete this[s]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var e;let o=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return al(o,this.constructor.elementStyles),o}connectedCallback(){var o,e;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var a;return(a=s.hostConnected)==null?void 0:a.call(s)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(o,e,s){this._$AK(o,s)}_$EC(o,e){var h;let s=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,s);if(a!==void 0&&s.reflect===!0){let p=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:as).toAttribute(e,s.type);this._$Em=o,p==null?this.removeAttribute(a):this.setAttribute(a,p),this._$Em=null}}_$AK(o,e){var h;let s=this.constructor,a=s._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let p=s.getPropertyOptions(a),E=typeof p.converter=="function"?{fromAttribute:p.converter}:((h=p.converter)==null?void 0:h.fromAttribute)!==void 0?p.converter:as;this._$Em=a,this[a]=E.fromAttribute(e,p.type),this._$Em=null}}requestUpdate(o,e,s){var a;if(o!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(o)),!((a=s.hasChanged)!=null?a:Ea)(this[o],e))return;this.P(o,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,e,s){var a;this._$AL.has(o)||this._$AL.set(o,e),s.reflect===!0&&this._$Em!==o&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[p,E]of this._$Ep)this[p]=E;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[p,E]of h)E.wrapped!==!0||this._$AL.has(p)||this[p]===void 0||this.P(p,this[p],E)}let o=!1,e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),(a=this._$EO)==null||a.forEach(h=>{var p;return(p=h.hostUpdate)==null?void 0:p.call(h)}),this.update(e)):this._$EU()}catch(h){throw o=!1,this._$EU(),h}o&&this._$AE(e)}willUpdate(o){}_$AE(o){var e;(e=this._$EO)==null||e.forEach(s=>{var a;return(a=s.hostUpdated)==null?void 0:a.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(o){}firstUpdated(o){}},Xd;Er.elementStyles=[],Er.shadowRootOptions={mode:"open"},Er[ss("elementProperties")]=new Map,Er[ss("finalized")]=new Map,nl==null||nl({ReactiveElement:Er}),((Xd=Kr.reactiveElementVersions)!=null?Xd:Kr.reactiveElementVersions=[]).push("2.0.4");var ls=globalThis,Ta=ls.trustedTypes,Jd=Ta?Ta.createPolicy("lit-html",{createHTML:l=>l}):void 0,dl="$lit$",Tr=`lit$${Math.random().toFixed(9).slice(2)}$`,hl="?"+Tr,Wf=`<${hl}>`,vi=document,cs=()=>vi.createComment(""),ds=l=>l===null||typeof l!="object"&&typeof l!="function",ml=Array.isArray,sh=l=>ml(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",ll=`[
|
3
|
-
\f\r]`,
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
1
|
+
"use strict";(()=>{var Zf=Object.create;var bl=Object.defineProperty;var sh=Object.getOwnPropertyDescriptor;var Jf=Object.getOwnPropertyNames;var Qf=Object.getPrototypeOf,tv=Object.prototype.hasOwnProperty;var ev=(l,o)=>()=>(o||l((o={exports:{}}).exports,o),o.exports);var rv=(l,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of Jf(o))!tv.call(l,a)&&a!==e&&bl(l,a,{get:()=>o[a],enumerable:!(s=sh(o,a))||s.enumerable});return l};var iv=(l,o,e)=>(e=l!=null?Zf(Qf(l)):{},rv(o||!l||!l.__esModule?bl(e,"default",{value:l,enumerable:!0}):e,l));var v=(l,o,e,s)=>{for(var a=s>1?void 0:s?sh(o,e):o,h=l.length-1,m;h>=0;h--)(m=l[h])&&(a=(s?m(o,e,a):m(a))||a);return s&&a&&bl(o,e,a),a};var Xh=ev((Cs,Xa)=>{typeof navigator<"u"&&function(l,o){typeof Cs=="object"&&typeof Xa<"u"?Xa.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=o())}(Cs,function(){"use strict";var l="http://www.w3.org/2000/svg",o="",e=!1,s=-999999,a=function(r){e=!!r},h=function(){return e},m=function(r){o=r},E=function(){return o};function w(t){return document.createElement(t)}function $(t,r){var i,n=t.length,d;for(i=0;i<n;i+=1){d=t[i].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function G(t,r){return Object.getOwnPropertyDescriptor(t,r)}function q(t){function r(){}return r.prototype=t,r}var rt=function(){function t(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].pause()},resume:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].resume()},setRate:function(i){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,n=this.audios.length;for(i=0;i<n;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),J=function(){function t(i,n){var d=0,c=[],u;switch(i){case"int16":case"uint8c":u=1;break;default:u=1.1;break}for(d=0;d<n;d+=1)c.push(u);return c}function r(i,n){return i==="float32"?new Float32Array(n):i==="int16"?new Int16Array(n):i==="uint8c"?new Uint8ClampedArray(n):t(i,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:t}();function tt(t){return Array.apply(null,{length:t})}function ct(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ct=function(i){return typeof i}:ct=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ct(t)}var Et=!0,vt=null,xt=null,St="",Bt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Ft=Math.pow,be=Math.sqrt,te=Math.floor,Xe=Math.max,Le=Math.min,De={};(function(){var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r,i=t.length;for(r=0;r<i;r+=1)De[t[r]]=Math[t[r]]})();function Ze(){return{}}De.random=Math.random,De.abs=function(t){var r=ct(t);if(r==="object"&&t.length){var i=tt(t.length),n,d=t.length;for(n=0;n<d;n+=1)i[n]=Math.abs(t[n]);return i}return Math.abs(t)};var Je=150,At=Math.PI/180,me=.5519;function Fe(t){Rt=!!t}function Qe(t){return Rt?Math.round(t):t}function yr(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function $e(t,r,i,n){this.type=t,this.currentTime=r,this.totalTime=i,this.direction=n<0?-1:1}function na(t,r){this.type=t,this.direction=r<0?-1:1}function md(t,r,i,n){this.type=t,this.currentLoop=i,this.totalLoops=r,this.direction=n<0?-1:1}function pd(t,r,i){this.type=t,this.firstFrame=r,this.totalFrames=i}function ud(t,r){this.type=t,this.target=r}function Xu(t,r){this.type="renderFrameError",this.nativeError=t,this.currentTime=r}function Zu(t){this.type="configError",this.nativeError=t}function Sy(t,r){this.type=t,this.nativeError=r}var ye=function(){var t=0;return function(){return t+=1,St+"__lottie_element_"+t}}();function sl(t,r,i){var n,d,c,u,T,f,I,L;switch(u=Math.floor(t*6),T=t*6-u,f=i*(1-r),I=i*(1-T*r),L=i*(1-(1-T)*r),u%6){case 0:n=i,d=L,c=f;break;case 1:n=I,d=i,c=f;break;case 2:n=f,d=i,c=L;break;case 3:n=f,d=I,c=i;break;case 4:n=L,d=f,c=i;break;case 5:n=i,d=f,c=I;break;default:break}return[n,d,c]}function al(t,r,i){var n=Math.max(t,r,i),d=Math.min(t,r,i),c=n-d,u,T=n===0?0:c/n,f=n/255;switch(n){case d:u=0;break;case t:u=r-i+c*(r<i?6:0),u/=6*c;break;case r:u=i-t+c*2,u/=6*c;break;case i:u=t-r+c*4,u/=6*c;break;default:break}return[u,T,f]}function fd(t,r){var i=al(t[0]*255,t[1]*255,t[2]*255);return i[1]+=r,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),sl(i[0],i[1],i[2])}function vd(t,r){var i=al(t[0]*255,t[1]*255,t[2]*255);return i[2]+=r,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),sl(i[0],i[1],i[2])}function gd(t,r){var i=al(t[0]*255,t[1]*255,t[2]*255);return i[0]+=r/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),sl(i[0],i[1],i[2])}var Iy=function(){var t=[],r,i;for(r=0;r<256;r+=1)i=r.toString(16),t[r]=i.length===1?"0"+i:i;return function(n,d,c){return n<0&&(n=0),d<0&&(d=0),c<0&&(c=0),"#"+t[n]+t[d]+t[c]}}(),Ju=function(r){Et=!!r},Qu=function(){return Et},tf=function(r){vt=r},la=function(){return vt},ky=function(r){xt=r},bd=function(){return xt},ca=function(r){Je=r},Zo=function(){return Je},ef=function(r){St=r},Cy=function(){return St};function ut(t){return document.createElementNS(l,t)}function da(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?da=function(i){return typeof i}:da=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},da(t)}var Jo=function(){var t=1,r=[],i,n,d={onmessage:function(){},postMessage:function(N){i({data:N})}},c={postMessage:function(N){d.onmessage({data:N})}};function u(y){if(window.Worker&&window.Blob&&h()){var N=new Blob(["var _workerSelf = self; self.onmessage = ",y.toString()],{type:"text/javascript"}),O=URL.createObjectURL(N);return new Worker(O)}return i=y,d}function T(){n||(n=u(function(N){function O(){function z(X,_){var R,p,g=X.length,U,F,it,ht;for(p=0;p<g;p+=1)if(R=X[p],"ks"in R&&!R.completed){if(R.completed=!0,R.hasMask){var pt=R.masksProperties;for(F=pt.length,U=0;U<F;U+=1)if(pt[U].pt.k.i)k(pt[U].pt.k);else for(ht=pt[U].pt.k.length,it=0;it<ht;it+=1)pt[U].pt.k[it].s&&k(pt[U].pt.k[it].s[0]),pt[U].pt.k[it].e&&k(pt[U].pt.k[it].e[0])}R.ty===0?(R.layers=b(R.refId,_),z(R.layers,_)):R.ty===4?A(R.shapes):R.ty===5&&ft(R)}}function C(X,_){if(X){var R=0,p=X.length;for(R=0;R<p;R+=1)X[R].t===1&&(X[R].data.layers=b(X[R].data.refId,_),z(X[R].data.layers,_))}}function S(X,_){for(var R=0,p=_.length;R<p;){if(_[R].id===X)return _[R];R+=1}return null}function b(X,_){var R=S(X,_);return R?R.layers.__used?JSON.parse(JSON.stringify(R.layers)):(R.layers.__used=!0,R.layers):null}function A(X){var _,R=X.length,p,g;for(_=R-1;_>=0;_-=1)if(X[_].ty==="sh")if(X[_].ks.k.i)k(X[_].ks.k);else for(g=X[_].ks.k.length,p=0;p<g;p+=1)X[_].ks.k[p].s&&k(X[_].ks.k[p].s[0]),X[_].ks.k[p].e&&k(X[_].ks.k[p].e[0]);else X[_].ty==="gr"&&A(X[_].it)}function k(X){var _,R=X.i.length;for(_=0;_<R;_+=1)X.i[_][0]+=X.v[_][0],X.i[_][1]+=X.v[_][1],X.o[_][0]+=X.v[_][0],X.o[_][1]+=X.v[_][1]}function D(X,_){var R=_?_.split("."):[100,100,100];return X[0]>R[0]?!0:R[0]>X[0]?!1:X[1]>R[1]?!0:R[1]>X[1]?!1:X[2]>R[2]?!0:R[2]>X[2]?!1:null}var V=function(){var X=[4,4,14];function _(p){var g=p.t.d;p.t.d={k:[{s:g,t:0}]}}function R(p){var g,U=p.length;for(g=0;g<U;g+=1)p[g].ty===5&&_(p[g])}return function(p){if(D(X,p.v)&&(R(p.layers),p.assets)){var g,U=p.assets.length;for(g=0;g<U;g+=1)p.assets[g].layers&&R(p.assets[g].layers)}}}(),H=function(){var X=[4,7,99];return function(_){if(_.chars&&!D(X,_.v)){var R,p=_.chars.length;for(R=0;R<p;R+=1){var g=_.chars[R];g.data&&g.data.shapes&&(A(g.data.shapes),g.data.ip=0,g.data.op=99999,g.data.st=0,g.data.sr=1,g.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[R].t||(g.data.shapes.push({ty:"no"}),g.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"})))}}}}(),Z=function(){var X=[5,7,15];function _(p){var g=p.t.p;typeof g.a=="number"&&(g.a={a:0,k:g.a}),typeof g.p=="number"&&(g.p={a:0,k:g.p}),typeof g.r=="number"&&(g.r={a:0,k:g.r})}function R(p){var g,U=p.length;for(g=0;g<U;g+=1)p[g].ty===5&&_(p[g])}return function(p){if(D(X,p.v)&&(R(p.layers),p.assets)){var g,U=p.assets.length;for(g=0;g<U;g+=1)p.assets[g].layers&&R(p.assets[g].layers)}}}(),mt=function(){var X=[4,1,9];function _(p){var g,U=p.length,F,it;for(g=0;g<U;g+=1)if(p[g].ty==="gr")_(p[g].it);else if(p[g].ty==="fl"||p[g].ty==="st")if(p[g].c.k&&p[g].c.k[0].i)for(it=p[g].c.k.length,F=0;F<it;F+=1)p[g].c.k[F].s&&(p[g].c.k[F].s[0]/=255,p[g].c.k[F].s[1]/=255,p[g].c.k[F].s[2]/=255,p[g].c.k[F].s[3]/=255),p[g].c.k[F].e&&(p[g].c.k[F].e[0]/=255,p[g].c.k[F].e[1]/=255,p[g].c.k[F].e[2]/=255,p[g].c.k[F].e[3]/=255);else p[g].c.k[0]/=255,p[g].c.k[1]/=255,p[g].c.k[2]/=255,p[g].c.k[3]/=255}function R(p){var g,U=p.length;for(g=0;g<U;g+=1)p[g].ty===4&&_(p[g].shapes)}return function(p){if(D(X,p.v)&&(R(p.layers),p.assets)){var g,U=p.assets.length;for(g=0;g<U;g+=1)p.assets[g].layers&&R(p.assets[g].layers)}}}(),nt=function(){var X=[4,4,18];function _(p){var g,U=p.length,F,it;for(g=U-1;g>=0;g-=1)if(p[g].ty==="sh")if(p[g].ks.k.i)p[g].ks.k.c=p[g].closed;else for(it=p[g].ks.k.length,F=0;F<it;F+=1)p[g].ks.k[F].s&&(p[g].ks.k[F].s[0].c=p[g].closed),p[g].ks.k[F].e&&(p[g].ks.k[F].e[0].c=p[g].closed);else p[g].ty==="gr"&&_(p[g].it)}function R(p){var g,U,F=p.length,it,ht,pt,It;for(U=0;U<F;U+=1){if(g=p[U],g.hasMask){var kt=g.masksProperties;for(ht=kt.length,it=0;it<ht;it+=1)if(kt[it].pt.k.i)kt[it].pt.k.c=kt[it].cl;else for(It=kt[it].pt.k.length,pt=0;pt<It;pt+=1)kt[it].pt.k[pt].s&&(kt[it].pt.k[pt].s[0].c=kt[it].cl),kt[it].pt.k[pt].e&&(kt[it].pt.k[pt].e[0].c=kt[it].cl)}g.ty===4&&_(g.shapes)}}return function(p){if(D(X,p.v)&&(R(p.layers),p.assets)){var g,U=p.assets.length;for(g=0;g<U;g+=1)p.assets[g].layers&&R(p.assets[g].layers)}}}();function Q(X){X.__complete||(mt(X),V(X),H(X),Z(X),nt(X),z(X.layers,X.assets),C(X.chars,X.assets),X.__complete=!0)}function ft(X){X.t.a.length===0&&"m"in X.t.p}var st={};return st.completeData=Q,st.checkColors=mt,st.checkChars=H,st.checkPathProperties=Z,st.checkShapes=nt,st.completeLayers=z,st}if(c.dataManager||(c.dataManager=O()),c.assetLoader||(c.assetLoader=function(){function z(S){var b=S.getResponseHeader("content-type");return b&&S.responseType==="json"&&b.indexOf("json")!==-1||S.response&&da(S.response)==="object"?S.response:S.response&&typeof S.response=="string"?JSON.parse(S.response):S.responseText?JSON.parse(S.responseText):null}function C(S,b,A,k){var D,V=new XMLHttpRequest;try{V.responseType="json"}catch{}V.onreadystatechange=function(){if(V.readyState===4)if(V.status===200)D=z(V),A(D);else try{D=z(V),A(D)}catch(H){k&&k(H)}};try{V.open(["G","E","T"].join(""),S,!0)}catch{V.open(["G","E","T"].join(""),b+"/"+S,!0)}V.send()}return{load:C}}()),N.data.type==="loadAnimation")c.assetLoader.load(N.data.path,N.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:N.data.id,payload:z,status:"success"})},function(){c.postMessage({id:N.data.id,status:"error"})});else if(N.data.type==="complete"){var M=N.data.animation;c.dataManager.completeData(M),c.postMessage({id:N.data.id,payload:M,status:"success"})}else N.data.type==="loadData"&&c.assetLoader.load(N.data.path,N.data.fullPath,function(z){c.postMessage({id:N.data.id,payload:z,status:"success"})},function(){c.postMessage({id:N.data.id,status:"error"})})}),n.onmessage=function(y){var N=y.data,O=N.id,M=r[O];r[O]=null,N.status==="success"?M.onComplete(N.payload):M.onError&&M.onError()})}function f(y,N){t+=1;var O="processId_"+t;return r[O]={onComplete:y,onError:N},O}function I(y,N,O){T();var M=f(N,O);n.postMessage({type:"loadAnimation",path:y,fullPath:window.location.origin+window.location.pathname,id:M})}function L(y,N,O){T();var M=f(N,O);n.postMessage({type:"loadData",path:y,fullPath:window.location.origin+window.location.pathname,id:M})}function B(y,N,O){T();var M=f(N,O);n.postMessage({type:"complete",animation:y,id:M})}return{loadAnimation:I,loadData:L,completeAnimation:B}}(),rf=function(){var t=function(){var C=w("canvas");C.width=1,C.height=1;var S=C.getContext("2d");return S.fillStyle="rgba(0,0,0,0)",S.fillRect(0,0,1,1),C}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(C,S,b){var A="";if(C.e)A=C.p;else if(S){var k=C.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),A=S+k}else A=b,A+=C.u?C.u:"",A+=C.p;return A}function d(C){var S=0,b=setInterval((function(){var A=C.getBBox();(A.width||S>500)&&(this._imageLoaded(),clearInterval(b)),S+=1}).bind(this),50)}function c(C){var S=n(C,this.assetsPath,this.path),b=ut("image");Bt?this.testImageLoaded(b):b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),b.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(b):this._elementHelper.appendChild(b);var A={img:b,assetData:C};return A}function u(C){var S=n(C,this.assetsPath,this.path),b=w("img");b.crossOrigin="anonymous",b.addEventListener("load",this._imageLoaded,!1),b.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),b.src=S;var A={img:b,assetData:C};return A}function T(C){var S={assetData:C},b=n(C,this.assetsPath,this.path);return Jo.loadData(b,(function(A){S.img=A,this._footageLoaded()}).bind(this),(function(){S.img={},this._footageLoaded()}).bind(this)),S}function f(C,S){this.imagesLoadedCb=S;var b,A=C.length;for(b=0;b<A;b+=1)C[b].layers||(!C[b].t||C[b].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(C[b]))):C[b].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(C[b]))))}function I(C){this.path=C||""}function L(C){this.assetsPath=C||""}function B(C){for(var S=0,b=this.images.length;S<b;){if(this.images[S].assetData===C)return this.images[S].img;S+=1}return null}function y(){this.imagesLoadedCb=null,this.images.length=0}function N(){return this.totalImages===this.loadedAssets}function O(){return this.totalFootages===this.loadedFootagesCount}function M(C,S){C==="svg"?(this._elementHelper=S,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function z(){this._imageLoaded=r.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=T.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return z.prototype={loadAssets:f,setAssetsPath:L,setPath:I,loadedImages:N,loadedFootages:O,destroy:y,getAsset:B,createImgData:u,createImageData:c,imageLoaded:r,footageLoaded:i,setCacheType:M},z}();function yd(){}yd.prototype={triggerEvent:function(r,i){if(this._cbs[r])for(var n=this._cbs[r],d=0;d<n.length;d+=1)n[d](i)},addEventListener:function(r,i){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(i),(function(){this.removeEventListener(r,i)}).bind(this)},removeEventListener:function(r,i){if(!i)this._cbs[r]=null;else if(this._cbs[r]){for(var n=0,d=this._cbs[r].length;n<d;)this._cbs[r][n]===i&&(this._cbs[r].splice(n,1),n-=1,d-=1),n+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var of=function(){function t(r){for(var i=r.split(`\r
|
2
|
+
`),n={},d,c=0,u=0;u<i.length;u+=1)d=i[u].split(":"),d.length===2&&(n[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return n}return function(r){for(var i=[],n=0;n<r.length;n+=1){var d=r[n],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[n].cm)}catch{try{c.payload=t(r[n].cm)}catch{c.payload={name:r[n].cm}}}i.push(c)}return i}}(),sf=function(){function t(r){this.compositions.push(r)}return function(){function r(i){for(var n=0,d=this.compositions.length;n<d;){if(this.compositions[n].data&&this.compositions[n].data.nm===i)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=t,r}}(),Qo={},af=function(r,i){Qo[r]=i};function nf(t){return Qo[t]}function lf(){if(Qo.canvas)return"canvas";for(var t in Qo)if(Qo[t])return t;return""}function ts(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ts=function(i){return typeof i}:ts=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ts(t)}var dt=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=ye(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Qu(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=sf(),this.imagePreloader=new rf,this.audioController=rt(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new $e("drawnFrame",0,0,0),this.expressionsPlugin=la()};$([yd],dt),dt.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var r="svg";t.animType?r=t.animType:t.renderer&&(r=t.renderer);var i=nf(r);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Jo.loadAnimation(t.path,this.configAnimation,this.onSetupError))},dt.prototype.onSetupError=function(){this.trigger("data_failed")},dt.prototype.setupAnimation=function(t){Jo.completeAnimation(t,this.configAnimation)},dt.prototype.setData=function(t,r){r&&ts(r)!=="object"&&(r=JSON.parse(r));var i={wrapper:t,animationData:r},n=t.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:lf()||"canvas";var d=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";d==="false"?i.loop=!1:d==="true"?i.loop=!0:d!==""&&(i.loop=parseInt(d,10));var c=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;i.autoplay=c!=="false",i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var u=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";u==="false"&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},dt.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var r=this.animationData.layers,i,n=r.length,d=t.layers,c,u=d.length;for(c=0;c<u;c+=1)for(i=0;i<n;){if(r[i].id===d[c].id){r[i]=d[c];break}i+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,i=0;i<n;i+=1)this.animationData.assets.push(t.assets[i]);this.animationData.__complete=!1,Jo.completeAnimation(this.animationData,this.onSegmentComplete)},dt.prototype.onSegmentComplete=function(t){this.animationData=t;var r=la();r&&r.initExpressions(this),this.loadNextSegment()},dt.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=t.shift();this.timeCompleted=r.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Jo.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},dt.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},dt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},dt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},dt.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=of(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},dt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},dt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=la();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},dt.prototype.resize=function(t,r){var i=typeof t=="number"?t:void 0,n=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(i,n)},dt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},dt.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")},dt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},dt.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},dt.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},dt.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},dt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},dt.prototype.getMarkerData=function(t){for(var r,i=0;i<this.markers.length;i+=1)if(r=this.markers[i],r.payload&&r.payload.name===t)return r;return null},dt.prototype.goToAndStop=function(t,r,i){if(!(i&&this.name!==i)){var n=Number(t);if(isNaN(n)){var d=this.getMarkerData(t);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},dt.prototype.goToAndPlay=function(t,r,i){if(!(i&&this.name!==i)){var n=Number(t);if(isNaN(n)){var d=this.getMarkerData(t);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(n,r,i);this.play()}},dt.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+t*this.frameModifier,i=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(i=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,r=0)):this.setCurrentRawFrameValue(r),i&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},dt.prototype.adjustSegment=function(t,r){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},dt.prototype.setSegment=function(t,r){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>r&&(i=r-t)),this.firstFrame=t,this.totalFrames=r-t,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},dt.prototype.playSegments=function(t,r){if(r&&(this.segments.length=0),ts(t[0])==="object"){var i,n=t.length;for(i=0;i<n;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},dt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},dt.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},dt.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},dt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},dt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},dt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},dt.prototype.setLoop=function(t){this.loop=t},dt.prototype.setVolume=function(t,r){r&&this.name!==r||this.audioController.setVolume(t)},dt.prototype.getVolume=function(){return this.audioController.getVolume()},dt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},dt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},dt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},dt.prototype.getPath=function(){return this.path},dt.prototype.getAssetsPath=function(t){var r="";if(t.e)r=t.p;else if(this.assetsPath){var i=t.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),r=this.assetsPath+i}else r=this.path,r+=t.u?t.u:"",r+=t.p;return r},dt.prototype.getAssetData=function(t){for(var r=0,i=this.assets.length;r<i;){if(t===this.assets[r].id)return this.assets[r];r+=1}return null},dt.prototype.hide=function(){this.renderer.hide()},dt.prototype.show=function(){this.renderer.show()},dt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},dt.prototype.updateDocumentData=function(t,r,i){try{var n=this.renderer.getElementByPath(t);n.updateDocumentData(r,i)}catch{}},dt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new $e(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new md(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new na(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new pd(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new ud(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new $e(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new md(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new na(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new pd(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new ud(t,this))},dt.prototype.triggerRenderFrameError=function(t){var r=new Xu(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},dt.prototype.triggerConfigError=function(t){var r=new Zu(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var Gt=function(){var t={},r=[],i=0,n=0,d=0,c=!0,u=!1;function T(_){for(var R=0,p=_.target;R<n;)r[R].animation===p&&(r.splice(R,1),R-=1,n-=1,p.isPaused||B()),R+=1}function f(_,R){if(!_)return null;for(var p=0;p<n;){if(r[p].elem===_&&r[p].elem!==null)return r[p].animation;p+=1}var g=new dt;return y(g,_),g.setData(_,R),g}function I(){var _,R=r.length,p=[];for(_=0;_<R;_+=1)p.push(r[_].animation);return p}function L(){d+=1,mt()}function B(){d-=1}function y(_,R){_.addEventListener("destroy",T),_.addEventListener("_active",L),_.addEventListener("_idle",B),r.push({elem:R,animation:_}),n+=1}function N(_){var R=new dt;return y(R,null),R.setParams(_),R}function O(_,R){var p;for(p=0;p<n;p+=1)r[p].animation.setSpeed(_,R)}function M(_,R){var p;for(p=0;p<n;p+=1)r[p].animation.setDirection(_,R)}function z(_){var R;for(R=0;R<n;R+=1)r[R].animation.play(_)}function C(_){var R=_-i,p;for(p=0;p<n;p+=1)r[p].animation.advanceTime(R);i=_,d&&!u?window.requestAnimationFrame(C):c=!0}function S(_){i=_,window.requestAnimationFrame(C)}function b(_){var R;for(R=0;R<n;R+=1)r[R].animation.pause(_)}function A(_,R,p){var g;for(g=0;g<n;g+=1)r[g].animation.goToAndStop(_,R,p)}function k(_){var R;for(R=0;R<n;R+=1)r[R].animation.stop(_)}function D(_){var R;for(R=0;R<n;R+=1)r[R].animation.togglePause(_)}function V(_){var R;for(R=n-1;R>=0;R-=1)r[R].animation.destroy(_)}function H(_,R,p){var g=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=g.length;for(U=0;U<F;U+=1)p&&g[U].setAttribute("data-bm-type",p),f(g[U],_);if(R&&F===0){p||(p="svg");var it=document.getElementsByTagName("body")[0];it.innerText="";var ht=w("div");ht.style.width="100%",ht.style.height="100%",ht.setAttribute("data-bm-type",p),it.appendChild(ht),f(ht,_)}}function Z(){var _;for(_=0;_<n;_+=1)r[_].animation.resize()}function mt(){!u&&d&&c&&(window.requestAnimationFrame(S),c=!1)}function nt(){u=!0}function Q(){u=!1,mt()}function ft(_,R){var p;for(p=0;p<n;p+=1)r[p].animation.setVolume(_,R)}function st(_){var R;for(R=0;R<n;R+=1)r[R].animation.mute(_)}function X(_){var R;for(R=0;R<n;R+=1)r[R].animation.unmute(_)}return t.registerAnimation=f,t.loadAnimation=N,t.setSpeed=O,t.setDirection=M,t.play=z,t.pause=b,t.stop=k,t.togglePause=D,t.searchAnimations=H,t.resize=Z,t.goToAndStop=A,t.destroy=V,t.freeze=nt,t.unfreeze=Q,t.setVolume=ft,t.mute=st,t.unmute=X,t.getRegisteredAnimations=I,t}(),es=function(){var t={};t.getBezierEasing=i;var r={};function i(S,b,A,k,D){var V=D||("bez_"+S+"_"+b+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var H=new C([S,b,A,k]);return r[V]=H,H}var n=4,d=.001,c=1e-7,u=10,T=11,f=1/(T-1),I=typeof Float32Array=="function";function L(S,b){return 1-3*b+3*S}function B(S,b){return 3*b-6*S}function y(S){return 3*S}function N(S,b,A){return((L(b,A)*S+B(b,A))*S+y(b))*S}function O(S,b,A){return 3*L(b,A)*S*S+2*B(b,A)*S+y(b)}function M(S,b,A,k,D){var V,H,Z=0;do H=b+(A-b)/2,V=N(H,k,D)-S,V>0?A=H:b=H;while(Math.abs(V)>c&&++Z<u);return H}function z(S,b,A,k){for(var D=0;D<n;++D){var V=O(b,A,k);if(V===0)return b;var H=N(b,A,k)-S;b-=H/V}return b}function C(S){this._p=S,this._mSampleValues=I?new Float32Array(T):new Array(T),this._precomputed=!1,this.get=this.get.bind(this)}return C.prototype={get:function(b){var A=this._p[0],k=this._p[1],D=this._p[2],V=this._p[3];return this._precomputed||this._precompute(),A===k&&D===V?b:b===0?0:b===1?1:N(this._getTForX(b),k,V)},_precompute:function(){var b=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(b!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var b=this._p[0],A=this._p[2],k=0;k<T;++k)this._mSampleValues[k]=N(k*f,b,A)},_getTForX:function(b){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,H=1,Z=T-1;H!==Z&&D[H]<=b;++H)V+=f;--H;var mt=(b-D[H])/(D[H+1]-D[H]),nt=V+mt*f,Q=O(nt,A,k);return Q>=d?z(b,nt,A,k):Q===0?nt:M(b,V,V+f,A,k)}},t}(),Ed=function(){function t(r){return r.concat(tt(r.length))}return{double:t}}(),ha=function(){return function(t,r,i){var n=0,d=t,c=tt(d),u={newElement:T,release:f};function T(){var I;return n?(n-=1,I=c[n]):I=r(),I}function f(I){n===d&&(c=Ed.double(c),d*=2),i&&i(I),c[n]=I,n+=1}return u}}(),xd=function(){function t(){return{addedLength:0,percents:J("float32",Zo()),lengths:J("float32",Zo())}}return ha(8,t)}(),Td=function(){function t(){return{lengths:[],totalLength:0}}function r(i){var n,d=i.lengths.length;for(n=0;n<d;n+=1)xd.release(i.lengths[n]);i.lengths.length=0}return ha(8,t,r)}();function cf(){var t=Math;function r(y,N,O,M,z,C){var S=y*M+N*z+O*C-z*M-C*y-O*N;return S>-.001&&S<.001}function i(y,N,O,M,z,C,S,b,A){if(O===0&&C===0&&A===0)return r(y,N,M,z,S,b);var k=t.sqrt(t.pow(M-y,2)+t.pow(z-N,2)+t.pow(C-O,2)),D=t.sqrt(t.pow(S-y,2)+t.pow(b-N,2)+t.pow(A-O,2)),V=t.sqrt(t.pow(S-M,2)+t.pow(b-z,2)+t.pow(A-C,2)),H;return k>D?k>V?H=k-D-V:H=V-D-k:V>D?H=V-D-k:H=D-k-V,H>-1e-4&&H<1e-4}var n=function(){return function(y,N,O,M){var z=Zo(),C,S,b,A,k,D=0,V,H=[],Z=[],mt=xd.newElement();for(b=O.length,C=0;C<z;C+=1){for(k=C/(z-1),V=0,S=0;S<b;S+=1)A=Ft(1-k,3)*y[S]+3*Ft(1-k,2)*k*O[S]+3*(1-k)*Ft(k,2)*M[S]+Ft(k,3)*N[S],H[S]=A,Z[S]!==null&&(V+=Ft(H[S]-Z[S],2)),Z[S]=H[S];V&&(V=be(V),D+=V),mt.percents[C]=k,mt.lengths[C]=D}return mt.addedLength=D,mt}}();function d(y){var N=Td.newElement(),O=y.c,M=y.v,z=y.o,C=y.i,S,b=y._length,A=N.lengths,k=0;for(S=0;S<b-1;S+=1)A[S]=n(M[S],M[S+1],z[S],C[S+1]),k+=A[S].addedLength;return O&&b&&(A[S]=n(M[S],M[0],z[S],C[0]),k+=A[S].addedLength),N.totalLength=k,N}function c(y){this.segmentLength=0,this.points=new Array(y)}function u(y,N){this.partialLength=y,this.point=N}var T=function(){var y={};return function(N,O,M,z){var C=(N[0]+"_"+N[1]+"_"+O[0]+"_"+O[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!y[C]){var S=Zo(),b,A,k,D,V,H=0,Z,mt,nt=null;N.length===2&&(N[0]!==O[0]||N[1]!==O[1])&&r(N[0],N[1],O[0],O[1],N[0]+M[0],N[1]+M[1])&&r(N[0],N[1],O[0],O[1],O[0]+z[0],O[1]+z[1])&&(S=2);var Q=new c(S);for(k=M.length,b=0;b<S;b+=1){for(mt=tt(k),V=b/(S-1),Z=0,A=0;A<k;A+=1)D=Ft(1-V,3)*N[A]+3*Ft(1-V,2)*V*(N[A]+M[A])+3*(1-V)*Ft(V,2)*(O[A]+z[A])+Ft(V,3)*O[A],mt[A]=D,nt!==null&&(Z+=Ft(mt[A]-nt[A],2));Z=be(Z),H+=Z,Q.points[b]=new u(Z,mt),nt=mt}Q.segmentLength=H,y[C]=Q}return y[C]}}();function f(y,N){var O=N.percents,M=N.lengths,z=O.length,C=te((z-1)*y),S=y*N.addedLength,b=0;if(C===z-1||C===0||S===M[C])return O[C];for(var A=M[C]>S?-1:1,k=!0;k;)if(M[C]<=S&&M[C+1]>S?(b=(S-M[C])/(M[C+1]-M[C]),k=!1):C+=A,C<0||C>=z-1){if(C===z-1)return O[C];k=!1}return O[C]+(O[C+1]-O[C])*b}function I(y,N,O,M,z,C){var S=f(z,C),b=1-S,A=t.round((b*b*b*y[0]+(S*b*b+b*S*b+b*b*S)*O[0]+(S*S*b+b*S*S+S*b*S)*M[0]+S*S*S*N[0])*1e3)/1e3,k=t.round((b*b*b*y[1]+(S*b*b+b*S*b+b*b*S)*O[1]+(S*S*b+b*S*S+S*b*S)*M[1]+S*S*S*N[1])*1e3)/1e3;return[A,k]}var L=J("float32",8);function B(y,N,O,M,z,C,S){z<0?z=0:z>1&&(z=1);var b=f(z,S);C=C>1?1:C;var A=f(C,S),k,D=y.length,V=1-b,H=1-A,Z=V*V*V,mt=b*V*V*3,nt=b*b*V*3,Q=b*b*b,ft=V*V*H,st=b*V*H+V*b*H+V*V*A,X=b*b*H+V*b*A+b*V*A,_=b*b*A,R=V*H*H,p=b*H*H+V*A*H+V*H*A,g=b*A*H+V*A*A+b*H*A,U=b*A*A,F=H*H*H,it=A*H*H+H*A*H+H*H*A,ht=A*A*H+H*A*A+A*H*A,pt=A*A*A;for(k=0;k<D;k+=1)L[k*4]=t.round((Z*y[k]+mt*O[k]+nt*M[k]+Q*N[k])*1e3)/1e3,L[k*4+1]=t.round((ft*y[k]+st*O[k]+X*M[k]+_*N[k])*1e3)/1e3,L[k*4+2]=t.round((R*y[k]+p*O[k]+g*M[k]+U*N[k])*1e3)/1e3,L[k*4+3]=t.round((F*y[k]+it*O[k]+ht*M[k]+pt*N[k])*1e3)/1e3;return L}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:T,pointOnLine2D:r,pointOnLine3D:i}}var dr=cf(),pi=s,Ad=Math.abs;function _d(t,r){var i=this.offsetTime,n;this.propType==="multidimensional"&&(n=J("float32",this.pv.length));for(var d=r.lastIndex,c=d,u=this.keyframes.length-1,T=!0,f,I,L;T;){if(f=this.keyframes[c],I=this.keyframes[c+1],c===u-1&&t>=I.t-i){f.h&&(f=I),d=0;break}if(I.t-i>t){d=c;break}c<u-1?c+=1:(d=0,T=!1)}L=this.keyframesMetadata[c]||{};var B,y,N,O,M,z,C=I.t-i,S=f.t-i,b;if(f.to){L.bezierData||(L.bezierData=dr.buildBezierData(f.s,I.s||f.e,f.to,f.ti));var A=L.bezierData;if(t>=C||t<S){var k=t>=C?A.points.length-1:0;for(y=A.points[k].point.length,B=0;B<y;B+=1)n[B]=A.points[k].point[B]}else{L.__fnct?z=L.__fnct:(z=es.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y,f.n).get,L.__fnct=z),N=z((t-S)/(C-S));var D=A.segmentLength*N,V,H=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastPoint:0,T=!0,O=A.points.length;T;){if(H+=A.points[M].partialLength,D===0||N===0||M===A.points.length-1){for(y=A.points[M].point.length,B=0;B<y;B+=1)n[B]=A.points[M].point[B];break}else if(D>=H&&D<H+A.points[M+1].partialLength){for(V=(D-H)/A.points[M+1].partialLength,y=A.points[M].point.length,B=0;B<y;B+=1)n[B]=A.points[M].point[B]+(A.points[M+1].point[B]-A.points[M].point[B])*V;break}M<O-1?M+=1:T=!1}r._lastPoint=M,r._lastAddedLength=H-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,mt,nt,Q,ft;if(u=f.s.length,b=I.s||f.e,this.sh&&f.h!==1)if(t>=C)n[0]=b[0],n[1]=b[1],n[2]=b[2];else if(t<=S)n[0]=f.s[0],n[1]=f.s[1],n[2]=f.s[2];else{var st=Sd(f.s),X=Sd(b),_=(t-S)/(C-S);hf(n,df(st,X,_))}else for(c=0;c<u;c+=1)f.h!==1&&(t>=C?N=1:t<S?N=0:(f.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[c]?z=L.__fnct[c]:(Z=f.o.x[c]===void 0?f.o.x[0]:f.o.x[c],mt=f.o.y[c]===void 0?f.o.y[0]:f.o.y[c],nt=f.i.x[c]===void 0?f.i.x[0]:f.i.x[c],Q=f.i.y[c]===void 0?f.i.y[0]:f.i.y[c],z=es.getBezierEasing(Z,mt,nt,Q).get,L.__fnct[c]=z)):L.__fnct?z=L.__fnct:(Z=f.o.x,mt=f.o.y,nt=f.i.x,Q=f.i.y,z=es.getBezierEasing(Z,mt,nt,Q).get,f.keyframeMetadata=z),N=z((t-S)/(C-S)))),b=I.s||f.e,ft=f.h===1?f.s[c]:f.s[c]+(b[c]-f.s[c])*N,this.propType==="multidimensional"?n[c]=ft:n=ft}return r.lastIndex=d,n}function df(t,r,i){var n=[],d=t[0],c=t[1],u=t[2],T=t[3],f=r[0],I=r[1],L=r[2],B=r[3],y,N,O,M,z;return N=d*f+c*I+u*L+T*B,N<0&&(N=-N,f=-f,I=-I,L=-L,B=-B),1-N>1e-6?(y=Math.acos(N),O=Math.sin(y),M=Math.sin((1-i)*y)/O,z=Math.sin(i*y)/O):(M=1-i,z=i),n[0]=M*d+z*f,n[1]=M*c+z*I,n[2]=M*u+z*L,n[3]=M*T+z*B,n}function hf(t,r){var i=r[0],n=r[1],d=r[2],c=r[3],u=Math.atan2(2*n*c-2*i*d,1-2*n*n-2*d*d),T=Math.asin(2*i*n+2*d*c),f=Math.atan2(2*i*c-2*n*d,1-2*i*i-2*d*d);t[0]=u/At,t[1]=T/At,t[2]=f/At}function Sd(t){var r=t[0]*At,i=t[1]*At,n=t[2]*At,d=Math.cos(r/2),c=Math.cos(i/2),u=Math.cos(n/2),T=Math.sin(r/2),f=Math.sin(i/2),I=Math.sin(n/2),L=d*c*u-T*f*I,B=T*f*u+d*c*I,y=T*c*u+d*f*I,N=d*f*u-T*c*I;return[B,y,N,L]}function Id(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==pi&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(t,this._caching);this.pv=n}return this._caching.lastFrame=t,this.pv}function ma(t){var r;if(this.propType==="unidimensional")r=t*this.mult,Ad(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,n=this.v.length;i<n;)r=t[i]*this.mult,Ad(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function pa(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,r=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<r;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ua(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function mf(t,r,i,n){this.propType="unidimensional",this.mult=i||1,this.data=r,this.v=i?r.k*i:r.k,this.pv=r.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=pa,this.setVValue=ma,this.addEffect=ua}function pf(t,r,i,n){this.propType="multidimensional",this.mult=i||1,this.data=r,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,c=r.k.length;for(this.v=J("float32",c),this.pv=J("float32",c),this.vel=J("float32",c),d=0;d<c;d+=1)this.v[d]=r.k[d]*this.mult,this.pv[d]=r.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=pa,this.setVValue=ma,this.addEffect=ua}function uf(t,r,i,n){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:pi,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.v=pi,this.pv=pi,this._isFirstFrame=!0,this.getValue=pa,this.setVValue=ma,this.interpolateValue=_d,this.effectsSequence=[Id.bind(this)],this.addEffect=ua}function ff(t,r,i,n){this.propType="multidimensional";var d,c=r.k.length,u,T,f,I;for(d=0;d<c-1;d+=1)r.k[d].to&&r.k[d].s&&r.k[d+1]&&r.k[d+1].s&&(u=r.k[d].s,T=r.k[d+1].s,f=r.k[d].to,I=r.k[d].ti,(u.length===2&&!(u[0]===T[0]&&u[1]===T[1])&&dr.pointOnLine2D(u[0],u[1],T[0],T[1],u[0]+f[0],u[1]+f[1])&&dr.pointOnLine2D(u[0],u[1],T[0],T[1],T[0]+I[0],T[1]+I[1])||u.length===3&&!(u[0]===T[0]&&u[1]===T[1]&&u[2]===T[2])&&dr.pointOnLine3D(u[0],u[1],u[2],T[0],T[1],T[2],u[0]+f[0],u[1]+f[1],u[2]+f[2])&&dr.pointOnLine3D(u[0],u[1],u[2],T[0],T[1],T[2],T[0]+I[0],T[1]+I[1],T[2]+I[2]))&&(r.k[d].to=null,r.k[d].ti=null),u[0]===T[0]&&u[1]===T[1]&&f[0]===0&&f[1]===0&&I[0]===0&&I[1]===0&&(u.length===2||u[2]===T[2]&&f[2]===0&&I[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[Id.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.getValue=pa,this.setVValue=ma,this.interpolateValue=_d,this.frameId=-1;var L=r.k[0].s.length;for(this.v=J("float32",L),this.pv=J("float32",L),d=0;d<L;d+=1)this.v[d]=pi,this.pv[d]=pi;this._caching={lastFrame:pi,lastIndex:0,value:J("float32",L)},this.addEffect=ua}var et=function(){function t(i,n,d,c,u){n.sid&&(n=i.globalData.slotManager.getProp(n));var T;if(!n.k.length)T=new mf(i,n,c,u);else if(typeof n.k[0]=="number")T=new pf(i,n,c,u);else switch(d){case 0:T=new uf(i,n,c,u);break;case 1:T=new ff(i,n,c,u);break;default:break}return T.effectsSequence.length&&u.addDynamicProperty(T),T}var r={getProp:t};return r}();function ee(){}ee.prototype={addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&(this.dynamicProperties.push(r),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(r){this.container=r,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var ui=function(){function t(){return J("float32",2)}return ha(8,t)}();function Er(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}Er.prototype.setPathData=function(t,r){this.c=t,this.setLength(r);for(var i=0;i<r;)this.v[i]=ui.newElement(),this.o[i]=ui.newElement(),this.i[i]=ui.newElement(),i+=1},Er.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},Er.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},Er.prototype.setXYAt=function(t,r,i,n,d){var c;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[n]||c[n]&&!d)&&(c[n]=ui.newElement()),c[n][0]=t,c[n][1]=r},Er.prototype.setTripleAt=function(t,r,i,n,d,c,u,T){this.setXYAt(t,r,"v",u,T),this.setXYAt(i,n,"o",u,T),this.setXYAt(d,c,"i",u,T)},Er.prototype.reverse=function(){var t=new Er;t.setPathData(this.c,this._length);var r=this.v,i=this.o,n=this.i,d=0;this.c&&(t.setTripleAt(r[0][0],r[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),d=1);var c=this._length-1,u=this._length,T;for(T=d;T<u;T+=1)t.setTripleAt(r[c][0],r[c][1],n[c][0],n[c][1],i[c][0],i[c][1],T,!1),c-=1;return t},Er.prototype.length=function(){return this._length};var ae=function(){function t(){return new Er}function r(d){var c=d._length,u;for(u=0;u<c;u+=1)ui.release(d.v[u]),ui.release(d.i[u]),ui.release(d.o[u]),d.v[u]=null,d.i[u]=null,d.o[u]=null;d._length=0,d.c=!1}function i(d){var c=n.newElement(),u,T=d._length===void 0?d.v.length:d._length;for(c.setLength(T),c.c=d.c,u=0;u<T;u+=1)c.setTripleAt(d.v[u][0],d.v[u][1],d.o[u][0],d.o[u][1],d.i[u][0],d.i[u][1],u);return c}var n=ha(4,t,r);return n.clone=i,n}();function nl(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}nl.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},nl.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)ae.release(this.shapes[t]);this._length=0};var ro=function(){var t={newShapeCollection:d,release:c},r=0,i=4,n=tt(i);function d(){var u;return r?(r-=1,u=n[r]):u=new nl,u}function c(u){var T,f=u._length;for(T=0;T<f;T+=1)ae.release(u.shapes[T]);u._length=0,r===i&&(n=Ed.double(n),i*=2),n[r]=u,r+=1}return t}(),fa=function(){var t=-999999;function r(C,S,b){var A=b.lastIndex,k,D,V,H,Z,mt,nt,Q,ft,st=this.keyframes;if(C<st[0].t-this.offsetTime)k=st[0].s[0],V=!0,A=0;else if(C>=st[st.length-1].t-this.offsetTime)k=st[st.length-1].s?st[st.length-1].s[0]:st[st.length-2].e[0],V=!0;else{for(var X=A,_=st.length-1,R=!0,p,g,U;R&&(p=st[X],g=st[X+1],!(g.t-this.offsetTime>C));)X<_-1?X+=1:R=!1;if(U=this.keyframesMetadata[X]||{},V=p.h===1,A=X,!V){if(C>=g.t-this.offsetTime)Q=1;else if(C<p.t-this.offsetTime)Q=0;else{var F;U.__fnct?F=U.__fnct:(F=es.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,U.__fnct=F),Q=F((C-(p.t-this.offsetTime))/(g.t-this.offsetTime-(p.t-this.offsetTime)))}D=g.s?g.s[0]:p.e[0]}k=p.s[0]}for(mt=S._length,nt=k.i[0].length,b.lastIndex=A,H=0;H<mt;H+=1)for(Z=0;Z<nt;Z+=1)ft=V?k.i[H][Z]:k.i[H][Z]+(D.i[H][Z]-k.i[H][Z])*Q,S.i[H][Z]=ft,ft=V?k.o[H][Z]:k.o[H][Z]+(D.o[H][Z]-k.o[H][Z])*Q,S.o[H][Z]=ft,ft=V?k.v[H][Z]:k.v[H][Z]+(D.v[H][Z]-k.v[H][Z])*Q,S.v[H][Z]=ft}function i(){var C=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,b=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==t&&(A<S&&C<S||A>b&&C>b)||(this._caching.lastIndex=A<C?this._caching.lastIndex:0,this.interpolateShape(C,this.pv,this._caching)),this._caching.lastFrame=C,this.pv}function n(){this.paths=this.localShapeCollection}function d(C,S){if(C._length!==S._length||C.c!==S.c)return!1;var b,A=C._length;for(b=0;b<A;b+=1)if(C.v[b][0]!==S.v[b][0]||C.v[b][1]!==S.v[b][1]||C.o[b][0]!==S.o[b][0]||C.o[b][1]!==S.o[b][1]||C.i[b][0]!==S.i[b][0]||C.i[b][1]!==S.i[b][1])return!1;return!0}function c(C){d(this.v,C)||(this.v=ae.clone(C),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function u(){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 C;this.kf?C=this.pv:this.data.ks?C=this.data.ks.k:C=this.data.pt.k;var S,b=this.effectsSequence.length;for(S=0;S<b;S+=1)C=this.effectsSequence[S](C);this.setVValue(C),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function T(C,S,b){this.propType="shape",this.comp=C.comp,this.container=C,this.elem=C,this.data=S,this.k=!1,this.kf=!1,this._mdf=!1;var A=b===3?S.pt.k:S.ks.k;this.v=ae.clone(A),this.pv=ae.clone(this.v),this.localShapeCollection=ro.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function f(C){this.effectsSequence.push(C),this.container.addDynamicProperty(this)}T.prototype.interpolateShape=r,T.prototype.getValue=u,T.prototype.setVValue=c,T.prototype.addEffect=f;function I(C,S,b){this.propType="shape",this.comp=C.comp,this.elem=C,this.container=C,this.offsetTime=C.data.st,this.keyframes=b===3?S.pt.k:S.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var A=this.keyframes[0].s[0].i.length;this.v=ae.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ae.clone(this.v),this.localShapeCollection=ro.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}I.prototype.getValue=u,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=f;var L=function(){var C=me;function S(b,A){this.v=ae.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ro.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=b,this.comp=b.comp,this.frameId=-1,this.initDynamicPropertyContainer(b),this.p=et.getProp(b,A.p,1,0,this),this.s=et.getProp(b,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return S.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var A=this.p.v[0],k=this.p.v[1],D=this.s.v[0]/2,V=this.s.v[1]/2,H=this.d!==3,Z=this.v;Z.v[0][0]=A,Z.v[0][1]=k-V,Z.v[1][0]=H?A+D:A-D,Z.v[1][1]=k,Z.v[2][0]=A,Z.v[2][1]=k+V,Z.v[3][0]=H?A-D:A+D,Z.v[3][1]=k,Z.i[0][0]=H?A-D*C:A+D*C,Z.i[0][1]=k-V,Z.i[1][0]=H?A+D:A-D,Z.i[1][1]=k-V*C,Z.i[2][0]=H?A+D*C:A-D*C,Z.i[2][1]=k+V,Z.i[3][0]=H?A-D:A+D,Z.i[3][1]=k+V*C,Z.o[0][0]=H?A+D*C:A-D*C,Z.o[0][1]=k-V,Z.o[1][0]=H?A+D:A-D,Z.o[1][1]=k+V*C,Z.o[2][0]=H?A-D*C:A+D*C,Z.o[2][1]=k+V,Z.o[3][0]=H?A-D:A+D,Z.o[3][1]=k-V*C}},$([ee],S),S}(),B=function(){function C(S,b){this.v=ae.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=b,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),b.sy===1?(this.ir=et.getProp(S,b.ir,0,0,this),this.is=et.getProp(S,b.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=et.getProp(S,b.pt,0,0,this),this.p=et.getProp(S,b.p,1,0,this),this.r=et.getProp(S,b.r,0,At,this),this.or=et.getProp(S,b.or,0,0,this),this.os=et.getProp(S,b.os,0,.01,this),this.localShapeCollection=ro.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return C.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var b=Math.floor(this.pt.v)*2,A=Math.PI*2/b,k=!0,D=this.or.v,V=this.ir.v,H=this.os.v,Z=this.is.v,mt=2*Math.PI*D/(b*2),nt=2*Math.PI*V/(b*2),Q,ft,st,X,_=-Math.PI/2;_+=this.r.v;var R=this.data.d===3?-1:1;for(this.v._length=0,Q=0;Q<b;Q+=1){ft=k?D:V,st=k?H:Z,X=k?mt:nt;var p=ft*Math.cos(_),g=ft*Math.sin(_),U=p===0&&g===0?0:g/Math.sqrt(p*p+g*g),F=p===0&&g===0?0:-p/Math.sqrt(p*p+g*g);p+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(p,g,p-U*X*st*R,g-F*X*st*R,p+U*X*st*R,g+F*X*st*R,Q,!0),k=!k,_+=A*R}},convertPolygonToPath:function(){var b=Math.floor(this.pt.v),A=Math.PI*2/b,k=this.or.v,D=this.os.v,V=2*Math.PI*k/(b*4),H,Z=-Math.PI*.5,mt=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,H=0;H<b;H+=1){var nt=k*Math.cos(Z),Q=k*Math.sin(Z),ft=nt===0&&Q===0?0:Q/Math.sqrt(nt*nt+Q*Q),st=nt===0&&Q===0?0:-nt/Math.sqrt(nt*nt+Q*Q);nt+=+this.p.v[0],Q+=+this.p.v[1],this.v.setTripleAt(nt,Q,nt-ft*V*D*mt,Q-st*V*D*mt,nt+ft*V*D*mt,Q+st*V*D*mt,H,!0),Z+=A*mt}this.paths.length=0,this.paths[0]=this.v}},$([ee],C),C}(),y=function(){function C(S,b){this.v=ae.newElement(),this.v.c=!0,this.localShapeCollection=ro.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=b.d,this.initDynamicPropertyContainer(S),this.p=et.getProp(S,b.p,1,0,this),this.s=et.getProp(S,b.s,1,0,this),this.r=et.getProp(S,b.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return C.prototype={convertRectToPath:function(){var b=this.p.v[0],A=this.p.v[1],k=this.s.v[0]/2,D=this.s.v[1]/2,V=Le(k,D,this.r.v),H=V*(1-me);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(b+k,A-D+V,b+k,A-D+V,b+k,A-D+H,0,!0),this.v.setTripleAt(b+k,A+D-V,b+k,A+D-H,b+k,A+D-V,1,!0),V!==0?(this.v.setTripleAt(b+k-V,A+D,b+k-V,A+D,b+k-H,A+D,2,!0),this.v.setTripleAt(b-k+V,A+D,b-k+H,A+D,b-k+V,A+D,3,!0),this.v.setTripleAt(b-k,A+D-V,b-k,A+D-V,b-k,A+D-H,4,!0),this.v.setTripleAt(b-k,A-D+V,b-k,A-D+H,b-k,A-D+V,5,!0),this.v.setTripleAt(b-k+V,A-D,b-k+V,A-D,b-k+H,A-D,6,!0),this.v.setTripleAt(b+k-V,A-D,b+k-H,A-D,b+k-V,A-D,7,!0)):(this.v.setTripleAt(b-k,A+D,b-k+H,A+D,b-k,A+D,2),this.v.setTripleAt(b-k,A-D,b-k,A-D+H,b-k,A-D,3))):(this.v.setTripleAt(b+k,A-D+V,b+k,A-D+H,b+k,A-D+V,0,!0),V!==0?(this.v.setTripleAt(b+k-V,A-D,b+k-V,A-D,b+k-H,A-D,1,!0),this.v.setTripleAt(b-k+V,A-D,b-k+H,A-D,b-k+V,A-D,2,!0),this.v.setTripleAt(b-k,A-D+V,b-k,A-D+V,b-k,A-D+H,3,!0),this.v.setTripleAt(b-k,A+D-V,b-k,A+D-H,b-k,A+D-V,4,!0),this.v.setTripleAt(b-k+V,A+D,b-k+V,A+D,b-k+H,A+D,5,!0),this.v.setTripleAt(b+k-V,A+D,b+k-H,A+D,b+k-V,A+D,6,!0),this.v.setTripleAt(b+k,A+D-V,b+k,A+D-V,b+k,A+D-H,7,!0)):(this.v.setTripleAt(b-k,A-D,b-k+H,A-D,b-k,A-D,1,!0),this.v.setTripleAt(b-k,A+D,b-k,A+D-H,b-k,A+D,2,!0),this.v.setTripleAt(b+k,A+D,b+k-H,A+D,b+k,A+D,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},$([ee],C),C}();function N(C,S,b){var A;if(b===3||b===4){var k=b===3?S.pt:S.ks,D=k.k;D.length?A=new I(C,S,b):A=new T(C,S,b)}else b===5?A=new y(C,S):b===6?A=new L(C,S):b===7&&(A=new B(C,S));return A.k&&C.addDynamicProperty(A),A}function O(){return T}function M(){return I}var z={};return z.getShapeProp=N,z.getConstructorFunction=O,z.getKeyframedConstructorFunction=M,z}();var ne=function(){var t=Math.cos,r=Math.sin,i=Math.tan,n=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(p){if(p===0)return this;var g=t(p),U=r(p);return this._t(g,-U,0,0,U,g,0,0,0,0,1,0,0,0,0,1)}function u(p){if(p===0)return this;var g=t(p),U=r(p);return this._t(1,0,0,0,0,g,-U,0,0,U,g,0,0,0,0,1)}function T(p){if(p===0)return this;var g=t(p),U=r(p);return this._t(g,0,U,0,0,1,0,0,-U,0,g,0,0,0,0,1)}function f(p){if(p===0)return this;var g=t(p),U=r(p);return this._t(g,-U,0,0,U,g,0,0,0,0,1,0,0,0,0,1)}function I(p,g){return this._t(1,g,p,1,0,0)}function L(p,g){return this.shear(i(p),i(g))}function B(p,g){var U=t(g),F=r(g);return this._t(U,F,0,0,-F,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(p),1,0,0,0,0,1,0,0,0,0,1)._t(U,-F,0,0,F,U,0,0,0,0,1,0,0,0,0,1)}function y(p,g,U){return!U&&U!==0&&(U=1),p===1&&g===1&&U===1?this:this._t(p,0,0,0,0,g,0,0,0,0,U,0,0,0,0,1)}function N(p,g,U,F,it,ht,pt,It,kt,jt,xe,mr,Te,re,Ne,Nt){return this.props[0]=p,this.props[1]=g,this.props[2]=U,this.props[3]=F,this.props[4]=it,this.props[5]=ht,this.props[6]=pt,this.props[7]=It,this.props[8]=kt,this.props[9]=jt,this.props[10]=xe,this.props[11]=mr,this.props[12]=Te,this.props[13]=re,this.props[14]=Ne,this.props[15]=Nt,this}function O(p,g,U){return U=U||0,p!==0||g!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,p,g,U,1):this}function M(p,g,U,F,it,ht,pt,It,kt,jt,xe,mr,Te,re,Ne,Nt){var at=this.props;if(p===1&&g===0&&U===0&&F===0&&it===0&&ht===1&&pt===0&&It===0&&kt===0&&jt===0&&xe===1&&mr===0)return at[12]=at[12]*p+at[15]*Te,at[13]=at[13]*ht+at[15]*re,at[14]=at[14]*xe+at[15]*Ne,at[15]*=Nt,this._identityCalculated=!1,this;var Ar=at[0],Xr=at[1],_r=at[2],pr=at[3],Sr=at[4],Ir=at[5],Ae=at[6],Zr=at[7],Jr=at[8],er=at[9],Qr=at[10],rr=at[11],bi=at[12],_a=at[13],Sa=at[14],Ia=at[15];return at[0]=Ar*p+Xr*it+_r*kt+pr*Te,at[1]=Ar*g+Xr*ht+_r*jt+pr*re,at[2]=Ar*U+Xr*pt+_r*xe+pr*Ne,at[3]=Ar*F+Xr*It+_r*mr+pr*Nt,at[4]=Sr*p+Ir*it+Ae*kt+Zr*Te,at[5]=Sr*g+Ir*ht+Ae*jt+Zr*re,at[6]=Sr*U+Ir*pt+Ae*xe+Zr*Ne,at[7]=Sr*F+Ir*It+Ae*mr+Zr*Nt,at[8]=Jr*p+er*it+Qr*kt+rr*Te,at[9]=Jr*g+er*ht+Qr*jt+rr*re,at[10]=Jr*U+er*pt+Qr*xe+rr*Ne,at[11]=Jr*F+er*It+Qr*mr+rr*Nt,at[12]=bi*p+_a*it+Sa*kt+Ia*Te,at[13]=bi*g+_a*ht+Sa*jt+Ia*re,at[14]=bi*U+_a*pt+Sa*xe+Ia*Ne,at[15]=bi*F+_a*It+Sa*mr+Ia*Nt,this._identityCalculated=!1,this}function z(p){var g=p.props;return this.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15])}function C(){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 S(p){for(var g=0;g<16;){if(p.props[g]!==this.props[g])return!1;g+=1}return!0}function b(p){var g;for(g=0;g<16;g+=1)p.props[g]=this.props[g];return p}function A(p){var g;for(g=0;g<16;g+=1)this.props[g]=p[g]}function k(p,g,U){return{x:p*this.props[0]+g*this.props[4]+U*this.props[8]+this.props[12],y:p*this.props[1]+g*this.props[5]+U*this.props[9]+this.props[13],z:p*this.props[2]+g*this.props[6]+U*this.props[10]+this.props[14]}}function D(p,g,U){return p*this.props[0]+g*this.props[4]+U*this.props[8]+this.props[12]}function V(p,g,U){return p*this.props[1]+g*this.props[5]+U*this.props[9]+this.props[13]}function H(p,g,U){return p*this.props[2]+g*this.props[6]+U*this.props[10]+this.props[14]}function Z(){var p=this.props[0]*this.props[5]-this.props[1]*this.props[4],g=this.props[5]/p,U=-this.props[1]/p,F=-this.props[4]/p,it=this.props[0]/p,ht=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/p,pt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/p,It=new ne;return It.props[0]=g,It.props[1]=U,It.props[4]=F,It.props[5]=it,It.props[12]=ht,It.props[13]=pt,It}function mt(p){var g=this.getInverseMatrix();return g.applyToPointArray(p[0],p[1],p[2]||0)}function nt(p){var g,U=p.length,F=[];for(g=0;g<U;g+=1)F[g]=mt(p[g]);return F}function Q(p,g,U){var F=J("float32",6);if(this.isIdentity())F[0]=p[0],F[1]=p[1],F[2]=g[0],F[3]=g[1],F[4]=U[0],F[5]=U[1];else{var it=this.props[0],ht=this.props[1],pt=this.props[4],It=this.props[5],kt=this.props[12],jt=this.props[13];F[0]=p[0]*it+p[1]*pt+kt,F[1]=p[0]*ht+p[1]*It+jt,F[2]=g[0]*it+g[1]*pt+kt,F[3]=g[0]*ht+g[1]*It+jt,F[4]=U[0]*it+U[1]*pt+kt,F[5]=U[0]*ht+U[1]*It+jt}return F}function ft(p,g,U){var F;return this.isIdentity()?F=[p,g,U]:F=[p*this.props[0]+g*this.props[4]+U*this.props[8]+this.props[12],p*this.props[1]+g*this.props[5]+U*this.props[9]+this.props[13],p*this.props[2]+g*this.props[6]+U*this.props[10]+this.props[14]],F}function st(p,g){if(this.isIdentity())return p+","+g;var U=this.props;return Math.round((p*U[0]+g*U[4]+U[12])*100)/100+","+Math.round((p*U[1]+g*U[5]+U[13])*100)/100}function X(){for(var p=0,g=this.props,U="matrix3d(",F=1e4;p<16;)U+=n(g[p]*F)/F,U+=p===15?")":",",p+=1;return U}function _(p){var g=1e4;return p<1e-6&&p>0||p>-1e-6&&p<0?n(p*g)/g:p}function R(){var p=this.props,g=_(p[0]),U=_(p[1]),F=_(p[4]),it=_(p[5]),ht=_(p[12]),pt=_(p[13]);return"matrix("+g+","+U+","+F+","+it+","+ht+","+pt+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=u,this.rotateY=T,this.rotateZ=f,this.skew=L,this.skewFromAxis=B,this.shear=I,this.scale=y,this.setTransform=N,this.translate=O,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=H,this.applyToPointArray=ft,this.applyToTriplePoints=Q,this.applyToPointStringified=st,this.toCSS=X,this.to2dCSS=R,this.clone=b,this.cloneFromProps=A,this.equals=S,this.inversePoints=nt,this.inversePoint=mt,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=C,this._identity=!0,this._identityCalculated=!1,this.props=J("float32",16),this.reset()}}();function va(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?va=function(i){return typeof i}:va=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},va(t)}var Lt={},ga="__[STANDALONE]__",kd="__[ANIMATIONDATA]__",Cd="";function vf(t){m(t)}function wd(){ga===!0?Gt.searchAnimations(kd,ga,Cd):Gt.searchAnimations()}function gf(t){Ju(t)}function bf(t){ef(t)}function yf(t){return ga===!0&&(t.animationData=JSON.parse(kd)),Gt.loadAnimation(t)}function Ef(t){if(typeof t=="string")switch(t){case"high":ca(200);break;default:case"medium":ca(50);break;case"low":ca(10);break}else!isNaN(t)&&t>1&&ca(t);Zo()>=50?Fe(!1):Fe(!0)}function xf(){return typeof navigator<"u"}function Tf(t,r){t==="expressions"&&tf(r)}function Af(t){switch(t){case"propertyFactory":return et;case"shapePropertyFactory":return fa;case"matrix":return ne;default:return null}}Lt.play=Gt.play,Lt.pause=Gt.pause,Lt.setLocationHref=vf,Lt.togglePause=Gt.togglePause,Lt.setSpeed=Gt.setSpeed,Lt.setDirection=Gt.setDirection,Lt.stop=Gt.stop,Lt.searchAnimations=wd,Lt.registerAnimation=Gt.registerAnimation,Lt.loadAnimation=yf,Lt.setSubframeRendering=gf,Lt.resize=Gt.resize,Lt.goToAndStop=Gt.goToAndStop,Lt.destroy=Gt.destroy,Lt.setQuality=Ef,Lt.inBrowser=xf,Lt.installPlugin=Tf,Lt.freeze=Gt.freeze,Lt.unfreeze=Gt.unfreeze,Lt.setVolume=Gt.setVolume,Lt.mute=Gt.mute,Lt.unmute=Gt.unmute,Lt.getRegisteredAnimations=Gt.getRegisteredAnimations,Lt.useWebWorker=a,Lt.setIDPrefix=bf,Lt.__getFactory=Af,Lt.version="5.12.2";function _f(){document.readyState==="complete"&&(clearInterval(kf),wd())}function Sf(t){for(var r=Ld.split("&"),i=0;i<r.length;i+=1){var n=r[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}var Ld="";if(ga){var Nd=document.getElementsByTagName("script"),If=Nd.length-1,Md=Nd[If]||{src:""};Ld=Md.src?Md.src.replace(/^[^\?]+\??/,""):"",Cd=Sf("renderer")}var kf=setInterval(_f,100);try{!((typeof Cs>"u"?"undefined":va(Cs))==="object"&&typeof Xa<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Lt)}catch{}var Gr=function(){var t={},r={};t.registerModifier=i,t.getModifier=n;function i(d,c){r[d]||(r[d]=c)}function n(d,c,u){return new r[d](c,u)}return t}();function ze(){}ze.prototype.initModifierProperties=function(){},ze.prototype.addShapeToModifier=function(){},ze.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var r={shape:t.sh,data:t,localShapeCollection:ro.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&t.setAsAnimated()}},ze.prototype.init=function(t,r){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r),this.frameId=s,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ze.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([ee],ze);function tr(){}$([ze],tr),tr.prototype.initModifierProperties=function(t,r){this.s=et.getProp(t,r.s,0,.01,this),this.e=et.getProp(t,r.e,0,.01,this),this.o=et.getProp(t,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},tr.prototype.addShapeToModifier=function(t){t.pathsData=[]},tr.prototype.calculateShapeEdges=function(t,r,i,n,d){var c=[];r<=1?c.push({s:t,e:r}):t>=1?c.push({s:t-1,e:r-1}):(c.push({s:t,e:1}),c.push({s:0,e:r-1}));var u=[],T,f=c.length,I;for(T=0;T<f;T+=1)if(I=c[T],!(I.e*d<n||I.s*d>n+i)){var L,B;I.s*d<=n?L=0:L=(I.s*d-n)/i,I.e*d>=n+i?B=1:B=(I.e*d-n)/i,u.push([L,B])}return u.length||u.push([0,0]),u},tr.prototype.releasePathsData=function(t){var r,i=t.length;for(r=0;r<i;r+=1)Td.release(t[r]);return t.length=0,t},tr.prototype.processShapes=function(t){var r,i;if(this._mdf||t){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?r=1+n:this.s.v<0?r=0+n:r=this.s.v+n,this.e.v>1?i=1+n:this.e.v<0?i=0+n:i=this.e.v+n,r>i){var d=r;r=i,i=d}r=Math.round(r*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=r,this.eValue=i}else r=this.sValue,i=this.eValue;var c,u,T=this.shapes.length,f,I,L,B,y,N=0;if(i===r)for(u=0;u<T;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape._mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection,this._mdf&&(this.shapes[u].pathsData.length=0);else if(i===1&&r===0||i===0&&r===1){if(this._mdf)for(u=0;u<T;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{var O=[],M,z;for(u=0;u<T;u+=1)if(M=this.shapes[u],!M.shape._mdf&&!this._mdf&&!t&&this.m!==2)M.shape.paths=M.localShapeCollection;else{if(c=M.shape.paths,I=c._length,y=0,!M.shape._mdf&&M.pathsData.length)y=M.totalShapeLength;else{for(L=this.releasePathsData(M.pathsData),f=0;f<I;f+=1)B=dr.getSegmentsLength(c.shapes[f]),L.push(B),y+=B.totalLength;M.totalShapeLength=y,M.pathsData=L}N+=y,M.shape._mdf=!0}var C=r,S=i,b=0,A;for(u=T-1;u>=0;u-=1)if(M=this.shapes[u],M.shape._mdf){for(z=M.localShapeCollection,z.releaseShapes(),this.m===2&&T>1?(A=this.calculateShapeEdges(r,i,M.totalShapeLength,b,N),b+=M.totalShapeLength):A=[[C,S]],I=A.length,f=0;f<I;f+=1){C=A[f][0],S=A[f][1],O.length=0,S<=1?O.push({s:M.totalShapeLength*C,e:M.totalShapeLength*S}):C>=1?O.push({s:M.totalShapeLength*(C-1),e:M.totalShapeLength*(S-1)}):(O.push({s:M.totalShapeLength*C,e:M.totalShapeLength}),O.push({s:0,e:M.totalShapeLength*(S-1)}));var k=this.addShapes(M,O[0]);if(O[0].s!==O[0].e){if(O.length>1){var D=M.shape.paths.shapes[M.shape.paths._length-1];if(D.c){var V=k.pop();this.addPaths(k,z),k=this.addShapes(M,O[1],V)}else this.addPaths(k,z),k=this.addShapes(M,O[1])}this.addPaths(k,z)}}M.shape.paths=z}}},tr.prototype.addPaths=function(t,r){var i,n=t.length;for(i=0;i<n;i+=1)r.addShape(t[i])},tr.prototype.addSegment=function(t,r,i,n,d,c,u){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(i[0],i[1],"i",c+1),u&&d.setXYAt(t[0],t[1],"v",c),d.setXYAt(n[0],n[1],"v",c+1)},tr.prototype.addSegmentFromArray=function(t,r,i,n){r.setXYAt(t[1],t[5],"o",i),r.setXYAt(t[2],t[6],"i",i+1),n&&r.setXYAt(t[0],t[4],"v",i),r.setXYAt(t[3],t[7],"v",i+1)},tr.prototype.addShapes=function(t,r,i){var n=t.pathsData,d=t.shape.paths.shapes,c,u=t.shape.paths._length,T,f,I=0,L,B,y,N,O=[],M,z=!0;for(i?(B=i._length,M=i._length):(i=ae.newElement(),B=0,M=0),O.push(i),c=0;c<u;c+=1){for(y=n[c].lengths,i.c=d[c].c,f=d[c].c?y.length:y.length+1,T=1;T<f;T+=1)if(L=y[T-1],I+L.addedLength<r.s)I+=L.addedLength,i.c=!1;else if(I>r.e){i.c=!1;break}else r.s<=I&&r.e>=I+L.addedLength?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[T],d[c].v[T],i,B,z),z=!1):(N=dr.getNewSegment(d[c].v[T-1],d[c].v[T],d[c].o[T-1],d[c].i[T],(r.s-I)/L.addedLength,(r.e-I)/L.addedLength,y[T-1]),this.addSegmentFromArray(N,i,B,z),z=!1,i.c=!1),I+=L.addedLength,B+=1;if(d[c].c&&y.length){if(L=y[T-1],I<=r.e){var C=y[T-1].addedLength;r.s<=I&&r.e>=I+C?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[0],d[c].v[0],i,B,z),z=!1):(N=dr.getNewSegment(d[c].v[T-1],d[c].v[0],d[c].o[T-1],d[c].i[0],(r.s-I)/C,(r.e-I)/C,y[T-1]),this.addSegmentFromArray(N,i,B,z),z=!1,i.c=!1)}else i.c=!1;I+=L.addedLength,B+=1}if(i._length&&(i.setXYAt(i.v[M][0],i.v[M][1],"i",M),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),I>r.e)break;c<u-1&&(i=ae.newElement(),z=!0,O.push(i),B=0)}return O};function rs(){}$([ze],rs),rs.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},rs.prototype.processPath=function(t,r){var i=r/100,n=[0,0],d=t._length,c=0;for(c=0;c<d;c+=1)n[0]+=t.v[c][0],n[1]+=t.v[c][1];n[0]/=d,n[1]/=d;var u=ae.newElement();u.c=t.c;var T,f,I,L,B,y;for(c=0;c<d;c+=1)T=t.v[c][0]+(n[0]-t.v[c][0])*i,f=t.v[c][1]+(n[1]-t.v[c][1])*i,I=t.o[c][0]+(n[0]-t.o[c][0])*-i,L=t.o[c][1]+(n[1]-t.o[c][1])*-i,B=t.i[c][0]+(n[0]-t.i[c][0])*-i,y=t.i[c][1]+(n[1]-t.i[c][1])*-i,u.setTripleAt(T,f,I,L,B,y,c);return u},rs.prototype.processShapes=function(t){var r,i,n=this.shapes.length,d,c,u=this.amount.v;if(u!==0){var T,f;for(i=0;i<n;i+=1){if(T=this.shapes[i],f=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)f.addShape(this.processPath(r[d],u));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var ll=function(){var t=[0,0];function r(f){var I=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||I,this.a&&f.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&f.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&f.skewFromAxis(-this.sk.v,this.sa.v),this.r?f.rotate(-this.r.v):f.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?f.translate(this.px.v,this.py.v,-this.pz.v):f.translate(this.px.v,this.py.v,0):f.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(f){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||f){var I;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 L,B;if(I=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/I,0),B=this.p.getValueAtTime(this.p.keyframes[0].t/I,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/I,0),B=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/I,0)):(L=this.p.pv,B=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/I,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],B=[];var y=this.px,N=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(L[0]=y.getValueAtTime((y.keyframes[0].t+.01)/I,0),L[1]=N.getValueAtTime((N.keyframes[0].t+.01)/I,0),B[0]=y.getValueAtTime(y.keyframes[0].t/I,0),B[1]=N.getValueAtTime(N.keyframes[0].t/I,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(L[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/I,0),L[1]=N.getValueAtTime(N.keyframes[N.keyframes.length-1].t/I,0),B[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/I,0),B[1]=N.getValueAtTime((N.keyframes[N.keyframes.length-1].t-.01)/I,0)):(L=[y.pv,N.pv],B[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/I,y.offsetTime),B[1]=N.getValueAtTime((N._caching.lastFrame+N.offsetTime-.01)/I,N.offsetTime))}else B=t,L=B;this.v.rotate(-Math.atan2(L[1]-B[1],L[0]-B[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function d(){}function c(f){this._addDynamicProperty(f),this.elem.addDynamicProperty(f),this._isDirty=!0}function u(f,I,L){if(this.elem=f,this.frameId=-1,this.propType="transform",this.data=I,this.v=new ne,this.pre=new ne,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||f),I.p&&I.p.s?(this.px=et.getProp(f,I.p.x,0,0,this),this.py=et.getProp(f,I.p.y,0,0,this),I.p.z&&(this.pz=et.getProp(f,I.p.z,0,0,this))):this.p=et.getProp(f,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=et.getProp(f,I.rx,0,At,this),this.ry=et.getProp(f,I.ry,0,At,this),this.rz=et.getProp(f,I.rz,0,At,this),I.or.k[0].ti){var B,y=I.or.k.length;for(B=0;B<y;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=et.getProp(f,I.or,1,At,this),this.or.sh=!0}else this.r=et.getProp(f,I.r||{k:0},0,At,this);I.sk&&(this.sk=et.getProp(f,I.sk,0,At,this),this.sa=et.getProp(f,I.sa,0,At,this)),this.a=et.getProp(f,I.a||{k:[0,0,0]},1,0,this),this.s=et.getProp(f,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=et.getProp(f,I.o,0,.01,f):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}u.prototype={applyToMatrix:r,getValue:i,precalculateMatrix:n,autoOrient:d},$([ee],u),u.prototype.addDynamicProperty=c,u.prototype._addDynamicProperty=ee.prototype.addDynamicProperty;function T(f,I,L){return new u(f,I,L)}return{getTransformProperty:T}}();function hr(){}$([ze],hr),hr.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.c=et.getProp(t,r.c,0,null,this),this.o=et.getProp(t,r.o,0,null,this),this.tr=ll.getTransformProperty(t,r.tr,this),this.so=et.getProp(t,r.tr.so,0,.01,this),this.eo=et.getProp(t,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new ne,this.rMatrix=new ne,this.sMatrix=new ne,this.tMatrix=new ne,this.matrix=new ne},hr.prototype.applyTransforms=function(t,r,i,n,d,c){var u=c?-1:1,T=n.s.v[0]+(1-n.s.v[0])*(1-d),f=n.s.v[1]+(1-n.s.v[1])*(1-d);t.translate(n.p.v[0]*u*d,n.p.v[1]*u*d,n.p.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.rotate(-n.r.v*u*d),r.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(c?1/T:T,c?1/f:f),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},hr.prototype.init=function(t,r,i,n){for(this.elem=t,this.arr=r,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r[i]);i>0;)i-=1,this._elements.unshift(r[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},hr.prototype.resetElements=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._processed=!1,t[r].ty==="gr"&&this.resetElements(t[r].it)},hr.prototype.cloneElements=function(t){var r=JSON.parse(JSON.stringify(t));return this.resetElements(r),r},hr.prototype.changeGroupRender=function(t,r){var i,n=t.length;for(i=0;i<n;i+=1)t[i]._render=r,t[i].ty==="gr"&&this.changeGroupRender(t[i].it,r)},hr.prototype.processShapes=function(t){var r,i,n,d,c,u=!1;if(this._mdf||t){var T=Math.ceil(this.c.v);if(this._groups.length<T){for(;this._groups.length<T;){var f={it:this.cloneElements(this._elements),ty:"gr"};f.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,f),this._groups.splice(0,0,f),this._currentCopies+=1}this.elem.reloadShapes(),u=!0}c=0;var I;for(n=0;n<=this._groups.length-1;n+=1){if(I=c<T,this._groups[n]._render=I,this.changeGroupRender(this._groups[n].it,I),!I){var L=this.elemsData[n].it,B=L[L.length-1];B.transform.op.v!==0?(B.transform.op._mdf=!0,B.transform.op.v=0):B.transform.op._mdf=!1}c+=1}this._currentCopies=T;var y=this.o.v,N=y%1,O=y>0?Math.floor(y):Math.ceil(y),M=this.pMatrix.props,z=this.rMatrix.props,C=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var S=0;if(y>0){for(;S<O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;N&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,N,!1),S+=N)}else if(y<0){for(;S>O;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;N&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-N,!0),S-=N)}n=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var b,A;c;){if(r=this.elemsData[n].it,i=r[r.length-1].transform.mProps.v.props,A=i.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),S!==0){for((n!==0&&d===1||n!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),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]),b=0;b<A;b+=1)i[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<A;b+=1)i[b]=this.matrix.props[b];S+=1,c-=1,n+=d}}else for(c=this._currentCopies,n=0,d=1;c;)r=this.elemsData[n].it,i=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,c-=1,n+=d;return u},hr.prototype.addShape=function(){};function is(){}$([ze],is),is.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.rd=et.getProp(t,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},is.prototype.processPath=function(t,r){var i=ae.newElement();i.c=t.c;var n,d=t._length,c,u,T,f,I,L,B=0,y,N,O,M,z,C;for(n=0;n<d;n+=1)c=t.v[n],T=t.o[n],u=t.i[n],c[0]===T[0]&&c[1]===T[1]&&c[0]===u[0]&&c[1]===u[1]?(n===0||n===d-1)&&!t.c?(i.setTripleAt(c[0],c[1],T[0],T[1],u[0],u[1],B),B+=1):(n===0?f=t.v[d-1]:f=t.v[n-1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),L=I?Math.min(I/2,r)/I:0,z=c[0]+(f[0]-c[0])*L,y=z,C=c[1]-(c[1]-f[1])*L,N=C,O=y-(y-c[0])*me,M=N-(N-c[1])*me,i.setTripleAt(y,N,O,M,z,C,B),B+=1,n===d-1?f=t.v[0]:f=t.v[n+1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),L=I?Math.min(I/2,r)/I:0,O=c[0]+(f[0]-c[0])*L,y=O,M=c[1]+(f[1]-c[1])*L,N=M,z=y-(y-c[0])*me,C=N-(N-c[1])*me,i.setTripleAt(y,N,O,M,z,C,B),B+=1):(i.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],B),B+=1);return i},is.prototype.processShapes=function(t){var r,i,n=this.shapes.length,d,c,u=this.rd.v;if(u!==0){var T,f;for(i=0;i<n;i+=1){if(T=this.shapes[i],f=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!t))for(f.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)f.addShape(this.processPath(r[d],u));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ba(t,r){return Math.abs(t-r)*1e5<=Math.min(Math.abs(t),Math.abs(r))}function cl(t){return Math.abs(t)<=1e-5}function Rd(t,r,i){return t*(1-i)+r*i}function jr(t,r,i){return[Rd(t[0],r[0],i),Rd(t[1],r[1],i)]}function Cf(t,r,i){if(t===0)return[];var n=r*r-4*t*i;if(n<0)return[];var d=-r/(2*t);if(n===0)return[d];var c=Math.sqrt(n)/(2*t);return[d-c,d+c]}function Od(t,r,i,n){return[-t+3*r-3*i+n,3*t-6*r+3*i,-3*t+3*r,t]}function Pd(t){return new Vt(t,t,t,t,!1)}function Vt(t,r,i,n,d){d&&oo(t,r)&&(r=jr(t,n,1/3)),d&&oo(i,n)&&(i=jr(t,n,2/3));var c=Od(t[0],r[0],i[0],n[0]),u=Od(t[1],r[1],i[1],n[1]);this.a=[c[0],u[0]],this.b=[c[1],u[1]],this.c=[c[2],u[2]],this.d=[c[3],u[3]],this.points=[t,r,i,n]}Vt.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Vt.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Vt.prototype.tangentAngle=function(t){var r=this.derivative(t);return Math.atan2(r[1],r[0])},Vt.prototype.normalAngle=function(t){var r=this.derivative(t);return Math.atan2(r[0],r[1])},Vt.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(cl(t))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var n=Math.sqrt(i);return cl(n)?n>0&&n<1?[r]:[]:[r-n,r+n].filter(function(d){return d>0&&d<1})},Vt.prototype.split=function(t){if(t<=0)return[Pd(this.points[0]),this];if(t>=1)return[this,Pd(this.points[this.points.length-1])];var r=jr(this.points[0],this.points[1],t),i=jr(this.points[1],this.points[2],t),n=jr(this.points[2],this.points[3],t),d=jr(r,i,t),c=jr(i,n,t),u=jr(d,c,t);return[new Vt(this.points[0],r,d,u,!0),new Vt(u,c,n,this.points[3],!0)]};function Dd(t,r){var i=t.points[0][r],n=t.points[t.points.length-1][r];if(i>n){var d=n;n=i,i=d}for(var c=Cf(3*t.a[r],2*t.b[r],t.c[r]),u=0;u<c.length;u+=1)if(c[u]>0&&c[u]<1){var T=t.point(c[u])[r];T<i?i=T:T>n&&(n=T)}return{min:i,max:n}}Vt.prototype.bounds=function(){return{x:Dd(this,0),y:Dd(this,1)}},Vt.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function ya(t,r,i){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(r+i)/2,t1:r,t2:i}}function Fd(t){var r=t.bez.split(.5);return[ya(r[0],t.t1,t.t),ya(r[1],t.t,t.t2)]}function wf(t,r){return Math.abs(t.cx-r.cx)*2<t.width+r.width&&Math.abs(t.cy-r.cy)*2<t.height+r.height}function os(t,r,i,n,d,c){if(wf(t,r)){if(i>=c||t.width<=n&&t.height<=n&&r.width<=n&&r.height<=n){d.push([t.t,r.t]);return}var u=Fd(t),T=Fd(r);os(u[0],T[0],i+1,n,d,c),os(u[0],T[1],i+1,n,d,c),os(u[1],T[0],i+1,n,d,c),os(u[1],T[1],i+1,n,d,c)}}Vt.prototype.intersections=function(t,r,i){r===void 0&&(r=2),i===void 0&&(i=7);var n=[];return os(ya(this,0,1),ya(t,0,1),0,r,n,i),n},Vt.shapeSegment=function(t,r){var i=(r+1)%t.length();return new Vt(t.v[r],t.o[r],t.i[i],t.v[i],!0)},Vt.shapeSegmentInverted=function(t,r){var i=(r+1)%t.length();return new Vt(t.v[i],t.i[i],t.o[r],t.v[r],!0)};function dl(t,r){return[t[1]*r[2]-t[2]*r[1],t[2]*r[0]-t[0]*r[2],t[0]*r[1]-t[1]*r[0]]}function Ea(t,r,i,n){var d=[t[0],t[1],1],c=[r[0],r[1],1],u=[i[0],i[1],1],T=[n[0],n[1],1],f=dl(dl(d,c),dl(u,T));return cl(f[2])?null:[f[0]/f[2],f[1]/f[2]]}function io(t,r,i){return[t[0]+Math.cos(r)*i,t[1]-Math.sin(r)*i]}function hl(t,r){return Math.hypot(t[0]-r[0],t[1]-r[1])}function oo(t,r){return ba(t[0],r[0])&&ba(t[1],r[1])}function ss(){}$([ze],ss),ss.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amplitude=et.getProp(t,r.s,0,null,this),this.frequency=et.getProp(t,r.r,0,null,this),this.pointsType=et.getProp(t,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function $d(t,r,i,n,d,c,u){var T=i-Math.PI/2,f=i+Math.PI/2,I=r[0]+Math.cos(i)*n*d,L=r[1]-Math.sin(i)*n*d;t.setTripleAt(I,L,I+Math.cos(T)*c,L-Math.sin(T)*c,I+Math.cos(f)*u,L-Math.sin(f)*u,t.length())}function Lf(t,r){var i=[r[0]-t[0],r[1]-t[1]],n=-Math.PI*.5,d=[Math.cos(n)*i[0]-Math.sin(n)*i[1],Math.sin(n)*i[0]+Math.cos(n)*i[1]];return d}function Nf(t,r){var i=r===0?t.length()-1:r-1,n=(r+1)%t.length(),d=t.v[i],c=t.v[n],u=Lf(d,c);return Math.atan2(0,1)-Math.atan2(u[1],u[0])}function zd(t,r,i,n,d,c,u){var T=Nf(r,i),f=r.v[i%r._length],I=r.v[i===0?r._length-1:i-1],L=r.v[(i+1)%r._length],B=c===2?Math.sqrt(Math.pow(f[0]-I[0],2)+Math.pow(f[1]-I[1],2)):0,y=c===2?Math.sqrt(Math.pow(f[0]-L[0],2)+Math.pow(f[1]-L[1],2)):0;$d(t,r.v[i%r._length],T,u,n,y/((d+1)*2),B/((d+1)*2),c)}function Mf(t,r,i,n,d,c){for(var u=0;u<n;u+=1){var T=(u+1)/(n+1),f=d===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,I=r.normalAngle(T),L=r.point(T);$d(t,L,I,c,i,f/((n+1)*2),f/((n+1)*2),d),c=-c}return c}ss.prototype.processPath=function(t,r,i,n){var d=t._length,c=ae.newElement();if(c.c=t.c,t.c||(d-=1),d===0)return c;var u=-1,T=Vt.shapeSegment(t,0);zd(c,t,0,r,i,n,u);for(var f=0;f<d;f+=1)u=Mf(c,T,r,i,n,-u),f===d-1&&!t.c?T=null:T=Vt.shapeSegment(t,(f+1)%d),zd(c,t,f+1,r,i,n,u);return c},ss.prototype.processShapes=function(t){var r,i,n=this.shapes.length,d,c,u=this.amplitude.v,T=Math.max(0,Math.round(this.frequency.v)),f=this.pointsType.v;if(u!==0){var I,L;for(i=0;i<n;i+=1){if(I=this.shapes[i],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],u,T,f));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ml(t,r,i){var n=Math.atan2(r[0]-t[0],r[1]-t[1]);return[io(t,n,i),io(r,n,i)]}function so(t,r){var i,n,d,c,u,T,f;f=ml(t.points[0],t.points[1],r),i=f[0],n=f[1],f=ml(t.points[1],t.points[2],r),d=f[0],c=f[1],f=ml(t.points[2],t.points[3],r),u=f[0],T=f[1];var I=Ea(i,n,d,c);I===null&&(I=n);var L=Ea(u,T,d,c);return L===null&&(L=u),new Vt(i,I,L,T)}function Vd(t,r,i,n,d){var c=r.points[3],u=i.points[0];if(n===3||oo(c,u))return c;if(n===2){var T=-r.tangentAngle(1),f=-i.tangentAngle(0)+Math.PI,I=Ea(c,io(c,T+Math.PI/2,100),u,io(u,T+Math.PI/2,100)),L=I?hl(I,c):hl(c,u)/2,B=io(c,T,2*L*me);return t.setXYAt(B[0],B[1],"o",t.length()-1),B=io(u,f,2*L*me),t.setTripleAt(u[0],u[1],u[0],u[1],B[0],B[1],t.length()),u}var y=oo(c,r.points[2])?r.points[0]:r.points[2],N=oo(u,i.points[1])?i.points[3]:i.points[1],O=Ea(y,c,u,N);return O&&hl(O,c)<d?(t.setTripleAt(O[0],O[1],O[0],O[1],O[0],O[1],t.length()),O):c}function Bd(t,r){var i=t.intersections(r);return i.length&&ba(i[0][0],1)&&i.shift(),i.length?i[0]:null}function Ud(t,r){var i=t.slice(),n=r.slice(),d=Bd(t[t.length-1],r[0]);return d&&(i[t.length-1]=t[t.length-1].split(d[0])[0],n[0]=r[0].split(d[1])[1]),t.length>1&&r.length>1&&(d=Bd(t[0],r[r.length-1]),d)?[[t[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[i,n]}function Rf(t){for(var r,i=1;i<t.length;i+=1)r=Ud(t[i-1],t[i]),t[i-1]=r[0],t[i]=r[1];return t.length>1&&(r=Ud(t[t.length-1],t[0]),t[t.length-1]=r[0],t[0]=r[1]),t}function Hd(t,r){var i=t.inflectionPoints(),n,d,c,u;if(i.length===0)return[so(t,r)];if(i.length===1||ba(i[1],1))return c=t.split(i[0]),n=c[0],d=c[1],[so(n,r),so(d,r)];c=t.split(i[0]),n=c[0];var T=(i[1]-i[0])/(1-i[0]);return c=c[1].split(T),u=c[0],d=c[1],[so(n,r),so(u,r),so(d,r)]}function as(){}$([ze],as),as.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=et.getProp(t,r.a,0,null,this),this.miterLimit=et.getProp(t,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},as.prototype.processPath=function(t,r,i,n){var d=ae.newElement();d.c=t.c;var c=t.length();t.c||(c-=1);var u,T,f,I=[];for(u=0;u<c;u+=1)f=Vt.shapeSegment(t,u),I.push(Hd(f,r));if(!t.c)for(u=c-1;u>=0;u-=1)f=Vt.shapeSegmentInverted(t,u),I.push(Hd(f,r));I=Rf(I);var L=null,B=null;for(u=0;u<I.length;u+=1){var y=I[u];for(B&&(L=Vd(d,B,y[0],i,n)),B=y[y.length-1],T=0;T<y.length;T+=1)f=y[T],L&&oo(f.points[0],L)?d.setXYAt(f.points[1][0],f.points[1][1],"o",d.length()-1):d.setTripleAt(f.points[0][0],f.points[0][1],f.points[1][0],f.points[1][1],f.points[0][0],f.points[0][1],d.length()),d.setTripleAt(f.points[3][0],f.points[3][1],f.points[3][0],f.points[3][1],f.points[2][0],f.points[2][1],d.length()),L=f.points[3]}return I.length&&Vd(d,B,I[0][0],i,n),d},as.prototype.processShapes=function(t){var r,i,n=this.shapes.length,d,c,u=this.amount.v,T=this.miterLimit.v,f=this.lineJoin;if(u!==0){var I,L;for(i=0;i<n;i+=1){if(I=this.shapes[i],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],u,f,T));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Gd(t){for(var r=t.fStyle?t.fStyle.split(" "):[],i="normal",n="normal",d=r.length,c,u=0;u<d;u+=1)switch(c=r[u].toLowerCase(),c){case"italic":n="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break;default:break}return{style:n,weight:t.fWeight||i}}var fi=function(){var t=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,d=917631,c=917601,u=917626,T=65039,f=8205,I=127462,L=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function y(_){var R=_.split(","),p,g=R.length,U=[];for(p=0;p<g;p+=1)R[p]!=="sans-serif"&&R[p]!=="monospace"&&U.push(R[p]);return U.join(",")}function N(_,R){var p=w("span");p.setAttribute("aria-hidden",!0),p.style.fontFamily=R;var g=w("span");g.innerText="giItT1WQy@!-/#",p.style.position="absolute",p.style.left="-10000px",p.style.top="-10000px",p.style.fontSize="300px",p.style.fontVariant="normal",p.style.fontStyle="normal",p.style.fontWeight="normal",p.style.letterSpacing="0",p.appendChild(g),document.body.appendChild(p);var U=g.offsetWidth;return g.style.fontFamily=y(_)+", "+R,{node:g,w:U,parent:p}}function O(){var _,R=this.fonts.length,p,g,U=R;for(_=0;_<R;_+=1)this.fonts[_].loaded?U-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(p=this.fonts[_].monoCase.node,g=this.fonts[_].monoCase.w,p.offsetWidth!==g?(U-=1,this.fonts[_].loaded=!0):(p=this.fonts[_].sansCase.node,g=this.fonts[_].sansCase.w,p.offsetWidth!==g&&(U-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));U!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function M(_,R){var p=document.body&&R?"svg":"canvas",g,U=Gd(_);if(p==="svg"){var F=ut("text");F.style.fontSize="100px",F.setAttribute("font-family",_.fFamily),F.setAttribute("font-style",U.style),F.setAttribute("font-weight",U.weight),F.textContent="1",_.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",_.fClass)):F.style.fontFamily=_.fFamily,R.appendChild(F),g=F}else{var it=new OffscreenCanvas(500,500).getContext("2d");it.font=U.style+" "+U.weight+" 100px "+_.fFamily,g=it}function ht(pt){return p==="svg"?(g.textContent=pt,g.getComputedTextLength()):g.measureText(pt).width}return{measureText:ht}}function z(_,R){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(xe){xe.helper=M(xe),xe.cache={}}),this.fonts=_.list;return}var p=_.list,g,U=p.length,F=U;for(g=0;g<U;g+=1){var it=!0,ht,pt;if(p[g].loaded=!1,p[g].monoCase=N(p[g].fFamily,"monospace"),p[g].sansCase=N(p[g].fFamily,"sans-serif"),!p[g].fPath)p[g].loaded=!0,F-=1;else if(p[g].fOrigin==="p"||p[g].origin===3){if(ht=document.querySelectorAll('style[f-forigin="p"][f-family="'+p[g].fFamily+'"], style[f-origin="3"][f-family="'+p[g].fFamily+'"]'),ht.length>0&&(it=!1),it){var It=w("style");It.setAttribute("f-forigin",p[g].fOrigin),It.setAttribute("f-origin",p[g].origin),It.setAttribute("f-family",p[g].fFamily),It.type="text/css",It.innerText="@font-face {font-family: "+p[g].fFamily+"; font-style: normal; src: url('"+p[g].fPath+"');}",R.appendChild(It)}}else if(p[g].fOrigin==="g"||p[g].origin===1){for(ht=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),pt=0;pt<ht.length;pt+=1)ht[pt].href.indexOf(p[g].fPath)!==-1&&(it=!1);if(it){var kt=w("link");kt.setAttribute("f-forigin",p[g].fOrigin),kt.setAttribute("f-origin",p[g].origin),kt.type="text/css",kt.rel="stylesheet",kt.href=p[g].fPath,document.body.appendChild(kt)}}else if(p[g].fOrigin==="t"||p[g].origin===2){for(ht=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),pt=0;pt<ht.length;pt+=1)p[g].fPath===ht[pt].src&&(it=!1);if(it){var jt=w("link");jt.setAttribute("f-forigin",p[g].fOrigin),jt.setAttribute("f-origin",p[g].origin),jt.setAttribute("rel","stylesheet"),jt.setAttribute("href",p[g].fPath),R.appendChild(jt)}}p[g].helper=M(p[g],R),p[g].cache={},this.fonts.push(p[g])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function C(_){if(_){this.chars||(this.chars=[]);var R,p=_.length,g,U=this.chars.length,F;for(R=0;R<p;R+=1){for(g=0,F=!1;g<U;)this.chars[g].style===_[R].style&&this.chars[g].fFamily===_[R].fFamily&&this.chars[g].ch===_[R].ch&&(F=!0),g+=1;F||(this.chars.push(_[R]),U+=1)}}}function S(_,R,p){for(var g=0,U=this.chars.length;g<U;){if(this.chars[g].ch===_&&this.chars[g].style===R&&this.chars[g].fFamily===p)return this.chars[g];g+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,R,p)),r}function b(_,R,p){var g=this.getFontByName(R),U=_;if(!g.cache[U]){var F=g.helper;if(_===" "){var it=F.measureText("|"+_+"|"),ht=F.measureText("||");g.cache[U]=(it-ht)/100}else g.cache[U]=F.measureText(_)/100}return g.cache[U]*p}function A(_){for(var R=0,p=this.fonts.length;R<p;){if(this.fonts[R].fName===_)return this.fonts[R];R+=1}return this.fonts[0]}function k(_){var R=0,p=_.charCodeAt(0);if(p>=55296&&p<=56319){var g=_.charCodeAt(1);g>=56320&&g<=57343&&(R=(p-55296)*1024+g-56320+65536)}return R}function D(_,R){var p=_.toString(16)+R.toString(16);return B.indexOf(p)!==-1}function V(_){return _===f}function H(_){return _===T}function Z(_){var R=k(_);return R>=I&&R<=L}function mt(_){return Z(_.substr(0,2))&&Z(_.substr(2,2))}function nt(_){return i.indexOf(_)!==-1}function Q(_,R){var p=k(_.substr(R,2));if(p!==n)return!1;var g=0;for(R+=2;g<5;){if(p=k(_.substr(R,2)),p<c||p>u)return!1;g+=1,R+=2}return k(_.substr(R,2))===d}function ft(){this.isLoaded=!0}var st=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)};st.isModifier=D,st.isZeroWidthJoiner=V,st.isFlagEmoji=mt,st.isRegionalCode=Z,st.isCombinedCharacter=nt,st.isRegionalFlag=Q,st.isVariationSelector=H,st.BLACK_FLAG_CODE_POINT=n;var X={addChars:C,addFonts:z,getCharData:S,getFontByName:A,measureText:b,checkLoadedFonts:O,setIsLoaded:ft};return st.prototype=X,st}();function jd(t){this.animationData=t}jd.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function Of(t){return new jd(t)}function xa(){}xa.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},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(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?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 r,i=this.renderableComponents.length;for(r=0;r<i;r+=1)this.renderableComponents[r].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 pl=function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(r){return t[r]||""}}();function Pf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Df(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Ff(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function $f(t,r,i){this.p=et.getProp(r,t.v,1,0,i)}function zf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Vf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Bf(t,r,i){this.p=et.getProp(r,t.v,0,0,i)}function Uf(){this.p={}}function Wd(t,r){var i=t.ef||[];this.effectElements=[];var n,d=i.length,c;for(n=0;n<d;n+=1)c=new ns(i[n],r),this.effectElements.push(c)}function ns(t,r){this.init(t,r)}$([ee],ns),ns.prototype.getValue=ns.prototype.iterateDynamicProperties,ns.prototype.init=function(t,r){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(r);var i,n=this.data.ef.length,d,c=this.data.ef;for(i=0;i<n;i+=1){switch(d=null,c[i].ty){case 0:d=new Pf(c[i],r,this);break;case 1:d=new Df(c[i],r,this);break;case 2:d=new Ff(c[i],r,this);break;case 3:d=new $f(c[i],r,this);break;case 4:case 7:d=new Bf(c[i],r,this);break;case 10:d=new zf(c[i],r,this);break;case 11:d=new Vf(c[i],r,this);break;case 5:d=new Wd(c[i],r,this);break;default:d=new Uf(c[i],r,this);break}d&&this.effectElements.push(d)}};function Wr(){}Wr.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,i=this.data.masksProperties.length;r<i;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=bd();if(r){var i=r("layer"),n=r("effects"),d=r("shape"),c=r("text"),u=r("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var T=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(T),this.data.ty===0||this.data.xt?this.compInterface=u(this):this.data.ty===4?(this.layerInterface.shapeInterface=d(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=pl(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=r},initBaseData:function(r,i,n){this.globalData=i,this.comp=n,this.data=r,this.layerId=ye(),this.data.sr||(this.data.sr=1),this.effectsManager=new Wd(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Yr(){}Yr.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,i){var n,d=this.dynamicProperties.length;for(n=0;n<d;n+=1)(i||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function qr(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(t,r,i)}qr.prototype.prepareFrame=function(){},$([xa,Wr,Yr],qr),qr.prototype.getBaseElement=function(){return null},qr.prototype.renderFrame=function(){},qr.prototype.destroy=function(){},qr.prototype.initExpressions=function(){var t=bd();if(t){var r=t("footage");this.layerInterface=r(this)}},qr.prototype.getFootageData=function(){return this.footageData};function Ee(t,r,i){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.initBaseData(t,r,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=et.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}Ee.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},$([xa,Wr,Yr],Ee),Ee.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))},Ee.prototype.show=function(){},Ee.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ee.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ee.prototype.resume=function(){this._canPlay=!0},Ee.prototype.setRate=function(t){this.audio.rate(t)},Ee.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Ee.prototype.getBaseElement=function(){return null},Ee.prototype.destroy=function(){},Ee.prototype.sourceRectAtTime=function(){},Ee.prototype.initExpressions=function(){};function le(){}le.prototype.checkLayers=function(t){var r,i=this.layers.length,n;for(this.completeLayers=!0,r=i-1;r>=0;r-=1)this.elements[r]||(n=this.layers[r],n.ip-n.st<=t-this.layers[r].st&&n.op-n.st>t-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},le.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},le.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},le.prototype.createAudio=function(t){return new Ee(t,this.globalData,this)},le.prototype.createFootage=function(t){return new qr(t,this.globalData,this)},le.prototype.buildAllItems=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.buildItem(t);this.checkPendingElements()},le.prototype.includeLayers=function(t){this.completeLayers=!1;var r,i=t.length,n,d=this.layers.length;for(r=0;r<i;r+=1)for(n=0;n<d;){if(this.layers[n].id===t[r].id){this.layers[n]=t[r];break}n+=1}},le.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},le.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},le.prototype.buildElementParenting=function(t,r,i){for(var n=this.elements,d=this.layers,c=0,u=d.length;c<u;)d[c].ind==r&&(!n[c]||n[c]===!0?(this.buildItem(c),this.addPendingElement(t)):(i.push(n[c]),n[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(t,d[c].parent,i):t.setHierarchy(i))),c+=1},le.prototype.addPendingElement=function(t){this.pendingElements.push(t)},le.prototype.searchExtraCompositions=function(t){var r,i=t.length;for(r=0;r<i;r+=1)if(t[r].xt){var n=this.createComp(t[r]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},le.prototype.getElementById=function(t){var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.ind===t)return this.elements[r];return null},le.prototype.getElementByPath=function(t){var r=t.shift(),i;if(typeof r=="number")i=this.elements[r];else{var n,d=this.elements.length;for(n=0;n<d;n+=1)if(this.elements[n].data.nm===r){i=this.elements[n];break}}return t.length===0?i:i.getElementByPath(t)},le.prototype.setupGlobalData=function(t,r){this.globalData.fontManager=new fi,this.globalData.slotManager=Of(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,r),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var Hf={TRANSFORM_EFFECT:"transformEFfect"};function ao(){}ao.prototype={initTransform:function(){var r=new ne;this.finalTransform={mProp:this.data.ks?ll.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,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 r,i=this.finalTransform.mat,n=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<d;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,i.cloneFromProps(r),n=0;n<d;n+=1)i.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var r=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<i;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),r=1;r<i;r+=1){var d=this.localTransforms[r].matrix;n.multiply(d)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<i;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Hf.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new ne;var i=0,n=r.length;for(i=0;i<n;i+=1)this.localTransforms.push(r[i])}}},globalToLocal:function(r){var i=[];i.push(this.finalTransform);for(var n=!0,d=this.comp;n;)d.finalTransform?(d.data.hasMask&&i.splice(0,0,d.finalTransform),d=d.comp):n=!1;var c,u=i.length,T;for(c=0;c<u;c+=1)T=i[c].mat.applyToPointArray(0,0,0),r=[r[0]-T[0],r[1]-T[1],0];return r},mHelper:new ne};function vi(t,r,i){this.data=t,this.element=r,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(c),this.solidPath="";var u,T=this.masksProperties,f=0,I=[],L,B,y=ye(),N,O,M,z,C="clipPath",S="clip-path";for(d=0;d<c;d+=1)if((T[d].mode!=="a"&&T[d].mode!=="n"||T[d].inv||T[d].o.k!==100||T[d].o.x)&&(C="mask",S="mask"),(T[d].mode==="s"||T[d].mode==="i")&&f===0?(N=ut("rect"),N.setAttribute("fill","#ffffff"),N.setAttribute("width",this.element.comp.data.w||0),N.setAttribute("height",this.element.comp.data.h||0),I.push(N)):N=null,u=ut("path"),T[d].mode==="n")this.viewData[d]={op:et.getProp(this.element,T[d].o,0,.01,this.element),prop:fa.getShapeProp(this.element,T[d],3),elem:u,lastPath:""},n.appendChild(u);else{f+=1,u.setAttribute("fill",T[d].mode==="s"?"#000000":"#ffffff"),u.setAttribute("clip-rule","nonzero");var b;if(T[d].x.k!==0?(C="mask",S="mask",z=et.getProp(this.element,T[d].x,0,null,this.element),b=ye(),O=ut("filter"),O.setAttribute("id",b),M=ut("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),O.appendChild(M),n.appendChild(O),u.setAttribute("stroke",T[d].mode==="s"?"#000000":"#ffffff")):(M=null,z=null),this.storedData[d]={elem:u,x:z,expan:M,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},T[d].mode==="i"){B=I.length;var A=ut("g");for(L=0;L<B;L+=1)A.appendChild(I[L]);var k=ut("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",y+"_"+f),k.appendChild(u),n.appendChild(k),A.setAttribute("mask","url("+E()+"#"+y+"_"+f+")"),I.length=0,I.push(A)}else I.push(u);T[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:u,lastPath:"",op:et.getProp(this.element,T[d].o,0,.01,this.element),prop:fa.getShapeProp(this.element,T[d],3),invRect:N},this.viewData[d].prop.k||this.drawPath(T[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=ut(C),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);f>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(S,"url("+E()+"#"+y+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}vi.prototype.getMaskProperty=function(t){return this.viewData[t].prop},vi.prototype.renderFrame=function(t){var r=this.element.finalTransform.mat,i,n=this.masksProperties.length;for(i=0;i<n;i+=1)if((this.viewData[i].prop._mdf||t)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||t)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[i].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||t))){var d=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+E()+"#"+this.storedData[i].filterId+")")),d.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].x.v*2))}},vi.prototype.getMaskelement=function(){return this.maskElement},vi.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" ",t},vi.prototype.drawPath=function(t,r,i){var n=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[d][0]+","+r.i[d][1]+" "+r.v[d][0]+","+r.v[d][1];if(r.c&&c>1&&(n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),i.lastPath!==n){var u="";i.elem&&(r.c&&(u=t.inv?this.solidPath+n:n),i.elem.setAttribute("d",u)),i.lastPath=n}},vi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var ls=function(){var t={};t.createFilter=r,t.createAlphaToLuminanceFilter=i;function r(n,d){var c=ut("filter");return c.setAttribute("id",n),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function i(){var n=ut("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return t}(),Yd=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),Ta={},qd="filter_result_";function ul(t){var r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,d=ye(),c=ls.createFilter(d,!0),u=0;this.filters=[];var T;for(r=0;r<n;r+=1){T=null;var f=t.data.ef[r].ty;if(Ta[f]){var I=Ta[f].effect;T=new I(c,t.effectsManager.effectElements[r],t,qd+u,i),i=qd+u,Ta[f].countsAsEffect&&(u+=1)}T&&this.filters.push(T)}u&&(t.globalData.defs.appendChild(c),t.layerElement.setAttribute("filter","url("+E()+"#"+d+")")),this.filters.length&&t.addRenderableComponent(this)}ul.prototype.renderFrame=function(t){var r,i=this.filters.length;for(r=0;r<i;r+=1)this.filters[r].renderFrame(t)},ul.prototype.getEffects=function(t){var r,i=this.filters.length,n=[];for(r=0;r<i;r+=1)this.filters[r].type===t&&n.push(this.filters[r]);return n};function wy(t,r,i){Ta[t]={effect:r,countsAsEffect:i}}function cs(){}cs.prototype={initRendererElement:function(){this.layerElement=ut("g")},createContainerElements:function(){this.matteElement=ut("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var i=ut("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),r=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=ut("clipPath"),d=ut("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=ye();if(n.setAttribute("id",c),n.appendChild(d),this.globalData.defs.appendChild(n),this.checkMasks()){var u=ut("g");u.setAttribute("clip-path","url("+E()+"#"+c+")"),u.appendChild(this.layerElement),this.transformedElement=u,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+E()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new vi(this.data,this,this.globalData),this.renderableEffectsManager=new ul(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var i=this.layerId+"_"+r,n,d,c,u;if(r===1||r===3){var T=ut("mask");T.setAttribute("id",i),T.setAttribute("mask-type",r===3?"luminance":"alpha"),c=ut("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),T.appendChild(c),this.globalData.defs.appendChild(T),!Yd.maskType&&r===1&&(T.setAttribute("mask-type","luminance"),n=ye(),d=ls.createFilter(n),this.globalData.defs.appendChild(d),d.appendChild(ls.createAlphaToLuminanceFilter()),u=ut("g"),u.appendChild(c),T.appendChild(u),u.setAttribute("filter","url("+E()+"#"+n+")"))}else if(r===2){var f=ut("mask");f.setAttribute("id",i),f.setAttribute("mask-type","alpha");var I=ut("g");f.appendChild(I),n=ye(),d=ls.createFilter(n);var L=ut("feComponentTransfer");L.setAttribute("in","SourceGraphic"),d.appendChild(L);var B=ut("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),L.appendChild(B),this.globalData.defs.appendChild(d);var y=ut("rect");y.setAttribute("width",this.comp.data.w),y.setAttribute("height",this.comp.data.h),y.setAttribute("x","0"),y.setAttribute("y","0"),y.setAttribute("fill","#ffffff"),y.setAttribute("opacity","0"),I.setAttribute("filter","url("+E()+"#"+n+")"),I.appendChild(y),c=ut("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),Yd.maskType||(f.setAttribute("mask-type","luminance"),d.appendChild(ls.createAlphaToLuminanceFilter()),u=ut("g"),I.appendChild(y),u.appendChild(this.layerElement),I.appendChild(u)),this.globalData.defs.appendChild(f)}this.matteMasks[r]=i}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+E()+"#"+r+")")}};function no(){}no.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function ds(){}(function(){var t={initElement:function(i,n,d){this.initFrame(),this.initBaseData(i,n,d),this.initTransform(i,n,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};$([xa,q(t)],ds)})();function hs(t,r,i){this.assetData=r.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(t,r,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}$([Wr,ao,cs,no,Yr,ds],hs),hs.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=ut("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},hs.prototype.sourceRectAtTime=function(){return this.sourceRect};function Gf(t,r){this.elem=t,this.pos=r}function Kd(){}Kd.prototype={addShapeToModifiers:function(r){var i,n=this.shapeModifiers.length;for(i=0;i<n;i+=1)this.shapeModifiers[i].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var i=0,n=this.shapeModifiers.length;i<n;)if(this.shapeModifiers[i].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,i=this.shapes.length;for(r=0;r<i;r+=1)this.shapes[r].sh.reset();i=this.shapeModifiers.length;var n;for(r=i-1;r>=0&&(n=this.shapeModifiers[r].processShapes(this._isFirstFrame),!n);r-=1);}},searchProcessedElement:function(r){for(var i=this.processedElements,n=0,d=i.length;n<d;){if(i[n].elem===r)return i[n].pos;n+=1}return 0},addProcessedElement:function(r,i){for(var n=this.processedElements,d=n.length;d;)if(d-=1,n[d].elem===r){n[d].pos=i;return}n.push(new Gf(r,i))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Xd={1:"butt",2:"round",3:"square"},Zd={1:"miter",2:"round",3:"bevel"};function Jd(t,r,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=r,this._isAnimated=!!i.k;for(var n=0,d=t.length;n<d;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}Jd.prototype.setAsAnimated=function(){this._isAnimated=!0};function Qd(t,r){this.data=t,this.type=t.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=t.hd===!0,this.pElem=ut("path"),this.msElem=null}Qd.prototype.reset=function(){this.d="",this._mdf=!1};function Aa(t,r,i,n){this.elem=t,this.frameId=-1,this.dataProps=tt(r.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=J("float32",r.length?r.length-1:0),this.dashoffset=J("float32",1),this.initDynamicPropertyContainer(n);var d,c=r.length||0,u;for(d=0;d<c;d+=1)u=et.getProp(t,r[d].v,0,0,this),this.k=u.k||this.k,this.dataProps[d]={n:r[d].n,p:u};this.k||this.getValue(!0),this._isAnimated=this.k}Aa.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var r=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<i;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},$([ee],Aa);function th(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.w=et.getProp(t,r.w,0,null,this),this.d=new Aa(t,r.d||{},"svg",this),this.c=et.getProp(t,r.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}$([ee],th);function eh(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=et.getProp(t,r.o,0,.01,this),this.c=et.getProp(t,r.c,1,255,this),this.style=i}$([ee],eh);function rh(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}$([ee],rh);function ms(t,r,i){this.data=r,this.c=J("uint8c",r.p*4);var n=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=J("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=et.getProp(t,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ms.prototype.comparePoints=function(t,r){for(var i=0,n=this.o.length/2,d;i<n;){if(d=Math.abs(t[i*4]-t[r*4+i*2]),d>.01)return!1;i+=1}return!0},ms.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,r=this.data.k.k.length;t<r;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ms.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var r,i=this.data.p*4,n,d;for(r=0;r<i;r+=1)n=r%4===0?100:255,d=Math.round(this.prop.v[r]*n),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,r=this.data.p*4;r<i;r+=1)n=r%2===0?100:1,d=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==d&&(this.o[r-this.data.p*4]=d,this._omdf=!t);this._mdf=!t}},$([ee],ms);function lo(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,r,i)}lo.prototype.initGradientData=function(t,r,i){this.o=et.getProp(t,r.o,0,.01,this),this.s=et.getProp(t,r.s,1,null,this),this.e=et.getProp(t,r.e,1,null,this),this.h=et.getProp(t,r.h||{k:0},0,.01,this),this.a=et.getProp(t,r.a||{k:0},0,At,this),this.g=new ms(t,r.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,r),this.setGradientOpacity(r,i),this._isAnimated=!!this._isAnimated},lo.prototype.setGradientData=function(t,r){var i=ye(),n=ut(r.t===1?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,u,T;for(T=r.g.p*4,u=0;u<T;u+=4)c=ut("stop"),n.appendChild(c),d.push(c);t.setAttribute(r.ty==="gf"?"fill":"stroke","url("+E()+"#"+i+")"),this.gf=n,this.cst=d},lo.prototype.setGradientOpacity=function(t,r){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,d,c=ut("mask"),u=ut("path");c.appendChild(u);var T=ye(),f=ye();c.setAttribute("id",f);var I=ut(t.t===1?"linearGradient":"radialGradient");I.setAttribute("id",T),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var L=this.stops;for(n=t.g.p*4;n<d;n+=2)i=ut("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(i),L.push(i);u.setAttribute(t.ty==="gf"?"fill":"stroke","url("+E()+"#"+T+")"),t.ty==="gs"&&(u.setAttribute("stroke-linecap",Xd[t.lc||2]),u.setAttribute("stroke-linejoin",Zd[t.lj||2]),t.lj===1&&u.setAttribute("stroke-miterlimit",t.ml)),this.of=I,this.ms=c,this.ost=L,this.maskId=f,r.msElem=u}},$([ee],lo);function ih(t,r,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=et.getProp(t,r.w,0,null,this),this.d=new Aa(t,r.d||{},"svg",this),this.initGradientData(t,r,i),this._isAnimated=!!this._isAnimated}$([lo,ee],ih);function jf(){this.it=[],this.prevViewData=[],this.gr=ut("g")}function Wf(t,r,i){this.transform={mProps:t,op:r,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var oh=function(r,i,n,d){if(i===0)return"";var c=r.o,u=r.i,T=r.v,f,I=" M"+d.applyToPointStringified(T[0][0],T[0][1]);for(f=1;f<i;f+=1)I+=" C"+d.applyToPointStringified(c[f-1][0],c[f-1][1])+" "+d.applyToPointStringified(u[f][0],u[f][1])+" "+d.applyToPointStringified(T[f][0],T[f][1]);return n&&i&&(I+=" C"+d.applyToPointStringified(c[f-1][0],c[f-1][1])+" "+d.applyToPointStringified(u[0][0],u[0][1])+" "+d.applyToPointStringified(T[0][0],T[0][1]),I+="z"),I},Yf=function(){var t=new ne,r=new ne,i={createRenderFunction:n};function n(B){switch(B.ty){case"fl":return T;case"gf":return I;case"gs":return f;case"st":return L;case"sh":case"el":case"rc":case"sr":return u;case"tr":return d;case"no":return c;default:return null}}function d(B,y,N){(N||y.transform.op._mdf)&&y.transform.container.setAttribute("opacity",y.transform.op.v),(N||y.transform.mProps._mdf)&&y.transform.container.setAttribute("transform",y.transform.mProps.v.to2dCSS())}function c(){}function u(B,y,N){var O,M,z,C,S,b,A=y.styles.length,k=y.lvl,D,V,H,Z;for(b=0;b<A;b+=1){if(C=y.sh._mdf||N,y.styles[b].lvl<k){for(V=r.reset(),H=k-y.styles[b].lvl,Z=y.transformers.length-1;!C&&H>0;)C=y.transformers[Z].mProps._mdf||C,H-=1,Z-=1;if(C)for(H=k-y.styles[b].lvl,Z=y.transformers.length-1;H>0;)V.multiply(y.transformers[Z].mProps.v),H-=1,Z-=1}else V=t;if(D=y.sh.paths,M=D._length,C){for(z="",O=0;O<M;O+=1)S=D.shapes[O],S&&S._length&&(z+=oh(S,S._length,S.c,V));y.caches[b]=z}else z=y.caches[b];y.styles[b].d+=B.hd===!0?"":z,y.styles[b]._mdf=C||y.styles[b]._mdf}}function T(B,y,N){var O=y.style;(y.c._mdf||N)&&O.pElem.setAttribute("fill","rgb("+te(y.c.v[0])+","+te(y.c.v[1])+","+te(y.c.v[2])+")"),(y.o._mdf||N)&&O.pElem.setAttribute("fill-opacity",y.o.v)}function f(B,y,N){I(B,y,N),L(B,y,N)}function I(B,y,N){var O=y.gf,M=y.g._hasOpacity,z=y.s.v,C=y.e.v;if(y.o._mdf||N){var S=B.ty==="gf"?"fill-opacity":"stroke-opacity";y.style.pElem.setAttribute(S,y.o.v)}if(y.s._mdf||N){var b=B.t===1?"x1":"cx",A=b==="x1"?"y1":"cy";O.setAttribute(b,z[0]),O.setAttribute(A,z[1]),M&&!y.g._collapsable&&(y.of.setAttribute(b,z[0]),y.of.setAttribute(A,z[1]))}var k,D,V,H;if(y.g._cmdf||N){k=y.cst;var Z=y.g.c;for(V=k.length,D=0;D<V;D+=1)H=k[D],H.setAttribute("offset",Z[D*4]+"%"),H.setAttribute("stop-color","rgb("+Z[D*4+1]+","+Z[D*4+2]+","+Z[D*4+3]+")")}if(M&&(y.g._omdf||N)){var mt=y.g.o;for(y.g._collapsable?k=y.cst:k=y.ost,V=k.length,D=0;D<V;D+=1)H=k[D],y.g._collapsable||H.setAttribute("offset",mt[D*2]+"%"),H.setAttribute("stop-opacity",mt[D*2+1])}if(B.t===1)(y.e._mdf||N)&&(O.setAttribute("x2",C[0]),O.setAttribute("y2",C[1]),M&&!y.g._collapsable&&(y.of.setAttribute("x2",C[0]),y.of.setAttribute("y2",C[1])));else{var nt;if((y.s._mdf||y.e._mdf||N)&&(nt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)),O.setAttribute("r",nt),M&&!y.g._collapsable&&y.of.setAttribute("r",nt)),y.e._mdf||y.h._mdf||y.a._mdf||N){nt||(nt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)));var Q=Math.atan2(C[1]-z[1],C[0]-z[0]),ft=y.h.v;ft>=1?ft=.99:ft<=-1&&(ft=-.99);var st=nt*ft,X=Math.cos(Q+y.a.v)*st+z[0],_=Math.sin(Q+y.a.v)*st+z[1];O.setAttribute("fx",X),O.setAttribute("fy",_),M&&!y.g._collapsable&&(y.of.setAttribute("fx",X),y.of.setAttribute("fy",_))}}}function L(B,y,N){var O=y.style,M=y.d;M&&(M._mdf||N)&&M.dashStr&&(O.pElem.setAttribute("stroke-dasharray",M.dashStr),O.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),y.c&&(y.c._mdf||N)&&O.pElem.setAttribute("stroke","rgb("+te(y.c.v[0])+","+te(y.c.v[1])+","+te(y.c.v[2])+")"),(y.o._mdf||N)&&O.pElem.setAttribute("stroke-opacity",y.o.v),(y.w._mdf||N)&&(O.pElem.setAttribute("stroke-width",y.w.v),O.msElem&&O.msElem.setAttribute("stroke-width",y.w.v))}return i}();function Ut(t,r,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,r,i),this.prevViewData=[]}$([Wr,ao,cs,Kd,no,Yr,ds],Ut),Ut.prototype.initSecondaryElement=function(){},Ut.prototype.identityMatrix=new ne,Ut.prototype.buildExpressionInterface=function(){},Ut.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Ut.prototype.filterUniqueShapes=function(){var t,r=this.shapes.length,i,n,d=this.stylesList.length,c,u=[],T=!1;for(n=0;n<d;n+=1){for(c=this.stylesList[n],T=!1,u.length=0,t=0;t<r;t+=1)i=this.shapes[t],i.styles.indexOf(c)!==-1&&(u.push(i),T=i._isAnimated||T);u.length>1&&T&&this.setShapesAsAnimated(u)}},Ut.prototype.setShapesAsAnimated=function(t){var r,i=t.length;for(r=0;r<i;r+=1)t[r].setAsAnimated()},Ut.prototype.createStyleElement=function(t,r){var i,n=new Qd(t,r),d=n.pElem;if(t.ty==="st")i=new th(this,t,n);else if(t.ty==="fl")i=new eh(this,t,n);else if(t.ty==="gf"||t.ty==="gs"){var c=t.ty==="gf"?lo:ih;i=new c(this,t,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),d.setAttribute("mask","url("+E()+"#"+i.maskId+")"))}else t.ty==="no"&&(i=new rh(this,t,n));return(t.ty==="st"||t.ty==="gs")&&(d.setAttribute("stroke-linecap",Xd[t.lc||2]),d.setAttribute("stroke-linejoin",Zd[t.lj||2]),d.setAttribute("fill-opacity","0"),t.lj===1&&d.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&d.setAttribute("fill-rule","evenodd"),t.ln&&d.setAttribute("id",t.ln),t.cl&&d.setAttribute("class",t.cl),t.bm&&(d.style["mix-blend-mode"]=pl(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,i),i},Ut.prototype.createGroupElement=function(t){var r=new jf;return t.ln&&r.gr.setAttribute("id",t.ln),t.cl&&r.gr.setAttribute("class",t.cl),t.bm&&(r.gr.style["mix-blend-mode"]=pl(t.bm)),r},Ut.prototype.createTransformElement=function(t,r){var i=ll.getTransformProperty(this,t,this),n=new Wf(i,i.o,r);return this.addToAnimatedContents(t,n),n},Ut.prototype.createShapeElement=function(t,r,i){var n=4;t.ty==="rc"?n=5:t.ty==="el"?n=6:t.ty==="sr"&&(n=7);var d=fa.getShapeProp(this,t,n,this),c=new Jd(r,i,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(t,c),c},Ut.prototype.addToAnimatedContents=function(t,r){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===r)return;i+=1}this.animatedContents.push({fn:Yf.createRenderFunction(t),element:r,data:t})},Ut.prototype.setElementStyles=function(t){var r=t.styles,i,n=this.stylesList.length;for(i=0;i<n;i+=1)this.stylesList[i].closed||r.push(this.stylesList[i])},Ut.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,r=this.itemsData.length;for(t=0;t<r;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,t=0;t<r;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},Ut.prototype.searchShapes=function(t,r,i,n,d,c,u){var T=[].concat(c),f,I=t.length-1,L,B,y=[],N=[],O,M,z;for(f=I;f>=0;f-=1){if(z=this.searchProcessedElement(t[f]),z?r[f]=i[z-1]:t[f]._render=u,t[f].ty==="fl"||t[f].ty==="st"||t[f].ty==="gf"||t[f].ty==="gs"||t[f].ty==="no")z?r[f].style.closed=!1:r[f]=this.createStyleElement(t[f],d),t[f]._render&&r[f].style.pElem.parentNode!==n&&n.appendChild(r[f].style.pElem),y.push(r[f].style);else if(t[f].ty==="gr"){if(!z)r[f]=this.createGroupElement(t[f]);else for(B=r[f].it.length,L=0;L<B;L+=1)r[f].prevViewData[L]=r[f].it[L];this.searchShapes(t[f].it,r[f].it,r[f].prevViewData,r[f].gr,d+1,T,u),t[f]._render&&r[f].gr.parentNode!==n&&n.appendChild(r[f].gr)}else t[f].ty==="tr"?(z||(r[f]=this.createTransformElement(t[f],n)),O=r[f].transform,T.push(O)):t[f].ty==="sh"||t[f].ty==="rc"||t[f].ty==="el"||t[f].ty==="sr"?(z||(r[f]=this.createShapeElement(t[f],T,d)),this.setElementStyles(r[f])):t[f].ty==="tm"||t[f].ty==="rd"||t[f].ty==="ms"||t[f].ty==="pb"||t[f].ty==="zz"||t[f].ty==="op"?(z?(M=r[f],M.closed=!1):(M=Gr.getModifier(t[f].ty),M.init(this,t[f]),r[f]=M,this.shapeModifiers.push(M)),N.push(M)):t[f].ty==="rp"&&(z?(M=r[f],M.closed=!0):(M=Gr.getModifier(t[f].ty),r[f]=M,M.init(this,t,f,r),this.shapeModifiers.push(M),u=!1),N.push(M));this.addProcessedElement(t[f],f+1)}for(I=y.length,f=0;f<I;f+=1)y[f].closed=!0;for(I=N.length,f=0;f<I;f+=1)N[f].closed=!0},Ut.prototype.renderInnerContent=function(){this.renderModifiers();var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<r;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},Ut.prototype.renderShape=function(){var t,r=this.animatedContents.length,i;for(t=0;t<r;t+=1)i=this.animatedContents[t],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},Ut.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function fl(t,r,i,n,d,c){this.o=t,this.sw=r,this.sc=i,this.fc=n,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!i,fc:!!n,m:!0,p:!0}}fl.prototype.update=function(t,r,i,n,d,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var u=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,u=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,u=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,u=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,u=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,u=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,u=!0),u};function pe(t,r){this._frameId=s,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=t.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}pe.prototype.defaultBoxWidth=[0,0],pe.prototype.copyData=function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},pe.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},pe.prototype.searchProperty=function(){return this.searchKeyframes()},pe.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},pe.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},pe.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,d=this.effectsSequence.length,c=t||this.data.d.k[this.keysIndex].s;for(n=0;n<d;n+=1)i!==this.keysIndex?c=this.effectsSequence[n](c,c.t):c=this.effectsSequence[n](this.currentData,c.t);r!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},pe.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,r=this.elem.comp.renderedFrame,i=0,n=t.length;i<=n-1&&!(i===n-1||t[i+1].t>r);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},pe.prototype.buildFinalText=function(t){for(var r=[],i=0,n=t.length,d,c,u=!1,T=!1,f="";i<n;)u=T,T=!1,d=t.charCodeAt(i),f=t.charAt(i),fi.isCombinedCharacter(d)?u=!0:d>=55296&&d<=56319?fi.isRegionalFlag(t,i)?f=t.substr(i,14):(c=t.charCodeAt(i+1),c>=56320&&c<=57343&&(fi.isModifier(d,c)?(f=t.substr(i,2),u=!0):fi.isFlagEmoji(t.substr(i,4))?f=t.substr(i,4):f=t.substr(i,2))):d>56319?(c=t.charCodeAt(i+1),fi.isVariationSelector(d)&&(u=!0)):fi.isZeroWidthJoiner(d)&&(u=!0,T=!0),u?(r[r.length-1]+=f,u=!1):r.push(f),i+=f.length;return r},pe.prototype.completeTextData=function(t){t.__complete=!0;var r=this.elem.globalData.fontManager,i=this.data,n=[],d,c,u,T=0,f,I=i.m.g,L=0,B=0,y=0,N=[],O=0,M=0,z,C,S=r.getFontByName(t.f),b,A=0,k=Gd(S);t.fWeight=k.weight,t.fStyle=k.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),c=t.finalText.length,t.finalLineHeight=t.lh;var D=t.tr/1e3*t.finalSize,V;if(t.sz)for(var H=!0,Z=t.sz[0],mt=t.sz[1],nt,Q;H;){Q=this.buildFinalText(t.t),nt=0,O=0,c=Q.length,D=t.tr/1e3*t.finalSize;var ft=-1;for(d=0;d<c;d+=1)V=Q[d].charCodeAt(0),u=!1,Q[d]===" "?ft=d:(V===13||V===3)&&(O=0,u=!0,nt+=t.finalLineHeight||t.finalSize*1.2),r.chars?(b=r.getCharData(Q[d],S.fStyle,S.fFamily),A=u?0:b.w*t.finalSize/100):A=r.measureText(Q[d],t.f,t.finalSize),O+A>Z&&Q[d]!==" "?(ft===-1?c+=1:d=ft,nt+=t.finalLineHeight||t.finalSize*1.2,Q.splice(d,ft===d?1:0,"\r"),ft=-1,O=0):(O+=A,O+=D);nt+=S.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&mt<nt?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=Q,c=t.finalText.length,H=!1)}O=-D,A=0;var st=0,X;for(d=0;d<c;d+=1)if(u=!1,X=t.finalText[d],V=X.charCodeAt(0),V===13||V===3?(st=0,N.push(O),M=O>M?O:M,O=-2*D,f="",u=!0,y+=1):f=X,r.chars?(b=r.getCharData(X,S.fStyle,r.getFontByName(t.f).fFamily),A=u?0:b.w*t.finalSize/100):A=r.measureText(f,t.f,t.finalSize),X===" "?st+=A+D:(O+=A+D+st,st=0),n.push({l:A,an:A,add:L,n:u,anIndexes:[],val:f,line:y,animatorJustifyOffset:0}),I==2){if(L+=A,f===""||f===" "||d===c-1){for((f===""||f===" ")&&(L-=A);B<=d;)n[B].an=L,n[B].ind=T,n[B].extra=A,B+=1;T+=1,L=0}}else if(I==3){if(L+=A,f===""||d===c-1){for(f===""&&(L-=A);B<=d;)n[B].an=L,n[B].ind=T,n[B].extra=A,B+=1;L=0,T+=1}}else n[T].ind=T,n[T].extra=0,T+=1;if(t.l=n,M=O>M?O:M,N.push(O),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=M,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=N;var _=i.a,R,p;C=_.length;var g,U,F=[];for(z=0;z<C;z+=1){for(R=_[z],R.a.sc&&(t.strokeColorAnim=!0),R.a.sw&&(t.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(t.fillColorAnim=!0),U=0,g=R.s.b,d=0;d<c;d+=1)p=n[d],p.anIndexes[z]=U,(g==1&&p.val!==""||g==2&&p.val!==""&&p.val!==" "||g==3&&(p.n||p.val==" "||d==c-1)||g==4&&(p.n||d==c-1))&&(R.s.rn===1&&F.push(U),U+=1);i.a[z].s.totalChars=U;var it=-1,ht;if(R.s.rn===1)for(d=0;d<c;d+=1)p=n[d],it!=p.anIndexes[z]&&(it=p.anIndexes[z],ht=F.splice(Math.floor(Math.random()*F.length),1)[0]),p.anIndexes[z]=ht}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=S.ascent*t.finalSize/100},pe.prototype.updateDocumentData=function(t,r){r=r===void 0?this.keysIndex:r;var i=this.copyData({},this.data.d.k[r].s);i=this.copyData(i,t),this.data.d.k[r].s=i,this.recalculate(r),this.setCurrentData(i),this.elem.addDynamicProperty(this)},pe.prototype.recalculate=function(t){var r=this.data.d.k[t].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},pe.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},pe.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var qf=function(){var t=Math.max,r=Math.min,i=Math.floor;function n(c,u){this._currentTextLength=-1,this.k=!1,this.data=u,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=et.getProp(c,u.s||{k:0},0,0,this),"e"in u?this.e=et.getProp(c,u.e,0,0,this):this.e={v:100},this.o=et.getProp(c,u.o||{k:0},0,0,this),this.xe=et.getProp(c,u.xe||{k:0},0,0,this),this.ne=et.getProp(c,u.ne||{k:0},0,0,this),this.sm=et.getProp(c,u.sm||{k:100},0,0,this),this.a=et.getProp(c,u.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(u){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var T=0,f=0,I=1,L=1;this.ne.v>0?T=this.ne.v/100:f=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:L=1+this.xe.v/100;var B=es.getBezierEasing(T,f,I,L).get,y=0,N=this.finalS,O=this.finalE,M=this.data.sh;if(M===2)O===N?y=u>=O?1:0:y=t(0,r(.5/(O-N)+(u-N)/(O-N),1)),y=B(y);else if(M===3)O===N?y=u>=O?0:1:y=1-t(0,r(.5/(O-N)+(u-N)/(O-N),1)),y=B(y);else if(M===4)O===N?y=0:(y=t(0,r(.5/(O-N)+(u-N)/(O-N),1)),y<.5?y*=2:y=1-2*(y-.5)),y=B(y);else if(M===5){if(O===N)y=0;else{var z=O-N;u=r(t(0,u+.5-N),O-N);var C=-z/2+u,S=z/2;y=Math.sqrt(1-C*C/(S*S))}y=B(y)}else M===6?(O===N?y=0:(u=r(t(0,u+.5-N),O-N),y=(1+Math.cos(Math.PI+Math.PI*2*u/(O-N)))/2),y=B(y)):(u>=i(N)&&(u-N<0?y=t(0,r(r(O,1)-(N-u),1)):y=t(0,r(O-u,1))),y=B(y));if(this.sm.v!==100){var b=this.sm.v*.01;b===0&&(b=1e-8);var A=.5-b*.5;y<A?y=0:(y=(y-A)/b,y>1&&(y=1))}return y*this.a.v},getValue:function(u){this.iterateDynamicProperties(),this._mdf=u||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,u&&this.data.r===2&&(this.e.v=this._currentTextLength);var T=this.data.r===2?1:100/this.data.totalChars,f=this.o.v/T,I=this.s.v/T+f,L=this.e.v/T+f;if(I>L){var B=I;I=L,L=B}this.finalS=I,this.finalE=L}},$([ee],n);function d(c,u,T){return new n(c,u,T)}return{getTextSelectorProp:d}}();function Kf(t,r,i){var n={propType:!1},d=et.getProp,c=r.a;this.a={r:c.r?d(t,c.r,0,At,i):n,rx:c.rx?d(t,c.rx,0,At,i):n,ry:c.ry?d(t,c.ry,0,At,i):n,sk:c.sk?d(t,c.sk,0,At,i):n,sa:c.sa?d(t,c.sa,0,At,i):n,s:c.s?d(t,c.s,1,.01,i):n,a:c.a?d(t,c.a,1,0,i):n,o:c.o?d(t,c.o,0,.01,i):n,p:c.p?d(t,c.p,1,0,i):n,sw:c.sw?d(t,c.sw,0,0,i):n,sc:c.sc?d(t,c.sc,1,0,i):n,fc:c.fc?d(t,c.fc,1,0,i):n,fh:c.fh?d(t,c.fh,0,0,i):n,fs:c.fs?d(t,c.fs,0,.01,i):n,fb:c.fb?d(t,c.fb,0,.01,i):n,t:c.t?d(t,c.t,0,0,i):n},this.s=qf.getTextSelectorProp(t,r.s,i),this.s.t=r.s.t}function gi(t,r,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=r,this._elem=i,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}gi.prototype.searchProperties=function(){var t,r=this._textData.a.length,i,n=et.getProp;for(t=0;t<r;t+=1)i=this._textData.a[t],this._animatorsData[t]=new Kf(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},gi.prototype.getMeasures=function(t,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,n=this._animatorsData,d=this._textData,c=this.mHelper,u=this._renderType,T=this.renderedLetters.length,f,I,L,B,y=t.l,N,O,M,z,C,S,b,A,k,D,V,H,Z,mt,nt;if(this._hasMaskedPath){if(nt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Q=nt.v;this._pathData.r.v&&(Q=Q.reverse()),N={tLength:0,segments:[]},B=Q._length-1;var ft;for(H=0,L=0;L<B;L+=1)ft=dr.buildBezierData(Q.v[L],Q.v[L+1],[Q.o[L][0]-Q.v[L][0],Q.o[L][1]-Q.v[L][1]],[Q.i[L+1][0]-Q.v[L+1][0],Q.i[L+1][1]-Q.v[L+1][1]]),N.tLength+=ft.segmentLength,N.segments.push(ft),H+=ft.segmentLength;L=B,nt.v.c&&(ft=dr.buildBezierData(Q.v[L],Q.v[0],[Q.o[L][0]-Q.v[L][0],Q.o[L][1]-Q.v[L][1]],[Q.i[0][0]-Q.v[0][0],Q.i[0][1]-Q.v[0][1]]),N.tLength+=ft.segmentLength,N.segments.push(ft),H+=ft.segmentLength),this._pathData.pi=N}if(N=this._pathData.pi,O=this._pathData.f.v,b=0,S=1,z=0,C=!0,D=N.segments,O<0&&nt.v.c)for(N.tLength<Math.abs(O)&&(O=-Math.abs(O)%N.tLength),b=D.length-1,k=D[b].points,S=k.length-1;O<0;)O+=k[S].partialLength,S-=1,S<0&&(b-=1,k=D[b].points,S=k.length-1);k=D[b].points,A=k[S-1],M=k[S],V=M.partialLength}B=y.length,f=0,I=0;var st=t.finalSize*1.2*.714,X=!0,_,R,p,g,U;g=n.length;var F,it=-1,ht,pt,It,kt=O,jt=b,xe=S,mr=-1,Te,re,Ne,Nt,at,Ar,Xr,_r,pr="",Sr=this.defaultPropsArray,Ir;if(t.j===2||t.j===1){var Ae=0,Zr=0,Jr=t.j===2?-.5:-1,er=0,Qr=!0;for(L=0;L<B;L+=1)if(y[L].n){for(Ae&&(Ae+=Zr);er<L;)y[er].animatorJustifyOffset=Ae,er+=1;Ae=0,Qr=!0}else{for(p=0;p<g;p+=1)_=n[p].a,_.t.propType&&(Qr&&t.j===2&&(Zr+=_.t.v*Jr),R=n[p].s,F=R.getMult(y[L].anIndexes[p],d.a[p].s.totalChars),F.length?Ae+=_.t.v*F[0]*Jr:Ae+=_.t.v*F*Jr);Qr=!1}for(Ae&&(Ae+=Zr);er<L;)y[er].animatorJustifyOffset=Ae,er+=1}for(L=0;L<B;L+=1){if(c.reset(),Te=1,y[L].n)f=0,I+=t.yOffset,I+=X?1:0,O=kt,X=!1,this._hasMaskedPath&&(b=jt,S=xe,k=D[b].points,A=k[S-1],M=k[S],V=M.partialLength,z=0),pr="",_r="",Ar="",Ir="",Sr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(mr!==y[L].line){switch(t.j){case 1:O+=H-t.lineWidths[y[L].line];break;case 2:O+=(H-t.lineWidths[y[L].line])/2;break;default:break}mr=y[L].line}it!==y[L].ind&&(y[it]&&(O+=y[it].extra),O+=y[L].an/2,it=y[L].ind),O+=i[0]*y[L].an*.005;var rr=0;for(p=0;p<g;p+=1)_=n[p].a,_.p.propType&&(R=n[p].s,F=R.getMult(y[L].anIndexes[p],d.a[p].s.totalChars),F.length?rr+=_.p.v[0]*F[0]:rr+=_.p.v[0]*F),_.a.propType&&(R=n[p].s,F=R.getMult(y[L].anIndexes[p],d.a[p].s.totalChars),F.length?rr+=_.a.v[0]*F[0]:rr+=_.a.v[0]*F);for(C=!0,this._pathData.a.v&&(O=y[0].an*.5+(H-this._pathData.f.v-y[0].an*.5-y[y.length-1].an*.5)*it/(B-1),O+=this._pathData.f.v);C;)z+V>=O+rr||!k?(Z=(O+rr-z)/M.partialLength,pt=A.point[0]+(M.point[0]-A.point[0])*Z,It=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-i[0]*y[L].an*.005,-(i[1]*st)*.01),C=!1):k&&(z+=M.partialLength,S+=1,S>=k.length&&(S=0,b+=1,D[b]?k=D[b].points:nt.v.c?(S=0,b=0,k=D[b].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[S],V=M.partialLength));ht=y[L].an/2-y[L].add,c.translate(-ht,0,0)}else ht=y[L].an/2-y[L].add,c.translate(-ht,0,0),c.translate(-i[0]*y[L].an*.005,-i[1]*st*.01,0);for(p=0;p<g;p+=1)_=n[p].a,_.t.propType&&(R=n[p].s,F=R.getMult(y[L].anIndexes[p],d.a[p].s.totalChars),(f!==0||t.j!==0)&&(this._hasMaskedPath?F.length?O+=_.t.v*F[0]:O+=_.t.v*F:F.length?f+=_.t.v*F[0]:f+=_.t.v*F));for(t.strokeWidthAnim&&(Ne=t.sw||0),t.strokeColorAnim&&(t.sc?re=[t.sc[0],t.sc[1],t.sc[2]]:re=[0,0,0]),t.fillColorAnim&&t.fc&&(Nt=[t.fc[0],t.fc[1],t.fc[2]]),p=0;p<g;p+=1)_=n[p].a,_.a.propType&&(R=n[p].s,F=R.getMult(y[L].anIndexes[p],d.a[p].s.totalChars),F.length?c.translate(-_.a.v[0]*F[0],-_.a.v[1]*F[1],_.a.v[2]*F[2]):c.translate(-_.a.v[0]*F,-_.a.v[1]*F,_.a.v[2]*F));for(p=0;p<g;p+=1)_=n[p].a,_.s.propType&&(R=n[p].s,F=R.getMult(y[L].anIndexes[p],d.a[p].s.totalChars),F.length?c.scale(1+(_.s.v[0]-1)*F[0],1+(_.s.v[1]-1)*F[1],1):c.scale(1+(_.s.v[0]-1)*F,1+(_.s.v[1]-1)*F,1));for(p=0;p<g;p+=1){if(_=n[p].a,R=n[p].s,F=R.getMult(y[L].anIndexes[p],d.a[p].s.totalChars),_.sk.propType&&(F.length?c.skewFromAxis(-_.sk.v*F[0],_.sa.v*F[1]):c.skewFromAxis(-_.sk.v*F,_.sa.v*F)),_.r.propType&&(F.length?c.rotateZ(-_.r.v*F[2]):c.rotateZ(-_.r.v*F)),_.ry.propType&&(F.length?c.rotateY(_.ry.v*F[1]):c.rotateY(_.ry.v*F)),_.rx.propType&&(F.length?c.rotateX(_.rx.v*F[0]):c.rotateX(_.rx.v*F)),_.o.propType&&(F.length?Te+=(_.o.v*F[0]-Te)*F[0]:Te+=(_.o.v*F-Te)*F),t.strokeWidthAnim&&_.sw.propType&&(F.length?Ne+=_.sw.v*F[0]:Ne+=_.sw.v*F),t.strokeColorAnim&&_.sc.propType)for(at=0;at<3;at+=1)F.length?re[at]+=(_.sc.v[at]-re[at])*F[0]:re[at]+=(_.sc.v[at]-re[at])*F;if(t.fillColorAnim&&t.fc){if(_.fc.propType)for(at=0;at<3;at+=1)F.length?Nt[at]+=(_.fc.v[at]-Nt[at])*F[0]:Nt[at]+=(_.fc.v[at]-Nt[at])*F;_.fh.propType&&(F.length?Nt=gd(Nt,_.fh.v*F[0]):Nt=gd(Nt,_.fh.v*F)),_.fs.propType&&(F.length?Nt=fd(Nt,_.fs.v*F[0]):Nt=fd(Nt,_.fs.v*F)),_.fb.propType&&(F.length?Nt=vd(Nt,_.fb.v*F[0]):Nt=vd(Nt,_.fb.v*F))}}for(p=0;p<g;p+=1)_=n[p].a,_.p.propType&&(R=n[p].s,F=R.getMult(y[L].anIndexes[p],d.a[p].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,_.p.v[1]*F[0],-_.p.v[2]*F[1]):c.translate(0,_.p.v[1]*F,-_.p.v[2]*F):F.length?c.translate(_.p.v[0]*F[0],_.p.v[1]*F[1],-_.p.v[2]*F[2]):c.translate(_.p.v[0]*F,_.p.v[1]*F,-_.p.v[2]*F));if(t.strokeWidthAnim&&(Ar=Ne<0?0:Ne),t.strokeColorAnim&&(Xr="rgb("+Math.round(re[0]*255)+","+Math.round(re[1]*255)+","+Math.round(re[2]*255)+")"),t.fillColorAnim&&t.fc&&(_r="rgb("+Math.round(Nt[0]*255)+","+Math.round(Nt[1]*255)+","+Math.round(Nt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-t.ls),c.translate(0,i[1]*st*.01+I,0),this._pathData.p.v){mt=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var bi=Math.atan(mt)*180/Math.PI;M.point[0]<A.point[0]&&(bi+=180),c.rotate(-bi*Math.PI/180)}c.translate(pt,It,0),O-=i[0]*y[L].an*.005,y[L+1]&&it!==y[L+1].ind&&(O+=y[L].an/2,O+=t.tr*.001*t.finalSize)}else{switch(c.translate(f,I,0),t.ps&&c.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:c.translate(y[L].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[L].line]),0,0);break;case 2:c.translate(y[L].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[y[L].line])/2,0,0);break;default:break}c.translate(0,-t.ls),c.translate(ht,0,0),c.translate(i[0]*y[L].an*.005,i[1]*st*.01,0),f+=y[L].l+t.tr*.001*t.finalSize}u==="html"?pr=c.toCSS():u==="svg"?pr=c.to2dCSS():Sr=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],Ir=Te}T<=L?(U=new fl(Ir,Ar,Xr,_r,pr,Sr),this.renderedLetters.push(U),T+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[L],this.lettersChangedFlag=U.update(Ir,Ar,Xr,_r,pr,Sr)||this.lettersChangedFlag)}}},gi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},gi.prototype.mHelper=new ne,gi.prototype.defaultPropsArray=[],$([ee],gi);function Ve(){}Ve.prototype.initElement=function(t,r,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,r,i),this.textProperty=new pe(this,t.t,this.dynamicProperties),this.textAnimator=new gi(t.t,this.renderType,this),this.initTransform(t,r,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Ve.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},Ve.prototype.createPathShape=function(t,r){var i,n=r.length,d,c="";for(i=0;i<n;i+=1)r[i].ty==="sh"&&(d=r[i].ks.k,c+=oh(d,d.i.length,!0,t));return c},Ve.prototype.updateDocumentData=function(t,r){this.textProperty.updateDocumentData(t,r)},Ve.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},Ve.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},Ve.prototype.applyTextPropertiesToMatrix=function(t,r,i,n,d){switch(t.ps&&r.translate(t.ps[0],t.ps[1]+t.ascent,0),r.translate(0,-t.ls,0),t.j){case 1:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0);break;default:break}r.translate(n,d,0)},Ve.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},Ve.prototype.emptyProp=new fl,Ve.prototype.destroy=function(){},Ve.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Xf={shapes:[]};function xr(t,r,i){this.textSpans=[],this.renderType="svg",this.initElement(t,r,i)}$([Wr,ao,cs,no,Yr,ds,Ve],xr),xr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=ut("text"))},xr.prototype.buildTextContents=function(t){for(var r=0,i=t.length,n=[],d="";r<i;)t[r]==="\r"||t[r]===""?(n.push(d),d=""):d+=t[r],r+=1;return n.push(d),n},xr.prototype.buildShapeData=function(t,r){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var n=i.it[i.it.length-1];n.s&&(n.s.k[0]=r,n.s.k[1]=r)}}return t},xr.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,r,i=this.textProperty.currentData;this.renderedLetters=tt(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var d=i.fWeight,c=i.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",i.t);var u=i.l||[],T=!!this.globalData.fontManager.chars;r=u.length;var f,I=this.mHelper,L="",B=this.data.singleShape,y=0,N=0,O=!0,M=i.tr*.001*i.finalSize;if(B&&!T&&!i.sz){var z=this.textContainer,C="start";switch(i.j){case 1:C="end";break;case 2:C="middle";break;default:C="start";break}z.setAttribute("text-anchor",C),z.setAttribute("letter-spacing",M);var S=this.buildTextContents(i.finalText);for(r=S.length,N=i.ps?i.ps[1]+i.ascent:0,t=0;t<r;t+=1)f=this.textSpans[t].span||ut("tspan"),f.textContent=S[t],f.setAttribute("x",0),f.setAttribute("y",N),f.style.display="inherit",z.appendChild(f),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=f,N+=i.finalLineHeight;this.layerElement.appendChild(z)}else{var b=this.textSpans.length,A;for(t=0;t<r;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!T||!B||t===0){if(f=b>t?this.textSpans[t].span:ut(T?"g":"text"),b<=t){if(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=f,T){var k=ut("g");f.appendChild(k),this.textSpans[t].childSpan=k}this.textSpans[t].span=f,this.layerElement.appendChild(f)}f.style.display="inherit"}if(I.reset(),B&&(u[t].n&&(y=-M,N+=i.yOffset,N+=O?1:0,O=!1),this.applyTextPropertiesToMatrix(i,I,u[t].line,y,N),y+=u[t].l||0,y+=M),T){A=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var D;if(A.t===1)D=new ps(A.data,this.globalData,this);else{var V=Xf;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,i.finalSize)),D=new Ut(V,this.globalData,this)}if(this.textSpans[t].glyph){var H=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(H.layerElement),H.destroy()}this.textSpans[t].glyph=D,D._debug=!0,D.prepareFrame(0),D.renderFrame(),this.textSpans[t].childSpan.appendChild(D.layerElement),A.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else B&&f.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),f.textContent=u[t].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&f&&f.setAttribute("d",L)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},xr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},xr.prototype.getValue=function(){var t,r=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)i=this.textSpans[t].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._mdf&&(this._mdf=!0))},xr.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,r,i=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;r=n.length;var d,c,u;for(t=0;t<r;t+=1)n[t].n||(d=i[t],c=this.textSpans[t].span,u=this.textSpans[t].glyph,u&&u.renderFrame(),d._mdf.m&&c.setAttribute("transform",d.m),d._mdf.o&&c.setAttribute("opacity",d.o),d._mdf.sw&&c.setAttribute("stroke-width",d.sw),d._mdf.sc&&c.setAttribute("stroke",d.sc),d._mdf.fc&&c.setAttribute("fill",d.fc))}};function vl(t,r,i){this.initElement(t,r,i)}$([hs],vl),vl.prototype.createContent=function(){var t=ut("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function Kr(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initFrame(),this.initTransform(t,r,i),this.initHierarchy()}Kr.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},Kr.prototype.renderFrame=function(){},Kr.prototype.getBaseElement=function(){return null},Kr.prototype.destroy=function(){},Kr.prototype.sourceRectAtTime=function(){},Kr.prototype.hide=function(){},$([Wr,ao,no,Yr],Kr);function Kt(){}$([le],Kt),Kt.prototype.createNull=function(t){return new Kr(t,this.globalData,this)},Kt.prototype.createShape=function(t){return new Ut(t,this.globalData,this)},Kt.prototype.createText=function(t){return new xr(t,this.globalData,this)},Kt.prototype.createImage=function(t){return new hs(t,this.globalData,this)},Kt.prototype.createSolid=function(t){return new vl(t,this.globalData,this)},Kt.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var r=this.globalData.defs;this.setupGlobalData(t,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=ut("clipPath"),n=ut("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var d=ye();i.setAttribute("id",d),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+E()+"#"+d+")"),r.appendChild(i),this.layers=t.layers,this.elements=tt(t.layers.length)},Kt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,r=this.layers?this.layers.length:0;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Kt.prototype.updateContainerSize=function(){},Kt.prototype.findIndexByInd=function(t){var r=0,i=this.layers.length;for(r=0;r<i;r+=1)if(this.layers[r].ind===t)return r;return-1},Kt.prototype.buildItem=function(t){var r=this.elements;if(!(r[t]||this.layers[t].ty===99)){r[t]=!0;var i=this.createItem(this.layers[t]);if(r[t]=i,la()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(i);else{var d=r[n],c=d.getMatte(this.layers[t].tt);i.setMatte(c)}}}},Kt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var r=0,i=this.elements.length;r<i;){if(this.elements[r]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):r-1,d=this.elements[n],c=d.getMatte(this.layers[r].tt);t.setMatte(c);break}r+=1}}},Kt.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Kt.prototype.appendElementInPos=function(t,r){var i=t.getBaseElement();if(i){for(var n=0,d;n<r;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(d=this.elements[n].getBaseElement()),n+=1;d?this.layerElement.insertBefore(i,d):this.layerElement.appendChild(i)}},Kt.prototype.hide=function(){this.layerElement.style.display="none"},Kt.prototype.show=function(){this.layerElement.style.display="block"};function Tr(){}$([Wr,ao,no,Yr,ds],Tr),Tr.prototype.initElement=function(t,r,i){this.initFrame(),this.initBaseData(t,r,i),this.initTransform(t,r,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},Tr.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},Tr.prototype.renderInnerContent=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Tr.prototype.setElements=function(t){this.elements=t},Tr.prototype.getElements=function(){return this.elements},Tr.prototype.destroyElements=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy()},Tr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function ps(t,r,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(t,r,i),this.tm=t.tm?et.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0}}$([Kt,Tr,cs],ps),ps.prototype.createComp=function(t){return new ps(t,this.globalData,this)};function gl(t,r){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=ut("svg");var i="";if(r&&r.title){var n=ut("title"),d=ye();n.setAttribute("id",d),n.textContent=r.title,this.svgElement.appendChild(n),i+=d}if(r&&r.description){var c=ut("desc"),u=ye();c.setAttribute("id",u),c.textContent=r.description,this.svgElement.appendChild(c),i+=" "+u}i&&this.svgElement.setAttribute("aria-labelledby",i);var T=ut("defs");this.svgElement.appendChild(T);var f=ut("g");this.svgElement.appendChild(f),this.layerElement=f,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:T,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return $([Kt],gl),gl.prototype.createComp=function(t){return new ps(t,this.globalData,this)},af("svg",gl),Gr.registerModifier("tm",tr),Gr.registerModifier("pb",rs),Gr.registerModifier("rp",hr),Gr.registerModifier("rd",is),Gr.registerModifier("zz",ss),Gr.registerModifier("op",as),Lt})});var ka=globalThis,Ca=ka.ShadowRoot&&(ka.ShadyCSS===void 0||ka.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yl=Symbol(),ah=new WeakMap,us=class{constructor(o,e,s){if(this._$cssResult$=!0,s!==yl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=e}get styleSheet(){let o=this.o,e=this.t;if(Ca&&o===void 0){let s=e!==void 0&&e.length===1;s&&(o=ah.get(e)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),s&&ah.set(e,o))}return o}toString(){return this.cssText}},nh=l=>new us(typeof l=="string"?l:l+"",void 0,yl),W=(l,...o)=>{let e=l.length===1?l[0]:o.reduce((s,a,h)=>s+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+l[h+1],l[0]);return new us(e,l,yl)},El=(l,o)=>{if(Ca)l.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of o){let s=document.createElement("style"),a=ka.litNonce;a!==void 0&&s.setAttribute("nonce",a),s.textContent=e.cssText,l.appendChild(s)}},wa=Ca?l=>l:l=>l instanceof CSSStyleSheet?(o=>{let e="";for(let s of o.cssRules)e+=s.cssText;return nh(e)})(l):l;var{is:ov,defineProperty:sv,getOwnPropertyDescriptor:av,getOwnPropertyNames:nv,getOwnPropertySymbols:lv,getPrototypeOf:cv}=Object,ti=globalThis,lh=ti.trustedTypes,dv=lh?lh.emptyScript:"",xl=ti.reactiveElementPolyfillSupport,fs=(l,o)=>l,vs={toAttribute(l,o){switch(o){case Boolean:l=l?dv:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,o){let e=l;switch(o){case Boolean:e=l!==null;break;case Number:e=l===null?null:Number(l);break;case Object:case Array:try{e=JSON.parse(l)}catch{e=null}}return e}},La=(l,o)=>!ov(l,o),ch={attribute:!0,type:String,converter:vs,reflect:!1,hasChanged:La},dh,hh;(dh=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(hh=ti.litPropertyMetadata)!=null||(ti.litPropertyMetadata=new WeakMap);var kr=class extends HTMLElement{static addInitializer(o){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,e=ch){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(o,e),!e.noAccessor){let s=Symbol(),a=this.getPropertyDescriptor(o,s,e);a!==void 0&&sv(this.prototype,o,a)}}static getPropertyDescriptor(o,e,s){var m;let{get:a,set:h}=(m=av(this.prototype,o))!=null?m:{get(){return this[e]},set(E){this[e]=E}};return{get(){return a==null?void 0:a.call(this)},set(E){let w=a==null?void 0:a.call(this);h.call(this,E),this.requestUpdate(o,w,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var e;return(e=this.elementProperties.get(o))!=null?e:ch}static _$Ei(){if(this.hasOwnProperty(fs("elementProperties")))return;let o=cv(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(fs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fs("properties"))){let e=this.properties,s=[...nv(e),...lv(e)];for(let a of s)this.createProperty(a,e[a])}let o=this[Symbol.metadata];if(o!==null){let e=litPropertyMetadata.get(o);if(e!==void 0)for(let[s,a]of e)this.elementProperties.set(s,a)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let a=this._$Eu(e,s);a!==void 0&&this._$Eh.set(a,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let e=[];if(Array.isArray(o)){let s=new Set(o.flat(1/0).reverse());for(let a of s)e.unshift(wa(a))}else o!==void 0&&e.push(wa(o));return e}static _$Eu(o,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(e=>e(this))}addController(o){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((s=o.hostConnected)==null||s.call(o))}removeController(o){var e;(e=this._$EO)==null||e.delete(o)}_$E_(){let o=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(o.set(s,this[s]),delete this[s]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var e;let o=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return El(o,this.constructor.elementStyles),o}connectedCallback(){var o,e;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var a;return(a=s.hostConnected)==null?void 0:a.call(s)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(o,e,s){this._$AK(o,s)}_$EC(o,e){var h;let s=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,s);if(a!==void 0&&s.reflect===!0){let m=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:vs).toAttribute(e,s.type);this._$Em=o,m==null?this.removeAttribute(a):this.setAttribute(a,m),this._$Em=null}}_$AK(o,e){var h;let s=this.constructor,a=s._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let m=s.getPropertyOptions(a),E=typeof m.converter=="function"?{fromAttribute:m.converter}:((h=m.converter)==null?void 0:h.fromAttribute)!==void 0?m.converter:vs;this._$Em=a,this[a]=E.fromAttribute(e,m.type),this._$Em=null}}requestUpdate(o,e,s){var a;if(o!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(o)),!((a=s.hasChanged)!=null?a:La)(this[o],e))return;this.P(o,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,e,s){var a;this._$AL.has(o)||this._$AL.set(o,e),s.reflect===!0&&this._$Em!==o&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,E]of this._$Ep)this[m]=E;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[m,E]of h)E.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],E)}let o=!1,e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),(a=this._$EO)==null||a.forEach(h=>{var m;return(m=h.hostUpdate)==null?void 0:m.call(h)}),this.update(e)):this._$EU()}catch(h){throw o=!1,this._$EU(),h}o&&this._$AE(e)}willUpdate(o){}_$AE(o){var e;(e=this._$EO)==null||e.forEach(s=>{var a;return(a=s.hostUpdated)==null?void 0:a.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(o){}firstUpdated(o){}},mh;kr.elementStyles=[],kr.shadowRootOptions={mode:"open"},kr[fs("elementProperties")]=new Map,kr[fs("finalized")]=new Map,xl==null||xl({ReactiveElement:kr}),((mh=ti.reactiveElementVersions)!=null?mh:ti.reactiveElementVersions=[]).push("2.0.4");var bs=globalThis,Na=bs.trustedTypes,ph=Na?Na.createPolicy("lit-html",{createHTML:l=>l}):void 0,_l="$lit$",Cr=`lit$${Math.random().toFixed(9).slice(2)}$`,Sl="?"+Cr,hv=`<${Sl}>`,xi=document,ys=()=>xi.createComment(""),Es=l=>l===null||typeof l!="object"&&typeof l!="function",Il=Array.isArray,Eh=l=>Il(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Tl=`[
|
3
|
+
\f\r]`,gs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,uh=/-->/g,fh=/>/g,yi=RegExp(`>|${Tl}(?:([^\\s"'>=/]+)(${Tl}*=${Tl}*(?:[^
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),vh=/'/g,gh=/"/g,xh=/^(?:script|style|textarea|title)$/i,kl=l=>(o,...e)=>({_$litType$:l,strings:o,values:e}),P=kl(1),Py=kl(2),Dy=kl(3),wr=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),bh=new WeakMap,Ei=xi.createTreeWalker(xi,129);function Th(l,o){if(!Il(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return ph!==void 0?ph.createHTML(o):o}var Ah=(l,o)=>{let e=l.length-1,s=[],a,h=o===2?"<svg>":o===3?"<math>":"",m=gs;for(let E=0;E<e;E++){let w=l[E],$,G,q=-1,rt=0;for(;rt<w.length&&(m.lastIndex=rt,G=m.exec(w),G!==null);)rt=m.lastIndex,m===gs?G[1]==="!--"?m=uh:G[1]!==void 0?m=fh:G[2]!==void 0?(xh.test(G[2])&&(a=RegExp("</"+G[2],"g")),m=yi):G[3]!==void 0&&(m=yi):m===yi?G[0]===">"?(m=a!=null?a:gs,q=-1):G[1]===void 0?q=-2:(q=m.lastIndex-G[2].length,$=G[1],m=G[3]===void 0?yi:G[3]==='"'?gh:vh):m===gh||m===vh?m=yi:m===uh||m===fh?m=gs:(m=yi,a=void 0);let J=m===yi&&l[E+1].startsWith("/>")?" ":"";h+=m===gs?w+hv:q>=0?(s.push($),w.slice(0,q)+_l+w.slice(q)+Cr+J):w+Cr+(q===-2?E:J)}return[Th(l,h+(l[e]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),s]},xs=class l{constructor({strings:o,_$litType$:e},s){let a;this.parts=[];let h=0,m=0,E=o.length-1,w=this.parts,[$,G]=Ah(o,e);if(this.el=l.createElement($,s),Ei.currentNode=this.el.content,e===2||e===3){let q=this.el.content.firstChild;q.replaceWith(...q.childNodes)}for(;(a=Ei.nextNode())!==null&&w.length<E;){if(a.nodeType===1){if(a.hasAttributes())for(let q of a.getAttributeNames())if(q.endsWith(_l)){let rt=G[m++],J=a.getAttribute(q).split(Cr),tt=/([.?@])?(.*)/.exec(rt);w.push({type:1,index:h,name:tt[2],strings:J,ctor:tt[1]==="."?Ra:tt[1]==="?"?Oa:tt[1]==="@"?Pa:Ai}),a.removeAttribute(q)}else q.startsWith(Cr)&&(w.push({type:6,index:h}),a.removeAttribute(q));if(xh.test(a.tagName)){let q=a.textContent.split(Cr),rt=q.length-1;if(rt>0){a.textContent=Na?Na.emptyScript:"";for(let J=0;J<rt;J++)a.append(q[J],ys()),Ei.nextNode(),w.push({type:2,index:++h});a.append(q[rt],ys())}}}else if(a.nodeType===8)if(a.data===Sl)w.push({type:2,index:h});else{let q=-1;for(;(q=a.data.indexOf(Cr,q+1))!==-1;)w.push({type:7,index:h}),q+=Cr.length-1}h++}}static createElement(o,e){let s=xi.createElement("template");return s.innerHTML=o,s}};function Ti(l,o,e=l,s){var m,E,w;if(o===wr)return o;let a=s!==void 0?(m=e.o)==null?void 0:m[s]:e.l,h=Es(o)?void 0:o._$litDirective$;return(a==null?void 0:a.constructor)!==h&&((E=a==null?void 0:a._$AO)==null||E.call(a,!1),h===void 0?a=void 0:(a=new h(l),a._$AT(l,e,s)),s!==void 0?((w=e.o)!=null?w:e.o=[])[s]=a:e.l=a),a!==void 0&&(o=Ti(l,a._$AS(l,o.values),a,s)),o}var Ma=class{constructor(o,e){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var $;let{el:{content:e},parts:s}=this._$AD,a=(($=o==null?void 0:o.creationScope)!=null?$:xi).importNode(e,!0);Ei.currentNode=a;let h=Ei.nextNode(),m=0,E=0,w=s[0];for(;w!==void 0;){if(m===w.index){let G;w.type===2?G=new co(h,h.nextSibling,this,o):w.type===1?G=new w.ctor(h,w.name,w.strings,this,o):w.type===6&&(G=new Da(h,this,o)),this._$AV.push(G),w=s[++E]}m!==(w==null?void 0:w.index)&&(h=Ei.nextNode(),m++)}return Ei.currentNode=xi,a}p(o){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(o,s,e),e+=s.strings.length-2):s._$AI(o[e])),e++}},co=class l{get _$AU(){var o,e;return(e=(o=this._$AM)==null?void 0:o._$AU)!=null?e:this.v}constructor(o,e,s,a){var h;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=o,this._$AB=e,this._$AM=s,this.options=a,this.v=(h=a==null?void 0:a.isConnected)!=null?h:!0}get parentNode(){let o=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=e.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,e=this){o=Ti(this,o,e),Es(o)?o===Y||o==null||o===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):o!==this._$AH&&o!==wr&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Eh(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==Y&&Es(this._$AH)?this._$AA.nextSibling.data=o:this.T(xi.createTextNode(o)),this._$AH=o}$(o){var h;let{values:e,_$litType$:s}=o,a=typeof s=="number"?this._$AC(o):(s.el===void 0&&(s.el=xs.createElement(Th(s.h,s.h[0]),this.options)),s);if(((h=this._$AH)==null?void 0:h._$AD)===a)this._$AH.p(e);else{let m=new Ma(a,this),E=m.u(this.options);m.p(e),this.T(E),this._$AH=m}}_$AC(o){let e=bh.get(o.strings);return e===void 0&&bh.set(o.strings,e=new xs(o)),e}k(o){Il(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,a=0;for(let h of o)a===e.length?e.push(s=new l(this.O(ys()),this.O(ys()),this,this.options)):s=e[a],s._$AI(h),a++;a<e.length&&(this._$AR(s&&s._$AB.nextSibling,a),e.length=a)}_$AR(o=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);o&&o!==this._$AB;){let a=o.nextSibling;o.remove(),o=a}}setConnected(o){var e;this._$AM===void 0&&(this.v=o,(e=this._$AP)==null||e.call(this,o))}},Ai=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,e,s,a,h){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=o,this.name=e,this._$AM=a,this.options=h,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Y}_$AI(o,e=this,s,a){let h=this.strings,m=!1;if(h===void 0)o=Ti(this,o,e,0),m=!Es(o)||o!==this._$AH&&o!==wr,m&&(this._$AH=o);else{let E=o,w,$;for(o=h[0],w=0;w<h.length-1;w++)$=Ti(this,E[s+w],e,w),$===wr&&($=this._$AH[w]),m||(m=!Es($)||$!==this._$AH[w]),$===Y?o=Y:o!==Y&&(o+=($!=null?$:"")+h[w+1]),this._$AH[w]=$}m&&!a&&this.j(o)}j(o){o===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},Ra=class extends Ai{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===Y?void 0:o}},Oa=class extends Ai{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==Y)}},Pa=class extends Ai{constructor(o,e,s,a,h){super(o,e,s,a,h),this.type=5}_$AI(o,e=this){var m;if((o=(m=Ti(this,o,e,0))!=null?m:Y)===wr)return;let s=this._$AH,a=o===Y&&s!==Y||o.capture!==s.capture||o.once!==s.once||o.passive!==s.passive,h=o!==Y&&(s===Y||a);a&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)==null?void 0:e.host)!=null?s:this.element,o):this._$AH.handleEvent(o)}},Da=class{constructor(o,e,s){this.element=o,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(o){Ti(this,o)}},_h={M:_l,P:Cr,A:Sl,C:1,L:Ah,R:Ma,D:Eh,V:Ti,I:co,H:Ai,N:Oa,U:Pa,B:Ra,F:Da},Al=bs.litHtmlPolyfillSupport,yh;Al==null||Al(xs,co),((yh=bs.litHtmlVersions)!=null?yh:bs.litHtmlVersions=[]).push("3.2.0");var Sh=(l,o,e)=>{var h,m;let s=(h=e==null?void 0:e.renderBefore)!=null?h:o,a=s._$litPart$;if(a===void 0){let E=(m=e==null?void 0:e.renderBefore)!=null?m:null;s._$litPart$=a=new co(o.insertBefore(ys(),E),E,void 0,e!=null?e:{})}return a._$AI(l),a};var ei=class extends kr{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,s;let o=super.createRenderRoot();return(s=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=o.firstChild),o}update(o){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Sh(e,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return wr}},Ih;ei._$litElement$=!0,ei.finalized=!0,(Ih=globalThis.litElementHydrateSupport)==null||Ih.call(globalThis,{LitElement:ei});var Cl=globalThis.litElementPolyfillSupport;Cl==null||Cl({LitElement:ei});var kh;((kh=globalThis.litElementVersions)!=null?kh:globalThis.litElementVersions=[]).push("4.1.0");var mv={attribute:!0,type:String,converter:vs,reflect:!1,hasChanged:La},pv=(l=mv,o,e)=>{let{kind:s,metadata:a}=e,h=globalThis.litPropertyMetadata.get(a);if(h===void 0&&globalThis.litPropertyMetadata.set(a,h=new Map),h.set(e.name,l),s==="accessor"){let{name:m}=e;return{set(E){let w=o.get.call(this);o.set.call(this,E),this.requestUpdate(m,w,l)},init(E){return E!==void 0&&this.P(m,void 0,l),E}}}if(s==="setter"){let{name:m}=e;return function(E){let w=this[m];o.call(this,E),this.requestUpdate(m,w,l)}}throw Error("Unsupported decorator location: "+s)};function x(l){return(o,e)=>typeof e=="object"?pv(l,o,e):((s,a,h)=>{let m=a.hasOwnProperty(h);return a.constructor.createProperty(h,m?{...s,wrapped:!0}:s),m?Object.getOwnPropertyDescriptor(a,h):void 0})(l,o,e)}function Tt(l){return x({...l,state:!0,attribute:!1})}var Lr=(l,o,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(l,o,e),e);function Nr(l,o){return(e,s,a)=>{let h=m=>{var E,w;return(w=(E=m.renderRoot)==null?void 0:E.querySelector(l))!=null?w:null};if(o){let{get:m,set:E}=typeof s=="object"?e:a!=null?a:(()=>{let w=Symbol();return{get(){return this[w]},set($){this[w]=$}}})();return Lr(e,s,{get(){let w=m.call(this);return w===void 0&&(w=h(this),(w!==null||this.hasUpdated)&&E.call(this,w)),w}})}return Lr(e,s,{get(){return h(this)}})}}function Mt(l){return(o,e)=>{let{slot:s,selector:a}=l!=null?l:{},h="slot"+(s?`[name=${s}]`:":not([name])");return Lr(o,e,{get(){var w,$;let m=(w=this.renderRoot)==null?void 0:w.querySelector(h),E=($=m==null?void 0:m.assignedElements(l))!=null?$:[];return a===void 0?E:E.filter(G=>G.matches(a))}})}}function Fa(l){return(o,e)=>{let{slot:s}=l!=null?l:{},a="slot"+(s?`[name=${s}]`:":not([name])");return Lr(o,e,{get(){var m,E;let h=(m=this.renderRoot)==null?void 0:m.querySelector(a);return(E=h==null?void 0:h.assignedNodes(l))!=null?E:[]}})}}var yt=W`
|
5
5
|
:host {
|
6
6
|
align-items: center;
|
7
7
|
display: flex;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
justify-content: center;
|
10
10
|
width: fit-content;
|
11
11
|
}
|
12
|
-
|
12
|
+
`,$a=W`
|
13
13
|
:host {
|
14
14
|
--mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
|
15
15
|
--mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
|
@@ -25,7 +25,7 @@
|
|
25
25
|
`,_t=(l=!1)=>{let o=W`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
26
26
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
27
27
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
28
|
-
`;return l?[
|
28
|
+
`;return l?[$a,W`
|
29
29
|
.mdc-focus-ring:focus-visible {
|
30
30
|
outline: none;
|
31
31
|
}
|
@@ -49,7 +49,7 @@
|
|
49
49
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
50
50
|
}
|
51
51
|
}
|
52
|
-
`]:[
|
52
|
+
`]:[$a,W`
|
53
53
|
:host([disabled]:focus) {
|
54
54
|
box-shadow: none;
|
55
55
|
}
|
@@ -64,7 +64,7 @@
|
|
64
64
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
65
65
|
}
|
66
66
|
}
|
67
|
-
`]};var
|
67
|
+
`]};var uv=W`
|
68
68
|
:host {
|
69
69
|
height: 1.5rem;
|
70
70
|
gap: 0.25rem;
|
@@ -167,7 +167,7 @@
|
|
167
167
|
:host([variant="informational"]:active){
|
168
168
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
169
169
|
}
|
170
|
-
`,
|
170
|
+
`,Ch=[yt,uv,..._t()];var wh=W`
|
171
171
|
:host {
|
172
172
|
box-sizing: border-box;
|
173
173
|
}
|
@@ -177,11 +177,11 @@
|
|
177
177
|
:host *::after {
|
178
178
|
box-sizing: inherit;
|
179
179
|
}
|
180
|
-
`;var
|
180
|
+
`;var za=class extends ei{static register(o){customElements.get(o)||customElements.define(o,this)}};za.styles=[wh];var Lh=za;var K=Lh;var ri=class extends Event{constructor(o,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=e,this.subscribe=s!=null?s:!1}};var ho=class{constructor(o,e,s,a){var h;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(m,E)=>{this.unsubscribe&&(this.unsubscribe!==E&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=m,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(m,E)),this.unsubscribe=E},this.host=o,e.context!==void 0){let m=e;this.context=m.context,this.callback=m.callback,this.subscribe=(h=m.subscribe)!=null?h:!1}else this.context=e,this.callback=s,this.subscribe=a!=null?a:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ri(this.context,this.t,this.subscribe))}};var Va=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,e=!1){let s=e||!Object.is(o,this.o);this.o=o,s&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},o!==void 0&&(this.value=o)}addCallback(o,e,s){if(!s)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:e});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var wl=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},mo=class extends Va{constructor(o,e,s){var a,h;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=m=>{let E=m.composedPath()[0];m.context===this.context&&E!==this.host&&(m.stopPropagation(),this.addCallback(m.callback,E,m.subscribe))},this.onProviderRequest=m=>{let E=m.composedPath()[0];if(m.context!==this.context||E===this.host)return;let w=new Set;for(let[$,{consumerHost:G}]of this.subscriptions)w.has($)||(w.add($),G.dispatchEvent(new ri(this.context,$,!0)));m.stopPropagation()},this.host=o,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(h=(a=this.host).addController)==null||h.call(a,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new wl(this.context))}};var fv=W`
|
181
181
|
:host {
|
182
182
|
display: contents;
|
183
183
|
}
|
184
|
-
`,
|
184
|
+
`,Nh=fv;var Ba=class extends K{constructor({context:o,initialValue:e}){super(),this.context=new mo(this,{context:o,initialValue:e})}render(){return this.updateContext(),P`<slot></slot>`}};Ba.styles=[...K.styles,Nh];var Mh=Ba;var ii=Mh;var vv={PREFIX:"mdc",SEPARATOR:"-"},gv={NAMESPACE:vv},Nl=gv;var bv=l=>[Nl.NAMESPACE.PREFIX,l].join(Nl.NAMESPACE.SEPARATOR),j={constructTagName:bv};var AE=j.constructTagName("buttonsimple"),_i={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},po={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ts={SIZE:_i[32],TYPE:po.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var As=j.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},bt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:ot.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:bt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Rh=j.constructTagName("alertchip"),Si={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},uo={VARIANT:Si.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:bt.SPAN,SIZE:_i[24],ROLE:"button"};var Oh=l=>({[Si.ERROR]:"error-legacy-badge-filled",[Si.WARNING]:"warning-badge-filled",[Si.SUCCESS]:"check-circle-badge-filled",[Si.INFORMATIONAL]:"info-badge-filled",[Si.NEUTRAL]:"dnd-presence-badge-filled"})[l];var zt=l=>{class o extends l{}return v([x({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ur=l=>{class o extends l{constructor(){super(...arguments);this.tabIndex=0}}return v([x({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Ph=l=>{class o extends l{constructor(){super(...arguments);this.autofocus=!1}firstUpdated(a){super.firstUpdated(a),this.autofocus&&this.focus()}}return v([x({type:Boolean,reflect:!0})],o.prototype,"autofocus",2),o};var yv=[yt,W`
|
185
185
|
:host {
|
186
186
|
border: 0.0625rem solid transparent;
|
187
187
|
cursor: pointer;
|
@@ -238,10 +238,10 @@
|
|
238
238
|
:host([size="20"]){
|
239
239
|
height: var(--mdc-button-height-size-20);
|
240
240
|
}
|
241
|
-
`,..._t()],
|
242
|
-
<mdc-icon part="icon" name="${
|
243
|
-
<mdc-text part="label" type="${
|
244
|
-
`}};
|
241
|
+
`,..._t()],Dh=yv;var ir=class extends Ph(ur(zt(K))){constructor(){super();this.size=Ts.SIZE;this.role=Ts.ROLE;this.type=Ts.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Ts.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===po.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===po.RESET&&this.form&&this.form.reset()}setActive(e,s){this.ariaStateKey&&this.ariaStateKey.split(",").filter(h=>h.trim().startsWith("aria-")).forEach(h=>{s===!0?e.setAttribute(h.trim(),"true"):s===!1?e.setAttribute(h.trim(),"false"):e.removeAttribute(h.trim())})}setSoftDisabled(e,s){s?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,s){s?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return P` <slot></slot> `}};ir.formAssociated=!0,ir.styles=[...K.styles,...Dh],v([x({type:Boolean,reflect:!0})],ir.prototype,"active",2),v([x({type:Boolean,attribute:"soft-disabled",reflect:!0})],ir.prototype,"softDisabled",2),v([x({type:Number,reflect:!0})],ir.prototype,"size",2),v([x({type:String,reflect:!0})],ir.prototype,"role",2),v([x({type:String,reflect:!0})],ir.prototype,"ariaStateKey",2),v([x({reflect:!0})],ir.prototype,"type",2);var _e=ir;var fo=class extends _e{constructor(){super(...arguments);this.variant=uo.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=uo.SIZE,this.role=uo.ROLE}render(){return P`
|
242
|
+
<mdc-icon part="icon" name="${Oh(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
243
|
+
<mdc-text part="label" type="${uo.TEXT_TYPE}" tagname="${uo.TAG_NAME}">${this.label}</mdc-text>
|
244
|
+
`}};fo.styles=[...K.styles,...Ch],v([x({type:String})],fo.prototype,"variant",2),v([x({type:String})],fo.prototype,"label",2);var Ml=fo;var Fh=W`
|
245
245
|
:host::part(text) {
|
246
246
|
font-size: unset;
|
247
247
|
font-weight: unset;
|
@@ -484,14 +484,14 @@
|
|
484
484
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
485
485
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
486
486
|
}
|
487
|
-
`;var
|
487
|
+
`;var Ev=[W`
|
488
488
|
:host {
|
489
489
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
490
490
|
|
491
491
|
display: block;
|
492
492
|
font-family: var(--mdc-text-font-family);
|
493
493
|
}
|
494
|
-
`,
|
494
|
+
`,Fh],$h=Ev;var vo=class extends K{constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case bt.H1:return P`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case bt.H2:return P`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case bt.H3:return P`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case bt.H4:return P`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case bt.H5:return P`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case bt.H6:return P`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case bt.DIV:return P`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case bt.SPAN:return P`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case bt.SMALL:return P`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case bt.P:default:return P`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};vo.styles=[...K.styles,...$h],v([x({attribute:"type",reflect:!0,type:String})],vo.prototype,"type",2),v([x({attribute:"tagname",reflect:!0,type:String})],vo.prototype,"tagname",2);var Rl=vo;Rl.register(As);var xv=Rl;var Tv=[yt,W`
|
495
495
|
:host {
|
496
496
|
--mdc-icon-fill-color: currentColor;
|
497
497
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -506,11 +506,11 @@
|
|
506
506
|
width: 100%;
|
507
507
|
fill: var(--mdc-icon-fill-color);
|
508
508
|
}
|
509
|
-
`,..._t()],Sh=iv;var ov=l=>{let{host:o,context:e,subscribe:s}=l;return new io(o,{context:e,subscribe:s!=null?s:!0})},sv={consume:ov},Ih=sv;var Na=j.constructTagName("iconprovider"),kh=["svg"],Ch=["em","rem","px","%"],av={px:16,em:1,rem:1,"%":100},Sr={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:av.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ra=class{};Ra.context=Na;var Oa=Ra;var cr=class extends so{constructor(){super({context:Oa.context,initialValue:new Oa});this.iconSet=Sr.ICON_SET;this.fileExtension=Sr.FILE_EXTENSION;this.lengthUnit=Sr.LENGTH_UNIT;this.size=Sr.SIZE}static get Context(){return Oa.context}updateValuesInContext(){this.fileExtension&&kh.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Sr.FILE_EXTENSION,this.context.value.fileExtension=Sr.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Ch.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Sr.LENGTH_UNIT,this.context.value.lengthUnit=Sr.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};g([A({type:String,attribute:"icon-set",reflect:!0})],cr.prototype,"iconSet",2),g([A({type:String})],cr.prototype,"url",2),g([A({type:String,attribute:"file-extension",reflect:!0})],cr.prototype,"fileExtension",2),g([A({type:String,attribute:"length-unit",reflect:!0})],cr.prototype,"lengthUnit",2),g([A({type:Number,reflect:!0})],cr.prototype,"size",2),g([A({type:String,attribute:"cache-strategy"})],cr.prototype,"cacheStrategy",2),g([A({type:String,attribute:"cache-name"})],cr.prototype,"cacheName",2);var fs=cr;var vs={},wh=async l=>(vs[l]===void 0&&(vs[l]=new Map),{async set(o,e){vs[l].set(o.url,await e.text())},async get(o){return vs[l].get(o.url)},async delete(o){vs[l].delete(o.url)}}),Lh=async l=>{let o=await caches.open(l);return{set:async(e,s)=>{await o.put(e,s)},get:async e=>{let s=await o.match(e);return s==null?void 0:s.text()},delete:async e=>{await o.delete(e)}}},Mh=async(l,o)=>o==="in-memory-cache"?wh(l):Lh(l);var Nh=async l=>fetch(l).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Rh=async({url:l,name:o,fileExtension:e,cacheStrategy:s,cacheName:a,renewSignal:h})=>{let p=h(),E=new Request(`${l}/${o}.${e}`,{signal:p});return!a||!s||!["in-memory-cache","web-cache-api"].includes(s)?Nh(E).then(C=>C.text()):Mh(a,s).then(C=>C.get(E).then(z=>z||Nh(E.clone()).then(G=>{var Y;return G.status<400&&G.headers.has("content-type")?(Y=C.set)==null?void 0:Y.call(C,E,G.clone()).then(()=>G.text()):G.text()})).catch(z=>{throw new Error(`Error in caching the Icon ${o}, ${z}`)}))};var Oh=j.constructTagName("icon"),yl={NAME:void 0,SIZE:1};var Ne=class extends q{constructor(){super();this.name=yl.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Ih.consume({host:this,context:fs.Context});this.abortController=new AbortController}prepareIconElement(e){let s=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&s.setAttribute("data-name",this.name),s.setAttribute("part","icon"),s.setAttribute("aria-hidden","true"),s}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:s,url:a,cacheName:h,iconSet:p,cacheStrategy:E}=this.iconProviderContext.value;if(p==="custom-icons"&&a&&s&&this.name){let C=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Rh({url:a,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:E,renewSignal:C}).then(z=>{let G=this.prepareIconElement(z);this.handleIconLoadedSuccess(G)}).catch(z=>{this.handleIconLoadedFailure(z)})}if(p==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(C=>{this.handleIconLoadedSuccess(C.default())}).catch(C=>{this.handleIconLoadedFailure(C)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleIconLoadedFailure(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let s=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",s)}}get computedIconSize(){var e,s;return(s=(e=this.size)!=null?e:this.sizeFromContext)!=null?s:yl.SIZE}updated(e){var s,a,h,p;super.updated(e),e.has("name")&&this.getIconData().catch(E=>{E.name!=="AbortError"&&this.onerror&&this.onerror(E)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.lengthUnit)&&(this.lengthUnitFromContext=(a=this.iconProviderContext.value)==null?void 0:a.lengthUnit,this.updateSize()),this.sizeFromContext!==((h=this.iconProviderContext.value)==null?void 0:h.size)&&(this.sizeFromContext=(p=this.iconProviderContext.value)==null?void 0:p.size,this.updateSize())}render(){return D` ${this.iconData} `}};Ne.styles=[...q.styles,...Sh],g([At()],Ne.prototype,"iconData",2),g([At()],Ne.prototype,"lengthUnitFromContext",2),g([At()],Ne.prototype,"sizeFromContext",2),g([A({type:String,reflect:!0})],Ne.prototype,"name",2),g([A({type:Number})],Ne.prototype,"size",2),g([A({type:String,attribute:"length-unit"})],Ne.prototype,"lengthUnit",2),g([A({type:String,attribute:"aria-label"})],Ne.prototype,"ariaLabel",2),g([A({type:String,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",2),g([At()],Ne.prototype,"abortController",2);var El=Ne;El.register(Oh);var nv=El;gl.register(yh);var lv=gl;var{I:jT}=ch;var Ph=l=>l.strings===void 0;var Pa={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},gs=l=>(...o)=>({_$litDirective$:l,values:o}),ho=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,e,s){this.t=o,this._$AM=e,this.i=s}_$AS(o,e){return this.update(o,e)}update(o,e){return this.render(...e)}};var bs=(l,o)=>{var s;let e=l._$AN;if(e===void 0)return!1;for(let a of e)(s=a._$AO)==null||s.call(a,o,!1),bs(a,o);return!0},Da=l=>{let o,e;do{if((o=l._$AM)===void 0)break;e=o._$AN,e.delete(l),l=o}while((e==null?void 0:e.size)===0)},Dh=l=>{for(let o;o=l._$AM;l=o){let e=o._$AN;if(e===void 0)o._$AN=e=new Set;else if(e.has(l))break;e.add(l),hv(o)}};function cv(l){this._$AN!==void 0?(Da(this),this._$AM=l,Dh(this)):this._$AM=l}function dv(l,o=!1,e=0){let s=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(o)if(Array.isArray(s))for(let h=e;h<s.length;h++)bs(s[h],!1),Da(s[h]);else s!=null&&(bs(s,!1),Da(s));else bs(this,l)}var hv=l=>{var o,e;l.type==Pa.CHILD&&((o=l._$AP)!=null||(l._$AP=dv),(e=l._$AQ)!=null||(l._$AQ=cv))},Fa=class extends ho{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,e,s){super._$AT(o,e,s),Dh(this),this.isConnected=o._$AU}_$AO(o,e=!0){var s,a;o!==this.isConnected&&(this.isConnected=o,o?(s=this.reconnected)==null||s.call(this):(a=this.disconnected)==null||a.call(this)),e&&(bs(this,o),Da(this))}setValue(o){if(Ph(this.t))this.t._$AI(o,this);else{let e=[...this.t._$AH];e[this.i]=o,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var za=()=>new xl,xl=class{},Tl=new WeakMap,$a=gs(class extends Fa{render(l){return X}update(l,[o]){var s;let e=o!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=o,this.ht=(s=l.options)==null?void 0:s.host,this.rt(this.ct=l.element)),X}rt(l){var o;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let e=(o=this.ht)!=null?o:globalThis,s=Tl.get(e);s===void 0&&(s=new WeakMap,Tl.set(e,s)),s.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),s.set(this.Y,l),l!==void 0&&this.Y.call(this.ht,l)}else this.Y.value=l}get lt(){var l,o,e;return typeof this.Y=="function"?(o=Tl.get((l=this.ht)!=null?l:globalThis))==null?void 0:o.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Vh=zf(Fh());var Al={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var mv=[Et,W`
|
509
|
+
`,..._t()],zh=Tv;var Av=l=>{let{host:o,context:e,subscribe:s}=l;return new ho(o,{context:e,subscribe:s!=null?s:!0})},_v={consume:Av},go=_v;var Ua=j.constructTagName("iconprovider"),Vh=["svg"],Bh=["em","rem","px","%"],Sv={px:16,em:1,rem:1,"%":100},Mr={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Sv.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ha=class{};Ha.context=Ua;var Ga=Ha;var fr=class extends ii{constructor(){super({context:Ga.context,initialValue:new Ga});this.iconSet=Mr.ICON_SET;this.fileExtension=Mr.FILE_EXTENSION;this.lengthUnit=Mr.LENGTH_UNIT;this.size=Mr.SIZE}static get Context(){return Ga.context}updateValuesInContext(){this.fileExtension&&Vh.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Mr.FILE_EXTENSION,this.context.value.fileExtension=Mr.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Bh.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Mr.LENGTH_UNIT,this.context.value.lengthUnit=Mr.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};v([x({type:String,attribute:"icon-set",reflect:!0})],fr.prototype,"iconSet",2),v([x({type:String})],fr.prototype,"url",2),v([x({type:String,attribute:"file-extension",reflect:!0})],fr.prototype,"fileExtension",2),v([x({type:String,attribute:"length-unit",reflect:!0})],fr.prototype,"lengthUnit",2),v([x({type:Number,reflect:!0})],fr.prototype,"size",2),v([x({type:String,attribute:"cache-strategy"})],fr.prototype,"cacheStrategy",2),v([x({type:String,attribute:"cache-name"})],fr.prototype,"cacheName",2);var _s=fr;var Ss={},Uh=async l=>(Ss[l]===void 0&&(Ss[l]=new Map),{async set(o,e){Ss[l].set(o.url,await e.text())},async get(o){return Ss[l].get(o.url)},async delete(o){Ss[l].delete(o.url)}}),Hh=async l=>{let o=await caches.open(l);return{set:async(e,s)=>{await o.put(e,s)},get:async e=>{let s=await o.match(e);return s==null?void 0:s.text()},delete:async e=>{await o.delete(e)}}},Gh=async(l,o)=>o==="in-memory-cache"?Uh(l):Hh(l);var jh=async l=>fetch(l).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Wh=async({url:l,name:o,fileExtension:e,cacheStrategy:s,cacheName:a,renewSignal:h})=>{let m=h(),E=new Request(`${l}/${o}.${e}`,{signal:m});return!a||!s||!["in-memory-cache","web-cache-api"].includes(s)?jh(E).then(w=>w.text()):Gh(a,s).then(w=>w.get(E).then($=>$||jh(E.clone()).then(G=>{var q;return G.status<400&&G.headers.has("content-type")?(q=w.set)==null?void 0:q.call(w,E,G.clone()).then(()=>G.text()):G.text()})).catch($=>{throw new Error(`Error in caching the Icon ${o}, ${$}`)}))};var Yh=j.constructTagName("icon"),Ol={NAME:void 0,SIZE:1};var Re=class extends K{constructor(){super();this.name=Ol.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=go.consume({host:this,context:_s.Context});this.abortController=new AbortController}prepareIconElement(e){let s=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&s.setAttribute("data-name",this.name),s.setAttribute("part","icon"),s.setAttribute("aria-hidden","true"),s}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:s,url:a,cacheName:h,iconSet:m,cacheStrategy:E}=this.iconProviderContext.value;if(m==="custom-icons"&&a&&s&&this.name){let w=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Wh({url:a,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:E,renewSignal:w}).then($=>{let G=this.prepareIconElement($);this.handleIconLoadedSuccess(G)}).catch($=>{this.handleIconLoadedFailure($)})}if(m==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(w=>{this.handleIconLoadedSuccess(w.default())}).catch(w=>{this.handleIconLoadedFailure(w)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleIconLoadedFailure(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let s=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",s)}}get computedIconSize(){var e,s;return(s=(e=this.size)!=null?e:this.sizeFromContext)!=null?s:Ol.SIZE}updated(e){var s,a,h,m;super.updated(e),e.has("name")&&this.getIconData().catch(E=>{E.name!=="AbortError"&&this.onerror&&this.onerror(E)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.lengthUnit)&&(this.lengthUnitFromContext=(a=this.iconProviderContext.value)==null?void 0:a.lengthUnit,this.updateSize()),this.sizeFromContext!==((h=this.iconProviderContext.value)==null?void 0:h.size)&&(this.sizeFromContext=(m=this.iconProviderContext.value)==null?void 0:m.size,this.updateSize())}render(){return P` ${this.iconData} `}};Re.styles=[...K.styles,...zh],v([Tt()],Re.prototype,"iconData",2),v([Tt()],Re.prototype,"lengthUnitFromContext",2),v([Tt()],Re.prototype,"sizeFromContext",2),v([x({type:String,reflect:!0})],Re.prototype,"name",2),v([x({type:Number})],Re.prototype,"size",2),v([x({type:String,attribute:"length-unit"})],Re.prototype,"lengthUnit",2),v([x({type:String,attribute:"aria-label"})],Re.prototype,"ariaLabel",2),v([x({type:String,attribute:"aria-labelledby"})],Re.prototype,"ariaLabelledBy",2),v([Tt()],Re.prototype,"abortController",2);var Pl=Re;Pl.register(Yh);var Iv=Pl;Ml.register(Rh);var kv=Ml;var{I:vT}=_h;var qh=l=>l.strings===void 0;var ja={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Is=l=>(...o)=>({_$litDirective$:l,values:o}),bo=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,e,s){this.t=o,this._$AM=e,this.i=s}_$AS(o,e){return this.update(o,e)}update(o,e){return this.render(...e)}};var ks=(l,o)=>{var s;let e=l._$AN;if(e===void 0)return!1;for(let a of e)(s=a._$AO)==null||s.call(a,o,!1),ks(a,o);return!0},Wa=l=>{let o,e;do{if((o=l._$AM)===void 0)break;e=o._$AN,e.delete(l),l=o}while((e==null?void 0:e.size)===0)},Kh=l=>{for(let o;o=l._$AM;l=o){let e=o._$AN;if(e===void 0)o._$AN=e=new Set;else if(e.has(l))break;e.add(l),Lv(o)}};function Cv(l){this._$AN!==void 0?(Wa(this),this._$AM=l,Kh(this)):this._$AM=l}function wv(l,o=!1,e=0){let s=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(o)if(Array.isArray(s))for(let h=e;h<s.length;h++)ks(s[h],!1),Wa(s[h]);else s!=null&&(ks(s,!1),Wa(s));else ks(this,l)}var Lv=l=>{var o,e;l.type==ja.CHILD&&((o=l._$AP)!=null||(l._$AP=wv),(e=l._$AQ)!=null||(l._$AQ=Cv))},Ya=class extends bo{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,e,s){super._$AT(o,e,s),Kh(this),this.isConnected=o._$AU}_$AO(o,e=!0){var s,a;o!==this.isConnected&&(this.isConnected=o,o?(s=this.reconnected)==null||s.call(this):(a=this.disconnected)==null||a.call(this)),e&&(ks(this,o),Wa(this))}setValue(o){if(qh(this.t))this.t._$AI(o,this);else{let e=[...this.t._$AH];e[this.i]=o,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var qa=()=>new Fl,Fl=class{},Dl=new WeakMap,Ka=Is(class extends Ya{render(l){return Y}update(l,[o]){var s;let e=o!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=o,this.ht=(s=l.options)==null?void 0:s.host,this.rt(this.ct=l.element)),Y}rt(l){var o;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let e=(o=this.ht)!=null?o:globalThis,s=Dl.get(e);s===void 0&&(s=new WeakMap,Dl.set(e,s)),s.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),s.set(this.Y,l),l!==void 0&&this.Y.call(this.ht,l)}else this.Y.value=l}get lt(){var l,o,e;return typeof this.Y=="function"?(o=Dl.get((l=this.ht)!=null?l:globalThis))==null?void 0:o.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Qh=iv(Xh());var $l={audio_video:"./lottie/audio_video.json",calling:"./lottie/calling.json",alert_32px_loop:"./lottie/cisco-ai-assistant/alert_32px_loop.json",hello_32px:"./lottie/cisco-ai-assistant/hello_32px.json",processing_32px_end:"./lottie/cisco-ai-assistant/processing_32px_end.json",processing_32px_loop:"./lottie/cisco-ai-assistant/processing_32px_loop.json",processing_32px_start:"./lottie/cisco-ai-assistant/processing_32px_start.json",responding_32px_end:"./lottie/cisco-ai-assistant/responding_32px_end.json",responding_32px_loop:"./lottie/cisco-ai-assistant/responding_32px_loop.json",responding_32px_start:"./lottie/cisco-ai-assistant/responding_32px_start.json",contacts:"./lottie/contacts.json",discoverability_badge:"./lottie/discoverability_badge.json",heart_opacity_test:"./lottie/heart_opacity_test.json",meeting:"./lottie/meeting.json",personal_insight:"./lottie/personal_insight.json",celebrate:"./lottie/reactions/celebrate.json",clap_dark:"./lottie/reactions/clap_dark.json",clap_light:"./lottie/reactions/clap_light.json",clap_medium_dark:"./lottie/reactions/clap_medium_dark.json",clap_medium_light:"./lottie/reactions/clap_medium_light.json",clap_medium:"./lottie/reactions/clap_medium.json",clap_yellow:"./lottie/reactions/clap_yellow.json",fire:"./lottie/reactions/fire.json",haha:"./lottie/reactions/haha.json",heart:"./lottie/reactions/heart.json",on_video_celebrate:"./lottie/reactions/on_video/on_video_celebrate.json",on_video_clap_dark:"./lottie/reactions/on_video/on_video_clap_dark.json",on_video_clap_light:"./lottie/reactions/on_video/on_video_clap_light.json",on_video_clap_medium_dark:"./lottie/reactions/on_video/on_video_clap_medium_dark.json",on_video_clap_medium_light:"./lottie/reactions/on_video/on_video_clap_medium_light.json",on_video_clap_medium:"./lottie/reactions/on_video/on_video_clap_medium.json",on_video_clap_yellow:"./lottie/reactions/on_video/on_video_clap_yellow.json",on_video_fire:"./lottie/reactions/on_video/on_video_fire.json",on_video_haha:"./lottie/reactions/on_video/on_video_haha.json",on_video_heart:"./lottie/reactions/on_video/on_video_heart.json",on_video_prayer_dark:"./lottie/reactions/on_video/on_video_prayer_dark.json",on_video_prayer_light:"./lottie/reactions/on_video/on_video_prayer_light.json",on_video_prayer_medium_dark:"./lottie/reactions/on_video/on_video_prayer_medium_dark.json",on_video_prayer_medium_light:"./lottie/reactions/on_video/on_video_prayer_medium_light.json",on_video_prayer_medium:"./lottie/reactions/on_video/on_video_prayer_medium.json",on_video_prayer_yellow:"./lottie/reactions/on_video/on_video_prayer_yellow.json",on_video_raise_hand_dark:"./lottie/reactions/on_video/on_video_raise_hand_dark.json",on_video_raise_hand_light:"./lottie/reactions/on_video/on_video_raise_hand_light.json",on_video_raise_hand_medium_dark:"./lottie/reactions/on_video/on_video_raise_hand_medium_dark.json",on_video_raise_hand_medium_light:"./lottie/reactions/on_video/on_video_raise_hand_medium_light.json",on_video_raise_hand_medium:"./lottie/reactions/on_video/on_video_raise_hand_medium.json",on_video_raise_hand_yellow:"./lottie/reactions/on_video/on_video_raise_hand_yellow.json",on_video_sad:"./lottie/reactions/on_video/on_video_sad.json",on_video_slow_down:"./lottie/reactions/on_video/on_video_slow_down.json",on_video_smile:"./lottie/reactions/on_video/on_video_smile.json",on_video_speed_up:"./lottie/reactions/on_video/on_video_speed_up.json",on_video_thumb_down_dark:"./lottie/reactions/on_video/on_video_thumb_down_dark.json",on_video_thumb_down_light:"./lottie/reactions/on_video/on_video_thumb_down_light.json",on_video_thumb_down_medium_dark:"./lottie/reactions/on_video/on_video_thumb_down_medium_dark.json",on_video_thumb_down_medium_light:"./lottie/reactions/on_video/on_video_thumb_down_medium_light.json",on_video_thumb_down_medium:"./lottie/reactions/on_video/on_video_thumb_down_medium.json",on_video_thumb_down_yellow:"./lottie/reactions/on_video/on_video_thumb_down_yellow.json",on_video_thumb_up_dark:"./lottie/reactions/on_video/on_video_thumb_up_dark.json",on_video_thumb_up_light:"./lottie/reactions/on_video/on_video_thumb_up_light.json",on_video_thumb_up_medium_dark:"./lottie/reactions/on_video/on_video_thumb_up_medium_dark.json",on_video_thumb_up_medium_light:"./lottie/reactions/on_video/on_video_thumb_up_medium_light.json",on_video_thumb_up_medium:"./lottie/reactions/on_video/on_video_thumb_up_medium.json",on_video_thumb_up_yellow:"./lottie/reactions/on_video/on_video_thumb_up_yellow.json",on_video_wow:"./lottie/reactions/on_video/on_video_wow.json",prayer_dark:"./lottie/reactions/prayer_dark.json",prayer_light:"./lottie/reactions/prayer_light.json",prayer_medium_dark:"./lottie/reactions/prayer_medium_dark.json",prayer_medium_light:"./lottie/reactions/prayer_medium_light.json",prayer_medium:"./lottie/reactions/prayer_medium.json",prayer_yellow:"./lottie/reactions/prayer_yellow.json",raise_hand_dark:"./lottie/reactions/raise_hand_dark.json",raise_hand_light:"./lottie/reactions/raise_hand_light.json",raise_hand_medium_dark:"./lottie/reactions/raise_hand_medium_dark.json",raise_hand_medium_light:"./lottie/reactions/raise_hand_medium_light.json",raise_hand_medium:"./lottie/reactions/raise_hand_medium.json",raise_hand_yellow:"./lottie/reactions/raise_hand_yellow.json",sad:"./lottie/reactions/sad.json",slow_down:"./lottie/reactions/slow_down.json",smile:"./lottie/reactions/smile.json",speed_up:"./lottie/reactions/speed_up.json",thumb_down_dark:"./lottie/reactions/thumb_down_dark.json",thumb_down_light:"./lottie/reactions/thumb_down_light.json",thumb_down_medium_dark:"./lottie/reactions/thumb_down_medium_dark.json",thumb_down_medium_light:"./lottie/reactions/thumb_down_medium_light.json",thumb_down_medium:"./lottie/reactions/thumb_down_medium.json",thumb_down_yellow:"./lottie/reactions/thumb_down_yellow.json",thumb_up_dark:"./lottie/reactions/thumb_up_dark.json",thumb_up_light:"./lottie/reactions/thumb_up_light.json",thumb_up_medium_dark:"./lottie/reactions/thumb_up_medium_dark.json",thumb_up_medium_light:"./lottie/reactions/thumb_up_medium_light.json",thumb_up_medium:"./lottie/reactions/thumb_up_medium.json",thumb_up_yellow:"./lottie/reactions/thumb_up_yellow.json",wow:"./lottie/reactions/wow.json",space:"./lottie/space.json",success:"./lottie/success.json",teams:"./lottie/teams.json",webex_logo_loop:"./lottie/webex_logo_loop.json",welcome:"./lottie/welcome.json"};var Nv=[yt,W`
|
510
510
|
:host svg{
|
511
511
|
display: block;
|
512
512
|
}
|
513
|
-
`],
|
513
|
+
`],Zh=Nv;var Jh=j.constructTagName("animation"),Za={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var Rr=class extends K{constructor(){super(...arguments);this.name=Za.NAME;this.loop=Za.LOOP;this.autoplay=Za.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=qa();this.onCompleteHandler=()=>{let e=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(e)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(e){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=Qh.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:e,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}getAnimationData(){this.name&&$l[this.name]?import(`@momentum-design/animations/dist/lottie${$l[this.name].replace(/^\.\/lottie/,"")}`).then(s=>this.onLoadSuccessHandler(s.default)).catch(s=>this.onLoadFailHandler(s)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(e){super.updated(e),(e.has("name")||e.has("loop")||e.has("autoplay"))&&this.getAnimationData(),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null)}render(){return P`<div aria-hidden="true" ${Ka(this.containerRef)}></div>`}};Rr.styles=[...K.styles,...Zh],v([x({type:String,reflect:!0})],Rr.prototype,"name",2),v([x({type:String,reflect:!0})],Rr.prototype,"loop",2),v([x({type:Boolean,reflect:!0})],Rr.prototype,"autoplay",2),v([x({type:String,attribute:"aria-label"})],Rr.prototype,"ariaLabel",2),v([x({type:String,attribute:"aria-labelledby"})],Rr.prototype,"ariaLabelledBy",2);var zl=Rr;zl.register(Jh);var Mv=zl;var Rv=W`
|
514
514
|
:host {
|
515
515
|
--mdc-appheader-height: 4rem;
|
516
516
|
}
|
@@ -544,7 +544,7 @@
|
|
544
544
|
:host::part(trailing-section) {
|
545
545
|
justify-content: flex-end;
|
546
546
|
}
|
547
|
-
`,
|
547
|
+
`,tm=[Rv];var Ja=class extends K{render(){return P`
|
548
548
|
<header part="container">
|
549
549
|
<div part="leading-section">
|
550
550
|
<slot name="leading"></slot>
|
@@ -555,7 +555,7 @@
|
|
555
555
|
<div part="trailing-section">
|
556
556
|
<slot name="trailing"></slot>
|
557
557
|
</div>
|
558
|
-
</header>`}};
|
558
|
+
</header>`}};Ja.styles=[...K.styles,...tm];var Vl=Ja;var em=j.constructTagName("appheader");Vl.register(em);var Ov=Vl;var lt=l=>l!=null?l:Y;var rm=j.constructTagName("avatar"),ue={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Bl=99,Pv="user-regular",Ot={24:24,32:32,48:48,64:64,72:72,88:88,124:124},yo={TYPE:ue.PHOTO,SIZE:Ot[32],ICON_NAME:Pv};var Qa=l=>{class o extends l{constructor(){super(...arguments);this.size=yo.SIZE;this.isTyping=!1}}return v([x({type:String})],o.prototype,"src",2),v([x({type:String})],o.prototype,"initials",2),v([x({type:String})],o.prototype,"presence",2),v([x({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),v([x({type:Number})],o.prototype,"counter",2),v([x({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var ce=l=>{class o extends l{}return v([x({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var Dv=[yt,W`
|
559
559
|
:host {
|
560
560
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
561
561
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -678,38 +678,38 @@
|
|
678
678
|
outline: 0.125rem solid;
|
679
679
|
}
|
680
680
|
}
|
681
|
-
`],
|
682
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
683
|
-
`:
|
681
|
+
`],im=Dv;var om=j.constructTagName("presence"),de={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},Xt={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Eo={TYPE:de.ACTIVE,SIZE:Xt.SMALL};var sm=l=>({[Ot[124]]:Xt.XX_LARGE,[Ot[88]]:Xt.X_LARGE,[Ot[72]]:Xt.LARGE,[Ot[64]]:Xt.MIDSIZE,[Ot[48]]:Xt.SMALL,[Ot[32]]:Xt.X_SMALL,[Ot[24]]:Xt.XX_SMALL})[l]||Xt.X_SMALL,am=l=>({[Ot[124]]:4.75,[Ot[88]]:3,[Ot[72]]:2.5,[Ot[64]]:2.25,[Ot[48]]:1.75,[Ot[32]]:1.25,[Ot[24]]:1})[l]||1.25,nm=l=>({[Ot[124]]:ot.HEADING_XLARGE_MEDIUM,[Ot[88]]:ot.HEADING_LARGE_MEDIUM,[Ot[72]]:ot.HEADING_MIDSIZE_MEDIUM,[Ot[64]]:ot.HEADING_SMALL_MEDIUM,[Ot[48]]:ot.HEADING_SMALL_MEDIUM,[Ot[32]]:ot.BODY_MIDSIZE_MEDIUM,[Ot[24]]:ot.BODY_SMALL_MEDIUM})[l]||ot.BODY_MIDSIZE_MEDIUM;var ws=class extends Qa(ce(K)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===ue.COUNTER&&(this.counter||this.counter===0)||this.isTyping?Y:this.presence?P`
|
682
|
+
<mdc-presence part="presence" type="${this.presence}" size="${sm(this.size)}"></mdc-presence>
|
683
|
+
`:Y}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return P`
|
684
684
|
<img
|
685
685
|
part="photo"
|
686
|
-
src="${
|
686
|
+
src="${lt(this.src)}"
|
687
687
|
aria-hidden="true"
|
688
688
|
?hidden="${!this.isPhotoLoaded}"
|
689
689
|
@load="${this.handleOnLoad}"
|
690
690
|
@error="${this.handleOnError}"
|
691
691
|
/>
|
692
|
-
`}iconTemplate(){let e=this.iconName||
|
692
|
+
`}iconTemplate(){let e=this.iconName||yo.ICON_NAME;return P`
|
693
693
|
<mdc-icon
|
694
|
-
name="${
|
694
|
+
name="${lt(e)}"
|
695
695
|
length-unit="rem"
|
696
|
-
size="${
|
696
|
+
size="${am(this.size)}"
|
697
697
|
></mdc-icon>
|
698
|
-
`}textTemplate(e){return
|
698
|
+
`}textTemplate(e){return P`
|
699
699
|
<mdc-text
|
700
|
-
type="${
|
700
|
+
type="${nm(this.size)}"
|
701
701
|
tagname="span"
|
702
702
|
>
|
703
703
|
${e}
|
704
704
|
</mdc-text>
|
705
|
-
`}generateCounterText(e){return e<0?"0":e>
|
705
|
+
`}generateCounterText(e){return e<0?"0":e>Bl?`${Bl}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let s="";return e===ue.TEXT&&this.initials&&(s=this.generateInitialsText(this.initials)),e===ue.COUNTER&&(this.counter||this.counter===0)&&(s=this.generateCounterText(this.counter)),this.textTemplate(s)}getTypeBasedOnInputs(){return this.src?ue.PHOTO:this.iconName?ue.ICON:this.initials?ue.TEXT:this.counter||this.counter===0?ue.COUNTER:ue.ICON}getTemplateBasedOnType(e){switch(e){case ue.PHOTO:return this.photoTemplate();case ue.TEXT:case ue.COUNTER:return this.generateTextContent(e);case ue.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?P`<div part="loading-wrapper"><div part="loader"></div></div>`:Y}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?Y:e===ue.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():Y}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return P`
|
706
706
|
<div part="content" aria-hidden="true">
|
707
707
|
${this.getPhotoPlaceHolderContent(e)}
|
708
708
|
${this.getTemplateBasedOnType(e)}
|
709
709
|
${this.getLoadingContent()}
|
710
710
|
${this.getPresenceTemplateBasedOnType(e)}
|
711
711
|
</div>
|
712
|
-
`}};
|
712
|
+
`}};ws.styles=[...K.styles,...im],v([Tt()],ws.prototype,"isPhotoLoaded",2);var Ul=ws;var Fv=[yt,W`
|
713
713
|
:host {
|
714
714
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
715
715
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -803,7 +803,7 @@
|
|
803
803
|
.mdc-presence-icon__scheduled {
|
804
804
|
color: var(--mdc-presence-scheduled-background-color);
|
805
805
|
}
|
806
|
-
`],
|
806
|
+
`],lm=Fv;var cm=l=>{switch(l){case de.AWAY:return"recents-presence-badge-filled";case de.AWAY_CALLING:return"away-calling-presence-filled";case de.BUSY:return"busy-presence-bold";case de.DND:return"dnd-presence-badge-filled";case de.MEETING:return"camera-filled";case de.ON_CALL:return"handset-filled";case de.ON_DEVICE:return"generic-device-video-badge-filled";case de.ON_MOBILE:return"phone-badge-filled";case de.PAUSE:return"pause-badge-filled";case de.PTO:return"pto-presence-filled";case de.PRESENTING:return"share-screen-badge-filled";case de.QUIET:return"quiet-hours-presence-filled";case de.SCHEDULED:return"meetings-presence-badge-filled";case de.ACTIVE:default:return"active-presence-small-filled"}};var Ii=class extends K{constructor(){super(...arguments);this.type=Eo.TYPE;this.size=Eo.SIZE;this.currentIconType=Eo.TYPE}get iconSize(){switch(this.size){case Xt.MIDSIZE:return 1.16125;case Xt.LARGE:return 1.30625;case Xt.X_LARGE:return 1.596875;case Xt.XX_LARGE:return 2.25;case Xt.XX_SMALL:case Xt.X_SMALL:case Xt.SMALL:default:return this.size=Eo.SIZE,.875}}get icon(){let e=cm(this.type);return e==="active-presence-small-filled"&&(this.type=Eo.TYPE),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return P`
|
807
807
|
<div class="mdc-presence mdc-presence__${this.size}">
|
808
808
|
<mdc-icon
|
809
809
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -813,7 +813,7 @@
|
|
813
813
|
@error="${this.handleOnError}"
|
814
814
|
></mdc-icon>
|
815
815
|
</div>
|
816
|
-
`}};
|
816
|
+
`}};Ii.styles=[...K.styles,...lm],v([x({type:String,reflect:!0})],Ii.prototype,"type",2),v([x({type:String,reflect:!0})],Ii.prototype,"size",2),v([Tt()],Ii.prototype,"currentIconType",2);var Hl=Ii;Hl.register(om);var $v=Hl;Ul.register(rm);var zv=Ul;var ki=j.constructTagName("button"),Wt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ls={40:40,32:32,28:28,24:24},oi={64:64,52:52,20:20,...Ls},Ci={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},xo={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Se={VARIANT:Wt.PRIMARY,SIZE:Ls[32],COLOR:Ci.DEFAULT,TYPE_INTERNAL:xo.ICON,TYPE:po.BUTTON,INVERTED:!1};var Vv=[yt,W`
|
817
817
|
:host {
|
818
818
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
819
819
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -842,18 +842,18 @@
|
|
842
842
|
:host::part(presence) {
|
843
843
|
z-index: 2;
|
844
844
|
}
|
845
|
-
`,..._t()],
|
845
|
+
`,..._t()],dm=Vv;var Ns=class extends Qa(ce(_e)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=Se.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(Ot).includes(e)?`${e}`:yo.SIZE.toString())}render(){return P`
|
846
846
|
<div part="overlay" aria-hidden="true"></div>
|
847
847
|
<mdc-avatar
|
848
848
|
?is-typing="${this.isTyping}"
|
849
|
-
counter="${
|
850
|
-
icon-name="${
|
851
|
-
initials="${
|
852
|
-
presence="${
|
853
|
-
size="${
|
854
|
-
src="${
|
849
|
+
counter="${lt(this.counter)}"
|
850
|
+
icon-name="${lt(this.iconName)}"
|
851
|
+
initials="${lt(this.initials)}"
|
852
|
+
presence="${lt(this.presence)}"
|
853
|
+
size="${lt(this.size)}"
|
854
|
+
src="${lt(this.src)}"
|
855
855
|
></mdc-avatar>
|
856
|
-
`}};
|
856
|
+
`}};Ns.styles=[...dm],v([x({type:String,attribute:"aria-label"})],Ns.prototype,"ariaLabel",2);var Gl=Ns;var hm=j.constructTagName("avatarbutton");Gl.register(hm);var Bv=Gl;var To=Is(class extends bo{constructor(l){var o;if(super(l),l.type!==ja.ATTRIBUTE||l.name!=="class"||((o=l.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(l){return" "+Object.keys(l).filter(o=>l[o]).join(" ")+" "}update(l,[o]){var s,a;if(this.st===void 0){this.st=new Set,l.strings!==void 0&&(this.nt=new Set(l.strings.join(" ").split(/\s/).filter(h=>h!=="")));for(let h in o)o[h]&&!((s=this.nt)!=null&&s.has(h))&&this.st.add(h);return this.render(o)}let e=l.element.classList;for(let h of this.st)h in o||(e.remove(h),this.st.delete(h));for(let h in o){let m=!!o[h];m===this.st.has(h)||(a=this.nt)!=null&&a.has(h)||(m?(e.add(h),this.st.add(h)):(e.remove(h),this.st.delete(h)))}return wr}});var mm=j.constructTagName("badge"),Be={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},tn={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},en={PRIMARY:"primary",SECONDARY:"secondary"},Ms={SUCCESS:"success",WARNING:"warning",ERROR:"error"},B_={...en,...Ms},si={TYPE:Be.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:en.PRIMARY,ICON_SIZE:1};var Uv=[yt,W`
|
857
857
|
:host {
|
858
858
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
859
859
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -922,21 +922,21 @@
|
|
922
922
|
outline: 0.125rem solid;
|
923
923
|
}
|
924
924
|
}
|
925
|
-
`],
|
925
|
+
`],pm=Uv;var vr=class extends ce(K){constructor(){super(...arguments);this.variant=si.VARIANT;this.maxCounter=si.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,s){return s===void 0||typeof s!="number"||e===0?"":s>e?`${e}+`:e>si.MAX_COUNTER_LIMIT||s>si.MAX_COUNTER_LIMIT?`${si.MAX_COUNTER_LIMIT}+`:s.toString()}getBadgeIcon(e,s){return P`
|
926
926
|
<mdc-icon
|
927
|
-
class="mdc-badge-icon ${
|
928
|
-
name="${
|
929
|
-
size="${
|
927
|
+
class="mdc-badge-icon ${To({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${s}`]:!0})}"
|
928
|
+
name="${lt(e)}"
|
929
|
+
size="${si.ICON_SIZE}"
|
930
930
|
></mdc-icon>
|
931
|
-
`}getBadgeDot(){return
|
931
|
+
`}getBadgeDot(){return P`<div class="mdc-badge-dot ${To({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return P`
|
932
932
|
<mdc-text
|
933
|
-
type="${
|
934
|
-
tagname="${
|
935
|
-
class="mdc-badge-text ${
|
933
|
+
type="${ot.BODY_SMALL_MEDIUM}"
|
934
|
+
tagname="${bt.DIV}"
|
935
|
+
class="mdc-badge-text ${To({"mdc-badge-overlay":this.overlay})}"
|
936
936
|
>
|
937
937
|
${this.getCounterText(this.maxCounter,this.counter)}
|
938
938
|
</mdc-text>
|
939
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
939
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(en).includes(this.variant)&&(this.variant=si.VARIANT);let{iconName:e,type:s,variant:a}=this;switch(s){case Be.ICON:return this.getBadgeIcon(e||"",a);case Be.COUNTER:return this.getBadgeCounterText();case Be.SUCCESS:return this.getBadgeIcon(tn.SUCCESS_ICON_NAME,Ms.SUCCESS);case Be.WARNING:return this.getBadgeIcon(tn.WARNING_ICON_NAME,Ms.WARNING);case Be.ERROR:return this.getBadgeIcon(tn.ERROR_ICON_NAME,Ms.ERROR);case Be.DOT:default:return this.type=Be.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};vr.styles=[...K.styles,...pm],v([x({type:String,reflect:!0})],vr.prototype,"type",2),v([x({type:String,reflect:!0})],vr.prototype,"variant",2),v([x({type:Number})],vr.prototype,"counter",2),v([x({type:Number,attribute:"max-counter",reflect:!0})],vr.prototype,"maxCounter",2),v([x({type:Boolean})],vr.prototype,"overlay",2),v([x({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2);var jl=vr;jl.register(mm);var Hv=jl;var Gv=W`
|
940
940
|
:host {
|
941
941
|
display: block;
|
942
942
|
height: 100%;
|
@@ -945,7 +945,7 @@
|
|
945
945
|
height: 100%;
|
946
946
|
width: 100%;
|
947
947
|
}
|
948
|
-
`,
|
948
|
+
`,um=[Gv];var fm=j.constructTagName("brandvisual"),vm={NAME:void 0};var Ao=class extends K{constructor(){super(...arguments);this.name=vm.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(s=>{this.onerror&&this.onerror(s)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let s=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(s)}handleBrandVisualLoadedFailure(e){let s=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(s)}render(){return P` ${this.brandVisualData} `}};Ao.styles=[...K.styles,...um],v([Tt()],Ao.prototype,"brandVisualData",2),v([x({type:String,reflect:!0})],Ao.prototype,"name",2);var Wl=Ao;Wl.register(fm);var jv=Wl;var Wv=W`
|
949
949
|
:host {
|
950
950
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
951
951
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -966,7 +966,7 @@
|
|
966
966
|
:host([size="large"]) {
|
967
967
|
height: var(--mdc-bullet-size-large);
|
968
968
|
}
|
969
|
-
`,
|
969
|
+
`,gm=[Wv];var bm=j.constructTagName("bullet"),ym={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Rs=class extends K{constructor(){super(...arguments);this.size=ym.SMALL}};Rs.styles=[...K.styles,...gm],v([x({type:String,reflect:!0})],Rs.prototype,"size",2);var Yl=Rs;Yl.register(bm);var Yv=Yl;var rn=l=>{class o extends l{constructor(){super(...arguments);this.variant=Se.VARIANT;this.color=Se.COLOR;this.typeInternal=Se.TYPE_INTERNAL}setVariant(a){this.setAttribute("variant",Object.values(Wt).includes(a)?a:Se.VARIANT)}setColor(a){!Object.values(Ci).includes(a)||this.variant===Wt.TERTIARY?this.setAttribute("color",`${Se.COLOR}`):this.setAttribute("color",a)}setSize(a){let m=this.typeInternal===xo.ICON?Object.values(oi).includes(a)&&!(a===oi[20]&&this.variant!==Wt.TERTIARY):Object.values(Ls).includes(a);this.setAttribute("size",m?`${a}`:`${Se.SIZE}`)}inferButtonType(){var h,m;let a=(m=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"))==null?void 0:m.assignedNodes().filter(E=>{var w;return E.nodeType!==Node.TEXT_NODE||((w=E.textContent)==null?void 0:w.trim())}).length;a&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=xo.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!a&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=xo.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=xo.PILL,this.setAttribute("data-btn-type","pill"))}}return v([x({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),v([x({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),v([x({type:String})],o.prototype,"variant",2),v([x({type:String})],o.prototype,"color",2),v([Tt()],o.prototype,"typeInternal",2),o};var qv=W`
|
970
970
|
:host {
|
971
971
|
background-color: transparent;
|
972
972
|
border-radius: 1.25rem;
|
@@ -1214,13 +1214,13 @@
|
|
1214
1214
|
:host::part(postfix-icon) {
|
1215
1215
|
flex-shrink: 0;
|
1216
1216
|
}
|
1217
|
-
`,
|
1218
|
-
${this.prefixFilledIconName?
|
1217
|
+
`,Em=[qv];var wi=l=>{let o=l.split("-"),e=["bold","filled","regular","light"];return o.filter(s=>!e.includes(s)).join("-")};var Or=class extends rn(_e){constructor(){super(...arguments);this.size=Se.SIZE;this.inverted=Se.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${wi(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${wi(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return P`
|
1218
|
+
${this.prefixFilledIconName?P` <mdc-icon name="${this.prefixFilledIconName}"
|
1219
1219
|
part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1220
1220
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1221
|
-
${this.postfixFilledIconName?
|
1221
|
+
${this.postfixFilledIconName?P` <mdc-icon name="${this.postfixFilledIconName}"
|
1222
1222
|
part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1223
|
-
`}};
|
1223
|
+
`}};Or.styles=[..._e.styles,...Em],v([x({type:Number})],Or.prototype,"size",2),v([x({type:Boolean,reflect:!0})],Or.prototype,"inverted",2),v([x({type:String,reflect:!0})],Or.prototype,"role",2),v([Tt()],Or.prototype,"prefixFilledIconName",2),v([Tt()],Or.prototype,"postfixFilledIconName",2);var Li=Or;Li.register(ki);var Kv=Li;var xm=j.constructTagName("buttongroup"),Xv={40:40,32:32,28:28,24:24},Zv={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Jv={PRIMARY:"primary",SECONDARY:"secondary"},on={SIZE:Xv[28],VARIANT:Jv.PRIMARY,ORIENTATION:Zv.HORIZONTAL};var Qv=W`
|
1224
1224
|
:host{
|
1225
1225
|
--mdc-buttongroup-border-radius: 1.25rem;
|
1226
1226
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1297,7 +1297,7 @@
|
|
1297
1297
|
:host([compact][orientation="horizontal"][size="40"]) ::slotted(mdc-button){
|
1298
1298
|
width: 2.5rem;
|
1299
1299
|
}
|
1300
|
-
`,
|
1300
|
+
`,Tm=[yt,Qv];var Pr=class extends K{constructor(){super(...arguments);this.orientation=on.ORIENTATION;this.variant=on.VARIANT;this.size=on.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(e=>{e.setAttribute("size",this.size.toString()),e.setAttribute("variant",this.variant)})}updated(e){super.updated(e),(e.has("size")||e.has("variant"))&&this.handleSlotChange()}render(){return P`<slot @slotchange=${this.handleSlotChange}></slot>`}};Pr.styles=[...K.styles,...Tm],v([x({type:String,reflect:!0})],Pr.prototype,"orientation",2),v([x({type:String,reflect:!0})],Pr.prototype,"variant",2),v([x({type:Number,reflect:!0})],Pr.prototype,"size",2),v([x({type:Boolean,reflect:!0})],Pr.prototype,"compact",2),v([Mt({selector:"mdc-button"})],Pr.prototype,"buttons",2);var ql=Pr;ql.register(xm);var tg=ql;var Am=j.constructTagName("linksimple"),Kl={INLINE:!1,INVERTED:!1};var eg=[yt,W`
|
1301
1301
|
:host {
|
1302
1302
|
--mdc-link-border-radius: 0.25rem;
|
1303
1303
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1364,15 +1364,15 @@
|
|
1364
1364
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1365
1365
|
}
|
1366
1366
|
|
1367
|
-
`,..._t()],
|
1367
|
+
`,..._t()],_m=eg;var Dr=class extends zt(ur(K)){constructor(){super(...arguments);this.inline=Kl.INLINE;this.inverted=Kl.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return P`
|
1368
1368
|
<slot></slot>
|
1369
|
-
`}};
|
1370
|
-
${this.prefixIcon?
|
1369
|
+
`}};Dr.styles=[...K.styles,..._m],v([x({type:Boolean,reflect:!0})],Dr.prototype,"inline",2),v([x({type:Boolean,reflect:!0})],Dr.prototype,"inverted",2),v([x({type:String,reflect:!0})],Dr.prototype,"href",2),v([x({type:String,reflect:!0})],Dr.prototype,"target",2),v([x({type:String,reflect:!0})],Dr.prototype,"rel",2);var ai=Dr;var _o=class extends rn(ai){constructor(){super(...arguments);this.size=Se.SIZE}setSoftDisabled(e,s){s?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}render(){return P`
|
1370
|
+
${this.prefixIcon?P` <mdc-icon name="${this.prefixIcon}"
|
1371
1371
|
part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1372
1372
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1373
|
-
${this.postfixIcon?
|
1373
|
+
${this.postfixIcon?P` <mdc-icon name="${this.postfixIcon}"
|
1374
1374
|
part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1375
|
-
`}};
|
1375
|
+
`}};_o.styles=[...Li.styles],v([x({type:Number,reflect:!0})],_o.prototype,"size",2),v([x({type:Boolean,attribute:"soft-disabled",reflect:!0})],_o.prototype,"softDisabled",2);var Xl=_o;var Sm=j.constructTagName("buttonlink");Xl.register(Sm);var rg=Xl;var ig=W`
|
1376
1376
|
:host {
|
1377
1377
|
align-items: flex-start;
|
1378
1378
|
border-radius: 0.5rem;
|
@@ -1456,31 +1456,31 @@
|
|
1456
1456
|
margin-bottom: 0.5rem;
|
1457
1457
|
}
|
1458
1458
|
|
1459
|
-
`,
|
1459
|
+
`,Im=[yt,ig];var sn=j.constructTagName("link"),an={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},nn={LARGE:1,MIDSIZE:.875,SMALL:.75},km={LINK_SIZE:an.LARGE};var Cm=j.constructTagName("card"),Zl={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},og={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Zt={VARIANT:Zl.BORDER,ORIENTATION:og.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:bt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:sn,BUTTON:ki};var ln=l=>{class o extends l{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Zt.VARIANT;this.orientation=Zt.ORIENTATION;this.titleTagName=Zt.TAGNAME;this.subtitleTagName=Zt.TAGNAME}renderImage(){return this.imageSrc?P`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:Y}renderIcon(){return this.iconName?P`<mdc-icon
|
1460
1460
|
part="icon"
|
1461
|
-
size="${
|
1462
|
-
length-unit="${
|
1461
|
+
size="${Zt.ICON_SIZE}"
|
1462
|
+
length-unit="${Zt.ICON_LENGTH_UNIT}"
|
1463
1463
|
name="${this.iconName}"
|
1464
|
-
></mdc-icon>`:
|
1465
|
-
<mdc-text part="title" type="${
|
1466
|
-
${this.subtitle?
|
1464
|
+
></mdc-icon>`:Y}renderTitle(){return P`<div part="title-container">
|
1465
|
+
<mdc-text part="title" type="${Zt.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
|
1466
|
+
${this.subtitle?P`<mdc-text part="subtitle" type="${Zt.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
1467
1467
|
>${this.subtitle}</mdc-text
|
1468
|
-
>`:
|
1469
|
-
</div>`}}return
|
1470
|
-
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(
|
1468
|
+
>`:Y}
|
1469
|
+
</div>`}}return v([x({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),v([x({type:String,reflect:!0})],o.prototype,"subtitle",2),v([x({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),v([x({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),v([x({type:String,reflect:!0})],o.prototype,"variant",2),v([x({type:String,reflect:!0})],o.prototype,"orientation",2),v([x({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),v([x({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),v([x({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var cn=l=>{class o extends l{updateFooterButtonColors(s){let a=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];a==null||a.forEach(h=>{s===Zl.PROMOTIONAL?h.setAttribute("color",Ci.PROMOTIONAL):h.setAttribute("color",Ci.DEFAULT)})}handleFooterSlot(s,a){var m,E,w;let h=[];s===Zt.LINK&&((m=this.footerLink)!=null&&m.length)?h=this.footerLink:s===Zt.BUTTON&&a===Wt.PRIMARY&&((E=this.footerButtonPrimary)!=null&&E.length)?h=this.footerButtonPrimary:s===Zt.BUTTON&&a===Wt.SECONDARY&&((w=this.footerButtonSecondary)!=null&&w.length)&&(h=this.footerButtonSecondary);for(let $=1;$<h.length;$+=1)h[$].remove();h.forEach($=>{$.matches(s)||$.remove(),a&&$.setAttribute("variant",a)})}renderFooter(){return P`<div part="footer">
|
1470
|
+
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Zt.LINK)}></slot>
|
1471
1471
|
<slot
|
1472
1472
|
name="footer-button-secondary"
|
1473
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1473
|
+
@slotchange=${()=>this.handleFooterSlot(Zt.BUTTON,Wt.SECONDARY)}
|
1474
1474
|
></slot>
|
1475
1475
|
<slot
|
1476
1476
|
name="footer-button-primary"
|
1477
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1477
|
+
@slotchange=${()=>this.handleFooterSlot(Zt.BUTTON,Wt.PRIMARY)}
|
1478
1478
|
></slot>
|
1479
|
-
</div>`}}return
|
1479
|
+
</div>`}}return v([Mt({slot:"footer-link"})],o.prototype,"footerLink",2),v([Mt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),v([Mt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var Os=class extends ln(cn(K)){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(s=>{!s.matches(Zt.BUTTON)&&s.getAttribute("data-btn-type")!=="icon"?s.remove():(s.setAttribute("variant",Wt.TERTIARY),s.setAttribute("size","32"))}),this.iconButtons&&this.iconButtons.length>3)for(let s=3;s<this.iconButtons.length;s+=1)this.iconButtons[s].remove()}}update(e){super.update(e),e.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?P`<div part="header">
|
1480
1480
|
${this.renderIcon()}
|
1481
1481
|
${this.renderTitle()}
|
1482
1482
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
1483
|
-
</div>`:
|
1483
|
+
</div>`:Y}render(){return P`
|
1484
1484
|
${this.renderImage()}
|
1485
1485
|
<div part="body">
|
1486
1486
|
${this.renderHeader()}
|
@@ -1489,7 +1489,7 @@
|
|
1489
1489
|
<slot name="after-body"></slot>
|
1490
1490
|
${this.renderFooter()}
|
1491
1491
|
</div>
|
1492
|
-
`}};
|
1492
|
+
`}};Os.styles=[...K.styles,...Im],v([Mt({slot:"icon-button"})],Os.prototype,"iconButtons",2);var or=Os;or.register(Cm);var sg=or;var ag=W`
|
1493
1493
|
:host {
|
1494
1494
|
cursor: pointer;
|
1495
1495
|
user-select: none;
|
@@ -1511,10 +1511,10 @@
|
|
1511
1511
|
:host([disabled])::part(image){
|
1512
1512
|
opacity: 0.5;
|
1513
1513
|
}
|
1514
|
-
`,
|
1514
|
+
`,wm=[ag,..._t()];var dn=class extends ln(_e){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?P`<div part="header">
|
1515
1515
|
${this.renderIcon()}
|
1516
1516
|
${this.renderTitle()}
|
1517
|
-
</div>`:
|
1517
|
+
</div>`:Y}render(){return P`
|
1518
1518
|
${this.renderImage()}
|
1519
1519
|
<div part="body">
|
1520
1520
|
${this.renderHeader()}
|
@@ -1522,7 +1522,7 @@
|
|
1522
1522
|
<slot name="body"></slot>
|
1523
1523
|
<slot name="after-body"></slot>
|
1524
1524
|
</div>
|
1525
|
-
`}};
|
1525
|
+
`}};dn.styles=[...or.styles,...wm];var Jl=dn;var Lm=j.constructTagName("cardbutton");Jl.register(Lm);var ng=Jl;var lg=W`
|
1526
1526
|
:host {
|
1527
1527
|
cursor: pointer;
|
1528
1528
|
user-select: none;
|
@@ -1579,16 +1579,16 @@
|
|
1579
1579
|
:host([disabled])::part(check-icon){
|
1580
1580
|
color: var(--mds-color-theme-text-primary-disabled);
|
1581
1581
|
}
|
1582
|
-
`,
|
1583
|
-
size="${
|
1584
|
-
length-unit="${
|
1585
|
-
name="${e}"></mdc-icon>`;case
|
1582
|
+
`,Nm=[lg,..._t()];var Mm=j.constructTagName("cardcheckbox"),Ql={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},hn={CHECK:"check",CHECKBOX:"checkbox"},mn={SELECTION_TYPE:hn.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var Ct={BUTTON:"button",CHECKBOX:"checkbox",GROUP:"group",LIST:"list",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",RADIO:"radio",RADIOGROUP:"radiogroup",TOOLTIP:"tooltip"};var So=class extends zt(ur(or)){constructor(){super();this.checked=!1;this.selectionType=mn.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=Ct.CHECKBOX}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderSelection(){let e=this.checked?Ql.CHECKED:Ql.DEFAULT;switch(this.selectionType){case hn.CHECK:return P`<mdc-icon part="check check-icon"
|
1583
|
+
size="${mn.ICON_SIZE}"
|
1584
|
+
length-unit="${mn.ICON_LENGTH_UNIT}"
|
1585
|
+
name="${e}"></mdc-icon>`;case hn.CHECKBOX:return P`<mdc-staticcheckbox part="check"
|
1586
1586
|
?checked="${this.checked}"
|
1587
|
-
?disabled="${this.disabled}"></mdc-staticcheckbox>`;default:return
|
1587
|
+
?disabled="${this.disabled}"></mdc-staticcheckbox>`;default:return Y}}renderHeader(){return this.cardTitle?P`<div part="header">
|
1588
1588
|
${this.renderIcon()}
|
1589
1589
|
${this.renderTitle()}
|
1590
1590
|
${this.renderSelection()}
|
1591
|
-
</div>`:
|
1591
|
+
</div>`:Y}render(){return P`
|
1592
1592
|
${this.renderImage()}
|
1593
1593
|
<div part="body">
|
1594
1594
|
${this.renderHeader()}
|
@@ -1596,7 +1596,7 @@
|
|
1596
1596
|
<slot name="body"></slot>
|
1597
1597
|
<slot name="after-body"></slot>
|
1598
1598
|
</div>
|
1599
|
-
`}};
|
1599
|
+
`}};So.styles=[...or.styles,...Nm],v([x({type:Boolean,reflect:!0})],So.prototype,"checked",2),v([x({type:String,attribute:"selection-type",reflect:!0})],So.prototype,"selectionType",2);var tc=So;var cg=[W`
|
1600
1600
|
:host{
|
1601
1601
|
margin: 0.125rem 0;
|
1602
1602
|
border-radius: 0.125rem;
|
@@ -1653,15 +1653,15 @@
|
|
1653
1653
|
border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
|
1654
1654
|
}
|
1655
1655
|
}
|
1656
|
-
`],
|
1656
|
+
`],Rm=cg;var Om=j.constructTagName("checkbox"),pn={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Pm=j.constructTagName("staticcheckbox");var Io=class extends zt(K){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?P`
|
1657
1657
|
<mdc-icon
|
1658
1658
|
class="icon"
|
1659
|
-
name="${this.indeterminate?
|
1659
|
+
name="${this.indeterminate?pn.INDETERMINATE:pn.CHECKED}"
|
1660
1660
|
size="1"
|
1661
1661
|
length-unit="rem"
|
1662
1662
|
></mdc-icon>
|
1663
|
-
`:
|
1664
|
-
<div part="icon-container">${e}</div>`}};
|
1663
|
+
`:Y;return P`<slot></slot>
|
1664
|
+
<div part="icon-container">${e}</div>`}};Io.styles=[...K.styles,...Rm],v([x({type:Boolean,reflect:!0})],Io.prototype,"checked",2),v([x({type:Boolean,reflect:!0})],Io.prototype,"indeterminate",2);var ec=Io;ec.register(Pm);var dg=ec;tc.register(Mm);var hg=tc;var mg=W`
|
1665
1665
|
:host {
|
1666
1666
|
cursor: pointer;
|
1667
1667
|
user-select: none;
|
@@ -1714,13 +1714,13 @@
|
|
1714
1714
|
:host([disabled])::part(image){
|
1715
1715
|
opacity: 0.5;
|
1716
1716
|
}
|
1717
|
-
`,
|
1717
|
+
`,Dm=[mg,..._t()];var ko=class extends zt(ur(or)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=Ct.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(s=>{s.checked=!1}),this.checked=!0}setDisabled(e){this.setAttribute("aria-disabled",`${e}`),this.tabIndex=e?-1:0}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(e,s){e[s].focus(),e[s].toggleChecked()}toggleOnEnter(e){if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(m=>!m.disabled),h=a.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let m=(h+1)%a.length;this.updateCardRadio(a,m)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let m=(h-1+a.length)%a.length;this.updateCardRadio(a,m)}e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?P`<div part="header">
|
1718
1718
|
${this.renderIcon()}
|
1719
1719
|
${this.renderTitle()}
|
1720
1720
|
<mdc-staticradio part="check"
|
1721
1721
|
?checked="${this.checked}"
|
1722
1722
|
?disabled="${this.disabled}"></mdc-staticradio>
|
1723
|
-
</div>`:
|
1723
|
+
</div>`:Y}render(){return P`
|
1724
1724
|
${this.renderImage()}
|
1725
1725
|
<div part="body">
|
1726
1726
|
${this.renderHeader()}
|
@@ -1728,7 +1728,7 @@
|
|
1728
1728
|
<slot name="body"></slot>
|
1729
1729
|
<slot name="after-body"></slot>
|
1730
1730
|
</div>
|
1731
|
-
`}};
|
1731
|
+
`}};ko.styles=[...or.styles,...Dm],v([x({type:Boolean,reflect:!0})],ko.prototype,"checked",2),v([x({type:String})],ko.prototype,"name",2);var rc=ko;var un=j.constructTagName("cardradio");var pg=[W`
|
1732
1732
|
:host{
|
1733
1733
|
display: block;
|
1734
1734
|
position: relative;
|
@@ -1811,9 +1811,9 @@
|
|
1811
1811
|
:host([readonly][checked]) .icon:after{
|
1812
1812
|
background-color: var(--mdc-staticradio-text-disabled-color);
|
1813
1813
|
}
|
1814
|
-
`],
|
1814
|
+
`],Fm=pg;var Co=class extends zt(K){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return P`
|
1815
1815
|
<slot></slot>
|
1816
|
-
<span part="radio-icon" class="icon"></span>`}};To.styles=[...q.styles,..._m],g([A({type:Boolean,reflect:!0})],To.prototype,"checked",2),g([A({type:Boolean,reflect:!0})],To.prototype,"readonly",2);var Ul=To;var Sm=j.constructTagName("staticradio");Ul.register(Sm);var Kv=Ul;Bl.register(on);var Zv=Bl;var hr=Math.min,ue=Math.max,Cs=Math.round,ws=Math.floor,tr=l=>({x:l,y:l}),Xv={left:"right",right:"left",bottom:"top",top:"bottom"},Jv={start:"end",end:"start"};function an(l,o,e){return ue(l,hr(o,e))}function _i(l,o){return typeof l=="function"?l(o):l}function Mr(l){return l.split("-")[0]}function Si(l){return l.split("-")[1]}function Hl(l){return l==="x"?"y":"x"}function nn(l){return l==="y"?"height":"width"}function ei(l){return["top","bottom"].includes(Mr(l))?"y":"x"}function ln(l){return Hl(ei(l))}function Im(l,o,e){e===void 0&&(e=!1);let s=Si(l),a=ln(l),h=nn(a),p=a==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(p=ks(p)),[p,ks(p)]}function km(l){let o=ks(l);return[sn(l),o,sn(o)]}function sn(l){return l.replace(/start|end/g,o=>Jv[o])}function Qv(l,o,e){let s=["left","right"],a=["right","left"],h=["top","bottom"],p=["bottom","top"];switch(l){case"top":case"bottom":return e?o?a:s:o?s:a;case"left":case"right":return o?h:p;default:return[]}}function Cm(l,o,e,s){let a=Si(l),h=Qv(Mr(l),e==="start",s);return a&&(h=h.map(p=>p+"-"+a),o&&(h=h.concat(h.map(sn)))),h}function ks(l){return l.replace(/left|right|bottom|top/g,o=>Xv[o])}function tg(l){return{top:0,right:0,bottom:0,left:0,...l}}function Gl(l){return typeof l!="number"?tg(l):{top:l,right:l,bottom:l,left:l}}function Ii(l){let{x:o,y:e,width:s,height:a}=l;return{width:s,height:a,top:e,left:o,right:o+s,bottom:e+a,x:o,y:e}}function wm(l,o,e){let{reference:s,floating:a}=l,h=ei(o),p=ln(o),E=nn(p),C=Mr(o),z=h==="y",G=s.x+s.width/2-a.width/2,Y=s.y+s.height/2-a.height/2,rt=s[E]/2-a[E]/2,J;switch(C){case"top":J={x:G,y:s.y-a.height};break;case"bottom":J={x:G,y:s.y+s.height};break;case"right":J={x:s.x+s.width,y:Y};break;case"left":J={x:s.x-a.width,y:Y};break;default:J={x:s.x,y:s.y}}switch(Si(o)){case"start":J[p]-=rt*(e&&z?-1:1);break;case"end":J[p]+=rt*(e&&z?-1:1);break}return J}var Lm=async(l,o,e)=>{let{placement:s="bottom",strategy:a="absolute",middleware:h=[],platform:p}=e,E=h.filter(Boolean),C=await(p.isRTL==null?void 0:p.isRTL(o)),z=await p.getElementRects({reference:l,floating:o,strategy:a}),{x:G,y:Y}=wm(z,s,C),rt=s,J={},tt=0;for(let nt=0;nt<E.length;nt++){let{name:bt,fn:vt}=E[nt],{x:yt,y:St,data:Bt,reset:Rt}=await vt({x:G,y:Y,initialPlacement:s,placement:rt,strategy:a,middlewareData:J,rects:z,platform:p,elements:{reference:l,floating:o}});G=yt!=null?yt:G,Y=St!=null?St:Y,J={...J,[bt]:{...J[bt],...Bt}},Rt&&tt<=50&&(tt++,typeof Rt=="object"&&(Rt.placement&&(rt=Rt.placement),Rt.rects&&(z=Rt.rects===!0?await p.getElementRects({reference:l,floating:o,strategy:a}):Rt.rects),{x:G,y:Y}=wm(z,rt,C)),nt=-1)}return{x:G,y:Y,placement:rt,strategy:a,middlewareData:J}};async function cn(l,o){var e;o===void 0&&(o={});let{x:s,y:a,platform:h,rects:p,elements:E,strategy:C}=l,{boundary:z="clippingAncestors",rootBoundary:G="viewport",elementContext:Y="floating",altBoundary:rt=!1,padding:J=0}=_i(o,l),tt=Gl(J),bt=E[rt?Y==="floating"?"reference":"floating":Y],vt=Ii(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(bt)))==null||e?bt:bt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(E.floating)),boundary:z,rootBoundary:G,strategy:C})),yt=Y==="floating"?{x:s,y:a,width:p.floating.width,height:p.floating.height}:p.reference,St=await(h.getOffsetParent==null?void 0:h.getOffsetParent(E.floating)),Bt=await(h.isElement==null?void 0:h.isElement(St))?await(h.getScale==null?void 0:h.getScale(St))||{x:1,y:1}:{x:1,y:1},Rt=Ii(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:E,rect:yt,offsetParent:St,strategy:C}):yt);return{top:(vt.top-Rt.top+tt.top)/Bt.y,bottom:(Rt.bottom-vt.bottom+tt.bottom)/Bt.y,left:(vt.left-Rt.left+tt.left)/Bt.x,right:(Rt.right-vt.right+tt.right)/Bt.x}}var Mm=l=>({name:"arrow",options:l,async fn(o){let{x:e,y:s,placement:a,rects:h,platform:p,elements:E,middlewareData:C}=o,{element:z,padding:G=0}=_i(l,o)||{};if(z==null)return{};let Y=Gl(G),rt={x:e,y:s},J=ln(a),tt=nn(J),nt=await p.getDimensions(z),bt=J==="y",vt=bt?"top":"left",yt=bt?"bottom":"right",St=bt?"clientHeight":"clientWidth",Bt=h.reference[tt]+h.reference[J]-rt[J]-h.floating[tt],Rt=rt[J]-h.reference[J],Ft=await(p.getOffsetParent==null?void 0:p.getOffsetParent(z)),ve=Ft?Ft[St]:0;(!ve||!await(p.isElement==null?void 0:p.isElement(Ft)))&&(ve=E.floating[St]||h.floating[tt]);let te=Bt/2-Rt/2,je=ve/2-nt[tt]/2-1,we=hr(Y[vt],je),Pe=hr(Y[yt],je),We=we,Ye=ve-nt[tt]-Pe,xt=ve/2-nt[tt]/2+te,he=an(We,xt,Ye),De=!C.arrow&&Si(a)!=null&&xt!==he&&h.reference[tt]/2-(xt<We?we:Pe)-nt[tt]/2<0,qe=De?xt<We?xt-We:xt-Ye:0;return{[J]:rt[J]+qe,data:{[J]:he,centerOffset:xt-he-qe,...De&&{alignmentOffset:qe}},reset:De}}});var Nm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(o){var e,s;let{placement:a,middlewareData:h,rects:p,initialPlacement:E,platform:C,elements:z}=o,{mainAxis:G=!0,crossAxis:Y=!0,fallbackPlacements:rt,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:nt=!0,...bt}=_i(l,o);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let vt=Mr(a),yt=ei(E),St=Mr(E)===E,Bt=await(C.isRTL==null?void 0:C.isRTL(z.floating)),Rt=rt||(St||!nt?[ks(E)]:km(E)),Ft=tt!=="none";!rt&&Ft&&Rt.push(...Cm(E,nt,tt,Bt));let ve=[E,...Rt],te=await cn(o,bt),je=[],we=((s=h.flip)==null?void 0:s.overflows)||[];if(G&&je.push(te[vt]),Y){let xt=Im(a,p,Bt);je.push(te[xt[0]],te[xt[1]])}if(we=[...we,{placement:a,overflows:je}],!je.every(xt=>xt<=0)){var Pe,We;let xt=(((Pe=h.flip)==null?void 0:Pe.index)||0)+1,he=ve[xt];if(he)return{data:{index:xt,overflows:we},reset:{placement:he}};let De=(We=we.filter(qe=>qe.overflows[0]<=0).sort((qe,mr)=>qe.overflows[1]-mr.overflows[1])[0])==null?void 0:We.placement;if(!De)switch(J){case"bestFit":{var Ye;let qe=(Ye=we.filter(mr=>{if(Ft){let Fe=ei(mr.placement);return Fe===yt||Fe==="y"}return!0}).map(mr=>[mr.placement,mr.overflows.filter(Fe=>Fe>0).reduce((Fe,Xs)=>Fe+Xs,0)]).sort((mr,Fe)=>mr[1]-Fe[1])[0])==null?void 0:Ye[0];qe&&(De=qe);break}case"initialPlacement":De=E;break}if(a!==De)return{reset:{placement:De}}}return{}}}};async function eg(l,o){let{placement:e,platform:s,elements:a}=l,h=await(s.isRTL==null?void 0:s.isRTL(a.floating)),p=Mr(e),E=Si(e),C=ei(e)==="y",z=["left","top"].includes(p)?-1:1,G=h&&C?-1:1,Y=_i(o,l),{mainAxis:rt,crossAxis:J,alignmentAxis:tt}=typeof Y=="number"?{mainAxis:Y,crossAxis:0,alignmentAxis:null}:{mainAxis:Y.mainAxis||0,crossAxis:Y.crossAxis||0,alignmentAxis:Y.alignmentAxis};return E&&typeof tt=="number"&&(J=E==="end"?tt*-1:tt),C?{x:J*G,y:rt*z}:{x:rt*z,y:J*G}}var Rm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(o){var e,s;let{x:a,y:h,placement:p,middlewareData:E}=o,C=await eg(o,l);return p===((e=E.offset)==null?void 0:e.placement)&&(s=E.arrow)!=null&&s.alignmentOffset?{}:{x:a+C.x,y:h+C.y,data:{...C,placement:p}}}}},Om=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(o){let{x:e,y:s,placement:a}=o,{mainAxis:h=!0,crossAxis:p=!1,limiter:E={fn:bt=>{let{x:vt,y:yt}=bt;return{x:vt,y:yt}}},...C}=_i(l,o),z={x:e,y:s},G=await cn(o,C),Y=ei(Mr(a)),rt=Hl(Y),J=z[rt],tt=z[Y];if(h){let bt=rt==="y"?"top":"left",vt=rt==="y"?"bottom":"right",yt=J+G[bt],St=J-G[vt];J=an(yt,J,St)}if(p){let bt=Y==="y"?"top":"left",vt=Y==="y"?"bottom":"right",yt=tt+G[bt],St=tt-G[vt];tt=an(yt,tt,St)}let nt=E.fn({...o,[rt]:J,[Y]:tt});return{...nt,data:{x:nt.x-e,y:nt.y-s,enabled:{[rt]:h,[Y]:p}}}}}};var Pm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var e,s;let{placement:a,rects:h,platform:p,elements:E}=o,{apply:C=()=>{},...z}=_i(l,o),G=await cn(o,z),Y=Mr(a),rt=Si(a),J=ei(a)==="y",{width:tt,height:nt}=h.floating,bt,vt;Y==="top"||Y==="bottom"?(bt=Y,vt=rt===(await(p.isRTL==null?void 0:p.isRTL(E.floating))?"start":"end")?"left":"right"):(vt=Y,bt=rt==="end"?"top":"bottom");let yt=nt-G.top-G.bottom,St=tt-G.left-G.right,Bt=hr(nt-G[bt],yt),Rt=hr(tt-G[vt],St),Ft=!o.middlewareData.shift,ve=Bt,te=Rt;if((e=o.middlewareData.shift)!=null&&e.enabled.x&&(te=St),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(ve=yt),Ft&&!rt){let we=ue(G.left,0),Pe=ue(G.right,0),We=ue(G.top,0),Ye=ue(G.bottom,0);J?te=tt-2*(we!==0||Pe!==0?we+Pe:ue(G.left,G.right)):ve=nt-2*(We!==0||Ye!==0?We+Ye:ue(G.top,G.bottom))}await C({...o,availableWidth:te,availableHeight:ve});let je=await p.getDimensions(E.floating);return tt!==je.width||nt!==je.height?{reset:{rects:!0}}:{}}}};function dn(){return typeof window<"u"}function ki(l){return Fm(l)?(l.nodeName||"").toLowerCase():"#document"}function Se(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function er(l){var o;return(o=(Fm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function Fm(l){return dn()?l instanceof Node||l instanceof Se(l).Node:!1}function Ve(l){return dn()?l instanceof Element||l instanceof Se(l).Element:!1}function rr(l){return dn()?l instanceof HTMLElement||l instanceof Se(l).HTMLElement:!1}function Dm(l){return!dn()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Se(l).ShadowRoot}function Ao(l){let{overflow:o,overflowX:e,overflowY:s,display:a}=Be(l);return/auto|scroll|overlay|hidden|clip/.test(o+s+e)&&!["inline","contents"].includes(a)}function zm(l){return["table","td","th"].includes(ki(l))}function Ls(l){return[":popover-open",":modal"].some(o=>{try{return l.matches(o)}catch{return!1}})}function hn(l){let o=mn(),e=Ve(l)?Be(l):l;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!o&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!o&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function $m(l){let o=Nr(l);for(;rr(o)&&!Ci(o);){if(hn(o))return o;if(Ls(o))return null;o=Nr(o)}return null}function mn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ci(l){return["html","body","#document"].includes(ki(l))}function Be(l){return Se(l).getComputedStyle(l)}function Ms(l){return Ve(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Nr(l){if(ki(l)==="html")return l;let o=l.assignedSlot||l.parentNode||Dm(l)&&l.host||er(l);return Dm(o)?o.host:o}function Vm(l){let o=Nr(l);return Ci(o)?l.ownerDocument?l.ownerDocument.body:l.body:rr(o)&&Ao(o)?o:Vm(o)}function xo(l,o,e){var s;o===void 0&&(o=[]),e===void 0&&(e=!0);let a=Vm(l),h=a===((s=l.ownerDocument)==null?void 0:s.body),p=Se(a);if(h){let E=pn(p);return o.concat(p,p.visualViewport||[],Ao(a)?a:[],E&&e?xo(E):[])}return o.concat(a,xo(a,[],e))}function pn(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function Hm(l){let o=Be(l),e=parseFloat(o.width)||0,s=parseFloat(o.height)||0,a=rr(l),h=a?l.offsetWidth:e,p=a?l.offsetHeight:s,E=Cs(e)!==h||Cs(s)!==p;return E&&(e=h,s=p),{width:e,height:s,$:E}}function Wl(l){return Ve(l)?l:l.contextElement}function _o(l){let o=Wl(l);if(!rr(o))return tr(1);let e=o.getBoundingClientRect(),{width:s,height:a,$:h}=Hm(o),p=(h?Cs(e.width):e.width)/s,E=(h?Cs(e.height):e.height)/a;return(!p||!Number.isFinite(p))&&(p=1),(!E||!Number.isFinite(E))&&(E=1),{x:p,y:E}}var rg=tr(0);function Gm(l){let o=Se(l);return!mn()||!o.visualViewport?rg:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ig(l,o,e){return o===void 0&&(o=!1),!e||o&&e!==Se(l)?!1:o}function wi(l,o,e,s){o===void 0&&(o=!1),e===void 0&&(e=!1);let a=l.getBoundingClientRect(),h=Wl(l),p=tr(1);o&&(s?Ve(s)&&(p=_o(s)):p=_o(l));let E=ig(h,e,s)?Gm(h):tr(0),C=(a.left+E.x)/p.x,z=(a.top+E.y)/p.y,G=a.width/p.x,Y=a.height/p.y;if(h){let rt=Se(h),J=s&&Ve(s)?Se(s):s,tt=rt,nt=pn(tt);for(;nt&&s&&J!==tt;){let bt=_o(nt),vt=nt.getBoundingClientRect(),yt=Be(nt),St=vt.left+(nt.clientLeft+parseFloat(yt.paddingLeft))*bt.x,Bt=vt.top+(nt.clientTop+parseFloat(yt.paddingTop))*bt.y;C*=bt.x,z*=bt.y,G*=bt.x,Y*=bt.y,C+=St,z+=Bt,tt=Se(nt),nt=pn(tt)}}return Ii({width:G,height:Y,x:C,y:z})}function Yl(l,o){let e=Ms(l).scrollLeft;return o?o.left+e:wi(er(l)).left+e}function jm(l,o,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),a=s.left+o.scrollLeft-(e?0:Yl(l,s)),h=s.top+o.scrollTop;return{x:a,y:h}}function og(l){let{elements:o,rect:e,offsetParent:s,strategy:a}=l,h=a==="fixed",p=er(s),E=o?Ls(o.floating):!1;if(s===p||E&&h)return e;let C={scrollLeft:0,scrollTop:0},z=tr(1),G=tr(0),Y=rr(s);if((Y||!Y&&!h)&&((ki(s)!=="body"||Ao(p))&&(C=Ms(s)),rr(s))){let J=wi(s);z=_o(s),G.x=J.x+s.clientLeft,G.y=J.y+s.clientTop}let rt=p&&!Y&&!h?jm(p,C,!0):tr(0);return{width:e.width*z.x,height:e.height*z.y,x:e.x*z.x-C.scrollLeft*z.x+G.x+rt.x,y:e.y*z.y-C.scrollTop*z.y+G.y+rt.y}}function sg(l){return Array.from(l.getClientRects())}function ag(l){let o=er(l),e=Ms(l),s=l.ownerDocument.body,a=ue(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),h=ue(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight),p=-e.scrollLeft+Yl(l),E=-e.scrollTop;return Be(s).direction==="rtl"&&(p+=ue(o.clientWidth,s.clientWidth)-a),{width:a,height:h,x:p,y:E}}function ng(l,o){let e=Se(l),s=er(l),a=e.visualViewport,h=s.clientWidth,p=s.clientHeight,E=0,C=0;if(a){h=a.width,p=a.height;let z=mn();(!z||z&&o==="fixed")&&(E=a.offsetLeft,C=a.offsetTop)}return{width:h,height:p,x:E,y:C}}function lg(l,o){let e=wi(l,!0,o==="fixed"),s=e.top+l.clientTop,a=e.left+l.clientLeft,h=rr(l)?_o(l):tr(1),p=l.clientWidth*h.x,E=l.clientHeight*h.y,C=a*h.x,z=s*h.y;return{width:p,height:E,x:C,y:z}}function Bm(l,o,e){let s;if(o==="viewport")s=ng(l,e);else if(o==="document")s=ag(er(l));else if(Ve(o))s=lg(o,e);else{let a=Gm(l);s={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Ii(s)}function Wm(l,o){let e=Nr(l);return e===o||!Ve(e)||Ci(e)?!1:Be(e).position==="fixed"||Wm(e,o)}function cg(l,o){let e=o.get(l);if(e)return e;let s=xo(l,[],!1).filter(E=>Ve(E)&&ki(E)!=="body"),a=null,h=Be(l).position==="fixed",p=h?Nr(l):l;for(;Ve(p)&&!Ci(p);){let E=Be(p),C=hn(p);!C&&E.position==="fixed"&&(a=null),(h?!C&&!a:!C&&E.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Ao(p)&&!C&&Wm(l,p))?s=s.filter(G=>G!==p):a=E,p=Nr(p)}return o.set(l,s),s}function dg(l){let{element:o,boundary:e,rootBoundary:s,strategy:a}=l,p=[...e==="clippingAncestors"?Ls(o)?[]:cg(o,this._c):[].concat(e),s],E=p[0],C=p.reduce((z,G)=>{let Y=Bm(o,G,a);return z.top=ue(Y.top,z.top),z.right=hr(Y.right,z.right),z.bottom=hr(Y.bottom,z.bottom),z.left=ue(Y.left,z.left),z},Bm(o,E,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function hg(l){let{width:o,height:e}=Hm(l);return{width:o,height:e}}function mg(l,o,e){let s=rr(o),a=er(o),h=e==="fixed",p=wi(l,!0,h,o),E={scrollLeft:0,scrollTop:0},C=tr(0);if(s||!s&&!h)if((ki(o)!=="body"||Ao(a))&&(E=Ms(o)),s){let rt=wi(o,!0,h,o);C.x=rt.x+o.clientLeft,C.y=rt.y+o.clientTop}else a&&(C.x=Yl(a));let z=a&&!s&&!h?jm(a,E):tr(0),G=p.left+E.scrollLeft-C.x-z.x,Y=p.top+E.scrollTop-C.y-z.y;return{x:G,y:Y,width:p.width,height:p.height}}function jl(l){return Be(l).position==="static"}function Um(l,o){if(!rr(l)||Be(l).position==="fixed")return null;if(o)return o(l);let e=l.offsetParent;return er(l)===e&&(e=e.ownerDocument.body),e}function Ym(l,o){let e=Se(l);if(Ls(l))return e;if(!rr(l)){let a=Nr(l);for(;a&&!Ci(a);){if(Ve(a)&&!jl(a))return a;a=Nr(a)}return e}let s=Um(l,o);for(;s&&zm(s)&&jl(s);)s=Um(s,o);return s&&Ci(s)&&jl(s)&&!hn(s)?e:s||$m(l)||e}var pg=async function(l){let o=this.getOffsetParent||Ym,e=this.getDimensions,s=await e(l.floating);return{reference:mg(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function ug(l){return Be(l).direction==="rtl"}var fg={convertOffsetParentRelativeRectToViewportRelativeRect:og,getDocumentElement:er,getClippingRect:dg,getOffsetParent:Ym,getElementRects:pg,getClientRects:sg,getDimensions:hg,getScale:_o,isElement:Ve,isRTL:ug};function vg(l,o){let e=null,s,a=er(l);function h(){var E;clearTimeout(s),(E=e)==null||E.disconnect(),e=null}function p(E,C){E===void 0&&(E=!1),C===void 0&&(C=1),h();let{left:z,top:G,width:Y,height:rt}=l.getBoundingClientRect();if(E||o(),!Y||!rt)return;let J=ws(G),tt=ws(a.clientWidth-(z+Y)),nt=ws(a.clientHeight-(G+rt)),bt=ws(z),yt={rootMargin:-J+"px "+-tt+"px "+-nt+"px "+-bt+"px",threshold:ue(0,hr(1,C))||1},St=!0;function Bt(Rt){let Ft=Rt[0].intersectionRatio;if(Ft!==C){if(!St)return p();Ft?p(!1,Ft):s=setTimeout(()=>{p(!1,1e-7)},1e3)}St=!1}try{e=new IntersectionObserver(Bt,{...yt,root:a.ownerDocument})}catch{e=new IntersectionObserver(Bt,yt)}e.observe(l)}return p(!0),h}function qm(l,o,e,s){s===void 0&&(s={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:p=typeof ResizeObserver=="function",layoutShift:E=typeof IntersectionObserver=="function",animationFrame:C=!1}=s,z=Wl(l),G=a||h?[...z?xo(z):[],...xo(o)]:[];G.forEach(vt=>{a&&vt.addEventListener("scroll",e,{passive:!0}),h&&vt.addEventListener("resize",e)});let Y=z&&E?vg(z,e):null,rt=-1,J=null;p&&(J=new ResizeObserver(vt=>{let[yt]=vt;yt&&yt.target===z&&J&&(J.unobserve(o),cancelAnimationFrame(rt),rt=requestAnimationFrame(()=>{var St;(St=J)==null||St.observe(o)})),e()}),z&&!C&&J.observe(z),J.observe(o));let tt,nt=C?wi(l):null;C&&bt();function bt(){let vt=wi(l);nt&&(vt.x!==nt.x||vt.y!==nt.y||vt.width!==nt.width||vt.height!==nt.height)&&e(),nt=vt,tt=requestAnimationFrame(bt)}return e(),()=>{var vt;G.forEach(yt=>{a&&yt.removeEventListener("scroll",e),h&&yt.removeEventListener("resize",e)}),Y==null||Y(),(vt=J)==null||vt.disconnect(),J=null,C&&cancelAnimationFrame(tt)}}var Km=Rm;var Zm=Om,Xm=Nm,Jm=Pm;var Qm=Mm;var tp=(l,o,e)=>{let s=new Map,a={platform:fg,...e},h={...a.platform,_c:s};return Lm(l,o,{...a,platform:h})};var un=l=>{class o extends l{constructor(...a){super(...a);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:p}=a.getBoundingClientRect(),{offsetWidth:E,offsetHeight:C}=a;return E+C+p+h===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:h,opacity:p,visibility:E}=a.style;return h==="none"||p==="0"||E==="hidden"||E==="collapse"}hasComputedHidden(a){let h=getComputedStyle(a);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(a){return a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(a)||this.isNotVisible(a)||this.hasComputedHidden(a)}isNotTabbable(a){return a.getAttribute("tabindex")==="-1"}isInteractiveElement(a){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1)}isFocusable(a){return this.isHidden(a)||this.isNotTabbable(a)?!1:this.isInteractiveElement(a)}findFocusable(a,h=new Set){return a instanceof HTMLElement&&this.isFocusable(a)&&h.add(a),Array.from(a.children).forEach(E=>{let C=E;this.isFocusable(C)&&h.add(C),C.shadowRoot?this.findFocusable(C.shadowRoot,h):C.tagName==="SLOT"?C.assignedElements({flatten:!0}).forEach(G=>{G instanceof HTMLElement&&this.findFocusable(G,h)}):this.findFocusable(C,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus()))}calculateNextIndex(a,h){let{length:p}=this.focusableElements,E=this.shouldWrapFocus();if(a===-1)return h>0?0:p-1;let C=a+h;return E?(C<0&&(C=p-1),C>=p&&(C=0)):(C<0&&(C=0),C>=p&&(C=p-1)),C}getDeepActiveElement(){var h;let a=document.activeElement||document.body;for(;a instanceof HTMLElement&&((h=a.shadowRoot)!=null&&h.activeElement);)a=a.shadowRoot.activeElement;return a||document.body}findElement(a){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(a,h))}isEqualFocusNode(a,h){return a.nodeType>=0?h.isEqualNode(a)&&h===a:!1}trapFocus(a){if(this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),p=this.findElement(h);a?this.focusTrapIndex=this.calculateNextIndex(p,-1):this.focusTrapIndex=this.calculateNextIndex(p,1);let E=this.focusableElements[this.focusTrapIndex];E&&E.focus()}handleKeydown(a){!this.enabledFocusTrap||!this.focusableElements.length||a.key==="Tab"&&(a.preventDefault(),this.trapFocus(a.shiftKey))}}return g([A({type:Boolean})],o.prototype,"enabledFocusTrap",2),g([A({type:Boolean})],o.prototype,"enabledPreventScroll",2),o};var ep=j.constructTagName("popover"),Vt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Li={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Ns={TONAL:"tonal",CONTRAST:"contrast"},Pt={PLACEMENT:Vt.BOTTOM,TRIGGER:Li.CLICK,COLOR:Ns.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var Mi=class{static dispatchPopoverEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}};var ql=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(e=>e!==o)}clear(){this.stack=[]}},ri=new ql;var gg=W`
|
1816
|
+
<span part="radio-icon" class="icon"></span>`}};Co.styles=[...K.styles,...Fm],v([x({type:Boolean,reflect:!0})],Co.prototype,"checked",2),v([x({type:Boolean,reflect:!0})],Co.prototype,"readonly",2);var ic=Co;var $m=j.constructTagName("staticradio");ic.register($m);var ug=ic;rc.register(un);var fg=rc;var gr=Math.min,fe=Math.max,Ds=Math.round,Fs=Math.floor,sr=l=>({x:l,y:l}),vg={left:"right",right:"left",bottom:"top",top:"bottom"},gg={start:"end",end:"start"};function vn(l,o,e){return fe(l,gr(o,e))}function Ni(l,o){return typeof l=="function"?l(o):l}function Fr(l){return l.split("-")[0]}function Mi(l){return l.split("-")[1]}function oc(l){return l==="x"?"y":"x"}function gn(l){return l==="y"?"height":"width"}function ni(l){return["top","bottom"].includes(Fr(l))?"y":"x"}function bn(l){return oc(ni(l))}function zm(l,o,e){e===void 0&&(e=!1);let s=Mi(l),a=bn(l),h=gn(a),m=a==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(m=Ps(m)),[m,Ps(m)]}function Vm(l){let o=Ps(l);return[fn(l),o,fn(o)]}function fn(l){return l.replace(/start|end/g,o=>gg[o])}function bg(l,o,e){let s=["left","right"],a=["right","left"],h=["top","bottom"],m=["bottom","top"];switch(l){case"top":case"bottom":return e?o?a:s:o?s:a;case"left":case"right":return o?h:m;default:return[]}}function Bm(l,o,e,s){let a=Mi(l),h=bg(Fr(l),e==="start",s);return a&&(h=h.map(m=>m+"-"+a),o&&(h=h.concat(h.map(fn)))),h}function Ps(l){return l.replace(/left|right|bottom|top/g,o=>vg[o])}function yg(l){return{top:0,right:0,bottom:0,left:0,...l}}function sc(l){return typeof l!="number"?yg(l):{top:l,right:l,bottom:l,left:l}}function Ri(l){let{x:o,y:e,width:s,height:a}=l;return{width:s,height:a,top:e,left:o,right:o+s,bottom:e+a,x:o,y:e}}function Um(l,o,e){let{reference:s,floating:a}=l,h=ni(o),m=bn(o),E=gn(m),w=Fr(o),$=h==="y",G=s.x+s.width/2-a.width/2,q=s.y+s.height/2-a.height/2,rt=s[E]/2-a[E]/2,J;switch(w){case"top":J={x:G,y:s.y-a.height};break;case"bottom":J={x:G,y:s.y+s.height};break;case"right":J={x:s.x+s.width,y:q};break;case"left":J={x:s.x-a.width,y:q};break;default:J={x:s.x,y:s.y}}switch(Mi(o)){case"start":J[m]-=rt*(e&&$?-1:1);break;case"end":J[m]+=rt*(e&&$?-1:1);break}return J}var Hm=async(l,o,e)=>{let{placement:s="bottom",strategy:a="absolute",middleware:h=[],platform:m}=e,E=h.filter(Boolean),w=await(m.isRTL==null?void 0:m.isRTL(o)),$=await m.getElementRects({reference:l,floating:o,strategy:a}),{x:G,y:q}=Um($,s,w),rt=s,J={},tt=0;for(let ct=0;ct<E.length;ct++){let{name:Et,fn:vt}=E[ct],{x:xt,y:St,data:Bt,reset:Rt}=await vt({x:G,y:q,initialPlacement:s,placement:rt,strategy:a,middlewareData:J,rects:$,platform:m,elements:{reference:l,floating:o}});G=xt!=null?xt:G,q=St!=null?St:q,J={...J,[Et]:{...J[Et],...Bt}},Rt&&tt<=50&&(tt++,typeof Rt=="object"&&(Rt.placement&&(rt=Rt.placement),Rt.rects&&($=Rt.rects===!0?await m.getElementRects({reference:l,floating:o,strategy:a}):Rt.rects),{x:G,y:q}=Um($,rt,w)),ct=-1)}return{x:G,y:q,placement:rt,strategy:a,middlewareData:J}};async function yn(l,o){var e;o===void 0&&(o={});let{x:s,y:a,platform:h,rects:m,elements:E,strategy:w}=l,{boundary:$="clippingAncestors",rootBoundary:G="viewport",elementContext:q="floating",altBoundary:rt=!1,padding:J=0}=Ni(o,l),tt=sc(J),Et=E[rt?q==="floating"?"reference":"floating":q],vt=Ri(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(Et)))==null||e?Et:Et.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(E.floating)),boundary:$,rootBoundary:G,strategy:w})),xt=q==="floating"?{x:s,y:a,width:m.floating.width,height:m.floating.height}:m.reference,St=await(h.getOffsetParent==null?void 0:h.getOffsetParent(E.floating)),Bt=await(h.isElement==null?void 0:h.isElement(St))?await(h.getScale==null?void 0:h.getScale(St))||{x:1,y:1}:{x:1,y:1},Rt=Ri(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:E,rect:xt,offsetParent:St,strategy:w}):xt);return{top:(vt.top-Rt.top+tt.top)/Bt.y,bottom:(Rt.bottom-vt.bottom+tt.bottom)/Bt.y,left:(vt.left-Rt.left+tt.left)/Bt.x,right:(Rt.right-vt.right+tt.right)/Bt.x}}var Gm=l=>({name:"arrow",options:l,async fn(o){let{x:e,y:s,placement:a,rects:h,platform:m,elements:E,middlewareData:w}=o,{element:$,padding:G=0}=Ni(l,o)||{};if($==null)return{};let q=sc(G),rt={x:e,y:s},J=bn(a),tt=gn(J),ct=await m.getDimensions($),Et=J==="y",vt=Et?"top":"left",xt=Et?"bottom":"right",St=Et?"clientHeight":"clientWidth",Bt=h.reference[tt]+h.reference[J]-rt[J]-h.floating[tt],Rt=rt[J]-h.reference[J],Ft=await(m.getOffsetParent==null?void 0:m.getOffsetParent($)),be=Ft?Ft[St]:0;(!be||!await(m.isElement==null?void 0:m.isElement(Ft)))&&(be=E.floating[St]||h.floating[tt]);let te=Bt/2-Rt/2,Xe=be/2-ct[tt]/2-1,Le=gr(q[vt],Xe),De=gr(q[xt],Xe),Ze=Le,Je=be-ct[tt]-De,At=be/2-ct[tt]/2+te,me=vn(Ze,At,Je),Fe=!w.arrow&&Mi(a)!=null&&At!==me&&h.reference[tt]/2-(At<Ze?Le:De)-ct[tt]/2<0,Qe=Fe?At<Ze?At-Ze:At-Je:0;return{[J]:rt[J]+Qe,data:{[J]:me,centerOffset:At-me-Qe,...Fe&&{alignmentOffset:Qe}},reset:Fe}}});var jm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(o){var e,s;let{placement:a,middlewareData:h,rects:m,initialPlacement:E,platform:w,elements:$}=o,{mainAxis:G=!0,crossAxis:q=!0,fallbackPlacements:rt,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:ct=!0,...Et}=Ni(l,o);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let vt=Fr(a),xt=ni(E),St=Fr(E)===E,Bt=await(w.isRTL==null?void 0:w.isRTL($.floating)),Rt=rt||(St||!ct?[Ps(E)]:Vm(E)),Ft=tt!=="none";!rt&&Ft&&Rt.push(...Bm(E,ct,tt,Bt));let be=[E,...Rt],te=await yn(o,Et),Xe=[],Le=((s=h.flip)==null?void 0:s.overflows)||[];if(G&&Xe.push(te[vt]),q){let At=zm(a,m,Bt);Xe.push(te[At[0]],te[At[1]])}if(Le=[...Le,{placement:a,overflows:Xe}],!Xe.every(At=>At<=0)){var De,Ze;let At=(((De=h.flip)==null?void 0:De.index)||0)+1,me=be[At];if(me)return{data:{index:At,overflows:Le},reset:{placement:me}};let Fe=(Ze=Le.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,yr)=>Qe.overflows[1]-yr.overflows[1])[0])==null?void 0:Ze.placement;if(!Fe)switch(J){case"bestFit":{var Je;let Qe=(Je=Le.filter(yr=>{if(Ft){let $e=ni(yr.placement);return $e===xt||$e==="y"}return!0}).map(yr=>[yr.placement,yr.overflows.filter($e=>$e>0).reduce(($e,na)=>$e+na,0)]).sort((yr,$e)=>yr[1]-$e[1])[0])==null?void 0:Je[0];Qe&&(Fe=Qe);break}case"initialPlacement":Fe=E;break}if(a!==Fe)return{reset:{placement:Fe}}}return{}}}};async function Eg(l,o){let{placement:e,platform:s,elements:a}=l,h=await(s.isRTL==null?void 0:s.isRTL(a.floating)),m=Fr(e),E=Mi(e),w=ni(e)==="y",$=["left","top"].includes(m)?-1:1,G=h&&w?-1:1,q=Ni(o,l),{mainAxis:rt,crossAxis:J,alignmentAxis:tt}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return E&&typeof tt=="number"&&(J=E==="end"?tt*-1:tt),w?{x:J*G,y:rt*$}:{x:rt*$,y:J*G}}var Wm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(o){var e,s;let{x:a,y:h,placement:m,middlewareData:E}=o,w=await Eg(o,l);return m===((e=E.offset)==null?void 0:e.placement)&&(s=E.arrow)!=null&&s.alignmentOffset?{}:{x:a+w.x,y:h+w.y,data:{...w,placement:m}}}}},Ym=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(o){let{x:e,y:s,placement:a}=o,{mainAxis:h=!0,crossAxis:m=!1,limiter:E={fn:Et=>{let{x:vt,y:xt}=Et;return{x:vt,y:xt}}},...w}=Ni(l,o),$={x:e,y:s},G=await yn(o,w),q=ni(Fr(a)),rt=oc(q),J=$[rt],tt=$[q];if(h){let Et=rt==="y"?"top":"left",vt=rt==="y"?"bottom":"right",xt=J+G[Et],St=J-G[vt];J=vn(xt,J,St)}if(m){let Et=q==="y"?"top":"left",vt=q==="y"?"bottom":"right",xt=tt+G[Et],St=tt-G[vt];tt=vn(xt,tt,St)}let ct=E.fn({...o,[rt]:J,[q]:tt});return{...ct,data:{x:ct.x-e,y:ct.y-s,enabled:{[rt]:h,[q]:m}}}}}};var qm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var e,s;let{placement:a,rects:h,platform:m,elements:E}=o,{apply:w=()=>{},...$}=Ni(l,o),G=await yn(o,$),q=Fr(a),rt=Mi(a),J=ni(a)==="y",{width:tt,height:ct}=h.floating,Et,vt;q==="top"||q==="bottom"?(Et=q,vt=rt===(await(m.isRTL==null?void 0:m.isRTL(E.floating))?"start":"end")?"left":"right"):(vt=q,Et=rt==="end"?"top":"bottom");let xt=ct-G.top-G.bottom,St=tt-G.left-G.right,Bt=gr(ct-G[Et],xt),Rt=gr(tt-G[vt],St),Ft=!o.middlewareData.shift,be=Bt,te=Rt;if((e=o.middlewareData.shift)!=null&&e.enabled.x&&(te=St),(s=o.middlewareData.shift)!=null&&s.enabled.y&&(be=xt),Ft&&!rt){let Le=fe(G.left,0),De=fe(G.right,0),Ze=fe(G.top,0),Je=fe(G.bottom,0);J?te=tt-2*(Le!==0||De!==0?Le+De:fe(G.left,G.right)):be=ct-2*(Ze!==0||Je!==0?Ze+Je:fe(G.top,G.bottom))}await w({...o,availableWidth:te,availableHeight:be});let Xe=await m.getDimensions(E.floating);return tt!==Xe.width||ct!==Xe.height?{reset:{rects:!0}}:{}}}};function En(){return typeof window<"u"}function Oi(l){return Xm(l)?(l.nodeName||"").toLowerCase():"#document"}function Ie(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function ar(l){var o;return(o=(Xm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function Xm(l){return En()?l instanceof Node||l instanceof Ie(l).Node:!1}function Ue(l){return En()?l instanceof Element||l instanceof Ie(l).Element:!1}function nr(l){return En()?l instanceof HTMLElement||l instanceof Ie(l).HTMLElement:!1}function Km(l){return!En()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Ie(l).ShadowRoot}function Lo(l){let{overflow:o,overflowX:e,overflowY:s,display:a}=He(l);return/auto|scroll|overlay|hidden|clip/.test(o+s+e)&&!["inline","contents"].includes(a)}function Zm(l){return["table","td","th"].includes(Oi(l))}function $s(l){return[":popover-open",":modal"].some(o=>{try{return l.matches(o)}catch{return!1}})}function xn(l){let o=Tn(),e=Ue(l)?He(l):l;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!o&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!o&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function Jm(l){let o=$r(l);for(;nr(o)&&!Pi(o);){if(xn(o))return o;if($s(o))return null;o=$r(o)}return null}function Tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pi(l){return["html","body","#document"].includes(Oi(l))}function He(l){return Ie(l).getComputedStyle(l)}function zs(l){return Ue(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function $r(l){if(Oi(l)==="html")return l;let o=l.assignedSlot||l.parentNode||Km(l)&&l.host||ar(l);return Km(o)?o.host:o}function Qm(l){let o=$r(l);return Pi(o)?l.ownerDocument?l.ownerDocument.body:l.body:nr(o)&&Lo(o)?o:Qm(o)}function wo(l,o,e){var s;o===void 0&&(o=[]),e===void 0&&(e=!0);let a=Qm(l),h=a===((s=l.ownerDocument)==null?void 0:s.body),m=Ie(a);if(h){let E=An(m);return o.concat(m,m.visualViewport||[],Lo(a)?a:[],E&&e?wo(E):[])}return o.concat(a,wo(a,[],e))}function An(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function rp(l){let o=He(l),e=parseFloat(o.width)||0,s=parseFloat(o.height)||0,a=nr(l),h=a?l.offsetWidth:e,m=a?l.offsetHeight:s,E=Ds(e)!==h||Ds(s)!==m;return E&&(e=h,s=m),{width:e,height:s,$:E}}function nc(l){return Ue(l)?l:l.contextElement}function No(l){let o=nc(l);if(!nr(o))return sr(1);let e=o.getBoundingClientRect(),{width:s,height:a,$:h}=rp(o),m=(h?Ds(e.width):e.width)/s,E=(h?Ds(e.height):e.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!E||!Number.isFinite(E))&&(E=1),{x:m,y:E}}var xg=sr(0);function ip(l){let o=Ie(l);return!Tn()||!o.visualViewport?xg:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Tg(l,o,e){return o===void 0&&(o=!1),!e||o&&e!==Ie(l)?!1:o}function Di(l,o,e,s){o===void 0&&(o=!1),e===void 0&&(e=!1);let a=l.getBoundingClientRect(),h=nc(l),m=sr(1);o&&(s?Ue(s)&&(m=No(s)):m=No(l));let E=Tg(h,e,s)?ip(h):sr(0),w=(a.left+E.x)/m.x,$=(a.top+E.y)/m.y,G=a.width/m.x,q=a.height/m.y;if(h){let rt=Ie(h),J=s&&Ue(s)?Ie(s):s,tt=rt,ct=An(tt);for(;ct&&s&&J!==tt;){let Et=No(ct),vt=ct.getBoundingClientRect(),xt=He(ct),St=vt.left+(ct.clientLeft+parseFloat(xt.paddingLeft))*Et.x,Bt=vt.top+(ct.clientTop+parseFloat(xt.paddingTop))*Et.y;w*=Et.x,$*=Et.y,G*=Et.x,q*=Et.y,w+=St,$+=Bt,tt=Ie(ct),ct=An(tt)}}return Ri({width:G,height:q,x:w,y:$})}function lc(l,o){let e=zs(l).scrollLeft;return o?o.left+e:Di(ar(l)).left+e}function op(l,o,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),a=s.left+o.scrollLeft-(e?0:lc(l,s)),h=s.top+o.scrollTop;return{x:a,y:h}}function Ag(l){let{elements:o,rect:e,offsetParent:s,strategy:a}=l,h=a==="fixed",m=ar(s),E=o?$s(o.floating):!1;if(s===m||E&&h)return e;let w={scrollLeft:0,scrollTop:0},$=sr(1),G=sr(0),q=nr(s);if((q||!q&&!h)&&((Oi(s)!=="body"||Lo(m))&&(w=zs(s)),nr(s))){let J=Di(s);$=No(s),G.x=J.x+s.clientLeft,G.y=J.y+s.clientTop}let rt=m&&!q&&!h?op(m,w,!0):sr(0);return{width:e.width*$.x,height:e.height*$.y,x:e.x*$.x-w.scrollLeft*$.x+G.x+rt.x,y:e.y*$.y-w.scrollTop*$.y+G.y+rt.y}}function _g(l){return Array.from(l.getClientRects())}function Sg(l){let o=ar(l),e=zs(l),s=l.ownerDocument.body,a=fe(o.scrollWidth,o.clientWidth,s.scrollWidth,s.clientWidth),h=fe(o.scrollHeight,o.clientHeight,s.scrollHeight,s.clientHeight),m=-e.scrollLeft+lc(l),E=-e.scrollTop;return He(s).direction==="rtl"&&(m+=fe(o.clientWidth,s.clientWidth)-a),{width:a,height:h,x:m,y:E}}function Ig(l,o){let e=Ie(l),s=ar(l),a=e.visualViewport,h=s.clientWidth,m=s.clientHeight,E=0,w=0;if(a){h=a.width,m=a.height;let $=Tn();(!$||$&&o==="fixed")&&(E=a.offsetLeft,w=a.offsetTop)}return{width:h,height:m,x:E,y:w}}function kg(l,o){let e=Di(l,!0,o==="fixed"),s=e.top+l.clientTop,a=e.left+l.clientLeft,h=nr(l)?No(l):sr(1),m=l.clientWidth*h.x,E=l.clientHeight*h.y,w=a*h.x,$=s*h.y;return{width:m,height:E,x:w,y:$}}function tp(l,o,e){let s;if(o==="viewport")s=Ig(l,e);else if(o==="document")s=Sg(ar(l));else if(Ue(o))s=kg(o,e);else{let a=ip(l);s={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Ri(s)}function sp(l,o){let e=$r(l);return e===o||!Ue(e)||Pi(e)?!1:He(e).position==="fixed"||sp(e,o)}function Cg(l,o){let e=o.get(l);if(e)return e;let s=wo(l,[],!1).filter(E=>Ue(E)&&Oi(E)!=="body"),a=null,h=He(l).position==="fixed",m=h?$r(l):l;for(;Ue(m)&&!Pi(m);){let E=He(m),w=xn(m);!w&&E.position==="fixed"&&(a=null),(h?!w&&!a:!w&&E.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Lo(m)&&!w&&sp(l,m))?s=s.filter(G=>G!==m):a=E,m=$r(m)}return o.set(l,s),s}function wg(l){let{element:o,boundary:e,rootBoundary:s,strategy:a}=l,m=[...e==="clippingAncestors"?$s(o)?[]:Cg(o,this._c):[].concat(e),s],E=m[0],w=m.reduce(($,G)=>{let q=tp(o,G,a);return $.top=fe(q.top,$.top),$.right=gr(q.right,$.right),$.bottom=gr(q.bottom,$.bottom),$.left=fe(q.left,$.left),$},tp(o,E,a));return{width:w.right-w.left,height:w.bottom-w.top,x:w.left,y:w.top}}function Lg(l){let{width:o,height:e}=rp(l);return{width:o,height:e}}function Ng(l,o,e){let s=nr(o),a=ar(o),h=e==="fixed",m=Di(l,!0,h,o),E={scrollLeft:0,scrollTop:0},w=sr(0);if(s||!s&&!h)if((Oi(o)!=="body"||Lo(a))&&(E=zs(o)),s){let rt=Di(o,!0,h,o);w.x=rt.x+o.clientLeft,w.y=rt.y+o.clientTop}else a&&(w.x=lc(a));let $=a&&!s&&!h?op(a,E):sr(0),G=m.left+E.scrollLeft-w.x-$.x,q=m.top+E.scrollTop-w.y-$.y;return{x:G,y:q,width:m.width,height:m.height}}function ac(l){return He(l).position==="static"}function ep(l,o){if(!nr(l)||He(l).position==="fixed")return null;if(o)return o(l);let e=l.offsetParent;return ar(l)===e&&(e=e.ownerDocument.body),e}function ap(l,o){let e=Ie(l);if($s(l))return e;if(!nr(l)){let a=$r(l);for(;a&&!Pi(a);){if(Ue(a)&&!ac(a))return a;a=$r(a)}return e}let s=ep(l,o);for(;s&&Zm(s)&&ac(s);)s=ep(s,o);return s&&Pi(s)&&ac(s)&&!xn(s)?e:s||Jm(l)||e}var Mg=async function(l){let o=this.getOffsetParent||ap,e=this.getDimensions,s=await e(l.floating);return{reference:Ng(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Rg(l){return He(l).direction==="rtl"}var Og={convertOffsetParentRelativeRectToViewportRelativeRect:Ag,getDocumentElement:ar,getClippingRect:wg,getOffsetParent:ap,getElementRects:Mg,getClientRects:_g,getDimensions:Lg,getScale:No,isElement:Ue,isRTL:Rg};function Pg(l,o){let e=null,s,a=ar(l);function h(){var E;clearTimeout(s),(E=e)==null||E.disconnect(),e=null}function m(E,w){E===void 0&&(E=!1),w===void 0&&(w=1),h();let{left:$,top:G,width:q,height:rt}=l.getBoundingClientRect();if(E||o(),!q||!rt)return;let J=Fs(G),tt=Fs(a.clientWidth-($+q)),ct=Fs(a.clientHeight-(G+rt)),Et=Fs($),xt={rootMargin:-J+"px "+-tt+"px "+-ct+"px "+-Et+"px",threshold:fe(0,gr(1,w))||1},St=!0;function Bt(Rt){let Ft=Rt[0].intersectionRatio;if(Ft!==w){if(!St)return m();Ft?m(!1,Ft):s=setTimeout(()=>{m(!1,1e-7)},1e3)}St=!1}try{e=new IntersectionObserver(Bt,{...xt,root:a.ownerDocument})}catch{e=new IntersectionObserver(Bt,xt)}e.observe(l)}return m(!0),h}function np(l,o,e,s){s===void 0&&(s={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:E=typeof IntersectionObserver=="function",animationFrame:w=!1}=s,$=nc(l),G=a||h?[...$?wo($):[],...wo(o)]:[];G.forEach(vt=>{a&&vt.addEventListener("scroll",e,{passive:!0}),h&&vt.addEventListener("resize",e)});let q=$&&E?Pg($,e):null,rt=-1,J=null;m&&(J=new ResizeObserver(vt=>{let[xt]=vt;xt&&xt.target===$&&J&&(J.unobserve(o),cancelAnimationFrame(rt),rt=requestAnimationFrame(()=>{var St;(St=J)==null||St.observe(o)})),e()}),$&&!w&&J.observe($),J.observe(o));let tt,ct=w?Di(l):null;w&&Et();function Et(){let vt=Di(l);ct&&(vt.x!==ct.x||vt.y!==ct.y||vt.width!==ct.width||vt.height!==ct.height)&&e(),ct=vt,tt=requestAnimationFrame(Et)}return e(),()=>{var vt;G.forEach(xt=>{a&&xt.removeEventListener("scroll",e),h&&xt.removeEventListener("resize",e)}),q==null||q(),(vt=J)==null||vt.disconnect(),J=null,w&&cancelAnimationFrame(tt)}}var lp=Wm;var cp=Ym,dp=jm,hp=qm;var mp=Gm;var pp=(l,o,e)=>{let s=new Map,a={platform:Og,...e},h={...a.platform,_c:s};return Hm(l,o,{...a,platform:h})};var _n=l=>{class o extends l{constructor(...a){super(...a);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:m}=a.getBoundingClientRect(),{offsetWidth:E,offsetHeight:w}=a;return E+w+m+h===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:h,opacity:m,visibility:E}=a.style;return h==="none"||m==="0"||E==="hidden"||E==="collapse"}hasComputedHidden(a){let h=getComputedStyle(a);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(a){return a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(a)||this.isNotVisible(a)||this.hasComputedHidden(a)}isNotTabbable(a){return a.getAttribute("tabindex")==="-1"}isInteractiveElement(a){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1)}isFocusable(a){return this.isHidden(a)||this.isNotTabbable(a)?!1:this.isInteractiveElement(a)}findFocusable(a,h=new Set){return a instanceof HTMLElement&&this.isFocusable(a)&&h.add(a),Array.from(a.children).forEach(E=>{let w=E;this.isFocusable(w)&&h.add(w),w.shadowRoot?this.findFocusable(w.shadowRoot,h):w.tagName==="SLOT"?w.assignedElements({flatten:!0}).forEach(G=>{G instanceof HTMLElement&&this.findFocusable(G,h)}):this.findFocusable(w,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus()))}calculateNextIndex(a,h){let{length:m}=this.focusableElements,E=this.shouldWrapFocus();if(a===-1)return h>0?0:m-1;let w=a+h;return E?(w<0&&(w=m-1),w>=m&&(w=0)):(w<0&&(w=0),w>=m&&(w=m-1)),w}getDeepActiveElement(){var h;let a=document.activeElement||document.body;for(;a instanceof HTMLElement&&((h=a.shadowRoot)!=null&&h.activeElement);)a=a.shadowRoot.activeElement;return a||document.body}findElement(a){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(a,h))}isEqualFocusNode(a,h){return a.nodeType>=0?h.isEqualNode(a)&&h===a:!1}trapFocus(a){if(this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),m=this.findElement(h);a?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let E=this.focusableElements[this.focusTrapIndex];E&&E.focus()}handleKeydown(a){!this.enabledFocusTrap||!this.focusableElements.length||a.key==="Tab"&&(a.preventDefault(),this.trapFocus(a.shiftKey))}}return v([x({type:Boolean})],o.prototype,"enabledFocusTrap",2),v([x({type:Boolean})],o.prototype,"enabledPreventScroll",2),o};var up=j.constructTagName("popover"),$t={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Fi={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Vs={TONAL:"tonal",CONTRAST:"contrast"},Pt={PLACEMENT:$t.BOTTOM,TRIGGER:Fi.CLICK,COLOR:Vs.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var $i=class{static dispatchPopoverEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}};var cc=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(e=>e!==o)}clear(){this.stack=[]}},li=new cc;var Dg=W`
|
1817
1817
|
:host {
|
1818
1818
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1819
1819
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -1928,7 +1928,7 @@
|
|
1928
1928
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1929
1929
|
border-bottom-left-radius: 100%;
|
1930
1930
|
}
|
1931
|
-
`,
|
1931
|
+
`,fp=[Dg];var Sn=class{constructor(o){this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,e]=this.popover.delay.split(",").map(s=>{let a=parseInt(s,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${s}`);return a});return[o,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let s=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,h=this.popover.offsetWidth||0;if(e)switch(o.split("-")[0]){case"top":e.style.height=s,e.style.bottom=`calc(-1 * (${s}))`,e.style.left="50%",e.style.width=`${h}px`;break;case"left":e.style.height=`${a}px`,e.style.width=s,e.style.right=`calc(-1.5 * (${s}))`;break;case"right":e.style.height=`${a}px`,e.style.width=s,e.style.left=`calc(-0.5 * (${s}))`;break;case"bottom":default:e.style.height=s,e.style.top=`calc(-1 * (${s}))`,e.style.left="50%",e.style.width=`${h}px`;break}}setupAppendTo(){if(this.popover.appendTo){let o=document.getElementById(this.popover.appendTo);o&&o.appendChild(this.popover)}}setupAccessibility(){var o,e,s;(this.popover.role==="dialog"||this.popover.role==="alertdialog")&&this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((s=this.popover.triggerElement)==null?void 0:s.id)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var o,e,s;this.popover.interactive?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((o=this.popover.triggerElement)==null?void 0:o.getAttribute("aria-haspopup"))||"dialog"):(s=this.popover.triggerElement)==null||s.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var o,e;this.popover.disableAriaExpanded?(o=this.popover.triggerElement)==null||o.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(o,e){var G;if(!this.popover.arrowElement)return;let s=e.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[s],{x:h,y:m}=o,E=this.popover.arrowElement.getBoundingClientRect(),w=(G=this.popover.arrowElement.offsetParent)==null?void 0:G.getBoundingClientRect();if(!this.arrowPixelChange){let q=w!=null&&w[a]?12-Math.abs(E[a]-w[a]):0;Math.round(q)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let $=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",s),Object.assign(this.popover.arrowElement.style,{left:h!=null?`${h}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-$}px`})}updatePopoverStyle(o,e){Object.assign(this.popover.style,{left:`${o}px`,top:`${e}px`})}createBackdrop(){var o;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(o=this.popover.parentElement)==null||o.appendChild(e);let s=document.createElement("style");s.textContent=`
|
1932
1932
|
.popover-backdrop {
|
1933
1933
|
position: fixed;
|
1934
1934
|
top: 0;
|
@@ -1938,21 +1938,21 @@
|
|
1938
1938
|
background: transparent;
|
1939
1939
|
z-index: ${this.popover.zIndex-1};
|
1940
1940
|
}
|
1941
|
-
`,e.appendChild(s),this.popover.backdropElement=e}}};var
|
1941
|
+
`,e.appendChild(s),this.popover.backdropElement=e}}};var wt=class extends _n(K){constructor(){super();this.id="";this.triggerID="";this.trigger=Pt.TRIGGER;this.placement=Pt.PLACEMENT;this.color=Pt.COLOR;this.visible=Pt.VISIBLE;this.offset=Pt.OFFSET;this.focusTrap=Pt.FOCUS_TRAP;this.preventScroll=Pt.PREVENT_SCROLL;this.showArrow=Pt.ARROW;this.closeButton=Pt.CLOSE_BUTTON;this.interactive=Pt.INTERACTIVE;this.delay=Pt.DELAY;this.hideOnEscape=Pt.HIDE_ON_ESCAPE;this.hideOnBlur=Pt.HIDE_ON_BLUR;this.hideOnOutsideClick=Pt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Pt.FOCUS_BACK;this.backdrop=Pt.BACKDROP;this.flip=Pt.FLIP;this.size=Pt.SIZE;this.zIndex=Pt.Z_INDEX;this.closeButtonAriaLabel=null;this.role=Pt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Pt.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(li.peek()!==this)return;let s=!1,a=e.composedPath();s=this.contains(e.target)||a.includes(this.triggerElement);let h=this.backdropElement?a.includes(this.backdropElement):!1;(!s||h)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{li.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Sn(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,$i.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),$i.onDestroyedPopover(this),li.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let s=e.get("visible")||!1;await this.isOpenUpdated(s,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values($t).includes(this.placement)?this.placement:Pt.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let a=this.trigger.split(" ").filter(h=>Object.values(Fi).includes(h));this.setAttribute("trigger",a.length>0?this.trigger:Pt.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Vs).includes(this.color)?this.color:Pt.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,s){var a,h,m;e===s||!this.triggerElement||(s?(li.peek()!==this&&li.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),$i.onShowPopover(this)):(li.peek()===this&&li.pop(),this.backdropElement&&((a=this.backdropElement)==null||a.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(h=this.deactivateFocusTrap)==null||h.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive||this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((m=this.triggerElement)==null||m.focus()),$i.onHidePopover(this)))}async handleCreatePopoverFirstUpdate(){var e,s;this.visible&&this.interactive&&(await this.updateComplete,(e=this.setFocusableElements)==null||e.call(this),(s=this.setInitialFocus)==null||s.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[cp()],s=this.offset;if(this.flip&&e.push(dp()),this.size){let a=this.renderRoot.querySelector('[part="popover-content"]');e.push(hp({apply({availableHeight:h}){a&&Object.assign(a.style,{maxHeight:`${h}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let a=this.arrowElement.offsetHeight;s=Math.sqrt(2*a**2)/2+this.offset,e.push(mp({element:this.arrowElement,padding:12}))}e.push(lp(s)),np(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:a,y:h,middlewareData:m,placement:E}=await pp(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(a,h),m.arrow&&this.arrowElement&&this.utils.updateArrowStyle(m.arrow,E),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(E)})}render(){return P`
|
1942
1942
|
<div class="popover-hover-bridge"></div>
|
1943
|
-
${this.closeButton?
|
1943
|
+
${this.closeButton?P` <mdc-button
|
1944
1944
|
class="popover-close"
|
1945
1945
|
prefix-icon="cancel-bold"
|
1946
1946
|
variant="tertiary"
|
1947
1947
|
size="20"
|
1948
|
-
aria-label=${
|
1948
|
+
aria-label=${lt(this.closeButtonAriaLabel)||""}
|
1949
1949
|
@click="${this.hidePopover}"
|
1950
|
-
></mdc-button>`:
|
1951
|
-
${this.showArrow?
|
1950
|
+
></mdc-button>`:Y}
|
1951
|
+
${this.showArrow?P`<div class="popover-arrow"></div>`:Y}
|
1952
1952
|
<div part="popover-content">
|
1953
1953
|
<slot></slot>
|
1954
1954
|
</div>
|
1955
|
-
`}};
|
1955
|
+
`}};wt.styles=[...K.styles,...fp],v([x({type:String,reflect:!0})],wt.prototype,"id",2),v([x({type:String,reflect:!0})],wt.prototype,"triggerID",2),v([x({type:String,reflect:!0})],wt.prototype,"trigger",2),v([x({type:String,reflect:!0})],wt.prototype,"placement",2),v([x({type:String,reflect:!0})],wt.prototype,"color",2),v([x({type:Boolean,reflect:!0})],wt.prototype,"visible",2),v([x({type:Number,reflect:!0})],wt.prototype,"offset",2),v([x({type:Boolean,reflect:!0,attribute:"focus-trap"})],wt.prototype,"focusTrap",2),v([x({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],wt.prototype,"preventScroll",2),v([x({type:Boolean,reflect:!0,attribute:"show-arrow"})],wt.prototype,"showArrow",2),v([x({type:Boolean,reflect:!0,attribute:"close-button"})],wt.prototype,"closeButton",2),v([x({type:Boolean,reflect:!0})],wt.prototype,"interactive",2),v([x({type:String,reflect:!0})],wt.prototype,"delay",2),v([x({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],wt.prototype,"hideOnEscape",2),v([x({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],wt.prototype,"hideOnBlur",2),v([x({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],wt.prototype,"hideOnOutsideClick",2),v([x({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],wt.prototype,"focusBackToTrigger",2),v([x({type:Boolean,reflect:!0})],wt.prototype,"backdrop",2),v([x({type:Boolean,reflect:!0})],wt.prototype,"flip",2),v([x({type:Boolean,reflect:!0})],wt.prototype,"size",2),v([x({type:Number,reflect:!0,attribute:"z-index"})],wt.prototype,"zIndex",2),v([x({type:String,reflect:!0,attribute:"append-to"})],wt.prototype,"appendTo",2),v([x({type:String,attribute:"close-button-aria-label",reflect:!0})],wt.prototype,"closeButtonAriaLabel",2),v([x({type:String,reflect:!0})],wt.prototype,"role",2),v([x({type:String,reflect:!0,attribute:"aria-labelledby"})],wt.prototype,"ariaLabelledby",2),v([x({type:String,reflect:!0,attribute:"aria-describedby"})],wt.prototype,"ariaDescribedby",2),v([x({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],wt.prototype,"disableAriaExpanded",2);var ke=wt;var vp=j.constructTagName("toggletip"),zi={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:$t.TOP,CLICK:Fi.CLICK,SHOW_ARROW:!0};var Fg=W`
|
1956
1956
|
:host {
|
1957
1957
|
--mdc-toggletip-max-width: 400px;
|
1958
1958
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -1982,19 +1982,19 @@
|
|
1982
1982
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
1983
1983
|
margin-left: 2rem;
|
1984
1984
|
}
|
1985
|
-
`,
|
1985
|
+
`,gp=[Fg];var Vi=class extends ke{constructor(){super(...arguments);this.currentAnnouncement=""}connectedCallback(){var e;super.connectedCallback(),this.closeButton=(e=this.closeButton)!=null?e:zi.CLOSE_BUTTON,this.closeButtonAriaLabel=zi.CLOSE_BUTTON_ARIA_LABEL,this.placement=zi.PLACEMENT,this.trigger=zi.CLICK,this.showArrow=zi.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,s;return((s=(e=this.defaultSlotNodes)==null?void 0:e.map(a=>a.textContent).join(" "))==null?void 0:s.trim())||""}onPlacementUpdated(){Object.values($t).includes(this.placement)||(this.placement=zi.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return P`
|
1986
1986
|
${super.render()}
|
1987
1987
|
<mdc-screenreaderannouncer
|
1988
|
-
identity="${
|
1988
|
+
identity="${lt(this.screenreaderAnnouncerIdentity)}"
|
1989
1989
|
announcement="${this.currentAnnouncement}"
|
1990
1990
|
delay="300">
|
1991
1991
|
</mdc-screenreaderannouncer>
|
1992
|
-
`}};
|
1992
|
+
`}};Vi.styles=[...ke.styles,...gp],v([Fa()],Vi.prototype,"defaultSlotNodes",2),v([Tt()],Vi.prototype,"currentAnnouncement",2),v([x({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Vi.prototype,"screenreaderAnnouncerIdentity",2);var dc=Vi;var ie=[];for(let l=0;l<256;++l)ie.push((l+256).toString(16).slice(1));function bp(l,o=0){return(ie[l[o+0]]+ie[l[o+1]]+ie[l[o+2]]+ie[l[o+3]]+"-"+ie[l[o+4]]+ie[l[o+5]]+"-"+ie[l[o+6]]+ie[l[o+7]]+"-"+ie[l[o+8]]+ie[l[o+9]]+"-"+ie[l[o+10]]+ie[l[o+11]]+ie[l[o+12]]+ie[l[o+13]]+ie[l[o+14]]+ie[l[o+15]]).toLowerCase()}var hc,$g=new Uint8Array(16);function mc(){if(!hc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");hc=crypto.getRandomValues.bind(crypto)}return hc($g)}var zg=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),pc={randomUUID:zg};function Vg(l,o,e){var a,h,m;if(pc.randomUUID&&!o&&!l)return pc.randomUUID();l=l||{};let s=(m=(h=l.random)!=null?h:(a=l.rng)==null?void 0:a.call(l))!=null?m:mc();if(s.length<16)throw new Error("Random bytes length must be >= 16");if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,o){if(e=e||0,e<0||e+16>o.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let E=0;E<16;++E)o[e+E]=s[E];return o}return bp(s)}var zr=Vg;var yp=j.constructTagName("screenreaderannouncer"),Bg={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Mo={ARIA_LIVE:Bg.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Ug=[W`
|
1993
1993
|
:host {
|
1994
1994
|
display: none;
|
1995
1995
|
visibility: hidden;
|
1996
1996
|
}
|
1997
|
-
`],
|
1997
|
+
`],Ep=Ug;var Vr=class extends K{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Mo.ARIA_LIVE;this.delay=Mo.DELAY;this.timeout=Mo.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,s,a,h){var m;if(e.length>0){let E=`mdc-screenreaderannouncer-announcement-${zr()}`,w=document.createElement("div");w.id=E,w.ariaLive=h,(m=document.getElementById(this.identity))==null||m.appendChild(w);let $=window.setTimeout(()=>{let G=document.createElement("p");G.textContent=e,w.appendChild(G),this.ariaLiveAnnouncementIds.push(E);let q=window.setTimeout(()=>{var rt;(rt=document.getElementById(E))==null||rt.remove()},a);this.timeOutIds.push(q)},s);this.timeOutIds.push($)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var s;(s=document.getElementById(e))==null||s.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let s=document.createElement("style");s.textContent=`
|
1998
1998
|
.mdc-screenreaderannouncer__visually-hidden {
|
1999
1999
|
clip: rect(0 0 0 0);
|
2000
2000
|
clip-path: inset(50%);
|
@@ -2004,7 +2004,7 @@
|
|
2004
2004
|
white-space: nowrap;
|
2005
2005
|
width: 1px;
|
2006
2006
|
}
|
2007
|
-
`,e.appendChild(s),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=
|
2007
|
+
`,e.appendChild(s),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Mo.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=Mo.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Vr.styles=[...K.styles,...Ep],v([x({type:String,reflect:!0})],Vr.prototype,"announcement",2),v([x({type:String,reflect:!0})],Vr.prototype,"identity",2),v([x({type:String,reflect:!0,attribute:"data-aria-live"})],Vr.prototype,"dataAriaLive",2),v([x({type:Number,reflect:!0})],Vr.prototype,"delay",2),v([x({type:Number,reflect:!0})],Vr.prototype,"timeout",2);var uc=Vr;uc.register(yp);var Hg=uc;dc.register(vp);var Gg=dc;var Ht=l=>{class o extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return v([x({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Ce=l=>{class o extends l{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${zr()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,v([x({reflect:!0,type:String})],o.prototype,"name",2),v([x({reflect:!0,type:String})],o.prototype,"value",2),v([x({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),v([Nr("input")],o.prototype,"inputElement",2),o};var xp=j.constructTagName("formfieldwrapper"),Jt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Dt={VALIDATION:Jt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:"top"},Bs={TAGNAME:bt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var jg=[yt,W`
|
2008
2008
|
:host {
|
2009
2009
|
flex-direction: column;
|
2010
2010
|
align-items: flex-start;
|
@@ -2061,31 +2061,31 @@
|
|
2061
2061
|
:host([help-text-type='priority']) .mdc-help-text {
|
2062
2062
|
color: var(--mds-color-theme-text-accent-normal);
|
2063
2063
|
}
|
2064
|
-
`],
|
2064
|
+
`],Tp=jg;var Ap=l=>({[Jt.ERROR]:"error-legacy-badge-filled",[Jt.WARNING]:"warning-badge-filled",[Jt.SUCCESS]:"check-circle-badge-filled",[Jt.PRIORITY]:"priority-badge-filled",[Jt.DEFAULT]:""})[l]||"";var Ge=class extends zt(K){constructor(){super(...arguments);this.required=!1;this.id="";this.helpTextType=Dt.VALIDATION;this.toggletipPlacement=Dt.TOGGLETIP_PLACEMENT;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?P`<label for="${this.id}" id="${Dt.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:P` <mdc-text
|
2065
2065
|
id="${Dt.HEADING_ID}"
|
2066
|
-
tagname="${
|
2067
|
-
type="${
|
2066
|
+
tagname="${Bs.TAGNAME}"
|
2067
|
+
type="${Bs.HEADER_TYPE}"
|
2068
2068
|
part="label"
|
2069
2069
|
>${this.label}</mdc-text
|
2070
|
-
>`:
|
2070
|
+
>`:Y}renderHelpTextIcon(){if(!this.helpText)return Y;let e=Ap(this.helpTextType||Dt.VALIDATION);return e&&!this.disabled?P`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:Y}renderHelpText(){return this.helpText?P`
|
2071
2071
|
<mdc-text
|
2072
2072
|
id="${Dt.HELPER_TEXT_ID}"
|
2073
2073
|
part="help-text"
|
2074
|
-
tagname=${
|
2075
|
-
type=${
|
2074
|
+
tagname=${Bs.TAGNAME}
|
2075
|
+
type=${Bs.TYPE}
|
2076
2076
|
>
|
2077
2077
|
${this.helpText}
|
2078
2078
|
</mdc-text>
|
2079
|
-
`:
|
2079
|
+
`:Y}renderLabel(){return this.label?P`<div class="mdc-label-text" part="label-text">
|
2080
2080
|
<slot name="label">${this.renderLabelElement()}</slot>
|
2081
|
-
${this.required?
|
2082
|
-
${this.toggletipText?
|
2081
|
+
${this.required?P`<span part="required-indicator">*</span>`:Y}
|
2082
|
+
${this.toggletipText?P`
|
2083
2083
|
<mdc-button
|
2084
2084
|
part="info-icon-btn"
|
2085
2085
|
prefix-icon="${Dt.INFO_ICON}"
|
2086
2086
|
size="${Dt.ICON_SIZE}"
|
2087
2087
|
variant="${Wt.TERTIARY}"
|
2088
|
-
aria-label="${
|
2088
|
+
aria-label="${lt(this.infoIconAriaLabel)}"
|
2089
2089
|
id="info-icon-id"></mdc-button>
|
2090
2090
|
<mdc-toggletip
|
2091
2091
|
part="label-toggletip"
|
@@ -2094,11 +2094,11 @@
|
|
2094
2094
|
placement="${this.toggletipPlacement}"
|
2095
2095
|
show-arrow
|
2096
2096
|
>${this.toggletipText}</mdc-toggletip
|
2097
|
-
>`:
|
2098
|
-
</div>`:
|
2097
|
+
>`:Y}
|
2098
|
+
</div>`:Y}renderHelperText(){return this.helpText?P`<div class="mdc-help-text" part="help-text">
|
2099
2099
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
2100
2100
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
2101
|
-
</div>`:
|
2101
|
+
</div>`:Y}};Ge.styles=[...K.styles,...Tp],v([x({reflect:!0,type:String})],Ge.prototype,"label",2),v([x({type:Boolean,reflect:!0,attribute:"required"})],Ge.prototype,"required",2),v([x({type:String})],Ge.prototype,"id",2),v([x({reflect:!0,attribute:"help-text-type"})],Ge.prototype,"helpTextType",2),v([x({type:String,reflect:!0,attribute:"help-text"})],Ge.prototype,"helpText",2),v([x({type:String,reflect:!0,attribute:"toggletip-text"})],Ge.prototype,"toggletipText",2),v([x({type:String,reflect:!0,attribute:"toggletip-placement"})],Ge.prototype,"toggletipPlacement",2),v([x({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Ge.prototype,"infoIconAriaLabel",2);var ve=Ge;var Wg=[W`
|
2102
2102
|
:host {
|
2103
2103
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
2104
2104
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -2165,10 +2165,10 @@
|
|
2165
2165
|
}
|
2166
2166
|
|
2167
2167
|
|
2168
|
-
`,..._t(!0)],
|
2168
|
+
`,..._t(!0)],_p=Wg;var Bi=class extends Ce(Ht(ve)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?P`<div class="text-container">
|
2169
2169
|
${this.renderLabel()}
|
2170
2170
|
${this.renderHelperText()}
|
2171
|
-
</div>`:
|
2171
|
+
</div>`:Y}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var s;e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}handleChange(e){this.toggleState();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var e;return P`
|
2172
2172
|
<mdc-staticcheckbox
|
2173
2173
|
class="mdc-focus-ring"
|
2174
2174
|
?checked="${this.checked}"
|
@@ -2179,8 +2179,8 @@
|
|
2179
2179
|
type="checkbox"
|
2180
2180
|
class="input"
|
2181
2181
|
?autofocus="${this.autofocus}"
|
2182
|
-
name="${
|
2183
|
-
value="${
|
2182
|
+
name="${lt(this.name)}"
|
2183
|
+
value="${lt(this.value)}"
|
2184
2184
|
?required="${this.required}"
|
2185
2185
|
.checked="${this.checked}"
|
2186
2186
|
aria-checked="${this.indeterminate?"mixed":this.checked}"
|
@@ -2188,13 +2188,13 @@
|
|
2188
2188
|
.disabled="${this.disabled}"
|
2189
2189
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2190
2190
|
tabindex="${this.disabled?-1:0}"
|
2191
|
-
aria-describedby="${
|
2191
|
+
aria-describedby="${lt(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
2192
2192
|
@change=${this.handleChange}
|
2193
2193
|
@keydown=${this.handleKeyDown}
|
2194
2194
|
/>
|
2195
2195
|
</mdc-staticcheckbox>
|
2196
2196
|
${this.renderLabelAndHelperText()}
|
2197
|
-
`}};
|
2197
|
+
`}};Bi.styles=[...ve.styles,..._p],v([x({type:Boolean,reflect:!0})],Bi.prototype,"checked",2),v([x({type:Boolean,reflect:!0})],Bi.prototype,"indeterminate",2),v([x({type:Boolean,reflect:!0})],Bi.prototype,"autofocus",2);var fc=Bi;fc.register(Om);var Yg=fc;var qg=W`
|
2198
2198
|
:host {
|
2199
2199
|
height: 1.5rem;
|
2200
2200
|
gap: 0.25rem;
|
@@ -2344,15 +2344,15 @@
|
|
2344
2344
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2345
2345
|
cursor: auto;
|
2346
2346
|
}
|
2347
|
-
`,
|
2347
|
+
`,Sp=[yt,qg,..._t()];var Ip=j.constructTagName("chip"),Kg={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Ro={COLOR:Kg.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:bt.SPAN,SIZE:_i[24],ROLE:"button"};var Oo=class extends ce(_e){constructor(){super(...arguments);this.color=Ro.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Ro.ROLE,this.size=Ro.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?P`
|
2348
2348
|
<mdc-icon
|
2349
2349
|
name="${this.iconName}"
|
2350
2350
|
length-unit="rem"
|
2351
2351
|
size="1"></mdc-icon>
|
2352
|
-
`:
|
2352
|
+
`:Y}render(){return P`
|
2353
2353
|
${this.renderIcon()}
|
2354
|
-
<mdc-text type="${
|
2355
|
-
`}};
|
2354
|
+
<mdc-text type="${Ro.TEXT_TYPE}" tagname="${Ro.TAG_NAME}">${this.label}</mdc-text>
|
2355
|
+
`}};Oo.styles=[...K.styles,...Sp],v([x({type:String,reflect:!0})],Oo.prototype,"color",2),v([x({type:String})],Oo.prototype,"label",2);var Po=Oo;Po.register(Ip);var Xg=Po;var kp=j.constructTagName("coachmark"),Ui={COLOR:Vs.CONTRAST,TRIGGER:Fi.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Hi=class extends ke{constructor(){super(...arguments);this.trigger=Ui.TRIGGER;this.showArrow=Ui.ARROW;this.closeButton=Ui.CLOSE_BUTTON;this.disableAriaExpanded=Ui.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Ui.COLOR,this.showArrow=Ui.ARROW}};v([x({type:String,reflect:!0})],Hi.prototype,"trigger",2),v([x({type:Boolean,attribute:"show-arrow"})],Hi.prototype,"showArrow",2),v([x({type:Boolean,reflect:!0,attribute:"close-button"})],Hi.prototype,"closeButton",2),v([x({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Hi.prototype,"disableAriaExpanded",2);var vc=Hi;vc.register(kp);var Zg=vc;var Jg=W`
|
2356
2356
|
:host {
|
2357
2357
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2358
2358
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2463,7 +2463,7 @@
|
|
2463
2463
|
mdc-text::part(text) {
|
2464
2464
|
margin: 0;
|
2465
2465
|
}
|
2466
|
-
`,
|
2466
|
+
`,Cp=[Jg];var wp=j.constructTagName("dialog"),Qg={DEFAULT:"default",PROMOTIONAL:"promotional"},Br={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Qg.DEFAULT};var Gi=class{static dispatchDialogEvent(o,e){e.dispatchEvent(new CustomEvent(o,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var Qt=class extends _n(cn(K)){constructor(){super();this.id="";this.visible=Br.VISIBLE;this.zIndex=Br.Z_INDEX;this.size=Br.SIZE;this.variant=Br.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabelledby=null;this.ariaLabel=null;this.headerTagName=Br.HEADER_TAG_NAME;this.descriptionTagName=Br.DESCRIPTION_TAG_NAME;this.role=Br.ROLE;this.triggerElement=null;this.backdropElement=null;this.lastActiveElement=null;this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hideDialog())};this.hideDialog=()=>{this.visible=!1};this.showDialog=()=>{this.visible=!0};document.addEventListener("keydown",this.onEscapeKeydown)}setupAriaAttributes(){this.headerText&&!this.ariaLabel&&!this.ariaLabelledby?this.setAttribute("aria-labelledby",this.headerText):!this.headerText&&!this.ariaLabel&&!this.ariaLabelledby&&this.triggerId&&this.setAttribute("aria-labelledby",this.triggerId)}createBackdrop(){var a;let e=document.createElement("div");e.classList.add("dialog-backdrop");let s=document.createElement("style");s.textContent=`
|
2467
2467
|
.dialog-backdrop {
|
2468
2468
|
position: fixed;
|
2469
2469
|
top: 0;
|
@@ -2473,40 +2473,40 @@
|
|
2473
2473
|
background: var(--mds-color-theme-common-overlays-secondary-normal);
|
2474
2474
|
z-index: ${this.zIndex-1};
|
2475
2475
|
}
|
2476
|
-
`,e.appendChild(s),(a=this.parentElement)==null||a.appendChild(e),this.backdropElement=e}async firstUpdated(e){super.firstUpdated(e),this.setupTriggerListener(),this.setupAriaAttributes(),this.style.zIndex=`${this.zIndex}`,
|
2477
|
-
${this.headerText?
|
2476
|
+
`,e.appendChild(s),(a=this.parentElement)==null||a.appendChild(e),this.backdropElement=e}async firstUpdated(e){super.firstUpdated(e),this.setupTriggerListener(),this.setupAriaAttributes(),this.style.zIndex=`${this.zIndex}`,Gi.onCreatedDialog(this),this.visible&&await this.handleCreateDialogFirstUpdate()}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),document.removeEventListener("keydown",this.onEscapeKeydown),Gi.onDestroyedDialog(this)}setupTriggerListener(){if(!this.triggerId){this.addEventListener("focus-trap-exit",this.hideDialog);return}this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.triggerElement&&this.addEventListener("focus-trap-exit",this.hideDialog)}removeEventListeners(){this.removeEventListener("focus-trap-exit",this.hideDialog)}async updated(e){if(super.updated(e),e.has("visible")){let s=e.get("visible");await this.isOpenUpdated(s,this.visible)}e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("variant")&&this.updateFooterButtonColors(this.variant),(e.has("aria-label")||e.has("aria-labelledby"))&&this.setupAriaAttributes()}async isOpenUpdated(e,s){var a,h;e!==s&&(s&&!e?(this.lastActiveElement=document.activeElement,this.enabledFocusTrap=!0,this.enabledPreventScroll=!0,this.createBackdrop(),await this.handleCreateDialogFirstUpdate(),this.triggerElement&&(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog")),Gi.onShowDialog(this)):!s&&e&&((a=this.backdropElement)==null||a.remove(),this.backdropElement=null,(h=this.deactivateFocusTrap)==null||h.call(this),this.triggerElement?(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.removeAttribute("aria-haspopup"),this.triggerElement.focus()):this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus(),Gi.onHideDialog(this)))}async handleCreateDialogFirstUpdate(){var e,s;this.visible&&(await this.updateComplete,(e=this.setFocusableElements)==null||e.call(this),(s=this.setInitialFocus)==null||s.call(this))}render(){var e;return P`
|
2477
|
+
${this.headerText?P`
|
2478
2478
|
<div part="header-section">
|
2479
2479
|
<div part="header">
|
2480
2480
|
<slot name="header-prefix"></slot>
|
2481
2481
|
<mdc-text
|
2482
2482
|
part="header-text"
|
2483
|
-
tagname="${
|
2484
|
-
type="${
|
2483
|
+
tagname="${bt[this.headerTagName.toUpperCase()]}"
|
2484
|
+
type="${ot.BODY_LARGE_BOLD}"
|
2485
2485
|
>
|
2486
2486
|
${this.headerText}
|
2487
2487
|
</mdc-text>
|
2488
2488
|
</div>
|
2489
2489
|
<mdc-text
|
2490
2490
|
part="description-text"
|
2491
|
-
tagname="${
|
2492
|
-
type="${
|
2491
|
+
tagname="${bt[this.descriptionTagName.toUpperCase()]}"
|
2492
|
+
type="${ot.BODY_MIDSIZE_REGULAR}"
|
2493
2493
|
>
|
2494
|
-
${(e=this.descriptionText)!=null?e:
|
2494
|
+
${(e=this.descriptionText)!=null?e:Y}
|
2495
2495
|
</mdc-text>
|
2496
|
-
</div>`:
|
2496
|
+
</div>`:Y}
|
2497
2497
|
<mdc-button
|
2498
2498
|
part="dialog-close-btn"
|
2499
|
-
prefix-icon="${
|
2499
|
+
prefix-icon="${Br.CANCEL_ICON}"
|
2500
2500
|
variant="${Wt.TERTIARY}"
|
2501
|
-
size="${
|
2502
|
-
aria-label="${
|
2501
|
+
size="${oi[20]}"
|
2502
|
+
aria-label="${lt(this.closeButtonAriaLabel)||""}"
|
2503
2503
|
@click="${this.hideDialog}"
|
2504
2504
|
></mdc-button>
|
2505
2505
|
<div part="body">
|
2506
2506
|
<slot name="dialog-body"></slot>
|
2507
2507
|
</div>
|
2508
2508
|
${this.renderFooter()}
|
2509
|
-
`}};Qt.styles=[...
|
2509
|
+
`}};Qt.styles=[...K.styles,...Cp],v([x({type:String,reflect:!0})],Qt.prototype,"id",2),v([x({type:String,reflect:!0})],Qt.prototype,"triggerId",2),v([x({type:Boolean,reflect:!0})],Qt.prototype,"visible",2),v([x({type:Number,reflect:!0,attribute:"z-index"})],Qt.prototype,"zIndex",2),v([x({type:String,reflect:!0})],Qt.prototype,"size",2),v([x({type:String,reflect:!0})],Qt.prototype,"variant",2),v([x({type:String,attribute:"close-button-aria-label"})],Qt.prototype,"closeButtonAriaLabel",2),v([x({type:String,reflect:!0,attribute:"aria-labelledby"})],Qt.prototype,"ariaLabelledby",2),v([x({type:String,reflect:!0,attribute:"aria-label"})],Qt.prototype,"ariaLabel",2),v([x({type:String,reflect:!0,attribute:"header-text"})],Qt.prototype,"headerText",2),v([x({type:String,reflect:!0,attribute:"description-text"})],Qt.prototype,"descriptionText",2),v([x({type:String,reflect:!0,attribute:"header-tag-name"})],Qt.prototype,"headerTagName",2),v([x({type:String,reflect:!0,attribute:"description-tag-name"})],Qt.prototype,"descriptionTagName",2),v([x({type:String,reflect:!0})],Qt.prototype,"role",2);var gc=Qt;gc.register(wp);var tb=gc;var Lp=j.constructTagName("divider"),ji={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Us={SOLID:"solid",GRADIENT:"gradient"},ge={POSITIVE:"positive",NEGATIVE:"negative"},Hs={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Wi={ORIENTATION:ji.HORIZONTAL,VARIANT:Us.SOLID,ARROW_DIRECTION:ge.NEGATIVE,BUTTON_DIRECTION:ge.NEGATIVE};var eb=[yt,W`
|
2510
2510
|
:host {
|
2511
2511
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2512
2512
|
--mdc-divider-width: 0.0625rem;
|
@@ -2717,11 +2717,11 @@
|
|
2717
2717
|
font-size: var(--mdc-divider-text-size);
|
2718
2718
|
line-height: var(--mdc-divider-text-line-height);
|
2719
2719
|
}
|
2720
|
-
`],
|
2720
|
+
`],Np=eb;var ci=class extends K{constructor(){super(...arguments);this.orientation=Wi.ORIENTATION;this.variant=Wi.VARIANT;this.arrowDirection=Wi.ARROW_DIRECTION;this.buttonPosition=Wi.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Us).includes(e)?e:Wi.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(ji).includes(e)?e:Wi.ORIENTATION)}ensureValidDirections(){let e=this.orientation===ji.HORIZONTAL?ge.NEGATIVE:ge.POSITIVE;Object.values(ge).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(ge).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let s=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",s)}}getArrowIcon(){let e=this.orientation===ji.HORIZONTAL,s=this.arrowDirection===ge.POSITIVE;return e?s?Hs.UP:Hs.DOWN:s?Hs.RIGHT:Hs.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var m;let e=(m=this.shadowRoot)==null?void 0:m.querySelector("slot"),s=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(s.length>1)return;let a=s.some(E=>E.tagName===As.toUpperCase()),h=s.some(E=>E.tagName===ki.toUpperCase());a&&!h?this.setAttribute("data-type","mdc-text-divider"):!a&&h&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return P`
|
2721
2721
|
<div></div>
|
2722
2722
|
<slot @slotchange=${this.inferDividerType}></slot>
|
2723
2723
|
<div></div>
|
2724
|
-
`}};
|
2724
|
+
`}};ci.styles=[...K.styles,...Np],v([x({type:String,reflect:!0})],ci.prototype,"orientation",2),v([x({type:String,reflect:!0})],ci.prototype,"variant",2),v([x({type:String,attribute:"arrow-direction",reflect:!0})],ci.prototype,"arrowDirection",2),v([x({type:String,attribute:"button-position",reflect:!0})],ci.prototype,"buttonPosition",2);var bc=ci;bc.register(Lp);var rb=bc;var ib=W`
|
2725
2725
|
:host([selected]){
|
2726
2726
|
border: 2px solid;
|
2727
2727
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -2741,7 +2741,7 @@
|
|
2741
2741
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2742
2742
|
cursor: auto;
|
2743
2743
|
}
|
2744
|
-
`,
|
2744
|
+
`,Mp=[ib];var Rp=j.constructTagName("filterchip"),yc={ICON_NAME:"check-bold",COLOR:"default"};var Gs=class extends Po{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=yc.COLOR}setSelected(e){e?(this.iconName=yc.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};Gs.styles=[...Po.styles,...Mp],v([x({type:Boolean,reflect:!0})],Gs.prototype,"selected",2);var Ec=Gs;Ec.register(Rp);var ob=Ec;var sb=W`
|
2745
2745
|
|
2746
2746
|
:host::part(container) {
|
2747
2747
|
display: flex;
|
@@ -2758,12 +2758,12 @@
|
|
2758
2758
|
:host::part(label-text){
|
2759
2759
|
font-weight: bold;
|
2760
2760
|
}
|
2761
|
-
`,
|
2761
|
+
`,Op=[sb];var In=class extends Ht(ve){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.disabled=void 0}render(){var e;return P`
|
2762
2762
|
<div
|
2763
2763
|
part="container"
|
2764
|
-
role="${this.isRadio?
|
2764
|
+
role="${this.isRadio?Ct.RADIOGROUP:Ct.GROUP}"
|
2765
2765
|
aria-labelledby="${Dt.HEADING_ID}"
|
2766
|
-
aria-describedby="${
|
2766
|
+
aria-describedby="${lt(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
2767
2767
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2768
2768
|
>
|
2769
2769
|
<div part="group-header">
|
@@ -2772,7 +2772,7 @@
|
|
2772
2772
|
</div>
|
2773
2773
|
<slot></slot>
|
2774
2774
|
</div>
|
2775
|
-
`}};
|
2775
|
+
`}};In.styles=[...ve.styles,...Op];var xc=In;var Pp=j.constructTagName("formfieldgroup");xc.register(Pp);var kn=xc;_s.register(Ua);var ab=_s;var nb=[W`
|
2776
2776
|
:host{
|
2777
2777
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2778
2778
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2888,35 +2888,35 @@
|
|
2888
2888
|
opacity: 0;
|
2889
2889
|
pointer-events: none;
|
2890
2890
|
}
|
2891
|
-
`,..._t(!0)],
|
2891
|
+
`,..._t(!0)],Dp=nb;ve.register(xp);var je=ve;var Fp=j.constructTagName("input"),Cn={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Tc={OFF:"off",ON:"on"},Ac={TEXT:"text",SEARCH:"search"},$p={MAX_LENGTH:10,VALIDATION:Jt.ERROR},Ur={VALIDATION:Jt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Wt.TERTIARY,CLEAR_BUTTON_SIZE:oi[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:bt.SPAN,AUTO_COMPLETE:Tc.OFF,INPUT_TYPE:Ac.TEXT};var Yt=class extends Ce(Ht(je)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Cn.OFF;this.autocomplete=Tc.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.required&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,s,a){super.attributeChangedCallback(e,s,a),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(m=>{this.onerror&&this.onerror(m)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}handleKeyDown(e){var s;e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?P`
|
2892
2892
|
<mdc-icon
|
2893
2893
|
class="leading-icon"
|
2894
2894
|
part="leading-icon"
|
2895
2895
|
name=${this.leadingIcon}
|
2896
|
-
size="${
|
2897
|
-
length-unit="${
|
2896
|
+
size="${Ur.ICON_SIZE_VALUE}"
|
2897
|
+
length-unit="${Ur.ICON_SIZE_UNIT}">
|
2898
2898
|
</mdc-icon>
|
2899
|
-
`:
|
2899
|
+
`:Y}renderPrefixText(){return this.prefixText?P`
|
2900
2900
|
<mdc-text
|
2901
2901
|
class="prefix-text"
|
2902
|
-
tagname="${
|
2903
|
-
type="${
|
2902
|
+
tagname="${Ur.PREFIX_TEXT_TAG}"
|
2903
|
+
type="${Ur.PREFIX_TEXT_TYPE}"
|
2904
2904
|
aria-hidden="true"
|
2905
2905
|
>
|
2906
|
-
${this.prefixText.slice(0
|
2906
|
+
${this.prefixText.slice(0,$p.MAX_LENGTH)}
|
2907
2907
|
</mdc-text>
|
2908
|
-
`:
|
2908
|
+
`:Y}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(e=!1){let s=e||this.value&&this.trailingButton;return s?P`
|
2909
2909
|
<mdc-button
|
2910
2910
|
part='trailing-button'
|
2911
2911
|
class='own-focus-ring ${s?"":"hidden"}'
|
2912
|
-
prefix-icon='${
|
2913
|
-
variant='${
|
2914
|
-
size="${
|
2912
|
+
prefix-icon='${Ur.CLEAR_BUTTON_ICON}'
|
2913
|
+
variant='${Ur.CLEAR_BUTTON_VARIANT}'
|
2914
|
+
size="${Ur.CLEAR_BUTTON_SIZE}"
|
2915
2915
|
aria-label="${this.clearAriaLabel}"
|
2916
2916
|
@click=${this.clearInputText}
|
2917
2917
|
?disabled=${this.disabled||this.readonly||!s}
|
2918
2918
|
></mdc-button>
|
2919
|
-
`:
|
2919
|
+
`:Y}renderInputElement(e,s=!1){var h;let a=s?"":this.placeholder;return P`<input
|
2920
2920
|
aria-label="${(h=this.dataAriaLabel)!=null?h:""}"
|
2921
2921
|
class='input'
|
2922
2922
|
part='input'
|
@@ -2927,33 +2927,33 @@
|
|
2927
2927
|
?readonly="${this.readonly}"
|
2928
2928
|
?required="${this.required}"
|
2929
2929
|
type="${e}"
|
2930
|
-
aria-describedby="${
|
2930
|
+
aria-describedby="${lt(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
2931
2931
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
2932
|
-
placeholder=${
|
2933
|
-
minlength=${
|
2934
|
-
maxlength=${
|
2932
|
+
placeholder=${lt(a)}
|
2933
|
+
minlength=${lt(this.minlength)}
|
2934
|
+
maxlength=${lt(this.maxlength)}
|
2935
2935
|
autocapitalize=${this.autocapitalize}
|
2936
2936
|
autocomplete=${this.autocomplete}
|
2937
2937
|
?autofocus="${this.autofocus}"
|
2938
|
-
dirname=${
|
2939
|
-
pattern=${
|
2940
|
-
list=${
|
2941
|
-
size=${
|
2938
|
+
dirname=${lt(this.dirname)}
|
2939
|
+
pattern=${lt(this.pattern)}
|
2940
|
+
list=${lt(this.list)}
|
2941
|
+
size=${lt(this.size)}
|
2942
2942
|
@input=${this.onInput}
|
2943
2943
|
@change=${this.onChange}
|
2944
2944
|
@keydown=${this.handleKeyDown}
|
2945
|
-
/>`}render(){return
|
2945
|
+
/>`}render(){return P`
|
2946
2946
|
${this.renderLabel()}
|
2947
2947
|
<div class="input-container mdc-focus-ring" part="input-container">
|
2948
2948
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
2949
2949
|
<div class="input-section" part="input-section">
|
2950
2950
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
2951
|
-
<slot name="input">${this.renderInputElement(
|
2951
|
+
<slot name="input">${this.renderInputElement(Ur.INPUT_TYPE)}</slot>
|
2952
2952
|
</div>
|
2953
2953
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2954
2954
|
</div>
|
2955
|
-
${this.helpText?this.renderHelperText():
|
2956
|
-
`}};Yt.styles=[...
|
2955
|
+
${this.helpText?this.renderHelperText():Y}
|
2956
|
+
`}};Yt.styles=[...je.styles,...Dp],v([x({type:String})],Yt.prototype,"placeholder",2),v([x({type:Boolean})],Yt.prototype,"readonly",2),v([x({type:String,attribute:"prefix-text"})],Yt.prototype,"prefixText",2),v([x({type:String,attribute:"leading-icon"})],Yt.prototype,"leadingIcon",2),v([x({type:Boolean,attribute:"trailing-button"})],Yt.prototype,"trailingButton",2),v([x({type:Number})],Yt.prototype,"maxlength",2),v([x({type:Number})],Yt.prototype,"minlength",2),v([x({type:String})],Yt.prototype,"autocapitalize",2),v([x({type:String})],Yt.prototype,"autocomplete",2),v([x({type:Boolean})],Yt.prototype,"autofocus",2),v([x({type:String})],Yt.prototype,"dirname",2),v([x({type:String})],Yt.prototype,"pattern",2),v([x({type:String})],Yt.prototype,"list",2),v([x({type:Number})],Yt.prototype,"size",2),v([x({type:String,attribute:"clear-aria-label"})],Yt.prototype,"clearAriaLabel",2);var Do=Yt;Do.register(Fp);var lb=Do;var cb=W`
|
2957
2957
|
:host {
|
2958
2958
|
height: 1.5rem;
|
2959
2959
|
gap: 0.25rem;
|
@@ -2982,24 +2982,24 @@
|
|
2982
2982
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2983
2983
|
cursor: auto;
|
2984
2984
|
}
|
2985
|
-
`,
|
2985
|
+
`,zp=[yt,cb];var wn=j.constructTagName("inputchip"),Ln={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:bt.SPAN,CLOSE_ICON:"cancel-bold"};var Yi=class extends ce(zt(K)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?P`
|
2986
2986
|
<mdc-icon
|
2987
2987
|
name="${this.iconName}"
|
2988
2988
|
length-unit="rem"
|
2989
2989
|
size="1"></mdc-icon>
|
2990
|
-
`:
|
2990
|
+
`:Y}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return P`
|
2991
2991
|
${this.renderIcon()}
|
2992
|
-
<mdc-text part="label" type="${
|
2992
|
+
<mdc-text part="label" type="${Ln.TEXT_TYPE}" tagname="${Ln.TAG_NAME}">${this.label}</mdc-text>
|
2993
2993
|
<mdc-button
|
2994
2994
|
?disabled="${this.disabled}"
|
2995
2995
|
variant="tertiary"
|
2996
2996
|
part="close-icon"
|
2997
2997
|
aria-label="${this.clearAriaLabel}"
|
2998
|
-
prefix-icon="${
|
2998
|
+
prefix-icon="${Ln.CLOSE_ICON}"
|
2999
2999
|
size="20"
|
3000
3000
|
@click="${this.handleClose}"
|
3001
3001
|
></mdc-button>
|
3002
|
-
`}}
|
3002
|
+
`}};Yi.styles=[...K.styles,...zp],v([x({type:String})],Yi.prototype,"label",2),v([x({type:Boolean})],Yi.prototype,"error",2),v([x({type:String,attribute:"clear-aria-label"})],Yi.prototype,"clearAriaLabel",2);var _c=Yi;_c.register(wn);var db=_c;var hb=W`
|
3003
3003
|
:host {
|
3004
3004
|
gap: 0.25rem;
|
3005
3005
|
}
|
@@ -3057,36 +3057,36 @@
|
|
3057
3057
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
3058
3058
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
3059
3059
|
}
|
3060
|
-
`,
|
3060
|
+
`,Vp=[hb];var js=class extends ce(ai){constructor(){super(...arguments);this.size=km.LINK_SIZE}getIconSize(){switch(this.size){case an.SMALL:return nn.SMALL;case an.MIDSIZE:return nn.MIDSIZE;default:return nn.LARGE}}render(){return P`
|
3061
3061
|
<slot></slot>
|
3062
|
-
${this.iconName?
|
3062
|
+
${this.iconName?P`
|
3063
3063
|
<mdc-icon
|
3064
3064
|
name=${this.iconName}
|
3065
3065
|
size=${this.getIconSize()}
|
3066
3066
|
length-unit="rem"
|
3067
3067
|
></mdc-icon>
|
3068
|
-
`:
|
3069
|
-
`}};
|
3068
|
+
`:Y}
|
3069
|
+
`}};js.styles=[...ai.styles,...Vp],v([x({type:String,reflect:!0})],js.prototype,"size",2);var Sc=js;Sc.register(sn);var mb=Sc;ai.register(Am);var pb=ai;var gt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var Nn=j.constructTagName("listitem"),Mn="dynamic-listitem-tooltip-popover",Ic="dynamic-listitem-tooltip-triggerid",Ws={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},kc={VARIANT:Ws.FULL_WIDTH,TOOLTIP_PLACEMENT:$t.TOP};var Bp=j.constructTagName("list"),Cc="header-id";var ub=W`
|
3070
3070
|
:host::part(header-text) {
|
3071
3071
|
padding: 0.5rem 0.75rem;
|
3072
3072
|
}
|
3073
|
-
`,
|
3073
|
+
`,Up=[ub];var Fo=class extends Ht(K){constructor(){super();this.dataRole=Ct.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(e){var h;let s=this.getCurrentIndex(e.target),a=this.getNewIndexBasedOnKey(e.key,s,this.listItems.length);a!==void 0&&((h=this.listItems[a])==null||h.focus(),this.resetTabIndexAndSetActiveTabIndex(a))}getCurrentIndex(e){return this.listItems.findIndex(s=>s===e||s===e.parentElement)}getNewIndexBasedOnKey(e,s,a){switch(e){case gt.ARROW_DOWN:return(s+1)%a;case gt.ARROW_UP:return(s-1+a)%a;case gt.HOME:return 0;case gt.END:return a-1;default:return}}handleMouseClick(e){let s=this.getCurrentIndex(e.target);this.resetTabIndexAndSetActiveTabIndex(s)}resetTabIndexAndSetActiveTabIndex(e){this.listItems.forEach((s,a)=>{let h=e===a?"0":"-1";s==null||s.setAttribute("tabindex",h)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var s;let e=this.headerText?P`
|
3074
3074
|
<mdc-text
|
3075
|
-
id="${
|
3075
|
+
id="${Cc}"
|
3076
3076
|
part="header-text"
|
3077
|
-
type="${
|
3078
|
-
tagname="${
|
3077
|
+
type="${ot.BODY_MIDSIZE_BOLD}"
|
3078
|
+
tagname="${bt.SPAN}"
|
3079
3079
|
>${this.headerText}</mdc-text>
|
3080
|
-
`:
|
3080
|
+
`:Y;return P`
|
3081
3081
|
<div
|
3082
3082
|
role="${this.dataRole}"
|
3083
|
-
aria-labelledby="${this.headerText?
|
3083
|
+
aria-labelledby="${this.headerText?Cc:""}"
|
3084
3084
|
aria-label="${(s=this.dataAriaLabel)!=null?s:""}"
|
3085
3085
|
>
|
3086
3086
|
${e}
|
3087
3087
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
3088
3088
|
</div>
|
3089
|
-
`}};
|
3089
|
+
`}};Fo.styles=[...K.styles,...Up],v([Mt({selector:`${Nn}:not([disabled])`})],Fo.prototype,"listItems",2),v([x({type:String,attribute:"header-text",reflect:!0})],Fo.prototype,"headerText",2);var $o=Fo;$o.register(Bp);var fb=$o;var Rn=j.constructTagName("tooltip"),Oe={DESCRIPTION:"description",LABEL:"label",NONE:"none"},di={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:$t.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Oe.DESCRIPTION};var vb=W`
|
3090
3090
|
|
3091
3091
|
:host {
|
3092
3092
|
--mdc-tooltip-max-width: 400px;
|
@@ -3111,7 +3111,7 @@
|
|
3111
3111
|
:host([color='contrast'])::part(popover-content) {
|
3112
3112
|
color: var(--mdc-tooltip-text-color-contrast);
|
3113
3113
|
}
|
3114
|
-
`,
|
3114
|
+
`,Hp=[vb];var zo=class extends ke{constructor(){super(...arguments);this.tooltipType=di.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||di.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||di.OFFSET,this.placement=this.placement||di.PLACEMENT,this.role=Ct.TOOLTIP,this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,s;return((s=(e=this.defaultSlotNodes)==null?void 0:e.map(a=>a.textContent).join(" "))==null?void 0:s.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(Oe).includes(e)?e:di.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${zr()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case Oe.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case Oe.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values($t).includes(this.placement)||(this.placement=di.PLACEMENT)}onTooltipTypeUpdated(e){let s=e.get("tooltipType");Object.values(Oe).includes(this.tooltipType)||this.setTooltipType(di.TOOLTIP_TYPE);let a=document.getElementById(this.triggerID);if(a){let h=this.getTooltipText();switch(this.tooltipType){case Oe.DESCRIPTION:s===Oe.LABEL&&a.removeAttribute("aria-labelledby"),a.setAttribute("aria-describedby",this.id);break;case Oe.LABEL:s===Oe.DESCRIPTION&&a.removeAttribute("aria-describedby"),a.setAttribute("aria-labelledby",this.id);break;default:s===Oe.DESCRIPTION?a.removeAttribute("aria-describedby"):s===Oe.LABEL&&a.removeAttribute("aria-labelledby");break}h.length>0&&this.tooltipType!==Oe.NONE&&!this.ariaLabel&&(this.ariaLabel=h)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};zo.styles=[...ke.styles,...Hp],v([x({type:String,attribute:"tooltip-type",reflect:!0})],zo.prototype,"tooltipType",2),v([Fa()],zo.prototype,"defaultSlotNodes",2);var wc=zo;wc.register(Rn);var gb=wc;var Vo=j.constructTagName("navitemlist");var bb=W`
|
3115
3115
|
:host {
|
3116
3116
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
3117
3117
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -3193,33 +3193,33 @@
|
|
3193
3193
|
display: flex;
|
3194
3194
|
flex-direction: row;
|
3195
3195
|
}
|
3196
|
-
`,
|
3196
|
+
`,Gp=[bb,..._t()];var we=class extends zt(ur(K)){constructor(){super();this.variant=kc.VARIANT;this.tooltipPlacement=kc.TOOLTIP_PLACEMENT;this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}connectedCallback(){super.connectedCallback(),this.role=this.role||Ct.LISTITEM}handleKeyDown(e){(e.key===gt.ENTER||e.key===gt.SPACE)&&(this.triggerClickEvent(),e.preventDefault())}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var a,h,m;if(!this.tooltipText)return;this.id=this.id||Ic;let e=document.getElementById(Mn);e&&e.remove();let s=document.createElement(Rn);s.id=Mn,s.textContent=this.tooltipText,s.setAttribute("triggerid",this.id),s.setAttribute("placement",this.tooltipPlacement),s.setAttribute("visible",""),s.setAttribute("show-arrow",""),((h=(a=this.parentElement)==null?void 0:a.tagName)==null?void 0:h.toLowerCase())===Vo?this.before(s):(m=this.parentElement)==null||m.after(s)}hideTooltipOnLeave(){this.id=this.id===Ic?"":this.id;let e=document.querySelector(`#${Mn}`);e==null||e.remove()}getText(e,s,a){return a?P`
|
3197
3197
|
<slot name="${e}">
|
3198
|
-
<mdc-text part="${e}" type="${s}" tagname="${
|
3198
|
+
<mdc-text part="${e}" type="${s}" tagname="${bt.SPAN}">${a}</mdc-text>
|
3199
3199
|
</slot>
|
3200
|
-
`:
|
3200
|
+
`:Y}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(s=>{e?s.setAttribute("disabled",""):s.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.setAttribute("aria-disabled",`${this.disabled}`))}renderTrailingControls(){return P`<slot name="trailing-controls"
|
3201
3201
|
@click=${this.stopEventPropagation}
|
3202
3202
|
@keyup=${this.stopEventPropagation}
|
3203
|
-
@keydown=${this.stopEventPropagation}></slot>`}renderLeadingControls(){return
|
3203
|
+
@keydown=${this.stopEventPropagation}></slot>`}renderLeadingControls(){return P`<slot name="leading-controls"
|
3204
3204
|
@click=${this.stopEventPropagation}
|
3205
3205
|
@keyup=${this.stopEventPropagation}
|
3206
|
-
@keydown=${this.stopEventPropagation}></slot>`}stopEventPropagation(e){(e instanceof KeyboardEvent&&(e.key===gt.ENTER||e.key===gt.SPACE)||e instanceof MouseEvent)&&e.stopPropagation()}render(){return
|
3206
|
+
@keydown=${this.stopEventPropagation}></slot>`}stopEventPropagation(e){(e instanceof KeyboardEvent&&(e.key===gt.ENTER||e.key===gt.SPACE)||e instanceof MouseEvent)&&e.stopPropagation()}render(){return P`
|
3207
3207
|
<div part="leading">
|
3208
3208
|
${this.renderLeadingControls()}
|
3209
3209
|
<div part="leading-text">
|
3210
|
-
${this.getText("leading-text-primary-label",
|
3211
|
-
${this.getText("leading-text-secondary-label",
|
3212
|
-
${this.getText("leading-text-tertiary-label",
|
3210
|
+
${this.getText("leading-text-primary-label",ot.BODY_MIDSIZE_REGULAR,this.label)}
|
3211
|
+
${this.getText("leading-text-secondary-label",ot.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3212
|
+
${this.getText("leading-text-tertiary-label",ot.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3213
3213
|
</div>
|
3214
3214
|
</div>
|
3215
3215
|
<div part="trailing">
|
3216
3216
|
<div part="trailing-text">
|
3217
|
-
${this.getText("trailing-text-side-header",
|
3218
|
-
${this.getText("trailing-text-subline",
|
3217
|
+
${this.getText("trailing-text-side-header",ot.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3218
|
+
${this.getText("trailing-text-subline",ot.BODY_SMALL_REGULAR,this.sublineText)}
|
3219
3219
|
</div>
|
3220
3220
|
${this.renderTrailingControls()}
|
3221
3221
|
</div>
|
3222
|
-
`}};
|
3222
|
+
`}};we.styles=[...K.styles,...Gp],v([Mt({slot:"leading-controls"})],we.prototype,"leadingControlsSlot",2),v([Mt({slot:"trailing-controls"})],we.prototype,"trailingControlsSlot",2),v([x({type:String,reflect:!0})],we.prototype,"variant",2),v([x({type:String,reflect:!0})],we.prototype,"label",2),v([x({type:String,reflect:!0,attribute:"secondary-label"})],we.prototype,"secondaryLabel",2),v([x({type:String,reflect:!0,attribute:"tertiary-label"})],we.prototype,"tertiaryLabel",2),v([x({type:String,reflect:!0,attribute:"side-header-text"})],we.prototype,"sideHeaderText",2),v([x({type:String,reflect:!0,attribute:"subline-text"})],we.prototype,"sublineText",2),v([x({type:String,reflect:!0,attribute:"tooltip-text"})],we.prototype,"tooltipText",2),v([x({type:String,reflect:!0,attribute:"tooltip-placement"})],we.prototype,"tooltipPlacement",2);var Hr=we;Hr.register(Nn);var yb=Hr;var Eb=W`
|
3223
3223
|
:host {
|
3224
3224
|
--mdc-marker-width: 0.25rem;
|
3225
3225
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -3244,7 +3244,7 @@
|
|
3244
3244
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3245
3245
|
);
|
3246
3246
|
}
|
3247
|
-
`,
|
3247
|
+
`,jp=[Eb];var Wp=j.constructTagName("marker"),Yp={SOLID:"solid",STRIPED:"striped"};var Ys=class extends K{constructor(){super(...arguments);this.variant=Yp.SOLID}};Ys.styles=[...K.styles,...jp],v([x({type:String,reflect:!0})],Ys.prototype,"variant",2);var Lc=Ys;Lc.register(Wp);var xb=Lc;var On=j.constructTagName("menuitem"),qs={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Nc={POSITIVE:"positive",NEGATIVE:"negative"},Mc={LEADING:"leading",TRAILING:"trailing"};var Ks=class extends $o{connectedCallback(){super.connectedCallback(),this.dataRole=Ct.MENU}};Ks.styles=[...$o.styles],v([Mt({selector:`${On}:not([disabled])`})],Ks.prototype,"listItems",2);var Rc=Ks;var Pn=j.constructTagName("menu");Rc.register(Pn);var Tb=Rc;var Dn=j.constructTagName("menubar"),oe={HORIZONTAL:"horizontal",VERTICAL:"vertical"};var We=j.constructTagName("menupopover");var Fn=j.constructTagName("menusection"),Pe={TRUE:"true",FALSE:"false"};var Bo=l=>{class o extends l{constructor(){super(...arguments);this.ariaOrientation=oe.HORIZONTAL}get menuItems(){var m;let a=(m=this.shadowRoot)==null?void 0:m.querySelector("slot");return((a==null?void 0:a.assignedElements({flatten:!0}))||[]).map(E=>E.tagName.toLowerCase()===Fn?Array.from(E.children).filter(w=>this.isValidMenuItem(w)):this.isValidMenuItem(E)?E:[]).flat().filter(E=>!!E).filter(E=>!E.hasAttribute("disabled"))}firstUpdated(a){super.firstUpdated(a),this.setMenuBarPopoverValue(!1),this.resetTabIndexAndSetActiveTabIndex(this.menuItems)}setMenuBarPopoverValue(a){let{menu:h}=this.getParentMenuItemDetails("",this);h==null||h.setAttribute("data-menu-popover-open",a.toString())}isMenuPopoverOpen(){let{menu:a}=this.getParentMenuItemDetails("",this);return(a==null?void 0:a.getAttribute("data-menu-popover-open"))==="true"}getCurrentIndex(a){return this.menuItems.findIndex(h=>h===a||h===a.parentElement)}updatePopoverPlacementBasedOnOrientation(){this.ariaOrientation===oe.HORIZONTAL?this.menuPopoverItems.forEach(a=>{a.setAttribute("placement",$t.BOTTOM_START)}):this.menuPopoverItems.forEach(a=>{a.setAttribute("placement",$t.RIGHT_START)})}updateTabIndexAndFocusNewIndex(a,h,m){var E,w,$,G;if(!(m<0||h<0)){if(h===m){(E=a[h])==null||E.focus();return}(w=a[h])==null||w.setAttribute("tabindex","-1"),($=a[m])==null||$.setAttribute("tabindex","0"),(G=a[m])==null||G.focus()}}isValidMenu(a){return(a==null?void 0:a.toLowerCase())===Pn||(a==null?void 0:a.toLowerCase())===Dn||this.isValidNavItemList(a)}isValidNavItemList(a){return(a==null?void 0:a.toLowerCase())===Vo}isValidPopover(a){return(a==null?void 0:a.toLowerCase())===We}openPopover(a){var h,m;if(this.isValidPopover((m=(h=this.menuItems[a])==null?void 0:h.nextElementSibling)==null?void 0:m.tagName)){let E=this.menuItems[a].getAttribute("id"),w=this.menuPopoverItems.findIndex($=>$.getAttribute("triggerid")===E);if(w!==-1)return this.menuPopoverItems[w].hasAttribute("visible")||this.menuPopoverItems[w].toggleAttribute("visible"),this.setMenuBarPopoverValue(!0),!0}return!1}navigateToPrevMenuItem(a,h,m,E){let w=a===h?m:a-1;this.updateTabIndexAndFocusNewIndex(this.menuItems,a,w),this.isMenuPopoverOpen()&&E===oe.HORIZONTAL&&this.openPopover(w)}navigateToNextMenuItem(a,h,m,E){let w=a===m?h:a+1;this.updateTabIndexAndFocusNewIndex(this.menuItems,a,w),this.isMenuPopoverOpen()&&E===oe.HORIZONTAL&&this.openPopover(w)}getParentMenuItemDetails(a,h){var m,E;return h===null?{menu:null,menuChildId:a}:h&&this.isValidMenu(h.tagName)?{menu:h,menuChildId:a}:this.getParentMenuItemDetails((E=(m=h==null?void 0:h.previousElementSibling)==null?void 0:m.getAttribute("id"))!=null?E:"",h==null?void 0:h.parentElement)}hideAllPopovers(a){if(!this.isValidMenu(a==null?void 0:a.tagName)){if(this.isValidPopover(a==null?void 0:a.tagName)&&(a==null||a.toggleAttribute("visible")),a!=null&&a.children){let h=Array.from(a.children).filter(m=>this.isValidMenuItem(m));this.resetTabIndexAndSetActiveTabIndex(h)}a!=null&&a.parentElement&&this.hideAllPopovers(a.parentElement)}}navigateToPrevParentMenuItem(a,h){var G,q,rt,J,tt;let m=(G=this.menuItems[a].parentElement)==null?void 0:G.previousElementSibling,E=Array.from(((q=this.parentElement)==null?void 0:q.children)||[]).filter(ct=>this.isValidMenuItem(ct)),w=E.findIndex(ct=>ct===m),$=w;h===gt.ARROW_LEFT&&this.isValidMenu((rt=this.parentElement)==null?void 0:rt.tagName)&&($=w-1),this.updateTabIndexAndFocusNewIndex(E,w,$),(tt=(J=E[w-1])==null?void 0:J.nextElementSibling)==null||tt.toggleAttribute("visible")}closePopoverAndNavigateToPrevParentMenuItem(a,h){this.toggleAttribute("visible"),this.navigateToPrevParentMenuItem(a,h)}getParentMenuContents(a){var E;let h=this.getParentMenuItemDetails("",a),m=Array.from(((E=h.menu)==null?void 0:E.children)||[]).filter(w=>this.isValidMenuItem(w));return{parentMenuItemDetails:h,parentMenuItemsChildren:m}}openPopoverAndNavigateToNextChildrenMenuItem(a){var $,G;if(this.openPopover(a)||(this.hideAllPopovers(this.menuItems[a]),this.isValidMenu(this.tagName)))return;let{parentMenuItemDetails:h,parentMenuItemsChildren:m}=this.getParentMenuContents(this.menuItems[a]);if(m.length===0||(h==null?void 0:h.menuChildId)===""){this.navigateToNextMenuItem(a,0,this.menuItems.length-1,this.ariaOrientation);return}let E=m.findIndex(q=>q.getAttribute("id")===(h==null?void 0:h.menuChildId)),w=E===-1?a+1:E+1;this.updateTabIndexAndFocusNewIndex(m,E,w),(G=($=m[w])==null?void 0:$.nextElementSibling)==null||G.toggleAttribute("visible")}isValidMenuItem(a){return a.getAttribute("role")===Ct.MENUITEM}resetTabIndexAndSetActiveTabIndex(a){a.forEach((h,m)=>{let E=m===0?"0":"-1";h==null||h.setAttribute("tabindex",E)})}getKeyBasedOnDirection(a){var E;let h=a;return(((E=document.querySelector("html"))==null?void 0:E.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl")&&(h===gt.ARROW_LEFT||h===gt.ARROW_RIGHT)&&(h===gt.ARROW_LEFT?h=gt.ARROW_RIGHT:h=gt.ARROW_LEFT),h}handleKeyDown(a){var $,G;let m=this.menuItems.length-1,E=this.getCurrentIndex(a.target);if(E===-1)return;switch(this.getKeyBasedOnDirection(a.key)){case gt.HOME:this.updateTabIndexAndFocusNewIndex(this.menuItems,E,0);break;case gt.END:this.updateTabIndexAndFocusNewIndex(this.menuItems,E,m);break;case gt.ARROW_LEFT:{this.ariaOrientation===oe.HORIZONTAL&&this.navigateToPrevMenuItem(E,0,m,this.ariaOrientation),this.ariaOrientation===oe.VERTICAL&&this.closePopoverAndNavigateToPrevParentMenuItem(E,a.key);break}case gt.ARROW_RIGHT:{this.ariaOrientation===oe.HORIZONTAL&&this.navigateToNextMenuItem(E,0,m,this.ariaOrientation),this.ariaOrientation===oe.VERTICAL&&this.openPopoverAndNavigateToNextChildrenMenuItem(E);break}case gt.ARROW_UP:{this.ariaOrientation===oe.HORIZONTAL&&this.openPopover(E),this.ariaOrientation===oe.VERTICAL&&this.navigateToPrevMenuItem(E,0,m,this.ariaOrientation),a.preventDefault();break}case gt.ARROW_DOWN:{this.ariaOrientation===oe.HORIZONTAL&&this.openPopover(E),this.ariaOrientation===oe.VERTICAL&&this.navigateToNextMenuItem(E,0,m,this.ariaOrientation),a.preventDefault();break}case gt.SPACE:case gt.ENTER:{this.isValidPopover((G=($=this.menuItems[E])==null?void 0:$.nextElementSibling)==null?void 0:G.tagName)?this.openPopoverAndNavigateToNextChildrenMenuItem(E):this.isValidMenuItem(a.target)&&this.setMenuBarPopoverValue(!1);break}case gt.ESCAPE:{this.setMenuBarPopoverValue(!1);break}default:break}}closeAllPopoversExceptCurrent(a){this.menuPopoverItems.filter(h=>h!==this.menuItems[a]).filter(h=>h.hasAttribute("visible")).forEach(h=>h.toggleAttribute("visible"))}handleMouseClick(a){var E;let h=a.target,m=this.getCurrentIndex(h);m!==-1&&(this.isValidPopover((E=h==null?void 0:h.nextElementSibling)==null?void 0:E.tagName)?(this.closeAllPopoversExceptCurrent(m),this.openPopoverAndNavigateToNextChildrenMenuItem(m)):this.isValidMenuItem(h)&&h.parentElement.hidePopover())}}return v([x({type:String,reflect:!0,attribute:"aria-orientation"})],o.prototype,"ariaOrientation",2),v([Mt({selector:`${We}:not([disabled])`})],o.prototype,"menuPopoverItems",2),o};var Ab=W`
|
3248
3248
|
:host {
|
3249
3249
|
display: flex;
|
3250
3250
|
}
|
@@ -3256,7 +3256,7 @@
|
|
3256
3256
|
:host([aria-orientation='vertical']) {
|
3257
3257
|
flex-direction: column;
|
3258
3258
|
}
|
3259
|
-
`,
|
3259
|
+
`,qp=[Ab];var $n=class extends Bo(K){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleMouseClick)}connectedCallback(){super.connectedCallback(),this.role=Ct.MENUBAR}update(o){super.update(o),o.has("ariaOrientation")&&this.updatePopoverPlacementBasedOnOrientation()}render(){return P`<slot></slot>`}};$n.styles=[...K.styles,...qp];var Uo=$n;Uo.register(Dn);var _b=Uo;var Sb=W`
|
3260
3260
|
:host(:dir(rtl))::part(trailing-arrow),
|
3261
3261
|
:host(:dir(rtl))::part(leading-arrow) {
|
3262
3262
|
transform: rotate(180deg);
|
@@ -3264,19 +3264,19 @@
|
|
3264
3264
|
:host::part(trailing-arrow), :host::part(leading-arrow) {
|
3265
3265
|
--mdc-icon-size: 1.25rem;
|
3266
3266
|
}
|
3267
|
-
`,
|
3267
|
+
`,Kp=[Sb];var Ho=class extends Hr{connectedCallback(){super.connectedCallback(),this.role=Ct.MENUITEM,this.variant=Ws.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Nc.NEGATIVE?qs.LEFT:qs.RIGHT;return P`
|
3268
3268
|
<slot name="trailing-controls"
|
3269
3269
|
@click=${this.stopEventPropagation}
|
3270
3270
|
@keyup=${this.stopEventPropagation}
|
3271
3271
|
@keydown=${this.stopEventPropagation}></slot>
|
3272
|
-
${this.arrowPosition===
|
3273
|
-
`}renderLeadingControls(){let o=this.arrowDirection===
|
3272
|
+
${this.arrowPosition===Mc.TRAILING?P`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:Y}
|
3273
|
+
`}renderLeadingControls(){let o=this.arrowDirection===Nc.POSITIVE?qs.RIGHT:qs.LEFT;return P`
|
3274
3274
|
<slot name="leading-controls"
|
3275
3275
|
@click=${this.stopEventPropagation}
|
3276
3276
|
@keyup=${this.stopEventPropagation}
|
3277
3277
|
@keydown=${this.stopEventPropagation}></slot>
|
3278
|
-
${this.arrowPosition===
|
3279
|
-
`}};
|
3278
|
+
${this.arrowPosition===Mc.LEADING?P`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:Y}
|
3279
|
+
`}};Ho.styles=[...Hr.styles,...Kp],v([x({type:String,reflect:!0,attribute:"arrow-position"})],Ho.prototype,"arrowPosition",2),v([x({type:String,reflect:!0,attribute:"arrow-direction"})],Ho.prototype,"arrowDirection",2);var Ye=Ho;Ye.register(On);var Ib=Ye;var Xp=j.constructTagName("statictoggle"),kb={DEFAULT:"default",COMPACT:"compact"},Oc={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Zp={compact:.75,default:1.25},Jp={SIZE:kb.DEFAULT};var Cb=[W`
|
3280
3280
|
:host {
|
3281
3281
|
--mdc-statictoggle-width: 3rem;
|
3282
3282
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3355,17 +3355,17 @@
|
|
3355
3355
|
border: var(--mdc-statictoggle-border);
|
3356
3356
|
}
|
3357
3357
|
}
|
3358
|
-
`],
|
3358
|
+
`],Qp=Cb;var Go=class extends zt(K){constructor(){super(...arguments);this.checked=!1;this.size=Jp.SIZE}render(){return P`
|
3359
3359
|
<slot></slot>
|
3360
3360
|
<div part="slider">
|
3361
3361
|
<mdc-icon
|
3362
|
-
name="${this.checked?
|
3362
|
+
name="${this.checked?Oc.CHECKED:Oc.UNCHECKED}"
|
3363
3363
|
class="icon"
|
3364
3364
|
length-unit="rem"
|
3365
|
-
size="${
|
3365
|
+
size="${Zp[this.size]}"
|
3366
3366
|
></mdc-icon>
|
3367
3367
|
</div>
|
3368
|
-
`}};
|
3368
|
+
`}};Go.styles=[...K.styles,...Qp],v([x({type:Boolean,reflect:!0})],Go.prototype,"checked",2),v([x({type:String,reflect:!0})],Go.prototype,"size",2);var Pc=Go;Pc.register(Xp);var wb=Pc;var tu=j.constructTagName("toggle"),Xs={DEFAULT:"default",COMPACT:"compact"};var Dc={SIZE:Xs.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var zn=j.constructTagName("menuitemcheckbox"),Zs={CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Fc={ARIA_CHECKED:Pe.FALSE,INDICATOR:Zs.CHECKBOX};var Lb=W`
|
3369
3369
|
:host {
|
3370
3370
|
--mdc-checkmark-indicator-color: var(--mds-color-theme-control-active-normal);
|
3371
3371
|
}
|
@@ -3375,61 +3375,345 @@
|
|
3375
3375
|
:host([disabled])::part(checkmark-icon) {
|
3376
3376
|
--mdc-icon-fill-color: currentColor;
|
3377
3377
|
}
|
3378
|
-
`,
|
3378
|
+
`,eu=[Lb];var jo=class extends Ye{constructor(){super(...arguments);this.ariaChecked=Fc.ARIA_CHECKED;this.indicator=Fc.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=Ct.MENUITEMCHECKBOX}staticCheckbox(){return this.indicator!==Zs.CHECKBOX?Y:P`
|
3379
3379
|
<mdc-staticcheckbox
|
3380
3380
|
slot="leading-controls"
|
3381
|
-
?checked="${this.ariaChecked===
|
3381
|
+
?checked="${this.ariaChecked===Pe.TRUE}"
|
3382
3382
|
?disabled="${this.disabled}"
|
3383
3383
|
></mdc-staticcheckbox>
|
3384
|
-
`}staticToggle(){return this.indicator!==
|
3384
|
+
`}staticToggle(){return this.indicator!==Zs.TOGGLE?Y:P`
|
3385
3385
|
<mdc-statictoggle
|
3386
3386
|
slot="trailing-controls"
|
3387
|
-
?checked="${this.ariaChecked===
|
3387
|
+
?checked="${this.ariaChecked===Pe.TRUE}"
|
3388
3388
|
?disabled="${this.disabled}"
|
3389
|
-
size="${
|
3389
|
+
size="${Xs.COMPACT}"
|
3390
3390
|
></mdc-statictoggle>
|
3391
|
-
`}getCheckmarkIcon(){return this.indicator!==
|
3391
|
+
`}getCheckmarkIcon(){return this.indicator!==Zs.CHECKMARK||this.ariaChecked===Pe.FALSE?Y:P`
|
3392
3392
|
<mdc-icon
|
3393
3393
|
slot="trailing-controls"
|
3394
3394
|
name="check-bold"
|
3395
3395
|
part="checkmark-icon"
|
3396
3396
|
></mdc-icon>
|
3397
|
-
`}render(){return
|
3397
|
+
`}render(){return P`
|
3398
3398
|
<div part="leading">
|
3399
3399
|
${this.staticCheckbox()}
|
3400
3400
|
<slot name="leading-controls"></slot>
|
3401
3401
|
<div part="leading-text">
|
3402
|
-
${this.getText("leading-text-primary-label",
|
3403
|
-
${this.getText("leading-text-secondary-label",
|
3404
|
-
${this.getText("leading-text-tertiary-label",
|
3402
|
+
${this.getText("leading-text-primary-label",ot.BODY_MIDSIZE_REGULAR,this.label)}
|
3403
|
+
${this.getText("leading-text-secondary-label",ot.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3404
|
+
${this.getText("leading-text-tertiary-label",ot.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3405
3405
|
</div>
|
3406
3406
|
</div>
|
3407
3407
|
<div part="trailing">
|
3408
3408
|
<div part="trailing-text">
|
3409
|
-
${this.getText("trailing-text-side-header",
|
3410
|
-
${this.getText("trailing-text-subline",
|
3409
|
+
${this.getText("trailing-text-side-header",ot.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3410
|
+
${this.getText("trailing-text-subline",ot.BODY_SMALL_REGULAR,this.sublineText)}
|
3411
3411
|
</div>
|
3412
3412
|
<slot name="trailing-controls"></slot>
|
3413
3413
|
${this.staticToggle()}
|
3414
3414
|
${this.getCheckmarkIcon()}
|
3415
3415
|
</div>
|
3416
|
-
`}};
|
3416
|
+
`}};jo.styles=[...Ye.styles,...eu],v([x({type:String,reflect:!0,attribute:"aria-checked"})],jo.prototype,"ariaChecked",2),v([x({type:String,reflect:!0})],jo.prototype,"indicator",2);var $c=jo;$c.register(zn);var Nb=$c;var Js=class extends Ye{constructor(){super(...arguments);this.ariaChecked=Pe.FALSE}connectedCallback(){super.connectedCallback(),this.role=Ct.MENUITEMRADIO}render(){return P`
|
3417
3417
|
<div part="leading-controls">
|
3418
3418
|
<mdc-staticradio
|
3419
3419
|
slot="leading-controls"
|
3420
|
-
?checked="${this.ariaChecked===
|
3420
|
+
?checked="${this.ariaChecked===Pe.TRUE}"
|
3421
3421
|
?disabled="${this.disabled}"
|
3422
3422
|
></mdc-staticradio>
|
3423
3423
|
</div>
|
3424
3424
|
<div part="leading-text">
|
3425
|
-
${this.getText("leading-text-primary-label",
|
3426
|
-
${this.getText("leading-text-secondary-label",
|
3425
|
+
${this.getText("leading-text-primary-label",ot.BODY_MIDSIZE_REGULAR,this.label)}
|
3426
|
+
${this.getText("leading-text-secondary-label",ot.BODY_MIDSIZE_REGULAR,this.secondaryLabel)}
|
3427
3427
|
</div>
|
3428
|
-
`}};
|
3428
|
+
`}};Js.styles=[...Ye.styles],v([x({type:String,reflect:!0,attribute:"aria-checked"})],Js.prototype,"ariaChecked",2);var zc=Js;var Qs=j.constructTagName("menuitemradio");zc.register(Qs);var Mb=zc;var Rb=W`
|
3429
3429
|
:host::part(popover-content) {
|
3430
3430
|
padding: 0.75rem 0.5rem;
|
3431
3431
|
}
|
3432
|
-
`,
|
3432
|
+
`,ru=[Rb];var Vn=class extends Bo(ke){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleMouseClick)}connectedCallback(){super.connectedCallback(),this.role=Ct.MENU,this.focusBackToTrigger=!0,this.focusTrap=!0,this.focusBackToTrigger=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.placement=$t.BOTTOM_START,this.showArrow=!1,this.ariaOrientation=oe.VERTICAL}async firstUpdated(o){var e,s,a;await super.firstUpdated(o),(e=this.triggerElement)==null||e.setAttribute("aria-haspopup",Ct.MENU),((a=(s=this.parentElement)==null?void 0:s.tagName)==null?void 0:a.toLowerCase())===We&&(this.interactive=!0,this.placement=$t.RIGHT_START)}};Vn.styles=[...ke.styles,...ru];var Vc=Vn;Vc.register(We);var Ob=Vc;var Pb=[yt,W`
|
3433
|
+
:host {
|
3434
|
+
--mdc-navitem-color: var(--mds-color-theme-text-primary-normal);
|
3435
|
+
--mdc-navitem-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3436
|
+
--mdc-navitem-border-color: var(--mds-color-theme-outline-button-normal);
|
3437
|
+
--mdc-navitem-expanded-width: 12.75rem;
|
3438
|
+
|
3439
|
+
/* Background color when in default (normal) or active state */
|
3440
|
+
--mdc-navitem-rest-active-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
3441
|
+
--mdc-navitem-hover-background-color: var(--mds-color-theme-button-secondary-hover);
|
3442
|
+
--mdc-navitem-hover-active-background-color: var(--mds-color-theme-button-secondary-active-hover);
|
3443
|
+
--mdc-navitem-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
|
3444
|
+
--mdc-navitem-pressed-active-background-color: var(--mds-color-theme-button-secondary-active-pressed);
|
3445
|
+
--mdc-navitem-disabled-background-color: var(--mds-color-theme-button-secondary-disabled);
|
3446
|
+
--mdc-navitem-disabled-active-background-color: var(--mds-color-theme-button-secondary-active-disabled);
|
3447
|
+
|
3448
|
+
position: relative;
|
3449
|
+
display: flex;
|
3450
|
+
align-items: center;
|
3451
|
+
gap: 0.5rem;
|
3452
|
+
padding: 0.5rem;
|
3453
|
+
color: var(--mdc-navitem-color);
|
3454
|
+
border-color: var(--mdc-navitem-border-color);
|
3455
|
+
border-radius: 1.25rem;
|
3456
|
+
cursor: pointer;
|
3457
|
+
}
|
3458
|
+
|
3459
|
+
:host(:dir(ltr)) {
|
3460
|
+
margin-left: 1rem;
|
3461
|
+
}
|
3462
|
+
|
3463
|
+
:host(:dir(rtl)) {
|
3464
|
+
margin-right: 1rem;
|
3465
|
+
}
|
3466
|
+
|
3467
|
+
:host([show-label]) {
|
3468
|
+
width: var(--mdc-navitem-expanded-width);
|
3469
|
+
}
|
3470
|
+
|
3471
|
+
:host([active]) {
|
3472
|
+
background-color: var(--mdc-navitem-rest-active-background-color);
|
3473
|
+
}
|
3474
|
+
|
3475
|
+
:host([disabled]) {
|
3476
|
+
color: var(--mdc-navitem-disabled-color);
|
3477
|
+
background-color: var(--mdc-navitem-disabled-background-color);
|
3478
|
+
pointer-events: none;
|
3479
|
+
}
|
3480
|
+
|
3481
|
+
:host([active][disabled]) {
|
3482
|
+
background-color: var(--mdc-navitem-disabled-active-background-color);
|
3483
|
+
color: var(--mdc-navitem-disabled-color);
|
3484
|
+
}
|
3485
|
+
|
3486
|
+
:host(:hover) {
|
3487
|
+
background-color: var(--mdc-navitem-hover-background-color);
|
3488
|
+
}
|
3489
|
+
|
3490
|
+
:host(:hover[active]) {
|
3491
|
+
background-color: var(--mdc-navitem-hover-active-background-color);
|
3492
|
+
}
|
3493
|
+
|
3494
|
+
:host(:active) {
|
3495
|
+
background-color: var(--mdc-navitem-pressed-background-color);
|
3496
|
+
}
|
3497
|
+
|
3498
|
+
:host(:active[active]) {
|
3499
|
+
background-color: var(--mdc-navitem-pressed-active-background-color);
|
3500
|
+
}
|
3501
|
+
|
3502
|
+
:host::before {
|
3503
|
+
content: '';
|
3504
|
+
display: block;
|
3505
|
+
position: absolute;
|
3506
|
+
background-color: var(--mdc-navitem-color);
|
3507
|
+
width: 0.25rem;
|
3508
|
+
height: 1rem;
|
3509
|
+
pointer-events: none;
|
3510
|
+
visibility: hidden;
|
3511
|
+
}
|
3512
|
+
|
3513
|
+
:host(:dir(ltr))::before {
|
3514
|
+
left: -1rem;
|
3515
|
+
border-radius: 0 0.25rem 0.25rem 0;
|
3516
|
+
}
|
3517
|
+
|
3518
|
+
:host(:dir(rtl))::before {
|
3519
|
+
right: -1rem;
|
3520
|
+
border-radius: 0.25rem 0 0 0.25rem;
|
3521
|
+
}
|
3522
|
+
|
3523
|
+
:host([active])::before {
|
3524
|
+
visibility: visible;
|
3525
|
+
}
|
3526
|
+
|
3527
|
+
:host([disabled])::before {
|
3528
|
+
background-color: var(--mdc-navitem-disabled-color);
|
3529
|
+
}
|
3530
|
+
|
3531
|
+
:host::part(text-container) {
|
3532
|
+
width: 100%;
|
3533
|
+
overflow: hidden;
|
3534
|
+
text-overflow: ellipsis;
|
3535
|
+
white-space: nowrap;
|
3536
|
+
}
|
3537
|
+
|
3538
|
+
:host::part(icon-container) {
|
3539
|
+
position: relative;
|
3540
|
+
}
|
3541
|
+
|
3542
|
+
:host(:dir(ltr)) .badge {
|
3543
|
+
position: absolute;
|
3544
|
+
right: -0.375rem;
|
3545
|
+
top: -0.375rem;
|
3546
|
+
}
|
3547
|
+
|
3548
|
+
:host(:dir(rtl)) .badge {
|
3549
|
+
position: absolute;
|
3550
|
+
left: -0.375rem;
|
3551
|
+
top: -0.375rem;
|
3552
|
+
}
|
3553
|
+
|
3554
|
+
:host(:not([show-label]))::part(trailing-arrow) {
|
3555
|
+
--mdc-icon-size: 0.75rem;
|
3556
|
+
}
|
3557
|
+
|
3558
|
+
:host([show-label])::part(trailing-arrow) {
|
3559
|
+
--mdc-icon-size: 1rem;
|
3560
|
+
flex-shrink: 0;
|
3561
|
+
}
|
3562
|
+
|
3563
|
+
:host(:dir(ltr)) .arrow {
|
3564
|
+
position: absolute;
|
3565
|
+
right: -0.75rem;
|
3566
|
+
top: 0.875rem;
|
3567
|
+
}
|
3568
|
+
|
3569
|
+
:host(:dir(rtl)) .arrow {
|
3570
|
+
position: absolute;
|
3571
|
+
left: -0.75rem;
|
3572
|
+
top: 0.875rem;
|
3573
|
+
}
|
3574
|
+
`,..._t()],iu=Pb;var Bn=j.constructTagName("sidenavigation"),br={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",HIDDEN:"hidden"},ta={VARIANT:br.FLEXIBLE};var Wo=j.constructTagName("navitem"),ou={DOT:Be.DOT,COUNTER:Be.COUNTER},su={RIGHT_ARROW:"arrow-right-bold"},au={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:bt.SPAN,SIZE:_i[24],VARIANT:br.FLEXIBLE};var Db=W`
|
3575
|
+
:host {
|
3576
|
+
--mdc-sidenavigation-expanded-width: 15rem;
|
3577
|
+
--mdc-sidenavigation-collapsed-width: 4.5rem;
|
3578
|
+
|
3579
|
+
display: flex;
|
3580
|
+
height: 100%;
|
3581
|
+
}
|
3582
|
+
|
3583
|
+
:host([expanded]) {
|
3584
|
+
width: var(--mdc-sidenavigation-expanded-width);
|
3585
|
+
}
|
3586
|
+
|
3587
|
+
:host(:not([expanded])) {
|
3588
|
+
width: var(--mdc-sidenavigation-collapsed-width);
|
3589
|
+
}
|
3590
|
+
|
3591
|
+
:host::part(side-navigation-container) {
|
3592
|
+
display: flex;
|
3593
|
+
flex-direction: column;
|
3594
|
+
width: 100%;
|
3595
|
+
}
|
3596
|
+
|
3597
|
+
:host::part(scrollable-section) {
|
3598
|
+
flex-grow: 1;
|
3599
|
+
overflow: auto;
|
3600
|
+
padding: 1rem 0;
|
3601
|
+
min-height: 0;
|
3602
|
+
}
|
3603
|
+
|
3604
|
+
:host::part(fixed-section) {
|
3605
|
+
flex-shrink: 0;
|
3606
|
+
display: flex;
|
3607
|
+
flex-direction: column;
|
3608
|
+
align-items: flex-start;
|
3609
|
+
padding-bottom: 1rem;
|
3610
|
+
gap: 0.5rem;
|
3611
|
+
}
|
3612
|
+
|
3613
|
+
:host::part(brand-logo-container) {
|
3614
|
+
display: flex;
|
3615
|
+
align-items: center;
|
3616
|
+
width: 100%;
|
3617
|
+
gap: 0.5rem;
|
3618
|
+
border-radius: 1.25rem;
|
3619
|
+
}
|
3620
|
+
|
3621
|
+
:host(:dir(ltr))::part(brand-logo-container) {
|
3622
|
+
padding: 0.5rem 0rem 0.5rem 1.5rem;
|
3623
|
+
}
|
3624
|
+
|
3625
|
+
:host(:dir(rtl))::part(brand-logo-container) {
|
3626
|
+
padding: 0.5rem 1.5rem 0.5rem 0rem;
|
3627
|
+
}
|
3628
|
+
|
3629
|
+
::slotted([slot="brand-logo"]) {
|
3630
|
+
width: 1.5rem;
|
3631
|
+
height: 1.5rem;
|
3632
|
+
flex-shrink: 0;
|
3633
|
+
aspect-ratio: 1 / 1;
|
3634
|
+
}
|
3635
|
+
|
3636
|
+
:host::part(separator) {
|
3637
|
+
margin-bottom: 0.75rem;
|
3638
|
+
}
|
3639
|
+
`,nu=[Db];var Un=class{constructor(o,e,s){this.variant=o,this.expanded=e,this.parentNavTooltipText=s}hasSiblingWithTriggerId(o){var a,h;let e=o==null?void 0:o.getAttribute("id");return e?Array.from((h=(a=o==null?void 0:o.parentElement)==null?void 0:a.children)!=null?h:[]).some(m=>m!==o&&m.tagName.toLowerCase()===We&&m.getAttribute("triggerid")===e):!1}getParentNavItems(o){if(!o)return[];let e=[],s=o;for(;s;){let a=s==null?void 0:s.closest(We);if(!a)break;let h=a.getAttribute("triggerid");if(!h)break;let m=document.getElementById(h);if(m&&m.tagName.toLowerCase()===Wo)e.push(m),s=m;else break}return e}setCurrentActiveNavItem(o){var h;let e=((h=this.currentActiveNavItem)==null?void 0:h.navId)===(o==null?void 0:o.navId),s=(o==null?void 0:o.disableAriaCurrent)||this.hasSiblingWithTriggerId(o);if(e||s||(this.currentActiveNavItem&&(this.currentActiveNavItem.removeAttribute("aria-current"),this.currentActiveNavItem.removeAttribute("active"),this.getParentNavItems(this.currentActiveNavItem).forEach(E=>{E.removeAttribute("tooltip-text"),E.removeAttribute("active")})),!o))return;this.currentActiveNavItem=o,o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavItems(o).forEach(m=>{m.setAttribute("tooltip-text",this.parentNavTooltipText||""),m.setAttribute("tooltip-placement",$t.BOTTOM),m.setAttribute("active","")})}};Un.context=Bn;var Hn=Un;var lr=class extends ii{constructor(){super({context:Hn.context,initialValue:new Hn(ta.VARIANT,!0)});this.variant=ta.VARIANT;this.customerName="";this.flexibleExpanded=this.variant===ta.VARIANT;this.arrowDirection=this.flexibleExpanded?ge.NEGATIVE:ge.POSITIVE;this.updateExpansionState=()=>{switch(this.variant){case br.FLEXIBLE:this.expanded=this.flexibleExpanded;break;case br.FIXED_EXPANDED:this.expanded=!0;break;case br.FIXED_COLLAPSED:this.expanded=!1;break;default:}}}connectedCallback(){super.connectedCallback(),this.role=Ct.NAVIGATION}static get Context(){return Hn.context}updated(e){super.updated(e),e.has("variant")&&(this.setVariant(this.variant),this.updateExpansionState()),(e.has("variant")||e.has("expanded"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.parentNavTooltipText!==this.parentNavTooltipText)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.parentNavTooltipText=this.parentNavTooltipText,this.context.updateObservers())}setVariant(e){this.setAttribute("variant",Object.values(br).includes(e)?e:ta.VARIANT)}toggleSideNavigation(){this.flexibleExpanded=!this.flexibleExpanded,this.arrowDirection=this.arrowDirection===ge.NEGATIVE?ge.POSITIVE:ge.NEGATIVE,this.updateExpansionState()}render(){var e;return this.variant===br.HIDDEN?P``:P`
|
3640
|
+
<div part="side-navigation-container" id='side-nav-container'>
|
3641
|
+
<div part="scrollable-section">
|
3642
|
+
<slot name="scrollable-section"></slot>
|
3643
|
+
</div>
|
3644
|
+
<mdc-divider variant="gradient" part="separator"></mdc-divider>
|
3645
|
+
<div part="fixed-section">
|
3646
|
+
<slot name="fixed-section"></slot>
|
3647
|
+
<div part="brand-logo-container">
|
3648
|
+
<slot name="brand-logo"></slot>
|
3649
|
+
${this.expanded?P`<mdc-text type=${ot.BODY_MIDSIZE_MEDIUM} tagname=${bt.SPAN}
|
3650
|
+
part="label">${this.customerName}</mdc-text>`:Y}
|
3651
|
+
</div>
|
3652
|
+
</div>
|
3653
|
+
</div>
|
3654
|
+
${this.variant===br.FLEXIBLE?P`<mdc-divider
|
3655
|
+
orientation=${ji.VERTICAL}
|
3656
|
+
variant=${Us.GRADIENT}
|
3657
|
+
arrow-direction=${this.arrowDirection}
|
3658
|
+
button-position=${ge.POSITIVE}
|
3659
|
+
> <mdc-button aria-label=${(e=this.grabberBtnAriaLabel)!=null?e:""} @click=${this.toggleSideNavigation}
|
3660
|
+
aria-expanded="${!!this.expanded}" aria-controls='side-nav-container'
|
3661
|
+
part="grabber-btn"></mdc-button>
|
3662
|
+
</mdc-divider>`:Y}
|
3663
|
+
`}};lr.styles=[...K.styles,...nu],v([x({type:String,reflect:!0})],lr.prototype,"variant",2),v([x({type:String,reflect:!0,attribute:"customer-name"})],lr.prototype,"customerName",2),v([x({type:Boolean,reflect:!0})],lr.prototype,"expanded",2),v([x({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],lr.prototype,"grabberBtnAriaLabel",2),v([x({type:String,reflect:!0,attribute:"parent-nav-tooltip-text"})],lr.prototype,"parentNavTooltipText",2),v([Tt()],lr.prototype,"flexibleExpanded",2),v([Tt()],lr.prototype,"arrowDirection",2);var qi=lr;var qe=class extends ce(Ye){constructor(){super(...arguments);this.maxCounter=au.MAX_COUNTER;this.ariaLabel=null;this.sideNavigationContext=go.consume({host:this,context:qi.Context});this.emitNavItemActiveChange=e=>{let s=new CustomEvent("activechange",{detail:{navId:this.navId,active:e},bubbles:!0});this.dispatchEvent(s)}}connectedCallback(){super.connectedCallback(),this.variant=void 0,this.tooltipPlacement=void 0,this.addEventListener("click",this.handleClickEvent),!this.navId&&this.onerror&&this.onerror("[mdc-navitem] navId is required and was not provided.")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClickEvent)}updated(){var s,a;let e=(s=this.sideNavigationContext)==null?void 0:s.value;if(e)if(this.showLabel=this.isNested()?!0:e.expanded,this.showLabel)this.removeAttribute("aria-label");else{let h=(a=this.label)!=null?a:"";this.ariaLabel=this.ariaLabel||h,this.setAttribute("aria-label",h)}}isNested(){let e=this.parentElement;for(;e;){if(e.tagName.toLowerCase()===We)return!0;e=e.parentElement}return!1}modifyIconName(e){if(!this.iconName)return;let s=this.iconName.endsWith("-filled"),a=wi(this.iconName);e?s||(this.prevIconName=this.iconName,this.iconName=`${a}-filled`):this.prevIconName&&(this.iconName=this.prevIconName)}handleClickEvent(){this.disabled||this.emitNavItemActiveChange(this.active)}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active)}renderTextLabel(e){return P`
|
3664
|
+
<mdc-text
|
3665
|
+
type=${this.active?ot.BODY_MIDSIZE_BOLD:ot.BODY_MIDSIZE_MEDIUM}
|
3666
|
+
tagname=${bt.SPAN}
|
3667
|
+
part="text-container">
|
3668
|
+
${e}
|
3669
|
+
</mdc-text>
|
3670
|
+
`}renderArrowIcon(e){let s=e?"":"arrow";return P`
|
3671
|
+
<mdc-icon
|
3672
|
+
name=${su.RIGHT_ARROW}
|
3673
|
+
length-unit="rem"
|
3674
|
+
part="trailing-arrow"
|
3675
|
+
class="${s}">
|
3676
|
+
</mdc-icon>
|
3677
|
+
`}renderBadge(e){let s=e?"":"badge";return Object.values(ou).includes(this.badgeType)?P`
|
3678
|
+
<mdc-badge
|
3679
|
+
class="${s}"
|
3680
|
+
type="${lt(this.badgeType)}"
|
3681
|
+
counter="${lt(this.counter)}"
|
3682
|
+
max-counter="${this.maxCounter}">
|
3683
|
+
</mdc-badge>
|
3684
|
+
`:Y}render(){var s;let e=(s=this.sideNavigationContext)==null?void 0:s.value;return P`
|
3685
|
+
<div part="icon-container">
|
3686
|
+
<mdc-icon
|
3687
|
+
name="${this.iconName}"
|
3688
|
+
size="1.5"
|
3689
|
+
length-unit="rem"
|
3690
|
+
part="icon"
|
3691
|
+
></mdc-icon>
|
3692
|
+
${this.showLabel?Y:this.renderBadge(this.showLabel)}
|
3693
|
+
</div>
|
3694
|
+
${this.showLabel?P`${this.renderTextLabel(this.label)}${this.renderBadge(this.showLabel)}`:Y}
|
3695
|
+
${e!=null&&e.hasSiblingWithTriggerId(this)?this.renderArrowIcon(this.showLabel):Y}
|
3696
|
+
`}};qe.styles=[...Ye.styles,...iu],v([x({type:Boolean,reflect:!0})],qe.prototype,"active",2),v([x({type:String,reflect:!0,attribute:"badge-type"})],qe.prototype,"badgeType",2),v([x({type:Number,reflect:!0})],qe.prototype,"counter",2),v([x({type:Number,attribute:"max-counter",reflect:!0})],qe.prototype,"maxCounter",2),v([x({type:String,reflect:!0,attribute:"nav-id"})],qe.prototype,"navId",2),v([x({type:Boolean,reflect:!0,attribute:"show-label"})],qe.prototype,"showLabel",2),v([x({type:String,attribute:"aria-label"})],qe.prototype,"ariaLabel",2),v([x({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],qe.prototype,"disableAriaCurrent",2);var Bc=qe;Bc.register(Wo);var Fb=Bc;var $b=W`
|
3697
|
+
:host {
|
3698
|
+
gap: 0.25rem;
|
3699
|
+
}
|
3700
|
+
|
3701
|
+
:host(:not([show-label])) ::slotted(mdc-text) {
|
3702
|
+
display: none;
|
3703
|
+
}
|
3704
|
+
|
3705
|
+
:host(:dir(ltr)) ::slotted(mdc-text) {
|
3706
|
+
padding-left: 1.75rem;
|
3707
|
+
}
|
3708
|
+
|
3709
|
+
:host(:dir(rtl)) ::slotted(mdc-text) {
|
3710
|
+
padding-right: 1.75rem;
|
3711
|
+
}
|
3712
|
+
|
3713
|
+
::slotted(mdc-divider) {
|
3714
|
+
margin: 0.75rem 0;
|
3715
|
+
}
|
3716
|
+
`,lu=[$b];var Yo=class extends Bo(Uo){constructor(){super(...arguments);this.ariaLabel=null;this.sideNavigationContext=go.consume({host:this,context:qi.Context});this.handleNestedNavItemActiveChange=e=>{var a;let s=this.findNav(this.navItems||[],e.detail.navId);(a=this.sideNavigationContext)!=null&&a.value&&this.sideNavigationContext.value.setCurrentActiveNavItem(s)};this.findNav=(e,s)=>e.find(a=>a.navId===s)}connectedCallback(){super.connectedCallback(),this.ariaOrientation=oe.VERTICAL,this.addEventListener("activechange",this.handleNestedNavItemActiveChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("activechange",this.handleNestedNavItemActiveChange)}updated(){var a;let e=(a=this.sideNavigationContext)==null?void 0:a.value;if(!e)return;let{expanded:s}=e;this.showLabel=s}get navItems(){return Array.from(this.querySelectorAll(`${Wo}:not([disabled])`))}};Yo.styles=[...Uo.styles,...lu],v([x({type:Boolean,reflect:!0,attribute:"show-label"})],Yo.prototype,"showLabel",2),v([x({type:String,attribute:"aria-label"})],Yo.prototype,"ariaLabel",2);var Uc=Yo;Uc.register(Vo);var zb=Uc;var ea=class extends K{constructor(){super(...arguments);this.handleClick=e=>{this.toggleCheckedState(e.target)}}connectedCallback(){super.connectedCallback(),this.setAttribute("role",Ct.GROUP),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick)}toggleCheckedState(e){if(!(e instanceof HTMLElement)||e.hasAttribute("disabled"))return;let s=e.tagName.toLowerCase(),a=e.getAttribute("aria-checked")===Pe.TRUE;switch(s){case zn:e.setAttribute("aria-checked",String(!a));break;case Qs:if(a)return;this.radios.forEach(h=>{let m=h===e?Pe.TRUE:Pe.FALSE;h.setAttribute("aria-checked",m)});break;default:break}}render(){return P`<slot></slot>`}};ea.styles=[...K.styles],v([Mt({selector:`${Qs}:not([disabled])`})],ea.prototype,"radios",2);var Hc=ea;Hc.register(Fn);var Vb=Hc;var Gn=j.constructTagName("optgroup"),Gc="header-id";var Bb=W`
|
3433
3717
|
:host {
|
3434
3718
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3435
3719
|
}
|
@@ -3442,23 +3726,23 @@
|
|
3442
3726
|
color: var(--mdc-optgroup-disabled-color);
|
3443
3727
|
cursor: default;
|
3444
3728
|
}
|
3445
|
-
`,
|
3729
|
+
`,cu=[Bb];var qo=class extends Ht(zt(K)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let o=this.label?P`
|
3446
3730
|
<mdc-text
|
3447
|
-
id="${
|
3731
|
+
id="${Gc}"
|
3448
3732
|
part="header-text"
|
3449
|
-
type="${
|
3450
|
-
tagname="${
|
3733
|
+
type="${ot.BODY_MIDSIZE_BOLD}"
|
3734
|
+
tagname="${bt.SPAN}"
|
3451
3735
|
>${this.label}</mdc-text>
|
3452
|
-
`:
|
3736
|
+
`:Y;return P`
|
3453
3737
|
<div
|
3454
3738
|
role="group"
|
3455
|
-
aria-labelledby="${this.label?
|
3739
|
+
aria-labelledby="${this.label?Gc:""}"
|
3456
3740
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3457
3741
|
>
|
3458
3742
|
${o}
|
3459
3743
|
<slot role="presentation"></slot>
|
3460
3744
|
</div>
|
3461
|
-
`}};
|
3745
|
+
`}};qo.styles=[...K.styles,...cu],v([x({type:String,reflect:!0})],qo.prototype,"label",2),v([Mt({selector:"mdc-option"})],qo.prototype,"options",2);var jc=qo;jc.register(Gn);var Ub=jc;var du="check-bold",ra=j.constructTagName("option");var Hb=W`
|
3462
3746
|
:host {
|
3463
3747
|
--mdc-option-icon-width: 1rem;
|
3464
3748
|
|
@@ -3482,22 +3766,22 @@
|
|
3482
3766
|
/** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
|
3483
3767
|
width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
|
3484
3768
|
}
|
3485
|
-
`,
|
3769
|
+
`,hu=[Hb];var Ki=class extends Ce(Hr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Ws.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}handleDefaultSlotChange(){var s,a,h;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");e&&!this.label&&(this.label=(h=(a=e.assignedNodes()[0])==null?void 0:a.textContent)==null?void 0:h.trim())}updateAttribute(e,s){this.setAttribute(e,s)}update(e){super.update(e),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?P`
|
3486
3770
|
<div part="leading-icon">
|
3487
|
-
<mdc-icon length-unit="rem" slot="leading-controls" name="${
|
3771
|
+
<mdc-icon length-unit="rem" slot="leading-controls" name="${lt(this.prefixIcon)}"></mdc-icon>
|
3488
3772
|
</div>
|
3489
|
-
`:
|
3490
|
-
<mdc-icon length-unit="rem" slot="trailing-controls" name="${
|
3491
|
-
`:
|
3773
|
+
`:Y,s=this.selected?P`
|
3774
|
+
<mdc-icon length-unit="rem" slot="trailing-controls" name="${du}"></mdc-icon>
|
3775
|
+
`:Y;return P`
|
3492
3776
|
${e}
|
3493
3777
|
<div part="leading-text">
|
3494
|
-
${this.getText("leading-text-primary-label",
|
3778
|
+
${this.getText("leading-text-primary-label",ot.BODY_MIDSIZE_REGULAR,this.label)}
|
3495
3779
|
</div>
|
3496
3780
|
<div part="trailing">
|
3497
3781
|
${s}
|
3498
3782
|
</div>
|
3499
3783
|
<slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
|
3500
|
-
`}};
|
3784
|
+
`}};Ki.styles=[...Hr.styles,...hu],v([x({type:Boolean,reflect:!0})],Ki.prototype,"selected",2),v([x({type:String,reflect:!0,attribute:"prefix-icon"})],Ki.prototype,"prefixIcon",2),v([x({type:String,reflect:!0,attribute:"aria-label"})],Ki.prototype,"ariaLabel",2);var Wc=Ki;Wc.register(ra);var Gb=Wc;ke.register(up);var jb=ke;var Wb=[yt,W`
|
3501
3785
|
:host {
|
3502
3786
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
3503
3787
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -3581,7 +3865,7 @@
|
|
3581
3865
|
border: var(--mdc-progressbar-border);
|
3582
3866
|
}
|
3583
3867
|
}
|
3584
|
-
`],
|
3868
|
+
`],mu=Wb;var pu=j.constructTagName("progressbar"),jn={DEFAULT:"default",INLINE:"inline"},uu={VARIANT:jn.DEFAULT,VALIDATION:Jt.DEFAULT};var Xi=class extends Ht(je){constructor(){super(...arguments);this.variant=uu.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var h;let e=this.getValidationVariant(),s=this.clampedValue>0&&this.clampedValue<100,a=this.error?"100":`${this.clampedValue}`;return P`
|
3585
3869
|
<div
|
3586
3870
|
part="progress-container ${s?"gap":""}"
|
3587
3871
|
role="progressbar"
|
@@ -3593,16 +3877,16 @@
|
|
3593
3877
|
<div part="progress-bar ${e}" style="width: ${a}%"></div>
|
3594
3878
|
<div part="remaining"></div>
|
3595
3879
|
</div>
|
3596
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${
|
3597
|
-
${e?
|
3880
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${zr()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=Jt.ERROR:this.clampedValue===100?this.helpTextType=Jt.SUCCESS:this.helpTextType=Jt.DEFAULT,this.helpTextType}render(){let e=this.variant===jn.INLINE;return P`
|
3881
|
+
${e?P`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:P`
|
3598
3882
|
<div part="label-container">
|
3599
3883
|
${this.renderLabelElement()}
|
3600
|
-
${this.variant===
|
3884
|
+
${this.variant===jn.DEFAULT&&this.label?P`<span part="percentage">${this.clampedValue}%</span>`:""}
|
3601
3885
|
</div>
|
3602
3886
|
${this.renderProgressbar()}
|
3603
3887
|
${this.renderHelperText()}
|
3604
3888
|
`}
|
3605
|
-
`}};
|
3889
|
+
`}};Xi.styles=[...je.styles,...mu],v([x({type:String,reflect:!0})],Xi.prototype,"variant",2),v([x({type:String,reflect:!0})],Xi.prototype,"value",2),v([x({type:Boolean,attribute:"error"})],Xi.prototype,"error",2);var ia=Xi;ia.register(pu);var Yb=ia;var qb=W`
|
3606
3890
|
:host {
|
3607
3891
|
--mdc-spinner-size: 3rem;
|
3608
3892
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -3646,7 +3930,7 @@
|
|
3646
3930
|
color: var(--mdc-progress-error-color);
|
3647
3931
|
margin: 0.5rem;
|
3648
3932
|
}
|
3649
|
-
`,
|
3933
|
+
`,fu=[qb];var vu=j.constructTagName("progressspinner"),qt={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Yc={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var qc=l=>{if(l===0)return 0;let o=l/100*qt.CIRCUMFERENCE-qt.GAP_SIZE;return Math.max(o,.1*l)},gu=l=>{let o=qt.CIRCUMFERENCE-qc(l)-2*qt.GAP_SIZE;return l===0?qt.CIRCUMFERENCE:o<0?0:o},bu=l=>l===0?0:qt.GAP_SIZE*.5,yu=(l,o)=>{let e=o+qt.GAP_SIZE*1.5;return l===0?0:e};var Wn=class extends ia{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var h;let o=qc(this.clampedValue),e=gu(this.clampedValue),s=bu(this.clampedValue),a=yu(this.clampedValue,o);return P`
|
3650
3934
|
<div
|
3651
3935
|
part="spinner-container ${this.variant}"
|
3652
3936
|
role="progressbar"
|
@@ -3676,22 +3960,22 @@
|
|
3676
3960
|
/>
|
3677
3961
|
</svg>
|
3678
3962
|
</div>
|
3679
|
-
`}renderErrorState(){var o;return
|
3963
|
+
`}renderErrorState(){var o;return P`
|
3680
3964
|
<mdc-icon
|
3681
3965
|
part="error-icon"
|
3682
3966
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
3683
|
-
name="${
|
3967
|
+
name="${Yc.ERROR_LEGACY_FILLED}"
|
3684
3968
|
size="${qt.ERROR_ICON_SIZE}"
|
3685
3969
|
length-unit="${qt.ICON_LENGTH_UNIT}"></mdc-icon>
|
3686
|
-
`}renderSuccessState(){var o;return
|
3970
|
+
`}renderSuccessState(){var o;return P`
|
3687
3971
|
<mdc-icon
|
3688
3972
|
part="success-icon"
|
3689
3973
|
aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
|
3690
|
-
name="${
|
3974
|
+
name="${Yc.CHECK_CIRCLE_BOLD}"
|
3691
3975
|
size="${qt.SUCCESS_ICON_SIZE}"
|
3692
3976
|
length-unit="${qt.ICON_LENGTH_UNIT}"></mdc-icon>
|
3693
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():
|
3694
|
-
${this.renderProgressSpinner()}`}};
|
3977
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():P`
|
3978
|
+
${this.renderProgressSpinner()}`}};Wn.styles=[...K.styles,...fu];var Kc=Wn;Kc.register(vu);var Kb=Kc;var Xb=[yt,W`
|
3695
3979
|
:host{
|
3696
3980
|
display: flex;
|
3697
3981
|
flex-direction: row;
|
@@ -3778,10 +4062,10 @@
|
|
3778
4062
|
display: none;
|
3779
4063
|
}
|
3780
4064
|
|
3781
|
-
`,..._t(!0)],
|
4065
|
+
`,..._t(!0)],Eu=Xb;var Zi=class extends Ce(Ht(ve)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?P`<div class="mdc-radio__label-container">
|
3782
4066
|
${this.renderLabel()}
|
3783
4067
|
${this.renderHelperText()}
|
3784
|
-
</div>`:
|
4068
|
+
</div>`:Y}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let s=e.constructor;this.dispatchEvent(new s(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(s=>{s.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(s=>{this.onerror&&this.onerror(s)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,s){this.updateComplete.then(()=>{e.forEach(a=>{a.setComponentValidity(s)})}).catch(a=>{this.onerror&&this.onerror(a)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let s=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(s,!0);else{let a=s.some(E=>E.required),h=!!s.find(E=>E.checked),m=a&&!h;this.setGroupValidity(s,!m)}this.internals.setFormValue(e)}handleChange(e){var h;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(m=>{var w;let E=(w=m.shadowRoot)==null?void 0:w.querySelector("input");E&&(m.checked=!1,E.checked=!1)}),this.checked=!0;let a=(h=this.shadowRoot)==null?void 0:h.querySelector("input");a&&(a.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,s,a){var h,m;(m=(h=e[s].shadowRoot)==null?void 0:h.querySelector("input"))==null||m.focus(),e[s].handleChange(a)}handleKeyDown(e){var m;if(this.disabled)return;let a=this.getAllRadiosWithinSameGroup().filter(E=>!E.disabled),h=a.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let E=(h+1)%a.length;this.updateRadio(a,E,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let E=(h-1+a.length)%a.length;this.updateRadio(a,E,e)}else e.key===" "&&this.updateRadio(a,h,e);this.updateTabIndex(),e.key==="Enter"&&((m=this.form)==null||m.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),s=e.find(h=>h.checked),a=e.find(h=>!h.disabled);e.forEach(h=>{var E;let m=(E=h.shadowRoot)==null?void 0:E.querySelector("input");m&&(m.tabIndex=-1,(h===s||!s&&h===a)&&(m.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return P`
|
3785
4069
|
<mdc-staticradio
|
3786
4070
|
class="mdc-focus-ring"
|
3787
4071
|
?checked="${this.checked}"
|
@@ -3793,8 +4077,8 @@
|
|
3793
4077
|
type="radio"
|
3794
4078
|
role="radio"
|
3795
4079
|
?autofocus="${this.autofocus}"
|
3796
|
-
name="${
|
3797
|
-
value="${
|
4080
|
+
name="${lt(this.name)}"
|
4081
|
+
value="${lt(this.value)}"
|
3798
4082
|
?required="${this.required}"
|
3799
4083
|
@change=${this.handleChange}
|
3800
4084
|
@keydown=${this.handleKeyDown}
|
@@ -3803,12 +4087,12 @@
|
|
3803
4087
|
?disabled=${this.disabled}
|
3804
4088
|
class="mdc-radio__input"
|
3805
4089
|
aria-checked="${this.checked}"
|
3806
|
-
aria-describedby="${
|
4090
|
+
aria-describedby="${lt(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
3807
4091
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3808
4092
|
/>
|
3809
4093
|
</mdc-staticradio>
|
3810
4094
|
${this.renderLabelAndHelperText()}
|
3811
|
-
`}};
|
4095
|
+
`}};Zi.styles=[...ve.styles,...Eu],v([x({type:Boolean,reflect:!0})],Zi.prototype,"checked",2),v([x({type:Boolean,reflect:!0})],Zi.prototype,"readonly",2),v([x({type:Boolean,reflect:!0})],Zi.prototype,"autofocus",2);var Xc=Zi;var Yn=j.constructTagName("radio");Xc.register(Yn);var Zb=Xc;var oa=class extends kn{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,s,a,h,m;(m=(h=(a=(s=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:s.flatMap(E=>E.assignedElements({flatten:!0})))==null?void 0:a.filter(E=>E.tagName.toLowerCase()===Yn||E.tagName.toLowerCase()===un))==null?void 0:h.filter(E=>!E.hasAttribute("name")))==null||m.forEach(E=>{E.setAttribute("name",this.name),this.required&&E.setAttribute("required",this.required.toString())})}};oa.styles=[...kn.styles],v([x({type:String})],oa.prototype,"name",2);var Zc=oa;var xu=j.constructTagName("radiogroup");Zc.register(xu);var Jb=Zc;var Qb=W`
|
3812
4096
|
|
3813
4097
|
:host::part(filters-container){
|
3814
4098
|
display: flex;
|
@@ -3835,9 +4119,9 @@
|
|
3835
4119
|
scrollbar-width: none;
|
3836
4120
|
}
|
3837
4121
|
|
3838
|
-
`,
|
4122
|
+
`,Tu=[Qb];var Au=j.constructTagName("searchfield"),sa={TYPE:Ac.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:wn};var Ji=class extends Do{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=sa.ICON,this.trailingButton=sa.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(s=>{s.matches(sa.INPUT_CHIP_TAG)||s.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(s=>{s.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return P`
|
3839
4123
|
${this.renderLabelElement()}
|
3840
|
-
<div class="${
|
4124
|
+
<div class="${To({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
|
3841
4125
|
${this.renderLeadingIcon()}
|
3842
4126
|
<div part='scrollable-container' tabindex='-1'>
|
3843
4127
|
<div part="filters-container"
|
@@ -3845,11 +4129,11 @@
|
|
3845
4129
|
@keydown=${e=>e.key==="Enter"?this.inputElement.focus():null}
|
3846
4130
|
@keyup=${e=>e.key===" "?this.inputElement.focus():null}>
|
3847
4131
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot></div>
|
3848
|
-
${this.renderInputElement(
|
4132
|
+
${this.renderInputElement(sa.TYPE,this.hasInputChips)}
|
3849
4133
|
</div>
|
3850
4134
|
${this.renderTrailingButton(this.hasInputChips)}
|
3851
4135
|
</div>
|
3852
|
-
`}};
|
4136
|
+
`}};Ji.styles=[...Do.styles,...Tu],v([Mt({slot:"filters"})],Ji.prototype,"inputChips",2),v([Tt()],Ji.prototype,"isInputFocused",2),v([Tt()],Ji.prototype,"hasInputChips",2);var Jc=Ji;Jc.register(Au);var ty=Jc;var _u=j.constructTagName("select"),qn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var ey=W`
|
3853
4137
|
:host {
|
3854
4138
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
3855
4139
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -3955,7 +4239,7 @@
|
|
3955
4239
|
:host([help-text-type="warning"])::part(base-container) {
|
3956
4240
|
border-color: var(--mdc-select-warning-border-color);
|
3957
4241
|
}
|
3958
|
-
`,
|
4242
|
+
`,Su=[ey,..._t(!0)];var he=class extends Ce(Ht(ve)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=qn.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(s=>s.tagName.toLowerCase()===ra?s:s.tagName.toLowerCase()===Gn?Array.from(s.children).filter(a=>a.tagName.toLowerCase()===ra):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=qn.ARROW_UP,this.updateActivedescendant()}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=qn.ARROW_DOWN}updateTabIndexForAllOptions(e){var a;let s=!1;this.getAllValidOptions().forEach(h=>{h===e?(this.setSelectedValue(h),s=!0,h.setAttribute("selected",""),h.setAttribute("tabindex","0")):(h==null||h.setAttribute("tabindex","-1"),h==null||h.removeAttribute("selected"))}),!s&&((a=this.getAllValidOptions()[0])==null||a.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var s,a,h,m;this.selectedValueText=(a=(s=e==null?void 0:e.getAttribute("label"))!=null?s:e==null?void 0:e.textContent)!=null?a:"",this.selectedIcon=e==null?void 0:e.getAttribute("prefix-icon"),this.selectedValue=(m=(h=e==null?void 0:e.getAttribute("value"))!=null?h:e==null?void 0:e.textContent)!=null?m:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.selectedIcon=null,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var s;switch(e.key){case gt.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case gt.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(s=this.form)==null||s.requestSubmit();break;case gt.ESCAPE:this.closePopover(),e.stopPropagation();break;case gt.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case gt.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case gt.ARROW_DOWN:case gt.ARROW_UP:case gt.PAGE_DOWN:case gt.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case gt.ARROW_DOWN:case gt.ARROW_UP:case gt.ENTER:case gt.SPACE:this.openPopover(),e.preventDefault();break;case gt.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case gt.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let s=this.getAllValidOptions(),a=s.findIndex(m=>m===e.target),h=this.getNewIndexBasedOnKey(e.key,a,s.length);h!==-1&&(this.setFocusAndTabIndex(h),e.preventDefault())}getNewIndexBasedOnKey(e,s,a){return e===gt.ARROW_DOWN&&s!==a-1?s+1:e===gt.ARROW_UP&&s>0?s-1:e===gt.PAGE_DOWN?s+10>a?a-1:s+10:e===gt.PAGE_UP?s-10<0?0:s-10:-1}updateActivedescendant(e){var a,h;let s=this.getAllValidOptions().findIndex(m=>m===e);this.activeDescendant=((a=this.getAllValidOptions()[s])==null?void 0:a.id)||((h=this.getAllValidOptions()[0])==null?void 0:h.id)}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var s;(s=this.getAllValidOptions()[e])==null||s.focus(),this.getAllValidOptions().forEach((a,h)=>{let m=e===h?"0":"-1";a==null||a.setAttribute("tabindex",m)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),s=e.findIndex(a=>a==null?void 0:a.hasAttribute("selected"));s!==-1?(this.setSelectedValue(e[s]),this.updateTabIndexForAllOptions(e[s])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return P`
|
3959
4243
|
<select
|
3960
4244
|
part="native-select"
|
3961
4245
|
id="${this.id}"
|
@@ -3970,7 +4254,7 @@
|
|
3970
4254
|
>
|
3971
4255
|
${this.getOptionsContentFromSlot()}
|
3972
4256
|
</select>
|
3973
|
-
`}getOptionsContentFromSlot(){return this.getAllValidOptions().map(e=>{var s,a;return
|
4257
|
+
`}getOptionsContentFromSlot(){return this.getAllValidOptions().map(e=>{var s,a;return P`
|
3974
4258
|
<option
|
3975
4259
|
part="native-select"
|
3976
4260
|
value="${(s=e.getAttribute("value"))!=null?s:""}"
|
@@ -3980,7 +4264,7 @@
|
|
3980
4264
|
>
|
3981
4265
|
${e.textContent}
|
3982
4266
|
</option>
|
3983
|
-
`})}getPopoverContent(){return this.disabled||this.readonly?
|
4267
|
+
`})}getPopoverContent(){return this.disabled||this.readonly?Y:P`
|
3984
4268
|
<mdc-popover
|
3985
4269
|
id="options-popover"
|
3986
4270
|
triggerid="select-base-triggerid"
|
@@ -3991,14 +4275,14 @@
|
|
3991
4275
|
focus-back-to-trigger
|
3992
4276
|
focus-trap
|
3993
4277
|
role="listbox"
|
3994
|
-
placement="${
|
4278
|
+
placement="${$t.BOTTOM_START}"
|
3995
4279
|
@shown="${this.handlePopoverOpen}"
|
3996
4280
|
@hidden="${this.handlePopoverClose}"
|
3997
4281
|
style="--mdc-popover-max-width: ${this.popoverWidth}; --mdc-popover-max-height: ${this.height};"
|
3998
4282
|
>
|
3999
4283
|
<slot @click="${this.handleOptionsClick}"></slot>
|
4000
4284
|
</mdc-popover>
|
4001
|
-
`}updated(e){super.updated(e),(e.has("disabled")||e.has("readonly"))&&(this.closePopover(),this.handlePopoverClose())}render(){var e,s;return
|
4285
|
+
`}updated(e){super.updated(e),(e.has("disabled")||e.has("readonly"))&&(this.closePopover(),this.handlePopoverClose())}render(){var e,s;return P`
|
4002
4286
|
${this.renderLabel()}
|
4003
4287
|
<div part="container">
|
4004
4288
|
<div
|
@@ -4015,11 +4299,11 @@
|
|
4015
4299
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
4016
4300
|
aria-controls="options-popover"
|
4017
4301
|
>
|
4018
|
-
${this.selectedIcon?
|
4302
|
+
${this.selectedIcon?P`<mdc-icon length-unit="rem" size="1" name="${this.selectedIcon}" part="selected-icon"></mdc-icon>`:Y}
|
4019
4303
|
<mdc-text
|
4020
4304
|
part="base-text ${this.selectedValueText?"selected":""}"
|
4021
|
-
type="${
|
4022
|
-
tagname="${
|
4305
|
+
type="${ot.BODY_MIDSIZE_REGULAR}"
|
4306
|
+
tagname="${bt.SPAN}"
|
4023
4307
|
>
|
4024
4308
|
${(s=this.selectedValueText)!=null?s:this.placeholder}
|
4025
4309
|
</mdc-text>
|
@@ -4031,7 +4315,7 @@
|
|
4031
4315
|
${this.getPopoverContent()}
|
4032
4316
|
</div>
|
4033
4317
|
${this.renderHelperText()}
|
4034
|
-
`}};
|
4318
|
+
`}};he.styles=[...ve.styles,...Su],v([x({type:String})],he.prototype,"placeholder",2),v([x({type:Boolean})],he.prototype,"readonly",2),v([x({type:String})],he.prototype,"height",2),v([Mt()],he.prototype,"optionsList",2),v([Tt()],he.prototype,"baseIconName",2),v([Tt()],he.prototype,"selectedValueText",2),v([Tt()],he.prototype,"selectedIcon",2),v([Tt()],he.prototype,"selectedValue",2),v([Tt()],he.prototype,"displayPopover",2),v([Tt()],he.prototype,"activeDescendant",2),v([Tt()],he.prototype,"popoverWidth",2),v([Nr("select")],he.prototype,"inputElement",2);var Qc=he;Qc.register(_u);var ry=Qc;qi.register(Bn);var iy=qi;var oy=[yt,W`
|
4035
4319
|
:host {
|
4036
4320
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
4037
4321
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -4093,11 +4377,11 @@
|
|
4093
4377
|
stroke-dashoffset: -292;
|
4094
4378
|
}
|
4095
4379
|
}
|
4096
|
-
`],
|
4380
|
+
`],Iu=oy;var ku=j.constructTagName("spinner"),sy={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},ay={STANDALONE:"standalone",BUTTON:"button"},Kn={VARIANT:ay.STANDALONE,SIZE:sy.MIDSIZE,INVERTED:!1};var hi=class extends K{constructor(){super(...arguments);this.inverted=Kn.INVERTED;this.size=Kn.SIZE;this.ariaLabel=null;this.variant=Kn.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return P`
|
4097
4381
|
<svg part="container" viewBox="0 0 100 100">
|
4098
4382
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
4099
4383
|
</svg>
|
4100
|
-
`}};
|
4384
|
+
`}};hi.styles=[...K.styles,...Iu],v([x({type:Boolean,reflect:!0})],hi.prototype,"inverted",2),v([x({type:String,reflect:!0})],hi.prototype,"size",2),v([x({type:String,attribute:"aria-label"})],hi.prototype,"ariaLabel",2),v([x({type:String,reflect:!0})],hi.prototype,"variant",2);var td=hi;td.register(ku);var ny=td;var ly=[yt,W`
|
4101
4385
|
|
4102
4386
|
:host {
|
4103
4387
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -4341,21 +4625,21 @@
|
|
4341
4625
|
color: var(--mdc-tab-pill-active-color-disabled);
|
4342
4626
|
}
|
4343
4627
|
|
4344
|
-
`,..._t()],
|
4628
|
+
`,..._t()],Cu=ly;var wu=j.constructTagName("tab"),ed={GLASS:"glass",LINE:"line",PILL:"pill"},Xn={VARIANT:ed.PILL,ACTIVE:!1};var mi=class extends ce(_e){constructor(){super(...arguments);this.active=Xn.ACTIVE;this.variant=Xn.VARIANT;this.handleTabActiveChange=e=>{let s=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(s)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${wi(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ed).includes(e)?e:Xn.VARIANT)}setActive(e,s){super.setActive(e,s),this.modifyIconName(s)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return P`
|
4345
4629
|
<div part="container">
|
4346
|
-
${this.iconName?
|
4347
|
-
${this.text?
|
4348
|
-
type=${this.active?
|
4349
|
-
tagname=${
|
4630
|
+
${this.iconName?P` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:Y}
|
4631
|
+
${this.text?P` <mdc-text
|
4632
|
+
type=${this.active?ot.BODY_MIDSIZE_BOLD:ot.BODY_MIDSIZE_MEDIUM}
|
4633
|
+
tagname=${bt.SPAN}
|
4350
4634
|
data-text=${this.text}
|
4351
4635
|
part="text"
|
4352
4636
|
>${this.text}</mdc-text
|
4353
|
-
>`:
|
4637
|
+
>`:Y}
|
4354
4638
|
<slot name="badge"></slot>
|
4355
4639
|
<slot name="chip"></slot>
|
4356
4640
|
</div>
|
4357
4641
|
<div part="indicator"></div>
|
4358
|
-
`}};
|
4642
|
+
`}};mi.styles=[..._e.styles,...Cu],v([x({type:Boolean,reflect:!0})],mi.prototype,"active",2),v([x({type:String,reflect:!0})],mi.prototype,"text",2),v([x({type:String,reflect:!0})],mi.prototype,"variant",2),v([x({type:String,reflect:!0,attribute:"tab-id"})],mi.prototype,"tabId",2);var Ke=mi;Ke.register(wu);var cy=Ke;var dy=[$a,W`
|
4359
4643
|
:host {
|
4360
4644
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
4361
4645
|
--mdc-tablist-gap: 0.5rem;
|
@@ -4385,20 +4669,20 @@
|
|
4385
4669
|
:host mdc-button[prefix-icon="arrow-right-regular"] {
|
4386
4670
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
4387
4671
|
}
|
4388
|
-
`],
|
4672
|
+
`],Lu=[...dy];var Nu=j.constructTagName("tablist"),aa={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Ko={FORWARD:"forward",BACKWARD:"backward"};var Zn=l=>l[0],rd=l=>l[l.length-1],Mu=(l,o)=>{let e=l.findIndex(s=>o===s)-1;return l[(e+l.length)%l.length]},Ru=(l,o)=>{let e=l.findIndex(s=>o===s)+1;return l[e%l.length]},Ou=(l,o)=>l.find(e=>e.tabId===o),id=l=>l.find(o=>o.active);var cr=class extends K{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let s=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(s)};this.handleFocus=async e=>{if(e.relatedTarget instanceof Ke||!(e.target instanceof Ke))return;let s=id(this.tabs||[]);s instanceof Ke&&await this.focusTab(s)};this.handleMousedown=e=>{e.target instanceof Ke&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let s=e.target;s instanceof Ke&&(this.setActiveTab(s),await this.focusTab(s),this.activeTabId=s.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var s;(s=this.tabs)==null||s.forEach(a=>{a.setAttribute("tabindex",a===e?"0":"-1")})};this.setActiveTab=e=>{var s;(s=this.tabs)==null||s.forEach(a=>{a===e?a.setAttribute("active",""):a.removeAttribute("active")})};this.focusTab=async e=>{e instanceof Ke&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let s=e.target;if(!(s instanceof Ke)||!this.tabs)return;let a=Mu(this.tabs,s),h=Ru(this.tabs,s),m=Zn(this.tabs),E=rd(this.tabs);switch(e.code){case aa.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?h:a);break;case aa.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?a:h);break;case aa.HOME:await this.focusTab(m);break;case aa.END:await this.focusTab(E);break;default:}};this.shouldShowArrowButton=e=>e===Ko.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,s;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=id(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((s=this.notFocusedArrowButton)==null||s.focus())};this.handleArrowButtonVisibility=async()=>{var q,rt,J;if(!this.tabs||!this.tabsContainer)return;let e=!1;((q=this.shadowRoot)==null?void 0:q.activeElement)instanceof Li&&(e=!0);let s=Zn(this.tabs),a=rd(this.tabs),h=s.getBoundingClientRect().left,m=(rt=this.tabsContainer)==null?void 0:rt.getBoundingClientRect().left,E=a.getBoundingClientRect().right,w=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().right,$=s.getBoundingClientRect().right,G=a.getBoundingClientRect().left;if(!this.isRtl()){h<=m?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,E>w?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}$>w?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,G<m?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var h;let s=this.isRtl()?-1:1,a=this.isRtl()?1:-1;(h=this.tabsContainer)==null||h.scrollBy({left:this.tabsContainer.clientWidth*(e===Ko.FORWARD?s:a),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var a,h,m;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(E=>E.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(a=Zn(this.tabs))==null?void 0:a.tabId),(h=this.tabsContainer)==null||h.addEventListener("focusin",this.handleFocus),(m=this.tabsContainer)==null||m.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let s=Ou(this.tabs,this.activeTabId);if(!(s instanceof Ke))return;this.setActiveTab(s),e.get("activeTabId")?(this.fireTabChangeEvent(s),await this.focusTab(s)):this.resetTabIndexAndSetNewTabIndex(s)}}render(){let e=this.isRtl()?"left":"right",s=this.isRtl()?"right":"left",a=h=>P` ${this.shouldShowArrowButton(h)?P`<mdc-button
|
4389
4673
|
variant="tertiary"
|
4390
|
-
prefix-icon="arrow-${h
|
4391
|
-
aria-label="Scroll tabs ${h
|
4674
|
+
prefix-icon="arrow-${h===Ko.FORWARD?e:s}-regular"
|
4675
|
+
aria-label="Scroll tabs ${h===Ko.FORWARD?e:s}"
|
4392
4676
|
@click="${()=>this.scrollTabs(h)}"
|
4393
|
-
></mdc-button>`:
|
4677
|
+
></mdc-button>`:Y}`;return P` ${a("backward")}
|
4394
4678
|
<div
|
4395
4679
|
class="container"
|
4396
4680
|
role="tablist"
|
4397
4681
|
tabindex="-1"
|
4398
|
-
aria-label="${
|
4682
|
+
aria-label="${lt(this.dataAriaLabel)}">
|
4399
4683
|
<slot></slot>
|
4400
4684
|
</div>
|
4401
|
-
${a(
|
4685
|
+
${a(Ko.FORWARD)}`}};cr.styles=[...K.styles,...Lu],v([x({type:String,attribute:"active-tab-id",reflect:!0})],cr.prototype,"activeTabId",2),v([x({type:String,attribute:"data-aria-label"})],cr.prototype,"dataAriaLabel",2),v([Nr(".container")],cr.prototype,"tabsContainer",2),v([Nr("mdc-button:not(:focus-visible)")],cr.prototype,"notFocusedArrowButton",2),v([Mt({selector:"mdc-tab"})],cr.prototype,"tabs",2),v([Tt()],cr.prototype,"showForwardArrowButton",2),v([Tt()],cr.prototype,"showBackwardArrowButton",2);var od=cr;od.register(Nu);var hy=od;var my=[W`
|
4402
4686
|
:host {
|
4403
4687
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
4404
4688
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4519,20 +4803,20 @@
|
|
4519
4803
|
pointer-events: none;
|
4520
4804
|
}
|
4521
4805
|
|
4522
|
-
`,..._t(!0)],
|
4806
|
+
`,..._t(!0)],Pu=my;var Du=j.constructTagName("textarea"),sd={HARD:"hard",SOFT:"soft"},Fu={OFF:"off",ON:"on"},Jn={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:sd.SOFT};var se=class extends Ce(Ht(je)){constructor(){super(...arguments);this.readonly=!1;this.rows=Jn.ROWS;this.cols=Jn.COLS;this.wrap=sd.SOFT;this.autocapitalize=Cn.OFF;this.autocomplete=Fu.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(s=>{this.onerror&&this.onerror(s)})}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Jt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,s,a){super.attributeChangedCallback(e,s,a),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(m=>{this.onerror&&this.onerror(m)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?P`
|
4523
4807
|
<mdc-text
|
4524
4808
|
part="character-counter"
|
4525
4809
|
tagname="span"
|
4526
|
-
type=${
|
4810
|
+
type=${Jn.CHARACTER_COUNTER_TYPE}
|
4527
4811
|
>
|
4528
4812
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
4529
4813
|
</mdc-text>
|
4530
|
-
`:
|
4814
|
+
`:Y}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?Y:P`
|
4531
4815
|
<div part="textarea-footer">
|
4532
4816
|
${this.renderHelperText()}
|
4533
4817
|
${this.renderCharacterCounter()}
|
4534
4818
|
</div>
|
4535
|
-
`}render(){var e;return
|
4819
|
+
`}render(){var e;return P`
|
4536
4820
|
${this.renderLabel()}
|
4537
4821
|
<div class="textarea-container mdc-focus-ring" part="textarea-container">
|
4538
4822
|
<textarea
|
@@ -4544,24 +4828,24 @@
|
|
4544
4828
|
?disabled="${this.disabled}"
|
4545
4829
|
?readonly="${this.readonly}"
|
4546
4830
|
?required="${this.required}"
|
4547
|
-
placeholder=${
|
4548
|
-
rows=${
|
4549
|
-
cols=${
|
4550
|
-
wrap=${
|
4831
|
+
placeholder=${lt(this.placeholder)}
|
4832
|
+
rows=${lt(this.rows)}
|
4833
|
+
cols=${lt(this.cols)}
|
4834
|
+
wrap=${lt(this.wrap)}
|
4551
4835
|
?autofocus="${this.autofocus}"
|
4552
4836
|
autocapitalize=${this.autocapitalize}
|
4553
4837
|
autocomplete=${this.autocomplete}
|
4554
|
-
minlength=${
|
4555
|
-
maxlength=${
|
4556
|
-
dirname=${
|
4838
|
+
minlength=${lt(this.minlength)}
|
4839
|
+
maxlength=${lt(this.maxlength)}
|
4840
|
+
dirname=${lt(this.dirname)}
|
4557
4841
|
@input=${this.updateValue}
|
4558
4842
|
@change=${this.onChange}
|
4559
|
-
aria-describedby="${
|
4843
|
+
aria-describedby="${lt(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
4560
4844
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
4561
4845
|
></textarea>
|
4562
4846
|
</div>
|
4563
4847
|
${this.renderTextareaFooter()}
|
4564
|
-
`}};
|
4848
|
+
`}};se.styles=[...je.styles,...Pu],v([x({type:String})],se.prototype,"placeholder",2),v([x({type:Boolean})],se.prototype,"readonly",2),v([x({type:Number})],se.prototype,"rows",2),v([x({type:Number})],se.prototype,"cols",2),v([x({type:String})],se.prototype,"wrap",2),v([x({type:String})],se.prototype,"autocapitalize",2),v([x({type:String})],se.prototype,"autocomplete",2),v([x({type:Boolean})],se.prototype,"autofocus",2),v([x({type:String})],se.prototype,"dirname",2),v([x({type:Number})],se.prototype,"maxlength",2),v([x({type:Number})],se.prototype,"minlength",2),v([x({type:Number,attribute:"max-character-limit"})],se.prototype,"maxCharacterLimit",2),v([Nr("textarea")],se.prototype,"inputElement",2);var ad=se;ad.register(Du);var py=ad;var Qn=j.constructTagName("themeprovider"),nd={THEMECLASS:"mds-theme-stable-darkWebex"};var tl=class{constructor(o){this.themeclass=o}};tl.context=Qn;var el=tl;var uy=W`
|
4565
4849
|
:host {
|
4566
4850
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
4567
4851
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -4590,7 +4874,7 @@
|
|
4590
4874
|
* {
|
4591
4875
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
4592
4876
|
}
|
4593
|
-
|
4877
|
+
`,$u=[uy];var Xo=class extends ii{constructor(){super({context:el.context,initialValue:new el(nd.THEMECLASS)});this.themeclass=nd.THEMECLASS}static get Context(){return el.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Xo.styles=[...ii.styles,...$u],v([Tt()],Xo.prototype,"currentThemeClass",2),v([x({type:String})],Xo.prototype,"themeclass",2);var ld=Xo;ld.register(Qn);var fy=ld;var vy=[yt,W`
|
4594
4878
|
:host {
|
4595
4879
|
--mdc-toggle-width: 3rem;
|
4596
4880
|
--mdc-toggle-height: 1.5rem;
|
@@ -4672,7 +4956,7 @@
|
|
4672
4956
|
:host([disabled]) .mdc-label-text, :host([disabled]) .mdc-help-text {
|
4673
4957
|
color: var(--mdc-toggle-label-color-disabled);
|
4674
4958
|
}
|
4675
|
-
`,..._t(!0)],
|
4959
|
+
`,..._t(!0)],zu=vy;var Qi=class extends Ce(Ht(je)){constructor(){super(...arguments);this.checked=!1;this.size=Dc.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var s;e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}handleChange(e){this.toggleState();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(Xs).includes(e)?e:Dc.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return P`
|
4676
4960
|
<mdc-statictoggle
|
4677
4961
|
?checked="${this.checked}"
|
4678
4962
|
?disabled="${this.disabled}"
|
@@ -4687,12 +4971,12 @@
|
|
4687
4971
|
role="switch"
|
4688
4972
|
?autofocus="${this.autofocus}"
|
4689
4973
|
?required="${this.required}"
|
4690
|
-
name="${
|
4691
|
-
value="${
|
4974
|
+
name="${lt(this.name)}"
|
4975
|
+
value="${lt(this.value)}"
|
4692
4976
|
.checked="${this.checked}"
|
4693
4977
|
aria-checked="${this.checked}"
|
4694
4978
|
.disabled="${this.disabled}"
|
4695
|
-
aria-describedby="${
|
4979
|
+
aria-describedby="${lt(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
4696
4980
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
4697
4981
|
tabindex="${this.disabled?-1:0}"
|
4698
4982
|
@change="${this.handleChange}"
|
@@ -4701,10 +4985,10 @@
|
|
4701
4985
|
</mdc-statictoggle>
|
4702
4986
|
${this.renderLabel()}
|
4703
4987
|
${this.renderHelperText()}
|
4704
|
-
`}};
|
4988
|
+
`}};Qi.styles=[...je.styles,...zu],v([x({type:Boolean,reflect:!0})],Qi.prototype,"checked",2),v([x({type:String,reflect:!0})],Qi.prototype,"size",2),v([x({type:Boolean,reflect:!0})],Qi.prototype,"autofocus",2);var cd=Qi;cd.register(tu);var gy=cd;function to(l,o,e){var h;let s=(h=e.initialDeps)!=null?h:[],a;return()=>{var m,E,w,$;let G;e.key&&((m=e.debug)!=null&&m.call(e))&&(G=Date.now());let q=l();if(!(q.length!==s.length||q.some((tt,ct)=>s[ct]!==tt)))return a;s=q;let J;if(e.key&&((E=e.debug)!=null&&E.call(e))&&(J=Date.now()),a=o(...q),e.key&&((w=e.debug)!=null&&w.call(e))){let tt=Math.round((Date.now()-G)*100)/100,ct=Math.round((Date.now()-J)*100)/100,Et=ct/16,vt=(xt,St)=>{for(xt=String(xt);xt.length<St;)xt=" "+xt;return xt};console.info(`%c\u23F1 ${vt(ct,5)} /${vt(tt,5)} ms`,`
|
4705
4989
|
font-size: .6rem;
|
4706
4990
|
font-weight: bold;
|
4707
|
-
color: hsl(${Math.max(0,Math.min(120-120*bt,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(z=e==null?void 0:e.onChange)==null||z.call(e,a),a}}function Un(l,o){if(l===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return l}var Tu=(l,o)=>Math.abs(l-o)<1,xu=(l,o,e)=>{let s;return function(...a){l.clearTimeout(s),s=l.setTimeout(()=>o.apply(this,a),e)}};var Yb=l=>l,qb=l=>{let o=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let a=o;a<=e;a++)s.push(a);return s},_u=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let a=p=>{let{width:E,height:C}=p;o({width:Math.round(E),height:Math.round(C)})};if(a(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(p=>{let E=p[0];if(E!=null&&E.borderBoxSize){let C=E.borderBoxSize[0];if(C){a({width:C.inlineSize,height:C.blockSize});return}}a(e.getBoundingClientRect())});return h.observe(e,{box:"border-box"}),()=>{h.unobserve(e)}},Au={passive:!0};var Kb=typeof window>"u"?!0:"onscrollend"in window,Su=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let a=0,h=l.options.useScrollendEvent&&Kb?()=>{}:xu(s,()=>{o(a,!1)},l.options.isScrollingResetDelay),p=z=>()=>{let{horizontal:G,isRtl:Y}=l.options;a=G?e.scrollLeft*(Y&&-1||1):e.scrollTop,h(),o(a,z)},E=p(!0),C=p(!1);return C(),e.addEventListener("scroll",E,Au),e.addEventListener("scrollend",C,Au),()=>{e.removeEventListener("scroll",E),e.removeEventListener("scrollend",C)}};var Zb=(l,o,e)=>{if(o!=null&&o.borderBoxSize){let s=o.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Iu=(l,{adjustments:o=0,behavior:e},s)=>{var a,h;let p=l+o;(h=(a=s.scrollElement)==null?void 0:a.scrollTo)==null||h.call(a,{[s.options.horizontal?"left":"top"]:p,behavior:e})},Hn=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,s=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(a=>{a.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var a;(a=s())==null||a.disconnect(),e=null},observe:a=>{var h;return(h=s())==null?void 0:h.observe(a,{box:"border-box"})},unobserve:a=>{var h;return(h=s())==null?void 0:h.unobserve(a)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,a])=>{typeof a>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Yb,rangeExtractor:qb,onChange:()=>{},measureElement:Zb,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var s,a;(a=(s=this.options).onChange)==null||a.call(s,this,e)},this.maybeNotify=Yi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var a;var e;let s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(a=(e=this.scrollElement)==null?void 0:e.window)!=null?a:null,this.elementsCache.forEach(h=>{this.observer.observe(h)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,h=>{this.scrollRect=h,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(h,p)=>{this.scrollAdjustments=0,this.scrollDirection=p?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=p,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,s)=>{let a=new Map,h=new Map;for(let p=s-1;p>=0;p--){let E=e[p];if(a.has(E.lane))continue;let C=h.get(E.lane);if(C==null||E.end>C.end?h.set(E.lane,E):E.end<C.end&&a.set(E.lane,!0),a.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((p,E)=>p.end===E.end?p.index-E.index:p.end-E.end)[0]:void 0},this.getMeasurementOptions=Yi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,a,h,p)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:a,getItemKey:h,enabled:p}),{key:!1}),this.getMeasurements=Yi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:a,getItemKey:h,enabled:p},E)=>{if(!p)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(G=>{this.itemSizeCache.set(G.key,G.size)}));let C=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let z=this.measurementsCache.slice(0,C);for(let G=C;G<e;G++){let Y=h(G),rt=this.options.lanes===1?z[G-1]:this.getFurthestMeasurement(z,G),J=rt?rt.end+this.options.gap:s+a,tt=E.get(Y),nt=typeof tt=="number"?tt:this.options.estimateSize(G),bt=J+nt,vt=rt?rt.lane:G%this.options.lanes;z[G]={index:G,start:J,size:nt,end:bt,key:Y,lane:vt}}return this.measurementsCache=z,z},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Yi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,a)=>this.range=e.length>0&&s>0?Xb({measurements:e,outerSize:s,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Yi(()=>{let e=null,s=null,a=this.calculateRange();return a&&(e=a.startIndex,s=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,a,h,p)=>h===null||p===null?[]:e({startIndex:h,endIndex:p,overscan:s,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let s=this.options.indexAttribute,a=e.getAttribute(s);return a?parseInt(a,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{let a=this.indexFromElement(e),h=this.measurementsCache[a];if(!h)return;let p=h.key,E=this.elementsCache.get(p);E!==e&&(E&&this.observer.unobserve(E),this.observer.observe(e),this.elementsCache.set(p,e)),e.isConnected&&this.resizeItem(a,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{var E;let a=this.measurementsCache[e];if(!a)return;let h=(E=this.itemSizeCache.get(a.key))!=null?E:a.size,p=s-h;p!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,p,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=p,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,s)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((s,a)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(a))});return}this._measureElement(e,void 0)},this.getVirtualItems=Yi(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{let a=[];for(let h=0,p=e.length;h<p;h++){let E=e[h],C=s[E];a.push(C)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let s=this.getMeasurements();if(s.length!==0)return Un(s[ku(0,s.length-1,a=>Un(s[a]).start,e)])},this.getOffsetForAlignment=(e,s)=>{let a=this.getSize(),h=this.getScrollOffset();s==="auto"&&e>=h+a&&(s="end"),s==="end"&&(e-=a);let p=this.options.horizontal?"scrollWidth":"scrollHeight",C=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[p]:this.scrollElement[p]:0)-a;return Math.max(Math.min(C,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let a=this.measurementsCache[e];if(!a)return;let h=this.getSize(),p=this.getScrollOffset();if(s==="auto")if(a.end>=p+h-this.options.scrollPaddingEnd)s="end";else if(a.start<=p+this.options.scrollPaddingStart)s="start";else return[p,s];let E=a.start-this.options.scrollPaddingStart+(a.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(E,s),s];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,s),s];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,s),s]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:s="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,s),{adjustments:void 0,behavior:a})},this.scrollToIndex=(e,{align:s="auto",behavior:a}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let h=this.getOffsetForIndex(e,s);if(!h)return;let[p,E]=h;this._scrollToOffset(p,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[z]=Un(this.getOffsetForIndex(e,E));Tu(z,this.getScrollOffset())||this.scrollToIndex(e,{align:E,behavior:a})}else this.scrollToIndex(e,{align:E,behavior:a})}))},this.scrollBy=(e,{behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var h;var e;let s=this.getMeasurements(),a;return s.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(h=(e=s[s.length-1])==null?void 0:e.end)!=null?h:0:Math.max(...s.slice(-this.options.lanes).map(p=>p.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:a})=>{this.options.scrollToFn(e,{behavior:a,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},ku=(l,o,e,s)=>{for(;l<=o;){let a=(l+o)/2|0,h=e(a);if(h<s)l=a+1;else if(h>s)o=a-1;else return a}return l>0?l-1:0};function Xb({measurements:l,outerSize:o,scrollOffset:e}){let s=l.length-1,h=ku(0,s,E=>l[E].start,e),p=h;for(;p<s&&l[p].end<e+o;)p++;return{startIndex:h,endIndex:p}}var Kc=class{constructor(o,e){this.cleanup=()=>{},(this.host=o).addController(this);let s={...e,onChange:(a,h)=>{var p;this.host.updateComplete.then(()=>this.host.requestUpdate()),(p=e.onChange)==null||p.call(e,a,h)}};this.virtualizer=new Hn(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Gn=class extends Kc{constructor(o,e){super(o,{observeElementRect:_u,observeElementOffset:Su,scrollToFn:Iu,...e})}};var Jb=[W`
|
4991
|
+
color: hsl(${Math.max(0,Math.min(120-120*Et,120))}deg 100% 31%);`,e==null?void 0:e.key)}return($=e==null?void 0:e.onChange)==null||$.call(e,a),a}}function rl(l,o){if(l===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return l}var Vu=(l,o)=>Math.abs(l-o)<1,Bu=(l,o,e)=>{let s;return function(...a){l.clearTimeout(s),s=l.setTimeout(()=>o.apply(this,a),e)}};var by=l=>l,yy=l=>{let o=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let a=o;a<=e;a++)s.push(a);return s},Hu=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let a=m=>{let{width:E,height:w}=m;o({width:Math.round(E),height:Math.round(w)})};if(a(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(m=>{let E=m[0];if(E!=null&&E.borderBoxSize){let w=E.borderBoxSize[0];if(w){a({width:w.inlineSize,height:w.blockSize});return}}a(e.getBoundingClientRect())});return h.observe(e,{box:"border-box"}),()=>{h.unobserve(e)}},Uu={passive:!0};var Ey=typeof window>"u"?!0:"onscrollend"in window,Gu=(l,o)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let a=0,h=l.options.useScrollendEvent&&Ey?()=>{}:Bu(s,()=>{o(a,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:G,isRtl:q}=l.options;a=G?e.scrollLeft*(q&&-1||1):e.scrollTop,h(),o(a,$)},E=m(!0),w=m(!1);return w(),e.addEventListener("scroll",E,Uu),e.addEventListener("scrollend",w,Uu),()=>{e.removeEventListener("scroll",E),e.removeEventListener("scrollend",w)}};var xy=(l,o,e)=>{if(o!=null&&o.borderBoxSize){let s=o.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var ju=(l,{adjustments:o=0,behavior:e},s)=>{var a,h;let m=l+o;(h=(a=s.scrollElement)==null?void 0:a.scrollTo)==null||h.call(a,{[s.options.horizontal?"left":"top"]:m,behavior:e})},il=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,s=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(a=>{a.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var a;(a=s())==null||a.disconnect(),e=null},observe:a=>{var h;return(h=s())==null?void 0:h.observe(a,{box:"border-box"})},unobserve:a=>{var h;return(h=s())==null?void 0:h.unobserve(a)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,a])=>{typeof a>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:by,rangeExtractor:yy,onChange:()=>{},measureElement:xy,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var s,a;(a=(s=this.options).onChange)==null||a.call(s,this,e)},this.maybeNotify=to(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var a;var e;let s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(a=(e=this.scrollElement)==null?void 0:e.window)!=null?a:null,this.elementsCache.forEach(h=>{this.observer.observe(h)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,h=>{this.scrollRect=h,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(h,m)=>{this.scrollAdjustments=0,this.scrollDirection=m?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=m,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,s)=>{let a=new Map,h=new Map;for(let m=s-1;m>=0;m--){let E=e[m];if(a.has(E.lane))continue;let w=h.get(E.lane);if(w==null||E.end>w.end?h.set(E.lane,E):E.end<w.end&&a.set(E.lane,!0),a.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((m,E)=>m.end===E.end?m.index-E.index:m.end-E.end)[0]:void 0},this.getMeasurementOptions=to(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,a,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:a,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=to(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:a,getItemKey:h,enabled:m},E)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(G=>{this.itemSizeCache.set(G.key,G.size)}));let w=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,w);for(let G=w;G<e;G++){let q=h(G),rt=this.options.lanes===1?$[G-1]:this.getFurthestMeasurement($,G),J=rt?rt.end+this.options.gap:s+a,tt=E.get(q),ct=typeof tt=="number"?tt:this.options.estimateSize(G),Et=J+ct,vt=rt?rt.lane:G%this.options.lanes;$[G]={index:G,start:J,size:ct,end:Et,key:q,lane:vt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=to(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,a)=>this.range=e.length>0&&s>0?Ty({measurements:e,outerSize:s,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=to(()=>{let e=null,s=null,a=this.calculateRange();return a&&(e=a.startIndex,s=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,a,h,m)=>h===null||m===null?[]:e({startIndex:h,endIndex:m,overscan:s,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let s=this.options.indexAttribute,a=e.getAttribute(s);return a?parseInt(a,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{let a=this.indexFromElement(e),h=this.measurementsCache[a];if(!h)return;let m=h.key,E=this.elementsCache.get(m);E!==e&&(E&&this.observer.unobserve(E),this.observer.observe(e),this.elementsCache.set(m,e)),e.isConnected&&this.resizeItem(a,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{var E;let a=this.measurementsCache[e];if(!a)return;let h=(E=this.itemSizeCache.get(a.key))!=null?E:a.size,m=s-h;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,m,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,s)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((s,a)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(a))});return}this._measureElement(e,void 0)},this.getVirtualItems=to(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{let a=[];for(let h=0,m=e.length;h<m;h++){let E=e[h],w=s[E];a.push(w)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let s=this.getMeasurements();if(s.length!==0)return rl(s[Wu(0,s.length-1,a=>rl(s[a]).start,e)])},this.getOffsetForAlignment=(e,s)=>{let a=this.getSize(),h=this.getScrollOffset();s==="auto"&&e>=h+a&&(s="end"),s==="end"&&(e-=a);let m=this.options.horizontal?"scrollWidth":"scrollHeight",w=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-a;return Math.max(Math.min(w,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let a=this.measurementsCache[e];if(!a)return;let h=this.getSize(),m=this.getScrollOffset();if(s==="auto")if(a.end>=m+h-this.options.scrollPaddingEnd)s="end";else if(a.start<=m+this.options.scrollPaddingStart)s="start";else return[m,s];let E=a.start-this.options.scrollPaddingStart+(a.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(E,s),s];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,s),s];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,s),s]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:s="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,s),{adjustments:void 0,behavior:a})},this.scrollToIndex=(e,{align:s="auto",behavior:a}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let h=this.getOffsetForIndex(e,s);if(!h)return;let[m,E]=h;this._scrollToOffset(m,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[$]=rl(this.getOffsetForIndex(e,E));Vu($,this.getScrollOffset())||this.scrollToIndex(e,{align:E,behavior:a})}else this.scrollToIndex(e,{align:E,behavior:a})}))},this.scrollBy=(e,{behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var h;var e;let s=this.getMeasurements(),a;return s.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(h=(e=s[s.length-1])==null?void 0:e.end)!=null?h:0:Math.max(...s.slice(-this.options.lanes).map(m=>m.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:a})=>{this.options.scrollToFn(e,{behavior:a,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Wu=(l,o,e,s)=>{for(;l<=o;){let a=(l+o)/2|0,h=e(a);if(h<s)l=a+1;else if(h>s)o=a-1;else return a}return l>0?l-1:0};function Ty({measurements:l,outerSize:o,scrollOffset:e}){let s=l.length-1,h=Wu(0,s,E=>l[E].start,e),m=h;for(;m<s&&l[m].end<e+o;)m++;return{startIndex:h,endIndex:m}}var dd=class{constructor(o,e){this.cleanup=()=>{},(this.host=o).addController(this);let s={...e,onChange:(a,h)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=e.onChange)==null||m.call(e,a,h)}};this.virtualizer=new il(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},ol=class extends dd{constructor(o,e){super(o,{observeElementRect:Hu,observeElementOffset:Gu,scrollToFn:ju,...e})}};var Ay=[W`
|
4708
4992
|
:host::part(scroll) {
|
4709
4993
|
height: 100%;
|
4710
4994
|
width: 100%;
|
@@ -4714,19 +4998,19 @@
|
|
4714
4998
|
position: relative;
|
4715
4999
|
width: 100%;
|
4716
5000
|
}
|
4717
|
-
`],
|
5001
|
+
`],Yu=Ay;var qu=j.constructTagName("virtualizedlist"),GG=j.constructTagName("virtualizedwrapper"),Ku={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var eo=class extends K{constructor(){super();this.virtualizerProps=Ku.VIRTUALIZER_PROPS;this.scrollElementRef=qa();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new ol(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var E,w;this.virtualizer=e.getVirtualizer();let{getTotalSize:s,getVirtualItems:a,measureElement:h}=this.virtualizer,m=a();if(m!==this.virtualItems){this.virtualItems=m;let $=a(),G={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(w=(E=$[0])==null?void 0:E.start)!=null?w:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:$,measureElement:h,listStyle:G})}return P`<div
|
4718
5002
|
part="container"
|
4719
5003
|
style="height: ${s()}px;"
|
4720
5004
|
>
|
4721
5005
|
<slot></slot>
|
4722
|
-
</div>`}render(){return
|
4723
|
-
${
|
5006
|
+
</div>`}render(){return P`<div
|
5007
|
+
${Ka(this.scrollElementRef)}
|
4724
5008
|
part="scroll"
|
4725
5009
|
@scroll=${this.onscroll&&this.onscroll}
|
4726
5010
|
>
|
4727
|
-
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):
|
5011
|
+
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):P``}
|
4728
5012
|
</div>
|
4729
|
-
`}};
|
5013
|
+
`}};eo.styles=[...K.styles,...Yu],v([x({type:Function,attribute:"onscroll"})],eo.prototype,"onscroll",2),v([x({type:Object,attribute:"virtualizerprops"})],eo.prototype,"virtualizerProps",2),v([x({type:Function,attribute:"setlistdata"})],eo.prototype,"setlistdata",2);var hd=eo;hd.register(qu);var _y=hd;})();
|
4730
5014
|
/*! Bundled license information:
|
4731
5015
|
|
4732
5016
|
lottie-web/build/player/lottie_light.js:
|