@momentum-design/components 0.95.8 → 0.96.1
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 +314 -248
- package/dist/browser/index.js.map +4 -4
- package/dist/components/buttonsimple/buttonsimple.constants.d.ts +3 -0
- package/dist/components/buttonsimple/buttonsimple.constants.js +3 -0
- package/dist/components/linkbutton/index.d.ts +8 -0
- package/dist/components/linkbutton/index.js +5 -0
- package/dist/components/linkbutton/linkbutton.component.d.ts +65 -0
- package/dist/components/linkbutton/linkbutton.component.js +111 -0
- package/dist/components/linkbutton/linkbutton.constants.d.ts +13 -0
- package/dist/components/linkbutton/linkbutton.constants.js +16 -0
- package/dist/components/linkbutton/linkbutton.styles.d.ts +2 -0
- package/dist/components/linkbutton/linkbutton.styles.js +66 -0
- package/dist/components/linkbutton/linkbutton.types.d.ts +10 -0
- package/dist/components/linkbutton/linkbutton.types.js +1 -0
- package/dist/components/linkbutton/linkbutton.utils.d.ts +3 -0
- package/dist/components/linkbutton/linkbutton.utils.js +12 -0
- package/dist/custom-elements.json +2206 -1614
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.js +3 -2
- package/dist/react/linkbutton/index.d.ts +38 -0
- package/dist/react/linkbutton/index.js +46 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";(()=>{var Mv=Object.create;var Tl=Object.defineProperty;var yh=Object.getOwnPropertyDescriptor;var Ov=Object.getOwnPropertyNames;var Pv=Object.getPrototypeOf,Dv=Object.prototype.hasOwnProperty;var Fv=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var $v=(l,i,e,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of Ov(i))!Dv.call(l,n)&&n!==e&&Tl(l,n,{get:()=>i[n],enumerable:!(s=yh(i,n))||s.enumerable});return l};var zv=(l,i,e)=>(e=l!=null?Mv(Pv(l)):{},$v(i||!l||!l.__esModule?Tl(e,"default",{value:l,enumerable:!0}):e,l));var v=(l,i,e,s)=>{for(var n=s>1?void 0:s?yh(i,e):i,h=l.length-1,m;h>=0;h--)(m=l[h])&&(n=(s?m(i,e,n):m(n))||n);return s&&n&&Tl(i,e,n),n};var dp=Fv((Ds,nn)=>{typeof navigator<"u"&&function(l,i){typeof Ds=="object"&&typeof nn<"u"?nn.exports=i():typeof define=="function"&&define.amd?define(i):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=i())}(Ds,function(){"use strict";var l="http://www.w3.org/2000/svg",i="",e=!1,s=-999999,n=function(r){e=!!r},h=function(){return e},m=function(r){i=r},x=function(){return i};function R(t){return document.createElement(t)}function $(t,r){var o,a=t.length,d;for(o=0;o<a;o+=1){d=t[o].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function Y(t,r){return Object.getOwnPropertyDescriptor(t,r)}function K(t){function r(){}return r.prototype=t,r}var at=function(){function t(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(o){this.audios.push(o)},pause:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].pause()},resume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].resume()},setRate:function(o){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].setRate(o)},createAudio:function(o){return this.audioFactory?this.audioFactory(o):window.Howl?new window.Howl({src:[o]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(o){this.audioFactory=o},setVolume:function(o){this._volume=o,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),J=function(){function t(o,a){var d=0,c=[],u;switch(o){case"int16":case"uint8c":u=1;break;default:u=1.1;break}for(d=0;d<a;d+=1)c.push(u);return c}function r(o,a){return o==="float32"?new Float32Array(a):o==="int16"?new Int16Array(a):o==="uint8c"?new Uint8ClampedArray(a):t(o,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:t}();function et(t){return Array.apply(null,{length:t})}function ht(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ht=function(o){return typeof o}:ht=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ht(t)}var Tt=!0,yt=null,xt=null,kt="",Ht=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ot=!1,Dt=Math.pow,ye=Math.sqrt,ee=Math.floor,Qe=Math.max,Ne=Math.min,Fe={};(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,o=t.length;for(r=0;r<o;r+=1)Fe[t[r]]=Math[t[r]]})();function tr(){return{}}Fe.random=Math.random,Fe.abs=function(t){var r=ht(t);if(r==="object"&&t.length){var o=et(t.length),a,d=t.length;for(a=0;a<d;a+=1)o[a]=Math.abs(t[a]);return o}return Math.abs(t)};var er=150,_t=Math.PI/180,he=.5519;function $e(t){Ot=!!t}function rr(t){return Ot?Math.round(t):t}function _r(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 ze(t,r,o,a){this.type=t,this.currentTime=r,this.totalTime=o,this.direction=a<0?-1:1}function ga(t,r){this.type=t,this.direction=r<0?-1:1}function Id(t,r,o,a){this.type=t,this.currentLoop=o,this.totalLoops=r,this.direction=a<0?-1:1}function kd(t,r,o){this.type=t,this.firstFrame=r,this.totalFrames=o}function Cd(t,r){this.type=t,this.target=r}function Mf(t,r){this.type="renderFrameError",this.nativeError=t,this.currentTime=r}function Of(t){this.type="configError",this.nativeError=t}function EE(t,r){this.type=t,this.nativeError=r}var Ee=function(){var t=0;return function(){return t+=1,kt+"__lottie_element_"+t}}();function ll(t,r,o){var a,d,c,u,T,f,I,w;switch(u=Math.floor(t*6),T=t*6-u,f=o*(1-r),I=o*(1-T*r),w=o*(1-(1-T)*r),u%6){case 0:a=o,d=w,c=f;break;case 1:a=I,d=o,c=f;break;case 2:a=f,d=o,c=w;break;case 3:a=f,d=I,c=o;break;case 4:a=w,d=f,c=o;break;case 5:a=o,d=f,c=I;break;default:break}return[a,d,c]}function cl(t,r,o){var a=Math.max(t,r,o),d=Math.min(t,r,o),c=a-d,u,T=a===0?0:c/a,f=a/255;switch(a){case d:u=0;break;case t:u=r-o+c*(r<o?6:0),u/=6*c;break;case r:u=o-t+c*2,u/=6*c;break;case o:u=t-r+c*4,u/=6*c;break;default:break}return[u,T,f]}function wd(t,r){var o=cl(t[0]*255,t[1]*255,t[2]*255);return o[1]+=r,o[1]>1?o[1]=1:o[1]<=0&&(o[1]=0),ll(o[0],o[1],o[2])}function Ld(t,r){var o=cl(t[0]*255,t[1]*255,t[2]*255);return o[2]+=r,o[2]>1?o[2]=1:o[2]<0&&(o[2]=0),ll(o[0],o[1],o[2])}function Nd(t,r){var o=cl(t[0]*255,t[1]*255,t[2]*255);return o[0]+=r/360,o[0]>1?o[0]-=1:o[0]<0&&(o[0]+=1),ll(o[0],o[1],o[2])}var TE=function(){var t=[],r,o;for(r=0;r<256;r+=1)o=r.toString(16),t[r]=o.length===1?"0"+o:o;return function(a,d,c){return a<0&&(a=0),d<0&&(d=0),c<0&&(c=0),"#"+t[a]+t[d]+t[c]}}(),Pf=function(r){Tt=!!r},Df=function(){return Tt},Ff=function(r){yt=r},ba=function(){return yt},xE=function(r){xt=r},Rd=function(){return xt},ya=function(r){er=r},as=function(){return er},$f=function(r){kt=r},AE=function(){return kt};function gt(t){return document.createElementNS(l,t)}function Ea(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ea=function(o){return typeof o}:Ea=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ea(t)}var ns=function(){var t=1,r=[],o,a,d={onmessage:function(){},postMessage:function(L){o({data:L})}},c={postMessage:function(L){d.onmessage({data:L})}};function u(E){if(window.Worker&&window.Blob&&h()){var L=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(L);return new Worker(P)}return o=E,d}function T(){a||(a=u(function(L){function P(){function z(X,_){var O,p,b=X.length,U,F,ot,mt;for(p=0;p<b;p+=1)if(O=X[p],"ks"in O&&!O.completed){if(O.completed=!0,O.hasMask){var ft=O.masksProperties;for(F=ft.length,U=0;U<F;U+=1)if(ft[U].pt.k.i)k(ft[U].pt.k);else for(mt=ft[U].pt.k.length,ot=0;ot<mt;ot+=1)ft[U].pt.k[ot].s&&k(ft[U].pt.k[ot].s[0]),ft[U].pt.k[ot].e&&k(ft[U].pt.k[ot].e[0])}O.ty===0?(O.layers=y(O.refId,_),z(O.layers,_)):O.ty===4?A(O.shapes):O.ty===5&&bt(O)}}function C(X,_){if(X){var O=0,p=X.length;for(O=0;O<p;O+=1)X[O].t===1&&(X[O].data.layers=y(X[O].data.refId,_),z(X[O].data.layers,_))}}function S(X,_){for(var O=0,p=_.length;O<p;){if(_[O].id===X)return _[O];O+=1}return null}function y(X,_){var O=S(X,_);return O?O.layers.__used?JSON.parse(JSON.stringify(O.layers)):(O.layers.__used=!0,O.layers):null}function A(X){var _,O=X.length,p,b;for(_=O-1;_>=0;_-=1)if(X[_].ty==="sh")if(X[_].ks.k.i)k(X[_].ks.k);else for(b=X[_].ks.k.length,p=0;p<b;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 _,O=X.i.length;for(_=0;_<O;_+=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 O=_?_.split("."):[100,100,100];return X[0]>O[0]?!0:O[0]>X[0]?!1:X[1]>O[1]?!0:O[1]>X[1]?!1:X[2]>O[2]?!0:O[2]>X[2]?!1:null}var V=function(){var X=[4,4,14];function _(p){var b=p.t.d;p.t.d={k:[{s:b,t:0}]}}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===5&&_(p[b])}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),H=function(){var X=[4,7,99];return function(_){if(_.chars&&!D(X,_.v)){var O,p=_.chars.length;for(O=0;O<p;O+=1){var b=_.chars[O];b.data&&b.data.shapes&&(A(b.data.shapes),b.data.ip=0,b.data.op=99999,b.data.st=0,b.data.sr=1,b.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[O].t||(b.data.shapes.push({ty:"no"}),b.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 b=p.t.p;typeof b.a=="number"&&(b.a={a:0,k:b.a}),typeof b.p=="number"&&(b.p={a:0,k:b.p}),typeof b.r=="number"&&(b.r={a:0,k:b.r})}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===5&&_(p[b])}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),ut=function(){var X=[4,1,9];function _(p){var b,U=p.length,F,ot;for(b=0;b<U;b+=1)if(p[b].ty==="gr")_(p[b].it);else if(p[b].ty==="fl"||p[b].ty==="st")if(p[b].c.k&&p[b].c.k[0].i)for(ot=p[b].c.k.length,F=0;F<ot;F+=1)p[b].c.k[F].s&&(p[b].c.k[F].s[0]/=255,p[b].c.k[F].s[1]/=255,p[b].c.k[F].s[2]/=255,p[b].c.k[F].s[3]/=255),p[b].c.k[F].e&&(p[b].c.k[F].e[0]/=255,p[b].c.k[F].e[1]/=255,p[b].c.k[F].e[2]/=255,p[b].c.k[F].e[3]/=255);else p[b].c.k[0]/=255,p[b].c.k[1]/=255,p[b].c.k[2]/=255,p[b].c.k[3]/=255}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===4&&_(p[b].shapes)}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),dt=function(){var X=[4,4,18];function _(p){var b,U=p.length,F,ot;for(b=U-1;b>=0;b-=1)if(p[b].ty==="sh")if(p[b].ks.k.i)p[b].ks.k.c=p[b].closed;else for(ot=p[b].ks.k.length,F=0;F<ot;F+=1)p[b].ks.k[F].s&&(p[b].ks.k[F].s[0].c=p[b].closed),p[b].ks.k[F].e&&(p[b].ks.k[F].e[0].c=p[b].closed);else p[b].ty==="gr"&&_(p[b].it)}function O(p){var b,U,F=p.length,ot,mt,ft,Ct;for(U=0;U<F;U+=1){if(b=p[U],b.hasMask){var wt=b.masksProperties;for(mt=wt.length,ot=0;ot<mt;ot+=1)if(wt[ot].pt.k.i)wt[ot].pt.k.c=wt[ot].cl;else for(Ct=wt[ot].pt.k.length,ft=0;ft<Ct;ft+=1)wt[ot].pt.k[ft].s&&(wt[ot].pt.k[ft].s[0].c=wt[ot].cl),wt[ot].pt.k[ft].e&&(wt[ot].pt.k[ft].e[0].c=wt[ot].cl)}b.ty===4&&_(b.shapes)}}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}();function tt(X){X.__complete||(ut(X),V(X),H(X),Z(X),dt(X),z(X.layers,X.assets),C(X.chars,X.assets),X.__complete=!0)}function bt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=tt,lt.checkColors=ut,lt.checkChars=H,lt.checkPathProperties=Z,lt.checkShapes=dt,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(S){var y=S.getResponseHeader("content-type");return y&&S.responseType==="json"&&y.indexOf("json")!==-1||S.response&&Ea(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,y,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(""),y+"/"+S,!0)}V.send()}return{load:C}}()),L.data.type==="loadAnimation")c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})});else if(L.data.type==="complete"){var M=L.data.animation;c.dataManager.completeData(M),c.postMessage({id:L.data.id,payload:M,status:"success"})}else L.data.type==="loadData"&&c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})})}),a.onmessage=function(E){var L=E.data,P=L.id,M=r[P];r[P]=null,L.status==="success"?M.onComplete(L.payload):M.onError&&M.onError()})}function f(E,L){t+=1;var P="processId_"+t;return r[P]={onComplete:E,onError:L},P}function I(E,L,P){T();var M=f(L,P);a.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function w(E,L,P){T();var M=f(L,P);a.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,L,P){T();var M=f(L,P);a.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:w,completeAnimation:B}}(),zf=function(){var t=function(){var C=R("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 o(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(C,S,y){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=y,A+=C.u?C.u:"",A+=C.p;return A}function d(C){var S=0,y=setInterval((function(){var A=C.getBBox();(A.width||S>500)&&(this._imageLoaded(),clearInterval(y)),S+=1}).bind(this),50)}function c(C){var S=a(C,this.assetsPath,this.path),y=gt("image");Ht?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var A={img:y,assetData:C};return A}function u(C){var S=a(C,this.assetsPath,this.path),y=R("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),y.src=S;var A={img:y,assetData:C};return A}function T(C){var S={assetData:C},y=a(C,this.assetsPath,this.path);return ns.loadData(y,(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 y,A=C.length;for(y=0;y<A;y+=1)C[y].layers||(!C[y].t||C[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(C[y]))):C[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(C[y]))))}function I(C){this.path=C||""}function w(C){this.assetsPath=C||""}function B(C){for(var S=0,y=this.images.length;S<y;){if(this.images[S].assetData===C)return this.images[S].img;S+=1}return null}function E(){this.imagesLoadedCb=null,this.images.length=0}function L(){return this.totalImages===this.loadedAssets}function P(){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=o.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:w,setPath:I,loadedImages:L,loadedFootages:P,destroy:E,getAsset:B,createImgData:u,createImageData:c,imageLoaded:r,footageLoaded:o,setCacheType:M},z}();function Md(){}Md.prototype={triggerEvent:function(r,o){if(this._cbs[r])for(var a=this._cbs[r],d=0;d<a.length;d+=1)a[d](o)},addEventListener:function(r,o){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(o),(function(){this.removeEventListener(r,o)}).bind(this)},removeEventListener:function(r,o){if(!o)this._cbs[r]=null;else if(this._cbs[r]){for(var a=0,d=this._cbs[r].length;a<d;)this._cbs[r][a]===o&&(this._cbs[r].splice(a,1),a-=1,d-=1),a+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var Vf=function(){function t(r){for(var o=r.split(`\r
|
2
|
-
`),a={},d,c=0,u=0;u<o.length;u+=1)d=o[u].split(":"),d.length===2&&(a[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return a}return function(r){for(var o=[],a=0;a<r.length;a+=1){var d=r[a],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[a].cm)}catch{try{c.payload=t(r[a].cm)}catch{c.payload={name:r[a].cm}}}o.push(c)}return o}}(),Bf=function(){function t(r){this.compositions.push(r)}return function(){function r(o){for(var a=0,d=this.compositions.length;a<d;){if(this.compositions[a].data&&this.compositions[a].data.nm===o)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=t,r}}(),ls={},Uf=function(r,o){ls[r]=o};function Hf(t){return ls[t]}function Gf(){if(ls.canvas)return"canvas";for(var t in ls)if(ls[t])return t;return""}function cs(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cs=function(o){return typeof o}:cs=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},cs(t)}var pt=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=Ee(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Df(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Bf(),this.imagePreloader=new zf,this.audioController=at(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new ze("drawnFrame",0,0,0),this.expressionsPlugin=ba()};$([Md],pt),pt.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 o=Hf(r);this.renderer=new o(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")),ns.loadAnimation(t.path,this.configAnimation,this.onSetupError))},pt.prototype.onSetupError=function(){this.trigger("data_failed")},pt.prototype.setupAnimation=function(t){ns.completeAnimation(t,this.configAnimation)},pt.prototype.setData=function(t,r){r&&cs(r)!=="object"&&(r=JSON.parse(r));var o={wrapper:t,animationData:r},a=t.attributes;o.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",o.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:Gf()||"canvas";var d=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";d==="false"?o.loop=!1:d==="true"?o.loop=!0:d!==""&&(o.loop=parseInt(d,10));var c=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;o.autoplay=c!=="false",o.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var u=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";u==="false"&&(o.prerender=!1),o.path?this.setParams(o):this.trigger("destroy")},pt.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,o,a=r.length,d=t.layers,c,u=d.length;for(c=0;c<u;c+=1)for(o=0;o<a;){if(r[o].id===d[c].id){r[o]=d[c];break}o+=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(a=t.assets.length,o=0;o<a;o+=1)this.animationData.assets.push(t.assets[o]);this.animationData.__complete=!1,ns.completeAnimation(this.animationData,this.onSegmentComplete)},pt.prototype.onSegmentComplete=function(t){this.animationData=t;var r=ba();r&&r.initExpressions(this),this.loadNextSegment()},pt.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 o=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ns.loadData(o,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},pt.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},pt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},pt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},pt.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=Vf(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},pt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},pt.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=ba();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},pt.prototype.resize=function(t,r){var o=typeof t=="number"?t:void 0,a=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(o,a)},pt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},pt.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")},pt.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)}},pt.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")))},pt.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())},pt.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},pt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pt.prototype.getMarkerData=function(t){for(var r,o=0;o<this.markers.length;o+=1)if(r=this.markers[o],r.payload&&r.payload.name===t)return r;return null},pt.prototype.goToAndStop=function(t,r,o){if(!(o&&this.name!==o)){var a=Number(t);if(isNaN(a)){var d=this.getMarkerData(t);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},pt.prototype.goToAndPlay=function(t,r,o){if(!(o&&this.name!==o)){var a=Number(t);if(isNaN(a)){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(a,r,o);this.play()}},pt.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+t*this.frameModifier,o=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(o=!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):(o=!0,r=0)):this.setCurrentRawFrameValue(r),o&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},pt.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")},pt.prototype.setSegment=function(t,r){var o=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?o=t:this.currentRawFrame+this.firstFrame>r&&(o=r-t)),this.firstFrame=t,this.totalFrames=r-t,this.timeCompleted=this.totalFrames,o!==-1&&this.goToAndStop(o,!0)},pt.prototype.playSegments=function(t,r){if(r&&(this.segments.length=0),cs(t[0])==="object"){var o,a=t.length;for(o=0;o<a;o+=1)this.segments.push(t[o])}else this.segments.push(t);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},pt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},pt.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},pt.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)},pt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},pt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},pt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},pt.prototype.setLoop=function(t){this.loop=t},pt.prototype.setVolume=function(t,r){r&&this.name!==r||this.audioController.setVolume(t)},pt.prototype.getVolume=function(){return this.audioController.getVolume()},pt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},pt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},pt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},pt.prototype.getPath=function(){return this.path},pt.prototype.getAssetsPath=function(t){var r="";if(t.e)r=t.p;else if(this.assetsPath){var o=t.p;o.indexOf("images/")!==-1&&(o=o.split("/")[1]),r=this.assetsPath+o}else r=this.path,r+=t.u?t.u:"",r+=t.p;return r},pt.prototype.getAssetData=function(t){for(var r=0,o=this.assets.length;r<o;){if(t===this.assets[r].id)return this.assets[r];r+=1}return null},pt.prototype.hide=function(){this.renderer.hide()},pt.prototype.show=function(){this.renderer.show()},pt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},pt.prototype.updateDocumentData=function(t,r,o){try{var a=this.renderer.getElementByPath(t);a.updateDocumentData(r,o)}catch{}},pt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new ze(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 Id(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new ga(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new kd(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new Cd(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new ze(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Id(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new ga(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new kd(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Cd(t,this))},pt.prototype.triggerRenderFrameError=function(t){var r=new Mf(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},pt.prototype.triggerConfigError=function(t){var r=new Of(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var qt=function(){var t={},r=[],o=0,a=0,d=0,c=!0,u=!1;function T(_){for(var O=0,p=_.target;O<a;)r[O].animation===p&&(r.splice(O,1),O-=1,a-=1,p.isPaused||B()),O+=1}function f(_,O){if(!_)return null;for(var p=0;p<a;){if(r[p].elem===_&&r[p].elem!==null)return r[p].animation;p+=1}var b=new pt;return E(b,_),b.setData(_,O),b}function I(){var _,O=r.length,p=[];for(_=0;_<O;_+=1)p.push(r[_].animation);return p}function w(){d+=1,ut()}function B(){d-=1}function E(_,O){_.addEventListener("destroy",T),_.addEventListener("_active",w),_.addEventListener("_idle",B),r.push({elem:O,animation:_}),a+=1}function L(_){var O=new pt;return E(O,null),O.setParams(_),O}function P(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setSpeed(_,O)}function M(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setDirection(_,O)}function z(_){var O;for(O=0;O<a;O+=1)r[O].animation.play(_)}function C(_){var O=_-o,p;for(p=0;p<a;p+=1)r[p].animation.advanceTime(O);o=_,d&&!u?window.requestAnimationFrame(C):c=!0}function S(_){o=_,window.requestAnimationFrame(C)}function y(_){var O;for(O=0;O<a;O+=1)r[O].animation.pause(_)}function A(_,O,p){var b;for(b=0;b<a;b+=1)r[b].animation.goToAndStop(_,O,p)}function k(_){var O;for(O=0;O<a;O+=1)r[O].animation.stop(_)}function D(_){var O;for(O=0;O<a;O+=1)r[O].animation.togglePause(_)}function V(_){var O;for(O=a-1;O>=0;O-=1)r[O].animation.destroy(_)}function H(_,O,p){var b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=b.length;for(U=0;U<F;U+=1)p&&b[U].setAttribute("data-bm-type",p),f(b[U],_);if(O&&F===0){p||(p="svg");var ot=document.getElementsByTagName("body")[0];ot.innerText="";var mt=R("div");mt.style.width="100%",mt.style.height="100%",mt.setAttribute("data-bm-type",p),ot.appendChild(mt),f(mt,_)}}function Z(){var _;for(_=0;_<a;_+=1)r[_].animation.resize()}function ut(){!u&&d&&c&&(window.requestAnimationFrame(S),c=!1)}function dt(){u=!0}function tt(){u=!1,ut()}function bt(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setVolume(_,O)}function lt(_){var O;for(O=0;O<a;O+=1)r[O].animation.mute(_)}function X(_){var O;for(O=0;O<a;O+=1)r[O].animation.unmute(_)}return t.registerAnimation=f,t.loadAnimation=L,t.setSpeed=P,t.setDirection=M,t.play=z,t.pause=y,t.stop=k,t.togglePause=D,t.searchAnimations=H,t.resize=Z,t.goToAndStop=A,t.destroy=V,t.freeze=dt,t.unfreeze=tt,t.setVolume=bt,t.mute=lt,t.unmute=X,t.getRegisteredAnimations=I,t}(),ds=function(){var t={};t.getBezierEasing=o;var r={};function o(S,y,A,k,D){var V=D||("bez_"+S+"_"+y+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var H=new C([S,y,A,k]);return r[V]=H,H}var a=4,d=.001,c=1e-7,u=10,T=11,f=1/(T-1),I=typeof Float32Array=="function";function w(S,y){return 1-3*y+3*S}function B(S,y){return 3*y-6*S}function E(S){return 3*S}function L(S,y,A){return((w(y,A)*S+B(y,A))*S+E(y))*S}function P(S,y,A){return 3*w(y,A)*S*S+2*B(y,A)*S+E(y)}function M(S,y,A,k,D){var V,H,Z=0;do H=y+(A-y)/2,V=L(H,k,D)-S,V>0?A=H:y=H;while(Math.abs(V)>c&&++Z<u);return H}function z(S,y,A,k){for(var D=0;D<a;++D){var V=P(y,A,k);if(V===0)return y;var H=L(y,A,k)-S;y-=H/V}return y}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(y){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?y:y===0?0:y===1?1:L(this._getTForX(y),k,V)},_precompute:function(){var y=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(y!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],A=this._p[2],k=0;k<T;++k)this._mSampleValues[k]=L(k*f,y,A)},_getTForX:function(y){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,H=1,Z=T-1;H!==Z&&D[H]<=y;++H)V+=f;--H;var ut=(y-D[H])/(D[H+1]-D[H]),dt=V+ut*f,tt=P(dt,A,k);return tt>=d?z(y,dt,A,k):tt===0?dt:M(y,V,V+f,A,k)}},t}(),Od=function(){function t(r){return r.concat(et(r.length))}return{double:t}}(),Ta=function(){return function(t,r,o){var a=0,d=t,c=et(d),u={newElement:T,release:f};function T(){var I;return a?(a-=1,I=c[a]):I=r(),I}function f(I){a===d&&(c=Od.double(c),d*=2),o&&o(I),c[a]=I,a+=1}return u}}(),Pd=function(){function t(){return{addedLength:0,percents:J("float32",as()),lengths:J("float32",as())}}return Ta(8,t)}(),Dd=function(){function t(){return{lengths:[],totalLength:0}}function r(o){var a,d=o.lengths.length;for(a=0;a<d;a+=1)Pd.release(o.lengths[a]);o.lengths.length=0}return Ta(8,t,r)}();function jf(){var t=Math;function r(E,L,P,M,z,C){var S=E*M+L*z+P*C-z*M-C*E-P*L;return S>-.001&&S<.001}function o(E,L,P,M,z,C,S,y,A){if(P===0&&C===0&&A===0)return r(E,L,M,z,S,y);var k=t.sqrt(t.pow(M-E,2)+t.pow(z-L,2)+t.pow(C-P,2)),D=t.sqrt(t.pow(S-E,2)+t.pow(y-L,2)+t.pow(A-P,2)),V=t.sqrt(t.pow(S-M,2)+t.pow(y-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 a=function(){return function(E,L,P,M){var z=as(),C,S,y,A,k,D=0,V,H=[],Z=[],ut=Pd.newElement();for(y=P.length,C=0;C<z;C+=1){for(k=C/(z-1),V=0,S=0;S<y;S+=1)A=Dt(1-k,3)*E[S]+3*Dt(1-k,2)*k*P[S]+3*(1-k)*Dt(k,2)*M[S]+Dt(k,3)*L[S],H[S]=A,Z[S]!==null&&(V+=Dt(H[S]-Z[S],2)),Z[S]=H[S];V&&(V=ye(V),D+=V),ut.percents[C]=k,ut.lengths[C]=D}return ut.addedLength=D,ut}}();function d(E){var L=Dd.newElement(),P=E.c,M=E.v,z=E.o,C=E.i,S,y=E._length,A=L.lengths,k=0;for(S=0;S<y-1;S+=1)A[S]=a(M[S],M[S+1],z[S],C[S+1]),k+=A[S].addedLength;return P&&y&&(A[S]=a(M[S],M[0],z[S],C[0]),k+=A[S].addedLength),L.totalLength=k,L}function c(E){this.segmentLength=0,this.points=new Array(E)}function u(E,L){this.partialLength=E,this.point=L}var T=function(){var E={};return function(L,P,M,z){var C=(L[0]+"_"+L[1]+"_"+P[0]+"_"+P[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!E[C]){var S=as(),y,A,k,D,V,H=0,Z,ut,dt=null;L.length===2&&(L[0]!==P[0]||L[1]!==P[1])&&r(L[0],L[1],P[0],P[1],L[0]+M[0],L[1]+M[1])&&r(L[0],L[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(S=2);var tt=new c(S);for(k=M.length,y=0;y<S;y+=1){for(ut=et(k),V=y/(S-1),Z=0,A=0;A<k;A+=1)D=Dt(1-V,3)*L[A]+3*Dt(1-V,2)*V*(L[A]+M[A])+3*(1-V)*Dt(V,2)*(P[A]+z[A])+Dt(V,3)*P[A],ut[A]=D,dt!==null&&(Z+=Dt(ut[A]-dt[A],2));Z=ye(Z),H+=Z,tt.points[y]=new u(Z,ut),dt=ut}tt.segmentLength=H,E[C]=tt}return E[C]}}();function f(E,L){var P=L.percents,M=L.lengths,z=P.length,C=ee((z-1)*E),S=E*L.addedLength,y=0;if(C===z-1||C===0||S===M[C])return P[C];for(var A=M[C]>S?-1:1,k=!0;k;)if(M[C]<=S&&M[C+1]>S?(y=(S-M[C])/(M[C+1]-M[C]),k=!1):C+=A,C<0||C>=z-1){if(C===z-1)return P[C];k=!1}return P[C]+(P[C+1]-P[C])*y}function I(E,L,P,M,z,C){var S=f(z,C),y=1-S,A=t.round((y*y*y*E[0]+(S*y*y+y*S*y+y*y*S)*P[0]+(S*S*y+y*S*S+S*y*S)*M[0]+S*S*S*L[0])*1e3)/1e3,k=t.round((y*y*y*E[1]+(S*y*y+y*S*y+y*y*S)*P[1]+(S*S*y+y*S*S+S*y*S)*M[1]+S*S*S*L[1])*1e3)/1e3;return[A,k]}var w=J("float32",8);function B(E,L,P,M,z,C,S){z<0?z=0:z>1&&(z=1);var y=f(z,S);C=C>1?1:C;var A=f(C,S),k,D=E.length,V=1-y,H=1-A,Z=V*V*V,ut=y*V*V*3,dt=y*y*V*3,tt=y*y*y,bt=V*V*H,lt=y*V*H+V*y*H+V*V*A,X=y*y*H+V*y*A+y*V*A,_=y*y*A,O=V*H*H,p=y*H*H+V*A*H+V*H*A,b=y*A*H+V*A*A+y*H*A,U=y*A*A,F=H*H*H,ot=A*H*H+H*A*H+H*H*A,mt=A*A*H+H*A*A+A*H*A,ft=A*A*A;for(k=0;k<D;k+=1)w[k*4]=t.round((Z*E[k]+ut*P[k]+dt*M[k]+tt*L[k])*1e3)/1e3,w[k*4+1]=t.round((bt*E[k]+lt*P[k]+X*M[k]+_*L[k])*1e3)/1e3,w[k*4+2]=t.round((O*E[k]+p*P[k]+b*M[k]+U*L[k])*1e3)/1e3,w[k*4+3]=t.round((F*E[k]+ot*P[k]+mt*M[k]+ft*L[k])*1e3)/1e3;return w}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:T,pointOnLine2D:r,pointOnLine3D:o}}var ur=jf(),Si=s,Fd=Math.abs;function $d(t,r){var o=this.offsetTime,a;this.propType==="multidimensional"&&(a=J("float32",this.pv.length));for(var d=r.lastIndex,c=d,u=this.keyframes.length-1,T=!0,f,I,w;T;){if(f=this.keyframes[c],I=this.keyframes[c+1],c===u-1&&t>=I.t-o){f.h&&(f=I),d=0;break}if(I.t-o>t){d=c;break}c<u-1?c+=1:(d=0,T=!1)}w=this.keyframesMetadata[c]||{};var B,E,L,P,M,z,C=I.t-o,S=f.t-o,y;if(f.to){w.bezierData||(w.bezierData=ur.buildBezierData(f.s,I.s||f.e,f.to,f.ti));var A=w.bezierData;if(t>=C||t<S){var k=t>=C?A.points.length-1:0;for(E=A.points[k].point.length,B=0;B<E;B+=1)a[B]=A.points[k].point[B]}else{w.__fnct?z=w.__fnct:(z=ds.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y,f.n).get,w.__fnct=z),L=z((t-S)/(C-S));var D=A.segmentLength*L,V,H=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastPoint:0,T=!0,P=A.points.length;T;){if(H+=A.points[M].partialLength,D===0||L===0||M===A.points.length-1){for(E=A.points[M].point.length,B=0;B<E;B+=1)a[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,E=A.points[M].point.length,B=0;B<E;B+=1)a[B]=A.points[M].point[B]+(A.points[M+1].point[B]-A.points[M].point[B])*V;break}M<P-1?M+=1:T=!1}r._lastPoint=M,r._lastAddedLength=H-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ut,dt,tt,bt;if(u=f.s.length,y=I.s||f.e,this.sh&&f.h!==1)if(t>=C)a[0]=y[0],a[1]=y[1],a[2]=y[2];else if(t<=S)a[0]=f.s[0],a[1]=f.s[1],a[2]=f.s[2];else{var lt=zd(f.s),X=zd(y),_=(t-S)/(C-S);Wf(a,Yf(lt,X,_))}else for(c=0;c<u;c+=1)f.h!==1&&(t>=C?L=1:t<S?L=0:(f.o.x.constructor===Array?(w.__fnct||(w.__fnct=[]),w.__fnct[c]?z=w.__fnct[c]:(Z=f.o.x[c]===void 0?f.o.x[0]:f.o.x[c],ut=f.o.y[c]===void 0?f.o.y[0]:f.o.y[c],dt=f.i.x[c]===void 0?f.i.x[0]:f.i.x[c],tt=f.i.y[c]===void 0?f.i.y[0]:f.i.y[c],z=ds.getBezierEasing(Z,ut,dt,tt).get,w.__fnct[c]=z)):w.__fnct?z=w.__fnct:(Z=f.o.x,ut=f.o.y,dt=f.i.x,tt=f.i.y,z=ds.getBezierEasing(Z,ut,dt,tt).get,f.keyframeMetadata=z),L=z((t-S)/(C-S)))),y=I.s||f.e,bt=f.h===1?f.s[c]:f.s[c]+(y[c]-f.s[c])*L,this.propType==="multidimensional"?a[c]=bt:a=bt}return r.lastIndex=d,a}function Yf(t,r,o){var a=[],d=t[0],c=t[1],u=t[2],T=t[3],f=r[0],I=r[1],w=r[2],B=r[3],E,L,P,M,z;return L=d*f+c*I+u*w+T*B,L<0&&(L=-L,f=-f,I=-I,w=-w,B=-B),1-L>1e-6?(E=Math.acos(L),P=Math.sin(E),M=Math.sin((1-o)*E)/P,z=Math.sin(o*E)/P):(M=1-o,z=o),a[0]=M*d+z*f,a[1]=M*c+z*I,a[2]=M*u+z*w,a[3]=M*T+z*B,a}function Wf(t,r){var o=r[0],a=r[1],d=r[2],c=r[3],u=Math.atan2(2*a*c-2*o*d,1-2*a*a-2*d*d),T=Math.asin(2*o*a+2*d*c),f=Math.atan2(2*o*c-2*a*d,1-2*o*o-2*d*d);t[0]=u/_t,t[1]=T/_t,t[2]=f/_t}function zd(t){var r=t[0]*_t,o=t[1]*_t,a=t[2]*_t,d=Math.cos(r/2),c=Math.cos(o/2),u=Math.cos(a/2),T=Math.sin(r/2),f=Math.sin(o/2),I=Math.sin(a/2),w=d*c*u-T*f*I,B=T*f*u+d*c*I,E=T*c*u+d*f*I,L=d*f*u-T*c*I;return[B,E,L,w]}function Vd(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,o=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==Si&&(this._caching.lastFrame>=o&&t>=o||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(t,this._caching);this.pv=a}return this._caching.lastFrame=t,this.pv}function xa(t){var r;if(this.propType==="unidimensional")r=t*this.mult,Fd(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var o=0,a=this.v.length;o<a;)r=t[o]*this.mult,Fd(this.v[o]-r)>1e-5&&(this.v[o]=r,this._mdf=!0),o+=1}function Aa(){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,o=this.kf?this.pv:this.data.k;for(t=0;t<r;t+=1)o=this.effectsSequence[t](o);this.setVValue(o),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function _a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function qf(t,r,o,a){this.propType="unidimensional",this.mult=o||1,this.data=r,this.v=o?r.k*o:r.k,this.pv=r.k,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Aa,this.setVValue=xa,this.addEffect=_a}function Kf(t,r,o,a){this.propType="multidimensional",this.mult=o||1,this.data=r,this._mdf=!1,this.elem=t,this.container=a,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=Aa,this.setVValue=xa,this.addEffect=_a}function Xf(t,r,o,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:Si,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=o||1,this.elem=t,this.container=a,this.comp=t.comp,this.v=Si,this.pv=Si,this._isFirstFrame=!0,this.getValue=Aa,this.setVValue=xa,this.interpolateValue=$d,this.effectsSequence=[Vd.bind(this)],this.addEffect=_a}function Zf(t,r,o,a){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])&&ur.pointOnLine2D(u[0],u[1],T[0],T[1],u[0]+f[0],u[1]+f[1])&&ur.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])&&ur.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])&&ur.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=[Vd.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=o||1,this.elem=t,this.container=a,this.comp=t.comp,this.getValue=Aa,this.setVValue=xa,this.interpolateValue=$d,this.frameId=-1;var w=r.k[0].s.length;for(this.v=J("float32",w),this.pv=J("float32",w),d=0;d<w;d+=1)this.v[d]=Si,this.pv[d]=Si;this._caching={lastFrame:Si,lastIndex:0,value:J("float32",w)},this.addEffect=_a}var rt=function(){function t(o,a,d,c,u){a.sid&&(a=o.globalData.slotManager.getProp(a));var T;if(!a.k.length)T=new qf(o,a,c,u);else if(typeof a.k[0]=="number")T=new Kf(o,a,c,u);else switch(d){case 0:T=new Xf(o,a,c,u);break;case 1:T=new Zf(o,a,c,u);break;default:break}return T.effectsSequence.length&&u.addDynamicProperty(T),T}var r={getProp:t};return r}();function re(){}re.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,o=this.dynamicProperties.length;for(r=0;r<o;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 Ii=function(){function t(){return J("float32",2)}return Ta(8,t)}();function Sr(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}Sr.prototype.setPathData=function(t,r){this.c=t,this.setLength(r);for(var o=0;o<r;)this.v[o]=Ii.newElement(),this.o[o]=Ii.newElement(),this.i[o]=Ii.newElement(),o+=1},Sr.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},Sr.prototype.doubleArrayLength=function(){this.v=this.v.concat(et(this._maxLength)),this.i=this.i.concat(et(this._maxLength)),this.o=this.o.concat(et(this._maxLength)),this._maxLength*=2},Sr.prototype.setXYAt=function(t,r,o,a,d){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),o){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[a]||c[a]&&!d)&&(c[a]=Ii.newElement()),c[a][0]=t,c[a][1]=r},Sr.prototype.setTripleAt=function(t,r,o,a,d,c,u,T){this.setXYAt(t,r,"v",u,T),this.setXYAt(o,a,"o",u,T),this.setXYAt(d,c,"i",u,T)},Sr.prototype.reverse=function(){var t=new Sr;t.setPathData(this.c,this._length);var r=this.v,o=this.o,a=this.i,d=0;this.c&&(t.setTripleAt(r[0][0],r[0][1],a[0][0],a[0][1],o[0][0],o[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],a[c][0],a[c][1],o[c][0],o[c][1],T,!1),c-=1;return t},Sr.prototype.length=function(){return this._length};var ae=function(){function t(){return new Sr}function r(d){var c=d._length,u;for(u=0;u<c;u+=1)Ii.release(d.v[u]),Ii.release(d.i[u]),Ii.release(d.o[u]),d.v[u]=null,d.i[u]=null,d.o[u]=null;d._length=0,d.c=!1}function o(d){var c=a.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 a=Ta(4,t,r);return a.clone=o,a}();function dl(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}dl.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(et(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},dl.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)ae.release(this.shapes[t]);this._length=0};var vo=function(){var t={newShapeCollection:d,release:c},r=0,o=4,a=et(o);function d(){var u;return r?(r-=1,u=a[r]):u=new dl,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===o&&(a=Od.double(a),o*=2),a[r]=u,r+=1}return t}(),Sa=function(){var t=-999999;function r(C,S,y){var A=y.lastIndex,k,D,V,H,Z,ut,dt,tt,bt,lt=this.keyframes;if(C<lt[0].t-this.offsetTime)k=lt[0].s[0],V=!0,A=0;else if(C>=lt[lt.length-1].t-this.offsetTime)k=lt[lt.length-1].s?lt[lt.length-1].s[0]:lt[lt.length-2].e[0],V=!0;else{for(var X=A,_=lt.length-1,O=!0,p,b,U;O&&(p=lt[X],b=lt[X+1],!(b.t-this.offsetTime>C));)X<_-1?X+=1:O=!1;if(U=this.keyframesMetadata[X]||{},V=p.h===1,A=X,!V){if(C>=b.t-this.offsetTime)tt=1;else if(C<p.t-this.offsetTime)tt=0;else{var F;U.__fnct?F=U.__fnct:(F=ds.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,U.__fnct=F),tt=F((C-(p.t-this.offsetTime))/(b.t-this.offsetTime-(p.t-this.offsetTime)))}D=b.s?b.s[0]:p.e[0]}k=p.s[0]}for(ut=S._length,dt=k.i[0].length,y.lastIndex=A,H=0;H<ut;H+=1)for(Z=0;Z<dt;Z+=1)bt=V?k.i[H][Z]:k.i[H][Z]+(D.i[H][Z]-k.i[H][Z])*tt,S.i[H][Z]=bt,bt=V?k.o[H][Z]:k.o[H][Z]+(D.o[H][Z]-k.o[H][Z])*tt,S.o[H][Z]=bt,bt=V?k.v[H][Z]:k.v[H][Z]+(D.v[H][Z]-k.v[H][Z])*tt,S.v[H][Z]=bt}function o(){var C=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==t&&(A<S&&C<S||A>y&&C>y)||(this._caching.lastIndex=A<C?this._caching.lastIndex:0,this.interpolateShape(C,this.pv,this._caching)),this._caching.lastFrame=C,this.pv}function a(){this.paths=this.localShapeCollection}function d(C,S){if(C._length!==S._length||C.c!==S.c)return!1;var y,A=C._length;for(y=0;y<A;y+=1)if(C.v[y][0]!==S.v[y][0]||C.v[y][1]!==S.v[y][1]||C.o[y][0]!==S.o[y][0]||C.o[y][1]!==S.o[y][1]||C.i[y][0]!==S.i[y][0]||C.i[y][1]!==S.i[y][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,y=this.effectsSequence.length;for(S=0;S<y;S+=1)C=this.effectsSequence[S](C);this.setVValue(C),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function T(C,S,y){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=y===3?S.pt.k:S.ks.k;this.v=ae.clone(A),this.pv=ae.clone(this.v),this.localShapeCollection=vo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,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,y){this.propType="shape",this.comp=C.comp,this.elem=C,this.container=C,this.offsetTime=C.data.st,this.keyframes=y===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=vo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=a,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[o.bind(this)]}I.prototype.getValue=u,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=f;var w=function(){var C=he;function S(y,A){this.v=ae.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=vo.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=y,this.comp=y.comp,this.frameId=-1,this.initDynamicPropertyContainer(y),this.p=rt.getProp(y,A.p,1,0,this),this.s=rt.getProp(y,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return S.prototype={reset:a,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}},$([re],S),S}(),B=function(){function C(S,y){this.v=ae.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(S),y.sy===1?(this.ir=rt.getProp(S,y.ir,0,0,this),this.is=rt.getProp(S,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=rt.getProp(S,y.pt,0,0,this),this.p=rt.getProp(S,y.p,1,0,this),this.r=rt.getProp(S,y.r,0,_t,this),this.or=rt.getProp(S,y.or,0,0,this),this.os=rt.getProp(S,y.os,0,.01,this),this.localShapeCollection=vo.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:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var y=Math.floor(this.pt.v)*2,A=Math.PI*2/y,k=!0,D=this.or.v,V=this.ir.v,H=this.os.v,Z=this.is.v,ut=2*Math.PI*D/(y*2),dt=2*Math.PI*V/(y*2),tt,bt,lt,X,_=-Math.PI/2;_+=this.r.v;var O=this.data.d===3?-1:1;for(this.v._length=0,tt=0;tt<y;tt+=1){bt=k?D:V,lt=k?H:Z,X=k?ut:dt;var p=bt*Math.cos(_),b=bt*Math.sin(_),U=p===0&&b===0?0:b/Math.sqrt(p*p+b*b),F=p===0&&b===0?0:-p/Math.sqrt(p*p+b*b);p+=+this.p.v[0],b+=+this.p.v[1],this.v.setTripleAt(p,b,p-U*X*lt*O,b-F*X*lt*O,p+U*X*lt*O,b+F*X*lt*O,tt,!0),k=!k,_+=A*O}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),A=Math.PI*2/y,k=this.or.v,D=this.os.v,V=2*Math.PI*k/(y*4),H,Z=-Math.PI*.5,ut=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,H=0;H<y;H+=1){var dt=k*Math.cos(Z),tt=k*Math.sin(Z),bt=dt===0&&tt===0?0:tt/Math.sqrt(dt*dt+tt*tt),lt=dt===0&&tt===0?0:-dt/Math.sqrt(dt*dt+tt*tt);dt+=+this.p.v[0],tt+=+this.p.v[1],this.v.setTripleAt(dt,tt,dt-bt*V*D*ut,tt-lt*V*D*ut,dt+bt*V*D*ut,tt+lt*V*D*ut,H,!0),Z+=A*ut}this.paths.length=0,this.paths[0]=this.v}},$([re],C),C}(),E=function(){function C(S,y){this.v=ae.newElement(),this.v.c=!0,this.localShapeCollection=vo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(S),this.p=rt.getProp(S,y.p,1,0,this),this.s=rt.getProp(S,y.s,1,0,this),this.r=rt.getProp(S,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return C.prototype={convertRectToPath:function(){var y=this.p.v[0],A=this.p.v[1],k=this.s.v[0]/2,D=this.s.v[1]/2,V=Ne(k,D,this.r.v),H=V*(1-he);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+V,y+k,A-D+H,0,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-H,y+k,A+D-V,1,!0),V!==0?(this.v.setTripleAt(y+k-V,A+D,y+k-V,A+D,y+k-H,A+D,2,!0),this.v.setTripleAt(y-k+V,A+D,y-k+H,A+D,y-k+V,A+D,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-V,y-k,A+D-H,4,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+H,y-k,A-D+V,5,!0),this.v.setTripleAt(y-k+V,A-D,y-k+V,A-D,y-k+H,A-D,6,!0),this.v.setTripleAt(y+k-V,A-D,y+k-H,A-D,y+k-V,A-D,7,!0)):(this.v.setTripleAt(y-k,A+D,y-k+H,A+D,y-k,A+D,2),this.v.setTripleAt(y-k,A-D,y-k,A-D+H,y-k,A-D,3))):(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+H,y+k,A-D+V,0,!0),V!==0?(this.v.setTripleAt(y+k-V,A-D,y+k-V,A-D,y+k-H,A-D,1,!0),this.v.setTripleAt(y-k+V,A-D,y-k+H,A-D,y-k+V,A-D,2,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+V,y-k,A-D+H,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-H,y-k,A+D-V,4,!0),this.v.setTripleAt(y-k+V,A+D,y-k+V,A+D,y-k+H,A+D,5,!0),this.v.setTripleAt(y+k-V,A+D,y+k-H,A+D,y+k-V,A+D,6,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-V,y+k,A+D-H,7,!0)):(this.v.setTripleAt(y-k,A-D,y-k+H,A-D,y-k,A-D,1,!0),this.v.setTripleAt(y-k,A+D,y-k,A+D-H,y-k,A+D,2,!0),this.v.setTripleAt(y+k,A+D,y+k-H,A+D,y+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:a},$([re],C),C}();function L(C,S,y){var A;if(y===3||y===4){var k=y===3?S.pt:S.ks,D=k.k;D.length?A=new I(C,S,y):A=new T(C,S,y)}else y===5?A=new E(C,S):y===6?A=new w(C,S):y===7&&(A=new B(C,S));return A.k&&C.addDynamicProperty(A),A}function P(){return T}function M(){return I}var z={};return z.getShapeProp=L,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var ne=function(){var t=Math.cos,r=Math.sin,o=Math.tan,a=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 b=t(p),U=r(p);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function u(p){if(p===0)return this;var b=t(p),U=r(p);return this._t(1,0,0,0,0,b,-U,0,0,U,b,0,0,0,0,1)}function T(p){if(p===0)return this;var b=t(p),U=r(p);return this._t(b,0,U,0,0,1,0,0,-U,0,b,0,0,0,0,1)}function f(p){if(p===0)return this;var b=t(p),U=r(p);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function I(p,b){return this._t(1,b,p,1,0,0)}function w(p,b){return this.shear(o(p),o(b))}function B(p,b){var U=t(b),F=r(b);return this._t(U,F,0,0,-F,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,o(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 E(p,b,U){return!U&&U!==0&&(U=1),p===1&&b===1&&U===1?this:this._t(p,0,0,0,0,b,0,0,0,0,U,0,0,0,0,1)}function L(p,b,U,F,ot,mt,ft,Ct,wt,Kt,xe,vr,Ae,ie,Re,Rt){return this.props[0]=p,this.props[1]=b,this.props[2]=U,this.props[3]=F,this.props[4]=ot,this.props[5]=mt,this.props[6]=ft,this.props[7]=Ct,this.props[8]=wt,this.props[9]=Kt,this.props[10]=xe,this.props[11]=vr,this.props[12]=Ae,this.props[13]=ie,this.props[14]=Re,this.props[15]=Rt,this}function P(p,b,U){return U=U||0,p!==0||b!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,p,b,U,1):this}function M(p,b,U,F,ot,mt,ft,Ct,wt,Kt,xe,vr,Ae,ie,Re,Rt){var ct=this.props;if(p===1&&b===0&&U===0&&F===0&&ot===0&&mt===1&&ft===0&&Ct===0&&wt===0&&Kt===0&&xe===1&&vr===0)return ct[12]=ct[12]*p+ct[15]*Ae,ct[13]=ct[13]*mt+ct[15]*ie,ct[14]=ct[14]*xe+ct[15]*Re,ct[15]*=Rt,this._identityCalculated=!1,this;var Cr=ct[0],ii=ct[1],wr=ct[2],gr=ct[3],Lr=ct[4],Nr=ct[5],_e=ct[6],oi=ct[7],si=ct[8],or=ct[9],ai=ct[10],sr=ct[11],Li=ct[12],Oa=ct[13],Pa=ct[14],Da=ct[15];return ct[0]=Cr*p+ii*ot+wr*wt+gr*Ae,ct[1]=Cr*b+ii*mt+wr*Kt+gr*ie,ct[2]=Cr*U+ii*ft+wr*xe+gr*Re,ct[3]=Cr*F+ii*Ct+wr*vr+gr*Rt,ct[4]=Lr*p+Nr*ot+_e*wt+oi*Ae,ct[5]=Lr*b+Nr*mt+_e*Kt+oi*ie,ct[6]=Lr*U+Nr*ft+_e*xe+oi*Re,ct[7]=Lr*F+Nr*Ct+_e*vr+oi*Rt,ct[8]=si*p+or*ot+ai*wt+sr*Ae,ct[9]=si*b+or*mt+ai*Kt+sr*ie,ct[10]=si*U+or*ft+ai*xe+sr*Re,ct[11]=si*F+or*Ct+ai*vr+sr*Rt,ct[12]=Li*p+Oa*ot+Pa*wt+Da*Ae,ct[13]=Li*b+Oa*mt+Pa*Kt+Da*ie,ct[14]=Li*U+Oa*ft+Pa*xe+Da*Re,ct[15]=Li*F+Oa*Ct+Pa*vr+Da*Rt,this._identityCalculated=!1,this}function z(p){var b=p.props;return this.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[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 b=0;b<16;){if(p.props[b]!==this.props[b])return!1;b+=1}return!0}function y(p){var b;for(b=0;b<16;b+=1)p.props[b]=this.props[b];return p}function A(p){var b;for(b=0;b<16;b+=1)this.props[b]=p[b]}function k(p,b,U){return{x:p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],y:p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],z:p*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}}function D(p,b,U){return p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12]}function V(p,b,U){return p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13]}function H(p,b,U){return p*this.props[2]+b*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],b=this.props[5]/p,U=-this.props[1]/p,F=-this.props[4]/p,ot=this.props[0]/p,mt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/p,ft=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/p,Ct=new ne;return Ct.props[0]=b,Ct.props[1]=U,Ct.props[4]=F,Ct.props[5]=ot,Ct.props[12]=mt,Ct.props[13]=ft,Ct}function ut(p){var b=this.getInverseMatrix();return b.applyToPointArray(p[0],p[1],p[2]||0)}function dt(p){var b,U=p.length,F=[];for(b=0;b<U;b+=1)F[b]=ut(p[b]);return F}function tt(p,b,U){var F=J("float32",6);if(this.isIdentity())F[0]=p[0],F[1]=p[1],F[2]=b[0],F[3]=b[1],F[4]=U[0],F[5]=U[1];else{var ot=this.props[0],mt=this.props[1],ft=this.props[4],Ct=this.props[5],wt=this.props[12],Kt=this.props[13];F[0]=p[0]*ot+p[1]*ft+wt,F[1]=p[0]*mt+p[1]*Ct+Kt,F[2]=b[0]*ot+b[1]*ft+wt,F[3]=b[0]*mt+b[1]*Ct+Kt,F[4]=U[0]*ot+U[1]*ft+wt,F[5]=U[0]*mt+U[1]*Ct+Kt}return F}function bt(p,b,U){var F;return this.isIdentity()?F=[p,b,U]:F=[p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],p*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]],F}function lt(p,b){if(this.isIdentity())return p+","+b;var U=this.props;return Math.round((p*U[0]+b*U[4]+U[12])*100)/100+","+Math.round((p*U[1]+b*U[5]+U[13])*100)/100}function X(){for(var p=0,b=this.props,U="matrix3d(",F=1e4;p<16;)U+=a(b[p]*F)/F,U+=p===15?")":",",p+=1;return U}function _(p){var b=1e4;return p<1e-6&&p>0||p>-1e-6&&p<0?a(p*b)/b:p}function O(){var p=this.props,b=_(p[0]),U=_(p[1]),F=_(p[4]),ot=_(p[5]),mt=_(p[12]),ft=_(p[13]);return"matrix("+b+","+U+","+F+","+ot+","+mt+","+ft+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=u,this.rotateY=T,this.rotateZ=f,this.skew=w,this.skewFromAxis=B,this.shear=I,this.scale=E,this.setTransform=L,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=H,this.applyToPointArray=bt,this.applyToTriplePoints=tt,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=S,this.inversePoints=dt,this.inversePoint=ut,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=C,this._identity=!0,this._identityCalculated=!1,this.props=J("float32",16),this.reset()}}();function Ia(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ia=function(o){return typeof o}:Ia=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ia(t)}var Lt={},ka="__[STANDALONE]__",Bd="__[ANIMATIONDATA]__",Ud="";function Jf(t){m(t)}function Hd(){ka===!0?qt.searchAnimations(Bd,ka,Ud):qt.searchAnimations()}function Qf(t){Pf(t)}function tv(t){$f(t)}function ev(t){return ka===!0&&(t.animationData=JSON.parse(Bd)),qt.loadAnimation(t)}function rv(t){if(typeof t=="string")switch(t){case"high":ya(200);break;default:case"medium":ya(50);break;case"low":ya(10);break}else!isNaN(t)&&t>1&&ya(t);as()>=50?$e(!1):$e(!0)}function iv(){return typeof navigator<"u"}function ov(t,r){t==="expressions"&&Ff(r)}function sv(t){switch(t){case"propertyFactory":return rt;case"shapePropertyFactory":return Sa;case"matrix":return ne;default:return null}}Lt.play=qt.play,Lt.pause=qt.pause,Lt.setLocationHref=Jf,Lt.togglePause=qt.togglePause,Lt.setSpeed=qt.setSpeed,Lt.setDirection=qt.setDirection,Lt.stop=qt.stop,Lt.searchAnimations=Hd,Lt.registerAnimation=qt.registerAnimation,Lt.loadAnimation=ev,Lt.setSubframeRendering=Qf,Lt.resize=qt.resize,Lt.goToAndStop=qt.goToAndStop,Lt.destroy=qt.destroy,Lt.setQuality=rv,Lt.inBrowser=iv,Lt.installPlugin=ov,Lt.freeze=qt.freeze,Lt.unfreeze=qt.unfreeze,Lt.setVolume=qt.setVolume,Lt.mute=qt.mute,Lt.unmute=qt.unmute,Lt.getRegisteredAnimations=qt.getRegisteredAnimations,Lt.useWebWorker=n,Lt.setIDPrefix=tv,Lt.__getFactory=sv,Lt.version="5.12.2";function av(){document.readyState==="complete"&&(clearInterval(cv),Hd())}function nv(t){for(var r=Gd.split("&"),o=0;o<r.length;o+=1){var a=r[o].split("=");if(decodeURIComponent(a[0])==t)return decodeURIComponent(a[1])}return null}var Gd="";if(ka){var jd=document.getElementsByTagName("script"),lv=jd.length-1,Yd=jd[lv]||{src:""};Gd=Yd.src?Yd.src.replace(/^[^\?]+\??/,""):"",Ud=nv("renderer")}var cv=setInterval(av,100);try{!((typeof Ds>"u"?"undefined":Ia(Ds))==="object"&&typeof nn<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Lt)}catch{}var Zr=function(){var t={},r={};t.registerModifier=o,t.getModifier=a;function o(d,c){r[d]||(r[d]=c)}function a(d,c,u){return new r[d](c,u)}return t}();function Ve(){}Ve.prototype.initModifierProperties=function(){},Ve.prototype.addShapeToModifier=function(){},Ve.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var r={shape:t.sh,data:t,localShapeCollection:vo.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&t.setAsAnimated()}},Ve.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)},Ve.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([re],Ve);function ir(){}$([Ve],ir),ir.prototype.initModifierProperties=function(t,r){this.s=rt.getProp(t,r.s,0,.01,this),this.e=rt.getProp(t,r.e,0,.01,this),this.o=rt.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},ir.prototype.addShapeToModifier=function(t){t.pathsData=[]},ir.prototype.calculateShapeEdges=function(t,r,o,a,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<a||I.s*d>a+o)){var w,B;I.s*d<=a?w=0:w=(I.s*d-a)/o,I.e*d>=a+o?B=1:B=(I.e*d-a)/o,u.push([w,B])}return u.length||u.push([0,0]),u},ir.prototype.releasePathsData=function(t){var r,o=t.length;for(r=0;r<o;r+=1)Dd.release(t[r]);return t.length=0,t},ir.prototype.processShapes=function(t){var r,o;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?r=1+a:this.s.v<0?r=0+a:r=this.s.v+a,this.e.v>1?o=1+a:this.e.v<0?o=0+a:o=this.e.v+a,r>o){var d=r;r=o,o=d}r=Math.round(r*1e4)*1e-4,o=Math.round(o*1e4)*1e-4,this.sValue=r,this.eValue=o}else r=this.sValue,o=this.eValue;var c,u,T=this.shapes.length,f,I,w,B,E,L=0;if(o===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(o===1&&r===0||o===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 P=[],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,E=0,!M.shape._mdf&&M.pathsData.length)E=M.totalShapeLength;else{for(w=this.releasePathsData(M.pathsData),f=0;f<I;f+=1)B=ur.getSegmentsLength(c.shapes[f]),w.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=w}L+=E,M.shape._mdf=!0}var C=r,S=o,y=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,o,M.totalShapeLength,y,L),y+=M.totalShapeLength):A=[[C,S]],I=A.length,f=0;f<I;f+=1){C=A[f][0],S=A[f][1],P.length=0,S<=1?P.push({s:M.totalShapeLength*C,e:M.totalShapeLength*S}):C>=1?P.push({s:M.totalShapeLength*(C-1),e:M.totalShapeLength*(S-1)}):(P.push({s:M.totalShapeLength*C,e:M.totalShapeLength}),P.push({s:0,e:M.totalShapeLength*(S-1)}));var k=this.addShapes(M,P[0]);if(P[0].s!==P[0].e){if(P.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,P[1],V)}else this.addPaths(k,z),k=this.addShapes(M,P[1])}this.addPaths(k,z)}}M.shape.paths=z}}},ir.prototype.addPaths=function(t,r){var o,a=t.length;for(o=0;o<a;o+=1)r.addShape(t[o])},ir.prototype.addSegment=function(t,r,o,a,d,c,u){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(o[0],o[1],"i",c+1),u&&d.setXYAt(t[0],t[1],"v",c),d.setXYAt(a[0],a[1],"v",c+1)},ir.prototype.addSegmentFromArray=function(t,r,o,a){r.setXYAt(t[1],t[5],"o",o),r.setXYAt(t[2],t[6],"i",o+1),a&&r.setXYAt(t[0],t[4],"v",o),r.setXYAt(t[3],t[7],"v",o+1)},ir.prototype.addShapes=function(t,r,o){var a=t.pathsData,d=t.shape.paths.shapes,c,u=t.shape.paths._length,T,f,I=0,w,B,E,L,P=[],M,z=!0;for(o?(B=o._length,M=o._length):(o=ae.newElement(),B=0,M=0),P.push(o),c=0;c<u;c+=1){for(E=a[c].lengths,o.c=d[c].c,f=d[c].c?E.length:E.length+1,T=1;T<f;T+=1)if(w=E[T-1],I+w.addedLength<r.s)I+=w.addedLength,o.c=!1;else if(I>r.e){o.c=!1;break}else r.s<=I&&r.e>=I+w.addedLength?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[T],d[c].v[T],o,B,z),z=!1):(L=ur.getNewSegment(d[c].v[T-1],d[c].v[T],d[c].o[T-1],d[c].i[T],(r.s-I)/w.addedLength,(r.e-I)/w.addedLength,E[T-1]),this.addSegmentFromArray(L,o,B,z),z=!1,o.c=!1),I+=w.addedLength,B+=1;if(d[c].c&&E.length){if(w=E[T-1],I<=r.e){var C=E[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],o,B,z),z=!1):(L=ur.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,E[T-1]),this.addSegmentFromArray(L,o,B,z),z=!1,o.c=!1)}else o.c=!1;I+=w.addedLength,B+=1}if(o._length&&(o.setXYAt(o.v[M][0],o.v[M][1],"i",M),o.setXYAt(o.v[o._length-1][0],o.v[o._length-1][1],"o",o._length-1)),I>r.e)break;c<u-1&&(o=ae.newElement(),z=!0,P.push(o),B=0)}return P};function hs(){}$([Ve],hs),hs.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=rt.getProp(t,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},hs.prototype.processPath=function(t,r){var o=r/100,a=[0,0],d=t._length,c=0;for(c=0;c<d;c+=1)a[0]+=t.v[c][0],a[1]+=t.v[c][1];a[0]/=d,a[1]/=d;var u=ae.newElement();u.c=t.c;var T,f,I,w,B,E;for(c=0;c<d;c+=1)T=t.v[c][0]+(a[0]-t.v[c][0])*o,f=t.v[c][1]+(a[1]-t.v[c][1])*o,I=t.o[c][0]+(a[0]-t.o[c][0])*-o,w=t.o[c][1]+(a[1]-t.o[c][1])*-o,B=t.i[c][0]+(a[0]-t.i[c][0])*-o,E=t.i[c][1]+(a[1]-t.i[c][1])*-o,u.setTripleAt(T,f,I,w,B,E,c);return u},hs.prototype.processShapes=function(t){var r,o,a=this.shapes.length,d,c,u=this.amount.v;if(u!==0){var T,f;for(o=0;o<a;o+=1){if(T=this.shapes[o],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 hl=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 o(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 w,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?(w=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?(w=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)):(w=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){w=[],B=[];var E=this.px,L=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(w[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),w[1]=L.getValueAtTime((L.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=L.getValueAtTime(L.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(w[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),w[1]=L.getValueAtTime(L.keyframes[L.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=L.getValueAtTime((L.keyframes[L.keyframes.length-1].t-.01)/I,0)):(w=[E.pv,L.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=L.getValueAtTime((L._caching.lastFrame+L.offsetTime-.01)/I,L.offsetTime))}else B=t,w=B;this.v.rotate(-Math.atan2(w[1]-B[1],w[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 a(){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,w){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(w||f),I.p&&I.p.s?(this.px=rt.getProp(f,I.p.x,0,0,this),this.py=rt.getProp(f,I.p.y,0,0,this),I.p.z&&(this.pz=rt.getProp(f,I.p.z,0,0,this))):this.p=rt.getProp(f,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=rt.getProp(f,I.rx,0,_t,this),this.ry=rt.getProp(f,I.ry,0,_t,this),this.rz=rt.getProp(f,I.rz,0,_t,this),I.or.k[0].ti){var B,E=I.or.k.length;for(B=0;B<E;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=rt.getProp(f,I.or,1,_t,this),this.or.sh=!0}else this.r=rt.getProp(f,I.r||{k:0},0,_t,this);I.sk&&(this.sk=rt.getProp(f,I.sk,0,_t,this),this.sa=rt.getProp(f,I.sa,0,_t,this)),this.a=rt.getProp(f,I.a||{k:[0,0,0]},1,0,this),this.s=rt.getProp(f,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=rt.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:o,precalculateMatrix:a,autoOrient:d},$([re],u),u.prototype.addDynamicProperty=c,u.prototype._addDynamicProperty=re.prototype.addDynamicProperty;function T(f,I,w){return new u(f,I,w)}return{getTransformProperty:T}}();function fr(){}$([Ve],fr),fr.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.c=rt.getProp(t,r.c,0,null,this),this.o=rt.getProp(t,r.o,0,null,this),this.tr=hl.getTransformProperty(t,r.tr,this),this.so=rt.getProp(t,r.tr.so,0,.01,this),this.eo=rt.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},fr.prototype.applyTransforms=function(t,r,o,a,d,c){var u=c?-1:1,T=a.s.v[0]+(1-a.s.v[0])*(1-d),f=a.s.v[1]+(1-a.s.v[1])*(1-d);t.translate(a.p.v[0]*u*d,a.p.v[1]*u*d,a.p.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.rotate(-a.r.v*u*d),r.translate(a.a.v[0],a.a.v[1],a.a.v[2]),o.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),o.scale(c?1/T:T,c?1/f:f),o.translate(a.a.v[0],a.a.v[1],a.a.v[2])},fr.prototype.init=function(t,r,o,a){for(this.elem=t,this.arr=r,this.pos=o,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r[o]);o>0;)o-=1,this._elements.unshift(r[o]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},fr.prototype.resetElements=function(t){var r,o=t.length;for(r=0;r<o;r+=1)t[r]._processed=!1,t[r].ty==="gr"&&this.resetElements(t[r].it)},fr.prototype.cloneElements=function(t){var r=JSON.parse(JSON.stringify(t));return this.resetElements(r),r},fr.prototype.changeGroupRender=function(t,r){var o,a=t.length;for(o=0;o<a;o+=1)t[o]._render=r,t[o].ty==="gr"&&this.changeGroupRender(t[o].it,r)},fr.prototype.processShapes=function(t){var r,o,a,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(a=0;a<=this._groups.length-1;a+=1){if(I=c<T,this._groups[a]._render=I,this.changeGroupRender(this._groups[a].it,I),!I){var w=this.elemsData[a].it,B=w[w.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 E=this.o.v,L=E%1,P=E>0?Math.floor(E):Math.ceil(E),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(E>0){for(;S<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,L,!1),S+=L)}else if(E<0){for(;S>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-L,!0),S-=L)}a=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var y,A;c;){if(r=this.elemsData[a].it,o=r[r.length-1].transform.mProps.v.props,A=o.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)*(a/(this._currentCopies-1)),S!==0){for((a!==0&&d===1||a!==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]),y=0;y<A;y+=1)o[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<A;y+=1)o[y]=this.matrix.props[y];S+=1,c-=1,a+=d}}else for(c=this._currentCopies,a=0,d=1;c;)r=this.elemsData[a].it,o=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,a+=d;return u},fr.prototype.addShape=function(){};function ps(){}$([Ve],ps),ps.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.rd=rt.getProp(t,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ps.prototype.processPath=function(t,r){var o=ae.newElement();o.c=t.c;var a,d=t._length,c,u,T,f,I,w,B=0,E,L,P,M,z,C;for(a=0;a<d;a+=1)c=t.v[a],T=t.o[a],u=t.i[a],c[0]===T[0]&&c[1]===T[1]&&c[0]===u[0]&&c[1]===u[1]?(a===0||a===d-1)&&!t.c?(o.setTripleAt(c[0],c[1],T[0],T[1],u[0],u[1],B),B+=1):(a===0?f=t.v[d-1]:f=t.v[a-1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),w=I?Math.min(I/2,r)/I:0,z=c[0]+(f[0]-c[0])*w,E=z,C=c[1]-(c[1]-f[1])*w,L=C,P=E-(E-c[0])*he,M=L-(L-c[1])*he,o.setTripleAt(E,L,P,M,z,C,B),B+=1,a===d-1?f=t.v[0]:f=t.v[a+1],I=Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)),w=I?Math.min(I/2,r)/I:0,P=c[0]+(f[0]-c[0])*w,E=P,M=c[1]+(f[1]-c[1])*w,L=M,z=E-(E-c[0])*he,C=L-(L-c[1])*he,o.setTripleAt(E,L,P,M,z,C,B),B+=1):(o.setTripleAt(t.v[a][0],t.v[a][1],t.o[a][0],t.o[a][1],t.i[a][0],t.i[a][1],B),B+=1);return o},ps.prototype.processShapes=function(t){var r,o,a=this.shapes.length,d,c,u=this.rd.v;if(u!==0){var T,f;for(o=0;o<a;o+=1){if(T=this.shapes[o],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 Ca(t,r){return Math.abs(t-r)*1e5<=Math.min(Math.abs(t),Math.abs(r))}function pl(t){return Math.abs(t)<=1e-5}function Wd(t,r,o){return t*(1-o)+r*o}function Jr(t,r,o){return[Wd(t[0],r[0],o),Wd(t[1],r[1],o)]}function dv(t,r,o){if(t===0)return[];var a=r*r-4*t*o;if(a<0)return[];var d=-r/(2*t);if(a===0)return[d];var c=Math.sqrt(a)/(2*t);return[d-c,d+c]}function qd(t,r,o,a){return[-t+3*r-3*o+a,3*t-6*r+3*o,-3*t+3*r,t]}function Kd(t){return new Vt(t,t,t,t,!1)}function Vt(t,r,o,a,d){d&&bo(t,r)&&(r=Jr(t,a,1/3)),d&&bo(o,a)&&(o=Jr(t,a,2/3));var c=qd(t[0],r[0],o[0],a[0]),u=qd(t[1],r[1],o[1],a[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,o,a]}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(pl(t))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,o=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(o<0)return[];var a=Math.sqrt(o);return pl(a)?a>0&&a<1?[r]:[]:[r-a,r+a].filter(function(d){return d>0&&d<1})},Vt.prototype.split=function(t){if(t<=0)return[Kd(this.points[0]),this];if(t>=1)return[this,Kd(this.points[this.points.length-1])];var r=Jr(this.points[0],this.points[1],t),o=Jr(this.points[1],this.points[2],t),a=Jr(this.points[2],this.points[3],t),d=Jr(r,o,t),c=Jr(o,a,t),u=Jr(d,c,t);return[new Vt(this.points[0],r,d,u,!0),new Vt(u,c,a,this.points[3],!0)]};function Xd(t,r){var o=t.points[0][r],a=t.points[t.points.length-1][r];if(o>a){var d=a;a=o,o=d}for(var c=dv(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<o?o=T:T>a&&(a=T)}return{min:o,max:a}}Vt.prototype.bounds=function(){return{x:Xd(this,0),y:Xd(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 wa(t,r,o){var a=t.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:t,t:(r+o)/2,t1:r,t2:o}}function Zd(t){var r=t.bez.split(.5);return[wa(r[0],t.t1,t.t),wa(r[1],t.t,t.t2)]}function hv(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 ms(t,r,o,a,d,c){if(hv(t,r)){if(o>=c||t.width<=a&&t.height<=a&&r.width<=a&&r.height<=a){d.push([t.t,r.t]);return}var u=Zd(t),T=Zd(r);ms(u[0],T[0],o+1,a,d,c),ms(u[0],T[1],o+1,a,d,c),ms(u[1],T[0],o+1,a,d,c),ms(u[1],T[1],o+1,a,d,c)}}Vt.prototype.intersections=function(t,r,o){r===void 0&&(r=2),o===void 0&&(o=7);var a=[];return ms(wa(this,0,1),wa(t,0,1),0,r,a,o),a},Vt.shapeSegment=function(t,r){var o=(r+1)%t.length();return new Vt(t.v[r],t.o[r],t.i[o],t.v[o],!0)},Vt.shapeSegmentInverted=function(t,r){var o=(r+1)%t.length();return new Vt(t.v[o],t.i[o],t.o[r],t.v[r],!0)};function ml(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 La(t,r,o,a){var d=[t[0],t[1],1],c=[r[0],r[1],1],u=[o[0],o[1],1],T=[a[0],a[1],1],f=ml(ml(d,c),ml(u,T));return pl(f[2])?null:[f[0]/f[2],f[1]/f[2]]}function go(t,r,o){return[t[0]+Math.cos(r)*o,t[1]-Math.sin(r)*o]}function ul(t,r){return Math.hypot(t[0]-r[0],t[1]-r[1])}function bo(t,r){return Ca(t[0],r[0])&&Ca(t[1],r[1])}function us(){}$([Ve],us),us.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amplitude=rt.getProp(t,r.s,0,null,this),this.frequency=rt.getProp(t,r.r,0,null,this),this.pointsType=rt.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 Jd(t,r,o,a,d,c,u){var T=o-Math.PI/2,f=o+Math.PI/2,I=r[0]+Math.cos(o)*a*d,w=r[1]-Math.sin(o)*a*d;t.setTripleAt(I,w,I+Math.cos(T)*c,w-Math.sin(T)*c,I+Math.cos(f)*u,w-Math.sin(f)*u,t.length())}function pv(t,r){var o=[r[0]-t[0],r[1]-t[1]],a=-Math.PI*.5,d=[Math.cos(a)*o[0]-Math.sin(a)*o[1],Math.sin(a)*o[0]+Math.cos(a)*o[1]];return d}function mv(t,r){var o=r===0?t.length()-1:r-1,a=(r+1)%t.length(),d=t.v[o],c=t.v[a],u=pv(d,c);return Math.atan2(0,1)-Math.atan2(u[1],u[0])}function Qd(t,r,o,a,d,c,u){var T=mv(r,o),f=r.v[o%r._length],I=r.v[o===0?r._length-1:o-1],w=r.v[(o+1)%r._length],B=c===2?Math.sqrt(Math.pow(f[0]-I[0],2)+Math.pow(f[1]-I[1],2)):0,E=c===2?Math.sqrt(Math.pow(f[0]-w[0],2)+Math.pow(f[1]-w[1],2)):0;Jd(t,r.v[o%r._length],T,u,a,E/((d+1)*2),B/((d+1)*2),c)}function uv(t,r,o,a,d,c){for(var u=0;u<a;u+=1){var T=(u+1)/(a+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),w=r.point(T);Jd(t,w,I,c,o,f/((a+1)*2),f/((a+1)*2),d),c=-c}return c}us.prototype.processPath=function(t,r,o,a){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);Qd(c,t,0,r,o,a,u);for(var f=0;f<d;f+=1)u=uv(c,T,r,o,a,-u),f===d-1&&!t.c?T=null:T=Vt.shapeSegment(t,(f+1)%d),Qd(c,t,f+1,r,o,a,u);return c},us.prototype.processShapes=function(t){var r,o,a=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,w;for(o=0;o<a;o+=1){if(I=this.shapes[o],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(w.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)w.addShape(this.processPath(r[d],u,T,f));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function fl(t,r,o){var a=Math.atan2(r[0]-t[0],r[1]-t[1]);return[go(t,a,o),go(r,a,o)]}function yo(t,r){var o,a,d,c,u,T,f;f=fl(t.points[0],t.points[1],r),o=f[0],a=f[1],f=fl(t.points[1],t.points[2],r),d=f[0],c=f[1],f=fl(t.points[2],t.points[3],r),u=f[0],T=f[1];var I=La(o,a,d,c);I===null&&(I=a);var w=La(u,T,d,c);return w===null&&(w=u),new Vt(o,I,w,T)}function th(t,r,o,a,d){var c=r.points[3],u=o.points[0];if(a===3||bo(c,u))return c;if(a===2){var T=-r.tangentAngle(1),f=-o.tangentAngle(0)+Math.PI,I=La(c,go(c,T+Math.PI/2,100),u,go(u,T+Math.PI/2,100)),w=I?ul(I,c):ul(c,u)/2,B=go(c,T,2*w*he);return t.setXYAt(B[0],B[1],"o",t.length()-1),B=go(u,f,2*w*he),t.setTripleAt(u[0],u[1],u[0],u[1],B[0],B[1],t.length()),u}var E=bo(c,r.points[2])?r.points[0]:r.points[2],L=bo(u,o.points[1])?o.points[3]:o.points[1],P=La(E,c,u,L);return P&&ul(P,c)<d?(t.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],t.length()),P):c}function eh(t,r){var o=t.intersections(r);return o.length&&Ca(o[0][0],1)&&o.shift(),o.length?o[0]:null}function rh(t,r){var o=t.slice(),a=r.slice(),d=eh(t[t.length-1],r[0]);return d&&(o[t.length-1]=t[t.length-1].split(d[0])[0],a[0]=r[0].split(d[1])[1]),t.length>1&&r.length>1&&(d=eh(t[0],r[r.length-1]),d)?[[t[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[o,a]}function fv(t){for(var r,o=1;o<t.length;o+=1)r=rh(t[o-1],t[o]),t[o-1]=r[0],t[o]=r[1];return t.length>1&&(r=rh(t[t.length-1],t[0]),t[t.length-1]=r[0],t[0]=r[1]),t}function ih(t,r){var o=t.inflectionPoints(),a,d,c,u;if(o.length===0)return[yo(t,r)];if(o.length===1||Ca(o[1],1))return c=t.split(o[0]),a=c[0],d=c[1],[yo(a,r),yo(d,r)];c=t.split(o[0]),a=c[0];var T=(o[1]-o[0])/(1-o[0]);return c=c[1].split(T),u=c[0],d=c[1],[yo(a,r),yo(u,r),yo(d,r)]}function fs(){}$([Ve],fs),fs.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=rt.getProp(t,r.a,0,null,this),this.miterLimit=rt.getProp(t,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},fs.prototype.processPath=function(t,r,o,a){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(ih(f,r));if(!t.c)for(u=c-1;u>=0;u-=1)f=Vt.shapeSegmentInverted(t,u),I.push(ih(f,r));I=fv(I);var w=null,B=null;for(u=0;u<I.length;u+=1){var E=I[u];for(B&&(w=th(d,B,E[0],o,a)),B=E[E.length-1],T=0;T<E.length;T+=1)f=E[T],w&&bo(f.points[0],w)?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()),w=f.points[3]}return I.length&&th(d,B,I[0][0],o,a),d},fs.prototype.processShapes=function(t){var r,o,a=this.shapes.length,d,c,u=this.amount.v,T=this.miterLimit.v,f=this.lineJoin;if(u!==0){var I,w;for(o=0;o<a;o+=1){if(I=this.shapes[o],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(w.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)w.addShape(this.processPath(r[d],u,f,T));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function oh(t){for(var r=t.fStyle?t.fStyle.split(" "):[],o="normal",a="normal",d=r.length,c,u=0;u<d;u+=1)switch(c=r[u].toLowerCase(),c){case"italic":a="italic";break;case"bold":o="700";break;case"black":o="900";break;case"medium":o="500";break;case"regular":case"normal":o="400";break;case"light":case"thin":o="200";break;default:break}return{style:a,weight:t.fWeight||o}}var ki=function(){var t=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},o=[];o=o.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 a=127988,d=917631,c=917601,u=917626,T=65039,f=8205,I=127462,w=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function E(_){var O=_.split(","),p,b=O.length,U=[];for(p=0;p<b;p+=1)O[p]!=="sans-serif"&&O[p]!=="monospace"&&U.push(O[p]);return U.join(",")}function L(_,O){var p=R("span");p.setAttribute("aria-hidden",!0),p.style.fontFamily=O;var b=R("span");b.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(b),document.body.appendChild(p);var U=b.offsetWidth;return b.style.fontFamily=E(_)+", "+O,{node:b,w:U,parent:p}}function P(){var _,O=this.fonts.length,p,b,U=O;for(_=0;_<O;_+=1)this.fonts[_].loaded?U-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(p=this.fonts[_].monoCase.node,b=this.fonts[_].monoCase.w,p.offsetWidth!==b?(U-=1,this.fonts[_].loaded=!0):(p=this.fonts[_].sansCase.node,b=this.fonts[_].sansCase.w,p.offsetWidth!==b&&(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(_,O){var p=document.body&&O?"svg":"canvas",b,U=oh(_);if(p==="svg"){var F=gt("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,O.appendChild(F),b=F}else{var ot=new OffscreenCanvas(500,500).getContext("2d");ot.font=U.style+" "+U.weight+" 100px "+_.fFamily,b=ot}function mt(ft){return p==="svg"?(b.textContent=ft,b.getComputedTextLength()):b.measureText(ft).width}return{measureText:mt}}function z(_,O){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,b,U=p.length,F=U;for(b=0;b<U;b+=1){var ot=!0,mt,ft;if(p[b].loaded=!1,p[b].monoCase=L(p[b].fFamily,"monospace"),p[b].sansCase=L(p[b].fFamily,"sans-serif"),!p[b].fPath)p[b].loaded=!0,F-=1;else if(p[b].fOrigin==="p"||p[b].origin===3){if(mt=document.querySelectorAll('style[f-forigin="p"][f-family="'+p[b].fFamily+'"], style[f-origin="3"][f-family="'+p[b].fFamily+'"]'),mt.length>0&&(ot=!1),ot){var Ct=R("style");Ct.setAttribute("f-forigin",p[b].fOrigin),Ct.setAttribute("f-origin",p[b].origin),Ct.setAttribute("f-family",p[b].fFamily),Ct.type="text/css",Ct.innerText="@font-face {font-family: "+p[b].fFamily+"; font-style: normal; src: url('"+p[b].fPath+"');}",O.appendChild(Ct)}}else if(p[b].fOrigin==="g"||p[b].origin===1){for(mt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ft=0;ft<mt.length;ft+=1)mt[ft].href.indexOf(p[b].fPath)!==-1&&(ot=!1);if(ot){var wt=R("link");wt.setAttribute("f-forigin",p[b].fOrigin),wt.setAttribute("f-origin",p[b].origin),wt.type="text/css",wt.rel="stylesheet",wt.href=p[b].fPath,document.body.appendChild(wt)}}else if(p[b].fOrigin==="t"||p[b].origin===2){for(mt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ft=0;ft<mt.length;ft+=1)p[b].fPath===mt[ft].src&&(ot=!1);if(ot){var Kt=R("link");Kt.setAttribute("f-forigin",p[b].fOrigin),Kt.setAttribute("f-origin",p[b].origin),Kt.setAttribute("rel","stylesheet"),Kt.setAttribute("href",p[b].fPath),O.appendChild(Kt)}}p[b].helper=M(p[b],O),p[b].cache={},this.fonts.push(p[b])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function C(_){if(_){this.chars||(this.chars=[]);var O,p=_.length,b,U=this.chars.length,F;for(O=0;O<p;O+=1){for(b=0,F=!1;b<U;)this.chars[b].style===_[O].style&&this.chars[b].fFamily===_[O].fFamily&&this.chars[b].ch===_[O].ch&&(F=!0),b+=1;F||(this.chars.push(_[O]),U+=1)}}}function S(_,O,p){for(var b=0,U=this.chars.length;b<U;){if(this.chars[b].ch===_&&this.chars[b].style===O&&this.chars[b].fFamily===p)return this.chars[b];b+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,O,p)),r}function y(_,O,p){var b=this.getFontByName(O),U=_;if(!b.cache[U]){var F=b.helper;if(_===" "){var ot=F.measureText("|"+_+"|"),mt=F.measureText("||");b.cache[U]=(ot-mt)/100}else b.cache[U]=F.measureText(_)/100}return b.cache[U]*p}function A(_){for(var O=0,p=this.fonts.length;O<p;){if(this.fonts[O].fName===_)return this.fonts[O];O+=1}return this.fonts[0]}function k(_){var O=0,p=_.charCodeAt(0);if(p>=55296&&p<=56319){var b=_.charCodeAt(1);b>=56320&&b<=57343&&(O=(p-55296)*1024+b-56320+65536)}return O}function D(_,O){var p=_.toString(16)+O.toString(16);return B.indexOf(p)!==-1}function V(_){return _===f}function H(_){return _===T}function Z(_){var O=k(_);return O>=I&&O<=w}function ut(_){return Z(_.substr(0,2))&&Z(_.substr(2,2))}function dt(_){return o.indexOf(_)!==-1}function tt(_,O){var p=k(_.substr(O,2));if(p!==a)return!1;var b=0;for(O+=2;b<5;){if(p=k(_.substr(O,2)),p<c||p>u)return!1;b+=1,O+=2}return k(_.substr(O,2))===d}function bt(){this.isLoaded=!0}var lt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};lt.isModifier=D,lt.isZeroWidthJoiner=V,lt.isFlagEmoji=ut,lt.isRegionalCode=Z,lt.isCombinedCharacter=dt,lt.isRegionalFlag=tt,lt.isVariationSelector=H,lt.BLACK_FLAG_CODE_POINT=a;var X={addChars:C,addFonts:z,getCharData:S,getFontByName:A,measureText:y,checkLoadedFonts:P,setIsLoaded:bt};return lt.prototype=X,lt}();function sh(t){this.animationData=t}sh.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function vv(t){return new sh(t)}function Na(){}Na.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,o=this.renderableComponents.length;for(r=0;r<o;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 vl=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 gv(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function bv(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function yv(t,r,o){this.p=rt.getProp(r,t.v,1,0,o)}function Ev(t,r,o){this.p=rt.getProp(r,t.v,1,0,o)}function Tv(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function xv(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function Av(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function _v(){this.p={}}function ah(t,r){var o=t.ef||[];this.effectElements=[];var a,d=o.length,c;for(a=0;a<d;a+=1)c=new vs(o[a],r),this.effectElements.push(c)}function vs(t,r){this.init(t,r)}$([re],vs),vs.prototype.getValue=vs.prototype.iterateDynamicProperties,vs.prototype.init=function(t,r){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(r);var o,a=this.data.ef.length,d,c=this.data.ef;for(o=0;o<a;o+=1){switch(d=null,c[o].ty){case 0:d=new gv(c[o],r,this);break;case 1:d=new bv(c[o],r,this);break;case 2:d=new yv(c[o],r,this);break;case 3:d=new Ev(c[o],r,this);break;case 4:case 7:d=new Av(c[o],r,this);break;case 10:d=new Tv(c[o],r,this);break;case 11:d=new xv(c[o],r,this);break;case 5:d=new ah(c[o],r,this);break;default:d=new _v(c[o],r,this);break}d&&this.effectElements.push(d)}};function Qr(){}Qr.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,o=this.data.masksProperties.length;r<o;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=Rd();if(r){var o=r("layer"),a=r("effects"),d=r("shape"),c=r("text"),u=r("comp");this.layerInterface=o(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var T=a.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=vl(this.data.bm),o=this.baseElement||this.layerElement;o.style["mix-blend-mode"]=r},initBaseData:function(r,o,a){this.globalData=o,this.comp=a,this.data=r,this.layerId=Ee(),this.data.sr||(this.data.sr=1),this.effectsManager=new ah(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function ti(){}ti.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,o){var a,d=this.dynamicProperties.length;for(a=0;a<d;a+=1)(o||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function ei(t,r,o){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(t,r,o)}ei.prototype.prepareFrame=function(){},$([Na,Qr,ti],ei),ei.prototype.getBaseElement=function(){return null},ei.prototype.renderFrame=function(){},ei.prototype.destroy=function(){},ei.prototype.initExpressions=function(){var t=Rd();if(t){var r=t("footage");this.layerInterface=r(this)}},ei.prototype.getFootageData=function(){return this.footageData};function Te(t,r,o){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.initBaseData(t,r,o),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?rt.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=rt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}Te.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 o=this._volume*this._volumeMultiplier;this._previousVolume!==o&&(this._previousVolume=o,this.audio.volume(o))},$([Na,Qr,ti],Te),Te.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))},Te.prototype.show=function(){},Te.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Te.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Te.prototype.resume=function(){this._canPlay=!0},Te.prototype.setRate=function(t){this.audio.rate(t)},Te.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Te.prototype.getBaseElement=function(){return null},Te.prototype.destroy=function(){},Te.prototype.sourceRectAtTime=function(){},Te.prototype.initExpressions=function(){};function le(){}le.prototype.checkLayers=function(t){var r,o=this.layers.length,a;for(this.completeLayers=!0,r=o-1;r>=0;r-=1)this.elements[r]||(a=this.layers[r],a.ip-a.st<=t-this.layers[r].st&&a.op-a.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 Te(t,this.globalData,this)},le.prototype.createFootage=function(t){return new ei(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,o=t.length,a,d=this.layers.length;for(r=0;r<o;r+=1)for(a=0;a<d;){if(this.layers[a].id===t[r].id){this.layers[a]=t[r];break}a+=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,o){for(var a=this.elements,d=this.layers,c=0,u=d.length;c<u;)d[c].ind==r&&(!a[c]||a[c]===!0?(this.buildItem(c),this.addPendingElement(t)):(o.push(a[c]),a[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(t,d[c].parent,o):t.setHierarchy(o))),c+=1},le.prototype.addPendingElement=function(t){this.pendingElements.push(t)},le.prototype.searchExtraCompositions=function(t){var r,o=t.length;for(r=0;r<o;r+=1)if(t[r].xt){var a=this.createComp(t[r]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},le.prototype.getElementById=function(t){var r,o=this.elements.length;for(r=0;r<o;r+=1)if(this.elements[r].data.ind===t)return this.elements[r];return null},le.prototype.getElementByPath=function(t){var r=t.shift(),o;if(typeof r=="number")o=this.elements[r];else{var a,d=this.elements.length;for(a=0;a<d;a+=1)if(this.elements[a].data.nm===r){o=this.elements[a];break}}return t.length===0?o:o.getElementByPath(t)},le.prototype.setupGlobalData=function(t,r){this.globalData.fontManager=new ki,this.globalData.slotManager=vv(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 Sv={TRANSFORM_EFFECT:"transformEFfect"};function Eo(){}Eo.prototype={initTransform:function(){var r=new ne;this.finalTransform={mProp:this.data.ks?hl.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,o=this.finalTransform.mat,a=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<d;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,o.cloneFromProps(r),a=0;a<d;a+=1)o.multiply(this.hierarchy[a].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,o=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<o;)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 a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),r=1;r<o;r+=1){var d=this.localTransforms[r].matrix;a.multiply(d)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<o;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Sv.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new ne;var o=0,a=r.length;for(o=0;o<a;o+=1)this.localTransforms.push(r[o])}}},globalToLocal:function(r){var o=[];o.push(this.finalTransform);for(var a=!0,d=this.comp;a;)d.finalTransform?(d.data.hasMask&&o.splice(0,0,d.finalTransform),d=d.comp):a=!1;var c,u=o.length,T;for(c=0;c<u;c+=1)T=o[c].mat.applyToPointArray(0,0,0),r=[r[0]-T[0],r[1]-T[1],0];return r},mHelper:new ne};function Ci(t,r,o){this.data=t,this.element=r,this.globalData=o,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=et(c),this.solidPath="";var u,T=this.masksProperties,f=0,I=[],w,B,E=Ee(),L,P,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?(L=gt("rect"),L.setAttribute("fill","#ffffff"),L.setAttribute("width",this.element.comp.data.w||0),L.setAttribute("height",this.element.comp.data.h||0),I.push(L)):L=null,u=gt("path"),T[d].mode==="n")this.viewData[d]={op:rt.getProp(this.element,T[d].o,0,.01,this.element),prop:Sa.getShapeProp(this.element,T[d],3),elem:u,lastPath:""},a.appendChild(u);else{f+=1,u.setAttribute("fill",T[d].mode==="s"?"#000000":"#ffffff"),u.setAttribute("clip-rule","nonzero");var y;if(T[d].x.k!==0?(C="mask",S="mask",z=rt.getProp(this.element,T[d].x,0,null,this.element),y=Ee(),P=gt("filter"),P.setAttribute("id",y),M=gt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),a.appendChild(P),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:y,lastRadius:0},T[d].mode==="i"){B=I.length;var A=gt("g");for(w=0;w<B;w+=1)A.appendChild(I[w]);var k=gt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",E+"_"+f),k.appendChild(u),a.appendChild(k),A.setAttribute("mask","url("+x()+"#"+E+"_"+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:rt.getProp(this.element,T[d].o,0,.01,this.element),prop:Sa.getShapeProp(this.element,T[d],3),invRect:L},this.viewData[d].prop.k||this.drawPath(T[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=gt(C),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);f>0&&(this.maskElement.setAttribute("id",E),this.element.maskedElement.setAttribute(S,"url("+x()+"#"+E+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Ci.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ci.prototype.renderFrame=function(t){var r=this.element.finalTransform.mat,o,a=this.masksProperties.length;for(o=0;o<a;o+=1)if((this.viewData[o].prop._mdf||t)&&this.drawPath(this.masksProperties[o],this.viewData[o].prop.v,this.viewData[o]),(this.viewData[o].op._mdf||t)&&this.viewData[o].elem.setAttribute("fill-opacity",this.viewData[o].op.v),this.masksProperties[o].mode!=="n"&&(this.viewData[o].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[o].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[o].x&&(this.storedData[o].x._mdf||t))){var d=this.storedData[o].expan;this.storedData[o].x.v<0?(this.storedData[o].lastOperator!=="erode"&&(this.storedData[o].lastOperator="erode",this.storedData[o].elem.setAttribute("filter","url("+x()+"#"+this.storedData[o].filterId+")")),d.setAttribute("radius",-this.storedData[o].x.v)):(this.storedData[o].lastOperator!=="dilate"&&(this.storedData[o].lastOperator="dilate",this.storedData[o].elem.setAttribute("filter",null)),this.storedData[o].elem.setAttribute("stroke-width",this.storedData[o].x.v*2))}},Ci.prototype.getMaskelement=function(){return this.maskElement},Ci.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},Ci.prototype.drawPath=function(t,r,o){var a=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)a+=" 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&&(a+=" 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]),o.lastPath!==a){var u="";o.elem&&(r.c&&(u=t.inv?this.solidPath+a:a),o.elem.setAttribute("d",u)),o.lastPath=a}},Ci.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var gs=function(){var t={};t.createFilter=r,t.createAlphaToLuminanceFilter=o;function r(a,d){var c=gt("filter");return c.setAttribute("id",a),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function o(){var a=gt("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return t}(),nh=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}(),Ra={},lh="filter_result_";function gl(t){var r,o="SourceGraphic",a=t.data.ef?t.data.ef.length:0,d=Ee(),c=gs.createFilter(d,!0),u=0;this.filters=[];var T;for(r=0;r<a;r+=1){T=null;var f=t.data.ef[r].ty;if(Ra[f]){var I=Ra[f].effect;T=new I(c,t.effectsManager.effectElements[r],t,lh+u,o),o=lh+u,Ra[f].countsAsEffect&&(u+=1)}T&&this.filters.push(T)}u&&(t.globalData.defs.appendChild(c),t.layerElement.setAttribute("filter","url("+x()+"#"+d+")")),this.filters.length&&t.addRenderableComponent(this)}gl.prototype.renderFrame=function(t){var r,o=this.filters.length;for(r=0;r<o;r+=1)this.filters[r].renderFrame(t)},gl.prototype.getEffects=function(t){var r,o=this.filters.length,a=[];for(r=0;r<o;r+=1)this.filters[r].type===t&&a.push(this.filters[r]);return a};function _E(t,r,o){Ra[t]={effect:r,countsAsEffect:o}}function bs(){}bs.prototype={initRendererElement:function(){this.layerElement=gt("g")},createContainerElements:function(){this.matteElement=gt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var o=gt("g");o.setAttribute("id",this.layerId),o.appendChild(this.layerElement),r=o,this.globalData.defs.appendChild(o)}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 a=gt("clipPath"),d=gt("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=Ee();if(a.setAttribute("id",c),a.appendChild(d),this.globalData.defs.appendChild(a),this.checkMasks()){var u=gt("g");u.setAttribute("clip-path","url("+x()+"#"+c+")"),u.appendChild(this.layerElement),this.transformedElement=u,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+x()+"#"+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 Ci(this.data,this,this.globalData),this.renderableEffectsManager=new gl(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var o=this.layerId+"_"+r,a,d,c,u;if(r===1||r===3){var T=gt("mask");T.setAttribute("id",o),T.setAttribute("mask-type",r===3?"luminance":"alpha"),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),T.appendChild(c),this.globalData.defs.appendChild(T),!nh.maskType&&r===1&&(T.setAttribute("mask-type","luminance"),a=Ee(),d=gs.createFilter(a),this.globalData.defs.appendChild(d),d.appendChild(gs.createAlphaToLuminanceFilter()),u=gt("g"),u.appendChild(c),T.appendChild(u),u.setAttribute("filter","url("+x()+"#"+a+")"))}else if(r===2){var f=gt("mask");f.setAttribute("id",o),f.setAttribute("mask-type","alpha");var I=gt("g");f.appendChild(I),a=Ee(),d=gs.createFilter(a);var w=gt("feComponentTransfer");w.setAttribute("in","SourceGraphic"),d.appendChild(w);var B=gt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),w.appendChild(B),this.globalData.defs.appendChild(d);var E=gt("rect");E.setAttribute("width",this.comp.data.w),E.setAttribute("height",this.comp.data.h),E.setAttribute("x","0"),E.setAttribute("y","0"),E.setAttribute("fill","#ffffff"),E.setAttribute("opacity","0"),I.setAttribute("filter","url("+x()+"#"+a+")"),I.appendChild(E),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),nh.maskType||(f.setAttribute("mask-type","luminance"),d.appendChild(gs.createAlphaToLuminanceFilter()),u=gt("g"),I.appendChild(E),u.appendChild(this.layerElement),I.appendChild(u)),this.globalData.defs.appendChild(f)}this.matteMasks[r]=o}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+x()+"#"+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 ys(){}(function(){var t={initElement:function(o,a,d){this.initFrame(),this.initBaseData(o,a,d),this.initTransform(o,a,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 o=this.baseElement||this.layerElement;o.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var o=this.baseElement||this.layerElement;o.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(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};$([Na,K(t)],ys)})();function Es(t,r,o){this.assetData=r.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(t,r,o),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}$([Qr,Eo,bs,To,ti,ys],Es),Es.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=gt("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 Iv(t,r){this.elem=t,this.pos=r}function ch(){}ch.prototype={addShapeToModifiers:function(r){var o,a=this.shapeModifiers.length;for(o=0;o<a;o+=1)this.shapeModifiers[o].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var o=0,a=this.shapeModifiers.length;o<a;)if(this.shapeModifiers[o].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,o=this.shapes.length;for(r=0;r<o;r+=1)this.shapes[r].sh.reset();o=this.shapeModifiers.length;var a;for(r=o-1;r>=0&&(a=this.shapeModifiers[r].processShapes(this._isFirstFrame),!a);r-=1);}},searchProcessedElement:function(r){for(var o=this.processedElements,a=0,d=o.length;a<d;){if(o[a].elem===r)return o[a].pos;a+=1}return 0},addProcessedElement:function(r,o){for(var a=this.processedElements,d=a.length;d;)if(d-=1,a[d].elem===r){a[d].pos=o;return}a.push(new Iv(r,o))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var dh={1:"butt",2:"round",3:"square"},hh={1:"miter",2:"round",3:"bevel"};function ph(t,r,o){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=o,this.lvl=r,this._isAnimated=!!o.k;for(var a=0,d=t.length;a<d;){if(t[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}ph.prototype.setAsAnimated=function(){this._isAnimated=!0};function mh(t,r){this.data=t,this.type=t.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=t.hd===!0,this.pElem=gt("path"),this.msElem=null}mh.prototype.reset=function(){this.d="",this._mdf=!1};function Ma(t,r,o,a){this.elem=t,this.frameId=-1,this.dataProps=et(r.length),this.renderer=o,this.k=!1,this.dashStr="",this.dashArray=J("float32",r.length?r.length-1:0),this.dashoffset=J("float32",1),this.initDynamicPropertyContainer(a);var d,c=r.length||0,u;for(d=0;d<c;d+=1)u=rt.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}Ma.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,o=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<o;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}},$([re],Ma);function uh(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=rt.getProp(t,r.o,0,.01,this),this.w=rt.getProp(t,r.w,0,null,this),this.d=new Ma(t,r.d||{},"svg",this),this.c=rt.getProp(t,r.c,1,255,this),this.style=o,this._isAnimated=!!this._isAnimated}$([re],uh);function fh(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=rt.getProp(t,r.o,0,.01,this),this.c=rt.getProp(t,r.c,1,255,this),this.style=o}$([re],fh);function vh(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=o}$([re],vh);function Ts(t,r,o){this.data=r,this.c=J("uint8c",r.p*4);var a=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",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(o),this.prop=rt.getProp(t,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ts.prototype.comparePoints=function(t,r){for(var o=0,a=this.o.length/2,d;o<a;){if(d=Math.abs(t[o*4]-t[r*4+o*2]),d>.01)return!1;o+=1}return!0},Ts.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},Ts.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var r,o=this.data.p*4,a,d;for(r=0;r<o;r+=1)a=r%4===0?100:255,d=Math.round(this.prop.v[r]*a),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!t);if(this.o.length)for(o=this.prop.v.length,r=this.data.p*4;r<o;r+=1)a=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}},$([re],Ts);function xo(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,r,o)}xo.prototype.initGradientData=function(t,r,o){this.o=rt.getProp(t,r.o,0,.01,this),this.s=rt.getProp(t,r.s,1,null,this),this.e=rt.getProp(t,r.e,1,null,this),this.h=rt.getProp(t,r.h||{k:0},0,.01,this),this.a=rt.getProp(t,r.a||{k:0},0,_t,this),this.g=new Ts(t,r.g,this),this.style=o,this.stops=[],this.setGradientData(o.pElem,r),this.setGradientOpacity(r,o),this._isAnimated=!!this._isAnimated},xo.prototype.setGradientData=function(t,r){var o=Ee(),a=gt(r.t===1?"linearGradient":"radialGradient");a.setAttribute("id",o),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,u,T;for(T=r.g.p*4,u=0;u<T;u+=4)c=gt("stop"),a.appendChild(c),d.push(c);t.setAttribute(r.ty==="gf"?"fill":"stroke","url("+x()+"#"+o+")"),this.gf=a,this.cst=d},xo.prototype.setGradientOpacity=function(t,r){if(this.g._hasOpacity&&!this.g._collapsable){var o,a,d,c=gt("mask"),u=gt("path");c.appendChild(u);var T=Ee(),f=Ee();c.setAttribute("id",f);var I=gt(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 w=this.stops;for(a=t.g.p*4;a<d;a+=2)o=gt("stop"),o.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(o),w.push(o);u.setAttribute(t.ty==="gf"?"fill":"stroke","url("+x()+"#"+T+")"),t.ty==="gs"&&(u.setAttribute("stroke-linecap",dh[t.lc||2]),u.setAttribute("stroke-linejoin",hh[t.lj||2]),t.lj===1&&u.setAttribute("stroke-miterlimit",t.ml)),this.of=I,this.ms=c,this.ost=w,this.maskId=f,r.msElem=u}},$([re],xo);function gh(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=rt.getProp(t,r.w,0,null,this),this.d=new Ma(t,r.d||{},"svg",this),this.initGradientData(t,r,o),this._isAnimated=!!this._isAnimated}$([xo,re],gh);function kv(){this.it=[],this.prevViewData=[],this.gr=gt("g")}function Cv(t,r,o){this.transform={mProps:t,op:r,container:o},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var bh=function(r,o,a,d){if(o===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<o;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 a&&o&&(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},wv=function(){var t=new ne,r=new ne,o={createRenderFunction:a};function a(B){switch(B.ty){case"fl":return T;case"gf":return I;case"gs":return f;case"st":return w;case"sh":case"el":case"rc":case"sr":return u;case"tr":return d;case"no":return c;default:return null}}function d(B,E,L){(L||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(L||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function u(B,E,L){var P,M,z,C,S,y,A=E.styles.length,k=E.lvl,D,V,H,Z;for(y=0;y<A;y+=1){if(C=E.sh._mdf||L,E.styles[y].lvl<k){for(V=r.reset(),H=k-E.styles[y].lvl,Z=E.transformers.length-1;!C&&H>0;)C=E.transformers[Z].mProps._mdf||C,H-=1,Z-=1;if(C)for(H=k-E.styles[y].lvl,Z=E.transformers.length-1;H>0;)V.multiply(E.transformers[Z].mProps.v),H-=1,Z-=1}else V=t;if(D=E.sh.paths,M=D._length,C){for(z="",P=0;P<M;P+=1)S=D.shapes[P],S&&S._length&&(z+=bh(S,S._length,S.c,V));E.caches[y]=z}else z=E.caches[y];E.styles[y].d+=B.hd===!0?"":z,E.styles[y]._mdf=C||E.styles[y]._mdf}}function T(B,E,L){var P=E.style;(E.c._mdf||L)&&P.pElem.setAttribute("fill","rgb("+ee(E.c.v[0])+","+ee(E.c.v[1])+","+ee(E.c.v[2])+")"),(E.o._mdf||L)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function f(B,E,L){I(B,E,L),w(B,E,L)}function I(B,E,L){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,C=E.e.v;if(E.o._mdf||L){var S=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(S,E.o.v)}if(E.s._mdf||L){var y=B.t===1?"x1":"cx",A=y==="x1"?"y1":"cy";P.setAttribute(y,z[0]),P.setAttribute(A,z[1]),M&&!E.g._collapsable&&(E.of.setAttribute(y,z[0]),E.of.setAttribute(A,z[1]))}var k,D,V,H;if(E.g._cmdf||L){k=E.cst;var Z=E.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&&(E.g._omdf||L)){var ut=E.g.o;for(E.g._collapsable?k=E.cst:k=E.ost,V=k.length,D=0;D<V;D+=1)H=k[D],E.g._collapsable||H.setAttribute("offset",ut[D*2]+"%"),H.setAttribute("stop-opacity",ut[D*2+1])}if(B.t===1)(E.e._mdf||L)&&(P.setAttribute("x2",C[0]),P.setAttribute("y2",C[1]),M&&!E.g._collapsable&&(E.of.setAttribute("x2",C[0]),E.of.setAttribute("y2",C[1])));else{var dt;if((E.s._mdf||E.e._mdf||L)&&(dt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)),P.setAttribute("r",dt),M&&!E.g._collapsable&&E.of.setAttribute("r",dt)),E.e._mdf||E.h._mdf||E.a._mdf||L){dt||(dt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)));var tt=Math.atan2(C[1]-z[1],C[0]-z[0]),bt=E.h.v;bt>=1?bt=.99:bt<=-1&&(bt=-.99);var lt=dt*bt,X=Math.cos(tt+E.a.v)*lt+z[0],_=Math.sin(tt+E.a.v)*lt+z[1];P.setAttribute("fx",X),P.setAttribute("fy",_),M&&!E.g._collapsable&&(E.of.setAttribute("fx",X),E.of.setAttribute("fy",_))}}}function w(B,E,L){var P=E.style,M=E.d;M&&(M._mdf||L)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||L)&&P.pElem.setAttribute("stroke","rgb("+ee(E.c.v[0])+","+ee(E.c.v[1])+","+ee(E.c.v[2])+")"),(E.o._mdf||L)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||L)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return o}();function Gt(t,r,o){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,r,o),this.prevViewData=[]}$([Qr,Eo,bs,ch,To,ti,ys],Gt),Gt.prototype.initSecondaryElement=function(){},Gt.prototype.identityMatrix=new ne,Gt.prototype.buildExpressionInterface=function(){},Gt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Gt.prototype.filterUniqueShapes=function(){var t,r=this.shapes.length,o,a,d=this.stylesList.length,c,u=[],T=!1;for(a=0;a<d;a+=1){for(c=this.stylesList[a],T=!1,u.length=0,t=0;t<r;t+=1)o=this.shapes[t],o.styles.indexOf(c)!==-1&&(u.push(o),T=o._isAnimated||T);u.length>1&&T&&this.setShapesAsAnimated(u)}},Gt.prototype.setShapesAsAnimated=function(t){var r,o=t.length;for(r=0;r<o;r+=1)t[r].setAsAnimated()},Gt.prototype.createStyleElement=function(t,r){var o,a=new mh(t,r),d=a.pElem;if(t.ty==="st")o=new uh(this,t,a);else if(t.ty==="fl")o=new fh(this,t,a);else if(t.ty==="gf"||t.ty==="gs"){var c=t.ty==="gf"?xo:gh;o=new c(this,t,a),this.globalData.defs.appendChild(o.gf),o.maskId&&(this.globalData.defs.appendChild(o.ms),this.globalData.defs.appendChild(o.of),d.setAttribute("mask","url("+x()+"#"+o.maskId+")"))}else t.ty==="no"&&(o=new vh(this,t,a));return(t.ty==="st"||t.ty==="gs")&&(d.setAttribute("stroke-linecap",dh[t.lc||2]),d.setAttribute("stroke-linejoin",hh[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"]=vl(t.bm)),this.stylesList.push(a),this.addToAnimatedContents(t,o),o},Gt.prototype.createGroupElement=function(t){var r=new kv;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"]=vl(t.bm)),r},Gt.prototype.createTransformElement=function(t,r){var o=hl.getTransformProperty(this,t,this),a=new Cv(o,o.o,r);return this.addToAnimatedContents(t,a),a},Gt.prototype.createShapeElement=function(t,r,o){var a=4;t.ty==="rc"?a=5:t.ty==="el"?a=6:t.ty==="sr"&&(a=7);var d=Sa.getShapeProp(this,t,a,this),c=new ph(r,o,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(t,c),c},Gt.prototype.addToAnimatedContents=function(t,r){for(var o=0,a=this.animatedContents.length;o<a;){if(this.animatedContents[o].element===r)return;o+=1}this.animatedContents.push({fn:wv.createRenderFunction(t),element:r,data:t})},Gt.prototype.setElementStyles=function(t){var r=t.styles,o,a=this.stylesList.length;for(o=0;o<a;o+=1)this.stylesList[o].closed||r.push(this.stylesList[o])},Gt.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()},Gt.prototype.searchShapes=function(t,r,o,a,d,c,u){var T=[].concat(c),f,I=t.length-1,w,B,E=[],L=[],P,M,z;for(f=I;f>=0;f-=1){if(z=this.searchProcessedElement(t[f]),z?r[f]=o[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!==a&&a.appendChild(r[f].style.pElem),E.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,w=0;w<B;w+=1)r[f].prevViewData[w]=r[f].it[w];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!==a&&a.appendChild(r[f].gr)}else t[f].ty==="tr"?(z||(r[f]=this.createTransformElement(t[f],a)),P=r[f].transform,T.push(P)):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=Zr.getModifier(t[f].ty),M.init(this,t[f]),r[f]=M,this.shapeModifiers.push(M)),L.push(M)):t[f].ty==="rp"&&(z?(M=r[f],M.closed=!0):(M=Zr.getModifier(t[f].ty),r[f]=M,M.init(this,t,f,r),this.shapeModifiers.push(M),u=!1),L.push(M));this.addProcessedElement(t[f],f+1)}for(I=E.length,f=0;f<I;f+=1)E[f].closed=!0;for(I=L.length,f=0;f<I;f+=1)L[f].closed=!0},Gt.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"))},Gt.prototype.renderShape=function(){var t,r=this.animatedContents.length,o;for(t=0;t<r;t+=1)o=this.animatedContents[t],(this._isFirstFrame||o.element._isAnimated)&&o.data!==!0&&o.fn(o.data,o.element,this._isFirstFrame)},Gt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function bl(t,r,o,a,d,c){this.o=t,this.sw=r,this.sc=o,this.fc=a,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!o,fc:!!a,m:!0,p:!0}}bl.prototype.update=function(t,r,o,a,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!==o&&(this.sc=o,this._mdf.sc=!0,u=!0),this.fc!==a&&(this.fc=a,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 o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);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,o=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,d=this.effectsSequence.length,c=t||this.data.d.k[this.keysIndex].s;for(a=0;a<d;a+=1)o!==this.keysIndex?c=this.effectsSequence[a](c,c.t):c=this.effectsSequence[a](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,o=0,a=t.length;o<=a-1&&!(o===a-1||t[o+1].t>r);)o+=1;return this.keysIndex!==o&&(this.keysIndex=o),this.data.d.k[this.keysIndex].s},pe.prototype.buildFinalText=function(t){for(var r=[],o=0,a=t.length,d,c,u=!1,T=!1,f="";o<a;)u=T,T=!1,d=t.charCodeAt(o),f=t.charAt(o),ki.isCombinedCharacter(d)?u=!0:d>=55296&&d<=56319?ki.isRegionalFlag(t,o)?f=t.substr(o,14):(c=t.charCodeAt(o+1),c>=56320&&c<=57343&&(ki.isModifier(d,c)?(f=t.substr(o,2),u=!0):ki.isFlagEmoji(t.substr(o,4))?f=t.substr(o,4):f=t.substr(o,2))):d>56319?(c=t.charCodeAt(o+1),ki.isVariationSelector(d)&&(u=!0)):ki.isZeroWidthJoiner(d)&&(u=!0,T=!0),u?(r[r.length-1]+=f,u=!1):r.push(f),o+=f.length;return r},pe.prototype.completeTextData=function(t){t.__complete=!0;var r=this.elem.globalData.fontManager,o=this.data,a=[],d,c,u,T=0,f,I=o.m.g,w=0,B=0,E=0,L=[],P=0,M=0,z,C,S=r.getFontByName(t.f),y,A=0,k=oh(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],ut=t.sz[1],dt,tt;H;){tt=this.buildFinalText(t.t),dt=0,P=0,c=tt.length,D=t.tr/1e3*t.finalSize;var bt=-1;for(d=0;d<c;d+=1)V=tt[d].charCodeAt(0),u=!1,tt[d]===" "?bt=d:(V===13||V===3)&&(P=0,u=!0,dt+=t.finalLineHeight||t.finalSize*1.2),r.chars?(y=r.getCharData(tt[d],S.fStyle,S.fFamily),A=u?0:y.w*t.finalSize/100):A=r.measureText(tt[d],t.f,t.finalSize),P+A>Z&&tt[d]!==" "?(bt===-1?c+=1:d=bt,dt+=t.finalLineHeight||t.finalSize*1.2,tt.splice(d,bt===d?1:0,"\r"),bt=-1,P=0):(P+=A,P+=D);dt+=S.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ut<dt?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=tt,c=t.finalText.length,H=!1)}P=-D,A=0;var lt=0,X;for(d=0;d<c;d+=1)if(u=!1,X=t.finalText[d],V=X.charCodeAt(0),V===13||V===3?(lt=0,L.push(P),M=P>M?P:M,P=-2*D,f="",u=!0,E+=1):f=X,r.chars?(y=r.getCharData(X,S.fStyle,r.getFontByName(t.f).fFamily),A=u?0:y.w*t.finalSize/100):A=r.measureText(f,t.f,t.finalSize),X===" "?lt+=A+D:(P+=A+D+lt,lt=0),a.push({l:A,an:A,add:w,n:u,anIndexes:[],val:f,line:E,animatorJustifyOffset:0}),I==2){if(w+=A,f===""||f===" "||d===c-1){for((f===""||f===" ")&&(w-=A);B<=d;)a[B].an=w,a[B].ind=T,a[B].extra=A,B+=1;T+=1,w=0}}else if(I==3){if(w+=A,f===""||d===c-1){for(f===""&&(w-=A);B<=d;)a[B].an=w,a[B].ind=T,a[B].extra=A,B+=1;w=0,T+=1}}else a[T].ind=T,a[T].extra=0,T+=1;if(t.l=a,M=P>M?P:M,L.push(P),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=L;var _=o.a,O,p;C=_.length;var b,U,F=[];for(z=0;z<C;z+=1){for(O=_[z],O.a.sc&&(t.strokeColorAnim=!0),O.a.sw&&(t.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(t.fillColorAnim=!0),U=0,b=O.s.b,d=0;d<c;d+=1)p=a[d],p.anIndexes[z]=U,(b==1&&p.val!==""||b==2&&p.val!==""&&p.val!==" "||b==3&&(p.n||p.val==" "||d==c-1)||b==4&&(p.n||d==c-1))&&(O.s.rn===1&&F.push(U),U+=1);o.a[z].s.totalChars=U;var ot=-1,mt;if(O.s.rn===1)for(d=0;d<c;d+=1)p=a[d],ot!=p.anIndexes[z]&&(ot=p.anIndexes[z],mt=F.splice(Math.floor(Math.random()*F.length),1)[0]),p.anIndexes[z]=mt}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 o=this.copyData({},this.data.d.k[r].s);o=this.copyData(o,t),this.data.d.k[r].s=o,this.recalculate(r),this.setCurrentData(o),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 Lv=function(){var t=Math.max,r=Math.min,o=Math.floor;function a(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=rt.getProp(c,u.s||{k:0},0,0,this),"e"in u?this.e=rt.getProp(c,u.e,0,0,this):this.e={v:100},this.o=rt.getProp(c,u.o||{k:0},0,0,this),this.xe=rt.getProp(c,u.xe||{k:0},0,0,this),this.ne=rt.getProp(c,u.ne||{k:0},0,0,this),this.sm=rt.getProp(c,u.sm||{k:100},0,0,this),this.a=rt.getProp(c,u.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(u){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var T=0,f=0,I=1,w=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:w=1+this.xe.v/100;var B=ds.getBezierEasing(T,f,I,w).get,E=0,L=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===L?E=u>=P?1:0:E=t(0,r(.5/(P-L)+(u-L)/(P-L),1)),E=B(E);else if(M===3)P===L?E=u>=P?0:1:E=1-t(0,r(.5/(P-L)+(u-L)/(P-L),1)),E=B(E);else if(M===4)P===L?E=0:(E=t(0,r(.5/(P-L)+(u-L)/(P-L),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===L)E=0;else{var z=P-L;u=r(t(0,u+.5-L),P-L);var C=-z/2+u,S=z/2;E=Math.sqrt(1-C*C/(S*S))}E=B(E)}else M===6?(P===L?E=0:(u=r(t(0,u+.5-L),P-L),E=(1+Math.cos(Math.PI+Math.PI*2*u/(P-L)))/2),E=B(E)):(u>=o(L)&&(u-L<0?E=t(0,r(r(P,1)-(L-u),1)):E=t(0,r(P-u,1))),E=B(E));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var A=.5-y*.5;E<A?E=0:(E=(E-A)/y,E>1&&(E=1))}return E*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,w=this.e.v/T+f;if(I>w){var B=I;I=w,w=B}this.finalS=I,this.finalE=w}},$([re],a);function d(c,u,T){return new a(c,u,T)}return{getTextSelectorProp:d}}();function Nv(t,r,o){var a={propType:!1},d=rt.getProp,c=r.a;this.a={r:c.r?d(t,c.r,0,_t,o):a,rx:c.rx?d(t,c.rx,0,_t,o):a,ry:c.ry?d(t,c.ry,0,_t,o):a,sk:c.sk?d(t,c.sk,0,_t,o):a,sa:c.sa?d(t,c.sa,0,_t,o):a,s:c.s?d(t,c.s,1,.01,o):a,a:c.a?d(t,c.a,1,0,o):a,o:c.o?d(t,c.o,0,.01,o):a,p:c.p?d(t,c.p,1,0,o):a,sw:c.sw?d(t,c.sw,0,0,o):a,sc:c.sc?d(t,c.sc,1,0,o):a,fc:c.fc?d(t,c.fc,1,0,o):a,fh:c.fh?d(t,c.fh,0,0,o):a,fs:c.fs?d(t,c.fs,0,.01,o):a,fb:c.fb?d(t,c.fb,0,.01,o):a,t:c.t?d(t,c.t,0,0,o):a},this.s=Lv.getTextSelectorProp(t,r.s,o),this.s.t=r.s.t}function wi(t,r,o){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=r,this._elem=o,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(o)}wi.prototype.searchProperties=function(){var t,r=this._textData.a.length,o,a=rt.getProp;for(t=0;t<r;t+=1)o=this._textData.a[t],this._animatorsData[t]=new Nv(this._elem,o,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(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=a(this._elem,this._textData.m.a,1,0,this)},wi.prototype.getMeasures=function(t,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var o=this._moreOptions.alignment.v,a=this._animatorsData,d=this._textData,c=this.mHelper,u=this._renderType,T=this.renderedLetters.length,f,I,w,B,E=t.l,L,P,M,z,C,S,y,A,k,D,V,H,Z,ut,dt;if(this._hasMaskedPath){if(dt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var tt=dt.v;this._pathData.r.v&&(tt=tt.reverse()),L={tLength:0,segments:[]},B=tt._length-1;var bt;for(H=0,w=0;w<B;w+=1)bt=ur.buildBezierData(tt.v[w],tt.v[w+1],[tt.o[w][0]-tt.v[w][0],tt.o[w][1]-tt.v[w][1]],[tt.i[w+1][0]-tt.v[w+1][0],tt.i[w+1][1]-tt.v[w+1][1]]),L.tLength+=bt.segmentLength,L.segments.push(bt),H+=bt.segmentLength;w=B,dt.v.c&&(bt=ur.buildBezierData(tt.v[w],tt.v[0],[tt.o[w][0]-tt.v[w][0],tt.o[w][1]-tt.v[w][1]],[tt.i[0][0]-tt.v[0][0],tt.i[0][1]-tt.v[0][1]]),L.tLength+=bt.segmentLength,L.segments.push(bt),H+=bt.segmentLength),this._pathData.pi=L}if(L=this._pathData.pi,P=this._pathData.f.v,y=0,S=1,z=0,C=!0,D=L.segments,P<0&&dt.v.c)for(L.tLength<Math.abs(P)&&(P=-Math.abs(P)%L.tLength),y=D.length-1,k=D[y].points,S=k.length-1;P<0;)P+=k[S].partialLength,S-=1,S<0&&(y-=1,k=D[y].points,S=k.length-1);k=D[y].points,A=k[S-1],M=k[S],V=M.partialLength}B=E.length,f=0,I=0;var lt=t.finalSize*1.2*.714,X=!0,_,O,p,b,U;b=a.length;var F,ot=-1,mt,ft,Ct,wt=P,Kt=y,xe=S,vr=-1,Ae,ie,Re,Rt,ct,Cr,ii,wr,gr="",Lr=this.defaultPropsArray,Nr;if(t.j===2||t.j===1){var _e=0,oi=0,si=t.j===2?-.5:-1,or=0,ai=!0;for(w=0;w<B;w+=1)if(E[w].n){for(_e&&(_e+=oi);or<w;)E[or].animatorJustifyOffset=_e,or+=1;_e=0,ai=!0}else{for(p=0;p<b;p+=1)_=a[p].a,_.t.propType&&(ai&&t.j===2&&(oi+=_.t.v*si),O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),F.length?_e+=_.t.v*F[0]*si:_e+=_.t.v*F*si);ai=!1}for(_e&&(_e+=oi);or<w;)E[or].animatorJustifyOffset=_e,or+=1}for(w=0;w<B;w+=1){if(c.reset(),Ae=1,E[w].n)f=0,I+=t.yOffset,I+=X?1:0,P=wt,X=!1,this._hasMaskedPath&&(y=Kt,S=xe,k=D[y].points,A=k[S-1],M=k[S],V=M.partialLength,z=0),gr="",wr="",Cr="",Nr="",Lr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(vr!==E[w].line){switch(t.j){case 1:P+=H-t.lineWidths[E[w].line];break;case 2:P+=(H-t.lineWidths[E[w].line])/2;break;default:break}vr=E[w].line}ot!==E[w].ind&&(E[ot]&&(P+=E[ot].extra),P+=E[w].an/2,ot=E[w].ind),P+=o[0]*E[w].an*.005;var sr=0;for(p=0;p<b;p+=1)_=a[p].a,_.p.propType&&(O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),F.length?sr+=_.p.v[0]*F[0]:sr+=_.p.v[0]*F),_.a.propType&&(O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),F.length?sr+=_.a.v[0]*F[0]:sr+=_.a.v[0]*F);for(C=!0,this._pathData.a.v&&(P=E[0].an*.5+(H-this._pathData.f.v-E[0].an*.5-E[E.length-1].an*.5)*ot/(B-1),P+=this._pathData.f.v);C;)z+V>=P+sr||!k?(Z=(P+sr-z)/M.partialLength,ft=A.point[0]+(M.point[0]-A.point[0])*Z,Ct=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-o[0]*E[w].an*.005,-(o[1]*lt)*.01),C=!1):k&&(z+=M.partialLength,S+=1,S>=k.length&&(S=0,y+=1,D[y]?k=D[y].points:dt.v.c?(S=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[S],V=M.partialLength));mt=E[w].an/2-E[w].add,c.translate(-mt,0,0)}else mt=E[w].an/2-E[w].add,c.translate(-mt,0,0),c.translate(-o[0]*E[w].an*.005,-o[1]*lt*.01,0);for(p=0;p<b;p+=1)_=a[p].a,_.t.propType&&(O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),(f!==0||t.j!==0)&&(this._hasMaskedPath?F.length?P+=_.t.v*F[0]:P+=_.t.v*F:F.length?f+=_.t.v*F[0]:f+=_.t.v*F));for(t.strokeWidthAnim&&(Re=t.sw||0),t.strokeColorAnim&&(t.sc?ie=[t.sc[0],t.sc[1],t.sc[2]]:ie=[0,0,0]),t.fillColorAnim&&t.fc&&(Rt=[t.fc[0],t.fc[1],t.fc[2]]),p=0;p<b;p+=1)_=a[p].a,_.a.propType&&(O=a[p].s,F=O.getMult(E[w].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<b;p+=1)_=a[p].a,_.s.propType&&(O=a[p].s,F=O.getMult(E[w].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<b;p+=1){if(_=a[p].a,O=a[p].s,F=O.getMult(E[w].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?Ae+=(_.o.v*F[0]-Ae)*F[0]:Ae+=(_.o.v*F-Ae)*F),t.strokeWidthAnim&&_.sw.propType&&(F.length?Re+=_.sw.v*F[0]:Re+=_.sw.v*F),t.strokeColorAnim&&_.sc.propType)for(ct=0;ct<3;ct+=1)F.length?ie[ct]+=(_.sc.v[ct]-ie[ct])*F[0]:ie[ct]+=(_.sc.v[ct]-ie[ct])*F;if(t.fillColorAnim&&t.fc){if(_.fc.propType)for(ct=0;ct<3;ct+=1)F.length?Rt[ct]+=(_.fc.v[ct]-Rt[ct])*F[0]:Rt[ct]+=(_.fc.v[ct]-Rt[ct])*F;_.fh.propType&&(F.length?Rt=Nd(Rt,_.fh.v*F[0]):Rt=Nd(Rt,_.fh.v*F)),_.fs.propType&&(F.length?Rt=wd(Rt,_.fs.v*F[0]):Rt=wd(Rt,_.fs.v*F)),_.fb.propType&&(F.length?Rt=Ld(Rt,_.fb.v*F[0]):Rt=Ld(Rt,_.fb.v*F))}}for(p=0;p<b;p+=1)_=a[p].a,_.p.propType&&(O=a[p].s,F=O.getMult(E[w].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&&(Cr=Re<0?0:Re),t.strokeColorAnim&&(ii="rgb("+Math.round(ie[0]*255)+","+Math.round(ie[1]*255)+","+Math.round(ie[2]*255)+")"),t.fillColorAnim&&t.fc&&(wr="rgb("+Math.round(Rt[0]*255)+","+Math.round(Rt[1]*255)+","+Math.round(Rt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-t.ls),c.translate(0,o[1]*lt*.01+I,0),this._pathData.p.v){ut=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var Li=Math.atan(ut)*180/Math.PI;M.point[0]<A.point[0]&&(Li+=180),c.rotate(-Li*Math.PI/180)}c.translate(ft,Ct,0),P-=o[0]*E[w].an*.005,E[w+1]&&ot!==E[w+1].ind&&(P+=E[w].an/2,P+=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(E[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[w].line]),0,0);break;case 2:c.translate(E[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[w].line])/2,0,0);break;default:break}c.translate(0,-t.ls),c.translate(mt,0,0),c.translate(o[0]*E[w].an*.005,o[1]*lt*.01,0),f+=E[w].l+t.tr*.001*t.finalSize}u==="html"?gr=c.toCSS():u==="svg"?gr=c.to2dCSS():Lr=[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]],Nr=Ae}T<=w?(U=new bl(Nr,Cr,ii,wr,gr,Lr),this.renderedLetters.push(U),T+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[w],this.lettersChangedFlag=U.update(Nr,Cr,ii,wr,gr,Lr)||this.lettersChangedFlag)}}},wi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},wi.prototype.mHelper=new ne,wi.prototype.defaultPropsArray=[],$([re],wi);function Be(){}Be.prototype.initElement=function(t,r,o){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,r,o),this.textProperty=new pe(this,t.t,this.dynamicProperties),this.textAnimator=new wi(t.t,this.renderType,this),this.initTransform(t,r,o),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Be.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},Be.prototype.createPathShape=function(t,r){var o,a=r.length,d,c="";for(o=0;o<a;o+=1)r[o].ty==="sh"&&(d=r[o].ks.k,c+=bh(d,d.i.length,!0,t));return c},Be.prototype.updateDocumentData=function(t,r){this.textProperty.updateDocumentData(t,r)},Be.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},Be.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},Be.prototype.applyTextPropertiesToMatrix=function(t,r,o,a,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[o]),0,0);break;case 2:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[o])/2,0,0);break;default:break}r.translate(a,d,0)},Be.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},Be.prototype.emptyProp=new bl,Be.prototype.destroy=function(){},Be.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Rv={shapes:[]};function Ir(t,r,o){this.textSpans=[],this.renderType="svg",this.initElement(t,r,o)}$([Qr,Eo,bs,To,ti,ys,Be],Ir),Ir.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=gt("text"))},Ir.prototype.buildTextContents=function(t){for(var r=0,o=t.length,a=[],d="";r<o;)t[r]==="\r"||t[r]===""?(a.push(d),d=""):d+=t[r],r+=1;return a.push(d),a},Ir.prototype.buildShapeData=function(t,r){if(t.shapes&&t.shapes.length){var o=t.shapes[0];if(o.it){var a=o.it[o.it.length-1];a.s&&(a.s.k[0]=r,a.s.k[1]=r)}}return t},Ir.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,r,o=this.textProperty.currentData;this.renderedLetters=et(o?o.l.length:0),o.fc?this.layerElement.setAttribute("fill",this.buildColor(o.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),o.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(o.sc)),this.layerElement.setAttribute("stroke-width",o.sw)),this.layerElement.setAttribute("font-size",o.finalSize);var a=this.globalData.fontManager.getFontByName(o.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var d=o.fWeight,c=o.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",o.t);var u=o.l||[],T=!!this.globalData.fontManager.chars;r=u.length;var f,I=this.mHelper,w="",B=this.data.singleShape,E=0,L=0,P=!0,M=o.tr*.001*o.finalSize;if(B&&!T&&!o.sz){var z=this.textContainer,C="start";switch(o.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(o.finalText);for(r=S.length,L=o.ps?o.ps[1]+o.ascent:0,t=0;t<r;t+=1)f=this.textSpans[t].span||gt("tspan"),f.textContent=S[t],f.setAttribute("x",0),f.setAttribute("y",L),f.style.display="inherit",z.appendChild(f),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=f,L+=o.finalLineHeight;this.layerElement.appendChild(z)}else{var y=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=y>t?this.textSpans[t].span:gt(T?"g":"text"),y<=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=gt("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&&(E=-M,L+=o.yOffset,L+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(o,I,u[t].line,E,L),E+=u[t].l||0,E+=M),T){A=this.globalData.fontManager.getCharData(o.finalText[t],a.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily);var D;if(A.t===1)D=new xs(A.data,this.globalData,this);else{var V=Rv;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,o.finalSize)),D=new Gt(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("+o.finalSize/100+","+o.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",w)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},Ir.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},Ir.prototype.getValue=function(){var t,r=this.textSpans.length,o;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)o=this.textSpans[t].glyph,o&&(o.prepareFrame(this.comp.renderedFrame-this.data.st),o._mdf&&(this._mdf=!0))},Ir.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,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;r=a.length;var d,c,u;for(t=0;t<r;t+=1)a[t].n||(d=o[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 yl(t,r,o){this.initElement(t,r,o)}$([Es],yl),yl.prototype.createContent=function(){var t=gt("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function ri(t,r,o){this.initFrame(),this.initBaseData(t,r,o),this.initFrame(),this.initTransform(t,r,o),this.initHierarchy()}ri.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},ri.prototype.renderFrame=function(){},ri.prototype.getBaseElement=function(){return null},ri.prototype.destroy=function(){},ri.prototype.sourceRectAtTime=function(){},ri.prototype.hide=function(){},$([Qr,Eo,To,ti],ri);function Jt(){}$([le],Jt),Jt.prototype.createNull=function(t){return new ri(t,this.globalData,this)},Jt.prototype.createShape=function(t){return new Gt(t,this.globalData,this)},Jt.prototype.createText=function(t){return new Ir(t,this.globalData,this)},Jt.prototype.createImage=function(t){return new Es(t,this.globalData,this)},Jt.prototype.createSolid=function(t){return new yl(t,this.globalData,this)},Jt.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 o=gt("clipPath"),a=gt("rect");a.setAttribute("width",t.w),a.setAttribute("height",t.h),a.setAttribute("x",0),a.setAttribute("y",0);var d=Ee();o.setAttribute("id",d),o.appendChild(a),this.layerElement.setAttribute("clip-path","url("+x()+"#"+d+")"),r.appendChild(o),this.layers=t.layers,this.elements=et(t.layers.length)},Jt.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},Jt.prototype.updateContainerSize=function(){},Jt.prototype.findIndexByInd=function(t){var r=0,o=this.layers.length;for(r=0;r<o;r+=1)if(this.layers[r].ind===t)return r;return-1},Jt.prototype.buildItem=function(t){var r=this.elements;if(!(r[t]||this.layers[t].ty===99)){r[t]=!0;var o=this.createItem(this.layers[t]);if(r[t]=o,ba()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(o),o.initExpressions()),this.appendElementInPos(o,t),this.layers[t].tt){var a="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(o);else{var d=r[a],c=d.getMatte(this.layers[t].tt);o.setMatte(c)}}}},Jt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var r=0,o=this.elements.length;r<o;){if(this.elements[r]===t){var a="tp"in t.data?this.findIndexByInd(t.data.tp):r-1,d=this.elements[a],c=d.getMatte(this.layers[r].tt);t.setMatte(c);break}r+=1}}},Jt.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,o=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=o-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<o;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Jt.prototype.appendElementInPos=function(t,r){var o=t.getBaseElement();if(o){for(var a=0,d;a<r;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(d=this.elements[a].getBaseElement()),a+=1;d?this.layerElement.insertBefore(o,d):this.layerElement.appendChild(o)}},Jt.prototype.hide=function(){this.layerElement.style.display="none"},Jt.prototype.show=function(){this.layerElement.style.display="block"};function kr(){}$([Qr,Eo,To,ti,ys],kr),kr.prototype.initElement=function(t,r,o){this.initFrame(),this.initBaseData(t,r,o),this.initTransform(t,r,o),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},kr.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 o,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),o=a-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&(this.elements[o].prepareFrame(this.renderedFrame-this.layers[o].st),this.elements[o]._mdf&&(this._mdf=!0))}},kr.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()},kr.prototype.setElements=function(t){this.elements=t},kr.prototype.getElements=function(){return this.elements},kr.prototype.destroyElements=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy()},kr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function xs(t,r,o){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(t,r,o),this.tm=t.tm?rt.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0}}$([Jt,kr,bs],xs),xs.prototype.createComp=function(t){return new xs(t,this.globalData,this)};function El(t,r){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=gt("svg");var o="";if(r&&r.title){var a=gt("title"),d=Ee();a.setAttribute("id",d),a.textContent=r.title,this.svgElement.appendChild(a),o+=d}if(r&&r.description){var c=gt("desc"),u=Ee();c.setAttribute("id",u),c.textContent=r.description,this.svgElement.appendChild(c),o+=" "+u}o&&this.svgElement.setAttribute("aria-labelledby",o);var T=gt("defs");this.svgElement.appendChild(T);var f=gt("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 $([Jt],El),El.prototype.createComp=function(t){return new xs(t,this.globalData,this)},Uf("svg",El),Zr.registerModifier("tm",ir),Zr.registerModifier("pb",hs),Zr.registerModifier("rp",fr),Zr.registerModifier("rd",ps),Zr.registerModifier("zz",us),Zr.registerModifier("op",fs),Lt})});var Fa=globalThis,$a=Fa.ShadowRoot&&(Fa.ShadyCSS===void 0||Fa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xl=Symbol(),Eh=new WeakMap,As=class{constructor(i,e,s){if(this._$cssResult$=!0,s!==xl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o,e=this.t;if($a&&i===void 0){let s=e!==void 0&&e.length===1;s&&(i=Eh.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),s&&Eh.set(e,i))}return i}toString(){return this.cssText}},Th=l=>new As(typeof l=="string"?l:l+"",void 0,xl),G=(l,...i)=>{let e=l.length===1?l[0]:i.reduce((s,n,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.")})(n)+l[h+1],l[0]);return new As(e,l,xl)},Al=(l,i)=>{if($a)l.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of i){let s=document.createElement("style"),n=Fa.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,l.appendChild(s)}},za=$a?l=>l:l=>l instanceof CSSStyleSheet?(i=>{let e="";for(let s of i.cssRules)e+=s.cssText;return Th(e)})(l):l;var{is:Vv,defineProperty:Bv,getOwnPropertyDescriptor:Uv,getOwnPropertyNames:Hv,getOwnPropertySymbols:Gv,getPrototypeOf:jv}=Object,ni=globalThis,xh=ni.trustedTypes,Yv=xh?xh.emptyScript:"",_l=ni.reactiveElementPolyfillSupport,_s=(l,i)=>l,Ss={toAttribute(l,i){switch(i){case Boolean:l=l?Yv:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,i){let e=l;switch(i){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}},Va=(l,i)=>!Vv(l,i),Ah={attribute:!0,type:String,converter:Ss,reflect:!1,hasChanged:Va},_h,Sh;(_h=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Sh=ni.litPropertyMetadata)!=null||(ni.litPropertyMetadata=new WeakMap);var Rr=class extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=Ah){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(i,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(i,s,e);n!==void 0&&Bv(this.prototype,i,n)}}static getPropertyDescriptor(i,e,s){var m;let{get:n,set:h}=(m=Uv(this.prototype,i))!=null?m:{get(){return this[e]},set(x){this[e]=x}};return{get(){return n==null?void 0:n.call(this)},set(x){let R=n==null?void 0:n.call(this);h.call(this,x),this.requestUpdate(i,R,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:Ah}static _$Ei(){if(this.hasOwnProperty(_s("elementProperties")))return;let i=jv(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(_s("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_s("properties"))){let e=this.properties,s=[...Hv(e),...Gv(e)];for(let n of s)this.createProperty(n,e[n])}let i=this[Symbol.metadata];if(i!==null){let e=litPropertyMetadata.get(i);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let e=[];if(Array.isArray(i)){let s=new Set(i.flat(1/0).reverse());for(let n of s)e.unshift(za(n))}else i!==void 0&&e.push(za(i));return e}static _$Eu(i,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((s=i.hostConnected)==null||s.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){let i=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(i.set(s,this[s]),delete this[s]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var e;let i=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Al(i,this.constructor.elementStyles),i}connectedCallback(){var i,e;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostConnected)==null?void 0:n.call(s)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(i,e,s){this._$AK(i,s)}_$EC(i,e){var h;let s=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,s);if(n!==void 0&&s.reflect===!0){let m=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:Ss).toAttribute(e,s.type);this._$Em=i,m==null?this.removeAttribute(n):this.setAttribute(n,m),this._$Em=null}}_$AK(i,e){var h;let s=this.constructor,n=s._$Eh.get(i);if(n!==void 0&&this._$Em!==n){let m=s.getPropertyOptions(n),x=typeof m.converter=="function"?{fromAttribute:m.converter}:((h=m.converter)==null?void 0:h.fromAttribute)!==void 0?m.converter:Ss;this._$Em=n,this[n]=x.fromAttribute(e,m.type),this._$Em=null}}requestUpdate(i,e,s){var n;if(i!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(i)),!((n=s.hasChanged)!=null?n:Va)(this[i],e))return;this.P(i,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,e,s){var n;this._$AL.has(i)||this._$AL.set(i,e),s.reflect===!0&&this._$Em!==i&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,x]of this._$Ep)this[m]=x;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[m,x]of h)x.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],x)}let i=!1,e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(h=>{var m;return(m=h.hostUpdate)==null?void 0:m.call(h)}),this.update(e)):this._$EU()}catch(h){throw i=!1,this._$EU(),h}i&&this._$AE(e)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(i){}firstUpdated(i){}},Ih;Rr.elementStyles=[],Rr.shadowRootOptions={mode:"open"},Rr[_s("elementProperties")]=new Map,Rr[_s("finalized")]=new Map,_l==null||_l({ReactiveElement:Rr}),((Ih=ni.reactiveElementVersions)!=null?Ih:ni.reactiveElementVersions=[]).push("2.0.4");var ks=globalThis,Ba=ks.trustedTypes,kh=Ba?Ba.createPolicy("lit-html",{createHTML:l=>l}):void 0,kl="$lit$",Mr=`lit$${Math.random().toFixed(9).slice(2)}$`,Cl="?"+Mr,Wv=`<${Cl}>`,Mi=document,Cs=()=>Mi.createComment(""),ws=l=>l===null||typeof l!="object"&&typeof l!="function",wl=Array.isArray,Oh=l=>wl(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Sl=`[
|
3
|
-
\f\r]`,
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
1
|
+
"use strict";(()=>{var Vv=Object.create;var Il=Object.defineProperty;var Ah=Object.getOwnPropertyDescriptor;var Bv=Object.getOwnPropertyNames;var Uv=Object.getPrototypeOf,Gv=Object.prototype.hasOwnProperty;var Hv=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var jv=(l,i,e,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of Bv(i))!Gv.call(l,n)&&n!==e&&Il(l,n,{get:()=>i[n],enumerable:!(s=Ah(i,n))||s.enumerable});return l};var Yv=(l,i,e)=>(e=l!=null?Vv(Uv(l)):{},jv(i||!l||!l.__esModule?Il(e,"default",{value:l,enumerable:!0}):e,l));var f=(l,i,e,s)=>{for(var n=s>1?void 0:s?Ah(i,e):i,h=l.length-1,m;h>=0;h--)(m=l[h])&&(n=(s?m(i,e,n):m(n))||n);return s&&n&&Il(i,e,n),n};var up=Hv((Vs,pn)=>{typeof navigator<"u"&&function(l,i){typeof Vs=="object"&&typeof pn<"u"?pn.exports=i():typeof define=="function"&&define.amd?define(i):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=i())}(Vs,function(){"use strict";var l="http://www.w3.org/2000/svg",i="",e=!1,s=-999999,n=function(r){e=!!r},h=function(){return e},m=function(r){i=r},x=function(){return i};function R(t){return document.createElement(t)}function $(t,r){var o,a=t.length,d;for(o=0;o<a;o+=1){d=t[o].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function Y(t,r){return Object.getOwnPropertyDescriptor(t,r)}function K(t){function r(){}return r.prototype=t,r}var at=function(){function t(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(o){this.audios.push(o)},pause:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].pause()},resume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].resume()},setRate:function(o){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].setRate(o)},createAudio:function(o){return this.audioFactory?this.audioFactory(o):window.Howl?new window.Howl({src:[o]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(o){this.audioFactory=o},setVolume:function(o){this._volume=o,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),J=function(){function t(o,a){var d=0,c=[],u;switch(o){case"int16":case"uint8c":u=1;break;default:u=1.1;break}for(d=0;d<a;d+=1)c.push(u);return c}function r(o,a){return o==="float32"?new Float32Array(a):o==="int16"?new Int16Array(a):o==="uint8c"?new Uint8ClampedArray(a):t(o,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:t}();function et(t){return Array.apply(null,{length:t})}function ht(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ht=function(o){return typeof o}:ht=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ht(t)}var Tt=!0,yt=null,xt=null,kt="",Gt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ot=!1,Dt=Math.pow,Ee=Math.sqrt,re=Math.floor,Qe=Math.max,Ne=Math.min,Fe={};(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,o=t.length;for(r=0;r<o;r+=1)Fe[t[r]]=Math[t[r]]})();function tr(){return{}}Fe.random=Math.random,Fe.abs=function(t){var r=ht(t);if(r==="object"&&t.length){var o=et(t.length),a,d=t.length;for(a=0;a<d;a+=1)o[a]=Math.abs(t[a]);return o}return Math.abs(t)};var er=150,_t=Math.PI/180,pe=.5519;function $e(t){Ot=!!t}function rr(t){return Ot?Math.round(t):t}function _r(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 ze(t,r,o,a){this.type=t,this.currentTime=r,this.totalTime=o,this.direction=a<0?-1:1}function xa(t,r){this.type=t,this.direction=r<0?-1:1}function Ld(t,r,o,a){this.type=t,this.currentLoop=o,this.totalLoops=r,this.direction=a<0?-1:1}function Nd(t,r,o){this.type=t,this.firstFrame=r,this.totalFrames=o}function Rd(t,r){this.type=t,this.target=r}function Vf(t,r){this.type="renderFrameError",this.nativeError=t,this.currentTime=r}function Bf(t){this.type="configError",this.nativeError=t}function wE(t,r){this.type=t,this.nativeError=r}var Te=function(){var t=0;return function(){return t+=1,kt+"__lottie_element_"+t}}();function ml(t,r,o){var a,d,c,u,T,v,I,w;switch(u=Math.floor(t*6),T=t*6-u,v=o*(1-r),I=o*(1-T*r),w=o*(1-(1-T)*r),u%6){case 0:a=o,d=w,c=v;break;case 1:a=I,d=o,c=v;break;case 2:a=v,d=o,c=w;break;case 3:a=v,d=I,c=o;break;case 4:a=w,d=v,c=o;break;case 5:a=o,d=v,c=I;break;default:break}return[a,d,c]}function ul(t,r,o){var a=Math.max(t,r,o),d=Math.min(t,r,o),c=a-d,u,T=a===0?0:c/a,v=a/255;switch(a){case d:u=0;break;case t:u=r-o+c*(r<o?6:0),u/=6*c;break;case r:u=o-t+c*2,u/=6*c;break;case o:u=t-r+c*4,u/=6*c;break;default:break}return[u,T,v]}function Md(t,r){var o=ul(t[0]*255,t[1]*255,t[2]*255);return o[1]+=r,o[1]>1?o[1]=1:o[1]<=0&&(o[1]=0),ml(o[0],o[1],o[2])}function Od(t,r){var o=ul(t[0]*255,t[1]*255,t[2]*255);return o[2]+=r,o[2]>1?o[2]=1:o[2]<0&&(o[2]=0),ml(o[0],o[1],o[2])}function Pd(t,r){var o=ul(t[0]*255,t[1]*255,t[2]*255);return o[0]+=r/360,o[0]>1?o[0]-=1:o[0]<0&&(o[0]+=1),ml(o[0],o[1],o[2])}var LE=function(){var t=[],r,o;for(r=0;r<256;r+=1)o=r.toString(16),t[r]=o.length===1?"0"+o:o;return function(a,d,c){return a<0&&(a=0),d<0&&(d=0),c<0&&(c=0),"#"+t[a]+t[d]+t[c]}}(),Uf=function(r){Tt=!!r},Gf=function(){return Tt},Hf=function(r){yt=r},Aa=function(){return yt},NE=function(r){xt=r},Dd=function(){return xt},_a=function(r){er=r},ds=function(){return er},jf=function(r){kt=r},RE=function(){return kt};function gt(t){return document.createElementNS(l,t)}function Sa(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sa=function(o){return typeof o}:Sa=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Sa(t)}var hs=function(){var t=1,r=[],o,a,d={onmessage:function(){},postMessage:function(N){o({data:N})}},c={postMessage:function(N){d.onmessage({data:N})}};function u(E){if(window.Worker&&window.Blob&&h()){var N=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(N);return new Worker(P)}return o=E,d}function T(){a||(a=u(function(N){function P(){function z(X,_){var O,p,b=X.length,U,F,ot,mt;for(p=0;p<b;p+=1)if(O=X[p],"ks"in O&&!O.completed){if(O.completed=!0,O.hasMask){var ft=O.masksProperties;for(F=ft.length,U=0;U<F;U+=1)if(ft[U].pt.k.i)k(ft[U].pt.k);else for(mt=ft[U].pt.k.length,ot=0;ot<mt;ot+=1)ft[U].pt.k[ot].s&&k(ft[U].pt.k[ot].s[0]),ft[U].pt.k[ot].e&&k(ft[U].pt.k[ot].e[0])}O.ty===0?(O.layers=y(O.refId,_),z(O.layers,_)):O.ty===4?A(O.shapes):O.ty===5&&bt(O)}}function C(X,_){if(X){var O=0,p=X.length;for(O=0;O<p;O+=1)X[O].t===1&&(X[O].data.layers=y(X[O].data.refId,_),z(X[O].data.layers,_))}}function S(X,_){for(var O=0,p=_.length;O<p;){if(_[O].id===X)return _[O];O+=1}return null}function y(X,_){var O=S(X,_);return O?O.layers.__used?JSON.parse(JSON.stringify(O.layers)):(O.layers.__used=!0,O.layers):null}function A(X){var _,O=X.length,p,b;for(_=O-1;_>=0;_-=1)if(X[_].ty==="sh")if(X[_].ks.k.i)k(X[_].ks.k);else for(b=X[_].ks.k.length,p=0;p<b;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 _,O=X.i.length;for(_=0;_<O;_+=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 O=_?_.split("."):[100,100,100];return X[0]>O[0]?!0:O[0]>X[0]?!1:X[1]>O[1]?!0:O[1]>X[1]?!1:X[2]>O[2]?!0:O[2]>X[2]?!1:null}var V=function(){var X=[4,4,14];function _(p){var b=p.t.d;p.t.d={k:[{s:b,t:0}]}}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===5&&_(p[b])}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),G=function(){var X=[4,7,99];return function(_){if(_.chars&&!D(X,_.v)){var O,p=_.chars.length;for(O=0;O<p;O+=1){var b=_.chars[O];b.data&&b.data.shapes&&(A(b.data.shapes),b.data.ip=0,b.data.op=99999,b.data.st=0,b.data.sr=1,b.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[O].t||(b.data.shapes.push({ty:"no"}),b.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 b=p.t.p;typeof b.a=="number"&&(b.a={a:0,k:b.a}),typeof b.p=="number"&&(b.p={a:0,k:b.p}),typeof b.r=="number"&&(b.r={a:0,k:b.r})}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===5&&_(p[b])}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),ut=function(){var X=[4,1,9];function _(p){var b,U=p.length,F,ot;for(b=0;b<U;b+=1)if(p[b].ty==="gr")_(p[b].it);else if(p[b].ty==="fl"||p[b].ty==="st")if(p[b].c.k&&p[b].c.k[0].i)for(ot=p[b].c.k.length,F=0;F<ot;F+=1)p[b].c.k[F].s&&(p[b].c.k[F].s[0]/=255,p[b].c.k[F].s[1]/=255,p[b].c.k[F].s[2]/=255,p[b].c.k[F].s[3]/=255),p[b].c.k[F].e&&(p[b].c.k[F].e[0]/=255,p[b].c.k[F].e[1]/=255,p[b].c.k[F].e[2]/=255,p[b].c.k[F].e[3]/=255);else p[b].c.k[0]/=255,p[b].c.k[1]/=255,p[b].c.k[2]/=255,p[b].c.k[3]/=255}function O(p){var b,U=p.length;for(b=0;b<U;b+=1)p[b].ty===4&&_(p[b].shapes)}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}(),dt=function(){var X=[4,4,18];function _(p){var b,U=p.length,F,ot;for(b=U-1;b>=0;b-=1)if(p[b].ty==="sh")if(p[b].ks.k.i)p[b].ks.k.c=p[b].closed;else for(ot=p[b].ks.k.length,F=0;F<ot;F+=1)p[b].ks.k[F].s&&(p[b].ks.k[F].s[0].c=p[b].closed),p[b].ks.k[F].e&&(p[b].ks.k[F].e[0].c=p[b].closed);else p[b].ty==="gr"&&_(p[b].it)}function O(p){var b,U,F=p.length,ot,mt,ft,Ct;for(U=0;U<F;U+=1){if(b=p[U],b.hasMask){var wt=b.masksProperties;for(mt=wt.length,ot=0;ot<mt;ot+=1)if(wt[ot].pt.k.i)wt[ot].pt.k.c=wt[ot].cl;else for(Ct=wt[ot].pt.k.length,ft=0;ft<Ct;ft+=1)wt[ot].pt.k[ft].s&&(wt[ot].pt.k[ft].s[0].c=wt[ot].cl),wt[ot].pt.k[ft].e&&(wt[ot].pt.k[ft].e[0].c=wt[ot].cl)}b.ty===4&&_(b.shapes)}}return function(p){if(D(X,p.v)&&(O(p.layers),p.assets)){var b,U=p.assets.length;for(b=0;b<U;b+=1)p.assets[b].layers&&O(p.assets[b].layers)}}}();function tt(X){X.__complete||(ut(X),V(X),G(X),Z(X),dt(X),z(X.layers,X.assets),C(X.chars,X.assets),X.__complete=!0)}function bt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=tt,lt.checkColors=ut,lt.checkChars=G,lt.checkPathProperties=Z,lt.checkShapes=dt,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(S){var y=S.getResponseHeader("content-type");return y&&S.responseType==="json"&&y.indexOf("json")!==-1||S.response&&Sa(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,y,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(G){k&&k(G)}};try{V.open(["G","E","T"].join(""),S,!0)}catch{V.open(["G","E","T"].join(""),y+"/"+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"})})}),a.onmessage=function(E){var N=E.data,P=N.id,M=r[P];r[P]=null,N.status==="success"?M.onComplete(N.payload):M.onError&&M.onError()})}function v(E,N){t+=1;var P="processId_"+t;return r[P]={onComplete:E,onError:N},P}function I(E,N,P){T();var M=v(N,P);a.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function w(E,N,P){T();var M=v(N,P);a.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,N,P){T();var M=v(N,P);a.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:w,completeAnimation:B}}(),Yf=function(){var t=function(){var C=R("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 o(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(C,S,y){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=y,A+=C.u?C.u:"",A+=C.p;return A}function d(C){var S=0,y=setInterval((function(){var A=C.getBBox();(A.width||S>500)&&(this._imageLoaded(),clearInterval(y)),S+=1}).bind(this),50)}function c(C){var S=a(C,this.assetsPath,this.path),y=gt("image");Gt?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",S),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var A={img:y,assetData:C};return A}function u(C){var S=a(C,this.assetsPath,this.path),y=R("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=t,this._imageLoaded()}).bind(this),!1),y.src=S;var A={img:y,assetData:C};return A}function T(C){var S={assetData:C},y=a(C,this.assetsPath,this.path);return hs.loadData(y,(function(A){S.img=A,this._footageLoaded()}).bind(this),(function(){S.img={},this._footageLoaded()}).bind(this)),S}function v(C,S){this.imagesLoadedCb=S;var y,A=C.length;for(y=0;y<A;y+=1)C[y].layers||(!C[y].t||C[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(C[y]))):C[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(C[y]))))}function I(C){this.path=C||""}function w(C){this.assetsPath=C||""}function B(C){for(var S=0,y=this.images.length;S<y;){if(this.images[S].assetData===C)return this.images[S].img;S+=1}return null}function E(){this.imagesLoadedCb=null,this.images.length=0}function N(){return this.totalImages===this.loadedAssets}function P(){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=o.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:v,setAssetsPath:w,setPath:I,loadedImages:N,loadedFootages:P,destroy:E,getAsset:B,createImgData:u,createImageData:c,imageLoaded:r,footageLoaded:o,setCacheType:M},z}();function Fd(){}Fd.prototype={triggerEvent:function(r,o){if(this._cbs[r])for(var a=this._cbs[r],d=0;d<a.length;d+=1)a[d](o)},addEventListener:function(r,o){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(o),(function(){this.removeEventListener(r,o)}).bind(this)},removeEventListener:function(r,o){if(!o)this._cbs[r]=null;else if(this._cbs[r]){for(var a=0,d=this._cbs[r].length;a<d;)this._cbs[r][a]===o&&(this._cbs[r].splice(a,1),a-=1,d-=1),a+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var Wf=function(){function t(r){for(var o=r.split(`\r
|
2
|
+
`),a={},d,c=0,u=0;u<o.length;u+=1)d=o[u].split(":"),d.length===2&&(a[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return a}return function(r){for(var o=[],a=0;a<r.length;a+=1){var d=r[a],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[a].cm)}catch{try{c.payload=t(r[a].cm)}catch{c.payload={name:r[a].cm}}}o.push(c)}return o}}(),qf=function(){function t(r){this.compositions.push(r)}return function(){function r(o){for(var a=0,d=this.compositions.length;a<d;){if(this.compositions[a].data&&this.compositions[a].data.nm===o)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=t,r}}(),ps={},Kf=function(r,o){ps[r]=o};function Xf(t){return ps[t]}function Zf(){if(ps.canvas)return"canvas";for(var t in ps)if(ps[t])return t;return""}function ms(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ms=function(o){return typeof o}:ms=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ms(t)}var pt=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=Te(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Gf(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=qf(),this.imagePreloader=new Yf,this.audioController=at(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new ze("drawnFrame",0,0,0),this.expressionsPlugin=Aa()};$([Fd],pt),pt.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 o=Xf(r);this.renderer=new o(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")),hs.loadAnimation(t.path,this.configAnimation,this.onSetupError))},pt.prototype.onSetupError=function(){this.trigger("data_failed")},pt.prototype.setupAnimation=function(t){hs.completeAnimation(t,this.configAnimation)},pt.prototype.setData=function(t,r){r&&ms(r)!=="object"&&(r=JSON.parse(r));var o={wrapper:t,animationData:r},a=t.attributes;o.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",o.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:Zf()||"canvas";var d=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";d==="false"?o.loop=!1:d==="true"?o.loop=!0:d!==""&&(o.loop=parseInt(d,10));var c=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;o.autoplay=c!=="false",o.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var u=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";u==="false"&&(o.prerender=!1),o.path?this.setParams(o):this.trigger("destroy")},pt.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,o,a=r.length,d=t.layers,c,u=d.length;for(c=0;c<u;c+=1)for(o=0;o<a;){if(r[o].id===d[c].id){r[o]=d[c];break}o+=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(a=t.assets.length,o=0;o<a;o+=1)this.animationData.assets.push(t.assets[o]);this.animationData.__complete=!1,hs.completeAnimation(this.animationData,this.onSegmentComplete)},pt.prototype.onSegmentComplete=function(t){this.animationData=t;var r=Aa();r&&r.initExpressions(this),this.loadNextSegment()},pt.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 o=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,hs.loadData(o,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},pt.prototype.loadSegments=function(){var t=this.animationData.segments;t||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},pt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},pt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},pt.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=Wf(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},pt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},pt.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=Aa();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},pt.prototype.resize=function(t,r){var o=typeof t=="number"?t:void 0,a=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(o,a)},pt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},pt.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")},pt.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)}},pt.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")))},pt.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())},pt.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},pt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pt.prototype.getMarkerData=function(t){for(var r,o=0;o<this.markers.length;o+=1)if(r=this.markers[o],r.payload&&r.payload.name===t)return r;return null},pt.prototype.goToAndStop=function(t,r,o){if(!(o&&this.name!==o)){var a=Number(t);if(isNaN(a)){var d=this.getMarkerData(t);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},pt.prototype.goToAndPlay=function(t,r,o){if(!(o&&this.name!==o)){var a=Number(t);if(isNaN(a)){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(a,r,o);this.play()}},pt.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+t*this.frameModifier,o=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(o=!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):(o=!0,r=0)):this.setCurrentRawFrameValue(r),o&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},pt.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")},pt.prototype.setSegment=function(t,r){var o=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?o=t:this.currentRawFrame+this.firstFrame>r&&(o=r-t)),this.firstFrame=t,this.totalFrames=r-t,this.timeCompleted=this.totalFrames,o!==-1&&this.goToAndStop(o,!0)},pt.prototype.playSegments=function(t,r){if(r&&(this.segments.length=0),ms(t[0])==="object"){var o,a=t.length;for(o=0;o<a;o+=1)this.segments.push(t[o])}else this.segments.push(t);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},pt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},pt.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},pt.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)},pt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},pt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},pt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},pt.prototype.setLoop=function(t){this.loop=t},pt.prototype.setVolume=function(t,r){r&&this.name!==r||this.audioController.setVolume(t)},pt.prototype.getVolume=function(){return this.audioController.getVolume()},pt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},pt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},pt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},pt.prototype.getPath=function(){return this.path},pt.prototype.getAssetsPath=function(t){var r="";if(t.e)r=t.p;else if(this.assetsPath){var o=t.p;o.indexOf("images/")!==-1&&(o=o.split("/")[1]),r=this.assetsPath+o}else r=this.path,r+=t.u?t.u:"",r+=t.p;return r},pt.prototype.getAssetData=function(t){for(var r=0,o=this.assets.length;r<o;){if(t===this.assets[r].id)return this.assets[r];r+=1}return null},pt.prototype.hide=function(){this.renderer.hide()},pt.prototype.show=function(){this.renderer.show()},pt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},pt.prototype.updateDocumentData=function(t,r,o){try{var a=this.renderer.getElementByPath(t);a.updateDocumentData(r,o)}catch{}},pt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new ze(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 Ld(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new xa(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new Nd(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new Rd(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new ze(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Ld(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new xa(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Nd(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Rd(t,this))},pt.prototype.triggerRenderFrameError=function(t){var r=new Vf(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},pt.prototype.triggerConfigError=function(t){var r=new Bf(t,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var qt=function(){var t={},r=[],o=0,a=0,d=0,c=!0,u=!1;function T(_){for(var O=0,p=_.target;O<a;)r[O].animation===p&&(r.splice(O,1),O-=1,a-=1,p.isPaused||B()),O+=1}function v(_,O){if(!_)return null;for(var p=0;p<a;){if(r[p].elem===_&&r[p].elem!==null)return r[p].animation;p+=1}var b=new pt;return E(b,_),b.setData(_,O),b}function I(){var _,O=r.length,p=[];for(_=0;_<O;_+=1)p.push(r[_].animation);return p}function w(){d+=1,ut()}function B(){d-=1}function E(_,O){_.addEventListener("destroy",T),_.addEventListener("_active",w),_.addEventListener("_idle",B),r.push({elem:O,animation:_}),a+=1}function N(_){var O=new pt;return E(O,null),O.setParams(_),O}function P(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setSpeed(_,O)}function M(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setDirection(_,O)}function z(_){var O;for(O=0;O<a;O+=1)r[O].animation.play(_)}function C(_){var O=_-o,p;for(p=0;p<a;p+=1)r[p].animation.advanceTime(O);o=_,d&&!u?window.requestAnimationFrame(C):c=!0}function S(_){o=_,window.requestAnimationFrame(C)}function y(_){var O;for(O=0;O<a;O+=1)r[O].animation.pause(_)}function A(_,O,p){var b;for(b=0;b<a;b+=1)r[b].animation.goToAndStop(_,O,p)}function k(_){var O;for(O=0;O<a;O+=1)r[O].animation.stop(_)}function D(_){var O;for(O=0;O<a;O+=1)r[O].animation.togglePause(_)}function V(_){var O;for(O=a-1;O>=0;O-=1)r[O].animation.destroy(_)}function G(_,O,p){var b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=b.length;for(U=0;U<F;U+=1)p&&b[U].setAttribute("data-bm-type",p),v(b[U],_);if(O&&F===0){p||(p="svg");var ot=document.getElementsByTagName("body")[0];ot.innerText="";var mt=R("div");mt.style.width="100%",mt.style.height="100%",mt.setAttribute("data-bm-type",p),ot.appendChild(mt),v(mt,_)}}function Z(){var _;for(_=0;_<a;_+=1)r[_].animation.resize()}function ut(){!u&&d&&c&&(window.requestAnimationFrame(S),c=!1)}function dt(){u=!0}function tt(){u=!1,ut()}function bt(_,O){var p;for(p=0;p<a;p+=1)r[p].animation.setVolume(_,O)}function lt(_){var O;for(O=0;O<a;O+=1)r[O].animation.mute(_)}function X(_){var O;for(O=0;O<a;O+=1)r[O].animation.unmute(_)}return t.registerAnimation=v,t.loadAnimation=N,t.setSpeed=P,t.setDirection=M,t.play=z,t.pause=y,t.stop=k,t.togglePause=D,t.searchAnimations=G,t.resize=Z,t.goToAndStop=A,t.destroy=V,t.freeze=dt,t.unfreeze=tt,t.setVolume=bt,t.mute=lt,t.unmute=X,t.getRegisteredAnimations=I,t}(),us=function(){var t={};t.getBezierEasing=o;var r={};function o(S,y,A,k,D){var V=D||("bez_"+S+"_"+y+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var G=new C([S,y,A,k]);return r[V]=G,G}var a=4,d=.001,c=1e-7,u=10,T=11,v=1/(T-1),I=typeof Float32Array=="function";function w(S,y){return 1-3*y+3*S}function B(S,y){return 3*y-6*S}function E(S){return 3*S}function N(S,y,A){return((w(y,A)*S+B(y,A))*S+E(y))*S}function P(S,y,A){return 3*w(y,A)*S*S+2*B(y,A)*S+E(y)}function M(S,y,A,k,D){var V,G,Z=0;do G=y+(A-y)/2,V=N(G,k,D)-S,V>0?A=G:y=G;while(Math.abs(V)>c&&++Z<u);return G}function z(S,y,A,k){for(var D=0;D<a;++D){var V=P(y,A,k);if(V===0)return y;var G=N(y,A,k)-S;y-=G/V}return y}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(y){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?y:y===0?0:y===1?1:N(this._getTForX(y),k,V)},_precompute:function(){var y=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(y!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],A=this._p[2],k=0;k<T;++k)this._mSampleValues[k]=N(k*v,y,A)},_getTForX:function(y){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,G=1,Z=T-1;G!==Z&&D[G]<=y;++G)V+=v;--G;var ut=(y-D[G])/(D[G+1]-D[G]),dt=V+ut*v,tt=P(dt,A,k);return tt>=d?z(y,dt,A,k):tt===0?dt:M(y,V,V+v,A,k)}},t}(),$d=function(){function t(r){return r.concat(et(r.length))}return{double:t}}(),Ia=function(){return function(t,r,o){var a=0,d=t,c=et(d),u={newElement:T,release:v};function T(){var I;return a?(a-=1,I=c[a]):I=r(),I}function v(I){a===d&&(c=$d.double(c),d*=2),o&&o(I),c[a]=I,a+=1}return u}}(),zd=function(){function t(){return{addedLength:0,percents:J("float32",ds()),lengths:J("float32",ds())}}return Ia(8,t)}(),Vd=function(){function t(){return{lengths:[],totalLength:0}}function r(o){var a,d=o.lengths.length;for(a=0;a<d;a+=1)zd.release(o.lengths[a]);o.lengths.length=0}return Ia(8,t,r)}();function Jf(){var t=Math;function r(E,N,P,M,z,C){var S=E*M+N*z+P*C-z*M-C*E-P*N;return S>-.001&&S<.001}function o(E,N,P,M,z,C,S,y,A){if(P===0&&C===0&&A===0)return r(E,N,M,z,S,y);var k=t.sqrt(t.pow(M-E,2)+t.pow(z-N,2)+t.pow(C-P,2)),D=t.sqrt(t.pow(S-E,2)+t.pow(y-N,2)+t.pow(A-P,2)),V=t.sqrt(t.pow(S-M,2)+t.pow(y-z,2)+t.pow(A-C,2)),G;return k>D?k>V?G=k-D-V:G=V-D-k:V>D?G=V-D-k:G=D-k-V,G>-1e-4&&G<1e-4}var a=function(){return function(E,N,P,M){var z=ds(),C,S,y,A,k,D=0,V,G=[],Z=[],ut=zd.newElement();for(y=P.length,C=0;C<z;C+=1){for(k=C/(z-1),V=0,S=0;S<y;S+=1)A=Dt(1-k,3)*E[S]+3*Dt(1-k,2)*k*P[S]+3*(1-k)*Dt(k,2)*M[S]+Dt(k,3)*N[S],G[S]=A,Z[S]!==null&&(V+=Dt(G[S]-Z[S],2)),Z[S]=G[S];V&&(V=Ee(V),D+=V),ut.percents[C]=k,ut.lengths[C]=D}return ut.addedLength=D,ut}}();function d(E){var N=Vd.newElement(),P=E.c,M=E.v,z=E.o,C=E.i,S,y=E._length,A=N.lengths,k=0;for(S=0;S<y-1;S+=1)A[S]=a(M[S],M[S+1],z[S],C[S+1]),k+=A[S].addedLength;return P&&y&&(A[S]=a(M[S],M[0],z[S],C[0]),k+=A[S].addedLength),N.totalLength=k,N}function c(E){this.segmentLength=0,this.points=new Array(E)}function u(E,N){this.partialLength=E,this.point=N}var T=function(){var E={};return function(N,P,M,z){var C=(N[0]+"_"+N[1]+"_"+P[0]+"_"+P[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!E[C]){var S=ds(),y,A,k,D,V,G=0,Z,ut,dt=null;N.length===2&&(N[0]!==P[0]||N[1]!==P[1])&&r(N[0],N[1],P[0],P[1],N[0]+M[0],N[1]+M[1])&&r(N[0],N[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(S=2);var tt=new c(S);for(k=M.length,y=0;y<S;y+=1){for(ut=et(k),V=y/(S-1),Z=0,A=0;A<k;A+=1)D=Dt(1-V,3)*N[A]+3*Dt(1-V,2)*V*(N[A]+M[A])+3*(1-V)*Dt(V,2)*(P[A]+z[A])+Dt(V,3)*P[A],ut[A]=D,dt!==null&&(Z+=Dt(ut[A]-dt[A],2));Z=Ee(Z),G+=Z,tt.points[y]=new u(Z,ut),dt=ut}tt.segmentLength=G,E[C]=tt}return E[C]}}();function v(E,N){var P=N.percents,M=N.lengths,z=P.length,C=re((z-1)*E),S=E*N.addedLength,y=0;if(C===z-1||C===0||S===M[C])return P[C];for(var A=M[C]>S?-1:1,k=!0;k;)if(M[C]<=S&&M[C+1]>S?(y=(S-M[C])/(M[C+1]-M[C]),k=!1):C+=A,C<0||C>=z-1){if(C===z-1)return P[C];k=!1}return P[C]+(P[C+1]-P[C])*y}function I(E,N,P,M,z,C){var S=v(z,C),y=1-S,A=t.round((y*y*y*E[0]+(S*y*y+y*S*y+y*y*S)*P[0]+(S*S*y+y*S*S+S*y*S)*M[0]+S*S*S*N[0])*1e3)/1e3,k=t.round((y*y*y*E[1]+(S*y*y+y*S*y+y*y*S)*P[1]+(S*S*y+y*S*S+S*y*S)*M[1]+S*S*S*N[1])*1e3)/1e3;return[A,k]}var w=J("float32",8);function B(E,N,P,M,z,C,S){z<0?z=0:z>1&&(z=1);var y=v(z,S);C=C>1?1:C;var A=v(C,S),k,D=E.length,V=1-y,G=1-A,Z=V*V*V,ut=y*V*V*3,dt=y*y*V*3,tt=y*y*y,bt=V*V*G,lt=y*V*G+V*y*G+V*V*A,X=y*y*G+V*y*A+y*V*A,_=y*y*A,O=V*G*G,p=y*G*G+V*A*G+V*G*A,b=y*A*G+V*A*A+y*G*A,U=y*A*A,F=G*G*G,ot=A*G*G+G*A*G+G*G*A,mt=A*A*G+G*A*A+A*G*A,ft=A*A*A;for(k=0;k<D;k+=1)w[k*4]=t.round((Z*E[k]+ut*P[k]+dt*M[k]+tt*N[k])*1e3)/1e3,w[k*4+1]=t.round((bt*E[k]+lt*P[k]+X*M[k]+_*N[k])*1e3)/1e3,w[k*4+2]=t.round((O*E[k]+p*P[k]+b*M[k]+U*N[k])*1e3)/1e3,w[k*4+3]=t.round((F*E[k]+ot*P[k]+mt*M[k]+ft*N[k])*1e3)/1e3;return w}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:T,pointOnLine2D:r,pointOnLine3D:o}}var ur=Jf(),Si=s,Bd=Math.abs;function Ud(t,r){var o=this.offsetTime,a;this.propType==="multidimensional"&&(a=J("float32",this.pv.length));for(var d=r.lastIndex,c=d,u=this.keyframes.length-1,T=!0,v,I,w;T;){if(v=this.keyframes[c],I=this.keyframes[c+1],c===u-1&&t>=I.t-o){v.h&&(v=I),d=0;break}if(I.t-o>t){d=c;break}c<u-1?c+=1:(d=0,T=!1)}w=this.keyframesMetadata[c]||{};var B,E,N,P,M,z,C=I.t-o,S=v.t-o,y;if(v.to){w.bezierData||(w.bezierData=ur.buildBezierData(v.s,I.s||v.e,v.to,v.ti));var A=w.bezierData;if(t>=C||t<S){var k=t>=C?A.points.length-1:0;for(E=A.points[k].point.length,B=0;B<E;B+=1)a[B]=A.points[k].point[B]}else{w.__fnct?z=w.__fnct:(z=us.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,w.__fnct=z),N=z((t-S)/(C-S));var D=A.segmentLength*N,V,G=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<t&&r._lastKeyframeIndex===c?r._lastPoint:0,T=!0,P=A.points.length;T;){if(G+=A.points[M].partialLength,D===0||N===0||M===A.points.length-1){for(E=A.points[M].point.length,B=0;B<E;B+=1)a[B]=A.points[M].point[B];break}else if(D>=G&&D<G+A.points[M+1].partialLength){for(V=(D-G)/A.points[M+1].partialLength,E=A.points[M].point.length,B=0;B<E;B+=1)a[B]=A.points[M].point[B]+(A.points[M+1].point[B]-A.points[M].point[B])*V;break}M<P-1?M+=1:T=!1}r._lastPoint=M,r._lastAddedLength=G-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ut,dt,tt,bt;if(u=v.s.length,y=I.s||v.e,this.sh&&v.h!==1)if(t>=C)a[0]=y[0],a[1]=y[1],a[2]=y[2];else if(t<=S)a[0]=v.s[0],a[1]=v.s[1],a[2]=v.s[2];else{var lt=Gd(v.s),X=Gd(y),_=(t-S)/(C-S);tv(a,Qf(lt,X,_))}else for(c=0;c<u;c+=1)v.h!==1&&(t>=C?N=1:t<S?N=0:(v.o.x.constructor===Array?(w.__fnct||(w.__fnct=[]),w.__fnct[c]?z=w.__fnct[c]:(Z=v.o.x[c]===void 0?v.o.x[0]:v.o.x[c],ut=v.o.y[c]===void 0?v.o.y[0]:v.o.y[c],dt=v.i.x[c]===void 0?v.i.x[0]:v.i.x[c],tt=v.i.y[c]===void 0?v.i.y[0]:v.i.y[c],z=us.getBezierEasing(Z,ut,dt,tt).get,w.__fnct[c]=z)):w.__fnct?z=w.__fnct:(Z=v.o.x,ut=v.o.y,dt=v.i.x,tt=v.i.y,z=us.getBezierEasing(Z,ut,dt,tt).get,v.keyframeMetadata=z),N=z((t-S)/(C-S)))),y=I.s||v.e,bt=v.h===1?v.s[c]:v.s[c]+(y[c]-v.s[c])*N,this.propType==="multidimensional"?a[c]=bt:a=bt}return r.lastIndex=d,a}function Qf(t,r,o){var a=[],d=t[0],c=t[1],u=t[2],T=t[3],v=r[0],I=r[1],w=r[2],B=r[3],E,N,P,M,z;return N=d*v+c*I+u*w+T*B,N<0&&(N=-N,v=-v,I=-I,w=-w,B=-B),1-N>1e-6?(E=Math.acos(N),P=Math.sin(E),M=Math.sin((1-o)*E)/P,z=Math.sin(o*E)/P):(M=1-o,z=o),a[0]=M*d+z*v,a[1]=M*c+z*I,a[2]=M*u+z*w,a[3]=M*T+z*B,a}function tv(t,r){var o=r[0],a=r[1],d=r[2],c=r[3],u=Math.atan2(2*a*c-2*o*d,1-2*a*a-2*d*d),T=Math.asin(2*o*a+2*d*c),v=Math.atan2(2*o*c-2*a*d,1-2*o*o-2*d*d);t[0]=u/_t,t[1]=T/_t,t[2]=v/_t}function Gd(t){var r=t[0]*_t,o=t[1]*_t,a=t[2]*_t,d=Math.cos(r/2),c=Math.cos(o/2),u=Math.cos(a/2),T=Math.sin(r/2),v=Math.sin(o/2),I=Math.sin(a/2),w=d*c*u-T*v*I,B=T*v*u+d*c*I,E=T*c*u+d*v*I,N=d*v*u-T*c*I;return[B,E,N,w]}function Hd(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,o=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==Si&&(this._caching.lastFrame>=o&&t>=o||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(t,this._caching);this.pv=a}return this._caching.lastFrame=t,this.pv}function ka(t){var r;if(this.propType==="unidimensional")r=t*this.mult,Bd(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var o=0,a=this.v.length;o<a;)r=t[o]*this.mult,Bd(this.v[o]-r)>1e-5&&(this.v[o]=r,this._mdf=!0),o+=1}function Ca(){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,o=this.kf?this.pv:this.data.k;for(t=0;t<r;t+=1)o=this.effectsSequence[t](o);this.setVValue(o),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function wa(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ev(t,r,o,a){this.propType="unidimensional",this.mult=o||1,this.data=r,this.v=o?r.k*o:r.k,this.pv=r.k,this._mdf=!1,this.elem=t,this.container=a,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Ca,this.setVValue=ka,this.addEffect=wa}function rv(t,r,o,a){this.propType="multidimensional",this.mult=o||1,this.data=r,this._mdf=!1,this.elem=t,this.container=a,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=Ca,this.setVValue=ka,this.addEffect=wa}function iv(t,r,o,a){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:Si,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=o||1,this.elem=t,this.container=a,this.comp=t.comp,this.v=Si,this.pv=Si,this._isFirstFrame=!0,this.getValue=Ca,this.setVValue=ka,this.interpolateValue=Ud,this.effectsSequence=[Hd.bind(this)],this.addEffect=wa}function ov(t,r,o,a){this.propType="multidimensional";var d,c=r.k.length,u,T,v,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,v=r.k[d].to,I=r.k[d].ti,(u.length===2&&!(u[0]===T[0]&&u[1]===T[1])&&ur.pointOnLine2D(u[0],u[1],T[0],T[1],u[0]+v[0],u[1]+v[1])&&ur.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])&&ur.pointOnLine3D(u[0],u[1],u[2],T[0],T[1],T[2],u[0]+v[0],u[1]+v[1],u[2]+v[2])&&ur.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]&&v[0]===0&&v[1]===0&&I[0]===0&&I[1]===0&&(u.length===2||u[2]===T[2]&&v[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=o||1,this.elem=t,this.container=a,this.comp=t.comp,this.getValue=Ca,this.setVValue=ka,this.interpolateValue=Ud,this.frameId=-1;var w=r.k[0].s.length;for(this.v=J("float32",w),this.pv=J("float32",w),d=0;d<w;d+=1)this.v[d]=Si,this.pv[d]=Si;this._caching={lastFrame:Si,lastIndex:0,value:J("float32",w)},this.addEffect=wa}var rt=function(){function t(o,a,d,c,u){a.sid&&(a=o.globalData.slotManager.getProp(a));var T;if(!a.k.length)T=new ev(o,a,c,u);else if(typeof a.k[0]=="number")T=new rv(o,a,c,u);else switch(d){case 0:T=new iv(o,a,c,u);break;case 1:T=new ov(o,a,c,u);break;default:break}return T.effectsSequence.length&&u.addDynamicProperty(T),T}var r={getProp:t};return r}();function ie(){}ie.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,o=this.dynamicProperties.length;for(r=0;r<o;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 Ii=function(){function t(){return J("float32",2)}return Ia(8,t)}();function Sr(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}Sr.prototype.setPathData=function(t,r){this.c=t,this.setLength(r);for(var o=0;o<r;)this.v[o]=Ii.newElement(),this.o[o]=Ii.newElement(),this.i[o]=Ii.newElement(),o+=1},Sr.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},Sr.prototype.doubleArrayLength=function(){this.v=this.v.concat(et(this._maxLength)),this.i=this.i.concat(et(this._maxLength)),this.o=this.o.concat(et(this._maxLength)),this._maxLength*=2},Sr.prototype.setXYAt=function(t,r,o,a,d){var c;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),o){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[a]||c[a]&&!d)&&(c[a]=Ii.newElement()),c[a][0]=t,c[a][1]=r},Sr.prototype.setTripleAt=function(t,r,o,a,d,c,u,T){this.setXYAt(t,r,"v",u,T),this.setXYAt(o,a,"o",u,T),this.setXYAt(d,c,"i",u,T)},Sr.prototype.reverse=function(){var t=new Sr;t.setPathData(this.c,this._length);var r=this.v,o=this.o,a=this.i,d=0;this.c&&(t.setTripleAt(r[0][0],r[0][1],a[0][0],a[0][1],o[0][0],o[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],a[c][0],a[c][1],o[c][0],o[c][1],T,!1),c-=1;return t},Sr.prototype.length=function(){return this._length};var ne=function(){function t(){return new Sr}function r(d){var c=d._length,u;for(u=0;u<c;u+=1)Ii.release(d.v[u]),Ii.release(d.i[u]),Ii.release(d.o[u]),d.v[u]=null,d.i[u]=null,d.o[u]=null;d._length=0,d.c=!1}function o(d){var c=a.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 a=Ia(4,t,r);return a.clone=o,a}();function fl(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}fl.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(et(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},fl.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)ne.release(this.shapes[t]);this._length=0};var go=function(){var t={newShapeCollection:d,release:c},r=0,o=4,a=et(o);function d(){var u;return r?(r-=1,u=a[r]):u=new fl,u}function c(u){var T,v=u._length;for(T=0;T<v;T+=1)ne.release(u.shapes[T]);u._length=0,r===o&&(a=$d.double(a),o*=2),a[r]=u,r+=1}return t}(),La=function(){var t=-999999;function r(C,S,y){var A=y.lastIndex,k,D,V,G,Z,ut,dt,tt,bt,lt=this.keyframes;if(C<lt[0].t-this.offsetTime)k=lt[0].s[0],V=!0,A=0;else if(C>=lt[lt.length-1].t-this.offsetTime)k=lt[lt.length-1].s?lt[lt.length-1].s[0]:lt[lt.length-2].e[0],V=!0;else{for(var X=A,_=lt.length-1,O=!0,p,b,U;O&&(p=lt[X],b=lt[X+1],!(b.t-this.offsetTime>C));)X<_-1?X+=1:O=!1;if(U=this.keyframesMetadata[X]||{},V=p.h===1,A=X,!V){if(C>=b.t-this.offsetTime)tt=1;else if(C<p.t-this.offsetTime)tt=0;else{var F;U.__fnct?F=U.__fnct:(F=us.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,U.__fnct=F),tt=F((C-(p.t-this.offsetTime))/(b.t-this.offsetTime-(p.t-this.offsetTime)))}D=b.s?b.s[0]:p.e[0]}k=p.s[0]}for(ut=S._length,dt=k.i[0].length,y.lastIndex=A,G=0;G<ut;G+=1)for(Z=0;Z<dt;Z+=1)bt=V?k.i[G][Z]:k.i[G][Z]+(D.i[G][Z]-k.i[G][Z])*tt,S.i[G][Z]=bt,bt=V?k.o[G][Z]:k.o[G][Z]+(D.o[G][Z]-k.o[G][Z])*tt,S.o[G][Z]=bt,bt=V?k.v[G][Z]:k.v[G][Z]+(D.v[G][Z]-k.v[G][Z])*tt,S.v[G][Z]=bt}function o(){var C=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==t&&(A<S&&C<S||A>y&&C>y)||(this._caching.lastIndex=A<C?this._caching.lastIndex:0,this.interpolateShape(C,this.pv,this._caching)),this._caching.lastFrame=C,this.pv}function a(){this.paths=this.localShapeCollection}function d(C,S){if(C._length!==S._length||C.c!==S.c)return!1;var y,A=C._length;for(y=0;y<A;y+=1)if(C.v[y][0]!==S.v[y][0]||C.v[y][1]!==S.v[y][1]||C.o[y][0]!==S.o[y][0]||C.o[y][1]!==S.o[y][1]||C.i[y][0]!==S.i[y][0]||C.i[y][1]!==S.i[y][1])return!1;return!0}function c(C){d(this.v,C)||(this.v=ne.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,y=this.effectsSequence.length;for(S=0;S<y;S+=1)C=this.effectsSequence[S](C);this.setVValue(C),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function T(C,S,y){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=y===3?S.pt.k:S.ks.k;this.v=ne.clone(A),this.pv=ne.clone(this.v),this.localShapeCollection=go.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function v(C){this.effectsSequence.push(C),this.container.addDynamicProperty(this)}T.prototype.interpolateShape=r,T.prototype.getValue=u,T.prototype.setVValue=c,T.prototype.addEffect=v;function I(C,S,y){this.propType="shape",this.comp=C.comp,this.elem=C,this.container=C,this.offsetTime=C.data.st,this.keyframes=y===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=ne.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ne.clone(this.v),this.localShapeCollection=go.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=a,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[o.bind(this)]}I.prototype.getValue=u,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=v;var w=function(){var C=pe;function S(y,A){this.v=ne.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=go.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=y,this.comp=y.comp,this.frameId=-1,this.initDynamicPropertyContainer(y),this.p=rt.getProp(y,A.p,1,0,this),this.s=rt.getProp(y,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return S.prototype={reset:a,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,G=this.d!==3,Z=this.v;Z.v[0][0]=A,Z.v[0][1]=k-V,Z.v[1][0]=G?A+D:A-D,Z.v[1][1]=k,Z.v[2][0]=A,Z.v[2][1]=k+V,Z.v[3][0]=G?A-D:A+D,Z.v[3][1]=k,Z.i[0][0]=G?A-D*C:A+D*C,Z.i[0][1]=k-V,Z.i[1][0]=G?A+D:A-D,Z.i[1][1]=k-V*C,Z.i[2][0]=G?A+D*C:A-D*C,Z.i[2][1]=k+V,Z.i[3][0]=G?A-D:A+D,Z.i[3][1]=k+V*C,Z.o[0][0]=G?A+D*C:A-D*C,Z.o[0][1]=k-V,Z.o[1][0]=G?A+D:A-D,Z.o[1][1]=k+V*C,Z.o[2][0]=G?A-D*C:A+D*C,Z.o[2][1]=k+V,Z.o[3][0]=G?A-D:A+D,Z.o[3][1]=k-V*C}},$([ie],S),S}(),B=function(){function C(S,y){this.v=ne.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(S),y.sy===1?(this.ir=rt.getProp(S,y.ir,0,0,this),this.is=rt.getProp(S,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=rt.getProp(S,y.pt,0,0,this),this.p=rt.getProp(S,y.p,1,0,this),this.r=rt.getProp(S,y.r,0,_t,this),this.or=rt.getProp(S,y.or,0,0,this),this.os=rt.getProp(S,y.os,0,.01,this),this.localShapeCollection=go.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:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var y=Math.floor(this.pt.v)*2,A=Math.PI*2/y,k=!0,D=this.or.v,V=this.ir.v,G=this.os.v,Z=this.is.v,ut=2*Math.PI*D/(y*2),dt=2*Math.PI*V/(y*2),tt,bt,lt,X,_=-Math.PI/2;_+=this.r.v;var O=this.data.d===3?-1:1;for(this.v._length=0,tt=0;tt<y;tt+=1){bt=k?D:V,lt=k?G:Z,X=k?ut:dt;var p=bt*Math.cos(_),b=bt*Math.sin(_),U=p===0&&b===0?0:b/Math.sqrt(p*p+b*b),F=p===0&&b===0?0:-p/Math.sqrt(p*p+b*b);p+=+this.p.v[0],b+=+this.p.v[1],this.v.setTripleAt(p,b,p-U*X*lt*O,b-F*X*lt*O,p+U*X*lt*O,b+F*X*lt*O,tt,!0),k=!k,_+=A*O}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),A=Math.PI*2/y,k=this.or.v,D=this.os.v,V=2*Math.PI*k/(y*4),G,Z=-Math.PI*.5,ut=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,G=0;G<y;G+=1){var dt=k*Math.cos(Z),tt=k*Math.sin(Z),bt=dt===0&&tt===0?0:tt/Math.sqrt(dt*dt+tt*tt),lt=dt===0&&tt===0?0:-dt/Math.sqrt(dt*dt+tt*tt);dt+=+this.p.v[0],tt+=+this.p.v[1],this.v.setTripleAt(dt,tt,dt-bt*V*D*ut,tt-lt*V*D*ut,dt+bt*V*D*ut,tt+lt*V*D*ut,G,!0),Z+=A*ut}this.paths.length=0,this.paths[0]=this.v}},$([ie],C),C}(),E=function(){function C(S,y){this.v=ne.newElement(),this.v.c=!0,this.localShapeCollection=go.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(S),this.p=rt.getProp(S,y.p,1,0,this),this.s=rt.getProp(S,y.s,1,0,this),this.r=rt.getProp(S,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return C.prototype={convertRectToPath:function(){var y=this.p.v[0],A=this.p.v[1],k=this.s.v[0]/2,D=this.s.v[1]/2,V=Ne(k,D,this.r.v),G=V*(1-pe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+V,y+k,A-D+G,0,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-G,y+k,A+D-V,1,!0),V!==0?(this.v.setTripleAt(y+k-V,A+D,y+k-V,A+D,y+k-G,A+D,2,!0),this.v.setTripleAt(y-k+V,A+D,y-k+G,A+D,y-k+V,A+D,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-V,y-k,A+D-G,4,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+G,y-k,A-D+V,5,!0),this.v.setTripleAt(y-k+V,A-D,y-k+V,A-D,y-k+G,A-D,6,!0),this.v.setTripleAt(y+k-V,A-D,y+k-G,A-D,y+k-V,A-D,7,!0)):(this.v.setTripleAt(y-k,A+D,y-k+G,A+D,y-k,A+D,2),this.v.setTripleAt(y-k,A-D,y-k,A-D+G,y-k,A-D,3))):(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+G,y+k,A-D+V,0,!0),V!==0?(this.v.setTripleAt(y+k-V,A-D,y+k-V,A-D,y+k-G,A-D,1,!0),this.v.setTripleAt(y-k+V,A-D,y-k+G,A-D,y-k+V,A-D,2,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+V,y-k,A-D+G,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-G,y-k,A+D-V,4,!0),this.v.setTripleAt(y-k+V,A+D,y-k+V,A+D,y-k+G,A+D,5,!0),this.v.setTripleAt(y+k-V,A+D,y+k-G,A+D,y+k-V,A+D,6,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-V,y+k,A+D-G,7,!0)):(this.v.setTripleAt(y-k,A-D,y-k+G,A-D,y-k,A-D,1,!0),this.v.setTripleAt(y-k,A+D,y-k,A+D-G,y-k,A+D,2,!0),this.v.setTripleAt(y+k,A+D,y+k-G,A+D,y+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:a},$([ie],C),C}();function N(C,S,y){var A;if(y===3||y===4){var k=y===3?S.pt:S.ks,D=k.k;D.length?A=new I(C,S,y):A=new T(C,S,y)}else y===5?A=new E(C,S):y===6?A=new w(C,S):y===7&&(A=new B(C,S));return A.k&&C.addDynamicProperty(A),A}function P(){return T}function M(){return I}var z={};return z.getShapeProp=N,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var le=function(){var t=Math.cos,r=Math.sin,o=Math.tan,a=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 b=t(p),U=r(p);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function u(p){if(p===0)return this;var b=t(p),U=r(p);return this._t(1,0,0,0,0,b,-U,0,0,U,b,0,0,0,0,1)}function T(p){if(p===0)return this;var b=t(p),U=r(p);return this._t(b,0,U,0,0,1,0,0,-U,0,b,0,0,0,0,1)}function v(p){if(p===0)return this;var b=t(p),U=r(p);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function I(p,b){return this._t(1,b,p,1,0,0)}function w(p,b){return this.shear(o(p),o(b))}function B(p,b){var U=t(b),F=r(b);return this._t(U,F,0,0,-F,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,o(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 E(p,b,U){return!U&&U!==0&&(U=1),p===1&&b===1&&U===1?this:this._t(p,0,0,0,0,b,0,0,0,0,U,0,0,0,0,1)}function N(p,b,U,F,ot,mt,ft,Ct,wt,Kt,Ae,vr,_e,oe,Re,Rt){return this.props[0]=p,this.props[1]=b,this.props[2]=U,this.props[3]=F,this.props[4]=ot,this.props[5]=mt,this.props[6]=ft,this.props[7]=Ct,this.props[8]=wt,this.props[9]=Kt,this.props[10]=Ae,this.props[11]=vr,this.props[12]=_e,this.props[13]=oe,this.props[14]=Re,this.props[15]=Rt,this}function P(p,b,U){return U=U||0,p!==0||b!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,p,b,U,1):this}function M(p,b,U,F,ot,mt,ft,Ct,wt,Kt,Ae,vr,_e,oe,Re,Rt){var ct=this.props;if(p===1&&b===0&&U===0&&F===0&&ot===0&&mt===1&&ft===0&&Ct===0&&wt===0&&Kt===0&&Ae===1&&vr===0)return ct[12]=ct[12]*p+ct[15]*_e,ct[13]=ct[13]*mt+ct[15]*oe,ct[14]=ct[14]*Ae+ct[15]*Re,ct[15]*=Rt,this._identityCalculated=!1,this;var Cr=ct[0],ii=ct[1],wr=ct[2],gr=ct[3],Lr=ct[4],Nr=ct[5],Se=ct[6],oi=ct[7],si=ct[8],or=ct[9],ai=ct[10],sr=ct[11],Li=ct[12],za=ct[13],Va=ct[14],Ba=ct[15];return ct[0]=Cr*p+ii*ot+wr*wt+gr*_e,ct[1]=Cr*b+ii*mt+wr*Kt+gr*oe,ct[2]=Cr*U+ii*ft+wr*Ae+gr*Re,ct[3]=Cr*F+ii*Ct+wr*vr+gr*Rt,ct[4]=Lr*p+Nr*ot+Se*wt+oi*_e,ct[5]=Lr*b+Nr*mt+Se*Kt+oi*oe,ct[6]=Lr*U+Nr*ft+Se*Ae+oi*Re,ct[7]=Lr*F+Nr*Ct+Se*vr+oi*Rt,ct[8]=si*p+or*ot+ai*wt+sr*_e,ct[9]=si*b+or*mt+ai*Kt+sr*oe,ct[10]=si*U+or*ft+ai*Ae+sr*Re,ct[11]=si*F+or*Ct+ai*vr+sr*Rt,ct[12]=Li*p+za*ot+Va*wt+Ba*_e,ct[13]=Li*b+za*mt+Va*Kt+Ba*oe,ct[14]=Li*U+za*ft+Va*Ae+Ba*Re,ct[15]=Li*F+za*Ct+Va*vr+Ba*Rt,this._identityCalculated=!1,this}function z(p){var b=p.props;return this.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[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 b=0;b<16;){if(p.props[b]!==this.props[b])return!1;b+=1}return!0}function y(p){var b;for(b=0;b<16;b+=1)p.props[b]=this.props[b];return p}function A(p){var b;for(b=0;b<16;b+=1)this.props[b]=p[b]}function k(p,b,U){return{x:p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],y:p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],z:p*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}}function D(p,b,U){return p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12]}function V(p,b,U){return p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13]}function G(p,b,U){return p*this.props[2]+b*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],b=this.props[5]/p,U=-this.props[1]/p,F=-this.props[4]/p,ot=this.props[0]/p,mt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/p,ft=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/p,Ct=new le;return Ct.props[0]=b,Ct.props[1]=U,Ct.props[4]=F,Ct.props[5]=ot,Ct.props[12]=mt,Ct.props[13]=ft,Ct}function ut(p){var b=this.getInverseMatrix();return b.applyToPointArray(p[0],p[1],p[2]||0)}function dt(p){var b,U=p.length,F=[];for(b=0;b<U;b+=1)F[b]=ut(p[b]);return F}function tt(p,b,U){var F=J("float32",6);if(this.isIdentity())F[0]=p[0],F[1]=p[1],F[2]=b[0],F[3]=b[1],F[4]=U[0],F[5]=U[1];else{var ot=this.props[0],mt=this.props[1],ft=this.props[4],Ct=this.props[5],wt=this.props[12],Kt=this.props[13];F[0]=p[0]*ot+p[1]*ft+wt,F[1]=p[0]*mt+p[1]*Ct+Kt,F[2]=b[0]*ot+b[1]*ft+wt,F[3]=b[0]*mt+b[1]*Ct+Kt,F[4]=U[0]*ot+U[1]*ft+wt,F[5]=U[0]*mt+U[1]*Ct+Kt}return F}function bt(p,b,U){var F;return this.isIdentity()?F=[p,b,U]:F=[p*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],p*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],p*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]],F}function lt(p,b){if(this.isIdentity())return p+","+b;var U=this.props;return Math.round((p*U[0]+b*U[4]+U[12])*100)/100+","+Math.round((p*U[1]+b*U[5]+U[13])*100)/100}function X(){for(var p=0,b=this.props,U="matrix3d(",F=1e4;p<16;)U+=a(b[p]*F)/F,U+=p===15?")":",",p+=1;return U}function _(p){var b=1e4;return p<1e-6&&p>0||p>-1e-6&&p<0?a(p*b)/b:p}function O(){var p=this.props,b=_(p[0]),U=_(p[1]),F=_(p[4]),ot=_(p[5]),mt=_(p[12]),ft=_(p[13]);return"matrix("+b+","+U+","+F+","+ot+","+mt+","+ft+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=u,this.rotateY=T,this.rotateZ=v,this.skew=w,this.skewFromAxis=B,this.shear=I,this.scale=E,this.setTransform=N,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=G,this.applyToPointArray=bt,this.applyToTriplePoints=tt,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=S,this.inversePoints=dt,this.inversePoint=ut,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=C,this._identity=!0,this._identityCalculated=!1,this.props=J("float32",16),this.reset()}}();function Na(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Na=function(o){return typeof o}:Na=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Na(t)}var Lt={},Ra="__[STANDALONE]__",jd="__[ANIMATIONDATA]__",Yd="";function sv(t){m(t)}function Wd(){Ra===!0?qt.searchAnimations(jd,Ra,Yd):qt.searchAnimations()}function av(t){Uf(t)}function nv(t){jf(t)}function lv(t){return Ra===!0&&(t.animationData=JSON.parse(jd)),qt.loadAnimation(t)}function cv(t){if(typeof t=="string")switch(t){case"high":_a(200);break;default:case"medium":_a(50);break;case"low":_a(10);break}else!isNaN(t)&&t>1&&_a(t);ds()>=50?$e(!1):$e(!0)}function dv(){return typeof navigator<"u"}function hv(t,r){t==="expressions"&&Hf(r)}function pv(t){switch(t){case"propertyFactory":return rt;case"shapePropertyFactory":return La;case"matrix":return le;default:return null}}Lt.play=qt.play,Lt.pause=qt.pause,Lt.setLocationHref=sv,Lt.togglePause=qt.togglePause,Lt.setSpeed=qt.setSpeed,Lt.setDirection=qt.setDirection,Lt.stop=qt.stop,Lt.searchAnimations=Wd,Lt.registerAnimation=qt.registerAnimation,Lt.loadAnimation=lv,Lt.setSubframeRendering=av,Lt.resize=qt.resize,Lt.goToAndStop=qt.goToAndStop,Lt.destroy=qt.destroy,Lt.setQuality=cv,Lt.inBrowser=dv,Lt.installPlugin=hv,Lt.freeze=qt.freeze,Lt.unfreeze=qt.unfreeze,Lt.setVolume=qt.setVolume,Lt.mute=qt.mute,Lt.unmute=qt.unmute,Lt.getRegisteredAnimations=qt.getRegisteredAnimations,Lt.useWebWorker=n,Lt.setIDPrefix=nv,Lt.__getFactory=pv,Lt.version="5.12.2";function mv(){document.readyState==="complete"&&(clearInterval(vv),Wd())}function uv(t){for(var r=qd.split("&"),o=0;o<r.length;o+=1){var a=r[o].split("=");if(decodeURIComponent(a[0])==t)return decodeURIComponent(a[1])}return null}var qd="";if(Ra){var Kd=document.getElementsByTagName("script"),fv=Kd.length-1,Xd=Kd[fv]||{src:""};qd=Xd.src?Xd.src.replace(/^[^\?]+\??/,""):"",Yd=uv("renderer")}var vv=setInterval(mv,100);try{!((typeof Vs>"u"?"undefined":Na(Vs))==="object"&&typeof pn<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Lt)}catch{}var Zr=function(){var t={},r={};t.registerModifier=o,t.getModifier=a;function o(d,c){r[d]||(r[d]=c)}function a(d,c,u){return new r[d](c,u)}return t}();function Ve(){}Ve.prototype.initModifierProperties=function(){},Ve.prototype.addShapeToModifier=function(){},Ve.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var r={shape:t.sh,data:t,localShapeCollection:go.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&t.setAsAnimated()}},Ve.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)},Ve.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([ie],Ve);function ir(){}$([Ve],ir),ir.prototype.initModifierProperties=function(t,r){this.s=rt.getProp(t,r.s,0,.01,this),this.e=rt.getProp(t,r.e,0,.01,this),this.o=rt.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},ir.prototype.addShapeToModifier=function(t){t.pathsData=[]},ir.prototype.calculateShapeEdges=function(t,r,o,a,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,v=c.length,I;for(T=0;T<v;T+=1)if(I=c[T],!(I.e*d<a||I.s*d>a+o)){var w,B;I.s*d<=a?w=0:w=(I.s*d-a)/o,I.e*d>=a+o?B=1:B=(I.e*d-a)/o,u.push([w,B])}return u.length||u.push([0,0]),u},ir.prototype.releasePathsData=function(t){var r,o=t.length;for(r=0;r<o;r+=1)Vd.release(t[r]);return t.length=0,t},ir.prototype.processShapes=function(t){var r,o;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?r=1+a:this.s.v<0?r=0+a:r=this.s.v+a,this.e.v>1?o=1+a:this.e.v<0?o=0+a:o=this.e.v+a,r>o){var d=r;r=o,o=d}r=Math.round(r*1e4)*1e-4,o=Math.round(o*1e4)*1e-4,this.sValue=r,this.eValue=o}else r=this.sValue,o=this.eValue;var c,u,T=this.shapes.length,v,I,w,B,E,N=0;if(o===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(o===1&&r===0||o===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 P=[],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,E=0,!M.shape._mdf&&M.pathsData.length)E=M.totalShapeLength;else{for(w=this.releasePathsData(M.pathsData),v=0;v<I;v+=1)B=ur.getSegmentsLength(c.shapes[v]),w.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=w}N+=E,M.shape._mdf=!0}var C=r,S=o,y=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,o,M.totalShapeLength,y,N),y+=M.totalShapeLength):A=[[C,S]],I=A.length,v=0;v<I;v+=1){C=A[v][0],S=A[v][1],P.length=0,S<=1?P.push({s:M.totalShapeLength*C,e:M.totalShapeLength*S}):C>=1?P.push({s:M.totalShapeLength*(C-1),e:M.totalShapeLength*(S-1)}):(P.push({s:M.totalShapeLength*C,e:M.totalShapeLength}),P.push({s:0,e:M.totalShapeLength*(S-1)}));var k=this.addShapes(M,P[0]);if(P[0].s!==P[0].e){if(P.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,P[1],V)}else this.addPaths(k,z),k=this.addShapes(M,P[1])}this.addPaths(k,z)}}M.shape.paths=z}}},ir.prototype.addPaths=function(t,r){var o,a=t.length;for(o=0;o<a;o+=1)r.addShape(t[o])},ir.prototype.addSegment=function(t,r,o,a,d,c,u){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(o[0],o[1],"i",c+1),u&&d.setXYAt(t[0],t[1],"v",c),d.setXYAt(a[0],a[1],"v",c+1)},ir.prototype.addSegmentFromArray=function(t,r,o,a){r.setXYAt(t[1],t[5],"o",o),r.setXYAt(t[2],t[6],"i",o+1),a&&r.setXYAt(t[0],t[4],"v",o),r.setXYAt(t[3],t[7],"v",o+1)},ir.prototype.addShapes=function(t,r,o){var a=t.pathsData,d=t.shape.paths.shapes,c,u=t.shape.paths._length,T,v,I=0,w,B,E,N,P=[],M,z=!0;for(o?(B=o._length,M=o._length):(o=ne.newElement(),B=0,M=0),P.push(o),c=0;c<u;c+=1){for(E=a[c].lengths,o.c=d[c].c,v=d[c].c?E.length:E.length+1,T=1;T<v;T+=1)if(w=E[T-1],I+w.addedLength<r.s)I+=w.addedLength,o.c=!1;else if(I>r.e){o.c=!1;break}else r.s<=I&&r.e>=I+w.addedLength?(this.addSegment(d[c].v[T-1],d[c].o[T-1],d[c].i[T],d[c].v[T],o,B,z),z=!1):(N=ur.getNewSegment(d[c].v[T-1],d[c].v[T],d[c].o[T-1],d[c].i[T],(r.s-I)/w.addedLength,(r.e-I)/w.addedLength,E[T-1]),this.addSegmentFromArray(N,o,B,z),z=!1,o.c=!1),I+=w.addedLength,B+=1;if(d[c].c&&E.length){if(w=E[T-1],I<=r.e){var C=E[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],o,B,z),z=!1):(N=ur.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,E[T-1]),this.addSegmentFromArray(N,o,B,z),z=!1,o.c=!1)}else o.c=!1;I+=w.addedLength,B+=1}if(o._length&&(o.setXYAt(o.v[M][0],o.v[M][1],"i",M),o.setXYAt(o.v[o._length-1][0],o.v[o._length-1][1],"o",o._length-1)),I>r.e)break;c<u-1&&(o=ne.newElement(),z=!0,P.push(o),B=0)}return P};function fs(){}$([Ve],fs),fs.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=rt.getProp(t,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},fs.prototype.processPath=function(t,r){var o=r/100,a=[0,0],d=t._length,c=0;for(c=0;c<d;c+=1)a[0]+=t.v[c][0],a[1]+=t.v[c][1];a[0]/=d,a[1]/=d;var u=ne.newElement();u.c=t.c;var T,v,I,w,B,E;for(c=0;c<d;c+=1)T=t.v[c][0]+(a[0]-t.v[c][0])*o,v=t.v[c][1]+(a[1]-t.v[c][1])*o,I=t.o[c][0]+(a[0]-t.o[c][0])*-o,w=t.o[c][1]+(a[1]-t.o[c][1])*-o,B=t.i[c][0]+(a[0]-t.i[c][0])*-o,E=t.i[c][1]+(a[1]-t.i[c][1])*-o,u.setTripleAt(T,v,I,w,B,E,c);return u},fs.prototype.processShapes=function(t){var r,o,a=this.shapes.length,d,c,u=this.amount.v;if(u!==0){var T,v;for(o=0;o<a;o+=1){if(T=this.shapes[o],v=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!t))for(v.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],u));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var vl=function(){var t=[0,0];function r(v){var I=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||I,this.a&&v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&v.skewFromAxis(-this.sk.v,this.sa.v),this.r?v.rotate(-this.r.v):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.data.p.s?this.data.p.z?v.translate(this.px.v,this.py.v,-this.pz.v):v.translate(this.px.v,this.py.v,0):v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function o(v){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||v){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 w,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?(w=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?(w=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)):(w=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){w=[],B=[];var E=this.px,N=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(w[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),w[1]=N.getValueAtTime((N.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=N.getValueAtTime(N.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(w[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),w[1]=N.getValueAtTime(N.keyframes[N.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=N.getValueAtTime((N.keyframes[N.keyframes.length-1].t-.01)/I,0)):(w=[E.pv,N.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=N.getValueAtTime((N._caching.lastFrame+N.offsetTime-.01)/I,N.offsetTime))}else B=t,w=B;this.v.rotate(-Math.atan2(w[1]-B[1],w[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 a(){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(v){this._addDynamicProperty(v),this.elem.addDynamicProperty(v),this._isDirty=!0}function u(v,I,w){if(this.elem=v,this.frameId=-1,this.propType="transform",this.data=I,this.v=new le,this.pre=new le,this.appliedTransformations=0,this.initDynamicPropertyContainer(w||v),I.p&&I.p.s?(this.px=rt.getProp(v,I.p.x,0,0,this),this.py=rt.getProp(v,I.p.y,0,0,this),I.p.z&&(this.pz=rt.getProp(v,I.p.z,0,0,this))):this.p=rt.getProp(v,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=rt.getProp(v,I.rx,0,_t,this),this.ry=rt.getProp(v,I.ry,0,_t,this),this.rz=rt.getProp(v,I.rz,0,_t,this),I.or.k[0].ti){var B,E=I.or.k.length;for(B=0;B<E;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=rt.getProp(v,I.or,1,_t,this),this.or.sh=!0}else this.r=rt.getProp(v,I.r||{k:0},0,_t,this);I.sk&&(this.sk=rt.getProp(v,I.sk,0,_t,this),this.sa=rt.getProp(v,I.sa,0,_t,this)),this.a=rt.getProp(v,I.a||{k:[0,0,0]},1,0,this),this.s=rt.getProp(v,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=rt.getProp(v,I.o,0,.01,v):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}u.prototype={applyToMatrix:r,getValue:o,precalculateMatrix:a,autoOrient:d},$([ie],u),u.prototype.addDynamicProperty=c,u.prototype._addDynamicProperty=ie.prototype.addDynamicProperty;function T(v,I,w){return new u(v,I,w)}return{getTransformProperty:T}}();function fr(){}$([Ve],fr),fr.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.c=rt.getProp(t,r.c,0,null,this),this.o=rt.getProp(t,r.o,0,null,this),this.tr=vl.getTransformProperty(t,r.tr,this),this.so=rt.getProp(t,r.tr.so,0,.01,this),this.eo=rt.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 le,this.rMatrix=new le,this.sMatrix=new le,this.tMatrix=new le,this.matrix=new le},fr.prototype.applyTransforms=function(t,r,o,a,d,c){var u=c?-1:1,T=a.s.v[0]+(1-a.s.v[0])*(1-d),v=a.s.v[1]+(1-a.s.v[1])*(1-d);t.translate(a.p.v[0]*u*d,a.p.v[1]*u*d,a.p.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.rotate(-a.r.v*u*d),r.translate(a.a.v[0],a.a.v[1],a.a.v[2]),o.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),o.scale(c?1/T:T,c?1/v:v),o.translate(a.a.v[0],a.a.v[1],a.a.v[2])},fr.prototype.init=function(t,r,o,a){for(this.elem=t,this.arr=r,this.pos=o,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,r[o]);o>0;)o-=1,this._elements.unshift(r[o]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},fr.prototype.resetElements=function(t){var r,o=t.length;for(r=0;r<o;r+=1)t[r]._processed=!1,t[r].ty==="gr"&&this.resetElements(t[r].it)},fr.prototype.cloneElements=function(t){var r=JSON.parse(JSON.stringify(t));return this.resetElements(r),r},fr.prototype.changeGroupRender=function(t,r){var o,a=t.length;for(o=0;o<a;o+=1)t[o]._render=r,t[o].ty==="gr"&&this.changeGroupRender(t[o].it,r)},fr.prototype.processShapes=function(t){var r,o,a,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 v={it:this.cloneElements(this._elements),ty:"gr"};v.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,v),this._groups.splice(0,0,v),this._currentCopies+=1}this.elem.reloadShapes(),u=!0}c=0;var I;for(a=0;a<=this._groups.length-1;a+=1){if(I=c<T,this._groups[a]._render=I,this.changeGroupRender(this._groups[a].it,I),!I){var w=this.elemsData[a].it,B=w[w.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 E=this.o.v,N=E%1,P=E>0?Math.floor(E):Math.ceil(E),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(E>0){for(;S<P;)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(E<0){for(;S>P;)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)}a=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var y,A;c;){if(r=this.elemsData[a].it,o=r[r.length-1].transform.mProps.v.props,A=o.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)*(a/(this._currentCopies-1)),S!==0){for((a!==0&&d===1||a!==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]),y=0;y<A;y+=1)o[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<A;y+=1)o[y]=this.matrix.props[y];S+=1,c-=1,a+=d}}else for(c=this._currentCopies,a=0,d=1;c;)r=this.elemsData[a].it,o=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,a+=d;return u},fr.prototype.addShape=function(){};function vs(){}$([Ve],vs),vs.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.rd=rt.getProp(t,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},vs.prototype.processPath=function(t,r){var o=ne.newElement();o.c=t.c;var a,d=t._length,c,u,T,v,I,w,B=0,E,N,P,M,z,C;for(a=0;a<d;a+=1)c=t.v[a],T=t.o[a],u=t.i[a],c[0]===T[0]&&c[1]===T[1]&&c[0]===u[0]&&c[1]===u[1]?(a===0||a===d-1)&&!t.c?(o.setTripleAt(c[0],c[1],T[0],T[1],u[0],u[1],B),B+=1):(a===0?v=t.v[d-1]:v=t.v[a-1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),w=I?Math.min(I/2,r)/I:0,z=c[0]+(v[0]-c[0])*w,E=z,C=c[1]-(c[1]-v[1])*w,N=C,P=E-(E-c[0])*pe,M=N-(N-c[1])*pe,o.setTripleAt(E,N,P,M,z,C,B),B+=1,a===d-1?v=t.v[0]:v=t.v[a+1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),w=I?Math.min(I/2,r)/I:0,P=c[0]+(v[0]-c[0])*w,E=P,M=c[1]+(v[1]-c[1])*w,N=M,z=E-(E-c[0])*pe,C=N-(N-c[1])*pe,o.setTripleAt(E,N,P,M,z,C,B),B+=1):(o.setTripleAt(t.v[a][0],t.v[a][1],t.o[a][0],t.o[a][1],t.i[a][0],t.i[a][1],B),B+=1);return o},vs.prototype.processShapes=function(t){var r,o,a=this.shapes.length,d,c,u=this.rd.v;if(u!==0){var T,v;for(o=0;o<a;o+=1){if(T=this.shapes[o],v=T.localShapeCollection,!(!T.shape._mdf&&!this._mdf&&!t))for(v.releaseShapes(),T.shape._mdf=!0,r=T.shape.paths.shapes,c=T.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],u));T.shape.paths=T.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ma(t,r){return Math.abs(t-r)*1e5<=Math.min(Math.abs(t),Math.abs(r))}function gl(t){return Math.abs(t)<=1e-5}function Zd(t,r,o){return t*(1-o)+r*o}function Jr(t,r,o){return[Zd(t[0],r[0],o),Zd(t[1],r[1],o)]}function gv(t,r,o){if(t===0)return[];var a=r*r-4*t*o;if(a<0)return[];var d=-r/(2*t);if(a===0)return[d];var c=Math.sqrt(a)/(2*t);return[d-c,d+c]}function Jd(t,r,o,a){return[-t+3*r-3*o+a,3*t-6*r+3*o,-3*t+3*r,t]}function Qd(t){return new Vt(t,t,t,t,!1)}function Vt(t,r,o,a,d){d&&yo(t,r)&&(r=Jr(t,a,1/3)),d&&yo(o,a)&&(o=Jr(t,a,2/3));var c=Jd(t[0],r[0],o[0],a[0]),u=Jd(t[1],r[1],o[1],a[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,o,a]}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(gl(t))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,o=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(o<0)return[];var a=Math.sqrt(o);return gl(a)?a>0&&a<1?[r]:[]:[r-a,r+a].filter(function(d){return d>0&&d<1})},Vt.prototype.split=function(t){if(t<=0)return[Qd(this.points[0]),this];if(t>=1)return[this,Qd(this.points[this.points.length-1])];var r=Jr(this.points[0],this.points[1],t),o=Jr(this.points[1],this.points[2],t),a=Jr(this.points[2],this.points[3],t),d=Jr(r,o,t),c=Jr(o,a,t),u=Jr(d,c,t);return[new Vt(this.points[0],r,d,u,!0),new Vt(u,c,a,this.points[3],!0)]};function th(t,r){var o=t.points[0][r],a=t.points[t.points.length-1][r];if(o>a){var d=a;a=o,o=d}for(var c=gv(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<o?o=T:T>a&&(a=T)}return{min:o,max:a}}Vt.prototype.bounds=function(){return{x:th(this,0),y:th(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 Oa(t,r,o){var a=t.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:t,t:(r+o)/2,t1:r,t2:o}}function eh(t){var r=t.bez.split(.5);return[Oa(r[0],t.t1,t.t),Oa(r[1],t.t,t.t2)]}function bv(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 gs(t,r,o,a,d,c){if(bv(t,r)){if(o>=c||t.width<=a&&t.height<=a&&r.width<=a&&r.height<=a){d.push([t.t,r.t]);return}var u=eh(t),T=eh(r);gs(u[0],T[0],o+1,a,d,c),gs(u[0],T[1],o+1,a,d,c),gs(u[1],T[0],o+1,a,d,c),gs(u[1],T[1],o+1,a,d,c)}}Vt.prototype.intersections=function(t,r,o){r===void 0&&(r=2),o===void 0&&(o=7);var a=[];return gs(Oa(this,0,1),Oa(t,0,1),0,r,a,o),a},Vt.shapeSegment=function(t,r){var o=(r+1)%t.length();return new Vt(t.v[r],t.o[r],t.i[o],t.v[o],!0)},Vt.shapeSegmentInverted=function(t,r){var o=(r+1)%t.length();return new Vt(t.v[o],t.i[o],t.o[r],t.v[r],!0)};function bl(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 Pa(t,r,o,a){var d=[t[0],t[1],1],c=[r[0],r[1],1],u=[o[0],o[1],1],T=[a[0],a[1],1],v=bl(bl(d,c),bl(u,T));return gl(v[2])?null:[v[0]/v[2],v[1]/v[2]]}function bo(t,r,o){return[t[0]+Math.cos(r)*o,t[1]-Math.sin(r)*o]}function yl(t,r){return Math.hypot(t[0]-r[0],t[1]-r[1])}function yo(t,r){return Ma(t[0],r[0])&&Ma(t[1],r[1])}function bs(){}$([Ve],bs),bs.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amplitude=rt.getProp(t,r.s,0,null,this),this.frequency=rt.getProp(t,r.r,0,null,this),this.pointsType=rt.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 rh(t,r,o,a,d,c,u){var T=o-Math.PI/2,v=o+Math.PI/2,I=r[0]+Math.cos(o)*a*d,w=r[1]-Math.sin(o)*a*d;t.setTripleAt(I,w,I+Math.cos(T)*c,w-Math.sin(T)*c,I+Math.cos(v)*u,w-Math.sin(v)*u,t.length())}function yv(t,r){var o=[r[0]-t[0],r[1]-t[1]],a=-Math.PI*.5,d=[Math.cos(a)*o[0]-Math.sin(a)*o[1],Math.sin(a)*o[0]+Math.cos(a)*o[1]];return d}function Ev(t,r){var o=r===0?t.length()-1:r-1,a=(r+1)%t.length(),d=t.v[o],c=t.v[a],u=yv(d,c);return Math.atan2(0,1)-Math.atan2(u[1],u[0])}function ih(t,r,o,a,d,c,u){var T=Ev(r,o),v=r.v[o%r._length],I=r.v[o===0?r._length-1:o-1],w=r.v[(o+1)%r._length],B=c===2?Math.sqrt(Math.pow(v[0]-I[0],2)+Math.pow(v[1]-I[1],2)):0,E=c===2?Math.sqrt(Math.pow(v[0]-w[0],2)+Math.pow(v[1]-w[1],2)):0;rh(t,r.v[o%r._length],T,u,a,E/((d+1)*2),B/((d+1)*2),c)}function Tv(t,r,o,a,d,c){for(var u=0;u<a;u+=1){var T=(u+1)/(a+1),v=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),w=r.point(T);rh(t,w,I,c,o,v/((a+1)*2),v/((a+1)*2),d),c=-c}return c}bs.prototype.processPath=function(t,r,o,a){var d=t._length,c=ne.newElement();if(c.c=t.c,t.c||(d-=1),d===0)return c;var u=-1,T=Vt.shapeSegment(t,0);ih(c,t,0,r,o,a,u);for(var v=0;v<d;v+=1)u=Tv(c,T,r,o,a,-u),v===d-1&&!t.c?T=null:T=Vt.shapeSegment(t,(v+1)%d),ih(c,t,v+1,r,o,a,u);return c},bs.prototype.processShapes=function(t){var r,o,a=this.shapes.length,d,c,u=this.amplitude.v,T=Math.max(0,Math.round(this.frequency.v)),v=this.pointsType.v;if(u!==0){var I,w;for(o=0;o<a;o+=1){if(I=this.shapes[o],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(w.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)w.addShape(this.processPath(r[d],u,T,v));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function El(t,r,o){var a=Math.atan2(r[0]-t[0],r[1]-t[1]);return[bo(t,a,o),bo(r,a,o)]}function Eo(t,r){var o,a,d,c,u,T,v;v=El(t.points[0],t.points[1],r),o=v[0],a=v[1],v=El(t.points[1],t.points[2],r),d=v[0],c=v[1],v=El(t.points[2],t.points[3],r),u=v[0],T=v[1];var I=Pa(o,a,d,c);I===null&&(I=a);var w=Pa(u,T,d,c);return w===null&&(w=u),new Vt(o,I,w,T)}function oh(t,r,o,a,d){var c=r.points[3],u=o.points[0];if(a===3||yo(c,u))return c;if(a===2){var T=-r.tangentAngle(1),v=-o.tangentAngle(0)+Math.PI,I=Pa(c,bo(c,T+Math.PI/2,100),u,bo(u,T+Math.PI/2,100)),w=I?yl(I,c):yl(c,u)/2,B=bo(c,T,2*w*pe);return t.setXYAt(B[0],B[1],"o",t.length()-1),B=bo(u,v,2*w*pe),t.setTripleAt(u[0],u[1],u[0],u[1],B[0],B[1],t.length()),u}var E=yo(c,r.points[2])?r.points[0]:r.points[2],N=yo(u,o.points[1])?o.points[3]:o.points[1],P=Pa(E,c,u,N);return P&&yl(P,c)<d?(t.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],t.length()),P):c}function sh(t,r){var o=t.intersections(r);return o.length&&Ma(o[0][0],1)&&o.shift(),o.length?o[0]:null}function ah(t,r){var o=t.slice(),a=r.slice(),d=sh(t[t.length-1],r[0]);return d&&(o[t.length-1]=t[t.length-1].split(d[0])[0],a[0]=r[0].split(d[1])[1]),t.length>1&&r.length>1&&(d=sh(t[0],r[r.length-1]),d)?[[t[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[o,a]}function xv(t){for(var r,o=1;o<t.length;o+=1)r=ah(t[o-1],t[o]),t[o-1]=r[0],t[o]=r[1];return t.length>1&&(r=ah(t[t.length-1],t[0]),t[t.length-1]=r[0],t[0]=r[1]),t}function nh(t,r){var o=t.inflectionPoints(),a,d,c,u;if(o.length===0)return[Eo(t,r)];if(o.length===1||Ma(o[1],1))return c=t.split(o[0]),a=c[0],d=c[1],[Eo(a,r),Eo(d,r)];c=t.split(o[0]),a=c[0];var T=(o[1]-o[0])/(1-o[0]);return c=c[1].split(T),u=c[0],d=c[1],[Eo(a,r),Eo(u,r),Eo(d,r)]}function ys(){}$([Ve],ys),ys.prototype.initModifierProperties=function(t,r){this.getValue=this.processKeys,this.amount=rt.getProp(t,r.a,0,null,this),this.miterLimit=rt.getProp(t,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},ys.prototype.processPath=function(t,r,o,a){var d=ne.newElement();d.c=t.c;var c=t.length();t.c||(c-=1);var u,T,v,I=[];for(u=0;u<c;u+=1)v=Vt.shapeSegment(t,u),I.push(nh(v,r));if(!t.c)for(u=c-1;u>=0;u-=1)v=Vt.shapeSegmentInverted(t,u),I.push(nh(v,r));I=xv(I);var w=null,B=null;for(u=0;u<I.length;u+=1){var E=I[u];for(B&&(w=oh(d,B,E[0],o,a)),B=E[E.length-1],T=0;T<E.length;T+=1)v=E[T],w&&yo(v.points[0],w)?d.setXYAt(v.points[1][0],v.points[1][1],"o",d.length()-1):d.setTripleAt(v.points[0][0],v.points[0][1],v.points[1][0],v.points[1][1],v.points[0][0],v.points[0][1],d.length()),d.setTripleAt(v.points[3][0],v.points[3][1],v.points[3][0],v.points[3][1],v.points[2][0],v.points[2][1],d.length()),w=v.points[3]}return I.length&&oh(d,B,I[0][0],o,a),d},ys.prototype.processShapes=function(t){var r,o,a=this.shapes.length,d,c,u=this.amount.v,T=this.miterLimit.v,v=this.lineJoin;if(u!==0){var I,w;for(o=0;o<a;o+=1){if(I=this.shapes[o],w=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!t))for(w.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)w.addShape(this.processPath(r[d],u,v,T));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function lh(t){for(var r=t.fStyle?t.fStyle.split(" "):[],o="normal",a="normal",d=r.length,c,u=0;u<d;u+=1)switch(c=r[u].toLowerCase(),c){case"italic":a="italic";break;case"bold":o="700";break;case"black":o="900";break;case"medium":o="500";break;case"regular":case"normal":o="400";break;case"light":case"thin":o="200";break;default:break}return{style:a,weight:t.fWeight||o}}var ki=function(){var t=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},o=[];o=o.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 a=127988,d=917631,c=917601,u=917626,T=65039,v=8205,I=127462,w=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function E(_){var O=_.split(","),p,b=O.length,U=[];for(p=0;p<b;p+=1)O[p]!=="sans-serif"&&O[p]!=="monospace"&&U.push(O[p]);return U.join(",")}function N(_,O){var p=R("span");p.setAttribute("aria-hidden",!0),p.style.fontFamily=O;var b=R("span");b.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(b),document.body.appendChild(p);var U=b.offsetWidth;return b.style.fontFamily=E(_)+", "+O,{node:b,w:U,parent:p}}function P(){var _,O=this.fonts.length,p,b,U=O;for(_=0;_<O;_+=1)this.fonts[_].loaded?U-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(p=this.fonts[_].monoCase.node,b=this.fonts[_].monoCase.w,p.offsetWidth!==b?(U-=1,this.fonts[_].loaded=!0):(p=this.fonts[_].sansCase.node,b=this.fonts[_].sansCase.w,p.offsetWidth!==b&&(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(_,O){var p=document.body&&O?"svg":"canvas",b,U=lh(_);if(p==="svg"){var F=gt("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,O.appendChild(F),b=F}else{var ot=new OffscreenCanvas(500,500).getContext("2d");ot.font=U.style+" "+U.weight+" 100px "+_.fFamily,b=ot}function mt(ft){return p==="svg"?(b.textContent=ft,b.getComputedTextLength()):b.measureText(ft).width}return{measureText:mt}}function z(_,O){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(Ae){Ae.helper=M(Ae),Ae.cache={}}),this.fonts=_.list;return}var p=_.list,b,U=p.length,F=U;for(b=0;b<U;b+=1){var ot=!0,mt,ft;if(p[b].loaded=!1,p[b].monoCase=N(p[b].fFamily,"monospace"),p[b].sansCase=N(p[b].fFamily,"sans-serif"),!p[b].fPath)p[b].loaded=!0,F-=1;else if(p[b].fOrigin==="p"||p[b].origin===3){if(mt=document.querySelectorAll('style[f-forigin="p"][f-family="'+p[b].fFamily+'"], style[f-origin="3"][f-family="'+p[b].fFamily+'"]'),mt.length>0&&(ot=!1),ot){var Ct=R("style");Ct.setAttribute("f-forigin",p[b].fOrigin),Ct.setAttribute("f-origin",p[b].origin),Ct.setAttribute("f-family",p[b].fFamily),Ct.type="text/css",Ct.innerText="@font-face {font-family: "+p[b].fFamily+"; font-style: normal; src: url('"+p[b].fPath+"');}",O.appendChild(Ct)}}else if(p[b].fOrigin==="g"||p[b].origin===1){for(mt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),ft=0;ft<mt.length;ft+=1)mt[ft].href.indexOf(p[b].fPath)!==-1&&(ot=!1);if(ot){var wt=R("link");wt.setAttribute("f-forigin",p[b].fOrigin),wt.setAttribute("f-origin",p[b].origin),wt.type="text/css",wt.rel="stylesheet",wt.href=p[b].fPath,document.body.appendChild(wt)}}else if(p[b].fOrigin==="t"||p[b].origin===2){for(mt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),ft=0;ft<mt.length;ft+=1)p[b].fPath===mt[ft].src&&(ot=!1);if(ot){var Kt=R("link");Kt.setAttribute("f-forigin",p[b].fOrigin),Kt.setAttribute("f-origin",p[b].origin),Kt.setAttribute("rel","stylesheet"),Kt.setAttribute("href",p[b].fPath),O.appendChild(Kt)}}p[b].helper=M(p[b],O),p[b].cache={},this.fonts.push(p[b])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function C(_){if(_){this.chars||(this.chars=[]);var O,p=_.length,b,U=this.chars.length,F;for(O=0;O<p;O+=1){for(b=0,F=!1;b<U;)this.chars[b].style===_[O].style&&this.chars[b].fFamily===_[O].fFamily&&this.chars[b].ch===_[O].ch&&(F=!0),b+=1;F||(this.chars.push(_[O]),U+=1)}}}function S(_,O,p){for(var b=0,U=this.chars.length;b<U;){if(this.chars[b].ch===_&&this.chars[b].style===O&&this.chars[b].fFamily===p)return this.chars[b];b+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,O,p)),r}function y(_,O,p){var b=this.getFontByName(O),U=_;if(!b.cache[U]){var F=b.helper;if(_===" "){var ot=F.measureText("|"+_+"|"),mt=F.measureText("||");b.cache[U]=(ot-mt)/100}else b.cache[U]=F.measureText(_)/100}return b.cache[U]*p}function A(_){for(var O=0,p=this.fonts.length;O<p;){if(this.fonts[O].fName===_)return this.fonts[O];O+=1}return this.fonts[0]}function k(_){var O=0,p=_.charCodeAt(0);if(p>=55296&&p<=56319){var b=_.charCodeAt(1);b>=56320&&b<=57343&&(O=(p-55296)*1024+b-56320+65536)}return O}function D(_,O){var p=_.toString(16)+O.toString(16);return B.indexOf(p)!==-1}function V(_){return _===v}function G(_){return _===T}function Z(_){var O=k(_);return O>=I&&O<=w}function ut(_){return Z(_.substr(0,2))&&Z(_.substr(2,2))}function dt(_){return o.indexOf(_)!==-1}function tt(_,O){var p=k(_.substr(O,2));if(p!==a)return!1;var b=0;for(O+=2;b<5;){if(p=k(_.substr(O,2)),p<c||p>u)return!1;b+=1,O+=2}return k(_.substr(O,2))===d}function bt(){this.isLoaded=!0}var lt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};lt.isModifier=D,lt.isZeroWidthJoiner=V,lt.isFlagEmoji=ut,lt.isRegionalCode=Z,lt.isCombinedCharacter=dt,lt.isRegionalFlag=tt,lt.isVariationSelector=G,lt.BLACK_FLAG_CODE_POINT=a;var X={addChars:C,addFonts:z,getCharData:S,getFontByName:A,measureText:y,checkLoadedFonts:P,setIsLoaded:bt};return lt.prototype=X,lt}();function ch(t){this.animationData=t}ch.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function Av(t){return new ch(t)}function Da(){}Da.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,o=this.renderableComponents.length;for(r=0;r<o;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 Tl=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 _v(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function Sv(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function Iv(t,r,o){this.p=rt.getProp(r,t.v,1,0,o)}function kv(t,r,o){this.p=rt.getProp(r,t.v,1,0,o)}function Cv(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function wv(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function Lv(t,r,o){this.p=rt.getProp(r,t.v,0,0,o)}function Nv(){this.p={}}function dh(t,r){var o=t.ef||[];this.effectElements=[];var a,d=o.length,c;for(a=0;a<d;a+=1)c=new Es(o[a],r),this.effectElements.push(c)}function Es(t,r){this.init(t,r)}$([ie],Es),Es.prototype.getValue=Es.prototype.iterateDynamicProperties,Es.prototype.init=function(t,r){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(r);var o,a=this.data.ef.length,d,c=this.data.ef;for(o=0;o<a;o+=1){switch(d=null,c[o].ty){case 0:d=new _v(c[o],r,this);break;case 1:d=new Sv(c[o],r,this);break;case 2:d=new Iv(c[o],r,this);break;case 3:d=new kv(c[o],r,this);break;case 4:case 7:d=new Lv(c[o],r,this);break;case 10:d=new Cv(c[o],r,this);break;case 11:d=new wv(c[o],r,this);break;case 5:d=new dh(c[o],r,this);break;default:d=new Nv(c[o],r,this);break}d&&this.effectElements.push(d)}};function Qr(){}Qr.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,o=this.data.masksProperties.length;r<o;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=Dd();if(r){var o=r("layer"),a=r("effects"),d=r("shape"),c=r("text"),u=r("comp");this.layerInterface=o(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var T=a.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=Tl(this.data.bm),o=this.baseElement||this.layerElement;o.style["mix-blend-mode"]=r},initBaseData:function(r,o,a){this.globalData=o,this.comp=a,this.data=r,this.layerId=Te(),this.data.sr||(this.data.sr=1),this.effectsManager=new dh(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function ti(){}ti.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,o){var a,d=this.dynamicProperties.length;for(a=0;a<d;a+=1)(o||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function ei(t,r,o){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(t,r,o)}ei.prototype.prepareFrame=function(){},$([Da,Qr,ti],ei),ei.prototype.getBaseElement=function(){return null},ei.prototype.renderFrame=function(){},ei.prototype.destroy=function(){},ei.prototype.initExpressions=function(){var t=Dd();if(t){var r=t("footage");this.layerInterface=r(this)}},ei.prototype.getFootageData=function(){return this.footageData};function xe(t,r,o){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(t.refId),this.initBaseData(t,r,o),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?rt.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=rt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}xe.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 o=this._volume*this._volumeMultiplier;this._previousVolume!==o&&(this._previousVolume=o,this.audio.volume(o))},$([Da,Qr,ti],xe),xe.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))},xe.prototype.show=function(){},xe.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},xe.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},xe.prototype.resume=function(){this._canPlay=!0},xe.prototype.setRate=function(t){this.audio.rate(t)},xe.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},xe.prototype.getBaseElement=function(){return null},xe.prototype.destroy=function(){},xe.prototype.sourceRectAtTime=function(){},xe.prototype.initExpressions=function(){};function ce(){}ce.prototype.checkLayers=function(t){var r,o=this.layers.length,a;for(this.completeLayers=!0,r=o-1;r>=0;r-=1)this.elements[r]||(a=this.layers[r],a.ip-a.st<=t-this.layers[r].st&&a.op-a.st>t-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},ce.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)}},ce.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ce.prototype.createAudio=function(t){return new xe(t,this.globalData,this)},ce.prototype.createFootage=function(t){return new ei(t,this.globalData,this)},ce.prototype.buildAllItems=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.buildItem(t);this.checkPendingElements()},ce.prototype.includeLayers=function(t){this.completeLayers=!1;var r,o=t.length,a,d=this.layers.length;for(r=0;r<o;r+=1)for(a=0;a<d;){if(this.layers[a].id===t[r].id){this.layers[a]=t[r];break}a+=1}},ce.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},ce.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ce.prototype.buildElementParenting=function(t,r,o){for(var a=this.elements,d=this.layers,c=0,u=d.length;c<u;)d[c].ind==r&&(!a[c]||a[c]===!0?(this.buildItem(c),this.addPendingElement(t)):(o.push(a[c]),a[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(t,d[c].parent,o):t.setHierarchy(o))),c+=1},ce.prototype.addPendingElement=function(t){this.pendingElements.push(t)},ce.prototype.searchExtraCompositions=function(t){var r,o=t.length;for(r=0;r<o;r+=1)if(t[r].xt){var a=this.createComp(t[r]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},ce.prototype.getElementById=function(t){var r,o=this.elements.length;for(r=0;r<o;r+=1)if(this.elements[r].data.ind===t)return this.elements[r];return null},ce.prototype.getElementByPath=function(t){var r=t.shift(),o;if(typeof r=="number")o=this.elements[r];else{var a,d=this.elements.length;for(a=0;a<d;a+=1)if(this.elements[a].data.nm===r){o=this.elements[a];break}}return t.length===0?o:o.getElementByPath(t)},ce.prototype.setupGlobalData=function(t,r){this.globalData.fontManager=new ki,this.globalData.slotManager=Av(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 Rv={TRANSFORM_EFFECT:"transformEFfect"};function To(){}To.prototype={initTransform:function(){var r=new le;this.finalTransform={mProp:this.data.ks?vl.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,o=this.finalTransform.mat,a=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<d;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,o.cloneFromProps(r),a=0;a<d;a+=1)o.multiply(this.hierarchy[a].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,o=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<o;)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 a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),r=1;r<o;r+=1){var d=this.localTransforms[r].matrix;a.multiply(d)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<o;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Rv.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new le;var o=0,a=r.length;for(o=0;o<a;o+=1)this.localTransforms.push(r[o])}}},globalToLocal:function(r){var o=[];o.push(this.finalTransform);for(var a=!0,d=this.comp;a;)d.finalTransform?(d.data.hasMask&&o.splice(0,0,d.finalTransform),d=d.comp):a=!1;var c,u=o.length,T;for(c=0;c<u;c+=1)T=o[c].mat.applyToPointArray(0,0,0),r=[r[0]-T[0],r[1]-T[1],0];return r},mHelper:new le};function Ci(t,r,o){this.data=t,this.element=r,this.globalData=o,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=et(c),this.solidPath="";var u,T=this.masksProperties,v=0,I=[],w,B,E=Te(),N,P,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")&&v===0?(N=gt("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=gt("path"),T[d].mode==="n")this.viewData[d]={op:rt.getProp(this.element,T[d].o,0,.01,this.element),prop:La.getShapeProp(this.element,T[d],3),elem:u,lastPath:""},a.appendChild(u);else{v+=1,u.setAttribute("fill",T[d].mode==="s"?"#000000":"#ffffff"),u.setAttribute("clip-rule","nonzero");var y;if(T[d].x.k!==0?(C="mask",S="mask",z=rt.getProp(this.element,T[d].x,0,null,this.element),y=Te(),P=gt("filter"),P.setAttribute("id",y),M=gt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),a.appendChild(P),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:y,lastRadius:0},T[d].mode==="i"){B=I.length;var A=gt("g");for(w=0;w<B;w+=1)A.appendChild(I[w]);var k=gt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",E+"_"+v),k.appendChild(u),a.appendChild(k),A.setAttribute("mask","url("+x()+"#"+E+"_"+v+")"),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:rt.getProp(this.element,T[d].o,0,.01,this.element),prop:La.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=gt(C),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);v>0&&(this.maskElement.setAttribute("id",E),this.element.maskedElement.setAttribute(S,"url("+x()+"#"+E+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Ci.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ci.prototype.renderFrame=function(t){var r=this.element.finalTransform.mat,o,a=this.masksProperties.length;for(o=0;o<a;o+=1)if((this.viewData[o].prop._mdf||t)&&this.drawPath(this.masksProperties[o],this.viewData[o].prop.v,this.viewData[o]),(this.viewData[o].op._mdf||t)&&this.viewData[o].elem.setAttribute("fill-opacity",this.viewData[o].op.v),this.masksProperties[o].mode!=="n"&&(this.viewData[o].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[o].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[o].x&&(this.storedData[o].x._mdf||t))){var d=this.storedData[o].expan;this.storedData[o].x.v<0?(this.storedData[o].lastOperator!=="erode"&&(this.storedData[o].lastOperator="erode",this.storedData[o].elem.setAttribute("filter","url("+x()+"#"+this.storedData[o].filterId+")")),d.setAttribute("radius",-this.storedData[o].x.v)):(this.storedData[o].lastOperator!=="dilate"&&(this.storedData[o].lastOperator="dilate",this.storedData[o].elem.setAttribute("filter",null)),this.storedData[o].elem.setAttribute("stroke-width",this.storedData[o].x.v*2))}},Ci.prototype.getMaskelement=function(){return this.maskElement},Ci.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},Ci.prototype.drawPath=function(t,r,o){var a=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)a+=" 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&&(a+=" 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]),o.lastPath!==a){var u="";o.elem&&(r.c&&(u=t.inv?this.solidPath+a:a),o.elem.setAttribute("d",u)),o.lastPath=a}},Ci.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ts=function(){var t={};t.createFilter=r,t.createAlphaToLuminanceFilter=o;function r(a,d){var c=gt("filter");return c.setAttribute("id",a),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function o(){var a=gt("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),a}return t}(),hh=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}(),Fa={},ph="filter_result_";function xl(t){var r,o="SourceGraphic",a=t.data.ef?t.data.ef.length:0,d=Te(),c=Ts.createFilter(d,!0),u=0;this.filters=[];var T;for(r=0;r<a;r+=1){T=null;var v=t.data.ef[r].ty;if(Fa[v]){var I=Fa[v].effect;T=new I(c,t.effectsManager.effectElements[r],t,ph+u,o),o=ph+u,Fa[v].countsAsEffect&&(u+=1)}T&&this.filters.push(T)}u&&(t.globalData.defs.appendChild(c),t.layerElement.setAttribute("filter","url("+x()+"#"+d+")")),this.filters.length&&t.addRenderableComponent(this)}xl.prototype.renderFrame=function(t){var r,o=this.filters.length;for(r=0;r<o;r+=1)this.filters[r].renderFrame(t)},xl.prototype.getEffects=function(t){var r,o=this.filters.length,a=[];for(r=0;r<o;r+=1)this.filters[r].type===t&&a.push(this.filters[r]);return a};function ME(t,r,o){Fa[t]={effect:r,countsAsEffect:o}}function xs(){}xs.prototype={initRendererElement:function(){this.layerElement=gt("g")},createContainerElements:function(){this.matteElement=gt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var o=gt("g");o.setAttribute("id",this.layerId),o.appendChild(this.layerElement),r=o,this.globalData.defs.appendChild(o)}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 a=gt("clipPath"),d=gt("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=Te();if(a.setAttribute("id",c),a.appendChild(d),this.globalData.defs.appendChild(a),this.checkMasks()){var u=gt("g");u.setAttribute("clip-path","url("+x()+"#"+c+")"),u.appendChild(this.layerElement),this.transformedElement=u,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+x()+"#"+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 Ci(this.data,this,this.globalData),this.renderableEffectsManager=new xl(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var o=this.layerId+"_"+r,a,d,c,u;if(r===1||r===3){var T=gt("mask");T.setAttribute("id",o),T.setAttribute("mask-type",r===3?"luminance":"alpha"),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),T.appendChild(c),this.globalData.defs.appendChild(T),!hh.maskType&&r===1&&(T.setAttribute("mask-type","luminance"),a=Te(),d=Ts.createFilter(a),this.globalData.defs.appendChild(d),d.appendChild(Ts.createAlphaToLuminanceFilter()),u=gt("g"),u.appendChild(c),T.appendChild(u),u.setAttribute("filter","url("+x()+"#"+a+")"))}else if(r===2){var v=gt("mask");v.setAttribute("id",o),v.setAttribute("mask-type","alpha");var I=gt("g");v.appendChild(I),a=Te(),d=Ts.createFilter(a);var w=gt("feComponentTransfer");w.setAttribute("in","SourceGraphic"),d.appendChild(w);var B=gt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),w.appendChild(B),this.globalData.defs.appendChild(d);var E=gt("rect");E.setAttribute("width",this.comp.data.w),E.setAttribute("height",this.comp.data.h),E.setAttribute("x","0"),E.setAttribute("y","0"),E.setAttribute("fill","#ffffff"),E.setAttribute("opacity","0"),I.setAttribute("filter","url("+x()+"#"+a+")"),I.appendChild(E),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),hh.maskType||(v.setAttribute("mask-type","luminance"),d.appendChild(Ts.createAlphaToLuminanceFilter()),u=gt("g"),I.appendChild(E),u.appendChild(this.layerElement),I.appendChild(u)),this.globalData.defs.appendChild(v)}this.matteMasks[r]=o}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+x()+"#"+r+")")}};function xo(){}xo.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 As(){}(function(){var t={initElement:function(o,a,d){this.initFrame(),this.initBaseData(o,a,d),this.initTransform(o,a,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 o=this.baseElement||this.layerElement;o.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var o=this.baseElement||this.layerElement;o.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(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};$([Da,K(t)],As)})();function _s(t,r,o){this.assetData=r.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(t,r,o),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}$([Qr,To,xs,xo,ti,As],_s),_s.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=gt("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)},_s.prototype.sourceRectAtTime=function(){return this.sourceRect};function Mv(t,r){this.elem=t,this.pos=r}function mh(){}mh.prototype={addShapeToModifiers:function(r){var o,a=this.shapeModifiers.length;for(o=0;o<a;o+=1)this.shapeModifiers[o].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var o=0,a=this.shapeModifiers.length;o<a;)if(this.shapeModifiers[o].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,o=this.shapes.length;for(r=0;r<o;r+=1)this.shapes[r].sh.reset();o=this.shapeModifiers.length;var a;for(r=o-1;r>=0&&(a=this.shapeModifiers[r].processShapes(this._isFirstFrame),!a);r-=1);}},searchProcessedElement:function(r){for(var o=this.processedElements,a=0,d=o.length;a<d;){if(o[a].elem===r)return o[a].pos;a+=1}return 0},addProcessedElement:function(r,o){for(var a=this.processedElements,d=a.length;d;)if(d-=1,a[d].elem===r){a[d].pos=o;return}a.push(new Mv(r,o))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var uh={1:"butt",2:"round",3:"square"},fh={1:"miter",2:"round",3:"bevel"};function vh(t,r,o){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=o,this.lvl=r,this._isAnimated=!!o.k;for(var a=0,d=t.length;a<d;){if(t[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}vh.prototype.setAsAnimated=function(){this._isAnimated=!0};function gh(t,r){this.data=t,this.type=t.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=t.hd===!0,this.pElem=gt("path"),this.msElem=null}gh.prototype.reset=function(){this.d="",this._mdf=!1};function $a(t,r,o,a){this.elem=t,this.frameId=-1,this.dataProps=et(r.length),this.renderer=o,this.k=!1,this.dashStr="",this.dashArray=J("float32",r.length?r.length-1:0),this.dashoffset=J("float32",1),this.initDynamicPropertyContainer(a);var d,c=r.length||0,u;for(d=0;d<c;d+=1)u=rt.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}$a.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,o=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<o;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}},$([ie],$a);function bh(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=rt.getProp(t,r.o,0,.01,this),this.w=rt.getProp(t,r.w,0,null,this),this.d=new $a(t,r.d||{},"svg",this),this.c=rt.getProp(t,r.c,1,255,this),this.style=o,this._isAnimated=!!this._isAnimated}$([ie],bh);function yh(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=rt.getProp(t,r.o,0,.01,this),this.c=rt.getProp(t,r.c,1,255,this),this.style=o}$([ie],yh);function Eh(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=o}$([ie],Eh);function Ss(t,r,o){this.data=r,this.c=J("uint8c",r.p*4);var a=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",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(o),this.prop=rt.getProp(t,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ss.prototype.comparePoints=function(t,r){for(var o=0,a=this.o.length/2,d;o<a;){if(d=Math.abs(t[o*4]-t[r*4+o*2]),d>.01)return!1;o+=1}return!0},Ss.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},Ss.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var r,o=this.data.p*4,a,d;for(r=0;r<o;r+=1)a=r%4===0?100:255,d=Math.round(this.prop.v[r]*a),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!t);if(this.o.length)for(o=this.prop.v.length,r=this.data.p*4;r<o;r+=1)a=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}},$([ie],Ss);function Ao(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,r,o)}Ao.prototype.initGradientData=function(t,r,o){this.o=rt.getProp(t,r.o,0,.01,this),this.s=rt.getProp(t,r.s,1,null,this),this.e=rt.getProp(t,r.e,1,null,this),this.h=rt.getProp(t,r.h||{k:0},0,.01,this),this.a=rt.getProp(t,r.a||{k:0},0,_t,this),this.g=new Ss(t,r.g,this),this.style=o,this.stops=[],this.setGradientData(o.pElem,r),this.setGradientOpacity(r,o),this._isAnimated=!!this._isAnimated},Ao.prototype.setGradientData=function(t,r){var o=Te(),a=gt(r.t===1?"linearGradient":"radialGradient");a.setAttribute("id",o),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,u,T;for(T=r.g.p*4,u=0;u<T;u+=4)c=gt("stop"),a.appendChild(c),d.push(c);t.setAttribute(r.ty==="gf"?"fill":"stroke","url("+x()+"#"+o+")"),this.gf=a,this.cst=d},Ao.prototype.setGradientOpacity=function(t,r){if(this.g._hasOpacity&&!this.g._collapsable){var o,a,d,c=gt("mask"),u=gt("path");c.appendChild(u);var T=Te(),v=Te();c.setAttribute("id",v);var I=gt(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 w=this.stops;for(a=t.g.p*4;a<d;a+=2)o=gt("stop"),o.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(o),w.push(o);u.setAttribute(t.ty==="gf"?"fill":"stroke","url("+x()+"#"+T+")"),t.ty==="gs"&&(u.setAttribute("stroke-linecap",uh[t.lc||2]),u.setAttribute("stroke-linejoin",fh[t.lj||2]),t.lj===1&&u.setAttribute("stroke-miterlimit",t.ml)),this.of=I,this.ms=c,this.ost=w,this.maskId=v,r.msElem=u}},$([ie],Ao);function Th(t,r,o){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=rt.getProp(t,r.w,0,null,this),this.d=new $a(t,r.d||{},"svg",this),this.initGradientData(t,r,o),this._isAnimated=!!this._isAnimated}$([Ao,ie],Th);function Ov(){this.it=[],this.prevViewData=[],this.gr=gt("g")}function Pv(t,r,o){this.transform={mProps:t,op:r,container:o},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var xh=function(r,o,a,d){if(o===0)return"";var c=r.o,u=r.i,T=r.v,v,I=" M"+d.applyToPointStringified(T[0][0],T[0][1]);for(v=1;v<o;v+=1)I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(u[v][0],u[v][1])+" "+d.applyToPointStringified(T[v][0],T[v][1]);return a&&o&&(I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(u[0][0],u[0][1])+" "+d.applyToPointStringified(T[0][0],T[0][1]),I+="z"),I},Dv=function(){var t=new le,r=new le,o={createRenderFunction:a};function a(B){switch(B.ty){case"fl":return T;case"gf":return I;case"gs":return v;case"st":return w;case"sh":case"el":case"rc":case"sr":return u;case"tr":return d;case"no":return c;default:return null}}function d(B,E,N){(N||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(N||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function u(B,E,N){var P,M,z,C,S,y,A=E.styles.length,k=E.lvl,D,V,G,Z;for(y=0;y<A;y+=1){if(C=E.sh._mdf||N,E.styles[y].lvl<k){for(V=r.reset(),G=k-E.styles[y].lvl,Z=E.transformers.length-1;!C&&G>0;)C=E.transformers[Z].mProps._mdf||C,G-=1,Z-=1;if(C)for(G=k-E.styles[y].lvl,Z=E.transformers.length-1;G>0;)V.multiply(E.transformers[Z].mProps.v),G-=1,Z-=1}else V=t;if(D=E.sh.paths,M=D._length,C){for(z="",P=0;P<M;P+=1)S=D.shapes[P],S&&S._length&&(z+=xh(S,S._length,S.c,V));E.caches[y]=z}else z=E.caches[y];E.styles[y].d+=B.hd===!0?"":z,E.styles[y]._mdf=C||E.styles[y]._mdf}}function T(B,E,N){var P=E.style;(E.c._mdf||N)&&P.pElem.setAttribute("fill","rgb("+re(E.c.v[0])+","+re(E.c.v[1])+","+re(E.c.v[2])+")"),(E.o._mdf||N)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function v(B,E,N){I(B,E,N),w(B,E,N)}function I(B,E,N){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,C=E.e.v;if(E.o._mdf||N){var S=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(S,E.o.v)}if(E.s._mdf||N){var y=B.t===1?"x1":"cx",A=y==="x1"?"y1":"cy";P.setAttribute(y,z[0]),P.setAttribute(A,z[1]),M&&!E.g._collapsable&&(E.of.setAttribute(y,z[0]),E.of.setAttribute(A,z[1]))}var k,D,V,G;if(E.g._cmdf||N){k=E.cst;var Z=E.g.c;for(V=k.length,D=0;D<V;D+=1)G=k[D],G.setAttribute("offset",Z[D*4]+"%"),G.setAttribute("stop-color","rgb("+Z[D*4+1]+","+Z[D*4+2]+","+Z[D*4+3]+")")}if(M&&(E.g._omdf||N)){var ut=E.g.o;for(E.g._collapsable?k=E.cst:k=E.ost,V=k.length,D=0;D<V;D+=1)G=k[D],E.g._collapsable||G.setAttribute("offset",ut[D*2]+"%"),G.setAttribute("stop-opacity",ut[D*2+1])}if(B.t===1)(E.e._mdf||N)&&(P.setAttribute("x2",C[0]),P.setAttribute("y2",C[1]),M&&!E.g._collapsable&&(E.of.setAttribute("x2",C[0]),E.of.setAttribute("y2",C[1])));else{var dt;if((E.s._mdf||E.e._mdf||N)&&(dt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)),P.setAttribute("r",dt),M&&!E.g._collapsable&&E.of.setAttribute("r",dt)),E.e._mdf||E.h._mdf||E.a._mdf||N){dt||(dt=Math.sqrt(Math.pow(z[0]-C[0],2)+Math.pow(z[1]-C[1],2)));var tt=Math.atan2(C[1]-z[1],C[0]-z[0]),bt=E.h.v;bt>=1?bt=.99:bt<=-1&&(bt=-.99);var lt=dt*bt,X=Math.cos(tt+E.a.v)*lt+z[0],_=Math.sin(tt+E.a.v)*lt+z[1];P.setAttribute("fx",X),P.setAttribute("fy",_),M&&!E.g._collapsable&&(E.of.setAttribute("fx",X),E.of.setAttribute("fy",_))}}}function w(B,E,N){var P=E.style,M=E.d;M&&(M._mdf||N)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||N)&&P.pElem.setAttribute("stroke","rgb("+re(E.c.v[0])+","+re(E.c.v[1])+","+re(E.c.v[2])+")"),(E.o._mdf||N)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||N)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return o}();function Ht(t,r,o){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,r,o),this.prevViewData=[]}$([Qr,To,xs,mh,xo,ti,As],Ht),Ht.prototype.initSecondaryElement=function(){},Ht.prototype.identityMatrix=new le,Ht.prototype.buildExpressionInterface=function(){},Ht.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Ht.prototype.filterUniqueShapes=function(){var t,r=this.shapes.length,o,a,d=this.stylesList.length,c,u=[],T=!1;for(a=0;a<d;a+=1){for(c=this.stylesList[a],T=!1,u.length=0,t=0;t<r;t+=1)o=this.shapes[t],o.styles.indexOf(c)!==-1&&(u.push(o),T=o._isAnimated||T);u.length>1&&T&&this.setShapesAsAnimated(u)}},Ht.prototype.setShapesAsAnimated=function(t){var r,o=t.length;for(r=0;r<o;r+=1)t[r].setAsAnimated()},Ht.prototype.createStyleElement=function(t,r){var o,a=new gh(t,r),d=a.pElem;if(t.ty==="st")o=new bh(this,t,a);else if(t.ty==="fl")o=new yh(this,t,a);else if(t.ty==="gf"||t.ty==="gs"){var c=t.ty==="gf"?Ao:Th;o=new c(this,t,a),this.globalData.defs.appendChild(o.gf),o.maskId&&(this.globalData.defs.appendChild(o.ms),this.globalData.defs.appendChild(o.of),d.setAttribute("mask","url("+x()+"#"+o.maskId+")"))}else t.ty==="no"&&(o=new Eh(this,t,a));return(t.ty==="st"||t.ty==="gs")&&(d.setAttribute("stroke-linecap",uh[t.lc||2]),d.setAttribute("stroke-linejoin",fh[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"]=Tl(t.bm)),this.stylesList.push(a),this.addToAnimatedContents(t,o),o},Ht.prototype.createGroupElement=function(t){var r=new Ov;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"]=Tl(t.bm)),r},Ht.prototype.createTransformElement=function(t,r){var o=vl.getTransformProperty(this,t,this),a=new Pv(o,o.o,r);return this.addToAnimatedContents(t,a),a},Ht.prototype.createShapeElement=function(t,r,o){var a=4;t.ty==="rc"?a=5:t.ty==="el"?a=6:t.ty==="sr"&&(a=7);var d=La.getShapeProp(this,t,a,this),c=new vh(r,o,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(t,c),c},Ht.prototype.addToAnimatedContents=function(t,r){for(var o=0,a=this.animatedContents.length;o<a;){if(this.animatedContents[o].element===r)return;o+=1}this.animatedContents.push({fn:Dv.createRenderFunction(t),element:r,data:t})},Ht.prototype.setElementStyles=function(t){var r=t.styles,o,a=this.stylesList.length;for(o=0;o<a;o+=1)this.stylesList[o].closed||r.push(this.stylesList[o])},Ht.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()},Ht.prototype.searchShapes=function(t,r,o,a,d,c,u){var T=[].concat(c),v,I=t.length-1,w,B,E=[],N=[],P,M,z;for(v=I;v>=0;v-=1){if(z=this.searchProcessedElement(t[v]),z?r[v]=o[z-1]:t[v]._render=u,t[v].ty==="fl"||t[v].ty==="st"||t[v].ty==="gf"||t[v].ty==="gs"||t[v].ty==="no")z?r[v].style.closed=!1:r[v]=this.createStyleElement(t[v],d),t[v]._render&&r[v].style.pElem.parentNode!==a&&a.appendChild(r[v].style.pElem),E.push(r[v].style);else if(t[v].ty==="gr"){if(!z)r[v]=this.createGroupElement(t[v]);else for(B=r[v].it.length,w=0;w<B;w+=1)r[v].prevViewData[w]=r[v].it[w];this.searchShapes(t[v].it,r[v].it,r[v].prevViewData,r[v].gr,d+1,T,u),t[v]._render&&r[v].gr.parentNode!==a&&a.appendChild(r[v].gr)}else t[v].ty==="tr"?(z||(r[v]=this.createTransformElement(t[v],a)),P=r[v].transform,T.push(P)):t[v].ty==="sh"||t[v].ty==="rc"||t[v].ty==="el"||t[v].ty==="sr"?(z||(r[v]=this.createShapeElement(t[v],T,d)),this.setElementStyles(r[v])):t[v].ty==="tm"||t[v].ty==="rd"||t[v].ty==="ms"||t[v].ty==="pb"||t[v].ty==="zz"||t[v].ty==="op"?(z?(M=r[v],M.closed=!1):(M=Zr.getModifier(t[v].ty),M.init(this,t[v]),r[v]=M,this.shapeModifiers.push(M)),N.push(M)):t[v].ty==="rp"&&(z?(M=r[v],M.closed=!0):(M=Zr.getModifier(t[v].ty),r[v]=M,M.init(this,t,v,r),this.shapeModifiers.push(M),u=!1),N.push(M));this.addProcessedElement(t[v],v+1)}for(I=E.length,v=0;v<I;v+=1)E[v].closed=!0;for(I=N.length,v=0;v<I;v+=1)N[v].closed=!0},Ht.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"))},Ht.prototype.renderShape=function(){var t,r=this.animatedContents.length,o;for(t=0;t<r;t+=1)o=this.animatedContents[t],(this._isFirstFrame||o.element._isAnimated)&&o.data!==!0&&o.fn(o.data,o.element,this._isFirstFrame)},Ht.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Al(t,r,o,a,d,c){this.o=t,this.sw=r,this.sc=o,this.fc=a,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!o,fc:!!a,m:!0,p:!0}}Al.prototype.update=function(t,r,o,a,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!==o&&(this.sc=o,this._mdf.sc=!0,u=!0),this.fc!==a&&(this.fc=a,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 o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);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,o=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,d=this.effectsSequence.length,c=t||this.data.d.k[this.keysIndex].s;for(a=0;a<d;a+=1)o!==this.keysIndex?c=this.effectsSequence[a](c,c.t):c=this.effectsSequence[a](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,o=0,a=t.length;o<=a-1&&!(o===a-1||t[o+1].t>r);)o+=1;return this.keysIndex!==o&&(this.keysIndex=o),this.data.d.k[this.keysIndex].s},me.prototype.buildFinalText=function(t){for(var r=[],o=0,a=t.length,d,c,u=!1,T=!1,v="";o<a;)u=T,T=!1,d=t.charCodeAt(o),v=t.charAt(o),ki.isCombinedCharacter(d)?u=!0:d>=55296&&d<=56319?ki.isRegionalFlag(t,o)?v=t.substr(o,14):(c=t.charCodeAt(o+1),c>=56320&&c<=57343&&(ki.isModifier(d,c)?(v=t.substr(o,2),u=!0):ki.isFlagEmoji(t.substr(o,4))?v=t.substr(o,4):v=t.substr(o,2))):d>56319?(c=t.charCodeAt(o+1),ki.isVariationSelector(d)&&(u=!0)):ki.isZeroWidthJoiner(d)&&(u=!0,T=!0),u?(r[r.length-1]+=v,u=!1):r.push(v),o+=v.length;return r},me.prototype.completeTextData=function(t){t.__complete=!0;var r=this.elem.globalData.fontManager,o=this.data,a=[],d,c,u,T=0,v,I=o.m.g,w=0,B=0,E=0,N=[],P=0,M=0,z,C,S=r.getFontByName(t.f),y,A=0,k=lh(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 G=!0,Z=t.sz[0],ut=t.sz[1],dt,tt;G;){tt=this.buildFinalText(t.t),dt=0,P=0,c=tt.length,D=t.tr/1e3*t.finalSize;var bt=-1;for(d=0;d<c;d+=1)V=tt[d].charCodeAt(0),u=!1,tt[d]===" "?bt=d:(V===13||V===3)&&(P=0,u=!0,dt+=t.finalLineHeight||t.finalSize*1.2),r.chars?(y=r.getCharData(tt[d],S.fStyle,S.fFamily),A=u?0:y.w*t.finalSize/100):A=r.measureText(tt[d],t.f,t.finalSize),P+A>Z&&tt[d]!==" "?(bt===-1?c+=1:d=bt,dt+=t.finalLineHeight||t.finalSize*1.2,tt.splice(d,bt===d?1:0,"\r"),bt=-1,P=0):(P+=A,P+=D);dt+=S.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&ut<dt?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=tt,c=t.finalText.length,G=!1)}P=-D,A=0;var lt=0,X;for(d=0;d<c;d+=1)if(u=!1,X=t.finalText[d],V=X.charCodeAt(0),V===13||V===3?(lt=0,N.push(P),M=P>M?P:M,P=-2*D,v="",u=!0,E+=1):v=X,r.chars?(y=r.getCharData(X,S.fStyle,r.getFontByName(t.f).fFamily),A=u?0:y.w*t.finalSize/100):A=r.measureText(v,t.f,t.finalSize),X===" "?lt+=A+D:(P+=A+D+lt,lt=0),a.push({l:A,an:A,add:w,n:u,anIndexes:[],val:v,line:E,animatorJustifyOffset:0}),I==2){if(w+=A,v===""||v===" "||d===c-1){for((v===""||v===" ")&&(w-=A);B<=d;)a[B].an=w,a[B].ind=T,a[B].extra=A,B+=1;T+=1,w=0}}else if(I==3){if(w+=A,v===""||d===c-1){for(v===""&&(w-=A);B<=d;)a[B].an=w,a[B].ind=T,a[B].extra=A,B+=1;w=0,T+=1}}else a[T].ind=T,a[T].extra=0,T+=1;if(t.l=a,M=P>M?P:M,N.push(P),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 _=o.a,O,p;C=_.length;var b,U,F=[];for(z=0;z<C;z+=1){for(O=_[z],O.a.sc&&(t.strokeColorAnim=!0),O.a.sw&&(t.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(t.fillColorAnim=!0),U=0,b=O.s.b,d=0;d<c;d+=1)p=a[d],p.anIndexes[z]=U,(b==1&&p.val!==""||b==2&&p.val!==""&&p.val!==" "||b==3&&(p.n||p.val==" "||d==c-1)||b==4&&(p.n||d==c-1))&&(O.s.rn===1&&F.push(U),U+=1);o.a[z].s.totalChars=U;var ot=-1,mt;if(O.s.rn===1)for(d=0;d<c;d+=1)p=a[d],ot!=p.anIndexes[z]&&(ot=p.anIndexes[z],mt=F.splice(Math.floor(Math.random()*F.length),1)[0]),p.anIndexes[z]=mt}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 o=this.copyData({},this.data.d.k[r].s);o=this.copyData(o,t),this.data.d.k[r].s=o,this.recalculate(r),this.setCurrentData(o),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 Fv=function(){var t=Math.max,r=Math.min,o=Math.floor;function a(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=rt.getProp(c,u.s||{k:0},0,0,this),"e"in u?this.e=rt.getProp(c,u.e,0,0,this):this.e={v:100},this.o=rt.getProp(c,u.o||{k:0},0,0,this),this.xe=rt.getProp(c,u.xe||{k:0},0,0,this),this.ne=rt.getProp(c,u.ne||{k:0},0,0,this),this.sm=rt.getProp(c,u.sm||{k:100},0,0,this),this.a=rt.getProp(c,u.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(u){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var T=0,v=0,I=1,w=1;this.ne.v>0?T=this.ne.v/100:v=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:w=1+this.xe.v/100;var B=us.getBezierEasing(T,v,I,w).get,E=0,N=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===N?E=u>=P?1:0:E=t(0,r(.5/(P-N)+(u-N)/(P-N),1)),E=B(E);else if(M===3)P===N?E=u>=P?0:1:E=1-t(0,r(.5/(P-N)+(u-N)/(P-N),1)),E=B(E);else if(M===4)P===N?E=0:(E=t(0,r(.5/(P-N)+(u-N)/(P-N),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===N)E=0;else{var z=P-N;u=r(t(0,u+.5-N),P-N);var C=-z/2+u,S=z/2;E=Math.sqrt(1-C*C/(S*S))}E=B(E)}else M===6?(P===N?E=0:(u=r(t(0,u+.5-N),P-N),E=(1+Math.cos(Math.PI+Math.PI*2*u/(P-N)))/2),E=B(E)):(u>=o(N)&&(u-N<0?E=t(0,r(r(P,1)-(N-u),1)):E=t(0,r(P-u,1))),E=B(E));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var A=.5-y*.5;E<A?E=0:(E=(E-A)/y,E>1&&(E=1))}return E*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,v=this.o.v/T,I=this.s.v/T+v,w=this.e.v/T+v;if(I>w){var B=I;I=w,w=B}this.finalS=I,this.finalE=w}},$([ie],a);function d(c,u,T){return new a(c,u,T)}return{getTextSelectorProp:d}}();function $v(t,r,o){var a={propType:!1},d=rt.getProp,c=r.a;this.a={r:c.r?d(t,c.r,0,_t,o):a,rx:c.rx?d(t,c.rx,0,_t,o):a,ry:c.ry?d(t,c.ry,0,_t,o):a,sk:c.sk?d(t,c.sk,0,_t,o):a,sa:c.sa?d(t,c.sa,0,_t,o):a,s:c.s?d(t,c.s,1,.01,o):a,a:c.a?d(t,c.a,1,0,o):a,o:c.o?d(t,c.o,0,.01,o):a,p:c.p?d(t,c.p,1,0,o):a,sw:c.sw?d(t,c.sw,0,0,o):a,sc:c.sc?d(t,c.sc,1,0,o):a,fc:c.fc?d(t,c.fc,1,0,o):a,fh:c.fh?d(t,c.fh,0,0,o):a,fs:c.fs?d(t,c.fs,0,.01,o):a,fb:c.fb?d(t,c.fb,0,.01,o):a,t:c.t?d(t,c.t,0,0,o):a},this.s=Fv.getTextSelectorProp(t,r.s,o),this.s.t=r.s.t}function wi(t,r,o){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=r,this._elem=o,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(o)}wi.prototype.searchProperties=function(){var t,r=this._textData.a.length,o,a=rt.getProp;for(t=0;t<r;t+=1)o=this._textData.a[t],this._animatorsData[t]=new $v(this._elem,o,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(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=a(this._elem,this._textData.m.a,1,0,this)},wi.prototype.getMeasures=function(t,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var o=this._moreOptions.alignment.v,a=this._animatorsData,d=this._textData,c=this.mHelper,u=this._renderType,T=this.renderedLetters.length,v,I,w,B,E=t.l,N,P,M,z,C,S,y,A,k,D,V,G,Z,ut,dt;if(this._hasMaskedPath){if(dt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var tt=dt.v;this._pathData.r.v&&(tt=tt.reverse()),N={tLength:0,segments:[]},B=tt._length-1;var bt;for(G=0,w=0;w<B;w+=1)bt=ur.buildBezierData(tt.v[w],tt.v[w+1],[tt.o[w][0]-tt.v[w][0],tt.o[w][1]-tt.v[w][1]],[tt.i[w+1][0]-tt.v[w+1][0],tt.i[w+1][1]-tt.v[w+1][1]]),N.tLength+=bt.segmentLength,N.segments.push(bt),G+=bt.segmentLength;w=B,dt.v.c&&(bt=ur.buildBezierData(tt.v[w],tt.v[0],[tt.o[w][0]-tt.v[w][0],tt.o[w][1]-tt.v[w][1]],[tt.i[0][0]-tt.v[0][0],tt.i[0][1]-tt.v[0][1]]),N.tLength+=bt.segmentLength,N.segments.push(bt),G+=bt.segmentLength),this._pathData.pi=N}if(N=this._pathData.pi,P=this._pathData.f.v,y=0,S=1,z=0,C=!0,D=N.segments,P<0&&dt.v.c)for(N.tLength<Math.abs(P)&&(P=-Math.abs(P)%N.tLength),y=D.length-1,k=D[y].points,S=k.length-1;P<0;)P+=k[S].partialLength,S-=1,S<0&&(y-=1,k=D[y].points,S=k.length-1);k=D[y].points,A=k[S-1],M=k[S],V=M.partialLength}B=E.length,v=0,I=0;var lt=t.finalSize*1.2*.714,X=!0,_,O,p,b,U;b=a.length;var F,ot=-1,mt,ft,Ct,wt=P,Kt=y,Ae=S,vr=-1,_e,oe,Re,Rt,ct,Cr,ii,wr,gr="",Lr=this.defaultPropsArray,Nr;if(t.j===2||t.j===1){var Se=0,oi=0,si=t.j===2?-.5:-1,or=0,ai=!0;for(w=0;w<B;w+=1)if(E[w].n){for(Se&&(Se+=oi);or<w;)E[or].animatorJustifyOffset=Se,or+=1;Se=0,ai=!0}else{for(p=0;p<b;p+=1)_=a[p].a,_.t.propType&&(ai&&t.j===2&&(oi+=_.t.v*si),O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),F.length?Se+=_.t.v*F[0]*si:Se+=_.t.v*F*si);ai=!1}for(Se&&(Se+=oi);or<w;)E[or].animatorJustifyOffset=Se,or+=1}for(w=0;w<B;w+=1){if(c.reset(),_e=1,E[w].n)v=0,I+=t.yOffset,I+=X?1:0,P=wt,X=!1,this._hasMaskedPath&&(y=Kt,S=Ae,k=D[y].points,A=k[S-1],M=k[S],V=M.partialLength,z=0),gr="",wr="",Cr="",Nr="",Lr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(vr!==E[w].line){switch(t.j){case 1:P+=G-t.lineWidths[E[w].line];break;case 2:P+=(G-t.lineWidths[E[w].line])/2;break;default:break}vr=E[w].line}ot!==E[w].ind&&(E[ot]&&(P+=E[ot].extra),P+=E[w].an/2,ot=E[w].ind),P+=o[0]*E[w].an*.005;var sr=0;for(p=0;p<b;p+=1)_=a[p].a,_.p.propType&&(O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),F.length?sr+=_.p.v[0]*F[0]:sr+=_.p.v[0]*F),_.a.propType&&(O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),F.length?sr+=_.a.v[0]*F[0]:sr+=_.a.v[0]*F);for(C=!0,this._pathData.a.v&&(P=E[0].an*.5+(G-this._pathData.f.v-E[0].an*.5-E[E.length-1].an*.5)*ot/(B-1),P+=this._pathData.f.v);C;)z+V>=P+sr||!k?(Z=(P+sr-z)/M.partialLength,ft=A.point[0]+(M.point[0]-A.point[0])*Z,Ct=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-o[0]*E[w].an*.005,-(o[1]*lt)*.01),C=!1):k&&(z+=M.partialLength,S+=1,S>=k.length&&(S=0,y+=1,D[y]?k=D[y].points:dt.v.c?(S=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[S],V=M.partialLength));mt=E[w].an/2-E[w].add,c.translate(-mt,0,0)}else mt=E[w].an/2-E[w].add,c.translate(-mt,0,0),c.translate(-o[0]*E[w].an*.005,-o[1]*lt*.01,0);for(p=0;p<b;p+=1)_=a[p].a,_.t.propType&&(O=a[p].s,F=O.getMult(E[w].anIndexes[p],d.a[p].s.totalChars),(v!==0||t.j!==0)&&(this._hasMaskedPath?F.length?P+=_.t.v*F[0]:P+=_.t.v*F:F.length?v+=_.t.v*F[0]:v+=_.t.v*F));for(t.strokeWidthAnim&&(Re=t.sw||0),t.strokeColorAnim&&(t.sc?oe=[t.sc[0],t.sc[1],t.sc[2]]:oe=[0,0,0]),t.fillColorAnim&&t.fc&&(Rt=[t.fc[0],t.fc[1],t.fc[2]]),p=0;p<b;p+=1)_=a[p].a,_.a.propType&&(O=a[p].s,F=O.getMult(E[w].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<b;p+=1)_=a[p].a,_.s.propType&&(O=a[p].s,F=O.getMult(E[w].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<b;p+=1){if(_=a[p].a,O=a[p].s,F=O.getMult(E[w].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?_e+=(_.o.v*F[0]-_e)*F[0]:_e+=(_.o.v*F-_e)*F),t.strokeWidthAnim&&_.sw.propType&&(F.length?Re+=_.sw.v*F[0]:Re+=_.sw.v*F),t.strokeColorAnim&&_.sc.propType)for(ct=0;ct<3;ct+=1)F.length?oe[ct]+=(_.sc.v[ct]-oe[ct])*F[0]:oe[ct]+=(_.sc.v[ct]-oe[ct])*F;if(t.fillColorAnim&&t.fc){if(_.fc.propType)for(ct=0;ct<3;ct+=1)F.length?Rt[ct]+=(_.fc.v[ct]-Rt[ct])*F[0]:Rt[ct]+=(_.fc.v[ct]-Rt[ct])*F;_.fh.propType&&(F.length?Rt=Pd(Rt,_.fh.v*F[0]):Rt=Pd(Rt,_.fh.v*F)),_.fs.propType&&(F.length?Rt=Md(Rt,_.fs.v*F[0]):Rt=Md(Rt,_.fs.v*F)),_.fb.propType&&(F.length?Rt=Od(Rt,_.fb.v*F[0]):Rt=Od(Rt,_.fb.v*F))}}for(p=0;p<b;p+=1)_=a[p].a,_.p.propType&&(O=a[p].s,F=O.getMult(E[w].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&&(Cr=Re<0?0:Re),t.strokeColorAnim&&(ii="rgb("+Math.round(oe[0]*255)+","+Math.round(oe[1]*255)+","+Math.round(oe[2]*255)+")"),t.fillColorAnim&&t.fc&&(wr="rgb("+Math.round(Rt[0]*255)+","+Math.round(Rt[1]*255)+","+Math.round(Rt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-t.ls),c.translate(0,o[1]*lt*.01+I,0),this._pathData.p.v){ut=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var Li=Math.atan(ut)*180/Math.PI;M.point[0]<A.point[0]&&(Li+=180),c.rotate(-Li*Math.PI/180)}c.translate(ft,Ct,0),P-=o[0]*E[w].an*.005,E[w+1]&&ot!==E[w+1].ind&&(P+=E[w].an/2,P+=t.tr*.001*t.finalSize)}else{switch(c.translate(v,I,0),t.ps&&c.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:c.translate(E[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[w].line]),0,0);break;case 2:c.translate(E[w].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[w].line])/2,0,0);break;default:break}c.translate(0,-t.ls),c.translate(mt,0,0),c.translate(o[0]*E[w].an*.005,o[1]*lt*.01,0),v+=E[w].l+t.tr*.001*t.finalSize}u==="html"?gr=c.toCSS():u==="svg"?gr=c.to2dCSS():Lr=[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]],Nr=_e}T<=w?(U=new Al(Nr,Cr,ii,wr,gr,Lr),this.renderedLetters.push(U),T+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[w],this.lettersChangedFlag=U.update(Nr,Cr,ii,wr,gr,Lr)||this.lettersChangedFlag)}}},wi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},wi.prototype.mHelper=new le,wi.prototype.defaultPropsArray=[],$([ie],wi);function Be(){}Be.prototype.initElement=function(t,r,o){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,r,o),this.textProperty=new me(this,t.t,this.dynamicProperties),this.textAnimator=new wi(t.t,this.renderType,this),this.initTransform(t,r,o),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Be.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},Be.prototype.createPathShape=function(t,r){var o,a=r.length,d,c="";for(o=0;o<a;o+=1)r[o].ty==="sh"&&(d=r[o].ks.k,c+=xh(d,d.i.length,!0,t));return c},Be.prototype.updateDocumentData=function(t,r){this.textProperty.updateDocumentData(t,r)},Be.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},Be.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},Be.prototype.applyTextPropertiesToMatrix=function(t,r,o,a,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[o]),0,0);break;case 2:r.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[o])/2,0,0);break;default:break}r.translate(a,d,0)},Be.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[2]*255)+")"},Be.prototype.emptyProp=new Al,Be.prototype.destroy=function(){},Be.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var zv={shapes:[]};function Ir(t,r,o){this.textSpans=[],this.renderType="svg",this.initElement(t,r,o)}$([Qr,To,xs,xo,ti,As,Be],Ir),Ir.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=gt("text"))},Ir.prototype.buildTextContents=function(t){for(var r=0,o=t.length,a=[],d="";r<o;)t[r]==="\r"||t[r]===""?(a.push(d),d=""):d+=t[r],r+=1;return a.push(d),a},Ir.prototype.buildShapeData=function(t,r){if(t.shapes&&t.shapes.length){var o=t.shapes[0];if(o.it){var a=o.it[o.it.length-1];a.s&&(a.s.k[0]=r,a.s.k[1]=r)}}return t},Ir.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,r,o=this.textProperty.currentData;this.renderedLetters=et(o?o.l.length:0),o.fc?this.layerElement.setAttribute("fill",this.buildColor(o.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),o.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(o.sc)),this.layerElement.setAttribute("stroke-width",o.sw)),this.layerElement.setAttribute("font-size",o.finalSize);var a=this.globalData.fontManager.getFontByName(o.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var d=o.fWeight,c=o.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",o.t);var u=o.l||[],T=!!this.globalData.fontManager.chars;r=u.length;var v,I=this.mHelper,w="",B=this.data.singleShape,E=0,N=0,P=!0,M=o.tr*.001*o.finalSize;if(B&&!T&&!o.sz){var z=this.textContainer,C="start";switch(o.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(o.finalText);for(r=S.length,N=o.ps?o.ps[1]+o.ascent:0,t=0;t<r;t+=1)v=this.textSpans[t].span||gt("tspan"),v.textContent=S[t],v.setAttribute("x",0),v.setAttribute("y",N),v.style.display="inherit",z.appendChild(v),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=v,N+=o.finalLineHeight;this.layerElement.appendChild(z)}else{var y=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(v=y>t?this.textSpans[t].span:gt(T?"g":"text"),y<=t){if(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=v,T){var k=gt("g");v.appendChild(k),this.textSpans[t].childSpan=k}this.textSpans[t].span=v,this.layerElement.appendChild(v)}v.style.display="inherit"}if(I.reset(),B&&(u[t].n&&(E=-M,N+=o.yOffset,N+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(o,I,u[t].line,E,N),E+=u[t].l||0,E+=M),T){A=this.globalData.fontManager.getCharData(o.finalText[t],a.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily);var D;if(A.t===1)D=new Is(A.data,this.globalData,this);else{var V=zv;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,o.finalSize)),D=new Ht(V,this.globalData,this)}if(this.textSpans[t].glyph){var G=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(G.layerElement),G.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("+o.finalSize/100+","+o.finalSize/100+")")}else B&&v.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),v.textContent=u[t].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&v&&v.setAttribute("d",w)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},Ir.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},Ir.prototype.getValue=function(){var t,r=this.textSpans.length,o;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)o=this.textSpans[t].glyph,o&&(o.prepareFrame(this.comp.renderedFrame-this.data.st),o._mdf&&(this._mdf=!0))},Ir.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,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;r=a.length;var d,c,u;for(t=0;t<r;t+=1)a[t].n||(d=o[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 _l(t,r,o){this.initElement(t,r,o)}$([_s],_l),_l.prototype.createContent=function(){var t=gt("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function ri(t,r,o){this.initFrame(),this.initBaseData(t,r,o),this.initFrame(),this.initTransform(t,r,o),this.initHierarchy()}ri.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},ri.prototype.renderFrame=function(){},ri.prototype.getBaseElement=function(){return null},ri.prototype.destroy=function(){},ri.prototype.sourceRectAtTime=function(){},ri.prototype.hide=function(){},$([Qr,To,xo,ti],ri);function Jt(){}$([ce],Jt),Jt.prototype.createNull=function(t){return new ri(t,this.globalData,this)},Jt.prototype.createShape=function(t){return new Ht(t,this.globalData,this)},Jt.prototype.createText=function(t){return new Ir(t,this.globalData,this)},Jt.prototype.createImage=function(t){return new _s(t,this.globalData,this)},Jt.prototype.createSolid=function(t){return new _l(t,this.globalData,this)},Jt.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 o=gt("clipPath"),a=gt("rect");a.setAttribute("width",t.w),a.setAttribute("height",t.h),a.setAttribute("x",0),a.setAttribute("y",0);var d=Te();o.setAttribute("id",d),o.appendChild(a),this.layerElement.setAttribute("clip-path","url("+x()+"#"+d+")"),r.appendChild(o),this.layers=t.layers,this.elements=et(t.layers.length)},Jt.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},Jt.prototype.updateContainerSize=function(){},Jt.prototype.findIndexByInd=function(t){var r=0,o=this.layers.length;for(r=0;r<o;r+=1)if(this.layers[r].ind===t)return r;return-1},Jt.prototype.buildItem=function(t){var r=this.elements;if(!(r[t]||this.layers[t].ty===99)){r[t]=!0;var o=this.createItem(this.layers[t]);if(r[t]=o,Aa()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(o),o.initExpressions()),this.appendElementInPos(o,t),this.layers[t].tt){var a="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(o);else{var d=r[a],c=d.getMatte(this.layers[t].tt);o.setMatte(c)}}}},Jt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var r=0,o=this.elements.length;r<o;){if(this.elements[r]===t){var a="tp"in t.data?this.findIndexByInd(t.data.tp):r-1,d=this.elements[a],c=d.getMatte(this.layers[r].tt);t.setMatte(c);break}r+=1}}},Jt.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,o=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=o-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<o;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Jt.prototype.appendElementInPos=function(t,r){var o=t.getBaseElement();if(o){for(var a=0,d;a<r;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(d=this.elements[a].getBaseElement()),a+=1;d?this.layerElement.insertBefore(o,d):this.layerElement.appendChild(o)}},Jt.prototype.hide=function(){this.layerElement.style.display="none"},Jt.prototype.show=function(){this.layerElement.style.display="block"};function kr(){}$([Qr,To,xo,ti,As],kr),kr.prototype.initElement=function(t,r,o){this.initFrame(),this.initBaseData(t,r,o),this.initTransform(t,r,o),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},kr.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 o,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),o=a-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&(this.elements[o].prepareFrame(this.renderedFrame-this.layers[o].st),this.elements[o]._mdf&&(this._mdf=!0))}},kr.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()},kr.prototype.setElements=function(t){this.elements=t},kr.prototype.getElements=function(){return this.elements},kr.prototype.destroyElements=function(){var t,r=this.layers.length;for(t=0;t<r;t+=1)this.elements[t]&&this.elements[t].destroy()},kr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Is(t,r,o){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(t,r,o),this.tm=t.tm?rt.getProp(this,t.tm,0,r.frameRate,this):{_placeholder:!0}}$([Jt,kr,xs],Is),Is.prototype.createComp=function(t){return new Is(t,this.globalData,this)};function Sl(t,r){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=gt("svg");var o="";if(r&&r.title){var a=gt("title"),d=Te();a.setAttribute("id",d),a.textContent=r.title,this.svgElement.appendChild(a),o+=d}if(r&&r.description){var c=gt("desc"),u=Te();c.setAttribute("id",u),c.textContent=r.description,this.svgElement.appendChild(c),o+=" "+u}o&&this.svgElement.setAttribute("aria-labelledby",o);var T=gt("defs");this.svgElement.appendChild(T);var v=gt("g");this.svgElement.appendChild(v),this.layerElement=v,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 $([Jt],Sl),Sl.prototype.createComp=function(t){return new Is(t,this.globalData,this)},Kf("svg",Sl),Zr.registerModifier("tm",ir),Zr.registerModifier("pb",fs),Zr.registerModifier("rp",fr),Zr.registerModifier("rd",vs),Zr.registerModifier("zz",bs),Zr.registerModifier("op",ys),Lt})});var Ua=globalThis,Ga=Ua.ShadowRoot&&(Ua.ShadyCSS===void 0||Ua.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kl=Symbol(),_h=new WeakMap,ks=class{constructor(i,e,s){if(this._$cssResult$=!0,s!==kl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o,e=this.t;if(Ga&&i===void 0){let s=e!==void 0&&e.length===1;s&&(i=_h.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),s&&_h.set(e,i))}return i}toString(){return this.cssText}},Sh=l=>new ks(typeof l=="string"?l:l+"",void 0,kl),H=(l,...i)=>{let e=l.length===1?l[0]:i.reduce((s,n,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.")})(n)+l[h+1],l[0]);return new ks(e,l,kl)},Cl=(l,i)=>{if(Ga)l.adoptedStyleSheets=i.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of i){let s=document.createElement("style"),n=Ua.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,l.appendChild(s)}},Ha=Ga?l=>l:l=>l instanceof CSSStyleSheet?(i=>{let e="";for(let s of i.cssRules)e+=s.cssText;return Sh(e)})(l):l;var{is:Wv,defineProperty:qv,getOwnPropertyDescriptor:Kv,getOwnPropertyNames:Xv,getOwnPropertySymbols:Zv,getPrototypeOf:Jv}=Object,ni=globalThis,Ih=ni.trustedTypes,Qv=Ih?Ih.emptyScript:"",wl=ni.reactiveElementPolyfillSupport,Cs=(l,i)=>l,ws={toAttribute(l,i){switch(i){case Boolean:l=l?Qv:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,i){let e=l;switch(i){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}},ja=(l,i)=>!Wv(l,i),kh={attribute:!0,type:String,converter:ws,reflect:!1,hasChanged:ja},Ch,wh;(Ch=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(wh=ni.litPropertyMetadata)!=null||(ni.litPropertyMetadata=new WeakMap);var Rr=class extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=kh){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(i,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(i,s,e);n!==void 0&&qv(this.prototype,i,n)}}static getPropertyDescriptor(i,e,s){var m;let{get:n,set:h}=(m=Kv(this.prototype,i))!=null?m:{get(){return this[e]},set(x){this[e]=x}};return{get(){return n==null?void 0:n.call(this)},set(x){let R=n==null?void 0:n.call(this);h.call(this,x),this.requestUpdate(i,R,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:kh}static _$Ei(){if(this.hasOwnProperty(Cs("elementProperties")))return;let i=Jv(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Cs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cs("properties"))){let e=this.properties,s=[...Xv(e),...Zv(e)];for(let n of s)this.createProperty(n,e[n])}let i=this[Symbol.metadata];if(i!==null){let e=litPropertyMetadata.get(i);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let e=[];if(Array.isArray(i)){let s=new Set(i.flat(1/0).reverse());for(let n of s)e.unshift(Ha(n))}else i!==void 0&&e.push(Ha(i));return e}static _$Eu(i,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,s;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((s=i.hostConnected)==null||s.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){let i=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(i.set(s,this[s]),delete this[s]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var e;let i=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Cl(i,this.constructor.elementStyles),i}connectedCallback(){var i,e;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostConnected)==null?void 0:n.call(s)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(i,e,s){this._$AK(i,s)}_$EC(i,e){var h;let s=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,s);if(n!==void 0&&s.reflect===!0){let m=(((h=s.converter)==null?void 0:h.toAttribute)!==void 0?s.converter:ws).toAttribute(e,s.type);this._$Em=i,m==null?this.removeAttribute(n):this.setAttribute(n,m),this._$Em=null}}_$AK(i,e){var h;let s=this.constructor,n=s._$Eh.get(i);if(n!==void 0&&this._$Em!==n){let m=s.getPropertyOptions(n),x=typeof m.converter=="function"?{fromAttribute:m.converter}:((h=m.converter)==null?void 0:h.fromAttribute)!==void 0?m.converter:ws;this._$Em=n,this[n]=x.fromAttribute(e,m.type),this._$Em=null}}requestUpdate(i,e,s){var n;if(i!==void 0){if(s!=null||(s=this.constructor.getPropertyOptions(i)),!((n=s.hasChanged)!=null?n:ja)(this[i],e))return;this.P(i,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,e,s){var n;this._$AL.has(i)||this._$AL.set(i,e),s.reflect===!0&&this._$Em!==i&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,x]of this._$Ep)this[m]=x;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[m,x]of h)x.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],x)}let i=!1,e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(h=>{var m;return(m=h.hostUpdate)==null?void 0:m.call(h)}),this.update(e)):this._$EU()}catch(h){throw i=!1,this._$EU(),h}i&&this._$AE(e)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(i){}firstUpdated(i){}},Lh;Rr.elementStyles=[],Rr.shadowRootOptions={mode:"open"},Rr[Cs("elementProperties")]=new Map,Rr[Cs("finalized")]=new Map,wl==null||wl({ReactiveElement:Rr}),((Lh=ni.reactiveElementVersions)!=null?Lh:ni.reactiveElementVersions=[]).push("2.0.4");var Ns=globalThis,Ya=Ns.trustedTypes,Nh=Ya?Ya.createPolicy("lit-html",{createHTML:l=>l}):void 0,Rl="$lit$",Mr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ml="?"+Mr,tg=`<${Ml}>`,Mi=document,Rs=()=>Mi.createComment(""),Ms=l=>l===null||typeof l!="object"&&typeof l!="function",Ol=Array.isArray,$h=l=>Ol(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Ll=`[
|
3
|
+
\f\r]`,Ls=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rh=/-->/g,Mh=/>/g,Ni=RegExp(`>|${Ll}(?:([^\\s"'>=/]+)(${Ll}*=${Ll}*(?:[^
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Oh=/'/g,Ph=/"/g,zh=/^(?:script|style|textarea|title)$/i,Pl=l=>(i,...e)=>({_$litType$:l,strings:i,values:e}),L=Pl(1),zE=Pl(2),VE=Pl(3),Ie=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Dh=new WeakMap,Ri=Mi.createTreeWalker(Mi,129);function Vh(l,i){if(!Ol(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nh!==void 0?Nh.createHTML(i):i}var Bh=(l,i)=>{let e=l.length-1,s=[],n,h=i===2?"<svg>":i===3?"<math>":"",m=Ls;for(let x=0;x<e;x++){let R=l[x],$,Y,K=-1,at=0;for(;at<R.length&&(m.lastIndex=at,Y=m.exec(R),Y!==null);)at=m.lastIndex,m===Ls?Y[1]==="!--"?m=Rh:Y[1]!==void 0?m=Mh:Y[2]!==void 0?(zh.test(Y[2])&&(n=RegExp("</"+Y[2],"g")),m=Ni):Y[3]!==void 0&&(m=Ni):m===Ni?Y[0]===">"?(m=n!=null?n:Ls,K=-1):Y[1]===void 0?K=-2:(K=m.lastIndex-Y[2].length,$=Y[1],m=Y[3]===void 0?Ni:Y[3]==='"'?Ph:Oh):m===Ph||m===Oh?m=Ni:m===Rh||m===Mh?m=Ls:(m=Ni,n=void 0);let J=m===Ni&&l[x+1].startsWith("/>")?" ":"";h+=m===Ls?R+tg:K>=0?(s.push($),R.slice(0,K)+Rl+R.slice(K)+Mr+J):R+Mr+(K===-2?x:J)}return[Vh(l,h+(l[e]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),s]},Os=class l{constructor({strings:i,_$litType$:e},s){let n;this.parts=[];let h=0,m=0,x=i.length-1,R=this.parts,[$,Y]=Bh(i,e);if(this.el=l.createElement($,s),Ri.currentNode=this.el.content,e===2||e===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(n=Ri.nextNode())!==null&&R.length<x;){if(n.nodeType===1){if(n.hasAttributes())for(let K of n.getAttributeNames())if(K.endsWith(Rl)){let at=Y[m++],J=n.getAttribute(K).split(Mr),et=/([.?@])?(.*)/.exec(at);R.push({type:1,index:h,name:et[2],strings:J,ctor:et[1]==="."?qa:et[1]==="?"?Ka:et[1]==="@"?Xa:Pi}),n.removeAttribute(K)}else K.startsWith(Mr)&&(R.push({type:6,index:h}),n.removeAttribute(K));if(zh.test(n.tagName)){let K=n.textContent.split(Mr),at=K.length-1;if(at>0){n.textContent=Ya?Ya.emptyScript:"";for(let J=0;J<at;J++)n.append(K[J],Rs()),Ri.nextNode(),R.push({type:2,index:++h});n.append(K[at],Rs())}}}else if(n.nodeType===8)if(n.data===Ml)R.push({type:2,index:h});else{let K=-1;for(;(K=n.data.indexOf(Mr,K+1))!==-1;)R.push({type:7,index:h}),K+=Mr.length-1}h++}}static createElement(i,e){let s=Mi.createElement("template");return s.innerHTML=i,s}};function Oi(l,i,e=l,s){var m,x,R;if(i===Ie)return i;let n=s!==void 0?(m=e.o)==null?void 0:m[s]:e.l,h=Ms(i)?void 0:i._$litDirective$;return(n==null?void 0:n.constructor)!==h&&((x=n==null?void 0:n._$AO)==null||x.call(n,!1),h===void 0?n=void 0:(n=new h(l),n._$AT(l,e,s)),s!==void 0?((R=e.o)!=null?R:e.o=[])[s]=n:e.l=n),n!==void 0&&(i=Oi(l,n._$AS(l,i.values),n,s)),i}var Wa=class{constructor(i,e){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var $;let{el:{content:e},parts:s}=this._$AD,n=(($=i==null?void 0:i.creationScope)!=null?$:Mi).importNode(e,!0);Ri.currentNode=n;let h=Ri.nextNode(),m=0,x=0,R=s[0];for(;R!==void 0;){if(m===R.index){let Y;R.type===2?Y=new _o(h,h.nextSibling,this,i):R.type===1?Y=new R.ctor(h,R.name,R.strings,this,i):R.type===6&&(Y=new Za(h,this,i)),this._$AV.push(Y),R=s[++x]}m!==(R==null?void 0:R.index)&&(h=Ri.nextNode(),m++)}return Ri.currentNode=Mi,n}p(i){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(i,s,e),e+=s.strings.length-2):s._$AI(i[e])),e++}},_o=class l{get _$AU(){var i,e;return(e=(i=this._$AM)==null?void 0:i._$AU)!=null?e:this.v}constructor(i,e,s,n){var h;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=e,this._$AM=s,this.options=n,this.v=(h=n==null?void 0:n.isConnected)!=null?h:!0}get parentNode(){let i=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=e.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,e=this){i=Oi(this,i,e),Ms(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==Ie&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):$h(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==W&&Ms(this._$AH)?this._$AA.nextSibling.data=i:this.T(Mi.createTextNode(i)),this._$AH=i}$(i){var h;let{values:e,_$litType$:s}=i,n=typeof s=="number"?this._$AC(i):(s.el===void 0&&(s.el=Os.createElement(Vh(s.h,s.h[0]),this.options)),s);if(((h=this._$AH)==null?void 0:h._$AD)===n)this._$AH.p(e);else{let m=new Wa(n,this),x=m.u(this.options);m.p(e),this.T(x),this._$AH=m}}_$AC(i){let e=Dh.get(i.strings);return e===void 0&&Dh.set(i.strings,e=new Os(i)),e}k(i){Ol(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let h of i)n===e.length?e.push(s=new l(this.O(Rs()),this.O(Rs()),this,this.options)):s=e[n],s._$AI(h),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(i=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);i&&i!==this._$AB;){let n=i.nextSibling;i.remove(),i=n}}setConnected(i){var e;this._$AM===void 0&&(this.v=i,(e=this._$AP)==null||e.call(this,i))}},Pi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,e,s,n,h){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=e,this._$AM=n,this.options=h,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=W}_$AI(i,e=this,s,n){let h=this.strings,m=!1;if(h===void 0)i=Oi(this,i,e,0),m=!Ms(i)||i!==this._$AH&&i!==Ie,m&&(this._$AH=i);else{let x=i,R,$;for(i=h[0],R=0;R<h.length-1;R++)$=Oi(this,x[s+R],e,R),$===Ie&&($=this._$AH[R]),m||(m=!Ms($)||$!==this._$AH[R]),$===W?i=W:i!==W&&(i+=($!=null?$:"")+h[R+1]),this._$AH[R]=$}m&&!n&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},qa=class extends Pi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},Ka=class extends Pi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},Xa=class extends Pi{constructor(i,e,s,n,h){super(i,e,s,n,h),this.type=5}_$AI(i,e=this){var m;if((i=(m=Oi(this,i,e,0))!=null?m:W)===Ie)return;let s=this._$AH,n=i===W&&s!==W||i.capture!==s.capture||i.once!==s.once||i.passive!==s.passive,h=i!==W&&(s===W||n);n&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)==null?void 0:e.host)!=null?s:this.element,i):this._$AH.handleEvent(i)}},Za=class{constructor(i,e,s){this.element=i,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(i){Oi(this,i)}},Uh={M:Rl,P:Mr,A:Ml,C:1,L:Bh,R:Wa,D:$h,V:Oi,I:_o,H:Pi,N:Ka,U:Xa,B:qa,F:Za},Nl=Ns.litHtmlPolyfillSupport,Fh;Nl==null||Nl(Os,_o),((Fh=Ns.litHtmlVersions)!=null?Fh:Ns.litHtmlVersions=[]).push("3.2.0");var Gh=(l,i,e)=>{var h,m;let s=(h=e==null?void 0:e.renderBefore)!=null?h:i,n=s._$litPart$;if(n===void 0){let x=(m=e==null?void 0:e.renderBefore)!=null?m:null;s._$litPart$=n=new _o(i.insertBefore(Rs(),x),x,void 0,e!=null?e:{})}return n._$AI(l),n};var li=class extends Rr{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,s;let i=super.createRenderRoot();return(s=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=i.firstChild),i}update(i){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=Gh(e,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return Ie}},Hh;li._$litElement$=!0,li.finalized=!0,(Hh=globalThis.litElementHydrateSupport)==null||Hh.call(globalThis,{LitElement:li});var Dl=globalThis.litElementPolyfillSupport;Dl==null||Dl({LitElement:li});var jh;((jh=globalThis.litElementVersions)!=null?jh:globalThis.litElementVersions=[]).push("4.1.0");var eg={attribute:!0,type:String,converter:ws,reflect:!1,hasChanged:ja},rg=(l=eg,i,e)=>{let{kind:s,metadata:n}=e,h=globalThis.litPropertyMetadata.get(n);if(h===void 0&&globalThis.litPropertyMetadata.set(n,h=new Map),h.set(e.name,l),s==="accessor"){let{name:m}=e;return{set(x){let R=i.get.call(this);i.set.call(this,x),this.requestUpdate(m,R,l)},init(x){return x!==void 0&&this.P(m,void 0,l),x}}}if(s==="setter"){let{name:m}=e;return function(x){let R=this[m];i.call(this,x),this.requestUpdate(m,R,l)}}throw Error("Unsupported decorator location: "+s)};function g(l){return(i,e)=>typeof e=="object"?rg(l,i,e):((s,n,h)=>{let m=n.hasOwnProperty(h);return n.constructor.createProperty(h,m?{...s,wrapped:!0}:s),m?Object.getOwnPropertyDescriptor(n,h):void 0})(l,i,e)}function It(l){return g({...l,state:!0,attribute:!1})}var Or=(l,i,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(l,i,e),e);function Pr(l,i){return(e,s,n)=>{let h=m=>{var x,R;return(R=(x=m.renderRoot)==null?void 0:x.querySelector(l))!=null?R:null};if(i){let{get:m,set:x}=typeof s=="object"?e:n!=null?n:(()=>{let R=Symbol();return{get(){return this[R]},set($){this[R]=$}}})();return Or(e,s,{get(){let R=m.call(this);return R===void 0&&(R=h(this),(R!==null||this.hasUpdated)&&x.call(this,R)),R}})}return Or(e,s,{get(){return h(this)}})}}function Ft(l){return(i,e)=>{let{slot:s,selector:n}=l!=null?l:{},h="slot"+(s?`[name=${s}]`:":not([name])");return Or(i,e,{get(){var R,$;let m=(R=this.renderRoot)==null?void 0:R.querySelector(h),x=($=m==null?void 0:m.assignedElements(l))!=null?$:[];return n===void 0?x:x.filter(Y=>Y.matches(n))}})}}function Ja(l){return(i,e)=>{let{slot:s}=l!=null?l:{},n="slot"+(s?`[name=${s}]`:":not([name])");return Or(i,e,{get(){var m,x;let h=(m=this.renderRoot)==null?void 0:m.querySelector(n);return(x=h==null?void 0:h.assignedNodes(l))!=null?x:[]}})}}var Yh=H`
|
5
5
|
:host {
|
6
6
|
box-sizing: border-box;
|
7
7
|
}
|
@@ -11,11 +11,11 @@
|
|
11
11
|
:host *::after {
|
12
12
|
box-sizing: inherit;
|
13
13
|
}
|
14
|
-
`;var
|
14
|
+
`;var Qa=class extends li{static register(i){customElements.get(i)||customElements.define(i,this)}};Qa.styles=[Yh];var Wh=Qa;var q=Wh;var ci=class extends Event{constructor(i,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=i,this.callback=e,this.subscribe=s!=null?s:!1}};var So=class{constructor(i,e,s,n){var h;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(m,x)=>{this.unsubscribe&&(this.unsubscribe!==x&&(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,x)),this.unsubscribe=x},this.host=i,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=n!=null?n:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ci(this.context,this.t,this.subscribe))}};var tn=class{get value(){return this.o}set value(i){this.setValue(i)}setValue(i,e=!1){let s=e||!Object.is(i,this.o);this.o=i,s&&this.updateObservers()}constructor(i){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},i!==void 0&&(this.value=i)}addCallback(i,e,s){if(!s)return void i(this.value);this.subscriptions.has(i)||this.subscriptions.set(i,{disposer:()=>{this.subscriptions.delete(i)},consumerHost:e});let{disposer:n}=this.subscriptions.get(i);i(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Fl=class extends Event{constructor(i){super("context-provider",{bubbles:!0,composed:!0}),this.context=i}},Io=class extends tn{constructor(i,e,s){var n,h;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=m=>{let x=m.composedPath()[0];m.context===this.context&&x!==this.host&&(m.stopPropagation(),this.addCallback(m.callback,x,m.subscribe))},this.onProviderRequest=m=>{let x=m.composedPath()[0];if(m.context!==this.context||x===this.host)return;let R=new Set;for(let[$,{consumerHost:Y}]of this.subscriptions)R.has($)||(R.add($),Y.dispatchEvent(new ci(this.context,$,!0)));m.stopPropagation()},this.host=i,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(h=(n=this.host).addController)==null||h.call(n,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Fl(this.context))}};var ig=H`
|
15
15
|
:host {
|
16
16
|
display: contents;
|
17
17
|
}
|
18
|
-
`,
|
18
|
+
`,qh=ig;var en=class extends q{constructor({context:i,initialValue:e}){super(),this.context=new Io(this,{context:i,initialValue:e})}render(){return this.updateContext(),L`<slot></slot>`}};en.styles=[...q.styles,qh];var Kh=en;var di=Kh;var $t=l=>{class i extends l{}return f([g({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var Ue=l=>{class i extends l{constructor(){super(...arguments);this.tabIndex=0}}return f([g({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var Xh=l=>{class i extends l{constructor(){super(...arguments);this.autofocus=!1}firstUpdated(n){super.firstUpdated(n),this.autofocus&&this.focus()}}return f([g({type:Boolean,reflect:!0})],i.prototype,"autofocus",2),i};var Q={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:" ",TAB:"Tab"};var og={PREFIX:"mdc",SEPARATOR:"-"},sg={NAMESPACE:og},zl=sg;var ag=l=>[zl.NAMESPACE.PREFIX,l].join(zl.NAMESPACE.SEPARATOR),j={constructTagName:ag};var RT=j.constructTagName("buttonsimple"),Di={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},ko={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ps={SIZE:Di[32],TYPE:ko.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Et=H`
|
19
19
|
:host {
|
20
20
|
align-items: center;
|
21
21
|
display: flex;
|
@@ -23,7 +23,7 @@
|
|
23
23
|
justify-content: center;
|
24
24
|
width: fit-content;
|
25
25
|
}
|
26
|
-
`,
|
26
|
+
`,rn=H`
|
27
27
|
:host {
|
28
28
|
--mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
|
29
29
|
--mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
|
@@ -36,10 +36,10 @@
|
|
36
36
|
--mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
|
37
37
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
38
38
|
}
|
39
|
-
`,At=(l=!1)=>{let i=
|
39
|
+
`,At=(l=!1)=>{let i=H`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
40
40
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
41
41
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
42
|
-
`;return l?[
|
42
|
+
`;return l?[rn,H`
|
43
43
|
.mdc-focus-ring:focus-visible {
|
44
44
|
outline: none;
|
45
45
|
}
|
@@ -63,7 +63,7 @@
|
|
63
63
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
64
64
|
}
|
65
65
|
}
|
66
|
-
`]:[
|
66
|
+
`]:[rn,H`
|
67
67
|
:host([disabled]:focus) {
|
68
68
|
box-shadow: none;
|
69
69
|
}
|
@@ -78,7 +78,7 @@
|
|
78
78
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
79
79
|
}
|
80
80
|
}
|
81
|
-
`]};var
|
81
|
+
`]};var ng=[Et,H`
|
82
82
|
:host {
|
83
83
|
border: 0.0625rem solid transparent;
|
84
84
|
cursor: pointer;
|
@@ -136,7 +136,7 @@
|
|
136
136
|
:host([size='20']) {
|
137
137
|
height: var(--mdc-button-height-size-20);
|
138
138
|
}
|
139
|
-
`,...At()],
|
139
|
+
`,...At()],Zh=ng;var ar=class extends Xh(Ue($t(q))){constructor(){super();this.size=Ps.SIZE;this.role=Ps.ROLE;this.type=Ps.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||Ps.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===ko.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===ko.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){[Q.ENTER,Q.SPACE].includes(e.key)&&(this.classList.add("pressed"),e.key===Q.ENTER&&this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){[Q.ENTER,Q.SPACE].includes(e.key)&&(this.classList.remove("pressed"),e.key===Q.SPACE&&this.triggerClickEvent())}render(){return L` <slot></slot> `}};ar.formAssociated=!0,ar.styles=[...q.styles,...Zh],f([g({type:Boolean,reflect:!0})],ar.prototype,"active",2),f([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],ar.prototype,"softDisabled",2),f([g({type:Number,reflect:!0})],ar.prototype,"size",2),f([g({type:String,reflect:!0})],ar.prototype,"role",2),f([g({type:String,reflect:!0})],ar.prototype,"ariaStateKey",2),f([g({reflect:!0})],ar.prototype,"type",2);var de=ar;var lg=H`
|
140
140
|
:host {
|
141
141
|
height: 1.5rem;
|
142
142
|
gap: 0.25rem;
|
@@ -238,12 +238,12 @@
|
|
238
238
|
:host([variant='informational']:active) {
|
239
239
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
240
240
|
}
|
241
|
-
`,
|
242
|
-
<mdc-icon part="icon" name="${
|
243
|
-
${this.label?
|
241
|
+
`,Jh=[Et,lg,...At()];var Ds=j.constructTagName("text"),it={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"},vt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Me={TYPE:it.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:vt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Qh=j.constructTagName("alertchip"),Fi={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Co={VARIANT:Fi.NEUTRAL,TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,TAG_NAME:vt.SPAN,SIZE:Di[24],ROLE:"button"};var tp=l=>({[Fi.ERROR]:"error-legacy-badge-filled",[Fi.WARNING]:"warning-badge-filled",[Fi.SUCCESS]:"check-circle-badge-filled",[Fi.INFORMATIONAL]:"info-badge-filled",[Fi.NEUTRAL]:"dnd-presence-badge-filled"})[l];var wo=class extends de{constructor(){super(...arguments);this.variant=Co.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Co.SIZE,this.role=Co.ROLE}render(){return L`
|
242
|
+
<mdc-icon part="icon" name="${tp(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
243
|
+
${this.label?L`<mdc-text part="label" type="${Co.TEXT_TYPE}" tagname="${Co.TAG_NAME}"
|
244
244
|
>${this.label}</mdc-text
|
245
245
|
>`:W}
|
246
|
-
`}};
|
246
|
+
`}};wo.styles=[...q.styles,...Jh],f([g({type:String})],wo.prototype,"variant",2),f([g({type:String})],wo.prototype,"label",2);var Vl=wo;var ep=H`
|
247
247
|
:host::part(text) {
|
248
248
|
font-size: unset;
|
249
249
|
font-weight: unset;
|
@@ -486,14 +486,14 @@
|
|
486
486
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
487
487
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
488
488
|
}
|
489
|
-
`;var
|
489
|
+
`;var cg=[H`
|
490
490
|
:host {
|
491
491
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
492
492
|
|
493
493
|
display: block;
|
494
494
|
font-family: var(--mdc-text-font-family);
|
495
495
|
}
|
496
|
-
`,
|
496
|
+
`,ep],rp=cg;var Lo=class extends q{constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case vt.H1:return L`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case vt.H2:return L`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case vt.H3:return L`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case vt.H4:return L`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case vt.H5:return L`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case vt.H6:return L`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case vt.DIV:return L`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case vt.SPAN:return L`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case vt.SMALL:return L`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case vt.P:default:return L`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};Lo.styles=[...q.styles,...rp],f([g({attribute:"type",reflect:!0,type:String})],Lo.prototype,"type",2),f([g({attribute:"tagname",reflect:!0,type:String})],Lo.prototype,"tagname",2);var Bl=Lo;Bl.register(Ds);var dg=Bl;var hg=l=>{let{host:i,context:e,subscribe:s}=l;return new So(i,{context:e,subscribe:s!=null?s:!0})},pg={consume:hg},No=pg;var on=j.constructTagName("iconprovider"),ip=["svg"],op=["em","rem","px","%"],mg={px:16,em:1,rem:1,"%":100},Dr={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:mg.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var sn=class{};sn.context=on;var an=sn;var br=class extends di{constructor(){super({context:an.context,initialValue:new an});this.iconSet=Dr.ICON_SET;this.fileExtension=Dr.FILE_EXTENSION;this.lengthUnit=Dr.LENGTH_UNIT;this.size=Dr.SIZE}static get Context(){return an.context}updateValuesInContext(){this.fileExtension&&ip.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Dr.FILE_EXTENSION,this.context.value.fileExtension=Dr.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&&op.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Dr.LENGTH_UNIT,this.context.value.lengthUnit=Dr.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())}};f([g({type:String,attribute:"icon-set",reflect:!0})],br.prototype,"iconSet",2),f([g({type:String})],br.prototype,"url",2),f([g({type:String,attribute:"file-extension",reflect:!0})],br.prototype,"fileExtension",2),f([g({type:String,attribute:"length-unit",reflect:!0})],br.prototype,"lengthUnit",2),f([g({type:Number,reflect:!0})],br.prototype,"size",2),f([g({type:String,attribute:"cache-strategy"})],br.prototype,"cacheStrategy",2),f([g({type:String,attribute:"cache-name"})],br.prototype,"cacheName",2);var Fs=br;var ug=[Et,H`
|
497
497
|
:host {
|
498
498
|
--mdc-icon-fill-color: currentColor;
|
499
499
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -508,11 +508,11 @@
|
|
508
508
|
width: 100%;
|
509
509
|
fill: var(--mdc-icon-fill-color);
|
510
510
|
}
|
511
|
-
`,...At()],ep=ng;var Os={},rp=async l=>(Os[l]===void 0&&(Os[l]=new Map),{async set(i,e){Os[l].set(i.url,await e.text())},async get(i){return Os[l].get(i.url)},async delete(i){Os[l].delete(i.url)}}),ip=async l=>{let i=await caches.open(l);return{set:async(e,s)=>{await i.put(e,s)},get:async e=>{let s=await i.match(e);return s==null?void 0:s.text()},delete:async e=>{await i.delete(e)}}},op=async(l,i)=>i==="in-memory-cache"?rp(l):ip(l);var sp=async l=>fetch(l).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),ap=async({url:l,name:i,fileExtension:e,cacheStrategy:s,cacheName:n,renewSignal:h})=>{let m=h(),x=new Request(`${l}/${i}.${e}`,{signal:m});return!n||!s||!["in-memory-cache","web-cache-api"].includes(s)?sp(x).then(R=>R.text()):op(n,s).then(R=>R.get(x).then($=>$||sp(x.clone()).then(Y=>{var K;return Y.status<400&&Y.headers.has("content-type")?(K=R.set)==null?void 0:K.call(R,x,Y.clone()).then(()=>Y.text()):Y.text()})).catch($=>{throw new Error(`Error in caching the Icon ${i}, ${$}`)}))};var np=j.constructTagName("icon"),Fl={NAME:void 0,SIZE:1};var Oe=class extends q{constructor(){super();this.name=Fl.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Lo.consume({host:this,context:Ms.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:n,cacheName:h,iconSet:m,cacheStrategy:x}=this.iconProviderContext.value;if(m==="custom-icons"&&n&&s&&this.name){let R=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return ap({url:n,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:x,renewSignal:R}).then($=>{let Y=this.prepareIconElement($);this.handleIconLoadedSuccess(Y)}).catch($=>{this.handleIconLoadedFailure($)})}if(m==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(R=>{this.handleIconLoadedSuccess(R.default())}).catch(R=>{this.handleIconLoadedFailure(R)})}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:Fl.SIZE}updated(e){var s,n,h,m;super.updated(e),e.has("name")&&this.getIconData().catch(x=>{x.name!=="AbortError"&&this.onerror&&this.onerror(x)}),(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=(n=this.iconProviderContext.value)==null?void 0:n.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 N` ${this.iconData} `}};Oe.styles=[...q.styles,...ep],v([It()],Oe.prototype,"iconData",2),v([It()],Oe.prototype,"lengthUnitFromContext",2),v([It()],Oe.prototype,"sizeFromContext",2),v([g({type:String,reflect:!0})],Oe.prototype,"name",2),v([g({type:Number})],Oe.prototype,"size",2),v([g({type:String,attribute:"length-unit"})],Oe.prototype,"lengthUnit",2),v([g({type:String,attribute:"aria-label"})],Oe.prototype,"ariaLabel",2),v([g({type:String,attribute:"aria-labelledby"})],Oe.prototype,"ariaLabelledBy",2),v([It()],Oe.prototype,"abortController",2);var $l=Oe;$l.register(np);var lg=$l;Pl.register(Kh);var cg=Pl;var{I:mA}=$h;var en=l=>l.strings===void 0;var dg={},lp=(l,i=dg)=>l._$AH=i;var nr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$i=l=>(...i)=>({_$litDirective$:l,values:i}),hi=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,e,s){this.t=i,this._$AM=e,this.i=s}_$AS(i,e){return this.update(i,e)}update(i,e){return this.render(...e)}};var Ps=(l,i)=>{var s;let e=l._$AN;if(e===void 0)return!1;for(let n of e)(s=n._$AO)==null||s.call(n,i,!1),Ps(n,i);return!0},rn=l=>{let i,e;do{if((i=l._$AM)===void 0)break;e=i._$AN,e.delete(l),l=i}while((e==null?void 0:e.size)===0)},cp=l=>{for(let i;i=l._$AM;l=i){let e=i._$AN;if(e===void 0)i._$AN=e=new Set;else if(e.has(l))break;e.add(l),mg(i)}};function hg(l){this._$AN!==void 0?(rn(this),this._$AM=l,cp(this)):this._$AM=l}function pg(l,i=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(i)if(Array.isArray(s))for(let h=e;h<s.length;h++)Ps(s[h],!1),rn(s[h]);else s!=null&&(Ps(s,!1),rn(s));else Ps(this,l)}var mg=l=>{var i,e;l.type==nr.CHILD&&((i=l._$AP)!=null||(l._$AP=pg),(e=l._$AQ)!=null||(l._$AQ=hg))},on=class extends hi{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,e,s){super._$AT(i,e,s),cp(this),this.isConnected=i._$AU}_$AO(i,e=!0){var s,n;i!==this.isConnected&&(this.isConnected=i,i?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(Ps(this,i),rn(this))}setValue(i){if(en(this.t))this.t._$AI(i,this);else{let e=[...this.t._$AH];e[this.i]=i,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var sn=()=>new Vl,Vl=class{},zl=new WeakMap,an=$i(class extends on{render(l){return W}update(l,[i]){var s;let e=i!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=i,this.ht=(s=l.options)==null?void 0:s.host,this.rt(this.ct=l.element)),W}rt(l){var i;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let e=(i=this.ht)!=null?i:globalThis,s=zl.get(e);s===void 0&&(s=new WeakMap,zl.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,i,e;return typeof this.Y=="function"?(i=zl.get((l=this.ht)!=null?l:globalThis))==null?void 0:i.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 mp=zv(dp());var Bl={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 ug=[Et,G`
|
511
|
+
`,...At()],sp=ug;var $s={},ap=async l=>($s[l]===void 0&&($s[l]=new Map),{async set(i,e){$s[l].set(i.url,await e.text())},async get(i){return $s[l].get(i.url)},async delete(i){$s[l].delete(i.url)}}),np=async l=>{let i=await caches.open(l);return{set:async(e,s)=>{await i.put(e,s)},get:async e=>{let s=await i.match(e);return s==null?void 0:s.text()},delete:async e=>{await i.delete(e)}}},lp=async(l,i)=>i==="in-memory-cache"?ap(l):np(l);var cp=async l=>fetch(l).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),dp=async({url:l,name:i,fileExtension:e,cacheStrategy:s,cacheName:n,renewSignal:h})=>{let m=h(),x=new Request(`${l}/${i}.${e}`,{signal:m});return!n||!s||!["in-memory-cache","web-cache-api"].includes(s)?cp(x).then(R=>R.text()):lp(n,s).then(R=>R.get(x).then($=>$||cp(x.clone()).then(Y=>{var K;return Y.status<400&&Y.headers.has("content-type")?(K=R.set)==null?void 0:K.call(R,x,Y.clone()).then(()=>Y.text()):Y.text()})).catch($=>{throw new Error(`Error in caching the Icon ${i}, ${$}`)}))};var hp=j.constructTagName("icon"),Ul={NAME:void 0,SIZE:1};var Oe=class extends q{constructor(){super();this.name=Ul.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=No.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:n,cacheName:h,iconSet:m,cacheStrategy:x}=this.iconProviderContext.value;if(m==="custom-icons"&&n&&s&&this.name){let R=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return dp({url:n,name:this.name,fileExtension:s,cacheName:h,cacheStrategy:x,renewSignal:R}).then($=>{let Y=this.prepareIconElement($);this.handleIconLoadedSuccess(Y)}).catch($=>{this.handleIconLoadedFailure($)})}if(m==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(R=>{this.handleIconLoadedSuccess(R.default())}).catch(R=>{this.handleIconLoadedFailure(R)})}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:Ul.SIZE}updated(e){var s,n,h,m;super.updated(e),e.has("name")&&this.getIconData().catch(x=>{x.name!=="AbortError"&&this.onerror&&this.onerror(x)}),(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=(n=this.iconProviderContext.value)==null?void 0:n.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 L` ${this.iconData} `}};Oe.styles=[...q.styles,...sp],f([It()],Oe.prototype,"iconData",2),f([It()],Oe.prototype,"lengthUnitFromContext",2),f([It()],Oe.prototype,"sizeFromContext",2),f([g({type:String,reflect:!0})],Oe.prototype,"name",2),f([g({type:Number})],Oe.prototype,"size",2),f([g({type:String,attribute:"length-unit"})],Oe.prototype,"lengthUnit",2),f([g({type:String,attribute:"aria-label"})],Oe.prototype,"ariaLabel",2),f([g({type:String,attribute:"aria-labelledby"})],Oe.prototype,"ariaLabelledBy",2),f([It()],Oe.prototype,"abortController",2);var Gl=Oe;Gl.register(hp);var fg=Gl;Vl.register(Qh);var vg=Vl;var{I:xA}=Uh;var nn=l=>l.strings===void 0;var gg={},pp=(l,i=gg)=>l._$AH=i;var nr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$i=l=>(...i)=>({_$litDirective$:l,values:i}),hi=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,e,s){this.t=i,this._$AM=e,this.i=s}_$AS(i,e){return this.update(i,e)}update(i,e){return this.render(...e)}};var zs=(l,i)=>{var s;let e=l._$AN;if(e===void 0)return!1;for(let n of e)(s=n._$AO)==null||s.call(n,i,!1),zs(n,i);return!0},ln=l=>{let i,e;do{if((i=l._$AM)===void 0)break;e=i._$AN,e.delete(l),l=i}while((e==null?void 0:e.size)===0)},mp=l=>{for(let i;i=l._$AM;l=i){let e=i._$AN;if(e===void 0)i._$AN=e=new Set;else if(e.has(l))break;e.add(l),Eg(i)}};function bg(l){this._$AN!==void 0?(ln(this),this._$AM=l,mp(this)):this._$AM=l}function yg(l,i=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(i)if(Array.isArray(s))for(let h=e;h<s.length;h++)zs(s[h],!1),ln(s[h]);else s!=null&&(zs(s,!1),ln(s));else zs(this,l)}var Eg=l=>{var i,e;l.type==nr.CHILD&&((i=l._$AP)!=null||(l._$AP=yg),(e=l._$AQ)!=null||(l._$AQ=bg))},cn=class extends hi{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,e,s){super._$AT(i,e,s),mp(this),this.isConnected=i._$AU}_$AO(i,e=!0){var s,n;i!==this.isConnected&&(this.isConnected=i,i?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(zs(this,i),ln(this))}setValue(i){if(nn(this.t))this.t._$AI(i,this);else{let e=[...this.t._$AH];e[this.i]=i,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var dn=()=>new jl,jl=class{},Hl=new WeakMap,hn=$i(class extends cn{render(l){return W}update(l,[i]){var s;let e=i!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=i,this.ht=(s=l.options)==null?void 0:s.host,this.rt(this.ct=l.element)),W}rt(l){var i;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let e=(i=this.ht)!=null?i:globalThis,s=Hl.get(e);s===void 0&&(s=new WeakMap,Hl.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,i,e;return typeof this.Y=="function"?(i=Hl.get((l=this.ht)!=null?l:globalThis))==null?void 0:i.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 gp=Yv(up());var Yl={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 Tg=[Et,H`
|
512
512
|
:host svg {
|
513
513
|
display: block;
|
514
514
|
}
|
515
|
-
`],
|
515
|
+
`],fp=Tg;var vp=j.constructTagName("animation"),mn={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var Fr=class extends q{constructor(){super(...arguments);this.name=mn.NAME;this.loop=mn.LOOP;this.autoplay=mn.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=dn();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=gp.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&&Yl[this.name]?import(`@momentum-design/animations/dist/lottie${Yl[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 L`<div aria-hidden="true" ${hn(this.containerRef)}></div>`}};Fr.styles=[...q.styles,...fp],f([g({type:String,reflect:!0})],Fr.prototype,"name",2),f([g({type:String,reflect:!0})],Fr.prototype,"loop",2),f([g({type:Boolean,reflect:!0})],Fr.prototype,"autoplay",2),f([g({type:String,attribute:"aria-label"})],Fr.prototype,"ariaLabel",2),f([g({type:String,attribute:"aria-labelledby"})],Fr.prototype,"ariaLabelledBy",2);var Wl=Fr;Wl.register(vp);var xg=Wl;var Ag=H`
|
516
516
|
:host {
|
517
517
|
--mdc-appheader-height: 4rem;
|
518
518
|
}
|
@@ -545,7 +545,7 @@
|
|
545
545
|
:host::part(trailing-section) {
|
546
546
|
justify-content: flex-end;
|
547
547
|
}
|
548
|
-
`,
|
548
|
+
`,bp=[Ag];var un=class extends q{render(){return L` <header part="container">
|
549
549
|
<div part="leading-section">
|
550
550
|
<slot name="leading"></slot>
|
551
551
|
</div>
|
@@ -555,7 +555,7 @@
|
|
555
555
|
<div part="trailing-section">
|
556
556
|
<slot name="trailing"></slot>
|
557
557
|
</div>
|
558
|
-
</header>`}};
|
558
|
+
</header>`}};un.styles=[...q.styles,...bp];var ql=un;var yp=j.constructTagName("appheader");ql.register(yp);var _g=ql;var nt=l=>l!=null?l:W;var Ep=j.constructTagName("avatar"),ue={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Kl=99,Sg="user-regular",Pt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Ro={TYPE:ue.PHOTO,SIZE:Pt[32],ICON_NAME:Sg};var fn=l=>{class i extends l{constructor(){super(...arguments);this.size=Ro.SIZE;this.isTyping=!1}}return f([g({type:String})],i.prototype,"src",2),f([g({type:String})],i.prototype,"initials",2),f([g({type:String})],i.prototype,"presence",2),f([g({type:Number,reflect:!0,attribute:"size"})],i.prototype,"size",2),f([g({type:Number})],i.prototype,"counter",2),f([g({type:Boolean,attribute:"is-typing"})],i.prototype,"isTyping",2),i};var Qt=l=>{class i extends l{}return f([g({type:String,attribute:"icon-name"})],i.prototype,"iconName",2),i};var Ig=[Et,H`
|
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);
|
@@ -682,9 +682,9 @@
|
|
682
682
|
outline: 0.125rem solid;
|
683
683
|
}
|
684
684
|
}
|
685
|
-
`],
|
686
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
687
|
-
`:W}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
|
685
|
+
`],Tp=Ig;var xp=j.constructTagName("presence"),he={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"},te={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Mo={TYPE:he.ACTIVE,SIZE:te.SMALL};var Ap=l=>({[Pt[124]]:te.XX_LARGE,[Pt[88]]:te.X_LARGE,[Pt[72]]:te.LARGE,[Pt[64]]:te.MIDSIZE,[Pt[48]]:te.SMALL,[Pt[32]]:te.X_SMALL,[Pt[24]]:te.XX_SMALL})[l]||te.X_SMALL,_p=l=>({[Pt[124]]:4.75,[Pt[88]]:3,[Pt[72]]:2.5,[Pt[64]]:2.25,[Pt[48]]:1.75,[Pt[32]]:1.25,[Pt[24]]:1})[l]||1.25,Sp=l=>({[Pt[124]]:it.HEADING_XLARGE_MEDIUM,[Pt[88]]:it.HEADING_LARGE_MEDIUM,[Pt[72]]:it.HEADING_MIDSIZE_MEDIUM,[Pt[64]]:it.HEADING_SMALL_MEDIUM,[Pt[48]]:it.HEADING_SMALL_MEDIUM,[Pt[32]]:it.BODY_MIDSIZE_MEDIUM,[Pt[24]]:it.BODY_SMALL_MEDIUM})[l]||it.BODY_MIDSIZE_MEDIUM;var Bs=class extends fn(Qt(q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===ue.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?L`
|
686
|
+
<mdc-presence part="presence" type="${this.presence}" size="${Ap(this.size)}"></mdc-presence>
|
687
|
+
`:W}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 L`
|
688
688
|
<img
|
689
689
|
part="photo"
|
690
690
|
src="${nt(this.src)}"
|
@@ -693,14 +693,14 @@
|
|
693
693
|
@load="${this.handleOnLoad}"
|
694
694
|
@error="${this.handleOnError}"
|
695
695
|
/>
|
696
|
-
`}iconTemplate(){let e=this.iconName||
|
697
|
-
<mdc-icon name="${nt(e)}" length-unit="rem" size="${
|
698
|
-
`}textTemplate(e){return
|
696
|
+
`}iconTemplate(){let e=this.iconName||Ro.ICON_NAME;return L`
|
697
|
+
<mdc-icon name="${nt(e)}" length-unit="rem" size="${_p(this.size)}"></mdc-icon>
|
698
|
+
`}textTemplate(e){return L` <mdc-text type="${Sp(this.size)}" tagname="span"> ${e} </mdc-text> `}generateCounterText(e){return e<0?"0":e>Kl?`${Kl}+`: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?L`<div part="loading-wrapper"><div part="loader"></div></div>`:W}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?W:e===ue.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():W}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return L`
|
699
699
|
<div part="content" aria-hidden="true">
|
700
700
|
${this.getPhotoPlaceHolderContent(e)} ${this.getTemplateBasedOnType(e)} ${this.getLoadingContent()}
|
701
701
|
${this.getPresenceTemplateBasedOnType(e)}
|
702
702
|
</div>
|
703
|
-
`}};
|
703
|
+
`}};Bs.styles=[...q.styles,...Tp],f([It()],Bs.prototype,"isPhotoLoaded",2);var Xl=Bs;var kg=[Et,H`
|
704
704
|
:host {
|
705
705
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
706
706
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -794,7 +794,7 @@
|
|
794
794
|
.mdc-presence-icon__scheduled {
|
795
795
|
color: var(--mdc-presence-scheduled-background-color);
|
796
796
|
}
|
797
|
-
`],
|
797
|
+
`],Ip=kg;var kp=l=>{switch(l){case he.AWAY:return"recents-presence-badge-filled";case he.AWAY_CALLING:return"away-calling-presence-filled";case he.BUSY:return"busy-presence-bold";case he.DND:return"dnd-presence-badge-filled";case he.MEETING:return"camera-filled";case he.ON_CALL:return"handset-filled";case he.ON_DEVICE:return"generic-device-video-badge-filled";case he.ON_MOBILE:return"phone-badge-filled";case he.PAUSE:return"pause-badge-filled";case he.PTO:return"pto-presence-filled";case he.PRESENTING:return"share-screen-badge-filled";case he.QUIET:return"quiet-hours-presence-filled";case he.SCHEDULED:return"meetings-presence-badge-filled";case he.ACTIVE:default:return"active-presence-small-filled"}};var zi=class extends q{constructor(){super(...arguments);this.type=Mo.TYPE;this.size=Mo.SIZE;this.currentIconType=Mo.TYPE}get iconSize(){switch(this.size){case te.MIDSIZE:return 1.16125;case te.LARGE:return 1.30625;case te.X_LARGE:return 1.596875;case te.XX_LARGE:return 2.25;case te.XX_SMALL:case te.X_SMALL:case te.SMALL:default:return this.size=Mo.SIZE,.875}}get icon(){let e=kp(this.type);return e==="active-presence-small-filled"&&(this.type=Mo.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 L`
|
798
798
|
<div class="mdc-presence mdc-presence__${this.size}">
|
799
799
|
<mdc-icon
|
800
800
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -804,7 +804,7 @@
|
|
804
804
|
@error="${this.handleOnError}"
|
805
805
|
></mdc-icon>
|
806
806
|
</div>
|
807
|
-
`}};zi.styles=[...q.styles,...
|
807
|
+
`}};zi.styles=[...q.styles,...Ip],f([g({type:String,reflect:!0})],zi.prototype,"type",2),f([g({type:String,reflect:!0})],zi.prototype,"size",2),f([It()],zi.prototype,"currentIconType",2);var Zl=zi;Zl.register(xp);var Cg=Zl;Xl.register(Ep);var wg=Xl;var st={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var Vi=j.constructTagName("button"),Bt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Us={40:40,32:32,28:28,24:24},pi={64:64,52:52,20:20,...Us},Bi={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Oo={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},ke={VARIANT:Bt.PRIMARY,SIZE:Us[32],COLOR:Bi.DEFAULT,TYPE_INTERNAL:Oo.ICON,TYPE:ko.BUTTON,INVERTED:!1};var Lg=[Et,H`
|
808
808
|
:host {
|
809
809
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
810
810
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -833,7 +833,7 @@
|
|
833
833
|
:host::part(presence) {
|
834
834
|
z-index: 2;
|
835
835
|
}
|
836
|
-
`,...At()],
|
836
|
+
`,...At()],Cp=Lg;var Gs=class extends fn(Qt(de)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=st.BUTTON,this.type=ke.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(Pt).includes(e)?`${e}`:Ro.SIZE.toString())}render(){return L`
|
837
837
|
<div part="overlay" aria-hidden="true"></div>
|
838
838
|
<mdc-avatar
|
839
839
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
@@ -845,7 +845,7 @@
|
|
845
845
|
size="${nt(this.size)}"
|
846
846
|
src="${nt(this.src)}"
|
847
847
|
></mdc-avatar>
|
848
|
-
`}};
|
848
|
+
`}};Gs.styles=[...Cp],f([g({type:String,attribute:"aria-label"})],Gs.prototype,"ariaLabel",2);var Jl=Gs;var wp=j.constructTagName("avatarbutton");Jl.register(wp);var Ng=Jl;var yr=$i(class extends hi{constructor(l){var i;if(super(l),l.type!==nr.ATTRIBUTE||l.name!=="class"||((i=l.strings)==null?void 0:i.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(i=>l[i]).join(" ")+" "}update(l,[i]){var s,n;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 i)i[h]&&!((s=this.nt)!=null&&s.has(h))&&this.st.add(h);return this.render(i)}let e=l.element.classList;for(let h of this.st)h in i||(e.remove(h),this.st.delete(h));for(let h in i){let m=!!i[h];m===this.st.has(h)||(n=this.nt)!=null&&n.has(h)||(m?(e.add(h),this.st.add(h)):(e.remove(h),this.st.delete(h)))}return Ie}});var Lp=j.constructTagName("badge"),Ge={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},vn={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},gn={PRIMARY:"primary",SECONDARY:"secondary"},Hs={SUCCESS:"success",WARNING:"warning",ERROR:"error"},KS={...gn,...Hs},mi={TYPE:Ge.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:gn.PRIMARY,ICON_SIZE:1};var Rg=[Et,H`
|
849
849
|
:host {
|
850
850
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
851
851
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -921,13 +921,13 @@
|
|
921
921
|
outline: none;
|
922
922
|
}
|
923
923
|
}
|
924
|
-
`],
|
924
|
+
`],Np=Rg;var Er=class extends Qt(q){constructor(){super(...arguments);this.variant=mi.VARIANT;this.maxCounter=mi.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,s){return s===void 0||typeof s!="number"||e===0?"":s>e?`${e}+`:e>mi.MAX_COUNTER_LIMIT||s>mi.MAX_COUNTER_LIMIT?`${mi.MAX_COUNTER_LIMIT}+`:s.toString()}getBadgeIcon(e,s){return L`
|
925
925
|
<mdc-icon
|
926
926
|
class="mdc-badge-icon ${yr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${s}`]:!0})}"
|
927
927
|
name="${nt(e)}"
|
928
928
|
size="${mi.ICON_SIZE}"
|
929
929
|
></mdc-icon>
|
930
|
-
`}getBadgeDot(){return
|
930
|
+
`}getBadgeDot(){return L`<div class="mdc-badge-dot ${yr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return L`
|
931
931
|
<mdc-text
|
932
932
|
type="${it.BODY_SMALL_MEDIUM}"
|
933
933
|
tagname="${vt.DIV}"
|
@@ -935,7 +935,7 @@
|
|
935
935
|
>
|
936
936
|
${this.getCounterText(this.maxCounter,this.counter)}
|
937
937
|
</mdc-text>
|
938
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=st.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
938
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=st.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(gn).includes(this.variant)&&(this.variant=mi.VARIANT);let{iconName:e,type:s,variant:n}=this;switch(s){case Ge.ICON:return this.getBadgeIcon(e||"",n);case Ge.COUNTER:return this.getBadgeCounterText();case Ge.SUCCESS:return this.getBadgeIcon(vn.SUCCESS_ICON_NAME,Hs.SUCCESS);case Ge.WARNING:return this.getBadgeIcon(vn.WARNING_ICON_NAME,Hs.WARNING);case Ge.ERROR:return this.getBadgeIcon(vn.ERROR_ICON_NAME,Hs.ERROR);case Ge.DOT:default:return this.type=Ge.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Er.styles=[...q.styles,...Np],f([g({type:String,reflect:!0})],Er.prototype,"type",2),f([g({type:String,reflect:!0})],Er.prototype,"variant",2),f([g({type:Number})],Er.prototype,"counter",2),f([g({type:Number,attribute:"max-counter",reflect:!0})],Er.prototype,"maxCounter",2),f([g({type:Boolean})],Er.prototype,"overlay",2),f([g({type:String,attribute:"aria-label"})],Er.prototype,"ariaLabel",2);var Ql=Er;Ql.register(Lp);var Mg=Ql;var Og=H`
|
939
939
|
:host {
|
940
940
|
display: block;
|
941
941
|
height: 100%;
|
@@ -944,7 +944,7 @@
|
|
944
944
|
height: 100%;
|
945
945
|
width: 100%;
|
946
946
|
}
|
947
|
-
`,
|
947
|
+
`,Rp=[Og];var Mp=j.constructTagName("brandvisual"),Op={NAME:void 0};var Po=class extends q{constructor(){super(...arguments);this.name=Op.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 L` ${this.brandVisualData} `}};Po.styles=[...q.styles,...Rp],f([It()],Po.prototype,"brandVisualData",2),f([g({type:String,reflect:!0})],Po.prototype,"name",2);var tc=Po;tc.register(Mp);var Pg=tc;var Dg=H`
|
948
948
|
:host {
|
949
949
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
950
950
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -965,7 +965,7 @@
|
|
965
965
|
:host([size='large']) {
|
966
966
|
height: var(--mdc-bullet-size-large);
|
967
967
|
}
|
968
|
-
`,
|
968
|
+
`,Pp=[Dg];var Dp=j.constructTagName("bullet"),Fp={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var js=class extends q{constructor(){super(...arguments);this.size=Fp.SMALL}};js.styles=[...q.styles,...Pp],f([g({type:String,reflect:!0})],js.prototype,"size",2);var ec=js;ec.register(Dp);var Fg=ec;var bn=l=>{class i extends l{constructor(){super(...arguments);this.variant=ke.VARIANT;this.color=ke.COLOR;this.typeInternal=ke.TYPE_INTERNAL}setVariant(n){this.setAttribute("variant",Object.values(Bt).includes(n)?n:ke.VARIANT)}setColor(n){!Object.values(Bi).includes(n)||this.variant===Bt.TERTIARY?this.setAttribute("color",`${ke.COLOR}`):this.setAttribute("color",n)}setSize(n){let m=this.typeInternal===Oo.ICON?Object.values(pi).includes(n)&&!(n===pi[20]&&this.variant!==Bt.TERTIARY):Object.values(Us).includes(n);this.setAttribute("size",m?`${n}`:`${ke.SIZE}`)}inferButtonType(){var h,m;let n=(m=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"))==null?void 0:m.assignedNodes().filter(x=>{var R;return x.nodeType!==Node.TEXT_NODE||((R=x.textContent)==null?void 0:R.trim())}).length;n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Oo.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!n&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Oo.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Oo.PILL,this.setAttribute("data-btn-type","pill"))}}return f([g({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),f([g({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),f([g({type:String})],i.prototype,"variant",2),f([g({type:String})],i.prototype,"color",2),f([It()],i.prototype,"typeInternal",2),i};var $g=H`
|
969
969
|
:host {
|
970
970
|
background-color: transparent;
|
971
971
|
border-radius: 1.25rem;
|
@@ -1213,19 +1213,19 @@
|
|
1213
1213
|
:host::part(postfix-icon) {
|
1214
1214
|
flex-shrink: 0;
|
1215
1215
|
}
|
1216
|
-
|
1217
|
-
${this.prefixFilledIconName?
|
1216
|
+
`,$p=[$g];var Ui=l=>{let i=l.split("-"),e=["bold","filled","regular","light"];return i.filter(s=>!e.includes(s)).join("-")};var $r=class extends bn(de){constructor(){super(...arguments);this.size=ke.SIZE;this.inverted=ke.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=`${Ui(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Ui(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return L`
|
1217
|
+
${this.prefixFilledIconName?L` <mdc-icon
|
1218
1218
|
name="${this.prefixFilledIconName}"
|
1219
1219
|
part="prefix-icon"
|
1220
1220
|
length-unit="rem"
|
1221
1221
|
></mdc-icon>`:""}
|
1222
1222
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1223
|
-
${this.postfixFilledIconName?
|
1223
|
+
${this.postfixFilledIconName?L` <mdc-icon
|
1224
1224
|
name="${this.postfixFilledIconName}"
|
1225
1225
|
part="postfix-icon"
|
1226
1226
|
length-unit="rem"
|
1227
1227
|
></mdc-icon>`:""}
|
1228
|
-
`}};$r.styles=[...
|
1228
|
+
`}};$r.styles=[...de.styles,...$p],f([g({type:Number})],$r.prototype,"size",2),f([g({type:Boolean,reflect:!0})],$r.prototype,"inverted",2),f([g({type:String,reflect:!0})],$r.prototype,"role",2),f([It()],$r.prototype,"prefixFilledIconName",2),f([It()],$r.prototype,"postfixFilledIconName",2);var Gi=$r;Gi.register(Vi);var zg=Gi;var zp=j.constructTagName("buttongroup"),Vg={40:40,32:32,28:28,24:24},Bg={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ug={PRIMARY:"primary",SECONDARY:"secondary"},yn={SIZE:Vg[28],VARIANT:Ug.PRIMARY,ORIENTATION:Bg.HORIZONTAL};var Gg=H`
|
1229
1229
|
:host {
|
1230
1230
|
--mdc-buttongroup-border-radius: 1.25rem;
|
1231
1231
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1302,7 +1302,7 @@
|
|
1302
1302
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
1303
1303
|
width: 2.5rem;
|
1304
1304
|
}
|
1305
|
-
`,
|
1305
|
+
`,Vp=[Et,Gg];var zr=class extends q{constructor(){super(...arguments);this.orientation=yn.ORIENTATION;this.variant=yn.VARIANT;this.size=yn.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 L`<slot @slotchange=${this.handleSlotChange}></slot>`}};zr.styles=[...q.styles,...Vp],f([g({type:String,reflect:!0})],zr.prototype,"orientation",2),f([g({type:String,reflect:!0})],zr.prototype,"variant",2),f([g({type:Number,reflect:!0})],zr.prototype,"size",2),f([g({type:Boolean,reflect:!0})],zr.prototype,"compact",2),f([Ft({selector:"mdc-button"})],zr.prototype,"buttons",2);var rc=zr;rc.register(zp);var Hg=rc;var Bp=j.constructTagName("linksimple"),Do={INLINE:!1,INVERTED:!1};var jg=[Et,H`
|
1306
1306
|
:host {
|
1307
1307
|
--mdc-link-border-radius: 0.25rem;
|
1308
1308
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1368,33 +1368,33 @@
|
|
1368
1368
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
1369
1369
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1370
1370
|
}
|
1371
|
-
`,...At()]
|
1372
|
-
${this.prefixIcon?
|
1371
|
+
`,...At()],Up=jg;var Vr=class extends $t(Ue(q)){constructor(){super(...arguments);this.inline=Do.INLINE;this.inverted=Do.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 L` <slot></slot> `}};Vr.styles=[...q.styles,...Up],f([g({type:Boolean,reflect:!0})],Vr.prototype,"inline",2),f([g({type:Boolean,reflect:!0})],Vr.prototype,"inverted",2),f([g({type:String,reflect:!0})],Vr.prototype,"href",2),f([g({type:String,reflect:!0})],Vr.prototype,"target",2),f([g({type:String,reflect:!0})],Vr.prototype,"rel",2);var ui=Vr;var Fo=class extends bn(ui){constructor(){super(...arguments);this.size=ke.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 L`
|
1372
|
+
${this.prefixIcon?L` <mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1373
1373
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1374
|
-
${this.postfixIcon?
|
1375
|
-
`}};
|
1374
|
+
${this.postfixIcon?L` <mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1375
|
+
`}};Fo.styles=[...Gi.styles],f([g({type:Number,reflect:!0})],Fo.prototype,"size",2),f([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],Fo.prototype,"softDisabled",2);var ic=Fo;var Gp=j.constructTagName("buttonlink");ic.register(Gp);var Yg=ic;var En=j.constructTagName("link"),Tn={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},xn={LARGE:1,MIDSIZE:.875,SMALL:.75},Hp={LINK_SIZE:Tn.LARGE};var jp=j.constructTagName("card"),oc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Wg={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ee={VARIANT:oc.BORDER,ORIENTATION:Wg.VERTICAL,TITLE_TYPE:it.HEADING_SMALL_BOLD,SUBTITLE_TYPE:it.BODY_MIDSIZE_MEDIUM,TAGNAME:vt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:En,BUTTON:Vi};var An=l=>{class i extends l{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=ee.VARIANT;this.orientation=ee.ORIENTATION;this.titleTagName=ee.TAGNAME;this.subtitleTagName=ee.TAGNAME}renderImage(){return this.imageSrc?L`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:W}renderIcon(){return this.iconName?L`<mdc-icon
|
1376
1376
|
part="icon"
|
1377
|
-
size="${
|
1378
|
-
length-unit="${
|
1377
|
+
size="${ee.ICON_SIZE}"
|
1378
|
+
length-unit="${ee.ICON_LENGTH_UNIT}"
|
1379
1379
|
name="${this.iconName}"
|
1380
|
-
></mdc-icon>`:W}renderTitle(){return
|
1381
|
-
<mdc-text part="title" type="${
|
1382
|
-
${this.subtitle?
|
1380
|
+
></mdc-icon>`:W}renderTitle(){return L`<div part="title-container">
|
1381
|
+
<mdc-text part="title" type="${ee.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
|
1382
|
+
${this.subtitle?L`<mdc-text part="subtitle" type="${ee.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
1383
1383
|
>${this.subtitle}</mdc-text
|
1384
1384
|
>`:W}
|
1385
|
-
</div>`}}return
|
1385
|
+
</div>`}}return f([g({type:String,attribute:"card-title",reflect:!0})],i.prototype,"cardTitle",2),f([g({type:String,reflect:!0})],i.prototype,"subtitle",2),f([g({type:String,attribute:"image-src",reflect:!0})],i.prototype,"imageSrc",2),f([g({type:String,attribute:"image-alt",reflect:!0})],i.prototype,"imageAlt",2),f([g({type:String,reflect:!0})],i.prototype,"variant",2),f([g({type:String,reflect:!0})],i.prototype,"orientation",2),f([g({type:String,attribute:"title-tag-name",reflect:!0})],i.prototype,"titleTagName",2),f([g({type:String,attribute:"subtitle-tag-name",reflect:!0})],i.prototype,"subtitleTagName",2),f([g({type:String,attribute:"icon-name",reflect:!0})],i.prototype,"iconName",2),i};var _n=l=>{class i extends l{updateFooterButtonColors(s){let n=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];n==null||n.forEach(h=>{s===oc.PROMOTIONAL?h.setAttribute("color",Bi.PROMOTIONAL):h.setAttribute("color",Bi.DEFAULT)})}handleFooterSlot(s,n){var m,x,R;let h=[];s===ee.LINK&&((m=this.footerLink)!=null&&m.length)?h=this.footerLink:s===ee.BUTTON&&n===Bt.PRIMARY&&((x=this.footerButtonPrimary)!=null&&x.length)?h=this.footerButtonPrimary:s===ee.BUTTON&&n===Bt.SECONDARY&&((R=this.footerButtonSecondary)!=null&&R.length)&&(h=this.footerButtonSecondary);for(let $=1;$<h.length;$+=1)h[$].remove();h.forEach($=>{$.matches(s)||$.remove(),n&&$.setAttribute("variant",n)})}renderFooter(){return L` <slot name="footer">
|
1386
1386
|
<div part="footer">
|
1387
|
-
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(
|
1387
|
+
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(ee.LINK)}></slot>
|
1388
1388
|
<slot
|
1389
1389
|
name="footer-button-secondary"
|
1390
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1390
|
+
@slotchange=${()=>this.handleFooterSlot(ee.BUTTON,Bt.SECONDARY)}
|
1391
1391
|
></slot>
|
1392
1392
|
<slot
|
1393
1393
|
name="footer-button-primary"
|
1394
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1394
|
+
@slotchange=${()=>this.handleFooterSlot(ee.BUTTON,Bt.PRIMARY)}
|
1395
1395
|
></slot>
|
1396
1396
|
</div>
|
1397
|
-
</slot>`}}return
|
1397
|
+
</slot>`}}return f([Ft({slot:"footer-link"})],i.prototype,"footerLink",2),f([Ft({slot:"footer-button-primary"})],i.prototype,"footerButtonPrimary",2),f([Ft({slot:"footer-button-secondary"})],i.prototype,"footerButtonSecondary",2),i};var qg=H`
|
1398
1398
|
:host {
|
1399
1399
|
align-items: flex-start;
|
1400
1400
|
border-radius: 0.5rem;
|
@@ -1484,10 +1484,10 @@
|
|
1484
1484
|
:host::part(text) {
|
1485
1485
|
margin: unset;
|
1486
1486
|
}
|
1487
|
-
`,
|
1487
|
+
`,Yp=[Et,qg];var Ys=class extends An(_n(q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(s=>{!s.matches(ee.BUTTON)&&s.getAttribute("data-btn-type")!=="icon"?s.remove():(s.setAttribute("variant",Bt.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?L`<div part="header">
|
1488
1488
|
${this.renderIcon()} ${this.renderTitle()}
|
1489
1489
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
1490
|
-
</div>`:W}render(){return
|
1490
|
+
</div>`:W}render(){return L`
|
1491
1491
|
${this.renderImage()}
|
1492
1492
|
<div part="body">
|
1493
1493
|
${this.renderHeader()}
|
@@ -1496,7 +1496,7 @@
|
|
1496
1496
|
<slot name="after-body"></slot>
|
1497
1497
|
${this.renderFooter()}
|
1498
1498
|
</div>
|
1499
|
-
`}};
|
1499
|
+
`}};Ys.styles=[...q.styles,...Yp],f([Ft({slot:"icon-button"})],Ys.prototype,"iconButtons",2);var lr=Ys;lr.register(jp);var Kg=lr;var Xg=H`
|
1500
1500
|
:host {
|
1501
1501
|
cursor: pointer;
|
1502
1502
|
user-select: none;
|
@@ -1518,7 +1518,7 @@
|
|
1518
1518
|
:host([disabled])::part(image) {
|
1519
1519
|
opacity: 0.5;
|
1520
1520
|
}
|
1521
|
-
`,
|
1521
|
+
`,Wp=[Xg,...At()];var Sn=class extends An(de){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?L`<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>`:W}render(){return L`
|
1522
1522
|
${this.renderImage()}
|
1523
1523
|
<div part="body">
|
1524
1524
|
${this.renderHeader()}
|
@@ -1526,7 +1526,7 @@
|
|
1526
1526
|
<slot name="body"></slot>
|
1527
1527
|
<slot name="after-body"></slot>
|
1528
1528
|
</div>
|
1529
|
-
`}};
|
1529
|
+
`}};Sn.styles=[...lr.styles,...Wp];var sc=Sn;var qp=j.constructTagName("cardbutton");sc.register(qp);var Zg=sc;var Kp=j.constructTagName("cardcheckbox"),ac={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},In={CHECK:"check",CHECKBOX:"checkbox"},kn={SELECTION_TYPE:In.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var Jg=H`
|
1530
1530
|
:host {
|
1531
1531
|
cursor: pointer;
|
1532
1532
|
user-select: none;
|
@@ -1583,16 +1583,16 @@
|
|
1583
1583
|
:host([disabled])::part(check-icon) {
|
1584
1584
|
color: var(--mds-color-theme-text-primary-disabled);
|
1585
1585
|
}
|
1586
|
-
`,
|
1586
|
+
`,Xp=[Jg,...At()];var $o=class extends $t(Ue(lr)){constructor(){super();this.checked=!1;this.selectionType=kn.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=st.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===Q.ENTER&&this.toggleChecked()}toggleOnSpace(e){e.key===Q.SPACE&&this.toggleChecked()}renderSelection(){let e=this.checked?ac.CHECKED:ac.DEFAULT;switch(this.selectionType){case In.CHECK:return L`<mdc-icon
|
1587
1587
|
part="check check-icon"
|
1588
|
-
size="${
|
1589
|
-
length-unit="${
|
1588
|
+
size="${kn.ICON_SIZE}"
|
1589
|
+
length-unit="${kn.ICON_LENGTH_UNIT}"
|
1590
1590
|
name="${e}"
|
1591
|
-
></mdc-icon>`;case
|
1591
|
+
></mdc-icon>`;case In.CHECKBOX:return L`<mdc-staticcheckbox
|
1592
1592
|
part="check"
|
1593
1593
|
?checked="${this.checked}"
|
1594
1594
|
?disabled="${this.disabled}"
|
1595
|
-
></mdc-staticcheckbox>`;default:return W}}renderHeader(){return this.cardTitle?
|
1595
|
+
></mdc-staticcheckbox>`;default:return W}}renderHeader(){return this.cardTitle?L`<div part="header">${this.renderIcon()} ${this.renderTitle()} ${this.renderSelection()}</div>`:W}render(){return L`
|
1596
1596
|
${this.renderImage()}
|
1597
1597
|
<div part="body">
|
1598
1598
|
${this.renderHeader()}
|
@@ -1600,7 +1600,7 @@
|
|
1600
1600
|
<slot name="body"></slot>
|
1601
1601
|
<slot name="after-body"></slot>
|
1602
1602
|
</div>
|
1603
|
-
`}}
|
1603
|
+
`}};$o.styles=[...lr.styles,...Xp],f([g({type:Boolean,reflect:!0})],$o.prototype,"checked",2),f([g({type:String,attribute:"selection-type",reflect:!0})],$o.prototype,"selectionType",2);var nc=$o;var Qg=[H`
|
1604
1604
|
:host {
|
1605
1605
|
margin: 0.125rem 0;
|
1606
1606
|
border-radius: 0.125rem;
|
@@ -1656,15 +1656,15 @@
|
|
1656
1656
|
border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
|
1657
1657
|
}
|
1658
1658
|
}
|
1659
|
-
`],
|
1659
|
+
`],Zp=Qg;var Jp=j.constructTagName("checkbox"),Cn={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Qp=j.constructTagName("staticcheckbox");var zo=class extends $t(q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let e=this.checked||this.indeterminate?L`
|
1660
1660
|
<mdc-icon
|
1661
1661
|
class="icon"
|
1662
|
-
name="${this.indeterminate?
|
1662
|
+
name="${this.indeterminate?Cn.INDETERMINATE:Cn.CHECKED}"
|
1663
1663
|
size="1"
|
1664
1664
|
length-unit="rem"
|
1665
1665
|
></mdc-icon>
|
1666
|
-
`:W;return
|
1667
|
-
<div part="icon-container">${e}</div>`}};
|
1666
|
+
`:W;return L`<slot></slot>
|
1667
|
+
<div part="icon-container">${e}</div>`}};zo.styles=[...q.styles,...Zp],f([g({type:Boolean,reflect:!0})],zo.prototype,"checked",2),f([g({type:Boolean,reflect:!0})],zo.prototype,"indeterminate",2);var lc=zo;lc.register(Qp);var tb=lc;nc.register(Kp);var eb=nc;var rb=H`
|
1668
1668
|
:host {
|
1669
1669
|
cursor: pointer;
|
1670
1670
|
user-select: none;
|
@@ -1717,10 +1717,10 @@
|
|
1717
1717
|
:host([disabled])::part(image) {
|
1718
1718
|
opacity: 0.5;
|
1719
1719
|
}
|
1720
|
-
`,
|
1720
|
+
`,tm=[rb,...At()];var Vo=class extends $t(Ue(lr)){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=st.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 n=this.getAllCardsWithinSameGroup().filter(m=>!m.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let m=(h+1)%n.length;this.updateCardRadio(n,m)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let m=(h-1+n.length)%n.length;this.updateCardRadio(n,m)}e.key===Q.ENTER&&this.toggleChecked()}toggleOnSpace(e){e.key===Q.SPACE&&this.toggleChecked()}renderHeader(){return this.cardTitle?L`<div part="header">
|
1721
1721
|
${this.renderIcon()} ${this.renderTitle()}
|
1722
1722
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
1723
|
-
</div>`:W}render(){return
|
1723
|
+
</div>`:W}render(){return L`
|
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
|
+
`}};Vo.styles=[...lr.styles,...tm],f([g({type:Boolean,reflect:!0})],Vo.prototype,"checked",2),f([g({type:String})],Vo.prototype,"name",2);var cc=Vo;var wn=j.constructTagName("cardradio");var ib=[H`
|
1732
1732
|
:host {
|
1733
1733
|
display: block;
|
1734
1734
|
position: relative;
|
@@ -1811,8 +1811,8 @@
|
|
1811
1811
|
:host([readonly][checked]) .icon:after {
|
1812
1812
|
background-color: var(--mdc-staticradio-text-disabled-color);
|
1813
1813
|
}
|
1814
|
-
`],
|
1815
|
-
<span part="radio-icon" class="icon"></span>`}};zo.styles=[...q.styles,...Zp],v([g({type:Boolean,reflect:!0})],zo.prototype,"checked",2),v([g({type:Boolean,reflect:!0})],zo.prototype,"readonly",2);var ac=zo;var Jp=j.constructTagName("staticradio");ac.register(Jp);var Zg=ac;sc.register(_n);var Jg=sc;var Tr=Math.min,ue=Math.max,Gs=Math.round,js=Math.floor,cr=l=>({x:l,y:l}),Qg={left:"right",right:"left",bottom:"top",top:"bottom"},tb={start:"end",end:"start"};function In(l,i,e){return ue(l,Tr(i,e))}function Gi(l,i){return typeof l=="function"?l(i):l}function Br(l){return l.split("-")[0]}function ji(l){return l.split("-")[1]}function nc(l){return l==="x"?"y":"x"}function kn(l){return l==="y"?"height":"width"}function fi(l){return["top","bottom"].includes(Br(l))?"y":"x"}function Cn(l){return nc(fi(l))}function Qp(l,i,e){e===void 0&&(e=!1);let s=ji(l),n=Cn(l),h=kn(n),m=n==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[h]>i.floating[h]&&(m=Hs(m)),[m,Hs(m)]}function tm(l){let i=Hs(l);return[Sn(l),i,Sn(i)]}function Sn(l){return l.replace(/start|end/g,i=>tb[i])}function eb(l,i,e){let s=["left","right"],n=["right","left"],h=["top","bottom"],m=["bottom","top"];switch(l){case"top":case"bottom":return e?i?n:s:i?s:n;case"left":case"right":return i?h:m;default:return[]}}function em(l,i,e,s){let n=ji(l),h=eb(Br(l),e==="start",s);return n&&(h=h.map(m=>m+"-"+n),i&&(h=h.concat(h.map(Sn)))),h}function Hs(l){return l.replace(/left|right|bottom|top/g,i=>Qg[i])}function rb(l){return{top:0,right:0,bottom:0,left:0,...l}}function lc(l){return typeof l!="number"?rb(l):{top:l,right:l,bottom:l,left:l}}function Yi(l){let{x:i,y:e,width:s,height:n}=l;return{width:s,height:n,top:e,left:i,right:i+s,bottom:e+n,x:i,y:e}}function rm(l,i,e){let{reference:s,floating:n}=l,h=fi(i),m=Cn(i),x=kn(m),R=Br(i),$=h==="y",Y=s.x+s.width/2-n.width/2,K=s.y+s.height/2-n.height/2,at=s[x]/2-n[x]/2,J;switch(R){case"top":J={x:Y,y:s.y-n.height};break;case"bottom":J={x:Y,y:s.y+s.height};break;case"right":J={x:s.x+s.width,y:K};break;case"left":J={x:s.x-n.width,y:K};break;default:J={x:s.x,y:s.y}}switch(ji(i)){case"start":J[m]-=at*(e&&$?-1:1);break;case"end":J[m]+=at*(e&&$?-1:1);break}return J}var im=async(l,i,e)=>{let{placement:s="bottom",strategy:n="absolute",middleware:h=[],platform:m}=e,x=h.filter(Boolean),R=await(m.isRTL==null?void 0:m.isRTL(i)),$=await m.getElementRects({reference:l,floating:i,strategy:n}),{x:Y,y:K}=rm($,s,R),at=s,J={},et=0;for(let ht=0;ht<x.length;ht++){let{name:Tt,fn:yt}=x[ht],{x:xt,y:kt,data:Ht,reset:Ot}=await yt({x:Y,y:K,initialPlacement:s,placement:at,strategy:n,middlewareData:J,rects:$,platform:m,elements:{reference:l,floating:i}});Y=xt!=null?xt:Y,K=kt!=null?kt:K,J={...J,[Tt]:{...J[Tt],...Ht}},Ot&&et<=50&&(et++,typeof Ot=="object"&&(Ot.placement&&(at=Ot.placement),Ot.rects&&($=Ot.rects===!0?await m.getElementRects({reference:l,floating:i,strategy:n}):Ot.rects),{x:Y,y:K}=rm($,at,R)),ht=-1)}return{x:Y,y:K,placement:at,strategy:n,middlewareData:J}};async function wn(l,i){var e;i===void 0&&(i={});let{x:s,y:n,platform:h,rects:m,elements:x,strategy:R}=l,{boundary:$="clippingAncestors",rootBoundary:Y="viewport",elementContext:K="floating",altBoundary:at=!1,padding:J=0}=Gi(i,l),et=lc(J),Tt=x[at?K==="floating"?"reference":"floating":K],yt=Yi(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(Tt)))==null||e?Tt:Tt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(x.floating)),boundary:$,rootBoundary:Y,strategy:R})),xt=K==="floating"?{x:s,y:n,width:m.floating.width,height:m.floating.height}:m.reference,kt=await(h.getOffsetParent==null?void 0:h.getOffsetParent(x.floating)),Ht=await(h.isElement==null?void 0:h.isElement(kt))?await(h.getScale==null?void 0:h.getScale(kt))||{x:1,y:1}:{x:1,y:1},Ot=Yi(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:x,rect:xt,offsetParent:kt,strategy:R}):xt);return{top:(yt.top-Ot.top+et.top)/Ht.y,bottom:(Ot.bottom-yt.bottom+et.bottom)/Ht.y,left:(yt.left-Ot.left+et.left)/Ht.x,right:(Ot.right-yt.right+et.right)/Ht.x}}var om=l=>({name:"arrow",options:l,async fn(i){let{x:e,y:s,placement:n,rects:h,platform:m,elements:x,middlewareData:R}=i,{element:$,padding:Y=0}=Gi(l,i)||{};if($==null)return{};let K=lc(Y),at={x:e,y:s},J=Cn(n),et=kn(J),ht=await m.getDimensions($),Tt=J==="y",yt=Tt?"top":"left",xt=Tt?"bottom":"right",kt=Tt?"clientHeight":"clientWidth",Ht=h.reference[et]+h.reference[J]-at[J]-h.floating[et],Ot=at[J]-h.reference[J],Dt=await(m.getOffsetParent==null?void 0:m.getOffsetParent($)),ye=Dt?Dt[kt]:0;(!ye||!await(m.isElement==null?void 0:m.isElement(Dt)))&&(ye=x.floating[kt]||h.floating[et]);let ee=Ht/2-Ot/2,Qe=ye/2-ht[et]/2-1,Ne=Tr(K[yt],Qe),Fe=Tr(K[xt],Qe),tr=Ne,er=ye-ht[et]-Fe,_t=ye/2-ht[et]/2+ee,he=In(tr,_t,er),$e=!R.arrow&&ji(n)!=null&&_t!==he&&h.reference[et]/2-(_t<tr?Ne:Fe)-ht[et]/2<0,rr=$e?_t<tr?_t-tr:_t-er:0;return{[J]:at[J]+rr,data:{[J]:he,centerOffset:_t-he-rr,...$e&&{alignmentOffset:rr}},reset:$e}}});var sm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var e,s;let{placement:n,middlewareData:h,rects:m,initialPlacement:x,platform:R,elements:$}=i,{mainAxis:Y=!0,crossAxis:K=!0,fallbackPlacements:at,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:ht=!0,...Tt}=Gi(l,i);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let yt=Br(n),xt=fi(x),kt=Br(x)===x,Ht=await(R.isRTL==null?void 0:R.isRTL($.floating)),Ot=at||(kt||!ht?[Hs(x)]:tm(x)),Dt=et!=="none";!at&&Dt&&Ot.push(...em(x,ht,et,Ht));let ye=[x,...Ot],ee=await wn(i,Tt),Qe=[],Ne=((s=h.flip)==null?void 0:s.overflows)||[];if(Y&&Qe.push(ee[yt]),K){let _t=Qp(n,m,Ht);Qe.push(ee[_t[0]],ee[_t[1]])}if(Ne=[...Ne,{placement:n,overflows:Qe}],!Qe.every(_t=>_t<=0)){var Fe,tr;let _t=(((Fe=h.flip)==null?void 0:Fe.index)||0)+1,he=ye[_t];if(he)return{data:{index:_t,overflows:Ne},reset:{placement:he}};let $e=(tr=Ne.filter(rr=>rr.overflows[0]<=0).sort((rr,_r)=>rr.overflows[1]-_r.overflows[1])[0])==null?void 0:tr.placement;if(!$e)switch(J){case"bestFit":{var er;let rr=(er=Ne.filter(_r=>{if(Dt){let ze=fi(_r.placement);return ze===xt||ze==="y"}return!0}).map(_r=>[_r.placement,_r.overflows.filter(ze=>ze>0).reduce((ze,ga)=>ze+ga,0)]).sort((_r,ze)=>_r[1]-ze[1])[0])==null?void 0:er[0];rr&&($e=rr);break}case"initialPlacement":$e=x;break}if(n!==$e)return{reset:{placement:$e}}}return{}}}};async function ib(l,i){let{placement:e,platform:s,elements:n}=l,h=await(s.isRTL==null?void 0:s.isRTL(n.floating)),m=Br(e),x=ji(e),R=fi(e)==="y",$=["left","top"].includes(m)?-1:1,Y=h&&R?-1:1,K=Gi(i,l),{mainAxis:at,crossAxis:J,alignmentAxis:et}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return x&&typeof et=="number"&&(J=x==="end"?et*-1:et),R?{x:J*Y,y:at*$}:{x:at*$,y:J*Y}}var am=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var e,s;let{x:n,y:h,placement:m,middlewareData:x}=i,R=await ib(i,l);return m===((e=x.offset)==null?void 0:e.placement)&&(s=x.arrow)!=null&&s.alignmentOffset?{}:{x:n+R.x,y:h+R.y,data:{...R,placement:m}}}}},nm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){let{x:e,y:s,placement:n}=i,{mainAxis:h=!0,crossAxis:m=!1,limiter:x={fn:Tt=>{let{x:yt,y:xt}=Tt;return{x:yt,y:xt}}},...R}=Gi(l,i),$={x:e,y:s},Y=await wn(i,R),K=fi(Br(n)),at=nc(K),J=$[at],et=$[K];if(h){let Tt=at==="y"?"top":"left",yt=at==="y"?"bottom":"right",xt=J+Y[Tt],kt=J-Y[yt];J=In(xt,J,kt)}if(m){let Tt=K==="y"?"top":"left",yt=K==="y"?"bottom":"right",xt=et+Y[Tt],kt=et-Y[yt];et=In(xt,et,kt)}let ht=x.fn({...i,[at]:J,[K]:et});return{...ht,data:{x:ht.x-e,y:ht.y-s,enabled:{[at]:h,[K]:m}}}}}};var lm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var e,s;let{placement:n,rects:h,platform:m,elements:x}=i,{apply:R=()=>{},...$}=Gi(l,i),Y=await wn(i,$),K=Br(n),at=ji(n),J=fi(n)==="y",{width:et,height:ht}=h.floating,Tt,yt;K==="top"||K==="bottom"?(Tt=K,yt=at===(await(m.isRTL==null?void 0:m.isRTL(x.floating))?"start":"end")?"left":"right"):(yt=K,Tt=at==="end"?"top":"bottom");let xt=ht-Y.top-Y.bottom,kt=et-Y.left-Y.right,Ht=Tr(ht-Y[Tt],xt),Ot=Tr(et-Y[yt],kt),Dt=!i.middlewareData.shift,ye=Ht,ee=Ot;if((e=i.middlewareData.shift)!=null&&e.enabled.x&&(ee=kt),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(ye=xt),Dt&&!at){let Ne=ue(Y.left,0),Fe=ue(Y.right,0),tr=ue(Y.top,0),er=ue(Y.bottom,0);J?ee=et-2*(Ne!==0||Fe!==0?Ne+Fe:ue(Y.left,Y.right)):ye=ht-2*(tr!==0||er!==0?tr+er:ue(Y.top,Y.bottom))}await R({...i,availableWidth:ee,availableHeight:ye});let Qe=await m.getDimensions(x.floating);return et!==Qe.width||ht!==Qe.height?{reset:{rects:!0}}:{}}}};function Ln(){return typeof window<"u"}function Wi(l){return dm(l)?(l.nodeName||"").toLowerCase():"#document"}function Ce(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function dr(l){var i;return(i=(dm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function dm(l){return Ln()?l instanceof Node||l instanceof Ce(l).Node:!1}function Ge(l){return Ln()?l instanceof Element||l instanceof Ce(l).Element:!1}function hr(l){return Ln()?l instanceof HTMLElement||l instanceof Ce(l).HTMLElement:!1}function cm(l){return!Ln()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Ce(l).ShadowRoot}function Bo(l){let{overflow:i,overflowX:e,overflowY:s,display:n}=je(l);return/auto|scroll|overlay|hidden|clip/.test(i+s+e)&&!["inline","contents"].includes(n)}function hm(l){return["table","td","th"].includes(Wi(l))}function Ys(l){return[":popover-open",":modal"].some(i=>{try{return l.matches(i)}catch{return!1}})}function Nn(l){let i=Rn(),e=Ge(l)?je(l):l;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!i&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!i&&(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 pm(l){let i=Ur(l);for(;hr(i)&&!qi(i);){if(Nn(i))return i;if(Ys(i))return null;i=Ur(i)}return null}function Rn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qi(l){return["html","body","#document"].includes(Wi(l))}function je(l){return Ce(l).getComputedStyle(l)}function Ws(l){return Ge(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Ur(l){if(Wi(l)==="html")return l;let i=l.assignedSlot||l.parentNode||cm(l)&&l.host||dr(l);return cm(i)?i.host:i}function mm(l){let i=Ur(l);return qi(i)?l.ownerDocument?l.ownerDocument.body:l.body:hr(i)&&Bo(i)?i:mm(i)}function Vo(l,i,e){var s;i===void 0&&(i=[]),e===void 0&&(e=!0);let n=mm(l),h=n===((s=l.ownerDocument)==null?void 0:s.body),m=Ce(n);if(h){let x=Mn(m);return i.concat(m,m.visualViewport||[],Bo(n)?n:[],x&&e?Vo(x):[])}return i.concat(n,Vo(n,[],e))}function Mn(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function vm(l){let i=je(l),e=parseFloat(i.width)||0,s=parseFloat(i.height)||0,n=hr(l),h=n?l.offsetWidth:e,m=n?l.offsetHeight:s,x=Gs(e)!==h||Gs(s)!==m;return x&&(e=h,s=m),{width:e,height:s,$:x}}function dc(l){return Ge(l)?l:l.contextElement}function Uo(l){let i=dc(l);if(!hr(i))return cr(1);let e=i.getBoundingClientRect(),{width:s,height:n,$:h}=vm(i),m=(h?Gs(e.width):e.width)/s,x=(h?Gs(e.height):e.height)/n;return(!m||!Number.isFinite(m))&&(m=1),(!x||!Number.isFinite(x))&&(x=1),{x:m,y:x}}var ob=cr(0);function gm(l){let i=Ce(l);return!Rn()||!i.visualViewport?ob:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function sb(l,i,e){return i===void 0&&(i=!1),!e||i&&e!==Ce(l)?!1:i}function Ki(l,i,e,s){i===void 0&&(i=!1),e===void 0&&(e=!1);let n=l.getBoundingClientRect(),h=dc(l),m=cr(1);i&&(s?Ge(s)&&(m=Uo(s)):m=Uo(l));let x=sb(h,e,s)?gm(h):cr(0),R=(n.left+x.x)/m.x,$=(n.top+x.y)/m.y,Y=n.width/m.x,K=n.height/m.y;if(h){let at=Ce(h),J=s&&Ge(s)?Ce(s):s,et=at,ht=Mn(et);for(;ht&&s&&J!==et;){let Tt=Uo(ht),yt=ht.getBoundingClientRect(),xt=je(ht),kt=yt.left+(ht.clientLeft+parseFloat(xt.paddingLeft))*Tt.x,Ht=yt.top+(ht.clientTop+parseFloat(xt.paddingTop))*Tt.y;R*=Tt.x,$*=Tt.y,Y*=Tt.x,K*=Tt.y,R+=kt,$+=Ht,et=Ce(ht),ht=Mn(et)}}return Yi({width:Y,height:K,x:R,y:$})}function hc(l,i){let e=Ws(l).scrollLeft;return i?i.left+e:Ki(dr(l)).left+e}function bm(l,i,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),n=s.left+i.scrollLeft-(e?0:hc(l,s)),h=s.top+i.scrollTop;return{x:n,y:h}}function ab(l){let{elements:i,rect:e,offsetParent:s,strategy:n}=l,h=n==="fixed",m=dr(s),x=i?Ys(i.floating):!1;if(s===m||x&&h)return e;let R={scrollLeft:0,scrollTop:0},$=cr(1),Y=cr(0),K=hr(s);if((K||!K&&!h)&&((Wi(s)!=="body"||Bo(m))&&(R=Ws(s)),hr(s))){let J=Ki(s);$=Uo(s),Y.x=J.x+s.clientLeft,Y.y=J.y+s.clientTop}let at=m&&!K&&!h?bm(m,R,!0):cr(0);return{width:e.width*$.x,height:e.height*$.y,x:e.x*$.x-R.scrollLeft*$.x+Y.x+at.x,y:e.y*$.y-R.scrollTop*$.y+Y.y+at.y}}function nb(l){return Array.from(l.getClientRects())}function lb(l){let i=dr(l),e=Ws(l),s=l.ownerDocument.body,n=ue(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),h=ue(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight),m=-e.scrollLeft+hc(l),x=-e.scrollTop;return je(s).direction==="rtl"&&(m+=ue(i.clientWidth,s.clientWidth)-n),{width:n,height:h,x:m,y:x}}function cb(l,i){let e=Ce(l),s=dr(l),n=e.visualViewport,h=s.clientWidth,m=s.clientHeight,x=0,R=0;if(n){h=n.width,m=n.height;let $=Rn();(!$||$&&i==="fixed")&&(x=n.offsetLeft,R=n.offsetTop)}return{width:h,height:m,x,y:R}}function db(l,i){let e=Ki(l,!0,i==="fixed"),s=e.top+l.clientTop,n=e.left+l.clientLeft,h=hr(l)?Uo(l):cr(1),m=l.clientWidth*h.x,x=l.clientHeight*h.y,R=n*h.x,$=s*h.y;return{width:m,height:x,x:R,y:$}}function um(l,i,e){let s;if(i==="viewport")s=cb(l,e);else if(i==="document")s=lb(dr(l));else if(Ge(i))s=db(i,e);else{let n=gm(l);s={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return Yi(s)}function ym(l,i){let e=Ur(l);return e===i||!Ge(e)||qi(e)?!1:je(e).position==="fixed"||ym(e,i)}function hb(l,i){let e=i.get(l);if(e)return e;let s=Vo(l,[],!1).filter(x=>Ge(x)&&Wi(x)!=="body"),n=null,h=je(l).position==="fixed",m=h?Ur(l):l;for(;Ge(m)&&!qi(m);){let x=je(m),R=Nn(m);!R&&x.position==="fixed"&&(n=null),(h?!R&&!n:!R&&x.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Bo(m)&&!R&&ym(l,m))?s=s.filter(Y=>Y!==m):n=x,m=Ur(m)}return i.set(l,s),s}function pb(l){let{element:i,boundary:e,rootBoundary:s,strategy:n}=l,m=[...e==="clippingAncestors"?Ys(i)?[]:hb(i,this._c):[].concat(e),s],x=m[0],R=m.reduce(($,Y)=>{let K=um(i,Y,n);return $.top=ue(K.top,$.top),$.right=Tr(K.right,$.right),$.bottom=Tr(K.bottom,$.bottom),$.left=ue(K.left,$.left),$},um(i,x,n));return{width:R.right-R.left,height:R.bottom-R.top,x:R.left,y:R.top}}function mb(l){let{width:i,height:e}=vm(l);return{width:i,height:e}}function ub(l,i,e){let s=hr(i),n=dr(i),h=e==="fixed",m=Ki(l,!0,h,i),x={scrollLeft:0,scrollTop:0},R=cr(0);if(s||!s&&!h)if((Wi(i)!=="body"||Bo(n))&&(x=Ws(i)),s){let at=Ki(i,!0,h,i);R.x=at.x+i.clientLeft,R.y=at.y+i.clientTop}else n&&(R.x=hc(n));let $=n&&!s&&!h?bm(n,x):cr(0),Y=m.left+x.scrollLeft-R.x-$.x,K=m.top+x.scrollTop-R.y-$.y;return{x:Y,y:K,width:m.width,height:m.height}}function cc(l){return je(l).position==="static"}function fm(l,i){if(!hr(l)||je(l).position==="fixed")return null;if(i)return i(l);let e=l.offsetParent;return dr(l)===e&&(e=e.ownerDocument.body),e}function Em(l,i){let e=Ce(l);if(Ys(l))return e;if(!hr(l)){let n=Ur(l);for(;n&&!qi(n);){if(Ge(n)&&!cc(n))return n;n=Ur(n)}return e}let s=fm(l,i);for(;s&&hm(s)&&cc(s);)s=fm(s,i);return s&&qi(s)&&cc(s)&&!Nn(s)?e:s||pm(l)||e}var fb=async function(l){let i=this.getOffsetParent||Em,e=this.getDimensions,s=await e(l.floating);return{reference:ub(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function vb(l){return je(l).direction==="rtl"}var gb={convertOffsetParentRelativeRectToViewportRelativeRect:ab,getDocumentElement:dr,getClippingRect:pb,getOffsetParent:Em,getElementRects:fb,getClientRects:nb,getDimensions:mb,getScale:Uo,isElement:Ge,isRTL:vb};function bb(l,i){let e=null,s,n=dr(l);function h(){var x;clearTimeout(s),(x=e)==null||x.disconnect(),e=null}function m(x,R){x===void 0&&(x=!1),R===void 0&&(R=1),h();let{left:$,top:Y,width:K,height:at}=l.getBoundingClientRect();if(x||i(),!K||!at)return;let J=js(Y),et=js(n.clientWidth-($+K)),ht=js(n.clientHeight-(Y+at)),Tt=js($),xt={rootMargin:-J+"px "+-et+"px "+-ht+"px "+-Tt+"px",threshold:ue(0,Tr(1,R))||1},kt=!0;function Ht(Ot){let Dt=Ot[0].intersectionRatio;if(Dt!==R){if(!kt)return m();Dt?m(!1,Dt):s=setTimeout(()=>{m(!1,1e-7)},1e3)}kt=!1}try{e=new IntersectionObserver(Ht,{...xt,root:n.ownerDocument})}catch{e=new IntersectionObserver(Ht,xt)}e.observe(l)}return m(!0),h}function Tm(l,i,e,s){s===void 0&&(s={});let{ancestorScroll:n=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:x=typeof IntersectionObserver=="function",animationFrame:R=!1}=s,$=dc(l),Y=n||h?[...$?Vo($):[],...Vo(i)]:[];Y.forEach(yt=>{n&&yt.addEventListener("scroll",e,{passive:!0}),h&&yt.addEventListener("resize",e)});let K=$&&x?bb($,e):null,at=-1,J=null;m&&(J=new ResizeObserver(yt=>{let[xt]=yt;xt&&xt.target===$&&J&&(J.unobserve(i),cancelAnimationFrame(at),at=requestAnimationFrame(()=>{var kt;(kt=J)==null||kt.observe(i)})),e()}),$&&!R&&J.observe($),J.observe(i));let et,ht=R?Ki(l):null;R&&Tt();function Tt(){let yt=Ki(l);ht&&(yt.x!==ht.x||yt.y!==ht.y||yt.width!==ht.width||yt.height!==ht.height)&&e(),ht=yt,et=requestAnimationFrame(Tt)}return e(),()=>{var yt;Y.forEach(xt=>{n&&xt.removeEventListener("scroll",e),h&&xt.removeEventListener("resize",e)}),K==null||K(),(yt=J)==null||yt.disconnect(),J=null,R&&cancelAnimationFrame(et)}}var xm=am;var Am=nm,_m=sm,Sm=lm;var Im=om;var km=(l,i,e)=>{let s=new Map,n={platform:gb,...e},h={...n.platform,_c:s};return im(l,i,{...n,platform:h})};var Ho=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(e=>{e!==i&&e.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let e=this.stackArray.pop();e&&(e.setIsFocusTrapActivated(!0),this.addKeydownListener(e.handleTabKeydown.bind(e)))}}};Ho.stack=new Set,Ho.currentKeydownListener=null;var On=l=>{class i extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(n){this.isFocusTrapActivated=n}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Ho.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Ho.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(n){return n.getClientRects().length===0}hasZeroDimensions(n){let{width:h,height:m}=n.getBoundingClientRect(),{offsetWidth:x,offsetHeight:R}=n;return x+R+m+h===0}isNotVisible(n){return this.hasZeroDimensions(n)||this.hasNoClientRects(n)}hasHiddenStyle(n){let{display:h,opacity:m,visibility:x}=n.style;return h==="none"||m==="0"||x==="hidden"||x==="collapse"}hasComputedHidden(n){let h=getComputedStyle(n);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(n){return n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(n)||this.isNotVisible(n)||this.hasComputedHidden(n)}isDisabled(n){return n.disabled}isNotTabbable(n){return n.getAttribute("tabindex")==="-1"}isInteractiveElement(n){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1)}isFocusable(n){return this.isHidden(n)||this.isNotTabbable(n)||this.isDisabled(n)?!1:this.isInteractiveElement(n)}findFocusable(n,h=new Set){return n instanceof HTMLElement&&this.isFocusable(n)&&h.add(n),Array.from(n.children).forEach(x=>{let R=x;this.isFocusable(R)&&h.add(R),R.shadowRoot?this.findFocusable(R.shadowRoot,h):R.tagName==="SLOT"?R.assignedElements({flatten:!0}).forEach(Y=>{Y instanceof HTMLElement&&this.findFocusable(Y,h)}):this.findFocusable(R,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(n=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[n]&&(this.focusTrapIndex=n,this.focusableElements[n].focus({preventScroll:!0}))}calculateNextIndex(n,h){let{length:m}=this.focusableElements;if(n===-1)return h>0?0:m-1;let x=n+h;return this.shouldFocusTrapWrap?(x<0&&(x=m-1),x>=m&&(x=0)):(x<0&&(x=0),x>=m&&(x=m-1)),x}getDeepActiveElement(){var h;let n=document.activeElement||document.body;for(;n instanceof HTMLElement&&((h=n.shadowRoot)!=null&&h.activeElement);)n=n.shadowRoot.activeElement;return n||document.body}findElement(n){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(n,h))}isEqualFocusNode(n,h){return n.nodeType>=0?h.isEqualNode(n)&&h===n:!1}trapFocus(n){if(this.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),m=this.findElement(h);n.shiftKey?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let R=this.focusableElements[this.focusTrapIndex];R.tagName!=="IFRAME"&&R&&(n.preventDefault(),R.focus())}handleTabKeydown(n){this.isFocusTrapActivated&&n.key==="Tab"&&this.trapFocus(n)}}return v([g({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var Pn=l=>{class i extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var Cm=j.constructTagName("popover"),Ut={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"},Xi={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Zi={TONAL:"tonal",CONTRAST:"contrast"},Nt={PLACEMENT:Ut.BOTTOM,TRIGGER:Xi.CLICK,COLOR:Zi.TONAL,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,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,DISABLE_ARIA_HAS_POPUP:!1,PROPAGATE_EVENT_ON_ESCAPE:!1};var Hr=class{static dispatchPopoverEvent(i,e){e.dispatchEvent(new CustomEvent(i,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var pc=class{constructor(){this.stack=[]}push(i){this.stack.push(i)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(i){this.stack=this.stack.filter(e=>e!==i)}has(i){return this.stack.includes(i)}clear(){this.stack=[]}},fe=new pc;var yb=G`
|
1814
|
+
`],em=ib;var Bo=class extends $t(q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return L` <slot></slot>
|
1815
|
+
<span part="radio-icon" class="icon"></span>`}};Bo.styles=[...q.styles,...em],f([g({type:Boolean,reflect:!0})],Bo.prototype,"checked",2),f([g({type:Boolean,reflect:!0})],Bo.prototype,"readonly",2);var dc=Bo;var rm=j.constructTagName("staticradio");dc.register(rm);var ob=dc;cc.register(wn);var sb=cc;var Tr=Math.min,fe=Math.max,qs=Math.round,Ks=Math.floor,cr=l=>({x:l,y:l}),ab={left:"right",right:"left",bottom:"top",top:"bottom"},nb={start:"end",end:"start"};function Nn(l,i,e){return fe(l,Tr(i,e))}function Hi(l,i){return typeof l=="function"?l(i):l}function Br(l){return l.split("-")[0]}function ji(l){return l.split("-")[1]}function hc(l){return l==="x"?"y":"x"}function Rn(l){return l==="y"?"height":"width"}function fi(l){return["top","bottom"].includes(Br(l))?"y":"x"}function Mn(l){return hc(fi(l))}function im(l,i,e){e===void 0&&(e=!1);let s=ji(l),n=Mn(l),h=Rn(n),m=n==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[h]>i.floating[h]&&(m=Ws(m)),[m,Ws(m)]}function om(l){let i=Ws(l);return[Ln(l),i,Ln(i)]}function Ln(l){return l.replace(/start|end/g,i=>nb[i])}function lb(l,i,e){let s=["left","right"],n=["right","left"],h=["top","bottom"],m=["bottom","top"];switch(l){case"top":case"bottom":return e?i?n:s:i?s:n;case"left":case"right":return i?h:m;default:return[]}}function sm(l,i,e,s){let n=ji(l),h=lb(Br(l),e==="start",s);return n&&(h=h.map(m=>m+"-"+n),i&&(h=h.concat(h.map(Ln)))),h}function Ws(l){return l.replace(/left|right|bottom|top/g,i=>ab[i])}function cb(l){return{top:0,right:0,bottom:0,left:0,...l}}function pc(l){return typeof l!="number"?cb(l):{top:l,right:l,bottom:l,left:l}}function Yi(l){let{x:i,y:e,width:s,height:n}=l;return{width:s,height:n,top:e,left:i,right:i+s,bottom:e+n,x:i,y:e}}function am(l,i,e){let{reference:s,floating:n}=l,h=fi(i),m=Mn(i),x=Rn(m),R=Br(i),$=h==="y",Y=s.x+s.width/2-n.width/2,K=s.y+s.height/2-n.height/2,at=s[x]/2-n[x]/2,J;switch(R){case"top":J={x:Y,y:s.y-n.height};break;case"bottom":J={x:Y,y:s.y+s.height};break;case"right":J={x:s.x+s.width,y:K};break;case"left":J={x:s.x-n.width,y:K};break;default:J={x:s.x,y:s.y}}switch(ji(i)){case"start":J[m]-=at*(e&&$?-1:1);break;case"end":J[m]+=at*(e&&$?-1:1);break}return J}var nm=async(l,i,e)=>{let{placement:s="bottom",strategy:n="absolute",middleware:h=[],platform:m}=e,x=h.filter(Boolean),R=await(m.isRTL==null?void 0:m.isRTL(i)),$=await m.getElementRects({reference:l,floating:i,strategy:n}),{x:Y,y:K}=am($,s,R),at=s,J={},et=0;for(let ht=0;ht<x.length;ht++){let{name:Tt,fn:yt}=x[ht],{x:xt,y:kt,data:Gt,reset:Ot}=await yt({x:Y,y:K,initialPlacement:s,placement:at,strategy:n,middlewareData:J,rects:$,platform:m,elements:{reference:l,floating:i}});Y=xt!=null?xt:Y,K=kt!=null?kt:K,J={...J,[Tt]:{...J[Tt],...Gt}},Ot&&et<=50&&(et++,typeof Ot=="object"&&(Ot.placement&&(at=Ot.placement),Ot.rects&&($=Ot.rects===!0?await m.getElementRects({reference:l,floating:i,strategy:n}):Ot.rects),{x:Y,y:K}=am($,at,R)),ht=-1)}return{x:Y,y:K,placement:at,strategy:n,middlewareData:J}};async function On(l,i){var e;i===void 0&&(i={});let{x:s,y:n,platform:h,rects:m,elements:x,strategy:R}=l,{boundary:$="clippingAncestors",rootBoundary:Y="viewport",elementContext:K="floating",altBoundary:at=!1,padding:J=0}=Hi(i,l),et=pc(J),Tt=x[at?K==="floating"?"reference":"floating":K],yt=Yi(await h.getClippingRect({element:(e=await(h.isElement==null?void 0:h.isElement(Tt)))==null||e?Tt:Tt.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(x.floating)),boundary:$,rootBoundary:Y,strategy:R})),xt=K==="floating"?{x:s,y:n,width:m.floating.width,height:m.floating.height}:m.reference,kt=await(h.getOffsetParent==null?void 0:h.getOffsetParent(x.floating)),Gt=await(h.isElement==null?void 0:h.isElement(kt))?await(h.getScale==null?void 0:h.getScale(kt))||{x:1,y:1}:{x:1,y:1},Ot=Yi(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:x,rect:xt,offsetParent:kt,strategy:R}):xt);return{top:(yt.top-Ot.top+et.top)/Gt.y,bottom:(Ot.bottom-yt.bottom+et.bottom)/Gt.y,left:(yt.left-Ot.left+et.left)/Gt.x,right:(Ot.right-yt.right+et.right)/Gt.x}}var lm=l=>({name:"arrow",options:l,async fn(i){let{x:e,y:s,placement:n,rects:h,platform:m,elements:x,middlewareData:R}=i,{element:$,padding:Y=0}=Hi(l,i)||{};if($==null)return{};let K=pc(Y),at={x:e,y:s},J=Mn(n),et=Rn(J),ht=await m.getDimensions($),Tt=J==="y",yt=Tt?"top":"left",xt=Tt?"bottom":"right",kt=Tt?"clientHeight":"clientWidth",Gt=h.reference[et]+h.reference[J]-at[J]-h.floating[et],Ot=at[J]-h.reference[J],Dt=await(m.getOffsetParent==null?void 0:m.getOffsetParent($)),Ee=Dt?Dt[kt]:0;(!Ee||!await(m.isElement==null?void 0:m.isElement(Dt)))&&(Ee=x.floating[kt]||h.floating[et]);let re=Gt/2-Ot/2,Qe=Ee/2-ht[et]/2-1,Ne=Tr(K[yt],Qe),Fe=Tr(K[xt],Qe),tr=Ne,er=Ee-ht[et]-Fe,_t=Ee/2-ht[et]/2+re,pe=Nn(tr,_t,er),$e=!R.arrow&&ji(n)!=null&&_t!==pe&&h.reference[et]/2-(_t<tr?Ne:Fe)-ht[et]/2<0,rr=$e?_t<tr?_t-tr:_t-er:0;return{[J]:at[J]+rr,data:{[J]:pe,centerOffset:_t-pe-rr,...$e&&{alignmentOffset:rr}},reset:$e}}});var cm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var e,s;let{placement:n,middlewareData:h,rects:m,initialPlacement:x,platform:R,elements:$}=i,{mainAxis:Y=!0,crossAxis:K=!0,fallbackPlacements:at,fallbackStrategy:J="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:ht=!0,...Tt}=Hi(l,i);if((e=h.arrow)!=null&&e.alignmentOffset)return{};let yt=Br(n),xt=fi(x),kt=Br(x)===x,Gt=await(R.isRTL==null?void 0:R.isRTL($.floating)),Ot=at||(kt||!ht?[Ws(x)]:om(x)),Dt=et!=="none";!at&&Dt&&Ot.push(...sm(x,ht,et,Gt));let Ee=[x,...Ot],re=await On(i,Tt),Qe=[],Ne=((s=h.flip)==null?void 0:s.overflows)||[];if(Y&&Qe.push(re[yt]),K){let _t=im(n,m,Gt);Qe.push(re[_t[0]],re[_t[1]])}if(Ne=[...Ne,{placement:n,overflows:Qe}],!Qe.every(_t=>_t<=0)){var Fe,tr;let _t=(((Fe=h.flip)==null?void 0:Fe.index)||0)+1,pe=Ee[_t];if(pe)return{data:{index:_t,overflows:Ne},reset:{placement:pe}};let $e=(tr=Ne.filter(rr=>rr.overflows[0]<=0).sort((rr,_r)=>rr.overflows[1]-_r.overflows[1])[0])==null?void 0:tr.placement;if(!$e)switch(J){case"bestFit":{var er;let rr=(er=Ne.filter(_r=>{if(Dt){let ze=fi(_r.placement);return ze===xt||ze==="y"}return!0}).map(_r=>[_r.placement,_r.overflows.filter(ze=>ze>0).reduce((ze,xa)=>ze+xa,0)]).sort((_r,ze)=>_r[1]-ze[1])[0])==null?void 0:er[0];rr&&($e=rr);break}case"initialPlacement":$e=x;break}if(n!==$e)return{reset:{placement:$e}}}return{}}}};async function db(l,i){let{placement:e,platform:s,elements:n}=l,h=await(s.isRTL==null?void 0:s.isRTL(n.floating)),m=Br(e),x=ji(e),R=fi(e)==="y",$=["left","top"].includes(m)?-1:1,Y=h&&R?-1:1,K=Hi(i,l),{mainAxis:at,crossAxis:J,alignmentAxis:et}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return x&&typeof et=="number"&&(J=x==="end"?et*-1:et),R?{x:J*Y,y:at*$}:{x:at*$,y:J*Y}}var dm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var e,s;let{x:n,y:h,placement:m,middlewareData:x}=i,R=await db(i,l);return m===((e=x.offset)==null?void 0:e.placement)&&(s=x.arrow)!=null&&s.alignmentOffset?{}:{x:n+R.x,y:h+R.y,data:{...R,placement:m}}}}},hm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){let{x:e,y:s,placement:n}=i,{mainAxis:h=!0,crossAxis:m=!1,limiter:x={fn:Tt=>{let{x:yt,y:xt}=Tt;return{x:yt,y:xt}}},...R}=Hi(l,i),$={x:e,y:s},Y=await On(i,R),K=fi(Br(n)),at=hc(K),J=$[at],et=$[K];if(h){let Tt=at==="y"?"top":"left",yt=at==="y"?"bottom":"right",xt=J+Y[Tt],kt=J-Y[yt];J=Nn(xt,J,kt)}if(m){let Tt=K==="y"?"top":"left",yt=K==="y"?"bottom":"right",xt=et+Y[Tt],kt=et-Y[yt];et=Nn(xt,et,kt)}let ht=x.fn({...i,[at]:J,[K]:et});return{...ht,data:{x:ht.x-e,y:ht.y-s,enabled:{[at]:h,[K]:m}}}}}};var pm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var e,s;let{placement:n,rects:h,platform:m,elements:x}=i,{apply:R=()=>{},...$}=Hi(l,i),Y=await On(i,$),K=Br(n),at=ji(n),J=fi(n)==="y",{width:et,height:ht}=h.floating,Tt,yt;K==="top"||K==="bottom"?(Tt=K,yt=at===(await(m.isRTL==null?void 0:m.isRTL(x.floating))?"start":"end")?"left":"right"):(yt=K,Tt=at==="end"?"top":"bottom");let xt=ht-Y.top-Y.bottom,kt=et-Y.left-Y.right,Gt=Tr(ht-Y[Tt],xt),Ot=Tr(et-Y[yt],kt),Dt=!i.middlewareData.shift,Ee=Gt,re=Ot;if((e=i.middlewareData.shift)!=null&&e.enabled.x&&(re=kt),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(Ee=xt),Dt&&!at){let Ne=fe(Y.left,0),Fe=fe(Y.right,0),tr=fe(Y.top,0),er=fe(Y.bottom,0);J?re=et-2*(Ne!==0||Fe!==0?Ne+Fe:fe(Y.left,Y.right)):Ee=ht-2*(tr!==0||er!==0?tr+er:fe(Y.top,Y.bottom))}await R({...i,availableWidth:re,availableHeight:Ee});let Qe=await m.getDimensions(x.floating);return et!==Qe.width||ht!==Qe.height?{reset:{rects:!0}}:{}}}};function Pn(){return typeof window<"u"}function Wi(l){return um(l)?(l.nodeName||"").toLowerCase():"#document"}function Ce(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function dr(l){var i;return(i=(um(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function um(l){return Pn()?l instanceof Node||l instanceof Ce(l).Node:!1}function He(l){return Pn()?l instanceof Element||l instanceof Ce(l).Element:!1}function hr(l){return Pn()?l instanceof HTMLElement||l instanceof Ce(l).HTMLElement:!1}function mm(l){return!Pn()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Ce(l).ShadowRoot}function Go(l){let{overflow:i,overflowX:e,overflowY:s,display:n}=je(l);return/auto|scroll|overlay|hidden|clip/.test(i+s+e)&&!["inline","contents"].includes(n)}function fm(l){return["table","td","th"].includes(Wi(l))}function Xs(l){return[":popover-open",":modal"].some(i=>{try{return l.matches(i)}catch{return!1}})}function Dn(l){let i=Fn(),e=He(l)?je(l):l;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!i&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!i&&(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 vm(l){let i=Ur(l);for(;hr(i)&&!qi(i);){if(Dn(i))return i;if(Xs(i))return null;i=Ur(i)}return null}function Fn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qi(l){return["html","body","#document"].includes(Wi(l))}function je(l){return Ce(l).getComputedStyle(l)}function Zs(l){return He(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Ur(l){if(Wi(l)==="html")return l;let i=l.assignedSlot||l.parentNode||mm(l)&&l.host||dr(l);return mm(i)?i.host:i}function gm(l){let i=Ur(l);return qi(i)?l.ownerDocument?l.ownerDocument.body:l.body:hr(i)&&Go(i)?i:gm(i)}function Uo(l,i,e){var s;i===void 0&&(i=[]),e===void 0&&(e=!0);let n=gm(l),h=n===((s=l.ownerDocument)==null?void 0:s.body),m=Ce(n);if(h){let x=$n(m);return i.concat(m,m.visualViewport||[],Go(n)?n:[],x&&e?Uo(x):[])}return i.concat(n,Uo(n,[],e))}function $n(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function Em(l){let i=je(l),e=parseFloat(i.width)||0,s=parseFloat(i.height)||0,n=hr(l),h=n?l.offsetWidth:e,m=n?l.offsetHeight:s,x=qs(e)!==h||qs(s)!==m;return x&&(e=h,s=m),{width:e,height:s,$:x}}function uc(l){return He(l)?l:l.contextElement}function Ho(l){let i=uc(l);if(!hr(i))return cr(1);let e=i.getBoundingClientRect(),{width:s,height:n,$:h}=Em(i),m=(h?qs(e.width):e.width)/s,x=(h?qs(e.height):e.height)/n;return(!m||!Number.isFinite(m))&&(m=1),(!x||!Number.isFinite(x))&&(x=1),{x:m,y:x}}var hb=cr(0);function Tm(l){let i=Ce(l);return!Fn()||!i.visualViewport?hb:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function pb(l,i,e){return i===void 0&&(i=!1),!e||i&&e!==Ce(l)?!1:i}function Ki(l,i,e,s){i===void 0&&(i=!1),e===void 0&&(e=!1);let n=l.getBoundingClientRect(),h=uc(l),m=cr(1);i&&(s?He(s)&&(m=Ho(s)):m=Ho(l));let x=pb(h,e,s)?Tm(h):cr(0),R=(n.left+x.x)/m.x,$=(n.top+x.y)/m.y,Y=n.width/m.x,K=n.height/m.y;if(h){let at=Ce(h),J=s&&He(s)?Ce(s):s,et=at,ht=$n(et);for(;ht&&s&&J!==et;){let Tt=Ho(ht),yt=ht.getBoundingClientRect(),xt=je(ht),kt=yt.left+(ht.clientLeft+parseFloat(xt.paddingLeft))*Tt.x,Gt=yt.top+(ht.clientTop+parseFloat(xt.paddingTop))*Tt.y;R*=Tt.x,$*=Tt.y,Y*=Tt.x,K*=Tt.y,R+=kt,$+=Gt,et=Ce(ht),ht=$n(et)}}return Yi({width:Y,height:K,x:R,y:$})}function fc(l,i){let e=Zs(l).scrollLeft;return i?i.left+e:Ki(dr(l)).left+e}function xm(l,i,e){e===void 0&&(e=!1);let s=l.getBoundingClientRect(),n=s.left+i.scrollLeft-(e?0:fc(l,s)),h=s.top+i.scrollTop;return{x:n,y:h}}function mb(l){let{elements:i,rect:e,offsetParent:s,strategy:n}=l,h=n==="fixed",m=dr(s),x=i?Xs(i.floating):!1;if(s===m||x&&h)return e;let R={scrollLeft:0,scrollTop:0},$=cr(1),Y=cr(0),K=hr(s);if((K||!K&&!h)&&((Wi(s)!=="body"||Go(m))&&(R=Zs(s)),hr(s))){let J=Ki(s);$=Ho(s),Y.x=J.x+s.clientLeft,Y.y=J.y+s.clientTop}let at=m&&!K&&!h?xm(m,R,!0):cr(0);return{width:e.width*$.x,height:e.height*$.y,x:e.x*$.x-R.scrollLeft*$.x+Y.x+at.x,y:e.y*$.y-R.scrollTop*$.y+Y.y+at.y}}function ub(l){return Array.from(l.getClientRects())}function fb(l){let i=dr(l),e=Zs(l),s=l.ownerDocument.body,n=fe(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),h=fe(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight),m=-e.scrollLeft+fc(l),x=-e.scrollTop;return je(s).direction==="rtl"&&(m+=fe(i.clientWidth,s.clientWidth)-n),{width:n,height:h,x:m,y:x}}function vb(l,i){let e=Ce(l),s=dr(l),n=e.visualViewport,h=s.clientWidth,m=s.clientHeight,x=0,R=0;if(n){h=n.width,m=n.height;let $=Fn();(!$||$&&i==="fixed")&&(x=n.offsetLeft,R=n.offsetTop)}return{width:h,height:m,x,y:R}}function gb(l,i){let e=Ki(l,!0,i==="fixed"),s=e.top+l.clientTop,n=e.left+l.clientLeft,h=hr(l)?Ho(l):cr(1),m=l.clientWidth*h.x,x=l.clientHeight*h.y,R=n*h.x,$=s*h.y;return{width:m,height:x,x:R,y:$}}function bm(l,i,e){let s;if(i==="viewport")s=vb(l,e);else if(i==="document")s=fb(dr(l));else if(He(i))s=gb(i,e);else{let n=Tm(l);s={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return Yi(s)}function Am(l,i){let e=Ur(l);return e===i||!He(e)||qi(e)?!1:je(e).position==="fixed"||Am(e,i)}function bb(l,i){let e=i.get(l);if(e)return e;let s=Uo(l,[],!1).filter(x=>He(x)&&Wi(x)!=="body"),n=null,h=je(l).position==="fixed",m=h?Ur(l):l;for(;He(m)&&!qi(m);){let x=je(m),R=Dn(m);!R&&x.position==="fixed"&&(n=null),(h?!R&&!n:!R&&x.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Go(m)&&!R&&Am(l,m))?s=s.filter(Y=>Y!==m):n=x,m=Ur(m)}return i.set(l,s),s}function yb(l){let{element:i,boundary:e,rootBoundary:s,strategy:n}=l,m=[...e==="clippingAncestors"?Xs(i)?[]:bb(i,this._c):[].concat(e),s],x=m[0],R=m.reduce(($,Y)=>{let K=bm(i,Y,n);return $.top=fe(K.top,$.top),$.right=Tr(K.right,$.right),$.bottom=Tr(K.bottom,$.bottom),$.left=fe(K.left,$.left),$},bm(i,x,n));return{width:R.right-R.left,height:R.bottom-R.top,x:R.left,y:R.top}}function Eb(l){let{width:i,height:e}=Em(l);return{width:i,height:e}}function Tb(l,i,e){let s=hr(i),n=dr(i),h=e==="fixed",m=Ki(l,!0,h,i),x={scrollLeft:0,scrollTop:0},R=cr(0);if(s||!s&&!h)if((Wi(i)!=="body"||Go(n))&&(x=Zs(i)),s){let at=Ki(i,!0,h,i);R.x=at.x+i.clientLeft,R.y=at.y+i.clientTop}else n&&(R.x=fc(n));let $=n&&!s&&!h?xm(n,x):cr(0),Y=m.left+x.scrollLeft-R.x-$.x,K=m.top+x.scrollTop-R.y-$.y;return{x:Y,y:K,width:m.width,height:m.height}}function mc(l){return je(l).position==="static"}function ym(l,i){if(!hr(l)||je(l).position==="fixed")return null;if(i)return i(l);let e=l.offsetParent;return dr(l)===e&&(e=e.ownerDocument.body),e}function _m(l,i){let e=Ce(l);if(Xs(l))return e;if(!hr(l)){let n=Ur(l);for(;n&&!qi(n);){if(He(n)&&!mc(n))return n;n=Ur(n)}return e}let s=ym(l,i);for(;s&&fm(s)&&mc(s);)s=ym(s,i);return s&&qi(s)&&mc(s)&&!Dn(s)?e:s||vm(l)||e}var xb=async function(l){let i=this.getOffsetParent||_m,e=this.getDimensions,s=await e(l.floating);return{reference:Tb(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Ab(l){return je(l).direction==="rtl"}var _b={convertOffsetParentRelativeRectToViewportRelativeRect:mb,getDocumentElement:dr,getClippingRect:yb,getOffsetParent:_m,getElementRects:xb,getClientRects:ub,getDimensions:Eb,getScale:Ho,isElement:He,isRTL:Ab};function Sb(l,i){let e=null,s,n=dr(l);function h(){var x;clearTimeout(s),(x=e)==null||x.disconnect(),e=null}function m(x,R){x===void 0&&(x=!1),R===void 0&&(R=1),h();let{left:$,top:Y,width:K,height:at}=l.getBoundingClientRect();if(x||i(),!K||!at)return;let J=Ks(Y),et=Ks(n.clientWidth-($+K)),ht=Ks(n.clientHeight-(Y+at)),Tt=Ks($),xt={rootMargin:-J+"px "+-et+"px "+-ht+"px "+-Tt+"px",threshold:fe(0,Tr(1,R))||1},kt=!0;function Gt(Ot){let Dt=Ot[0].intersectionRatio;if(Dt!==R){if(!kt)return m();Dt?m(!1,Dt):s=setTimeout(()=>{m(!1,1e-7)},1e3)}kt=!1}try{e=new IntersectionObserver(Gt,{...xt,root:n.ownerDocument})}catch{e=new IntersectionObserver(Gt,xt)}e.observe(l)}return m(!0),h}function Sm(l,i,e,s){s===void 0&&(s={});let{ancestorScroll:n=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:x=typeof IntersectionObserver=="function",animationFrame:R=!1}=s,$=uc(l),Y=n||h?[...$?Uo($):[],...Uo(i)]:[];Y.forEach(yt=>{n&&yt.addEventListener("scroll",e,{passive:!0}),h&&yt.addEventListener("resize",e)});let K=$&&x?Sb($,e):null,at=-1,J=null;m&&(J=new ResizeObserver(yt=>{let[xt]=yt;xt&&xt.target===$&&J&&(J.unobserve(i),cancelAnimationFrame(at),at=requestAnimationFrame(()=>{var kt;(kt=J)==null||kt.observe(i)})),e()}),$&&!R&&J.observe($),J.observe(i));let et,ht=R?Ki(l):null;R&&Tt();function Tt(){let yt=Ki(l);ht&&(yt.x!==ht.x||yt.y!==ht.y||yt.width!==ht.width||yt.height!==ht.height)&&e(),ht=yt,et=requestAnimationFrame(Tt)}return e(),()=>{var yt;Y.forEach(xt=>{n&&xt.removeEventListener("scroll",e),h&&xt.removeEventListener("resize",e)}),K==null||K(),(yt=J)==null||yt.disconnect(),J=null,R&&cancelAnimationFrame(et)}}var Im=dm;var km=hm,Cm=cm,wm=pm;var Lm=lm;var Nm=(l,i,e)=>{let s=new Map,n={platform:_b,...e},h={...n.platform,_c:s};return nm(l,i,{...n,platform:h})};var jo=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(e=>{e!==i&&e.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let e=this.stackArray.pop();e&&(e.setIsFocusTrapActivated(!0),this.addKeydownListener(e.handleTabKeydown.bind(e)))}}};jo.stack=new Set,jo.currentKeydownListener=null;var zn=l=>{class i extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(n){this.isFocusTrapActivated=n}activateFocusTrap(){this.setIsFocusTrapActivated(!0),jo.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),jo.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(n){return n.getClientRects().length===0}hasZeroDimensions(n){let{width:h,height:m}=n.getBoundingClientRect(),{offsetWidth:x,offsetHeight:R}=n;return x+R+m+h===0}isNotVisible(n){return this.hasZeroDimensions(n)||this.hasNoClientRects(n)}hasHiddenStyle(n){let{display:h,opacity:m,visibility:x}=n.style;return h==="none"||m==="0"||x==="hidden"||x==="collapse"}hasComputedHidden(n){let h=getComputedStyle(n);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(n){return n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(n)||this.isNotVisible(n)||this.hasComputedHidden(n)}isDisabled(n){return n.disabled}isNotTabbable(n){return n.getAttribute("tabindex")==="-1"}isInteractiveElement(n){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1)}isFocusable(n){return this.isHidden(n)||this.isNotTabbable(n)||this.isDisabled(n)?!1:this.isInteractiveElement(n)}findFocusable(n,h=new Set){return n instanceof HTMLElement&&this.isFocusable(n)&&h.add(n),Array.from(n.children).forEach(x=>{let R=x;this.isFocusable(R)&&h.add(R),R.shadowRoot?this.findFocusable(R.shadowRoot,h):R.tagName==="SLOT"?R.assignedElements({flatten:!0}).forEach(Y=>{Y instanceof HTMLElement&&this.findFocusable(Y,h)}):this.findFocusable(R,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(n=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[n]&&(this.focusTrapIndex=n,this.focusableElements[n].focus({preventScroll:!0}))}calculateNextIndex(n,h){let{length:m}=this.focusableElements;if(n===-1)return h>0?0:m-1;let x=n+h;return this.shouldFocusTrapWrap?(x<0&&(x=m-1),x>=m&&(x=0)):(x<0&&(x=0),x>=m&&(x=m-1)),x}getDeepActiveElement(){var h;let n=document.activeElement||document.body;for(;n instanceof HTMLElement&&((h=n.shadowRoot)!=null&&h.activeElement);)n=n.shadowRoot.activeElement;return n||document.body}findElement(n){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(n,h))}isEqualFocusNode(n,h){return n.nodeType>=0?h.isEqualNode(n)&&h===n:!1}trapFocus(n){if(this.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),m=this.findElement(h);n.shiftKey?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let R=this.focusableElements[this.focusTrapIndex];R.tagName!=="IFRAME"&&R&&(n.preventDefault(),R.focus())}handleTabKeydown(n){this.isFocusTrapActivated&&n.key==="Tab"&&this.trapFocus(n)}}return f([g({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var Vn=l=>{class i extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var Rm=j.constructTagName("popover"),Ut={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"},Xi={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Zi={TONAL:"tonal",CONTRAST:"contrast"},Nt={PLACEMENT:Ut.BOTTOM,TRIGGER:Xi.CLICK,COLOR:Zi.TONAL,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,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,DISABLE_ARIA_HAS_POPUP:!1,PROPAGATE_EVENT_ON_ESCAPE:!1};var Gr=class{static dispatchPopoverEvent(i,e){e.dispatchEvent(new CustomEvent(i,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var vc=class{constructor(){this.stack=[]}push(i){this.stack.push(i)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(i){this.stack=this.stack.filter(e=>e!==i)}has(i){return this.stack.includes(i)}clear(){this.stack=[]}},ve=new vc;var Ib=H`
|
1816
1816
|
:host {
|
1817
1817
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1818
1818
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -1926,7 +1926,7 @@
|
|
1926
1926
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1927
1927
|
border-bottom-left-radius: 100%;
|
1928
1928
|
}
|
1929
|
-
`,
|
1929
|
+
`,Mm=[Ib];var Bn=class{constructor(i){this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,e]=this.popover.delay.split(",").map(s=>{let n=parseInt(s,10);if(Number.isNaN(n)||n<0)throw new Error(`Invalid delay value: ${s}`);return n});return[i,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){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)`,n=this.popover.offsetHeight||0,h=this.popover.offsetWidth||0;if(e)switch(i.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=`${n}px`,e.style.width=s,e.style.right=`calc(-1.5 * (${s}))`;break;case"right":e.style.height=`${n}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 i=document.getElementById(this.popover.appendTo);i&&i.appendChild(this.popover)}}setupAccessibility(){var i,e,s;this.popover.role===st.DIALOG||this.popover.role===st.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal"),this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.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)||""))}updateAriaHasPopupAttribute(){var i,e,s;this.popover.interactive&&!this.popover.disableAriaHasPopup?(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((i=this.popover.triggerElement)==null?void 0:i.getAttribute("aria-haspopup"))||"dialog"):(s=this.popover.triggerElement)==null||s.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var i,e;this.popover.disableAriaExpanded?(i=this.popover.triggerElement)==null||i.removeAttribute("aria-expanded"):(e=this.popover.triggerElement)==null||e.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(i,e){var Y;if(!this.popover.arrowElement)return;let s=e.split("-")[0],n={top:"bottom",right:"left",bottom:"top",left:"right"}[s],{x:h,y:m}=i,x=this.popover.arrowElement.getBoundingClientRect(),R=(Y=this.popover.arrowElement.offsetParent)==null?void 0:Y.getBoundingClientRect();if(!this.arrowPixelChange){let K=R!=null&&R[n]?12-Math.abs(x[n]-R[n]):0;Math.round(K)===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`:"",[n]:`${-this.popover.arrowElement.offsetHeight/2-$}px`})}updatePopoverStyle(i,e){Object.assign(this.popover.style,{left:`${i}px`,top:`${e}px`})}createBackdrop(){var i;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop");let s=document.createElement("style");s.textContent=`
|
1930
1930
|
.popover-backdrop {
|
1931
1931
|
position: fixed;
|
1932
1932
|
top: 0;
|
@@ -1936,9 +1936,9 @@
|
|
1936
1936
|
background: transparent;
|
1937
1937
|
z-index: ${this.popover.zIndex-1};
|
1938
1938
|
}
|
1939
|
-
`,e.appendChild(s),(i=this.popover.parentElement)==null||i.appendChild(e),this.popover.backdropElement=e}}};var St=class St extends
|
1939
|
+
`,e.appendChild(s),(i=this.popover.parentElement)==null||i.appendChild(e),this.popover.backdropElement=e}}};var St=class St extends Vn(zn(q)){constructor(){super();this.id="";this.triggerID="";this.trigger=Nt.TRIGGER;this.placement=Nt.PLACEMENT;this.color=Nt.COLOR;this.visible=Nt.VISIBLE;this.offset=Nt.OFFSET;this.boundary=Nt.BOUNDARY;this.boundaryRoot=Nt.BOUNDARY_ROOT;this.focusTrap=Nt.FOCUS_TRAP;this.preventScroll=Nt.PREVENT_SCROLL;this.showArrow=Nt.ARROW;this.closeButton=Nt.CLOSE_BUTTON;this.interactive=Nt.INTERACTIVE;this.delay=Nt.DELAY;this.hideOnEscape=Nt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Nt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Nt.HIDE_ON_BLUR;this.hideOnOutsideClick=Nt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Nt.FOCUS_BACK;this.backdrop=Nt.BACKDROP;this.flip=Nt.FLIP;this.size=Nt.SIZE;this.zIndex=Nt.Z_INDEX;this.closeButtonAriaLabel=null;this.role=Nt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Nt.DISABLE_ARIA_EXPANDED;this.disableAriaHasPopup=Nt.DISABLE_ARIA_HAS_POPUP;this.arrowElement=null;this.triggerElement=null;this.triggerElementOriginalStyle={zIndex:"",position:""};this.hoverTimer=null;this.isHovered=!1;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(ve.peek()!==this)return;let s=!1,n=e.composedPath();s=this.contains(e.target)||n.includes(this.triggerElement)||n.includes(this);let h=this.backdropElement?n.includes(this.backdropElement):!1;(!s||h)&&(this.hidePopover(),Gr.onClickOutside(this))};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(this.propagateEventOnEscape||e.stopPropagation(),e.preventDefault(),this.hidePopover(),Gr.onEscapeKeyPressed(this))};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.handleMouseEnter=()=>{this.isHovered=!0,this.showPopover()};this.handleMouseLeave=()=>{this.isHovered=!1,this.startCloseDelay()};this.handleFocusOut=()=>{this.isHovered||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=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay):(this.visible=!1,this.isTriggerClicked=!1)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new Bn(this)}async firstUpdated(e){var s,n;super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,Gr.onCreatedPopover(this),this.visible&&(this.positionPopover(),this.activatePreventScroll(),this.interactive&&this.focusTrap&&(await this.updateComplete,(s=this.activateFocusTrap)==null||s.call(this),(n=this.setInitialFocus)==null||n.call(this)))}async disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListeners(),(e=this.deactivateFocusTrap)==null||e.call(this),this.deactivatePreventScroll(),Gr.onDestroyedPopover(this),ve.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.handleMouseEnter),this.triggerElement.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.showPopover)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.handleFocusOut)),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.handleMouseEnter),this.triggerElement.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.handleFocusOut),e==null||e.removeEventListener("mouseenter",this.showPopover),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("role")&&this.role===""&&(this.role=null),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(Ut).includes(this.placement)?this.placement:Nt.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let n=this.trigger.split(" ").filter(h=>Object.values(Xi).includes(h));this.setAttribute("trigger",n.length>0?this.trigger:Nt.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Zi).includes(this.color)?this.color:Nt.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")||e.has("disableAriaHasPopup"))&&this.utils.updateAriaHasPopupAttribute(),e.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),e.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(e,s){var n,h,m,x,R,$,Y;e===s||!this.triggerElement||(s?(ve.peek()!==this&&ve.push(this),this.backdrop&&(this.utils.createBackdrop(),this.triggerElementOriginalStyle={position:this.triggerElement.style.position,zIndex:this.triggerElement.style.zIndex},this.triggerElement.style.position="relative",this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),(n=this.triggerElement)==null||n.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.interactive&&this.focusTrap&&(await this.updateComplete,(h=this.activateFocusTrap)==null||h.call(this),(m=this.setInitialFocus)==null||m.call(this)),Gr.onShowPopover(this)):(ve.peek()===this&&ve.pop(),this.backdrop&&(this.triggerElement.style.position=this.triggerElementOriginalStyle.position,this.triggerElement.style.zIndex=this.triggerElementOriginalStyle.zIndex),this.backdropElement&&((x=this.backdropElement)==null||x.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&&(this.removeEventListener("keydown",this.onEscapeKeydown),(R=this.triggerElement)==null||R.removeEventListener("keydown",this.onEscapeKeydown)),this.disableAriaExpanded&&this.triggerElement.removeAttribute("aria-expanded"),this.interactive||this.triggerElement.removeAttribute("aria-haspopup"),this.deactivatePreventScroll(),($=this.deactivateFocusTrap)==null||$.call(this),this.focusBackToTrigger&&((Y=this.triggerElement)==null||Y.focus()),Gr.onHidePopover(this)))}positionPopover(){if(!this.triggerElement)return;let e=[km({boundary:!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),rootBoundary:this.boundaryRoot,padding:this.boundaryPadding})],s=this.offset;if(this.flip&&e.push(Cm()),this.size){let n=m=>{this.style.setProperty("--mdc-popover-internal-available-height",`${m}px`)},h=this.renderRoot.querySelector('[part="popover-content"]');e.push(wm({apply({availableHeight:m}){h&&(Object.assign(h.style,{maxHeight:`${m}px`,overflowY:"auto"}),n(m))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let n=this.arrowElement.offsetHeight,h=Math.sqrt(2*n**2)/2;s+=h,e.push(Lm({element:this.arrowElement,padding:12}))}e.push(Im(s)),Sm(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:n,y:h,middlewareData:m,placement:x}=await Nm(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(n,h),m.arrow&&this.arrowElement&&this.utils.updateArrowStyle(m.arrow,x),this.trigger.includes("mouseenter")&&this.interactive&&this.utils.setupHoverBridge(x)})}findClosestPopover(e){let s=e;for(;s&&!(s instanceof St);)s=s.parentElement;return s}render(){return L`
|
1940
1940
|
<div class="popover-hover-bridge"></div>
|
1941
|
-
${this.closeButton?
|
1941
|
+
${this.closeButton?L` <mdc-button
|
1942
1942
|
class="popover-close"
|
1943
1943
|
prefix-icon="cancel-bold"
|
1944
1944
|
variant="tertiary"
|
@@ -1946,11 +1946,11 @@
|
|
1946
1946
|
aria-label=${nt(this.closeButtonAriaLabel)||""}
|
1947
1947
|
@click="${this.hidePopover}"
|
1948
1948
|
></mdc-button>`:W}
|
1949
|
-
${this.showArrow?
|
1949
|
+
${this.showArrow?L`<div class="popover-arrow"></div>`:W}
|
1950
1950
|
<div part="popover-content">
|
1951
1951
|
<slot></slot>
|
1952
1952
|
</div>
|
1953
|
-
`}};St.styles=[...q.styles,...
|
1953
|
+
`}};St.styles=[...q.styles,...Mm],f([g({type:String,reflect:!0})],St.prototype,"id",2),f([g({type:String,reflect:!0})],St.prototype,"triggerID",2),f([g({type:String,reflect:!0})],St.prototype,"trigger",2),f([g({type:String,reflect:!0})],St.prototype,"placement",2),f([g({type:String,reflect:!0})],St.prototype,"color",2),f([g({type:Boolean,reflect:!0})],St.prototype,"visible",2),f([g({type:Number,reflect:!0})],St.prototype,"offset",2),f([g({type:String,reflect:!0,attribute:"boundary"})],St.prototype,"boundary",2),f([g({type:String,reflect:!0,attribute:"boundary-root"})],St.prototype,"boundaryRoot",2),f([g({type:Number,reflect:!0,attribute:"boundary-padding"})],St.prototype,"boundaryPadding",2),f([g({type:Boolean,reflect:!0,attribute:"focus-trap"})],St.prototype,"focusTrap",2),f([g({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],St.prototype,"preventScroll",2),f([g({type:Boolean,reflect:!0,attribute:"show-arrow"})],St.prototype,"showArrow",2),f([g({type:Boolean,reflect:!0,attribute:"close-button"})],St.prototype,"closeButton",2),f([g({type:Boolean,reflect:!0})],St.prototype,"interactive",2),f([g({type:String,reflect:!0})],St.prototype,"delay",2),f([g({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],St.prototype,"hideOnEscape",2),f([g({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],St.prototype,"propagateEventOnEscape",2),f([g({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],St.prototype,"hideOnBlur",2),f([g({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],St.prototype,"hideOnOutsideClick",2),f([g({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],St.prototype,"focusBackToTrigger",2),f([g({type:Boolean,reflect:!0})],St.prototype,"backdrop",2),f([g({type:Boolean,reflect:!0})],St.prototype,"flip",2),f([g({type:Boolean,reflect:!0})],St.prototype,"size",2),f([g({type:Number,reflect:!0,attribute:"z-index"})],St.prototype,"zIndex",2),f([g({type:String,reflect:!0,attribute:"append-to"})],St.prototype,"appendTo",2),f([g({type:String,attribute:"close-button-aria-label",reflect:!0})],St.prototype,"closeButtonAriaLabel",2),f([g({type:String,reflect:!0})],St.prototype,"role",2),f([g({type:String,reflect:!0,attribute:"aria-labelledby"})],St.prototype,"ariaLabelledby",2),f([g({type:String,reflect:!0,attribute:"aria-describedby"})],St.prototype,"ariaDescribedby",2),f([g({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],St.prototype,"disableAriaExpanded",2),f([g({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],St.prototype,"disableAriaHasPopup",2);var gc=St,we=gc;var Om=j.constructTagName("toggletip"),Ji={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Ut.TOP,CLICK:Xi.CLICK,SHOW_ARROW:!0};var kb=H`
|
1954
1954
|
:host {
|
1955
1955
|
--mdc-toggletip-max-width: 400px;
|
1956
1956
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -1980,7 +1980,7 @@
|
|
1980
1980
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
1981
1981
|
margin-left: 2rem;
|
1982
1982
|
}
|
1983
|
-
`,
|
1983
|
+
`,Pm=[kb];var vi=class extends we{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=Ji.PLACEMENT}connectedCallback(){var e;super.connectedCallback(),this.closeButton=(e=this.closeButton)!=null?e:Ji.CLOSE_BUTTON,this.closeButtonAriaLabel=Ji.CLOSE_BUTTON_ARIA_LABEL,this.trigger=Ji.CLICK,this.showArrow=Ji.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var e,s;return((s=(e=this.defaultSlotNodes)==null?void 0:e.map(n=>n.textContent).join(" "))==null?void 0:s.trim())||""}onPlacementUpdated(){Object.values(Ut).includes(this.placement)||(this.placement=Ji.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return L`
|
1984
1984
|
${super.render()}
|
1985
1985
|
<mdc-screenreaderannouncer
|
1986
1986
|
identity="${nt(this.screenreaderAnnouncerIdentity)}"
|
@@ -1988,12 +1988,12 @@
|
|
1988
1988
|
delay="300"
|
1989
1989
|
>
|
1990
1990
|
</mdc-screenreaderannouncer>
|
1991
|
-
`}};vi.styles=[...we.styles,...
|
1991
|
+
`}};vi.styles=[...we.styles,...Pm],f([Ja()],vi.prototype,"defaultSlotNodes",2),f([It()],vi.prototype,"currentAnnouncement",2),f([g({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],vi.prototype,"screenreaderAnnouncerIdentity",2),f([g({type:String,reflect:!0})],vi.prototype,"placement",2);var bc=vi;var se=[];for(let l=0;l<256;++l)se.push((l+256).toString(16).slice(1));function Dm(l,i=0){return(se[l[i+0]]+se[l[i+1]]+se[l[i+2]]+se[l[i+3]]+"-"+se[l[i+4]]+se[l[i+5]]+"-"+se[l[i+6]]+se[l[i+7]]+"-"+se[l[i+8]]+se[l[i+9]]+"-"+se[l[i+10]]+se[l[i+11]]+se[l[i+12]]+se[l[i+13]]+se[l[i+14]]+se[l[i+15]]).toLowerCase()}var yc,Cb=new Uint8Array(16);function Ec(){if(!yc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yc=crypto.getRandomValues.bind(crypto)}return yc(Cb)}var wb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Tc={randomUUID:wb};function Lb(l,i,e){var n,h,m;if(Tc.randomUUID&&!i&&!l)return Tc.randomUUID();l=l||{};let s=(m=(h=l.random)!=null?h:(n=l.rng)==null?void 0:n.call(l))!=null?m:Ec();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,i){if(e=e||0,e<0||e+16>i.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let x=0;x<16;++x)i[e+x]=s[x];return i}return Dm(s)}var Ye=Lb;var Fm=j.constructTagName("screenreaderannouncer"),Nb={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Yo={ARIA_LIVE:Nb.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Rb=[H`
|
1992
1992
|
:host {
|
1993
1993
|
display: none;
|
1994
1994
|
visibility: hidden;
|
1995
1995
|
}
|
1996
|
-
`]
|
1996
|
+
`],$m=Rb;var Hr=class extends q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Yo.ARIA_LIVE;this.delay=Yo.DELAY;this.timeout=Yo.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,s,n,h){var m;if(e.length>0){let x=`mdc-screenreaderannouncer-announcement-${Ye()}`,R=document.createElement("div");R.id=x,R.ariaLive=h,(m=document.getElementById(this.identity))==null||m.appendChild(R);let $=window.setTimeout(()=>{let Y=document.createElement("p");Y.textContent=e,R.appendChild(Y),this.ariaLiveAnnouncementIds.push(x);let K=window.setTimeout(()=>{var at;(at=document.getElementById(x))==null||at.remove()},n);this.timeOutIds.push(K)},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=`
|
1997
1997
|
.mdc-screenreaderannouncer__visually-hidden {
|
1998
1998
|
clip: rect(0 0 0 0);
|
1999
1999
|
clip-path: inset(50%);
|
@@ -2003,7 +2003,7 @@
|
|
2003
2003
|
white-space: nowrap;
|
2004
2004
|
width: 1px;
|
2005
2005
|
}
|
2006
|
-
`,e.appendChild(s),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=
|
2006
|
+
`,e.appendChild(s),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Yo.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=Yo.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Hr.styles=[...q.styles,...$m],f([g({type:String,reflect:!0})],Hr.prototype,"announcement",2),f([g({type:String,reflect:!0})],Hr.prototype,"identity",2),f([g({type:String,reflect:!0,attribute:"data-aria-live"})],Hr.prototype,"dataAriaLive",2),f([g({type:Number,reflect:!0})],Hr.prototype,"delay",2),f([g({type:Number,reflect:!0})],Hr.prototype,"timeout",2);var xc=Hr;xc.register(Fm);var Mb=xc;bc.register(Om);var Ob=bc;var jt=l=>{class i extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return f([g({type:String,reflect:!0,attribute:"data-aria-label"})],i.prototype,"dataAriaLabel",2),i};var Le=l=>{class i 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-el-${Ye()}`}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 i.formAssociated=!0,f([g({reflect:!0,type:String})],i.prototype,"name",2),f([g({reflect:!0,type:String})],i.prototype,"value",2),f([g({reflect:!0,type:String,attribute:"validation-message"})],i.prototype,"validationMessage",2),f([Pr("input")],i.prototype,"inputElement",2),i};var zm=j.constructTagName("formfieldwrapper"),Yt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Mt={VALIDATION:Yt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:"top"},Js={TAGNAME:vt.SPAN,TYPE:it.BODY_MIDSIZE_REGULAR,HEADER_TYPE:it.BODY_MIDSIZE_BOLD};var Pb=[Et,H`
|
2007
2007
|
:host {
|
2008
2008
|
flex-direction: column;
|
2009
2009
|
align-items: flex-start;
|
@@ -2061,25 +2061,25 @@
|
|
2061
2061
|
:host([help-text-type='priority']) .mdc-help-text {
|
2062
2062
|
color: var(--mds-color-theme-text-accent-normal);
|
2063
2063
|
}
|
2064
|
-
`],
|
2064
|
+
`],Vm=Pb;var Bm=l=>({[Yt.ERROR]:"error-legacy-badge-filled",[Yt.WARNING]:"warning-badge-filled",[Yt.SUCCESS]:"check-circle-badge-filled",[Yt.PRIORITY]:"priority-badge-filled",[Yt.DEFAULT]:""})[l]||"";var We=class extends $t(q){constructor(){super(...arguments);this.required=!1;this.id="";this.helpTextType=Mt.VALIDATION;this.toggletipPlacement=Mt.TOGGLETIP_PLACEMENT;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?L`<label for="${this.id}" id="${Mt.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:L` <mdc-text
|
2065
2065
|
id="${Mt.HEADING_ID}"
|
2066
|
-
tagname="${
|
2067
|
-
type="${
|
2066
|
+
tagname="${Js.TAGNAME}"
|
2067
|
+
type="${Js.HEADER_TYPE}"
|
2068
2068
|
part="label"
|
2069
2069
|
>${this.label}</mdc-text
|
2070
|
-
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let e=
|
2070
|
+
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let e=Bm(this.helpTextType||Mt.VALIDATION);return e&&!this.disabled?L`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:W}renderHelpText(){return this.helpText?L`
|
2071
2071
|
<mdc-text
|
2072
2072
|
id="${Mt.HELPER_TEXT_ID}"
|
2073
2073
|
part="help-text"
|
2074
|
-
tagname=${
|
2075
|
-
type=${
|
2074
|
+
tagname=${Js.TAGNAME}
|
2075
|
+
type=${Js.TYPE}
|
2076
2076
|
>
|
2077
2077
|
${this.helpText}
|
2078
2078
|
</mdc-text>
|
2079
|
-
`:W}renderLabel(){return this.label?
|
2079
|
+
`:W}renderLabel(){return this.label?L`<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?L`<span part="required-indicator">*</span>`:W}
|
2082
|
+
${this.toggletipText?L` <mdc-button
|
2083
2083
|
part="info-icon-btn"
|
2084
2084
|
prefix-icon="${Mt.INFO_ICON}"
|
2085
2085
|
size="${Mt.ICON_SIZE}"
|
@@ -2095,10 +2095,10 @@
|
|
2095
2095
|
show-arrow
|
2096
2096
|
>${this.toggletipText}</mdc-toggletip
|
2097
2097
|
>`:W}
|
2098
|
-
</div>`:W}renderHelperText(){return this.helpText?
|
2098
|
+
</div>`:W}renderHelperText(){return this.helpText?L`<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>`:W}};We.styles=[...q.styles,...
|
2101
|
+
</div>`:W}};We.styles=[...q.styles,...Vm],f([g({reflect:!0,type:String})],We.prototype,"label",2),f([g({type:Boolean,reflect:!0,attribute:"required"})],We.prototype,"required",2),f([g({type:String})],We.prototype,"id",2),f([g({reflect:!0,attribute:"help-text-type"})],We.prototype,"helpTextType",2),f([g({type:String,reflect:!0,attribute:"help-text"})],We.prototype,"helpText",2),f([g({type:String,reflect:!0,attribute:"toggletip-text"})],We.prototype,"toggletipText",2),f([g({type:String,reflect:!0,attribute:"toggletip-placement"})],We.prototype,"toggletipPlacement",2),f([g({type:String,reflect:!0,attribute:"info-icon-aria-label"})],We.prototype,"infoIconAriaLabel",2);var ge=We;var Db=[H`
|
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);
|
@@ -2170,7 +2170,7 @@
|
|
2170
2170
|
flex-direction: column;
|
2171
2171
|
gap: 0.25rem;
|
2172
2172
|
}
|
2173
|
-
`,...At(!0)]
|
2173
|
+
`,...At(!0)],Um=Db;var Qi=class extends Le(jt(ge)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?L`<div class="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}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===Q.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 L`
|
2174
2174
|
<mdc-staticcheckbox
|
2175
2175
|
class="mdc-focus-ring"
|
2176
2176
|
?checked="${this.checked}"
|
@@ -2197,7 +2197,7 @@
|
|
2197
2197
|
/>
|
2198
2198
|
</mdc-staticcheckbox>
|
2199
2199
|
${this.renderLabelAndHelperText()}
|
2200
|
-
`}};Qi.styles=[...
|
2200
|
+
`}};Qi.styles=[...ge.styles,...Um],f([g({type:Boolean,reflect:!0})],Qi.prototype,"checked",2),f([g({type:Boolean,reflect:!0})],Qi.prototype,"indeterminate",2),f([g({type:Boolean,reflect:!0})],Qi.prototype,"autofocus",2);var Ac=Qi;Ac.register(Jp);var Fb=Ac;var Gm=j.constructTagName("chip"),$b={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Wo={COLOR:$b.DEFAULT,TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,TAG_NAME:vt.SPAN,SIZE:Di[24],ROLE:"button"};var zb=H`
|
2201
2201
|
:host {
|
2202
2202
|
height: 1.5rem;
|
2203
2203
|
gap: 0.25rem;
|
@@ -2349,12 +2349,12 @@
|
|
2349
2349
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2350
2350
|
cursor: auto;
|
2351
2351
|
}
|
2352
|
-
`,
|
2352
|
+
`,Hm=[Et,zb,...At()];var qo=class extends Qt(de){constructor(){super(...arguments);this.color=Wo.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Wo.ROLE,this.size=Wo.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?L` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return L`
|
2353
2353
|
${this.renderIcon()}
|
2354
|
-
${this.label?
|
2354
|
+
${this.label?L`<mdc-text part="label" type="${Wo.TEXT_TYPE}" tagname="${Wo.TAG_NAME}"
|
2355
2355
|
>${this.label}</mdc-text
|
2356
2356
|
>`:W}
|
2357
|
-
`}};
|
2357
|
+
`}};qo.styles=[...q.styles,...Hm],f([g({type:String,reflect:!0})],qo.prototype,"color",2),f([g({type:String})],qo.prototype,"label",2);var Ko=qo;Ko.register(Gm);var Vb=Ko;var jm=j.constructTagName("coachmark"),to={COLOR:Zi.CONTRAST,TRIGGER:Xi.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var eo=class extends we{constructor(){super(...arguments);this.trigger=to.TRIGGER;this.showArrow=to.ARROW;this.closeButton=to.CLOSE_BUTTON;this.disableAriaExpanded=to.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=to.COLOR,this.showArrow=to.ARROW}};f([g({type:String,reflect:!0})],eo.prototype,"trigger",2),f([g({type:Boolean,attribute:"show-arrow"})],eo.prototype,"showArrow",2),f([g({type:Boolean,reflect:!0,attribute:"close-button"})],eo.prototype,"closeButton",2),f([g({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],eo.prototype,"disableAriaExpanded",2);var _c=eo;_c.register(jm);var Bb=_c;var Ym=j.constructTagName("dialog"),Ub={DEFAULT:"default",PROMOTIONAL:"promotional"},qe={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Ub.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0};var gi=class{static dispatchDialogEvent(i,e,s=!0){e.dispatchEvent(new CustomEvent(i,{detail:{show:e.visible},composed:!0,bubbles:s}))}static onShowDialog(i){this.dispatchDialogEvent("shown",i)}static onHideDialog(i){this.dispatchDialogEvent("hidden",i)}static onCloseDialog(i,e=!0){this.dispatchDialogEvent("close",i,e)}static onCreatedDialog(i){this.dispatchDialogEvent("created",i)}static onDestroyedDialog(i){this.dispatchDialogEvent("destroyed",i)}};var Gb=H`
|
2358
2358
|
:host {
|
2359
2359
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2360
2360
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2476,7 +2476,7 @@
|
|
2476
2476
|
mdc-text::part(text) {
|
2477
2477
|
margin: 0;
|
2478
2478
|
}
|
2479
|
-
`,
|
2479
|
+
`,Wm=[Gb];var zt=class extends Vn(zn(_n(q))){constructor(){super(...arguments);this.id="";this.visible=qe.VISIBLE;this.zIndex=qe.Z_INDEX;this.size=qe.SIZE;this.variant=qe.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedBy=null;this.ariaDescription=null;this.headerTagName=qe.HEADER_TAG_NAME;this.descriptionTagName=qe.DESCRIPTION_TAG_NAME;this.role=qe.ROLE;this.disableAriaHasPopup=qe.DISABLE_ARIA_HAS_POPUP;this.focusTrap=qe.FOCUS_TRAP;this.preventScroll=!0;this.triggerElement=null;this.backdropElement=null;this.lastActiveElement=null;this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),e.stopPropagation(),this.closeDialog())}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var e,s,n;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),(e=this.backdropElement)==null||e.remove(),this.backdropElement=null,(s=this.triggerElement)==null||s.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(n=this.deactivateFocusTrap)==null||n.call(this),this.focusBackToTrigger(),gi.onDestroyedDialog(this)}applyZIndex(){var e;this.style.setProperty("z-index",`${this.zIndex}`),(e=this.backdropElement)==null||e.style.setProperty("z-index",`${this.zIndex-1}`)}async firstUpdated(e){super.firstUpdated(e),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),gi.onCreatedDialog(this)}async updated(e){if(super.updated(e),e.has("triggerId")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.setupAriaHasPopup()),e.has("visible")){let s=e.get("visible");await this.isOpenUpdated(s,this.visible)}e.has("zIndex")&&(this.zIndex===null&&(this.zIndex=qe.Z_INDEX),this.applyZIndex()),e.has("variant")&&this.updateFooterButtonColors(this.variant),(e.has("ariaLabel")||e.has("ariaLabelledBy")||e.has("ariaDescribedBy")||e.has("ariaDescription")||e.has("headerText")||e.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),e.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var e,s;this.disableAriaHasPopup||(s=this.triggerElement)==null||s.setAttribute("aria-haspopup",((e=this.triggerElement)==null?void 0:e.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerId&&this.setAttribute("aria-labelledby",this.triggerId)),!this.ariaDescribedBy&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerId&&this.setAttribute("aria-describedby",this.triggerId))}createBackdrop(){var n;let e=document.createElement("div");e.classList.add("dialog-backdrop");let s=document.createElement("style");s.textContent=`
|
2480
2480
|
.dialog-backdrop {
|
2481
2481
|
position: fixed;
|
2482
2482
|
top: 0;
|
@@ -2486,8 +2486,8 @@
|
|
2486
2486
|
background: var(--mds-color-theme-common-overlays-secondary-normal);
|
2487
2487
|
z-index: ${this.zIndex-1};
|
2488
2488
|
}
|
2489
|
-
`,e.appendChild(s),(n=this.parentElement)==null||n.appendChild(e),this.backdropElement=e}closeDialog(){gi.onCloseDialog(this,!1)}async isOpenUpdated(e,s){var n,h,m,x,R,$;e!==s&&(s&&!e?(this.lastActiveElement=document.activeElement,this.createBackdrop(),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((n=this.activateFocusTrap)==null||n.call(this)),(h=this.setInitialFocus)==null||h.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),gi.onShowDialog(this)):!s&&e&&((x=this.backdropElement)==null||x.remove(),this.backdropElement=null,(R=this.triggerElement)==null||R.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),($=this.deactivateFocusTrap)==null||$.call(this),this.focusBackToTrigger(),gi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}render(){return
|
2490
|
-
${this.headerText?
|
2489
|
+
`,e.appendChild(s),(n=this.parentElement)==null||n.appendChild(e),this.backdropElement=e}closeDialog(){gi.onCloseDialog(this,!1)}async isOpenUpdated(e,s){var n,h,m,x,R,$;e!==s&&(s&&!e?(this.lastActiveElement=document.activeElement,this.createBackdrop(),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((n=this.activateFocusTrap)==null||n.call(this)),(h=this.setInitialFocus)==null||h.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),gi.onShowDialog(this)):!s&&e&&((x=this.backdropElement)==null||x.remove(),this.backdropElement=null,(R=this.triggerElement)==null||R.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),($=this.deactivateFocusTrap)==null||$.call(this),this.focusBackToTrigger(),gi.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}render(){return L`
|
2490
|
+
${this.headerText?L` <div part="header-section">
|
2491
2491
|
<div part="header">
|
2492
2492
|
<slot name="header-prefix"></slot>
|
2493
2493
|
<mdc-text
|
@@ -2498,7 +2498,7 @@
|
|
2498
2498
|
${this.headerText}
|
2499
2499
|
</mdc-text>
|
2500
2500
|
</div>
|
2501
|
-
${this.descriptionText?
|
2501
|
+
${this.descriptionText?L`<mdc-text
|
2502
2502
|
part="description-text"
|
2503
2503
|
tagname="${vt[this.descriptionTagName.toUpperCase()]}"
|
2504
2504
|
type="${it.BODY_MIDSIZE_REGULAR}"
|
@@ -2518,7 +2518,7 @@
|
|
2518
2518
|
<slot name="dialog-body"></slot>
|
2519
2519
|
</div>
|
2520
2520
|
${this.renderFooter()}
|
2521
|
-
`}};zt.styles=[...q.styles,...
|
2521
|
+
`}};zt.styles=[...q.styles,...Wm],f([g({type:String,reflect:!0})],zt.prototype,"id",2),f([g({type:String,reflect:!0})],zt.prototype,"triggerId",2),f([g({type:Boolean,reflect:!0})],zt.prototype,"visible",2),f([g({type:Number,reflect:!0,attribute:"z-index"})],zt.prototype,"zIndex",2),f([g({type:String,reflect:!0})],zt.prototype,"size",2),f([g({type:String,reflect:!0})],zt.prototype,"variant",2),f([g({type:String,attribute:"close-button-aria-label"})],zt.prototype,"closeButtonAriaLabel",2),f([g({type:String,reflect:!0,attribute:"aria-label"})],zt.prototype,"ariaLabel",2),f([g({type:String,reflect:!0,attribute:"aria-labelledby"})],zt.prototype,"ariaLabelledby",2),f([g({type:String,reflect:!0,attribute:"aria-describedby"})],zt.prototype,"ariaDescribedBy",2),f([g({type:String,reflect:!0,attribute:"aria-description"})],zt.prototype,"ariaDescription",2),f([g({type:String,reflect:!0,attribute:"header-text"})],zt.prototype,"headerText",2),f([g({type:String,reflect:!0,attribute:"description-text"})],zt.prototype,"descriptionText",2),f([g({type:String,reflect:!0,attribute:"header-tag-name"})],zt.prototype,"headerTagName",2),f([g({type:String,reflect:!0,attribute:"description-tag-name"})],zt.prototype,"descriptionTagName",2),f([g({type:String,reflect:!0})],zt.prototype,"role",2),f([g({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],zt.prototype,"disableAriaHasPopup",2),f([g({type:Boolean,reflect:!0,attribute:"focus-trap"})],zt.prototype,"focusTrap",2);var Sc=zt;Sc.register(Ym);var Hb=Sc;var qm=j.constructTagName("divider"),ro={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Qs={SOLID:"solid",GRADIENT:"gradient"},be={POSITIVE:"positive",NEGATIVE:"negative"},ta={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},io={ORIENTATION:ro.HORIZONTAL,VARIANT:Qs.SOLID,ARROW_DIRECTION:be.NEGATIVE,BUTTON_DIRECTION:be.NEGATIVE};var jb=[Et,H`
|
2522
2522
|
:host {
|
2523
2523
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2524
2524
|
--mdc-divider-width: 0.0625rem;
|
@@ -2715,11 +2715,11 @@
|
|
2715
2715
|
line-height: var(--mdc-divider-text-line-height);
|
2716
2716
|
flex-shrink: 0;
|
2717
2717
|
}
|
2718
|
-
`],
|
2718
|
+
`],Km=jb;var bi=class extends q{constructor(){super(...arguments);this.orientation=io.ORIENTATION;this.variant=io.VARIANT;this.arrowDirection=io.ARROW_DIRECTION;this.buttonPosition=io.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Qs).includes(e)?e:io.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(ro).includes(e)?e:io.ORIENTATION)}ensureValidDirections(){let e=this.orientation===ro.HORIZONTAL?be.NEGATIVE:be.POSITIVE;Object.values(be).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(be).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===ro.HORIZONTAL,s=this.arrowDirection===be.POSITIVE;return e?s?ta.UP:ta.DOWN:s?ta.RIGHT:ta.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 n=s.some(x=>x.tagName===Ds.toUpperCase()),h=s.some(x=>x.tagName===Vi.toUpperCase());n&&!h?this.setAttribute("data-type","mdc-text-divider"):!n&&h&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return L`
|
2719
2719
|
<div></div>
|
2720
2720
|
<slot @slotchange=${this.inferDividerType}></slot>
|
2721
2721
|
<div></div>
|
2722
|
-
`}};bi.styles=[...q.styles,...
|
2722
|
+
`}};bi.styles=[...q.styles,...Km],f([g({type:String,reflect:!0})],bi.prototype,"orientation",2),f([g({type:String,reflect:!0})],bi.prototype,"variant",2),f([g({type:String,attribute:"arrow-direction",reflect:!0})],bi.prototype,"arrowDirection",2),f([g({type:String,attribute:"button-position",reflect:!0})],bi.prototype,"buttonPosition",2);var Ic=bi;Ic.register(qm);var Yb=Ic;var Wb=H`
|
2723
2723
|
:host([selected]) {
|
2724
2724
|
border: 2px solid;
|
2725
2725
|
--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
|
+
`,Xm=[Wb];var Zm=j.constructTagName("filterchip"),kc={ICON_NAME:"check-bold",COLOR:"default"};var ea=class extends Ko{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=kc.COLOR}setSelected(e){e?(this.iconName=kc.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)}};ea.styles=[...Ko.styles,...Xm],f([g({type:Boolean,reflect:!0})],ea.prototype,"selected",2);var Cc=ea;Cc.register(Zm);var qb=Cc;var Kb=H`
|
2745
2745
|
:host::part(container) {
|
2746
2746
|
display: flex;
|
2747
2747
|
flex-direction: column;
|
@@ -2757,7 +2757,7 @@
|
|
2757
2757
|
:host::part(label-text) {
|
2758
2758
|
font-weight: bold;
|
2759
2759
|
}
|
2760
|
-
`,
|
2760
|
+
`,Jm=[Kb];var Un=class extends jt(ge){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.disabled=void 0}render(){var e;return L`
|
2761
2761
|
<div
|
2762
2762
|
part="container"
|
2763
2763
|
role="${this.isRadio?st.RADIOGROUP:st.GROUP}"
|
@@ -2768,7 +2768,7 @@
|
|
2768
2768
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
2769
2769
|
<slot></slot>
|
2770
2770
|
</div>
|
2771
|
-
`}};
|
2771
|
+
`}};Un.styles=[...ge.styles,...Jm];var wc=Un;var Qm=j.constructTagName("formfieldgroup");wc.register(Qm);var Gn=wc;Fs.register(on);var Xb=Fs;var tu=$i(class extends hi{constructor(l){if(super(l),l.type!==nr.PROPERTY&&l.type!==nr.ATTRIBUTE&&l.type!==nr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!nn(l))throw Error("`live` bindings can only contain a single expression")}render(l){return l}update(l,[i]){if(i===Ie||i===W)return i;let e=l.element,s=l.name;if(l.type===nr.PROPERTY){if(i===e[s])return Ie}else if(l.type===nr.BOOLEAN_ATTRIBUTE){if(!!i===e.hasAttribute(s))return Ie}else if(l.type===nr.ATTRIBUTE&&e.getAttribute(s)===i+"")return Ie;return pp(l),i}});ge.register(zm);var Ke=ge;var eu=j.constructTagName("input"),Hn={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Lc={OFF:"off",ON:"on"},Xo={PASSWORD:"password",TEXT:"text",SEARCH:"search"},ru={MAX_LENGTH:10,VALIDATION:Yt.ERROR},jr={VALIDATION:Yt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Bt.TERTIARY,CLEAR_BUTTON_SIZE:pi[20],PREFIX_TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:vt.SPAN,AUTO_COMPLETE:Lc.OFF,INPUT_TYPE:Xo.TEXT};var Zb=[H`
|
2772
2772
|
:host {
|
2773
2773
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2774
2774
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2892,7 +2892,7 @@
|
|
2892
2892
|
opacity: 0;
|
2893
2893
|
pointer-events: none;
|
2894
2894
|
}
|
2895
|
-
`,...At(!0)],
|
2895
|
+
`,...At(!0)],iu=Zb;var Xt=class extends Le(jt(Ke)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Hn.OFF;this.autocomplete=Lc.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(e){this.value=e}attributeChangedCallback(e,s,n){super.attributeChangedCallback(e,s,n),e==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(h=>{this.onerror&&this.onerror(h)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(e){this.updateValue(),this.setInputValidity();let s=e.constructor;this.dispatchEvent(new s(e.type,e))}handleKeyDown(e){var s;e.key===Q.ENTER&&((s=this.form)==null||s.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?L`
|
2896
2896
|
<mdc-icon
|
2897
2897
|
class="leading-icon"
|
2898
2898
|
part="leading-icon"
|
@@ -2901,16 +2901,16 @@
|
|
2901
2901
|
length-unit="${jr.ICON_SIZE_UNIT}"
|
2902
2902
|
>
|
2903
2903
|
</mdc-icon>
|
2904
|
-
`:W}renderPrefixText(){return this.prefixText?
|
2904
|
+
`:W}renderPrefixText(){return this.prefixText?L`
|
2905
2905
|
<mdc-text
|
2906
2906
|
class="prefix-text"
|
2907
2907
|
tagname="${jr.PREFIX_TEXT_TAG}"
|
2908
2908
|
type="${jr.PREFIX_TEXT_TYPE}"
|
2909
2909
|
aria-hidden="true"
|
2910
2910
|
>
|
2911
|
-
${this.prefixText.slice(0,
|
2911
|
+
${this.prefixText.slice(0,ru.MAX_LENGTH)}
|
2912
2912
|
</mdc-text>
|
2913
|
-
`:W}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(e=!1){let s=e||this.value&&this.trailingButton;return s?
|
2913
|
+
`:W}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(e=!1){let s=e||this.value&&this.trailingButton;return s?L`
|
2914
2914
|
<mdc-button
|
2915
2915
|
part="trailing-button"
|
2916
2916
|
class="own-focus-ring ${s?"":"hidden"}"
|
@@ -2921,13 +2921,13 @@
|
|
2921
2921
|
@click=${this.clearInputText}
|
2922
2922
|
?disabled=${this.disabled||this.readonly||!s}
|
2923
2923
|
></mdc-button>
|
2924
|
-
`:W}renderInputElement(e,s=!1){var h;let n=s?"":this.placeholder;return
|
2924
|
+
`:W}renderInputElement(e,s=!1){var h;let n=s?"":this.placeholder;return L`<input
|
2925
2925
|
aria-label="${(h=this.dataAriaLabel)!=null?h:""}"
|
2926
2926
|
class="input"
|
2927
2927
|
part="mdc-input"
|
2928
2928
|
id="${this.id}"
|
2929
2929
|
name="${this.name}"
|
2930
|
-
.value="${
|
2930
|
+
.value="${tu(this.value)}"
|
2931
2931
|
?disabled="${this.disabled}"
|
2932
2932
|
?readonly="${this.readonly}"
|
2933
2933
|
?required="${this.required}"
|
@@ -2947,7 +2947,7 @@
|
|
2947
2947
|
@input=${this.onInput}
|
2948
2948
|
@change=${this.onChange}
|
2949
2949
|
@keydown=${this.handleKeyDown}
|
2950
|
-
/>`}render(){return
|
2950
|
+
/>`}render(){return L`
|
2951
2951
|
${this.renderLabel()}
|
2952
2952
|
<div class="input-container mdc-focus-ring" part="input-container">
|
2953
2953
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
@@ -2958,7 +2958,7 @@
|
|
2958
2958
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2959
2959
|
</div>
|
2960
2960
|
${this.helpText?this.renderHelperText():W}
|
2961
|
-
`}};Xt.styles=[...Ke.styles,...
|
2961
|
+
`}};Xt.styles=[...Ke.styles,...iu],f([g({type:String})],Xt.prototype,"placeholder",2),f([g({type:Boolean})],Xt.prototype,"readonly",2),f([g({type:String,attribute:"prefix-text"})],Xt.prototype,"prefixText",2),f([g({type:String,attribute:"leading-icon"})],Xt.prototype,"leadingIcon",2),f([g({type:Boolean,attribute:"trailing-button"})],Xt.prototype,"trailingButton",2),f([g({type:Number})],Xt.prototype,"maxlength",2),f([g({type:Number})],Xt.prototype,"minlength",2),f([g({type:String})],Xt.prototype,"autocapitalize",2),f([g({type:String})],Xt.prototype,"autocomplete",2),f([g({type:Boolean})],Xt.prototype,"autofocus",2),f([g({type:String})],Xt.prototype,"dirname",2),f([g({type:String})],Xt.prototype,"pattern",2),f([g({type:String})],Xt.prototype,"list",2),f([g({type:Number})],Xt.prototype,"size",2),f([g({type:String,attribute:"clear-aria-label"})],Xt.prototype,"clearAriaLabel",2);var Yr=Xt;Yr.register(eu);var Jb=Yr;var Qb=H`
|
2962
2962
|
:host {
|
2963
2963
|
height: 1.5rem;
|
2964
2964
|
gap: 0.25rem;
|
@@ -2989,9 +2989,9 @@
|
|
2989
2989
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2990
2990
|
cursor: auto;
|
2991
2991
|
}
|
2992
|
-
`,
|
2992
|
+
`,ou=[Et,Qb];var jn=j.constructTagName("inputchip"),Yn={TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,TAG_NAME:vt.SPAN,CLOSE_ICON:"cancel-bold"};var oo=class extends Qt($t(q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?L` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return L`
|
2993
2993
|
${this.renderIcon()}
|
2994
|
-
${this.label?
|
2994
|
+
${this.label?L`<mdc-text part="label" type="${Yn.TEXT_TYPE}" tagname="${Yn.TAG_NAME}"
|
2995
2995
|
>${this.label}</mdc-text
|
2996
2996
|
>`:W}
|
2997
2997
|
<mdc-button
|
@@ -2999,11 +2999,11 @@
|
|
2999
2999
|
variant="tertiary"
|
3000
3000
|
part="close-icon"
|
3001
3001
|
aria-label="${this.clearAriaLabel}"
|
3002
|
-
prefix-icon="${
|
3002
|
+
prefix-icon="${Yn.CLOSE_ICON}"
|
3003
3003
|
size="20"
|
3004
3004
|
@click="${this.handleClose}"
|
3005
3005
|
></mdc-button>
|
3006
|
-
`}};oo.styles=[...q.styles,...
|
3006
|
+
`}};oo.styles=[...q.styles,...ou],f([g({type:String})],oo.prototype,"label",2),f([g({type:Boolean})],oo.prototype,"error",2),f([g({type:String,attribute:"clear-aria-label"})],oo.prototype,"clearAriaLabel",2);var Nc=oo;Nc.register(jn);var ty=Nc;var ey=H`
|
3007
3007
|
:host {
|
3008
3008
|
gap: 0.25rem;
|
3009
3009
|
}
|
@@ -3061,31 +3061,97 @@
|
|
3061
3061
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
3062
3062
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
3063
3063
|
}
|
3064
|
-
`,
|
3064
|
+
`,su=[ey];var ra=class extends Qt(ui){constructor(){super(...arguments);this.size=Hp.LINK_SIZE}getIconSize(){switch(this.size){case Tn.SMALL:return xn.SMALL;case Tn.MIDSIZE:return xn.MIDSIZE;default:return xn.LARGE}}render(){return L`
|
3065
3065
|
<slot></slot>
|
3066
|
-
${this.iconName?
|
3067
|
-
`}};
|
3066
|
+
${this.iconName?L` <mdc-icon name=${this.iconName} size=${this.getIconSize()} length-unit="rem"></mdc-icon> `:W}
|
3067
|
+
`}};ra.styles=[...ui.styles,...su],f([g({type:String,reflect:!0})],ra.prototype,"size",2);var ia=ra;ia.register(En);var ry=ia;var au=j.constructTagName("linkbutton"),Zo={12:12,14:14,16:16},Jo={SIZE:Zo[16],ROLE:st.BUTTON,INLINE:Do.INLINE,INVERTED:Do.INVERTED};var nu=l=>{switch(l){case Zo[12]:return .75;case Zo[14]:return .875;default:return 1}};var iy=H`
|
3068
|
+
:host {
|
3069
|
+
--mdc-link-color-disabled: var(--mds-color-theme-text-primary-disabled);
|
3070
|
+
gap: 0.25rem;
|
3071
|
+
}
|
3072
|
+
|
3073
|
+
:host([size='16']) {
|
3074
|
+
font-size: var(--mds-font-apps-body-large-regular-font-size);
|
3075
|
+
font-weight: var(--mds-font-apps-body-large-regular-font-weight);
|
3076
|
+
line-height: var(--mds-font-apps-body-large-regular-line-height);
|
3077
|
+
text-decoration: var(--mds-font-apps-body-large-regular-text-decoration);
|
3078
|
+
text-transform: var(--mds-font-apps-body-large-regular-text-case);
|
3079
|
+
}
|
3080
|
+
|
3081
|
+
:host([size='14']) {
|
3082
|
+
font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
3083
|
+
font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
3084
|
+
line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
3085
|
+
text-decoration: var(--mds-font-apps-body-midsize-regular-text-decoration);
|
3086
|
+
text-transform: var(--mds-font-apps-body-midsize-regular-text-case);
|
3087
|
+
}
|
3088
|
+
|
3089
|
+
:host([size='12']) {
|
3090
|
+
font-size: var(--mds-font-apps-body-small-regular-font-size);
|
3091
|
+
font-weight: var(--mds-font-apps-body-small-regular-font-weight);
|
3092
|
+
line-height: var(--mds-font-apps-body-small-regular-line-height);
|
3093
|
+
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
3094
|
+
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
3095
|
+
}
|
3096
|
+
|
3097
|
+
:host([size='16']:hover),
|
3098
|
+
:host([size='16']:active),
|
3099
|
+
:host([size='16'][inline]) {
|
3100
|
+
font-size: var(--mds-font-apps-body-large-regular-underline-font-size);
|
3101
|
+
font-weight: var(--mds-font-apps-body-large-regular-underline-font-weight);
|
3102
|
+
line-height: var(--mds-font-apps-body-large-regular-underline-line-height);
|
3103
|
+
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
3104
|
+
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
3105
|
+
}
|
3106
|
+
|
3107
|
+
:host([size='14']:hover),
|
3108
|
+
:host([size='14']:active),
|
3109
|
+
:host([size='14'][inline]) {
|
3110
|
+
font-size: var(--mds-font-apps-body-midsize-regular-underline-font-size);
|
3111
|
+
font-weight: var(--mds-font-apps-body-midsize-regular-underline-font-weight);
|
3112
|
+
line-height: var(--mds-font-apps-body-midsize-regular-underline-line-height);
|
3113
|
+
text-decoration: var(--mds-font-apps-body-midsize-regular-underline-text-decoration);
|
3114
|
+
text-transform: var(--mds-font-apps-body-midsize-regular-underline-text-case);
|
3115
|
+
}
|
3116
|
+
|
3117
|
+
:host([size='12']:hover),
|
3118
|
+
:host([size='12']:active),
|
3119
|
+
:host([size='12'][inline]) {
|
3120
|
+
font-size: var(--mds-font-apps-body-small-regular-underline-font-size);
|
3121
|
+
font-weight: var(--mds-font-apps-body-small-regular-underline-font-weight);
|
3122
|
+
line-height: var(--mds-font-apps-body-small-regular-underline-line-height);
|
3123
|
+
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
3124
|
+
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
3125
|
+
}
|
3126
|
+
|
3127
|
+
:host([soft-disabled]) {
|
3128
|
+
color: var(--mdc-link-color-disabled);
|
3129
|
+
}
|
3130
|
+
`,lu=[iy];var so=class extends Qt(de){constructor(){super(...arguments);this.size=Jo.SIZE;this.inline=Jo.INLINE;this.inverted=Jo.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Jo.ROLE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(Zo).includes(e)?`${e}`:Jo.SIZE.toString())}render(){return L`
|
3131
|
+
<slot></slot>
|
3132
|
+
${this.iconName?L` <mdc-icon name=${this.iconName} size=${nu(this.size)} length-unit="rem"></mdc-icon> `:W}
|
3133
|
+
`}};so.styles=[...ia.styles,...lu],f([g({type:Number,reflect:!0})],so.prototype,"size",2),f([g({type:Boolean,reflect:!0})],so.prototype,"inline",2),f([g({type:Boolean,reflect:!0})],so.prototype,"inverted",2);var Rc=so;Rc.register(au);var oy=Rc;ui.register(Bp);var sy=ui;var Wn=j.constructTagName("listitem"),oa={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Mc={VARIANT:oa.FULL_WIDTH,TOOLTIP_PLACEMENT:Ut.TOP};var cu=j.constructTagName("list"),Oc="header-id";var ay=H`
|
3068
3134
|
:host::part(header-text) {
|
3069
3135
|
padding: 0.5rem 0.75rem;
|
3070
3136
|
}
|
3071
|
-
`,
|
3137
|
+
`,du=[ay];var Qo=class extends jt(q){constructor(){super();this.dataRole=st.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(e){var h;let s=this.getCurrentIndex(e.target),n=this.getNewIndexBasedOnKey(e.key,s,this.listItems.length);n!==void 0&&((h=this.listItems[n])==null||h.focus(),this.resetTabIndexAndSetActiveTabIndex(n))}getCurrentIndex(e){return this.listItems.findIndex(s=>s===e||s===e.parentElement)}getNewIndexBasedOnKey(e,s,n){switch(e){case Q.ARROW_DOWN:return(s+1)%n;case Q.ARROW_UP:return(s-1+n)%n;case Q.HOME:return 0;case Q.END:return n-1;default:return}}handleMouseClick(e){let s=this.getCurrentIndex(e.target);this.resetTabIndexAndSetActiveTabIndex(s)}resetTabIndexAndSetActiveTabIndex(e){this.listItems.forEach((s,n)=>{let h=e===n?"0":"-1";s==null||s.setAttribute("tabindex",h)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var s;let e=this.headerText?L`
|
3072
3138
|
<mdc-text
|
3073
|
-
id="${
|
3139
|
+
id="${Oc}"
|
3074
3140
|
part="header-text"
|
3075
3141
|
type="${it.BODY_MIDSIZE_BOLD}"
|
3076
3142
|
tagname="${vt.SPAN}"
|
3077
3143
|
>${this.headerText}</mdc-text
|
3078
3144
|
>
|
3079
|
-
`:W;return
|
3145
|
+
`:W;return L`
|
3080
3146
|
<div
|
3081
3147
|
role="${this.dataRole}"
|
3082
|
-
aria-labelledby="${this.headerText?
|
3148
|
+
aria-labelledby="${this.headerText?Oc:""}"
|
3083
3149
|
aria-label="${(s=this.dataAriaLabel)!=null?s:""}"
|
3084
3150
|
>
|
3085
3151
|
${e}
|
3086
3152
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
3087
3153
|
</div>
|
3088
|
-
`}};
|
3154
|
+
`}};Qo.styles=[...q.styles,...du],f([Ft({selector:`${Wn}:not([disabled])`})],Qo.prototype,"listItems",2),f([g({type:String,attribute:"header-text",reflect:!0})],Qo.prototype,"headerText",2);var Pc=Qo;Pc.register(cu);var ny=Pc;var sa=j.constructTagName("tooltip"),Pe={DESCRIPTION:"description",LABEL:"label",NONE:"none"},yi={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Pe.DESCRIPTION};var ly=H`
|
3089
3155
|
:host {
|
3090
3156
|
--mdc-tooltip-max-width: 400px;
|
3091
3157
|
--mdc-tooltip-padding: 0.75rem;
|
@@ -3109,7 +3175,7 @@
|
|
3109
3175
|
:host([color='contrast'])::part(popover-content) {
|
3110
3176
|
color: var(--mdc-tooltip-text-color-contrast);
|
3111
3177
|
}
|
3112
|
-
`,
|
3178
|
+
`,hu=[ly];var ts=class extends we{constructor(){super(...arguments);this.tooltipType=yi.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||yi.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||yi.OFFSET,this.placement=this.placement||yi.PLACEMENT,this.role=st.TOOLTIP,this.trigger="mouseenter focusin",this.preventScroll=!1,this.flip=!0,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(n=>n.textContent).join(" "))==null?void 0:s.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(Pe).includes(e)?e:yi.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Ye()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case Pe.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case Pe.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Ut).includes(this.placement)||(this.placement=yi.PLACEMENT)}onTooltipTypeUpdated(e){let s=e.get("tooltipType");Object.values(Pe).includes(this.tooltipType)||this.setTooltipType(yi.TOOLTIP_TYPE);let n=document.getElementById(this.triggerID);if(n){let h=this.getTooltipText();switch(this.tooltipType){case Pe.DESCRIPTION:s===Pe.LABEL&&n.removeAttribute("aria-labelledby"),n.setAttribute("aria-describedby",this.id);break;case Pe.LABEL:s===Pe.DESCRIPTION&&n.removeAttribute("aria-describedby"),n.setAttribute("aria-labelledby",this.id);break;default:s===Pe.DESCRIPTION?n.removeAttribute("aria-describedby"):s===Pe.LABEL&&n.removeAttribute("aria-labelledby");break}h.length>0&&this.tooltipType!==Pe.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)}};ts.styles=[...we.styles,...hu],f([g({type:String,attribute:"tooltip-type",reflect:!0})],ts.prototype,"tooltipType",2),f([Ja()],ts.prototype,"defaultSlotNodes",2);var Dc=ts;Dc.register(sa);var cy=Dc;var dy=H`
|
3113
3179
|
:host {
|
3114
3180
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
3115
3181
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -3204,21 +3270,21 @@
|
|
3204
3270
|
display: flex;
|
3205
3271
|
flex-direction: row;
|
3206
3272
|
}
|
3207
|
-
`,
|
3273
|
+
`,pu=[dy,...At()];var mu=()=>`listitem-tooltip-popover-${Ye()}`,uu=()=>`listitem-tooltip-triggerid-${Ye()}`;var ao=class{static dispatchListItemEvent(i,e){e.dispatchEvent(new Event(i,{composed:!0,bubbles:!0}))}static onDisableListItem(i){this.dispatchListItemEvent("disabled",i)}static onEnableListItem(i){this.dispatchListItemEvent("enabled",i)}static onCreatedListItem(i){setTimeout(()=>this.dispatchListItemEvent("created",i),0)}static onDestroyedListItem(i){this.dispatchListItemEvent("destroyed",i)}};var ye=class extends $t(Ue(q)){constructor(){super();this.variant=Mc.VARIANT;this.tooltipPlacement=Mc.TOOLTIP_PLACEMENT;this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseenter",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}connectedCallback(){super.connectedCallback(),this.role=this.role||st.LISTITEM,this.id=this.id||uu(),ao.onCreatedListItem(this)}disconnectedCallback(){super.disconnectedCallback(),ao.onDestroyedListItem(this)}handleKeyDown(e){(e.key===Q.ENTER||e.key===Q.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 s,n;if(!this.tooltipText)return;this.hideTooltipOnLeave();let e=document.createElement(sa);e.id=mu(),e.textContent=this.tooltipText,e.setAttribute("triggerid",this.id),e.setAttribute("placement",this.tooltipPlacement),e.setAttribute("visible",""),e.setAttribute("show-arrow",""),(s=this.parentElement)!=null&&s.hasAttribute("slot")&&e.setAttribute("slot",this.parentElement.getAttribute("slot")||""),(n=this.parentElement)==null||n.after(e)}hideTooltipOnLeave(){let e=document.querySelector(`${sa}[triggerid="${this.id}"]`);e&&e.remove()}getText(e,s,n){return L`
|
3208
3274
|
<slot name="${e}">
|
3209
|
-
${n?
|
3275
|
+
${n?L`<mdc-text part="${e}" type="${s}" tagname="${vt.SPAN}">${n}</mdc-text>`:W}
|
3210
3276
|
</slot>
|
3211
|
-
`}disableSlottedChildren(e=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(s=>{e?(s.setAttribute("disabled",""),
|
3277
|
+
`}disableSlottedChildren(e=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(s=>{e?(s.setAttribute("disabled",""),ao.onDisableListItem(this)):(s.removeAttribute("disabled"),ao.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${e}`)}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled)),e.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled)}renderTrailingControls(){return L`<slot
|
3212
3278
|
name="trailing-controls"
|
3213
3279
|
@click=${this.stopEventPropagation}
|
3214
3280
|
@keyup=${this.stopEventPropagation}
|
3215
3281
|
@keydown=${this.stopEventPropagation}
|
3216
|
-
></slot>`}renderLeadingControls(){return
|
3282
|
+
></slot>`}renderLeadingControls(){return L`<slot
|
3217
3283
|
name="leading-controls"
|
3218
3284
|
@click=${this.stopEventPropagation}
|
3219
3285
|
@keyup=${this.stopEventPropagation}
|
3220
3286
|
@keydown=${this.stopEventPropagation}
|
3221
|
-
></slot>`}stopEventPropagation(e){(e instanceof KeyboardEvent&&(e.key===Q.ENTER||e.key===Q.SPACE)||e instanceof MouseEvent)&&e.stopPropagation()}render(){return
|
3287
|
+
></slot>`}stopEventPropagation(e){(e instanceof KeyboardEvent&&(e.key===Q.ENTER||e.key===Q.SPACE)||e instanceof MouseEvent)&&e.stopPropagation()}render(){return L`
|
3222
3288
|
<div part="leading">
|
3223
3289
|
${this.renderLeadingControls()}
|
3224
3290
|
<div part="leading-text">
|
@@ -3234,7 +3300,7 @@
|
|
3234
3300
|
</div>
|
3235
3301
|
${this.renderTrailingControls()}
|
3236
3302
|
</div>
|
3237
|
-
`}};
|
3303
|
+
`}};ye.styles=[...q.styles,...pu],f([Ft({slot:"leading-controls"})],ye.prototype,"leadingControlsSlot",2),f([Ft({slot:"trailing-controls"})],ye.prototype,"trailingControlsSlot",2),f([g({type:String,reflect:!0})],ye.prototype,"variant",2),f([g({type:String,reflect:!0})],ye.prototype,"label",2),f([g({type:String,reflect:!0,attribute:"secondary-label"})],ye.prototype,"secondaryLabel",2),f([g({type:String,reflect:!0,attribute:"tertiary-label"})],ye.prototype,"tertiaryLabel",2),f([g({type:String,reflect:!0,attribute:"side-header-text"})],ye.prototype,"sideHeaderText",2),f([g({type:String,reflect:!0,attribute:"subline-text"})],ye.prototype,"sublineText",2),f([g({type:Boolean,reflect:!0,attribute:"soft-disabled"})],ye.prototype,"softDisabled",2),f([g({type:String,reflect:!0,attribute:"tooltip-text"})],ye.prototype,"tooltipText",2),f([g({type:String,reflect:!0,attribute:"tooltip-placement"})],ye.prototype,"tooltipPlacement",2);var Wr=ye;Wr.register(Wn);var hy=Wr;var py=H`
|
3238
3304
|
:host {
|
3239
3305
|
--mdc-marker-width: 0.25rem;
|
3240
3306
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -3259,7 +3325,7 @@
|
|
3259
3325
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3260
3326
|
);
|
3261
3327
|
}
|
3262
|
-
`,
|
3328
|
+
`,fu=[py];var vu=j.constructTagName("marker"),gu={SOLID:"solid",STRIPED:"striped"};var aa=class extends q{constructor(){super(...arguments);this.variant=gu.SOLID}};aa.styles=[...q.styles,...fu],f([g({type:String,reflect:!0})],aa.prototype,"variant",2);var Fc=aa;Fc.register(vu);var my=Fc;var Wt=j.constructTagName("menupopover"),$c={PLACEMENT:Ut.BOTTOM_START,ORIENTATION:"vertical"};var qr=j.constructTagName("menusection"),bu={DIVIDER_VARIANT:"solid"};var Ei=j.constructTagName("sidenavigation"),xr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",HIDDEN:"hidden"},na={VARIANT:xr.FLEXIBLE};var la=j.constructTagName("menubar"),yu={ORIENTATION:"vertical"};var uy=H`
|
3263
3329
|
:host {
|
3264
3330
|
display: flex;
|
3265
3331
|
}
|
@@ -3271,7 +3337,7 @@
|
|
3271
3337
|
:host([aria-orientation='vertical']) {
|
3272
3338
|
flex-direction: column;
|
3273
3339
|
}
|
3274
|
-
`,
|
3340
|
+
`,Eu=[uy];var ca=class extends q{constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}async connectedCallback(){var i;super.connectedCallback(),this.role=st.MENUBAR,this.ariaOrientation=yu.ORIENTATION,await this.updateComplete,(i=this.menusections)==null||i.forEach(e=>{e.setAttribute("divider-variant","gradient")})}get menuItems(){var h,m;let i=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"),e=(m=i==null?void 0:i.assignedElements({flatten:!0}))!=null?m:[],s=[],n=x=>{x.role===st.MENUITEM&&!x.hasAttribute("disabled")?s.push(x):x.tagName.toLowerCase()===qr&&Array.from(x.children).forEach(n)};return e.forEach(n),s}getAllPopovers(){var n,h;if(!this.menuItems.length)return[];let i=(h=(n=this.menuItems[0])==null?void 0:n.closest(Ei))!=null?h:this;if(!i)return[];let e=[],s=m=>{m.querySelectorAll(`${Wt}`).forEach(x=>{e.push(x)}),m.querySelectorAll("slot").forEach(x=>{x.assignedElements({flatten:!0}).forEach(s)})};return s(i),e}update(i){super.update(i)}firstUpdated(i){super.firstUpdated(i),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(i){i.forEach((e,s)=>{let n=s===0?"0":"-1";e==null||e.setAttribute("tabindex",n)})}getCurrentIndex(i){return this.menuItems.findIndex(e=>e===i||e===i.parentElement)}getSubmenu(i){if(i)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===i)}showSubmenu(i){if(!i||!this.menuItems.find(n=>n.getAttribute("id")===i))return;let s=this.getSubmenu(i);s&&s.showPopover()}updatePopoverPlacement(){let i=Ut.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",i)})}updateTabIndexAndFocus(i,e,s){var n,h,m;s<0||e<0||(e!==s&&((n=i[e])==null||n.setAttribute("tabindex","-1"),(h=i[s])==null||h.setAttribute("tabindex","0")),(m=i[s])==null||m.focus())}navigateToMenuItem(i,e,s=!1){var m;let{length:n}=this.menuItems;if(n===0)return;let h=i;if(h=e==="prev"?(i-1+n)%n:(i+1)%n,this.updateTabIndexAndFocus(this.menuItems,i,h),s){let x=(m=this.menuItems[h])==null?void 0:m.getAttribute("id");this.getSubmenu(x)&&!this.menuItems[h].hasAttribute("soft-disabled")&&this.showSubmenu(x)}}getKeyWithDirectionFix(i){return window.getComputedStyle(this).direction==="rtl"?i===Q.ARROW_LEFT?Q.ARROW_RIGHT:i===Q.ARROW_RIGHT?Q.ARROW_LEFT:i:i}isTopLevelMenuItem(i){var h;let e=i.parentElement;if(!e||i.role!==st.MENUITEM)return!1;let s=e.tagName.toLowerCase(),n=(h=e.parentElement)==null?void 0:h.tagName.toLowerCase();return s===la||s===Ei||s===qr&&(n===la||n===Ei)}isNestedMenuItem(i){return!!i.closest(Wt)&&i.role===st.MENUITEM}async closeAllMenuPopovers(){let i=[];for(;ve.peek();){let e=ve.pop();e&&(e.hidePopover(),i.push(e))}await Promise.all(i.map(e=>e.updateComplete))}async crossMenubarNavigationOnLeft(i){if(i.role===st.MENUITEM){let s=i.closest(Wt),n=s==null?void 0:s.getAttribute("triggerid"),h=this.menuItems.find(m=>m.getAttribute("id")===n);if(h){this.isTopLevelMenuItem(h)&&(s==null||s.hidePopover()),await(s==null?void 0:s.updateComplete);let m=this.getCurrentIndex(h);this.navigateToMenuItem(m,"prev",!0)}}}async crossMenubarNavigationOnRight(i){if(this.isTopLevelMenuItem(i)&&this.getSubmenu(i.id)&&!i.hasAttribute("soft-disabled"))this.showSubmenu(i.id);else if(this.isNestedMenuItem(i)&&!this.getSubmenu(i.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(i);e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(i){let e=i.parentElement;for(;e;){if(e.tagName.toLowerCase()===Wt){let s=e.getAttribute("triggerid"),n=this.menuItems.find(h=>h.getAttribute("id")===s);if(n)return this.isTopLevelMenuItem(n)?this.menuItems.findIndex(h=>h===n):this.getParentMenuItemIndex(n)}e=e.parentElement}return-1}async handleKeyDown(i){let e=this.getCurrentIndex(i.target);switch(this.getKeyWithDirectionFix(i.key)){case Q.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case Q.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case Q.ARROW_LEFT:{let n=e>=0?this.menuItems[e]:i.target;await this.crossMenubarNavigationOnLeft(n);break}case Q.ARROW_RIGHT:{let n=e>=0?this.menuItems[e]:i.target;await this.crossMenubarNavigationOnRight(n);break}case Q.ARROW_UP:{this.navigateToMenuItem(e,"prev"),i.preventDefault();break}case Q.ARROW_DOWN:{this.navigateToMenuItem(e,"next"),i.preventDefault();break}default:break}}render(){return L`<slot role="${st.GROUP}"></slot>`}};ca.styles=[...q.styles,...Eu],f([Ft({selector:"mdc-menusection",flatten:!0})],ca.prototype,"menusections",2);var zc=ca;zc.register(la);var fy=zc;var da=j.constructTagName("menuitem"),ha={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Vc={POSITIVE:"positive",NEGATIVE:"negative"},Bc={LEADING:"leading",TRAILING:"trailing"};var vy=H`
|
3275
3341
|
:host(:dir(rtl))::part(trailing-arrow),
|
3276
3342
|
:host(:dir(rtl))::part(leading-arrow) {
|
3277
3343
|
transform: rotate(180deg);
|
@@ -3280,23 +3346,23 @@
|
|
3280
3346
|
:host::part(leading-arrow) {
|
3281
3347
|
--mdc-icon-size: 1.25rem;
|
3282
3348
|
}
|
3283
|
-
`,
|
3349
|
+
`,Tu=[vy];var Ti=class extends Wr{constructor(){super();this.name=void 0;this.value=void 0;this.addEventListener("keyup",this.handleKeyUp)}handleKeyDown(e){e.key===Q.ENTER&&(this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){e.key===Q.SPACE&&(this.triggerClickEvent(),e.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=st.MENUITEM,this.variant=oa.INSET_RECTANGLE}renderTrailingControls(){let e=this.arrowDirection===Vc.NEGATIVE?ha.LEFT:ha.RIGHT;return L`
|
3284
3350
|
<slot
|
3285
3351
|
name="trailing-controls"
|
3286
3352
|
@click=${this.stopEventPropagation}
|
3287
3353
|
@keyup=${this.stopEventPropagation}
|
3288
3354
|
@keydown=${this.stopEventPropagation}
|
3289
3355
|
></slot>
|
3290
|
-
${this.arrowPosition===
|
3291
|
-
`}renderLeadingControls(){let e=this.arrowDirection===
|
3356
|
+
${this.arrowPosition===Bc.TRAILING?L`<mdc-icon name="${e}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:W}
|
3357
|
+
`}renderLeadingControls(){let e=this.arrowDirection===Vc.POSITIVE?ha.RIGHT:ha.LEFT;return L`
|
3292
3358
|
<slot
|
3293
3359
|
name="leading-controls"
|
3294
3360
|
@click=${this.stopEventPropagation}
|
3295
3361
|
@keyup=${this.stopEventPropagation}
|
3296
3362
|
@keydown=${this.stopEventPropagation}
|
3297
3363
|
></slot>
|
3298
|
-
${this.arrowPosition===
|
3299
|
-
`}};Ti.styles=[...Wr.styles,...
|
3364
|
+
${this.arrowPosition===Bc.LEADING?L`<mdc-icon name="${e}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
|
3365
|
+
`}};Ti.styles=[...Wr.styles,...Tu],f([g({type:String,reflect:!0,attribute:"arrow-position"})],Ti.prototype,"arrowPosition",2),f([g({type:String,reflect:!0,attribute:"arrow-direction"})],Ti.prototype,"arrowDirection",2),f([g({type:String,reflect:!0})],Ti.prototype,"name",2),f([g({type:String,reflect:!0})],Ti.prototype,"value",2);var Xe=Ti;Xe.register(da);var gy=Xe;var xu=j.constructTagName("statictoggle"),by={DEFAULT:"default",COMPACT:"compact"},Uc={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Au={compact:.75,default:1.25},_u={SIZE:by.DEFAULT};var yy=[H`
|
3300
3366
|
:host {
|
3301
3367
|
--mdc-statictoggle-width: 3rem;
|
3302
3368
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3376,44 +3442,44 @@
|
|
3376
3442
|
border: var(--mdc-statictoggle-border);
|
3377
3443
|
}
|
3378
3444
|
}
|
3379
|
-
`],
|
3445
|
+
`],Su=yy;var es=class extends $t(q){constructor(){super(...arguments);this.checked=!1;this.size=_u.SIZE}render(){return L`
|
3380
3446
|
<slot></slot>
|
3381
3447
|
<div part="slider">
|
3382
3448
|
<mdc-icon
|
3383
|
-
name="${this.checked
|
3449
|
+
name="${this.checked?Uc.CHECKED:Uc.UNCHECKED}"
|
3384
3450
|
class="icon"
|
3385
3451
|
length-unit="rem"
|
3386
|
-
size="${
|
3452
|
+
size="${Au[this.size]}"
|
3387
3453
|
></mdc-icon>
|
3388
3454
|
</div>
|
3389
|
-
`}};
|
3455
|
+
`}};es.styles=[...q.styles,...Su],f([g({type:Boolean,reflect:!0})],es.prototype,"checked",2),f([g({type:String,reflect:!0})],es.prototype,"size",2);var Gc=es;Gc.register(xu);var Ey=Gc;var Iu=j.constructTagName("toggle"),pa={DEFAULT:"default",COMPACT:"compact"};var Hc={SIZE:pa.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var qn=j.constructTagName("menuitemcheckbox"),ma={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},ku={INDICATOR:ma.CHECKBOX};var Ty=H`
|
3390
3456
|
:host::part(checkmark-icon) {
|
3391
3457
|
--mdc-icon-fill-color: currentColor;
|
3392
3458
|
}
|
3393
3459
|
:host .hidden-checkmark {
|
3394
3460
|
visibility: hidden;
|
3395
3461
|
}
|
3396
|
-
`,
|
3462
|
+
`,Cu=[Ty];var rs=class extends Xe{constructor(){super();this.checked=!1;this.indicator=ku.INDICATOR;this.handleMouseClick=()=>{this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))};this.addEventListener("click",this.handleMouseClick)}connectedCallback(){super.connectedCallback(),this.role=st.MENUITEMCHECKBOX}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===ma.CHECKBOX?L`
|
3397
3463
|
<mdc-staticcheckbox
|
3398
3464
|
slot="leading-controls"
|
3399
3465
|
?checked="${this.checked}"
|
3400
3466
|
?disabled="${this.disabled}"
|
3401
3467
|
></mdc-staticcheckbox>
|
3402
|
-
`:W}staticToggle(){return this.indicator===
|
3468
|
+
`:W}staticToggle(){return this.indicator===ma.TOGGLE?L`
|
3403
3469
|
<mdc-statictoggle
|
3404
3470
|
slot="trailing-controls"
|
3405
3471
|
?checked="${this.checked}"
|
3406
3472
|
?disabled="${this.disabled}"
|
3407
|
-
size="${
|
3473
|
+
size="${pa.COMPACT}"
|
3408
3474
|
></mdc-statictoggle>
|
3409
|
-
`:W}getCheckmarkIcon(){return this.indicator===
|
3475
|
+
`:W}getCheckmarkIcon(){return this.indicator===ma.CHECKMARK?L`
|
3410
3476
|
<mdc-icon
|
3411
3477
|
slot="trailing-controls"
|
3412
3478
|
name="check-bold"
|
3413
3479
|
part="checkmark-icon"
|
3414
3480
|
class=${yr({"hidden-checkmark":!this.checked})}
|
3415
3481
|
></mdc-icon>
|
3416
|
-
`:W}render(){return
|
3482
|
+
`:W}render(){return L`
|
3417
3483
|
<div part="leading">
|
3418
3484
|
${this.staticCheckbox()}
|
3419
3485
|
<slot name="leading-controls"></slot>
|
@@ -3431,27 +3497,27 @@
|
|
3431
3497
|
<slot name="trailing-controls"></slot>
|
3432
3498
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
3433
3499
|
</div>
|
3434
|
-
`}};
|
3500
|
+
`}};rs.styles=[...Xe.styles,...Cu],f([g({type:Boolean,reflect:!0})],rs.prototype,"checked",2),f([g({type:String,reflect:!0})],rs.prototype,"indicator",2);var jc=rs;jc.register(qn);var xy=jc;var Kn=j.constructTagName("menuitemradio"),Xn={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},wu={INDICATOR:Xn.RADIO};var Ay=H`
|
3435
3501
|
:host::part(checkmark-icon) {
|
3436
3502
|
--mdc-icon-fill-color: currentColor;
|
3437
3503
|
}
|
3438
3504
|
:host .hidden-checkmark {
|
3439
3505
|
visibility: hidden;
|
3440
3506
|
}
|
3441
|
-
`,
|
3507
|
+
`,Lu=[Ay];var is=class extends Xe{constructor(){super();this.checked=!1;this.indicator=wu.INDICATOR;this.handleMouseClick=()=>{this.disabled||this.checked||(this.updateOtherRadiosCheckedState(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))};this.addEventListener("click",this.handleMouseClick)}connectedCallback(){super.connectedCallback(),this.role=st.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let e=this.closest(`${qr}, ${Wt}`);return!e||!this.name?[]:Array.from(e.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(s=>{s!==this&&s.removeAttribute("checked")})}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=`${this.checked}`,e.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===Xn.RADIO?L`
|
3442
3508
|
<mdc-staticradio
|
3443
3509
|
slot="leading-controls"
|
3444
3510
|
?checked="${this.checked}"
|
3445
3511
|
?disabled="${this.disabled}"
|
3446
3512
|
></mdc-staticradio>
|
3447
|
-
`:W}renderCheckmarkIcon(){return this.indicator===
|
3513
|
+
`:W}renderCheckmarkIcon(){return this.indicator===Xn.CHECKMARK?L`
|
3448
3514
|
<mdc-icon
|
3449
3515
|
slot="trailing-controls"
|
3450
3516
|
name="check-bold"
|
3451
3517
|
part="checkmark-icon"
|
3452
3518
|
class=${yr({"hidden-checkmark":!this.checked})}
|
3453
3519
|
></mdc-icon>
|
3454
|
-
`:W}render(){return
|
3520
|
+
`:W}render(){return L`
|
3455
3521
|
<div part="leading">
|
3456
3522
|
${this.renderStaticRadio()}
|
3457
3523
|
<slot name="leading-controls"></slot>
|
@@ -3469,7 +3535,7 @@
|
|
3469
3535
|
<slot name="trailing-controls"></slot>
|
3470
3536
|
${this.renderCheckmarkIcon()}
|
3471
3537
|
</div>
|
3472
|
-
`}};
|
3538
|
+
`}};is.styles=[...Xe.styles,...Lu],f([g({type:Boolean,reflect:!0})],is.prototype,"checked",2),f([g({type:String,reflect:!0})],is.prototype,"indicator",2);var Yc=is;Yc.register(Kn);var _y=Yc;var Sy=H`
|
3473
3539
|
:host::part(popover-content) {
|
3474
3540
|
padding: 0.75rem 0.5rem;
|
3475
3541
|
}
|
@@ -3477,7 +3543,7 @@
|
|
3477
3543
|
::slotted(mdc-divider) {
|
3478
3544
|
margin-block: 0.25rem;
|
3479
3545
|
}
|
3480
|
-
`,
|
3546
|
+
`,Nu=[Sy];var ua=l=>{var e;if(!l)return!1;let i=(e=l.getAttribute("role"))==null?void 0:e.toLowerCase();return i===st.MENUITEM||i===st.MENUITEMCHECKBOX||i===st.MENUITEMRADIO},Ru=l=>{var i;return((i=l==null?void 0:l.tagName)==null?void 0:i.toLowerCase())===Wt};var fa=class extends we{constructor(){super();this.placement=$c.PLACEMENT;this.menuItems=[];this.onOutsidePopoverClick=e=>{if(ve.peek()!==this)return;let s=this.findClosestPopover(e.target);if(s&&ve.has(s)){this.closeAllMenuPopovers(s);return}let n=e.composedPath(),h=this.contains(e.target)||n.includes(this.triggerElement),m=this.backdropElement?n.includes(this.backdropElement):!1;(!h||m)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=()=>{var e;(e=this.triggerElement)!=null&&e.hasAttribute("soft-disabled")||(this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0))};this.handleItemChangeEvent=e=>{e.stopImmediatePropagation(),e.target&&e.type==="destroyed"&&(e.target.removeEventListener("destroyed",this.handleItemChangeEvent),e.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(s=>s.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("click",this.handleMouseClick),this.addEventListener("created",this.handleItemCreation)}collectMenuItems(){var n;let e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot"),s=(e==null?void 0:e.assignedElements({flatten:!0}))||[];this.menuItems=s.map(h=>h.tagName.toLowerCase()===qr?Array.from(h.children).filter(m=>ua(m)):ua(h)?h:[]).flat().filter(h=>!!h&&!h.hasAttribute("disabled"))}connectedCallback(){super.connectedCallback(),this.role=st.MENU,this.ariaOrientation=$c.ORIENTATION,this.backdrop=!1,this.color=Zi.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(e,s){return e===s||!this.triggerElement?Promise.resolve():(s&&(this.backdrop=this.triggerElement.tagName.toLowerCase()!==da),this.resetMenuNavigation(),super.isOpenUpdated(e,s))}async firstUpdated(e){var s;await super.firstUpdated(e),this.collectMenuItems(),this.resetTabIndexes(0),(s=this.triggerElement)==null||s.setAttribute("aria-haspopup",st.MENU)}resetTabIndexes(e){this.menuItems.length>0&&(this.menuItems.forEach(s=>s.setAttribute("tabindex","-1")),this.menuItems[e].setAttribute("tabindex","0"),this.menuItems[e].focus())}getCurrentIndex(e){return this.menuItems.findIndex(s=>s===e)}resetTabIndexAndSetFocus(e,s){e!==s&&(this.menuItems[s].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.menuItems[e].focus())}closeAllMenuPopovers(e){for(;ve.peek()!==e;){let s=ve.pop();if(s)s.hidePopover();else break}}hasSubmenuWithTriggerId(e){var s,n;return!!e&&((n=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:n.call(s,`${Wt}[triggerid="${e}"]`))!==null}closeMenu(e){let s=e.getAttribute("id");ua(e)&&!this.hasSubmenuWithTriggerId(s)&&this===e.closest(Wt)&&(this.closeAllMenuPopovers(),e.matches(da)&&e.dispatchEvent(new Event("action",{bubbles:!0,composed:!0})))}handleMouseClick(e){let s=e.target;e.isTrusted&&this.closeMenu(s)}handleItemCreation(e){let s=e.target;ua(s)&&(e.stopImmediatePropagation(),s.addEventListener("destroyed",this.handleItemChangeEvent),s.addEventListener("disabled",this.handleItemChangeEvent))}resolveDirectionKey(e,s){if(!s)return e;switch(e){case Q.ARROW_LEFT:return Q.ARROW_RIGHT;case Q.ARROW_RIGHT:return Q.ARROW_LEFT;default:return e}}handleKeyDown(e){var R,$;let s=!1;this.collectMenuItems();let n=e.target,h=this.getCurrentIndex(n);if(h===-1)return;this.resetTabIndexes(h);let m=window.getComputedStyle(this).direction==="rtl";switch(this.resolveDirectionKey(e.key,m)){case Q.HOME:{this.resetTabIndexAndSetFocus(0,h),s=!0;break}case Q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,h),s=!0;break}case Q.ARROW_DOWN:{let Y=h+1===this.menuItems.length?0:h+1;this.resetTabIndexAndSetFocus(Y,h),s=!0;break}case Q.ARROW_UP:{let Y=h-1===-1?this.menuItems.length-1:h-1;this.resetTabIndexAndSetFocus(Y,h),s=!0;break}case Q.ARROW_RIGHT:{let Y=(R=this.menuItems[h])==null?void 0:R.getAttribute("id");if(this.hasSubmenuWithTriggerId(Y)){let K=($=this.parentElement)==null?void 0:$.querySelector(`${Wt}[triggerid="${Y}"]`);K&&(K.showPopover(),s=!0)}break}case Q.ARROW_LEFT:{Ru(this.parentElement)&&(this.hidePopover(),this.resetTabIndexAndSetFocus(0,h),s=!0);break}case Q.ESCAPE:{this.resetTabIndexAndSetFocus(0,h),s=!0;break}case Q.ENTER:{this.closeMenu(n),s=!0;break}case Q.SPACE:{s=!0;break}default:break}s&&(e.stopPropagation(),e.preventDefault())}handleKeyUp(e){let s=!1,n=e.target;switch(e.key){case Q.SPACE:{n.matches(`${Kn}, ${qn}`)||(this.closeMenu(n),s=!0);break}default:break}s&&(e.stopPropagation(),e.preventDefault())}};fa.styles=[...we.styles,...Nu],f([g({type:String,reflect:!0})],fa.prototype,"placement",2);var Wc=fa;Wc.register(Wt);var Iy=Wc;var os=j.constructTagName("navmenuitem"),Mu={DOT:Ge.DOT,COUNTER:Ge.COUNTER},Ou={RIGHT_ARROW:"arrow-right-bold"},Pu={MAX_COUNTER:99,TEXT_TYPE:it.BODY_MIDSIZE_REGULAR,TAG_NAME:vt.SPAN,SIZE:Di[24],VARIANT:xr.FLEXIBLE};var Zn=class{constructor(i,e,s){this.variant=i,this.expanded=e,this.parentNavTooltipText=s}hasSiblingWithTriggerId(i){var n,h;let e=i==null?void 0:i.getAttribute("id");return e?Array.from((h=(n=i==null?void 0:i.parentElement)==null?void 0:n.children)!=null?h:[]).some(m=>m!==i&&m.tagName.toLowerCase()===Wt&&m.getAttribute("triggerid")===e):!1}getParentNavMenuItems(i){if(!i)return[];let e=[],s=i;for(;s;){let n=s==null?void 0:s.closest(Wt);if(!n)break;let h=n.getAttribute("triggerid");if(!h)break;let m=document.getElementById(h);if(m&&m.tagName.toLowerCase()===os)e.push(m),s=m;else break}return e}setCurrentActiveNavMenuItem(i){var h;let e=((h=this.currentActiveNavMenuItem)==null?void 0:h.navId)===(i==null?void 0:i.navId),s=(i==null?void 0:i.disableAriaCurrent)||this.hasSiblingWithTriggerId(i)||(i==null?void 0:i.softDisabled);if(e||s||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(x=>{x.removeAttribute("tooltip-text"),x.removeAttribute("tooltip-placement"),x.removeAttribute("active")})),!i))return;this.currentActiveNavMenuItem=i,i.setAttribute("aria-current","page"),i.setAttribute("active",""),this.getParentNavMenuItems(i).forEach(m=>{m.setAttribute("tooltip-text",this.parentNavTooltipText||""),m.setAttribute("tooltip-placement",Ut.BOTTOM),m.setAttribute("active","")})}};Zn.context=Ei;var Jn=Zn;var ky=H`
|
3481
3547
|
:host {
|
3482
3548
|
--mdc-sidenavigation-expanded-width: 15rem;
|
3483
3549
|
--mdc-sidenavigation-collapsed-width: 4.5rem;
|
@@ -3542,7 +3608,7 @@
|
|
3542
3608
|
:host::part(separator) {
|
3543
3609
|
margin-bottom: 0.75rem;
|
3544
3610
|
}
|
3545
|
-
`,
|
3611
|
+
`,Du=[ky];var pr=class extends di{constructor(){super({context:Jn.context,initialValue:new Jn(na.VARIANT,!0)});this.variant=na.VARIANT;this.footerText="";this.flexibleExpanded=this.variant===na.VARIANT;this.arrowDirection=this.flexibleExpanded?be.NEGATIVE:be.POSITIVE;this.handleNestedNavMenuItemActiveChange=e=>{var s;if((s=this.context)!=null&&s.value){let n=this.findNav(this.navMenuItems,e.detail.navId);this.context.value.setCurrentActiveNavMenuItem(n)}};this.findNav=(e,s)=>e.find(n=>n.navId===s);this.updateExpansionState=()=>{switch(this.variant){case xr.FLEXIBLE:this.expanded=this.flexibleExpanded;break;case xr.FIXED_EXPANDED:this.expanded=!0;break;case xr.FIXED_COLLAPSED:this.expanded=!1;break;default:}};this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange)}connectedCallback(){super.connectedCallback(),this.role=st.NAVIGATION}static get Context(){return Jn.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())}get navMenuItems(){return Array.from(this.querySelectorAll(`${os}:not([disabled])`))}setVariant(e){this.setAttribute("variant",Object.values(xr).includes(e)?e:na.VARIANT)}toggleSideNavigation(){this.flexibleExpanded=!this.flexibleExpanded,this.arrowDirection=this.arrowDirection===be.NEGATIVE?be.POSITIVE:be.NEGATIVE,this.updateExpansionState()}preventScrollOnSpace(e){e.key===Q.SPACE&&e.preventDefault()}render(){var e;return this.variant===xr.HIDDEN?L``:L`
|
3546
3612
|
<div part="side-navigation-container" id="side-nav-container">
|
3547
3613
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
3548
3614
|
<slot name="scrollable-section">
|
@@ -3560,17 +3626,17 @@
|
|
3560
3626
|
</slot>
|
3561
3627
|
<div part="brand-logo-container">
|
3562
3628
|
<slot name="brand-logo"></slot>
|
3563
|
-
${this.expanded?
|
3629
|
+
${this.expanded?L`<mdc-text type=${it.BODY_MIDSIZE_MEDIUM} tagname=${vt.SPAN} part="label"
|
3564
3630
|
>${this.footerText}</mdc-text
|
3565
3631
|
>`:W}
|
3566
3632
|
</div>
|
3567
3633
|
</div>
|
3568
3634
|
</div>
|
3569
|
-
${this.variant===xr.FLEXIBLE?
|
3635
|
+
${this.variant===xr.FLEXIBLE?L`<mdc-divider
|
3570
3636
|
orientation=${ro.VERTICAL}
|
3571
|
-
variant=${
|
3637
|
+
variant=${Qs.GRADIENT}
|
3572
3638
|
arrow-direction=${this.arrowDirection}
|
3573
|
-
button-position=${
|
3639
|
+
button-position=${be.POSITIVE}
|
3574
3640
|
>
|
3575
3641
|
<mdc-button
|
3576
3642
|
aria-label=${(e=this.grabberBtnAriaLabel)!=null?e:""}
|
@@ -3580,7 +3646,7 @@
|
|
3580
3646
|
part="grabber-btn"
|
3581
3647
|
></mdc-button>
|
3582
3648
|
</mdc-divider>`:W}
|
3583
|
-
`}};pr.styles=[...q.styles,...
|
3649
|
+
`}};pr.styles=[...q.styles,...Du],f([g({type:String,reflect:!0})],pr.prototype,"variant",2),f([g({type:String,reflect:!0,attribute:"footer-text"})],pr.prototype,"footerText",2),f([g({type:Boolean,reflect:!0})],pr.prototype,"expanded",2),f([g({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],pr.prototype,"grabberBtnAriaLabel",2),f([g({type:String,reflect:!0,attribute:"parent-nav-tooltip-text"})],pr.prototype,"parentNavTooltipText",2),f([It()],pr.prototype,"flexibleExpanded",2),f([It()],pr.prototype,"arrowDirection",2);var no=pr;var Cy=H`
|
3584
3650
|
:host {
|
3585
3651
|
display: flex;
|
3586
3652
|
flex-direction: column;
|
@@ -3598,16 +3664,16 @@
|
|
3598
3664
|
:host(:dir(rtl))::part(align-header) {
|
3599
3665
|
padding-right: 1.75rem;
|
3600
3666
|
}
|
3601
|
-
`,
|
3667
|
+
`,Fu=[Cy];var Ar=class extends q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=bu.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=No.consume({host:this,context:no.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",st.GROUP)}update(e){var h;super.update(e),(e.has("ariaLabel")||e.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===e.get("headerText"))&&(this.ariaLabel=this.headerText||"");let s=(h=this.sideNavigationContext)==null?void 0:h.value;if(!s)return;let{expanded:n}=s;this.hideHeaderText=!n}renderHeader(){var e,s;return this.headerText?L` <mdc-listheader
|
3602
3668
|
part="header ${(s=(e=this.sideNavigationContext)==null?void 0:e.value)!=null&&s.expanded?"align-header":""}"
|
3603
3669
|
header-text="${this.headerText}"
|
3604
3670
|
prefix-icon="${nt(this.prefixIcon)}"
|
3605
3671
|
>
|
3606
|
-
</mdc-listheader>`:null}render(){return
|
3672
|
+
</mdc-listheader>`:null}render(){return L`
|
3607
3673
|
${this.hideHeaderText?null:this.renderHeader()}
|
3608
3674
|
<slot></slot>
|
3609
|
-
${this.showDivider?
|
3610
|
-
`}};Ar.styles=[...q.styles,...
|
3675
|
+
${this.showDivider?L`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
3676
|
+
`}};Ar.styles=[...q.styles,...Fu],f([g({type:String,reflect:!0,attribute:"aria-label"})],Ar.prototype,"ariaLabel",2),f([g({type:String,reflect:!0,attribute:"header-text"})],Ar.prototype,"headerText",2),f([g({type:String,attribute:"prefix-icon"})],Ar.prototype,"prefixIcon",2),f([g({type:Boolean,reflect:!0,attribute:"show-divider"})],Ar.prototype,"showDivider",2),f([g({type:String,reflect:!0,attribute:"divider-variant"})],Ar.prototype,"dividerVariant",2),f([g({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Ar.prototype,"hideHeaderText",2);var qc=Ar;var wy=H`
|
3611
3677
|
:host {
|
3612
3678
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
3613
3679
|
--mdc-listheader-gap: 0.5rem;
|
@@ -3634,26 +3700,26 @@
|
|
3634
3700
|
:host::part(postfix-icon) {
|
3635
3701
|
flex-shrink: 0;
|
3636
3702
|
}
|
3637
|
-
|
3638
|
-
${this.prefixIcon?
|
3703
|
+
`,$u=[wy];var xi=class extends q{constructor(){super(...arguments);this.disabled=!1}render(){return L`
|
3704
|
+
${this.prefixIcon?L`<mdc-icon
|
3639
3705
|
part="prefix-icon"
|
3640
3706
|
name="${this.prefixIcon}"
|
3641
3707
|
aria-hidden="true"
|
3642
3708
|
size="1"
|
3643
3709
|
length-unit="rem"
|
3644
3710
|
></mdc-icon>`:W}
|
3645
|
-
${this.headerText?
|
3711
|
+
${this.headerText?L`<mdc-text part="header-text" type="body-midsize-bold" tagname="span" aria-hidden="true"
|
3646
3712
|
>${this.headerText}</mdc-text
|
3647
3713
|
>`:W}
|
3648
3714
|
<slot></slot>
|
3649
|
-
${this.postfixIcon?
|
3715
|
+
${this.postfixIcon?L`<mdc-icon
|
3650
3716
|
part="postfix-icon"
|
3651
3717
|
name="${this.postfixIcon}"
|
3652
3718
|
aria-hidden="true"
|
3653
3719
|
size="1"
|
3654
3720
|
length-unit="rem"
|
3655
3721
|
></mdc-icon>`:W}
|
3656
|
-
`}};xi.styles=[...q.styles
|
3722
|
+
`}};xi.styles=[...q.styles,...$u],f([g({type:String,attribute:"prefix-icon"})],xi.prototype,"prefixIcon",2),f([g({type:String,attribute:"postfix-icon"})],xi.prototype,"postfixIcon",2),f([g({type:String,attribute:"header-text"})],xi.prototype,"headerText",2),f([g({type:Boolean,reflect:!0})],xi.prototype,"disabled",2);var Kc=xi;var zu=j.constructTagName("listheader");Kc.register(zu);var Ly=Kc;qc.register(qr);var Ny=qc;var Ry=[Et,H`
|
3657
3723
|
:host {
|
3658
3724
|
--mdc-navmenuitem-color: var(--mds-color-theme-text-primary-normal);
|
3659
3725
|
--mdc-navmenuitem-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -3799,7 +3865,7 @@
|
|
3799
3865
|
left: -0.75rem;
|
3800
3866
|
top: 0.875rem;
|
3801
3867
|
}
|
3802
|
-
`,...At()],
|
3868
|
+
`,...At()],Vu=Ry;var Ze=class extends Qt(Xe){constructor(){super();this.maxCounter=Pu.MAX_COUNTER;this.ariaLabel=null;this.sideNavigationContext=No.consume({host:this,context:no.Context});this.emitNavMenuItemActiveChange=e=>{let s=new CustomEvent("activechange",{detail:{navId:this.navId,active:e},bubbles:!0});this.dispatchEvent(s)};this.addEventListener("click",this.handleClickEvent)}connectedCallback(){super.connectedCallback(),this.variant=void 0,this.tooltipPlacement=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}updated(){var s,n;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=(n=this.label)!=null?n:"";this.ariaLabel=this.ariaLabel||h,this.setAttribute("aria-label",h)}}isNested(){let e=this.parentElement;for(;e;){if(e.tagName.toLowerCase()===Wt)return!0;e=e.parentElement}return!1}modifyIconName(e){if(!this.iconName)return;let s=this.iconName.endsWith("-filled"),n=Ui(this.iconName);e?s||(this.prevIconName=this.iconName,this.iconName=`${n}-filled`):this.prevIconName&&(this.iconName=this.prevIconName)}handleClickEvent(){this.disabled||this.emitNavMenuItemActiveChange(this.active)}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active)}renderTextLabel(e){return L`
|
3803
3869
|
<mdc-text
|
3804
3870
|
type=${this.active?it.BODY_MIDSIZE_BOLD:it.BODY_MIDSIZE_MEDIUM}
|
3805
3871
|
tagname=${vt.SPAN}
|
@@ -3807,9 +3873,9 @@
|
|
3807
3873
|
>
|
3808
3874
|
${e}
|
3809
3875
|
</mdc-text>
|
3810
|
-
`}renderArrowIcon(e){let s=e?"":"arrow";return
|
3811
|
-
<mdc-icon name=${
|
3812
|
-
`}renderBadge(e){let s=e?"":"badge";return Object.values(
|
3876
|
+
`}renderArrowIcon(e){let s=e?"":"arrow";return L`
|
3877
|
+
<mdc-icon name=${Ou.RIGHT_ARROW} length-unit="rem" part="trailing-arrow" class="${s}"> </mdc-icon>
|
3878
|
+
`}renderBadge(e){let s=e?"":"badge";return Object.values(Mu).includes(this.badgeType)?L`
|
3813
3879
|
<mdc-badge
|
3814
3880
|
class="${s}"
|
3815
3881
|
type="${nt(this.badgeType)}"
|
@@ -3817,14 +3883,14 @@
|
|
3817
3883
|
max-counter="${this.maxCounter}"
|
3818
3884
|
>
|
3819
3885
|
</mdc-badge>
|
3820
|
-
`:W}render(){var s;let e=(s=this.sideNavigationContext)==null?void 0:s.value;return
|
3886
|
+
`:W}render(){var s;let e=(s=this.sideNavigationContext)==null?void 0:s.value;return L`
|
3821
3887
|
<div part="icon-container">
|
3822
3888
|
<mdc-icon name="${this.iconName}" size="1.5" length-unit="rem" part="icon"></mdc-icon>
|
3823
3889
|
${this.showLabel?W:this.renderBadge(this.showLabel)}
|
3824
3890
|
</div>
|
3825
|
-
${this.showLabel?
|
3891
|
+
${this.showLabel?L`${this.renderTextLabel(this.label)}${this.renderBadge(this.showLabel)}`:W}
|
3826
3892
|
${e!=null&&e.hasSiblingWithTriggerId(this)?this.renderArrowIcon(this.showLabel):W}
|
3827
|
-
`}};Ze.styles=[...Xe.styles,...
|
3893
|
+
`}};Ze.styles=[...Xe.styles,...Vu],f([g({type:Boolean,reflect:!0})],Ze.prototype,"active",2),f([g({type:String,reflect:!0,attribute:"badge-type"})],Ze.prototype,"badgeType",2),f([g({type:Number,reflect:!0})],Ze.prototype,"counter",2),f([g({type:Number,attribute:"max-counter",reflect:!0})],Ze.prototype,"maxCounter",2),f([g({type:String,reflect:!0,attribute:"nav-id"})],Ze.prototype,"navId",2),f([g({type:Boolean,reflect:!0,attribute:"show-label"})],Ze.prototype,"showLabel",2),f([g({type:String,attribute:"aria-label"})],Ze.prototype,"ariaLabel",2),f([g({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],Ze.prototype,"disableAriaCurrent",2);var Xc=Ze;Xc.register(os);var My=Xc;var Bu=j.constructTagName("optgroup"),Zc="header-id";var Oy=H`
|
3828
3894
|
:host {
|
3829
3895
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3830
3896
|
}
|
@@ -3837,24 +3903,24 @@
|
|
3837
3903
|
color: var(--mdc-optgroup-disabled-color);
|
3838
3904
|
cursor: default;
|
3839
3905
|
}
|
3840
|
-
`,
|
3906
|
+
`,Uu=[Oy];var ss=class extends jt($t(q)){setDisabledForAllOptions(){this.options.forEach(i=>{this.disabled?i.setAttribute("disabled",""):i.removeAttribute("disabled")})}updated(i){super.updated(i),i.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let i=this.label?L`
|
3841
3907
|
<mdc-text
|
3842
|
-
id="${
|
3908
|
+
id="${Zc}"
|
3843
3909
|
part="header-text"
|
3844
3910
|
type="${it.BODY_MIDSIZE_BOLD}"
|
3845
3911
|
tagname="${vt.SPAN}"
|
3846
3912
|
>${this.label}</mdc-text
|
3847
3913
|
>
|
3848
|
-
`:W;return
|
3914
|
+
`:W;return L`
|
3849
3915
|
<div
|
3850
3916
|
role="${st.GROUP}"
|
3851
|
-
aria-labelledby="${this.label?
|
3917
|
+
aria-labelledby="${this.label?Zc:""}"
|
3852
3918
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3853
3919
|
>
|
3854
3920
|
${i}
|
3855
3921
|
<slot role="${st.PRESENTATION}"></slot>
|
3856
3922
|
</div>
|
3857
|
-
`}};
|
3923
|
+
`}};ss.styles=[...q.styles,...Uu],f([g({type:String,reflect:!0})],ss.prototype,"label",2),f([Ft({selector:"mdc-option"})],ss.prototype,"options",2);var Jc=ss;Jc.register(Bu);var Py=Jc;var Gu="check-bold",as=j.constructTagName("option");var Dy=H`
|
3858
3924
|
:host {
|
3859
3925
|
--mdc-option-icon-width: 1rem;
|
3860
3926
|
|
@@ -3880,18 +3946,18 @@
|
|
3880
3946
|
/** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
|
3881
3947
|
width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
|
3882
3948
|
}
|
3883
|
-
`,
|
3949
|
+
`,Hu=[Dy];var lo=class extends Le(Wr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=oa.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(e){super.update(e),e.has("selected")&&this.setAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?L`
|
3884
3950
|
<div part="leading-icon">
|
3885
3951
|
<mdc-icon length-unit="rem" slot="leading-controls" name="${nt(this.prefixIcon)}"></mdc-icon>
|
3886
3952
|
</div>
|
3887
|
-
`:W,s=this.selected?
|
3953
|
+
`:W,s=this.selected?L` <mdc-icon length-unit="rem" slot="trailing-controls" name="${Gu}"></mdc-icon> `:W;return L`
|
3888
3954
|
${e}
|
3889
3955
|
<div part="leading-text">
|
3890
3956
|
${this.getText("leading-text-primary-label",it.BODY_MIDSIZE_REGULAR,this.label)}
|
3891
3957
|
${this.getText("leading-text-secondary-label",it.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3892
3958
|
</div>
|
3893
3959
|
<div part="trailing">${s}</div>
|
3894
|
-
`}};
|
3960
|
+
`}};lo.styles=[...Wr.styles,...Hu],f([g({type:Boolean,reflect:!0})],lo.prototype,"selected",2),f([g({type:String,reflect:!0,attribute:"prefix-icon"})],lo.prototype,"prefixIcon",2),f([g({type:String,reflect:!0,attribute:"aria-label"})],lo.prototype,"ariaLabel",2);var Qc=lo;Qc.register(as);var Fy=Qc;var td={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},ju=j.constructTagName("password");var co=class extends Yr{constructor(){super(...arguments);this.showHideButtonAriaLabel="";this.helpTextType=Mt.VALIDATION;this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(e=!1){let s=e||this.value;return s?L`
|
3895
3961
|
<mdc-button
|
3896
3962
|
part="trailing-button"
|
3897
3963
|
class="own-focus-ring ${s?"":"hidden"}"
|
@@ -3900,9 +3966,9 @@
|
|
3900
3966
|
size="${Mt.ICON_SIZE}"
|
3901
3967
|
@click=${this.toggleShowPassword}
|
3902
3968
|
aria-label=${this.showHideButtonAriaLabel}
|
3903
|
-
prefix-icon=${this.showPassword?
|
3969
|
+
prefix-icon=${this.showPassword?td.HIDE_BOLD:td.SHOW_BOLD}
|
3904
3970
|
></mdc-button>
|
3905
|
-
`:W}renderInputElement(e,s){let n=this.showPassword?
|
3971
|
+
`:W}renderInputElement(e,s){let n=this.showPassword?Xo.TEXT:Xo.PASSWORD;return super.renderInputElement(n,s)}};co.styles=[...Yr.styles],f([g({type:String,attribute:"show-hide-button-aria-label"})],co.prototype,"showHideButtonAriaLabel",2),f([g({type:String,attribute:"help-text-type"})],co.prototype,"helpTextType",2),f([It()],co.prototype,"showPassword",2);var ed=co;ed.register(ju);var $y=ed;we.register(Rm);var zy=we;var Yu=j.constructTagName("progressbar"),Qn={DEFAULT:"default",INLINE:"inline"},Wu={VARIANT:Qn.DEFAULT,VALIDATION:Yt.DEFAULT};var Vy=[Et,H`
|
3906
3972
|
:host {
|
3907
3973
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
3908
3974
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -3989,7 +4055,7 @@
|
|
3989
4055
|
border: var(--mdc-progressbar-border);
|
3990
4056
|
}
|
3991
4057
|
}
|
3992
|
-
`],
|
4058
|
+
`],qu=Vy;var ho=class extends jt(Ke){constructor(){super(...arguments);this.variant=Wu.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var h;let e=this.getValidationVariant(),s=this.clampedValue>0&&this.clampedValue<100,n=this.error?"100":`${this.clampedValue}`;return L`
|
3993
4059
|
<div
|
3994
4060
|
part="progress-container ${s?"gap":""}"
|
3995
4061
|
role="${st.PROGRESSBAR}"
|
@@ -4001,15 +4067,15 @@
|
|
4001
4067
|
<div part="progress-bar ${e}" style="width: ${n}%"></div>
|
4002
4068
|
<div part="remaining"></div>
|
4003
4069
|
</div>
|
4004
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${Ye()}`,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=Yt.ERROR:this.clampedValue===100?this.helpTextType=Yt.SUCCESS:this.helpTextType=Yt.DEFAULT,this.helpTextType}render(){let e=this.variant===
|
4005
|
-
${e?
|
4070
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${Ye()}`,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=Yt.ERROR:this.clampedValue===100?this.helpTextType=Yt.SUCCESS:this.helpTextType=Yt.DEFAULT,this.helpTextType}render(){let e=this.variant===Qn.INLINE;return L`
|
4071
|
+
${e?L`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:L`
|
4006
4072
|
<div part="label-container">
|
4007
4073
|
${this.renderLabelElement()}
|
4008
|
-
${this.variant===
|
4074
|
+
${this.variant===Qn.DEFAULT&&this.label?L`<span part="percentage">${this.clampedValue}%</span>`:""}
|
4009
4075
|
</div>
|
4010
4076
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
4011
4077
|
`}
|
4012
|
-
`}};
|
4078
|
+
`}};ho.styles=[...Ke.styles,...qu],f([g({type:String,reflect:!0})],ho.prototype,"variant",2),f([g({type:String,reflect:!0})],ho.prototype,"value",2),f([g({type:Boolean,attribute:"error"})],ho.prototype,"error",2);var va=ho;va.register(Yu);var By=va;var Ku=j.constructTagName("progressspinner"),Zt={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"},rd={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var id=l=>{if(l===0)return 0;let i=l/100*Zt.CIRCUMFERENCE-Zt.GAP_SIZE;return Math.max(i,.1*l)},Xu=l=>{let i=Zt.CIRCUMFERENCE-id(l)-2*Zt.GAP_SIZE;return l===0?Zt.CIRCUMFERENCE:i<0?0:i},Zu=l=>l===0?0:Zt.GAP_SIZE*.5,Ju=(l,i)=>{let e=i+Zt.GAP_SIZE*1.5;return l===0?0:e};var Uy=H`
|
4013
4079
|
:host {
|
4014
4080
|
--mdc-spinner-size: 3rem;
|
4015
4081
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -4053,7 +4119,7 @@
|
|
4053
4119
|
color: var(--mdc-progress-error-color);
|
4054
4120
|
margin: 0.5rem;
|
4055
4121
|
}
|
4056
|
-
`,
|
4122
|
+
`,Qu=[Uy];var tl=class extends va{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 i=id(this.clampedValue),e=Xu(this.clampedValue),s=Zu(this.clampedValue),n=Ju(this.clampedValue,i);return L`
|
4057
4123
|
<div
|
4058
4124
|
part="spinner-container ${this.variant}"
|
4059
4125
|
role="${st.PROGRESSBAR}"
|
@@ -4083,23 +4149,23 @@
|
|
4083
4149
|
/>
|
4084
4150
|
</svg>
|
4085
4151
|
</div>
|
4086
|
-
`}renderErrorState(){var i;return
|
4152
|
+
`}renderErrorState(){var i;return L`
|
4087
4153
|
<mdc-icon
|
4088
4154
|
part="error-icon"
|
4089
4155
|
aria-label="${(i=this.dataAriaLabel)!=null?i:""}"
|
4090
|
-
name="${
|
4156
|
+
name="${rd.ERROR_LEGACY_FILLED}"
|
4091
4157
|
size="${Zt.ERROR_ICON_SIZE}"
|
4092
4158
|
length-unit="${Zt.ICON_LENGTH_UNIT}"
|
4093
4159
|
></mdc-icon>
|
4094
|
-
`}renderSuccessState(){var i;return
|
4160
|
+
`}renderSuccessState(){var i;return L`
|
4095
4161
|
<mdc-icon
|
4096
4162
|
part="success-icon"
|
4097
4163
|
aria-label="${(i=this.dataAriaLabel)!=null?i:""}"
|
4098
|
-
name="${
|
4164
|
+
name="${rd.CHECK_CIRCLE_BOLD}"
|
4099
4165
|
size="${Zt.SUCCESS_ICON_SIZE}"
|
4100
4166
|
length-unit="${Zt.ICON_LENGTH_UNIT}"
|
4101
4167
|
></mdc-icon>
|
4102
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():
|
4168
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():L` ${this.renderProgressSpinner()}`}};tl.styles=[...q.styles,...Qu];var od=tl;od.register(Ku);var Gy=od;var Hy=[Et,H`
|
4103
4169
|
:host {
|
4104
4170
|
display: flex;
|
4105
4171
|
flex-direction: row;
|
@@ -4184,7 +4250,7 @@
|
|
4184
4250
|
:host::part(required-indicator) {
|
4185
4251
|
display: none;
|
4186
4252
|
}
|
4187
|
-
`,...At(!0)],
|
4253
|
+
`,...At(!0)],tf=Hy;var po=class extends Le(jt(ge)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?L`<div class="mdc-radio__label-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}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(n=>{n.setComponentValidity(s)})}).catch(n=>{this.onerror&&this.onerror(n)})}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 n=s.some(x=>x.required),h=!!s.find(x=>x.checked),m=n&&!h;this.setGroupValidity(s,!m)}this.internals.setFormValue(e)}handleChange(e){var h;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(m=>{var R;let x=(R=m.shadowRoot)==null?void 0:R.querySelector("input");x&&(m.checked=!1,x.checked=!1)}),this.checked=!0;let n=(h=this.shadowRoot)==null?void 0:h.querySelector("input");n&&(n.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,s,n){var h,m;(m=(h=e[s].shadowRoot)==null?void 0:h.querySelector("input"))==null||m.focus(),e[s].handleChange(n)}handleKeyDown(e){var m;if(this.disabled)return;let n=this.getAllRadiosWithinSameGroup().filter(x=>!x.disabled),h=n.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let x=(h+1)%n.length;this.updateRadio(n,x,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let x=(h-1+n.length)%n.length;this.updateRadio(n,x,e)}else e.key===Q.SPACE&&this.updateRadio(n,h,e);this.updateTabIndex(),e.key===Q.ENTER&&((m=this.form)==null||m.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),s=e.find(h=>h.checked),n=e.find(h=>!h.disabled);e.forEach(h=>{var x;let m=(x=h.shadowRoot)==null?void 0:x.querySelector("input");m&&(m.tabIndex=-1,(h===s||!s&&h===n)&&(m.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return L`
|
4188
4254
|
<mdc-staticradio
|
4189
4255
|
class="mdc-focus-ring"
|
4190
4256
|
?checked="${this.checked}"
|
@@ -4211,7 +4277,7 @@
|
|
4211
4277
|
/>
|
4212
4278
|
</mdc-staticradio>
|
4213
4279
|
${this.renderLabelAndHelperText()}
|
4214
|
-
`}};
|
4280
|
+
`}};po.styles=[...ge.styles,...tf],f([g({type:Boolean,reflect:!0})],po.prototype,"checked",2),f([g({type:Boolean,reflect:!0})],po.prototype,"readonly",2),f([g({type:Boolean,reflect:!0})],po.prototype,"autofocus",2);var sd=po;var el=j.constructTagName("radio");sd.register(el);var jy=sd;var ga=class extends Gn{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,s,n,h,m;(m=(h=(n=(s=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:s.flatMap(x=>x.assignedElements({flatten:!0})))==null?void 0:n.filter(x=>x.tagName.toLowerCase()===el||x.tagName.toLowerCase()===wn))==null?void 0:h.filter(x=>!x.hasAttribute("name")))==null||m.forEach(x=>{x.setAttribute("name",this.name),this.required&&x.setAttribute("required",this.required.toString())})}};ga.styles=[...Gn.styles],f([g({type:String})],ga.prototype,"name",2);var ad=ga;var ef=j.constructTagName("radiogroup");ad.register(ef);var Yy=ad;var Wy=H`
|
4215
4281
|
:host::part(filters-container) {
|
4216
4282
|
display: flex;
|
4217
4283
|
gap: 0.25rem;
|
@@ -4236,7 +4302,7 @@
|
|
4236
4302
|
position: relative;
|
4237
4303
|
scrollbar-width: none;
|
4238
4304
|
}
|
4239
|
-
`,
|
4305
|
+
`,rf=[Wy];var of=j.constructTagName("searchfield"),ba={TYPE:Xo.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:jn};var mo=class extends Yr{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=ba.ICON,this.trailingButton=ba.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(ba.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 L`
|
4240
4306
|
${this.renderLabelElement()}
|
4241
4307
|
<div
|
4242
4308
|
class="${yr({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}"
|
@@ -4252,11 +4318,11 @@
|
|
4252
4318
|
>
|
4253
4319
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot>
|
4254
4320
|
</div>
|
4255
|
-
${this.renderInputElement(
|
4321
|
+
${this.renderInputElement(ba.TYPE,this.hasInputChips)}
|
4256
4322
|
</div>
|
4257
4323
|
${this.renderTrailingButton(this.hasInputChips)}
|
4258
4324
|
</div>
|
4259
|
-
`}};
|
4325
|
+
`}};mo.styles=[...Yr.styles,...rf],f([Ft({slot:"filters"})],mo.prototype,"inputChips",2),f([It()],mo.prototype,"isInputFocused",2),f([It()],mo.prototype,"hasInputChips",2);var nd=mo;nd.register(of);var qy=nd;var sf=j.constructTagName("select"),ld={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},ya="select-base-triggerid",cd="select-listbox";var Ky=H`
|
4260
4326
|
:host {
|
4261
4327
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
4262
4328
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -4375,18 +4441,18 @@
|
|
4375
4441
|
:host([readonly])::part(icon-container) {
|
4376
4442
|
color: var(--mdc-select-disabled-text-color);
|
4377
4443
|
}
|
4378
|
-
`,
|
4444
|
+
`,af=[Ky,...At(!0)];var De=class extends Le(jt(ge)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.placement=Ut.BOTTOM_START;this.displayPopover=!1;this.initialSelectedOption=null}getAllValidOptions(){var e;return Array.from(((e=this.slottedListboxes[0])==null?void 0:e.querySelectorAll(as))||[])}getFirstValidOption(){var e;return(e=this.slottedListboxes[0])==null?void 0:e.querySelector(as)}getLastValidOption(){let e=this.getAllValidOptions();return e.length>0?e[e.length-1]:null}getFirstSelectedOption(){var e;return(e=this.slottedListboxes[0])==null?void 0:e.querySelector(`${as}[selected]`)}async firstUpdated(){await this.updateComplete,this.modifyListBoxWrapper();let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let s=this.getFirstValidOption();this.setSelectedOption(s),this.fireEvents()}}updated(e){super.updated(e),(e.has("disabled")||e.has("softDisabled")||e.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1),e.has("dataAriaLabel")&&this.modifyListBoxWrapper()}modifyListBoxWrapper(){let e=this.slottedListboxes[0];e&&(e.setAttribute("id",cd),e.setAttribute("aria-label",this.dataAriaLabel||""),e.setAttribute("aria-labelledby",ya))}handleOptionsClick(e){this.setSelectedOption(e.target),this.displayPopover=!1,this.fireEvents()}setSelectedOption(e){var s,n;this.updateSelectedInChildOptions(e),this.updateTabIndexForAllOptions(e),this.selectedOption=e,this.value=(n=(s=this.selectedOption)==null?void 0:s.value)!=null?n:"",this.internals.setFormValue(this.value),this.inputElement.setAttribute("value",this.value),this.setInputValidity()}updateTabIndexForAllOptions(e){let s=this.getAllValidOptions(),n=e||s[0];s.forEach(h=>{h.setAttribute("tabindex",h===n?"0":"-1")})}updateSelectedInChildOptions(e){e==null||e.setAttribute("selected","true"),this.getAllValidOptions().forEach(n=>{n!==e&&n.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){!this.selectedOption&&this.required&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}formResetCallback(){var s;let e=this.initialSelectedOption||null;((s=this.selectedOption)==null?void 0:s.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e),this.fireEvents())}formStateRestoreCallback(e){var n;let s=this.getAllValidOptions().find(h=>h.value===e||h.label===e);((n=this.selectedOption)==null?void 0:n.value)!==(s==null?void 0:s.value)&&(this.setSelectedOption(s||null),this.fireEvents())}dispatchChange(e){this.dispatchEvent(new CustomEvent("change",{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:!0}))}dispatchInput(e){this.dispatchEvent(new CustomEvent("input",{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:!0}))}handleClickCombobox(e){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,e.stopPropagation())}handleKeydownCombobox(e){if(!(this.disabled||this.softDisabled||this.readonly))switch(e.key){case Q.ARROW_DOWN:case Q.ARROW_UP:this.displayPopover=!0,e.preventDefault();break;case Q.ENTER:case Q.SPACE:this.displayPopover=!0,e.preventDefault(),e.stopPropagation();break;case Q.HOME:{this.displayPopover=!0;let s=this.getFirstValidOption();s&&(s==null||s.focus(),this.updateTabIndexForAllOptions(s)),e.preventDefault();break}case Q.END:{this.displayPopover=!0;let s=this.getLastValidOption();s&&(s.focus(),this.updateTabIndexForAllOptions(s)),e.preventDefault();break}default:break}}handlePopoverKeydown(e){switch(e.key){case Q.HOME:{let s=this.getFirstValidOption();this.focusAndUpdateTabIndexes(s),e.preventDefault();break}case Q.END:{let s=this.getLastValidOption();this.focusAndUpdateTabIndexes(s),e.preventDefault();break}case Q.ARROW_DOWN:{let s=this.getAllValidOptions(),n=s.findIndex(m=>m===e.target),h=Math.min(n+1,s.length-1);this.focusAndUpdateTabIndexes(s[h]),e.preventDefault();break}case Q.ARROW_UP:{let s=this.getAllValidOptions(),n=s.findIndex(m=>m===e.target),h=Math.max(n-1,0);this.focusAndUpdateTabIndexes(s[h]),e.preventDefault();break}case Q.PAGE_DOWN:{let s=this.getAllValidOptions(),n=s.findIndex(m=>m===e.target),h=Math.min(n+10,s.length-1);this.focusAndUpdateTabIndexes(s[h]),e.preventDefault();break}case Q.PAGE_UP:{let s=this.getAllValidOptions(),n=s.findIndex(m=>m===e.target),h=Math.max(n-10,0);this.focusAndUpdateTabIndexes(s[h]),e.preventDefault();break}default:break}}focusAndUpdateTabIndexes(e){e&&(e.focus(),this.updateTabIndexForAllOptions(e))}handleNativeInputFocus(){this.visualCombobox.focus()}updateState(){var s;let e=this.getFirstSelectedOption();e?((s=this.selectedOption)==null?void 0:s.value)!==e.value&&this.setSelectedOption(e):this.setSelectedOption(this.placeholder?null:this.getFirstValidOption())}render(){var e,s,n,h,m,x;return L`
|
4379
4445
|
${this.renderLabel()}
|
4380
4446
|
<div part="container">
|
4381
4447
|
<div
|
4382
|
-
id="${
|
4448
|
+
id="${ya}"
|
4383
4449
|
part="base-container"
|
4384
4450
|
@click="${this.handleClickCombobox}"
|
4385
4451
|
@keydown="${this.handleKeydownCombobox}"
|
4386
4452
|
tabindex="${this.disabled?"-1":"0"}"
|
4387
4453
|
class="${this.disabled?"":"mdc-focus-ring"}"
|
4388
4454
|
role="${st.COMBOBOX}"
|
4389
|
-
aria-controls="${
|
4455
|
+
aria-controls="${cd}"
|
4390
4456
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
4391
4457
|
aria-labelledby="${this.label?Mt.HEADING_ID:""}"
|
4392
4458
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
@@ -4396,7 +4462,7 @@
|
|
4396
4462
|
aria-disabled="${nt(this.disabled||this.softDisabled)}"
|
4397
4463
|
aria-readonly="${nt(this.readonly)}"
|
4398
4464
|
>
|
4399
|
-
${(s=this.selectedOption)!=null&&s.prefixIcon?
|
4465
|
+
${(s=this.selectedOption)!=null&&s.prefixIcon?L`<mdc-icon
|
4400
4466
|
length-unit="rem"
|
4401
4467
|
size="1"
|
4402
4468
|
name="${(n=this.selectedOption)==null?void 0:n.prefixIcon}"
|
@@ -4413,7 +4479,7 @@
|
|
4413
4479
|
<mdc-icon
|
4414
4480
|
size="1"
|
4415
4481
|
length-unit="rem"
|
4416
|
-
name="${this.displayPopover?
|
4482
|
+
name="${this.displayPopover?ld.ARROW_UP:ld.ARROW_DOWN}"
|
4417
4483
|
></mdc-icon>
|
4418
4484
|
</div>
|
4419
4485
|
</div>
|
@@ -4434,7 +4500,7 @@
|
|
4434
4500
|
/>
|
4435
4501
|
<mdc-popover
|
4436
4502
|
trigger="manual"
|
4437
|
-
triggerid="${
|
4503
|
+
triggerid="${ya}"
|
4438
4504
|
@keydown="${this.handlePopoverKeydown}"
|
4439
4505
|
interactive
|
4440
4506
|
?visible="${this.displayPopover}"
|
@@ -4453,7 +4519,7 @@
|
|
4453
4519
|
</mdc-popover>
|
4454
4520
|
</div>
|
4455
4521
|
${this.renderHelperText()}
|
4456
|
-
`}};De.styles=[...
|
4522
|
+
`}};De.styles=[...ge.styles,...af],f([g({type:String})],De.prototype,"placeholder",2),f([g({type:Boolean})],De.prototype,"readonly",2),f([g({type:String})],De.prototype,"height",2),f([g({type:String,reflect:!0})],De.prototype,"placement",2),f([g({type:Boolean,attribute:"soft-disabled"})],De.prototype,"softDisabled",2),f([Ft({selector:"mdc-selectlistbox"})],De.prototype,"slottedListboxes",2),f([Pr(`[id="${ya}"]`)],De.prototype,"visualCombobox",2),f([It()],De.prototype,"selectedOption",2),f([It()],De.prototype,"displayPopover",2);var dd=De;dd.register(sf);var Xy=dd;no.register(Ei);var Zy=no;var nf=j.constructTagName("skeleton"),lf={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},cf={VARIANT:lf.RECTANGULAR};var Jy=H`
|
4457
4523
|
:host {
|
4458
4524
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
4459
4525
|
--mdc-skeleton-height: 100%;
|
@@ -4490,7 +4556,7 @@
|
|
4490
4556
|
::slotted(*) {
|
4491
4557
|
visibility: hidden;
|
4492
4558
|
}
|
4493
|
-
`,
|
4559
|
+
`,df=Jy;var Ea=class extends q{constructor(){super(...arguments);this.variant=cf.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(e){super.firstUpdated(e),this.checkSlotContent()}checkSlotContent(){var s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");e&&(e.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return L`<slot @slotchange=${this.checkSlotContent}></slot>`}};Ea.styles=[...q.styles,df],f([g({type:String,reflect:!0})],Ea.prototype,"variant",2);var hd=Ea;hd.register(nf);var Qy=hd;var tE=[Et,H`
|
4494
4560
|
:host {
|
4495
4561
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
4496
4562
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -4554,11 +4620,11 @@
|
|
4554
4620
|
stroke-dashoffset: -292;
|
4555
4621
|
}
|
4556
4622
|
}
|
4557
|
-
`],
|
4623
|
+
`],hf=tE;var pf=j.constructTagName("spinner"),eE={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},rE={STANDALONE:"standalone",BUTTON:"button"},rl={VARIANT:rE.STANDALONE,SIZE:eE.MIDSIZE,INVERTED:!1};var Ai=class extends q{constructor(){super(...arguments);this.inverted=rl.INVERTED;this.size=rl.SIZE;this.ariaLabel=null;this.variant=rl.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?st.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return L`
|
4558
4624
|
<svg part="container" viewBox="0 0 100 100">
|
4559
4625
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
4560
4626
|
</svg>
|
4561
|
-
`}};Ai.styles=[...q.styles,...
|
4627
|
+
`}};Ai.styles=[...q.styles,...hf],f([g({type:Boolean,reflect:!0})],Ai.prototype,"inverted",2),f([g({type:String,reflect:!0})],Ai.prototype,"size",2),f([g({type:String,attribute:"aria-label"})],Ai.prototype,"ariaLabel",2),f([g({type:String,reflect:!0})],Ai.prototype,"variant",2);var pd=Ai;pd.register(pf);var iE=pd;var mf=j.constructTagName("tab"),md={GLASS:"glass",LINE:"line",PILL:"pill"},il={VARIANT:md.PILL,ACTIVE:!1};var oE=[Et,H`
|
4562
4628
|
:host {
|
4563
4629
|
--mdc-tab-content-gap: 0.5rem;
|
4564
4630
|
--mdc-tab-height: 2rem;
|
@@ -4800,10 +4866,10 @@
|
|
4800
4866
|
background-color: var(--mdc-tab-pill-active-background-color-disabled);
|
4801
4867
|
color: var(--mdc-tab-pill-active-color-disabled);
|
4802
4868
|
}
|
4803
|
-
`,...At()],
|
4869
|
+
`,...At()],uf=oE;var _i=class extends Qt(de){constructor(){super(...arguments);this.active=il.ACTIVE;this.variant=il.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=st.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=`${Ui(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(md).includes(e)?e:il.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 L`
|
4804
4870
|
<div part="container">
|
4805
|
-
${this.iconName?
|
4806
|
-
${this.text?
|
4871
|
+
${this.iconName?L` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:W}
|
4872
|
+
${this.text?L` <mdc-text
|
4807
4873
|
type=${this.active?it.BODY_MIDSIZE_BOLD:it.BODY_MIDSIZE_MEDIUM}
|
4808
4874
|
tagname=${vt.SPAN}
|
4809
4875
|
data-text=${this.text}
|
@@ -4814,7 +4880,7 @@
|
|
4814
4880
|
<slot name="chip"></slot>
|
4815
4881
|
</div>
|
4816
4882
|
<div part="indicator"></div>
|
4817
|
-
`}};_i.styles=[...
|
4883
|
+
`}};_i.styles=[...de.styles,...uf],f([g({type:Boolean,reflect:!0})],_i.prototype,"active",2),f([g({type:String,reflect:!0})],_i.prototype,"text",2),f([g({type:String,reflect:!0})],_i.prototype,"variant",2),f([g({type:String,reflect:!0,attribute:"tab-id"})],_i.prototype,"tabId",2);var Je=_i;Je.register(mf);var sE=Je;var aE=[rn,H`
|
4818
4884
|
:host {
|
4819
4885
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
4820
4886
|
--mdc-tablist-gap: 0.5rem;
|
@@ -4844,16 +4910,16 @@
|
|
4844
4910
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
4845
4911
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
4846
4912
|
}
|
4847
|
-
`],
|
4913
|
+
`],ff=[...aE];var vf=j.constructTagName("tablist"),Ta={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},ns={FORWARD:"forward",BACKWARD:"backward"};var ol=l=>l[0],ud=l=>l[l.length-1],gf=(l,i)=>{let e=l.findIndex(s=>i===s)-1;return l[(e+l.length)%l.length]},bf=(l,i)=>{let e=l.findIndex(s=>i===s)+1;return l[e%l.length]},yf=(l,i)=>l.find(e=>e.tabId===i),fd=l=>l.find(i=>i.active);var mr=class extends q{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 Je||!(e.target instanceof Je))return;let s=fd(this.tabs||[]);s instanceof Je&&await this.focusTab(s)};this.handleMousedown=e=>{e.target instanceof Je&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let s=e.target;s instanceof Je&&(this.setActiveTab(s),await this.focusTab(s),this.activeTabId=s.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var s;(s=this.tabs)==null||s.forEach(n=>{n.setAttribute("tabindex",n===e?"0":"-1")})};this.setActiveTab=e=>{var s;(s=this.tabs)==null||s.forEach(n=>{n===e?n.setAttribute("active",""):n.removeAttribute("active")})};this.focusTab=async e=>{e instanceof Je&&(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 Je)||!this.tabs)return;let n=gf(this.tabs,s),h=bf(this.tabs,s),m=ol(this.tabs),x=ud(this.tabs);switch(e.code){case Ta.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?h:n);break;case Ta.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?n:h);break;case Ta.HOME:await this.focusTab(m);break;case Ta.END:await this.focusTab(x);break;default:}};this.shouldShowArrowButton=e=>e===ns.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,s;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=fd(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((s=this.notFocusedArrowButton)==null||s.focus())};this.handleArrowButtonVisibility=async()=>{var K,at,J;if(!this.tabs||!this.tabsContainer)return;let e=!1;((K=this.shadowRoot)==null?void 0:K.activeElement)instanceof Gi&&(e=!0);let s=ol(this.tabs),n=ud(this.tabs),h=s.getBoundingClientRect().left,m=(at=this.tabsContainer)==null?void 0:at.getBoundingClientRect().left,x=n.getBoundingClientRect().right,R=(J=this.tabsContainer)==null?void 0:J.getBoundingClientRect().right,$=s.getBoundingClientRect().right,Y=n.getBoundingClientRect().left;if(!this.isRtl()){h<=m?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,x>R?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}$>R?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,Y<m?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var h;let s=this.isRtl()?-1:1,n=this.isRtl()?1:-1;(h=this.tabsContainer)==null||h.scrollBy({left:this.tabsContainer.clientWidth*(e===ns.FORWARD?s:n),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var n,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(x=>x.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=(n=ol(this.tabs))==null?void 0:n.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=yf(this.tabs,this.activeTabId);if(!(s instanceof Je))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",n=h=>L` ${this.shouldShowArrowButton(h)?L`<mdc-button
|
4848
4914
|
variant="tertiary"
|
4849
|
-
prefix-icon="arrow-${h===
|
4850
|
-
aria-label="Scroll tabs ${h===
|
4915
|
+
prefix-icon="arrow-${h===ns.FORWARD?e:s}-regular"
|
4916
|
+
aria-label="Scroll tabs ${h===ns.FORWARD?e:s}"
|
4851
4917
|
@click="${()=>this.scrollTabs(h)}"
|
4852
|
-
></mdc-button>`:W}`;return
|
4918
|
+
></mdc-button>`:W}`;return L` ${n("backward")}
|
4853
4919
|
<div class="container" role="${st.TABLIST}" tabindex="-1" aria-label="${nt(this.dataAriaLabel)}">
|
4854
4920
|
<slot></slot>
|
4855
4921
|
</div>
|
4856
|
-
${n(
|
4922
|
+
${n(ns.FORWARD)}`}};mr.styles=[...q.styles,...ff],f([g({type:String,attribute:"active-tab-id",reflect:!0})],mr.prototype,"activeTabId",2),f([g({type:String,attribute:"data-aria-label"})],mr.prototype,"dataAriaLabel",2),f([Pr(".container")],mr.prototype,"tabsContainer",2),f([Pr("mdc-button:not(:focus-visible)")],mr.prototype,"notFocusedArrowButton",2),f([Ft({selector:"mdc-tab"})],mr.prototype,"tabs",2),f([It()],mr.prototype,"showForwardArrowButton",2),f([It()],mr.prototype,"showBackwardArrowButton",2);var vd=mr;vd.register(vf);var nE=vd;var Ef=j.constructTagName("textarea"),gd={HARD:"hard",SOFT:"soft"},Tf={OFF:"off",ON:"on"},sl={CHARACTER_COUNTER_TYPE:it.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:gd.SOFT};var lE=[H`
|
4857
4923
|
:host {
|
4858
4924
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
4859
4925
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4972,11 +5038,11 @@
|
|
4972
5038
|
opacity: 0;
|
4973
5039
|
pointer-events: none;
|
4974
5040
|
}
|
4975
|
-
`,...At(!0)],
|
4976
|
-
<mdc-text part="character-counter" tagname="span" type=${
|
5041
|
+
`,...At(!0)],xf=lE;var ae=class extends Le(jt(Ke)){constructor(){super(...arguments);this.readonly=!1;this.rows=sl.ROWS;this.cols=sl.COLS;this.wrap=gd.SOFT;this.autocapitalize=Hn.OFF;this.autocomplete=Tf.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===Yt.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,n){super.attributeChangedCallback(e,s,n),["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?L`
|
5042
|
+
<mdc-text part="character-counter" tagname="span" type=${sl.CHARACTER_COUNTER_TYPE}>
|
4977
5043
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
4978
5044
|
</mdc-text>
|
4979
|
-
`:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:
|
5045
|
+
`:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:L` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}render(){var e;return L`
|
4980
5046
|
${this.renderLabel()}
|
4981
5047
|
<div class="textarea-container mdc-focus-ring" part="textarea-container">
|
4982
5048
|
<textarea
|
@@ -5005,7 +5071,7 @@
|
|
5005
5071
|
></textarea>
|
5006
5072
|
</div>
|
5007
5073
|
${this.renderTextareaFooter()}
|
5008
|
-
`}};
|
5074
|
+
`}};ae.styles=[...Ke.styles,...xf],f([g({type:String})],ae.prototype,"placeholder",2),f([g({type:Boolean})],ae.prototype,"readonly",2),f([g({type:Number})],ae.prototype,"rows",2),f([g({type:Number})],ae.prototype,"cols",2),f([g({type:String})],ae.prototype,"wrap",2),f([g({type:String})],ae.prototype,"autocapitalize",2),f([g({type:String})],ae.prototype,"autocomplete",2),f([g({type:Boolean})],ae.prototype,"autofocus",2),f([g({type:String})],ae.prototype,"dirname",2),f([g({type:Number})],ae.prototype,"maxlength",2),f([g({type:Number})],ae.prototype,"minlength",2),f([g({type:Number,attribute:"max-character-limit"})],ae.prototype,"maxCharacterLimit",2),f([Pr("textarea")],ae.prototype,"inputElement",2);var bd=ae;bd.register(Ef);var cE=bd;var al=j.constructTagName("themeprovider"),yd={THEMECLASS:"mds-theme-stable-darkWebex"};var nl=class{constructor(i){this.themeclass=i}};nl.context=al;var ll=nl;var dE=H`
|
5009
5075
|
:host {
|
5010
5076
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
5011
5077
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -5032,7 +5098,7 @@
|
|
5032
5098
|
* {
|
5033
5099
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
5034
5100
|
}
|
5035
|
-
`,
|
5101
|
+
`,Af=[dE];var ls=class extends di{constructor(){super({context:ll.context,initialValue:new ll(yd.THEMECLASS)});this.themeclass=yd.THEMECLASS}static get Context(){return ll.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(" "))}};ls.styles=[...di.styles,...Af],f([It()],ls.prototype,"currentThemeClass",2),f([g({type:String})],ls.prototype,"themeclass",2);var Ed=ls;Ed.register(al);var hE=Ed;var pE=[Et,H`
|
5036
5102
|
:host {
|
5037
5103
|
--mdc-toggle-width: 3rem;
|
5038
5104
|
--mdc-toggle-height: 1.5rem;
|
@@ -5118,7 +5184,7 @@
|
|
5118
5184
|
:host([disabled]) .mdc-help-text {
|
5119
5185
|
color: var(--mdc-toggle-label-color-disabled);
|
5120
5186
|
}
|
5121
|
-
`,...At(!0)],
|
5187
|
+
`,...At(!0)],_f=pE;var uo=class extends Le(jt(Ke)){constructor(){super(...arguments);this.checked=!1;this.size=Hc.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===Q.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(pa).includes(e)?e:Hc.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return L`
|
5122
5188
|
<mdc-statictoggle
|
5123
5189
|
?checked="${this.checked}"
|
5124
5190
|
?disabled="${this.disabled}"
|
@@ -5146,10 +5212,10 @@
|
|
5146
5212
|
/>
|
5147
5213
|
</mdc-statictoggle>
|
5148
5214
|
${this.renderLabel()} ${this.renderHelperText()}
|
5149
|
-
`}};
|
5215
|
+
`}};uo.styles=[...Ke.styles,..._f],f([g({type:Boolean,reflect:!0})],uo.prototype,"checked",2),f([g({type:String,reflect:!0})],uo.prototype,"size",2),f([g({type:Boolean,reflect:!0})],uo.prototype,"autofocus",2);var Td=uo;Td.register(Iu);var mE=Td;function fo(l,i,e){var h;let s=(h=e.initialDeps)!=null?h:[],n;return()=>{var m,x,R,$;let Y;e.key&&((m=e.debug)!=null&&m.call(e))&&(Y=Date.now());let K=l();if(!(K.length!==s.length||K.some((et,ht)=>s[ht]!==et)))return n;s=K;let J;if(e.key&&((x=e.debug)!=null&&x.call(e))&&(J=Date.now()),n=i(...K),e.key&&((R=e.debug)!=null&&R.call(e))){let et=Math.round((Date.now()-Y)*100)/100,ht=Math.round((Date.now()-J)*100)/100,Tt=ht/16,yt=(xt,kt)=>{for(xt=String(xt);xt.length<kt;)xt=" "+xt;return xt};console.info(`%c\u23F1 ${yt(ht,5)} /${yt(et,5)} ms`,`
|
5150
5216
|
font-size: .6rem;
|
5151
5217
|
font-weight: bold;
|
5152
|
-
color: hsl(${Math.max(0,Math.min(120-120*Tt,120))}deg 100% 31%);`,e==null?void 0:e.key)}return($=e==null?void 0:e.onChange)==null||$.call(e,n),n}}function ol(l,i){if(l===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return l}var bf=(l,i)=>Math.abs(l-i)<1,yf=(l,i,e)=>{let s;return function(...n){l.clearTimeout(s),s=l.setTimeout(()=>i.apply(this,n),e)}};var sE=l=>l,aE=l=>{let i=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let n=i;n<=e;n++)s.push(n);return s},Tf=(l,i)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=m=>{let{width:x,height:R}=m;i({width:Math.round(x),height:Math.round(R)})};if(n(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(m=>{let x=m[0];if(x!=null&&x.borderBoxSize){let R=x.borderBoxSize[0];if(R){n({width:R.inlineSize,height:R.blockSize});return}}n(e.getBoundingClientRect())});return h.observe(e,{box:"border-box"}),()=>{h.unobserve(e)}},Ef={passive:!0};var nE=typeof window>"u"?!0:"onscrollend"in window,xf=(l,i)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=0,h=l.options.useScrollendEvent&&nE?()=>{}:yf(s,()=>{i(n,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:Y,isRtl:K}=l.options;n=Y?e.scrollLeft*(K&&-1||1):e.scrollTop,h(),i(n,$)},x=m(!0),R=m(!1);return R(),e.addEventListener("scroll",x,Ef),e.addEventListener("scrollend",R,Ef),()=>{e.removeEventListener("scroll",x),e.removeEventListener("scrollend",R)}};var lE=(l,i,e)=>{if(i!=null&&i.borderBoxSize){let s=i.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Af=(l,{adjustments:i=0,behavior:e},s)=>{var n,h;let m=l+i;(h=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||h.call(n,{[s.options.horizontal?"left":"top"]:m,behavior:e})},sl=class{constructor(i){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(n=>{n.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var n;(n=s())==null||n.disconnect(),e=null},observe:n=>{var h;return(h=s())==null?void 0:h.observe(n,{box:"border-box"})},unobserve:n=>{var h;return(h=s())==null?void 0:h.unobserve(n)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,n])=>{typeof n>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:sE,rangeExtractor:aE,onChange:()=>{},measureElement:lE,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,n;(n=(s=this.options).onChange)==null||n.call(s,this,e)},this.maybeNotify=uo(()=>(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 n;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=(n=(e=this.scrollElement)==null?void 0:e.window)!=null?n: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 n=new Map,h=new Map;for(let m=s-1;m>=0;m--){let x=e[m];if(n.has(x.lane))continue;let R=h.get(x.lane);if(R==null||x.end>R.end?h.set(x.lane,x):x.end<R.end&&n.set(x.lane,!0),n.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((m,x)=>m.end===x.end?m.index-x.index:m.end-x.end)[0]:void 0},this.getMeasurementOptions=uo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,n,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=uo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:m},x)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(Y=>{this.itemSizeCache.set(Y.key,Y.size)}));let R=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,R);for(let Y=R;Y<e;Y++){let K=h(Y),at=this.options.lanes===1?$[Y-1]:this.getFurthestMeasurement($,Y),J=at?at.end+this.options.gap:s+n,et=x.get(K),ht=typeof et=="number"?et:this.options.estimateSize(Y),Tt=J+ht,yt=at?at.lane:Y%this.options.lanes;$[Y]={index:Y,start:J,size:ht,end:Tt,key:K,lane:yt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=uo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,n)=>this.range=e.length>0&&s>0?cE({measurements:e,outerSize:s,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=uo(()=>{let e=null,s=null,n=this.calculateRange();return n&&(e=n.startIndex,s=n.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,n,h,m)=>h===null||m===null?[]:e({startIndex:h,endIndex:m,overscan:s,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let s=this.options.indexAttribute,n=e.getAttribute(s);return n?parseInt(n,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{let n=this.indexFromElement(e),h=this.measurementsCache[n];if(!h)return;let m=h.key,x=this.elementsCache.get(m);x!==e&&(x&&this.observer.unobserve(x),this.observer.observe(e),this.elementsCache.set(m,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{var x;let n=this.measurementsCache[e];if(!n)return;let h=(x=this.itemSizeCache.get(n.key))!=null?x:n.size,m=s-h;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,m,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,s)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((s,n)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(n))});return}this._measureElement(e,void 0)},this.getVirtualItems=uo(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{let n=[];for(let h=0,m=e.length;h<m;h++){let x=e[h],R=s[x];n.push(R)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let s=this.getMeasurements();if(s.length!==0)return ol(s[_f(0,s.length-1,n=>ol(s[n]).start,e)])},this.getOffsetForAlignment=(e,s)=>{let n=this.getSize(),h=this.getScrollOffset();s==="auto"&&e>=h+n&&(s="end"),s==="end"&&(e-=n);let m=this.options.horizontal?"scrollWidth":"scrollHeight",R=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-n;return Math.max(Math.min(R,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let h=this.getSize(),m=this.getScrollOffset();if(s==="auto")if(n.end>=m+h-this.options.scrollPaddingEnd)s="end";else if(n.start<=m+this.options.scrollPaddingStart)s="start";else return[m,s];let x=n.start-this.options.scrollPaddingStart+(n.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(x,s),s];case"end":return[this.getOffsetForAlignment(n.end+this.options.scrollPaddingEnd,s),s];default:return[this.getOffsetForAlignment(n.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:n}={})=>{this.cancelScrollToIndex(),n==="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:n})},this.scrollToIndex=(e,{align:s="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),n==="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,x]=h;this._scrollToOffset(m,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[$]=ol(this.getOffsetForIndex(e,x));bf($,this.getScrollOffset())||this.scrollToIndex(e,{align:x,behavior:n})}else this.scrollToIndex(e,{align:x,behavior:n})}))},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(),n;return s.length===0?n=this.options.paddingStart:n=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(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},_f=(l,i,e,s)=>{for(;l<=i;){let n=(l+i)/2|0,h=e(n);if(h<s)l=n+1;else if(h>s)i=n-1;else return n}return l>0?l-1:0};function cE({measurements:l,outerSize:i,scrollOffset:e}){let s=l.length-1,h=_f(0,s,x=>l[x].start,e),m=h;for(;m<s&&l[m].end<e+i;)m++;return{startIndex:h,endIndex:m}}var bd=class{constructor(i,e){this.cleanup=()=>{},(this.host=i).addController(this);let s={...e,onChange:(n,h)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=e.onChange)==null||m.call(e,n,h)}};this.virtualizer=new sl(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},al=class extends bd{constructor(i,e){super(i,{observeElementRect:Tf,observeElementOffset:xf,scrollToFn:Af,...e})}};var dE=[G`
|
5218
|
+
color: hsl(${Math.max(0,Math.min(120-120*Tt,120))}deg 100% 31%);`,e==null?void 0:e.key)}return($=e==null?void 0:e.onChange)==null||$.call(e,n),n}}function cl(l,i){if(l===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return l}var Sf=(l,i)=>Math.abs(l-i)<1,If=(l,i,e)=>{let s;return function(...n){l.clearTimeout(s),s=l.setTimeout(()=>i.apply(this,n),e)}};var uE=l=>l,fE=l=>{let i=Math.max(l.startIndex-l.overscan,0),e=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let n=i;n<=e;n++)s.push(n);return s},Cf=(l,i)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=m=>{let{width:x,height:R}=m;i({width:Math.round(x),height:Math.round(R)})};if(n(e.getBoundingClientRect()),!s.ResizeObserver)return()=>{};let h=new s.ResizeObserver(m=>{let x=m[0];if(x!=null&&x.borderBoxSize){let R=x.borderBoxSize[0];if(R){n({width:R.inlineSize,height:R.blockSize});return}}n(e.getBoundingClientRect())});return h.observe(e,{box:"border-box"}),()=>{h.unobserve(e)}},kf={passive:!0};var vE=typeof window>"u"?!0:"onscrollend"in window,wf=(l,i)=>{let e=l.scrollElement;if(!e)return;let s=l.targetWindow;if(!s)return;let n=0,h=l.options.useScrollendEvent&&vE?()=>{}:If(s,()=>{i(n,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:Y,isRtl:K}=l.options;n=Y?e.scrollLeft*(K&&-1||1):e.scrollTop,h(),i(n,$)},x=m(!0),R=m(!1);return R(),e.addEventListener("scroll",x,kf),e.addEventListener("scrollend",R,kf),()=>{e.removeEventListener("scroll",x),e.removeEventListener("scrollend",R)}};var gE=(l,i,e)=>{if(i!=null&&i.borderBoxSize){let s=i.borderBoxSize[0];if(s)return Math.round(s[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Lf=(l,{adjustments:i=0,behavior:e},s)=>{var n,h;let m=l+i;(h=(n=s.scrollElement)==null?void 0:n.scrollTo)==null||h.call(n,{[s.options.horizontal?"left":"top"]:m,behavior:e})},dl=class{constructor(i){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(n=>{n.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var n;(n=s())==null||n.disconnect(),e=null},observe:n=>{var h;return(h=s())==null?void 0:h.observe(n,{box:"border-box"})},unobserve:n=>{var h;return(h=s())==null?void 0:h.unobserve(n)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([s,n])=>{typeof n>"u"&&delete e[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:uE,rangeExtractor:fE,onChange:()=>{},measureElement:gE,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,n;(n=(s=this.options).onChange)==null||n.call(s,this,e)},this.maybeNotify=fo(()=>(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 n;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=(n=(e=this.scrollElement)==null?void 0:e.window)!=null?n: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 n=new Map,h=new Map;for(let m=s-1;m>=0;m--){let x=e[m];if(n.has(x.lane))continue;let R=h.get(x.lane);if(R==null||x.end>R.end?h.set(x.lane,x):x.end<R.end&&n.set(x.lane,!0),n.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((m,x)=>m.end===x.end?m.index-x.index:m.end-x.end)[0]:void 0},this.getMeasurementOptions=fo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,s,n,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=fo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:s,scrollMargin:n,getItemKey:h,enabled:m},x)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(Y=>{this.itemSizeCache.set(Y.key,Y.size)}));let R=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,R);for(let Y=R;Y<e;Y++){let K=h(Y),at=this.options.lanes===1?$[Y-1]:this.getFurthestMeasurement($,Y),J=at?at.end+this.options.gap:s+n,et=x.get(K),ht=typeof et=="number"?et:this.options.estimateSize(Y),Tt=J+ht,yt=at?at.lane:Y%this.options.lanes;$[Y]={index:Y,start:J,size:ht,end:Tt,key:K,lane:yt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=fo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,s,n)=>this.range=e.length>0&&s>0?bE({measurements:e,outerSize:s,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=fo(()=>{let e=null,s=null,n=this.calculateRange();return n&&(e=n.startIndex,s=n.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,s]},(e,s,n,h,m)=>h===null||m===null?[]:e({startIndex:h,endIndex:m,overscan:s,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let s=this.options.indexAttribute,n=e.getAttribute(s);return n?parseInt(n,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(e,s)=>{let n=this.indexFromElement(e),h=this.measurementsCache[n];if(!h)return;let m=h.key,x=this.elementsCache.get(m);x!==e&&(x&&this.observer.unobserve(x),this.observer.observe(e),this.elementsCache.set(m,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,s,this))},this.resizeItem=(e,s)=>{var x;let n=this.measurementsCache[e];if(!n)return;let h=(x=this.itemSizeCache.get(n.key))!=null?x:n.size,m=s-h;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,m,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,s)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((s,n)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(n))});return}this._measureElement(e,void 0)},this.getVirtualItems=fo(()=>[this.getIndexes(),this.getMeasurements()],(e,s)=>{let n=[];for(let h=0,m=e.length;h<m;h++){let x=e[h],R=s[x];n.push(R)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let s=this.getMeasurements();if(s.length!==0)return cl(s[Nf(0,s.length-1,n=>cl(s[n]).start,e)])},this.getOffsetForAlignment=(e,s)=>{let n=this.getSize(),h=this.getScrollOffset();s==="auto"&&e>=h+n&&(s="end"),s==="end"&&(e-=n);let m=this.options.horizontal?"scrollWidth":"scrollHeight",R=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-n;return Math.max(Math.min(R,e),0)},this.getOffsetForIndex=(e,s="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let h=this.getSize(),m=this.getScrollOffset();if(s==="auto")if(n.end>=m+h-this.options.scrollPaddingEnd)s="end";else if(n.start<=m+this.options.scrollPaddingStart)s="start";else return[m,s];let x=n.start-this.options.scrollPaddingStart+(n.size-h)/2;switch(s){case"center":return[this.getOffsetForAlignment(x,s),s];case"end":return[this.getOffsetForAlignment(n.end+this.options.scrollPaddingEnd,s),s];default:return[this.getOffsetForAlignment(n.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:n}={})=>{this.cancelScrollToIndex(),n==="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:n})},this.scrollToIndex=(e,{align:s="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),n==="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,x]=h;this._scrollToOffset(m,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[$]=cl(this.getOffsetForIndex(e,x));Sf($,this.getScrollOffset())||this.scrollToIndex(e,{align:x,behavior:n})}else this.scrollToIndex(e,{align:x,behavior:n})}))},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(),n;return s.length===0?n=this.options.paddingStart:n=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(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:s,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Nf=(l,i,e,s)=>{for(;l<=i;){let n=(l+i)/2|0,h=e(n);if(h<s)l=n+1;else if(h>s)i=n-1;else return n}return l>0?l-1:0};function bE({measurements:l,outerSize:i,scrollOffset:e}){let s=l.length-1,h=Nf(0,s,x=>l[x].start,e),m=h;for(;m<s&&l[m].end<e+i;)m++;return{startIndex:h,endIndex:m}}var xd=class{constructor(i,e){this.cleanup=()=>{},(this.host=i).addController(this);let s={...e,onChange:(n,h)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=e.onChange)==null||m.call(e,n,h)}};this.virtualizer=new dl(s)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},hl=class extends xd{constructor(i,e){super(i,{observeElementRect:Cf,observeElementOffset:wf,scrollToFn:Lf,...e})}};var yE=[H`
|
5153
5219
|
:host::part(scroll) {
|
5154
5220
|
height: 100%;
|
5155
5221
|
width: 100%;
|
@@ -5159,11 +5225,11 @@
|
|
5159
5225
|
position: relative;
|
5160
5226
|
width: 100%;
|
5161
5227
|
}
|
5162
|
-
`],
|
5228
|
+
`],Rf=yE;var Mf=j.constructTagName("virtualizedlist"),Yj=j.constructTagName("virtualizedwrapper"),Of={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var vo=class extends q{constructor(){super();this.virtualizerProps=Of.VIRTUALIZER_PROPS;this.scrollElementRef=dn();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 hl(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 x,R;this.virtualizer=e.getVirtualizer();let{getTotalSize:s,getVirtualItems:n,measureElement:h}=this.virtualizer,m=n();if(m!==this.virtualItems){this.virtualItems=m;let $=n(),Y={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(R=(x=$[0])==null?void 0:x.start)!=null?R:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:$,measureElement:h,listStyle:Y})}return L`<div part="container" style="height: ${s()}px;">
|
5163
5229
|
<slot></slot>
|
5164
|
-
</div>`}render(){return
|
5165
|
-
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):
|
5166
|
-
</div> `}};
|
5230
|
+
</div>`}render(){return L`<div ${hn(this.scrollElementRef)} part="scroll" @scroll=${this.onscroll&&this.onscroll}>
|
5231
|
+
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):L``}
|
5232
|
+
</div> `}};vo.styles=[...q.styles,...Rf],f([g({type:Function,attribute:"onscroll"})],vo.prototype,"onscroll",2),f([g({type:Object,attribute:"virtualizerprops"})],vo.prototype,"virtualizerProps",2),f([g({type:Function,attribute:"setlistdata"})],vo.prototype,"setlistdata",2);var Ad=vo;Ad.register(Mf);var EE=Ad;var _d=class extends q{constructor(){super(...arguments);this.role=st.LISTBOX}createRenderRoot(){return this}},Sd=_d;var Pf=j.constructTagName("selectlistbox");Sd.register(Pf);var TE=Sd;var xE=H`
|
5167
5233
|
:host {
|
5168
5234
|
gap: 0.5rem;
|
5169
5235
|
border-radius: 0.25rem;
|
@@ -5316,23 +5382,23 @@
|
|
5316
5382
|
:host([status='error-incomplete']:active) {
|
5317
5383
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
5318
5384
|
}
|
5319
|
-
`,
|
5385
|
+
`,Df=[Et,xE,...At()];var Ff=j.constructTagName("stepperitem"),AE={INLINE:"inline",STACKED:"stacked"},Kr={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},pl={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},Id={VARIANT:AE.INLINE,STATUS:Kr.NOT_STARTED};var Xr=class extends Ue(q){constructor(){super();this.variant=Id.VARIANT;this.status=Id.STATUS;this.label="";this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}connectedCallback(){super.connectedCallback(),this.role=st.LISTITEM}handleKeyDown(e){[Q.ENTER,Q.SPACE].includes(e.key)&&(this.classList.add("pressed"),e.key===Q.ENTER&&this.triggerClickEvent(),e.preventDefault())}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleKeyUp(e){[Q.ENTER,Q.SPACE].includes(e.key)&&(this.classList.remove("pressed"),e.key===Q.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Kr.COMPLETED?L`<mdc-icon part="status-icon" name=${pl.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Kr.ERROR_CURRENT||this.status===Kr.CURRENT?L`<mdc-icon part="status-icon" name=${pl.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Kr.NOT_STARTED||this.status===Kr.ERROR_INCOMPLETE)?L`<mdc-text part="step-number" tagname=${vt.SPAN} type=${it.BODY_MIDSIZE_REGULAR}
|
5320
5386
|
>${this.stepNumber}</mdc-text
|
5321
|
-
>`:W}renderHelpText(){if(!this.helpText)return W;let e=
|
5387
|
+
>`:W}renderHelpText(){if(!this.helpText)return W;let e=L`<mdc-text
|
5322
5388
|
part="help-text"
|
5323
5389
|
tagname=${vt.SPAN}
|
5324
5390
|
type=${it.BODY_MIDSIZE_REGULAR}
|
5325
5391
|
>${this.helpText}</mdc-text
|
5326
|
-
>`;return this.status===Kr.ERROR_INCOMPLETE||this.status===Kr.ERROR_CURRENT?
|
5327
|
-
<mdc-icon part="help-icon" name=${
|
5392
|
+
>`;return this.status===Kr.ERROR_INCOMPLETE||this.status===Kr.ERROR_CURRENT?L`<div part="help-text-container">
|
5393
|
+
<mdc-icon part="help-icon" name=${pl.ERROR} length-unit="rem" size="1"></mdc-icon>
|
5328
5394
|
${e}
|
5329
|
-
</div>`:e}render(){return
|
5395
|
+
</div>`:e}render(){return L` <div part="status-container">${this.renderStatusIcon()}</div>
|
5330
5396
|
<div part="label-container">
|
5331
|
-
${this.label?
|
5397
|
+
${this.label?L`<mdc-text part="label" tagname=${vt.SPAN} type=${it.BODY_MIDSIZE_REGULAR}
|
5332
5398
|
>${this.label}</mdc-text
|
5333
5399
|
>`:W}
|
5334
5400
|
${this.renderHelpText()}
|
5335
|
-
</div>`}};Xr.styles=[...q.styles,...
|
5401
|
+
</div>`}};Xr.styles=[...q.styles,...Df],f([g({type:String,reflect:!0})],Xr.prototype,"variant",2),f([g({type:String,reflect:!0})],Xr.prototype,"status",2),f([g({type:String,reflect:!0})],Xr.prototype,"label",2),f([g({type:String,reflect:!0,attribute:"help-text"})],Xr.prototype,"helpText",2),f([g({type:Number,reflect:!0,attribute:"step-number"})],Xr.prototype,"stepNumber",2);var kd=Xr;kd.register(Ff);var _E=kd;var SE={COMPLETE:"complete",INCOMPLETE:"incomplete"},IE={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Cd={STATUS:SE.INCOMPLETE,ORIENTATION:IE.HORIZONTAL},$f=j.constructTagName("stepperconnector");var kE=H`
|
5336
5402
|
:host {
|
5337
5403
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
5338
5404
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
@@ -5367,7 +5433,7 @@
|
|
5367
5433
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
5368
5434
|
}
|
5369
5435
|
}
|
5370
|
-
`,
|
5436
|
+
`,zf=[kE];var cs=class extends q{constructor(){super(...arguments);this.status=Cd.STATUS;this.orientation=Cd.ORIENTATION}updated(e){super.updated(e),e.has("orientation")&&(this.ariaOrientation=this.orientation)}render(){return L` <div part="connector"></div> `}};cs.styles=[...q.styles,...zf],f([g({type:String,reflect:!0})],cs.prototype,"status",2),f([g({type:String,reflect:!0})],cs.prototype,"orientation",2);var wd=cs;wd.register($f);var CE=wd;})();
|
5371
5437
|
/*! Bundled license information:
|
5372
5438
|
|
5373
5439
|
lottie-web/build/player/lottie_light.js:
|