@momentum-design/components 0.104.5 → 0.104.6
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 +268 -263
- package/dist/browser/index.js.map +4 -4
- package/dist/components/slider/index.d.ts +7 -0
- package/dist/components/slider/index.js +4 -0
- package/dist/components/slider/slider.component.d.ts +120 -0
- package/dist/components/slider/slider.component.js +189 -0
- package/dist/components/slider/slider.constants.d.ts +2 -0
- package/dist/components/slider/slider.constants.js +3 -0
- package/dist/components/slider/slider.styles.d.ts +2 -0
- package/dist/components/slider/slider.styles.js +7 -0
- package/dist/components/slider/slider.types.d.ts +3 -0
- package/dist/components/slider/slider.types.js +2 -0
- package/dist/custom-elements.json +3312 -2800
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/index.d.ts +5 -4
- package/dist/react/index.js +5 -4
- package/dist/react/slider/index.d.ts +12 -0
- package/dist/react/slider/index.js +21 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";(()=>{var Cg=Object.create;var Xl=Object.defineProperty;var Jh=Object.getOwnPropertyDescriptor;var wg=Object.getOwnPropertyNames;var Ng=Object.getPrototypeOf,Lg=Object.prototype.hasOwnProperty;var Rg=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var Mg=(l,i,t,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of wg(i))!Lg.call(l,a)&&a!==t&&Xl(l,a,{get:()=>i[a],enumerable:!(o=Jh(i,a))||o.enumerable});return l};var Og=(l,i,t)=>(t=l!=null?Cg(Ng(l)):{},Mg(i||!l||!l.__esModule?Xl(t,"default",{value:l,enumerable:!0}):t,l));var p=(l,i,t,o)=>{for(var a=o>1?void 0:o?Jh(i,t):i,h=l.length-1,m;h>=0;h--)(m=l[h])&&(a=(o?m(i,t,a):m(a))||a);return o&&a&&Xl(i,t,a),a};var Xp=Rg((ea,Mn)=>{typeof navigator<"u"&&function(l,i){typeof ea=="object"&&typeof Mn<"u"?Mn.exports=i():typeof define=="function"&&define.amd?define(i):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=i())}(ea,function(){"use strict";var l="http://www.w3.org/2000/svg",i="",t=!1,o=-999999,a=function(r){t=!!r},h=function(){return t},m=function(r){i=r},T=function(){return i};function N(e){return document.createElement(e)}function $(e,r){var s,n=e.length,d;for(s=0;s<n;s+=1){d=e[s].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function q(e,r){return Object.getOwnPropertyDescriptor(e,r)}function K(e){function r(){}return r.prototype=e,r}var nt=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(s){this.audios.push(s)},pause:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].pause()},resume:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].resume()},setRate:function(s){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].setRate(s)},createAudio:function(s){return this.audioFactory?this.audioFactory(s):window.Howl?new window.Howl({src:[s]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(s){this.audioFactory=s},setVolume:function(s){this._volume=s,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),Q=function(){function e(s,n){var d=0,c=[],f;switch(s){case"int16":case"uint8c":f=1;break;default:f=1.1;break}for(d=0;d<n;d+=1)c.push(f);return c}function r(s,n){return s==="float32"?new Float32Array(n):s==="int16"?new Int16Array(n):s==="uint8c"?new Uint8ClampedArray(n):e(s,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function rt(e){return Array.apply(null,{length:e})}function dt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(s){return typeof s}:dt=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},dt(e)}var ut=!0,Tt=null,St=null,Ct="",Ht=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Dt=!1,zt=Math.pow,Wt=Math.sqrt,ie=Math.floor,or=Math.max,_e=Math.min,Ve={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r,s=e.length;for(r=0;r<s;r+=1)Ve[e[r]]=Math[e[r]]})();function sr(){return{}}Ve.random=Math.random,Ve.abs=function(e){var r=dt(e);if(r==="object"&&e.length){var s=rt(e.length),n,d=e.length;for(n=0;n<d;n+=1)s[n]=Math.abs(e[n]);return s}return Math.abs(e)};var ar=150,It=Math.PI/180,le=.5519;function Be(e){Dt=!!e}function Ue(e){return Dt?Math.round(e):e}function He(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function Ge(e,r,s,n){this.type=e,this.currentTime=r,this.totalTime=s,this.direction=n<0?-1:1}function za(e,r){this.type=e,this.direction=r<0?-1:1}function ah(e,r,s,n){this.type=e,this.currentLoop=s,this.totalLoops=r,this.direction=n<0?-1:1}function nh(e,r,s){this.type=e,this.firstFrame=r,this.totalFrames=s}function lh(e,r){this.type=e,this.target=r}function Cv(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function wv(e){this.type="configError",this.nativeError=e}function BT(e,r){this.type=e,this.nativeError=r}var Ie=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function Fl(e,r,s){var n,d,c,f,x,v,I,L;switch(f=Math.floor(e*6),x=e*6-f,v=s*(1-r),I=s*(1-x*r),L=s*(1-(1-x)*r),f%6){case 0:n=s,d=L,c=v;break;case 1:n=I,d=s,c=v;break;case 2:n=v,d=s,c=L;break;case 3:n=v,d=I,c=s;break;case 4:n=L,d=v,c=s;break;case 5:n=s,d=v,c=I;break;default:break}return[n,d,c]}function $l(e,r,s){var n=Math.max(e,r,s),d=Math.min(e,r,s),c=n-d,f,x=n===0?0:c/n,v=n/255;switch(n){case d:f=0;break;case e:f=r-s+c*(r<s?6:0),f/=6*c;break;case r:f=s-e+c*2,f/=6*c;break;case s:f=e-r+c*4,f/=6*c;break;default:break}return[f,x,v]}function ch(e,r){var s=$l(e[0]*255,e[1]*255,e[2]*255);return s[1]+=r,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),Fl(s[0],s[1],s[2])}function dh(e,r){var s=$l(e[0]*255,e[1]*255,e[2]*255);return s[2]+=r,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),Fl(s[0],s[1],s[2])}function hh(e,r){var s=$l(e[0]*255,e[1]*255,e[2]*255);return s[0]+=r/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),Fl(s[0],s[1],s[2])}var UT=function(){var e=[],r,s;for(r=0;r<256;r+=1)s=r.toString(16),e[r]=s.length===1?"0"+s:s;return function(n,d,c){return n<0&&(n=0),d<0&&(d=0),c<0&&(c=0),"#"+e[n]+e[d]+e[c]}}(),Nv=function(r){ut=!!r},Lv=function(){return ut},Rv=function(r){Tt=r},Va=function(){return Tt},HT=function(r){St=r},ph=function(){return St},Ba=function(r){ar=r},xs=function(){return ar},Mv=function(r){Ct=r},GT=function(){return Ct};function bt(e){return document.createElementNS(l,e)}function Ua(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ua=function(s){return typeof s}:Ua=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ua(e)}var As=function(){var e=1,r=[],s,n,d={onmessage:function(){},postMessage:function(R){s({data:R})}},c={postMessage:function(R){d.onmessage({data:R})}};function f(E){if(window.Worker&&window.Blob&&h()){var R=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(R);return new Worker(P)}return s=E,d}function x(){n||(n=f(function(R){function P(){function z(X,S){var O,u,b=X.length,U,F,at,mt;for(u=0;u<b;u+=1)if(O=X[u],"ks"in O&&!O.completed){if(O.completed=!0,O.hasMask){var vt=O.masksProperties;for(F=vt.length,U=0;U<F;U+=1)if(vt[U].pt.k.i)k(vt[U].pt.k);else for(mt=vt[U].pt.k.length,at=0;at<mt;at+=1)vt[U].pt.k[at].s&&k(vt[U].pt.k[at].s[0]),vt[U].pt.k[at].e&&k(vt[U].pt.k[at].e[0])}O.ty===0?(O.layers=y(O.refId,S),z(O.layers,S)):O.ty===4?A(O.shapes):O.ty===5&&yt(O)}}function w(X,S){if(X){var O=0,u=X.length;for(O=0;O<u;O+=1)X[O].t===1&&(X[O].data.layers=y(X[O].data.refId,S),z(X[O].data.layers,S))}}function _(X,S){for(var O=0,u=S.length;O<u;){if(S[O].id===X)return S[O];O+=1}return null}function y(X,S){var O=_(X,S);return O?O.layers.__used?JSON.parse(JSON.stringify(O.layers)):(O.layers.__used=!0,O.layers):null}function A(X){var S,O=X.length,u,b;for(S=O-1;S>=0;S-=1)if(X[S].ty==="sh")if(X[S].ks.k.i)k(X[S].ks.k);else for(b=X[S].ks.k.length,u=0;u<b;u+=1)X[S].ks.k[u].s&&k(X[S].ks.k[u].s[0]),X[S].ks.k[u].e&&k(X[S].ks.k[u].e[0]);else X[S].ty==="gr"&&A(X[S].it)}function k(X){var S,O=X.i.length;for(S=0;S<O;S+=1)X.i[S][0]+=X.v[S][0],X.i[S][1]+=X.v[S][1],X.o[S][0]+=X.v[S][0],X.o[S][1]+=X.v[S][1]}function D(X,S){var O=S?S.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 S(u){var b=u.t.d;u.t.d={k:[{s:b,t:0}]}}function O(u){var b,U=u.length;for(b=0;b<U;b+=1)u[b].ty===5&&S(u[b])}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}(),H=function(){var X=[4,7,99];return function(S){if(S.chars&&!D(X,S.v)){var O,u=S.chars.length;for(O=0;O<u;O+=1){var b=S.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}},S.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 S(u){var b=u.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(u){var b,U=u.length;for(b=0;b<U;b+=1)u[b].ty===5&&S(u[b])}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}(),ft=function(){var X=[4,1,9];function S(u){var b,U=u.length,F,at;for(b=0;b<U;b+=1)if(u[b].ty==="gr")S(u[b].it);else if(u[b].ty==="fl"||u[b].ty==="st")if(u[b].c.k&&u[b].c.k[0].i)for(at=u[b].c.k.length,F=0;F<at;F+=1)u[b].c.k[F].s&&(u[b].c.k[F].s[0]/=255,u[b].c.k[F].s[1]/=255,u[b].c.k[F].s[2]/=255,u[b].c.k[F].s[3]/=255),u[b].c.k[F].e&&(u[b].c.k[F].e[0]/=255,u[b].c.k[F].e[1]/=255,u[b].c.k[F].e[2]/=255,u[b].c.k[F].e[3]/=255);else u[b].c.k[0]/=255,u[b].c.k[1]/=255,u[b].c.k[2]/=255,u[b].c.k[3]/=255}function O(u){var b,U=u.length;for(b=0;b<U;b+=1)u[b].ty===4&&S(u[b].shapes)}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}(),ht=function(){var X=[4,4,18];function S(u){var b,U=u.length,F,at;for(b=U-1;b>=0;b-=1)if(u[b].ty==="sh")if(u[b].ks.k.i)u[b].ks.k.c=u[b].closed;else for(at=u[b].ks.k.length,F=0;F<at;F+=1)u[b].ks.k[F].s&&(u[b].ks.k[F].s[0].c=u[b].closed),u[b].ks.k[F].e&&(u[b].ks.k[F].e[0].c=u[b].closed);else u[b].ty==="gr"&&S(u[b].it)}function O(u){var b,U,F=u.length,at,mt,vt,wt;for(U=0;U<F;U+=1){if(b=u[U],b.hasMask){var Nt=b.masksProperties;for(mt=Nt.length,at=0;at<mt;at+=1)if(Nt[at].pt.k.i)Nt[at].pt.k.c=Nt[at].cl;else for(wt=Nt[at].pt.k.length,vt=0;vt<wt;vt+=1)Nt[at].pt.k[vt].s&&(Nt[at].pt.k[vt].s[0].c=Nt[at].cl),Nt[at].pt.k[vt].e&&(Nt[at].pt.k[vt].e[0].c=Nt[at].cl)}b.ty===4&&S(b.shapes)}}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}();function et(X){X.__complete||(ft(X),V(X),H(X),Z(X),ht(X),z(X.layers,X.assets),w(X.chars,X.assets),X.__complete=!0)}function yt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=et,lt.checkColors=ft,lt.checkChars=H,lt.checkPathProperties=Z,lt.checkShapes=ht,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(_){var y=_.getResponseHeader("content-type");return y&&_.responseType==="json"&&y.indexOf("json")!==-1||_.response&&Ua(_.response)==="object"?_.response:_.response&&typeof _.response=="string"?JSON.parse(_.response):_.responseText?JSON.parse(_.responseText):null}function w(_,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(""),_,!0)}catch{V.open(["G","E","T"].join(""),y+"/"+_,!0)}V.send()}return{load:w}}()),R.data.type==="loadAnimation")c.assetLoader.load(R.data.path,R.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:R.data.id,payload:z,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})});else if(R.data.type==="complete"){var M=R.data.animation;c.dataManager.completeData(M),c.postMessage({id:R.data.id,payload:M,status:"success"})}else R.data.type==="loadData"&&c.assetLoader.load(R.data.path,R.data.fullPath,function(z){c.postMessage({id:R.data.id,payload:z,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})})}),n.onmessage=function(E){var R=E.data,P=R.id,M=r[P];r[P]=null,R.status==="success"?M.onComplete(R.payload):M.onError&&M.onError()})}function v(E,R){e+=1;var P="processId_"+e;return r[P]={onComplete:E,onError:R},P}function I(E,R,P){x();var M=v(R,P);n.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function L(E,R,P){x();var M=v(R,P);n.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,R,P){x();var M=v(R,P);n.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:L,completeAnimation:B}}(),Ov=function(){var e=function(){var w=N("canvas");w.width=1,w.height=1;var _=w.getContext("2d");return _.fillStyle="rgba(0,0,0,0)",_.fillRect(0,0,1,1),w}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(w,_,y){var A="";if(w.e)A=w.p;else if(_){var k=w.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),A=_+k}else A=y,A+=w.u?w.u:"",A+=w.p;return A}function d(w){var _=0,y=setInterval((function(){var A=w.getBBox();(A.width||_>500)&&(this._imageLoaded(),clearInterval(y)),_+=1}).bind(this),50)}function c(w){var _=n(w,this.assetsPath,this.path),y=bt("image");Ht?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",_),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var A={img:y,assetData:w};return A}function f(w){var _=n(w,this.assetsPath,this.path),y=N("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.src=_;var A={img:y,assetData:w};return A}function x(w){var _={assetData:w},y=n(w,this.assetsPath,this.path);return As.loadData(y,(function(A){_.img=A,this._footageLoaded()}).bind(this),(function(){_.img={},this._footageLoaded()}).bind(this)),_}function v(w,_){this.imagesLoadedCb=_;var y,A=w.length;for(y=0;y<A;y+=1)w[y].layers||(!w[y].t||w[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(w[y]))):w[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(w[y]))))}function I(w){this.path=w||""}function L(w){this.assetsPath=w||""}function B(w){for(var _=0,y=this.images.length;_<y;){if(this.images[_].assetData===w)return this.images[_].img;_+=1}return null}function E(){this.imagesLoadedCb=null,this.images.length=0}function R(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function M(w,_){w==="svg"?(this._elementHelper=_,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function z(){this._imageLoaded=r.bind(this),this._footageLoaded=s.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=x.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:L,setPath:I,loadedImages:R,loadedFootages:P,destroy:E,getAsset:B,createImgData:f,createImageData:c,imageLoaded:r,footageLoaded:s,setCacheType:M},z}();function mh(){}mh.prototype={triggerEvent:function(r,s){if(this._cbs[r])for(var n=this._cbs[r],d=0;d<n.length;d+=1)n[d](s)},addEventListener:function(r,s){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(s),(function(){this.removeEventListener(r,s)}).bind(this)},removeEventListener:function(r,s){if(!s)this._cbs[r]=null;else if(this._cbs[r]){for(var n=0,d=this._cbs[r].length;n<d;)this._cbs[r][n]===s&&(this._cbs[r].splice(n,1),n-=1,d-=1),n+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var Pv=function(){function e(r){for(var s=r.split(`\r
|
2
|
-
`),n={},d,c=0,f=0;f<s.length;f+=1)d=s[f].split(":"),d.length===2&&(n[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return n}return function(r){for(var s=[],n=0;n<r.length;n+=1){var d=r[n],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[n].cm)}catch{try{c.payload=e(r[n].cm)}catch{c.payload={name:r[n].cm}}}s.push(c)}return s}}(),Dv=function(){function e(r){this.compositions.push(r)}return function(){function r(s){for(var n=0,d=this.compositions.length;n<d;){if(this.compositions[n].data&&this.compositions[n].data.nm===s)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=e,r}}(),Ss={},Fv=function(r,s){Ss[r]=s};function $v(e){return Ss[e]}function zv(){if(Ss.canvas)return"canvas";for(var e in Ss)if(Ss[e])return e;return""}function _s(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_s=function(s){return typeof s}:_s=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_s(e)}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=Ie(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Lv(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Dv(),this.imagePreloader=new Ov,this.audioController=nt(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ge("drawnFrame",0,0,0),this.expressionsPlugin=Va()};$([mh],pt),pt.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var s=$v(r);this.renderer=new s(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),As.loadAnimation(e.path,this.configAnimation,this.onSetupError))},pt.prototype.onSetupError=function(){this.trigger("data_failed")},pt.prototype.setupAnimation=function(e){As.completeAnimation(e,this.configAnimation)},pt.prototype.setData=function(e,r){r&&_s(r)!=="object"&&(r=JSON.parse(r));var s={wrapper:e,animationData:r},n=e.attributes;s.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",s.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:zv()||"canvas";var d=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";d==="false"?s.loop=!1:d==="true"?s.loop=!0:d!==""&&(s.loop=parseInt(d,10));var c=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;s.autoplay=c!=="false",s.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var f=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";f==="false"&&(s.prerender=!1),s.path?this.setParams(s):this.trigger("destroy")},pt.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var r=this.animationData.layers,s,n=r.length,d=e.layers,c,f=d.length;for(c=0;c<f;c+=1)for(s=0;s<n;){if(r[s].id===d[c].id){r[s]=d[c];break}s+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,s=0;s<n;s+=1)this.animationData.assets.push(e.assets[s]);this.animationData.__complete=!1,As.completeAnimation(this.animationData,this.onSegmentComplete)},pt.prototype.onSegmentComplete=function(e){this.animationData=e;var r=Va();r&&r.initExpressions(this),this.loadNextSegment()},pt.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=e.shift();this.timeCompleted=r.time*this.frameRate;var s=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,As.loadData(s,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},pt.prototype.loadSegments=function(){var e=this.animationData.segments;e||(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(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Pv(e.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 e=Va();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},pt.prototype.resize=function(e,r){var s=typeof e=="number"?e:void 0,n=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(s,n)},pt.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},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(e){this.triggerRenderFrameError(e)}},pt.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},pt.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},pt.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},pt.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pt.prototype.getMarkerData=function(e){for(var r,s=0;s<this.markers.length;s+=1)if(r=this.markers[s],r.payload&&r.payload.name===e)return r;return null},pt.prototype.goToAndStop=function(e,r,s){if(!(s&&this.name!==s)){var n=Number(e);if(isNaN(n)){var d=this.getMarkerData(e);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},pt.prototype.goToAndPlay=function(e,r,s){if(!(s&&this.name!==s)){var n=Number(e);if(isNaN(n)){var d=this.getMarkerData(e);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(n,r,s);this.play()}},pt.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,s=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(s=!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):(s=!0,r=0)):this.setCurrentRawFrameValue(r),s&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},pt.prototype.adjustSegment=function(e,r){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},pt.prototype.setSegment=function(e,r){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?s=e:this.currentRawFrame+this.firstFrame>r&&(s=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,s!==-1&&this.goToAndStop(s,!0)},pt.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),_s(e[0])==="object"){var s,n=e.length;for(s=0;s<n;s+=1)this.segments.push(e[s])}else this.segments.push(e);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},pt.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},pt.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},pt.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},pt.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},pt.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},pt.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},pt.prototype.setLoop=function(e){this.loop=e},pt.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},pt.prototype.getVolume=function(){return this.audioController.getVolume()},pt.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},pt.prototype.unmute=function(e){e&&this.name!==e||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(e){var r="";if(e.e)r=e.p;else if(this.assetsPath){var s=e.p;s.indexOf("images/")!==-1&&(s=s.split("/")[1]),r=this.assetsPath+s}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},pt.prototype.getAssetData=function(e){for(var r=0,s=this.assets.length;r<s;){if(e===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(e){return e?this.totalFrames:this.totalFrames/this.frameRate},pt.prototype.updateDocumentData=function(e,r,s){try{var n=this.renderer.getElementByPath(e);n.updateDocumentData(r,s)}catch{}},pt.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new Ge(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new ah(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new za(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new nh(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new lh(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ge(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new ah(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new za(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new nh(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new lh(e,this))},pt.prototype.triggerRenderFrameError=function(e){var r=new Cv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},pt.prototype.triggerConfigError=function(e){var r=new wv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var jt=function(){var e={},r=[],s=0,n=0,d=0,c=!0,f=!1;function x(S){for(var O=0,u=S.target;O<n;)r[O].animation===u&&(r.splice(O,1),O-=1,n-=1,u.isPaused||B()),O+=1}function v(S,O){if(!S)return null;for(var u=0;u<n;){if(r[u].elem===S&&r[u].elem!==null)return r[u].animation;u+=1}var b=new pt;return E(b,S),b.setData(S,O),b}function I(){var S,O=r.length,u=[];for(S=0;S<O;S+=1)u.push(r[S].animation);return u}function L(){d+=1,ft()}function B(){d-=1}function E(S,O){S.addEventListener("destroy",x),S.addEventListener("_active",L),S.addEventListener("_idle",B),r.push({elem:O,animation:S}),n+=1}function R(S){var O=new pt;return E(O,null),O.setParams(S),O}function P(S,O){var u;for(u=0;u<n;u+=1)r[u].animation.setSpeed(S,O)}function M(S,O){var u;for(u=0;u<n;u+=1)r[u].animation.setDirection(S,O)}function z(S){var O;for(O=0;O<n;O+=1)r[O].animation.play(S)}function w(S){var O=S-s,u;for(u=0;u<n;u+=1)r[u].animation.advanceTime(O);s=S,d&&!f?window.requestAnimationFrame(w):c=!0}function _(S){s=S,window.requestAnimationFrame(w)}function y(S){var O;for(O=0;O<n;O+=1)r[O].animation.pause(S)}function A(S,O,u){var b;for(b=0;b<n;b+=1)r[b].animation.goToAndStop(S,O,u)}function k(S){var O;for(O=0;O<n;O+=1)r[O].animation.stop(S)}function D(S){var O;for(O=0;O<n;O+=1)r[O].animation.togglePause(S)}function V(S){var O;for(O=n-1;O>=0;O-=1)r[O].animation.destroy(S)}function H(S,O,u){var b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=b.length;for(U=0;U<F;U+=1)u&&b[U].setAttribute("data-bm-type",u),v(b[U],S);if(O&&F===0){u||(u="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var mt=N("div");mt.style.width="100%",mt.style.height="100%",mt.setAttribute("data-bm-type",u),at.appendChild(mt),v(mt,S)}}function Z(){var S;for(S=0;S<n;S+=1)r[S].animation.resize()}function ft(){!f&&d&&c&&(window.requestAnimationFrame(_),c=!1)}function ht(){f=!0}function et(){f=!1,ft()}function yt(S,O){var u;for(u=0;u<n;u+=1)r[u].animation.setVolume(S,O)}function lt(S){var O;for(O=0;O<n;O+=1)r[O].animation.mute(S)}function X(S){var O;for(O=0;O<n;O+=1)r[O].animation.unmute(S)}return e.registerAnimation=v,e.loadAnimation=R,e.setSpeed=P,e.setDirection=M,e.play=z,e.pause=y,e.stop=k,e.togglePause=D,e.searchAnimations=H,e.resize=Z,e.goToAndStop=A,e.destroy=V,e.freeze=ht,e.unfreeze=et,e.setVolume=yt,e.mute=lt,e.unmute=X,e.getRegisteredAnimations=I,e}(),Is=function(){var e={};e.getBezierEasing=s;var r={};function s(_,y,A,k,D){var V=D||("bez_"+_+"_"+y+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var H=new w([_,y,A,k]);return r[V]=H,H}var n=4,d=.001,c=1e-7,f=10,x=11,v=1/(x-1),I=typeof Float32Array=="function";function L(_,y){return 1-3*y+3*_}function B(_,y){return 3*y-6*_}function E(_){return 3*_}function R(_,y,A){return((L(y,A)*_+B(y,A))*_+E(y))*_}function P(_,y,A){return 3*L(y,A)*_*_+2*B(y,A)*_+E(y)}function M(_,y,A,k,D){var V,H,Z=0;do H=y+(A-y)/2,V=R(H,k,D)-_,V>0?A=H:y=H;while(Math.abs(V)>c&&++Z<f);return H}function z(_,y,A,k){for(var D=0;D<n;++D){var V=P(y,A,k);if(V===0)return y;var H=R(y,A,k)-_;y-=H/V}return y}function w(_){this._p=_,this._mSampleValues=I?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return w.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:R(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<x;++k)this._mSampleValues[k]=R(k*v,y,A)},_getTForX:function(y){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,H=1,Z=x-1;H!==Z&&D[H]<=y;++H)V+=v;--H;var ft=(y-D[H])/(D[H+1]-D[H]),ht=V+ft*v,et=P(ht,A,k);return et>=d?z(y,ht,A,k):et===0?ht:M(y,V,V+v,A,k)}},e}(),uh=function(){function e(r){return r.concat(rt(r.length))}return{double:e}}(),Ha=function(){return function(e,r,s){var n=0,d=e,c=rt(d),f={newElement:x,release:v};function x(){var I;return n?(n-=1,I=c[n]):I=r(),I}function v(I){n===d&&(c=uh.double(c),d*=2),s&&s(I),c[n]=I,n+=1}return f}}(),fh=function(){function e(){return{addedLength:0,percents:Q("float32",xs()),lengths:Q("float32",xs())}}return Ha(8,e)}(),vh=function(){function e(){return{lengths:[],totalLength:0}}function r(s){var n,d=s.lengths.length;for(n=0;n<d;n+=1)fh.release(s.lengths[n]);s.lengths.length=0}return Ha(8,e,r)}();function Vv(){var e=Math;function r(E,R,P,M,z,w){var _=E*M+R*z+P*w-z*M-w*E-P*R;return _>-.001&&_<.001}function s(E,R,P,M,z,w,_,y,A){if(P===0&&w===0&&A===0)return r(E,R,M,z,_,y);var k=e.sqrt(e.pow(M-E,2)+e.pow(z-R,2)+e.pow(w-P,2)),D=e.sqrt(e.pow(_-E,2)+e.pow(y-R,2)+e.pow(A-P,2)),V=e.sqrt(e.pow(_-M,2)+e.pow(y-z,2)+e.pow(A-w,2)),H;return k>D?k>V?H=k-D-V:H=V-D-k:V>D?H=V-D-k:H=D-k-V,H>-1e-4&&H<1e-4}var n=function(){return function(E,R,P,M){var z=xs(),w,_,y,A,k,D=0,V,H=[],Z=[],ft=fh.newElement();for(y=P.length,w=0;w<z;w+=1){for(k=w/(z-1),V=0,_=0;_<y;_+=1)A=zt(1-k,3)*E[_]+3*zt(1-k,2)*k*P[_]+3*(1-k)*zt(k,2)*M[_]+zt(k,3)*R[_],H[_]=A,Z[_]!==null&&(V+=zt(H[_]-Z[_],2)),Z[_]=H[_];V&&(V=Wt(V),D+=V),ft.percents[w]=k,ft.lengths[w]=D}return ft.addedLength=D,ft}}();function d(E){var R=vh.newElement(),P=E.c,M=E.v,z=E.o,w=E.i,_,y=E._length,A=R.lengths,k=0;for(_=0;_<y-1;_+=1)A[_]=n(M[_],M[_+1],z[_],w[_+1]),k+=A[_].addedLength;return P&&y&&(A[_]=n(M[_],M[0],z[_],w[0]),k+=A[_].addedLength),R.totalLength=k,R}function c(E){this.segmentLength=0,this.points=new Array(E)}function f(E,R){this.partialLength=E,this.point=R}var x=function(){var E={};return function(R,P,M,z){var w=(R[0]+"_"+R[1]+"_"+P[0]+"_"+P[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!E[w]){var _=xs(),y,A,k,D,V,H=0,Z,ft,ht=null;R.length===2&&(R[0]!==P[0]||R[1]!==P[1])&&r(R[0],R[1],P[0],P[1],R[0]+M[0],R[1]+M[1])&&r(R[0],R[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(_=2);var et=new c(_);for(k=M.length,y=0;y<_;y+=1){for(ft=rt(k),V=y/(_-1),Z=0,A=0;A<k;A+=1)D=zt(1-V,3)*R[A]+3*zt(1-V,2)*V*(R[A]+M[A])+3*(1-V)*zt(V,2)*(P[A]+z[A])+zt(V,3)*P[A],ft[A]=D,ht!==null&&(Z+=zt(ft[A]-ht[A],2));Z=Wt(Z),H+=Z,et.points[y]=new f(Z,ft),ht=ft}et.segmentLength=H,E[w]=et}return E[w]}}();function v(E,R){var P=R.percents,M=R.lengths,z=P.length,w=ie((z-1)*E),_=E*R.addedLength,y=0;if(w===z-1||w===0||_===M[w])return P[w];for(var A=M[w]>_?-1:1,k=!0;k;)if(M[w]<=_&&M[w+1]>_?(y=(_-M[w])/(M[w+1]-M[w]),k=!1):w+=A,w<0||w>=z-1){if(w===z-1)return P[w];k=!1}return P[w]+(P[w+1]-P[w])*y}function I(E,R,P,M,z,w){var _=v(z,w),y=1-_,A=e.round((y*y*y*E[0]+(_*y*y+y*_*y+y*y*_)*P[0]+(_*_*y+y*_*_+_*y*_)*M[0]+_*_*_*R[0])*1e3)/1e3,k=e.round((y*y*y*E[1]+(_*y*y+y*_*y+y*y*_)*P[1]+(_*_*y+y*_*_+_*y*_)*M[1]+_*_*_*R[1])*1e3)/1e3;return[A,k]}var L=Q("float32",8);function B(E,R,P,M,z,w,_){z<0?z=0:z>1&&(z=1);var y=v(z,_);w=w>1?1:w;var A=v(w,_),k,D=E.length,V=1-y,H=1-A,Z=V*V*V,ft=y*V*V*3,ht=y*y*V*3,et=y*y*y,yt=V*V*H,lt=y*V*H+V*y*H+V*V*A,X=y*y*H+V*y*A+y*V*A,S=y*y*A,O=V*H*H,u=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,at=A*H*H+H*A*H+H*H*A,mt=A*A*H+H*A*A+A*H*A,vt=A*A*A;for(k=0;k<D;k+=1)L[k*4]=e.round((Z*E[k]+ft*P[k]+ht*M[k]+et*R[k])*1e3)/1e3,L[k*4+1]=e.round((yt*E[k]+lt*P[k]+X*M[k]+S*R[k])*1e3)/1e3,L[k*4+2]=e.round((O*E[k]+u*P[k]+b*M[k]+U*R[k])*1e3)/1e3,L[k*4+3]=e.round((F*E[k]+at*P[k]+mt*M[k]+vt*R[k])*1e3)/1e3;return L}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:s}}var yr=Vv(),Pi=o,gh=Math.abs;function bh(e,r){var s=this.offsetTime,n;this.propType==="multidimensional"&&(n=Q("float32",this.pv.length));for(var d=r.lastIndex,c=d,f=this.keyframes.length-1,x=!0,v,I,L;x;){if(v=this.keyframes[c],I=this.keyframes[c+1],c===f-1&&e>=I.t-s){v.h&&(v=I),d=0;break}if(I.t-s>e){d=c;break}c<f-1?c+=1:(d=0,x=!1)}L=this.keyframesMetadata[c]||{};var B,E,R,P,M,z,w=I.t-s,_=v.t-s,y;if(v.to){L.bezierData||(L.bezierData=yr.buildBezierData(v.s,I.s||v.e,v.to,v.ti));var A=L.bezierData;if(e>=w||e<_){var k=e>=w?A.points.length-1:0;for(E=A.points[k].point.length,B=0;B<E;B+=1)n[B]=A.points[k].point[B]}else{L.__fnct?z=L.__fnct:(z=Is.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,L.__fnct=z),R=z((e-_)/(w-_));var D=A.segmentLength*R,V,H=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastPoint:0,x=!0,P=A.points.length;x;){if(H+=A.points[M].partialLength,D===0||R===0||M===A.points.length-1){for(E=A.points[M].point.length,B=0;B<E;B+=1)n[B]=A.points[M].point[B];break}else if(D>=H&&D<H+A.points[M+1].partialLength){for(V=(D-H)/A.points[M+1].partialLength,E=A.points[M].point.length,B=0;B<E;B+=1)n[B]=A.points[M].point[B]+(A.points[M+1].point[B]-A.points[M].point[B])*V;break}M<P-1?M+=1:x=!1}r._lastPoint=M,r._lastAddedLength=H-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ft,ht,et,yt;if(f=v.s.length,y=I.s||v.e,this.sh&&v.h!==1)if(e>=w)n[0]=y[0],n[1]=y[1],n[2]=y[2];else if(e<=_)n[0]=v.s[0],n[1]=v.s[1],n[2]=v.s[2];else{var lt=yh(v.s),X=yh(y),S=(e-_)/(w-_);Uv(n,Bv(lt,X,S))}else for(c=0;c<f;c+=1)v.h!==1&&(e>=w?R=1:e<_?R=0:(v.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[c]?z=L.__fnct[c]:(Z=v.o.x[c]===void 0?v.o.x[0]:v.o.x[c],ft=v.o.y[c]===void 0?v.o.y[0]:v.o.y[c],ht=v.i.x[c]===void 0?v.i.x[0]:v.i.x[c],et=v.i.y[c]===void 0?v.i.y[0]:v.i.y[c],z=Is.getBezierEasing(Z,ft,ht,et).get,L.__fnct[c]=z)):L.__fnct?z=L.__fnct:(Z=v.o.x,ft=v.o.y,ht=v.i.x,et=v.i.y,z=Is.getBezierEasing(Z,ft,ht,et).get,v.keyframeMetadata=z),R=z((e-_)/(w-_)))),y=I.s||v.e,yt=v.h===1?v.s[c]:v.s[c]+(y[c]-v.s[c])*R,this.propType==="multidimensional"?n[c]=yt:n=yt}return r.lastIndex=d,n}function Bv(e,r,s){var n=[],d=e[0],c=e[1],f=e[2],x=e[3],v=r[0],I=r[1],L=r[2],B=r[3],E,R,P,M,z;return R=d*v+c*I+f*L+x*B,R<0&&(R=-R,v=-v,I=-I,L=-L,B=-B),1-R>1e-6?(E=Math.acos(R),P=Math.sin(E),M=Math.sin((1-s)*E)/P,z=Math.sin(s*E)/P):(M=1-s,z=s),n[0]=M*d+z*v,n[1]=M*c+z*I,n[2]=M*f+z*L,n[3]=M*x+z*B,n}function Uv(e,r){var s=r[0],n=r[1],d=r[2],c=r[3],f=Math.atan2(2*n*c-2*s*d,1-2*n*n-2*d*d),x=Math.asin(2*s*n+2*d*c),v=Math.atan2(2*s*c-2*n*d,1-2*s*s-2*d*d);e[0]=f/It,e[1]=x/It,e[2]=v/It}function yh(e){var r=e[0]*It,s=e[1]*It,n=e[2]*It,d=Math.cos(r/2),c=Math.cos(s/2),f=Math.cos(n/2),x=Math.sin(r/2),v=Math.sin(s/2),I=Math.sin(n/2),L=d*c*f-x*v*I,B=x*v*f+d*c*I,E=x*c*f+d*v*I,R=d*v*f-x*c*I;return[B,E,R,L]}function Eh(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==Pi&&(this._caching.lastFrame>=s&&e>=s||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function Ga(e){var r;if(this.propType==="unidimensional")r=e*this.mult,gh(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var s=0,n=this.v.length;s<n;)r=e[s]*this.mult,gh(this.v[s]-r)>1e-5&&(this.v[s]=r,this._mdf=!0),s+=1}function Ya(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,r=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)s=this.effectsSequence[e](s);this.setVValue(s),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Wa(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function Hv(e,r,s,n){this.propType="unidimensional",this.mult=s||1,this.data=r,this.v=s?r.k*s:r.k,this.pv=r.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Ya,this.setVValue=Ga,this.addEffect=Wa}function Gv(e,r,s,n){this.propType="multidimensional",this.mult=s||1,this.data=r,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,c=r.k.length;for(this.v=Q("float32",c),this.pv=Q("float32",c),this.vel=Q("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=Ya,this.setVValue=Ga,this.addEffect=Wa}function Yv(e,r,s,n){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:Pi,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=s||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=Pi,this.pv=Pi,this._isFirstFrame=!0,this.getValue=Ya,this.setVValue=Ga,this.interpolateValue=bh,this.effectsSequence=[Eh.bind(this)],this.addEffect=Wa}function Wv(e,r,s,n){this.propType="multidimensional";var d,c=r.k.length,f,x,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&&(f=r.k[d].s,x=r.k[d+1].s,v=r.k[d].to,I=r.k[d].ti,(f.length===2&&!(f[0]===x[0]&&f[1]===x[1])&&yr.pointOnLine2D(f[0],f[1],x[0],x[1],f[0]+v[0],f[1]+v[1])&&yr.pointOnLine2D(f[0],f[1],x[0],x[1],x[0]+I[0],x[1]+I[1])||f.length===3&&!(f[0]===x[0]&&f[1]===x[1]&&f[2]===x[2])&&yr.pointOnLine3D(f[0],f[1],f[2],x[0],x[1],x[2],f[0]+v[0],f[1]+v[1],f[2]+v[2])&&yr.pointOnLine3D(f[0],f[1],f[2],x[0],x[1],x[2],x[0]+I[0],x[1]+I[1],x[2]+I[2]))&&(r.k[d].to=null,r.k[d].ti=null),f[0]===x[0]&&f[1]===x[1]&&v[0]===0&&v[1]===0&&I[0]===0&&I[1]===0&&(f.length===2||f[2]===x[2]&&v[2]===0&&I[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[Eh.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=s||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=Ya,this.setVValue=Ga,this.interpolateValue=bh,this.frameId=-1;var L=r.k[0].s.length;for(this.v=Q("float32",L),this.pv=Q("float32",L),d=0;d<L;d+=1)this.v[d]=Pi,this.pv[d]=Pi;this._caching={lastFrame:Pi,lastIndex:0,value:Q("float32",L)},this.addEffect=Wa}var it=function(){function e(s,n,d,c,f){n.sid&&(n=s.globalData.slotManager.getProp(n));var x;if(!n.k.length)x=new Hv(s,n,c,f);else if(typeof n.k[0]=="number")x=new Gv(s,n,c,f);else switch(d){case 0:x=new Yv(s,n,c,f);break;case 1:x=new Wv(s,n,c,f);break;default:break}return x.effectsSequence.length&&f.addDynamicProperty(x),x}var r={getProp:e};return r}();function oe(){}oe.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,s=this.dynamicProperties.length;for(r=0;r<s;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 Di=function(){function e(){return Q("float32",2)}return Ha(8,e)}();function Mr(){this.c=!1,this._length=0,this._maxLength=8,this.v=rt(this._maxLength),this.o=rt(this._maxLength),this.i=rt(this._maxLength)}Mr.prototype.setPathData=function(e,r){this.c=e,this.setLength(r);for(var s=0;s<r;)this.v[s]=Di.newElement(),this.o[s]=Di.newElement(),this.i[s]=Di.newElement(),s+=1},Mr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Mr.prototype.doubleArrayLength=function(){this.v=this.v.concat(rt(this._maxLength)),this.i=this.i.concat(rt(this._maxLength)),this.o=this.o.concat(rt(this._maxLength)),this._maxLength*=2},Mr.prototype.setXYAt=function(e,r,s,n,d){var c;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[n]||c[n]&&!d)&&(c[n]=Di.newElement()),c[n][0]=e,c[n][1]=r},Mr.prototype.setTripleAt=function(e,r,s,n,d,c,f,x){this.setXYAt(e,r,"v",f,x),this.setXYAt(s,n,"o",f,x),this.setXYAt(d,c,"i",f,x)},Mr.prototype.reverse=function(){var e=new Mr;e.setPathData(this.c,this._length);var r=this.v,s=this.o,n=this.i,d=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],n[0][0],n[0][1],s[0][0],s[0][1],0,!1),d=1);var c=this._length-1,f=this._length,x;for(x=d;x<f;x+=1)e.setTripleAt(r[c][0],r[c][1],n[c][0],n[c][1],s[c][0],s[c][1],x,!1),c-=1;return e},Mr.prototype.length=function(){return this._length};var ce=function(){function e(){return new Mr}function r(d){var c=d._length,f;for(f=0;f<c;f+=1)Di.release(d.v[f]),Di.release(d.i[f]),Di.release(d.o[f]),d.v[f]=null,d.i[f]=null,d.o[f]=null;d._length=0,d.c=!1}function s(d){var c=n.newElement(),f,x=d._length===void 0?d.v.length:d._length;for(c.setLength(x),c.c=d.c,f=0;f<x;f+=1)c.setTripleAt(d.v[f][0],d.v[f][1],d.o[f][0],d.o[f][1],d.i[f][0],d.i[f][1],f);return c}var n=Ha(4,e,r);return n.clone=s,n}();function zl(){this._length=0,this._maxLength=4,this.shapes=rt(this._maxLength)}zl.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(rt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},zl.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ce.release(this.shapes[e]);this._length=0};var wo=function(){var e={newShapeCollection:d,release:c},r=0,s=4,n=rt(s);function d(){var f;return r?(r-=1,f=n[r]):f=new zl,f}function c(f){var x,v=f._length;for(x=0;x<v;x+=1)ce.release(f.shapes[x]);f._length=0,r===s&&(n=uh.double(n),s*=2),n[r]=f,r+=1}return e}(),ja=function(){var e=-999999;function r(w,_,y){var A=y.lastIndex,k,D,V,H,Z,ft,ht,et,yt,lt=this.keyframes;if(w<lt[0].t-this.offsetTime)k=lt[0].s[0],V=!0,A=0;else if(w>=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,S=lt.length-1,O=!0,u,b,U;O&&(u=lt[X],b=lt[X+1],!(b.t-this.offsetTime>w));)X<S-1?X+=1:O=!1;if(U=this.keyframesMetadata[X]||{},V=u.h===1,A=X,!V){if(w>=b.t-this.offsetTime)et=1;else if(w<u.t-this.offsetTime)et=0;else{var F;U.__fnct?F=U.__fnct:(F=Is.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y).get,U.__fnct=F),et=F((w-(u.t-this.offsetTime))/(b.t-this.offsetTime-(u.t-this.offsetTime)))}D=b.s?b.s[0]:u.e[0]}k=u.s[0]}for(ft=_._length,ht=k.i[0].length,y.lastIndex=A,H=0;H<ft;H+=1)for(Z=0;Z<ht;Z+=1)yt=V?k.i[H][Z]:k.i[H][Z]+(D.i[H][Z]-k.i[H][Z])*et,_.i[H][Z]=yt,yt=V?k.o[H][Z]:k.o[H][Z]+(D.o[H][Z]-k.o[H][Z])*et,_.o[H][Z]=yt,yt=V?k.v[H][Z]:k.v[H][Z]+(D.v[H][Z]-k.v[H][Z])*et,_.v[H][Z]=yt}function s(){var w=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==e&&(A<_&&w<_||A>y&&w>y)||(this._caching.lastIndex=A<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching)),this._caching.lastFrame=w,this.pv}function n(){this.paths=this.localShapeCollection}function d(w,_){if(w._length!==_._length||w.c!==_.c)return!1;var y,A=w._length;for(y=0;y<A;y+=1)if(w.v[y][0]!==_.v[y][0]||w.v[y][1]!==_.v[y][1]||w.o[y][0]!==_.o[y][0]||w.o[y][1]!==_.o[y][1]||w.i[y][0]!==_.i[y][0]||w.i[y][1]!==_.i[y][1])return!1;return!0}function c(w){d(this.v,w)||(this.v=ce.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function f(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var w;this.kf?w=this.pv:this.data.ks?w=this.data.ks.k:w=this.data.pt.k;var _,y=this.effectsSequence.length;for(_=0;_<y;_+=1)w=this.effectsSequence[_](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(w,_,y){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=_,this.k=!1,this.kf=!1,this._mdf=!1;var A=y===3?_.pt.k:_.ks.k;this.v=ce.clone(A),this.pv=ce.clone(this.v),this.localShapeCollection=wo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function v(w){this.effectsSequence.push(w),this.container.addDynamicProperty(this)}x.prototype.interpolateShape=r,x.prototype.getValue=f,x.prototype.setVValue=c,x.prototype.addEffect=v;function I(w,_,y){this.propType="shape",this.comp=w.comp,this.elem=w,this.container=w,this.offsetTime=w.data.st,this.keyframes=y===3?_.pt.k:_.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var A=this.keyframes[0].s[0].i.length;this.v=ce.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ce.clone(this.v),this.localShapeCollection=wo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[s.bind(this)]}I.prototype.getValue=f,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=v;var L=function(){var w=le;function _(y,A){this.v=ce.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=wo.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=it.getProp(y,A.p,1,0,this),this.s=it.getProp(y,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return _.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var A=this.p.v[0],k=this.p.v[1],D=this.s.v[0]/2,V=this.s.v[1]/2,H=this.d!==3,Z=this.v;Z.v[0][0]=A,Z.v[0][1]=k-V,Z.v[1][0]=H?A+D:A-D,Z.v[1][1]=k,Z.v[2][0]=A,Z.v[2][1]=k+V,Z.v[3][0]=H?A-D:A+D,Z.v[3][1]=k,Z.i[0][0]=H?A-D*w:A+D*w,Z.i[0][1]=k-V,Z.i[1][0]=H?A+D:A-D,Z.i[1][1]=k-V*w,Z.i[2][0]=H?A+D*w:A-D*w,Z.i[2][1]=k+V,Z.i[3][0]=H?A-D:A+D,Z.i[3][1]=k+V*w,Z.o[0][0]=H?A+D*w:A-D*w,Z.o[0][1]=k-V,Z.o[1][0]=H?A+D:A-D,Z.o[1][1]=k+V*w,Z.o[2][0]=H?A-D*w:A+D*w,Z.o[2][1]=k+V,Z.o[3][0]=H?A-D:A+D,Z.o[3][1]=k-V*w}},$([oe],_),_}(),B=function(){function w(_,y){this.v=ce.newElement(),this.v.setPathData(!0,0),this.elem=_,this.comp=_.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(_),y.sy===1?(this.ir=it.getProp(_,y.ir,0,0,this),this.is=it.getProp(_,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=it.getProp(_,y.pt,0,0,this),this.p=it.getProp(_,y.p,1,0,this),this.r=it.getProp(_,y.r,0,It,this),this.or=it.getProp(_,y.or,0,0,this),this.os=it.getProp(_,y.os,0,.01,this),this.localShapeCollection=wo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return w.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var 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,ft=2*Math.PI*D/(y*2),ht=2*Math.PI*V/(y*2),et,yt,lt,X,S=-Math.PI/2;S+=this.r.v;var O=this.data.d===3?-1:1;for(this.v._length=0,et=0;et<y;et+=1){yt=k?D:V,lt=k?H:Z,X=k?ft:ht;var u=yt*Math.cos(S),b=yt*Math.sin(S),U=u===0&&b===0?0:b/Math.sqrt(u*u+b*b),F=u===0&&b===0?0:-u/Math.sqrt(u*u+b*b);u+=+this.p.v[0],b+=+this.p.v[1],this.v.setTripleAt(u,b,u-U*X*lt*O,b-F*X*lt*O,u+U*X*lt*O,b+F*X*lt*O,et,!0),k=!k,S+=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,ft=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,H=0;H<y;H+=1){var ht=k*Math.cos(Z),et=k*Math.sin(Z),yt=ht===0&&et===0?0:et/Math.sqrt(ht*ht+et*et),lt=ht===0&&et===0?0:-ht/Math.sqrt(ht*ht+et*et);ht+=+this.p.v[0],et+=+this.p.v[1],this.v.setTripleAt(ht,et,ht-yt*V*D*ft,et-lt*V*D*ft,ht+yt*V*D*ft,et+lt*V*D*ft,H,!0),Z+=A*ft}this.paths.length=0,this.paths[0]=this.v}},$([oe],w),w}(),E=function(){function w(_,y){this.v=ce.newElement(),this.v.c=!0,this.localShapeCollection=wo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=_,this.comp=_.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(_),this.p=it.getProp(_,y.p,1,0,this),this.s=it.getProp(_,y.s,1,0,this),this.r=it.getProp(_,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return w.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=_e(k,D,this.r.v),H=V*(1-le);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:n},$([oe],w),w}();function R(w,_,y){var A;if(y===3||y===4){var k=y===3?_.pt:_.ks,D=k.k;D.length?A=new I(w,_,y):A=new x(w,_,y)}else y===5?A=new E(w,_):y===6?A=new L(w,_):y===7&&(A=new B(w,_));return A.k&&w.addDynamicProperty(A),A}function P(){return x}function M(){return I}var z={};return z.getShapeProp=R,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var de=function(){var e=Math.cos,r=Math.sin,s=Math.tan,n=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function f(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(1,0,0,0,0,b,-U,0,0,U,b,0,0,0,0,1)}function x(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(b,0,U,0,0,1,0,0,-U,0,b,0,0,0,0,1)}function v(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function I(u,b){return this._t(1,b,u,1,0,0)}function L(u,b){return this.shear(s(u),s(b))}function B(u,b){var U=e(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,s(u),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(u,b,U){return!U&&U!==0&&(U=1),u===1&&b===1&&U===1?this:this._t(u,0,0,0,0,b,0,0,0,0,U,0,0,0,0,1)}function R(u,b,U,F,at,mt,vt,wt,Nt,qt,Ce,Tr,we,se,Fe,Mt){return this.props[0]=u,this.props[1]=b,this.props[2]=U,this.props[3]=F,this.props[4]=at,this.props[5]=mt,this.props[6]=vt,this.props[7]=wt,this.props[8]=Nt,this.props[9]=qt,this.props[10]=Ce,this.props[11]=Tr,this.props[12]=we,this.props[13]=se,this.props[14]=Fe,this.props[15]=Mt,this}function P(u,b,U){return U=U||0,u!==0||b!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,u,b,U,1):this}function M(u,b,U,F,at,mt,vt,wt,Nt,qt,Ce,Tr,we,se,Fe,Mt){var ct=this.props;if(u===1&&b===0&&U===0&&F===0&&at===0&&mt===1&&vt===0&&wt===0&&Nt===0&&qt===0&&Ce===1&&Tr===0)return ct[12]=ct[12]*u+ct[15]*we,ct[13]=ct[13]*mt+ct[15]*se,ct[14]=ct[14]*Ce+ct[15]*Fe,ct[15]*=Mt,this._identityCalculated=!1,this;var Dr=ct[0],ui=ct[1],Fr=ct[2],xr=ct[3],$r=ct[4],zr=ct[5],Ne=ct[6],fi=ct[7],vi=ct[8],lr=ct[9],gi=ct[10],cr=ct[11],Vi=ct[12],rn=ct[13],on=ct[14],sn=ct[15];return ct[0]=Dr*u+ui*at+Fr*Nt+xr*we,ct[1]=Dr*b+ui*mt+Fr*qt+xr*se,ct[2]=Dr*U+ui*vt+Fr*Ce+xr*Fe,ct[3]=Dr*F+ui*wt+Fr*Tr+xr*Mt,ct[4]=$r*u+zr*at+Ne*Nt+fi*we,ct[5]=$r*b+zr*mt+Ne*qt+fi*se,ct[6]=$r*U+zr*vt+Ne*Ce+fi*Fe,ct[7]=$r*F+zr*wt+Ne*Tr+fi*Mt,ct[8]=vi*u+lr*at+gi*Nt+cr*we,ct[9]=vi*b+lr*mt+gi*qt+cr*se,ct[10]=vi*U+lr*vt+gi*Ce+cr*Fe,ct[11]=vi*F+lr*wt+gi*Tr+cr*Mt,ct[12]=Vi*u+rn*at+on*Nt+sn*we,ct[13]=Vi*b+rn*mt+on*qt+sn*se,ct[14]=Vi*U+rn*vt+on*Ce+sn*Fe,ct[15]=Vi*F+rn*wt+on*Tr+sn*Mt,this._identityCalculated=!1,this}function z(u){var b=u.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 w(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function _(u){for(var b=0;b<16;){if(u.props[b]!==this.props[b])return!1;b+=1}return!0}function y(u){var b;for(b=0;b<16;b+=1)u.props[b]=this.props[b];return u}function A(u){var b;for(b=0;b<16;b+=1)this.props[b]=u[b]}function k(u,b,U){return{x:u*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],y:u*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],z:u*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}}function D(u,b,U){return u*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12]}function V(u,b,U){return u*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13]}function H(u,b,U){return u*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}function Z(){var u=this.props[0]*this.props[5]-this.props[1]*this.props[4],b=this.props[5]/u,U=-this.props[1]/u,F=-this.props[4]/u,at=this.props[0]/u,mt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/u,vt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/u,wt=new de;return wt.props[0]=b,wt.props[1]=U,wt.props[4]=F,wt.props[5]=at,wt.props[12]=mt,wt.props[13]=vt,wt}function ft(u){var b=this.getInverseMatrix();return b.applyToPointArray(u[0],u[1],u[2]||0)}function ht(u){var b,U=u.length,F=[];for(b=0;b<U;b+=1)F[b]=ft(u[b]);return F}function et(u,b,U){var F=Q("float32",6);if(this.isIdentity())F[0]=u[0],F[1]=u[1],F[2]=b[0],F[3]=b[1],F[4]=U[0],F[5]=U[1];else{var at=this.props[0],mt=this.props[1],vt=this.props[4],wt=this.props[5],Nt=this.props[12],qt=this.props[13];F[0]=u[0]*at+u[1]*vt+Nt,F[1]=u[0]*mt+u[1]*wt+qt,F[2]=b[0]*at+b[1]*vt+Nt,F[3]=b[0]*mt+b[1]*wt+qt,F[4]=U[0]*at+U[1]*vt+Nt,F[5]=U[0]*mt+U[1]*wt+qt}return F}function yt(u,b,U){var F;return this.isIdentity()?F=[u,b,U]:F=[u*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],u*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],u*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]],F}function lt(u,b){if(this.isIdentity())return u+","+b;var U=this.props;return Math.round((u*U[0]+b*U[4]+U[12])*100)/100+","+Math.round((u*U[1]+b*U[5]+U[13])*100)/100}function X(){for(var u=0,b=this.props,U="matrix3d(",F=1e4;u<16;)U+=n(b[u]*F)/F,U+=u===15?")":",",u+=1;return U}function S(u){var b=1e4;return u<1e-6&&u>0||u>-1e-6&&u<0?n(u*b)/b:u}function O(){var u=this.props,b=S(u[0]),U=S(u[1]),F=S(u[4]),at=S(u[5]),mt=S(u[12]),vt=S(u[13]);return"matrix("+b+","+U+","+F+","+at+","+mt+","+vt+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=f,this.rotateY=x,this.rotateZ=v,this.skew=L,this.skewFromAxis=B,this.shear=I,this.scale=E,this.setTransform=R,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=H,this.applyToPointArray=yt,this.applyToTriplePoints=et,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=_,this.inversePoints=ht,this.inversePoint=ft,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=Q("float32",16),this.reset()}}();function qa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qa=function(s){return typeof s}:qa=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},qa(e)}var Rt={},Ka="__[STANDALONE]__",Th="__[ANIMATIONDATA]__",xh="";function jv(e){m(e)}function Ah(){Ka===!0?jt.searchAnimations(Th,Ka,xh):jt.searchAnimations()}function qv(e){Nv(e)}function Kv(e){Mv(e)}function Xv(e){return Ka===!0&&(e.animationData=JSON.parse(Th)),jt.loadAnimation(e)}function Zv(e){if(typeof e=="string")switch(e){case"high":Ba(200);break;default:case"medium":Ba(50);break;case"low":Ba(10);break}else!isNaN(e)&&e>1&&Ba(e);xs()>=50?Be(!1):Be(!0)}function Qv(){return typeof navigator<"u"}function Jv(e,r){e==="expressions"&&Rv(r)}function tg(e){switch(e){case"propertyFactory":return it;case"shapePropertyFactory":return ja;case"matrix":return de;default:return null}}Rt.play=jt.play,Rt.pause=jt.pause,Rt.setLocationHref=jv,Rt.togglePause=jt.togglePause,Rt.setSpeed=jt.setSpeed,Rt.setDirection=jt.setDirection,Rt.stop=jt.stop,Rt.searchAnimations=Ah,Rt.registerAnimation=jt.registerAnimation,Rt.loadAnimation=Xv,Rt.setSubframeRendering=qv,Rt.resize=jt.resize,Rt.goToAndStop=jt.goToAndStop,Rt.destroy=jt.destroy,Rt.setQuality=Zv,Rt.inBrowser=Qv,Rt.installPlugin=Jv,Rt.freeze=jt.freeze,Rt.unfreeze=jt.unfreeze,Rt.setVolume=jt.setVolume,Rt.mute=jt.mute,Rt.unmute=jt.unmute,Rt.getRegisteredAnimations=jt.getRegisteredAnimations,Rt.useWebWorker=a,Rt.setIDPrefix=Kv,Rt.__getFactory=tg,Rt.version="5.12.2";function eg(){document.readyState==="complete"&&(clearInterval(og),Ah())}function rg(e){for(var r=Sh.split("&"),s=0;s<r.length;s+=1){var n=r[s].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}var Sh="";if(Ka){var _h=document.getElementsByTagName("script"),ig=_h.length-1,Ih=_h[ig]||{src:""};Sh=Ih.src?Ih.src.replace(/^[^\?]+\??/,""):"",xh=rg("renderer")}var og=setInterval(eg,100);try{!((typeof ea>"u"?"undefined":qa(ea))==="object"&&typeof Mn<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Rt)}catch{}var li=function(){var e={},r={};e.registerModifier=s,e.getModifier=n;function s(d,c){r[d]||(r[d]=c)}function n(d,c,f){return new r[d](c,f)}return e}();function Ye(){}Ye.prototype.initModifierProperties=function(){},Ye.prototype.addShapeToModifier=function(){},Ye.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:wo.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},Ye.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),this.frameId=o,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ye.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([oe],Ye);function nr(){}$([Ye],nr),nr.prototype.initModifierProperties=function(e,r){this.s=it.getProp(e,r.s,0,.01,this),this.e=it.getProp(e,r.e,0,.01,this),this.o=it.getProp(e,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},nr.prototype.addShapeToModifier=function(e){e.pathsData=[]},nr.prototype.calculateShapeEdges=function(e,r,s,n,d){var c=[];r<=1?c.push({s:e,e:r}):e>=1?c.push({s:e-1,e:r-1}):(c.push({s:e,e:1}),c.push({s:0,e:r-1}));var f=[],x,v=c.length,I;for(x=0;x<v;x+=1)if(I=c[x],!(I.e*d<n||I.s*d>n+s)){var L,B;I.s*d<=n?L=0:L=(I.s*d-n)/s,I.e*d>=n+s?B=1:B=(I.e*d-n)/s,f.push([L,B])}return f.length||f.push([0,0]),f},nr.prototype.releasePathsData=function(e){var r,s=e.length;for(r=0;r<s;r+=1)vh.release(e[r]);return e.length=0,e},nr.prototype.processShapes=function(e){var r,s;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?r=1+n:this.s.v<0?r=0+n:r=this.s.v+n,this.e.v>1?s=1+n:this.e.v<0?s=0+n:s=this.e.v+n,r>s){var d=r;r=s,s=d}r=Math.round(r*1e4)*1e-4,s=Math.round(s*1e4)*1e-4,this.sValue=r,this.eValue=s}else r=this.sValue,s=this.eValue;var c,f,x=this.shapes.length,v,I,L,B,E,R=0;if(s===r)for(f=0;f<x;f+=1)this.shapes[f].localShapeCollection.releaseShapes(),this.shapes[f].shape._mdf=!0,this.shapes[f].shape.paths=this.shapes[f].localShapeCollection,this._mdf&&(this.shapes[f].pathsData.length=0);else if(s===1&&r===0||s===0&&r===1){if(this._mdf)for(f=0;f<x;f+=1)this.shapes[f].pathsData.length=0,this.shapes[f].shape._mdf=!0}else{var P=[],M,z;for(f=0;f<x;f+=1)if(M=this.shapes[f],!M.shape._mdf&&!this._mdf&&!e&&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(L=this.releasePathsData(M.pathsData),v=0;v<I;v+=1)B=yr.getSegmentsLength(c.shapes[v]),L.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=L}R+=E,M.shape._mdf=!0}var w=r,_=s,y=0,A;for(f=x-1;f>=0;f-=1)if(M=this.shapes[f],M.shape._mdf){for(z=M.localShapeCollection,z.releaseShapes(),this.m===2&&x>1?(A=this.calculateShapeEdges(r,s,M.totalShapeLength,y,R),y+=M.totalShapeLength):A=[[w,_]],I=A.length,v=0;v<I;v+=1){w=A[v][0],_=A[v][1],P.length=0,_<=1?P.push({s:M.totalShapeLength*w,e:M.totalShapeLength*_}):w>=1?P.push({s:M.totalShapeLength*(w-1),e:M.totalShapeLength*(_-1)}):(P.push({s:M.totalShapeLength*w,e:M.totalShapeLength}),P.push({s:0,e:M.totalShapeLength*(_-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}}},nr.prototype.addPaths=function(e,r){var s,n=e.length;for(s=0;s<n;s+=1)r.addShape(e[s])},nr.prototype.addSegment=function(e,r,s,n,d,c,f){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(s[0],s[1],"i",c+1),f&&d.setXYAt(e[0],e[1],"v",c),d.setXYAt(n[0],n[1],"v",c+1)},nr.prototype.addSegmentFromArray=function(e,r,s,n){r.setXYAt(e[1],e[5],"o",s),r.setXYAt(e[2],e[6],"i",s+1),n&&r.setXYAt(e[0],e[4],"v",s),r.setXYAt(e[3],e[7],"v",s+1)},nr.prototype.addShapes=function(e,r,s){var n=e.pathsData,d=e.shape.paths.shapes,c,f=e.shape.paths._length,x,v,I=0,L,B,E,R,P=[],M,z=!0;for(s?(B=s._length,M=s._length):(s=ce.newElement(),B=0,M=0),P.push(s),c=0;c<f;c+=1){for(E=n[c].lengths,s.c=d[c].c,v=d[c].c?E.length:E.length+1,x=1;x<v;x+=1)if(L=E[x-1],I+L.addedLength<r.s)I+=L.addedLength,s.c=!1;else if(I>r.e){s.c=!1;break}else r.s<=I&&r.e>=I+L.addedLength?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[x],d[c].v[x],s,B,z),z=!1):(R=yr.getNewSegment(d[c].v[x-1],d[c].v[x],d[c].o[x-1],d[c].i[x],(r.s-I)/L.addedLength,(r.e-I)/L.addedLength,E[x-1]),this.addSegmentFromArray(R,s,B,z),z=!1,s.c=!1),I+=L.addedLength,B+=1;if(d[c].c&&E.length){if(L=E[x-1],I<=r.e){var w=E[x-1].addedLength;r.s<=I&&r.e>=I+w?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[0],d[c].v[0],s,B,z),z=!1):(R=yr.getNewSegment(d[c].v[x-1],d[c].v[0],d[c].o[x-1],d[c].i[0],(r.s-I)/w,(r.e-I)/w,E[x-1]),this.addSegmentFromArray(R,s,B,z),z=!1,s.c=!1)}else s.c=!1;I+=L.addedLength,B+=1}if(s._length&&(s.setXYAt(s.v[M][0],s.v[M][1],"i",M),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),I>r.e)break;c<f-1&&(s=ce.newElement(),z=!0,P.push(s),B=0)}return P};function ks(){}$([Ye],ks),ks.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ks.prototype.processPath=function(e,r){var s=r/100,n=[0,0],d=e._length,c=0;for(c=0;c<d;c+=1)n[0]+=e.v[c][0],n[1]+=e.v[c][1];n[0]/=d,n[1]/=d;var f=ce.newElement();f.c=e.c;var x,v,I,L,B,E;for(c=0;c<d;c+=1)x=e.v[c][0]+(n[0]-e.v[c][0])*s,v=e.v[c][1]+(n[1]-e.v[c][1])*s,I=e.o[c][0]+(n[0]-e.o[c][0])*-s,L=e.o[c][1]+(n[1]-e.o[c][1])*-s,B=e.i[c][0]+(n[0]-e.i[c][0])*-s,E=e.i[c][1]+(n[1]-e.i[c][1])*-s,f.setTripleAt(x,v,I,L,B,E,c);return f},ks.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.amount.v;if(f!==0){var x,v;for(s=0;s<n;s+=1){if(x=this.shapes[s],v=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],f));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Vl=function(){var e=[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 s(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 L,B;if(I=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/I,0),B=this.p.getValueAtTime(this.p.keyframes[0].t/I,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/I,0),B=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/I,0)):(L=this.p.pv,B=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/I,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],B=[];var E=this.px,R=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(L[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),L[1]=R.getValueAtTime((R.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=R.getValueAtTime(R.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(L[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),L[1]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/I,0)):(L=[E.pv,R.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/I,R.offsetTime))}else B=e,L=B;this.v.rotate(-Math.atan2(L[1]-B[1],L[0]-B[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function d(){}function c(v){this._addDynamicProperty(v),this.elem.addDynamicProperty(v),this._isDirty=!0}function f(v,I,L){if(this.elem=v,this.frameId=-1,this.propType="transform",this.data=I,this.v=new de,this.pre=new de,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||v),I.p&&I.p.s?(this.px=it.getProp(v,I.p.x,0,0,this),this.py=it.getProp(v,I.p.y,0,0,this),I.p.z&&(this.pz=it.getProp(v,I.p.z,0,0,this))):this.p=it.getProp(v,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=it.getProp(v,I.rx,0,It,this),this.ry=it.getProp(v,I.ry,0,It,this),this.rz=it.getProp(v,I.rz,0,It,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=it.getProp(v,I.or,1,It,this),this.or.sh=!0}else this.r=it.getProp(v,I.r||{k:0},0,It,this);I.sk&&(this.sk=it.getProp(v,I.sk,0,It,this),this.sa=it.getProp(v,I.sa,0,It,this)),this.a=it.getProp(v,I.a||{k:[0,0,0]},1,0,this),this.s=it.getProp(v,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=it.getProp(v,I.o,0,.01,v):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}f.prototype={applyToMatrix:r,getValue:s,precalculateMatrix:n,autoOrient:d},$([oe],f),f.prototype.addDynamicProperty=c,f.prototype._addDynamicProperty=oe.prototype.addDynamicProperty;function x(v,I,L){return new f(v,I,L)}return{getTransformProperty:x}}();function Er(){}$([Ye],Er),Er.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=it.getProp(e,r.c,0,null,this),this.o=it.getProp(e,r.o,0,null,this),this.tr=Vl.getTransformProperty(e,r.tr,this),this.so=it.getProp(e,r.tr.so,0,.01,this),this.eo=it.getProp(e,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new de,this.rMatrix=new de,this.sMatrix=new de,this.tMatrix=new de,this.matrix=new de},Er.prototype.applyTransforms=function(e,r,s,n,d,c){var f=c?-1:1,x=n.s.v[0]+(1-n.s.v[0])*(1-d),v=n.s.v[1]+(1-n.s.v[1])*(1-d);e.translate(n.p.v[0]*f*d,n.p.v[1]*f*d,n.p.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.rotate(-n.r.v*f*d),r.translate(n.a.v[0],n.a.v[1],n.a.v[2]),s.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),s.scale(c?1/x:x,c?1/v:v),s.translate(n.a.v[0],n.a.v[1],n.a.v[2])},Er.prototype.init=function(e,r,s,n){for(this.elem=e,this.arr=r,this.pos=s,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[s]);s>0;)s-=1,this._elements.unshift(r[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Er.prototype.resetElements=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},Er.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},Er.prototype.changeGroupRender=function(e,r){var s,n=e.length;for(s=0;s<n;s+=1)e[s]._render=r,e[s].ty==="gr"&&this.changeGroupRender(e[s].it,r)},Er.prototype.processShapes=function(e){var r,s,n,d,c,f=!1;if(this._mdf||e){var x=Math.ceil(this.c.v);if(this._groups.length<x){for(;this._groups.length<x;){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(),f=!0}c=0;var I;for(n=0;n<=this._groups.length-1;n+=1){if(I=c<x,this._groups[n]._render=I,this.changeGroupRender(this._groups[n].it,I),!I){var L=this.elemsData[n].it,B=L[L.length-1];B.transform.op.v!==0?(B.transform.op._mdf=!0,B.transform.op.v=0):B.transform.op._mdf=!1}c+=1}this._currentCopies=x;var E=this.o.v,R=E%1,P=E>0?Math.floor(E):Math.ceil(E),M=this.pMatrix.props,z=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(E>0){for(;_<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,R,!1),_+=R)}else if(E<0){for(;_>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-R,!0),_-=R)}n=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[n].it,s=r[r.length-1].transform.mProps.v.props,A=s.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),_!==0){for((n!==0&&d===1||n!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(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)s[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<A;y+=1)s[y]=this.matrix.props[y];_+=1,c-=1,n+=d}}else for(c=this._currentCopies,n=0,d=1;c;)r=this.elemsData[n].it,s=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,c-=1,n+=d;return f},Er.prototype.addShape=function(){};function Cs(){}$([Ye],Cs),Cs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=it.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Cs.prototype.processPath=function(e,r){var s=ce.newElement();s.c=e.c;var n,d=e._length,c,f,x,v,I,L,B=0,E,R,P,M,z,w;for(n=0;n<d;n+=1)c=e.v[n],x=e.o[n],f=e.i[n],c[0]===x[0]&&c[1]===x[1]&&c[0]===f[0]&&c[1]===f[1]?(n===0||n===d-1)&&!e.c?(s.setTripleAt(c[0],c[1],x[0],x[1],f[0],f[1],B),B+=1):(n===0?v=e.v[d-1]:v=e.v[n-1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),L=I?Math.min(I/2,r)/I:0,z=c[0]+(v[0]-c[0])*L,E=z,w=c[1]-(c[1]-v[1])*L,R=w,P=E-(E-c[0])*le,M=R-(R-c[1])*le,s.setTripleAt(E,R,P,M,z,w,B),B+=1,n===d-1?v=e.v[0]:v=e.v[n+1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),L=I?Math.min(I/2,r)/I:0,P=c[0]+(v[0]-c[0])*L,E=P,M=c[1]+(v[1]-c[1])*L,R=M,z=E-(E-c[0])*le,w=R-(R-c[1])*le,s.setTripleAt(E,R,P,M,z,w,B),B+=1):(s.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],B),B+=1);return s},Cs.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.rd.v;if(f!==0){var x,v;for(s=0;s<n;s+=1){if(x=this.shapes[s],v=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],f));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Xa(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function Bl(e){return Math.abs(e)<=1e-5}function kh(e,r,s){return e*(1-s)+r*s}function ci(e,r,s){return[kh(e[0],r[0],s),kh(e[1],r[1],s)]}function sg(e,r,s){if(e===0)return[];var n=r*r-4*e*s;if(n<0)return[];var d=-r/(2*e);if(n===0)return[d];var c=Math.sqrt(n)/(2*e);return[d-c,d+c]}function Ch(e,r,s,n){return[-e+3*r-3*s+n,3*e-6*r+3*s,-3*e+3*r,e]}function wh(e){return new Bt(e,e,e,e,!1)}function Bt(e,r,s,n,d){d&&Lo(e,r)&&(r=ci(e,n,1/3)),d&&Lo(s,n)&&(s=ci(e,n,2/3));var c=Ch(e[0],r[0],s[0],n[0]),f=Ch(e[1],r[1],s[1],n[1]);this.a=[c[0],f[0]],this.b=[c[1],f[1]],this.c=[c[2],f[2]],this.d=[c[3],f[3]],this.points=[e,r,s,n]}Bt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Bt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Bt.prototype.tangentAngle=function(e){var r=this.derivative(e);return Math.atan2(r[1],r[0])},Bt.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},Bt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Bl(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,s=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(s<0)return[];var n=Math.sqrt(s);return Bl(n)?n>0&&n<1?[r]:[]:[r-n,r+n].filter(function(d){return d>0&&d<1})},Bt.prototype.split=function(e){if(e<=0)return[wh(this.points[0]),this];if(e>=1)return[this,wh(this.points[this.points.length-1])];var r=ci(this.points[0],this.points[1],e),s=ci(this.points[1],this.points[2],e),n=ci(this.points[2],this.points[3],e),d=ci(r,s,e),c=ci(s,n,e),f=ci(d,c,e);return[new Bt(this.points[0],r,d,f,!0),new Bt(f,c,n,this.points[3],!0)]};function Nh(e,r){var s=e.points[0][r],n=e.points[e.points.length-1][r];if(s>n){var d=n;n=s,s=d}for(var c=sg(3*e.a[r],2*e.b[r],e.c[r]),f=0;f<c.length;f+=1)if(c[f]>0&&c[f]<1){var x=e.point(c[f])[r];x<s?s=x:x>n&&(n=x)}return{min:s,max:n}}Bt.prototype.bounds=function(){return{x:Nh(this,0),y:Nh(this,1)}},Bt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Za(e,r,s){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(r+s)/2,t1:r,t2:s}}function Lh(e){var r=e.bez.split(.5);return[Za(r[0],e.t1,e.t),Za(r[1],e.t,e.t2)]}function ag(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function ws(e,r,s,n,d,c){if(ag(e,r)){if(s>=c||e.width<=n&&e.height<=n&&r.width<=n&&r.height<=n){d.push([e.t,r.t]);return}var f=Lh(e),x=Lh(r);ws(f[0],x[0],s+1,n,d,c),ws(f[0],x[1],s+1,n,d,c),ws(f[1],x[0],s+1,n,d,c),ws(f[1],x[1],s+1,n,d,c)}}Bt.prototype.intersections=function(e,r,s){r===void 0&&(r=2),s===void 0&&(s=7);var n=[];return ws(Za(this,0,1),Za(e,0,1),0,r,n,s),n},Bt.shapeSegment=function(e,r){var s=(r+1)%e.length();return new Bt(e.v[r],e.o[r],e.i[s],e.v[s],!0)},Bt.shapeSegmentInverted=function(e,r){var s=(r+1)%e.length();return new Bt(e.v[s],e.i[s],e.o[r],e.v[r],!0)};function Ul(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function Qa(e,r,s,n){var d=[e[0],e[1],1],c=[r[0],r[1],1],f=[s[0],s[1],1],x=[n[0],n[1],1],v=Ul(Ul(d,c),Ul(f,x));return Bl(v[2])?null:[v[0]/v[2],v[1]/v[2]]}function No(e,r,s){return[e[0]+Math.cos(r)*s,e[1]-Math.sin(r)*s]}function Hl(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function Lo(e,r){return Xa(e[0],r[0])&&Xa(e[1],r[1])}function Ns(){}$([Ye],Ns),Ns.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=it.getProp(e,r.s,0,null,this),this.frequency=it.getProp(e,r.r,0,null,this),this.pointsType=it.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Rh(e,r,s,n,d,c,f){var x=s-Math.PI/2,v=s+Math.PI/2,I=r[0]+Math.cos(s)*n*d,L=r[1]-Math.sin(s)*n*d;e.setTripleAt(I,L,I+Math.cos(x)*c,L-Math.sin(x)*c,I+Math.cos(v)*f,L-Math.sin(v)*f,e.length())}function ng(e,r){var s=[r[0]-e[0],r[1]-e[1]],n=-Math.PI*.5,d=[Math.cos(n)*s[0]-Math.sin(n)*s[1],Math.sin(n)*s[0]+Math.cos(n)*s[1]];return d}function lg(e,r){var s=r===0?e.length()-1:r-1,n=(r+1)%e.length(),d=e.v[s],c=e.v[n],f=ng(d,c);return Math.atan2(0,1)-Math.atan2(f[1],f[0])}function Mh(e,r,s,n,d,c,f){var x=lg(r,s),v=r.v[s%r._length],I=r.v[s===0?r._length-1:s-1],L=r.v[(s+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]-L[0],2)+Math.pow(v[1]-L[1],2)):0;Rh(e,r.v[s%r._length],x,f,n,E/((d+1)*2),B/((d+1)*2),c)}function cg(e,r,s,n,d,c){for(var f=0;f<n;f+=1){var x=(f+1)/(n+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(x),L=r.point(x);Rh(e,L,I,c,s,v/((n+1)*2),v/((n+1)*2),d),c=-c}return c}Ns.prototype.processPath=function(e,r,s,n){var d=e._length,c=ce.newElement();if(c.c=e.c,e.c||(d-=1),d===0)return c;var f=-1,x=Bt.shapeSegment(e,0);Mh(c,e,0,r,s,n,f);for(var v=0;v<d;v+=1)f=cg(c,x,r,s,n,-f),v===d-1&&!e.c?x=null:x=Bt.shapeSegment(e,(v+1)%d),Mh(c,e,v+1,r,s,n,f);return c},Ns.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),v=this.pointsType.v;if(f!==0){var I,L;for(s=0;s<n;s+=1){if(I=this.shapes[s],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],f,x,v));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Gl(e,r,s){var n=Math.atan2(r[0]-e[0],r[1]-e[1]);return[No(e,n,s),No(r,n,s)]}function Ro(e,r){var s,n,d,c,f,x,v;v=Gl(e.points[0],e.points[1],r),s=v[0],n=v[1],v=Gl(e.points[1],e.points[2],r),d=v[0],c=v[1],v=Gl(e.points[2],e.points[3],r),f=v[0],x=v[1];var I=Qa(s,n,d,c);I===null&&(I=n);var L=Qa(f,x,d,c);return L===null&&(L=f),new Bt(s,I,L,x)}function Oh(e,r,s,n,d){var c=r.points[3],f=s.points[0];if(n===3||Lo(c,f))return c;if(n===2){var x=-r.tangentAngle(1),v=-s.tangentAngle(0)+Math.PI,I=Qa(c,No(c,x+Math.PI/2,100),f,No(f,x+Math.PI/2,100)),L=I?Hl(I,c):Hl(c,f)/2,B=No(c,x,2*L*le);return e.setXYAt(B[0],B[1],"o",e.length()-1),B=No(f,v,2*L*le),e.setTripleAt(f[0],f[1],f[0],f[1],B[0],B[1],e.length()),f}var E=Lo(c,r.points[2])?r.points[0]:r.points[2],R=Lo(f,s.points[1])?s.points[3]:s.points[1],P=Qa(E,c,f,R);return P&&Hl(P,c)<d?(e.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],e.length()),P):c}function Ph(e,r){var s=e.intersections(r);return s.length&&Xa(s[0][0],1)&&s.shift(),s.length?s[0]:null}function Dh(e,r){var s=e.slice(),n=r.slice(),d=Ph(e[e.length-1],r[0]);return d&&(s[e.length-1]=e[e.length-1].split(d[0])[0],n[0]=r[0].split(d[1])[1]),e.length>1&&r.length>1&&(d=Ph(e[0],r[r.length-1]),d)?[[e[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[s,n]}function dg(e){for(var r,s=1;s<e.length;s+=1)r=Dh(e[s-1],e[s]),e[s-1]=r[0],e[s]=r[1];return e.length>1&&(r=Dh(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function Fh(e,r){var s=e.inflectionPoints(),n,d,c,f;if(s.length===0)return[Ro(e,r)];if(s.length===1||Xa(s[1],1))return c=e.split(s[0]),n=c[0],d=c[1],[Ro(n,r),Ro(d,r)];c=e.split(s[0]),n=c[0];var x=(s[1]-s[0])/(1-s[0]);return c=c[1].split(x),f=c[0],d=c[1],[Ro(n,r),Ro(f,r),Ro(d,r)]}function Ls(){}$([Ye],Ls),Ls.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this.miterLimit=it.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ls.prototype.processPath=function(e,r,s,n){var d=ce.newElement();d.c=e.c;var c=e.length();e.c||(c-=1);var f,x,v,I=[];for(f=0;f<c;f+=1)v=Bt.shapeSegment(e,f),I.push(Fh(v,r));if(!e.c)for(f=c-1;f>=0;f-=1)v=Bt.shapeSegmentInverted(e,f),I.push(Fh(v,r));I=dg(I);var L=null,B=null;for(f=0;f<I.length;f+=1){var E=I[f];for(B&&(L=Oh(d,B,E[0],s,n)),B=E[E.length-1],x=0;x<E.length;x+=1)v=E[x],L&&Lo(v.points[0],L)?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()),L=v.points[3]}return I.length&&Oh(d,B,I[0][0],s,n),d},Ls.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.amount.v,x=this.miterLimit.v,v=this.lineJoin;if(f!==0){var I,L;for(s=0;s<n;s+=1){if(I=this.shapes[s],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],f,v,x));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function $h(e){for(var r=e.fStyle?e.fStyle.split(" "):[],s="normal",n="normal",d=r.length,c,f=0;f<d;f+=1)switch(c=r[f].toLowerCase(),c){case"italic":n="italic";break;case"bold":s="700";break;case"black":s="900";break;case"medium":s="500";break;case"regular":case"normal":s="400";break;case"light":case"thin":s="200";break;default:break}return{style:n,weight:e.fWeight||s}}var Fi=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},s=[];s=s.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,d=917631,c=917601,f=917626,x=65039,v=8205,I=127462,L=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function E(S){var O=S.split(","),u,b=O.length,U=[];for(u=0;u<b;u+=1)O[u]!=="sans-serif"&&O[u]!=="monospace"&&U.push(O[u]);return U.join(",")}function R(S,O){var u=N("span");u.setAttribute("aria-hidden",!0),u.style.fontFamily=O;var b=N("span");b.innerText="giItT1WQy@!-/#",u.style.position="absolute",u.style.left="-10000px",u.style.top="-10000px",u.style.fontSize="300px",u.style.fontVariant="normal",u.style.fontStyle="normal",u.style.fontWeight="normal",u.style.letterSpacing="0",u.appendChild(b),document.body.appendChild(u);var U=b.offsetWidth;return b.style.fontFamily=E(S)+", "+O,{node:b,w:U,parent:u}}function P(){var S,O=this.fonts.length,u,b,U=O;for(S=0;S<O;S+=1)this.fonts[S].loaded?U-=1:this.fonts[S].fOrigin==="n"||this.fonts[S].origin===0?this.fonts[S].loaded=!0:(u=this.fonts[S].monoCase.node,b=this.fonts[S].monoCase.w,u.offsetWidth!==b?(U-=1,this.fonts[S].loaded=!0):(u=this.fonts[S].sansCase.node,b=this.fonts[S].sansCase.w,u.offsetWidth!==b&&(U-=1,this.fonts[S].loaded=!0)),this.fonts[S].loaded&&(this.fonts[S].sansCase.parent.parentNode.removeChild(this.fonts[S].sansCase.parent),this.fonts[S].monoCase.parent.parentNode.removeChild(this.fonts[S].monoCase.parent)));U!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function M(S,O){var u=document.body&&O?"svg":"canvas",b,U=$h(S);if(u==="svg"){var F=bt("text");F.style.fontSize="100px",F.setAttribute("font-family",S.fFamily),F.setAttribute("font-style",U.style),F.setAttribute("font-weight",U.weight),F.textContent="1",S.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",S.fClass)):F.style.fontFamily=S.fFamily,O.appendChild(F),b=F}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=U.style+" "+U.weight+" 100px "+S.fFamily,b=at}function mt(vt){return u==="svg"?(b.textContent=vt,b.getComputedTextLength()):b.measureText(vt).width}return{measureText:mt}}function z(S,O){if(!S){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=S.list;return}if(!document.body){this.isLoaded=!0,S.list.forEach(function(Ce){Ce.helper=M(Ce),Ce.cache={}}),this.fonts=S.list;return}var u=S.list,b,U=u.length,F=U;for(b=0;b<U;b+=1){var at=!0,mt,vt;if(u[b].loaded=!1,u[b].monoCase=R(u[b].fFamily,"monospace"),u[b].sansCase=R(u[b].fFamily,"sans-serif"),!u[b].fPath)u[b].loaded=!0,F-=1;else if(u[b].fOrigin==="p"||u[b].origin===3){if(mt=document.querySelectorAll('style[f-forigin="p"][f-family="'+u[b].fFamily+'"], style[f-origin="3"][f-family="'+u[b].fFamily+'"]'),mt.length>0&&(at=!1),at){var wt=N("style");wt.setAttribute("f-forigin",u[b].fOrigin),wt.setAttribute("f-origin",u[b].origin),wt.setAttribute("f-family",u[b].fFamily),wt.type="text/css",wt.innerText="@font-face {font-family: "+u[b].fFamily+"; font-style: normal; src: url('"+u[b].fPath+"');}",O.appendChild(wt)}}else if(u[b].fOrigin==="g"||u[b].origin===1){for(mt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),vt=0;vt<mt.length;vt+=1)mt[vt].href.indexOf(u[b].fPath)!==-1&&(at=!1);if(at){var Nt=N("link");Nt.setAttribute("f-forigin",u[b].fOrigin),Nt.setAttribute("f-origin",u[b].origin),Nt.type="text/css",Nt.rel="stylesheet",Nt.href=u[b].fPath,document.body.appendChild(Nt)}}else if(u[b].fOrigin==="t"||u[b].origin===2){for(mt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),vt=0;vt<mt.length;vt+=1)u[b].fPath===mt[vt].src&&(at=!1);if(at){var qt=N("link");qt.setAttribute("f-forigin",u[b].fOrigin),qt.setAttribute("f-origin",u[b].origin),qt.setAttribute("rel","stylesheet"),qt.setAttribute("href",u[b].fPath),O.appendChild(qt)}}u[b].helper=M(u[b],O),u[b].cache={},this.fonts.push(u[b])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function w(S){if(S){this.chars||(this.chars=[]);var O,u=S.length,b,U=this.chars.length,F;for(O=0;O<u;O+=1){for(b=0,F=!1;b<U;)this.chars[b].style===S[O].style&&this.chars[b].fFamily===S[O].fFamily&&this.chars[b].ch===S[O].ch&&(F=!0),b+=1;F||(this.chars.push(S[O]),U+=1)}}}function _(S,O,u){for(var b=0,U=this.chars.length;b<U;){if(this.chars[b].ch===S&&this.chars[b].style===O&&this.chars[b].fFamily===u)return this.chars[b];b+=1}return(typeof S=="string"&&S.charCodeAt(0)!==13||!S)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",S,O,u)),r}function y(S,O,u){var b=this.getFontByName(O),U=S;if(!b.cache[U]){var F=b.helper;if(S===" "){var at=F.measureText("|"+S+"|"),mt=F.measureText("||");b.cache[U]=(at-mt)/100}else b.cache[U]=F.measureText(S)/100}return b.cache[U]*u}function A(S){for(var O=0,u=this.fonts.length;O<u;){if(this.fonts[O].fName===S)return this.fonts[O];O+=1}return this.fonts[0]}function k(S){var O=0,u=S.charCodeAt(0);if(u>=55296&&u<=56319){var b=S.charCodeAt(1);b>=56320&&b<=57343&&(O=(u-55296)*1024+b-56320+65536)}return O}function D(S,O){var u=S.toString(16)+O.toString(16);return B.indexOf(u)!==-1}function V(S){return S===v}function H(S){return S===x}function Z(S){var O=k(S);return O>=I&&O<=L}function ft(S){return Z(S.substr(0,2))&&Z(S.substr(2,2))}function ht(S){return s.indexOf(S)!==-1}function et(S,O){var u=k(S.substr(O,2));if(u!==n)return!1;var b=0;for(O+=2;b<5;){if(u=k(S.substr(O,2)),u<c||u>f)return!1;b+=1,O+=2}return k(S.substr(O,2))===d}function yt(){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=ft,lt.isRegionalCode=Z,lt.isCombinedCharacter=ht,lt.isRegionalFlag=et,lt.isVariationSelector=H,lt.BLACK_FLAG_CODE_POINT=n;var X={addChars:w,addFonts:z,getCharData:_,getFontByName:A,measureText:y,checkLoadedFonts:P,setIsLoaded:yt};return lt.prototype=X,lt}();function zh(e){this.animationData=e}zh.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function hg(e){return new zh(e)}function Ja(){}Ja.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,s=this.renderableComponents.length;for(r=0;r<s;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 Yl=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(r){return e[r]||""}}();function pg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function mg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function ug(e,r,s){this.p=it.getProp(r,e.v,1,0,s)}function fg(e,r,s){this.p=it.getProp(r,e.v,1,0,s)}function vg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function gg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function bg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function yg(){this.p={}}function Vh(e,r){var s=e.ef||[];this.effectElements=[];var n,d=s.length,c;for(n=0;n<d;n+=1)c=new Rs(s[n],r),this.effectElements.push(c)}function Rs(e,r){this.init(e,r)}$([oe],Rs),Rs.prototype.getValue=Rs.prototype.iterateDynamicProperties,Rs.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var s,n=this.data.ef.length,d,c=this.data.ef;for(s=0;s<n;s+=1){switch(d=null,c[s].ty){case 0:d=new pg(c[s],r,this);break;case 1:d=new mg(c[s],r,this);break;case 2:d=new ug(c[s],r,this);break;case 3:d=new fg(c[s],r,this);break;case 4:case 7:d=new bg(c[s],r,this);break;case 10:d=new vg(c[s],r,this);break;case 11:d=new gg(c[s],r,this);break;case 5:d=new Vh(c[s],r,this);break;default:d=new yg(c[s],r,this);break}d&&this.effectElements.push(d)}};function di(){}di.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,s=this.data.masksProperties.length;r<s;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=ph();if(r){var s=r("layer"),n=r("effects"),d=r("shape"),c=r("text"),f=r("comp");this.layerInterface=s(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var x=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(x),this.data.ty===0||this.data.xt?this.compInterface=f(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=Yl(this.data.bm),s=this.baseElement||this.layerElement;s.style["mix-blend-mode"]=r},initBaseData:function(r,s,n){this.globalData=s,this.comp=n,this.data=r,this.layerId=Ie(),this.data.sr||(this.data.sr=1),this.effectsManager=new Vh(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function hi(){}hi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,s){var n,d=this.dynamicProperties.length;for(n=0;n<d;n+=1)(s||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function pi(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,s)}pi.prototype.prepareFrame=function(){},$([Ja,di,hi],pi),pi.prototype.getBaseElement=function(){return null},pi.prototype.renderFrame=function(){},pi.prototype.destroy=function(){},pi.prototype.initExpressions=function(){var e=ph();if(e){var r=e("footage");this.layerInterface=r(this)}},pi.prototype.getFootageData=function(){return this.footageData};function ke(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,s),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=it.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}ke.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var s=this._volume*this._volumeMultiplier;this._previousVolume!==s&&(this._previousVolume=s,this.audio.volume(s))},$([Ja,di,hi],ke),ke.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))},ke.prototype.show=function(){},ke.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ke.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ke.prototype.resume=function(){this._canPlay=!0},ke.prototype.setRate=function(e){this.audio.rate(e)},ke.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},ke.prototype.getBaseElement=function(){return null},ke.prototype.destroy=function(){},ke.prototype.sourceRectAtTime=function(){},ke.prototype.initExpressions=function(){};function he(){}he.prototype.checkLayers=function(e){var r,s=this.layers.length,n;for(this.completeLayers=!0,r=s-1;r>=0;r-=1)this.elements[r]||(n=this.layers[r],n.ip-n.st<=e-this.layers[r].st&&n.op-n.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},he.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},he.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},he.prototype.createAudio=function(e){return new ke(e,this.globalData,this)},he.prototype.createFootage=function(e){return new pi(e,this.globalData,this)},he.prototype.buildAllItems=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},he.prototype.includeLayers=function(e){this.completeLayers=!1;var r,s=e.length,n,d=this.layers.length;for(r=0;r<s;r+=1)for(n=0;n<d;){if(this.layers[n].id===e[r].id){this.layers[n]=e[r];break}n+=1}},he.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},he.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},he.prototype.buildElementParenting=function(e,r,s){for(var n=this.elements,d=this.layers,c=0,f=d.length;c<f;)d[c].ind==r&&(!n[c]||n[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(s.push(n[c]),n[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(e,d[c].parent,s):e.setHierarchy(s))),c+=1},he.prototype.addPendingElement=function(e){this.pendingElements.push(e)},he.prototype.searchExtraCompositions=function(e){var r,s=e.length;for(r=0;r<s;r+=1)if(e[r].xt){var n=this.createComp(e[r]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},he.prototype.getElementById=function(e){var r,s=this.elements.length;for(r=0;r<s;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},he.prototype.getElementByPath=function(e){var r=e.shift(),s;if(typeof r=="number")s=this.elements[r];else{var n,d=this.elements.length;for(n=0;n<d;n+=1)if(this.elements[n].data.nm===r){s=this.elements[n];break}}return e.length===0?s:s.getElementByPath(e)},he.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new Fi,this.globalData.slotManager=hg(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Eg={TRANSFORM_EFFECT:"transformEFfect"};function Mo(){}Mo.prototype={initTransform:function(){var r=new de;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,s=this.finalTransform.mat,n=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<d;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,s.cloneFromProps(r),n=0;n<d;n+=1)s.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var r=0,s=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<s;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),r=1;r<s;r+=1){var d=this.localTransforms[r].matrix;n.multiply(d)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<s;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Eg.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new de;var s=0,n=r.length;for(s=0;s<n;s+=1)this.localTransforms.push(r[s])}}},globalToLocal:function(r){var s=[];s.push(this.finalTransform);for(var n=!0,d=this.comp;n;)d.finalTransform?(d.data.hasMask&&s.splice(0,0,d.finalTransform),d=d.comp):n=!1;var c,f=s.length,x;for(c=0;c<f;c+=1)x=s[c].mat.applyToPointArray(0,0,0),r=[r[0]-x[0],r[1]-x[1],0];return r},mHelper:new de};function $i(e,r,s){this.data=e,this.element=r,this.globalData=s,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=rt(c),this.solidPath="";var f,x=this.masksProperties,v=0,I=[],L,B,E=Ie(),R,P,M,z,w="clipPath",_="clip-path";for(d=0;d<c;d+=1)if((x[d].mode!=="a"&&x[d].mode!=="n"||x[d].inv||x[d].o.k!==100||x[d].o.x)&&(w="mask",_="mask"),(x[d].mode==="s"||x[d].mode==="i")&&v===0?(R=bt("rect"),R.setAttribute("fill","#ffffff"),R.setAttribute("width",this.element.comp.data.w||0),R.setAttribute("height",this.element.comp.data.h||0),I.push(R)):R=null,f=bt("path"),x[d].mode==="n")this.viewData[d]={op:it.getProp(this.element,x[d].o,0,.01,this.element),prop:ja.getShapeProp(this.element,x[d],3),elem:f,lastPath:""},n.appendChild(f);else{v+=1,f.setAttribute("fill",x[d].mode==="s"?"#000000":"#ffffff"),f.setAttribute("clip-rule","nonzero");var y;if(x[d].x.k!==0?(w="mask",_="mask",z=it.getProp(this.element,x[d].x,0,null,this.element),y=Ie(),P=bt("filter"),P.setAttribute("id",y),M=bt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),n.appendChild(P),f.setAttribute("stroke",x[d].mode==="s"?"#000000":"#ffffff")):(M=null,z=null),this.storedData[d]={elem:f,x:z,expan:M,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},x[d].mode==="i"){B=I.length;var A=bt("g");for(L=0;L<B;L+=1)A.appendChild(I[L]);var k=bt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",E+"_"+v),k.appendChild(f),n.appendChild(k),A.setAttribute("mask","url("+T()+"#"+E+"_"+v+")"),I.length=0,I.push(A)}else I.push(f);x[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:f,lastPath:"",op:it.getProp(this.element,x[d].o,0,.01,this.element),prop:ja.getShapeProp(this.element,x[d],3),invRect:R},this.viewData[d].prop.k||this.drawPath(x[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=bt(w),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(_,"url("+T()+"#"+E+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}$i.prototype.getMaskProperty=function(e){return this.viewData[e].prop},$i.prototype.renderFrame=function(e){var r=this.element.finalTransform.mat,s,n=this.masksProperties.length;for(s=0;s<n;s+=1)if((this.viewData[s].prop._mdf||e)&&this.drawPath(this.masksProperties[s],this.viewData[s].prop.v,this.viewData[s]),(this.viewData[s].op._mdf||e)&&this.viewData[s].elem.setAttribute("fill-opacity",this.viewData[s].op.v),this.masksProperties[s].mode!=="n"&&(this.viewData[s].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[s].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[s].x&&(this.storedData[s].x._mdf||e))){var d=this.storedData[s].expan;this.storedData[s].x.v<0?(this.storedData[s].lastOperator!=="erode"&&(this.storedData[s].lastOperator="erode",this.storedData[s].elem.setAttribute("filter","url("+T()+"#"+this.storedData[s].filterId+")")),d.setAttribute("radius",-this.storedData[s].x.v)):(this.storedData[s].lastOperator!=="dilate"&&(this.storedData[s].lastOperator="dilate",this.storedData[s].elem.setAttribute("filter",null)),this.storedData[s].elem.setAttribute("stroke-width",this.storedData[s].x.v*2))}},$i.prototype.getMaskelement=function(){return this.maskElement},$i.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},$i.prototype.drawPath=function(e,r,s){var n=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[d][0]+","+r.i[d][1]+" "+r.v[d][0]+","+r.v[d][1];if(r.c&&c>1&&(n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),s.lastPath!==n){var f="";s.elem&&(r.c&&(f=e.inv?this.solidPath+n:n),s.elem.setAttribute("d",f)),s.lastPath=n}},$i.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ms=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=s;function r(n,d){var c=bt("filter");return c.setAttribute("id",n),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function s(){var n=bt("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return e}(),Bh=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),tn={},Uh="filter_result_";function Wl(e){var r,s="SourceGraphic",n=e.data.ef?e.data.ef.length:0,d=Ie(),c=Ms.createFilter(d,!0),f=0;this.filters=[];var x;for(r=0;r<n;r+=1){x=null;var v=e.data.ef[r].ty;if(tn[v]){var I=tn[v].effect;x=new I(c,e.effectsManager.effectElements[r],e,Uh+f,s),s=Uh+f,tn[v].countsAsEffect&&(f+=1)}x&&this.filters.push(x)}f&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+T()+"#"+d+")")),this.filters.length&&e.addRenderableComponent(this)}Wl.prototype.renderFrame=function(e){var r,s=this.filters.length;for(r=0;r<s;r+=1)this.filters[r].renderFrame(e)},Wl.prototype.getEffects=function(e){var r,s=this.filters.length,n=[];for(r=0;r<s;r+=1)this.filters[r].type===e&&n.push(this.filters[r]);return n};function YT(e,r,s){tn[e]={effect:r,countsAsEffect:s}}function Os(){}Os.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var s=bt("g");s.setAttribute("id",this.layerId),s.appendChild(this.layerElement),r=s,this.globalData.defs.appendChild(s)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=bt("clipPath"),d=bt("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=Ie();if(n.setAttribute("id",c),n.appendChild(d),this.globalData.defs.appendChild(n),this.checkMasks()){var f=bt("g");f.setAttribute("clip-path","url("+T()+"#"+c+")"),f.appendChild(this.layerElement),this.transformedElement=f,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+T()+"#"+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 $i(this.data,this,this.globalData),this.renderableEffectsManager=new Wl(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var s=this.layerId+"_"+r,n,d,c,f;if(r===1||r===3){var x=bt("mask");x.setAttribute("id",s),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=bt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(c),this.globalData.defs.appendChild(x),!Bh.maskType&&r===1&&(x.setAttribute("mask-type","luminance"),n=Ie(),d=Ms.createFilter(n),this.globalData.defs.appendChild(d),d.appendChild(Ms.createAlphaToLuminanceFilter()),f=bt("g"),f.appendChild(c),x.appendChild(f),f.setAttribute("filter","url("+T()+"#"+n+")"))}else if(r===2){var v=bt("mask");v.setAttribute("id",s),v.setAttribute("mask-type","alpha");var I=bt("g");v.appendChild(I),n=Ie(),d=Ms.createFilter(n);var L=bt("feComponentTransfer");L.setAttribute("in","SourceGraphic"),d.appendChild(L);var B=bt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),L.appendChild(B),this.globalData.defs.appendChild(d);var E=bt("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("+T()+"#"+n+")"),I.appendChild(E),c=bt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),Bh.maskType||(v.setAttribute("mask-type","luminance"),d.appendChild(Ms.createAlphaToLuminanceFilter()),f=bt("g"),I.appendChild(E),f.appendChild(this.layerElement),I.appendChild(f)),this.globalData.defs.appendChild(v)}this.matteMasks[r]=s}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+T()+"#"+r+")")}};function Oo(){}Oo.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 Ps(){}(function(){var e={initElement:function(s,n,d){this.initFrame(),this.initBaseData(s,n,d),this.initTransform(s,n,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var s=this.baseElement||this.layerElement;s.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var s=this.baseElement||this.layerElement;s.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(s){this._mdf=!1,this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};$([Ja,K(e)],Ps)})();function Ds(e,r,s){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,s),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}$([di,Mo,Os,Oo,hi,Ps],Ds),Ds.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},Ds.prototype.sourceRectAtTime=function(){return this.sourceRect};function Tg(e,r){this.elem=e,this.pos=r}function Hh(){}Hh.prototype={addShapeToModifiers:function(r){var s,n=this.shapeModifiers.length;for(s=0;s<n;s+=1)this.shapeModifiers[s].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var s=0,n=this.shapeModifiers.length;s<n;)if(this.shapeModifiers[s].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,s=this.shapes.length;for(r=0;r<s;r+=1)this.shapes[r].sh.reset();s=this.shapeModifiers.length;var n;for(r=s-1;r>=0&&(n=this.shapeModifiers[r].processShapes(this._isFirstFrame),!n);r-=1);}},searchProcessedElement:function(r){for(var s=this.processedElements,n=0,d=s.length;n<d;){if(s[n].elem===r)return s[n].pos;n+=1}return 0},addProcessedElement:function(r,s){for(var n=this.processedElements,d=n.length;d;)if(d-=1,n[d].elem===r){n[d].pos=s;return}n.push(new Tg(r,s))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Gh={1:"butt",2:"round",3:"square"},Yh={1:"miter",2:"round",3:"bevel"};function Wh(e,r,s){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=s,this.lvl=r,this._isAnimated=!!s.k;for(var n=0,d=e.length;n<d;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}Wh.prototype.setAsAnimated=function(){this._isAnimated=!0};function jh(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=bt("path"),this.msElem=null}jh.prototype.reset=function(){this.d="",this._mdf=!1};function en(e,r,s,n){this.elem=e,this.frameId=-1,this.dataProps=rt(r.length),this.renderer=s,this.k=!1,this.dashStr="",this.dashArray=Q("float32",r.length?r.length-1:0),this.dashoffset=Q("float32",1),this.initDynamicPropertyContainer(n);var d,c=r.length||0,f;for(d=0;d<c;d+=1)f=it.getProp(e,r[d].v,0,0,this),this.k=f.k||this.k,this.dataProps[d]={n:r[d].n,p:f};this.k||this.getValue(!0),this._isAnimated=this.k}en.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var r=0,s=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<s;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}},$([oe],en);function qh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.w=it.getProp(e,r.w,0,null,this),this.d=new en(e,r.d||{},"svg",this),this.c=it.getProp(e,r.c,1,255,this),this.style=s,this._isAnimated=!!this._isAnimated}$([oe],qh);function Kh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.c=it.getProp(e,r.c,1,255,this),this.style=s}$([oe],Kh);function Xh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=s}$([oe],Xh);function Fs(e,r,s){this.data=r,this.c=Q("uint8c",r.p*4);var n=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=Q("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(s),this.prop=it.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Fs.prototype.comparePoints=function(e,r){for(var s=0,n=this.o.length/2,d;s<n;){if(d=Math.abs(e[s*4]-e[r*4+s*2]),d>.01)return!1;s+=1}return!0},Fs.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Fs.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,s=this.data.p*4,n,d;for(r=0;r<s;r+=1)n=r%4===0?100:255,d=Math.round(this.prop.v[r]*n),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!e);if(this.o.length)for(s=this.prop.v.length,r=this.data.p*4;r<s;r+=1)n=r%2===0?100:1,d=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==d&&(this.o[r-this.data.p*4]=d,this._omdf=!e);this._mdf=!e}},$([oe],Fs);function Po(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,s)}Po.prototype.initGradientData=function(e,r,s){this.o=it.getProp(e,r.o,0,.01,this),this.s=it.getProp(e,r.s,1,null,this),this.e=it.getProp(e,r.e,1,null,this),this.h=it.getProp(e,r.h||{k:0},0,.01,this),this.a=it.getProp(e,r.a||{k:0},0,It,this),this.g=new Fs(e,r.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,r),this.setGradientOpacity(r,s),this._isAnimated=!!this._isAnimated},Po.prototype.setGradientData=function(e,r){var s=Ie(),n=bt(r.t===1?"linearGradient":"radialGradient");n.setAttribute("id",s),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,f,x;for(x=r.g.p*4,f=0;f<x;f+=4)c=bt("stop"),n.appendChild(c),d.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+T()+"#"+s+")"),this.gf=n,this.cst=d},Po.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var s,n,d,c=bt("mask"),f=bt("path");c.appendChild(f);var x=Ie(),v=Ie();c.setAttribute("id",v);var I=bt(e.t===1?"linearGradient":"radialGradient");I.setAttribute("id",x),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var L=this.stops;for(n=e.g.p*4;n<d;n+=2)s=bt("stop"),s.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(s),L.push(s);f.setAttribute(e.ty==="gf"?"fill":"stroke","url("+T()+"#"+x+")"),e.ty==="gs"&&(f.setAttribute("stroke-linecap",Gh[e.lc||2]),f.setAttribute("stroke-linejoin",Yh[e.lj||2]),e.lj===1&&f.setAttribute("stroke-miterlimit",e.ml)),this.of=I,this.ms=c,this.ost=L,this.maskId=v,r.msElem=f}},$([oe],Po);function Zh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=it.getProp(e,r.w,0,null,this),this.d=new en(e,r.d||{},"svg",this),this.initGradientData(e,r,s),this._isAnimated=!!this._isAnimated}$([Po,oe],Zh);function xg(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function Ag(e,r,s){this.transform={mProps:e,op:r,container:s},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Qh=function(r,s,n,d){if(s===0)return"";var c=r.o,f=r.i,x=r.v,v,I=" M"+d.applyToPointStringified(x[0][0],x[0][1]);for(v=1;v<s;v+=1)I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(f[v][0],f[v][1])+" "+d.applyToPointStringified(x[v][0],x[v][1]);return n&&s&&(I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(f[0][0],f[0][1])+" "+d.applyToPointStringified(x[0][0],x[0][1]),I+="z"),I},Sg=function(){var e=new de,r=new de,s={createRenderFunction:n};function n(B){switch(B.ty){case"fl":return x;case"gf":return I;case"gs":return v;case"st":return L;case"sh":case"el":case"rc":case"sr":return f;case"tr":return d;case"no":return c;default:return null}}function d(B,E,R){(R||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(R||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function f(B,E,R){var P,M,z,w,_,y,A=E.styles.length,k=E.lvl,D,V,H,Z;for(y=0;y<A;y+=1){if(w=E.sh._mdf||R,E.styles[y].lvl<k){for(V=r.reset(),H=k-E.styles[y].lvl,Z=E.transformers.length-1;!w&&H>0;)w=E.transformers[Z].mProps._mdf||w,H-=1,Z-=1;if(w)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=e;if(D=E.sh.paths,M=D._length,w){for(z="",P=0;P<M;P+=1)_=D.shapes[P],_&&_._length&&(z+=Qh(_,_._length,_.c,V));E.caches[y]=z}else z=E.caches[y];E.styles[y].d+=B.hd===!0?"":z,E.styles[y]._mdf=w||E.styles[y]._mdf}}function x(B,E,R){var P=E.style;(E.c._mdf||R)&&P.pElem.setAttribute("fill","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||R)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function v(B,E,R){I(B,E,R),L(B,E,R)}function I(B,E,R){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,w=E.e.v;if(E.o._mdf||R){var _=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(_,E.o.v)}if(E.s._mdf||R){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||R){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||R)){var ft=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",ft[D*2]+"%"),H.setAttribute("stop-opacity",ft[D*2+1])}if(B.t===1)(E.e._mdf||R)&&(P.setAttribute("x2",w[0]),P.setAttribute("y2",w[1]),M&&!E.g._collapsable&&(E.of.setAttribute("x2",w[0]),E.of.setAttribute("y2",w[1])));else{var ht;if((E.s._mdf||E.e._mdf||R)&&(ht=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)),P.setAttribute("r",ht),M&&!E.g._collapsable&&E.of.setAttribute("r",ht)),E.e._mdf||E.h._mdf||E.a._mdf||R){ht||(ht=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)));var et=Math.atan2(w[1]-z[1],w[0]-z[0]),yt=E.h.v;yt>=1?yt=.99:yt<=-1&&(yt=-.99);var lt=ht*yt,X=Math.cos(et+E.a.v)*lt+z[0],S=Math.sin(et+E.a.v)*lt+z[1];P.setAttribute("fx",X),P.setAttribute("fy",S),M&&!E.g._collapsable&&(E.of.setAttribute("fx",X),E.of.setAttribute("fy",S))}}}function L(B,E,R){var P=E.style,M=E.d;M&&(M._mdf||R)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||R)&&P.pElem.setAttribute("stroke","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||R)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||R)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return s}();function Gt(e,r,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,s),this.prevViewData=[]}$([di,Mo,Os,Hh,Oo,hi,Ps],Gt),Gt.prototype.initSecondaryElement=function(){},Gt.prototype.identityMatrix=new de,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 e,r=this.shapes.length,s,n,d=this.stylesList.length,c,f=[],x=!1;for(n=0;n<d;n+=1){for(c=this.stylesList[n],x=!1,f.length=0,e=0;e<r;e+=1)s=this.shapes[e],s.styles.indexOf(c)!==-1&&(f.push(s),x=s._isAnimated||x);f.length>1&&x&&this.setShapesAsAnimated(f)}},Gt.prototype.setShapesAsAnimated=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r].setAsAnimated()},Gt.prototype.createStyleElement=function(e,r){var s,n=new jh(e,r),d=n.pElem;if(e.ty==="st")s=new qh(this,e,n);else if(e.ty==="fl")s=new Kh(this,e,n);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?Po:Zh;s=new c(this,e,n),this.globalData.defs.appendChild(s.gf),s.maskId&&(this.globalData.defs.appendChild(s.ms),this.globalData.defs.appendChild(s.of),d.setAttribute("mask","url("+T()+"#"+s.maskId+")"))}else e.ty==="no"&&(s=new Xh(this,e,n));return(e.ty==="st"||e.ty==="gs")&&(d.setAttribute("stroke-linecap",Gh[e.lc||2]),d.setAttribute("stroke-linejoin",Yh[e.lj||2]),d.setAttribute("fill-opacity","0"),e.lj===1&&d.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&d.setAttribute("fill-rule","evenodd"),e.ln&&d.setAttribute("id",e.ln),e.cl&&d.setAttribute("class",e.cl),e.bm&&(d.style["mix-blend-mode"]=Yl(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,s),s},Gt.prototype.createGroupElement=function(e){var r=new xg;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=Yl(e.bm)),r},Gt.prototype.createTransformElement=function(e,r){var s=Vl.getTransformProperty(this,e,this),n=new Ag(s,s.o,r);return this.addToAnimatedContents(e,n),n},Gt.prototype.createShapeElement=function(e,r,s){var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7);var d=ja.getShapeProp(this,e,n,this),c=new Wh(r,s,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Gt.prototype.addToAnimatedContents=function(e,r){for(var s=0,n=this.animatedContents.length;s<n;){if(this.animatedContents[s].element===r)return;s+=1}this.animatedContents.push({fn:Sg.createRenderFunction(e),element:r,data:e})},Gt.prototype.setElementStyles=function(e){var r=e.styles,s,n=this.stylesList.length;for(s=0;s<n;s+=1)this.stylesList[s].closed||r.push(this.stylesList[s])},Gt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Gt.prototype.searchShapes=function(e,r,s,n,d,c,f){var x=[].concat(c),v,I=e.length-1,L,B,E=[],R=[],P,M,z;for(v=I;v>=0;v-=1){if(z=this.searchProcessedElement(e[v]),z?r[v]=s[z-1]:e[v]._render=f,e[v].ty==="fl"||e[v].ty==="st"||e[v].ty==="gf"||e[v].ty==="gs"||e[v].ty==="no")z?r[v].style.closed=!1:r[v]=this.createStyleElement(e[v],d),e[v]._render&&r[v].style.pElem.parentNode!==n&&n.appendChild(r[v].style.pElem),E.push(r[v].style);else if(e[v].ty==="gr"){if(!z)r[v]=this.createGroupElement(e[v]);else for(B=r[v].it.length,L=0;L<B;L+=1)r[v].prevViewData[L]=r[v].it[L];this.searchShapes(e[v].it,r[v].it,r[v].prevViewData,r[v].gr,d+1,x,f),e[v]._render&&r[v].gr.parentNode!==n&&n.appendChild(r[v].gr)}else e[v].ty==="tr"?(z||(r[v]=this.createTransformElement(e[v],n)),P=r[v].transform,x.push(P)):e[v].ty==="sh"||e[v].ty==="rc"||e[v].ty==="el"||e[v].ty==="sr"?(z||(r[v]=this.createShapeElement(e[v],x,d)),this.setElementStyles(r[v])):e[v].ty==="tm"||e[v].ty==="rd"||e[v].ty==="ms"||e[v].ty==="pb"||e[v].ty==="zz"||e[v].ty==="op"?(z?(M=r[v],M.closed=!1):(M=li.getModifier(e[v].ty),M.init(this,e[v]),r[v]=M,this.shapeModifiers.push(M)),R.push(M)):e[v].ty==="rp"&&(z?(M=r[v],M.closed=!0):(M=li.getModifier(e[v].ty),r[v]=M,M.init(this,e,v,r),this.shapeModifiers.push(M),f=!1),R.push(M));this.addProcessedElement(e[v],v+1)}for(I=E.length,v=0;v<I;v+=1)E[v].closed=!0;for(I=R.length,v=0;v<I;v+=1)R[v].closed=!0},Gt.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Gt.prototype.renderShape=function(){var e,r=this.animatedContents.length,s;for(e=0;e<r;e+=1)s=this.animatedContents[e],(this._isFirstFrame||s.element._isAnimated)&&s.data!==!0&&s.fn(s.data,s.element,this._isFirstFrame)},Gt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function jl(e,r,s,n,d,c){this.o=e,this.sw=r,this.sc=s,this.fc=n,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!s,fc:!!n,m:!0,p:!0}}jl.prototype.update=function(e,r,s,n,d,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var f=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,f=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,f=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,f=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,f=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,f=!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,f=!0),f};function ve(e,r){this._frameId=o,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}ve.prototype.defaultBoxWidth=[0,0],ve.prototype.copyData=function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},ve.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},ve.prototype.searchProperty=function(){return this.searchKeyframes()},ve.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ve.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},ve.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,d=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(n=0;n<d;n+=1)s!==this.keysIndex?c=this.effectsSequence[n](c,c.t):c=this.effectsSequence[n](this.currentData,c.t);r!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},ve.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,r=this.elem.comp.renderedFrame,s=0,n=e.length;s<=n-1&&!(s===n-1||e[s+1].t>r);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s},ve.prototype.buildFinalText=function(e){for(var r=[],s=0,n=e.length,d,c,f=!1,x=!1,v="";s<n;)f=x,x=!1,d=e.charCodeAt(s),v=e.charAt(s),Fi.isCombinedCharacter(d)?f=!0:d>=55296&&d<=56319?Fi.isRegionalFlag(e,s)?v=e.substr(s,14):(c=e.charCodeAt(s+1),c>=56320&&c<=57343&&(Fi.isModifier(d,c)?(v=e.substr(s,2),f=!0):Fi.isFlagEmoji(e.substr(s,4))?v=e.substr(s,4):v=e.substr(s,2))):d>56319?(c=e.charCodeAt(s+1),Fi.isVariationSelector(d)&&(f=!0)):Fi.isZeroWidthJoiner(d)&&(f=!0,x=!0),f?(r[r.length-1]+=v,f=!1):r.push(v),s+=v.length;return r},ve.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,s=this.data,n=[],d,c,f,x=0,v,I=s.m.g,L=0,B=0,E=0,R=[],P=0,M=0,z,w,_=r.getFontByName(e.f),y,A=0,k=$h(_);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var D=e.tr/1e3*e.finalSize,V;if(e.sz)for(var H=!0,Z=e.sz[0],ft=e.sz[1],ht,et;H;){et=this.buildFinalText(e.t),ht=0,P=0,c=et.length,D=e.tr/1e3*e.finalSize;var yt=-1;for(d=0;d<c;d+=1)V=et[d].charCodeAt(0),f=!1,et[d]===" "?yt=d:(V===13||V===3)&&(P=0,f=!0,ht+=e.finalLineHeight||e.finalSize*1.2),r.chars?(y=r.getCharData(et[d],_.fStyle,_.fFamily),A=f?0:y.w*e.finalSize/100):A=r.measureText(et[d],e.f,e.finalSize),P+A>Z&&et[d]!==" "?(yt===-1?c+=1:d=yt,ht+=e.finalLineHeight||e.finalSize*1.2,et.splice(d,yt===d?1:0,"\r"),yt=-1,P=0):(P+=A,P+=D);ht+=_.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ft<ht?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=et,c=e.finalText.length,H=!1)}P=-D,A=0;var lt=0,X;for(d=0;d<c;d+=1)if(f=!1,X=e.finalText[d],V=X.charCodeAt(0),V===13||V===3?(lt=0,R.push(P),M=P>M?P:M,P=-2*D,v="",f=!0,E+=1):v=X,r.chars?(y=r.getCharData(X,_.fStyle,r.getFontByName(e.f).fFamily),A=f?0:y.w*e.finalSize/100):A=r.measureText(v,e.f,e.finalSize),X===" "?lt+=A+D:(P+=A+D+lt,lt=0),n.push({l:A,an:A,add:L,n:f,anIndexes:[],val:v,line:E,animatorJustifyOffset:0}),I==2){if(L+=A,v===""||v===" "||d===c-1){for((v===""||v===" ")&&(L-=A);B<=d;)n[B].an=L,n[B].ind=x,n[B].extra=A,B+=1;x+=1,L=0}}else if(I==3){if(L+=A,v===""||d===c-1){for(v===""&&(L-=A);B<=d;)n[B].an=L,n[B].ind=x,n[B].extra=A,B+=1;L=0,x+=1}}else n[x].ind=x,n[x].extra=0,x+=1;if(e.l=n,M=P>M?P:M,R.push(P),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=M,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=R;var S=s.a,O,u;w=S.length;var b,U,F=[];for(z=0;z<w;z+=1){for(O=S[z],O.a.sc&&(e.strokeColorAnim=!0),O.a.sw&&(e.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(e.fillColorAnim=!0),U=0,b=O.s.b,d=0;d<c;d+=1)u=n[d],u.anIndexes[z]=U,(b==1&&u.val!==""||b==2&&u.val!==""&&u.val!==" "||b==3&&(u.n||u.val==" "||d==c-1)||b==4&&(u.n||d==c-1))&&(O.s.rn===1&&F.push(U),U+=1);s.a[z].s.totalChars=U;var at=-1,mt;if(O.s.rn===1)for(d=0;d<c;d+=1)u=n[d],at!=u.anIndexes[z]&&(at=u.anIndexes[z],mt=F.splice(Math.floor(Math.random()*F.length),1)[0]),u.anIndexes[z]=mt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=_.ascent*e.finalSize/100},ve.prototype.updateDocumentData=function(e,r){r=r===void 0?this.keysIndex:r;var s=this.copyData({},this.data.d.k[r].s);s=this.copyData(s,e),this.data.d.k[r].s=s,this.recalculate(r),this.setCurrentData(s),this.elem.addDynamicProperty(this)},ve.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},ve.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},ve.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var _g=function(){var e=Math.max,r=Math.min,s=Math.floor;function n(c,f){this._currentTextLength=-1,this.k=!1,this.data=f,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=it.getProp(c,f.s||{k:0},0,0,this),"e"in f?this.e=it.getProp(c,f.e,0,0,this):this.e={v:100},this.o=it.getProp(c,f.o||{k:0},0,0,this),this.xe=it.getProp(c,f.xe||{k:0},0,0,this),this.ne=it.getProp(c,f.ne||{k:0},0,0,this),this.sm=it.getProp(c,f.sm||{k:100},0,0,this),this.a=it.getProp(c,f.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(f){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,v=0,I=1,L=1;this.ne.v>0?x=this.ne.v/100:v=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:L=1+this.xe.v/100;var B=Is.getBezierEasing(x,v,I,L).get,E=0,R=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===R?E=f>=P?1:0:E=e(0,r(.5/(P-R)+(f-R)/(P-R),1)),E=B(E);else if(M===3)P===R?E=f>=P?0:1:E=1-e(0,r(.5/(P-R)+(f-R)/(P-R),1)),E=B(E);else if(M===4)P===R?E=0:(E=e(0,r(.5/(P-R)+(f-R)/(P-R),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===R)E=0;else{var z=P-R;f=r(e(0,f+.5-R),P-R);var w=-z/2+f,_=z/2;E=Math.sqrt(1-w*w/(_*_))}E=B(E)}else M===6?(P===R?E=0:(f=r(e(0,f+.5-R),P-R),E=(1+Math.cos(Math.PI+Math.PI*2*f/(P-R)))/2),E=B(E)):(f>=s(R)&&(f-R<0?E=e(0,r(r(P,1)-(R-f),1)):E=e(0,r(P-f,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(f){this.iterateDynamicProperties(),this._mdf=f||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,f&&this.data.r===2&&(this.e.v=this._currentTextLength);var x=this.data.r===2?1:100/this.data.totalChars,v=this.o.v/x,I=this.s.v/x+v,L=this.e.v/x+v;if(I>L){var B=I;I=L,L=B}this.finalS=I,this.finalE=L}},$([oe],n);function d(c,f,x){return new n(c,f,x)}return{getTextSelectorProp:d}}();function Ig(e,r,s){var n={propType:!1},d=it.getProp,c=r.a;this.a={r:c.r?d(e,c.r,0,It,s):n,rx:c.rx?d(e,c.rx,0,It,s):n,ry:c.ry?d(e,c.ry,0,It,s):n,sk:c.sk?d(e,c.sk,0,It,s):n,sa:c.sa?d(e,c.sa,0,It,s):n,s:c.s?d(e,c.s,1,.01,s):n,a:c.a?d(e,c.a,1,0,s):n,o:c.o?d(e,c.o,0,.01,s):n,p:c.p?d(e,c.p,1,0,s):n,sw:c.sw?d(e,c.sw,0,0,s):n,sc:c.sc?d(e,c.sc,1,0,s):n,fc:c.fc?d(e,c.fc,1,0,s):n,fh:c.fh?d(e,c.fh,0,0,s):n,fs:c.fs?d(e,c.fs,0,.01,s):n,fb:c.fb?d(e,c.fb,0,.01,s):n,t:c.t?d(e,c.t,0,0,s):n},this.s=_g.getTextSelectorProp(e,r.s,s),this.s.t=r.s.t}function zi(e,r,s){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=s,this._animatorsData=rt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}zi.prototype.searchProperties=function(){var e,r=this._textData.a.length,s,n=it.getProp;for(e=0;e<r;e+=1)s=this._textData.a[e],this._animatorsData[e]=new Ig(this._elem,s,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},zi.prototype.getMeasures=function(e,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var s=this._moreOptions.alignment.v,n=this._animatorsData,d=this._textData,c=this.mHelper,f=this._renderType,x=this.renderedLetters.length,v,I,L,B,E=e.l,R,P,M,z,w,_,y,A,k,D,V,H,Z,ft,ht;if(this._hasMaskedPath){if(ht=this._pathData.m,!this._pathData.n||this._pathData._mdf){var et=ht.v;this._pathData.r.v&&(et=et.reverse()),R={tLength:0,segments:[]},B=et._length-1;var yt;for(H=0,L=0;L<B;L+=1)yt=yr.buildBezierData(et.v[L],et.v[L+1],[et.o[L][0]-et.v[L][0],et.o[L][1]-et.v[L][1]],[et.i[L+1][0]-et.v[L+1][0],et.i[L+1][1]-et.v[L+1][1]]),R.tLength+=yt.segmentLength,R.segments.push(yt),H+=yt.segmentLength;L=B,ht.v.c&&(yt=yr.buildBezierData(et.v[L],et.v[0],[et.o[L][0]-et.v[L][0],et.o[L][1]-et.v[L][1]],[et.i[0][0]-et.v[0][0],et.i[0][1]-et.v[0][1]]),R.tLength+=yt.segmentLength,R.segments.push(yt),H+=yt.segmentLength),this._pathData.pi=R}if(R=this._pathData.pi,P=this._pathData.f.v,y=0,_=1,z=0,w=!0,D=R.segments,P<0&&ht.v.c)for(R.tLength<Math.abs(P)&&(P=-Math.abs(P)%R.tLength),y=D.length-1,k=D[y].points,_=k.length-1;P<0;)P+=k[_].partialLength,_-=1,_<0&&(y-=1,k=D[y].points,_=k.length-1);k=D[y].points,A=k[_-1],M=k[_],V=M.partialLength}B=E.length,v=0,I=0;var lt=e.finalSize*1.2*.714,X=!0,S,O,u,b,U;b=n.length;var F,at=-1,mt,vt,wt,Nt=P,qt=y,Ce=_,Tr=-1,we,se,Fe,Mt,ct,Dr,ui,Fr,xr="",$r=this.defaultPropsArray,zr;if(e.j===2||e.j===1){var Ne=0,fi=0,vi=e.j===2?-.5:-1,lr=0,gi=!0;for(L=0;L<B;L+=1)if(E[L].n){for(Ne&&(Ne+=fi);lr<L;)E[lr].animatorJustifyOffset=Ne,lr+=1;Ne=0,gi=!0}else{for(u=0;u<b;u+=1)S=n[u].a,S.t.propType&&(gi&&e.j===2&&(fi+=S.t.v*vi),O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?Ne+=S.t.v*F[0]*vi:Ne+=S.t.v*F*vi);gi=!1}for(Ne&&(Ne+=fi);lr<L;)E[lr].animatorJustifyOffset=Ne,lr+=1}for(L=0;L<B;L+=1){if(c.reset(),we=1,E[L].n)v=0,I+=e.yOffset,I+=X?1:0,P=Nt,X=!1,this._hasMaskedPath&&(y=qt,_=Ce,k=D[y].points,A=k[_-1],M=k[_],V=M.partialLength,z=0),xr="",Fr="",Dr="",zr="",$r=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Tr!==E[L].line){switch(e.j){case 1:P+=H-e.lineWidths[E[L].line];break;case 2:P+=(H-e.lineWidths[E[L].line])/2;break;default:break}Tr=E[L].line}at!==E[L].ind&&(E[at]&&(P+=E[at].extra),P+=E[L].an/2,at=E[L].ind),P+=s[0]*E[L].an*.005;var cr=0;for(u=0;u<b;u+=1)S=n[u].a,S.p.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?cr+=S.p.v[0]*F[0]:cr+=S.p.v[0]*F),S.a.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?cr+=S.a.v[0]*F[0]:cr+=S.a.v[0]*F);for(w=!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)*at/(B-1),P+=this._pathData.f.v);w;)z+V>=P+cr||!k?(Z=(P+cr-z)/M.partialLength,vt=A.point[0]+(M.point[0]-A.point[0])*Z,wt=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-s[0]*E[L].an*.005,-(s[1]*lt)*.01),w=!1):k&&(z+=M.partialLength,_+=1,_>=k.length&&(_=0,y+=1,D[y]?k=D[y].points:ht.v.c?(_=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[_],V=M.partialLength));mt=E[L].an/2-E[L].add,c.translate(-mt,0,0)}else mt=E[L].an/2-E[L].add,c.translate(-mt,0,0),c.translate(-s[0]*E[L].an*.005,-s[1]*lt*.01,0);for(u=0;u<b;u+=1)S=n[u].a,S.t.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),(v!==0||e.j!==0)&&(this._hasMaskedPath?F.length?P+=S.t.v*F[0]:P+=S.t.v*F:F.length?v+=S.t.v*F[0]:v+=S.t.v*F));for(e.strokeWidthAnim&&(Fe=e.sw||0),e.strokeColorAnim&&(e.sc?se=[e.sc[0],e.sc[1],e.sc[2]]:se=[0,0,0]),e.fillColorAnim&&e.fc&&(Mt=[e.fc[0],e.fc[1],e.fc[2]]),u=0;u<b;u+=1)S=n[u].a,S.a.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?c.translate(-S.a.v[0]*F[0],-S.a.v[1]*F[1],S.a.v[2]*F[2]):c.translate(-S.a.v[0]*F,-S.a.v[1]*F,S.a.v[2]*F));for(u=0;u<b;u+=1)S=n[u].a,S.s.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?c.scale(1+(S.s.v[0]-1)*F[0],1+(S.s.v[1]-1)*F[1],1):c.scale(1+(S.s.v[0]-1)*F,1+(S.s.v[1]-1)*F,1));for(u=0;u<b;u+=1){if(S=n[u].a,O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),S.sk.propType&&(F.length?c.skewFromAxis(-S.sk.v*F[0],S.sa.v*F[1]):c.skewFromAxis(-S.sk.v*F,S.sa.v*F)),S.r.propType&&(F.length?c.rotateZ(-S.r.v*F[2]):c.rotateZ(-S.r.v*F)),S.ry.propType&&(F.length?c.rotateY(S.ry.v*F[1]):c.rotateY(S.ry.v*F)),S.rx.propType&&(F.length?c.rotateX(S.rx.v*F[0]):c.rotateX(S.rx.v*F)),S.o.propType&&(F.length?we+=(S.o.v*F[0]-we)*F[0]:we+=(S.o.v*F-we)*F),e.strokeWidthAnim&&S.sw.propType&&(F.length?Fe+=S.sw.v*F[0]:Fe+=S.sw.v*F),e.strokeColorAnim&&S.sc.propType)for(ct=0;ct<3;ct+=1)F.length?se[ct]+=(S.sc.v[ct]-se[ct])*F[0]:se[ct]+=(S.sc.v[ct]-se[ct])*F;if(e.fillColorAnim&&e.fc){if(S.fc.propType)for(ct=0;ct<3;ct+=1)F.length?Mt[ct]+=(S.fc.v[ct]-Mt[ct])*F[0]:Mt[ct]+=(S.fc.v[ct]-Mt[ct])*F;S.fh.propType&&(F.length?Mt=hh(Mt,S.fh.v*F[0]):Mt=hh(Mt,S.fh.v*F)),S.fs.propType&&(F.length?Mt=ch(Mt,S.fs.v*F[0]):Mt=ch(Mt,S.fs.v*F)),S.fb.propType&&(F.length?Mt=dh(Mt,S.fb.v*F[0]):Mt=dh(Mt,S.fb.v*F))}}for(u=0;u<b;u+=1)S=n[u].a,S.p.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,S.p.v[1]*F[0],-S.p.v[2]*F[1]):c.translate(0,S.p.v[1]*F,-S.p.v[2]*F):F.length?c.translate(S.p.v[0]*F[0],S.p.v[1]*F[1],-S.p.v[2]*F[2]):c.translate(S.p.v[0]*F,S.p.v[1]*F,-S.p.v[2]*F));if(e.strokeWidthAnim&&(Dr=Fe<0?0:Fe),e.strokeColorAnim&&(ui="rgb("+Math.round(se[0]*255)+","+Math.round(se[1]*255)+","+Math.round(se[2]*255)+")"),e.fillColorAnim&&e.fc&&(Fr="rgb("+Math.round(Mt[0]*255)+","+Math.round(Mt[1]*255)+","+Math.round(Mt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,s[1]*lt*.01+I,0),this._pathData.p.v){ft=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var Vi=Math.atan(ft)*180/Math.PI;M.point[0]<A.point[0]&&(Vi+=180),c.rotate(-Vi*Math.PI/180)}c.translate(vt,wt,0),P-=s[0]*E[L].an*.005,E[L+1]&&at!==E[L+1].ind&&(P+=E[L].an/2,P+=e.tr*.001*e.finalSize)}else{switch(c.translate(v,I,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(E[L].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[L].line]),0,0);break;case 2:c.translate(E[L].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[L].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(mt,0,0),c.translate(s[0]*E[L].an*.005,s[1]*lt*.01,0),v+=E[L].l+e.tr*.001*e.finalSize}f==="html"?xr=c.toCSS():f==="svg"?xr=c.to2dCSS():$r=[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]],zr=we}x<=L?(U=new jl(zr,Dr,ui,Fr,xr,$r),this.renderedLetters.push(U),x+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[L],this.lettersChangedFlag=U.update(zr,Dr,ui,Fr,xr,$r)||this.lettersChangedFlag)}}},zi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},zi.prototype.mHelper=new de,zi.prototype.defaultPropsArray=[],$([oe],zi);function We(){}We.prototype.initElement=function(e,r,s){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,s),this.textProperty=new ve(this,e.t,this.dynamicProperties),this.textAnimator=new zi(e.t,this.renderType,this),this.initTransform(e,r,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},We.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},We.prototype.createPathShape=function(e,r){var s,n=r.length,d,c="";for(s=0;s<n;s+=1)r[s].ty==="sh"&&(d=r[s].ks.k,c+=Qh(d,d.i.length,!0,e));return c},We.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},We.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},We.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},We.prototype.applyTextPropertiesToMatrix=function(e,r,s,n,d){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s])/2,0,0);break;default:break}r.translate(n,d,0)},We.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},We.prototype.emptyProp=new jl,We.prototype.destroy=function(){},We.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var kg={shapes:[]};function Or(e,r,s){this.textSpans=[],this.renderType="svg",this.initElement(e,r,s)}$([di,Mo,Os,Oo,hi,Ps,We],Or),Or.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},Or.prototype.buildTextContents=function(e){for(var r=0,s=e.length,n=[],d="";r<s;)e[r]==="\r"||e[r]===""?(n.push(d),d=""):d+=e[r],r+=1;return n.push(d),n},Or.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var s=e.shapes[0];if(s.it){var n=s.it[s.it.length-1];n.s&&(n.s.k[0]=r,n.s.k[1]=r)}}return e},Or.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,s=this.textProperty.currentData;this.renderedLetters=rt(s?s.l.length:0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",s.sw)),this.layerElement.setAttribute("font-size",s.finalSize);var n=this.globalData.fontManager.getFontByName(s.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var d=s.fWeight,c=s.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",s.t);var f=s.l||[],x=!!this.globalData.fontManager.chars;r=f.length;var v,I=this.mHelper,L="",B=this.data.singleShape,E=0,R=0,P=!0,M=s.tr*.001*s.finalSize;if(B&&!x&&!s.sz){var z=this.textContainer,w="start";switch(s.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}z.setAttribute("text-anchor",w),z.setAttribute("letter-spacing",M);var _=this.buildTextContents(s.finalText);for(r=_.length,R=s.ps?s.ps[1]+s.ascent:0,e=0;e<r;e+=1)v=this.textSpans[e].span||bt("tspan"),v.textContent=_[e],v.setAttribute("x",0),v.setAttribute("y",R),v.style.display="inherit",z.appendChild(v),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=v,R+=s.finalLineHeight;this.layerElement.appendChild(z)}else{var y=this.textSpans.length,A;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!x||!B||e===0){if(v=y>e?this.textSpans[e].span:bt(x?"g":"text"),y<=e){if(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=v,x){var k=bt("g");v.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=v,this.layerElement.appendChild(v)}v.style.display="inherit"}if(I.reset(),B&&(f[e].n&&(E=-M,R+=s.yOffset,R+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(s,I,f[e].line,E,R),E+=f[e].l||0,E+=M),x){A=this.globalData.fontManager.getCharData(s.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily);var D;if(A.t===1)D=new $s(A.data,this.globalData,this);else{var V=kg;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,s.finalSize)),D=new Gt(V,this.globalData,this)}if(this.textSpans[e].glyph){var H=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(H.layerElement),H.destroy()}this.textSpans[e].glyph=D,D._debug=!0,D.prepareFrame(0),D.renderFrame(),this.textSpans[e].childSpan.appendChild(D.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+s.finalSize/100+","+s.finalSize/100+")")}else B&&v.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),v.textContent=f[e].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&v&&v.setAttribute("d",L)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Or.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Or.prototype.getValue=function(){var e,r=this.textSpans.length,s;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)s=this.textSpans[e].glyph,s&&(s.prepareFrame(this.comp.renderedFrame-this.data.st),s._mdf&&(this._mdf=!0))},Or.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,r,s=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;r=n.length;var d,c,f;for(e=0;e<r;e+=1)n[e].n||(d=s[e],c=this.textSpans[e].span,f=this.textSpans[e].glyph,f&&f.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 ql(e,r,s){this.initElement(e,r,s)}$([Ds],ql),ql.prototype.createContent=function(){var e=bt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function mi(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initFrame(),this.initTransform(e,r,s),this.initHierarchy()}mi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},mi.prototype.renderFrame=function(){},mi.prototype.getBaseElement=function(){return null},mi.prototype.destroy=function(){},mi.prototype.sourceRectAtTime=function(){},mi.prototype.hide=function(){},$([di,Mo,Oo,hi],mi);function Qt(){}$([he],Qt),Qt.prototype.createNull=function(e){return new mi(e,this.globalData,this)},Qt.prototype.createShape=function(e){return new Gt(e,this.globalData,this)},Qt.prototype.createText=function(e){return new Or(e,this.globalData,this)},Qt.prototype.createImage=function(e){return new Ds(e,this.globalData,this)},Qt.prototype.createSolid=function(e){return new ql(e,this.globalData,this)},Qt.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var s=bt("clipPath"),n=bt("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var d=Ie();s.setAttribute("id",d),s.appendChild(n),this.layerElement.setAttribute("clip-path","url("+T()+"#"+d+")"),r.appendChild(s),this.layers=e.layers,this.elements=rt(e.layers.length)},Qt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Qt.prototype.updateContainerSize=function(){},Qt.prototype.findIndexByInd=function(e){var r=0,s=this.layers.length;for(r=0;r<s;r+=1)if(this.layers[r].ind===e)return r;return-1},Qt.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var s=this.createItem(this.layers[e]);if(r[e]=s,Va()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(s),s.initExpressions()),this.appendElementInPos(s,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(s);else{var d=r[n],c=d.getMatte(this.layers[e].tt);s.setMatte(c)}}}},Qt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,s=this.elements.length;r<s;){if(this.elements[r]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,d=this.elements[n],c=d.getMatte(this.layers[r].tt);e.setMatte(c);break}r+=1}}},Qt.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,s=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=s-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Qt.prototype.appendElementInPos=function(e,r){var s=e.getBaseElement();if(s){for(var n=0,d;n<r;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(d=this.elements[n].getBaseElement()),n+=1;d?this.layerElement.insertBefore(s,d):this.layerElement.appendChild(s)}},Qt.prototype.hide=function(){this.layerElement.style.display="none"},Qt.prototype.show=function(){this.layerElement.style.display="block"};function Pr(){}$([di,Mo,Oo,hi,Ps],Pr),Pr.prototype.initElement=function(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initTransform(e,r,s),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},Pr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var s,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&(this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st),this.elements[s]._mdf&&(this._mdf=!0))}},Pr.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Pr.prototype.setElements=function(e){this.elements=e},Pr.prototype.getElements=function(){return this.elements},Pr.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},Pr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function $s(e,r,s){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?rt(this.layers.length):[],this.initElement(e,r,s),this.tm=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}$([Qt,Pr,Os],$s),$s.prototype.createComp=function(e){return new $s(e,this.globalData,this)};function Kl(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var s="";if(r&&r.title){var n=bt("title"),d=Ie();n.setAttribute("id",d),n.textContent=r.title,this.svgElement.appendChild(n),s+=d}if(r&&r.description){var c=bt("desc"),f=Ie();c.setAttribute("id",f),c.textContent=r.description,this.svgElement.appendChild(c),s+=" "+f}s&&this.svgElement.setAttribute("aria-labelledby",s);var x=bt("defs");this.svgElement.appendChild(x);var v=bt("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:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return $([Qt],Kl),Kl.prototype.createComp=function(e){return new $s(e,this.globalData,this)},Fv("svg",Kl),li.registerModifier("tm",nr),li.registerModifier("pb",ks),li.registerModifier("rp",Er),li.registerModifier("rd",Cs),li.registerModifier("zz",Ns),li.registerModifier("op",Ls),Rt})});var an=globalThis,nn=an.ShadowRoot&&(an.ShadyCSS===void 0||an.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zl=Symbol(),tp=new WeakMap,zs=class{constructor(i,t,o){if(this._$cssResult$=!0,o!==Zl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(nn&&i===void 0){let o=t!==void 0&&t.length===1;o&&(i=tp.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),o&&tp.set(t,i))}return i}toString(){return this.cssText}},ep=l=>new zs(typeof l=="string"?l:l+"",void 0,Zl),G=(l,...i)=>{let t=l.length===1?l[0]:i.reduce((o,a,h)=>o+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+l[h+1],l[0]);return new zs(t,l,Zl)},Ql=(l,i)=>{if(nn)l.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let o=document.createElement("style"),a=an.litNonce;a!==void 0&&o.setAttribute("nonce",a),o.textContent=t.cssText,l.appendChild(o)}},ln=nn?l=>l:l=>l instanceof CSSStyleSheet?(i=>{let t="";for(let o of i.cssRules)t+=o.cssText;return ep(t)})(l):l;var{is:Pg,defineProperty:Dg,getOwnPropertyDescriptor:Fg,getOwnPropertyNames:$g,getOwnPropertySymbols:zg,getPrototypeOf:Vg}=Object,bi=globalThis,rp=bi.trustedTypes,Bg=rp?rp.emptyScript:"",Jl=bi.reactiveElementPolyfillSupport,Vs=(l,i)=>l,Bs={toAttribute(l,i){switch(i){case Boolean:l=l?Bg:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,i){let t=l;switch(i){case Boolean:t=l!==null;break;case Number:t=l===null?null:Number(l);break;case Object:case Array:try{t=JSON.parse(l)}catch{t=null}}return t}},cn=(l,i)=>!Pg(l,i),ip={attribute:!0,type:String,converter:Bs,reflect:!1,hasChanged:cn},op,sp;(op=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(sp=bi.litPropertyMetadata)!=null||(bi.litPropertyMetadata=new WeakMap);var Vr=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=ip){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let o=Symbol(),a=this.getPropertyDescriptor(i,o,t);a!==void 0&&Dg(this.prototype,i,a)}}static getPropertyDescriptor(i,t,o){var m;let{get:a,set:h}=(m=Fg(this.prototype,i))!=null?m:{get(){return this[t]},set(T){this[t]=T}};return{get(){return a==null?void 0:a.call(this)},set(T){let N=a==null?void 0:a.call(this);h.call(this,T),this.requestUpdate(i,N,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:ip}static _$Ei(){if(this.hasOwnProperty(Vs("elementProperties")))return;let i=Vg(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Vs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vs("properties"))){let t=this.properties,o=[...$g(t),...zg(t)];for(let a of o)this.createProperty(a,t[a])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[o,a]of t)this.elementProperties.set(o,a)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let a=this._$Eu(t,o);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let o=new Set(i.flat(1/0).reverse());for(let a of o)t.unshift(ln(a))}else i!==void 0&&t.push(ln(i));return t}static _$Eu(i,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o: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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,o;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((o=i.hostConnected)==null||o.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(i.set(o,this[o]),delete this[o]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Ql(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(o=>{var a;return(a=o.hostConnected)==null?void 0:a.call(o)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(i,t,o){this._$AK(i,o)}_$EC(i,t){var h;let o=this.constructor.elementProperties.get(i),a=this.constructor._$Eu(i,o);if(a!==void 0&&o.reflect===!0){let m=(((h=o.converter)==null?void 0:h.toAttribute)!==void 0?o.converter:Bs).toAttribute(t,o.type);this._$Em=i,m==null?this.removeAttribute(a):this.setAttribute(a,m),this._$Em=null}}_$AK(i,t){var h;let o=this.constructor,a=o._$Eh.get(i);if(a!==void 0&&this._$Em!==a){let m=o.getPropertyOptions(a),T=typeof m.converter=="function"?{fromAttribute:m.converter}:((h=m.converter)==null?void 0:h.fromAttribute)!==void 0?m.converter:Bs;this._$Em=a,this[a]=T.fromAttribute(t,m.type),this._$Em=null}}requestUpdate(i,t,o){var a;if(i!==void 0){if(o!=null||(o=this.constructor.getPropertyOptions(i)),!((a=o.hasChanged)!=null?a:cn)(this[i],t))return;this.P(i,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,o){var a;this._$AL.has(i)||this._$AL.set(i,t),o.reflect===!0&&this._$Em!==i&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,T]of this._$Ep)this[m]=T;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[m,T]of h)T.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],T)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(a=this._$EO)==null||a.forEach(h=>{var m;return(m=h.hostUpdate)==null?void 0:m.call(h)}),this.update(t)):this._$EU()}catch(h){throw i=!1,this._$EU(),h}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(o=>{var a;return(a=o.hostUpdated)==null?void 0:a.call(o)}),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(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},ap;Vr.elementStyles=[],Vr.shadowRootOptions={mode:"open"},Vr[Vs("elementProperties")]=new Map,Vr[Vs("finalized")]=new Map,Jl==null||Jl({ReactiveElement:Vr}),((ap=bi.reactiveElementVersions)!=null?ap:bi.reactiveElementVersions=[]).push("2.0.4");var Hs=globalThis,dn=Hs.trustedTypes,np=dn?dn.createPolicy("lit-html",{createHTML:l=>l}):void 0,rc="$lit$",Br=`lit$${Math.random().toFixed(9).slice(2)}$`,ic="?"+Br,Ug=`<${ic}>`,Hi=document,Gs=()=>Hi.createComment(""),Ys=l=>l===null||typeof l!="object"&&typeof l!="function",oc=Array.isArray,up=l=>oc(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",tc=`[
|
3
|
-
\f\r]`,
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),dp=/'/g,hp=/"/g,fp=/^(?:script|style|textarea|title)$/i,sc=l=>(i,...t)=>({_$litType$:l,strings:i,values:t}),C=sc(1),ZT=sc(2),QT=sc(3),Le=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),pp=new WeakMap,Ui=Hi.createTreeWalker(Hi,129);function vp(l,i){if(!oc(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return np!==void 0?np.createHTML(i):i}var gp=(l,i)=>{let t=l.length-1,o=[],a,h=i===2?"<svg>":i===3?"<math>":"",m=Us;for(let T=0;T<t;T++){let N=l[T],$,q,K=-1,nt=0;for(;nt<N.length&&(m.lastIndex=nt,q=m.exec(N),q!==null);)nt=m.lastIndex,m===Us?q[1]==="!--"?m=lp:q[1]!==void 0?m=cp:q[2]!==void 0?(fp.test(q[2])&&(a=RegExp("</"+q[2],"g")),m=Bi):q[3]!==void 0&&(m=Bi):m===Bi?q[0]===">"?(m=a!=null?a:Us,K=-1):q[1]===void 0?K=-2:(K=m.lastIndex-q[2].length,$=q[1],m=q[3]===void 0?Bi:q[3]==='"'?hp:dp):m===hp||m===dp?m=Bi:m===lp||m===cp?m=Us:(m=Bi,a=void 0);let Q=m===Bi&&l[T+1].startsWith("/>")?" ":"";h+=m===Us?N+Ug:K>=0?(o.push($),N.slice(0,K)+rc+N.slice(K)+Br+Q):N+Br+(K===-2?T:Q)}return[vp(l,h+(l[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),o]},Ws=class l{constructor({strings:i,_$litType$:t},o){let a;this.parts=[];let h=0,m=0,T=i.length-1,N=this.parts,[$,q]=gp(i,t);if(this.el=l.createElement($,o),Ui.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(a=Ui.nextNode())!==null&&N.length<T;){if(a.nodeType===1){if(a.hasAttributes())for(let K of a.getAttributeNames())if(K.endsWith(rc)){let nt=q[m++],Q=a.getAttribute(K).split(Br),rt=/([.?@])?(.*)/.exec(nt);N.push({type:1,index:h,name:rt[2],strings:Q,ctor:rt[1]==="."?pn:rt[1]==="?"?mn:rt[1]==="@"?un:Yi}),a.removeAttribute(K)}else K.startsWith(Br)&&(N.push({type:6,index:h}),a.removeAttribute(K));if(fp.test(a.tagName)){let K=a.textContent.split(Br),nt=K.length-1;if(nt>0){a.textContent=dn?dn.emptyScript:"";for(let Q=0;Q<nt;Q++)a.append(K[Q],Gs()),Ui.nextNode(),N.push({type:2,index:++h});a.append(K[nt],Gs())}}}else if(a.nodeType===8)if(a.data===ic)N.push({type:2,index:h});else{let K=-1;for(;(K=a.data.indexOf(Br,K+1))!==-1;)N.push({type:7,index:h}),K+=Br.length-1}h++}}static createElement(i,t){let o=Hi.createElement("template");return o.innerHTML=i,o}};function Gi(l,i,t=l,o){var m,T,N;if(i===Le)return i;let a=o!==void 0?(m=t.o)==null?void 0:m[o]:t.l,h=Ys(i)?void 0:i._$litDirective$;return(a==null?void 0:a.constructor)!==h&&((T=a==null?void 0:a._$AO)==null||T.call(a,!1),h===void 0?a=void 0:(a=new h(l),a._$AT(l,t,o)),o!==void 0?((N=t.o)!=null?N:t.o=[])[o]=a:t.l=a),a!==void 0&&(i=Gi(l,a._$AS(l,i.values),a,o)),i}var hn=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var $;let{el:{content:t},parts:o}=this._$AD,a=(($=i==null?void 0:i.creationScope)!=null?$:Hi).importNode(t,!0);Ui.currentNode=a;let h=Ui.nextNode(),m=0,T=0,N=o[0];for(;N!==void 0;){if(m===N.index){let q;N.type===2?q=new Do(h,h.nextSibling,this,i):N.type===1?q=new N.ctor(h,N.name,N.strings,this,i):N.type===6&&(q=new fn(h,this,i)),this._$AV.push(q),N=o[++T]}m!==(N==null?void 0:N.index)&&(h=Ui.nextNode(),m++)}return Ui.currentNode=Hi,a}p(i){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(i,o,t),t+=o.strings.length-2):o._$AI(i[t])),t++}},Do=class l{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,o,a){var h;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=o,this.options=a,this.v=(h=a==null?void 0:a.isConnected)!=null?h:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=Gi(this,i,t),Ys(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==Le&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):up(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&&Ys(this._$AH)?this._$AA.nextSibling.data=i:this.T(Hi.createTextNode(i)),this._$AH=i}$(i){var h;let{values:t,_$litType$:o}=i,a=typeof o=="number"?this._$AC(i):(o.el===void 0&&(o.el=Ws.createElement(vp(o.h,o.h[0]),this.options)),o);if(((h=this._$AH)==null?void 0:h._$AD)===a)this._$AH.p(t);else{let m=new hn(a,this),T=m.u(this.options);m.p(t),this.T(T),this._$AH=m}}_$AC(i){let t=pp.get(i.strings);return t===void 0&&pp.set(i.strings,t=new Ws(i)),t}k(i){oc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,a=0;for(let h of i)a===t.length?t.push(o=new l(this.O(Gs()),this.O(Gs()),this,this.options)):o=t[a],o._$AI(h),a++;a<t.length&&(this._$AR(o&&o._$AB.nextSibling,a),t.length=a)}_$AR(i=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);i&&i!==this._$AB;){let a=i.nextSibling;i.remove(),i=a}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},Yi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,o,a,h){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=t,this._$AM=a,this.options=h,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=W}_$AI(i,t=this,o,a){let h=this.strings,m=!1;if(h===void 0)i=Gi(this,i,t,0),m=!Ys(i)||i!==this._$AH&&i!==Le,m&&(this._$AH=i);else{let T=i,N,$;for(i=h[0],N=0;N<h.length-1;N++)$=Gi(this,T[o+N],t,N),$===Le&&($=this._$AH[N]),m||(m=!Ys($)||$!==this._$AH[N]),$===W?i=W:i!==W&&(i+=($!=null?$:"")+h[N+1]),this._$AH[N]=$}m&&!a&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},pn=class extends Yi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},mn=class extends Yi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},un=class extends Yi{constructor(i,t,o,a,h){super(i,t,o,a,h),this.type=5}_$AI(i,t=this){var m;if((i=(m=Gi(this,i,t,0))!=null?m:W)===Le)return;let o=this._$AH,a=i===W&&o!==W||i.capture!==o.capture||i.once!==o.once||i.passive!==o.passive,h=i!==W&&(o===W||a);a&&this.element.removeEventListener(this.name,this,o),h&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)==null?void 0:t.host)!=null?o:this.element,i):this._$AH.handleEvent(i)}},fn=class{constructor(i,t,o){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(i){Gi(this,i)}},bp={M:rc,P:Br,A:ic,C:1,L:gp,R:hn,D:up,V:Gi,I:Do,H:Yi,N:mn,U:un,B:pn,F:fn},ec=Hs.litHtmlPolyfillSupport,mp;ec==null||ec(Ws,Do),((mp=Hs.litHtmlVersions)!=null?mp:Hs.litHtmlVersions=[]).push("3.2.0");var yp=(l,i,t)=>{var h,m;let o=(h=t==null?void 0:t.renderBefore)!=null?h:i,a=o._$litPart$;if(a===void 0){let T=(m=t==null?void 0:t.renderBefore)!=null?m:null;o._$litPart$=a=new Do(i.insertBefore(Gs(),T),T,void 0,t!=null?t:{})}return a._$AI(l),a};var yi=class extends Vr{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,o;let i=super.createRenderRoot();return(o=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=yp(t,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 Le}},Ep;yi._$litElement$=!0,yi.finalized=!0,(Ep=globalThis.litElementHydrateSupport)==null||Ep.call(globalThis,{LitElement:yi});var ac=globalThis.litElementPolyfillSupport;ac==null||ac({LitElement:yi});var Tp;((Tp=globalThis.litElementVersions)!=null?Tp:globalThis.litElementVersions=[]).push("4.1.0");var Hg={attribute:!0,type:String,converter:Bs,reflect:!1,hasChanged:cn},Gg=(l=Hg,i,t)=>{let{kind:o,metadata:a}=t,h=globalThis.litPropertyMetadata.get(a);if(h===void 0&&globalThis.litPropertyMetadata.set(a,h=new Map),h.set(t.name,l),o==="accessor"){let{name:m}=t;return{set(T){let N=i.get.call(this);i.set.call(this,T),this.requestUpdate(m,N,l)},init(T){return T!==void 0&&this.P(m,void 0,l),T}}}if(o==="setter"){let{name:m}=t;return function(T){let N=this[m];i.call(this,T),this.requestUpdate(m,N,l)}}throw Error("Unsupported decorator location: "+o)};function g(l){return(i,t)=>typeof t=="object"?Gg(l,i,t):((o,a,h)=>{let m=a.hasOwnProperty(h);return a.constructor.createProperty(h,m?{...o,wrapped:!0}:o),m?Object.getOwnPropertyDescriptor(a,h):void 0})(l,i,t)}function xt(l){return g({...l,state:!0,attribute:!1})}var Ur=(l,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(l,i,t),t);function Hr(l,i){return(t,o,a)=>{let h=m=>{var T,N;return(N=(T=m.renderRoot)==null?void 0:T.querySelector(l))!=null?N:null};if(i){let{get:m,set:T}=typeof o=="object"?t:a!=null?a:(()=>{let N=Symbol();return{get(){return this[N]},set($){this[N]=$}}})();return Ur(t,o,{get(){let N=m.call(this);return N===void 0&&(N=h(this),(N!==null||this.hasUpdated)&&T.call(this,N)),N}})}return Ur(t,o,{get(){return h(this)}})}}function Lt(l){return(i,t)=>{let{slot:o,selector:a}=l!=null?l:{},h="slot"+(o?`[name=${o}]`:":not([name])");return Ur(i,t,{get(){var N,$;let m=(N=this.renderRoot)==null?void 0:N.querySelector(h),T=($=m==null?void 0:m.assignedElements(l))!=null?$:[];return a===void 0?T:T.filter(q=>q.matches(a))}})}}function vn(l){return(i,t)=>{let{slot:o}=l!=null?l:{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ur(i,t,{get(){var m,T;let h=(m=this.renderRoot)==null?void 0:m.querySelector(a);return(T=h==null?void 0:h.assignedNodes(l))!=null?T:[]}})}}var Yg={PREFIX:"mdc",SEPARATOR:"-"},Wg={NAMESPACE:Yg},nc=Wg;var jg=l=>[nc.NAMESPACE.PREFIX,l].join(nc.NAMESPACE.SEPARATOR),Y={constructTagName:jg};var tt={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var Gx=Y.constructTagName("buttonsimple"),Wi={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},Fo={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},js={SIZE:Wi[32],TYPE:Fo.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Gr=Y.constructTagName("button"),Ot={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},qs={40:40,32:32,28:28,24:24},je={64:64,52:52,20:20,...qs},ji={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},$o={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Re={VARIANT:Ot.PRIMARY,SIZE:qs[32],COLOR:ji.DEFAULT,TYPE_INTERNAL:$o.ICON,TYPE:Fo.BUTTON,INVERTED:!1};var gn=l=>{class i extends l{constructor(){super(...arguments);this.variant=Re.VARIANT;this.color=Re.COLOR;this.typeInternal=Re.TYPE_INTERNAL}setVariant(a){this.setAttribute("variant",Object.values(Ot).includes(a)?a:Re.VARIANT)}setColor(a){!Object.values(ji).includes(a)||this.variant===Ot.TERTIARY?this.setAttribute("color",`${Re.COLOR}`):this.setAttribute("color",a)}setSize(a){let m=this.typeInternal===$o.ICON?Object.values(je).includes(a)&&!(a===je[20]&&this.variant!==Ot.TERTIARY):Object.values(qs).includes(a);this.setAttribute("size",m?`${a}`:`${Re.SIZE}`)}inferButtonType(){var $,q,K,nt,Q,rt;let a=(q=($=this.shadowRoot)==null?void 0:$.querySelector("slot:not([name])"))==null?void 0:q.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,h=(nt=(K=this.shadowRoot)==null?void 0:K.querySelector('slot[name="prefix"]'))==null?void 0:nt.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,m=this.prefixIcon||h&&h>0,T=(rt=(Q=this.shadowRoot)==null?void 0:Q.querySelector('slot[name="postfix"]'))==null?void 0:rt.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,N=this.postfixIcon||T&&T>0;a&&(m||N)?(this.typeInternal=$o.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!a&&(m||N)?(this.typeInternal=$o.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=$o.PILL,this.setAttribute("data-btn-type","pill"))}}return p([g({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),p([g({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),p([g({type:String})],i.prototype,"variant",2),p([g({type:String})],i.prototype,"color",2),p([xt()],i.prototype,"typeInternal",2),i};var xp=G`
|
1
|
+
"use strict";(()=>{var Rg=Object.create;var Zl=Object.defineProperty;var ep=Object.getOwnPropertyDescriptor;var Mg=Object.getOwnPropertyNames;var Og=Object.getPrototypeOf,Pg=Object.prototype.hasOwnProperty;var Dg=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var Fg=(l,i,t,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of Mg(i))!Pg.call(l,a)&&a!==t&&Zl(l,a,{get:()=>i[a],enumerable:!(o=ep(i,a))||o.enumerable});return l};var $g=(l,i,t)=>(t=l!=null?Rg(Og(l)):{},Fg(i||!l||!l.__esModule?Zl(t,"default",{value:l,enumerable:!0}):t,l));var p=(l,i,t,o)=>{for(var a=o>1?void 0:o?ep(i,t):i,h=l.length-1,m;h>=0;h--)(m=l[h])&&(a=(o?m(i,t,a):m(a))||a);return o&&a&&Zl(i,t,a),a};var Qp=Dg((ra,On)=>{typeof navigator<"u"&&function(l,i){typeof ra=="object"&&typeof On<"u"?On.exports=i():typeof define=="function"&&define.amd?define(i):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=i())}(ra,function(){"use strict";var l="http://www.w3.org/2000/svg",i="",t=!1,o=-999999,a=function(r){t=!!r},h=function(){return t},m=function(r){i=r},T=function(){return i};function N(e){return document.createElement(e)}function $(e,r){var s,n=e.length,d;for(s=0;s<n;s+=1){d=e[s].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function q(e,r){return Object.getOwnPropertyDescriptor(e,r)}function K(e){function r(){}return r.prototype=e,r}var nt=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(s){this.audios.push(s)},pause:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].pause()},resume:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].resume()},setRate:function(s){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].setRate(s)},createAudio:function(s){return this.audioFactory?this.audioFactory(s):window.Howl?new window.Howl({src:[s]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(s){this.audioFactory=s},setVolume:function(s){this._volume=s,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),Q=function(){function e(s,n){var d=0,c=[],v;switch(s){case"int16":case"uint8c":v=1;break;default:v=1.1;break}for(d=0;d<n;d+=1)c.push(v);return c}function r(s,n){return s==="float32"?new Float32Array(n):s==="int16"?new Int16Array(n):s==="uint8c"?new Uint8ClampedArray(n):e(s,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function rt(e){return Array.apply(null,{length:e})}function dt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(s){return typeof s}:dt=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},dt(e)}var ut=!0,Tt=null,St=null,Ct="",Gt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ft=!1,Vt=Math.pow,jt=Math.sqrt,oe=Math.floor,sr=Math.max,Ie=Math.min,Be={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r,s=e.length;for(r=0;r<s;r+=1)Be[e[r]]=Math[e[r]]})();function ar(){return{}}Be.random=Math.random,Be.abs=function(e){var r=dt(e);if(r==="object"&&e.length){var s=rt(e.length),n,d=e.length;for(n=0;n<d;n+=1)s[n]=Math.abs(e[n]);return s}return Math.abs(e)};var nr=150,It=Math.PI/180,ce=.5519;function Ue(e){Ft=!!e}function He(e){return Ft?Math.round(e):e}function Ge(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function Ye(e,r,s,n){this.type=e,this.currentTime=r,this.totalTime=s,this.direction=n<0?-1:1}function Va(e,r){this.type=e,this.direction=r<0?-1:1}function lh(e,r,s,n){this.type=e,this.currentLoop=s,this.totalLoops=r,this.direction=n<0?-1:1}function ch(e,r,s){this.type=e,this.firstFrame=r,this.totalFrames=s}function dh(e,r){this.type=e,this.target=r}function Rv(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function Mv(e){this.type="configError",this.nativeError=e}function jT(e,r){this.type=e,this.nativeError=r}var ke=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function $l(e,r,s){var n,d,c,v,x,g,I,L;switch(v=Math.floor(e*6),x=e*6-v,g=s*(1-r),I=s*(1-x*r),L=s*(1-(1-x)*r),v%6){case 0:n=s,d=L,c=g;break;case 1:n=I,d=s,c=g;break;case 2:n=g,d=s,c=L;break;case 3:n=g,d=I,c=s;break;case 4:n=L,d=g,c=s;break;case 5:n=s,d=g,c=I;break;default:break}return[n,d,c]}function zl(e,r,s){var n=Math.max(e,r,s),d=Math.min(e,r,s),c=n-d,v,x=n===0?0:c/n,g=n/255;switch(n){case d:v=0;break;case e:v=r-s+c*(r<s?6:0),v/=6*c;break;case r:v=s-e+c*2,v/=6*c;break;case s:v=e-r+c*4,v/=6*c;break;default:break}return[v,x,g]}function hh(e,r){var s=zl(e[0]*255,e[1]*255,e[2]*255);return s[1]+=r,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),$l(s[0],s[1],s[2])}function ph(e,r){var s=zl(e[0]*255,e[1]*255,e[2]*255);return s[2]+=r,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),$l(s[0],s[1],s[2])}function mh(e,r){var s=zl(e[0]*255,e[1]*255,e[2]*255);return s[0]+=r/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),$l(s[0],s[1],s[2])}var qT=function(){var e=[],r,s;for(r=0;r<256;r+=1)s=r.toString(16),e[r]=s.length===1?"0"+s:s;return function(n,d,c){return n<0&&(n=0),d<0&&(d=0),c<0&&(c=0),"#"+e[n]+e[d]+e[c]}}(),Ov=function(r){ut=!!r},Pv=function(){return ut},Dv=function(r){Tt=r},Ba=function(){return Tt},KT=function(r){St=r},uh=function(){return St},Ua=function(r){nr=r},As=function(){return nr},Fv=function(r){Ct=r},XT=function(){return Ct};function bt(e){return document.createElementNS(l,e)}function Ha(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ha=function(s){return typeof s}:Ha=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ha(e)}var Ss=function(){var e=1,r=[],s,n,d={onmessage:function(){},postMessage:function(R){s({data:R})}},c={postMessage:function(R){d.onmessage({data:R})}};function v(E){if(window.Worker&&window.Blob&&h()){var R=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(R);return new Worker(P)}return s=E,d}function x(){n||(n=v(function(R){function P(){function z(X,S){var O,u,b=X.length,U,F,at,mt;for(u=0;u<b;u+=1)if(O=X[u],"ks"in O&&!O.completed){if(O.completed=!0,O.hasMask){var vt=O.masksProperties;for(F=vt.length,U=0;U<F;U+=1)if(vt[U].pt.k.i)k(vt[U].pt.k);else for(mt=vt[U].pt.k.length,at=0;at<mt;at+=1)vt[U].pt.k[at].s&&k(vt[U].pt.k[at].s[0]),vt[U].pt.k[at].e&&k(vt[U].pt.k[at].e[0])}O.ty===0?(O.layers=y(O.refId,S),z(O.layers,S)):O.ty===4?A(O.shapes):O.ty===5&&yt(O)}}function w(X,S){if(X){var O=0,u=X.length;for(O=0;O<u;O+=1)X[O].t===1&&(X[O].data.layers=y(X[O].data.refId,S),z(X[O].data.layers,S))}}function _(X,S){for(var O=0,u=S.length;O<u;){if(S[O].id===X)return S[O];O+=1}return null}function y(X,S){var O=_(X,S);return O?O.layers.__used?JSON.parse(JSON.stringify(O.layers)):(O.layers.__used=!0,O.layers):null}function A(X){var S,O=X.length,u,b;for(S=O-1;S>=0;S-=1)if(X[S].ty==="sh")if(X[S].ks.k.i)k(X[S].ks.k);else for(b=X[S].ks.k.length,u=0;u<b;u+=1)X[S].ks.k[u].s&&k(X[S].ks.k[u].s[0]),X[S].ks.k[u].e&&k(X[S].ks.k[u].e[0]);else X[S].ty==="gr"&&A(X[S].it)}function k(X){var S,O=X.i.length;for(S=0;S<O;S+=1)X.i[S][0]+=X.v[S][0],X.i[S][1]+=X.v[S][1],X.o[S][0]+=X.v[S][0],X.o[S][1]+=X.v[S][1]}function D(X,S){var O=S?S.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 S(u){var b=u.t.d;u.t.d={k:[{s:b,t:0}]}}function O(u){var b,U=u.length;for(b=0;b<U;b+=1)u[b].ty===5&&S(u[b])}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}(),H=function(){var X=[4,7,99];return function(S){if(S.chars&&!D(X,S.v)){var O,u=S.chars.length;for(O=0;O<u;O+=1){var b=S.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}},S.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 S(u){var b=u.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(u){var b,U=u.length;for(b=0;b<U;b+=1)u[b].ty===5&&S(u[b])}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}(),ft=function(){var X=[4,1,9];function S(u){var b,U=u.length,F,at;for(b=0;b<U;b+=1)if(u[b].ty==="gr")S(u[b].it);else if(u[b].ty==="fl"||u[b].ty==="st")if(u[b].c.k&&u[b].c.k[0].i)for(at=u[b].c.k.length,F=0;F<at;F+=1)u[b].c.k[F].s&&(u[b].c.k[F].s[0]/=255,u[b].c.k[F].s[1]/=255,u[b].c.k[F].s[2]/=255,u[b].c.k[F].s[3]/=255),u[b].c.k[F].e&&(u[b].c.k[F].e[0]/=255,u[b].c.k[F].e[1]/=255,u[b].c.k[F].e[2]/=255,u[b].c.k[F].e[3]/=255);else u[b].c.k[0]/=255,u[b].c.k[1]/=255,u[b].c.k[2]/=255,u[b].c.k[3]/=255}function O(u){var b,U=u.length;for(b=0;b<U;b+=1)u[b].ty===4&&S(u[b].shapes)}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}(),ht=function(){var X=[4,4,18];function S(u){var b,U=u.length,F,at;for(b=U-1;b>=0;b-=1)if(u[b].ty==="sh")if(u[b].ks.k.i)u[b].ks.k.c=u[b].closed;else for(at=u[b].ks.k.length,F=0;F<at;F+=1)u[b].ks.k[F].s&&(u[b].ks.k[F].s[0].c=u[b].closed),u[b].ks.k[F].e&&(u[b].ks.k[F].e[0].c=u[b].closed);else u[b].ty==="gr"&&S(u[b].it)}function O(u){var b,U,F=u.length,at,mt,vt,wt;for(U=0;U<F;U+=1){if(b=u[U],b.hasMask){var Nt=b.masksProperties;for(mt=Nt.length,at=0;at<mt;at+=1)if(Nt[at].pt.k.i)Nt[at].pt.k.c=Nt[at].cl;else for(wt=Nt[at].pt.k.length,vt=0;vt<wt;vt+=1)Nt[at].pt.k[vt].s&&(Nt[at].pt.k[vt].s[0].c=Nt[at].cl),Nt[at].pt.k[vt].e&&(Nt[at].pt.k[vt].e[0].c=Nt[at].cl)}b.ty===4&&S(b.shapes)}}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}();function et(X){X.__complete||(ft(X),V(X),H(X),Z(X),ht(X),z(X.layers,X.assets),w(X.chars,X.assets),X.__complete=!0)}function yt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=et,lt.checkColors=ft,lt.checkChars=H,lt.checkPathProperties=Z,lt.checkShapes=ht,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(_){var y=_.getResponseHeader("content-type");return y&&_.responseType==="json"&&y.indexOf("json")!==-1||_.response&&Ha(_.response)==="object"?_.response:_.response&&typeof _.response=="string"?JSON.parse(_.response):_.responseText?JSON.parse(_.responseText):null}function w(_,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(""),_,!0)}catch{V.open(["G","E","T"].join(""),y+"/"+_,!0)}V.send()}return{load:w}}()),R.data.type==="loadAnimation")c.assetLoader.load(R.data.path,R.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:R.data.id,payload:z,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})});else if(R.data.type==="complete"){var M=R.data.animation;c.dataManager.completeData(M),c.postMessage({id:R.data.id,payload:M,status:"success"})}else R.data.type==="loadData"&&c.assetLoader.load(R.data.path,R.data.fullPath,function(z){c.postMessage({id:R.data.id,payload:z,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})})}),n.onmessage=function(E){var R=E.data,P=R.id,M=r[P];r[P]=null,R.status==="success"?M.onComplete(R.payload):M.onError&&M.onError()})}function g(E,R){e+=1;var P="processId_"+e;return r[P]={onComplete:E,onError:R},P}function I(E,R,P){x();var M=g(R,P);n.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function L(E,R,P){x();var M=g(R,P);n.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,R,P){x();var M=g(R,P);n.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:L,completeAnimation:B}}(),$v=function(){var e=function(){var w=N("canvas");w.width=1,w.height=1;var _=w.getContext("2d");return _.fillStyle="rgba(0,0,0,0)",_.fillRect(0,0,1,1),w}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(w,_,y){var A="";if(w.e)A=w.p;else if(_){var k=w.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),A=_+k}else A=y,A+=w.u?w.u:"",A+=w.p;return A}function d(w){var _=0,y=setInterval((function(){var A=w.getBBox();(A.width||_>500)&&(this._imageLoaded(),clearInterval(y)),_+=1}).bind(this),50)}function c(w){var _=n(w,this.assetsPath,this.path),y=bt("image");Gt?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",_),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var A={img:y,assetData:w};return A}function v(w){var _=n(w,this.assetsPath,this.path),y=N("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.src=_;var A={img:y,assetData:w};return A}function x(w){var _={assetData:w},y=n(w,this.assetsPath,this.path);return Ss.loadData(y,(function(A){_.img=A,this._footageLoaded()}).bind(this),(function(){_.img={},this._footageLoaded()}).bind(this)),_}function g(w,_){this.imagesLoadedCb=_;var y,A=w.length;for(y=0;y<A;y+=1)w[y].layers||(!w[y].t||w[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(w[y]))):w[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(w[y]))))}function I(w){this.path=w||""}function L(w){this.assetsPath=w||""}function B(w){for(var _=0,y=this.images.length;_<y;){if(this.images[_].assetData===w)return this.images[_].img;_+=1}return null}function E(){this.imagesLoadedCb=null,this.images.length=0}function R(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function M(w,_){w==="svg"?(this._elementHelper=_,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function z(){this._imageLoaded=r.bind(this),this._footageLoaded=s.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=x.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:g,setAssetsPath:L,setPath:I,loadedImages:R,loadedFootages:P,destroy:E,getAsset:B,createImgData:v,createImageData:c,imageLoaded:r,footageLoaded:s,setCacheType:M},z}();function fh(){}fh.prototype={triggerEvent:function(r,s){if(this._cbs[r])for(var n=this._cbs[r],d=0;d<n.length;d+=1)n[d](s)},addEventListener:function(r,s){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(s),(function(){this.removeEventListener(r,s)}).bind(this)},removeEventListener:function(r,s){if(!s)this._cbs[r]=null;else if(this._cbs[r]){for(var n=0,d=this._cbs[r].length;n<d;)this._cbs[r][n]===s&&(this._cbs[r].splice(n,1),n-=1,d-=1),n+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var zv=function(){function e(r){for(var s=r.split(`\r
|
2
|
+
`),n={},d,c=0,v=0;v<s.length;v+=1)d=s[v].split(":"),d.length===2&&(n[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return n}return function(r){for(var s=[],n=0;n<r.length;n+=1){var d=r[n],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[n].cm)}catch{try{c.payload=e(r[n].cm)}catch{c.payload={name:r[n].cm}}}s.push(c)}return s}}(),Vv=function(){function e(r){this.compositions.push(r)}return function(){function r(s){for(var n=0,d=this.compositions.length;n<d;){if(this.compositions[n].data&&this.compositions[n].data.nm===s)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=e,r}}(),_s={},Bv=function(r,s){_s[r]=s};function Uv(e){return _s[e]}function Hv(){if(_s.canvas)return"canvas";for(var e in _s)if(_s[e])return e;return""}function Is(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Is=function(s){return typeof s}:Is=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Is(e)}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=ke(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Pv(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Vv(),this.imagePreloader=new $v,this.audioController=nt(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ye("drawnFrame",0,0,0),this.expressionsPlugin=Ba()};$([fh],pt),pt.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var s=Uv(r);this.renderer=new s(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Ss.loadAnimation(e.path,this.configAnimation,this.onSetupError))},pt.prototype.onSetupError=function(){this.trigger("data_failed")},pt.prototype.setupAnimation=function(e){Ss.completeAnimation(e,this.configAnimation)},pt.prototype.setData=function(e,r){r&&Is(r)!=="object"&&(r=JSON.parse(r));var s={wrapper:e,animationData:r},n=e.attributes;s.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",s.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:Hv()||"canvas";var d=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";d==="false"?s.loop=!1:d==="true"?s.loop=!0:d!==""&&(s.loop=parseInt(d,10));var c=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;s.autoplay=c!=="false",s.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var v=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";v==="false"&&(s.prerender=!1),s.path?this.setParams(s):this.trigger("destroy")},pt.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var r=this.animationData.layers,s,n=r.length,d=e.layers,c,v=d.length;for(c=0;c<v;c+=1)for(s=0;s<n;){if(r[s].id===d[c].id){r[s]=d[c];break}s+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,s=0;s<n;s+=1)this.animationData.assets.push(e.assets[s]);this.animationData.__complete=!1,Ss.completeAnimation(this.animationData,this.onSegmentComplete)},pt.prototype.onSegmentComplete=function(e){this.animationData=e;var r=Ba();r&&r.initExpressions(this),this.loadNextSegment()},pt.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=e.shift();this.timeCompleted=r.time*this.frameRate;var s=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ss.loadData(s,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},pt.prototype.loadSegments=function(){var e=this.animationData.segments;e||(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(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=zv(e.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 e=Ba();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},pt.prototype.resize=function(e,r){var s=typeof e=="number"?e:void 0,n=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(s,n)},pt.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},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(e){this.triggerRenderFrameError(e)}},pt.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},pt.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},pt.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},pt.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pt.prototype.getMarkerData=function(e){for(var r,s=0;s<this.markers.length;s+=1)if(r=this.markers[s],r.payload&&r.payload.name===e)return r;return null},pt.prototype.goToAndStop=function(e,r,s){if(!(s&&this.name!==s)){var n=Number(e);if(isNaN(n)){var d=this.getMarkerData(e);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},pt.prototype.goToAndPlay=function(e,r,s){if(!(s&&this.name!==s)){var n=Number(e);if(isNaN(n)){var d=this.getMarkerData(e);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(n,r,s);this.play()}},pt.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,s=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(s=!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):(s=!0,r=0)):this.setCurrentRawFrameValue(r),s&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},pt.prototype.adjustSegment=function(e,r){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},pt.prototype.setSegment=function(e,r){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?s=e:this.currentRawFrame+this.firstFrame>r&&(s=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,s!==-1&&this.goToAndStop(s,!0)},pt.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),Is(e[0])==="object"){var s,n=e.length;for(s=0;s<n;s+=1)this.segments.push(e[s])}else this.segments.push(e);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},pt.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},pt.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},pt.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},pt.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},pt.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},pt.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},pt.prototype.setLoop=function(e){this.loop=e},pt.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},pt.prototype.getVolume=function(){return this.audioController.getVolume()},pt.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},pt.prototype.unmute=function(e){e&&this.name!==e||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(e){var r="";if(e.e)r=e.p;else if(this.assetsPath){var s=e.p;s.indexOf("images/")!==-1&&(s=s.split("/")[1]),r=this.assetsPath+s}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},pt.prototype.getAssetData=function(e){for(var r=0,s=this.assets.length;r<s;){if(e===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(e){return e?this.totalFrames:this.totalFrames/this.frameRate},pt.prototype.updateDocumentData=function(e,r,s){try{var n=this.renderer.getElementByPath(e);n.updateDocumentData(r,s)}catch{}},pt.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new Ye(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new lh(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Va(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new ch(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new dh(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ye(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new lh(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Va(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new ch(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new dh(e,this))},pt.prototype.triggerRenderFrameError=function(e){var r=new Rv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},pt.prototype.triggerConfigError=function(e){var r=new Mv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var qt=function(){var e={},r=[],s=0,n=0,d=0,c=!0,v=!1;function x(S){for(var O=0,u=S.target;O<n;)r[O].animation===u&&(r.splice(O,1),O-=1,n-=1,u.isPaused||B()),O+=1}function g(S,O){if(!S)return null;for(var u=0;u<n;){if(r[u].elem===S&&r[u].elem!==null)return r[u].animation;u+=1}var b=new pt;return E(b,S),b.setData(S,O),b}function I(){var S,O=r.length,u=[];for(S=0;S<O;S+=1)u.push(r[S].animation);return u}function L(){d+=1,ft()}function B(){d-=1}function E(S,O){S.addEventListener("destroy",x),S.addEventListener("_active",L),S.addEventListener("_idle",B),r.push({elem:O,animation:S}),n+=1}function R(S){var O=new pt;return E(O,null),O.setParams(S),O}function P(S,O){var u;for(u=0;u<n;u+=1)r[u].animation.setSpeed(S,O)}function M(S,O){var u;for(u=0;u<n;u+=1)r[u].animation.setDirection(S,O)}function z(S){var O;for(O=0;O<n;O+=1)r[O].animation.play(S)}function w(S){var O=S-s,u;for(u=0;u<n;u+=1)r[u].animation.advanceTime(O);s=S,d&&!v?window.requestAnimationFrame(w):c=!0}function _(S){s=S,window.requestAnimationFrame(w)}function y(S){var O;for(O=0;O<n;O+=1)r[O].animation.pause(S)}function A(S,O,u){var b;for(b=0;b<n;b+=1)r[b].animation.goToAndStop(S,O,u)}function k(S){var O;for(O=0;O<n;O+=1)r[O].animation.stop(S)}function D(S){var O;for(O=0;O<n;O+=1)r[O].animation.togglePause(S)}function V(S){var O;for(O=n-1;O>=0;O-=1)r[O].animation.destroy(S)}function H(S,O,u){var b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=b.length;for(U=0;U<F;U+=1)u&&b[U].setAttribute("data-bm-type",u),g(b[U],S);if(O&&F===0){u||(u="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var mt=N("div");mt.style.width="100%",mt.style.height="100%",mt.setAttribute("data-bm-type",u),at.appendChild(mt),g(mt,S)}}function Z(){var S;for(S=0;S<n;S+=1)r[S].animation.resize()}function ft(){!v&&d&&c&&(window.requestAnimationFrame(_),c=!1)}function ht(){v=!0}function et(){v=!1,ft()}function yt(S,O){var u;for(u=0;u<n;u+=1)r[u].animation.setVolume(S,O)}function lt(S){var O;for(O=0;O<n;O+=1)r[O].animation.mute(S)}function X(S){var O;for(O=0;O<n;O+=1)r[O].animation.unmute(S)}return e.registerAnimation=g,e.loadAnimation=R,e.setSpeed=P,e.setDirection=M,e.play=z,e.pause=y,e.stop=k,e.togglePause=D,e.searchAnimations=H,e.resize=Z,e.goToAndStop=A,e.destroy=V,e.freeze=ht,e.unfreeze=et,e.setVolume=yt,e.mute=lt,e.unmute=X,e.getRegisteredAnimations=I,e}(),ks=function(){var e={};e.getBezierEasing=s;var r={};function s(_,y,A,k,D){var V=D||("bez_"+_+"_"+y+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var H=new w([_,y,A,k]);return r[V]=H,H}var n=4,d=.001,c=1e-7,v=10,x=11,g=1/(x-1),I=typeof Float32Array=="function";function L(_,y){return 1-3*y+3*_}function B(_,y){return 3*y-6*_}function E(_){return 3*_}function R(_,y,A){return((L(y,A)*_+B(y,A))*_+E(y))*_}function P(_,y,A){return 3*L(y,A)*_*_+2*B(y,A)*_+E(y)}function M(_,y,A,k,D){var V,H,Z=0;do H=y+(A-y)/2,V=R(H,k,D)-_,V>0?A=H:y=H;while(Math.abs(V)>c&&++Z<v);return H}function z(_,y,A,k){for(var D=0;D<n;++D){var V=P(y,A,k);if(V===0)return y;var H=R(y,A,k)-_;y-=H/V}return y}function w(_){this._p=_,this._mSampleValues=I?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return w.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:R(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<x;++k)this._mSampleValues[k]=R(k*g,y,A)},_getTForX:function(y){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,H=1,Z=x-1;H!==Z&&D[H]<=y;++H)V+=g;--H;var ft=(y-D[H])/(D[H+1]-D[H]),ht=V+ft*g,et=P(ht,A,k);return et>=d?z(y,ht,A,k):et===0?ht:M(y,V,V+g,A,k)}},e}(),vh=function(){function e(r){return r.concat(rt(r.length))}return{double:e}}(),Ga=function(){return function(e,r,s){var n=0,d=e,c=rt(d),v={newElement:x,release:g};function x(){var I;return n?(n-=1,I=c[n]):I=r(),I}function g(I){n===d&&(c=vh.double(c),d*=2),s&&s(I),c[n]=I,n+=1}return v}}(),gh=function(){function e(){return{addedLength:0,percents:Q("float32",As()),lengths:Q("float32",As())}}return Ga(8,e)}(),bh=function(){function e(){return{lengths:[],totalLength:0}}function r(s){var n,d=s.lengths.length;for(n=0;n<d;n+=1)gh.release(s.lengths[n]);s.lengths.length=0}return Ga(8,e,r)}();function Gv(){var e=Math;function r(E,R,P,M,z,w){var _=E*M+R*z+P*w-z*M-w*E-P*R;return _>-.001&&_<.001}function s(E,R,P,M,z,w,_,y,A){if(P===0&&w===0&&A===0)return r(E,R,M,z,_,y);var k=e.sqrt(e.pow(M-E,2)+e.pow(z-R,2)+e.pow(w-P,2)),D=e.sqrt(e.pow(_-E,2)+e.pow(y-R,2)+e.pow(A-P,2)),V=e.sqrt(e.pow(_-M,2)+e.pow(y-z,2)+e.pow(A-w,2)),H;return k>D?k>V?H=k-D-V:H=V-D-k:V>D?H=V-D-k:H=D-k-V,H>-1e-4&&H<1e-4}var n=function(){return function(E,R,P,M){var z=As(),w,_,y,A,k,D=0,V,H=[],Z=[],ft=gh.newElement();for(y=P.length,w=0;w<z;w+=1){for(k=w/(z-1),V=0,_=0;_<y;_+=1)A=Vt(1-k,3)*E[_]+3*Vt(1-k,2)*k*P[_]+3*(1-k)*Vt(k,2)*M[_]+Vt(k,3)*R[_],H[_]=A,Z[_]!==null&&(V+=Vt(H[_]-Z[_],2)),Z[_]=H[_];V&&(V=jt(V),D+=V),ft.percents[w]=k,ft.lengths[w]=D}return ft.addedLength=D,ft}}();function d(E){var R=bh.newElement(),P=E.c,M=E.v,z=E.o,w=E.i,_,y=E._length,A=R.lengths,k=0;for(_=0;_<y-1;_+=1)A[_]=n(M[_],M[_+1],z[_],w[_+1]),k+=A[_].addedLength;return P&&y&&(A[_]=n(M[_],M[0],z[_],w[0]),k+=A[_].addedLength),R.totalLength=k,R}function c(E){this.segmentLength=0,this.points=new Array(E)}function v(E,R){this.partialLength=E,this.point=R}var x=function(){var E={};return function(R,P,M,z){var w=(R[0]+"_"+R[1]+"_"+P[0]+"_"+P[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!E[w]){var _=As(),y,A,k,D,V,H=0,Z,ft,ht=null;R.length===2&&(R[0]!==P[0]||R[1]!==P[1])&&r(R[0],R[1],P[0],P[1],R[0]+M[0],R[1]+M[1])&&r(R[0],R[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(_=2);var et=new c(_);for(k=M.length,y=0;y<_;y+=1){for(ft=rt(k),V=y/(_-1),Z=0,A=0;A<k;A+=1)D=Vt(1-V,3)*R[A]+3*Vt(1-V,2)*V*(R[A]+M[A])+3*(1-V)*Vt(V,2)*(P[A]+z[A])+Vt(V,3)*P[A],ft[A]=D,ht!==null&&(Z+=Vt(ft[A]-ht[A],2));Z=jt(Z),H+=Z,et.points[y]=new v(Z,ft),ht=ft}et.segmentLength=H,E[w]=et}return E[w]}}();function g(E,R){var P=R.percents,M=R.lengths,z=P.length,w=oe((z-1)*E),_=E*R.addedLength,y=0;if(w===z-1||w===0||_===M[w])return P[w];for(var A=M[w]>_?-1:1,k=!0;k;)if(M[w]<=_&&M[w+1]>_?(y=(_-M[w])/(M[w+1]-M[w]),k=!1):w+=A,w<0||w>=z-1){if(w===z-1)return P[w];k=!1}return P[w]+(P[w+1]-P[w])*y}function I(E,R,P,M,z,w){var _=g(z,w),y=1-_,A=e.round((y*y*y*E[0]+(_*y*y+y*_*y+y*y*_)*P[0]+(_*_*y+y*_*_+_*y*_)*M[0]+_*_*_*R[0])*1e3)/1e3,k=e.round((y*y*y*E[1]+(_*y*y+y*_*y+y*y*_)*P[1]+(_*_*y+y*_*_+_*y*_)*M[1]+_*_*_*R[1])*1e3)/1e3;return[A,k]}var L=Q("float32",8);function B(E,R,P,M,z,w,_){z<0?z=0:z>1&&(z=1);var y=g(z,_);w=w>1?1:w;var A=g(w,_),k,D=E.length,V=1-y,H=1-A,Z=V*V*V,ft=y*V*V*3,ht=y*y*V*3,et=y*y*y,yt=V*V*H,lt=y*V*H+V*y*H+V*V*A,X=y*y*H+V*y*A+y*V*A,S=y*y*A,O=V*H*H,u=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,at=A*H*H+H*A*H+H*H*A,mt=A*A*H+H*A*A+A*H*A,vt=A*A*A;for(k=0;k<D;k+=1)L[k*4]=e.round((Z*E[k]+ft*P[k]+ht*M[k]+et*R[k])*1e3)/1e3,L[k*4+1]=e.round((yt*E[k]+lt*P[k]+X*M[k]+S*R[k])*1e3)/1e3,L[k*4+2]=e.round((O*E[k]+u*P[k]+b*M[k]+U*R[k])*1e3)/1e3,L[k*4+3]=e.round((F*E[k]+at*P[k]+mt*M[k]+vt*R[k])*1e3)/1e3;return L}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:s}}var Er=Gv(),Di=o,yh=Math.abs;function Eh(e,r){var s=this.offsetTime,n;this.propType==="multidimensional"&&(n=Q("float32",this.pv.length));for(var d=r.lastIndex,c=d,v=this.keyframes.length-1,x=!0,g,I,L;x;){if(g=this.keyframes[c],I=this.keyframes[c+1],c===v-1&&e>=I.t-s){g.h&&(g=I),d=0;break}if(I.t-s>e){d=c;break}c<v-1?c+=1:(d=0,x=!1)}L=this.keyframesMetadata[c]||{};var B,E,R,P,M,z,w=I.t-s,_=g.t-s,y;if(g.to){L.bezierData||(L.bezierData=Er.buildBezierData(g.s,I.s||g.e,g.to,g.ti));var A=L.bezierData;if(e>=w||e<_){var k=e>=w?A.points.length-1:0;for(E=A.points[k].point.length,B=0;B<E;B+=1)n[B]=A.points[k].point[B]}else{L.__fnct?z=L.__fnct:(z=ks.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,L.__fnct=z),R=z((e-_)/(w-_));var D=A.segmentLength*R,V,H=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastPoint:0,x=!0,P=A.points.length;x;){if(H+=A.points[M].partialLength,D===0||R===0||M===A.points.length-1){for(E=A.points[M].point.length,B=0;B<E;B+=1)n[B]=A.points[M].point[B];break}else if(D>=H&&D<H+A.points[M+1].partialLength){for(V=(D-H)/A.points[M+1].partialLength,E=A.points[M].point.length,B=0;B<E;B+=1)n[B]=A.points[M].point[B]+(A.points[M+1].point[B]-A.points[M].point[B])*V;break}M<P-1?M+=1:x=!1}r._lastPoint=M,r._lastAddedLength=H-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ft,ht,et,yt;if(v=g.s.length,y=I.s||g.e,this.sh&&g.h!==1)if(e>=w)n[0]=y[0],n[1]=y[1],n[2]=y[2];else if(e<=_)n[0]=g.s[0],n[1]=g.s[1],n[2]=g.s[2];else{var lt=Th(g.s),X=Th(y),S=(e-_)/(w-_);Wv(n,Yv(lt,X,S))}else for(c=0;c<v;c+=1)g.h!==1&&(e>=w?R=1:e<_?R=0:(g.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[c]?z=L.__fnct[c]:(Z=g.o.x[c]===void 0?g.o.x[0]:g.o.x[c],ft=g.o.y[c]===void 0?g.o.y[0]:g.o.y[c],ht=g.i.x[c]===void 0?g.i.x[0]:g.i.x[c],et=g.i.y[c]===void 0?g.i.y[0]:g.i.y[c],z=ks.getBezierEasing(Z,ft,ht,et).get,L.__fnct[c]=z)):L.__fnct?z=L.__fnct:(Z=g.o.x,ft=g.o.y,ht=g.i.x,et=g.i.y,z=ks.getBezierEasing(Z,ft,ht,et).get,g.keyframeMetadata=z),R=z((e-_)/(w-_)))),y=I.s||g.e,yt=g.h===1?g.s[c]:g.s[c]+(y[c]-g.s[c])*R,this.propType==="multidimensional"?n[c]=yt:n=yt}return r.lastIndex=d,n}function Yv(e,r,s){var n=[],d=e[0],c=e[1],v=e[2],x=e[3],g=r[0],I=r[1],L=r[2],B=r[3],E,R,P,M,z;return R=d*g+c*I+v*L+x*B,R<0&&(R=-R,g=-g,I=-I,L=-L,B=-B),1-R>1e-6?(E=Math.acos(R),P=Math.sin(E),M=Math.sin((1-s)*E)/P,z=Math.sin(s*E)/P):(M=1-s,z=s),n[0]=M*d+z*g,n[1]=M*c+z*I,n[2]=M*v+z*L,n[3]=M*x+z*B,n}function Wv(e,r){var s=r[0],n=r[1],d=r[2],c=r[3],v=Math.atan2(2*n*c-2*s*d,1-2*n*n-2*d*d),x=Math.asin(2*s*n+2*d*c),g=Math.atan2(2*s*c-2*n*d,1-2*s*s-2*d*d);e[0]=v/It,e[1]=x/It,e[2]=g/It}function Th(e){var r=e[0]*It,s=e[1]*It,n=e[2]*It,d=Math.cos(r/2),c=Math.cos(s/2),v=Math.cos(n/2),x=Math.sin(r/2),g=Math.sin(s/2),I=Math.sin(n/2),L=d*c*v-x*g*I,B=x*g*v+d*c*I,E=x*c*v+d*g*I,R=d*g*v-x*c*I;return[B,E,R,L]}function xh(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==Di&&(this._caching.lastFrame>=s&&e>=s||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function Ya(e){var r;if(this.propType==="unidimensional")r=e*this.mult,yh(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var s=0,n=this.v.length;s<n;)r=e[s]*this.mult,yh(this.v[s]-r)>1e-5&&(this.v[s]=r,this._mdf=!0),s+=1}function Wa(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,r=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)s=this.effectsSequence[e](s);this.setVValue(s),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ja(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function jv(e,r,s,n){this.propType="unidimensional",this.mult=s||1,this.data=r,this.v=s?r.k*s:r.k,this.pv=r.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Wa,this.setVValue=Ya,this.addEffect=ja}function qv(e,r,s,n){this.propType="multidimensional",this.mult=s||1,this.data=r,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,c=r.k.length;for(this.v=Q("float32",c),this.pv=Q("float32",c),this.vel=Q("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=Wa,this.setVValue=Ya,this.addEffect=ja}function Kv(e,r,s,n){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:Di,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=s||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=Di,this.pv=Di,this._isFirstFrame=!0,this.getValue=Wa,this.setVValue=Ya,this.interpolateValue=Eh,this.effectsSequence=[xh.bind(this)],this.addEffect=ja}function Xv(e,r,s,n){this.propType="multidimensional";var d,c=r.k.length,v,x,g,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&&(v=r.k[d].s,x=r.k[d+1].s,g=r.k[d].to,I=r.k[d].ti,(v.length===2&&!(v[0]===x[0]&&v[1]===x[1])&&Er.pointOnLine2D(v[0],v[1],x[0],x[1],v[0]+g[0],v[1]+g[1])&&Er.pointOnLine2D(v[0],v[1],x[0],x[1],x[0]+I[0],x[1]+I[1])||v.length===3&&!(v[0]===x[0]&&v[1]===x[1]&&v[2]===x[2])&&Er.pointOnLine3D(v[0],v[1],v[2],x[0],x[1],x[2],v[0]+g[0],v[1]+g[1],v[2]+g[2])&&Er.pointOnLine3D(v[0],v[1],v[2],x[0],x[1],x[2],x[0]+I[0],x[1]+I[1],x[2]+I[2]))&&(r.k[d].to=null,r.k[d].ti=null),v[0]===x[0]&&v[1]===x[1]&&g[0]===0&&g[1]===0&&I[0]===0&&I[1]===0&&(v.length===2||v[2]===x[2]&&g[2]===0&&I[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[xh.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=s||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=Wa,this.setVValue=Ya,this.interpolateValue=Eh,this.frameId=-1;var L=r.k[0].s.length;for(this.v=Q("float32",L),this.pv=Q("float32",L),d=0;d<L;d+=1)this.v[d]=Di,this.pv[d]=Di;this._caching={lastFrame:Di,lastIndex:0,value:Q("float32",L)},this.addEffect=ja}var it=function(){function e(s,n,d,c,v){n.sid&&(n=s.globalData.slotManager.getProp(n));var x;if(!n.k.length)x=new jv(s,n,c,v);else if(typeof n.k[0]=="number")x=new qv(s,n,c,v);else switch(d){case 0:x=new Kv(s,n,c,v);break;case 1:x=new Xv(s,n,c,v);break;default:break}return x.effectsSequence.length&&v.addDynamicProperty(x),x}var r={getProp:e};return r}();function se(){}se.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,s=this.dynamicProperties.length;for(r=0;r<s;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 Fi=function(){function e(){return Q("float32",2)}return Ga(8,e)}();function Or(){this.c=!1,this._length=0,this._maxLength=8,this.v=rt(this._maxLength),this.o=rt(this._maxLength),this.i=rt(this._maxLength)}Or.prototype.setPathData=function(e,r){this.c=e,this.setLength(r);for(var s=0;s<r;)this.v[s]=Fi.newElement(),this.o[s]=Fi.newElement(),this.i[s]=Fi.newElement(),s+=1},Or.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Or.prototype.doubleArrayLength=function(){this.v=this.v.concat(rt(this._maxLength)),this.i=this.i.concat(rt(this._maxLength)),this.o=this.o.concat(rt(this._maxLength)),this._maxLength*=2},Or.prototype.setXYAt=function(e,r,s,n,d){var c;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[n]||c[n]&&!d)&&(c[n]=Fi.newElement()),c[n][0]=e,c[n][1]=r},Or.prototype.setTripleAt=function(e,r,s,n,d,c,v,x){this.setXYAt(e,r,"v",v,x),this.setXYAt(s,n,"o",v,x),this.setXYAt(d,c,"i",v,x)},Or.prototype.reverse=function(){var e=new Or;e.setPathData(this.c,this._length);var r=this.v,s=this.o,n=this.i,d=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],n[0][0],n[0][1],s[0][0],s[0][1],0,!1),d=1);var c=this._length-1,v=this._length,x;for(x=d;x<v;x+=1)e.setTripleAt(r[c][0],r[c][1],n[c][0],n[c][1],s[c][0],s[c][1],x,!1),c-=1;return e},Or.prototype.length=function(){return this._length};var de=function(){function e(){return new Or}function r(d){var c=d._length,v;for(v=0;v<c;v+=1)Fi.release(d.v[v]),Fi.release(d.i[v]),Fi.release(d.o[v]),d.v[v]=null,d.i[v]=null,d.o[v]=null;d._length=0,d.c=!1}function s(d){var c=n.newElement(),v,x=d._length===void 0?d.v.length:d._length;for(c.setLength(x),c.c=d.c,v=0;v<x;v+=1)c.setTripleAt(d.v[v][0],d.v[v][1],d.o[v][0],d.o[v][1],d.i[v][0],d.i[v][1],v);return c}var n=Ga(4,e,r);return n.clone=s,n}();function Vl(){this._length=0,this._maxLength=4,this.shapes=rt(this._maxLength)}Vl.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(rt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Vl.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)de.release(this.shapes[e]);this._length=0};var No=function(){var e={newShapeCollection:d,release:c},r=0,s=4,n=rt(s);function d(){var v;return r?(r-=1,v=n[r]):v=new Vl,v}function c(v){var x,g=v._length;for(x=0;x<g;x+=1)de.release(v.shapes[x]);v._length=0,r===s&&(n=vh.double(n),s*=2),n[r]=v,r+=1}return e}(),qa=function(){var e=-999999;function r(w,_,y){var A=y.lastIndex,k,D,V,H,Z,ft,ht,et,yt,lt=this.keyframes;if(w<lt[0].t-this.offsetTime)k=lt[0].s[0],V=!0,A=0;else if(w>=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,S=lt.length-1,O=!0,u,b,U;O&&(u=lt[X],b=lt[X+1],!(b.t-this.offsetTime>w));)X<S-1?X+=1:O=!1;if(U=this.keyframesMetadata[X]||{},V=u.h===1,A=X,!V){if(w>=b.t-this.offsetTime)et=1;else if(w<u.t-this.offsetTime)et=0;else{var F;U.__fnct?F=U.__fnct:(F=ks.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y).get,U.__fnct=F),et=F((w-(u.t-this.offsetTime))/(b.t-this.offsetTime-(u.t-this.offsetTime)))}D=b.s?b.s[0]:u.e[0]}k=u.s[0]}for(ft=_._length,ht=k.i[0].length,y.lastIndex=A,H=0;H<ft;H+=1)for(Z=0;Z<ht;Z+=1)yt=V?k.i[H][Z]:k.i[H][Z]+(D.i[H][Z]-k.i[H][Z])*et,_.i[H][Z]=yt,yt=V?k.o[H][Z]:k.o[H][Z]+(D.o[H][Z]-k.o[H][Z])*et,_.o[H][Z]=yt,yt=V?k.v[H][Z]:k.v[H][Z]+(D.v[H][Z]-k.v[H][Z])*et,_.v[H][Z]=yt}function s(){var w=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==e&&(A<_&&w<_||A>y&&w>y)||(this._caching.lastIndex=A<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching)),this._caching.lastFrame=w,this.pv}function n(){this.paths=this.localShapeCollection}function d(w,_){if(w._length!==_._length||w.c!==_.c)return!1;var y,A=w._length;for(y=0;y<A;y+=1)if(w.v[y][0]!==_.v[y][0]||w.v[y][1]!==_.v[y][1]||w.o[y][0]!==_.o[y][0]||w.o[y][1]!==_.o[y][1]||w.i[y][0]!==_.i[y][0]||w.i[y][1]!==_.i[y][1])return!1;return!0}function c(w){d(this.v,w)||(this.v=de.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function v(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var w;this.kf?w=this.pv:this.data.ks?w=this.data.ks.k:w=this.data.pt.k;var _,y=this.effectsSequence.length;for(_=0;_<y;_+=1)w=this.effectsSequence[_](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(w,_,y){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=_,this.k=!1,this.kf=!1,this._mdf=!1;var A=y===3?_.pt.k:_.ks.k;this.v=de.clone(A),this.pv=de.clone(this.v),this.localShapeCollection=No.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function g(w){this.effectsSequence.push(w),this.container.addDynamicProperty(this)}x.prototype.interpolateShape=r,x.prototype.getValue=v,x.prototype.setVValue=c,x.prototype.addEffect=g;function I(w,_,y){this.propType="shape",this.comp=w.comp,this.elem=w,this.container=w,this.offsetTime=w.data.st,this.keyframes=y===3?_.pt.k:_.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var A=this.keyframes[0].s[0].i.length;this.v=de.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=de.clone(this.v),this.localShapeCollection=No.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[s.bind(this)]}I.prototype.getValue=v,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=g;var L=function(){var w=ce;function _(y,A){this.v=de.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=No.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=it.getProp(y,A.p,1,0,this),this.s=it.getProp(y,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return _.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var A=this.p.v[0],k=this.p.v[1],D=this.s.v[0]/2,V=this.s.v[1]/2,H=this.d!==3,Z=this.v;Z.v[0][0]=A,Z.v[0][1]=k-V,Z.v[1][0]=H?A+D:A-D,Z.v[1][1]=k,Z.v[2][0]=A,Z.v[2][1]=k+V,Z.v[3][0]=H?A-D:A+D,Z.v[3][1]=k,Z.i[0][0]=H?A-D*w:A+D*w,Z.i[0][1]=k-V,Z.i[1][0]=H?A+D:A-D,Z.i[1][1]=k-V*w,Z.i[2][0]=H?A+D*w:A-D*w,Z.i[2][1]=k+V,Z.i[3][0]=H?A-D:A+D,Z.i[3][1]=k+V*w,Z.o[0][0]=H?A+D*w:A-D*w,Z.o[0][1]=k-V,Z.o[1][0]=H?A+D:A-D,Z.o[1][1]=k+V*w,Z.o[2][0]=H?A-D*w:A+D*w,Z.o[2][1]=k+V,Z.o[3][0]=H?A-D:A+D,Z.o[3][1]=k-V*w}},$([se],_),_}(),B=function(){function w(_,y){this.v=de.newElement(),this.v.setPathData(!0,0),this.elem=_,this.comp=_.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(_),y.sy===1?(this.ir=it.getProp(_,y.ir,0,0,this),this.is=it.getProp(_,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=it.getProp(_,y.pt,0,0,this),this.p=it.getProp(_,y.p,1,0,this),this.r=it.getProp(_,y.r,0,It,this),this.or=it.getProp(_,y.or,0,0,this),this.os=it.getProp(_,y.os,0,.01,this),this.localShapeCollection=No.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return w.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var 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,ft=2*Math.PI*D/(y*2),ht=2*Math.PI*V/(y*2),et,yt,lt,X,S=-Math.PI/2;S+=this.r.v;var O=this.data.d===3?-1:1;for(this.v._length=0,et=0;et<y;et+=1){yt=k?D:V,lt=k?H:Z,X=k?ft:ht;var u=yt*Math.cos(S),b=yt*Math.sin(S),U=u===0&&b===0?0:b/Math.sqrt(u*u+b*b),F=u===0&&b===0?0:-u/Math.sqrt(u*u+b*b);u+=+this.p.v[0],b+=+this.p.v[1],this.v.setTripleAt(u,b,u-U*X*lt*O,b-F*X*lt*O,u+U*X*lt*O,b+F*X*lt*O,et,!0),k=!k,S+=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,ft=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,H=0;H<y;H+=1){var ht=k*Math.cos(Z),et=k*Math.sin(Z),yt=ht===0&&et===0?0:et/Math.sqrt(ht*ht+et*et),lt=ht===0&&et===0?0:-ht/Math.sqrt(ht*ht+et*et);ht+=+this.p.v[0],et+=+this.p.v[1],this.v.setTripleAt(ht,et,ht-yt*V*D*ft,et-lt*V*D*ft,ht+yt*V*D*ft,et+lt*V*D*ft,H,!0),Z+=A*ft}this.paths.length=0,this.paths[0]=this.v}},$([se],w),w}(),E=function(){function w(_,y){this.v=de.newElement(),this.v.c=!0,this.localShapeCollection=No.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=_,this.comp=_.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(_),this.p=it.getProp(_,y.p,1,0,this),this.s=it.getProp(_,y.s,1,0,this),this.r=it.getProp(_,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return w.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=Ie(k,D,this.r.v),H=V*(1-ce);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:n},$([se],w),w}();function R(w,_,y){var A;if(y===3||y===4){var k=y===3?_.pt:_.ks,D=k.k;D.length?A=new I(w,_,y):A=new x(w,_,y)}else y===5?A=new E(w,_):y===6?A=new L(w,_):y===7&&(A=new B(w,_));return A.k&&w.addDynamicProperty(A),A}function P(){return x}function M(){return I}var z={};return z.getShapeProp=R,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var he=function(){var e=Math.cos,r=Math.sin,s=Math.tan,n=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function v(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(1,0,0,0,0,b,-U,0,0,U,b,0,0,0,0,1)}function x(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(b,0,U,0,0,1,0,0,-U,0,b,0,0,0,0,1)}function g(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function I(u,b){return this._t(1,b,u,1,0,0)}function L(u,b){return this.shear(s(u),s(b))}function B(u,b){var U=e(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,s(u),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(u,b,U){return!U&&U!==0&&(U=1),u===1&&b===1&&U===1?this:this._t(u,0,0,0,0,b,0,0,0,0,U,0,0,0,0,1)}function R(u,b,U,F,at,mt,vt,wt,Nt,Kt,we,xr,Ne,ae,$e,Ot){return this.props[0]=u,this.props[1]=b,this.props[2]=U,this.props[3]=F,this.props[4]=at,this.props[5]=mt,this.props[6]=vt,this.props[7]=wt,this.props[8]=Nt,this.props[9]=Kt,this.props[10]=we,this.props[11]=xr,this.props[12]=Ne,this.props[13]=ae,this.props[14]=$e,this.props[15]=Ot,this}function P(u,b,U){return U=U||0,u!==0||b!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,u,b,U,1):this}function M(u,b,U,F,at,mt,vt,wt,Nt,Kt,we,xr,Ne,ae,$e,Ot){var ct=this.props;if(u===1&&b===0&&U===0&&F===0&&at===0&&mt===1&&vt===0&&wt===0&&Nt===0&&Kt===0&&we===1&&xr===0)return ct[12]=ct[12]*u+ct[15]*Ne,ct[13]=ct[13]*mt+ct[15]*ae,ct[14]=ct[14]*we+ct[15]*$e,ct[15]*=Ot,this._identityCalculated=!1,this;var Fr=ct[0],fi=ct[1],$r=ct[2],Ar=ct[3],zr=ct[4],Vr=ct[5],Le=ct[6],vi=ct[7],gi=ct[8],cr=ct[9],bi=ct[10],dr=ct[11],Bi=ct[12],on=ct[13],sn=ct[14],an=ct[15];return ct[0]=Fr*u+fi*at+$r*Nt+Ar*Ne,ct[1]=Fr*b+fi*mt+$r*Kt+Ar*ae,ct[2]=Fr*U+fi*vt+$r*we+Ar*$e,ct[3]=Fr*F+fi*wt+$r*xr+Ar*Ot,ct[4]=zr*u+Vr*at+Le*Nt+vi*Ne,ct[5]=zr*b+Vr*mt+Le*Kt+vi*ae,ct[6]=zr*U+Vr*vt+Le*we+vi*$e,ct[7]=zr*F+Vr*wt+Le*xr+vi*Ot,ct[8]=gi*u+cr*at+bi*Nt+dr*Ne,ct[9]=gi*b+cr*mt+bi*Kt+dr*ae,ct[10]=gi*U+cr*vt+bi*we+dr*$e,ct[11]=gi*F+cr*wt+bi*xr+dr*Ot,ct[12]=Bi*u+on*at+sn*Nt+an*Ne,ct[13]=Bi*b+on*mt+sn*Kt+an*ae,ct[14]=Bi*U+on*vt+sn*we+an*$e,ct[15]=Bi*F+on*wt+sn*xr+an*Ot,this._identityCalculated=!1,this}function z(u){var b=u.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 w(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function _(u){for(var b=0;b<16;){if(u.props[b]!==this.props[b])return!1;b+=1}return!0}function y(u){var b;for(b=0;b<16;b+=1)u.props[b]=this.props[b];return u}function A(u){var b;for(b=0;b<16;b+=1)this.props[b]=u[b]}function k(u,b,U){return{x:u*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],y:u*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],z:u*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}}function D(u,b,U){return u*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12]}function V(u,b,U){return u*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13]}function H(u,b,U){return u*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}function Z(){var u=this.props[0]*this.props[5]-this.props[1]*this.props[4],b=this.props[5]/u,U=-this.props[1]/u,F=-this.props[4]/u,at=this.props[0]/u,mt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/u,vt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/u,wt=new he;return wt.props[0]=b,wt.props[1]=U,wt.props[4]=F,wt.props[5]=at,wt.props[12]=mt,wt.props[13]=vt,wt}function ft(u){var b=this.getInverseMatrix();return b.applyToPointArray(u[0],u[1],u[2]||0)}function ht(u){var b,U=u.length,F=[];for(b=0;b<U;b+=1)F[b]=ft(u[b]);return F}function et(u,b,U){var F=Q("float32",6);if(this.isIdentity())F[0]=u[0],F[1]=u[1],F[2]=b[0],F[3]=b[1],F[4]=U[0],F[5]=U[1];else{var at=this.props[0],mt=this.props[1],vt=this.props[4],wt=this.props[5],Nt=this.props[12],Kt=this.props[13];F[0]=u[0]*at+u[1]*vt+Nt,F[1]=u[0]*mt+u[1]*wt+Kt,F[2]=b[0]*at+b[1]*vt+Nt,F[3]=b[0]*mt+b[1]*wt+Kt,F[4]=U[0]*at+U[1]*vt+Nt,F[5]=U[0]*mt+U[1]*wt+Kt}return F}function yt(u,b,U){var F;return this.isIdentity()?F=[u,b,U]:F=[u*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],u*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],u*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]],F}function lt(u,b){if(this.isIdentity())return u+","+b;var U=this.props;return Math.round((u*U[0]+b*U[4]+U[12])*100)/100+","+Math.round((u*U[1]+b*U[5]+U[13])*100)/100}function X(){for(var u=0,b=this.props,U="matrix3d(",F=1e4;u<16;)U+=n(b[u]*F)/F,U+=u===15?")":",",u+=1;return U}function S(u){var b=1e4;return u<1e-6&&u>0||u>-1e-6&&u<0?n(u*b)/b:u}function O(){var u=this.props,b=S(u[0]),U=S(u[1]),F=S(u[4]),at=S(u[5]),mt=S(u[12]),vt=S(u[13]);return"matrix("+b+","+U+","+F+","+at+","+mt+","+vt+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=v,this.rotateY=x,this.rotateZ=g,this.skew=L,this.skewFromAxis=B,this.shear=I,this.scale=E,this.setTransform=R,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=H,this.applyToPointArray=yt,this.applyToTriplePoints=et,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=_,this.inversePoints=ht,this.inversePoint=ft,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=Q("float32",16),this.reset()}}();function Ka(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ka=function(s){return typeof s}:Ka=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ka(e)}var Mt={},Xa="__[STANDALONE]__",Ah="__[ANIMATIONDATA]__",Sh="";function Zv(e){m(e)}function _h(){Xa===!0?qt.searchAnimations(Ah,Xa,Sh):qt.searchAnimations()}function Qv(e){Ov(e)}function Jv(e){Fv(e)}function tg(e){return Xa===!0&&(e.animationData=JSON.parse(Ah)),qt.loadAnimation(e)}function eg(e){if(typeof e=="string")switch(e){case"high":Ua(200);break;default:case"medium":Ua(50);break;case"low":Ua(10);break}else!isNaN(e)&&e>1&&Ua(e);As()>=50?Ue(!1):Ue(!0)}function rg(){return typeof navigator<"u"}function ig(e,r){e==="expressions"&&Dv(r)}function og(e){switch(e){case"propertyFactory":return it;case"shapePropertyFactory":return qa;case"matrix":return he;default:return null}}Mt.play=qt.play,Mt.pause=qt.pause,Mt.setLocationHref=Zv,Mt.togglePause=qt.togglePause,Mt.setSpeed=qt.setSpeed,Mt.setDirection=qt.setDirection,Mt.stop=qt.stop,Mt.searchAnimations=_h,Mt.registerAnimation=qt.registerAnimation,Mt.loadAnimation=tg,Mt.setSubframeRendering=Qv,Mt.resize=qt.resize,Mt.goToAndStop=qt.goToAndStop,Mt.destroy=qt.destroy,Mt.setQuality=eg,Mt.inBrowser=rg,Mt.installPlugin=ig,Mt.freeze=qt.freeze,Mt.unfreeze=qt.unfreeze,Mt.setVolume=qt.setVolume,Mt.mute=qt.mute,Mt.unmute=qt.unmute,Mt.getRegisteredAnimations=qt.getRegisteredAnimations,Mt.useWebWorker=a,Mt.setIDPrefix=Jv,Mt.__getFactory=og,Mt.version="5.12.2";function sg(){document.readyState==="complete"&&(clearInterval(lg),_h())}function ag(e){for(var r=Ih.split("&"),s=0;s<r.length;s+=1){var n=r[s].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}var Ih="";if(Xa){var kh=document.getElementsByTagName("script"),ng=kh.length-1,Ch=kh[ng]||{src:""};Ih=Ch.src?Ch.src.replace(/^[^\?]+\??/,""):"",Sh=ag("renderer")}var lg=setInterval(sg,100);try{!((typeof ra>"u"?"undefined":Ka(ra))==="object"&&typeof On<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Mt)}catch{}var ci=function(){var e={},r={};e.registerModifier=s,e.getModifier=n;function s(d,c){r[d]||(r[d]=c)}function n(d,c,v){return new r[d](c,v)}return e}();function We(){}We.prototype.initModifierProperties=function(){},We.prototype.addShapeToModifier=function(){},We.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:No.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},We.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),this.frameId=o,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},We.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([se],We);function lr(){}$([We],lr),lr.prototype.initModifierProperties=function(e,r){this.s=it.getProp(e,r.s,0,.01,this),this.e=it.getProp(e,r.e,0,.01,this),this.o=it.getProp(e,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},lr.prototype.addShapeToModifier=function(e){e.pathsData=[]},lr.prototype.calculateShapeEdges=function(e,r,s,n,d){var c=[];r<=1?c.push({s:e,e:r}):e>=1?c.push({s:e-1,e:r-1}):(c.push({s:e,e:1}),c.push({s:0,e:r-1}));var v=[],x,g=c.length,I;for(x=0;x<g;x+=1)if(I=c[x],!(I.e*d<n||I.s*d>n+s)){var L,B;I.s*d<=n?L=0:L=(I.s*d-n)/s,I.e*d>=n+s?B=1:B=(I.e*d-n)/s,v.push([L,B])}return v.length||v.push([0,0]),v},lr.prototype.releasePathsData=function(e){var r,s=e.length;for(r=0;r<s;r+=1)bh.release(e[r]);return e.length=0,e},lr.prototype.processShapes=function(e){var r,s;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?r=1+n:this.s.v<0?r=0+n:r=this.s.v+n,this.e.v>1?s=1+n:this.e.v<0?s=0+n:s=this.e.v+n,r>s){var d=r;r=s,s=d}r=Math.round(r*1e4)*1e-4,s=Math.round(s*1e4)*1e-4,this.sValue=r,this.eValue=s}else r=this.sValue,s=this.eValue;var c,v,x=this.shapes.length,g,I,L,B,E,R=0;if(s===r)for(v=0;v<x;v+=1)this.shapes[v].localShapeCollection.releaseShapes(),this.shapes[v].shape._mdf=!0,this.shapes[v].shape.paths=this.shapes[v].localShapeCollection,this._mdf&&(this.shapes[v].pathsData.length=0);else if(s===1&&r===0||s===0&&r===1){if(this._mdf)for(v=0;v<x;v+=1)this.shapes[v].pathsData.length=0,this.shapes[v].shape._mdf=!0}else{var P=[],M,z;for(v=0;v<x;v+=1)if(M=this.shapes[v],!M.shape._mdf&&!this._mdf&&!e&&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(L=this.releasePathsData(M.pathsData),g=0;g<I;g+=1)B=Er.getSegmentsLength(c.shapes[g]),L.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=L}R+=E,M.shape._mdf=!0}var w=r,_=s,y=0,A;for(v=x-1;v>=0;v-=1)if(M=this.shapes[v],M.shape._mdf){for(z=M.localShapeCollection,z.releaseShapes(),this.m===2&&x>1?(A=this.calculateShapeEdges(r,s,M.totalShapeLength,y,R),y+=M.totalShapeLength):A=[[w,_]],I=A.length,g=0;g<I;g+=1){w=A[g][0],_=A[g][1],P.length=0,_<=1?P.push({s:M.totalShapeLength*w,e:M.totalShapeLength*_}):w>=1?P.push({s:M.totalShapeLength*(w-1),e:M.totalShapeLength*(_-1)}):(P.push({s:M.totalShapeLength*w,e:M.totalShapeLength}),P.push({s:0,e:M.totalShapeLength*(_-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}}},lr.prototype.addPaths=function(e,r){var s,n=e.length;for(s=0;s<n;s+=1)r.addShape(e[s])},lr.prototype.addSegment=function(e,r,s,n,d,c,v){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(s[0],s[1],"i",c+1),v&&d.setXYAt(e[0],e[1],"v",c),d.setXYAt(n[0],n[1],"v",c+1)},lr.prototype.addSegmentFromArray=function(e,r,s,n){r.setXYAt(e[1],e[5],"o",s),r.setXYAt(e[2],e[6],"i",s+1),n&&r.setXYAt(e[0],e[4],"v",s),r.setXYAt(e[3],e[7],"v",s+1)},lr.prototype.addShapes=function(e,r,s){var n=e.pathsData,d=e.shape.paths.shapes,c,v=e.shape.paths._length,x,g,I=0,L,B,E,R,P=[],M,z=!0;for(s?(B=s._length,M=s._length):(s=de.newElement(),B=0,M=0),P.push(s),c=0;c<v;c+=1){for(E=n[c].lengths,s.c=d[c].c,g=d[c].c?E.length:E.length+1,x=1;x<g;x+=1)if(L=E[x-1],I+L.addedLength<r.s)I+=L.addedLength,s.c=!1;else if(I>r.e){s.c=!1;break}else r.s<=I&&r.e>=I+L.addedLength?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[x],d[c].v[x],s,B,z),z=!1):(R=Er.getNewSegment(d[c].v[x-1],d[c].v[x],d[c].o[x-1],d[c].i[x],(r.s-I)/L.addedLength,(r.e-I)/L.addedLength,E[x-1]),this.addSegmentFromArray(R,s,B,z),z=!1,s.c=!1),I+=L.addedLength,B+=1;if(d[c].c&&E.length){if(L=E[x-1],I<=r.e){var w=E[x-1].addedLength;r.s<=I&&r.e>=I+w?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[0],d[c].v[0],s,B,z),z=!1):(R=Er.getNewSegment(d[c].v[x-1],d[c].v[0],d[c].o[x-1],d[c].i[0],(r.s-I)/w,(r.e-I)/w,E[x-1]),this.addSegmentFromArray(R,s,B,z),z=!1,s.c=!1)}else s.c=!1;I+=L.addedLength,B+=1}if(s._length&&(s.setXYAt(s.v[M][0],s.v[M][1],"i",M),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),I>r.e)break;c<v-1&&(s=de.newElement(),z=!0,P.push(s),B=0)}return P};function Cs(){}$([We],Cs),Cs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Cs.prototype.processPath=function(e,r){var s=r/100,n=[0,0],d=e._length,c=0;for(c=0;c<d;c+=1)n[0]+=e.v[c][0],n[1]+=e.v[c][1];n[0]/=d,n[1]/=d;var v=de.newElement();v.c=e.c;var x,g,I,L,B,E;for(c=0;c<d;c+=1)x=e.v[c][0]+(n[0]-e.v[c][0])*s,g=e.v[c][1]+(n[1]-e.v[c][1])*s,I=e.o[c][0]+(n[0]-e.o[c][0])*-s,L=e.o[c][1]+(n[1]-e.o[c][1])*-s,B=e.i[c][0]+(n[0]-e.i[c][0])*-s,E=e.i[c][1]+(n[1]-e.i[c][1])*-s,v.setTripleAt(x,g,I,L,B,E,c);return v},Cs.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,v=this.amount.v;if(v!==0){var x,g;for(s=0;s<n;s+=1){if(x=this.shapes[s],g=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)g.addShape(this.processPath(r[d],v));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Bl=function(){var e=[0,0];function r(g){var I=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||I,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function s(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var I;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var L,B;if(I=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/I,0),B=this.p.getValueAtTime(this.p.keyframes[0].t/I,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/I,0),B=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/I,0)):(L=this.p.pv,B=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/I,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],B=[];var E=this.px,R=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(L[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),L[1]=R.getValueAtTime((R.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=R.getValueAtTime(R.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(L[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),L[1]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/I,0)):(L=[E.pv,R.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/I,R.offsetTime))}else B=e,L=B;this.v.rotate(-Math.atan2(L[1]-B[1],L[0]-B[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function d(){}function c(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function v(g,I,L){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=I,this.v=new he,this.pre=new he,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||g),I.p&&I.p.s?(this.px=it.getProp(g,I.p.x,0,0,this),this.py=it.getProp(g,I.p.y,0,0,this),I.p.z&&(this.pz=it.getProp(g,I.p.z,0,0,this))):this.p=it.getProp(g,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=it.getProp(g,I.rx,0,It,this),this.ry=it.getProp(g,I.ry,0,It,this),this.rz=it.getProp(g,I.rz,0,It,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=it.getProp(g,I.or,1,It,this),this.or.sh=!0}else this.r=it.getProp(g,I.r||{k:0},0,It,this);I.sk&&(this.sk=it.getProp(g,I.sk,0,It,this),this.sa=it.getProp(g,I.sa,0,It,this)),this.a=it.getProp(g,I.a||{k:[0,0,0]},1,0,this),this.s=it.getProp(g,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=it.getProp(g,I.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}v.prototype={applyToMatrix:r,getValue:s,precalculateMatrix:n,autoOrient:d},$([se],v),v.prototype.addDynamicProperty=c,v.prototype._addDynamicProperty=se.prototype.addDynamicProperty;function x(g,I,L){return new v(g,I,L)}return{getTransformProperty:x}}();function Tr(){}$([We],Tr),Tr.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=it.getProp(e,r.c,0,null,this),this.o=it.getProp(e,r.o,0,null,this),this.tr=Bl.getTransformProperty(e,r.tr,this),this.so=it.getProp(e,r.tr.so,0,.01,this),this.eo=it.getProp(e,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new he,this.rMatrix=new he,this.sMatrix=new he,this.tMatrix=new he,this.matrix=new he},Tr.prototype.applyTransforms=function(e,r,s,n,d,c){var v=c?-1:1,x=n.s.v[0]+(1-n.s.v[0])*(1-d),g=n.s.v[1]+(1-n.s.v[1])*(1-d);e.translate(n.p.v[0]*v*d,n.p.v[1]*v*d,n.p.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.rotate(-n.r.v*v*d),r.translate(n.a.v[0],n.a.v[1],n.a.v[2]),s.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),s.scale(c?1/x:x,c?1/g:g),s.translate(n.a.v[0],n.a.v[1],n.a.v[2])},Tr.prototype.init=function(e,r,s,n){for(this.elem=e,this.arr=r,this.pos=s,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[s]);s>0;)s-=1,this._elements.unshift(r[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Tr.prototype.resetElements=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},Tr.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},Tr.prototype.changeGroupRender=function(e,r){var s,n=e.length;for(s=0;s<n;s+=1)e[s]._render=r,e[s].ty==="gr"&&this.changeGroupRender(e[s].it,r)},Tr.prototype.processShapes=function(e){var r,s,n,d,c,v=!1;if(this._mdf||e){var x=Math.ceil(this.c.v);if(this._groups.length<x){for(;this._groups.length<x;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),v=!0}c=0;var I;for(n=0;n<=this._groups.length-1;n+=1){if(I=c<x,this._groups[n]._render=I,this.changeGroupRender(this._groups[n].it,I),!I){var L=this.elemsData[n].it,B=L[L.length-1];B.transform.op.v!==0?(B.transform.op._mdf=!0,B.transform.op.v=0):B.transform.op._mdf=!1}c+=1}this._currentCopies=x;var E=this.o.v,R=E%1,P=E>0?Math.floor(E):Math.ceil(E),M=this.pMatrix.props,z=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(E>0){for(;_<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,R,!1),_+=R)}else if(E<0){for(;_>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-R,!0),_-=R)}n=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[n].it,s=r[r.length-1].transform.mProps.v.props,A=s.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),_!==0){for((n!==0&&d===1||n!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(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)s[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<A;y+=1)s[y]=this.matrix.props[y];_+=1,c-=1,n+=d}}else for(c=this._currentCopies,n=0,d=1;c;)r=this.elemsData[n].it,s=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,c-=1,n+=d;return v},Tr.prototype.addShape=function(){};function ws(){}$([We],ws),ws.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=it.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ws.prototype.processPath=function(e,r){var s=de.newElement();s.c=e.c;var n,d=e._length,c,v,x,g,I,L,B=0,E,R,P,M,z,w;for(n=0;n<d;n+=1)c=e.v[n],x=e.o[n],v=e.i[n],c[0]===x[0]&&c[1]===x[1]&&c[0]===v[0]&&c[1]===v[1]?(n===0||n===d-1)&&!e.c?(s.setTripleAt(c[0],c[1],x[0],x[1],v[0],v[1],B),B+=1):(n===0?g=e.v[d-1]:g=e.v[n-1],I=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),L=I?Math.min(I/2,r)/I:0,z=c[0]+(g[0]-c[0])*L,E=z,w=c[1]-(c[1]-g[1])*L,R=w,P=E-(E-c[0])*ce,M=R-(R-c[1])*ce,s.setTripleAt(E,R,P,M,z,w,B),B+=1,n===d-1?g=e.v[0]:g=e.v[n+1],I=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),L=I?Math.min(I/2,r)/I:0,P=c[0]+(g[0]-c[0])*L,E=P,M=c[1]+(g[1]-c[1])*L,R=M,z=E-(E-c[0])*ce,w=R-(R-c[1])*ce,s.setTripleAt(E,R,P,M,z,w,B),B+=1):(s.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],B),B+=1);return s},ws.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,v=this.rd.v;if(v!==0){var x,g;for(s=0;s<n;s+=1){if(x=this.shapes[s],g=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)g.addShape(this.processPath(r[d],v));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Za(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function Ul(e){return Math.abs(e)<=1e-5}function wh(e,r,s){return e*(1-s)+r*s}function di(e,r,s){return[wh(e[0],r[0],s),wh(e[1],r[1],s)]}function cg(e,r,s){if(e===0)return[];var n=r*r-4*e*s;if(n<0)return[];var d=-r/(2*e);if(n===0)return[d];var c=Math.sqrt(n)/(2*e);return[d-c,d+c]}function Nh(e,r,s,n){return[-e+3*r-3*s+n,3*e-6*r+3*s,-3*e+3*r,e]}function Lh(e){return new Ut(e,e,e,e,!1)}function Ut(e,r,s,n,d){d&&Ro(e,r)&&(r=di(e,n,1/3)),d&&Ro(s,n)&&(s=di(e,n,2/3));var c=Nh(e[0],r[0],s[0],n[0]),v=Nh(e[1],r[1],s[1],n[1]);this.a=[c[0],v[0]],this.b=[c[1],v[1]],this.c=[c[2],v[2]],this.d=[c[3],v[3]],this.points=[e,r,s,n]}Ut.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Ut.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Ut.prototype.tangentAngle=function(e){var r=this.derivative(e);return Math.atan2(r[1],r[0])},Ut.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},Ut.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Ul(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,s=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(s<0)return[];var n=Math.sqrt(s);return Ul(n)?n>0&&n<1?[r]:[]:[r-n,r+n].filter(function(d){return d>0&&d<1})},Ut.prototype.split=function(e){if(e<=0)return[Lh(this.points[0]),this];if(e>=1)return[this,Lh(this.points[this.points.length-1])];var r=di(this.points[0],this.points[1],e),s=di(this.points[1],this.points[2],e),n=di(this.points[2],this.points[3],e),d=di(r,s,e),c=di(s,n,e),v=di(d,c,e);return[new Ut(this.points[0],r,d,v,!0),new Ut(v,c,n,this.points[3],!0)]};function Rh(e,r){var s=e.points[0][r],n=e.points[e.points.length-1][r];if(s>n){var d=n;n=s,s=d}for(var c=cg(3*e.a[r],2*e.b[r],e.c[r]),v=0;v<c.length;v+=1)if(c[v]>0&&c[v]<1){var x=e.point(c[v])[r];x<s?s=x:x>n&&(n=x)}return{min:s,max:n}}Ut.prototype.bounds=function(){return{x:Rh(this,0),y:Rh(this,1)}},Ut.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Qa(e,r,s){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(r+s)/2,t1:r,t2:s}}function Mh(e){var r=e.bez.split(.5);return[Qa(r[0],e.t1,e.t),Qa(r[1],e.t,e.t2)]}function dg(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function Ns(e,r,s,n,d,c){if(dg(e,r)){if(s>=c||e.width<=n&&e.height<=n&&r.width<=n&&r.height<=n){d.push([e.t,r.t]);return}var v=Mh(e),x=Mh(r);Ns(v[0],x[0],s+1,n,d,c),Ns(v[0],x[1],s+1,n,d,c),Ns(v[1],x[0],s+1,n,d,c),Ns(v[1],x[1],s+1,n,d,c)}}Ut.prototype.intersections=function(e,r,s){r===void 0&&(r=2),s===void 0&&(s=7);var n=[];return Ns(Qa(this,0,1),Qa(e,0,1),0,r,n,s),n},Ut.shapeSegment=function(e,r){var s=(r+1)%e.length();return new Ut(e.v[r],e.o[r],e.i[s],e.v[s],!0)},Ut.shapeSegmentInverted=function(e,r){var s=(r+1)%e.length();return new Ut(e.v[s],e.i[s],e.o[r],e.v[r],!0)};function Hl(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function Ja(e,r,s,n){var d=[e[0],e[1],1],c=[r[0],r[1],1],v=[s[0],s[1],1],x=[n[0],n[1],1],g=Hl(Hl(d,c),Hl(v,x));return Ul(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function Lo(e,r,s){return[e[0]+Math.cos(r)*s,e[1]-Math.sin(r)*s]}function Gl(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function Ro(e,r){return Za(e[0],r[0])&&Za(e[1],r[1])}function Ls(){}$([We],Ls),Ls.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=it.getProp(e,r.s,0,null,this),this.frequency=it.getProp(e,r.r,0,null,this),this.pointsType=it.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Oh(e,r,s,n,d,c,v){var x=s-Math.PI/2,g=s+Math.PI/2,I=r[0]+Math.cos(s)*n*d,L=r[1]-Math.sin(s)*n*d;e.setTripleAt(I,L,I+Math.cos(x)*c,L-Math.sin(x)*c,I+Math.cos(g)*v,L-Math.sin(g)*v,e.length())}function hg(e,r){var s=[r[0]-e[0],r[1]-e[1]],n=-Math.PI*.5,d=[Math.cos(n)*s[0]-Math.sin(n)*s[1],Math.sin(n)*s[0]+Math.cos(n)*s[1]];return d}function pg(e,r){var s=r===0?e.length()-1:r-1,n=(r+1)%e.length(),d=e.v[s],c=e.v[n],v=hg(d,c);return Math.atan2(0,1)-Math.atan2(v[1],v[0])}function Ph(e,r,s,n,d,c,v){var x=pg(r,s),g=r.v[s%r._length],I=r.v[s===0?r._length-1:s-1],L=r.v[(s+1)%r._length],B=c===2?Math.sqrt(Math.pow(g[0]-I[0],2)+Math.pow(g[1]-I[1],2)):0,E=c===2?Math.sqrt(Math.pow(g[0]-L[0],2)+Math.pow(g[1]-L[1],2)):0;Oh(e,r.v[s%r._length],x,v,n,E/((d+1)*2),B/((d+1)*2),c)}function mg(e,r,s,n,d,c){for(var v=0;v<n;v+=1){var x=(v+1)/(n+1),g=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(x),L=r.point(x);Oh(e,L,I,c,s,g/((n+1)*2),g/((n+1)*2),d),c=-c}return c}Ls.prototype.processPath=function(e,r,s,n){var d=e._length,c=de.newElement();if(c.c=e.c,e.c||(d-=1),d===0)return c;var v=-1,x=Ut.shapeSegment(e,0);Ph(c,e,0,r,s,n,v);for(var g=0;g<d;g+=1)v=mg(c,x,r,s,n,-v),g===d-1&&!e.c?x=null:x=Ut.shapeSegment(e,(g+1)%d),Ph(c,e,g+1,r,s,n,v);return c},Ls.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,v=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(v!==0){var I,L;for(s=0;s<n;s+=1){if(I=this.shapes[s],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],v,x,g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Yl(e,r,s){var n=Math.atan2(r[0]-e[0],r[1]-e[1]);return[Lo(e,n,s),Lo(r,n,s)]}function Mo(e,r){var s,n,d,c,v,x,g;g=Yl(e.points[0],e.points[1],r),s=g[0],n=g[1],g=Yl(e.points[1],e.points[2],r),d=g[0],c=g[1],g=Yl(e.points[2],e.points[3],r),v=g[0],x=g[1];var I=Ja(s,n,d,c);I===null&&(I=n);var L=Ja(v,x,d,c);return L===null&&(L=v),new Ut(s,I,L,x)}function Dh(e,r,s,n,d){var c=r.points[3],v=s.points[0];if(n===3||Ro(c,v))return c;if(n===2){var x=-r.tangentAngle(1),g=-s.tangentAngle(0)+Math.PI,I=Ja(c,Lo(c,x+Math.PI/2,100),v,Lo(v,x+Math.PI/2,100)),L=I?Gl(I,c):Gl(c,v)/2,B=Lo(c,x,2*L*ce);return e.setXYAt(B[0],B[1],"o",e.length()-1),B=Lo(v,g,2*L*ce),e.setTripleAt(v[0],v[1],v[0],v[1],B[0],B[1],e.length()),v}var E=Ro(c,r.points[2])?r.points[0]:r.points[2],R=Ro(v,s.points[1])?s.points[3]:s.points[1],P=Ja(E,c,v,R);return P&&Gl(P,c)<d?(e.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],e.length()),P):c}function Fh(e,r){var s=e.intersections(r);return s.length&&Za(s[0][0],1)&&s.shift(),s.length?s[0]:null}function $h(e,r){var s=e.slice(),n=r.slice(),d=Fh(e[e.length-1],r[0]);return d&&(s[e.length-1]=e[e.length-1].split(d[0])[0],n[0]=r[0].split(d[1])[1]),e.length>1&&r.length>1&&(d=Fh(e[0],r[r.length-1]),d)?[[e[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[s,n]}function ug(e){for(var r,s=1;s<e.length;s+=1)r=$h(e[s-1],e[s]),e[s-1]=r[0],e[s]=r[1];return e.length>1&&(r=$h(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function zh(e,r){var s=e.inflectionPoints(),n,d,c,v;if(s.length===0)return[Mo(e,r)];if(s.length===1||Za(s[1],1))return c=e.split(s[0]),n=c[0],d=c[1],[Mo(n,r),Mo(d,r)];c=e.split(s[0]),n=c[0];var x=(s[1]-s[0])/(1-s[0]);return c=c[1].split(x),v=c[0],d=c[1],[Mo(n,r),Mo(v,r),Mo(d,r)]}function Rs(){}$([We],Rs),Rs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this.miterLimit=it.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Rs.prototype.processPath=function(e,r,s,n){var d=de.newElement();d.c=e.c;var c=e.length();e.c||(c-=1);var v,x,g,I=[];for(v=0;v<c;v+=1)g=Ut.shapeSegment(e,v),I.push(zh(g,r));if(!e.c)for(v=c-1;v>=0;v-=1)g=Ut.shapeSegmentInverted(e,v),I.push(zh(g,r));I=ug(I);var L=null,B=null;for(v=0;v<I.length;v+=1){var E=I[v];for(B&&(L=Dh(d,B,E[0],s,n)),B=E[E.length-1],x=0;x<E.length;x+=1)g=E[x],L&&Ro(g.points[0],L)?d.setXYAt(g.points[1][0],g.points[1][1],"o",d.length()-1):d.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],d.length()),d.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],d.length()),L=g.points[3]}return I.length&&Dh(d,B,I[0][0],s,n),d},Rs.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,v=this.amount.v,x=this.miterLimit.v,g=this.lineJoin;if(v!==0){var I,L;for(s=0;s<n;s+=1){if(I=this.shapes[s],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],v,g,x));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Vh(e){for(var r=e.fStyle?e.fStyle.split(" "):[],s="normal",n="normal",d=r.length,c,v=0;v<d;v+=1)switch(c=r[v].toLowerCase(),c){case"italic":n="italic";break;case"bold":s="700";break;case"black":s="900";break;case"medium":s="500";break;case"regular":case"normal":s="400";break;case"light":case"thin":s="200";break;default:break}return{style:n,weight:e.fWeight||s}}var $i=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},s=[];s=s.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,d=917631,c=917601,v=917626,x=65039,g=8205,I=127462,L=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function E(S){var O=S.split(","),u,b=O.length,U=[];for(u=0;u<b;u+=1)O[u]!=="sans-serif"&&O[u]!=="monospace"&&U.push(O[u]);return U.join(",")}function R(S,O){var u=N("span");u.setAttribute("aria-hidden",!0),u.style.fontFamily=O;var b=N("span");b.innerText="giItT1WQy@!-/#",u.style.position="absolute",u.style.left="-10000px",u.style.top="-10000px",u.style.fontSize="300px",u.style.fontVariant="normal",u.style.fontStyle="normal",u.style.fontWeight="normal",u.style.letterSpacing="0",u.appendChild(b),document.body.appendChild(u);var U=b.offsetWidth;return b.style.fontFamily=E(S)+", "+O,{node:b,w:U,parent:u}}function P(){var S,O=this.fonts.length,u,b,U=O;for(S=0;S<O;S+=1)this.fonts[S].loaded?U-=1:this.fonts[S].fOrigin==="n"||this.fonts[S].origin===0?this.fonts[S].loaded=!0:(u=this.fonts[S].monoCase.node,b=this.fonts[S].monoCase.w,u.offsetWidth!==b?(U-=1,this.fonts[S].loaded=!0):(u=this.fonts[S].sansCase.node,b=this.fonts[S].sansCase.w,u.offsetWidth!==b&&(U-=1,this.fonts[S].loaded=!0)),this.fonts[S].loaded&&(this.fonts[S].sansCase.parent.parentNode.removeChild(this.fonts[S].sansCase.parent),this.fonts[S].monoCase.parent.parentNode.removeChild(this.fonts[S].monoCase.parent)));U!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function M(S,O){var u=document.body&&O?"svg":"canvas",b,U=Vh(S);if(u==="svg"){var F=bt("text");F.style.fontSize="100px",F.setAttribute("font-family",S.fFamily),F.setAttribute("font-style",U.style),F.setAttribute("font-weight",U.weight),F.textContent="1",S.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",S.fClass)):F.style.fontFamily=S.fFamily,O.appendChild(F),b=F}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=U.style+" "+U.weight+" 100px "+S.fFamily,b=at}function mt(vt){return u==="svg"?(b.textContent=vt,b.getComputedTextLength()):b.measureText(vt).width}return{measureText:mt}}function z(S,O){if(!S){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=S.list;return}if(!document.body){this.isLoaded=!0,S.list.forEach(function(we){we.helper=M(we),we.cache={}}),this.fonts=S.list;return}var u=S.list,b,U=u.length,F=U;for(b=0;b<U;b+=1){var at=!0,mt,vt;if(u[b].loaded=!1,u[b].monoCase=R(u[b].fFamily,"monospace"),u[b].sansCase=R(u[b].fFamily,"sans-serif"),!u[b].fPath)u[b].loaded=!0,F-=1;else if(u[b].fOrigin==="p"||u[b].origin===3){if(mt=document.querySelectorAll('style[f-forigin="p"][f-family="'+u[b].fFamily+'"], style[f-origin="3"][f-family="'+u[b].fFamily+'"]'),mt.length>0&&(at=!1),at){var wt=N("style");wt.setAttribute("f-forigin",u[b].fOrigin),wt.setAttribute("f-origin",u[b].origin),wt.setAttribute("f-family",u[b].fFamily),wt.type="text/css",wt.innerText="@font-face {font-family: "+u[b].fFamily+"; font-style: normal; src: url('"+u[b].fPath+"');}",O.appendChild(wt)}}else if(u[b].fOrigin==="g"||u[b].origin===1){for(mt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),vt=0;vt<mt.length;vt+=1)mt[vt].href.indexOf(u[b].fPath)!==-1&&(at=!1);if(at){var Nt=N("link");Nt.setAttribute("f-forigin",u[b].fOrigin),Nt.setAttribute("f-origin",u[b].origin),Nt.type="text/css",Nt.rel="stylesheet",Nt.href=u[b].fPath,document.body.appendChild(Nt)}}else if(u[b].fOrigin==="t"||u[b].origin===2){for(mt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),vt=0;vt<mt.length;vt+=1)u[b].fPath===mt[vt].src&&(at=!1);if(at){var Kt=N("link");Kt.setAttribute("f-forigin",u[b].fOrigin),Kt.setAttribute("f-origin",u[b].origin),Kt.setAttribute("rel","stylesheet"),Kt.setAttribute("href",u[b].fPath),O.appendChild(Kt)}}u[b].helper=M(u[b],O),u[b].cache={},this.fonts.push(u[b])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function w(S){if(S){this.chars||(this.chars=[]);var O,u=S.length,b,U=this.chars.length,F;for(O=0;O<u;O+=1){for(b=0,F=!1;b<U;)this.chars[b].style===S[O].style&&this.chars[b].fFamily===S[O].fFamily&&this.chars[b].ch===S[O].ch&&(F=!0),b+=1;F||(this.chars.push(S[O]),U+=1)}}}function _(S,O,u){for(var b=0,U=this.chars.length;b<U;){if(this.chars[b].ch===S&&this.chars[b].style===O&&this.chars[b].fFamily===u)return this.chars[b];b+=1}return(typeof S=="string"&&S.charCodeAt(0)!==13||!S)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",S,O,u)),r}function y(S,O,u){var b=this.getFontByName(O),U=S;if(!b.cache[U]){var F=b.helper;if(S===" "){var at=F.measureText("|"+S+"|"),mt=F.measureText("||");b.cache[U]=(at-mt)/100}else b.cache[U]=F.measureText(S)/100}return b.cache[U]*u}function A(S){for(var O=0,u=this.fonts.length;O<u;){if(this.fonts[O].fName===S)return this.fonts[O];O+=1}return this.fonts[0]}function k(S){var O=0,u=S.charCodeAt(0);if(u>=55296&&u<=56319){var b=S.charCodeAt(1);b>=56320&&b<=57343&&(O=(u-55296)*1024+b-56320+65536)}return O}function D(S,O){var u=S.toString(16)+O.toString(16);return B.indexOf(u)!==-1}function V(S){return S===g}function H(S){return S===x}function Z(S){var O=k(S);return O>=I&&O<=L}function ft(S){return Z(S.substr(0,2))&&Z(S.substr(2,2))}function ht(S){return s.indexOf(S)!==-1}function et(S,O){var u=k(S.substr(O,2));if(u!==n)return!1;var b=0;for(O+=2;b<5;){if(u=k(S.substr(O,2)),u<c||u>v)return!1;b+=1,O+=2}return k(S.substr(O,2))===d}function yt(){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=ft,lt.isRegionalCode=Z,lt.isCombinedCharacter=ht,lt.isRegionalFlag=et,lt.isVariationSelector=H,lt.BLACK_FLAG_CODE_POINT=n;var X={addChars:w,addFonts:z,getCharData:_,getFontByName:A,measureText:y,checkLoadedFonts:P,setIsLoaded:yt};return lt.prototype=X,lt}();function Bh(e){this.animationData=e}Bh.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function fg(e){return new Bh(e)}function tn(){}tn.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,s=this.renderableComponents.length;for(r=0;r<s;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 Wl=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(r){return e[r]||""}}();function vg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function gg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function bg(e,r,s){this.p=it.getProp(r,e.v,1,0,s)}function yg(e,r,s){this.p=it.getProp(r,e.v,1,0,s)}function Eg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function Tg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function xg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function Ag(){this.p={}}function Uh(e,r){var s=e.ef||[];this.effectElements=[];var n,d=s.length,c;for(n=0;n<d;n+=1)c=new Ms(s[n],r),this.effectElements.push(c)}function Ms(e,r){this.init(e,r)}$([se],Ms),Ms.prototype.getValue=Ms.prototype.iterateDynamicProperties,Ms.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var s,n=this.data.ef.length,d,c=this.data.ef;for(s=0;s<n;s+=1){switch(d=null,c[s].ty){case 0:d=new vg(c[s],r,this);break;case 1:d=new gg(c[s],r,this);break;case 2:d=new bg(c[s],r,this);break;case 3:d=new yg(c[s],r,this);break;case 4:case 7:d=new xg(c[s],r,this);break;case 10:d=new Eg(c[s],r,this);break;case 11:d=new Tg(c[s],r,this);break;case 5:d=new Uh(c[s],r,this);break;default:d=new Ag(c[s],r,this);break}d&&this.effectElements.push(d)}};function hi(){}hi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,s=this.data.masksProperties.length;r<s;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=uh();if(r){var s=r("layer"),n=r("effects"),d=r("shape"),c=r("text"),v=r("comp");this.layerInterface=s(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var x=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(x),this.data.ty===0||this.data.xt?this.compInterface=v(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=Wl(this.data.bm),s=this.baseElement||this.layerElement;s.style["mix-blend-mode"]=r},initBaseData:function(r,s,n){this.globalData=s,this.comp=n,this.data=r,this.layerId=ke(),this.data.sr||(this.data.sr=1),this.effectsManager=new Uh(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function pi(){}pi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,s){var n,d=this.dynamicProperties.length;for(n=0;n<d;n+=1)(s||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function mi(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,s)}mi.prototype.prepareFrame=function(){},$([tn,hi,pi],mi),mi.prototype.getBaseElement=function(){return null},mi.prototype.renderFrame=function(){},mi.prototype.destroy=function(){},mi.prototype.initExpressions=function(){var e=uh();if(e){var r=e("footage");this.layerInterface=r(this)}},mi.prototype.getFootageData=function(){return this.footageData};function Ce(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,s),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=it.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ce.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var s=this._volume*this._volumeMultiplier;this._previousVolume!==s&&(this._previousVolume=s,this.audio.volume(s))},$([tn,hi,pi],Ce),Ce.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))},Ce.prototype.show=function(){},Ce.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ce.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ce.prototype.resume=function(){this._canPlay=!0},Ce.prototype.setRate=function(e){this.audio.rate(e)},Ce.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ce.prototype.getBaseElement=function(){return null},Ce.prototype.destroy=function(){},Ce.prototype.sourceRectAtTime=function(){},Ce.prototype.initExpressions=function(){};function pe(){}pe.prototype.checkLayers=function(e){var r,s=this.layers.length,n;for(this.completeLayers=!0,r=s-1;r>=0;r-=1)this.elements[r]||(n=this.layers[r],n.ip-n.st<=e-this.layers[r].st&&n.op-n.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},pe.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},pe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},pe.prototype.createAudio=function(e){return new Ce(e,this.globalData,this)},pe.prototype.createFootage=function(e){return new mi(e,this.globalData,this)},pe.prototype.buildAllItems=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},pe.prototype.includeLayers=function(e){this.completeLayers=!1;var r,s=e.length,n,d=this.layers.length;for(r=0;r<s;r+=1)for(n=0;n<d;){if(this.layers[n].id===e[r].id){this.layers[n]=e[r];break}n+=1}},pe.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},pe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},pe.prototype.buildElementParenting=function(e,r,s){for(var n=this.elements,d=this.layers,c=0,v=d.length;c<v;)d[c].ind==r&&(!n[c]||n[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(s.push(n[c]),n[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(e,d[c].parent,s):e.setHierarchy(s))),c+=1},pe.prototype.addPendingElement=function(e){this.pendingElements.push(e)},pe.prototype.searchExtraCompositions=function(e){var r,s=e.length;for(r=0;r<s;r+=1)if(e[r].xt){var n=this.createComp(e[r]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},pe.prototype.getElementById=function(e){var r,s=this.elements.length;for(r=0;r<s;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},pe.prototype.getElementByPath=function(e){var r=e.shift(),s;if(typeof r=="number")s=this.elements[r];else{var n,d=this.elements.length;for(n=0;n<d;n+=1)if(this.elements[n].data.nm===r){s=this.elements[n];break}}return e.length===0?s:s.getElementByPath(e)},pe.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new $i,this.globalData.slotManager=fg(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Sg={TRANSFORM_EFFECT:"transformEFfect"};function Oo(){}Oo.prototype={initTransform:function(){var r=new he;this.finalTransform={mProp:this.data.ks?Bl.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,s=this.finalTransform.mat,n=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<d;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,s.cloneFromProps(r),n=0;n<d;n+=1)s.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var r=0,s=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<s;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),r=1;r<s;r+=1){var d=this.localTransforms[r].matrix;n.multiply(d)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<s;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Sg.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new he;var s=0,n=r.length;for(s=0;s<n;s+=1)this.localTransforms.push(r[s])}}},globalToLocal:function(r){var s=[];s.push(this.finalTransform);for(var n=!0,d=this.comp;n;)d.finalTransform?(d.data.hasMask&&s.splice(0,0,d.finalTransform),d=d.comp):n=!1;var c,v=s.length,x;for(c=0;c<v;c+=1)x=s[c].mat.applyToPointArray(0,0,0),r=[r[0]-x[0],r[1]-x[1],0];return r},mHelper:new he};function zi(e,r,s){this.data=e,this.element=r,this.globalData=s,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=rt(c),this.solidPath="";var v,x=this.masksProperties,g=0,I=[],L,B,E=ke(),R,P,M,z,w="clipPath",_="clip-path";for(d=0;d<c;d+=1)if((x[d].mode!=="a"&&x[d].mode!=="n"||x[d].inv||x[d].o.k!==100||x[d].o.x)&&(w="mask",_="mask"),(x[d].mode==="s"||x[d].mode==="i")&&g===0?(R=bt("rect"),R.setAttribute("fill","#ffffff"),R.setAttribute("width",this.element.comp.data.w||0),R.setAttribute("height",this.element.comp.data.h||0),I.push(R)):R=null,v=bt("path"),x[d].mode==="n")this.viewData[d]={op:it.getProp(this.element,x[d].o,0,.01,this.element),prop:qa.getShapeProp(this.element,x[d],3),elem:v,lastPath:""},n.appendChild(v);else{g+=1,v.setAttribute("fill",x[d].mode==="s"?"#000000":"#ffffff"),v.setAttribute("clip-rule","nonzero");var y;if(x[d].x.k!==0?(w="mask",_="mask",z=it.getProp(this.element,x[d].x,0,null,this.element),y=ke(),P=bt("filter"),P.setAttribute("id",y),M=bt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),n.appendChild(P),v.setAttribute("stroke",x[d].mode==="s"?"#000000":"#ffffff")):(M=null,z=null),this.storedData[d]={elem:v,x:z,expan:M,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},x[d].mode==="i"){B=I.length;var A=bt("g");for(L=0;L<B;L+=1)A.appendChild(I[L]);var k=bt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",E+"_"+g),k.appendChild(v),n.appendChild(k),A.setAttribute("mask","url("+T()+"#"+E+"_"+g+")"),I.length=0,I.push(A)}else I.push(v);x[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:v,lastPath:"",op:it.getProp(this.element,x[d].o,0,.01,this.element),prop:qa.getShapeProp(this.element,x[d],3),invRect:R},this.viewData[d].prop.k||this.drawPath(x[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=bt(w),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);g>0&&(this.maskElement.setAttribute("id",E),this.element.maskedElement.setAttribute(_,"url("+T()+"#"+E+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}zi.prototype.getMaskProperty=function(e){return this.viewData[e].prop},zi.prototype.renderFrame=function(e){var r=this.element.finalTransform.mat,s,n=this.masksProperties.length;for(s=0;s<n;s+=1)if((this.viewData[s].prop._mdf||e)&&this.drawPath(this.masksProperties[s],this.viewData[s].prop.v,this.viewData[s]),(this.viewData[s].op._mdf||e)&&this.viewData[s].elem.setAttribute("fill-opacity",this.viewData[s].op.v),this.masksProperties[s].mode!=="n"&&(this.viewData[s].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[s].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[s].x&&(this.storedData[s].x._mdf||e))){var d=this.storedData[s].expan;this.storedData[s].x.v<0?(this.storedData[s].lastOperator!=="erode"&&(this.storedData[s].lastOperator="erode",this.storedData[s].elem.setAttribute("filter","url("+T()+"#"+this.storedData[s].filterId+")")),d.setAttribute("radius",-this.storedData[s].x.v)):(this.storedData[s].lastOperator!=="dilate"&&(this.storedData[s].lastOperator="dilate",this.storedData[s].elem.setAttribute("filter",null)),this.storedData[s].elem.setAttribute("stroke-width",this.storedData[s].x.v*2))}},zi.prototype.getMaskelement=function(){return this.maskElement},zi.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},zi.prototype.drawPath=function(e,r,s){var n=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[d][0]+","+r.i[d][1]+" "+r.v[d][0]+","+r.v[d][1];if(r.c&&c>1&&(n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),s.lastPath!==n){var v="";s.elem&&(r.c&&(v=e.inv?this.solidPath+n:n),s.elem.setAttribute("d",v)),s.lastPath=n}},zi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Os=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=s;function r(n,d){var c=bt("filter");return c.setAttribute("id",n),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function s(){var n=bt("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return e}(),Hh=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),en={},Gh="filter_result_";function jl(e){var r,s="SourceGraphic",n=e.data.ef?e.data.ef.length:0,d=ke(),c=Os.createFilter(d,!0),v=0;this.filters=[];var x;for(r=0;r<n;r+=1){x=null;var g=e.data.ef[r].ty;if(en[g]){var I=en[g].effect;x=new I(c,e.effectsManager.effectElements[r],e,Gh+v,s),s=Gh+v,en[g].countsAsEffect&&(v+=1)}x&&this.filters.push(x)}v&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+T()+"#"+d+")")),this.filters.length&&e.addRenderableComponent(this)}jl.prototype.renderFrame=function(e){var r,s=this.filters.length;for(r=0;r<s;r+=1)this.filters[r].renderFrame(e)},jl.prototype.getEffects=function(e){var r,s=this.filters.length,n=[];for(r=0;r<s;r+=1)this.filters[r].type===e&&n.push(this.filters[r]);return n};function ZT(e,r,s){en[e]={effect:r,countsAsEffect:s}}function Ps(){}Ps.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var s=bt("g");s.setAttribute("id",this.layerId),s.appendChild(this.layerElement),r=s,this.globalData.defs.appendChild(s)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=bt("clipPath"),d=bt("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=ke();if(n.setAttribute("id",c),n.appendChild(d),this.globalData.defs.appendChild(n),this.checkMasks()){var v=bt("g");v.setAttribute("clip-path","url("+T()+"#"+c+")"),v.appendChild(this.layerElement),this.transformedElement=v,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+T()+"#"+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 zi(this.data,this,this.globalData),this.renderableEffectsManager=new jl(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var s=this.layerId+"_"+r,n,d,c,v;if(r===1||r===3){var x=bt("mask");x.setAttribute("id",s),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=bt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(c),this.globalData.defs.appendChild(x),!Hh.maskType&&r===1&&(x.setAttribute("mask-type","luminance"),n=ke(),d=Os.createFilter(n),this.globalData.defs.appendChild(d),d.appendChild(Os.createAlphaToLuminanceFilter()),v=bt("g"),v.appendChild(c),x.appendChild(v),v.setAttribute("filter","url("+T()+"#"+n+")"))}else if(r===2){var g=bt("mask");g.setAttribute("id",s),g.setAttribute("mask-type","alpha");var I=bt("g");g.appendChild(I),n=ke(),d=Os.createFilter(n);var L=bt("feComponentTransfer");L.setAttribute("in","SourceGraphic"),d.appendChild(L);var B=bt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),L.appendChild(B),this.globalData.defs.appendChild(d);var E=bt("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("+T()+"#"+n+")"),I.appendChild(E),c=bt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),Hh.maskType||(g.setAttribute("mask-type","luminance"),d.appendChild(Os.createAlphaToLuminanceFilter()),v=bt("g"),I.appendChild(E),v.appendChild(this.layerElement),I.appendChild(v)),this.globalData.defs.appendChild(g)}this.matteMasks[r]=s}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+T()+"#"+r+")")}};function Po(){}Po.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ds(){}(function(){var e={initElement:function(s,n,d){this.initFrame(),this.initBaseData(s,n,d),this.initTransform(s,n,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var s=this.baseElement||this.layerElement;s.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var s=this.baseElement||this.layerElement;s.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(s){this._mdf=!1,this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};$([tn,K(e)],Ds)})();function Fs(e,r,s){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,s),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}$([hi,Oo,Ps,Po,pi,Ds],Fs),Fs.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},Fs.prototype.sourceRectAtTime=function(){return this.sourceRect};function _g(e,r){this.elem=e,this.pos=r}function Yh(){}Yh.prototype={addShapeToModifiers:function(r){var s,n=this.shapeModifiers.length;for(s=0;s<n;s+=1)this.shapeModifiers[s].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var s=0,n=this.shapeModifiers.length;s<n;)if(this.shapeModifiers[s].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,s=this.shapes.length;for(r=0;r<s;r+=1)this.shapes[r].sh.reset();s=this.shapeModifiers.length;var n;for(r=s-1;r>=0&&(n=this.shapeModifiers[r].processShapes(this._isFirstFrame),!n);r-=1);}},searchProcessedElement:function(r){for(var s=this.processedElements,n=0,d=s.length;n<d;){if(s[n].elem===r)return s[n].pos;n+=1}return 0},addProcessedElement:function(r,s){for(var n=this.processedElements,d=n.length;d;)if(d-=1,n[d].elem===r){n[d].pos=s;return}n.push(new _g(r,s))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Wh={1:"butt",2:"round",3:"square"},jh={1:"miter",2:"round",3:"bevel"};function qh(e,r,s){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=s,this.lvl=r,this._isAnimated=!!s.k;for(var n=0,d=e.length;n<d;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}qh.prototype.setAsAnimated=function(){this._isAnimated=!0};function Kh(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=bt("path"),this.msElem=null}Kh.prototype.reset=function(){this.d="",this._mdf=!1};function rn(e,r,s,n){this.elem=e,this.frameId=-1,this.dataProps=rt(r.length),this.renderer=s,this.k=!1,this.dashStr="",this.dashArray=Q("float32",r.length?r.length-1:0),this.dashoffset=Q("float32",1),this.initDynamicPropertyContainer(n);var d,c=r.length||0,v;for(d=0;d<c;d+=1)v=it.getProp(e,r[d].v,0,0,this),this.k=v.k||this.k,this.dataProps[d]={n:r[d].n,p:v};this.k||this.getValue(!0),this._isAnimated=this.k}rn.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var r=0,s=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<s;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}},$([se],rn);function Xh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.w=it.getProp(e,r.w,0,null,this),this.d=new rn(e,r.d||{},"svg",this),this.c=it.getProp(e,r.c,1,255,this),this.style=s,this._isAnimated=!!this._isAnimated}$([se],Xh);function Zh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.c=it.getProp(e,r.c,1,255,this),this.style=s}$([se],Zh);function Qh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=s}$([se],Qh);function $s(e,r,s){this.data=r,this.c=Q("uint8c",r.p*4);var n=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=Q("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(s),this.prop=it.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}$s.prototype.comparePoints=function(e,r){for(var s=0,n=this.o.length/2,d;s<n;){if(d=Math.abs(e[s*4]-e[r*4+s*2]),d>.01)return!1;s+=1}return!0},$s.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},$s.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,s=this.data.p*4,n,d;for(r=0;r<s;r+=1)n=r%4===0?100:255,d=Math.round(this.prop.v[r]*n),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!e);if(this.o.length)for(s=this.prop.v.length,r=this.data.p*4;r<s;r+=1)n=r%2===0?100:1,d=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==d&&(this.o[r-this.data.p*4]=d,this._omdf=!e);this._mdf=!e}},$([se],$s);function Do(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,s)}Do.prototype.initGradientData=function(e,r,s){this.o=it.getProp(e,r.o,0,.01,this),this.s=it.getProp(e,r.s,1,null,this),this.e=it.getProp(e,r.e,1,null,this),this.h=it.getProp(e,r.h||{k:0},0,.01,this),this.a=it.getProp(e,r.a||{k:0},0,It,this),this.g=new $s(e,r.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,r),this.setGradientOpacity(r,s),this._isAnimated=!!this._isAnimated},Do.prototype.setGradientData=function(e,r){var s=ke(),n=bt(r.t===1?"linearGradient":"radialGradient");n.setAttribute("id",s),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,v,x;for(x=r.g.p*4,v=0;v<x;v+=4)c=bt("stop"),n.appendChild(c),d.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+T()+"#"+s+")"),this.gf=n,this.cst=d},Do.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var s,n,d,c=bt("mask"),v=bt("path");c.appendChild(v);var x=ke(),g=ke();c.setAttribute("id",g);var I=bt(e.t===1?"linearGradient":"radialGradient");I.setAttribute("id",x),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var L=this.stops;for(n=e.g.p*4;n<d;n+=2)s=bt("stop"),s.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(s),L.push(s);v.setAttribute(e.ty==="gf"?"fill":"stroke","url("+T()+"#"+x+")"),e.ty==="gs"&&(v.setAttribute("stroke-linecap",Wh[e.lc||2]),v.setAttribute("stroke-linejoin",jh[e.lj||2]),e.lj===1&&v.setAttribute("stroke-miterlimit",e.ml)),this.of=I,this.ms=c,this.ost=L,this.maskId=g,r.msElem=v}},$([se],Do);function Jh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=it.getProp(e,r.w,0,null,this),this.d=new rn(e,r.d||{},"svg",this),this.initGradientData(e,r,s),this._isAnimated=!!this._isAnimated}$([Do,se],Jh);function Ig(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function kg(e,r,s){this.transform={mProps:e,op:r,container:s},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var tp=function(r,s,n,d){if(s===0)return"";var c=r.o,v=r.i,x=r.v,g,I=" M"+d.applyToPointStringified(x[0][0],x[0][1]);for(g=1;g<s;g+=1)I+=" C"+d.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+d.applyToPointStringified(v[g][0],v[g][1])+" "+d.applyToPointStringified(x[g][0],x[g][1]);return n&&s&&(I+=" C"+d.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+d.applyToPointStringified(v[0][0],v[0][1])+" "+d.applyToPointStringified(x[0][0],x[0][1]),I+="z"),I},Cg=function(){var e=new he,r=new he,s={createRenderFunction:n};function n(B){switch(B.ty){case"fl":return x;case"gf":return I;case"gs":return g;case"st":return L;case"sh":case"el":case"rc":case"sr":return v;case"tr":return d;case"no":return c;default:return null}}function d(B,E,R){(R||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(R||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function v(B,E,R){var P,M,z,w,_,y,A=E.styles.length,k=E.lvl,D,V,H,Z;for(y=0;y<A;y+=1){if(w=E.sh._mdf||R,E.styles[y].lvl<k){for(V=r.reset(),H=k-E.styles[y].lvl,Z=E.transformers.length-1;!w&&H>0;)w=E.transformers[Z].mProps._mdf||w,H-=1,Z-=1;if(w)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=e;if(D=E.sh.paths,M=D._length,w){for(z="",P=0;P<M;P+=1)_=D.shapes[P],_&&_._length&&(z+=tp(_,_._length,_.c,V));E.caches[y]=z}else z=E.caches[y];E.styles[y].d+=B.hd===!0?"":z,E.styles[y]._mdf=w||E.styles[y]._mdf}}function x(B,E,R){var P=E.style;(E.c._mdf||R)&&P.pElem.setAttribute("fill","rgb("+oe(E.c.v[0])+","+oe(E.c.v[1])+","+oe(E.c.v[2])+")"),(E.o._mdf||R)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function g(B,E,R){I(B,E,R),L(B,E,R)}function I(B,E,R){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,w=E.e.v;if(E.o._mdf||R){var _=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(_,E.o.v)}if(E.s._mdf||R){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||R){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||R)){var ft=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",ft[D*2]+"%"),H.setAttribute("stop-opacity",ft[D*2+1])}if(B.t===1)(E.e._mdf||R)&&(P.setAttribute("x2",w[0]),P.setAttribute("y2",w[1]),M&&!E.g._collapsable&&(E.of.setAttribute("x2",w[0]),E.of.setAttribute("y2",w[1])));else{var ht;if((E.s._mdf||E.e._mdf||R)&&(ht=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)),P.setAttribute("r",ht),M&&!E.g._collapsable&&E.of.setAttribute("r",ht)),E.e._mdf||E.h._mdf||E.a._mdf||R){ht||(ht=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)));var et=Math.atan2(w[1]-z[1],w[0]-z[0]),yt=E.h.v;yt>=1?yt=.99:yt<=-1&&(yt=-.99);var lt=ht*yt,X=Math.cos(et+E.a.v)*lt+z[0],S=Math.sin(et+E.a.v)*lt+z[1];P.setAttribute("fx",X),P.setAttribute("fy",S),M&&!E.g._collapsable&&(E.of.setAttribute("fx",X),E.of.setAttribute("fy",S))}}}function L(B,E,R){var P=E.style,M=E.d;M&&(M._mdf||R)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||R)&&P.pElem.setAttribute("stroke","rgb("+oe(E.c.v[0])+","+oe(E.c.v[1])+","+oe(E.c.v[2])+")"),(E.o._mdf||R)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||R)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return s}();function Yt(e,r,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,s),this.prevViewData=[]}$([hi,Oo,Ps,Yh,Po,pi,Ds],Yt),Yt.prototype.initSecondaryElement=function(){},Yt.prototype.identityMatrix=new he,Yt.prototype.buildExpressionInterface=function(){},Yt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Yt.prototype.filterUniqueShapes=function(){var e,r=this.shapes.length,s,n,d=this.stylesList.length,c,v=[],x=!1;for(n=0;n<d;n+=1){for(c=this.stylesList[n],x=!1,v.length=0,e=0;e<r;e+=1)s=this.shapes[e],s.styles.indexOf(c)!==-1&&(v.push(s),x=s._isAnimated||x);v.length>1&&x&&this.setShapesAsAnimated(v)}},Yt.prototype.setShapesAsAnimated=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r].setAsAnimated()},Yt.prototype.createStyleElement=function(e,r){var s,n=new Kh(e,r),d=n.pElem;if(e.ty==="st")s=new Xh(this,e,n);else if(e.ty==="fl")s=new Zh(this,e,n);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?Do:Jh;s=new c(this,e,n),this.globalData.defs.appendChild(s.gf),s.maskId&&(this.globalData.defs.appendChild(s.ms),this.globalData.defs.appendChild(s.of),d.setAttribute("mask","url("+T()+"#"+s.maskId+")"))}else e.ty==="no"&&(s=new Qh(this,e,n));return(e.ty==="st"||e.ty==="gs")&&(d.setAttribute("stroke-linecap",Wh[e.lc||2]),d.setAttribute("stroke-linejoin",jh[e.lj||2]),d.setAttribute("fill-opacity","0"),e.lj===1&&d.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&d.setAttribute("fill-rule","evenodd"),e.ln&&d.setAttribute("id",e.ln),e.cl&&d.setAttribute("class",e.cl),e.bm&&(d.style["mix-blend-mode"]=Wl(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,s),s},Yt.prototype.createGroupElement=function(e){var r=new Ig;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=Wl(e.bm)),r},Yt.prototype.createTransformElement=function(e,r){var s=Bl.getTransformProperty(this,e,this),n=new kg(s,s.o,r);return this.addToAnimatedContents(e,n),n},Yt.prototype.createShapeElement=function(e,r,s){var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7);var d=qa.getShapeProp(this,e,n,this),c=new qh(r,s,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Yt.prototype.addToAnimatedContents=function(e,r){for(var s=0,n=this.animatedContents.length;s<n;){if(this.animatedContents[s].element===r)return;s+=1}this.animatedContents.push({fn:Cg.createRenderFunction(e),element:r,data:e})},Yt.prototype.setElementStyles=function(e){var r=e.styles,s,n=this.stylesList.length;for(s=0;s<n;s+=1)this.stylesList[s].closed||r.push(this.stylesList[s])},Yt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Yt.prototype.searchShapes=function(e,r,s,n,d,c,v){var x=[].concat(c),g,I=e.length-1,L,B,E=[],R=[],P,M,z;for(g=I;g>=0;g-=1){if(z=this.searchProcessedElement(e[g]),z?r[g]=s[z-1]:e[g]._render=v,e[g].ty==="fl"||e[g].ty==="st"||e[g].ty==="gf"||e[g].ty==="gs"||e[g].ty==="no")z?r[g].style.closed=!1:r[g]=this.createStyleElement(e[g],d),e[g]._render&&r[g].style.pElem.parentNode!==n&&n.appendChild(r[g].style.pElem),E.push(r[g].style);else if(e[g].ty==="gr"){if(!z)r[g]=this.createGroupElement(e[g]);else for(B=r[g].it.length,L=0;L<B;L+=1)r[g].prevViewData[L]=r[g].it[L];this.searchShapes(e[g].it,r[g].it,r[g].prevViewData,r[g].gr,d+1,x,v),e[g]._render&&r[g].gr.parentNode!==n&&n.appendChild(r[g].gr)}else e[g].ty==="tr"?(z||(r[g]=this.createTransformElement(e[g],n)),P=r[g].transform,x.push(P)):e[g].ty==="sh"||e[g].ty==="rc"||e[g].ty==="el"||e[g].ty==="sr"?(z||(r[g]=this.createShapeElement(e[g],x,d)),this.setElementStyles(r[g])):e[g].ty==="tm"||e[g].ty==="rd"||e[g].ty==="ms"||e[g].ty==="pb"||e[g].ty==="zz"||e[g].ty==="op"?(z?(M=r[g],M.closed=!1):(M=ci.getModifier(e[g].ty),M.init(this,e[g]),r[g]=M,this.shapeModifiers.push(M)),R.push(M)):e[g].ty==="rp"&&(z?(M=r[g],M.closed=!0):(M=ci.getModifier(e[g].ty),r[g]=M,M.init(this,e,g,r),this.shapeModifiers.push(M),v=!1),R.push(M));this.addProcessedElement(e[g],g+1)}for(I=E.length,g=0;g<I;g+=1)E[g].closed=!0;for(I=R.length,g=0;g<I;g+=1)R[g].closed=!0},Yt.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Yt.prototype.renderShape=function(){var e,r=this.animatedContents.length,s;for(e=0;e<r;e+=1)s=this.animatedContents[e],(this._isFirstFrame||s.element._isAnimated)&&s.data!==!0&&s.fn(s.data,s.element,this._isFirstFrame)},Yt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ql(e,r,s,n,d,c){this.o=e,this.sw=r,this.sc=s,this.fc=n,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!s,fc:!!n,m:!0,p:!0}}ql.prototype.update=function(e,r,s,n,d,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var v=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,v=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,v=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,v=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,v=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,v=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,v=!0),v};function ge(e,r){this._frameId=o,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}ge.prototype.defaultBoxWidth=[0,0],ge.prototype.copyData=function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},ge.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},ge.prototype.searchProperty=function(){return this.searchKeyframes()},ge.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ge.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},ge.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,d=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(n=0;n<d;n+=1)s!==this.keysIndex?c=this.effectsSequence[n](c,c.t):c=this.effectsSequence[n](this.currentData,c.t);r!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},ge.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,r=this.elem.comp.renderedFrame,s=0,n=e.length;s<=n-1&&!(s===n-1||e[s+1].t>r);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s},ge.prototype.buildFinalText=function(e){for(var r=[],s=0,n=e.length,d,c,v=!1,x=!1,g="";s<n;)v=x,x=!1,d=e.charCodeAt(s),g=e.charAt(s),$i.isCombinedCharacter(d)?v=!0:d>=55296&&d<=56319?$i.isRegionalFlag(e,s)?g=e.substr(s,14):(c=e.charCodeAt(s+1),c>=56320&&c<=57343&&($i.isModifier(d,c)?(g=e.substr(s,2),v=!0):$i.isFlagEmoji(e.substr(s,4))?g=e.substr(s,4):g=e.substr(s,2))):d>56319?(c=e.charCodeAt(s+1),$i.isVariationSelector(d)&&(v=!0)):$i.isZeroWidthJoiner(d)&&(v=!0,x=!0),v?(r[r.length-1]+=g,v=!1):r.push(g),s+=g.length;return r},ge.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,s=this.data,n=[],d,c,v,x=0,g,I=s.m.g,L=0,B=0,E=0,R=[],P=0,M=0,z,w,_=r.getFontByName(e.f),y,A=0,k=Vh(_);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var D=e.tr/1e3*e.finalSize,V;if(e.sz)for(var H=!0,Z=e.sz[0],ft=e.sz[1],ht,et;H;){et=this.buildFinalText(e.t),ht=0,P=0,c=et.length,D=e.tr/1e3*e.finalSize;var yt=-1;for(d=0;d<c;d+=1)V=et[d].charCodeAt(0),v=!1,et[d]===" "?yt=d:(V===13||V===3)&&(P=0,v=!0,ht+=e.finalLineHeight||e.finalSize*1.2),r.chars?(y=r.getCharData(et[d],_.fStyle,_.fFamily),A=v?0:y.w*e.finalSize/100):A=r.measureText(et[d],e.f,e.finalSize),P+A>Z&&et[d]!==" "?(yt===-1?c+=1:d=yt,ht+=e.finalLineHeight||e.finalSize*1.2,et.splice(d,yt===d?1:0,"\r"),yt=-1,P=0):(P+=A,P+=D);ht+=_.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ft<ht?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=et,c=e.finalText.length,H=!1)}P=-D,A=0;var lt=0,X;for(d=0;d<c;d+=1)if(v=!1,X=e.finalText[d],V=X.charCodeAt(0),V===13||V===3?(lt=0,R.push(P),M=P>M?P:M,P=-2*D,g="",v=!0,E+=1):g=X,r.chars?(y=r.getCharData(X,_.fStyle,r.getFontByName(e.f).fFamily),A=v?0:y.w*e.finalSize/100):A=r.measureText(g,e.f,e.finalSize),X===" "?lt+=A+D:(P+=A+D+lt,lt=0),n.push({l:A,an:A,add:L,n:v,anIndexes:[],val:g,line:E,animatorJustifyOffset:0}),I==2){if(L+=A,g===""||g===" "||d===c-1){for((g===""||g===" ")&&(L-=A);B<=d;)n[B].an=L,n[B].ind=x,n[B].extra=A,B+=1;x+=1,L=0}}else if(I==3){if(L+=A,g===""||d===c-1){for(g===""&&(L-=A);B<=d;)n[B].an=L,n[B].ind=x,n[B].extra=A,B+=1;L=0,x+=1}}else n[x].ind=x,n[x].extra=0,x+=1;if(e.l=n,M=P>M?P:M,R.push(P),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=M,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=R;var S=s.a,O,u;w=S.length;var b,U,F=[];for(z=0;z<w;z+=1){for(O=S[z],O.a.sc&&(e.strokeColorAnim=!0),O.a.sw&&(e.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(e.fillColorAnim=!0),U=0,b=O.s.b,d=0;d<c;d+=1)u=n[d],u.anIndexes[z]=U,(b==1&&u.val!==""||b==2&&u.val!==""&&u.val!==" "||b==3&&(u.n||u.val==" "||d==c-1)||b==4&&(u.n||d==c-1))&&(O.s.rn===1&&F.push(U),U+=1);s.a[z].s.totalChars=U;var at=-1,mt;if(O.s.rn===1)for(d=0;d<c;d+=1)u=n[d],at!=u.anIndexes[z]&&(at=u.anIndexes[z],mt=F.splice(Math.floor(Math.random()*F.length),1)[0]),u.anIndexes[z]=mt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=_.ascent*e.finalSize/100},ge.prototype.updateDocumentData=function(e,r){r=r===void 0?this.keysIndex:r;var s=this.copyData({},this.data.d.k[r].s);s=this.copyData(s,e),this.data.d.k[r].s=s,this.recalculate(r),this.setCurrentData(s),this.elem.addDynamicProperty(this)},ge.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},ge.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},ge.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var wg=function(){var e=Math.max,r=Math.min,s=Math.floor;function n(c,v){this._currentTextLength=-1,this.k=!1,this.data=v,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=it.getProp(c,v.s||{k:0},0,0,this),"e"in v?this.e=it.getProp(c,v.e,0,0,this):this.e={v:100},this.o=it.getProp(c,v.o||{k:0},0,0,this),this.xe=it.getProp(c,v.xe||{k:0},0,0,this),this.ne=it.getProp(c,v.ne||{k:0},0,0,this),this.sm=it.getProp(c,v.sm||{k:100},0,0,this),this.a=it.getProp(c,v.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(v){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,g=0,I=1,L=1;this.ne.v>0?x=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:L=1+this.xe.v/100;var B=ks.getBezierEasing(x,g,I,L).get,E=0,R=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===R?E=v>=P?1:0:E=e(0,r(.5/(P-R)+(v-R)/(P-R),1)),E=B(E);else if(M===3)P===R?E=v>=P?0:1:E=1-e(0,r(.5/(P-R)+(v-R)/(P-R),1)),E=B(E);else if(M===4)P===R?E=0:(E=e(0,r(.5/(P-R)+(v-R)/(P-R),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===R)E=0;else{var z=P-R;v=r(e(0,v+.5-R),P-R);var w=-z/2+v,_=z/2;E=Math.sqrt(1-w*w/(_*_))}E=B(E)}else M===6?(P===R?E=0:(v=r(e(0,v+.5-R),P-R),E=(1+Math.cos(Math.PI+Math.PI*2*v/(P-R)))/2),E=B(E)):(v>=s(R)&&(v-R<0?E=e(0,r(r(P,1)-(R-v),1)):E=e(0,r(P-v,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(v){this.iterateDynamicProperties(),this._mdf=v||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,v&&this.data.r===2&&(this.e.v=this._currentTextLength);var x=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/x,I=this.s.v/x+g,L=this.e.v/x+g;if(I>L){var B=I;I=L,L=B}this.finalS=I,this.finalE=L}},$([se],n);function d(c,v,x){return new n(c,v,x)}return{getTextSelectorProp:d}}();function Ng(e,r,s){var n={propType:!1},d=it.getProp,c=r.a;this.a={r:c.r?d(e,c.r,0,It,s):n,rx:c.rx?d(e,c.rx,0,It,s):n,ry:c.ry?d(e,c.ry,0,It,s):n,sk:c.sk?d(e,c.sk,0,It,s):n,sa:c.sa?d(e,c.sa,0,It,s):n,s:c.s?d(e,c.s,1,.01,s):n,a:c.a?d(e,c.a,1,0,s):n,o:c.o?d(e,c.o,0,.01,s):n,p:c.p?d(e,c.p,1,0,s):n,sw:c.sw?d(e,c.sw,0,0,s):n,sc:c.sc?d(e,c.sc,1,0,s):n,fc:c.fc?d(e,c.fc,1,0,s):n,fh:c.fh?d(e,c.fh,0,0,s):n,fs:c.fs?d(e,c.fs,0,.01,s):n,fb:c.fb?d(e,c.fb,0,.01,s):n,t:c.t?d(e,c.t,0,0,s):n},this.s=wg.getTextSelectorProp(e,r.s,s),this.s.t=r.s.t}function Vi(e,r,s){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=s,this._animatorsData=rt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}Vi.prototype.searchProperties=function(){var e,r=this._textData.a.length,s,n=it.getProp;for(e=0;e<r;e+=1)s=this._textData.a[e],this._animatorsData[e]=new Ng(this._elem,s,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},Vi.prototype.getMeasures=function(e,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var s=this._moreOptions.alignment.v,n=this._animatorsData,d=this._textData,c=this.mHelper,v=this._renderType,x=this.renderedLetters.length,g,I,L,B,E=e.l,R,P,M,z,w,_,y,A,k,D,V,H,Z,ft,ht;if(this._hasMaskedPath){if(ht=this._pathData.m,!this._pathData.n||this._pathData._mdf){var et=ht.v;this._pathData.r.v&&(et=et.reverse()),R={tLength:0,segments:[]},B=et._length-1;var yt;for(H=0,L=0;L<B;L+=1)yt=Er.buildBezierData(et.v[L],et.v[L+1],[et.o[L][0]-et.v[L][0],et.o[L][1]-et.v[L][1]],[et.i[L+1][0]-et.v[L+1][0],et.i[L+1][1]-et.v[L+1][1]]),R.tLength+=yt.segmentLength,R.segments.push(yt),H+=yt.segmentLength;L=B,ht.v.c&&(yt=Er.buildBezierData(et.v[L],et.v[0],[et.o[L][0]-et.v[L][0],et.o[L][1]-et.v[L][1]],[et.i[0][0]-et.v[0][0],et.i[0][1]-et.v[0][1]]),R.tLength+=yt.segmentLength,R.segments.push(yt),H+=yt.segmentLength),this._pathData.pi=R}if(R=this._pathData.pi,P=this._pathData.f.v,y=0,_=1,z=0,w=!0,D=R.segments,P<0&&ht.v.c)for(R.tLength<Math.abs(P)&&(P=-Math.abs(P)%R.tLength),y=D.length-1,k=D[y].points,_=k.length-1;P<0;)P+=k[_].partialLength,_-=1,_<0&&(y-=1,k=D[y].points,_=k.length-1);k=D[y].points,A=k[_-1],M=k[_],V=M.partialLength}B=E.length,g=0,I=0;var lt=e.finalSize*1.2*.714,X=!0,S,O,u,b,U;b=n.length;var F,at=-1,mt,vt,wt,Nt=P,Kt=y,we=_,xr=-1,Ne,ae,$e,Ot,ct,Fr,fi,$r,Ar="",zr=this.defaultPropsArray,Vr;if(e.j===2||e.j===1){var Le=0,vi=0,gi=e.j===2?-.5:-1,cr=0,bi=!0;for(L=0;L<B;L+=1)if(E[L].n){for(Le&&(Le+=vi);cr<L;)E[cr].animatorJustifyOffset=Le,cr+=1;Le=0,bi=!0}else{for(u=0;u<b;u+=1)S=n[u].a,S.t.propType&&(bi&&e.j===2&&(vi+=S.t.v*gi),O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?Le+=S.t.v*F[0]*gi:Le+=S.t.v*F*gi);bi=!1}for(Le&&(Le+=vi);cr<L;)E[cr].animatorJustifyOffset=Le,cr+=1}for(L=0;L<B;L+=1){if(c.reset(),Ne=1,E[L].n)g=0,I+=e.yOffset,I+=X?1:0,P=Nt,X=!1,this._hasMaskedPath&&(y=Kt,_=we,k=D[y].points,A=k[_-1],M=k[_],V=M.partialLength,z=0),Ar="",$r="",Fr="",Vr="",zr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(xr!==E[L].line){switch(e.j){case 1:P+=H-e.lineWidths[E[L].line];break;case 2:P+=(H-e.lineWidths[E[L].line])/2;break;default:break}xr=E[L].line}at!==E[L].ind&&(E[at]&&(P+=E[at].extra),P+=E[L].an/2,at=E[L].ind),P+=s[0]*E[L].an*.005;var dr=0;for(u=0;u<b;u+=1)S=n[u].a,S.p.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?dr+=S.p.v[0]*F[0]:dr+=S.p.v[0]*F),S.a.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?dr+=S.a.v[0]*F[0]:dr+=S.a.v[0]*F);for(w=!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)*at/(B-1),P+=this._pathData.f.v);w;)z+V>=P+dr||!k?(Z=(P+dr-z)/M.partialLength,vt=A.point[0]+(M.point[0]-A.point[0])*Z,wt=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-s[0]*E[L].an*.005,-(s[1]*lt)*.01),w=!1):k&&(z+=M.partialLength,_+=1,_>=k.length&&(_=0,y+=1,D[y]?k=D[y].points:ht.v.c?(_=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[_],V=M.partialLength));mt=E[L].an/2-E[L].add,c.translate(-mt,0,0)}else mt=E[L].an/2-E[L].add,c.translate(-mt,0,0),c.translate(-s[0]*E[L].an*.005,-s[1]*lt*.01,0);for(u=0;u<b;u+=1)S=n[u].a,S.t.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),(g!==0||e.j!==0)&&(this._hasMaskedPath?F.length?P+=S.t.v*F[0]:P+=S.t.v*F:F.length?g+=S.t.v*F[0]:g+=S.t.v*F));for(e.strokeWidthAnim&&($e=e.sw||0),e.strokeColorAnim&&(e.sc?ae=[e.sc[0],e.sc[1],e.sc[2]]:ae=[0,0,0]),e.fillColorAnim&&e.fc&&(Ot=[e.fc[0],e.fc[1],e.fc[2]]),u=0;u<b;u+=1)S=n[u].a,S.a.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?c.translate(-S.a.v[0]*F[0],-S.a.v[1]*F[1],S.a.v[2]*F[2]):c.translate(-S.a.v[0]*F,-S.a.v[1]*F,S.a.v[2]*F));for(u=0;u<b;u+=1)S=n[u].a,S.s.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?c.scale(1+(S.s.v[0]-1)*F[0],1+(S.s.v[1]-1)*F[1],1):c.scale(1+(S.s.v[0]-1)*F,1+(S.s.v[1]-1)*F,1));for(u=0;u<b;u+=1){if(S=n[u].a,O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),S.sk.propType&&(F.length?c.skewFromAxis(-S.sk.v*F[0],S.sa.v*F[1]):c.skewFromAxis(-S.sk.v*F,S.sa.v*F)),S.r.propType&&(F.length?c.rotateZ(-S.r.v*F[2]):c.rotateZ(-S.r.v*F)),S.ry.propType&&(F.length?c.rotateY(S.ry.v*F[1]):c.rotateY(S.ry.v*F)),S.rx.propType&&(F.length?c.rotateX(S.rx.v*F[0]):c.rotateX(S.rx.v*F)),S.o.propType&&(F.length?Ne+=(S.o.v*F[0]-Ne)*F[0]:Ne+=(S.o.v*F-Ne)*F),e.strokeWidthAnim&&S.sw.propType&&(F.length?$e+=S.sw.v*F[0]:$e+=S.sw.v*F),e.strokeColorAnim&&S.sc.propType)for(ct=0;ct<3;ct+=1)F.length?ae[ct]+=(S.sc.v[ct]-ae[ct])*F[0]:ae[ct]+=(S.sc.v[ct]-ae[ct])*F;if(e.fillColorAnim&&e.fc){if(S.fc.propType)for(ct=0;ct<3;ct+=1)F.length?Ot[ct]+=(S.fc.v[ct]-Ot[ct])*F[0]:Ot[ct]+=(S.fc.v[ct]-Ot[ct])*F;S.fh.propType&&(F.length?Ot=mh(Ot,S.fh.v*F[0]):Ot=mh(Ot,S.fh.v*F)),S.fs.propType&&(F.length?Ot=hh(Ot,S.fs.v*F[0]):Ot=hh(Ot,S.fs.v*F)),S.fb.propType&&(F.length?Ot=ph(Ot,S.fb.v*F[0]):Ot=ph(Ot,S.fb.v*F))}}for(u=0;u<b;u+=1)S=n[u].a,S.p.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,S.p.v[1]*F[0],-S.p.v[2]*F[1]):c.translate(0,S.p.v[1]*F,-S.p.v[2]*F):F.length?c.translate(S.p.v[0]*F[0],S.p.v[1]*F[1],-S.p.v[2]*F[2]):c.translate(S.p.v[0]*F,S.p.v[1]*F,-S.p.v[2]*F));if(e.strokeWidthAnim&&(Fr=$e<0?0:$e),e.strokeColorAnim&&(fi="rgb("+Math.round(ae[0]*255)+","+Math.round(ae[1]*255)+","+Math.round(ae[2]*255)+")"),e.fillColorAnim&&e.fc&&($r="rgb("+Math.round(Ot[0]*255)+","+Math.round(Ot[1]*255)+","+Math.round(Ot[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,s[1]*lt*.01+I,0),this._pathData.p.v){ft=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var Bi=Math.atan(ft)*180/Math.PI;M.point[0]<A.point[0]&&(Bi+=180),c.rotate(-Bi*Math.PI/180)}c.translate(vt,wt,0),P-=s[0]*E[L].an*.005,E[L+1]&&at!==E[L+1].ind&&(P+=E[L].an/2,P+=e.tr*.001*e.finalSize)}else{switch(c.translate(g,I,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(E[L].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[L].line]),0,0);break;case 2:c.translate(E[L].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[L].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(mt,0,0),c.translate(s[0]*E[L].an*.005,s[1]*lt*.01,0),g+=E[L].l+e.tr*.001*e.finalSize}v==="html"?Ar=c.toCSS():v==="svg"?Ar=c.to2dCSS():zr=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],Vr=Ne}x<=L?(U=new ql(Vr,Fr,fi,$r,Ar,zr),this.renderedLetters.push(U),x+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[L],this.lettersChangedFlag=U.update(Vr,Fr,fi,$r,Ar,zr)||this.lettersChangedFlag)}}},Vi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Vi.prototype.mHelper=new he,Vi.prototype.defaultPropsArray=[],$([se],Vi);function je(){}je.prototype.initElement=function(e,r,s){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,s),this.textProperty=new ge(this,e.t,this.dynamicProperties),this.textAnimator=new Vi(e.t,this.renderType,this),this.initTransform(e,r,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},je.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},je.prototype.createPathShape=function(e,r){var s,n=r.length,d,c="";for(s=0;s<n;s+=1)r[s].ty==="sh"&&(d=r[s].ks.k,c+=tp(d,d.i.length,!0,e));return c},je.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},je.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},je.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},je.prototype.applyTextPropertiesToMatrix=function(e,r,s,n,d){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s])/2,0,0);break;default:break}r.translate(n,d,0)},je.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},je.prototype.emptyProp=new ql,je.prototype.destroy=function(){},je.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Lg={shapes:[]};function Pr(e,r,s){this.textSpans=[],this.renderType="svg",this.initElement(e,r,s)}$([hi,Oo,Ps,Po,pi,Ds,je],Pr),Pr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},Pr.prototype.buildTextContents=function(e){for(var r=0,s=e.length,n=[],d="";r<s;)e[r]==="\r"||e[r]===""?(n.push(d),d=""):d+=e[r],r+=1;return n.push(d),n},Pr.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var s=e.shapes[0];if(s.it){var n=s.it[s.it.length-1];n.s&&(n.s.k[0]=r,n.s.k[1]=r)}}return e},Pr.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,s=this.textProperty.currentData;this.renderedLetters=rt(s?s.l.length:0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",s.sw)),this.layerElement.setAttribute("font-size",s.finalSize);var n=this.globalData.fontManager.getFontByName(s.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var d=s.fWeight,c=s.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",s.t);var v=s.l||[],x=!!this.globalData.fontManager.chars;r=v.length;var g,I=this.mHelper,L="",B=this.data.singleShape,E=0,R=0,P=!0,M=s.tr*.001*s.finalSize;if(B&&!x&&!s.sz){var z=this.textContainer,w="start";switch(s.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}z.setAttribute("text-anchor",w),z.setAttribute("letter-spacing",M);var _=this.buildTextContents(s.finalText);for(r=_.length,R=s.ps?s.ps[1]+s.ascent:0,e=0;e<r;e+=1)g=this.textSpans[e].span||bt("tspan"),g.textContent=_[e],g.setAttribute("x",0),g.setAttribute("y",R),g.style.display="inherit",z.appendChild(g),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=g,R+=s.finalLineHeight;this.layerElement.appendChild(z)}else{var y=this.textSpans.length,A;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!x||!B||e===0){if(g=y>e?this.textSpans[e].span:bt(x?"g":"text"),y<=e){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=g,x){var k=bt("g");g.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(I.reset(),B&&(v[e].n&&(E=-M,R+=s.yOffset,R+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(s,I,v[e].line,E,R),E+=v[e].l||0,E+=M),x){A=this.globalData.fontManager.getCharData(s.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily);var D;if(A.t===1)D=new zs(A.data,this.globalData,this);else{var V=Lg;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,s.finalSize)),D=new Yt(V,this.globalData,this)}if(this.textSpans[e].glyph){var H=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(H.layerElement),H.destroy()}this.textSpans[e].glyph=D,D._debug=!0,D.prepareFrame(0),D.renderFrame(),this.textSpans[e].childSpan.appendChild(D.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+s.finalSize/100+","+s.finalSize/100+")")}else B&&g.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),g.textContent=v[e].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&g&&g.setAttribute("d",L)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Pr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Pr.prototype.getValue=function(){var e,r=this.textSpans.length,s;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)s=this.textSpans[e].glyph,s&&(s.prepareFrame(this.comp.renderedFrame-this.data.st),s._mdf&&(this._mdf=!0))},Pr.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,r,s=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;r=n.length;var d,c,v;for(e=0;e<r;e+=1)n[e].n||(d=s[e],c=this.textSpans[e].span,v=this.textSpans[e].glyph,v&&v.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 Kl(e,r,s){this.initElement(e,r,s)}$([Fs],Kl),Kl.prototype.createContent=function(){var e=bt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function ui(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initFrame(),this.initTransform(e,r,s),this.initHierarchy()}ui.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},ui.prototype.renderFrame=function(){},ui.prototype.getBaseElement=function(){return null},ui.prototype.destroy=function(){},ui.prototype.sourceRectAtTime=function(){},ui.prototype.hide=function(){},$([hi,Oo,Po,pi],ui);function Jt(){}$([pe],Jt),Jt.prototype.createNull=function(e){return new ui(e,this.globalData,this)},Jt.prototype.createShape=function(e){return new Yt(e,this.globalData,this)},Jt.prototype.createText=function(e){return new Pr(e,this.globalData,this)},Jt.prototype.createImage=function(e){return new Fs(e,this.globalData,this)},Jt.prototype.createSolid=function(e){return new Kl(e,this.globalData,this)},Jt.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var s=bt("clipPath"),n=bt("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var d=ke();s.setAttribute("id",d),s.appendChild(n),this.layerElement.setAttribute("clip-path","url("+T()+"#"+d+")"),r.appendChild(s),this.layers=e.layers,this.elements=rt(e.layers.length)},Jt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Jt.prototype.updateContainerSize=function(){},Jt.prototype.findIndexByInd=function(e){var r=0,s=this.layers.length;for(r=0;r<s;r+=1)if(this.layers[r].ind===e)return r;return-1},Jt.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var s=this.createItem(this.layers[e]);if(r[e]=s,Ba()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(s),s.initExpressions()),this.appendElementInPos(s,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(s);else{var d=r[n],c=d.getMatte(this.layers[e].tt);s.setMatte(c)}}}},Jt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,s=this.elements.length;r<s;){if(this.elements[r]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,d=this.elements[n],c=d.getMatte(this.layers[r].tt);e.setMatte(c);break}r+=1}}},Jt.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,s=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=s-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Jt.prototype.appendElementInPos=function(e,r){var s=e.getBaseElement();if(s){for(var n=0,d;n<r;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(d=this.elements[n].getBaseElement()),n+=1;d?this.layerElement.insertBefore(s,d):this.layerElement.appendChild(s)}},Jt.prototype.hide=function(){this.layerElement.style.display="none"},Jt.prototype.show=function(){this.layerElement.style.display="block"};function Dr(){}$([hi,Oo,Po,pi,Ds],Dr),Dr.prototype.initElement=function(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initTransform(e,r,s),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},Dr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var s,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&(this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st),this.elements[s]._mdf&&(this._mdf=!0))}},Dr.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Dr.prototype.setElements=function(e){this.elements=e},Dr.prototype.getElements=function(){return this.elements},Dr.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},Dr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function zs(e,r,s){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?rt(this.layers.length):[],this.initElement(e,r,s),this.tm=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}$([Jt,Dr,Ps],zs),zs.prototype.createComp=function(e){return new zs(e,this.globalData,this)};function Xl(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var s="";if(r&&r.title){var n=bt("title"),d=ke();n.setAttribute("id",d),n.textContent=r.title,this.svgElement.appendChild(n),s+=d}if(r&&r.description){var c=bt("desc"),v=ke();c.setAttribute("id",v),c.textContent=r.description,this.svgElement.appendChild(c),s+=" "+v}s&&this.svgElement.setAttribute("aria-labelledby",s);var x=bt("defs");this.svgElement.appendChild(x);var g=bt("g");this.svgElement.appendChild(g),this.layerElement=g,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:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return $([Jt],Xl),Xl.prototype.createComp=function(e){return new zs(e,this.globalData,this)},Bv("svg",Xl),ci.registerModifier("tm",lr),ci.registerModifier("pb",Cs),ci.registerModifier("rp",Tr),ci.registerModifier("rd",ws),ci.registerModifier("zz",Ls),ci.registerModifier("op",Rs),Mt})});var nn=globalThis,ln=nn.ShadowRoot&&(nn.ShadyCSS===void 0||nn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ql=Symbol(),rp=new WeakMap,Vs=class{constructor(i,t,o){if(this._$cssResult$=!0,o!==Ql)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(ln&&i===void 0){let o=t!==void 0&&t.length===1;o&&(i=rp.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),o&&rp.set(t,i))}return i}toString(){return this.cssText}},ip=l=>new Vs(typeof l=="string"?l:l+"",void 0,Ql),G=(l,...i)=>{let t=l.length===1?l[0]:i.reduce((o,a,h)=>o+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+l[h+1],l[0]);return new Vs(t,l,Ql)},Jl=(l,i)=>{if(ln)l.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let o=document.createElement("style"),a=nn.litNonce;a!==void 0&&o.setAttribute("nonce",a),o.textContent=t.cssText,l.appendChild(o)}},cn=ln?l=>l:l=>l instanceof CSSStyleSheet?(i=>{let t="";for(let o of i.cssRules)t+=o.cssText;return ip(t)})(l):l;var{is:zg,defineProperty:Vg,getOwnPropertyDescriptor:Bg,getOwnPropertyNames:Ug,getOwnPropertySymbols:Hg,getPrototypeOf:Gg}=Object,yi=globalThis,op=yi.trustedTypes,Yg=op?op.emptyScript:"",tc=yi.reactiveElementPolyfillSupport,Bs=(l,i)=>l,Us={toAttribute(l,i){switch(i){case Boolean:l=l?Yg:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,i){let t=l;switch(i){case Boolean:t=l!==null;break;case Number:t=l===null?null:Number(l);break;case Object:case Array:try{t=JSON.parse(l)}catch{t=null}}return t}},dn=(l,i)=>!zg(l,i),sp={attribute:!0,type:String,converter:Us,reflect:!1,hasChanged:dn},ap,np;(ap=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(np=yi.litPropertyMetadata)!=null||(yi.litPropertyMetadata=new WeakMap);var Br=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=sp){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let o=Symbol(),a=this.getPropertyDescriptor(i,o,t);a!==void 0&&Vg(this.prototype,i,a)}}static getPropertyDescriptor(i,t,o){var m;let{get:a,set:h}=(m=Bg(this.prototype,i))!=null?m:{get(){return this[t]},set(T){this[t]=T}};return{get(){return a==null?void 0:a.call(this)},set(T){let N=a==null?void 0:a.call(this);h.call(this,T),this.requestUpdate(i,N,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:sp}static _$Ei(){if(this.hasOwnProperty(Bs("elementProperties")))return;let i=Gg(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Bs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bs("properties"))){let t=this.properties,o=[...Ug(t),...Hg(t)];for(let a of o)this.createProperty(a,t[a])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[o,a]of t)this.elementProperties.set(o,a)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let a=this._$Eu(t,o);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let o=new Set(i.flat(1/0).reverse());for(let a of o)t.unshift(cn(a))}else i!==void 0&&t.push(cn(i));return t}static _$Eu(i,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o: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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,o;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((o=i.hostConnected)==null||o.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(i.set(o,this[o]),delete this[o]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Jl(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(o=>{var a;return(a=o.hostConnected)==null?void 0:a.call(o)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(i,t,o){this._$AK(i,o)}_$EC(i,t){var h;let o=this.constructor.elementProperties.get(i),a=this.constructor._$Eu(i,o);if(a!==void 0&&o.reflect===!0){let m=(((h=o.converter)==null?void 0:h.toAttribute)!==void 0?o.converter:Us).toAttribute(t,o.type);this._$Em=i,m==null?this.removeAttribute(a):this.setAttribute(a,m),this._$Em=null}}_$AK(i,t){var h;let o=this.constructor,a=o._$Eh.get(i);if(a!==void 0&&this._$Em!==a){let m=o.getPropertyOptions(a),T=typeof m.converter=="function"?{fromAttribute:m.converter}:((h=m.converter)==null?void 0:h.fromAttribute)!==void 0?m.converter:Us;this._$Em=a,this[a]=T.fromAttribute(t,m.type),this._$Em=null}}requestUpdate(i,t,o){var a;if(i!==void 0){if(o!=null||(o=this.constructor.getPropertyOptions(i)),!((a=o.hasChanged)!=null?a:dn)(this[i],t))return;this.P(i,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,o){var a;this._$AL.has(i)||this._$AL.set(i,t),o.reflect===!0&&this._$Em!==i&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,T]of this._$Ep)this[m]=T;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[m,T]of h)T.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],T)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(a=this._$EO)==null||a.forEach(h=>{var m;return(m=h.hostUpdate)==null?void 0:m.call(h)}),this.update(t)):this._$EU()}catch(h){throw i=!1,this._$EU(),h}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(o=>{var a;return(a=o.hostUpdated)==null?void 0:a.call(o)}),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(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},lp;Br.elementStyles=[],Br.shadowRootOptions={mode:"open"},Br[Bs("elementProperties")]=new Map,Br[Bs("finalized")]=new Map,tc==null||tc({ReactiveElement:Br}),((lp=yi.reactiveElementVersions)!=null?lp:yi.reactiveElementVersions=[]).push("2.0.4");var Gs=globalThis,hn=Gs.trustedTypes,cp=hn?hn.createPolicy("lit-html",{createHTML:l=>l}):void 0,ic="$lit$",Ur=`lit$${Math.random().toFixed(9).slice(2)}$`,oc="?"+Ur,Wg=`<${oc}>`,Gi=document,Ys=()=>Gi.createComment(""),Ws=l=>l===null||typeof l!="object"&&typeof l!="function",sc=Array.isArray,vp=l=>sc(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",ec=`[
|
3
|
+
\f\r]`,Hs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dp=/-->/g,hp=/>/g,Ui=RegExp(`>|${ec}(?:([^\\s"'>=/]+)(${ec}*=${ec}*(?:[^
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pp=/'/g,mp=/"/g,gp=/^(?:script|style|textarea|title)$/i,ac=l=>(i,...t)=>({_$litType$:l,strings:i,values:t}),C=ac(1),ix=ac(2),ox=ac(3),Re=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),up=new WeakMap,Hi=Gi.createTreeWalker(Gi,129);function bp(l,i){if(!sc(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return cp!==void 0?cp.createHTML(i):i}var yp=(l,i)=>{let t=l.length-1,o=[],a,h=i===2?"<svg>":i===3?"<math>":"",m=Hs;for(let T=0;T<t;T++){let N=l[T],$,q,K=-1,nt=0;for(;nt<N.length&&(m.lastIndex=nt,q=m.exec(N),q!==null);)nt=m.lastIndex,m===Hs?q[1]==="!--"?m=dp:q[1]!==void 0?m=hp:q[2]!==void 0?(gp.test(q[2])&&(a=RegExp("</"+q[2],"g")),m=Ui):q[3]!==void 0&&(m=Ui):m===Ui?q[0]===">"?(m=a!=null?a:Hs,K=-1):q[1]===void 0?K=-2:(K=m.lastIndex-q[2].length,$=q[1],m=q[3]===void 0?Ui:q[3]==='"'?mp:pp):m===mp||m===pp?m=Ui:m===dp||m===hp?m=Hs:(m=Ui,a=void 0);let Q=m===Ui&&l[T+1].startsWith("/>")?" ":"";h+=m===Hs?N+Wg:K>=0?(o.push($),N.slice(0,K)+ic+N.slice(K)+Ur+Q):N+Ur+(K===-2?T:Q)}return[bp(l,h+(l[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),o]},js=class l{constructor({strings:i,_$litType$:t},o){let a;this.parts=[];let h=0,m=0,T=i.length-1,N=this.parts,[$,q]=yp(i,t);if(this.el=l.createElement($,o),Hi.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(a=Hi.nextNode())!==null&&N.length<T;){if(a.nodeType===1){if(a.hasAttributes())for(let K of a.getAttributeNames())if(K.endsWith(ic)){let nt=q[m++],Q=a.getAttribute(K).split(Ur),rt=/([.?@])?(.*)/.exec(nt);N.push({type:1,index:h,name:rt[2],strings:Q,ctor:rt[1]==="."?mn:rt[1]==="?"?un:rt[1]==="@"?fn:Wi}),a.removeAttribute(K)}else K.startsWith(Ur)&&(N.push({type:6,index:h}),a.removeAttribute(K));if(gp.test(a.tagName)){let K=a.textContent.split(Ur),nt=K.length-1;if(nt>0){a.textContent=hn?hn.emptyScript:"";for(let Q=0;Q<nt;Q++)a.append(K[Q],Ys()),Hi.nextNode(),N.push({type:2,index:++h});a.append(K[nt],Ys())}}}else if(a.nodeType===8)if(a.data===oc)N.push({type:2,index:h});else{let K=-1;for(;(K=a.data.indexOf(Ur,K+1))!==-1;)N.push({type:7,index:h}),K+=Ur.length-1}h++}}static createElement(i,t){let o=Gi.createElement("template");return o.innerHTML=i,o}};function Yi(l,i,t=l,o){var m,T,N;if(i===Re)return i;let a=o!==void 0?(m=t.o)==null?void 0:m[o]:t.l,h=Ws(i)?void 0:i._$litDirective$;return(a==null?void 0:a.constructor)!==h&&((T=a==null?void 0:a._$AO)==null||T.call(a,!1),h===void 0?a=void 0:(a=new h(l),a._$AT(l,t,o)),o!==void 0?((N=t.o)!=null?N:t.o=[])[o]=a:t.l=a),a!==void 0&&(i=Yi(l,a._$AS(l,i.values),a,o)),i}var pn=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var $;let{el:{content:t},parts:o}=this._$AD,a=(($=i==null?void 0:i.creationScope)!=null?$:Gi).importNode(t,!0);Hi.currentNode=a;let h=Hi.nextNode(),m=0,T=0,N=o[0];for(;N!==void 0;){if(m===N.index){let q;N.type===2?q=new Fo(h,h.nextSibling,this,i):N.type===1?q=new N.ctor(h,N.name,N.strings,this,i):N.type===6&&(q=new vn(h,this,i)),this._$AV.push(q),N=o[++T]}m!==(N==null?void 0:N.index)&&(h=Hi.nextNode(),m++)}return Hi.currentNode=Gi,a}p(i){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(i,o,t),t+=o.strings.length-2):o._$AI(i[t])),t++}},Fo=class l{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,o,a){var h;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=o,this.options=a,this.v=(h=a==null?void 0:a.isConnected)!=null?h:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=Yi(this,i,t),Ws(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==Re&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):vp(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&&Ws(this._$AH)?this._$AA.nextSibling.data=i:this.T(Gi.createTextNode(i)),this._$AH=i}$(i){var h;let{values:t,_$litType$:o}=i,a=typeof o=="number"?this._$AC(i):(o.el===void 0&&(o.el=js.createElement(bp(o.h,o.h[0]),this.options)),o);if(((h=this._$AH)==null?void 0:h._$AD)===a)this._$AH.p(t);else{let m=new pn(a,this),T=m.u(this.options);m.p(t),this.T(T),this._$AH=m}}_$AC(i){let t=up.get(i.strings);return t===void 0&&up.set(i.strings,t=new js(i)),t}k(i){sc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,a=0;for(let h of i)a===t.length?t.push(o=new l(this.O(Ys()),this.O(Ys()),this,this.options)):o=t[a],o._$AI(h),a++;a<t.length&&(this._$AR(o&&o._$AB.nextSibling,a),t.length=a)}_$AR(i=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);i&&i!==this._$AB;){let a=i.nextSibling;i.remove(),i=a}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},Wi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,o,a,h){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=t,this._$AM=a,this.options=h,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=W}_$AI(i,t=this,o,a){let h=this.strings,m=!1;if(h===void 0)i=Yi(this,i,t,0),m=!Ws(i)||i!==this._$AH&&i!==Re,m&&(this._$AH=i);else{let T=i,N,$;for(i=h[0],N=0;N<h.length-1;N++)$=Yi(this,T[o+N],t,N),$===Re&&($=this._$AH[N]),m||(m=!Ws($)||$!==this._$AH[N]),$===W?i=W:i!==W&&(i+=($!=null?$:"")+h[N+1]),this._$AH[N]=$}m&&!a&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},mn=class extends Wi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},un=class extends Wi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},fn=class extends Wi{constructor(i,t,o,a,h){super(i,t,o,a,h),this.type=5}_$AI(i,t=this){var m;if((i=(m=Yi(this,i,t,0))!=null?m:W)===Re)return;let o=this._$AH,a=i===W&&o!==W||i.capture!==o.capture||i.once!==o.once||i.passive!==o.passive,h=i!==W&&(o===W||a);a&&this.element.removeEventListener(this.name,this,o),h&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)==null?void 0:t.host)!=null?o:this.element,i):this._$AH.handleEvent(i)}},vn=class{constructor(i,t,o){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(i){Yi(this,i)}},Ep={M:ic,P:Ur,A:oc,C:1,L:yp,R:pn,D:vp,V:Yi,I:Fo,H:Wi,N:un,U:fn,B:mn,F:vn},rc=Gs.litHtmlPolyfillSupport,fp;rc==null||rc(js,Fo),((fp=Gs.litHtmlVersions)!=null?fp:Gs.litHtmlVersions=[]).push("3.2.0");var Tp=(l,i,t)=>{var h,m;let o=(h=t==null?void 0:t.renderBefore)!=null?h:i,a=o._$litPart$;if(a===void 0){let T=(m=t==null?void 0:t.renderBefore)!=null?m:null;o._$litPart$=a=new Fo(i.insertBefore(Ys(),T),T,void 0,t!=null?t:{})}return a._$AI(l),a};var Ei=class extends Br{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,o;let i=super.createRenderRoot();return(o=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=Tp(t,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 Re}},xp;Ei._$litElement$=!0,Ei.finalized=!0,(xp=globalThis.litElementHydrateSupport)==null||xp.call(globalThis,{LitElement:Ei});var nc=globalThis.litElementPolyfillSupport;nc==null||nc({LitElement:Ei});var Ap;((Ap=globalThis.litElementVersions)!=null?Ap:globalThis.litElementVersions=[]).push("4.1.0");var jg={attribute:!0,type:String,converter:Us,reflect:!1,hasChanged:dn},qg=(l=jg,i,t)=>{let{kind:o,metadata:a}=t,h=globalThis.litPropertyMetadata.get(a);if(h===void 0&&globalThis.litPropertyMetadata.set(a,h=new Map),h.set(t.name,l),o==="accessor"){let{name:m}=t;return{set(T){let N=i.get.call(this);i.set.call(this,T),this.requestUpdate(m,N,l)},init(T){return T!==void 0&&this.P(m,void 0,l),T}}}if(o==="setter"){let{name:m}=t;return function(T){let N=this[m];i.call(this,T),this.requestUpdate(m,N,l)}}throw Error("Unsupported decorator location: "+o)};function f(l){return(i,t)=>typeof t=="object"?qg(l,i,t):((o,a,h)=>{let m=a.hasOwnProperty(h);return a.constructor.createProperty(h,m?{...o,wrapped:!0}:o),m?Object.getOwnPropertyDescriptor(a,h):void 0})(l,i,t)}function xt(l){return f({...l,state:!0,attribute:!1})}var Hr=(l,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(l,i,t),t);function Gr(l,i){return(t,o,a)=>{let h=m=>{var T,N;return(N=(T=m.renderRoot)==null?void 0:T.querySelector(l))!=null?N:null};if(i){let{get:m,set:T}=typeof o=="object"?t:a!=null?a:(()=>{let N=Symbol();return{get(){return this[N]},set($){this[N]=$}}})();return Hr(t,o,{get(){let N=m.call(this);return N===void 0&&(N=h(this),(N!==null||this.hasUpdated)&&T.call(this,N)),N}})}return Hr(t,o,{get(){return h(this)}})}}function Lt(l){return(i,t)=>{let{slot:o,selector:a}=l!=null?l:{},h="slot"+(o?`[name=${o}]`:":not([name])");return Hr(i,t,{get(){var N,$;let m=(N=this.renderRoot)==null?void 0:N.querySelector(h),T=($=m==null?void 0:m.assignedElements(l))!=null?$:[];return a===void 0?T:T.filter(q=>q.matches(a))}})}}function gn(l){return(i,t)=>{let{slot:o}=l!=null?l:{},a="slot"+(o?`[name=${o}]`:":not([name])");return Hr(i,t,{get(){var m,T;let h=(m=this.renderRoot)==null?void 0:m.querySelector(a);return(T=h==null?void 0:h.assignedNodes(l))!=null?T:[]}})}}var Kg={PREFIX:"mdc",SEPARATOR:"-"},Xg={NAMESPACE:Kg},lc=Xg;var Zg=l=>[lc.NAMESPACE.PREFIX,l].join(lc.NAMESPACE.SEPARATOR),Y={constructTagName:Zg};var tt={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var Xx=Y.constructTagName("buttonsimple"),ji={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},$o={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},qs={SIZE:ji[32],TYPE:$o.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Yr=Y.constructTagName("button"),Pt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ks={40:40,32:32,28:28,24:24},qe={64:64,52:52,20:20,...Ks},qi={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},zo={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Me={VARIANT:Pt.PRIMARY,SIZE:Ks[32],COLOR:qi.DEFAULT,TYPE_INTERNAL:zo.ICON,TYPE:$o.BUTTON,INVERTED:!1};var bn=l=>{class i extends l{constructor(){super(...arguments);this.variant=Me.VARIANT;this.color=Me.COLOR;this.typeInternal=Me.TYPE_INTERNAL}setVariant(a){this.setAttribute("variant",Object.values(Pt).includes(a)?a:Me.VARIANT)}setColor(a){!Object.values(qi).includes(a)||this.variant===Pt.TERTIARY?this.setAttribute("color",`${Me.COLOR}`):this.setAttribute("color",a)}setSize(a){let m=this.typeInternal===zo.ICON?Object.values(qe).includes(a)&&!(a===qe[20]&&this.variant!==Pt.TERTIARY):Object.values(Ks).includes(a);this.setAttribute("size",m?`${a}`:`${Me.SIZE}`)}inferButtonType(){var $,q,K,nt,Q,rt;let a=(q=($=this.shadowRoot)==null?void 0:$.querySelector("slot:not([name])"))==null?void 0:q.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,h=(nt=(K=this.shadowRoot)==null?void 0:K.querySelector('slot[name="prefix"]'))==null?void 0:nt.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,m=this.prefixIcon||h&&h>0,T=(rt=(Q=this.shadowRoot)==null?void 0:Q.querySelector('slot[name="postfix"]'))==null?void 0:rt.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,N=this.postfixIcon||T&&T>0;a&&(m||N)?(this.typeInternal=zo.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!a&&(m||N)?(this.typeInternal=zo.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=zo.PILL,this.setAttribute("data-btn-type","pill"))}}return p([f({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),p([f({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),p([f({type:String})],i.prototype,"variant",2),p([f({type:String})],i.prototype,"color",2),p([xt()],i.prototype,"typeInternal",2),i};var Sp=G`
|
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 yn=class extends Ei{static register(i){customElements.get(i)||customElements.define(i,this)}};yn.styles=[Sp];var _p=yn;var j=_p;var Ti=class extends Event{constructor(i,t,o){super("context-request",{bubbles:!0,composed:!0}),this.context=i,this.callback=t,this.subscribe=o!=null?o:!1}};var Vo=class{constructor(i,t,o,a){var h;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(m,T)=>{this.unsubscribe&&(this.unsubscribe!==T&&(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,T)),this.unsubscribe=T},this.host=i,t.context!==void 0){let m=t;this.context=m.context,this.callback=m.callback,this.subscribe=(h=m.subscribe)!=null?h:!1}else this.context=t,this.callback=o,this.subscribe=a!=null?a:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Ti(this.context,this.t,this.subscribe))}};var En=class{get value(){return this.o}set value(i){this.setValue(i)}setValue(i,t=!1){let o=t||!Object.is(i,this.o);this.o=i,o&&this.updateObservers()}constructor(i){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:o}]of this.subscriptions)t(this.o,o)},i!==void 0&&(this.value=i)}addCallback(i,t,o){if(!o)return void i(this.value);this.subscriptions.has(i)||this.subscriptions.set(i,{disposer:()=>{this.subscriptions.delete(i)},consumerHost:t});let{disposer:a}=this.subscriptions.get(i);i(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var cc=class extends Event{constructor(i){super("context-provider",{bubbles:!0,composed:!0}),this.context=i}},Bo=class extends En{constructor(i,t,o){var a,h;super(t.context!==void 0?t.initialValue:o),this.onContextRequest=m=>{let T=m.composedPath()[0];m.context===this.context&&T!==this.host&&(m.stopPropagation(),this.addCallback(m.callback,T,m.subscribe))},this.onProviderRequest=m=>{let T=m.composedPath()[0];if(m.context!==this.context||T===this.host)return;let N=new Set;for(let[$,{consumerHost:q}]of this.subscriptions)N.has($)||(N.add($),q.dispatchEvent(new Ti(this.context,$,!0)));m.stopPropagation()},this.host=i,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(h=(a=this.host).addController)==null||h.call(a,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new cc(this.context))}};var Qg=G`
|
15
15
|
:host {
|
16
16
|
display: contents;
|
17
17
|
}
|
18
|
-
`,
|
18
|
+
`,Ip=Qg;var xn=class extends j{constructor({context:i,initialValue:t}){super(),this.context=new Bo(this,{context:i,initialValue:t})}render(){return this.updateContext(),C`<slot></slot>`}};xn.styles=[...j.styles,Ip];var kp=xn;var Sr=kp;var J={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",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var Cp=l=>{class i extends l{constructor(){super(...arguments);this.autofocus=!1}firstUpdated(a){super.firstUpdated(a),this.autofocus&&this.focus()}}return p([f({type:Boolean,reflect:!0})],i.prototype,"autofocus",2),i};var zt=l=>{class i extends l{}return p([f({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var Ke=l=>{class i extends l{constructor(){super(...arguments);this.tabIndex=0}}return p([f({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var Et=G`
|
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
|
+
`,An=G`
|
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);
|
@@ -39,7 +39,7 @@
|
|
39
39
|
`,At=(l=!1)=>{let i=G`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?[An,G`
|
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
|
+
`]:[An,G`
|
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 Jg=[Et,G`
|
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()],wp=Jg;var hr=class extends Cp(Ke(zt(j))){constructor(){super();this.size=qs.SIZE;this.role=qs.ROLE;this.type=qs.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(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||qs.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===$o.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===$o.RESET&&this.form&&this.form.reset()}setActive(t,o){this.ariaStateKey&&this.ariaStateKey.split(",").filter(h=>h.trim().startsWith("aria-")).forEach(h=>{o===!0?t.setAttribute(h.trim(),"true"):o===!1?t.setAttribute(h.trim(),"false"):t.removeAttribute(h.trim())})}setSoftDisabled(t,o){o?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,o){o?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){[J.ENTER,J.SPACE].includes(t.key)&&(this.classList.add("pressed"),t.key===J.ENTER&&this.triggerClickEvent(),t.preventDefault())}handleKeyUp(t){[J.ENTER,J.SPACE].includes(t.key)&&(this.classList.remove("pressed"),t.key===J.SPACE&&this.triggerClickEvent())}render(){return C` <slot></slot> `}};hr.formAssociated=!0,hr.styles=[...j.styles,...wp],p([f({type:Boolean,reflect:!0})],hr.prototype,"active",2),p([f({type:Boolean,attribute:"soft-disabled",reflect:!0})],hr.prototype,"softDisabled",2),p([f({type:Number,reflect:!0})],hr.prototype,"size",2),p([f({type:String,reflect:!0})],hr.prototype,"role",2),p([f({type:String,reflect:!0})],hr.prototype,"ariaStateKey",2),p([f({reflect:!0})],hr.prototype,"type",2);var me=hr;var tb=G`
|
140
140
|
:host {
|
141
141
|
background-color: transparent;
|
142
142
|
border-radius: 1.25rem;
|
@@ -385,7 +385,7 @@
|
|
385
385
|
:host::part(postfix-icon) {
|
386
386
|
flex-shrink: 0;
|
387
387
|
}
|
388
|
-
`,
|
388
|
+
`,Np=[tb];var Ki=l=>{let i=l.split("-"),t=["bold","filled","regular","light"];return i.filter(o=>!t.includes(o)).join("-")};var Wr=class extends bn(me){constructor(){super(...arguments);this.size=Me.SIZE;this.inverted=Me.INVERTED;this.role=tt.BUTTON}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Ki(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Ki(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return C`
|
389
389
|
<slot name="prefix" part="prefix">
|
390
390
|
${this.prefixFilledIconName?C` <mdc-icon
|
391
391
|
name="${this.prefixFilledIconName}"
|
@@ -401,7 +401,7 @@
|
|
401
401
|
length-unit="rem"
|
402
402
|
></mdc-icon>`:""}
|
403
403
|
</slot>
|
404
|
-
`}};
|
404
|
+
`}};Wr.styles=[...me.styles,...Np],p([f({type:Number})],Wr.prototype,"size",2),p([f({type:Boolean,reflect:!0})],Wr.prototype,"inverted",2),p([f({type:String,reflect:!0})],Wr.prototype,"role",2),p([xt()],Wr.prototype,"prefixFilledIconName",2),p([xt()],Wr.prototype,"postfixFilledIconName",2);var Xi=Wr;var eb=l=>{let{host:i,context:t,subscribe:o}=l;return new Vo(i,{context:t,subscribe:o!=null?o:!0})},rb={consume:eb},_r=rb;var Sn=Y.constructTagName("iconprovider"),Lp=["svg"],Rp=["em","rem","px","%"],ib={px:16,em:1,rem:1,"%":100},jr={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ib.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var _n=class{};_n.context=Sn;var In=_n;var Ir=class extends Sr{constructor(){super({context:In.context,initialValue:new In});this.iconSet=jr.ICON_SET;this.fileExtension=jr.FILE_EXTENSION;this.lengthUnit=jr.LENGTH_UNIT;this.size=jr.SIZE}static get Context(){return In.context}updateValuesInContext(){this.fileExtension&&Lp.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=jr.FILE_EXTENSION,this.context.value.fileExtension=jr.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&&Rp.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=jr.LENGTH_UNIT,this.context.value.lengthUnit=jr.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())}};p([f({type:String,attribute:"icon-set",reflect:!0})],Ir.prototype,"iconSet",2),p([f({type:String})],Ir.prototype,"url",2),p([f({type:String,attribute:"file-extension",reflect:!0})],Ir.prototype,"fileExtension",2),p([f({type:String,attribute:"length-unit",reflect:!0})],Ir.prototype,"lengthUnit",2),p([f({type:Number,reflect:!0})],Ir.prototype,"size",2),p([f({type:String,attribute:"cache-strategy"})],Ir.prototype,"cacheStrategy",2),p([f({type:String,attribute:"cache-name"})],Ir.prototype,"cacheName",2);var Xs=Ir;var ob=[Et,G`
|
405
405
|
:host {
|
406
406
|
--mdc-icon-fill-color: currentColor;
|
407
407
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -416,7 +416,7 @@
|
|
416
416
|
width: 100%;
|
417
417
|
fill: var(--mdc-icon-fill-color);
|
418
418
|
}
|
419
|
-
`,...At()],
|
419
|
+
`,...At()],Mp=ob;var Zs={},Op=async l=>(Zs[l]===void 0&&(Zs[l]=new Map),{async set(i,t){Zs[l].set(i.url,await t.text())},async get(i){return Zs[l].get(i.url)},async delete(i){Zs[l].delete(i.url)}}),Pp=async l=>{let i=await caches.open(l);return{set:async(t,o)=>{await i.put(t,o)},get:async t=>{let o=await i.match(t);return o==null?void 0:o.text()},delete:async t=>{await i.delete(t)}}},Dp=async(l,i)=>i==="in-memory-cache"?Op(l):Pp(l);var Fp=async l=>fetch(l).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),$p=async({url:l,name:i,fileExtension:t,cacheStrategy:o,cacheName:a,renewSignal:h})=>{let m=h(),T=new Request(`${l}/${i}.${t}`,{signal:m});return!a||!o||!["in-memory-cache","web-cache-api"].includes(o)?Fp(T).then(N=>N.text()):Dp(a,o).then(N=>N.get(T).then($=>$||Fp(T.clone()).then(q=>{var K;return q.status<400&&q.headers.has("content-type")?(K=N.set)==null?void 0:K.call(N,T,q.clone()).then(()=>q.text()):q.text()})).catch($=>{throw new Error(`Error in caching the Icon ${i}, ${$}`)}))};var zp=Y.constructTagName("icon"),dc={NAME:void 0,SIZE:1};var ze=class extends j{constructor(){super();this.name=dc.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=_r.consume({host:this,context:Xs.Context});this.abortController=new AbortController}prepareIconElement(t){let o=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&o.setAttribute("data-name",this.name),o.setAttribute("part","icon"),o.setAttribute("aria-hidden","true"),o}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:o,url:a,cacheName:h,iconSet:m,cacheStrategy:T}=this.iconProviderContext.value;if(m==="custom-icons"&&a&&o&&this.name){let N=()=>{var $;return($=this.abortController)==null||$.abort(),this.abortController=new AbortController,this.abortController.signal};return $p({url:a,name:this.name,fileExtension:o,cacheName:h,cacheStrategy:T,renewSignal:N}).then($=>{let q=this.prepareIconElement($);this.handleIconLoadedSuccess(q)}).catch($=>{this.handleIconLoadedFailure($)})}if(m==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(N=>{this.handleIconLoadedSuccess(N.default())}).catch(N=>{this.handleIconLoadedFailure(N)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let o=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(o)}handleIconLoadedFailure(t){let o=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(o)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let o=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",o)}}get computedIconSize(){var t,o;return(o=(t=this.size)!=null?t:this.sizeFromContext)!=null?o:dc.SIZE}updated(t){var o,a,h,m;super.updated(t),t.has("name")&&this.getIconData().catch(T=>{T.name!=="AbortError"&&this.onerror&&this.onerror(T)}),(t.has("ariaLabel")||t.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((o=this.iconProviderContext.value)==null?void 0:o.lengthUnit)&&(this.lengthUnitFromContext=(a=this.iconProviderContext.value)==null?void 0:a.lengthUnit,this.updateSize()),this.sizeFromContext!==((h=this.iconProviderContext.value)==null?void 0:h.size)&&(this.sizeFromContext=(m=this.iconProviderContext.value)==null?void 0:m.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return C` ${this.iconData} `}};ze.styles=[...j.styles,...Mp],p([xt()],ze.prototype,"iconData",2),p([xt()],ze.prototype,"lengthUnitFromContext",2),p([xt()],ze.prototype,"sizeFromContext",2),p([f({type:String,reflect:!0})],ze.prototype,"name",2),p([f({type:Number})],ze.prototype,"size",2),p([f({type:String,attribute:"length-unit"})],ze.prototype,"lengthUnit",2),p([f({type:String,attribute:"aria-label"})],ze.prototype,"ariaLabel",2),p([f({type:String,attribute:"aria-labelledby"})],ze.prototype,"ariaLabelledBy",2),p([xt()],ze.prototype,"abortController",2);var hc=ze;hc.register(zp);var sb=hc;Xi.register(Yr);var ab=Xi;var Vp=G`
|
420
420
|
:host::part(text) {
|
421
421
|
font-size: unset;
|
422
422
|
font-weight: unset;
|
@@ -659,14 +659,14 @@
|
|
659
659
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
660
660
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
661
661
|
}
|
662
|
-
`;var
|
662
|
+
`;var nb=[G`
|
663
663
|
:host {
|
664
664
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
665
665
|
|
666
666
|
display: block;
|
667
667
|
font-family: var(--mdc-text-font-family);
|
668
668
|
}
|
669
|
-
|
669
|
+
`,Vp],Bp=nb;var Qs=Y.constructTagName("text"),st={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"},gt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},ue={TYPE:st.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:gt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Uo=class extends j{constructor(){super(...arguments);this.type=ue.TYPE;this.tagname=ue.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case gt.H1:return C`<h1 part=${ue.CSS_PART_TEXT}><slot></slot></h1>`;case gt.H2:return C`<h2 part=${ue.CSS_PART_TEXT}><slot></slot></h2>`;case gt.H3:return C`<h3 part=${ue.CSS_PART_TEXT}><slot></slot></h3>`;case gt.H4:return C`<h4 part=${ue.CSS_PART_TEXT}><slot></slot></h4>`;case gt.H5:return C`<h5 part=${ue.CSS_PART_TEXT}><slot></slot></h5>`;case gt.H6:return C`<h6 part=${ue.CSS_PART_TEXT}><slot></slot></h6>`;case gt.DIV:return C`<div part=${ue.CSS_PART_TEXT}><slot></slot></div>`;case gt.SPAN:return C`<span part=${ue.CSS_PART_TEXT}><slot></slot></span>`;case gt.SMALL:return C`<small part=${ue.CSS_PART_TEXT}><slot></slot></small>`;case gt.P:default:return C`<p part=${ue.CSS_PART_TEXT}><slot></slot></p>`}}};Uo.styles=[...j.styles,...Bp],p([f({attribute:"type",reflect:!0,type:String})],Uo.prototype,"type",2),p([f({attribute:"tagname",reflect:!0,type:String})],Uo.prototype,"tagname",2);var pc=Uo;pc.register(Qs);var lb=pc;var ot=l=>l!=null?l:W;var ne=[];for(let l=0;l<256;++l)ne.push((l+256).toString(16).slice(1));function Up(l,i=0){return(ne[l[i+0]]+ne[l[i+1]]+ne[l[i+2]]+ne[l[i+3]]+"-"+ne[l[i+4]]+ne[l[i+5]]+"-"+ne[l[i+6]]+ne[l[i+7]]+"-"+ne[l[i+8]]+ne[l[i+9]]+"-"+ne[l[i+10]]+ne[l[i+11]]+ne[l[i+12]]+ne[l[i+13]]+ne[l[i+14]]+ne[l[i+15]]).toLowerCase()}var mc,cb=new Uint8Array(16);function uc(){if(!mc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");mc=crypto.getRandomValues.bind(crypto)}return mc(cb)}var db=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),fc={randomUUID:db};function hb(l,i,t){var a,h,m;if(fc.randomUUID&&!i&&!l)return fc.randomUUID();l=l||{};let o=(m=(h=l.random)!=null?h:(a=l.rng)==null?void 0:a.call(l))!=null?m:uc();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,i){if(t=t||0,t<0||t+16>i.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let T=0;T<16;++T)i[t+T]=o[T];return i}return Up(o)}var be=hb;var Hp=Y.constructTagName("accordiongroup"),vc={SMALL:"small",LARGE:"large"},pb={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},Js={SIZE:vc.SMALL,VARIANT:pb.STACKED};var kn=Y.constructTagName("accordionbutton"),ta={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},mb={DEFAULT:"default",BORDERLESS:"borderless"},xi={EXPANDED:!1,SIZE:vc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:mb.DEFAULT,ICON_NAME:ta.ARROW_UP};var ub=G`
|
670
670
|
:host {
|
671
671
|
--mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
|
672
672
|
--mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
|
@@ -783,7 +783,7 @@
|
|
783
783
|
:host([variant='default']:not([expanded]))::part(header-section) {
|
784
784
|
border-bottom: none;
|
785
785
|
}
|
786
|
-
`,
|
786
|
+
`,Gp=[ub,...At(!0)];var kr=class extends zt(j){constructor(){super(...arguments);this.size=xi.SIZE;this.variant=xi.VARIANT;this.dataAriaLevel=xi.DATA_ARIA_LEVEL;this.expanded=xi.EXPANDED;this.headSectionId=`head-section-${be()}`;this.bodySectionId=`body-section-${be()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){(t.key===J.ENTER||t.key===J.SPACE)&&this.handleHeaderClick()}renderIcon(t){return t?C`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:W}renderHeadingText(){return this.headerText?C`<mdc-text id="${this.headSectionId}" type="${st.BODY_LARGE_REGULAR}" tagname=${gt.SPAN}
|
787
787
|
>${this.headerText}</mdc-text
|
788
788
|
>`:W}renderHeader(){return C`
|
789
789
|
<div
|
@@ -807,14 +807,14 @@
|
|
807
807
|
</div>
|
808
808
|
</div>
|
809
809
|
</div>
|
810
|
-
`}getArrowIconName(){return this.disabled?
|
810
|
+
`}getArrowIconName(){return this.disabled?ta.ARROW_DOWN:this.expanded?ta.ARROW_UP:ta.ARROW_DOWN}renderBody(){return this.disabled?W:this.expanded?C`<div
|
811
811
|
id="${this.bodySectionId}"
|
812
812
|
aria-labelledby="${this.headSectionId}"
|
813
813
|
part="body-section"
|
814
814
|
role="${tt.REGION}"
|
815
815
|
>
|
816
816
|
<slot></slot>
|
817
|
-
</div>`:W}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=
|
817
|
+
</div>`:W}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=xi.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=xi.SIZE),t.has("variant")&&!this.variant&&(this.variant=xi.VARIANT)}render(){return C` ${this.renderHeader()} ${this.renderBody()} `}};kr.styles=[...j.styles,...Gp],p([f({type:String,reflect:!0})],kr.prototype,"size",2),p([f({type:String,reflect:!0})],kr.prototype,"variant",2),p([f({type:Number,reflect:!0,attribute:"data-aria-level"})],kr.prototype,"dataAriaLevel",2),p([f({type:Boolean,reflect:!0})],kr.prototype,"expanded",2),p([f({type:String,reflect:!0,attribute:"header-text"})],kr.prototype,"headerText",2),p([f({type:String,attribute:"prefix-icon"})],kr.prototype,"prefixIcon",2);var Ho=kr;var fb=G`
|
818
818
|
:host::part(header-section) {
|
819
819
|
display: flex;
|
820
820
|
align-items: center;
|
@@ -828,7 +828,7 @@
|
|
828
828
|
:host::part(trailing-header__button) {
|
829
829
|
margin: 0.125rem;
|
830
830
|
}
|
831
|
-
`,
|
831
|
+
`,Yp=[fb];var Go=class extends Ho{update(i){super.update(i),i.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderHeader(){return C`
|
832
832
|
<div part="header-section">
|
833
833
|
<div part="leading-header">
|
834
834
|
${this.renderIcon(this.prefixIcon)}
|
@@ -845,12 +845,12 @@
|
|
845
845
|
aria-expanded="${this.expanded}"
|
846
846
|
title="${ot(this.headerText)}"
|
847
847
|
prefix-icon="${this.getArrowIconName()}"
|
848
|
-
variant="${
|
849
|
-
size="${
|
848
|
+
variant="${Pt.TERTIARY}"
|
849
|
+
size="${qe[20]}"
|
850
850
|
></mdc-button>
|
851
851
|
</div>
|
852
852
|
</div>
|
853
|
-
`}};
|
853
|
+
`}};Go.styles=[...Ho.styles,...Yp],p([Lt({slot:"leading-controls"})],Go.prototype,"leadingControlsSlot",2),p([Lt({slot:"trailing-controls"})],Go.prototype,"trailingControlsSlot",2);var gc=Go;var Cn=Y.constructTagName("accordion");gc.register(Cn);var vb=gc;var gb=G`
|
854
854
|
:host {
|
855
855
|
--mdc-accordiongroup-border-color: var(--mds-color-theme-outline-secondary-normal);
|
856
856
|
|
@@ -894,7 +894,7 @@
|
|
894
894
|
:host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
|
895
895
|
border-bottom: 1px solid var(--mdc-accordiongroup-border-color);
|
896
896
|
}
|
897
|
-
`,
|
897
|
+
`,Wp=[gb,...At()];var qr=class extends j{constructor(){super();this.size=Js.SIZE;this.variant=Js.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(o=>{o!==t.target&&o.hasAttribute("expanded")&&o.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,o){[...this.accordionItems].forEach(a=>{a.setAttribute(t,o)}),[...this.accordionButtonItems].forEach(a=>{a.setAttribute(t,o)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=Js.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=Js.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return C` <slot></slot> `}};qr.styles=[...j.styles,...Wp],p([f({type:String,reflect:!0})],qr.prototype,"size",2),p([f({type:String,reflect:!0})],qr.prototype,"variant",2),p([f({type:Boolean,reflect:!0,attribute:"allow-multiple"})],qr.prototype,"allowMultiple",2),p([Lt({selector:Cn})],qr.prototype,"accordionItems",2),p([Lt({selector:kn})],qr.prototype,"accordionButtonItems",2);var bc=qr;bc.register(Hp);var bb=bc;Ho.register(kn);var yb=Ho;var Eb=G`
|
898
898
|
:host {
|
899
899
|
height: 1.5rem;
|
900
900
|
gap: 0.25rem;
|
@@ -996,16 +996,16 @@
|
|
996
996
|
:host([variant='informational']:active) {
|
997
997
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
998
998
|
}
|
999
|
-
`,
|
1000
|
-
<mdc-icon part="icon" name="${
|
1001
|
-
${this.label?C`<mdc-text part="label" type="${
|
999
|
+
`,jp=[Et,Eb,...At()];var qp=Y.constructTagName("alertchip"),Zi={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Yo={VARIANT:Zi.NEUTRAL,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:gt.SPAN,SIZE:ji[24],ROLE:"button"};var Kp=l=>({[Zi.ERROR]:"error-legacy-badge-filled",[Zi.WARNING]:"warning-badge-filled",[Zi.SUCCESS]:"check-circle-badge-filled",[Zi.INFORMATIONAL]:"info-badge-filled",[Zi.NEUTRAL]:"dnd-presence-badge-filled"})[l];var Wo=class extends me{constructor(){super(...arguments);this.variant=Yo.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Yo.SIZE,this.role=Yo.ROLE}render(){return C`
|
1000
|
+
<mdc-icon part="icon" name="${Kp(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
1001
|
+
${this.label?C`<mdc-text part="label" type="${Yo.TEXT_TYPE}" tagname="${Yo.TAG_NAME}"
|
1002
1002
|
>${this.label}</mdc-text
|
1003
1003
|
>`:W}
|
1004
|
-
`}};
|
1004
|
+
`}};Wo.styles=[...j.styles,...jp],p([f({type:String})],Wo.prototype,"variant",2),p([f({type:String})],Wo.prototype,"label",2);var yc=Wo;yc.register(qp);var Tb=yc;var{I:RI}=Ep;var wn=l=>l.strings===void 0;var xb={},Xp=(l,i=xb)=>l._$AH=i;var pr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qi=l=>(...i)=>({_$litDirective$:l,values:i}),Ai=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,o){this.t=i,this._$AM=t,this.i=o}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var ea=(l,i)=>{var o;let t=l._$AN;if(t===void 0)return!1;for(let a of t)(o=a._$AO)==null||o.call(a,i,!1),ea(a,i);return!0},Nn=l=>{let i,t;do{if((i=l._$AM)===void 0)break;t=i._$AN,t.delete(l),l=i}while((t==null?void 0:t.size)===0)},Zp=l=>{for(let i;i=l._$AM;l=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(l))break;t.add(l),_b(i)}};function Ab(l){this._$AN!==void 0?(Nn(this),this._$AM=l,Zp(this)):this._$AM=l}function Sb(l,i=!1,t=0){let o=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(i)if(Array.isArray(o))for(let h=t;h<o.length;h++)ea(o[h],!1),Nn(o[h]);else o!=null&&(ea(o,!1),Nn(o));else ea(this,l)}var _b=l=>{var i,t;l.type==pr.CHILD&&((i=l._$AP)!=null||(l._$AP=Sb),(t=l._$AQ)!=null||(l._$AQ=Ab))},Ln=class extends Ai{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,o){super._$AT(i,t,o),Zp(this),this.isConnected=i._$AU}_$AO(i,t=!0){var o,a;i!==this.isConnected&&(this.isConnected=i,i?(o=this.reconnected)==null||o.call(this):(a=this.disconnected)==null||a.call(this)),t&&(ea(this,i),Nn(this))}setValue(i){if(wn(this.t))this.t._$AI(i,this);else{let t=[...this.t._$AH];t[this.i]=i,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Rn=()=>new Tc,Tc=class{},Ec=new WeakMap,Mn=Qi(class extends Ln{render(l){return W}update(l,[i]){var o;let t=i!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=i,this.ht=(o=l.options)==null?void 0:o.host,this.rt(this.ct=l.element)),W}rt(l){var i;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let t=(i=this.ht)!=null?i:globalThis,o=Ec.get(t);o===void 0&&(o=new WeakMap,Ec.set(t,o)),o.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),o.set(this.Y,l),l!==void 0&&this.Y.call(this.ht,l)}else this.Y.value=l}get lt(){var l,i,t;return typeof this.Y=="function"?(i=Ec.get((l=this.ht)!=null?l:globalThis))==null?void 0:i.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var em=$g(Qp());var xc={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 Ib=[Et,G`
|
1005
1005
|
:host svg {
|
1006
1006
|
display: block;
|
1007
1007
|
}
|
1008
|
-
`],
|
1008
|
+
`],Jp=Ib;var tm=Y.constructTagName("animation"),Pn={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var Kr=class extends j{constructor(){super(...arguments);this.name=Pn.NAME;this.loop=Pn.LOOP;this.autoplay=Pn.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=Rn();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=em.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let o=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(o)}getAnimationData(){this.name&&xc[this.name]?import(`@momentum-design/animations/dist/lottie${xc[this.name].replace(/^\.\/lottie/,"")}`).then(o=>this.onLoadSuccessHandler(o.default)).catch(o=>this.onLoadFailHandler(o)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return C`<div aria-hidden="true" ${Mn(this.containerRef)}></div>`}};Kr.styles=[...j.styles,...Jp],p([f({type:String,reflect:!0})],Kr.prototype,"name",2),p([f({type:String,reflect:!0})],Kr.prototype,"loop",2),p([f({type:Boolean,reflect:!0})],Kr.prototype,"autoplay",2),p([f({type:String,attribute:"aria-label"})],Kr.prototype,"ariaLabel",2),p([f({type:String,attribute:"aria-labelledby"})],Kr.prototype,"ariaLabelledBy",2);var Ac=Kr;Ac.register(tm);var kb=Ac;var Cb=G`
|
1009
1009
|
:host {
|
1010
1010
|
--mdc-appheader-height: 4rem;
|
1011
1011
|
}
|
@@ -1038,7 +1038,7 @@
|
|
1038
1038
|
:host::part(trailing-section) {
|
1039
1039
|
justify-content: flex-end;
|
1040
1040
|
}
|
1041
|
-
`,
|
1041
|
+
`,rm=[Cb];var Dn=class extends j{render(){return C` <header part="container">
|
1042
1042
|
<div part="leading-section">
|
1043
1043
|
<slot name="leading"></slot>
|
1044
1044
|
</div>
|
@@ -1048,7 +1048,7 @@
|
|
1048
1048
|
<div part="trailing-section">
|
1049
1049
|
<slot name="trailing"></slot>
|
1050
1050
|
</div>
|
1051
|
-
</header>`}};
|
1051
|
+
</header>`}};Dn.styles=[...j.styles,...rm];var Sc=Dn;var im=Y.constructTagName("appheader");Sc.register(im);var wb=Sc;var om=Y.constructTagName("avatar"),ye={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},_c=99,Nb="user-regular",$t={24:24,32:32,48:48,64:64,72:72,88:88,124:124},jo={TYPE:ye.PHOTO,SIZE:$t[32],ICON_NAME:Nb};var Fn=l=>{class i extends l{constructor(){super(...arguments);this.size=jo.SIZE;this.isTyping=!1}}return p([f({type:String})],i.prototype,"src",2),p([f({type:String})],i.prototype,"initials",2),p([f({type:String})],i.prototype,"presence",2),p([f({type:Number,reflect:!0,attribute:"size"})],i.prototype,"size",2),p([f({type:Number})],i.prototype,"counter",2),p([f({type:Boolean,attribute:"is-typing"})],i.prototype,"isTyping",2),i};var te=l=>{class i extends l{}return p([f({type:String,attribute:"icon-name"})],i.prototype,"iconName",2),i};var Lb=[Et,G`
|
1052
1052
|
:host {
|
1053
1053
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
1054
1054
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -1175,8 +1175,8 @@
|
|
1175
1175
|
outline: 0.125rem solid;
|
1176
1176
|
}
|
1177
1177
|
}
|
1178
|
-
`],
|
1179
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
1178
|
+
`],sm=Lb;var am=Y.constructTagName("presence"),fe={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"},ee={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},qo={TYPE:fe.ACTIVE,SIZE:ee.SMALL};var nm=l=>({[$t[124]]:ee.XX_LARGE,[$t[88]]:ee.X_LARGE,[$t[72]]:ee.LARGE,[$t[64]]:ee.MIDSIZE,[$t[48]]:ee.SMALL,[$t[32]]:ee.X_SMALL,[$t[24]]:ee.XX_SMALL})[l]||ee.X_SMALL,lm=l=>({[$t[124]]:4.75,[$t[88]]:3,[$t[72]]:2.5,[$t[64]]:2.25,[$t[48]]:1.75,[$t[32]]:1.25,[$t[24]]:1})[l]||1.25,cm=l=>({[$t[124]]:st.HEADING_XLARGE_MEDIUM,[$t[88]]:st.HEADING_LARGE_MEDIUM,[$t[72]]:st.HEADING_MIDSIZE_MEDIUM,[$t[64]]:st.HEADING_SMALL_MEDIUM,[$t[48]]:st.HEADING_SMALL_MEDIUM,[$t[32]]:st.BODY_MIDSIZE_MEDIUM,[$t[24]]:st.BODY_SMALL_MEDIUM})[l]||st.BODY_MIDSIZE_MEDIUM;var ia=class extends Fn(te(j)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(t){return t===ye.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?C`
|
1179
|
+
<mdc-presence part="presence" type="${this.presence}" size="${nm(this.size)}"></mdc-presence>
|
1180
1180
|
`: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 C`
|
1181
1181
|
<img
|
1182
1182
|
part="photo"
|
@@ -1186,14 +1186,14 @@
|
|
1186
1186
|
@load="${this.handleOnLoad}"
|
1187
1187
|
@error="${this.handleOnError}"
|
1188
1188
|
/>
|
1189
|
-
`}iconTemplate(){let t=this.iconName||
|
1190
|
-
<mdc-icon name="${ot(t)}" length-unit="rem" size="${
|
1191
|
-
`}textTemplate(t){return C` <mdc-text type="${
|
1189
|
+
`}iconTemplate(){let t=this.iconName||jo.ICON_NAME;return C`
|
1190
|
+
<mdc-icon name="${ot(t)}" length-unit="rem" size="${lm(this.size)}"></mdc-icon>
|
1191
|
+
`}textTemplate(t){return C` <mdc-text type="${cm(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>_c?`${_c}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let o="";return t===ye.TEXT&&this.initials&&(o=this.generateInitialsText(this.initials)),t===ye.COUNTER&&(this.counter||this.counter===0)&&(o=this.generateCounterText(this.counter)),this.textTemplate(o)}getTypeBasedOnInputs(){return this.src?ye.PHOTO:this.iconName?ye.ICON:this.initials?ye.TEXT:this.counter||this.counter===0?ye.COUNTER:ye.ICON}getTemplateBasedOnType(t){switch(t){case ye.PHOTO:return this.photoTemplate();case ye.TEXT:case ye.COUNTER:return this.generateTextContent(t);case ye.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?C`<div part="loading-wrapper"><div part="loader"></div></div>`:W}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?W:t===ye.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():W}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return C`
|
1192
1192
|
<div part="content" aria-hidden="true">
|
1193
1193
|
${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
|
1194
1194
|
${this.getPresenceTemplateBasedOnType(t)}
|
1195
1195
|
</div>
|
1196
|
-
`}};
|
1196
|
+
`}};ia.styles=[...j.styles,...sm],p([xt()],ia.prototype,"isPhotoLoaded",2);var Ic=ia;var Rb=[Et,G`
|
1197
1197
|
:host {
|
1198
1198
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
1199
1199
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -1287,7 +1287,7 @@
|
|
1287
1287
|
.mdc-presence-icon__scheduled {
|
1288
1288
|
color: var(--mdc-presence-scheduled-background-color);
|
1289
1289
|
}
|
1290
|
-
`],
|
1290
|
+
`],dm=Rb;var hm=l=>{switch(l){case fe.AWAY:return"recents-presence-badge-filled";case fe.AWAY_CALLING:return"away-calling-presence-filled";case fe.BUSY:return"busy-presence-bold";case fe.DND:return"dnd-presence-badge-filled";case fe.MEETING:return"camera-filled";case fe.ON_CALL:return"handset-filled";case fe.ON_DEVICE:return"generic-device-video-badge-filled";case fe.ON_MOBILE:return"phone-badge-filled";case fe.PAUSE:return"pause-badge-filled";case fe.PTO:return"pto-presence-filled";case fe.PRESENTING:return"share-screen-badge-filled";case fe.QUIET:return"quiet-hours-presence-filled";case fe.SCHEDULED:return"meetings-presence-badge-filled";case fe.ACTIVE:default:return"active-presence-small-filled"}};var Ji=class extends j{constructor(){super(...arguments);this.type=qo.TYPE;this.size=qo.SIZE;this.currentIconType=qo.TYPE}get iconSize(){switch(this.size){case ee.MIDSIZE:return 1.16125;case ee.LARGE:return 1.30625;case ee.X_LARGE:return 1.596875;case ee.XX_LARGE:return 2.25;case ee.XX_SMALL:case ee.X_SMALL:case ee.SMALL:default:return this.size=qo.SIZE,.875}}get icon(){let t=hm(this.type);return t==="active-presence-small-filled"&&(this.type=qo.TYPE),t}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 C`
|
1291
1291
|
<div class="mdc-presence mdc-presence__${this.size}">
|
1292
1292
|
<mdc-icon
|
1293
1293
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -1297,7 +1297,7 @@
|
|
1297
1297
|
@error="${this.handleOnError}"
|
1298
1298
|
></mdc-icon>
|
1299
1299
|
</div>
|
1300
|
-
`}};
|
1300
|
+
`}};Ji.styles=[...j.styles,...dm],p([f({type:String,reflect:!0})],Ji.prototype,"type",2),p([f({type:String,reflect:!0})],Ji.prototype,"size",2),p([xt()],Ji.prototype,"currentIconType",2);var kc=Ji;kc.register(am);var Mb=kc;Ic.register(om);var Ob=Ic;var Pb=[Et,G`
|
1301
1301
|
:host {
|
1302
1302
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
1303
1303
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -1326,7 +1326,7 @@
|
|
1326
1326
|
:host::part(presence) {
|
1327
1327
|
z-index: 2;
|
1328
1328
|
}
|
1329
|
-
`,...At()],
|
1329
|
+
`,...At()],pm=Pb;var oa=class extends Fn(te(me)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=tt.BUTTON,this.type=Me.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values($t).includes(t)?`${t}`:jo.SIZE.toString())}render(){return C`
|
1330
1330
|
<div part="overlay" aria-hidden="true"></div>
|
1331
1331
|
<mdc-avatar
|
1332
1332
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
@@ -1338,7 +1338,7 @@
|
|
1338
1338
|
size="${ot(this.size)}"
|
1339
1339
|
src="${ot(this.src)}"
|
1340
1340
|
></mdc-avatar>
|
1341
|
-
`}};
|
1341
|
+
`}};oa.styles=[...pm],p([f({type:String,attribute:"aria-label"})],oa.prototype,"ariaLabel",2);var Cc=oa;var mm=Y.constructTagName("avatarbutton");Cc.register(mm);var Db=Cc;var Cr=Qi(class extends Ai{constructor(l){var i;if(super(l),l.type!==pr.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 o,a;if(this.st===void 0){this.st=new Set,l.strings!==void 0&&(this.nt=new Set(l.strings.join(" ").split(/\s/).filter(h=>h!=="")));for(let h in i)i[h]&&!((o=this.nt)!=null&&o.has(h))&&this.st.add(h);return this.render(i)}let t=l.element.classList;for(let h of this.st)h in i||(t.remove(h),this.st.delete(h));for(let h in i){let m=!!i[h];m===this.st.has(h)||(a=this.nt)!=null&&a.has(h)||(m?(t.add(h),this.st.add(h)):(t.remove(h),this.st.delete(h)))}return Re}});var um=Y.constructTagName("badge"),Xe={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},$n={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},zn={PRIMARY:"primary",SECONDARY:"secondary"},sa={SUCCESS:"success",WARNING:"warning",ERROR:"error"},ZC={...zn,...sa},Si={TYPE:Xe.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:zn.PRIMARY,ICON_SIZE:1};var Fb=[Et,G`
|
1342
1342
|
:host {
|
1343
1343
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
1344
1344
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -1414,21 +1414,21 @@
|
|
1414
1414
|
outline: none;
|
1415
1415
|
}
|
1416
1416
|
}
|
1417
|
-
`],
|
1417
|
+
`],fm=Fb;var wr=class extends te(j){constructor(){super(...arguments);this.variant=Si.VARIANT;this.maxCounter=Si.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(t,o){return o===void 0||typeof o!="number"||t===0?"":o>t?`${t}+`:t>Si.MAX_COUNTER_LIMIT||o>Si.MAX_COUNTER_LIMIT?`${Si.MAX_COUNTER_LIMIT}+`:o.toString()}getBadgeIcon(t,o){return C`
|
1418
1418
|
<mdc-icon
|
1419
|
-
class="mdc-badge-icon ${
|
1419
|
+
class="mdc-badge-icon ${Cr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${o}`]:!0})}"
|
1420
1420
|
name="${ot(t)}"
|
1421
|
-
size="${
|
1421
|
+
size="${Si.ICON_SIZE}"
|
1422
1422
|
></mdc-icon>
|
1423
|
-
`}getBadgeDot(){return C`<div class="mdc-badge-dot ${
|
1423
|
+
`}getBadgeDot(){return C`<div class="mdc-badge-dot ${Cr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return C`
|
1424
1424
|
<mdc-text
|
1425
1425
|
type="${st.BODY_SMALL_MEDIUM}"
|
1426
1426
|
tagname="${gt.DIV}"
|
1427
|
-
class="mdc-badge-text ${
|
1427
|
+
class="mdc-badge-text ${Cr({"mdc-badge-overlay":this.overlay})}"
|
1428
1428
|
>
|
1429
1429
|
${this.getCounterText(this.maxCounter,this.counter)}
|
1430
1430
|
</mdc-text>
|
1431
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
1431
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(zn).includes(this.variant)&&(this.variant=Si.VARIANT);let{iconName:t,type:o,variant:a}=this;switch(o){case Xe.ICON:return this.getBadgeIcon(t||"",a);case Xe.COUNTER:return this.getBadgeCounterText();case Xe.SUCCESS:return this.getBadgeIcon($n.SUCCESS_ICON_NAME,sa.SUCCESS);case Xe.WARNING:return this.getBadgeIcon($n.WARNING_ICON_NAME,sa.WARNING);case Xe.ERROR:return this.getBadgeIcon($n.ERROR_ICON_NAME,sa.ERROR);case Xe.DOT:default:return this.type=Xe.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};wr.styles=[...j.styles,...fm],p([f({type:String,reflect:!0})],wr.prototype,"type",2),p([f({type:String,reflect:!0})],wr.prototype,"variant",2),p([f({type:Number})],wr.prototype,"counter",2),p([f({type:Number,attribute:"max-counter",reflect:!0})],wr.prototype,"maxCounter",2),p([f({type:Boolean})],wr.prototype,"overlay",2),p([f({type:String,attribute:"aria-label"})],wr.prototype,"ariaLabel",2);var wc=wr;wc.register(um);var $b=wc;var zb=G`
|
1432
1432
|
:host {
|
1433
1433
|
display: block;
|
1434
1434
|
height: 100%;
|
@@ -1437,7 +1437,7 @@
|
|
1437
1437
|
height: 100%;
|
1438
1438
|
width: 100%;
|
1439
1439
|
}
|
1440
|
-
`,
|
1440
|
+
`,vm=[zb];var gm=Y.constructTagName("brandvisual"),bm={NAME:void 0};var Ko=class extends j{constructor(){super(...arguments);this.name=bm.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(t){super.updated(t),t.has("name")&&this.getBrandVisualData().catch(o=>{this.onerror&&this.onerror(o)})}handleBrandVisualLoadedSuccess(t){this.brandVisualData=t;let o=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(o)}handleBrandVisualLoadedFailure(t){let o=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(o)}render(){return C` ${this.brandVisualData} `}};Ko.styles=[...j.styles,...vm],p([xt()],Ko.prototype,"brandVisualData",2),p([f({type:String,reflect:!0})],Ko.prototype,"name",2);var Nc=Ko;Nc.register(gm);var Vb=Nc;var Bb=G`
|
1441
1441
|
:host {
|
1442
1442
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
1443
1443
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -1458,7 +1458,7 @@
|
|
1458
1458
|
:host([size='large']) {
|
1459
1459
|
height: var(--mdc-bullet-size-large);
|
1460
1460
|
}
|
1461
|
-
`,
|
1461
|
+
`,ym=[Bb];var Em=Y.constructTagName("bullet"),Tm={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var aa=class extends j{constructor(){super(...arguments);this.size=Tm.SMALL}};aa.styles=[...j.styles,...ym],p([f({type:String,reflect:!0})],aa.prototype,"size",2);var Lc=aa;Lc.register(Em);var Ub=Lc;var xm=Y.constructTagName("buttongroup"),Hb={40:40,32:32,28:28,24:24},Gb={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Yb={PRIMARY:"primary",SECONDARY:"secondary"},Vn={SIZE:Hb[28],VARIANT:Yb.PRIMARY,ORIENTATION:Gb.HORIZONTAL};var Wb=G`
|
1462
1462
|
:host {
|
1463
1463
|
--mdc-buttongroup-border-radius: 1.25rem;
|
1464
1464
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1539,7 +1539,7 @@
|
|
1539
1539
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
1540
1540
|
width: 2.5rem;
|
1541
1541
|
}
|
1542
|
-
`,
|
1542
|
+
`,Am=[Et,Wb];var Xr=class extends j{constructor(){super(...arguments);this.orientation=Vn.ORIENTATION;this.variant=Vn.VARIANT;this.size=Vn.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return C`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Xr.styles=[...j.styles,...Am],p([f({type:String,reflect:!0})],Xr.prototype,"orientation",2),p([f({type:String,reflect:!0})],Xr.prototype,"variant",2),p([f({type:Number,reflect:!0})],Xr.prototype,"size",2),p([f({type:Boolean,reflect:!0})],Xr.prototype,"compact",2),p([Lt({selector:"mdc-button"})],Xr.prototype,"buttons",2);var Rc=Xr;Rc.register(xm);var jb=Rc;var Sm=Y.constructTagName("linksimple"),Xo={INLINE:!1,INVERTED:!1};var qb=[Et,G`
|
1543
1543
|
:host {
|
1544
1544
|
--mdc-link-border-radius: 0.25rem;
|
1545
1545
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1605,33 +1605,33 @@
|
|
1605
1605
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
1606
1606
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1607
1607
|
}
|
1608
|
-
`,...At()],
|
1608
|
+
`,...At()],_m=qb;var Zr=class extends zt(Ke(j)){constructor(){super(...arguments);this.inline=Xo.INLINE;this.inverted=Xo.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation.bind(this)),this.addEventListener("keydown",this.handleNavigation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation.bind(this)),this.removeEventListener("keydown",this.handleNavigation.bind(this))}handleNavigation(t){if((t.type==="click"||t instanceof KeyboardEvent&&t.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}setDisabled(t){t?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}render(){return C` <slot></slot> `}};Zr.styles=[...j.styles,..._m],p([f({type:Boolean,reflect:!0})],Zr.prototype,"inline",2),p([f({type:Boolean,reflect:!0})],Zr.prototype,"inverted",2),p([f({type:String,reflect:!0})],Zr.prototype,"href",2),p([f({type:String,reflect:!0})],Zr.prototype,"target",2),p([f({type:String,reflect:!0})],Zr.prototype,"rel",2);var _i=Zr;var Zo=class extends bn(_i){constructor(){super(...arguments);this.size=Me.SIZE}setSoftDisabled(t,o){o?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}render(){return C`
|
1609
1609
|
${this.prefixIcon?C` <mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1610
1610
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1611
1611
|
${this.postfixIcon?C` <mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1612
|
-
`}};
|
1612
|
+
`}};Zo.styles=[...Xi.styles],p([f({type:Number,reflect:!0})],Zo.prototype,"size",2),p([f({type:Boolean,attribute:"soft-disabled",reflect:!0})],Zo.prototype,"softDisabled",2);var Mc=Zo;var Im=Y.constructTagName("buttonlink");Mc.register(Im);var Kb=Mc;var Bn=Y.constructTagName("link"),Un={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Hn={LARGE:1,MIDSIZE:.875,SMALL:.75},km={LINK_SIZE:Un.LARGE};var Cm=Y.constructTagName("card"),Oc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Xb={HORIZONTAL:"horizontal",VERTICAL:"vertical"},re={VARIANT:Oc.BORDER,ORIENTATION:Xb.VERTICAL,TITLE_TYPE:st.HEADING_SMALL_BOLD,SUBTITLE_TYPE:st.BODY_MIDSIZE_MEDIUM,TAGNAME:gt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Bn,BUTTON:Yr};var Gn=l=>{class i extends l{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=re.VARIANT;this.orientation=re.ORIENTATION;this.titleTagName=re.TAGNAME;this.subtitleTagName=re.TAGNAME}renderImage(){return this.imageSrc?C`<div part="image-wrapper"><img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" /></div>`:W}renderIcon(){return this.iconName?C`<mdc-icon
|
1613
1613
|
part="icon"
|
1614
|
-
size="${
|
1615
|
-
length-unit="${
|
1614
|
+
size="${re.ICON_SIZE}"
|
1615
|
+
length-unit="${re.ICON_LENGTH_UNIT}"
|
1616
1616
|
name="${this.iconName}"
|
1617
1617
|
></mdc-icon>`:W}renderTitle(){return C`<div part="title-container">
|
1618
|
-
<mdc-text part="title" type="${
|
1619
|
-
${this.subtitle?C`<mdc-text part="subtitle" type="${
|
1618
|
+
<mdc-text part="title" type="${re.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
|
1619
|
+
${this.subtitle?C`<mdc-text part="subtitle" type="${re.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
1620
1620
|
>${this.subtitle}</mdc-text
|
1621
1621
|
>`:W}
|
1622
|
-
</div>`}}return p([
|
1622
|
+
</div>`}}return p([f({type:String,attribute:"card-title",reflect:!0})],i.prototype,"cardTitle",2),p([f({type:String,reflect:!0})],i.prototype,"subtitle",2),p([f({type:String,attribute:"image-src",reflect:!0})],i.prototype,"imageSrc",2),p([f({type:String,attribute:"image-alt",reflect:!0})],i.prototype,"imageAlt",2),p([f({type:String,reflect:!0})],i.prototype,"variant",2),p([f({type:String,reflect:!0})],i.prototype,"orientation",2),p([f({type:String,attribute:"title-tag-name",reflect:!0})],i.prototype,"titleTagName",2),p([f({type:String,attribute:"subtitle-tag-name",reflect:!0})],i.prototype,"subtitleTagName",2),p([f({type:String,attribute:"icon-name",reflect:!0})],i.prototype,"iconName",2),i};var Qo=l=>{class i extends l{updateFooterButtonColors(o){let a=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];a==null||a.forEach(h=>{o===Oc.PROMOTIONAL?h.setAttribute("color",qi.PROMOTIONAL):h.setAttribute("color",qi.DEFAULT)})}handleFooterSlot(o,a){var m,T,N;let h=[];o===re.LINK&&((m=this.footerLink)!=null&&m.length)?h=this.footerLink:o===re.BUTTON&&a===Pt.PRIMARY&&((T=this.footerButtonPrimary)!=null&&T.length)?h=this.footerButtonPrimary:o===re.BUTTON&&a===Pt.SECONDARY&&((N=this.footerButtonSecondary)!=null&&N.length)&&(h=this.footerButtonSecondary);for(let $=1;$<h.length;$+=1)h[$].remove();h.forEach($=>{$.matches(o)||$.remove(),a&&$.setAttribute("variant",a)})}renderFooter(){return C` <slot name="footer">
|
1623
1623
|
<div part="footer">
|
1624
|
-
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(
|
1624
|
+
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(re.LINK)}></slot>
|
1625
1625
|
<slot
|
1626
1626
|
name="footer-button-secondary"
|
1627
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1627
|
+
@slotchange=${()=>this.handleFooterSlot(re.BUTTON,Pt.SECONDARY)}
|
1628
1628
|
></slot>
|
1629
1629
|
<slot
|
1630
1630
|
name="footer-button-primary"
|
1631
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1631
|
+
@slotchange=${()=>this.handleFooterSlot(re.BUTTON,Pt.PRIMARY)}
|
1632
1632
|
></slot>
|
1633
1633
|
</div>
|
1634
|
-
</slot>`}}return p([Lt({slot:"footer-link"})],i.prototype,"footerLink",2),p([Lt({slot:"footer-button-primary"})],i.prototype,"footerButtonPrimary",2),p([Lt({slot:"footer-button-secondary"})],i.prototype,"footerButtonSecondary",2),i};var
|
1634
|
+
</slot>`}}return p([Lt({slot:"footer-link"})],i.prototype,"footerLink",2),p([Lt({slot:"footer-button-primary"})],i.prototype,"footerButtonPrimary",2),p([Lt({slot:"footer-button-secondary"})],i.prototype,"footerButtonSecondary",2),i};var Zb=G`
|
1635
1635
|
:host {
|
1636
1636
|
--mdc-card-width: 20rem;
|
1637
1637
|
align-items: stretch;
|
@@ -1740,7 +1740,7 @@
|
|
1740
1740
|
mdc-text::part(text) {
|
1741
1741
|
margin: 0;
|
1742
1742
|
}
|
1743
|
-
`,
|
1743
|
+
`,wm=[Et,Zb];var na=class extends Gn(Qo(j)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(o=>{o.matches(re.BUTTON)&&(o.setAttribute("variant",Pt.TERTIARY),o.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?C`<div part="header">
|
1744
1744
|
${this.renderIcon()} ${this.renderTitle()}
|
1745
1745
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
1746
1746
|
</div>`:W}render(){return C`
|
@@ -1754,7 +1754,7 @@
|
|
1754
1754
|
</div>
|
1755
1755
|
${this.renderFooter()}
|
1756
1756
|
</div>
|
1757
|
-
`}};
|
1757
|
+
`}};na.styles=[...j.styles,...wm],p([Lt({slot:"icon-button"})],na.prototype,"iconButtons",2);var mr=na;mr.register(Cm);var Qb=mr;var Jb=G`
|
1758
1758
|
:host {
|
1759
1759
|
cursor: pointer;
|
1760
1760
|
user-select: none;
|
@@ -1776,7 +1776,7 @@
|
|
1776
1776
|
:host([disabled])::part(image) {
|
1777
1777
|
opacity: 0.5;
|
1778
1778
|
}
|
1779
|
-
`,
|
1779
|
+
`,Nm=[Jb,...At()];var Yn=class extends Gn(me){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?C`<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>`:W}render(){return C`
|
1780
1780
|
${this.renderImage()}
|
1781
1781
|
<div part="body">
|
1782
1782
|
${this.renderHeader()}
|
@@ -1784,7 +1784,7 @@
|
|
1784
1784
|
<slot name="body"></slot>
|
1785
1785
|
<slot name="after-body"></slot>
|
1786
1786
|
</div>
|
1787
|
-
`}};
|
1787
|
+
`}};Yn.styles=[...mr.styles,...Nm];var Pc=Yn;var Lm=Y.constructTagName("cardbutton");Pc.register(Lm);var ty=Pc;var Rm=Y.constructTagName("cardcheckbox"),Dc={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Wn={CHECK:"check",CHECKBOX:"checkbox"},jn={SELECTION_TYPE:Wn.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var ey=G`
|
1788
1788
|
:host {
|
1789
1789
|
cursor: pointer;
|
1790
1790
|
user-select: none;
|
@@ -1841,12 +1841,12 @@
|
|
1841
1841
|
:host([disabled])::part(check-icon) {
|
1842
1842
|
color: var(--mds-color-theme-text-primary-disabled);
|
1843
1843
|
}
|
1844
|
-
`,
|
1844
|
+
`,Mm=[ey,...At()];var Jo=class extends zt(Ke(mr)){constructor(){super();this.checked=!1;this.selectionType=jn.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.toggleOnEnter.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(t){t.key===J.ENTER&&this.toggleChecked()}toggleOnSpace(t){t.key===J.SPACE&&this.toggleChecked()}renderSelection(){let t=this.checked?Dc.CHECKED:Dc.DEFAULT;switch(this.selectionType){case Wn.CHECK:return C`<mdc-icon
|
1845
1845
|
part="check check-icon"
|
1846
|
-
size="${
|
1847
|
-
length-unit="${
|
1846
|
+
size="${jn.ICON_SIZE}"
|
1847
|
+
length-unit="${jn.ICON_LENGTH_UNIT}"
|
1848
1848
|
name="${t}"
|
1849
|
-
></mdc-icon>`;case
|
1849
|
+
></mdc-icon>`;case Wn.CHECKBOX:return C`<mdc-staticcheckbox
|
1850
1850
|
part="check"
|
1851
1851
|
?checked="${this.checked}"
|
1852
1852
|
?disabled="${this.disabled}"
|
@@ -1858,7 +1858,7 @@
|
|
1858
1858
|
<slot name="body"></slot>
|
1859
1859
|
<slot name="after-body"></slot>
|
1860
1860
|
</div>
|
1861
|
-
`}};
|
1861
|
+
`}};Jo.styles=[...mr.styles,...Mm],p([f({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),p([f({type:String,attribute:"selection-type",reflect:!0})],Jo.prototype,"selectionType",2);var Fc=Jo;var ry=[G`
|
1862
1862
|
:host {
|
1863
1863
|
margin: 0.125rem 0;
|
1864
1864
|
border-radius: 0.125rem;
|
@@ -1914,15 +1914,15 @@
|
|
1914
1914
|
border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
|
1915
1915
|
}
|
1916
1916
|
}
|
1917
|
-
`],
|
1917
|
+
`],Om=ry;var Pm=Y.constructTagName("checkbox"),qn={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Dm=Y.constructTagName("staticcheckbox");var ts=class extends zt(j){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let t=this.checked||this.indeterminate?C`
|
1918
1918
|
<mdc-icon
|
1919
1919
|
class="icon"
|
1920
|
-
name="${this.indeterminate?
|
1920
|
+
name="${this.indeterminate?qn.INDETERMINATE:qn.CHECKED}"
|
1921
1921
|
size="1"
|
1922
1922
|
length-unit="rem"
|
1923
1923
|
></mdc-icon>
|
1924
1924
|
`:W;return C`<slot></slot>
|
1925
|
-
<div part="icon-container">${t}</div>`}};
|
1925
|
+
<div part="icon-container">${t}</div>`}};ts.styles=[...j.styles,...Om],p([f({type:Boolean,reflect:!0})],ts.prototype,"checked",2),p([f({type:Boolean,reflect:!0})],ts.prototype,"indeterminate",2);var $c=ts;$c.register(Dm);var iy=$c;Fc.register(Rm);var oy=Fc;var sy=G`
|
1926
1926
|
:host {
|
1927
1927
|
cursor: pointer;
|
1928
1928
|
user-select: none;
|
@@ -1975,7 +1975,7 @@
|
|
1975
1975
|
:host([disabled])::part(image) {
|
1976
1976
|
opacity: 0.5;
|
1977
1977
|
}
|
1978
|
-
`,
|
1978
|
+
`,Fm=[sy,...At()];var es=class extends zt(Ke(mr)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.toggleOnEnter.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(o=>{o.checked=!1}),this.checked=!0}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,o){t[o].focus(),t[o].toggleChecked()}toggleOnEnter(t){if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(m=>!m.disabled),h=a.indexOf(this);if(["ArrowDown","ArrowRight"].includes(t.key)){let m=(h+1)%a.length;this.updateCardRadio(a,m)}else if(["ArrowUp","ArrowLeft"].includes(t.key)){let m=(h-1+a.length)%a.length;this.updateCardRadio(a,m)}t.key===J.ENTER&&this.toggleChecked()}toggleOnSpace(t){t.key===J.SPACE&&this.toggleChecked()}renderHeader(){return this.cardTitle?C`<div part="header">
|
1979
1979
|
${this.renderIcon()} ${this.renderTitle()}
|
1980
1980
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
1981
1981
|
</div>`:W}render(){return C`
|
@@ -1986,7 +1986,7 @@
|
|
1986
1986
|
<slot name="body"></slot>
|
1987
1987
|
<slot name="after-body"></slot>
|
1988
1988
|
</div>
|
1989
|
-
`}};
|
1989
|
+
`}};es.styles=[...mr.styles,...Fm],p([f({type:Boolean,reflect:!0})],es.prototype,"checked",2),p([f({type:String})],es.prototype,"name",2);var zc=es;var Kn=Y.constructTagName("cardradio");var ay=[G`
|
1990
1990
|
:host {
|
1991
1991
|
display: block;
|
1992
1992
|
position: relative;
|
@@ -2069,8 +2069,8 @@
|
|
2069
2069
|
:host([readonly][checked]) .icon:after {
|
2070
2070
|
background-color: var(--mdc-staticradio-text-disabled-color);
|
2071
2071
|
}
|
2072
|
-
`]
|
2073
|
-
<span part="radio-icon" class="icon"></span>`}};es.styles=[...j.styles,...Dm],p([g({type:Boolean,reflect:!0})],es.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],es.prototype,"readonly",2);var zc=es;var Fm=Y.constructTagName("staticradio");zc.register(Fm);var iy=zc;$c.register(qn);var oy=$c;var wr=Math.min,ye=Math.max,la=Math.round,ca=Math.floor,mr=l=>({x:l,y:l}),sy={left:"right",right:"left",bottom:"top",top:"bottom"},ay={start:"end",end:"start"};function Xn(l,i,t){return ye(l,wr(i,t))}function Ji(l,i){return typeof l=="function"?l(i):l}function Zr(l){return l.split("-")[0]}function to(l){return l.split("-")[1]}function Vc(l){return l==="x"?"y":"x"}function Zn(l){return l==="y"?"height":"width"}var ny=new Set(["top","bottom"]);function Nr(l){return ny.has(Zr(l))?"y":"x"}function Qn(l){return Vc(Nr(l))}function Vm(l,i,t){t===void 0&&(t=!1);let o=to(l),a=Qn(l),h=Zn(a),m=a==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return i.reference[h]>i.floating[h]&&(m=na(m)),[m,na(m)]}function Bm(l){let i=na(l);return[Kn(l),i,Kn(i)]}function Kn(l){return l.replace(/start|end/g,i=>ay[i])}var $m=["left","right"],zm=["right","left"],ly=["top","bottom"],cy=["bottom","top"];function dy(l,i,t){switch(l){case"top":case"bottom":return t?i?zm:$m:i?$m:zm;case"left":case"right":return i?ly:cy;default:return[]}}function Um(l,i,t,o){let a=to(l),h=dy(Zr(l),t==="start",o);return a&&(h=h.map(m=>m+"-"+a),i&&(h=h.concat(h.map(Kn)))),h}function na(l){return l.replace(/left|right|bottom|top/g,i=>sy[i])}function hy(l){return{top:0,right:0,bottom:0,left:0,...l}}function Bc(l){return typeof l!="number"?hy(l):{top:l,right:l,bottom:l,left:l}}function eo(l){let{x:i,y:t,width:o,height:a}=l;return{width:o,height:a,top:t,left:i,right:i+o,bottom:t+a,x:i,y:t}}function Hm(l,i,t){let{reference:o,floating:a}=l,h=Nr(i),m=Qn(i),T=Zn(m),N=Zr(i),$=h==="y",q=o.x+o.width/2-a.width/2,K=o.y+o.height/2-a.height/2,nt=o[T]/2-a[T]/2,Q;switch(N){case"top":Q={x:q,y:o.y-a.height};break;case"bottom":Q={x:q,y:o.y+o.height};break;case"right":Q={x:o.x+o.width,y:K};break;case"left":Q={x:o.x-a.width,y:K};break;default:Q={x:o.x,y:o.y}}switch(to(i)){case"start":Q[m]-=nt*(t&&$?-1:1);break;case"end":Q[m]+=nt*(t&&$?-1:1);break}return Q}var Gm=async(l,i,t)=>{let{placement:o="bottom",strategy:a="absolute",middleware:h=[],platform:m}=t,T=h.filter(Boolean),N=await(m.isRTL==null?void 0:m.isRTL(i)),$=await m.getElementRects({reference:l,floating:i,strategy:a}),{x:q,y:K}=Hm($,o,N),nt=o,Q={},rt=0;for(let dt=0;dt<T.length;dt++){let{name:ut,fn:Tt}=T[dt],{x:St,y:Ct,data:Ht,reset:Dt}=await Tt({x:q,y:K,initialPlacement:o,placement:nt,strategy:a,middlewareData:Q,rects:$,platform:m,elements:{reference:l,floating:i}});q=St!=null?St:q,K=Ct!=null?Ct:K,Q={...Q,[ut]:{...Q[ut],...Ht}},Dt&&rt<=50&&(rt++,typeof Dt=="object"&&(Dt.placement&&(nt=Dt.placement),Dt.rects&&($=Dt.rects===!0?await m.getElementRects({reference:l,floating:i,strategy:a}):Dt.rects),{x:q,y:K}=Hm($,nt,N)),dt=-1)}return{x:q,y:K,placement:nt,strategy:a,middlewareData:Q}};async function Jn(l,i){var t;i===void 0&&(i={});let{x:o,y:a,platform:h,rects:m,elements:T,strategy:N}=l,{boundary:$="clippingAncestors",rootBoundary:q="viewport",elementContext:K="floating",altBoundary:nt=!1,padding:Q=0}=Ji(i,l),rt=Bc(Q),ut=T[nt?K==="floating"?"reference":"floating":K],Tt=eo(await h.getClippingRect({element:(t=await(h.isElement==null?void 0:h.isElement(ut)))==null||t?ut:ut.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(T.floating)),boundary:$,rootBoundary:q,strategy:N})),St=K==="floating"?{x:o,y:a,width:m.floating.width,height:m.floating.height}:m.reference,Ct=await(h.getOffsetParent==null?void 0:h.getOffsetParent(T.floating)),Ht=await(h.isElement==null?void 0:h.isElement(Ct))?await(h.getScale==null?void 0:h.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Dt=eo(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:T,rect:St,offsetParent:Ct,strategy:N}):St);return{top:(Tt.top-Dt.top+rt.top)/Ht.y,bottom:(Dt.bottom-Tt.bottom+rt.bottom)/Ht.y,left:(Tt.left-Dt.left+rt.left)/Ht.x,right:(Dt.right-Tt.right+rt.right)/Ht.x}}var Ym=l=>({name:"arrow",options:l,async fn(i){let{x:t,y:o,placement:a,rects:h,platform:m,elements:T,middlewareData:N}=i,{element:$,padding:q=0}=Ji(l,i)||{};if($==null)return{};let K=Bc(q),nt={x:t,y:o},Q=Qn(a),rt=Zn(Q),dt=await m.getDimensions($),ut=Q==="y",Tt=ut?"top":"left",St=ut?"bottom":"right",Ct=ut?"clientHeight":"clientWidth",Ht=h.reference[rt]+h.reference[Q]-nt[Q]-h.floating[rt],Dt=nt[Q]-h.reference[Q],zt=await(m.getOffsetParent==null?void 0:m.getOffsetParent($)),Wt=zt?zt[Ct]:0;(!Wt||!await(m.isElement==null?void 0:m.isElement(zt)))&&(Wt=T.floating[Ct]||h.floating[rt]);let ie=Ht/2-Dt/2,or=Wt/2-dt[rt]/2-1,_e=wr(K[Tt],or),Ve=wr(K[St],or),sr=_e,ar=Wt-dt[rt]-Ve,It=Wt/2-dt[rt]/2+ie,le=Xn(sr,It,ar),Be=!N.arrow&&to(a)!=null&&It!==le&&h.reference[rt]/2-(It<sr?_e:Ve)-dt[rt]/2<0,Ue=Be?It<sr?It-sr:It-ar:0;return{[Q]:nt[Q]+Ue,data:{[Q]:le,centerOffset:It-le-Ue,...Be&&{alignmentOffset:Ue}},reset:Be}}});var Wm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var t,o;let{placement:a,middlewareData:h,rects:m,initialPlacement:T,platform:N,elements:$}=i,{mainAxis:q=!0,crossAxis:K=!0,fallbackPlacements:nt,fallbackStrategy:Q="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:dt=!0,...ut}=Ji(l,i);if((t=h.arrow)!=null&&t.alignmentOffset)return{};let Tt=Zr(a),St=Nr(T),Ct=Zr(T)===T,Ht=await(N.isRTL==null?void 0:N.isRTL($.floating)),Dt=nt||(Ct||!dt?[na(T)]:Bm(T)),zt=rt!=="none";!nt&&zt&&Dt.push(...Um(T,dt,rt,Ht));let Wt=[T,...Dt],ie=await Jn(i,ut),or=[],_e=((o=h.flip)==null?void 0:o.overflows)||[];if(q&&or.push(ie[Tt]),K){let It=Vm(a,m,Ht);or.push(ie[It[0]],ie[It[1]])}if(_e=[..._e,{placement:a,overflows:or}],!or.every(It=>It<=0)){var Ve,sr;let It=(((Ve=h.flip)==null?void 0:Ve.index)||0)+1,le=Wt[It];if(le&&(!(K==="alignment"?St!==Nr(le):!1)||_e.every(He=>He.overflows[0]>0&&Nr(He.placement)===St)))return{data:{index:It,overflows:_e},reset:{placement:le}};let Be=(sr=_e.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,He)=>Ue.overflows[1]-He.overflows[1])[0])==null?void 0:sr.placement;if(!Be)switch(Q){case"bestFit":{var ar;let Ue=(ar=_e.filter(He=>{if(zt){let Ge=Nr(He.placement);return Ge===St||Ge==="y"}return!0}).map(He=>[He.placement,He.overflows.filter(Ge=>Ge>0).reduce((Ge,za)=>Ge+za,0)]).sort((He,Ge)=>He[1]-Ge[1])[0])==null?void 0:ar[0];Ue&&(Be=Ue);break}case"initialPlacement":Be=T;break}if(a!==Be)return{reset:{placement:Be}}}return{}}}};var py=new Set(["left","top"]);async function my(l,i){let{placement:t,platform:o,elements:a}=l,h=await(o.isRTL==null?void 0:o.isRTL(a.floating)),m=Zr(t),T=to(t),N=Nr(t)==="y",$=py.has(m)?-1:1,q=h&&N?-1:1,K=Ji(i,l),{mainAxis:nt,crossAxis:Q,alignmentAxis:rt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return T&&typeof rt=="number"&&(Q=T==="end"?rt*-1:rt),N?{x:Q*q,y:nt*$}:{x:nt*$,y:Q*q}}var jm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var t,o;let{x:a,y:h,placement:m,middlewareData:T}=i,N=await my(i,l);return m===((t=T.offset)==null?void 0:t.placement)&&(o=T.arrow)!=null&&o.alignmentOffset?{}:{x:a+N.x,y:h+N.y,data:{...N,placement:m}}}}},qm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){let{x:t,y:o,placement:a}=i,{mainAxis:h=!0,crossAxis:m=!1,limiter:T={fn:ut=>{let{x:Tt,y:St}=ut;return{x:Tt,y:St}}},...N}=Ji(l,i),$={x:t,y:o},q=await Jn(i,N),K=Nr(Zr(a)),nt=Vc(K),Q=$[nt],rt=$[K];if(h){let ut=nt==="y"?"top":"left",Tt=nt==="y"?"bottom":"right",St=Q+q[ut],Ct=Q-q[Tt];Q=Xn(St,Q,Ct)}if(m){let ut=K==="y"?"top":"left",Tt=K==="y"?"bottom":"right",St=rt+q[ut],Ct=rt-q[Tt];rt=Xn(St,rt,Ct)}let dt=T.fn({...i,[nt]:Q,[K]:rt});return{...dt,data:{x:dt.x-t,y:dt.y-o,enabled:{[nt]:h,[K]:m}}}}}};var Km=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var t,o;let{placement:a,rects:h,platform:m,elements:T}=i,{apply:N=()=>{},...$}=Ji(l,i),q=await Jn(i,$),K=Zr(a),nt=to(a),Q=Nr(a)==="y",{width:rt,height:dt}=h.floating,ut,Tt;K==="top"||K==="bottom"?(ut=K,Tt=nt===(await(m.isRTL==null?void 0:m.isRTL(T.floating))?"start":"end")?"left":"right"):(Tt=K,ut=nt==="end"?"top":"bottom");let St=dt-q.top-q.bottom,Ct=rt-q.left-q.right,Ht=wr(dt-q[ut],St),Dt=wr(rt-q[Tt],Ct),zt=!i.middlewareData.shift,Wt=Ht,ie=Dt;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ie=Ct),(o=i.middlewareData.shift)!=null&&o.enabled.y&&(Wt=St),zt&&!nt){let _e=ye(q.left,0),Ve=ye(q.right,0),sr=ye(q.top,0),ar=ye(q.bottom,0);Q?ie=rt-2*(_e!==0||Ve!==0?_e+Ve:ye(q.left,q.right)):Wt=dt-2*(sr!==0||ar!==0?sr+ar:ye(q.top,q.bottom))}await N({...i,availableWidth:ie,availableHeight:Wt});let or=await m.getDimensions(T.floating);return rt!==or.width||dt!==or.height?{reset:{rects:!0}}:{}}}};function tl(){return typeof window<"u"}function ro(l){return Zm(l)?(l.nodeName||"").toLowerCase():"#document"}function Me(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function ur(l){var i;return(i=(Zm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function Zm(l){return tl()?l instanceof Node||l instanceof Me(l).Node:!1}function Xe(l){return tl()?l instanceof Element||l instanceof Me(l).Element:!1}function fr(l){return tl()?l instanceof HTMLElement||l instanceof Me(l).HTMLElement:!1}function Xm(l){return!tl()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Me(l).ShadowRoot}var uy=new Set(["inline","contents"]);function is(l){let{overflow:i,overflowX:t,overflowY:o,display:a}=Ze(l);return/auto|scroll|overlay|hidden|clip/.test(i+o+t)&&!uy.has(a)}var fy=new Set(["table","td","th"]);function Qm(l){return fy.has(ro(l))}var vy=[":popover-open",":modal"];function da(l){return vy.some(i=>{try{return l.matches(i)}catch{return!1}})}var gy=["transform","translate","scale","rotate","perspective"],by=["transform","translate","scale","rotate","perspective","filter"],yy=["paint","layout","strict","content"];function el(l){let i=rl(),t=Xe(l)?Ze(l):l;return gy.some(o=>t[o]?t[o]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||by.some(o=>(t.willChange||"").includes(o))||yy.some(o=>(t.contain||"").includes(o))}function Jm(l){let i=Qr(l);for(;fr(i)&&!io(i);){if(el(i))return i;if(da(i))return null;i=Qr(i)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Ey=new Set(["html","body","#document"]);function io(l){return Ey.has(ro(l))}function Ze(l){return Me(l).getComputedStyle(l)}function ha(l){return Xe(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Qr(l){if(ro(l)==="html")return l;let i=l.assignedSlot||l.parentNode||Xm(l)&&l.host||ur(l);return Xm(i)?i.host:i}function tu(l){let i=Qr(l);return io(i)?l.ownerDocument?l.ownerDocument.body:l.body:fr(i)&&is(i)?i:tu(i)}function rs(l,i,t){var o;i===void 0&&(i=[]),t===void 0&&(t=!0);let a=tu(l),h=a===((o=l.ownerDocument)==null?void 0:o.body),m=Me(a);if(h){let T=il(m);return i.concat(m,m.visualViewport||[],is(a)?a:[],T&&t?rs(T):[])}return i.concat(a,rs(a,[],t))}function il(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function iu(l){let i=Ze(l),t=parseFloat(i.width)||0,o=parseFloat(i.height)||0,a=fr(l),h=a?l.offsetWidth:t,m=a?l.offsetHeight:o,T=la(t)!==h||la(o)!==m;return T&&(t=h,o=m),{width:t,height:o,$:T}}function Hc(l){return Xe(l)?l:l.contextElement}function os(l){let i=Hc(l);if(!fr(i))return mr(1);let t=i.getBoundingClientRect(),{width:o,height:a,$:h}=iu(i),m=(h?la(t.width):t.width)/o,T=(h?la(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!T||!Number.isFinite(T))&&(T=1),{x:m,y:T}}var Ty=mr(0);function ou(l){let i=Me(l);return!rl()||!i.visualViewport?Ty:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function xy(l,i,t){return i===void 0&&(i=!1),!t||i&&t!==Me(l)?!1:i}function oo(l,i,t,o){i===void 0&&(i=!1),t===void 0&&(t=!1);let a=l.getBoundingClientRect(),h=Hc(l),m=mr(1);i&&(o?Xe(o)&&(m=os(o)):m=os(l));let T=xy(h,t,o)?ou(h):mr(0),N=(a.left+T.x)/m.x,$=(a.top+T.y)/m.y,q=a.width/m.x,K=a.height/m.y;if(h){let nt=Me(h),Q=o&&Xe(o)?Me(o):o,rt=nt,dt=il(rt);for(;dt&&o&&Q!==rt;){let ut=os(dt),Tt=dt.getBoundingClientRect(),St=Ze(dt),Ct=Tt.left+(dt.clientLeft+parseFloat(St.paddingLeft))*ut.x,Ht=Tt.top+(dt.clientTop+parseFloat(St.paddingTop))*ut.y;N*=ut.x,$*=ut.y,q*=ut.x,K*=ut.y,N+=Ct,$+=Ht,rt=Me(dt),dt=il(rt)}}return eo({width:q,height:K,x:N,y:$})}function Gc(l,i){let t=ha(l).scrollLeft;return i?i.left+t:oo(ur(l)).left+t}function su(l,i,t){t===void 0&&(t=!1);let o=l.getBoundingClientRect(),a=o.left+i.scrollLeft-(t?0:Gc(l,o)),h=o.top+i.scrollTop;return{x:a,y:h}}function Ay(l){let{elements:i,rect:t,offsetParent:o,strategy:a}=l,h=a==="fixed",m=ur(o),T=i?da(i.floating):!1;if(o===m||T&&h)return t;let N={scrollLeft:0,scrollTop:0},$=mr(1),q=mr(0),K=fr(o);if((K||!K&&!h)&&((ro(o)!=="body"||is(m))&&(N=ha(o)),fr(o))){let Q=oo(o);$=os(o),q.x=Q.x+o.clientLeft,q.y=Q.y+o.clientTop}let nt=m&&!K&&!h?su(m,N,!0):mr(0);return{width:t.width*$.x,height:t.height*$.y,x:t.x*$.x-N.scrollLeft*$.x+q.x+nt.x,y:t.y*$.y-N.scrollTop*$.y+q.y+nt.y}}function Sy(l){return Array.from(l.getClientRects())}function _y(l){let i=ur(l),t=ha(l),o=l.ownerDocument.body,a=ye(i.scrollWidth,i.clientWidth,o.scrollWidth,o.clientWidth),h=ye(i.scrollHeight,i.clientHeight,o.scrollHeight,o.clientHeight),m=-t.scrollLeft+Gc(l),T=-t.scrollTop;return Ze(o).direction==="rtl"&&(m+=ye(i.clientWidth,o.clientWidth)-a),{width:a,height:h,x:m,y:T}}function Iy(l,i){let t=Me(l),o=ur(l),a=t.visualViewport,h=o.clientWidth,m=o.clientHeight,T=0,N=0;if(a){h=a.width,m=a.height;let $=rl();(!$||$&&i==="fixed")&&(T=a.offsetLeft,N=a.offsetTop)}return{width:h,height:m,x:T,y:N}}var ky=new Set(["absolute","fixed"]);function Cy(l,i){let t=oo(l,!0,i==="fixed"),o=t.top+l.clientTop,a=t.left+l.clientLeft,h=fr(l)?os(l):mr(1),m=l.clientWidth*h.x,T=l.clientHeight*h.y,N=a*h.x,$=o*h.y;return{width:m,height:T,x:N,y:$}}function eu(l,i,t){let o;if(i==="viewport")o=Iy(l,t);else if(i==="document")o=_y(ur(l));else if(Xe(i))o=Cy(i,t);else{let a=ou(l);o={x:i.x-a.x,y:i.y-a.y,width:i.width,height:i.height}}return eo(o)}function au(l,i){let t=Qr(l);return t===i||!Xe(t)||io(t)?!1:Ze(t).position==="fixed"||au(t,i)}function wy(l,i){let t=i.get(l);if(t)return t;let o=rs(l,[],!1).filter(T=>Xe(T)&&ro(T)!=="body"),a=null,h=Ze(l).position==="fixed",m=h?Qr(l):l;for(;Xe(m)&&!io(m);){let T=Ze(m),N=el(m);!N&&T.position==="fixed"&&(a=null),(h?!N&&!a:!N&&T.position==="static"&&!!a&&ky.has(a.position)||is(m)&&!N&&au(l,m))?o=o.filter(q=>q!==m):a=T,m=Qr(m)}return i.set(l,o),o}function Ny(l){let{element:i,boundary:t,rootBoundary:o,strategy:a}=l,m=[...t==="clippingAncestors"?da(i)?[]:wy(i,this._c):[].concat(t),o],T=m[0],N=m.reduce(($,q)=>{let K=eu(i,q,a);return $.top=ye(K.top,$.top),$.right=wr(K.right,$.right),$.bottom=wr(K.bottom,$.bottom),$.left=ye(K.left,$.left),$},eu(i,T,a));return{width:N.right-N.left,height:N.bottom-N.top,x:N.left,y:N.top}}function Ly(l){let{width:i,height:t}=iu(l);return{width:i,height:t}}function Ry(l,i,t){let o=fr(i),a=ur(i),h=t==="fixed",m=oo(l,!0,h,i),T={scrollLeft:0,scrollTop:0},N=mr(0);function $(){N.x=Gc(a)}if(o||!o&&!h)if((ro(i)!=="body"||is(a))&&(T=ha(i)),o){let Q=oo(i,!0,h,i);N.x=Q.x+i.clientLeft,N.y=Q.y+i.clientTop}else a&&$();h&&!o&&a&&$();let q=a&&!o&&!h?su(a,T):mr(0),K=m.left+T.scrollLeft-N.x-q.x,nt=m.top+T.scrollTop-N.y-q.y;return{x:K,y:nt,width:m.width,height:m.height}}function Uc(l){return Ze(l).position==="static"}function ru(l,i){if(!fr(l)||Ze(l).position==="fixed")return null;if(i)return i(l);let t=l.offsetParent;return ur(l)===t&&(t=t.ownerDocument.body),t}function nu(l,i){let t=Me(l);if(da(l))return t;if(!fr(l)){let a=Qr(l);for(;a&&!io(a);){if(Xe(a)&&!Uc(a))return a;a=Qr(a)}return t}let o=ru(l,i);for(;o&&Qm(o)&&Uc(o);)o=ru(o,i);return o&&io(o)&&Uc(o)&&!el(o)?t:o||Jm(l)||t}var My=async function(l){let i=this.getOffsetParent||nu,t=this.getDimensions,o=await t(l.floating);return{reference:Ry(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Oy(l){return Ze(l).direction==="rtl"}var Py={convertOffsetParentRelativeRectToViewportRelativeRect:Ay,getDocumentElement:ur,getClippingRect:Ny,getOffsetParent:nu,getElementRects:My,getClientRects:Sy,getDimensions:Ly,getScale:os,isElement:Xe,isRTL:Oy};function lu(l,i){return l.x===i.x&&l.y===i.y&&l.width===i.width&&l.height===i.height}function Dy(l,i){let t=null,o,a=ur(l);function h(){var T;clearTimeout(o),(T=t)==null||T.disconnect(),t=null}function m(T,N){T===void 0&&(T=!1),N===void 0&&(N=1),h();let $=l.getBoundingClientRect(),{left:q,top:K,width:nt,height:Q}=$;if(T||i(),!nt||!Q)return;let rt=ca(K),dt=ca(a.clientWidth-(q+nt)),ut=ca(a.clientHeight-(K+Q)),Tt=ca(q),Ct={rootMargin:-rt+"px "+-dt+"px "+-ut+"px "+-Tt+"px",threshold:ye(0,wr(1,N))||1},Ht=!0;function Dt(zt){let Wt=zt[0].intersectionRatio;if(Wt!==N){if(!Ht)return m();Wt?m(!1,Wt):o=setTimeout(()=>{m(!1,1e-7)},1e3)}Wt===1&&!lu($,l.getBoundingClientRect())&&m(),Ht=!1}try{t=new IntersectionObserver(Dt,{...Ct,root:a.ownerDocument})}catch{t=new IntersectionObserver(Dt,Ct)}t.observe(l)}return m(!0),h}function cu(l,i,t,o){o===void 0&&(o={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:T=typeof IntersectionObserver=="function",animationFrame:N=!1}=o,$=Hc(l),q=a||h?[...$?rs($):[],...rs(i)]:[];q.forEach(Tt=>{a&&Tt.addEventListener("scroll",t,{passive:!0}),h&&Tt.addEventListener("resize",t)});let K=$&&T?Dy($,t):null,nt=-1,Q=null;m&&(Q=new ResizeObserver(Tt=>{let[St]=Tt;St&&St.target===$&&Q&&(Q.unobserve(i),cancelAnimationFrame(nt),nt=requestAnimationFrame(()=>{var Ct;(Ct=Q)==null||Ct.observe(i)})),t()}),$&&!N&&Q.observe($),Q.observe(i));let rt,dt=N?oo(l):null;N&&ut();function ut(){let Tt=oo(l);dt&&!lu(dt,Tt)&&t(),dt=Tt,rt=requestAnimationFrame(ut)}return t(),()=>{var Tt;q.forEach(St=>{a&&St.removeEventListener("scroll",t),h&&St.removeEventListener("resize",t)}),K==null||K(),(Tt=Q)==null||Tt.disconnect(),Q=null,N&&cancelAnimationFrame(rt)}}var du=jm;var hu=qm,pu=Wm,mu=Km;var uu=Ym;var fu=(l,i,t)=>{let o=new Map,a={platform:Py,...t},h={...a.platform,_c:o};return Gm(l,i,{...a,platform:h})};var ol=l=>{class i extends l{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null}createBackdrop(a){let h=document.createElement("div");h.classList.add(`${a}-backdrop`);let m=document.createElement("style");m.textContent=`
|
2072
|
+
`],$m=ay;var rs=class extends zt(j){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return C` <slot></slot>
|
2073
|
+
<span part="radio-icon" class="icon"></span>`}};rs.styles=[...j.styles,...$m],p([f({type:Boolean,reflect:!0})],rs.prototype,"checked",2),p([f({type:Boolean,reflect:!0})],rs.prototype,"readonly",2);var Vc=rs;var zm=Y.constructTagName("staticradio");Vc.register(zm);var ny=Vc;zc.register(Kn);var ly=zc;var Nr=Math.min,Ee=Math.max,ca=Math.round,da=Math.floor,ur=l=>({x:l,y:l}),cy={left:"right",right:"left",bottom:"top",top:"bottom"},dy={start:"end",end:"start"};function Zn(l,i,t){return Ee(l,Nr(i,t))}function to(l,i){return typeof l=="function"?l(i):l}function Qr(l){return l.split("-")[0]}function eo(l){return l.split("-")[1]}function Bc(l){return l==="x"?"y":"x"}function Qn(l){return l==="y"?"height":"width"}var hy=new Set(["top","bottom"]);function Lr(l){return hy.has(Qr(l))?"y":"x"}function Jn(l){return Bc(Lr(l))}function Um(l,i,t){t===void 0&&(t=!1);let o=eo(l),a=Jn(l),h=Qn(a),m=a==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return i.reference[h]>i.floating[h]&&(m=la(m)),[m,la(m)]}function Hm(l){let i=la(l);return[Xn(l),i,Xn(i)]}function Xn(l){return l.replace(/start|end/g,i=>dy[i])}var Vm=["left","right"],Bm=["right","left"],py=["top","bottom"],my=["bottom","top"];function uy(l,i,t){switch(l){case"top":case"bottom":return t?i?Bm:Vm:i?Vm:Bm;case"left":case"right":return i?py:my;default:return[]}}function Gm(l,i,t,o){let a=eo(l),h=uy(Qr(l),t==="start",o);return a&&(h=h.map(m=>m+"-"+a),i&&(h=h.concat(h.map(Xn)))),h}function la(l){return l.replace(/left|right|bottom|top/g,i=>cy[i])}function fy(l){return{top:0,right:0,bottom:0,left:0,...l}}function Uc(l){return typeof l!="number"?fy(l):{top:l,right:l,bottom:l,left:l}}function ro(l){let{x:i,y:t,width:o,height:a}=l;return{width:o,height:a,top:t,left:i,right:i+o,bottom:t+a,x:i,y:t}}function Ym(l,i,t){let{reference:o,floating:a}=l,h=Lr(i),m=Jn(i),T=Qn(m),N=Qr(i),$=h==="y",q=o.x+o.width/2-a.width/2,K=o.y+o.height/2-a.height/2,nt=o[T]/2-a[T]/2,Q;switch(N){case"top":Q={x:q,y:o.y-a.height};break;case"bottom":Q={x:q,y:o.y+o.height};break;case"right":Q={x:o.x+o.width,y:K};break;case"left":Q={x:o.x-a.width,y:K};break;default:Q={x:o.x,y:o.y}}switch(eo(i)){case"start":Q[m]-=nt*(t&&$?-1:1);break;case"end":Q[m]+=nt*(t&&$?-1:1);break}return Q}var Wm=async(l,i,t)=>{let{placement:o="bottom",strategy:a="absolute",middleware:h=[],platform:m}=t,T=h.filter(Boolean),N=await(m.isRTL==null?void 0:m.isRTL(i)),$=await m.getElementRects({reference:l,floating:i,strategy:a}),{x:q,y:K}=Ym($,o,N),nt=o,Q={},rt=0;for(let dt=0;dt<T.length;dt++){let{name:ut,fn:Tt}=T[dt],{x:St,y:Ct,data:Gt,reset:Ft}=await Tt({x:q,y:K,initialPlacement:o,placement:nt,strategy:a,middlewareData:Q,rects:$,platform:m,elements:{reference:l,floating:i}});q=St!=null?St:q,K=Ct!=null?Ct:K,Q={...Q,[ut]:{...Q[ut],...Gt}},Ft&&rt<=50&&(rt++,typeof Ft=="object"&&(Ft.placement&&(nt=Ft.placement),Ft.rects&&($=Ft.rects===!0?await m.getElementRects({reference:l,floating:i,strategy:a}):Ft.rects),{x:q,y:K}=Ym($,nt,N)),dt=-1)}return{x:q,y:K,placement:nt,strategy:a,middlewareData:Q}};async function tl(l,i){var t;i===void 0&&(i={});let{x:o,y:a,platform:h,rects:m,elements:T,strategy:N}=l,{boundary:$="clippingAncestors",rootBoundary:q="viewport",elementContext:K="floating",altBoundary:nt=!1,padding:Q=0}=to(i,l),rt=Uc(Q),ut=T[nt?K==="floating"?"reference":"floating":K],Tt=ro(await h.getClippingRect({element:(t=await(h.isElement==null?void 0:h.isElement(ut)))==null||t?ut:ut.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(T.floating)),boundary:$,rootBoundary:q,strategy:N})),St=K==="floating"?{x:o,y:a,width:m.floating.width,height:m.floating.height}:m.reference,Ct=await(h.getOffsetParent==null?void 0:h.getOffsetParent(T.floating)),Gt=await(h.isElement==null?void 0:h.isElement(Ct))?await(h.getScale==null?void 0:h.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Ft=ro(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:T,rect:St,offsetParent:Ct,strategy:N}):St);return{top:(Tt.top-Ft.top+rt.top)/Gt.y,bottom:(Ft.bottom-Tt.bottom+rt.bottom)/Gt.y,left:(Tt.left-Ft.left+rt.left)/Gt.x,right:(Ft.right-Tt.right+rt.right)/Gt.x}}var jm=l=>({name:"arrow",options:l,async fn(i){let{x:t,y:o,placement:a,rects:h,platform:m,elements:T,middlewareData:N}=i,{element:$,padding:q=0}=to(l,i)||{};if($==null)return{};let K=Uc(q),nt={x:t,y:o},Q=Jn(a),rt=Qn(Q),dt=await m.getDimensions($),ut=Q==="y",Tt=ut?"top":"left",St=ut?"bottom":"right",Ct=ut?"clientHeight":"clientWidth",Gt=h.reference[rt]+h.reference[Q]-nt[Q]-h.floating[rt],Ft=nt[Q]-h.reference[Q],Vt=await(m.getOffsetParent==null?void 0:m.getOffsetParent($)),jt=Vt?Vt[Ct]:0;(!jt||!await(m.isElement==null?void 0:m.isElement(Vt)))&&(jt=T.floating[Ct]||h.floating[rt]);let oe=Gt/2-Ft/2,sr=jt/2-dt[rt]/2-1,Ie=Nr(K[Tt],sr),Be=Nr(K[St],sr),ar=Ie,nr=jt-dt[rt]-Be,It=jt/2-dt[rt]/2+oe,ce=Zn(ar,It,nr),Ue=!N.arrow&&eo(a)!=null&&It!==ce&&h.reference[rt]/2-(It<ar?Ie:Be)-dt[rt]/2<0,He=Ue?It<ar?It-ar:It-nr:0;return{[Q]:nt[Q]+He,data:{[Q]:ce,centerOffset:It-ce-He,...Ue&&{alignmentOffset:He}},reset:Ue}}});var qm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var t,o;let{placement:a,middlewareData:h,rects:m,initialPlacement:T,platform:N,elements:$}=i,{mainAxis:q=!0,crossAxis:K=!0,fallbackPlacements:nt,fallbackStrategy:Q="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:dt=!0,...ut}=to(l,i);if((t=h.arrow)!=null&&t.alignmentOffset)return{};let Tt=Qr(a),St=Lr(T),Ct=Qr(T)===T,Gt=await(N.isRTL==null?void 0:N.isRTL($.floating)),Ft=nt||(Ct||!dt?[la(T)]:Hm(T)),Vt=rt!=="none";!nt&&Vt&&Ft.push(...Gm(T,dt,rt,Gt));let jt=[T,...Ft],oe=await tl(i,ut),sr=[],Ie=((o=h.flip)==null?void 0:o.overflows)||[];if(q&&sr.push(oe[Tt]),K){let It=Um(a,m,Gt);sr.push(oe[It[0]],oe[It[1]])}if(Ie=[...Ie,{placement:a,overflows:sr}],!sr.every(It=>It<=0)){var Be,ar;let It=(((Be=h.flip)==null?void 0:Be.index)||0)+1,ce=jt[It];if(ce&&(!(K==="alignment"?St!==Lr(ce):!1)||Ie.every(Ge=>Ge.overflows[0]>0&&Lr(Ge.placement)===St)))return{data:{index:It,overflows:Ie},reset:{placement:ce}};let Ue=(ar=Ie.filter(He=>He.overflows[0]<=0).sort((He,Ge)=>He.overflows[1]-Ge.overflows[1])[0])==null?void 0:ar.placement;if(!Ue)switch(Q){case"bestFit":{var nr;let He=(nr=Ie.filter(Ge=>{if(Vt){let Ye=Lr(Ge.placement);return Ye===St||Ye==="y"}return!0}).map(Ge=>[Ge.placement,Ge.overflows.filter(Ye=>Ye>0).reduce((Ye,Va)=>Ye+Va,0)]).sort((Ge,Ye)=>Ge[1]-Ye[1])[0])==null?void 0:nr[0];He&&(Ue=He);break}case"initialPlacement":Ue=T;break}if(a!==Ue)return{reset:{placement:Ue}}}return{}}}};var vy=new Set(["left","top"]);async function gy(l,i){let{placement:t,platform:o,elements:a}=l,h=await(o.isRTL==null?void 0:o.isRTL(a.floating)),m=Qr(t),T=eo(t),N=Lr(t)==="y",$=vy.has(m)?-1:1,q=h&&N?-1:1,K=to(i,l),{mainAxis:nt,crossAxis:Q,alignmentAxis:rt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return T&&typeof rt=="number"&&(Q=T==="end"?rt*-1:rt),N?{x:Q*q,y:nt*$}:{x:nt*$,y:Q*q}}var Km=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var t,o;let{x:a,y:h,placement:m,middlewareData:T}=i,N=await gy(i,l);return m===((t=T.offset)==null?void 0:t.placement)&&(o=T.arrow)!=null&&o.alignmentOffset?{}:{x:a+N.x,y:h+N.y,data:{...N,placement:m}}}}},Xm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){let{x:t,y:o,placement:a}=i,{mainAxis:h=!0,crossAxis:m=!1,limiter:T={fn:ut=>{let{x:Tt,y:St}=ut;return{x:Tt,y:St}}},...N}=to(l,i),$={x:t,y:o},q=await tl(i,N),K=Lr(Qr(a)),nt=Bc(K),Q=$[nt],rt=$[K];if(h){let ut=nt==="y"?"top":"left",Tt=nt==="y"?"bottom":"right",St=Q+q[ut],Ct=Q-q[Tt];Q=Zn(St,Q,Ct)}if(m){let ut=K==="y"?"top":"left",Tt=K==="y"?"bottom":"right",St=rt+q[ut],Ct=rt-q[Tt];rt=Zn(St,rt,Ct)}let dt=T.fn({...i,[nt]:Q,[K]:rt});return{...dt,data:{x:dt.x-t,y:dt.y-o,enabled:{[nt]:h,[K]:m}}}}}};var Zm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var t,o;let{placement:a,rects:h,platform:m,elements:T}=i,{apply:N=()=>{},...$}=to(l,i),q=await tl(i,$),K=Qr(a),nt=eo(a),Q=Lr(a)==="y",{width:rt,height:dt}=h.floating,ut,Tt;K==="top"||K==="bottom"?(ut=K,Tt=nt===(await(m.isRTL==null?void 0:m.isRTL(T.floating))?"start":"end")?"left":"right"):(Tt=K,ut=nt==="end"?"top":"bottom");let St=dt-q.top-q.bottom,Ct=rt-q.left-q.right,Gt=Nr(dt-q[ut],St),Ft=Nr(rt-q[Tt],Ct),Vt=!i.middlewareData.shift,jt=Gt,oe=Ft;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(oe=Ct),(o=i.middlewareData.shift)!=null&&o.enabled.y&&(jt=St),Vt&&!nt){let Ie=Ee(q.left,0),Be=Ee(q.right,0),ar=Ee(q.top,0),nr=Ee(q.bottom,0);Q?oe=rt-2*(Ie!==0||Be!==0?Ie+Be:Ee(q.left,q.right)):jt=dt-2*(ar!==0||nr!==0?ar+nr:Ee(q.top,q.bottom))}await N({...i,availableWidth:oe,availableHeight:jt});let sr=await m.getDimensions(T.floating);return rt!==sr.width||dt!==sr.height?{reset:{rects:!0}}:{}}}};function el(){return typeof window<"u"}function io(l){return Jm(l)?(l.nodeName||"").toLowerCase():"#document"}function Oe(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function fr(l){var i;return(i=(Jm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function Jm(l){return el()?l instanceof Node||l instanceof Oe(l).Node:!1}function Ze(l){return el()?l instanceof Element||l instanceof Oe(l).Element:!1}function vr(l){return el()?l instanceof HTMLElement||l instanceof Oe(l).HTMLElement:!1}function Qm(l){return!el()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Oe(l).ShadowRoot}var by=new Set(["inline","contents"]);function os(l){let{overflow:i,overflowX:t,overflowY:o,display:a}=Qe(l);return/auto|scroll|overlay|hidden|clip/.test(i+o+t)&&!by.has(a)}var yy=new Set(["table","td","th"]);function tu(l){return yy.has(io(l))}var Ey=[":popover-open",":modal"];function ha(l){return Ey.some(i=>{try{return l.matches(i)}catch{return!1}})}var Ty=["transform","translate","scale","rotate","perspective"],xy=["transform","translate","scale","rotate","perspective","filter"],Ay=["paint","layout","strict","content"];function rl(l){let i=il(),t=Ze(l)?Qe(l):l;return Ty.some(o=>t[o]?t[o]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||xy.some(o=>(t.willChange||"").includes(o))||Ay.some(o=>(t.contain||"").includes(o))}function eu(l){let i=Jr(l);for(;vr(i)&&!oo(i);){if(rl(i))return i;if(ha(i))return null;i=Jr(i)}return null}function il(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Sy=new Set(["html","body","#document"]);function oo(l){return Sy.has(io(l))}function Qe(l){return Oe(l).getComputedStyle(l)}function pa(l){return Ze(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Jr(l){if(io(l)==="html")return l;let i=l.assignedSlot||l.parentNode||Qm(l)&&l.host||fr(l);return Qm(i)?i.host:i}function ru(l){let i=Jr(l);return oo(i)?l.ownerDocument?l.ownerDocument.body:l.body:vr(i)&&os(i)?i:ru(i)}function is(l,i,t){var o;i===void 0&&(i=[]),t===void 0&&(t=!0);let a=ru(l),h=a===((o=l.ownerDocument)==null?void 0:o.body),m=Oe(a);if(h){let T=ol(m);return i.concat(m,m.visualViewport||[],os(a)?a:[],T&&t?is(T):[])}return i.concat(a,is(a,[],t))}function ol(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function su(l){let i=Qe(l),t=parseFloat(i.width)||0,o=parseFloat(i.height)||0,a=vr(l),h=a?l.offsetWidth:t,m=a?l.offsetHeight:o,T=ca(t)!==h||ca(o)!==m;return T&&(t=h,o=m),{width:t,height:o,$:T}}function Gc(l){return Ze(l)?l:l.contextElement}function ss(l){let i=Gc(l);if(!vr(i))return ur(1);let t=i.getBoundingClientRect(),{width:o,height:a,$:h}=su(i),m=(h?ca(t.width):t.width)/o,T=(h?ca(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!T||!Number.isFinite(T))&&(T=1),{x:m,y:T}}var _y=ur(0);function au(l){let i=Oe(l);return!il()||!i.visualViewport?_y:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Iy(l,i,t){return i===void 0&&(i=!1),!t||i&&t!==Oe(l)?!1:i}function so(l,i,t,o){i===void 0&&(i=!1),t===void 0&&(t=!1);let a=l.getBoundingClientRect(),h=Gc(l),m=ur(1);i&&(o?Ze(o)&&(m=ss(o)):m=ss(l));let T=Iy(h,t,o)?au(h):ur(0),N=(a.left+T.x)/m.x,$=(a.top+T.y)/m.y,q=a.width/m.x,K=a.height/m.y;if(h){let nt=Oe(h),Q=o&&Ze(o)?Oe(o):o,rt=nt,dt=ol(rt);for(;dt&&o&&Q!==rt;){let ut=ss(dt),Tt=dt.getBoundingClientRect(),St=Qe(dt),Ct=Tt.left+(dt.clientLeft+parseFloat(St.paddingLeft))*ut.x,Gt=Tt.top+(dt.clientTop+parseFloat(St.paddingTop))*ut.y;N*=ut.x,$*=ut.y,q*=ut.x,K*=ut.y,N+=Ct,$+=Gt,rt=Oe(dt),dt=ol(rt)}}return ro({width:q,height:K,x:N,y:$})}function Yc(l,i){let t=pa(l).scrollLeft;return i?i.left+t:so(fr(l)).left+t}function nu(l,i,t){t===void 0&&(t=!1);let o=l.getBoundingClientRect(),a=o.left+i.scrollLeft-(t?0:Yc(l,o)),h=o.top+i.scrollTop;return{x:a,y:h}}function ky(l){let{elements:i,rect:t,offsetParent:o,strategy:a}=l,h=a==="fixed",m=fr(o),T=i?ha(i.floating):!1;if(o===m||T&&h)return t;let N={scrollLeft:0,scrollTop:0},$=ur(1),q=ur(0),K=vr(o);if((K||!K&&!h)&&((io(o)!=="body"||os(m))&&(N=pa(o)),vr(o))){let Q=so(o);$=ss(o),q.x=Q.x+o.clientLeft,q.y=Q.y+o.clientTop}let nt=m&&!K&&!h?nu(m,N,!0):ur(0);return{width:t.width*$.x,height:t.height*$.y,x:t.x*$.x-N.scrollLeft*$.x+q.x+nt.x,y:t.y*$.y-N.scrollTop*$.y+q.y+nt.y}}function Cy(l){return Array.from(l.getClientRects())}function wy(l){let i=fr(l),t=pa(l),o=l.ownerDocument.body,a=Ee(i.scrollWidth,i.clientWidth,o.scrollWidth,o.clientWidth),h=Ee(i.scrollHeight,i.clientHeight,o.scrollHeight,o.clientHeight),m=-t.scrollLeft+Yc(l),T=-t.scrollTop;return Qe(o).direction==="rtl"&&(m+=Ee(i.clientWidth,o.clientWidth)-a),{width:a,height:h,x:m,y:T}}function Ny(l,i){let t=Oe(l),o=fr(l),a=t.visualViewport,h=o.clientWidth,m=o.clientHeight,T=0,N=0;if(a){h=a.width,m=a.height;let $=il();(!$||$&&i==="fixed")&&(T=a.offsetLeft,N=a.offsetTop)}return{width:h,height:m,x:T,y:N}}var Ly=new Set(["absolute","fixed"]);function Ry(l,i){let t=so(l,!0,i==="fixed"),o=t.top+l.clientTop,a=t.left+l.clientLeft,h=vr(l)?ss(l):ur(1),m=l.clientWidth*h.x,T=l.clientHeight*h.y,N=a*h.x,$=o*h.y;return{width:m,height:T,x:N,y:$}}function iu(l,i,t){let o;if(i==="viewport")o=Ny(l,t);else if(i==="document")o=wy(fr(l));else if(Ze(i))o=Ry(i,t);else{let a=au(l);o={x:i.x-a.x,y:i.y-a.y,width:i.width,height:i.height}}return ro(o)}function lu(l,i){let t=Jr(l);return t===i||!Ze(t)||oo(t)?!1:Qe(t).position==="fixed"||lu(t,i)}function My(l,i){let t=i.get(l);if(t)return t;let o=is(l,[],!1).filter(T=>Ze(T)&&io(T)!=="body"),a=null,h=Qe(l).position==="fixed",m=h?Jr(l):l;for(;Ze(m)&&!oo(m);){let T=Qe(m),N=rl(m);!N&&T.position==="fixed"&&(a=null),(h?!N&&!a:!N&&T.position==="static"&&!!a&&Ly.has(a.position)||os(m)&&!N&&lu(l,m))?o=o.filter(q=>q!==m):a=T,m=Jr(m)}return i.set(l,o),o}function Oy(l){let{element:i,boundary:t,rootBoundary:o,strategy:a}=l,m=[...t==="clippingAncestors"?ha(i)?[]:My(i,this._c):[].concat(t),o],T=m[0],N=m.reduce(($,q)=>{let K=iu(i,q,a);return $.top=Ee(K.top,$.top),$.right=Nr(K.right,$.right),$.bottom=Nr(K.bottom,$.bottom),$.left=Ee(K.left,$.left),$},iu(i,T,a));return{width:N.right-N.left,height:N.bottom-N.top,x:N.left,y:N.top}}function Py(l){let{width:i,height:t}=su(l);return{width:i,height:t}}function Dy(l,i,t){let o=vr(i),a=fr(i),h=t==="fixed",m=so(l,!0,h,i),T={scrollLeft:0,scrollTop:0},N=ur(0);function $(){N.x=Yc(a)}if(o||!o&&!h)if((io(i)!=="body"||os(a))&&(T=pa(i)),o){let Q=so(i,!0,h,i);N.x=Q.x+i.clientLeft,N.y=Q.y+i.clientTop}else a&&$();h&&!o&&a&&$();let q=a&&!o&&!h?nu(a,T):ur(0),K=m.left+T.scrollLeft-N.x-q.x,nt=m.top+T.scrollTop-N.y-q.y;return{x:K,y:nt,width:m.width,height:m.height}}function Hc(l){return Qe(l).position==="static"}function ou(l,i){if(!vr(l)||Qe(l).position==="fixed")return null;if(i)return i(l);let t=l.offsetParent;return fr(l)===t&&(t=t.ownerDocument.body),t}function cu(l,i){let t=Oe(l);if(ha(l))return t;if(!vr(l)){let a=Jr(l);for(;a&&!oo(a);){if(Ze(a)&&!Hc(a))return a;a=Jr(a)}return t}let o=ou(l,i);for(;o&&tu(o)&&Hc(o);)o=ou(o,i);return o&&oo(o)&&Hc(o)&&!rl(o)?t:o||eu(l)||t}var Fy=async function(l){let i=this.getOffsetParent||cu,t=this.getDimensions,o=await t(l.floating);return{reference:Dy(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function $y(l){return Qe(l).direction==="rtl"}var zy={convertOffsetParentRelativeRectToViewportRelativeRect:ky,getDocumentElement:fr,getClippingRect:Oy,getOffsetParent:cu,getElementRects:Fy,getClientRects:Cy,getDimensions:Py,getScale:ss,isElement:Ze,isRTL:$y};function du(l,i){return l.x===i.x&&l.y===i.y&&l.width===i.width&&l.height===i.height}function Vy(l,i){let t=null,o,a=fr(l);function h(){var T;clearTimeout(o),(T=t)==null||T.disconnect(),t=null}function m(T,N){T===void 0&&(T=!1),N===void 0&&(N=1),h();let $=l.getBoundingClientRect(),{left:q,top:K,width:nt,height:Q}=$;if(T||i(),!nt||!Q)return;let rt=da(K),dt=da(a.clientWidth-(q+nt)),ut=da(a.clientHeight-(K+Q)),Tt=da(q),Ct={rootMargin:-rt+"px "+-dt+"px "+-ut+"px "+-Tt+"px",threshold:Ee(0,Nr(1,N))||1},Gt=!0;function Ft(Vt){let jt=Vt[0].intersectionRatio;if(jt!==N){if(!Gt)return m();jt?m(!1,jt):o=setTimeout(()=>{m(!1,1e-7)},1e3)}jt===1&&!du($,l.getBoundingClientRect())&&m(),Gt=!1}try{t=new IntersectionObserver(Ft,{...Ct,root:a.ownerDocument})}catch{t=new IntersectionObserver(Ft,Ct)}t.observe(l)}return m(!0),h}function hu(l,i,t,o){o===void 0&&(o={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:T=typeof IntersectionObserver=="function",animationFrame:N=!1}=o,$=Gc(l),q=a||h?[...$?is($):[],...is(i)]:[];q.forEach(Tt=>{a&&Tt.addEventListener("scroll",t,{passive:!0}),h&&Tt.addEventListener("resize",t)});let K=$&&T?Vy($,t):null,nt=-1,Q=null;m&&(Q=new ResizeObserver(Tt=>{let[St]=Tt;St&&St.target===$&&Q&&(Q.unobserve(i),cancelAnimationFrame(nt),nt=requestAnimationFrame(()=>{var Ct;(Ct=Q)==null||Ct.observe(i)})),t()}),$&&!N&&Q.observe($),Q.observe(i));let rt,dt=N?so(l):null;N&&ut();function ut(){let Tt=so(l);dt&&!du(dt,Tt)&&t(),dt=Tt,rt=requestAnimationFrame(ut)}return t(),()=>{var Tt;q.forEach(St=>{a&&St.removeEventListener("scroll",t),h&&St.removeEventListener("resize",t)}),K==null||K(),(Tt=Q)==null||Tt.disconnect(),Q=null,N&&cancelAnimationFrame(rt)}}var pu=Km;var mu=Xm,uu=qm,fu=Zm;var vu=jm;var gu=(l,i,t)=>{let o=new Map,a={platform:zy,...t},h={...a.platform,_c:o};return Wm(l,i,{...a,platform:h})};var sl=l=>{class i extends l{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null}createBackdrop(a){let h=document.createElement("div");h.classList.add(`${a}-backdrop`);let m=document.createElement("style");m.textContent=`
|
2074
2074
|
.${a}-backdrop {
|
2075
2075
|
position: fixed;
|
2076
2076
|
top: 0;
|
@@ -2080,7 +2080,7 @@
|
|
2080
2080
|
background: ${this.isBackdropInvisible?"transparent":"var(--mds-color-theme-common-overlays-secondary-normal)"};
|
2081
2081
|
z-index: ${this.zIndex-1};
|
2082
2082
|
}
|
2083
|
-
`,h.appendChild(m);let N=document.getElementById(this.backdropAppendTo)||this.parentElement;N==null||N.appendChild(h),this.backdropElement=h}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(a){a&&(this.elementOriginalStyle={zIndex:a.style.zIndex,position:a.style.position},a.style.zIndex=`${this.zIndex}`,["fixed","absolute"].includes(window.getComputedStyle(a).position)||(a.style.position="relative"))}moveElementBackAfterBackdropRemoval(a){!a||!this.elementOriginalStyle||(a.style.zIndex=this.elementOriginalStyle.zIndex,a.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0)}}return i};var
|
2083
|
+
`,h.appendChild(m);let N=document.getElementById(this.backdropAppendTo)||this.parentElement;N==null||N.appendChild(h),this.backdropElement=h}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(a){a&&(this.elementOriginalStyle={zIndex:a.style.zIndex,position:a.style.position},a.style.zIndex=`${this.zIndex}`,["fixed","absolute"].includes(window.getComputedStyle(a).position)||(a.style.position="relative"))}moveElementBackAfterBackdropRemoval(a){!a||!this.elementOriginalStyle||(a.style.zIndex=this.elementOriginalStyle.zIndex,a.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0)}}return i};var as=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(t=>{t!==i&&t.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 t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};as.stack=new Set,as.currentKeydownListener=null;var al=l=>{class i extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(a){this.isFocusTrapActivated=a}activateFocusTrap(){this.setIsFocusTrapActivated(!0),as.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),as.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:m}=a.getBoundingClientRect(),{offsetWidth:T,offsetHeight:N}=a;return T+N+m+h===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:h,opacity:m,visibility:T}=a.style;return h==="none"||m==="0"||T==="hidden"||T==="collapse"}hasComputedHidden(a){let h=getComputedStyle(a);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(a){return a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(a)||this.isNotVisible(a)||this.hasComputedHidden(a)}isDisabled(a){return a.disabled}isNotTabbable(a){return a.getAttribute("tabindex")==="-1"}isInteractiveElement(a){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1)}isFocusable(a){return this.isHidden(a)||this.isNotTabbable(a)||this.isDisabled(a)?!1:this.isInteractiveElement(a)}findFocusable(a,h=new Set){a instanceof HTMLElement&&this.isFocusable(a)&&h.add(a);let m=[];return a.children.length?m=Array.from(a.children):a instanceof HTMLElement&&a.shadowRoot&&(m=Array.from(a.shadowRoot.children)),m.forEach(T=>{let N=T;this.isFocusable(N)&&h.add(N),N.shadowRoot?this.findFocusable(N.shadowRoot,h):N.tagName==="SLOT"?N.assignedElements({flatten:!0}).forEach(q=>{q instanceof HTMLElement&&this.findFocusable(q,h)}):this.findFocusable(N,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus({preventScroll:!0}))}calculateNextIndex(a,h){let{length:m}=this.focusableElements;if(a===-1)return h>0?0:m-1;let T=a+h;return this.shouldFocusTrapWrap?(T<0&&(T=m-1),T>=m&&(T=0)):(T<0&&(T=0),T>=m&&(T=m-1)),T}getDeepActiveElement(){var h;let a=document.activeElement||document.body;for(;a instanceof HTMLElement&&((h=a.shadowRoot)!=null&&h.activeElement);)a=a.shadowRoot.activeElement;return a||document.body}findElement(a){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(a,h))}isEqualFocusNode(a,h){return a.nodeType>=0?h.isEqualNode(a)&&h===a:!1}trapFocus(a){if(this.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),m=this.findElement(h);a.shiftKey?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let N=this.focusableElements[this.focusTrapIndex];N.tagName!=="IFRAME"&&N&&(a.preventDefault(),N.focus())}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&this.trapFocus(a)}}return p([f({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var nl=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 bu=Y.constructTagName("popover"),Ht={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"},ao={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},no={TONAL:"tonal",CONTRAST:"contrast"},kt={PLACEMENT:Ht.BOTTOM,TRIGGER:ao.CLICK,COLOR:no.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,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,STRATEGY:"absolute",IS_BACKDROP_INVISIBLE:!1};var ti=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.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 Wc=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(t=>t!==i)}has(i){return this.stack.includes(i)}clear(){this.stack=[]}},Te=new Wc;var By=G`
|
2084
2084
|
:host {
|
2085
2085
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
2086
2086
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -2201,7 +2201,7 @@
|
|
2201
2201
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
2202
2202
|
border-bottom-left-radius: 100%;
|
2203
2203
|
}
|
2204
|
-
`,gu=[Fy];var nl=class{constructor(i){this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(o=>{let a=parseInt(o,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${o}`);return a});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){let t=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let o=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,h=this.popover.offsetWidth||0;if(t)switch(i.split("-")[0]){case"top":t.style.height=o,t.style.bottom=`calc(-1 * (${o}))`,t.style.left="50%",t.style.width=`${h}px`;break;case"left":t.style.height=`${a}px`,t.style.width=o,t.style.right=`calc(-1.5 * (${o}))`;break;case"right":t.style.height=`${a}px`,t.style.width=o,t.style.left=`calc(-0.5 * (${o}))`;break;case"bottom":default:t.style.height=o,t.style.top=`calc(-1 * (${o}))`,t.style.left="50%",t.style.width=`${h}px`;break}}setupAppendTo(){if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&i.appendChild(this.popover)}}updateAriaLabels(){var i,t,o;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((o=this.popover.triggerElement)==null?void 0:o.id)||""))}updateAriaModal(){this.popover.role===tt.DIALOG||this.popover.role===tt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var i,t,o;this.popover.interactive&&!this.popover.disableAriaHasPopup?(t=this.popover.triggerElement)==null||t.setAttribute("aria-haspopup",((i=this.popover.triggerElement)==null?void 0:i.getAttribute("aria-haspopup"))||"dialog"):(o=this.popover.triggerElement)==null||o.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var i,t;this.popover.disableAriaExpanded?(i=this.popover.triggerElement)==null||i.removeAttribute("aria-expanded"):(t=this.popover.triggerElement)==null||t.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(i,t){var q;if(!this.popover.arrowElement)return;let o=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[o],{x:h,y:m}=i,T=this.popover.arrowElement.getBoundingClientRect(),N=(q=this.popover.arrowElement.offsetParent)==null?void 0:q.getBoundingClientRect();if(!this.arrowPixelChange){let K=N!=null&&N[a]?12-Math.abs(T[a]-N[a]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let $=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",o),Object.assign(this.popover.arrowElement.style,{left:h!=null?`${h}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-$}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}};var _t=class _t extends ol(al(sl(j))){constructor(){super();this.id="";this.triggerID="";this.trigger=kt.TRIGGER;this.placement=kt.PLACEMENT;this.color=kt.COLOR;this.visible=kt.VISIBLE;this.offset=kt.OFFSET;this.boundary=kt.BOUNDARY;this.boundaryRoot=kt.BOUNDARY_ROOT;this.focusTrap=kt.FOCUS_TRAP;this.preventScroll=kt.PREVENT_SCROLL;this.showArrow=kt.ARROW;this.closeButton=kt.CLOSE_BUTTON;this.interactive=kt.INTERACTIVE;this.delay=kt.DELAY;this.hideOnEscape=kt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=kt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=kt.HIDE_ON_BLUR;this.hideOnOutsideClick=kt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=kt.FOCUS_BACK;this.backdrop=kt.BACKDROP;this.isBackdropInvisible=kt.IS_BACKDROP_INVISIBLE;this.flip=kt.FLIP;this.size=kt.SIZE;this.zIndex=kt.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=kt.STRATEGY;this.role=kt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=kt.DISABLE_ARIA_EXPANDED;this.disableAriaHasPopup=kt.DISABLE_ARIA_HAS_POPUP;this.keepConnectedTooltipClosed=kt.KEEP_CONNECTED_TOOLTIP_CLOSED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSupressOpening=!1;this.connectedTooltip=null;this.storeConnectedTooltip=()=>{let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);for(let o of t)if(o!==this){this.connectedTooltip=o;return}this.connectedTooltip=null};this.cleanupTrigger=()=>{var h;let a=(((h=this.trigger)==null?void 0:h.split(" "))||[]).filter(m=>Object.values(so).includes(m)).length>0?this.trigger:kt.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.triggerElement){if(this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.addEventListener("mouseenter",this.show),this.triggerElement.addEventListener("mouseenter",this.handleMouseEnter),this.triggerElement.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.handleFocusIn),this.interactive||this.triggerElement.addEventListener("focusout",this.handleFocusOut))}};this.removeTriggerListeners=()=>{var o,a,h,m,T;(o=this.triggerElement)==null||o.removeEventListener("click",this.togglePopoverVisible);let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.removeEventListener("mouseenter",this.show),(a=this.triggerElement)==null||a.removeEventListener("mouseenter",this.handleMouseEnter),(h=this.triggerElement)==null||h.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),(m=this.triggerElement)==null||m.removeEventListener("focusin",this.handleFocusIn),(T=this.triggerElement)==null||T.removeEventListener("focusout",this.handleFocusOut)};this.removeAllListeners=()=>{var t;this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),(t=this.triggerElement)==null||t.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ee.peek()!==this)return;let o=t.composedPath(),a=this.contains(t.target)||o.includes(this.triggerElement)||o.includes(this),h=this.backdropElement?o.includes(this.backdropElement):!1;(!a||h)&&(this.hide(),Jr.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Jr.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=()=>{this.isHovered=!0,this.show()};this.handleMouseLeave=()=>{this.isHovered=!1,this.startCloseDelay()};this.handleFocusOut=()=>{this.isHovered||this.hide()};this.handleFocusIn=()=>{var t;((t=this.triggerElement)!=null&&t.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSupressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=()=>{this.visible?this.hide():this.show()};this.positionPopover=()=>{if(!this.triggerElement)return;let t=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),o=this.boundaryRoot,a=[hu({boundary:t,rootBoundary:o,padding:this.boundaryPadding})],h=this.offset;if(this.flip&&a.push(pu({boundary:t,rootBoundary:o})),this.size){let m=N=>{this.style.setProperty("--mdc-popover-internal-available-height",`${N}px`)},T=this.renderRoot.querySelector('[part="popover-content"]');a.push(mu({boundary:t,rootBoundary:o,apply({availableHeight:N}){T&&(Object.assign(T.style,{maxHeight:`${N}px`,overflowY:"auto"}),m(N))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let m=this.arrowElement.offsetHeight,T=Math.sqrt(2*m**2)/2;h+=T,a.push(uu({element:this.arrowElement,padding:12}))}a.push(du(h)),this.floatingUICleanupFunction=cu(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:m,y:T,middlewareData:N,placement:$}=await fu(this.triggerElement,this,{placement:this.placement,middleware:a,strategy:this.strategy});this.utils.updatePopoverStyle(m,T),N.arrow&&this.arrowElement&&this.utils.updateArrowStyle(N.arrow,$),this.trigger.includes("mouseenter")&&this.interactive&&this.utils.setupHoverBridge($)})};this.findClosestPopover=t=>{let o=t;for(;o&&!(o instanceof _t);)o=o.parentElement;return o};this.utils=new nl(this)}setupTriggerRelatedElement(){this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.storeConnectedTooltip()}async firstUpdated(t){super.firstUpdated(t),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerRelatedElement(),this.cleanupTrigger(),this.setupTriggerListeners(),this.style.zIndex=`${this.zIndex}`,Jr.onCreatedPopover(this)}async disconnectedCallback(){var t,o;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(o=this.floatingUICleanupFunction)==null||o.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSupressOpening=!1),Jr.onDestroyedPopover(this),Ee.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let o=t.get("visible")||!1;await this.isOpenUpdated(o,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.cleanupTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Ut).includes(this.placement)?this.placement:kt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(ao).includes(this.color)?this.color:kt.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("append-to")&&this.utils.setupAppendTo(),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),(t.has("interactive")||t.has("disableAriaHasPopup"))&&this.utils.updateAriaHasPopupAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,o){var a,h,m,T,N;t===o||!this.triggerElement||(o&&!this.shouldSupressOpening?(Ee.peek()!==this&&Ee.push(this),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSupressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(this.triggerElement)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),(a=this.triggerElement)==null||a.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),setTimeout(()=>{var $,q;this.interactive&&this.focusTrap&&(($=this.activateFocusTrap)==null||$.call(this),(q=this.setInitialFocus)==null||q.call(this))},0),Jr.onShowPopover(this)):(Ee.peek()===this&&Ee.pop(),(h=this.floatingUICleanupFunction)==null||h.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop()),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),(m=this.triggerElement)==null||m.removeEventListener("keydown",this.onEscapeKeydown)),this.disableAriaExpanded&&this.triggerElement.removeAttribute("aria-expanded"),this.interactive||this.triggerElement.removeAttribute("aria-haspopup"),this.deactivatePreventScroll(),(T=this.deactivateFocusTrap)==null||T.call(this),this.focusBackToTrigger&&((N=this.triggerElement)==null||N.focus()),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSupressOpening=!1),Jr.onHidePopover(this)))}render(){return C`
|
2204
|
+
`,yu=[By];var ll=class{constructor(i){this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(o=>{let a=parseInt(o,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${o}`);return a});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){let t=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let o=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,h=this.popover.offsetWidth||0;if(t)switch(i.split("-")[0]){case"top":t.style.height=o,t.style.bottom=`calc(-1 * (${o}))`,t.style.left="50%",t.style.width=`${h}px`;break;case"left":t.style.height=`${a}px`,t.style.width=o,t.style.right=`calc(-1.5 * (${o}))`;break;case"right":t.style.height=`${a}px`,t.style.width=o,t.style.left=`calc(-0.5 * (${o}))`;break;case"bottom":default:t.style.height=o,t.style.top=`calc(-1 * (${o}))`,t.style.left="50%",t.style.width=`${h}px`;break}}setupAppendTo(){if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&i.appendChild(this.popover)}}updateAriaLabels(){var i,t,o;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((o=this.popover.triggerElement)==null?void 0:o.id)||""))}updateAriaModal(){this.popover.role===tt.DIALOG||this.popover.role===tt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var i,t,o;this.popover.interactive&&!this.popover.disableAriaHasPopup?(t=this.popover.triggerElement)==null||t.setAttribute("aria-haspopup",((i=this.popover.triggerElement)==null?void 0:i.getAttribute("aria-haspopup"))||"dialog"):(o=this.popover.triggerElement)==null||o.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var i,t;this.popover.disableAriaExpanded?(i=this.popover.triggerElement)==null||i.removeAttribute("aria-expanded"):(t=this.popover.triggerElement)==null||t.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(i,t){var q;if(!this.popover.arrowElement)return;let o=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[o],{x:h,y:m}=i,T=this.popover.arrowElement.getBoundingClientRect(),N=(q=this.popover.arrowElement.offsetParent)==null?void 0:q.getBoundingClientRect();if(!this.arrowPixelChange){let K=N!=null&&N[a]?12-Math.abs(T[a]-N[a]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let $=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",o),Object.assign(this.popover.arrowElement.style,{left:h!=null?`${h}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-$}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}};var _t=class _t extends sl(nl(al(j))){constructor(){super();this.id="";this.triggerID="";this.trigger=kt.TRIGGER;this.placement=kt.PLACEMENT;this.color=kt.COLOR;this.visible=kt.VISIBLE;this.offset=kt.OFFSET;this.boundary=kt.BOUNDARY;this.boundaryRoot=kt.BOUNDARY_ROOT;this.focusTrap=kt.FOCUS_TRAP;this.preventScroll=kt.PREVENT_SCROLL;this.showArrow=kt.ARROW;this.closeButton=kt.CLOSE_BUTTON;this.interactive=kt.INTERACTIVE;this.delay=kt.DELAY;this.hideOnEscape=kt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=kt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=kt.HIDE_ON_BLUR;this.hideOnOutsideClick=kt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=kt.FOCUS_BACK;this.backdrop=kt.BACKDROP;this.isBackdropInvisible=kt.IS_BACKDROP_INVISIBLE;this.flip=kt.FLIP;this.size=kt.SIZE;this.zIndex=kt.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=kt.STRATEGY;this.role=kt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=kt.DISABLE_ARIA_EXPANDED;this.disableAriaHasPopup=kt.DISABLE_ARIA_HAS_POPUP;this.keepConnectedTooltipClosed=kt.KEEP_CONNECTED_TOOLTIP_CLOSED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSupressOpening=!1;this.connectedTooltip=null;this.storeConnectedTooltip=()=>{let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);for(let o of t)if(o!==this){this.connectedTooltip=o;return}this.connectedTooltip=null};this.cleanupTrigger=()=>{var h;let a=(((h=this.trigger)==null?void 0:h.split(" "))||[]).filter(m=>Object.values(ao).includes(m)).length>0?this.trigger:kt.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.triggerElement){if(this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.addEventListener("mouseenter",this.show),this.triggerElement.addEventListener("mouseenter",this.handleMouseEnter),this.triggerElement.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.handleFocusIn),this.interactive||this.triggerElement.addEventListener("focusout",this.handleFocusOut))}};this.removeTriggerListeners=()=>{var o,a,h,m,T;(o=this.triggerElement)==null||o.removeEventListener("click",this.togglePopoverVisible);let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.removeEventListener("mouseenter",this.show),(a=this.triggerElement)==null||a.removeEventListener("mouseenter",this.handleMouseEnter),(h=this.triggerElement)==null||h.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),(m=this.triggerElement)==null||m.removeEventListener("focusin",this.handleFocusIn),(T=this.triggerElement)==null||T.removeEventListener("focusout",this.handleFocusOut)};this.removeAllListeners=()=>{var t;this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),(t=this.triggerElement)==null||t.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Te.peek()!==this)return;let o=t.composedPath(),a=this.contains(t.target)||o.includes(this.triggerElement)||o.includes(this),h=this.backdropElement?o.includes(this.backdropElement):!1;(!a||h)&&(this.hide(),ti.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),ti.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=()=>{this.isHovered=!0,this.show()};this.handleMouseLeave=()=>{this.isHovered=!1,this.startCloseDelay()};this.handleFocusOut=()=>{this.isHovered||this.hide()};this.handleFocusIn=()=>{var t;((t=this.triggerElement)!=null&&t.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSupressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=()=>{this.visible?this.hide():this.show()};this.positionPopover=()=>{if(!this.triggerElement)return;let t=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),o=this.boundaryRoot,a=[mu({boundary:t,rootBoundary:o,padding:this.boundaryPadding})],h=this.offset;if(this.flip&&a.push(uu({boundary:t,rootBoundary:o})),this.size){let m=N=>{this.style.setProperty("--mdc-popover-internal-available-height",`${N}px`)},T=this.renderRoot.querySelector('[part="popover-content"]');a.push(fu({boundary:t,rootBoundary:o,apply({availableHeight:N}){T&&(Object.assign(T.style,{maxHeight:`${N}px`,overflowY:"auto"}),m(N))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let m=this.arrowElement.offsetHeight,T=Math.sqrt(2*m**2)/2;h+=T,a.push(vu({element:this.arrowElement,padding:12}))}a.push(pu(h)),this.floatingUICleanupFunction=hu(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:m,y:T,middlewareData:N,placement:$}=await gu(this.triggerElement,this,{placement:this.placement,middleware:a,strategy:this.strategy});this.utils.updatePopoverStyle(m,T),N.arrow&&this.arrowElement&&this.utils.updateArrowStyle(N.arrow,$),this.trigger.includes("mouseenter")&&this.interactive&&this.utils.setupHoverBridge($)})};this.findClosestPopover=t=>{let o=t;for(;o&&!(o instanceof _t);)o=o.parentElement;return o};this.utils=new ll(this)}setupTriggerRelatedElement(){this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.storeConnectedTooltip()}async firstUpdated(t){super.firstUpdated(t),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerRelatedElement(),this.cleanupTrigger(),this.setupTriggerListeners(),this.style.zIndex=`${this.zIndex}`,ti.onCreatedPopover(this)}async disconnectedCallback(){var t,o;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(o=this.floatingUICleanupFunction)==null||o.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSupressOpening=!1),ti.onDestroyedPopover(this),Te.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let o=t.get("visible")||!1;await this.isOpenUpdated(o,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.cleanupTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Ht).includes(this.placement)?this.placement:kt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(no).includes(this.color)?this.color:kt.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("append-to")&&this.utils.setupAppendTo(),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),(t.has("interactive")||t.has("disableAriaHasPopup"))&&this.utils.updateAriaHasPopupAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,o){var a,h,m,T,N;t===o||!this.triggerElement||(o&&!this.shouldSupressOpening?(Te.peek()!==this&&Te.push(this),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSupressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(this.triggerElement)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),(a=this.triggerElement)==null||a.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),setTimeout(()=>{var $,q;this.interactive&&this.focusTrap&&(($=this.activateFocusTrap)==null||$.call(this),(q=this.setInitialFocus)==null||q.call(this))},0),ti.onShowPopover(this)):(Te.peek()===this&&Te.pop(),(h=this.floatingUICleanupFunction)==null||h.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop()),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),(m=this.triggerElement)==null||m.removeEventListener("keydown",this.onEscapeKeydown)),this.disableAriaExpanded&&this.triggerElement.removeAttribute("aria-expanded"),this.interactive||this.triggerElement.removeAttribute("aria-haspopup"),this.deactivatePreventScroll(),(T=this.deactivateFocusTrap)==null||T.call(this),this.focusBackToTrigger&&((N=this.triggerElement)==null||N.focus()),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSupressOpening=!1),ti.onHidePopover(this)))}render(){return C`
|
2205
2205
|
<div class="popover-hover-bridge"></div>
|
2206
2206
|
${this.closeButton?C` <mdc-button
|
2207
2207
|
class="popover-close"
|
@@ -2215,7 +2215,7 @@
|
|
2215
2215
|
<div part="popover-content">
|
2216
2216
|
<slot></slot>
|
2217
2217
|
</div>
|
2218
|
-
`}};_t.styles=[...j.styles,...
|
2218
|
+
`}};_t.styles=[...j.styles,...yu],p([f({type:String,reflect:!0})],_t.prototype,"id",2),p([f({type:String,reflect:!0})],_t.prototype,"triggerID",2),p([f({type:String,reflect:!0})],_t.prototype,"trigger",2),p([f({type:String,reflect:!0})],_t.prototype,"placement",2),p([f({type:String,reflect:!0})],_t.prototype,"color",2),p([f({type:Boolean,reflect:!0})],_t.prototype,"visible",2),p([f({type:Number,reflect:!0})],_t.prototype,"offset",2),p([f({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),p([f({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),p([f({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),p([f({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),p([f({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),p([f({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),p([f({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),p([f({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),p([f({type:String,reflect:!0})],_t.prototype,"delay",2),p([f({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),p([f({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),p([f({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),p([f({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),p([f({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),p([f({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),p([f({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),p([f({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),p([f({type:Boolean,reflect:!0})],_t.prototype,"flip",2),p([f({type:Boolean,reflect:!0})],_t.prototype,"size",2),p([f({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",2),p([f({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),p([f({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),p([f({type:String,reflect:!0,attribute:"strategy"})],_t.prototype,"strategy",2),p([f({type:String,reflect:!0})],_t.prototype,"role",2),p([f({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),p([f({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),p([f({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),p([f({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],_t.prototype,"disableAriaHasPopup",2),p([f({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-closed"})],_t.prototype,"keepConnectedTooltipClosed",2);var jc=_t,Pe=jc;var Eu=Y.constructTagName("toggletip"),lo={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Ht.TOP,CLICK:ao.CLICK,SHOW_ARROW:!0};var Uy=G`
|
2219
2219
|
:host {
|
2220
2220
|
--mdc-toggletip-max-width: 400px;
|
2221
2221
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -2245,7 +2245,7 @@
|
|
2245
2245
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
2246
2246
|
margin-left: 2rem;
|
2247
2247
|
}
|
2248
|
-
`,
|
2248
|
+
`,Tu=[Uy];var Ii=class extends Pe{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=lo.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:lo.CLOSE_BUTTON,this.closeButtonAriaLabel=lo.CLOSE_BUTTON_ARIA_LABEL,this.trigger=lo.CLICK,this.showArrow=lo.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 t,o;return((o=(t=this.defaultSlotNodes)==null?void 0:t.map(a=>a.textContent).join(" "))==null?void 0:o.trim())||""}onPlacementUpdated(){Object.values(Ht).includes(this.placement)||(this.placement=lo.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return C`
|
2249
2249
|
${super.render()}
|
2250
2250
|
<mdc-screenreaderannouncer
|
2251
2251
|
identity="${ot(this.screenreaderAnnouncerIdentity)}"
|
@@ -2253,12 +2253,12 @@
|
|
2253
2253
|
delay="300"
|
2254
2254
|
>
|
2255
2255
|
</mdc-screenreaderannouncer>
|
2256
|
-
`}};
|
2256
|
+
`}};Ii.styles=[...Pe.styles,...Tu],p([gn()],Ii.prototype,"defaultSlotNodes",2),p([xt()],Ii.prototype,"currentAnnouncement",2),p([f({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Ii.prototype,"screenreaderAnnouncerIdentity",2),p([f({type:String,reflect:!0})],Ii.prototype,"placement",2);var qc=Ii;var xu=Y.constructTagName("screenreaderannouncer"),Hy={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},ns={ARIA_LIVE:Hy.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Gy=[G`
|
2257
2257
|
:host {
|
2258
2258
|
display: none;
|
2259
2259
|
visibility: hidden;
|
2260
2260
|
}
|
2261
|
-
`],
|
2261
|
+
`],Au=Gy;var ei=class extends j{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=ns.ARIA_LIVE;this.delay=ns.DELAY;this.timeout=ns.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(t,o,a,h){var m;if(t.length>0){let T=`mdc-screenreaderannouncer-announcement-${be()}`,N=document.createElement("div");N.id=T,N.ariaLive=h,(m=document.getElementById(this.identity))==null||m.appendChild(N);let $=window.setTimeout(()=>{let q=document.createElement("p");q.textContent=t,N.appendChild(q),this.ariaLiveAnnouncementIds.push(T);let K=window.setTimeout(()=>{var nt;(nt=document.getElementById(T))==null||nt.remove()},a);this.timeOutIds.push(K)},o);this.timeOutIds.push($)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var o;(o=document.getElementById(t))==null||o.remove()})}createAnnouncementAriaLiveRegion(){let t=document.getElementById(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let o=document.createElement("style");o.textContent=`
|
2262
2262
|
.mdc-screenreaderannouncer__visually-hidden {
|
2263
2263
|
clip: rect(0 0 0 0);
|
2264
2264
|
clip-path: inset(50%);
|
@@ -2268,7 +2268,7 @@
|
|
2268
2268
|
white-space: nowrap;
|
2269
2269
|
width: 1px;
|
2270
2270
|
}
|
2271
|
-
`,t.appendChild(o),t.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(t)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=
|
2271
|
+
`,t.appendChild(o),t.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(t)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=ns.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(t){t.has("identity")&&this.identity.length===0&&(this.identity=ns.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};ei.styles=[...j.styles,...Au],p([f({type:String,reflect:!0})],ei.prototype,"announcement",2),p([f({type:String,reflect:!0})],ei.prototype,"identity",2),p([f({type:String,reflect:!0,attribute:"data-aria-live"})],ei.prototype,"dataAriaLive",2),p([f({type:Number,reflect:!0})],ei.prototype,"delay",2),p([f({type:Number,reflect:!0})],ei.prototype,"timeout",2);var Kc=ei;Kc.register(xu);var Yy=Kc;qc.register(Eu);var Wy=qc;var ie=l=>{class i extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return p([f({type:String,reflect:!0,attribute:"data-aria-label"})],i.prototype,"dataAriaLabel",2),i};var De=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-${be()}`}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,p([f({reflect:!0,type:String})],i.prototype,"name",2),p([f({reflect:!0,type:String})],i.prototype,"value",2),p([f({reflect:!0,type:String,attribute:"validation-message"})],i.prototype,"validationMessage",2),p([Gr("input")],i.prototype,"inputElement",2),i};var Su=Y.constructTagName("formfieldwrapper"),Wt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Dt={VALIDATION:Wt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:"top"},ma={TAGNAME:gt.SPAN,TYPE:st.BODY_MIDSIZE_REGULAR,HEADER_TYPE:st.BODY_MIDSIZE_BOLD};var jy=[Et,G`
|
2272
2272
|
:host {
|
2273
2273
|
flex-direction: column;
|
2274
2274
|
align-items: flex-start;
|
@@ -2327,18 +2327,18 @@
|
|
2327
2327
|
:host([help-text-type='priority']) .mdc-help-text {
|
2328
2328
|
color: var(--mds-color-theme-text-accent-normal);
|
2329
2329
|
}
|
2330
|
-
`],
|
2331
|
-
id="${
|
2332
|
-
tagname="${
|
2333
|
-
type="${
|
2330
|
+
`],_u=jy;var Iu=l=>({[Wt.ERROR]:"error-legacy-badge-filled",[Wt.WARNING]:"warning-badge-filled",[Wt.SUCCESS]:"check-circle-badge-filled",[Wt.PRIORITY]:"priority-badge-filled",[Wt.DEFAULT]:""})[l]||"";var Je=class extends zt(j){constructor(){super(...arguments);this.required=!1;this.id="";this.helpTextType=Dt.VALIDATION;this.toggletipPlacement=Dt.TOGGLETIP_PLACEMENT;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?C`<label for="${this.id}" id="${Dt.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:C` <mdc-text
|
2331
|
+
id="${Dt.HEADING_ID}"
|
2332
|
+
tagname="${ma.TAGNAME}"
|
2333
|
+
type="${ma.HEADER_TYPE}"
|
2334
2334
|
part="label"
|
2335
2335
|
>${this.label}</mdc-text
|
2336
|
-
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=
|
2336
|
+
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=Iu(this.helpTextType||Dt.VALIDATION);return t&&!this.disabled?C`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:W}renderHelpText(){return this.helpText?C`
|
2337
2337
|
<mdc-text
|
2338
|
-
id="${
|
2338
|
+
id="${Dt.HELPER_TEXT_ID}"
|
2339
2339
|
part="help-text"
|
2340
|
-
tagname=${
|
2341
|
-
type=${
|
2340
|
+
tagname=${ma.TAGNAME}
|
2341
|
+
type=${ma.TYPE}
|
2342
2342
|
>
|
2343
2343
|
${this.helpText}
|
2344
2344
|
</mdc-text>
|
@@ -2347,9 +2347,9 @@
|
|
2347
2347
|
${this.required?C`<span part="required-indicator">*</span>`:W}
|
2348
2348
|
${this.toggletipText?C` <mdc-button
|
2349
2349
|
part="info-icon-btn"
|
2350
|
-
prefix-icon="${
|
2351
|
-
size="${
|
2352
|
-
variant="${
|
2350
|
+
prefix-icon="${Dt.INFO_ICON}"
|
2351
|
+
size="${Dt.ICON_SIZE}"
|
2352
|
+
variant="${Pt.TERTIARY}"
|
2353
2353
|
aria-label="${ot(this.infoIconAriaLabel)}"
|
2354
2354
|
id="info-icon-id"
|
2355
2355
|
></mdc-button>
|
@@ -2364,7 +2364,7 @@
|
|
2364
2364
|
</div>`:W}renderHelperText(){return this.helpText?C`<div class="mdc-help-text" part="help-text">
|
2365
2365
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
2366
2366
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
2367
|
-
</div>`:W}};
|
2367
|
+
</div>`:W}};Je.styles=[...j.styles,..._u],p([f({reflect:!0,type:String})],Je.prototype,"label",2),p([f({type:Boolean,reflect:!0,attribute:"required"})],Je.prototype,"required",2),p([f({type:String})],Je.prototype,"id",2),p([f({reflect:!0,attribute:"help-text-type"})],Je.prototype,"helpTextType",2),p([f({type:String,reflect:!0,attribute:"help-text"})],Je.prototype,"helpText",2),p([f({type:String,reflect:!0,attribute:"toggletip-text"})],Je.prototype,"toggletipText",2),p([f({type:String,reflect:!0,attribute:"toggletip-placement"})],Je.prototype,"toggletipPlacement",2),p([f({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Je.prototype,"infoIconAriaLabel",2);var xe=Je;var qy=[G`
|
2368
2368
|
:host {
|
2369
2369
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
2370
2370
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -2436,7 +2436,7 @@
|
|
2436
2436
|
flex-direction: column;
|
2437
2437
|
gap: 0.25rem;
|
2438
2438
|
}
|
2439
|
-
`,...At(!0)],
|
2439
|
+
`,...At(!0)],ku=qy;var co=class extends De(ie(xe)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?C`<div class="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}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(t){t&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(t){var o;t.key===J.ENTER&&((o=this.form)==null||o.requestSubmit())}handleChange(t){this.toggleState();let o=t.constructor;this.dispatchEvent(new o(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return C`
|
2440
2440
|
<mdc-staticcheckbox
|
2441
2441
|
class="mdc-focus-ring"
|
2442
2442
|
?checked="${this.checked}"
|
@@ -2457,13 +2457,13 @@
|
|
2457
2457
|
.disabled="${this.disabled}"
|
2458
2458
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
2459
2459
|
tabindex="${this.disabled?-1:0}"
|
2460
|
-
aria-describedby="${ot(this.helpText?
|
2460
|
+
aria-describedby="${ot(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
2461
2461
|
@change=${this.handleChange}
|
2462
2462
|
@keydown=${this.handleKeyDown}
|
2463
2463
|
/>
|
2464
2464
|
</mdc-staticcheckbox>
|
2465
2465
|
${this.renderLabelAndHelperText()}
|
2466
|
-
`}};
|
2466
|
+
`}};co.styles=[...xe.styles,...ku],p([f({type:Boolean,reflect:!0})],co.prototype,"checked",2),p([f({type:Boolean,reflect:!0})],co.prototype,"indeterminate",2),p([f({type:Boolean,reflect:!0})],co.prototype,"autofocus",2);var Xc=co;Xc.register(Pm);var Ky=Xc;var Cu=Y.constructTagName("chip"),Xy={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},ls={COLOR:Xy.DEFAULT,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:gt.SPAN,SIZE:ji[24],ROLE:tt.BUTTON};var Zy=G`
|
2467
2467
|
:host {
|
2468
2468
|
height: 1.5rem;
|
2469
2469
|
gap: 0.25rem;
|
@@ -2615,12 +2615,12 @@
|
|
2615
2615
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2616
2616
|
cursor: auto;
|
2617
2617
|
}
|
2618
|
-
`,
|
2618
|
+
`,wu=[Et,Zy,...At()];var cs=class extends te(me){constructor(){super(...arguments);this.color=ls.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=ls.ROLE,this.size=ls.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?C` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return C`
|
2619
2619
|
${this.renderIcon()}
|
2620
|
-
${this.label?C`<mdc-text part="label" type="${
|
2620
|
+
${this.label?C`<mdc-text part="label" type="${ls.TEXT_TYPE}" tagname="${ls.TAG_NAME}"
|
2621
2621
|
>${this.label}</mdc-text
|
2622
2622
|
>`:W}
|
2623
|
-
`}};
|
2623
|
+
`}};cs.styles=[...j.styles,...wu],p([f({type:String,reflect:!0})],cs.prototype,"color",2),p([f({type:String})],cs.prototype,"label",2);var ds=cs;ds.register(Cu);var Qy=ds;var Nu=Y.constructTagName("coachmark"),ho={COLOR:no.CONTRAST,TRIGGER:ao.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var po=class extends Pe{constructor(){super(...arguments);this.trigger=ho.TRIGGER;this.showArrow=ho.ARROW;this.closeButton=ho.CLOSE_BUTTON;this.disableAriaExpanded=ho.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=ho.COLOR,this.showArrow=ho.ARROW}};p([f({type:String,reflect:!0})],po.prototype,"trigger",2),p([f({type:Boolean,attribute:"show-arrow"})],po.prototype,"showArrow",2),p([f({type:Boolean,reflect:!0,attribute:"close-button"})],po.prototype,"closeButton",2),p([f({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],po.prototype,"disableAriaExpanded",2);var Zc=po;Zc.register(Nu);var Jy=Zc;var Lu=Y.constructTagName("dialog"),tE={DEFAULT:"default",PROMOTIONAL:"promotional"},tr={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:tE.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0};var ki=class{static dispatchDialogEvent(i,t,o=!0){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:o}))}static onShowDialog(i){this.dispatchDialogEvent("shown",i)}static onHideDialog(i){this.dispatchDialogEvent("hidden",i)}static onCloseDialog(i,t=!0){this.dispatchDialogEvent("close",i,t)}static onCreatedDialog(i){this.dispatchDialogEvent("created",i)}static onDestroyedDialog(i){this.dispatchDialogEvent("destroyed",i)}};var eE=G`
|
2624
2624
|
:host {
|
2625
2625
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2626
2626
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2742,7 +2742,7 @@
|
|
2742
2742
|
mdc-text::part(text) {
|
2743
2743
|
margin: 0;
|
2744
2744
|
}
|
2745
|
-
`,
|
2745
|
+
`,Ru=[eE];var Bt=class extends sl(nl(al(Qo(j)))){constructor(){super(...arguments);this.id="";this.visible=tr.VISIBLE;this.zIndex=tr.Z_INDEX;this.size=tr.SIZE;this.variant=tr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedBy=null;this.ariaDescription=null;this.headerTagName=tr.HEADER_TAG_NAME;this.descriptionTagName=tr.DESCRIPTION_TAG_NAME;this.role=tr.ROLE;this.disableAriaHasPopup=tr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=tr.FOCUS_TRAP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(t.preventDefault(),t.stopPropagation(),this.closeDialog())}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,o;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(o=this.deactivateFocusTrap)==null||o.call(this),this.focusBackToTrigger(),ki.onDestroyedDialog(this)}applyZIndex(){var t;this.style.setProperty("z-index",`${this.zIndex}`),(t=this.backdropElement)==null||t.style.setProperty("z-index",`${this.zIndex-1}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),ki.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerId")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.setupAriaHasPopup()),t.has("visible")){let o=t.get("visible");await this.isOpenUpdated(o,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=tr.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledBy")||t.has("ariaDescribedBy")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,o;this.disableAriaHasPopup||(o=this.triggerElement)==null||o.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerId&&this.setAttribute("aria-labelledby",this.triggerId)),!this.ariaDescribedBy&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerId&&this.setAttribute("aria-describedby",this.triggerId))}closeDialog(){ki.onCloseDialog(this,!1)}async isOpenUpdated(t,o){var a,h,m,T,N;t!==o&&(o&&!t?(this.lastActiveElement=document.activeElement,this.removeBackdrop(),this.createBackdrop("dialog"),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((a=this.activateFocusTrap)==null||a.call(this)),(h=this.setInitialFocus)==null||h.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),ki.onShowDialog(this)):!o&&t&&(this.removeBackdrop(),(T=this.triggerElement)==null||T.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(N=this.deactivateFocusTrap)==null||N.call(this),this.focusBackToTrigger(),ki.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}render(){return C`
|
2746
2746
|
${this.headerText?C` <div part="header-section">
|
2747
2747
|
<div part="header">
|
2748
2748
|
<slot name="header-prefix"></slot>
|
@@ -2764,9 +2764,9 @@
|
|
2764
2764
|
</div>`:W}
|
2765
2765
|
<mdc-button
|
2766
2766
|
part="dialog-close-btn"
|
2767
|
-
prefix-icon="${
|
2768
|
-
variant="${
|
2769
|
-
size="${
|
2767
|
+
prefix-icon="${tr.CANCEL_ICON}"
|
2768
|
+
variant="${Pt.TERTIARY}"
|
2769
|
+
size="${qe[20]}"
|
2770
2770
|
aria-label="${ot(this.closeButtonAriaLabel)||""}"
|
2771
2771
|
@click="${this.closeDialog}"
|
2772
2772
|
></mdc-button>
|
@@ -2774,7 +2774,7 @@
|
|
2774
2774
|
<slot name="dialog-body"></slot>
|
2775
2775
|
</div>
|
2776
2776
|
${this.renderFooter()}
|
2777
|
-
`}};
|
2777
|
+
`}};Bt.styles=[...j.styles,...Ru],p([f({type:String,reflect:!0})],Bt.prototype,"id",2),p([f({type:String,reflect:!0})],Bt.prototype,"triggerId",2),p([f({type:Boolean,reflect:!0})],Bt.prototype,"visible",2),p([f({type:Number,reflect:!0,attribute:"z-index"})],Bt.prototype,"zIndex",2),p([f({type:String,reflect:!0})],Bt.prototype,"size",2),p([f({type:String,reflect:!0})],Bt.prototype,"variant",2),p([f({type:String,attribute:"close-button-aria-label"})],Bt.prototype,"closeButtonAriaLabel",2),p([f({type:String,reflect:!0,attribute:"aria-label"})],Bt.prototype,"ariaLabel",2),p([f({type:String,reflect:!0,attribute:"aria-labelledby"})],Bt.prototype,"ariaLabelledby",2),p([f({type:String,reflect:!0,attribute:"aria-describedby"})],Bt.prototype,"ariaDescribedBy",2),p([f({type:String,reflect:!0,attribute:"aria-description"})],Bt.prototype,"ariaDescription",2),p([f({type:String,reflect:!0,attribute:"header-text"})],Bt.prototype,"headerText",2),p([f({type:String,reflect:!0,attribute:"description-text"})],Bt.prototype,"descriptionText",2),p([f({type:String,reflect:!0,attribute:"header-tag-name"})],Bt.prototype,"headerTagName",2),p([f({type:String,reflect:!0,attribute:"description-tag-name"})],Bt.prototype,"descriptionTagName",2),p([f({type:String,reflect:!0})],Bt.prototype,"role",2),p([f({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Bt.prototype,"disableAriaHasPopup",2),p([f({type:Boolean,reflect:!0,attribute:"focus-trap"})],Bt.prototype,"focusTrap",2);var Qc=Bt;Qc.register(Lu);var rE=Qc;var Mu=Y.constructTagName("divider"),mo={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ua={SOLID:"solid",GRADIENT:"gradient"},Ae={POSITIVE:"positive",NEGATIVE:"negative"},fa={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},uo={ORIENTATION:mo.HORIZONTAL,VARIANT:ua.SOLID,ARROW_DIRECTION:Ae.NEGATIVE,BUTTON_DIRECTION:Ae.NEGATIVE};var iE=[Et,G`
|
2778
2778
|
:host {
|
2779
2779
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2780
2780
|
--mdc-divider-width: 0.0625rem;
|
@@ -2971,11 +2971,11 @@
|
|
2971
2971
|
line-height: var(--mdc-divider-text-line-height);
|
2972
2972
|
flex-shrink: 0;
|
2973
2973
|
}
|
2974
|
-
`],
|
2974
|
+
`],Ou=iE;var Ci=class extends j{constructor(){super(...arguments);this.orientation=uo.ORIENTATION;this.variant=uo.VARIANT;this.arrowDirection=uo.ARROW_DIRECTION;this.buttonPosition=uo.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(ua).includes(t)?t:uo.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(mo).includes(t)?t:uo.ORIENTATION)}ensureValidDirections(){let t=this.orientation===mo.HORIZONTAL?Ae.NEGATIVE:Ae.POSITIVE;Object.values(Ae).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Ae).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let o=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",o)}}getArrowIcon(){let t=this.orientation===mo.HORIZONTAL,o=this.arrowDirection===Ae.POSITIVE;return t?o?fa.UP:fa.DOWN:o?fa.RIGHT:fa.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var m;let t=(m=this.shadowRoot)==null?void 0:m.querySelector("slot"),o=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(o.length>1)return;let a=o.some(T=>T.tagName===Qs.toUpperCase()),h=o.some(T=>T.tagName===Yr.toUpperCase());a&&!h?this.setAttribute("data-type","mdc-text-divider"):!a&&h&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return C`
|
2975
2975
|
<div></div>
|
2976
2976
|
<slot @slotchange=${this.inferDividerType}></slot>
|
2977
2977
|
<div></div>
|
2978
|
-
`}};
|
2978
|
+
`}};Ci.styles=[...j.styles,...Ou],p([f({type:String,reflect:!0})],Ci.prototype,"orientation",2),p([f({type:String,reflect:!0})],Ci.prototype,"variant",2),p([f({type:String,attribute:"arrow-direction",reflect:!0})],Ci.prototype,"arrowDirection",2),p([f({type:String,attribute:"button-position",reflect:!0})],Ci.prototype,"buttonPosition",2);var Jc=Ci;Jc.register(Mu);var oE=Jc;var sE=G`
|
2979
2979
|
:host([selected]) {
|
2980
2980
|
border: 2px solid;
|
2981
2981
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -2997,7 +2997,7 @@
|
|
2997
2997
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2998
2998
|
cursor: auto;
|
2999
2999
|
}
|
3000
|
-
`,
|
3000
|
+
`,Pu=[sE];var Du=Y.constructTagName("filterchip"),td={ICON_NAME:"check-bold",COLOR:"default"};var va=class extends ds{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=td.COLOR}setSelected(t){t?(this.iconName=td.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};va.styles=[...ds.styles,...Pu],p([f({type:Boolean,reflect:!0})],va.prototype,"selected",2);var ed=va;ed.register(Du);var aE=ed;var nE=G`
|
3001
3001
|
:host::part(container) {
|
3002
3002
|
display: flex;
|
3003
3003
|
flex-direction: column;
|
@@ -3013,18 +3013,18 @@
|
|
3013
3013
|
:host::part(label-text) {
|
3014
3014
|
font-weight: bold;
|
3015
3015
|
}
|
3016
|
-
`,
|
3016
|
+
`,Fu=[nE];var cl=class extends ie(xe){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.disabled=void 0}render(){var t;return C`
|
3017
3017
|
<div
|
3018
3018
|
part="container"
|
3019
3019
|
role="${this.isRadio?tt.RADIOGROUP:tt.GROUP}"
|
3020
|
-
aria-labelledby="${
|
3021
|
-
aria-describedby="${ot(this.helpText?
|
3020
|
+
aria-labelledby="${Dt.HEADING_ID}"
|
3021
|
+
aria-describedby="${ot(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
3022
3022
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
3023
3023
|
>
|
3024
3024
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
3025
3025
|
<slot></slot>
|
3026
3026
|
</div>
|
3027
|
-
`}};
|
3027
|
+
`}};cl.styles=[...xe.styles,...Fu];var rd=cl;var $u=Y.constructTagName("formfieldgroup");rd.register($u);var dl=rd;Xs.register(Sn);var lE=Xs;var zu=Qi(class extends Ai{constructor(l){if(super(l),l.type!==pr.PROPERTY&&l.type!==pr.ATTRIBUTE&&l.type!==pr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!wn(l))throw Error("`live` bindings can only contain a single expression")}render(l){return l}update(l,[i]){if(i===Re||i===W)return i;let t=l.element,o=l.name;if(l.type===pr.PROPERTY){if(i===t[o])return Re}else if(l.type===pr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(o))return Re}else if(l.type===pr.ATTRIBUTE&&t.getAttribute(o)===i+"")return Re;return Xp(l),i}});xe.register(Su);var er=xe;var Vu=Y.constructTagName("input"),hl={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},id={OFF:"off",ON:"on"},hs={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Bu={MAX_LENGTH:10,VALIDATION:Wt.ERROR},ri={VALIDATION:Wt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Pt.TERTIARY,CLEAR_BUTTON_SIZE:qe[20],PREFIX_TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:gt.SPAN,AUTO_COMPLETE:id.OFF,INPUT_TYPE:hs.TEXT};var cE=[G`
|
3028
3028
|
:host {
|
3029
3029
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
3030
3030
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -3147,31 +3147,31 @@
|
|
3147
3147
|
opacity: 0;
|
3148
3148
|
pointer-events: none;
|
3149
3149
|
}
|
3150
|
-
`,...At(!0)],
|
3150
|
+
`,...At(!0)],Uu=cE;var Xt=class extends De(ie(er)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=hl.OFF;this.autocomplete=id.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,o,a){super.attributeChangedCallback(t,o,a),t==="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(t){this.updateValue(),this.setInputValidity();let o=t.constructor;this.dispatchEvent(new o(t.type,t))}handleKeyDown(t){var o;t.key===J.ENTER&&((o=this.form)==null||o.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?C`
|
3151
3151
|
<mdc-icon
|
3152
3152
|
class="leading-icon"
|
3153
3153
|
part="leading-icon"
|
3154
3154
|
name=${this.leadingIcon}
|
3155
|
-
size="${
|
3156
|
-
length-unit="${
|
3155
|
+
size="${ri.ICON_SIZE_VALUE}"
|
3156
|
+
length-unit="${ri.ICON_SIZE_UNIT}"
|
3157
3157
|
>
|
3158
3158
|
</mdc-icon>
|
3159
3159
|
`:W}renderPrefixText(){return this.prefixText?C`
|
3160
3160
|
<mdc-text
|
3161
3161
|
class="prefix-text"
|
3162
|
-
tagname="${
|
3163
|
-
type="${
|
3162
|
+
tagname="${ri.PREFIX_TEXT_TAG}"
|
3163
|
+
type="${ri.PREFIX_TEXT_TYPE}"
|
3164
3164
|
aria-hidden="true"
|
3165
3165
|
>
|
3166
|
-
${this.prefixText.slice(0,
|
3166
|
+
${this.prefixText.slice(0,Bu.MAX_LENGTH)}
|
3167
3167
|
</mdc-text>
|
3168
3168
|
`:W}clearInputText(){var t;this.value="",(t=this.inputElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0}))}renderTrailingButton(t=!1){let o=t||this.value&&this.trailingButton;return o?C`
|
3169
3169
|
<mdc-button
|
3170
3170
|
part="trailing-button"
|
3171
3171
|
class="own-focus-ring ${o?"":"hidden"}"
|
3172
|
-
prefix-icon="${
|
3173
|
-
variant="${
|
3174
|
-
size="${
|
3172
|
+
prefix-icon="${ri.CLEAR_BUTTON_ICON}"
|
3173
|
+
variant="${ri.CLEAR_BUTTON_VARIANT}"
|
3174
|
+
size="${ri.CLEAR_BUTTON_SIZE}"
|
3175
3175
|
aria-label="${this.clearAriaLabel}"
|
3176
3176
|
@click=${this.clearInputText}
|
3177
3177
|
?disabled=${this.disabled||this.readonly||!o}
|
@@ -3182,12 +3182,12 @@
|
|
3182
3182
|
part="mdc-input"
|
3183
3183
|
id="${this.id}"
|
3184
3184
|
name="${this.name}"
|
3185
|
-
.value="${
|
3185
|
+
.value="${zu(this.value)}"
|
3186
3186
|
?disabled="${this.disabled}"
|
3187
3187
|
?readonly="${this.readonly}"
|
3188
3188
|
?required="${this.required}"
|
3189
3189
|
type="${t}"
|
3190
|
-
aria-describedby="${ot(this.helpText?
|
3190
|
+
aria-describedby="${ot(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
3191
3191
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
3192
3192
|
placeholder=${ot(a)}
|
3193
3193
|
minlength=${ot(this.minlength)}
|
@@ -3208,12 +3208,12 @@
|
|
3208
3208
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
3209
3209
|
<div class="input-section" part="input-section">
|
3210
3210
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
3211
|
-
<slot name="input">${this.renderInputElement(
|
3211
|
+
<slot name="input">${this.renderInputElement(ri.INPUT_TYPE)}</slot>
|
3212
3212
|
</div>
|
3213
3213
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
3214
3214
|
</div>
|
3215
3215
|
${this.helpText?this.renderHelperText():W}
|
3216
|
-
`}};
|
3216
|
+
`}};Xt.styles=[...er.styles,...Uu],p([f({type:String})],Xt.prototype,"placeholder",2),p([f({type:Boolean})],Xt.prototype,"readonly",2),p([f({type:String,attribute:"prefix-text"})],Xt.prototype,"prefixText",2),p([f({type:String,attribute:"leading-icon"})],Xt.prototype,"leadingIcon",2),p([f({type:Boolean,attribute:"trailing-button"})],Xt.prototype,"trailingButton",2),p([f({type:Number})],Xt.prototype,"maxlength",2),p([f({type:Number})],Xt.prototype,"minlength",2),p([f({type:String})],Xt.prototype,"autocapitalize",2),p([f({type:String})],Xt.prototype,"autocomplete",2),p([f({type:Boolean})],Xt.prototype,"autofocus",2),p([f({type:String})],Xt.prototype,"dirname",2),p([f({type:String})],Xt.prototype,"pattern",2),p([f({type:String})],Xt.prototype,"list",2),p([f({type:Number})],Xt.prototype,"size",2),p([f({type:String,attribute:"clear-aria-label"})],Xt.prototype,"clearAriaLabel",2);var ii=Xt;ii.register(Vu);var dE=ii;var hE=G`
|
3217
3217
|
:host {
|
3218
3218
|
height: 1.5rem;
|
3219
3219
|
gap: 0.25rem;
|
@@ -3244,9 +3244,9 @@
|
|
3244
3244
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
3245
3245
|
cursor: auto;
|
3246
3246
|
}
|
3247
|
-
`,
|
3247
|
+
`,Hu=[Et,hE];var pl=Y.constructTagName("inputchip"),ml={TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:gt.SPAN,CLOSE_ICON:"cancel-bold"};var fo=class extends te(zt(j)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?C` <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 C`
|
3248
3248
|
${this.renderIcon()}
|
3249
|
-
${this.label?C`<mdc-text part="label" type="${
|
3249
|
+
${this.label?C`<mdc-text part="label" type="${ml.TEXT_TYPE}" tagname="${ml.TAG_NAME}"
|
3250
3250
|
>${this.label}</mdc-text
|
3251
3251
|
>`:W}
|
3252
3252
|
<mdc-button
|
@@ -3254,11 +3254,11 @@
|
|
3254
3254
|
variant="tertiary"
|
3255
3255
|
part="close-icon"
|
3256
3256
|
aria-label="${this.clearAriaLabel}"
|
3257
|
-
prefix-icon="${
|
3257
|
+
prefix-icon="${ml.CLOSE_ICON}"
|
3258
3258
|
size="20"
|
3259
3259
|
@click="${this.handleClose}"
|
3260
3260
|
></mdc-button>
|
3261
|
-
`}};
|
3261
|
+
`}};fo.styles=[...j.styles,...Hu],p([f({type:String})],fo.prototype,"label",2),p([f({type:Boolean})],fo.prototype,"error",2),p([f({type:String,attribute:"clear-aria-label"})],fo.prototype,"clearAriaLabel",2);var od=fo;od.register(pl);var pE=od;var mE=G`
|
3262
3262
|
:host {
|
3263
3263
|
gap: 0.25rem;
|
3264
3264
|
}
|
@@ -3316,10 +3316,10 @@
|
|
3316
3316
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
3317
3317
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
3318
3318
|
}
|
3319
|
-
`,
|
3319
|
+
`,Gu=[mE];var ga=class extends te(_i){constructor(){super(...arguments);this.size=km.LINK_SIZE}getIconSize(){switch(this.size){case Un.SMALL:return Hn.SMALL;case Un.MIDSIZE:return Hn.MIDSIZE;default:return Hn.LARGE}}render(){return C`
|
3320
3320
|
<slot></slot>
|
3321
3321
|
${this.iconName?C` <mdc-icon name=${this.iconName} size=${this.getIconSize()} length-unit="rem"></mdc-icon> `:W}
|
3322
|
-
`}};
|
3322
|
+
`}};ga.styles=[..._i.styles,...Gu],p([f({type:String,reflect:!0})],ga.prototype,"size",2);var ba=ga;ba.register(Bn);var uE=ba;var Yu=Y.constructTagName("linkbutton"),ps={12:12,14:14,16:16},ms={SIZE:ps[16],ROLE:tt.BUTTON,INLINE:Xo.INLINE,INVERTED:Xo.INVERTED};var Wu=l=>{switch(l){case ps[12]:return .75;case ps[14]:return .875;default:return 1}};var fE=G`
|
3323
3323
|
:host {
|
3324
3324
|
--mdc-link-color-disabled: var(--mds-color-theme-text-primary-disabled);
|
3325
3325
|
gap: 0.25rem;
|
@@ -3382,10 +3382,10 @@
|
|
3382
3382
|
:host([soft-disabled]) {
|
3383
3383
|
color: var(--mdc-link-color-disabled);
|
3384
3384
|
}
|
3385
|
-
`,
|
3385
|
+
`,ju=[fE];var vo=class extends te(me){constructor(){super(...arguments);this.size=ms.SIZE;this.inline=ms.INLINE;this.inverted=ms.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=ms.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(ps).includes(t)?`${t}`:ms.SIZE.toString())}render(){return C`
|
3386
3386
|
<slot></slot>
|
3387
|
-
${this.iconName?C` <mdc-icon name=${this.iconName} size=${
|
3388
|
-
`}};
|
3387
|
+
${this.iconName?C` <mdc-icon name=${this.iconName} size=${Wu(this.size)} length-unit="rem"></mdc-icon> `:W}
|
3388
|
+
`}};vo.styles=[...ba.styles,...ju],p([f({type:Number,reflect:!0})],vo.prototype,"size",2),p([f({type:Boolean,reflect:!0})],vo.prototype,"inline",2),p([f({type:Boolean,reflect:!0})],vo.prototype,"inverted",2);var sd=vo;sd.register(Yu);var vE=sd;_i.register(Sm);var gE=_i;var ul=Y.constructTagName("listitem"),ya={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},ad={VARIANT:ya.FULL_WIDTH,TOOLTIP_PLACEMENT:Ht.TOP};var bE=G`
|
3389
3389
|
:host {
|
3390
3390
|
display: flex;
|
3391
3391
|
flex-direction: column;
|
@@ -3396,11 +3396,11 @@
|
|
3396
3396
|
flex-direction: column;
|
3397
3397
|
gap: 0rem;
|
3398
3398
|
}
|
3399
|
-
`,
|
3399
|
+
`,qu=[bE];var Ea=class extends j{constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.setAttribute("role",tt.LIST)}handleKeyDown(i){var a;let t=this.getCurrentIndex(i.target),o=this.getNewIndexBasedOnKey(i.key,t,this.listItems.length);o!==void 0&&((a=this.listItems[o])==null||a.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(i){return this.listItems.findIndex(t=>t===i||t===i.parentElement)}getNewIndexBasedOnKey(i,t,o){switch(i){case J.ARROW_DOWN:return(t+1)%o;case J.ARROW_UP:return(t-1+o)%o;case J.HOME:return 0;case J.END:return o-1;default:return}}handleMouseClick(i){let t=this.getCurrentIndex(i.target);this.resetTabIndexAndSetActiveTabIndex(t)}resetTabIndexAndSetActiveTabIndex(i){this.listItems.forEach((t,o)=>{let a=i===o?"0":"-1";t==null||t.setAttribute("tabindex",a)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){return C`
|
3400
3400
|
<slot name="list-header"></slot>
|
3401
3401
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
3402
3402
|
<slot part="container" @click="${this.handleMouseClick}" role="presentation"></slot>
|
3403
|
-
`}};
|
3403
|
+
`}};Ea.styles=[...j.styles,...qu],p([Lt({selector:`${ul}:not([disabled])`})],Ea.prototype,"listItems",2);var nd=Ea;var Ku=Y.constructTagName("list");nd.register(Ku);var yE=nd;var EE=G`
|
3404
3404
|
:host {
|
3405
3405
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
3406
3406
|
--mdc-listheader-gap: 0.5rem;
|
@@ -3427,7 +3427,7 @@
|
|
3427
3427
|
:host::part(postfix-icon) {
|
3428
3428
|
flex-shrink: 0;
|
3429
3429
|
}
|
3430
|
-
`,
|
3430
|
+
`,Xu=[EE];var wi=class extends j{constructor(){super(...arguments);this.disabled=!1}render(){return C`
|
3431
3431
|
${this.prefixIcon?C`<mdc-icon
|
3432
3432
|
part="prefix-icon"
|
3433
3433
|
name="${this.prefixIcon}"
|
@@ -3446,7 +3446,7 @@
|
|
3446
3446
|
size="1"
|
3447
3447
|
length-unit="rem"
|
3448
3448
|
></mdc-icon>`:W}
|
3449
|
-
`}};
|
3449
|
+
`}};wi.styles=[...j.styles,...Xu],p([f({type:String,attribute:"prefix-icon"})],wi.prototype,"prefixIcon",2),p([f({type:String,attribute:"postfix-icon"})],wi.prototype,"postfixIcon",2),p([f({type:String,attribute:"header-text"})],wi.prototype,"headerText",2),p([f({type:Boolean,reflect:!0})],wi.prototype,"disabled",2);var ld=wi;var Zu=Y.constructTagName("listheader");ld.register(Zu);var TE=ld;var Ta=Y.constructTagName("tooltip"),Ve={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Ni={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Ht.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Ve.DESCRIPTION};var xE=G`
|
3450
3450
|
:host {
|
3451
3451
|
--mdc-tooltip-max-width: 400px;
|
3452
3452
|
--mdc-tooltip-padding: 0.75rem;
|
@@ -3470,7 +3470,7 @@
|
|
3470
3470
|
:host([color='contrast'])::part(popover-content) {
|
3471
3471
|
color: var(--mdc-tooltip-text-color-contrast);
|
3472
3472
|
}
|
3473
|
-
`,
|
3473
|
+
`,Qu=[xE];var us=class extends Pe{constructor(){super(...arguments);this.tooltipType=Ni.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||Ni.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||Ni.OFFSET,this.placement=this.placement||Ni.PLACEMENT,this.role=tt.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 t,o;return((o=(t=this.defaultSlotNodes)==null?void 0:t.map(a=>a.textContent).join(" "))==null?void 0:o.trim())||""}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Ve).includes(t)?t:Ni.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${be()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case Ve.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Ve.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Ht).includes(this.placement)||(this.placement=Ni.PLACEMENT)}onTooltipTypeUpdated(t){let o=t.get("tooltipType");if(Object.values(Ve).includes(this.tooltipType)||this.setTooltipType(Ni.TOOLTIP_TYPE),this.triggerElement){let a=this.getTooltipText();switch(this.tooltipType){case Ve.DESCRIPTION:o===Ve.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Ve.LABEL:o===Ve.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:o===Ve.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):o===Ve.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==Ve.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}};us.styles=[...Pe.styles,...Qu],p([f({type:String,attribute:"tooltip-type",reflect:!0})],us.prototype,"tooltipType",2),p([gn()],us.prototype,"defaultSlotNodes",2);var cd=us;cd.register(Ta);var AE=cd;var SE=G`
|
3474
3474
|
:host {
|
3475
3475
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
3476
3476
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -3571,11 +3571,11 @@
|
|
3571
3571
|
display: flex;
|
3572
3572
|
flex-direction: row;
|
3573
3573
|
}
|
3574
|
-
`,
|
3574
|
+
`,Ju=[SE,...At()];var tf=()=>`listitem-tooltip-popover-${be()}`,ef=()=>`listitem-tooltip-triggerid-${be()}`;var go=class{static dispatchListItemEvent(i,t){t.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 Se=class extends zt(Ke(j)){constructor(){super();this.variant=ad.VARIANT;this.tooltipPlacement=ad.TOOLTIP_PLACEMENT;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("focusin",this.displayTooltipForLongText.bind(this)),this.addEventListener("mouseenter",this.displayTooltipForLongText.bind(this)),this.addEventListener("focusout",this.hideTooltipOnLeave.bind(this)),this.addEventListener("mouseout",this.hideTooltipOnLeave.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||tt.LISTITEM,this.id=this.id||ef(),go.onCreatedListItem(this)}disconnectedCallback(){super.disconnectedCallback(),go.onDestroyedListItem(this)}handleKeyDown(t){(t.key===J.ENTER||t.key===J.SPACE)&&(this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleClick(t){if(this.disabled){t.stopImmediatePropagation(),t.preventDefault();return}this.hideTooltipOnLeave()}displayTooltipForLongText(){var o,a;if(!this.tooltipText)return;this.hideTooltipOnLeave();let t=document.createElement(Ta);t.id=tf(),t.textContent=this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("placement",this.tooltipPlacement),t.setAttribute("visible",""),t.setAttribute("show-arrow",""),(o=this.parentElement)!=null&&o.hasAttribute("slot")&&t.setAttribute("slot",this.parentElement.getAttribute("slot")||""),(a=this.parentElement)==null||a.after(t)}hideTooltipOnLeave(){let t=document.querySelector(`${Ta}[triggerid="${this.id}"]`);t&&t.remove()}getText(t,o,a){return C`
|
3575
3575
|
<slot name="${t}">
|
3576
3576
|
${a?C`<mdc-text part="${t}" type="${o}" tagname="${gt.SPAN}">${a}</mdc-text>`:W}
|
3577
3577
|
</slot>
|
3578
|
-
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(o=>{t?(o.setAttribute("disabled",""),
|
3578
|
+
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(o=>{t?(o.setAttribute("disabled",""),go.onDisableListItem(this)):(o.removeAttribute("disabled"),go.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled)),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled)}renderTrailingControls(){return C`<slot
|
3579
3579
|
name="trailing-controls"
|
3580
3580
|
@click=${this.stopEventPropagation}
|
3581
3581
|
@keyup=${this.stopEventPropagation}
|
@@ -3603,7 +3603,7 @@
|
|
3603
3603
|
${this.renderTrailingControls()}
|
3604
3604
|
</div>
|
3605
3605
|
</slot>
|
3606
|
-
`}};
|
3606
|
+
`}};Se.styles=[...j.styles,...Ju],p([Lt({slot:"leading-controls"})],Se.prototype,"leadingControlsSlot",2),p([Lt({slot:"trailing-controls"})],Se.prototype,"trailingControlsSlot",2),p([f({type:String,reflect:!0})],Se.prototype,"variant",2),p([f({type:String,reflect:!0})],Se.prototype,"label",2),p([f({type:String,reflect:!0,attribute:"secondary-label"})],Se.prototype,"secondaryLabel",2),p([f({type:String,reflect:!0,attribute:"tertiary-label"})],Se.prototype,"tertiaryLabel",2),p([f({type:String,reflect:!0,attribute:"side-header-text"})],Se.prototype,"sideHeaderText",2),p([f({type:String,reflect:!0,attribute:"subline-text"})],Se.prototype,"sublineText",2),p([f({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Se.prototype,"softDisabled",2),p([f({type:String,reflect:!0,attribute:"tooltip-text"})],Se.prototype,"tooltipText",2),p([f({type:String,reflect:!0,attribute:"tooltip-placement"})],Se.prototype,"tooltipPlacement",2);var oi=Se;oi.register(ul);var _E=oi;var IE=G`
|
3607
3607
|
:host {
|
3608
3608
|
--mdc-marker-width: 0.25rem;
|
3609
3609
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -3628,7 +3628,7 @@
|
|
3628
3628
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3629
3629
|
);
|
3630
3630
|
}
|
3631
|
-
`,
|
3631
|
+
`,rf=[IE];var of=Y.constructTagName("marker"),sf={SOLID:"solid",STRIPED:"striped"};var xa=class extends j{constructor(){super(...arguments);this.variant=sf.SOLID}};xa.styles=[...j.styles,...rf],p([f({type:String,reflect:!0})],xa.prototype,"variant",2);var dd=xa;dd.register(of);var kE=dd;var Zt=Y.constructTagName("menupopover"),hd={PLACEMENT:Ht.BOTTOM_START,ORIENTATION:"vertical"};var si=Y.constructTagName("menusection"),af={DIVIDER_VARIANT:"solid"};var Li=Y.constructTagName("sidenavigation"),Rr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",HIDDEN:"hidden"},Aa={VARIANT:Rr.FLEXIBLE};var Sa=Y.constructTagName("menubar"),nf={ORIENTATION:"vertical"};var CE=G`
|
3632
3632
|
:host {
|
3633
3633
|
display: flex;
|
3634
3634
|
}
|
@@ -3640,7 +3640,7 @@
|
|
3640
3640
|
:host([aria-orientation='vertical']) {
|
3641
3641
|
flex-direction: column;
|
3642
3642
|
}
|
3643
|
-
`,
|
3643
|
+
`,lf=[CE];var _a=class extends j{constructor(){super(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var i;super.connectedCallback(),this.role=tt.MENUBAR,this.ariaOrientation=nf.ORIENTATION,await this.updateComplete,(i=this.menusections)==null||i.forEach(t=>{t.setAttribute("divider-variant","gradient")})}get menuItems(){var h,m;let i=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"),t=(m=i==null?void 0:i.assignedElements({flatten:!0}))!=null?m:[],o=[],a=T=>{T.role===tt.MENUITEM&&!T.hasAttribute("disabled")?o.push(T):T.tagName.toLowerCase()===si&&Array.from(T.children).forEach(a)};return t.forEach(a),o}getVisibleSubMenusOfItems(i){let t=[];return!i||i.length===0||i.forEach(o=>{var m;let a=o.getAttribute("id");if(!a)return;let h=(m=document.querySelector)==null?void 0:m.call(document,`${Zt}[triggerid="${a}"]`);h&&h.visible&&t.push(h)}),t}getAllPopovers(){var a,h;if(!this.menuItems.length)return[];let i=(h=(a=this.menuItems[0])==null?void 0:a.closest(Li))!=null?h:this;if(!i)return[];let t=[],o=m=>{m.querySelectorAll(`${Zt}`).forEach(T=>{t.push(T)}),m.querySelectorAll("slot").forEach(T=>{T.assignedElements({flatten:!0}).forEach(o)})};return o(i),t}update(i){super.update(i)}firstUpdated(i){super.firstUpdated(i),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}handleClick(i){let t=i.target;if(!t||!this.isTopLevelMenuItem(t))return;let o=this.menuItems.filter(h=>h!==t);this.getVisibleSubMenusOfItems(o).forEach(h=>{h.hide()})}resetTabIndexAndSetActiveTabIndex(i){i.forEach((t,o)=>{let a=o===0?"0":"-1";t==null||t.setAttribute("tabindex",a)})}getCurrentIndex(i){return this.menuItems.findIndex(t=>t===i||t===i.parentElement)}getSubmenu(i){if(i)return this.getAllPopovers().find(t=>t.getAttribute("triggerid")===i)}showSubmenu(i){if(!i||!this.menuItems.find(a=>a.getAttribute("id")===i))return;let o=this.getSubmenu(i);o&&o.show()}updatePopoverPlacement(){let i=Ht.RIGHT_START;this.getAllPopovers().forEach(t=>{t.setAttribute("placement",i)})}updateTabIndexAndFocus(i,t,o){var a,h,m;o<0||t<0||(t!==o&&((a=i[t])==null||a.setAttribute("tabindex","-1"),(h=i[o])==null||h.setAttribute("tabindex","0")),(m=i[o])==null||m.focus())}navigateToMenuItem(i,t,o=!1){var m;let{length:a}=this.menuItems;if(a===0)return;let h=i;if(h=t==="prev"?(i-1+a)%a:(i+1)%a,this.updateTabIndexAndFocus(this.menuItems,i,h),o){let T=(m=this.menuItems[h])==null?void 0:m.getAttribute("id");this.getSubmenu(T)&&!this.menuItems[h].hasAttribute("soft-disabled")&&this.showSubmenu(T)}}getKeyWithDirectionFix(i){return window.getComputedStyle(this).direction==="rtl"?i===J.ARROW_LEFT?J.ARROW_RIGHT:i===J.ARROW_RIGHT?J.ARROW_LEFT:i:i}isTopLevelMenuItem(i){var h;let t=i.parentElement;if(!t||i.role!==tt.MENUITEM)return!1;let o=t.tagName.toLowerCase(),a=(h=t.parentElement)==null?void 0:h.tagName.toLowerCase();return o===Sa||o===Li||o===si&&(a===Sa||a===Li)}isNestedMenuItem(i){return!!i.closest(Zt)&&i.role===tt.MENUITEM}async closeAllMenuPopovers(){let i=[];for(;Te.peek();){let t=Te.pop();t&&(t.hide(),i.push(t))}await Promise.all(i.map(t=>t.updateComplete))}async crossMenubarNavigationOnLeft(i){if(i.role===tt.MENUITEM){let o=i.closest(Zt),a=o==null?void 0:o.getAttribute("triggerid"),h=this.menuItems.find(m=>m.getAttribute("id")===a);if(h){this.isTopLevelMenuItem(h)&&(o==null||o.hide()),await(o==null?void 0:o.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 t=this.getParentMenuItemIndex(i);t>=0&&this.navigateToMenuItem(t,"next",!0)}}getParentMenuItemIndex(i){let t=i.parentElement;for(;t;){if(t.tagName.toLowerCase()===Zt){let o=t.getAttribute("triggerid"),a=this.menuItems.find(h=>h.getAttribute("id")===o);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(h=>h===a):this.getParentMenuItemIndex(a)}t=t.parentElement}return-1}async handleKeyDown(i){let t=this.getCurrentIndex(i.target);switch(this.getKeyWithDirectionFix(i.key)){case J.HOME:this.updateTabIndexAndFocus(this.menuItems,t,0);break;case J.END:this.updateTabIndexAndFocus(this.menuItems,t,this.menuItems.length-1);break;case J.ARROW_LEFT:{let a=t>=0?this.menuItems[t]:i.target;await this.crossMenubarNavigationOnLeft(a);break}case J.ARROW_RIGHT:{let a=t>=0?this.menuItems[t]:i.target;await this.crossMenubarNavigationOnRight(a);break}case J.ARROW_UP:{this.navigateToMenuItem(t,"prev"),i.preventDefault();break}case J.ARROW_DOWN:{this.navigateToMenuItem(t,"next"),i.preventDefault();break}default:break}}render(){return C`<slot role="${tt.GROUP}"></slot>`}};_a.styles=[...j.styles,...lf],p([Lt({selector:"mdc-menusection",flatten:!0})],_a.prototype,"menusections",2);var pd=_a;pd.register(Sa);var wE=pd;var Ia=Y.constructTagName("menuitem"),ka={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},md={POSITIVE:"positive",NEGATIVE:"negative"},ud={LEADING:"leading",TRAILING:"trailing"};var NE=G`
|
3644
3644
|
:host(:dir(rtl))::part(trailing-arrow),
|
3645
3645
|
:host(:dir(rtl))::part(leading-arrow) {
|
3646
3646
|
transform: rotate(180deg);
|
@@ -3649,23 +3649,23 @@
|
|
3649
3649
|
:host::part(leading-arrow) {
|
3650
3650
|
--mdc-icon-size: 1.25rem;
|
3651
3651
|
}
|
3652
|
-
`,
|
3652
|
+
`,cf=[NE];var Ri=class extends oi{constructor(){super();this.name=void 0;this.value=void 0;this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(t){t.key===J.ENTER&&(this.triggerClickEvent(),t.preventDefault())}handleKeyUp(t){t.key===J.SPACE&&(this.triggerClickEvent(),t.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEM,this.variant=ya.INSET_RECTANGLE}renderTrailingControls(){let t=this.arrowDirection===md.NEGATIVE?ka.LEFT:ka.RIGHT;return C`
|
3653
3653
|
<slot
|
3654
3654
|
name="trailing-controls"
|
3655
3655
|
@click=${this.stopEventPropagation}
|
3656
3656
|
@keyup=${this.stopEventPropagation}
|
3657
3657
|
@keydown=${this.stopEventPropagation}
|
3658
3658
|
></slot>
|
3659
|
-
${this.arrowPosition===
|
3660
|
-
`}renderLeadingControls(){let t=this.arrowDirection===
|
3659
|
+
${this.arrowPosition===ud.TRAILING?C`<mdc-icon name="${t}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:W}
|
3660
|
+
`}renderLeadingControls(){let t=this.arrowDirection===md.POSITIVE?ka.RIGHT:ka.LEFT;return C`
|
3661
3661
|
<slot
|
3662
3662
|
name="leading-controls"
|
3663
3663
|
@click=${this.stopEventPropagation}
|
3664
3664
|
@keyup=${this.stopEventPropagation}
|
3665
3665
|
@keydown=${this.stopEventPropagation}
|
3666
3666
|
></slot>
|
3667
|
-
${this.arrowPosition===
|
3668
|
-
`}};
|
3667
|
+
${this.arrowPosition===ud.LEADING?C`<mdc-icon name="${t}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
|
3668
|
+
`}};Ri.styles=[...oi.styles,...cf],p([f({type:String,reflect:!0,attribute:"arrow-position"})],Ri.prototype,"arrowPosition",2),p([f({type:String,reflect:!0,attribute:"arrow-direction"})],Ri.prototype,"arrowDirection",2),p([f({type:String,reflect:!0})],Ri.prototype,"name",2),p([f({type:String,reflect:!0})],Ri.prototype,"value",2);var rr=Ri;rr.register(Ia);var LE=rr;var df=Y.constructTagName("statictoggle"),RE={DEFAULT:"default",COMPACT:"compact"},fd={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},hf={compact:.75,default:1.25},pf={SIZE:RE.DEFAULT};var ME=[G`
|
3669
3669
|
:host {
|
3670
3670
|
--mdc-statictoggle-width: 3rem;
|
3671
3671
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3745,42 +3745,42 @@
|
|
3745
3745
|
border: var(--mdc-statictoggle-border);
|
3746
3746
|
}
|
3747
3747
|
}
|
3748
|
-
`],
|
3748
|
+
`],mf=ME;var fs=class extends zt(j){constructor(){super(...arguments);this.checked=!1;this.size=pf.SIZE}render(){return C`
|
3749
3749
|
<slot></slot>
|
3750
3750
|
<div part="slider">
|
3751
3751
|
<mdc-icon
|
3752
|
-
name="${this.checked?
|
3752
|
+
name="${this.checked?fd.CHECKED:fd.UNCHECKED}"
|
3753
3753
|
class="icon"
|
3754
3754
|
length-unit="rem"
|
3755
|
-
size="${
|
3755
|
+
size="${hf[this.size]}"
|
3756
3756
|
></mdc-icon>
|
3757
3757
|
</div>
|
3758
|
-
`}};
|
3758
|
+
`}};fs.styles=[...j.styles,...mf],p([f({type:Boolean,reflect:!0})],fs.prototype,"checked",2),p([f({type:String,reflect:!0})],fs.prototype,"size",2);var vd=fs;vd.register(df);var OE=vd;var uf=Y.constructTagName("toggle"),Ca={DEFAULT:"default",COMPACT:"compact"};var gd={SIZE:Ca.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var fl=Y.constructTagName("menuitemcheckbox"),wa={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},ff={INDICATOR:wa.CHECKBOX};var PE=G`
|
3759
3759
|
:host::part(checkmark-icon) {
|
3760
3760
|
--mdc-icon-fill-color: currentColor;
|
3761
3761
|
}
|
3762
3762
|
:host .hidden-checkmark {
|
3763
3763
|
visibility: hidden;
|
3764
3764
|
}
|
3765
|
-
`,
|
3765
|
+
`,vf=[PE];var vs=class extends rr{constructor(){super();this.checked=!1;this.indicator=ff.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===wa.CHECKBOX?C`
|
3766
3766
|
<mdc-staticcheckbox
|
3767
3767
|
slot="leading-controls"
|
3768
3768
|
?checked="${this.checked}"
|
3769
3769
|
?disabled="${this.disabled}"
|
3770
3770
|
></mdc-staticcheckbox>
|
3771
|
-
`:W}staticToggle(){return this.indicator===
|
3771
|
+
`:W}staticToggle(){return this.indicator===wa.TOGGLE?C`
|
3772
3772
|
<mdc-statictoggle
|
3773
3773
|
slot="trailing-controls"
|
3774
3774
|
?checked="${this.checked}"
|
3775
3775
|
?disabled="${this.disabled}"
|
3776
|
-
size="${
|
3776
|
+
size="${Ca.COMPACT}"
|
3777
3777
|
></mdc-statictoggle>
|
3778
|
-
`:W}getCheckmarkIcon(){return this.indicator===
|
3778
|
+
`:W}getCheckmarkIcon(){return this.indicator===wa.CHECKMARK?C`
|
3779
3779
|
<mdc-icon
|
3780
3780
|
slot="trailing-controls"
|
3781
3781
|
name="check-bold"
|
3782
3782
|
part="checkmark-icon"
|
3783
|
-
class=${
|
3783
|
+
class=${Cr({"hidden-checkmark":!this.checked})}
|
3784
3784
|
></mdc-icon>
|
3785
3785
|
`:W}render(){return C`
|
3786
3786
|
<div part="leading">
|
@@ -3800,25 +3800,25 @@
|
|
3800
3800
|
<slot name="trailing-controls"></slot>
|
3801
3801
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
3802
3802
|
</div>
|
3803
|
-
`}};
|
3803
|
+
`}};vs.styles=[...rr.styles,...vf],p([f({type:Boolean,reflect:!0})],vs.prototype,"checked",2),p([f({type:String,reflect:!0})],vs.prototype,"indicator",2);var bd=vs;bd.register(fl);var DE=bd;var vl=Y.constructTagName("menuitemradio"),gl={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},gf={INDICATOR:gl.RADIO};var FE=G`
|
3804
3804
|
:host::part(checkmark-icon) {
|
3805
3805
|
--mdc-icon-fill-color: currentColor;
|
3806
3806
|
}
|
3807
3807
|
:host .hidden-checkmark {
|
3808
3808
|
visibility: hidden;
|
3809
3809
|
}
|
3810
|
-
`,
|
3810
|
+
`,bf=[FE];var gs=class extends rr{constructor(){super();this.checked=!1;this.indicator=gf.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${si}, ${Zt}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(o=>{o!==this&&o.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.checked||(this.updateOtherRadiosCheckedState(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===gl.RADIO?C`
|
3811
3811
|
<mdc-staticradio
|
3812
3812
|
slot="leading-controls"
|
3813
3813
|
?checked="${this.checked}"
|
3814
3814
|
?disabled="${this.disabled}"
|
3815
3815
|
></mdc-staticradio>
|
3816
|
-
`:W}renderCheckmarkIcon(){return this.indicator===
|
3816
|
+
`:W}renderCheckmarkIcon(){return this.indicator===gl.CHECKMARK?C`
|
3817
3817
|
<mdc-icon
|
3818
3818
|
slot="trailing-controls"
|
3819
3819
|
name="check-bold"
|
3820
3820
|
part="checkmark-icon"
|
3821
|
-
class=${
|
3821
|
+
class=${Cr({"hidden-checkmark":!this.checked})}
|
3822
3822
|
></mdc-icon>
|
3823
3823
|
`:W}render(){return C`
|
3824
3824
|
<div part="leading">
|
@@ -3838,7 +3838,7 @@
|
|
3838
3838
|
<slot name="trailing-controls"></slot>
|
3839
3839
|
${this.renderCheckmarkIcon()}
|
3840
3840
|
</div>
|
3841
|
-
`}};
|
3841
|
+
`}};gs.styles=[...rr.styles,...bf],p([f({type:Boolean,reflect:!0})],gs.prototype,"checked",2),p([f({type:String,reflect:!0})],gs.prototype,"indicator",2);var yd=gs;yd.register(vl);var $E=yd;var Mi=Y.constructTagName("navmenuitem"),yf={DOT:Xe.DOT,COUNTER:Xe.COUNTER},Ef={RIGHT_ARROW:"arrow-right-bold"},Tf={MAX_COUNTER:99,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:gt.SPAN,SIZE:ji[24],VARIANT:Rr.FLEXIBLE};var zE=G`
|
3842
3842
|
:host::part(popover-content) {
|
3843
3843
|
padding: 0.75rem 0.5rem;
|
3844
3844
|
}
|
@@ -3846,7 +3846,7 @@
|
|
3846
3846
|
::slotted(mdc-divider) {
|
3847
3847
|
margin-block: 0.25rem;
|
3848
3848
|
}
|
3849
|
-
`,
|
3849
|
+
`,xf=[zE];var Na=l=>{var t;if(!l)return!1;let i=(t=l.getAttribute("role"))==null?void 0:t.toLowerCase();return i===tt.MENUITEM||i===tt.MENUITEMCHECKBOX||i===tt.MENUITEMRADIO},Ed=l=>{var i;return((i=l==null?void 0:l.tagName)==null?void 0:i.toLowerCase())===Zt};var La=class extends Pe{constructor(){super();this.placement=hd.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(Te.peek()!==this)return;let o=t.composedPath(),a=this.contains(t.target)||o.includes(this.triggerElement)||o.includes(this),h=this.backdropElement?o.includes(this.backdropElement):!1;(!a||h)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=()=>{var t;(t=this.triggerElement)!=null&&t.hasAttribute("soft-disabled")||(this.visible?this.hide():this.show())};this.handleItemCreation=t=>{let o=t.target;Na(o)&&(t.stopImmediatePropagation(),o.addEventListener("destroyed",this.handleItemChangeEvent),o.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(o=>o.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let o=!1;this.collectMenuItems();let a=t.target,h=this.getCurrentIndex(a);if(h===-1)return;this.resetTabIndexes(h);let m=window.getComputedStyle(this).direction==="rtl";switch(this.resolveDirectionKey(t.key,m)){case J.HOME:{this.resetTabIndexAndSetFocus(0,h),o=!0;break}case J.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,h),o=!0;break}case J.ARROW_DOWN:{let N=h+1===this.menuItems.length?0:h+1;this.resetTabIndexAndSetFocus(N,h),o=!0;break}case J.ARROW_UP:{let N=h-1===-1?this.menuItems.length-1:h-1;this.resetTabIndexAndSetFocus(N,h),o=!0;break}case J.ARROW_RIGHT:{let N=this.getSubMenuPopoverOfTarget(a);N&&(N.show(),o=!0);break}case J.ARROW_LEFT:{Ed(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,h),o=!0);break}case J.ESCAPE:{this.resetTabIndexAndSetFocus(0,h),o=!0;break}case J.ENTER:{this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),o=!0);break}case J.SPACE:{o=!0;break}default:break}o&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let o=!1,a=t.target;switch(t.key){case J.SPACE:{a.matches(`${vl}, ${fl}`)||this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),o=!0);break}default:break}o&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("click",this.handleMouseClick),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var a,h;let o=t.getAttribute("id");return o?(h=(a=this.parentElement)==null?void 0:a.querySelector)==null?void 0:h.call(a,`${Zt}[triggerid="${o}"]`):null}collectMenuItems(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),o=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=o.map(h=>h.tagName.toLowerCase()===si?Array.from(h.children).filter(m=>Na(m)):Na(h)?h:[]).flat().filter(h=>!!h&&!h.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(h=>this.getSubMenuPopoverOfTarget(h))}getOpenSubMenusOfItems(t){let o=[];return!t||t.length===0||t.forEach(a=>{let h=this.getSubMenuPopoverOfTarget(a);h&&h.visible&&o.push(h)}),o}connectedCallback(){super.connectedCallback(),this.role=tt.MENU,this.ariaOrientation=hd.ORIENTATION,this.backdrop=!1,this.color=no.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,o){return t===o||!this.triggerElement?Promise.resolve():(o&&(this.backdrop=![Ia,Mi].includes(this.triggerElement.tagName.toLowerCase())),o===!1&&this.menuItemsWithSubMenus.forEach(a=>{let h=this.getSubMenuPopoverOfTarget(a);h&&h.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,o))}async firstUpdated(t){var o;await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0),(o=this.triggerElement)==null||o.setAttribute("aria-haspopup",tt.MENU)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(o=>o.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(o=>o===t)}resetTabIndexAndSetFocus(t,o){t!==o&&(this.menuItems[o].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){for(;Te.peek()!==t&&Ed(Te.peek());){let o=Te.pop();if(o)o.hide();else break}}closeOtherSubMenusOnSameLevel(t){let o=this.menuItemsWithSubMenus.filter(h=>h!==t);this.getOpenSubMenusOfItems(o).forEach(h=>{h.hide()})}fireMenuItemAction(t){t.matches(Ia)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let o=t.target;if(t.stopPropagation(),!(!Na(o)||!t.isTrusted)){if(this.getSubMenuPopoverOfTarget(o)){this.closeOtherSubMenusOnSameLevel(o);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(o)}}resolveDirectionKey(t,o){if(!o)return t;switch(t){case J.ARROW_LEFT:return J.ARROW_RIGHT;case J.ARROW_RIGHT:return J.ARROW_LEFT;default:return t}}};La.styles=[...Pe.styles,...xf],p([f({type:String,reflect:!0})],La.prototype,"placement",2);var Td=La;Td.register(Zt);var VE=Td;var bl=class{constructor(i,t,o){this.variant=i,this.expanded=t,this.parentNavTooltipText=o}hasSiblingWithTriggerId(i){var a,h;let t=i==null?void 0:i.getAttribute("id");return t?Array.from((h=(a=i==null?void 0:i.parentElement)==null?void 0:a.children)!=null?h:[]).some(m=>m!==i&&m.tagName.toLowerCase()===Zt&&m.getAttribute("triggerid")===t):!1}getParentNavMenuItems(i){if(!i)return[];let t=[],o=i;for(;o;){let a=o==null?void 0:o.closest(Zt);if(!a)break;let h=a.getAttribute("triggerid");if(!h)break;let m=document.getElementById(h);if(m&&m.tagName.toLowerCase()===Mi)t.push(m),o=m;else break}return t}setCurrentActiveNavMenuItem(i){var h;let t=((h=this.currentActiveNavMenuItem)==null?void 0:h.navId)===(i==null?void 0:i.navId),o=(i==null?void 0:i.disableAriaCurrent)||this.hasSiblingWithTriggerId(i)||(i==null?void 0:i.softDisabled);if(t||o||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(T=>{T.removeAttribute("tooltip-text"),T.removeAttribute("tooltip-placement"),T.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",Ht.BOTTOM),m.setAttribute("active","")})}};bl.context=Li;var yl=bl;var BE=G`
|
3850
3850
|
:host {
|
3851
3851
|
--mdc-sidenavigation-expanded-width: 15rem;
|
3852
3852
|
--mdc-sidenavigation-collapsed-width: 4.5rem;
|
@@ -3911,7 +3911,7 @@
|
|
3911
3911
|
:host::part(separator) {
|
3912
3912
|
margin-bottom: 0.75rem;
|
3913
3913
|
}
|
3914
|
-
`,
|
3914
|
+
`,Af=[BE];var gr=class extends Sr{constructor(){super({context:yl.context,initialValue:new yl(Aa.VARIANT,!0)});this.variant=Aa.VARIANT;this.footerText="";this.flexibleExpanded=this.variant===Aa.VARIANT;this.arrowDirection=this.flexibleExpanded?Ae.NEGATIVE:Ae.POSITIVE;this.handleNestedNavMenuItemActiveChange=t=>{var o;if((o=this.context)!=null&&o.value){let a=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(a)}};this.findNav=(t,o)=>t.find(a=>a.navId===o);this.updateExpansionState=()=>{switch(this.variant){case Rr.FLEXIBLE:this.expanded=this.flexibleExpanded;break;case Rr.FIXED_EXPANDED:this.expanded=!0;break;case Rr.FIXED_COLLAPSED:this.expanded=!1;break;default:}};this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.NAVIGATION}static get Context(){return yl.context}updated(t){super.updated(t),t.has("variant")&&(this.setVariant(this.variant),this.updateExpansionState()),(t.has("variant")||t.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(`${Mi}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(Rr).includes(t)?t:Aa.VARIANT)}toggleSideNavigation(){this.flexibleExpanded=!this.flexibleExpanded,this.arrowDirection=this.arrowDirection===Ae.NEGATIVE?Ae.POSITIVE:Ae.NEGATIVE,this.updateExpansionState()}preventScrollOnSpace(t){t.key===J.SPACE&&t.preventDefault()}render(){var t;return this.variant===Rr.HIDDEN?C``:C`
|
3915
3915
|
<div part="side-navigation-container" id="side-nav-container">
|
3916
3916
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
3917
3917
|
<slot name="scrollable-section">
|
@@ -3935,11 +3935,11 @@
|
|
3935
3935
|
</div>
|
3936
3936
|
</div>
|
3937
3937
|
</div>
|
3938
|
-
${this.variant===
|
3939
|
-
orientation=${
|
3940
|
-
variant=${
|
3938
|
+
${this.variant===Rr.FLEXIBLE?C`<mdc-divider
|
3939
|
+
orientation=${mo.VERTICAL}
|
3940
|
+
variant=${ua.GRADIENT}
|
3941
3941
|
arrow-direction=${this.arrowDirection}
|
3942
|
-
button-position=${
|
3942
|
+
button-position=${Ae.POSITIVE}
|
3943
3943
|
>
|
3944
3944
|
<mdc-button
|
3945
3945
|
aria-label=${(t=this.grabberBtnAriaLabel)!=null?t:""}
|
@@ -3949,7 +3949,7 @@
|
|
3949
3949
|
part="grabber-btn"
|
3950
3950
|
></mdc-button>
|
3951
3951
|
</mdc-divider>`:W}
|
3952
|
-
`}};
|
3952
|
+
`}};gr.styles=[...j.styles,...Af],p([f({type:String,reflect:!0})],gr.prototype,"variant",2),p([f({type:String,reflect:!0,attribute:"footer-text"})],gr.prototype,"footerText",2),p([f({type:Boolean,reflect:!0})],gr.prototype,"expanded",2),p([f({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],gr.prototype,"grabberBtnAriaLabel",2),p([f({type:String,reflect:!0,attribute:"parent-nav-tooltip-text"})],gr.prototype,"parentNavTooltipText",2),p([xt()],gr.prototype,"flexibleExpanded",2),p([xt()],gr.prototype,"arrowDirection",2);var bo=gr;var UE=G`
|
3953
3953
|
:host {
|
3954
3954
|
display: flex;
|
3955
3955
|
flex-direction: column;
|
@@ -3967,7 +3967,7 @@
|
|
3967
3967
|
:host(:dir(rtl))::part(align-header) {
|
3968
3968
|
padding-right: 1.75rem;
|
3969
3969
|
}
|
3970
|
-
`,
|
3970
|
+
`,Sf=[UE];var Mr=class extends j{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=af.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=_r.consume({host:this,context:bo.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",tt.GROUP)}update(t){var h;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let o=(h=this.sideNavigationContext)==null?void 0:h.value;if(!o)return;let{expanded:a}=o;this.hideHeaderText=!a}renderHeader(){var t,o;return this.headerText?C` <mdc-listheader
|
3971
3971
|
part="header ${(o=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&o.expanded?"align-header":""}"
|
3972
3972
|
header-text="${this.headerText}"
|
3973
3973
|
prefix-icon="${ot(this.prefixIcon)}"
|
@@ -3976,7 +3976,7 @@
|
|
3976
3976
|
${this.hideHeaderText?null:this.renderHeader()}
|
3977
3977
|
<slot></slot>
|
3978
3978
|
${this.showDivider?C`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
3979
|
-
`}};
|
3979
|
+
`}};Mr.styles=[...j.styles,...Sf],p([f({type:String,reflect:!0,attribute:"aria-label"})],Mr.prototype,"ariaLabel",2),p([f({type:String,reflect:!0,attribute:"header-text"})],Mr.prototype,"headerText",2),p([f({type:String,attribute:"prefix-icon"})],Mr.prototype,"prefixIcon",2),p([f({type:Boolean,reflect:!0,attribute:"show-divider"})],Mr.prototype,"showDivider",2),p([f({type:String,reflect:!0,attribute:"divider-variant"})],Mr.prototype,"dividerVariant",2),p([f({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Mr.prototype,"hideHeaderText",2);var xd=Mr;xd.register(si);var HE=xd;var GE=[Et,G`
|
3980
3980
|
:host {
|
3981
3981
|
--mdc-navmenuitem-color: var(--mds-color-theme-text-primary-normal);
|
3982
3982
|
--mdc-navmenuitem-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4121,7 +4121,7 @@
|
|
4121
4121
|
left: -0.75rem;
|
4122
4122
|
top: 0.875rem;
|
4123
4123
|
}
|
4124
|
-
`,...At()],
|
4124
|
+
`,...At()],_f=GE;var ir=class extends te(rr){constructor(){super();this.maxCounter=Tf.MAX_COUNTER;this.ariaLabel=null;this.sideNavigationContext=_r.consume({host:this,context:bo.Context});this.emitNavMenuItemActiveChange=t=>{let o=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(o)};this.addEventListener("click",this.handleClickEvent.bind(this))}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 o,a;let t=(o=this.sideNavigationContext)==null?void 0:o.value;if(t)if(this.showLabel=this.isNested()?!0:t.expanded,this.showLabel)this.removeAttribute("aria-label");else{let h=(a=this.label)!=null?a:"";this.ariaLabel=this.ariaLabel||h,this.setAttribute("aria-label",h)}}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===Zt)return!0;t=t.parentElement}return!1}modifyIconName(t){if(!this.iconName)return;let o=this.iconName.endsWith("-filled"),a=Ki(this.iconName);t?o||(this.prevIconName=this.iconName,this.iconName=`${a}-filled`):this.prevIconName&&(this.iconName=this.prevIconName)}handleClickEvent(){this.disabled||this.emitNavMenuItemActiveChange(this.active)}update(t){super.update(t),t.has("active")&&this.modifyIconName(this.active)}renderTextLabel(t){return C`
|
4125
4125
|
<mdc-text
|
4126
4126
|
type=${this.active?st.BODY_MIDSIZE_BOLD:st.BODY_MIDSIZE_MEDIUM}
|
4127
4127
|
tagname=${gt.SPAN}
|
@@ -4130,8 +4130,8 @@
|
|
4130
4130
|
${t}
|
4131
4131
|
</mdc-text>
|
4132
4132
|
`}renderArrowIcon(t){let o=t?"":"arrow";return C`
|
4133
|
-
<mdc-icon name=${
|
4134
|
-
`}renderBadge(t){let o=t?"":"badge";return Object.values(
|
4133
|
+
<mdc-icon name=${Ef.RIGHT_ARROW} length-unit="rem" part="trailing-arrow" class="${o}"> </mdc-icon>
|
4134
|
+
`}renderBadge(t){let o=t?"":"badge";return Object.values(yf).includes(this.badgeType)?C`
|
4135
4135
|
<mdc-badge
|
4136
4136
|
class="${o}"
|
4137
4137
|
type="${ot(this.badgeType)}"
|
@@ -4146,7 +4146,7 @@
|
|
4146
4146
|
</div>
|
4147
4147
|
${this.showLabel?C`${this.renderTextLabel(this.label)}${this.renderBadge(this.showLabel)}`:W}
|
4148
4148
|
${t!=null&&t.hasSiblingWithTriggerId(this)?this.renderArrowIcon(this.showLabel):W}
|
4149
|
-
`}};
|
4149
|
+
`}};ir.styles=[...rr.styles,..._f],p([f({type:Boolean,reflect:!0})],ir.prototype,"active",2),p([f({type:String,reflect:!0,attribute:"badge-type"})],ir.prototype,"badgeType",2),p([f({type:Number,reflect:!0})],ir.prototype,"counter",2),p([f({type:Number,attribute:"max-counter",reflect:!0})],ir.prototype,"maxCounter",2),p([f({type:String,reflect:!0,attribute:"nav-id"})],ir.prototype,"navId",2),p([f({type:Boolean,reflect:!0,attribute:"show-label"})],ir.prototype,"showLabel",2),p([f({type:String,attribute:"aria-label"})],ir.prototype,"ariaLabel",2),p([f({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],ir.prototype,"disableAriaCurrent",2);var Ad=ir;Ad.register(Mi);var YE=Ad;var If=Y.constructTagName("optgroup"),Sd="header-id";var WE=G`
|
4150
4150
|
:host {
|
4151
4151
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
4152
4152
|
}
|
@@ -4159,9 +4159,9 @@
|
|
4159
4159
|
color: var(--mdc-optgroup-disabled-color);
|
4160
4160
|
cursor: default;
|
4161
4161
|
}
|
4162
|
-
`,
|
4162
|
+
`,kf=[WE];var bs=class extends ie(zt(j)){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 t;let i=this.label?C`
|
4163
4163
|
<mdc-text
|
4164
|
-
id="${
|
4164
|
+
id="${Sd}"
|
4165
4165
|
part="header-text"
|
4166
4166
|
type="${st.BODY_MIDSIZE_BOLD}"
|
4167
4167
|
tagname="${gt.SPAN}"
|
@@ -4170,13 +4170,13 @@
|
|
4170
4170
|
`:W;return C`
|
4171
4171
|
<div
|
4172
4172
|
role="${tt.GROUP}"
|
4173
|
-
aria-labelledby="${this.label?
|
4173
|
+
aria-labelledby="${this.label?Sd:""}"
|
4174
4174
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
4175
4175
|
>
|
4176
4176
|
${i}
|
4177
4177
|
<slot role="${tt.PRESENTATION}"></slot>
|
4178
4178
|
</div>
|
4179
|
-
`}};
|
4179
|
+
`}};bs.styles=[...j.styles,...kf],p([f({type:String,reflect:!0})],bs.prototype,"label",2),p([Lt({selector:"mdc-option"})],bs.prototype,"options",2);var _d=bs;_d.register(If);var jE=_d;var Cf="check-bold",yo=Y.constructTagName("option");var qE=G`
|
4180
4180
|
:host {
|
4181
4181
|
--mdc-option-icon-width: 1rem;
|
4182
4182
|
|
@@ -4202,29 +4202,29 @@
|
|
4202
4202
|
/** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
|
4203
4203
|
width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
|
4204
4204
|
}
|
4205
|
-
`,
|
4205
|
+
`,wf=[qE];var Eo=class extends De(oi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=ya.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(t){super.update(t),t.has("selected")&&this.setAttribute("aria-selected",`${this.selected}`)}render(){let t=this.prefixIcon?C`
|
4206
4206
|
<div part="leading-icon">
|
4207
4207
|
<mdc-icon length-unit="rem" slot="leading-controls" name="${ot(this.prefixIcon)}"></mdc-icon>
|
4208
4208
|
</div>
|
4209
|
-
`:W,o=this.selected?C` <mdc-icon length-unit="rem" slot="trailing-controls" name="${
|
4209
|
+
`:W,o=this.selected?C` <mdc-icon length-unit="rem" slot="trailing-controls" name="${Cf}"></mdc-icon> `:W;return C`
|
4210
4210
|
${t}
|
4211
4211
|
<div part="leading-text">
|
4212
4212
|
${this.getText("leading-text-primary-label",st.BODY_MIDSIZE_REGULAR,this.label)}
|
4213
4213
|
${this.getText("leading-text-secondary-label",st.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
4214
4214
|
</div>
|
4215
4215
|
<div part="trailing">${o}</div>
|
4216
|
-
`}};
|
4216
|
+
`}};Eo.styles=[...oi.styles,...wf],p([f({type:Boolean,reflect:!0})],Eo.prototype,"selected",2),p([f({type:String,reflect:!0,attribute:"prefix-icon"})],Eo.prototype,"prefixIcon",2),p([f({type:String,reflect:!0,attribute:"aria-label"})],Eo.prototype,"ariaLabel",2);var Id=Eo;Id.register(yo);var KE=Id;var kd={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Nf=Y.constructTagName("password");var To=class extends ii{constructor(){super(...arguments);this.showHideButtonAriaLabel="";this.helpTextType=Dt.VALIDATION;this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let o=t||this.value;return o?C`
|
4217
4217
|
<mdc-button
|
4218
4218
|
part="trailing-button"
|
4219
4219
|
class="own-focus-ring ${o?"":"hidden"}"
|
4220
|
-
variant=${
|
4220
|
+
variant=${Pt.TERTIARY}
|
4221
4221
|
?disabled=${this.disabled||this.readonly||!o}
|
4222
|
-
size="${
|
4222
|
+
size="${Dt.ICON_SIZE}"
|
4223
4223
|
@click=${this.toggleShowPassword}
|
4224
4224
|
aria-label=${this.showHideButtonAriaLabel}
|
4225
|
-
prefix-icon=${this.showPassword?
|
4225
|
+
prefix-icon=${this.showPassword?kd.HIDE_BOLD:kd.SHOW_BOLD}
|
4226
4226
|
></mdc-button>
|
4227
|
-
`:W}renderInputElement(t,o){let a=this.showPassword?
|
4227
|
+
`:W}renderInputElement(t,o){let a=this.showPassword?hs.TEXT:hs.PASSWORD;return super.renderInputElement(a,o)}};To.styles=[...ii.styles],p([f({type:String,attribute:"show-hide-button-aria-label"})],To.prototype,"showHideButtonAriaLabel",2),p([f({type:String,attribute:"help-text-type"})],To.prototype,"helpTextType",2),p([xt()],To.prototype,"showPassword",2);var Cd=To;Cd.register(Nf);var XE=Cd;Pe.register(bu);var ZE=Pe;var Lf=Y.constructTagName("progressbar"),El={DEFAULT:"default",INLINE:"inline"},Rf={VARIANT:El.DEFAULT,VALIDATION:Wt.DEFAULT};var QE=[Et,G`
|
4228
4228
|
:host {
|
4229
4229
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
4230
4230
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -4311,7 +4311,7 @@
|
|
4311
4311
|
border: var(--mdc-progressbar-border);
|
4312
4312
|
}
|
4313
4313
|
}
|
4314
|
-
`],
|
4314
|
+
`],Mf=QE;var xo=class extends ie(er){constructor(){super(...arguments);this.variant=Rf.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var h;let t=this.getValidationVariant(),o=this.clampedValue>0&&this.clampedValue<100,a=this.error?"100":`${this.clampedValue}`;return C`
|
4315
4315
|
<div
|
4316
4316
|
part="progress-container ${o?"gap":""}"
|
4317
4317
|
role="${tt.PROGRESSBAR}"
|
@@ -4323,15 +4323,15 @@
|
|
4323
4323
|
<div part="progress-bar ${t}" style="width: ${a}%"></div>
|
4324
4324
|
<div part="remaining"></div>
|
4325
4325
|
</div>
|
4326
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${
|
4326
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${be()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=Wt.ERROR:this.clampedValue===100?this.helpTextType=Wt.SUCCESS:this.helpTextType=Wt.DEFAULT,this.helpTextType}render(){let t=this.variant===El.INLINE;return C`
|
4327
4327
|
${t?C`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:C`
|
4328
4328
|
<div part="label-container">
|
4329
4329
|
${this.renderLabelElement()}
|
4330
|
-
${this.variant===
|
4330
|
+
${this.variant===El.DEFAULT&&this.label?C`<span part="percentage">${this.clampedValue}%</span>`:""}
|
4331
4331
|
</div>
|
4332
4332
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
4333
4333
|
`}
|
4334
|
-
`}};
|
4334
|
+
`}};xo.styles=[...er.styles,...Mf],p([f({type:String,reflect:!0})],xo.prototype,"variant",2),p([f({type:String,reflect:!0})],xo.prototype,"value",2),p([f({type:Boolean,attribute:"error"})],xo.prototype,"error",2);var Ra=xo;Ra.register(Lf);var JE=Ra;var Of=Y.constructTagName("progressspinner"),Qt={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},wd={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Nd=l=>{if(l===0)return 0;let i=l/100*Qt.CIRCUMFERENCE-Qt.GAP_SIZE;return Math.max(i,.1*l)},Pf=l=>{let i=Qt.CIRCUMFERENCE-Nd(l)-2*Qt.GAP_SIZE;return l===0?Qt.CIRCUMFERENCE:i<0?0:i},Df=l=>l===0?0:Qt.GAP_SIZE*.5,Ff=(l,i)=>{let t=i+Qt.GAP_SIZE*1.5;return l===0?0:t};var tT=G`
|
4335
4335
|
:host {
|
4336
4336
|
--mdc-spinner-size: 3rem;
|
4337
4337
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -4375,7 +4375,7 @@
|
|
4375
4375
|
color: var(--mdc-progress-error-color);
|
4376
4376
|
margin: 0.5rem;
|
4377
4377
|
}
|
4378
|
-
|
4378
|
+
`,$f=[tT];var Tl=class extends Ra{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=Nd(this.clampedValue),t=Pf(this.clampedValue),o=Df(this.clampedValue),a=Ff(this.clampedValue,i);return C`
|
4379
4379
|
<div
|
4380
4380
|
part="spinner-container ${this.variant}"
|
4381
4381
|
role="${tt.PROGRESSBAR}"
|
@@ -4389,18 +4389,18 @@
|
|
4389
4389
|
part="spinner-track"
|
4390
4390
|
cx="24"
|
4391
4391
|
cy="24"
|
4392
|
-
r="${
|
4393
|
-
stroke-width="${t===0?0:
|
4394
|
-
stroke-dasharray="${t} ${
|
4392
|
+
r="${Qt.RADIUS}"
|
4393
|
+
stroke-width="${t===0?0:Qt.STROKE_WIDTH}"
|
4394
|
+
stroke-dasharray="${t} ${Qt.CIRCUMFERENCE}"
|
4395
4395
|
stroke-dashoffset="-${a}"
|
4396
4396
|
/>
|
4397
4397
|
<circle
|
4398
4398
|
part="spinner-progress"
|
4399
4399
|
cx="24"
|
4400
4400
|
cy="24"
|
4401
|
-
r="${
|
4402
|
-
stroke-width="${i===0?0:
|
4403
|
-
stroke-dasharray="${i} ${
|
4401
|
+
r="${Qt.RADIUS}"
|
4402
|
+
stroke-width="${i===0?0:Qt.STROKE_WIDTH}"
|
4403
|
+
stroke-dasharray="${i} ${Qt.CIRCUMFERENCE}"
|
4404
4404
|
stroke-dashoffset="-${o}"
|
4405
4405
|
/>
|
4406
4406
|
</svg>
|
@@ -4409,19 +4409,19 @@
|
|
4409
4409
|
<mdc-icon
|
4410
4410
|
part="error-icon"
|
4411
4411
|
aria-label="${(i=this.dataAriaLabel)!=null?i:""}"
|
4412
|
-
name="${
|
4413
|
-
size="${
|
4414
|
-
length-unit="${
|
4412
|
+
name="${wd.ERROR_LEGACY_FILLED}"
|
4413
|
+
size="${Qt.ERROR_ICON_SIZE}"
|
4414
|
+
length-unit="${Qt.ICON_LENGTH_UNIT}"
|
4415
4415
|
></mdc-icon>
|
4416
4416
|
`}renderSuccessState(){var i;return C`
|
4417
4417
|
<mdc-icon
|
4418
4418
|
part="success-icon"
|
4419
4419
|
aria-label="${(i=this.dataAriaLabel)!=null?i:""}"
|
4420
|
-
name="${
|
4421
|
-
size="${
|
4422
|
-
length-unit="${
|
4420
|
+
name="${wd.CHECK_CIRCLE_BOLD}"
|
4421
|
+
size="${Qt.SUCCESS_ICON_SIZE}"
|
4422
|
+
length-unit="${Qt.ICON_LENGTH_UNIT}"
|
4423
4423
|
></mdc-icon>
|
4424
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():C` ${this.renderProgressSpinner()}`}};
|
4424
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():C` ${this.renderProgressSpinner()}`}};Tl.styles=[...j.styles,...$f];var Ld=Tl;Ld.register(Of);var eT=Ld;var rT=[Et,G`
|
4425
4425
|
:host {
|
4426
4426
|
display: flex;
|
4427
4427
|
flex-direction: row;
|
@@ -4506,7 +4506,7 @@
|
|
4506
4506
|
:host::part(required-indicator) {
|
4507
4507
|
display: none;
|
4508
4508
|
}
|
4509
|
-
`,...At(!0)],
|
4509
|
+
`,...At(!0)],zf=rT;var Ao=class extends De(ie(xe)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?C`<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}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(o=>{o.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(o=>{this.onerror&&this.onerror(o)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,o){this.updateComplete.then(()=>{t.forEach(a=>{a.setComponentValidity(o)})}).catch(a=>{this.onerror&&this.onerror(a)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let o=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(o,!0);else{let a=o.some(T=>T.required),h=!!o.find(T=>T.checked),m=a&&!h;this.setGroupValidity(o,!m)}this.internals.setFormValue(t)}handleChange(){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(h=>{var T;let m=(T=h.shadowRoot)==null?void 0:T.querySelector("input");m&&(h.checked=!1,m.checked=!1)}),this.checked=!0;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("input");o&&(o.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}updateRadio(t,o){var a,h;(h=(a=t[o].shadowRoot)==null?void 0:a.querySelector("input"))==null||h.focus(),t[o].handleChange()}handleKeyDown(t){var m;if(this.disabled)return;let a=this.getAllRadiosWithinSameGroup().filter(T=>!T.disabled),h=a.indexOf(this);if(["ArrowDown","ArrowRight"].includes(t.key)){let T=(h+1)%a.length;this.updateRadio(a,T)}else if(["ArrowUp","ArrowLeft"].includes(t.key)){let T=(h-1+a.length)%a.length;this.updateRadio(a,T)}else t.key===J.SPACE&&this.updateRadio(a,h);this.updateTabIndex(),t.key===J.ENTER&&((m=this.form)==null||m.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),o=t.find(h=>h.checked),a=t.find(h=>!h.disabled);t.forEach(h=>{var T;let m=(T=h.shadowRoot)==null?void 0:T.querySelector("input");m&&(m.tabIndex=-1,(h===o||!o&&h===a)&&(m.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return C`
|
4510
4510
|
<mdc-staticradio
|
4511
4511
|
class="mdc-focus-ring"
|
4512
4512
|
?checked="${this.checked}"
|
@@ -4528,12 +4528,12 @@
|
|
4528
4528
|
?disabled=${this.disabled}
|
4529
4529
|
class="mdc-radio__input"
|
4530
4530
|
aria-checked="${this.checked}"
|
4531
|
-
aria-describedby="${ot(this.helpText?
|
4531
|
+
aria-describedby="${ot(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
4532
4532
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
4533
4533
|
/>
|
4534
4534
|
</mdc-staticradio>
|
4535
4535
|
${this.renderLabelAndHelperText()}
|
4536
|
-
`}};
|
4536
|
+
`}};Ao.styles=[...xe.styles,...zf],p([f({type:Boolean,reflect:!0})],Ao.prototype,"checked",2),p([f({type:Boolean,reflect:!0})],Ao.prototype,"readonly",2),p([f({type:Boolean,reflect:!0})],Ao.prototype,"autofocus",2);var Rd=Ao;var xl=Y.constructTagName("radio");Rd.register(xl);var iT=Rd;var Ma=class extends dl{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,o,a,h,m;(m=(h=(a=(o=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:o.flatMap(T=>T.assignedElements({flatten:!0})))==null?void 0:a.filter(T=>T.tagName.toLowerCase()===xl||T.tagName.toLowerCase()===Kn))==null?void 0:h.filter(T=>!T.hasAttribute("name")))==null||m.forEach(T=>{T.setAttribute("name",this.name),this.required&&T.setAttribute("required",this.required.toString())})}};Ma.styles=[...dl.styles],p([f({type:String})],Ma.prototype,"name",2);var Md=Ma;var Vf=Y.constructTagName("radiogroup");Md.register(Vf);var oT=Md;var sT=G`
|
4537
4537
|
:host::part(filters-container) {
|
4538
4538
|
display: flex;
|
4539
4539
|
gap: 0.25rem;
|
@@ -4558,10 +4558,10 @@
|
|
4558
4558
|
position: relative;
|
4559
4559
|
scrollbar-width: none;
|
4560
4560
|
}
|
4561
|
-
`,
|
4561
|
+
`,Bf=[sT];var Uf=Y.constructTagName("searchfield"),Oa={TYPE:hs.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:pl};var So=class extends ii{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(t){super.handleKeyDown(t),t.key===J.ESCAPE&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=Oa.ICON,this.trailingButton=Oa.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(o=>{o.matches(Oa.INPUT_CHIP_TAG)||o.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(o=>{o.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return C`
|
4562
4562
|
${this.renderLabelElement()}
|
4563
4563
|
<div
|
4564
|
-
class="${
|
4564
|
+
class="${Cr({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}"
|
4565
4565
|
part="input-container"
|
4566
4566
|
>
|
4567
4567
|
${this.renderLeadingIcon()}
|
@@ -4574,11 +4574,11 @@
|
|
4574
4574
|
>
|
4575
4575
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot>
|
4576
4576
|
</div>
|
4577
|
-
${this.renderInputElement(
|
4577
|
+
${this.renderInputElement(Oa.TYPE,this.hasInputChips)}
|
4578
4578
|
</div>
|
4579
4579
|
${this.renderTrailingButton(this.hasInputChips)}
|
4580
4580
|
</div>
|
4581
|
-
`}};
|
4581
|
+
`}};So.styles=[...ii.styles,...Bf],p([Lt({slot:"filters"})],So.prototype,"inputChips",2),p([xt()],So.prototype,"isInputFocused",2),p([xt()],So.prototype,"hasInputChips",2);var Od=So;Od.register(Uf);var aT=Od;var Hf=Y.constructTagName("select"),Pd={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Pa="select-base-triggerid",Dd="select-listbox";var nT=G`
|
4582
4582
|
:host {
|
4583
4583
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
4584
4584
|
--mdc-select-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -4699,24 +4699,24 @@
|
|
4699
4699
|
:host([soft-disabled])::part(base-text) {
|
4700
4700
|
color: var(--mdc-select-text-color-disabled);
|
4701
4701
|
}
|
4702
|
-
`,
|
4702
|
+
`,Gf=[nT,...At(!0)];var ve=class extends De(ie(xe)){constructor(){super(...arguments);this.readonly=!1;this.placement=Ht.BOTTOM_START;this.boundary=kt.BOUNDARY;this.strategy=kt.STRATEGY;this.popoverZIndex=kt.Z_INDEX;this.displayPopover=!1;this.initialSelectedOption=null}getAllValidOptions(){var t;return Array.from(((t=this.slottedListboxes[0])==null?void 0:t.querySelectorAll(`${yo}:not([disabled])`))||[])}getFirstValidOption(){var t;return(t=this.slottedListboxes[0])==null?void 0:t.querySelector(`${yo}:not([disabled])`)}getLastValidOption(){let t=this.getAllValidOptions();return t.length>0?t[t.length-1]:null}getFirstSelectedOption(){var t;return(t=this.slottedListboxes[0])==null?void 0:t.querySelector(`${yo}[selected]:not([disabled])`)}async firstUpdated(){await this.updateComplete,this.modifyListBoxWrapper();let t=this.getFirstSelectedOption();if(t)this.initialSelectedOption=t,this.setSelectedOption(t);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let o=this.getFirstValidOption();this.setSelectedOption(o),this.fireEvents()}}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1),t.has("dataAriaLabel")&&this.modifyListBoxWrapper()}modifyListBoxWrapper(){let t=this.slottedListboxes[0];t&&(t.setAttribute("id",Dd),t.setAttribute("aria-label",this.dataAriaLabel||""),t.setAttribute("aria-labelledby",Pa))}handleOptionsClick(t){let o=t.target;o&&o.tagName===yo.toUpperCase()&&!o.hasAttribute("disabled")&&!o.hasAttribute("soft-disabled")&&(this.setSelectedOption(o),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var o,a,h;this.updateSelectedInChildOptions(t),this.updateTabIndexForAllOptions(t),this.selectedOption=t,this.value=(a=(o=this.selectedOption)==null?void 0:o.value)!=null?a:"",this.internals.setFormValue(this.value),(h=this.inputElement)==null||h.setAttribute("value",this.value),this.setInputValidity()}updateTabIndexForAllOptions(t){let o=this.getAllValidOptions(),a=t||o[0];o.forEach(h=>{h.setAttribute("tabindex",h===a?"0":"-1")})}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.getAllValidOptions().forEach(a=>{a!==t&&a.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,o;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(o=this.inputElement)==null||o.setCustomValidity(""),this.setValidity()}formResetCallback(){var o;let t=this.initialSelectedOption||null;((o=this.selectedOption)==null?void 0:o.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var a;let o=this.getAllValidOptions().find(h=>h.value===t||h.label===t);((a=this.selectedOption)==null?void 0:a.value)!==(o==null?void 0:o.value)&&(this.setSelectedOption(o||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleKeydownCombobox(t){if(!(this.disabled||this.softDisabled||this.readonly))switch(t.key){case J.ARROW_DOWN:case J.ARROW_UP:this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case J.ENTER:case J.SPACE:this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case J.HOME:{this.displayPopover=!0;let o=this.getFirstValidOption();o&&(o==null||o.focus(),this.updateTabIndexForAllOptions(o)),t.preventDefault();break}case J.END:{this.displayPopover=!0;let o=this.getLastValidOption();o&&(o.focus(),this.updateTabIndexForAllOptions(o)),t.preventDefault();break}default:break}}handlePopoverKeydown(t){let o=null;switch(t.key){case J.HOME:{o=this.getFirstValidOption();break}case J.END:{o=this.getLastValidOption();break}case J.ARROW_DOWN:{let a=this.getAllValidOptions(),h=a.findIndex(T=>T===t.target),m=Math.min(h+1,a.length-1);o=a[m];break}case J.ARROW_UP:{let a=this.getAllValidOptions(),h=a.findIndex(T=>T===t.target),m=Math.max(h-1,0);o=a[m];break}case J.PAGE_DOWN:{let a=this.getAllValidOptions(),h=a.findIndex(T=>T===t.target),m=Math.min(h+10,a.length-1);o=a[m];break}case J.PAGE_UP:{let a=this.getAllValidOptions(),h=a.findIndex(T=>T===t.target),m=Math.max(h-10,0);o=a[m];break}default:break}o&&(this.focusAndUpdateTabIndexes(o),t.preventDefault(),t.stopPropagation())}focusAndUpdateTabIndexes(t){t&&(t.focus(),this.updateTabIndexForAllOptions(t))}handleNativeInputFocus(){this.visualCombobox.focus()}updateState(){var o;let t=this.getFirstSelectedOption();this.inputElement&&(t?((o=this.selectedOption)==null?void 0:o.value)!==t.value&&this.setSelectedOption(t):this.setSelectedOption(this.placeholder?null:this.getFirstValidOption()))}render(){var t,o,a,h,m,T;return C`
|
4703
4703
|
${this.renderLabel()}
|
4704
4704
|
<div part="container">
|
4705
4705
|
<div
|
4706
|
-
id="${
|
4706
|
+
id="${Pa}"
|
4707
4707
|
part="base-container"
|
4708
4708
|
@click="${this.handleClickCombobox}"
|
4709
4709
|
@keydown="${this.handleKeydownCombobox}"
|
4710
4710
|
tabindex="${this.disabled?"-1":"0"}"
|
4711
4711
|
class="${this.disabled?"":"mdc-focus-ring"}"
|
4712
4712
|
role="${tt.COMBOBOX}"
|
4713
|
-
aria-controls="${
|
4713
|
+
aria-controls="${Dd}"
|
4714
4714
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
4715
|
-
aria-labelledby="${this.label?
|
4715
|
+
aria-labelledby="${this.label?Dt.HEADING_ID:""}"
|
4716
4716
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
4717
4717
|
aria-haspopup="${tt.LISTBOX}"
|
4718
4718
|
aria-required="${this.required?"true":"false"}"
|
4719
|
-
aria-invalid="${this.helpTextType===
|
4719
|
+
aria-invalid="${this.helpTextType===Wt.ERROR?"true":"false"}"
|
4720
4720
|
aria-disabled="${ot(this.disabled||this.softDisabled)}"
|
4721
4721
|
aria-readonly="${ot(this.readonly)}"
|
4722
4722
|
>
|
@@ -4737,7 +4737,7 @@
|
|
4737
4737
|
<mdc-icon
|
4738
4738
|
size="1"
|
4739
4739
|
length-unit="rem"
|
4740
|
-
name="${this.displayPopover?
|
4740
|
+
name="${this.displayPopover?Pd.ARROW_UP:Pd.ARROW_DOWN}"
|
4741
4741
|
></mdc-icon>
|
4742
4742
|
</div>
|
4743
4743
|
</div>
|
@@ -4758,7 +4758,7 @@
|
|
4758
4758
|
/>
|
4759
4759
|
<mdc-popover
|
4760
4760
|
trigger="manual"
|
4761
|
-
triggerid="${
|
4761
|
+
triggerid="${Pa}"
|
4762
4762
|
@keydown="${this.handlePopoverKeydown}"
|
4763
4763
|
interactive
|
4764
4764
|
?visible="${this.displayPopover}"
|
@@ -4783,7 +4783,7 @@
|
|
4783
4783
|
</mdc-popover>
|
4784
4784
|
</div>
|
4785
4785
|
${this.renderHelperText()}
|
4786
|
-
`}};
|
4786
|
+
`}};ve.styles=[...xe.styles,...Gf],p([f({type:String})],ve.prototype,"placeholder",2),p([f({type:Boolean})],ve.prototype,"readonly",2),p([f({type:String,reflect:!0})],ve.prototype,"placement",2),p([f({type:Boolean,attribute:"soft-disabled",reflect:!0})],ve.prototype,"softDisabled",2),p([f({type:String,reflect:!0,attribute:"boundary"})],ve.prototype,"boundary",2),p([f({type:String,reflect:!0,attribute:"strategy"})],ve.prototype,"strategy",2),p([f({type:Number,reflect:!0,attribute:"popover-z-index"})],ve.prototype,"popoverZIndex",2),p([f({type:String,reflect:!0,attribute:"backdrop-append-to"})],ve.prototype,"backdropAppendTo",2),p([Lt({selector:"mdc-selectlistbox"})],ve.prototype,"slottedListboxes",2),p([Gr(`[id="${Pa}"]`)],ve.prototype,"visualCombobox",2),p([xt()],ve.prototype,"selectedOption",2),p([xt()],ve.prototype,"displayPopover",2);var Fd=ve;Fd.register(Hf);var lT=Fd;var $d=class extends j{constructor(){super(...arguments);this.role=tt.LISTBOX}createRenderRoot(){return this}},zd=$d;var Yf=Y.constructTagName("selectlistbox");zd.register(Yf);var cT=zd;bo.register(Li);var dT=bo;var Wf=Y.constructTagName("skeleton"),jf={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},qf={VARIANT:jf.RECTANGULAR};var hT=G`
|
4787
4787
|
:host {
|
4788
4788
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
4789
4789
|
--mdc-skeleton-height: 100%;
|
@@ -4820,7 +4820,7 @@
|
|
4820
4820
|
::slotted(*) {
|
4821
4821
|
visibility: hidden;
|
4822
4822
|
}
|
4823
|
-
`,
|
4823
|
+
`,Kf=hT;var Da=class extends j{constructor(){super(...arguments);this.variant=qf.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var o;let t=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return C`<slot @slotchange=${this.checkSlotContent}></slot>`}};Da.styles=[...j.styles,Kf],p([f({type:String,reflect:!0})],Da.prototype,"variant",2);var Vd=Da;Vd.register(Wf);var pT=Vd;var mT=[Et,G`
|
4824
4824
|
:host {
|
4825
4825
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
4826
4826
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -4884,11 +4884,11 @@
|
|
4884
4884
|
stroke-dashoffset: -292;
|
4885
4885
|
}
|
4886
4886
|
}
|
4887
|
-
`],
|
4887
|
+
`],Xf=mT;var Zf=Y.constructTagName("spinner"),uT={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},fT={STANDALONE:"standalone",BUTTON:"button"},Al={VARIANT:fT.STANDALONE,SIZE:uT.MIDSIZE,INVERTED:!1};var Oi=class extends j{constructor(){super(...arguments);this.inverted=Al.INVERTED;this.size=Al.SIZE;this.ariaLabel=null;this.variant=Al.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?tt.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return C`
|
4888
4888
|
<svg part="container" viewBox="0 0 100 100">
|
4889
4889
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
4890
4890
|
</svg>
|
4891
|
-
`}};
|
4891
|
+
`}};Oi.styles=[...j.styles,...Xf],p([f({type:Boolean,reflect:!0})],Oi.prototype,"inverted",2),p([f({type:String,reflect:!0})],Oi.prototype,"size",2),p([f({type:String,attribute:"aria-label"})],Oi.prototype,"ariaLabel",2),p([f({type:String,reflect:!0})],Oi.prototype,"variant",2);var Bd=Oi;Bd.register(Zf);var vT=Bd;var gT={COMPLETE:"complete",INCOMPLETE:"incomplete"},Ud={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Hd={STATUS:gT.INCOMPLETE,ORIENTATION:Ud.HORIZONTAL},Qf=Y.constructTagName("stepperconnector");var Jf=Y.constructTagName("stepperitem"),Gd={INLINE:"inline",STACKED:"stacked"},ai={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Sl={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},Yd={VARIANT:Gd.INLINE,STATUS:ai.NOT_STARTED};var _l=Y.constructTagName("stepper"),Fa={ORIENTATION:Ud.HORIZONTAL,VARIANT:Gd.INLINE};var Il=class{constructor(i,t){this.orientation=i,this.variant=t}};Il.context=_l;var kl=Il;var bT=G`
|
4892
4892
|
:host {
|
4893
4893
|
gap: 0.5rem;
|
4894
4894
|
}
|
@@ -4925,7 +4925,7 @@
|
|
4925
4925
|
padding-top: 0.9375rem;
|
4926
4926
|
margin: 0 -3rem;
|
4927
4927
|
}
|
4928
|
-
`,
|
4928
|
+
`,tv=[Et,bT];var ys=class extends Sr{constructor(){super({context:kl.context,initialValue:new kl(Fa.ORIENTATION,Fa.VARIANT)});this.orientation=Fa.ORIENTATION;this.variant=Fa.VARIANT}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}static get Context(){return kl.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return C` <slot></slot> `}};ys.styles=[...j.styles,...tv],p([f({type:String,reflect:!0})],ys.prototype,"orientation",2),p([f({type:String,reflect:!0})],ys.prototype,"variant",2);var _o=ys;_o.register(_l);var yT=_o;var ET=G`
|
4929
4929
|
:host {
|
4930
4930
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
4931
4931
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
@@ -4960,7 +4960,7 @@
|
|
4960
4960
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
4961
4961
|
}
|
4962
4962
|
}
|
4963
|
-
`,
|
4963
|
+
`,ev=[ET];var Es=class extends j{constructor(){super(...arguments);this.status=Hd.STATUS;this.orientation=Hd.ORIENTATION;this.stepperContext=_r.consume({host:this,context:_o.Context})}updated(t){var a;super.updated(t);let o=(a=this.stepperContext)==null?void 0:a.value;!o||!o.orientation||(this.orientation=o.orientation)}render(){return C` <div part="connector"></div> `}};Es.styles=[...j.styles,...ev],p([f({type:String,reflect:!0})],Es.prototype,"status",2),p([f({type:String,reflect:!0})],Es.prototype,"orientation",2);var Wd=Es;Wd.register(Qf);var TT=Wd;var xT=G`
|
4964
4964
|
:host {
|
4965
4965
|
gap: 0.5rem;
|
4966
4966
|
border-radius: 0.25rem;
|
@@ -5117,15 +5117,15 @@
|
|
5117
5117
|
:host([status='error-incomplete']:active) {
|
5118
5118
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
5119
5119
|
}
|
5120
|
-
`,
|
5120
|
+
`,rv=[Et,xT,...At()];var ni=class extends Ke(j){constructor(){super();this.variant=Yd.VARIANT;this.status=Yd.STATUS;this.label="";this.stepperContext=_r.consume({host:this,context:_o.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var a;super.updated(t);let o=(a=this.stepperContext)==null?void 0:a.value;!o||!o.variant||(this.variant=o.variant)}connectedCallback(){super.connectedCallback(),this.role=tt.LISTITEM}handleKeyDown(t){[J.ENTER,J.SPACE].includes(t.key)&&(this.classList.add("pressed"),t.key===J.ENTER&&this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){[J.ENTER,J.SPACE].includes(t.key)&&(this.classList.remove("pressed"),t.key===J.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===ai.COMPLETED?C`<mdc-icon part="status-icon" name=${Sl.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===ai.ERROR_CURRENT||this.status===ai.CURRENT?C`<mdc-icon part="status-icon" name=${Sl.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===ai.NOT_STARTED||this.status===ai.ERROR_INCOMPLETE)?C`<mdc-text part="step-number" tagname=${gt.SPAN} type=${st.BODY_MIDSIZE_REGULAR}
|
5121
5121
|
>${this.stepNumber}</mdc-text
|
5122
5122
|
>`:W}renderHelpText(){if(!this.helpText)return W;let t=C`<mdc-text
|
5123
5123
|
part="help-text"
|
5124
5124
|
tagname=${gt.SPAN}
|
5125
5125
|
type=${st.BODY_MIDSIZE_REGULAR}
|
5126
5126
|
>${this.helpText}</mdc-text
|
5127
|
-
>`;return this.status===
|
5128
|
-
<mdc-icon part="help-icon" name=${
|
5127
|
+
>`;return this.status===ai.ERROR_INCOMPLETE||this.status===ai.ERROR_CURRENT?C`<div part="help-text-container">
|
5128
|
+
<mdc-icon part="help-icon" name=${Sl.ERROR} length-unit="rem" size="1"></mdc-icon>
|
5129
5129
|
${t}
|
5130
5130
|
</div>`:t}render(){return C` <div part="status-container">${this.renderStatusIcon()}</div>
|
5131
5131
|
<div part="label-container">
|
@@ -5133,7 +5133,7 @@
|
|
5133
5133
|
>${this.label}</mdc-text
|
5134
5134
|
>`:W}
|
5135
5135
|
${this.renderHelpText()}
|
5136
|
-
</div>`}};
|
5136
|
+
</div>`}};ni.styles=[...j.styles,...rv],p([f({type:String,reflect:!0})],ni.prototype,"variant",2),p([f({type:String,reflect:!0})],ni.prototype,"status",2),p([f({type:String,reflect:!0})],ni.prototype,"label",2),p([f({type:String,reflect:!0,attribute:"help-text"})],ni.prototype,"helpText",2),p([f({type:Number,reflect:!0,attribute:"step-number"})],ni.prototype,"stepNumber",2);var jd=ni;jd.register(Jf);var AT=jd;var iv=Y.constructTagName("tab"),qd={GLASS:"glass",LINE:"line",PILL:"pill"},Cl={VARIANT:qd.PILL,ACTIVE:!1};var ST=[Et,G`
|
5137
5137
|
:host {
|
5138
5138
|
--mdc-tab-content-gap: 0.5rem;
|
5139
5139
|
--mdc-tab-height: 2rem;
|
@@ -5375,7 +5375,7 @@
|
|
5375
5375
|
background-color: var(--mdc-tab-pill-active-background-color-disabled);
|
5376
5376
|
color: var(--mdc-tab-pill-active-color-disabled);
|
5377
5377
|
}
|
5378
|
-
`,...At()],
|
5378
|
+
`,...At()],ov=ST;var Pi=class extends te(me){constructor(){super(...arguments);this.active=Cl.ACTIVE;this.variant=Cl.VARIANT;this.handleTabActiveChange=t=>{let o=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(o)}}connectedCallback(){super.connectedCallback(),this.role=tt.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(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${Ki(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(qd).includes(t)?t:Cl.VARIANT)}setActive(t,o){super.setActive(t,o),this.modifyIconName(o)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return C`
|
5379
5379
|
<div part="container">
|
5380
5380
|
${this.iconName?C` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:W}
|
5381
5381
|
${this.text?C` <mdc-text
|
@@ -5389,7 +5389,7 @@
|
|
5389
5389
|
<slot name="chip"></slot>
|
5390
5390
|
</div>
|
5391
5391
|
<div part="indicator"></div>
|
5392
|
-
`}};
|
5392
|
+
`}};Pi.styles=[...me.styles,...ov],p([f({type:Boolean,reflect:!0})],Pi.prototype,"active",2),p([f({type:String,reflect:!0})],Pi.prototype,"text",2),p([f({type:String,reflect:!0})],Pi.prototype,"variant",2),p([f({type:String,reflect:!0,attribute:"tab-id"})],Pi.prototype,"tabId",2);var or=Pi;or.register(iv);var _T=or;var IT=[An,G`
|
5393
5393
|
:host {
|
5394
5394
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
5395
5395
|
--mdc-tablist-gap: 0.5rem;
|
@@ -5419,16 +5419,16 @@
|
|
5419
5419
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
5420
5420
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
5421
5421
|
}
|
5422
|
-
`],
|
5422
|
+
`],sv=[...IT];var av=Y.constructTagName("tablist"),$a={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Ts={FORWARD:"forward",BACKWARD:"backward"};var wl=l=>l[0],Kd=l=>l[l.length-1],nv=(l,i)=>{let t=l.findIndex(o=>i===o)-1;return l[(t+l.length)%l.length]},lv=(l,i)=>{let t=l.findIndex(o=>i===o)+1;return l[t%l.length]},cv=(l,i)=>l.find(t=>t.tabId===i),Xd=l=>l.find(i=>i.active);var br=class extends j{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("activechange",this.handleNestedTabActiveChange)}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}async firstUpdated(){var a,h,m;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.tabs.map(T=>T.tabId);new Set(t).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(a=wl(this.tabs))==null?void 0:a.tabId),(h=this.tabsContainer)==null||h.addEventListener("focusin",this.handleFocus.bind(this)),(m=this.tabsContainer)==null||m.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,o;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus),(o=this.tabsContainer)==null||o.removeEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let o=cv(this.tabs,this.activeTabId);if(!(o instanceof or))return;this.setActiveTab(o),t.get("activeTabId")?(this.fireTabChangeEvent(o),await this.focusTab(o)):this.resetTabIndexAndSetNewTabIndex(o)}}fireTabChangeEvent(t){let o=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(o)}async handleFocus(t){if(t.relatedTarget instanceof or||!(t.target instanceof or))return;let o=Xd(this.tabs||[]);o instanceof or&&await this.focusTab(o)}handleMousedown(t){t.target instanceof or&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let o=t.target;o instanceof or&&(this.setActiveTab(o),await this.focusTab(o),this.activeTabId=o.tabId)}resetTabIndexAndSetNewTabIndex(t){var o;(o=this.tabs)==null||o.forEach(a=>{a.setAttribute("tabindex",a===t?"0":"-1")})}setActiveTab(t){var o;(o=this.tabs)==null||o.forEach(a=>{a===t?a.setAttribute("active",""):a.removeAttribute("active")})}async focusTab(t){t instanceof or&&(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility())}async handleKeydown(t){let o=t.target;if(!(o instanceof or)||!this.tabs)return;let a=nv(this.tabs,o),h=lv(this.tabs,o),m=wl(this.tabs),T=Kd(this.tabs);switch(t.code){case $a.LEFT:t.preventDefault(),await this.focusTab(this.isRtl()?h:a);break;case $a.RIGHT:t.preventDefault(),await this.focusTab(this.isRtl()?a:h);break;case $a.HOME:await this.focusTab(m);break;case $a.END:await this.focusTab(T);break;default:}}shouldShowArrowButton(t){return t===Ts.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,o;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Xd(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((o=this.notFocusedArrowButton)==null||o.focus())}async handleArrowButtonVisibility(){var K,nt,Q;if(!this.tabs||!this.tabsContainer)return;let t=!1;((K=this.shadowRoot)==null?void 0:K.activeElement)instanceof Xi&&(t=!0);let o=wl(this.tabs),a=Kd(this.tabs),h=o.getBoundingClientRect().left,m=(nt=this.tabsContainer)==null?void 0:nt.getBoundingClientRect().left,T=a.getBoundingClientRect().right,N=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().right,$=o.getBoundingClientRect().right,q=a.getBoundingClientRect().left;if(!this.isRtl()){h<=m?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,T>N?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}$>N?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,q<m?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()}async scrollTabs(t){var h;let o=this.isRtl()?-1:1,a=this.isRtl()?1:-1;(h=this.tabsContainer)==null||h.scrollBy({left:this.tabsContainer.clientWidth*(t===Ts.FORWARD?o:a),behavior:"instant"}),await this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",o=this.isRtl()?"right":"left",a=h=>C` ${this.shouldShowArrowButton(h)?C`<mdc-button
|
5423
5423
|
variant="tertiary"
|
5424
|
-
prefix-icon="arrow-${h===
|
5425
|
-
aria-label="Scroll tabs ${h===
|
5424
|
+
prefix-icon="arrow-${h===Ts.FORWARD?t:o}-regular"
|
5425
|
+
aria-label="Scroll tabs ${h===Ts.FORWARD?t:o}"
|
5426
5426
|
@click="${()=>this.scrollTabs(h)}"
|
5427
5427
|
></mdc-button>`:W}`;return C` ${a("backward")}
|
5428
5428
|
<div class="container" role="${tt.TABLIST}" tabindex="-1" aria-label="${ot(this.dataAriaLabel)}">
|
5429
5429
|
<slot></slot>
|
5430
5430
|
</div>
|
5431
|
-
${a(
|
5431
|
+
${a(Ts.FORWARD)}`}};br.styles=[...j.styles,...sv],p([f({type:String,attribute:"active-tab-id",reflect:!0})],br.prototype,"activeTabId",2),p([f({type:String,attribute:"data-aria-label"})],br.prototype,"dataAriaLabel",2),p([Gr(".container")],br.prototype,"tabsContainer",2),p([Gr("mdc-button:not(:focus-visible)")],br.prototype,"notFocusedArrowButton",2),p([Lt({selector:"mdc-tab"})],br.prototype,"tabs",2),p([xt()],br.prototype,"showForwardArrowButton",2),p([xt()],br.prototype,"showBackwardArrowButton",2);var Zd=br;Zd.register(av);var kT=Zd;var dv=Y.constructTagName("textarea"),Qd={HARD:"hard",SOFT:"soft"},hv={OFF:"off",ON:"on"},Nl={CHARACTER_COUNTER_TYPE:st.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Qd.SOFT};var CT=[G`
|
5432
5432
|
:host {
|
5433
5433
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
5434
5434
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -5547,8 +5547,8 @@
|
|
5547
5547
|
opacity: 0;
|
5548
5548
|
pointer-events: none;
|
5549
5549
|
}
|
5550
|
-
`,...At(!0)],
|
5551
|
-
<mdc-text part="character-counter" tagname="span" type=${
|
5550
|
+
`,...At(!0)],pv=CT;var le=class extends De(ie(er)){constructor(){super(...arguments);this.readonly=!1;this.rows=Nl.ROWS;this.cols=Nl.COLS;this.wrap=Qd.SOFT;this.autocapitalize=hl.OFF;this.autocomplete=hv.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(o=>{this.onerror&&this.onerror(o)})}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Wt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(t,o,a){super.attributeChangedCallback(t,o,a),["maxlength","minlength","required"].includes(t)&&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(t){this.updateValue();let o=t.constructor;this.dispatchEvent(new o(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?C`
|
5551
|
+
<mdc-text part="character-counter" tagname="span" type=${Nl.CHARACTER_COUNTER_TYPE}>
|
5552
5552
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
5553
5553
|
</mdc-text>
|
5554
5554
|
`:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:C` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}render(){var t;return C`
|
@@ -5575,12 +5575,12 @@
|
|
5575
5575
|
dirname=${ot(this.dirname)}
|
5576
5576
|
@input=${this.updateValue}
|
5577
5577
|
@change=${this.onChange}
|
5578
|
-
aria-describedby="${ot(this.helpText?
|
5578
|
+
aria-describedby="${ot(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
5579
5579
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
5580
5580
|
></textarea>
|
5581
5581
|
</div>
|
5582
5582
|
${this.renderTextareaFooter()}
|
5583
|
-
`}};
|
5583
|
+
`}};le.styles=[...er.styles,...pv],p([f({type:String})],le.prototype,"placeholder",2),p([f({type:Boolean})],le.prototype,"readonly",2),p([f({type:Number})],le.prototype,"rows",2),p([f({type:Number})],le.prototype,"cols",2),p([f({type:String})],le.prototype,"wrap",2),p([f({type:String})],le.prototype,"autocapitalize",2),p([f({type:String})],le.prototype,"autocomplete",2),p([f({type:Boolean})],le.prototype,"autofocus",2),p([f({type:String})],le.prototype,"dirname",2),p([f({type:Number})],le.prototype,"maxlength",2),p([f({type:Number})],le.prototype,"minlength",2),p([f({type:Number,attribute:"max-character-limit"})],le.prototype,"maxCharacterLimit",2),p([Gr("textarea")],le.prototype,"inputElement",2);var Jd=le;Jd.register(dv);var wT=Jd;var NT=[G`
|
5584
5584
|
:host {
|
5585
5585
|
display: block;
|
5586
5586
|
position: relative;
|
@@ -5594,10 +5594,10 @@
|
|
5594
5594
|
.typewriter-hidden {
|
5595
5595
|
display: none;
|
5596
5596
|
}
|
5597
|
-
`],
|
5598
|
-
<div part="${
|
5597
|
+
`],mv=NT;var uv=Y.constructTagName("typewriter"),Io={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},li={TYPE:ue.TYPE,TEXT_ELEMENT_TAGNAME:ue.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var yr=class extends j{constructor(){super(...arguments);this.type=li.TYPE;this.tagname=li.TEXT_ELEMENT_TAGNAME;this.speed=li.SPEED;this.maxQueueSize=Number.MAX_SAFE_INTEGER;this.displayedText="";this.originalText="";this.currentIndex=0;this.typingTimeout=null;this.pendingTimeouts=new Set;this.textChunkQueue=[];this.previousTextContent="";this.typingComplete=!0}connectedCallback(){super.connectedCallback(),this.createTimeout(()=>{this.captureAndProcessContent()},0)}disconnectedCallback(){this.clearTypingAnimation(),this.clearAllTimeouts(),super.disconnectedCallback()}createTimeout(t,o){let a=window.setTimeout(()=>{this.pendingTimeouts.delete(a),t()},o);return this.pendingTimeouts.add(a),a}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,o,a){t&&(this.maxQueueSize<Number.MAX_SAFE_INTEGER&&this.textChunkQueue.length>=this.maxQueueSize&&this.textChunkQueue.splice(0,this.textChunkQueue.length-this.maxQueueSize+1),this.textChunkQueue.push({text:t,speed:o,instant:a}),this.processChunkQueue())}addInstantTextChunk(t){this.addTextChunk(t,void 0,!0)}processChunkQueue(){this.textChunkQueue.length>0&&this.processNextChunk()}processNextChunk(){if(this.textChunkQueue.length===0)return;let t=this.textChunkQueue.shift(),o=this.speed;t.speed!==void 0&&(this.speed=t.speed),this.originalText+=t.text,this.typingComplete=!1,t.instant?(this.displayedText=this.originalText,this.currentIndex=this.originalText.length,this.typingComplete=!0,this.requestUpdate(),t.speed!==void 0&&(this.speed=o),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(li.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=o),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(li.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return Io.SLOW;case"fast":return Io.FAST;case"very-slow":return Io.VERY_SLOW;case"very-fast":return Io.VERY_FAST;case"normal":return Io.NORMAL;default:{let o=parseInt(t,10);return Number.isNaN(o)?Io.NORMAL:Math.max(10,o)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector("slot");if(!t)return;let o=t.assignedNodes().filter(h=>h.nodeType===Node.TEXT_NODE||h.nodeType===Node.ELEMENT_NODE).map(h=>h.textContent||"").join("");o!==this.previousTextContent&&(this.displayedText===""||!o.includes(this.displayedText)?(this.originalText=o,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=o,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=o,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let o=()=>{if(this.currentIndex<this.originalText.length){let a=this.originalText[this.currentIndex],h=this.displayedText+a;h!==this.displayedText&&(this.displayedText=h,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(o,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(li.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(o,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return C`
|
5598
|
+
<div part="${li.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
|
5599
5599
|
<mdc-text
|
5600
|
-
part="${
|
5600
|
+
part="${li.CSS_PART_TEXT}"
|
5601
5601
|
type="${this.type}"
|
5602
5602
|
tagname="${ot(this.tagname)}"
|
5603
5603
|
aria-label="${this.originalText}"
|
@@ -5605,7 +5605,7 @@
|
|
5605
5605
|
>
|
5606
5606
|
<slot @slotchange=${this.handleSlotChange} class="typewriter-hidden"></slot>
|
5607
5607
|
</div>
|
5608
|
-
`}};
|
5608
|
+
`}};yr.styles=[...j.styles,...mv],p([f({attribute:"type",reflect:!0,type:String})],yr.prototype,"type",2),p([f({attribute:"tagname",reflect:!0,type:String})],yr.prototype,"tagname",2),p([f({attribute:"speed",reflect:!0})],yr.prototype,"speed",2),p([f({attribute:"max-queue-size",type:Number,reflect:!0})],yr.prototype,"maxQueueSize",2),p([xt()],yr.prototype,"displayedText",2),p([xt()],yr.prototype,"originalText",2),p([xt()],yr.prototype,"typingComplete",2);var th=yr;th.register(uv);var LT=th;var Ll=Y.constructTagName("themeprovider"),eh={THEMECLASS:"mds-theme-stable-darkWebex"};var Rl=class{constructor(i){this.themeclass=i}};Rl.context=Ll;var Ml=Rl;var RT=G`
|
5609
5609
|
:host {
|
5610
5610
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
5611
5611
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -5632,7 +5632,7 @@
|
|
5632
5632
|
* {
|
5633
5633
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
5634
5634
|
}
|
5635
|
-
`,
|
5635
|
+
`,fv=[RT];var xs=class extends Sr{constructor(){super({context:Ml.context,initialValue:new Ml(eh.THEMECLASS)});this.themeclass=eh.THEMECLASS}static get Context(){return Ml.context}updated(t){super.updated(t),t.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(" "))}};xs.styles=[...Sr.styles,...fv],p([xt()],xs.prototype,"currentThemeClass",2),p([f({type:String})],xs.prototype,"themeclass",2);var rh=xs;rh.register(Ll);var MT=rh;var vv=Y.constructTagName("toast"),za={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ol={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Fe={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:qe[20],BUTTON:Yr,PRIMARY_BUTTON:Pt.PRIMARY,SECONDARY_BUTTON:Pt.SECONDARY,TERTIARY_BUTTON:Pt.TERTIARY,VARIANT:za.CUSTOM};var gv=l=>{switch(l){case za.SUCCESS:return Ol.SUCCESS_ICON_NAME;case za.WARNING:return Ol.WARNING_ICON_NAME;case za.ERROR:return Ol.ERROR_ICON_NAME;default:return null}};var OT=G`
|
5636
5636
|
:host {
|
5637
5637
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
5638
5638
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
@@ -5717,17 +5717,17 @@
|
|
5717
5717
|
mdc-text::part(text) {
|
5718
5718
|
margin: 0;
|
5719
5719
|
}
|
5720
|
-
`,
|
5720
|
+
`,bv=[OT];var _e=class extends Qo(j){constructor(){super(...arguments);this.variant=Fe.VARIANT;this.headerTagName=Fe.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,o;this.hasDetailedSlot=(o=(t=this.detailedElements)==null?void 0:t.some(a=>{var h;return(h=a.textContent)==null?void 0:h.trim()}))!=null?o:!1}updateFooterButtonsPresence(){var t,o,a,h;this.hasFooterButtons=((o=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?o:0)>0||((h=(a=this.footerButtonSecondary)==null?void 0:a.length)!=null?h:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?C`
|
5721
5721
|
<mdc-icon
|
5722
5722
|
name="${t}"
|
5723
|
-
size="${
|
5723
|
+
size="${Fe.PREFIX_ICON_SIZE}"
|
5724
5724
|
part="toast-prefix-icon"
|
5725
5725
|
></mdc-icon>
|
5726
5726
|
`:W}shouldRenderToggleButton(){return this.hasDetailedSlot&&this.showMoreText&&this.showLessText}renderToggleDetailButton(){return this.shouldRenderToggleButton()?C`
|
5727
5727
|
<mdc-linkbutton
|
5728
5728
|
part="footer-button-toggle"
|
5729
5729
|
@click="${this.toggleDetailVisibility}"
|
5730
|
-
icon-name="${this.isDetailVisible?
|
5730
|
+
icon-name="${this.isDetailVisible?Fe.ARROW_UP_BOLD:Fe.ARROW_DOWN_BOLD}"
|
5731
5731
|
>
|
5732
5732
|
${this.isDetailVisible?this.showLessText:this.showMoreText}
|
5733
5733
|
</mdc-linkbutton>
|
@@ -5744,16 +5744,16 @@
|
|
5744
5744
|
${this.renderToggleDetailButton()}
|
5745
5745
|
<slot
|
5746
5746
|
name="footer-button-secondary"
|
5747
|
-
@slotchange=${()=>this.handleFooterSlot(
|
5747
|
+
@slotchange=${()=>this.handleFooterSlot(Fe.BUTTON,Fe.SECONDARY_BUTTON)}
|
5748
5748
|
></slot>
|
5749
5749
|
<slot
|
5750
5750
|
name="footer-button-primary"
|
5751
|
-
@slotchange=${()=>this.handleFooterSlot(
|
5751
|
+
@slotchange=${()=>this.handleFooterSlot(Fe.BUTTON,Fe.PRIMARY_BUTTON)}
|
5752
5752
|
></slot>
|
5753
5753
|
</div>
|
5754
5754
|
</slot>`}render(){var t;return C`
|
5755
5755
|
<div part="content-container">
|
5756
|
-
${this.variant===
|
5756
|
+
${this.variant===Fe.VARIANT?C`<slot name="content-prefix"></slot>`:C`${this.renderIcon((t=gv(this.variant))!=null?t:"")}`}
|
5757
5757
|
<div part="toast-content">
|
5758
5758
|
${this.renderHeader()}
|
5759
5759
|
<slot name="toast-body-normal"></slot>
|
@@ -5763,15 +5763,15 @@
|
|
5763
5763
|
</div>
|
5764
5764
|
<mdc-button
|
5765
5765
|
part="toast-close-btn"
|
5766
|
-
prefix-icon="${
|
5767
|
-
variant="${
|
5768
|
-
size="${
|
5766
|
+
prefix-icon="${Fe.CANCEL_ICON}"
|
5767
|
+
variant="${Fe.TERTIARY_BUTTON}"
|
5768
|
+
size="${Fe.CLOSE_ICON_SIZE}"
|
5769
5769
|
aria-label="${ot(this.closeButtonAriaLabel)}"
|
5770
5770
|
@click="${this.closeToast}"
|
5771
5771
|
></mdc-button>
|
5772
5772
|
</div>
|
5773
5773
|
${this.renderFooter()}
|
5774
|
-
`}};
|
5774
|
+
`}};_e.styles=[...j.styles,...bv],p([f({type:String,reflect:!0})],_e.prototype,"variant",2),p([f({type:String,attribute:"close-button-aria-label"})],_e.prototype,"closeButtonAriaLabel",2),p([f({type:String,reflect:!0,attribute:"header-text"})],_e.prototype,"headerText",2),p([f({type:String,reflect:!0,attribute:"header-tag-name"})],_e.prototype,"headerTagName",2),p([f({type:String,reflect:!0,attribute:"aria-label"})],_e.prototype,"ariaLabel",2),p([f({type:String,reflect:!0,attribute:"show-more-text"})],_e.prototype,"showMoreText",2),p([f({type:String,reflect:!0,attribute:"show-less-text"})],_e.prototype,"showLessText",2),p([xt()],_e.prototype,"isDetailVisible",2),p([xt()],_e.prototype,"hasDetailedSlot",2),p([Lt({slot:"toast-body-detailed",flatten:!0})],_e.prototype,"detailedElements",2),p([xt()],_e.prototype,"hasFooterButtons",2);var ih=_e;ih.register(vv);var PT=ih;var DT=[Et,G`
|
5775
5775
|
:host {
|
5776
5776
|
--mdc-toggle-width: 3rem;
|
5777
5777
|
--mdc-toggle-height: 1.5rem;
|
@@ -5857,7 +5857,7 @@
|
|
5857
5857
|
:host([disabled]) .mdc-help-text {
|
5858
5858
|
color: var(--mdc-toggle-label-color-disabled);
|
5859
5859
|
}
|
5860
|
-
`,...At(!0)],
|
5860
|
+
`,...At(!0)],yv=DT;var ko=class extends De(ie(er)){constructor(){super(...arguments);this.checked=!1;this.size=gd.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(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 t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(t){var o;t.key===J.ENTER&&((o=this.form)==null||o.requestSubmit())}handleChange(t){this.toggleState();let o=t.constructor;this.dispatchEvent(new o(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Ca).includes(t)?t:gd.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return C`
|
5861
5861
|
<mdc-statictoggle
|
5862
5862
|
?checked="${this.checked}"
|
5863
5863
|
?disabled="${this.disabled}"
|
@@ -5877,7 +5877,7 @@
|
|
5877
5877
|
.checked="${this.checked}"
|
5878
5878
|
aria-checked="${this.checked}"
|
5879
5879
|
.disabled="${this.disabled}"
|
5880
|
-
aria-describedby="${ot(this.helpText?
|
5880
|
+
aria-describedby="${ot(this.helpText?Dt.HELPER_TEXT_ID:"")}"
|
5881
5881
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
5882
5882
|
tabindex="${this.disabled?-1:0}"
|
5883
5883
|
@change="${this.handleChange}"
|
@@ -5885,10 +5885,10 @@
|
|
5885
5885
|
/>
|
5886
5886
|
</mdc-statictoggle>
|
5887
5887
|
${this.renderLabel()} ${this.renderHelperText()}
|
5888
|
-
`}};
|
5888
|
+
`}};ko.styles=[...er.styles,...yv],p([f({type:Boolean,reflect:!0})],ko.prototype,"checked",2),p([f({type:String,reflect:!0})],ko.prototype,"size",2),p([f({type:Boolean,reflect:!0})],ko.prototype,"autofocus",2);var oh=ko;oh.register(uf);var FT=oh;function Co(l,i,t){var h;let o=(h=t.initialDeps)!=null?h:[],a;return()=>{var m,T,N,$;let q;t.key&&((m=t.debug)!=null&&m.call(t))&&(q=Date.now());let K=l();if(!(K.length!==o.length||K.some((rt,dt)=>o[dt]!==rt)))return a;o=K;let Q;if(t.key&&((T=t.debug)!=null&&T.call(t))&&(Q=Date.now()),a=i(...K),t.key&&((N=t.debug)!=null&&N.call(t))){let rt=Math.round((Date.now()-q)*100)/100,dt=Math.round((Date.now()-Q)*100)/100,ut=dt/16,Tt=(St,Ct)=>{for(St=String(St);St.length<Ct;)St=" "+St;return St};console.info(`%c\u23F1 ${Tt(dt,5)} /${Tt(rt,5)} ms`,`
|
5889
5889
|
font-size: .6rem;
|
5890
5890
|
font-weight: bold;
|
5891
|
-
color: hsl(${Math.max(0,Math.min(120-120*ut,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,a),a}}function Ol(l,i){if(l===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return l}var bv=(l,i)=>Math.abs(l-i)<1,yv=(l,i,t)=>{let o;return function(...a){l.clearTimeout(o),o=l.setTimeout(()=>i.apply(this,a),t)}};var OT=l=>l,PT=l=>{let i=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),o=[];for(let a=i;a<=t;a++)o.push(a);return o},Tv=(l,i)=>{let t=l.scrollElement;if(!t)return;let o=l.targetWindow;if(!o)return;let a=m=>{let{width:T,height:N}=m;i({width:Math.round(T),height:Math.round(N)})};if(a(t.getBoundingClientRect()),!o.ResizeObserver)return()=>{};let h=new o.ResizeObserver(m=>{let T=m[0];if(T!=null&&T.borderBoxSize){let N=T.borderBoxSize[0];if(N){a({width:N.inlineSize,height:N.blockSize});return}}a(t.getBoundingClientRect())});return h.observe(t,{box:"border-box"}),()=>{h.unobserve(t)}},Ev={passive:!0};var DT=typeof window>"u"?!0:"onscrollend"in window,xv=(l,i)=>{let t=l.scrollElement;if(!t)return;let o=l.targetWindow;if(!o)return;let a=0,h=l.options.useScrollendEvent&&DT?()=>{}:yv(o,()=>{i(a,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:q,isRtl:K}=l.options;a=q?t.scrollLeft*(K&&-1||1):t.scrollTop,h(),i(a,$)},T=m(!0),N=m(!1);return N(),t.addEventListener("scroll",T,Ev),t.addEventListener("scrollend",N,Ev),()=>{t.removeEventListener("scroll",T),t.removeEventListener("scrollend",N)}};var FT=(l,i,t)=>{if(i!=null&&i.borderBoxSize){let o=i.borderBoxSize[0];if(o)return Math.round(o[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var Av=(l,{adjustments:i=0,behavior:t},o)=>{var a,h;let m=l+i;(h=(a=o.scrollElement)==null?void 0:a.scrollTo)==null||h.call(a,{[o.options.horizontal?"left":"top"]:m,behavior:t})},Pl=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 t=null,o=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(a=>{a.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var a;(a=o())==null||a.disconnect(),t=null},observe:a=>{var h;return(h=o())==null?void 0:h.observe(a,{box:"border-box"})},unobserve:a=>{var h;return(h=o())==null?void 0:h.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([o,a])=>{typeof a>"u"&&delete t[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:OT,rangeExtractor:PT,onChange:()=>{},measureElement:FT,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var o,a;(a=(o=this.options).onChange)==null||a.call(o,this,t)},this.maybeNotify=ko(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{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(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var a;var t;let o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(a=(t=this.scrollElement)==null?void 0:t.window)!=null?a:null,this.elementsCache.forEach(h=>{this.observer.observe(h)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,h=>{this.scrollRect=h,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(h,m)=>{this.scrollAdjustments=0,this.scrollDirection=m?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=m,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,o)=>{let a=new Map,h=new Map;for(let m=o-1;m>=0;m--){let T=t[m];if(a.has(T.lane))continue;let N=h.get(T.lane);if(N==null||T.end>N.end?h.set(T.lane,T):T.end<N.end&&a.set(T.lane,!0),a.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((m,T)=>m.end===T.end?m.index-T.index:m.end-T.end)[0]:void 0},this.getMeasurementOptions=ko(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,o,a,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:o,scrollMargin:a,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=ko(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:o,scrollMargin:a,getItemKey:h,enabled:m},T)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(q=>{this.itemSizeCache.set(q.key,q.size)}));let N=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,N);for(let q=N;q<t;q++){let K=h(q),nt=this.options.lanes===1?$[q-1]:this.getFurthestMeasurement($,q),Q=nt?nt.end+this.options.gap:o+a,rt=T.get(K),dt=typeof rt=="number"?rt:this.options.estimateSize(q),ut=Q+dt,Tt=nt?nt.lane:q%this.options.lanes;$[q]={index:q,start:Q,size:dt,end:ut,key:K,lane:Tt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ko(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,o,a)=>this.range=t.length>0&&o>0?$T({measurements:t,outerSize:o,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=ko(()=>{let t=null,o=null,a=this.calculateRange();return a&&(t=a.startIndex,o=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,o]},(t,o,a,h,m)=>h===null||m===null?[]:t({startIndex:h,endIndex:m,overscan:o,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let o=this.options.indexAttribute,a=t.getAttribute(o);return a?parseInt(a,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(t,o)=>{let a=this.indexFromElement(t),h=this.measurementsCache[a];if(!h)return;let m=h.key,T=this.elementsCache.get(m);T!==t&&(T&&this.observer.unobserve(T),this.observer.observe(t),this.elementsCache.set(m,t)),t.isConnected&&this.resizeItem(a,this.options.measureElement(t,o,this))},this.resizeItem=(t,o)=>{var T;let a=this.measurementsCache[t];if(!a)return;let h=(T=this.itemSizeCache.get(a.key))!=null?T:a.size,m=o-h;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,m,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,o)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((o,a)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(a))});return}this._measureElement(t,void 0)},this.getVirtualItems=ko(()=>[this.getIndexes(),this.getMeasurements()],(t,o)=>{let a=[];for(let h=0,m=t.length;h<m;h++){let T=t[h],N=o[T];a.push(N)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let o=this.getMeasurements();if(o.length!==0)return Ol(o[Sv(0,o.length-1,a=>Ol(o[a]).start,t)])},this.getOffsetForAlignment=(t,o)=>{let a=this.getSize(),h=this.getScrollOffset();o==="auto"&&t>=h+a&&(o="end"),o==="end"&&(t-=a);let m=this.options.horizontal?"scrollWidth":"scrollHeight",N=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-a;return Math.max(Math.min(N,t),0)},this.getOffsetForIndex=(t,o="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let a=this.measurementsCache[t];if(!a)return;let h=this.getSize(),m=this.getScrollOffset();if(o==="auto")if(a.end>=m+h-this.options.scrollPaddingEnd)o="end";else if(a.start<=m+this.options.scrollPaddingStart)o="start";else return[m,o];let T=a.start-this.options.scrollPaddingStart+(a.size-h)/2;switch(o){case"center":return[this.getOffsetForAlignment(T,o),o];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,o),o];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,o),o]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:o="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,o),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:o="auto",behavior:a}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let h=this.getOffsetForIndex(t,o);if(!h)return;let[m,T]=h;this._scrollToOffset(m,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){let[$]=Ol(this.getOffsetForIndex(t,T));bv($,this.getScrollOffset())||this.scrollToIndex(t,{align:T,behavior:a})}else this.scrollToIndex(t,{align:T,behavior:a})}))},this.scrollBy=(t,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var h;var t;let o=this.getMeasurements(),a;return o.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(h=(t=o[o.length-1])==null?void 0:t.end)!=null?h:0:Math.max(...o.slice(-this.options.lanes).map(m=>m.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:o,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Sv=(l,i,t,o)=>{for(;l<=i;){let a=(l+i)/2|0,h=t(a);if(h<o)l=a+1;else if(h>o)i=a-1;else return a}return l>0?l-1:0};function $T({measurements:l,outerSize:i,scrollOffset:t}){let o=l.length-1,h=Sv(0,o,T=>l[T].start,t),m=h;for(;m<o&&l[m].end<t+i;)m++;return{startIndex:h,endIndex:m}}var oh=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let o={...t,onChange:(a,h)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=t.onChange)==null||m.call(t,a,h)}};this.virtualizer=new Pl(o)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Dl=class extends oh{constructor(i,t){super(i,{observeElementRect:Tv,observeElementOffset:xv,scrollToFn:Av,...t})}};var zT=[G`
|
5891
|
+
color: hsl(${Math.max(0,Math.min(120-120*ut,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,a),a}}function Pl(l,i){if(l===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return l}var Ev=(l,i)=>Math.abs(l-i)<1,Tv=(l,i,t)=>{let o;return function(...a){l.clearTimeout(o),o=l.setTimeout(()=>i.apply(this,a),t)}};var $T=l=>l,zT=l=>{let i=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),o=[];for(let a=i;a<=t;a++)o.push(a);return o},Av=(l,i)=>{let t=l.scrollElement;if(!t)return;let o=l.targetWindow;if(!o)return;let a=m=>{let{width:T,height:N}=m;i({width:Math.round(T),height:Math.round(N)})};if(a(t.getBoundingClientRect()),!o.ResizeObserver)return()=>{};let h=new o.ResizeObserver(m=>{let T=m[0];if(T!=null&&T.borderBoxSize){let N=T.borderBoxSize[0];if(N){a({width:N.inlineSize,height:N.blockSize});return}}a(t.getBoundingClientRect())});return h.observe(t,{box:"border-box"}),()=>{h.unobserve(t)}},xv={passive:!0};var VT=typeof window>"u"?!0:"onscrollend"in window,Sv=(l,i)=>{let t=l.scrollElement;if(!t)return;let o=l.targetWindow;if(!o)return;let a=0,h=l.options.useScrollendEvent&&VT?()=>{}:Tv(o,()=>{i(a,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:q,isRtl:K}=l.options;a=q?t.scrollLeft*(K&&-1||1):t.scrollTop,h(),i(a,$)},T=m(!0),N=m(!1);return N(),t.addEventListener("scroll",T,xv),t.addEventListener("scrollend",N,xv),()=>{t.removeEventListener("scroll",T),t.removeEventListener("scrollend",N)}};var BT=(l,i,t)=>{if(i!=null&&i.borderBoxSize){let o=i.borderBoxSize[0];if(o)return Math.round(o[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var _v=(l,{adjustments:i=0,behavior:t},o)=>{var a,h;let m=l+i;(h=(a=o.scrollElement)==null?void 0:a.scrollTo)==null||h.call(a,{[o.options.horizontal?"left":"top"]:m,behavior:t})},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 t=null,o=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(a=>{a.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var a;(a=o())==null||a.disconnect(),t=null},observe:a=>{var h;return(h=o())==null?void 0:h.observe(a,{box:"border-box"})},unobserve:a=>{var h;return(h=o())==null?void 0:h.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([o,a])=>{typeof a>"u"&&delete t[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:$T,rangeExtractor:zT,onChange:()=>{},measureElement:BT,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var o,a;(a=(o=this.options).onChange)==null||a.call(o,this,t)},this.maybeNotify=Co(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{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(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var a;var t;let o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(a=(t=this.scrollElement)==null?void 0:t.window)!=null?a:null,this.elementsCache.forEach(h=>{this.observer.observe(h)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,h=>{this.scrollRect=h,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(h,m)=>{this.scrollAdjustments=0,this.scrollDirection=m?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=m,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,o)=>{let a=new Map,h=new Map;for(let m=o-1;m>=0;m--){let T=t[m];if(a.has(T.lane))continue;let N=h.get(T.lane);if(N==null||T.end>N.end?h.set(T.lane,T):T.end<N.end&&a.set(T.lane,!0),a.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((m,T)=>m.end===T.end?m.index-T.index:m.end-T.end)[0]:void 0},this.getMeasurementOptions=Co(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,o,a,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:o,scrollMargin:a,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=Co(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:o,scrollMargin:a,getItemKey:h,enabled:m},T)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(q=>{this.itemSizeCache.set(q.key,q.size)}));let N=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,N);for(let q=N;q<t;q++){let K=h(q),nt=this.options.lanes===1?$[q-1]:this.getFurthestMeasurement($,q),Q=nt?nt.end+this.options.gap:o+a,rt=T.get(K),dt=typeof rt=="number"?rt:this.options.estimateSize(q),ut=Q+dt,Tt=nt?nt.lane:q%this.options.lanes;$[q]={index:q,start:Q,size:dt,end:ut,key:K,lane:Tt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Co(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,o,a)=>this.range=t.length>0&&o>0?UT({measurements:t,outerSize:o,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Co(()=>{let t=null,o=null,a=this.calculateRange();return a&&(t=a.startIndex,o=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,o]},(t,o,a,h,m)=>h===null||m===null?[]:t({startIndex:h,endIndex:m,overscan:o,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let o=this.options.indexAttribute,a=t.getAttribute(o);return a?parseInt(a,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(t,o)=>{let a=this.indexFromElement(t),h=this.measurementsCache[a];if(!h)return;let m=h.key,T=this.elementsCache.get(m);T!==t&&(T&&this.observer.unobserve(T),this.observer.observe(t),this.elementsCache.set(m,t)),t.isConnected&&this.resizeItem(a,this.options.measureElement(t,o,this))},this.resizeItem=(t,o)=>{var T;let a=this.measurementsCache[t];if(!a)return;let h=(T=this.itemSizeCache.get(a.key))!=null?T:a.size,m=o-h;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,m,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,o)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((o,a)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(a))});return}this._measureElement(t,void 0)},this.getVirtualItems=Co(()=>[this.getIndexes(),this.getMeasurements()],(t,o)=>{let a=[];for(let h=0,m=t.length;h<m;h++){let T=t[h],N=o[T];a.push(N)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let o=this.getMeasurements();if(o.length!==0)return Pl(o[Iv(0,o.length-1,a=>Pl(o[a]).start,t)])},this.getOffsetForAlignment=(t,o)=>{let a=this.getSize(),h=this.getScrollOffset();o==="auto"&&t>=h+a&&(o="end"),o==="end"&&(t-=a);let m=this.options.horizontal?"scrollWidth":"scrollHeight",N=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-a;return Math.max(Math.min(N,t),0)},this.getOffsetForIndex=(t,o="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let a=this.measurementsCache[t];if(!a)return;let h=this.getSize(),m=this.getScrollOffset();if(o==="auto")if(a.end>=m+h-this.options.scrollPaddingEnd)o="end";else if(a.start<=m+this.options.scrollPaddingStart)o="start";else return[m,o];let T=a.start-this.options.scrollPaddingStart+(a.size-h)/2;switch(o){case"center":return[this.getOffsetForAlignment(T,o),o];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,o),o];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,o),o]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:o="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,o),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:o="auto",behavior:a}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let h=this.getOffsetForIndex(t,o);if(!h)return;let[m,T]=h;this._scrollToOffset(m,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){let[$]=Pl(this.getOffsetForIndex(t,T));Ev($,this.getScrollOffset())||this.scrollToIndex(t,{align:T,behavior:a})}else this.scrollToIndex(t,{align:T,behavior:a})}))},this.scrollBy=(t,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var h;var t;let o=this.getMeasurements(),a;return o.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(h=(t=o[o.length-1])==null?void 0:t.end)!=null?h:0:Math.max(...o.slice(-this.options.lanes).map(m=>m.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:o,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Iv=(l,i,t,o)=>{for(;l<=i;){let a=(l+i)/2|0,h=t(a);if(h<o)l=a+1;else if(h>o)i=a-1;else return a}return l>0?l-1:0};function UT({measurements:l,outerSize:i,scrollOffset:t}){let o=l.length-1,h=Iv(0,o,T=>l[T].start,t),m=h;for(;m<o&&l[m].end<t+i;)m++;return{startIndex:h,endIndex:m}}var sh=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let o={...t,onChange:(a,h)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=t.onChange)==null||m.call(t,a,h)}};this.virtualizer=new Dl(o)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Fl=class extends sh{constructor(i,t){super(i,{observeElementRect:Av,observeElementOffset:Sv,scrollToFn:_v,...t})}};var HT=[G`
|
5892
5892
|
:host::part(scroll) {
|
5893
5893
|
height: 100%;
|
5894
5894
|
width: 100%;
|
@@ -5898,11 +5898,16 @@
|
|
5898
5898
|
position: relative;
|
5899
5899
|
width: 100%;
|
5900
5900
|
}
|
5901
|
-
`],
|
5901
|
+
`],kv=HT;var Cv=Y.constructTagName("virtualizedlist"),_4=Y.constructTagName("virtualizedwrapper"),wv={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var wo=class extends j{constructor(){super();this.virtualizerProps=wv.VIRTUALIZER_PROPS;this.scrollElementRef=Rn();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(t){super.update(t),t.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(t){super.firstUpdated(t),this.setVirtualizerOptions()}setVirtualizerOptions(){var t;(t=this.virtualizer)==null||t.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var t;this.virtualizerController=new Fl(this,{count:this.virtualizerProps.count,estimateSize:(t=this.virtualizerProps)==null?void 0:t.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(t){var T,N;this.virtualizer=t.getVirtualizer();let{getTotalSize:o,getVirtualItems:a,measureElement:h}=this.virtualizer,m=a();if(m!==this.virtualItems){this.virtualItems=m;let $=a(),q={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(N=(T=$[0])==null?void 0:T.start)!=null?N:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:$,measureElement:h,listStyle:q})}return C`<div part="container" style="height: ${o()}px;">
|
5902
5902
|
<slot></slot>
|
5903
|
-
</div>`}render(){return C`<div ${
|
5903
|
+
</div>`}render(){return C`<div ${Mn(this.scrollElementRef)} part="scroll" @scroll=${this.onscroll&&this.onscroll}>
|
5904
5904
|
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):C``}
|
5905
|
-
</div> `}};
|
5905
|
+
</div> `}};wo.styles=[...j.styles,...kv],p([f({type:Function,attribute:"onscroll"})],wo.prototype,"onscroll",2),p([f({type:Object,attribute:"virtualizerprops"})],wo.prototype,"virtualizerProps",2),p([f({type:Function,attribute:"setlistdata"})],wo.prototype,"setlistdata",2);var ah=wo;ah.register(Cv);var GT=ah;var YT=G`
|
5906
|
+
:host {
|
5907
|
+
display: block;
|
5908
|
+
}
|
5909
|
+
`,Nv=[YT];var Rt=class extends j{constructor(){super(...arguments);this.range=!1;this.min=0;this.max=100;this.step=1;this.valueLabel="";this.valueLabelStart="";this.valueLabelEnd="";this.ariaLabelStart="";this.ariaValuetextStart="";this.ariaLabelEnd="";this.ariaValuetextEnd="";this.dataAriaValuetext="";this.dataAriaLabel=""}render(){return C`<p>This is a dummy slider component!</p>
|
5910
|
+
<slot></slot>`}};Rt.styles=[...j.styles,...Nv],p([f({type:Boolean})],Rt.prototype,"range",2),p([f({type:Boolean})],Rt.prototype,"disabled",2),p([f({type:Boolean,attribute:"soft-disabled"})],Rt.prototype,"softDisabled",2),p([f({type:String,attribute:"leading-icon"})],Rt.prototype,"leadingIcon",2),p([f({type:String,attribute:"trailing-icon"})],Rt.prototype,"trailingIcon",2),p([f({type:Number})],Rt.prototype,"min",2),p([f({type:Number})],Rt.prototype,"max",2),p([f({type:Number})],Rt.prototype,"value",2),p([f({type:Number,attribute:"value-start"})],Rt.prototype,"valueStart",2),p([f({type:Number,attribute:"value-end"})],Rt.prototype,"valueEnd",2),p([f({type:Number})],Rt.prototype,"step",2),p([f({type:String})],Rt.prototype,"label",2),p([f({type:String,attribute:"label-start"})],Rt.prototype,"labelStart",2),p([f({type:String,attribute:"label-end"})],Rt.prototype,"labelEnd",2),p([f({type:String,attribute:"value-label"})],Rt.prototype,"valueLabel",2),p([f({type:String,attribute:"value-label-start"})],Rt.prototype,"valueLabelStart",2),p([f({type:String,attribute:"value-label-end"})],Rt.prototype,"valueLabelEnd",2),p([f({type:String,attribute:"aria-label-start"})],Rt.prototype,"ariaLabelStart",2),p([f({type:String,attribute:"aria-valuetext-start"})],Rt.prototype,"ariaValuetextStart",2),p([f({type:String,attribute:"aria-label-end"})],Rt.prototype,"ariaLabelEnd",2),p([f({type:String,attribute:"aria-valuetext-end"})],Rt.prototype,"ariaValuetextEnd",2),p([f({type:String})],Rt.prototype,"name",2),p([f({type:String,attribute:"name-start"})],Rt.prototype,"nameStart",2),p([f({type:String,attribute:"name-end"})],Rt.prototype,"nameEnd",2),p([f({type:String,attribute:"data-aria-valuetext"})],Rt.prototype,"dataAriaValuetext",2),p([f({type:String,attribute:"data-aria-label"})],Rt.prototype,"dataAriaLabel",2);var nh=Rt;var Lv=Y.constructTagName("slider");nh.register(Lv);var WT=nh;})();
|
5906
5911
|
/*! Bundled license information:
|
5907
5912
|
|
5908
5913
|
lottie-web/build/player/lottie_light.js:
|