@momentum-design/components 0.102.1 → 0.102.3
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 +97 -97
- package/dist/browser/index.js.map +3 -3
- package/dist/custom-elements.json +202 -202
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/dist/utils/mixins/FocusTrapMixin.js +7 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";(()=>{var Cg=Object.create;var Kl=Object.defineProperty;var Jh=Object.getOwnPropertyDescriptor;var wg=Object.getOwnPropertyNames;var Ng=Object.getPrototypeOf,Lg=Object.prototype.hasOwnProperty;var Rg=(l,o)=>()=>(o||l((o={exports:{}}).exports,o),o.exports);var Mg=(l,o,t,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of wg(o))!Lg.call(l,a)&&a!==t&&Kl(l,a,{get:()=>o[a],enumerable:!(i=Jh(o,a))||i.enumerable});return l};var Og=(l,o,t)=>(t=l!=null?Cg(Ng(l)):{},Mg(o||!l||!l.__esModule?Kl(t,"default",{value:l,enumerable:!0}):t,l));var p=(l,o,t,i)=>{for(var a=i>1?void 0:i?Jh(o,t):o,h=l.length-1,m;h>=0;h--)(m=l[h])&&(a=(i?m(o,t,a):m(a))||a);return i&&a&&Kl(o,t,a),a};var Xp=Rg((ra,Mn)=>{typeof navigator<"u"&&function(l,o){typeof ra=="object"&&typeof Mn<"u"?Mn.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=o())}(ra,function(){"use strict";var l="http://www.w3.org/2000/svg",o="",t=!1,i=-999999,a=function(r){t=!!r},h=function(){return t},m=function(r){o=r},T=function(){return o};function R(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 ut(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ut=function(s){return typeof s}:ut=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},ut(e)}var At=!0,Et=null,St=null,kt="",Gt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Dt=!1,zt=Math.pow,jt=Math.sqrt,ie=Math.floor,or=Math.max,Se=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=ut(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 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 He(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 _e=function(){var e=0;return function(){return e+=1,kt+"__lottie_element_"+e}}();function Dl(e,r,s){var n,d,c,f,x,v,I,N;switch(f=Math.floor(e*6),x=e*6-f,v=s*(1-r),I=s*(1-x*r),N=s*(1-(1-x)*r),f%6){case 0:n=s,d=N,c=v;break;case 1:n=I,d=s,c=v;break;case 2:n=v,d=s,c=N;break;case 3:n=v,d=I,c=s;break;case 4:n=N,d=v,c=s;break;case 5:n=s,d=v,c=I;break;default:break}return[n,d,c]}function Fl(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=Fl(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),Dl(s[0],s[1],s[2])}function dh(e,r){var s=Fl(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),Dl(s[0],s[1],s[2])}function hh(e,r){var s=Fl(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),Dl(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){At=!!r},Lv=function(){return At},Rv=function(r){Et=r},Va=function(){return Et},GT=function(r){St=r},ph=function(){return St},Ba=function(r){ar=r},As=function(){return ar},Mv=function(r){kt=r},HT=function(){return kt};function gt(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 Ss=function(){var e=1,r=[],s,n,d={onmessage:function(){},postMessage:function(L){s({data:L})}},c={postMessage:function(L){d.onmessage({data:L})}};function f(E){if(window.Worker&&window.Blob&&h()){var L=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(L);return new Worker(P)}return s=E,d}function x(){n||(n=f(function(L){function P(){function z(X,S){var O,u,b=X.length,U,F,at,pt;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(pt=vt[U].pt.k.length,at=0;at<pt;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&&bt(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)}}}(),G=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)}}}(),dt=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,pt,vt,Ct;for(U=0;U<F;U+=1){if(b=u[U],b.hasMask){var wt=b.masksProperties;for(pt=wt.length,at=0;at<pt;at+=1)if(wt[at].pt.k.i)wt[at].pt.k.c=wt[at].cl;else for(Ct=wt[at].pt.k.length,vt=0;vt<Ct;vt+=1)wt[at].pt.k[vt].s&&(wt[at].pt.k[vt].s[0].c=wt[at].cl),wt[at].pt.k[vt].e&&(wt[at].pt.k[vt].e[0].c=wt[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),G(X),Z(X),dt(X),z(X.layers,X.assets),w(X.chars,X.assets),X.__complete=!0)}function bt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=et,lt.checkColors=ft,lt.checkChars=G,lt.checkPathProperties=Z,lt.checkShapes=dt,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(_){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(G){k&&k(G)}};try{V.open(["G","E","T"].join(""),_,!0)}catch{V.open(["G","E","T"].join(""),y+"/"+_,!0)}V.send()}return{load:w}}()),L.data.type==="loadAnimation")c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})});else if(L.data.type==="complete"){var M=L.data.animation;c.dataManager.completeData(M),c.postMessage({id:L.data.id,payload:M,status:"success"})}else L.data.type==="loadData"&&c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})})}),n.onmessage=function(E){var L=E.data,P=L.id,M=r[P];r[P]=null,L.status==="success"?M.onComplete(L.payload):M.onError&&M.onError()})}function v(E,L){e+=1;var P="processId_"+e;return r[P]={onComplete:E,onError:L},P}function I(E,L,P){x();var M=v(L,P);n.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function N(E,L,P){x();var M=v(L,P);n.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,L,P){x();var M=v(L,P);n.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:N,completeAnimation:B}}(),Ov=function(){var e=function(){var w=R("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=gt("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 f(w){var _=n(w,this.assetsPath,this.path),y=R("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 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 N(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 L(){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:N,setPath:I,loadedImages:L,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}}(),_s={},Fv=function(r,s){_s[r]=s};function $v(e){return _s[e]}function zv(){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 ht=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=_e(),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 He("drawnFrame",0,0,0),this.expressionsPlugin=Va()};$([mh],ht),ht.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")),Ss.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ht.prototype.onSetupError=function(){this.trigger("data_failed")},ht.prototype.setupAnimation=function(e){Ss.completeAnimation(e,this.configAnimation)},ht.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: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")},ht.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,Ss.completeAnimation(this.animationData,this.onSegmentComplete)},ht.prototype.onSegmentComplete=function(e){this.animationData=e;var r=Va();r&&r.initExpressions(this),this.loadNextSegment()},ht.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))},ht.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ht.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ht.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ht.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)}},ht.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ht.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()}},ht.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)},ht.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ht.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")},ht.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)}},ht.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")))},ht.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())},ht.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ht.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ht.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},ht.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()}},ht.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()}},ht.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"))}},ht.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")},ht.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)},ht.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()},ht.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ht.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ht.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)},ht.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ht.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ht.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ht.prototype.setLoop=function(e){this.loop=e},ht.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},ht.prototype.getVolume=function(){return this.audioController.getVolume()},ht.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ht.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ht.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ht.prototype.getPath=function(){return this.path},ht.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},ht.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},ht.prototype.hide=function(){this.renderer.hide()},ht.prototype.show=function(){this.renderer.show()},ht.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ht.prototype.updateDocumentData=function(e,r,s){try{var n=this.renderer.getElementByPath(e);n.updateDocumentData(r,s)}catch{}},ht.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new He(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 He(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))},ht.prototype.triggerRenderFrameError=function(e){var r=new Cv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},ht.prototype.triggerConfigError=function(e){var r=new wv(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,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 ht;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 N(){d+=1,ft()}function B(){d-=1}function E(S,O){S.addEventListener("destroy",x),S.addEventListener("_active",N),S.addEventListener("_idle",B),r.push({elem:O,animation:S}),n+=1}function L(S){var O=new ht;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 G(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 pt=R("div");pt.style.width="100%",pt.style.height="100%",pt.setAttribute("data-bm-type",u),at.appendChild(pt),v(pt,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 dt(){f=!0}function et(){f=!1,ft()}function bt(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=L,e.setSpeed=P,e.setDirection=M,e.play=z,e.pause=y,e.stop=k,e.togglePause=D,e.searchAnimations=G,e.resize=Z,e.goToAndStop=A,e.destroy=V,e.freeze=dt,e.unfreeze=et,e.setVolume=bt,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 G=new w([_,y,A,k]);return r[V]=G,G}var n=4,d=.001,c=1e-7,f=10,x=11,v=1/(x-1),I=typeof Float32Array=="function";function N(_,y){return 1-3*y+3*_}function B(_,y){return 3*y-6*_}function E(_){return 3*_}function L(_,y,A){return((N(y,A)*_+B(y,A))*_+E(y))*_}function P(_,y,A){return 3*N(y,A)*_*_+2*B(y,A)*_+E(y)}function M(_,y,A,k,D){var V,G,Z=0;do G=y+(A-y)/2,V=L(G,k,D)-_,V>0?A=G:y=G;while(Math.abs(V)>c&&++Z<f);return G}function z(_,y,A,k){for(var D=0;D<n;++D){var V=P(y,A,k);if(V===0)return y;var G=L(y,A,k)-_;y-=G/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:L(this._getTForX(y),k,V)},_precompute:function(){var y=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(y!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],A=this._p[2],k=0;k<x;++k)this._mSampleValues[k]=L(k*v,y,A)},_getTForX:function(y){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,G=1,Z=x-1;G!==Z&&D[G]<=y;++G)V+=v;--G;var ft=(y-D[G])/(D[G+1]-D[G]),dt=V+ft*v,et=P(dt,A,k);return et>=d?z(y,dt,A,k):et===0?dt:M(y,V,V+v,A,k)}},e}(),uh=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),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",As()),lengths:Q("float32",As())}}return Ga(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 Ga(8,e,r)}();function Vv(){var e=Math;function r(E,L,P,M,z,w){var _=E*M+L*z+P*w-z*M-w*E-P*L;return _>-.001&&_<.001}function s(E,L,P,M,z,w,_,y,A){if(P===0&&w===0&&A===0)return r(E,L,M,z,_,y);var k=e.sqrt(e.pow(M-E,2)+e.pow(z-L,2)+e.pow(w-P,2)),D=e.sqrt(e.pow(_-E,2)+e.pow(y-L,2)+e.pow(A-P,2)),V=e.sqrt(e.pow(_-M,2)+e.pow(y-z,2)+e.pow(A-w,2)),G;return k>D?k>V?G=k-D-V:G=V-D-k:V>D?G=V-D-k:G=D-k-V,G>-1e-4&&G<1e-4}var n=function(){return function(E,L,P,M){var z=As(),w,_,y,A,k,D=0,V,G=[],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)*L[_],G[_]=A,Z[_]!==null&&(V+=zt(G[_]-Z[_],2)),Z[_]=G[_];V&&(V=jt(V),D+=V),ft.percents[w]=k,ft.lengths[w]=D}return ft.addedLength=D,ft}}();function d(E){var L=vh.newElement(),P=E.c,M=E.v,z=E.o,w=E.i,_,y=E._length,A=L.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),L.totalLength=k,L}function c(E){this.segmentLength=0,this.points=new Array(E)}function f(E,L){this.partialLength=E,this.point=L}var x=function(){var E={};return function(L,P,M,z){var w=(L[0]+"_"+L[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,G=0,Z,ft,dt=null;L.length===2&&(L[0]!==P[0]||L[1]!==P[1])&&r(L[0],L[1],P[0],P[1],L[0]+M[0],L[1]+M[1])&&r(L[0],L[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(_=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)*L[A]+3*zt(1-V,2)*V*(L[A]+M[A])+3*(1-V)*zt(V,2)*(P[A]+z[A])+zt(V,3)*P[A],ft[A]=D,dt!==null&&(Z+=zt(ft[A]-dt[A],2));Z=jt(Z),G+=Z,et.points[y]=new f(Z,ft),dt=ft}et.segmentLength=G,E[w]=et}return E[w]}}();function v(E,L){var P=L.percents,M=L.lengths,z=P.length,w=ie((z-1)*E),_=E*L.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,L,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]+_*_*_*L[0])*1e3)/1e3,k=e.round((y*y*y*E[1]+(_*y*y+y*_*y+y*y*_)*P[1]+(_*_*y+y*_*_+_*y*_)*M[1]+_*_*_*L[1])*1e3)/1e3;return[A,k]}var N=Q("float32",8);function B(E,L,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,G=1-A,Z=V*V*V,ft=y*V*V*3,dt=y*y*V*3,et=y*y*y,bt=V*V*G,lt=y*V*G+V*y*G+V*V*A,X=y*y*G+V*y*A+y*V*A,S=y*y*A,O=V*G*G,u=y*G*G+V*A*G+V*G*A,b=y*A*G+V*A*A+y*G*A,U=y*A*A,F=G*G*G,at=A*G*G+G*A*G+G*G*A,pt=A*A*G+G*A*A+A*G*A,vt=A*A*A;for(k=0;k<D;k+=1)N[k*4]=e.round((Z*E[k]+ft*P[k]+dt*M[k]+et*L[k])*1e3)/1e3,N[k*4+1]=e.round((bt*E[k]+lt*P[k]+X*M[k]+S*L[k])*1e3)/1e3,N[k*4+2]=e.round((O*E[k]+u*P[k]+b*M[k]+U*L[k])*1e3)/1e3,N[k*4+3]=e.round((F*E[k]+at*P[k]+pt*M[k]+vt*L[k])*1e3)/1e3;return N}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:s}}var yr=Vv(),Oi=i,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,N;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)}N=this.keyframesMetadata[c]||{};var B,E,L,P,M,z,w=I.t-s,_=v.t-s,y;if(v.to){N.bezierData||(N.bezierData=yr.buildBezierData(v.s,I.s||v.e,v.to,v.ti));var A=N.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{N.__fnct?z=N.__fnct:(z=ks.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,N.__fnct=z),L=z((e-_)/(w-_));var D=A.segmentLength*L,V,G=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(G+=A.points[M].partialLength,D===0||L===0||M===A.points.length-1){for(E=A.points[M].point.length,B=0;B<E;B+=1)n[B]=A.points[M].point[B];break}else if(D>=G&&D<G+A.points[M+1].partialLength){for(V=(D-G)/A.points[M+1].partialLength,E=A.points[M].point.length,B=0;B<E;B+=1)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=G-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ft,dt,et,bt;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?L=1:e<_?L=0:(v.o.x.constructor===Array?(N.__fnct||(N.__fnct=[]),N.__fnct[c]?z=N.__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],dt=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=ks.getBezierEasing(Z,ft,dt,et).get,N.__fnct[c]=z)):N.__fnct?z=N.__fnct:(Z=v.o.x,ft=v.o.y,dt=v.i.x,et=v.i.y,z=ks.getBezierEasing(Z,ft,dt,et).get,v.keyframeMetadata=z),L=z((e-_)/(w-_)))),y=I.s||v.e,bt=v.h===1?v.s[c]:v.s[c]+(y[c]-v.s[c])*L,this.propType==="multidimensional"?n[c]=bt:n=bt}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],N=r[2],B=r[3],E,L,P,M,z;return L=d*v+c*I+f*N+x*B,L<0&&(L=-L,v=-v,I=-I,N=-N,B=-B),1-L>1e-6?(E=Math.acos(L),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*N,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),N=d*c*f-x*v*I,B=x*v*f+d*c*I,E=x*c*f+d*v*I,L=d*v*f-x*c*I;return[B,E,L,N]}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!==Oi&&(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 Ha(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 Gv(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=Ha,this.addEffect=Wa}function Hv(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=Ha,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:Oi,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=Oi,this.pv=Oi,this._isFirstFrame=!0,this.getValue=Ya,this.setVValue=Ha,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=Ha,this.interpolateValue=bh,this.frameId=-1;var N=r.k[0].s.length;for(this.v=Q("float32",N),this.pv=Q("float32",N),d=0;d<N;d+=1)this.v[d]=Oi,this.pv[d]=Oi;this._caching={lastFrame:Oi,lastIndex:0,value:Q("float32",N)},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 Gv(s,n,c,f);else if(typeof n.k[0]=="number")x=new Hv(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 Pi=function(){function e(){return Q("float32",2)}return Ga(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]=Pi.newElement(),this.o[s]=Pi.newElement(),this.i[s]=Pi.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]=Pi.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)Pi.release(d.v[f]),Pi.release(d.i[f]),Pi.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=Ga(4,e,r);return n.clone=s,n}();function $l(){this._length=0,this._maxLength=4,this.shapes=rt(this._maxLength)}$l.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},$l.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ce.release(this.shapes[e]);this._length=0};var ko=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 $l,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,G,Z,ft,dt,et,bt,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,dt=k.i[0].length,y.lastIndex=A,G=0;G<ft;G+=1)for(Z=0;Z<dt;Z+=1)bt=V?k.i[G][Z]:k.i[G][Z]+(D.i[G][Z]-k.i[G][Z])*et,_.i[G][Z]=bt,bt=V?k.o[G][Z]:k.o[G][Z]+(D.o[G][Z]-k.o[G][Z])*et,_.o[G][Z]=bt,bt=V?k.v[G][Z]:k.v[G][Z]+(D.v[G][Z]-k.v[G][Z])*et,_.v[G][Z]=bt}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=ko.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=ko.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 N=function(){var w=le;function _(y,A){this.v=ce.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ko.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,G=this.d!==3,Z=this.v;Z.v[0][0]=A,Z.v[0][1]=k-V,Z.v[1][0]=G?A+D:A-D,Z.v[1][1]=k,Z.v[2][0]=A,Z.v[2][1]=k+V,Z.v[3][0]=G?A-D:A+D,Z.v[3][1]=k,Z.i[0][0]=G?A-D*w:A+D*w,Z.i[0][1]=k-V,Z.i[1][0]=G?A+D:A-D,Z.i[1][1]=k-V*w,Z.i[2][0]=G?A+D*w:A-D*w,Z.i[2][1]=k+V,Z.i[3][0]=G?A-D:A+D,Z.i[3][1]=k+V*w,Z.o[0][0]=G?A+D*w:A-D*w,Z.o[0][1]=k-V,Z.o[1][0]=G?A+D:A-D,Z.o[1][1]=k+V*w,Z.o[2][0]=G?A-D*w:A+D*w,Z.o[2][1]=k+V,Z.o[3][0]=G?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=ko.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,G=this.os.v,Z=this.is.v,ft=2*Math.PI*D/(y*2),dt=2*Math.PI*V/(y*2),et,bt,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){bt=k?D:V,lt=k?G:Z,X=k?ft:dt;var u=bt*Math.cos(S),b=bt*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),G,Z=-Math.PI*.5,ft=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,G=0;G<y;G+=1){var dt=k*Math.cos(Z),et=k*Math.sin(Z),bt=dt===0&&et===0?0:et/Math.sqrt(dt*dt+et*et),lt=dt===0&&et===0?0:-dt/Math.sqrt(dt*dt+et*et);dt+=+this.p.v[0],et+=+this.p.v[1],this.v.setTripleAt(dt,et,dt-bt*V*D*ft,et-lt*V*D*ft,dt+bt*V*D*ft,et+lt*V*D*ft,G,!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=ko.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=Se(k,D,this.r.v),G=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+G,0,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-G,y+k,A+D-V,1,!0),V!==0?(this.v.setTripleAt(y+k-V,A+D,y+k-V,A+D,y+k-G,A+D,2,!0),this.v.setTripleAt(y-k+V,A+D,y-k+G,A+D,y-k+V,A+D,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-V,y-k,A+D-G,4,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+G,y-k,A-D+V,5,!0),this.v.setTripleAt(y-k+V,A-D,y-k+V,A-D,y-k+G,A-D,6,!0),this.v.setTripleAt(y+k-V,A-D,y+k-G,A-D,y+k-V,A-D,7,!0)):(this.v.setTripleAt(y-k,A+D,y-k+G,A+D,y-k,A+D,2),this.v.setTripleAt(y-k,A-D,y-k,A-D+G,y-k,A-D,3))):(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+G,y+k,A-D+V,0,!0),V!==0?(this.v.setTripleAt(y+k-V,A-D,y+k-V,A-D,y+k-G,A-D,1,!0),this.v.setTripleAt(y-k+V,A-D,y-k+G,A-D,y-k+V,A-D,2,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+V,y-k,A-D+G,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-G,y-k,A+D-V,4,!0),this.v.setTripleAt(y-k+V,A+D,y-k+V,A+D,y-k+G,A+D,5,!0),this.v.setTripleAt(y+k-V,A+D,y+k-G,A+D,y+k-V,A+D,6,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-V,y+k,A+D-G,7,!0)):(this.v.setTripleAt(y-k,A-D,y-k+G,A-D,y-k,A-D,1,!0),this.v.setTripleAt(y-k,A+D,y-k,A+D-G,y-k,A+D,2,!0),this.v.setTripleAt(y+k,A+D,y+k-G,A+D,y+k,A+D,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},$([oe],w),w}();function L(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 N(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=L,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 N(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 L(u,b,U,F,at,pt,vt,Ct,wt,Kt,ke,Tr,Ce,se,De,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]=pt,this.props[6]=vt,this.props[7]=Ct,this.props[8]=wt,this.props[9]=Kt,this.props[10]=ke,this.props[11]=Tr,this.props[12]=Ce,this.props[13]=se,this.props[14]=De,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,pt,vt,Ct,wt,Kt,ke,Tr,Ce,se,De,Mt){var ct=this.props;if(u===1&&b===0&&U===0&&F===0&&at===0&&pt===1&&vt===0&&Ct===0&&wt===0&&Kt===0&&ke===1&&Tr===0)return ct[12]=ct[12]*u+ct[15]*Ce,ct[13]=ct[13]*pt+ct[15]*se,ct[14]=ct[14]*ke+ct[15]*De,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],we=ct[6],fi=ct[7],vi=ct[8],lr=ct[9],gi=ct[10],cr=ct[11],zi=ct[12],rn=ct[13],on=ct[14],sn=ct[15];return ct[0]=Dr*u+ui*at+Fr*wt+xr*Ce,ct[1]=Dr*b+ui*pt+Fr*Kt+xr*se,ct[2]=Dr*U+ui*vt+Fr*ke+xr*De,ct[3]=Dr*F+ui*Ct+Fr*Tr+xr*Mt,ct[4]=$r*u+zr*at+we*wt+fi*Ce,ct[5]=$r*b+zr*pt+we*Kt+fi*se,ct[6]=$r*U+zr*vt+we*ke+fi*De,ct[7]=$r*F+zr*Ct+we*Tr+fi*Mt,ct[8]=vi*u+lr*at+gi*wt+cr*Ce,ct[9]=vi*b+lr*pt+gi*Kt+cr*se,ct[10]=vi*U+lr*vt+gi*ke+cr*De,ct[11]=vi*F+lr*Ct+gi*Tr+cr*Mt,ct[12]=zi*u+rn*at+on*wt+sn*Ce,ct[13]=zi*b+rn*pt+on*Kt+sn*se,ct[14]=zi*U+rn*vt+on*ke+sn*De,ct[15]=zi*F+rn*Ct+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 G(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,pt=(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,Ct=new de;return Ct.props[0]=b,Ct.props[1]=U,Ct.props[4]=F,Ct.props[5]=at,Ct.props[12]=pt,Ct.props[13]=vt,Ct}function ft(u){var b=this.getInverseMatrix();return b.applyToPointArray(u[0],u[1],u[2]||0)}function dt(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],pt=this.props[1],vt=this.props[4],Ct=this.props[5],wt=this.props[12],Kt=this.props[13];F[0]=u[0]*at+u[1]*vt+wt,F[1]=u[0]*pt+u[1]*Ct+Kt,F[2]=b[0]*at+b[1]*vt+wt,F[3]=b[0]*pt+b[1]*Ct+Kt,F[4]=U[0]*at+U[1]*vt+wt,F[5]=U[0]*pt+U[1]*Ct+Kt}return F}function bt(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]),pt=S(u[12]),vt=S(u[13]);return"matrix("+b+","+U+","+F+","+at+","+pt+","+vt+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=f,this.rotateY=x,this.rotateZ=v,this.skew=N,this.skewFromAxis=B,this.shear=I,this.scale=E,this.setTransform=L,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=G,this.applyToPointArray=bt,this.applyToTriplePoints=et,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=_,this.inversePoints=dt,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?qt.searchAnimations(Th,Ka,xh):qt.searchAnimations()}function qv(e){Nv(e)}function Kv(e){Mv(e)}function Xv(e){return Ka===!0&&(e.animationData=JSON.parse(Th)),qt.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);As()>=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=qt.play,Rt.pause=qt.pause,Rt.setLocationHref=jv,Rt.togglePause=qt.togglePause,Rt.setSpeed=qt.setSpeed,Rt.setDirection=qt.setDirection,Rt.stop=qt.stop,Rt.searchAnimations=Ah,Rt.registerAnimation=qt.registerAnimation,Rt.loadAnimation=Xv,Rt.setSubframeRendering=qv,Rt.resize=qt.resize,Rt.goToAndStop=qt.goToAndStop,Rt.destroy=qt.destroy,Rt.setQuality=Zv,Rt.inBrowser=Qv,Rt.installPlugin=Jv,Rt.freeze=qt.freeze,Rt.unfreeze=qt.unfreeze,Rt.setVolume=qt.setVolume,Rt.mute=qt.mute,Rt.unmute=qt.unmute,Rt.getRegisteredAnimations=qt.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 ra>"u"?"undefined":qa(ra))==="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:ko.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=i,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 N,B;I.s*d<=n?N=0:N=(I.s*d-n)/s,I.e*d>=n+s?B=1:B=(I.e*d-n)/s,f.push([N,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,N,B,E,L=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(N=this.releasePathsData(M.pathsData),v=0;v<I;v+=1)B=yr.getSegmentsLength(c.shapes[v]),N.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=N}L+=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,L),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,N,B,E,L,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(N=E[x-1],I+N.addedLength<r.s)I+=N.addedLength,s.c=!1;else if(I>r.e){s.c=!1;break}else r.s<=I&&r.e>=I+N.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):(L=yr.getNewSegment(d[c].v[x-1],d[c].v[x],d[c].o[x-1],d[c].i[x],(r.s-I)/N.addedLength,(r.e-I)/N.addedLength,E[x-1]),this.addSegmentFromArray(L,s,B,z),z=!1,s.c=!1),I+=N.addedLength,B+=1;if(d[c].c&&E.length){if(N=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):(L=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(L,s,B,z),z=!1,s.c=!1)}else s.c=!1;I+=N.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 Cs(){}$([Ye],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 f=ce.newElement();f.c=e.c;var x,v,I,N,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,N=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,N,B,E,c);return f},Cs.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 zl=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 N,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?(N=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?(N=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)):(N=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){N=[],B=[];var E=this.px,L=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(N[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),N[1]=L.getValueAtTime((L.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=L.getValueAtTime(L.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(N[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),N[1]=L.getValueAtTime(L.keyframes[L.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=L.getValueAtTime((L.keyframes[L.keyframes.length-1].t-.01)/I,0)):(N=[E.pv,L.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=L.getValueAtTime((L._caching.lastFrame+L.offsetTime-.01)/I,L.offsetTime))}else B=e,N=B;this.v.rotate(-Math.atan2(N[1]-B[1],N[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,N){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(N||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,N){return new f(v,I,N)}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=zl.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 N=this.elemsData[n].it,B=N[N.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,L=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;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,L,!1),_+=L)}else if(E<0){for(;_>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-L,!0),_-=L)}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 ws(){}$([Ye],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=ce.newElement();s.c=e.c;var n,d=e._length,c,f,x,v,I,N,B=0,E,L,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)),N=I?Math.min(I/2,r)/I:0,z=c[0]+(v[0]-c[0])*N,E=z,w=c[1]-(c[1]-v[1])*N,L=w,P=E-(E-c[0])*le,M=L-(L-c[1])*le,s.setTripleAt(E,L,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)),N=I?Math.min(I/2,r)/I:0,P=c[0]+(v[0]-c[0])*N,E=P,M=c[1]+(v[1]-c[1])*N,L=M,z=E-(E-c[0])*le,w=L-(L-c[1])*le,s.setTripleAt(E,L,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,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 Vl(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&&wo(e,r)&&(r=ci(e,n,1/3)),d&&wo(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(Vl(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 Vl(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 Ns(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);Ns(f[0],x[0],s+1,n,d,c),Ns(f[0],x[1],s+1,n,d,c),Ns(f[1],x[0],s+1,n,d,c),Ns(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 Ns(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 Bl(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=Bl(Bl(d,c),Bl(f,x));return Vl(v[2])?null:[v[0]/v[2],v[1]/v[2]]}function Co(e,r,s){return[e[0]+Math.cos(r)*s,e[1]-Math.sin(r)*s]}function Ul(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function wo(e,r){return Xa(e[0],r[0])&&Xa(e[1],r[1])}function Ls(){}$([Ye],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 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,N=r[1]-Math.sin(s)*n*d;e.setTripleAt(I,N,I+Math.cos(x)*c,N-Math.sin(x)*c,I+Math.cos(v)*f,N-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],N=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]-N[0],2)+Math.pow(v[1]-N[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),N=r.point(x);Rh(e,N,I,c,s,v/((n+1)*2),v/((n+1)*2),d),c=-c}return c}Ls.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},Ls.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,N;for(s=0;s<n;s+=1){if(I=this.shapes[s],N=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(N.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)N.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[Co(e,n,s),Co(r,n,s)]}function No(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 N=Qa(f,x,d,c);return N===null&&(N=f),new Bt(s,I,N,x)}function Oh(e,r,s,n,d){var c=r.points[3],f=s.points[0];if(n===3||wo(c,f))return c;if(n===2){var x=-r.tangentAngle(1),v=-s.tangentAngle(0)+Math.PI,I=Qa(c,Co(c,x+Math.PI/2,100),f,Co(f,x+Math.PI/2,100)),N=I?Ul(I,c):Ul(c,f)/2,B=Co(c,x,2*N*le);return e.setXYAt(B[0],B[1],"o",e.length()-1),B=Co(f,v,2*N*le),e.setTripleAt(f[0],f[1],f[0],f[1],B[0],B[1],e.length()),f}var E=wo(c,r.points[2])?r.points[0]:r.points[2],L=wo(f,s.points[1])?s.points[3]:s.points[1],P=Qa(E,c,f,L);return P&&Ul(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[No(e,r)];if(s.length===1||Xa(s[1],1))return c=e.split(s[0]),n=c[0],d=c[1],[No(n,r),No(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],[No(n,r),No(f,r),No(d,r)]}function Rs(){}$([Ye],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=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 N=null,B=null;for(f=0;f<I.length;f+=1){var E=I[f];for(B&&(N=Oh(d,B,E[0],s,n)),B=E[E.length-1],x=0;x<E.length;x+=1)v=E[x],N&&wo(v.points[0],N)?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()),N=v.points[3]}return I.length&&Oh(d,B,I[0][0],s,n),d},Rs.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,N;for(s=0;s<n;s+=1){if(I=this.shapes[s],N=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(N.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)N.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 Di=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,N=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 L(S,O){var u=R("span");u.setAttribute("aria-hidden",!0),u.style.fontFamily=O;var b=R("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=gt("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 pt(vt){return u==="svg"?(b.textContent=vt,b.getComputedTextLength()):b.measureText(vt).width}return{measureText:pt}}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(ke){ke.helper=M(ke),ke.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,pt,vt;if(u[b].loaded=!1,u[b].monoCase=L(u[b].fFamily,"monospace"),u[b].sansCase=L(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(pt=document.querySelectorAll('style[f-forigin="p"][f-family="'+u[b].fFamily+'"], style[f-origin="3"][f-family="'+u[b].fFamily+'"]'),pt.length>0&&(at=!1),at){var Ct=R("style");Ct.setAttribute("f-forigin",u[b].fOrigin),Ct.setAttribute("f-origin",u[b].origin),Ct.setAttribute("f-family",u[b].fFamily),Ct.type="text/css",Ct.innerText="@font-face {font-family: "+u[b].fFamily+"; font-style: normal; src: url('"+u[b].fPath+"');}",O.appendChild(Ct)}}else if(u[b].fOrigin==="g"||u[b].origin===1){for(pt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),vt=0;vt<pt.length;vt+=1)pt[vt].href.indexOf(u[b].fPath)!==-1&&(at=!1);if(at){var wt=R("link");wt.setAttribute("f-forigin",u[b].fOrigin),wt.setAttribute("f-origin",u[b].origin),wt.type="text/css",wt.rel="stylesheet",wt.href=u[b].fPath,document.body.appendChild(wt)}}else if(u[b].fOrigin==="t"||u[b].origin===2){for(pt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),vt=0;vt<pt.length;vt+=1)u[b].fPath===pt[vt].src&&(at=!1);if(at){var Kt=R("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+"|"),pt=F.measureText("||");b.cache[U]=(at-pt)/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 G(S){return S===x}function Z(S){var O=k(S);return O>=I&&O<=N}function ft(S){return Z(S.substr(0,2))&&Z(S.substr(2,2))}function dt(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 bt(){this.isLoaded=!0}var lt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};lt.isModifier=D,lt.isZeroWidthJoiner=V,lt.isFlagEmoji=ft,lt.isRegionalCode=Z,lt.isCombinedCharacter=dt,lt.isRegionalFlag=et,lt.isVariationSelector=G,lt.BLACK_FLAG_CODE_POINT=n;var X={addChars:w,addFonts:z,getCharData:_,getFontByName:A,measureText:y,checkLoadedFonts:P,setIsLoaded:bt};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 Hl=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 Ms(s[n],r),this.effectElements.push(c)}function Ms(e,r){this.init(e,r)}$([oe],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 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=Hl(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=_e(),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 Ie(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)}Ie.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],Ie),Ie.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))},Ie.prototype.show=function(){},Ie.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ie.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ie.prototype.resume=function(){this._canPlay=!0},Ie.prototype.setRate=function(e){this.audio.rate(e)},Ie.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ie.prototype.getBaseElement=function(){return null},Ie.prototype.destroy=function(){},Ie.prototype.sourceRectAtTime=function(){},Ie.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 Ie(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 Di,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 Lo(){}Lo.prototype={initTransform:function(){var r=new de;this.finalTransform={mProp:this.data.ks?zl.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 Fi(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=[],N,B,E=_e(),L,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?(L=gt("rect"),L.setAttribute("fill","#ffffff"),L.setAttribute("width",this.element.comp.data.w||0),L.setAttribute("height",this.element.comp.data.h||0),I.push(L)):L=null,f=gt("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=_e(),P=gt("filter"),P.setAttribute("id",y),M=gt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),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=gt("g");for(N=0;N<B;N+=1)A.appendChild(I[N]);var k=gt("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:L},this.viewData[d].prop.k||this.drawPath(x[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=gt(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)}Fi.prototype.getMaskProperty=function(e){return this.viewData[e].prop},Fi.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))}},Fi.prototype.getMaskelement=function(){return this.maskElement},Fi.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},Fi.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}},Fi.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=gt("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=gt("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 Yl(e){var r,s="SourceGraphic",n=e.data.ef?e.data.ef.length:0,d=_e(),c=Os.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)}Yl.prototype.renderFrame=function(e){var r,s=this.filters.length;for(r=0;r<s;r+=1)this.filters[r].renderFrame(e)},Yl.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 Ps(){}Ps.prototype={initRendererElement:function(){this.layerElement=gt("g")},createContainerElements:function(){this.matteElement=gt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var s=gt("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=gt("clipPath"),d=gt("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=_e();if(n.setAttribute("id",c),n.appendChild(d),this.globalData.defs.appendChild(n),this.checkMasks()){var f=gt("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 Fi(this.data,this,this.globalData),this.renderableEffectsManager=new Yl(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=gt("mask");x.setAttribute("id",s),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=gt("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=_e(),d=Os.createFilter(n),this.globalData.defs.appendChild(d),d.appendChild(Os.createAlphaToLuminanceFilter()),f=gt("g"),f.appendChild(c),x.appendChild(f),f.setAttribute("filter","url("+T()+"#"+n+")"))}else if(r===2){var v=gt("mask");v.setAttribute("id",s),v.setAttribute("mask-type","alpha");var I=gt("g");v.appendChild(I),n=_e(),d=Os.createFilter(n);var N=gt("feComponentTransfer");N.setAttribute("in","SourceGraphic"),d.appendChild(N);var B=gt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),N.appendChild(B),this.globalData.defs.appendChild(d);var E=gt("rect");E.setAttribute("width",this.comp.data.w),E.setAttribute("height",this.comp.data.h),E.setAttribute("x","0"),E.setAttribute("y","0"),E.setAttribute("fill","#ffffff"),E.setAttribute("opacity","0"),I.setAttribute("filter","url("+T()+"#"+n+")"),I.appendChild(E),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),Bh.maskType||(v.setAttribute("mask-type","luminance"),d.appendChild(Os.createAlphaToLuminanceFilter()),f=gt("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 Ro(){}Ro.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()}};$([Ja,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}}$([di,Lo,Ps,Ro,hi,Ds],Fs),Fs.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=gt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},Fs.prototype.sourceRectAtTime=function(){return this.sourceRect};function Tg(e,r){this.elem=e,this.pos=r}function Gh(){}Gh.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 Hh={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=gt("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 $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}},$([oe],$s);function Mo(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,s)}Mo.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},Mo.prototype.setGradientData=function(e,r){var s=_e(),n=gt(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=gt("stop"),n.appendChild(c),d.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+T()+"#"+s+")"),this.gf=n,this.cst=d},Mo.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var s,n,d,c=gt("mask"),f=gt("path");c.appendChild(f);var x=_e(),v=_e();c.setAttribute("id",v);var I=gt(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 N=this.stops;for(n=e.g.p*4;n<d;n+=2)s=gt("stop"),s.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(s),N.push(s);f.setAttribute(e.ty==="gf"?"fill":"stroke","url("+T()+"#"+x+")"),e.ty==="gs"&&(f.setAttribute("stroke-linecap",Hh[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=N,this.maskId=v,r.msElem=f}},$([oe],Mo);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}$([Mo,oe],Zh);function xg(){this.it=[],this.prevViewData=[],this.gr=gt("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 N;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,L){(L||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(L||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function f(B,E,L){var P,M,z,w,_,y,A=E.styles.length,k=E.lvl,D,V,G,Z;for(y=0;y<A;y+=1){if(w=E.sh._mdf||L,E.styles[y].lvl<k){for(V=r.reset(),G=k-E.styles[y].lvl,Z=E.transformers.length-1;!w&&G>0;)w=E.transformers[Z].mProps._mdf||w,G-=1,Z-=1;if(w)for(G=k-E.styles[y].lvl,Z=E.transformers.length-1;G>0;)V.multiply(E.transformers[Z].mProps.v),G-=1,Z-=1}else V=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,L){var P=E.style;(E.c._mdf||L)&&P.pElem.setAttribute("fill","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||L)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function v(B,E,L){I(B,E,L),N(B,E,L)}function I(B,E,L){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,w=E.e.v;if(E.o._mdf||L){var _=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(_,E.o.v)}if(E.s._mdf||L){var y=B.t===1?"x1":"cx",A=y==="x1"?"y1":"cy";P.setAttribute(y,z[0]),P.setAttribute(A,z[1]),M&&!E.g._collapsable&&(E.of.setAttribute(y,z[0]),E.of.setAttribute(A,z[1]))}var k,D,V,G;if(E.g._cmdf||L){k=E.cst;var Z=E.g.c;for(V=k.length,D=0;D<V;D+=1)G=k[D],G.setAttribute("offset",Z[D*4]+"%"),G.setAttribute("stop-color","rgb("+Z[D*4+1]+","+Z[D*4+2]+","+Z[D*4+3]+")")}if(M&&(E.g._omdf||L)){var ft=E.g.o;for(E.g._collapsable?k=E.cst:k=E.ost,V=k.length,D=0;D<V;D+=1)G=k[D],E.g._collapsable||G.setAttribute("offset",ft[D*2]+"%"),G.setAttribute("stop-opacity",ft[D*2+1])}if(B.t===1)(E.e._mdf||L)&&(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 dt;if((E.s._mdf||E.e._mdf||L)&&(dt=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)),P.setAttribute("r",dt),M&&!E.g._collapsable&&E.of.setAttribute("r",dt)),E.e._mdf||E.h._mdf||E.a._mdf||L){dt||(dt=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)));var et=Math.atan2(w[1]-z[1],w[0]-z[0]),bt=E.h.v;bt>=1?bt=.99:bt<=-1&&(bt=-.99);var lt=dt*bt,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 N(B,E,L){var P=E.style,M=E.d;M&&(M._mdf||L)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||L)&&P.pElem.setAttribute("stroke","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||L)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||L)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return s}();function Ht(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,Lo,Ps,Gh,Ro,hi,Ds],Ht),Ht.prototype.initSecondaryElement=function(){},Ht.prototype.identityMatrix=new de,Ht.prototype.buildExpressionInterface=function(){},Ht.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Ht.prototype.filterUniqueShapes=function(){var 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)}},Ht.prototype.setShapesAsAnimated=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r].setAsAnimated()},Ht.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"?Mo: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",Hh[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"]=Hl(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,s),s},Ht.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"]=Hl(e.bm)),r},Ht.prototype.createTransformElement=function(e,r){var s=zl.getTransformProperty(this,e,this),n=new Ag(s,s.o,r);return this.addToAnimatedContents(e,n),n},Ht.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},Ht.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})},Ht.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])},Ht.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()},Ht.prototype.searchShapes=function(e,r,s,n,d,c,f){var x=[].concat(c),v,I=e.length-1,N,B,E=[],L=[],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,N=0;N<B;N+=1)r[v].prevViewData[N]=r[v].it[N];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)),L.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),L.push(M));this.addProcessedElement(e[v],v+1)}for(I=E.length,v=0;v<I;v+=1)E[v].closed=!0;for(I=L.length,v=0;v<I;v+=1)L[v].closed=!0},Ht.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"))},Ht.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)},Ht.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Wl(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}}Wl.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 fe(e,r){this._frameId=i,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)}fe.prototype.defaultBoxWidth=[0,0],fe.prototype.copyData=function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},fe.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},fe.prototype.searchProperty=function(){return this.searchKeyframes()},fe.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},fe.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},fe.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}},fe.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},fe.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),Di.isCombinedCharacter(d)?f=!0:d>=55296&&d<=56319?Di.isRegionalFlag(e,s)?v=e.substr(s,14):(c=e.charCodeAt(s+1),c>=56320&&c<=57343&&(Di.isModifier(d,c)?(v=e.substr(s,2),f=!0):Di.isFlagEmoji(e.substr(s,4))?v=e.substr(s,4):v=e.substr(s,2))):d>56319?(c=e.charCodeAt(s+1),Di.isVariationSelector(d)&&(f=!0)):Di.isZeroWidthJoiner(d)&&(f=!0,x=!0),f?(r[r.length-1]+=v,f=!1):r.push(v),s+=v.length;return r},fe.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,N=0,B=0,E=0,L=[],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 G=!0,Z=e.sz[0],ft=e.sz[1],dt,et;G;){et=this.buildFinalText(e.t),dt=0,P=0,c=et.length,D=e.tr/1e3*e.finalSize;var bt=-1;for(d=0;d<c;d+=1)V=et[d].charCodeAt(0),f=!1,et[d]===" "?bt=d:(V===13||V===3)&&(P=0,f=!0,dt+=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]!==" "?(bt===-1?c+=1:d=bt,dt+=e.finalLineHeight||e.finalSize*1.2,et.splice(d,bt===d?1:0,"\r"),bt=-1,P=0):(P+=A,P+=D);dt+=_.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ft<dt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=et,c=e.finalText.length,G=!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,L.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:N,n:f,anIndexes:[],val:v,line:E,animatorJustifyOffset:0}),I==2){if(N+=A,v===""||v===" "||d===c-1){for((v===""||v===" ")&&(N-=A);B<=d;)n[B].an=N,n[B].ind=x,n[B].extra=A,B+=1;x+=1,N=0}}else if(I==3){if(N+=A,v===""||d===c-1){for(v===""&&(N-=A);B<=d;)n[B].an=N,n[B].ind=x,n[B].extra=A,B+=1;N=0,x+=1}}else n[x].ind=x,n[x].extra=0,x+=1;if(e.l=n,M=P>M?P:M,L.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=L;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,pt;if(O.s.rn===1)for(d=0;d<c;d+=1)u=n[d],at!=u.anIndexes[z]&&(at=u.anIndexes[z],pt=F.splice(Math.floor(Math.random()*F.length),1)[0]),u.anIndexes[z]=pt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=_.ascent*e.finalSize/100},fe.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)},fe.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},fe.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},fe.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,N=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:N=1+this.xe.v/100;var B=ks.getBezierEasing(x,v,I,N).get,E=0,L=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===L?E=f>=P?1:0:E=e(0,r(.5/(P-L)+(f-L)/(P-L),1)),E=B(E);else if(M===3)P===L?E=f>=P?0:1:E=1-e(0,r(.5/(P-L)+(f-L)/(P-L),1)),E=B(E);else if(M===4)P===L?E=0:(E=e(0,r(.5/(P-L)+(f-L)/(P-L),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===L)E=0;else{var z=P-L;f=r(e(0,f+.5-L),P-L);var w=-z/2+f,_=z/2;E=Math.sqrt(1-w*w/(_*_))}E=B(E)}else M===6?(P===L?E=0:(f=r(e(0,f+.5-L),P-L),E=(1+Math.cos(Math.PI+Math.PI*2*f/(P-L)))/2),E=B(E)):(f>=s(L)&&(f-L<0?E=e(0,r(r(P,1)-(L-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,N=this.e.v/x+v;if(I>N){var B=I;I=N,N=B}this.finalS=I,this.finalE=N}},$([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 $i(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)}$i.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)},$i.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,N,B,E=e.l,L,P,M,z,w,_,y,A,k,D,V,G,Z,ft,dt;if(this._hasMaskedPath){if(dt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var et=dt.v;this._pathData.r.v&&(et=et.reverse()),L={tLength:0,segments:[]},B=et._length-1;var bt;for(G=0,N=0;N<B;N+=1)bt=yr.buildBezierData(et.v[N],et.v[N+1],[et.o[N][0]-et.v[N][0],et.o[N][1]-et.v[N][1]],[et.i[N+1][0]-et.v[N+1][0],et.i[N+1][1]-et.v[N+1][1]]),L.tLength+=bt.segmentLength,L.segments.push(bt),G+=bt.segmentLength;N=B,dt.v.c&&(bt=yr.buildBezierData(et.v[N],et.v[0],[et.o[N][0]-et.v[N][0],et.o[N][1]-et.v[N][1]],[et.i[0][0]-et.v[0][0],et.i[0][1]-et.v[0][1]]),L.tLength+=bt.segmentLength,L.segments.push(bt),G+=bt.segmentLength),this._pathData.pi=L}if(L=this._pathData.pi,P=this._pathData.f.v,y=0,_=1,z=0,w=!0,D=L.segments,P<0&&dt.v.c)for(L.tLength<Math.abs(P)&&(P=-Math.abs(P)%L.tLength),y=D.length-1,k=D[y].points,_=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,pt,vt,Ct,wt=P,Kt=y,ke=_,Tr=-1,Ce,se,De,Mt,ct,Dr,ui,Fr,xr="",$r=this.defaultPropsArray,zr;if(e.j===2||e.j===1){var we=0,fi=0,vi=e.j===2?-.5:-1,lr=0,gi=!0;for(N=0;N<B;N+=1)if(E[N].n){for(we&&(we+=fi);lr<N;)E[lr].animatorJustifyOffset=we,lr+=1;we=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[N].anIndexes[u],d.a[u].s.totalChars),F.length?we+=S.t.v*F[0]*vi:we+=S.t.v*F*vi);gi=!1}for(we&&(we+=fi);lr<N;)E[lr].animatorJustifyOffset=we,lr+=1}for(N=0;N<B;N+=1){if(c.reset(),Ce=1,E[N].n)v=0,I+=e.yOffset,I+=X?1:0,P=wt,X=!1,this._hasMaskedPath&&(y=Kt,_=ke,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[N].line){switch(e.j){case 1:P+=G-e.lineWidths[E[N].line];break;case 2:P+=(G-e.lineWidths[E[N].line])/2;break;default:break}Tr=E[N].line}at!==E[N].ind&&(E[at]&&(P+=E[at].extra),P+=E[N].an/2,at=E[N].ind),P+=s[0]*E[N].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[N].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[N].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+(G-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,Ct=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-s[0]*E[N].an*.005,-(s[1]*lt)*.01),w=!1):k&&(z+=M.partialLength,_+=1,_>=k.length&&(_=0,y+=1,D[y]?k=D[y].points:dt.v.c?(_=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[_],V=M.partialLength));pt=E[N].an/2-E[N].add,c.translate(-pt,0,0)}else pt=E[N].an/2-E[N].add,c.translate(-pt,0,0),c.translate(-s[0]*E[N].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[N].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&&(De=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[N].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[N].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[N].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?Ce+=(S.o.v*F[0]-Ce)*F[0]:Ce+=(S.o.v*F-Ce)*F),e.strokeWidthAnim&&S.sw.propType&&(F.length?De+=S.sw.v*F[0]:De+=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[N].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=De<0?0:De),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 zi=Math.atan(ft)*180/Math.PI;M.point[0]<A.point[0]&&(zi+=180),c.rotate(-zi*Math.PI/180)}c.translate(vt,Ct,0),P-=s[0]*E[N].an*.005,E[N+1]&&at!==E[N+1].ind&&(P+=E[N].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[N].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[N].line]),0,0);break;case 2:c.translate(E[N].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[N].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(pt,0,0),c.translate(s[0]*E[N].an*.005,s[1]*lt*.01,0),v+=E[N].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=Ce}x<=N?(U=new Wl(zr,Dr,ui,Fr,xr,$r),this.renderedLetters.push(U),x+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[N],this.lettersChangedFlag=U.update(zr,Dr,ui,Fr,xr,$r)||this.lettersChangedFlag)}}},$i.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},$i.prototype.mHelper=new de,$i.prototype.defaultPropsArray=[],$([oe],$i);function We(){}We.prototype.initElement=function(e,r,s){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,s),this.textProperty=new fe(this,e.t,this.dynamicProperties),this.textAnimator=new $i(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 Wl,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,Lo,Ps,Ro,hi,Ds,We],Or),Or.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=gt("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,N="",B=this.data.singleShape,E=0,L=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,L=s.ps?s.ps[1]+s.ascent:0,e=0;e<r;e+=1)v=this.textSpans[e].span||gt("tspan"),v.textContent=_[e],v.setAttribute("x",0),v.setAttribute("y",L),v.style.display="inherit",z.appendChild(v),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=v,L+=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:gt(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=gt("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,L+=s.yOffset,L+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(s,I,f[e].line,E,L),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 zs(A.data,this.globalData,this);else{var V=kg;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,s.finalSize)),D=new Ht(V,this.globalData,this)}if(this.textSpans[e].glyph){var G=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(G.layerElement),G.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",N)}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 jl(e,r,s){this.initElement(e,r,s)}$([Fs],jl),jl.prototype.createContent=function(){var e=gt("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,Lo,Ro,hi],mi);function Jt(){}$([he],Jt),Jt.prototype.createNull=function(e){return new mi(e,this.globalData,this)},Jt.prototype.createShape=function(e){return new Ht(e,this.globalData,this)},Jt.prototype.createText=function(e){return new Or(e,this.globalData,this)},Jt.prototype.createImage=function(e){return new Fs(e,this.globalData,this)},Jt.prototype.createSolid=function(e){return new jl(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=gt("clipPath"),n=gt("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var d=_e();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,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)}}}},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 Pr(){}$([di,Lo,Ro,hi,Ds],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 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,Pr,Ps],zs),zs.prototype.createComp=function(e){return new zs(e,this.globalData,this)};function ql(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=gt("svg");var s="";if(r&&r.title){var n=gt("title"),d=_e();n.setAttribute("id",d),n.textContent=r.title,this.svgElement.appendChild(n),s+=d}if(r&&r.description){var c=gt("desc"),f=_e();c.setAttribute("id",f),c.textContent=r.description,this.svgElement.appendChild(c),s+=" "+f}s&&this.svgElement.setAttribute("aria-labelledby",s);var x=gt("defs");this.svgElement.appendChild(x);var v=gt("g");this.svgElement.appendChild(v),this.layerElement=v,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return $([Jt],ql),ql.prototype.createComp=function(e){return new zs(e,this.globalData,this)},Fv("svg",ql),li.registerModifier("tm",nr),li.registerModifier("pb",Cs),li.registerModifier("rp",Er),li.registerModifier("rd",ws),li.registerModifier("zz",Ls),li.registerModifier("op",Rs),Rt})});var an=globalThis,nn=an.ShadowRoot&&(an.ShadyCSS===void 0||an.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xl=Symbol(),tp=new WeakMap,Vs=class{constructor(o,t,i){if(this._$cssResult$=!0,i!==Xl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(nn&&o===void 0){let i=t!==void 0&&t.length===1;i&&(o=tp.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),i&&tp.set(t,o))}return o}toString(){return this.cssText}},ep=l=>new Vs(typeof l=="string"?l:l+"",void 0,Xl),H=(l,...o)=>{let t=l.length===1?l[0]:o.reduce((i,a,h)=>i+(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,Xl)},Zl=(l,o)=>{if(nn)l.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let i=document.createElement("style"),a=an.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=t.cssText,l.appendChild(i)}},ln=nn?l=>l:l=>l instanceof CSSStyleSheet?(o=>{let t="";for(let i of o.cssRules)t+=i.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:"",Ql=bi.reactiveElementPolyfillSupport,Bs=(l,o)=>l,Us={toAttribute(l,o){switch(o){case Boolean:l=l?Bg:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,o){let t=l;switch(o){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,o)=>!Pg(l,o),ip={attribute:!0,type:String,converter:Us,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(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=ip){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let i=Symbol(),a=this.getPropertyDescriptor(o,i,t);a!==void 0&&Dg(this.prototype,o,a)}}static getPropertyDescriptor(o,t,i){var m;let{get:a,set:h}=(m=Fg(this.prototype,o))!=null?m:{get(){return this[t]},set(T){this[t]=T}};return{get(){return a==null?void 0:a.call(this)},set(T){let R=a==null?void 0:a.call(this);h.call(this,T),this.requestUpdate(o,R,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:ip}static _$Ei(){if(this.hasOwnProperty(Bs("elementProperties")))return;let o=Vg(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Bs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bs("properties"))){let t=this.properties,i=[...$g(t),...zg(t)];for(let a of i)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[i,a]of t)this.elementProperties.set(i,a)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let a=this._$Eu(t,i);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let i=new Set(o.flat(1/0).reverse());for(let a of i)t.unshift(ln(a))}else o!==void 0&&t.push(ln(o));return t}static _$Eu(o,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((i=o.hostConnected)==null||i.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(o.set(i,this[i]),delete this[i]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Zl(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var a;return(a=i.hostConnected)==null?void 0:a.call(i)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(o,t,i){this._$AK(o,i)}_$EC(o,t){var h;let i=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,i);if(a!==void 0&&i.reflect===!0){let m=(((h=i.converter)==null?void 0:h.toAttribute)!==void 0?i.converter:Us).toAttribute(t,i.type);this._$Em=o,m==null?this.removeAttribute(a):this.setAttribute(a,m),this._$Em=null}}_$AK(o,t){var h;let i=this.constructor,a=i._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let m=i.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(o,t,i){var a;if(o!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(o)),!((a=i.hasChanged)!=null?a:cn)(this[o],t))return;this.P(o,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,i){var a;this._$AL.has(o)||this._$AL.set(o,t),i.reflect===!0&&this._$Em!==o&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=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 o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(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 o=!1,this._$EU(),h}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(i=>{var a;return(a=i.hostUpdated)==null?void 0:a.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},ap;Vr.elementStyles=[],Vr.shadowRootOptions={mode:"open"},Vr[Bs("elementProperties")]=new Map,Vr[Bs("finalized")]=new Map,Ql==null||Ql({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,ec="$lit$",Br=`lit$${Math.random().toFixed(9).slice(2)}$`,rc="?"+Br,Ug=`<${rc}>`,Ui=document,Ys=()=>Ui.createComment(""),Ws=l=>l===null||typeof l!="object"&&typeof l!="function",ic=Array.isArray,up=l=>ic(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Jl=`[
|
3
|
-
\f\r]`,
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),dp=/'/g,hp=/"/g,fp=/^(?:script|style|textarea|title)$/i,oc=l=>(o,...t)=>({_$litType$:l,strings:o,values:t}),C=oc(1),ZT=oc(2),QT=oc(3),Ne=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),pp=new WeakMap,Bi=Ui.createTreeWalker(Ui,129);function vp(l,o){if(!ic(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return np!==void 0?np.createHTML(o):o}var gp=(l,o)=>{let t=l.length-1,i=[],a,h=o===2?"<svg>":o===3?"<math>":"",m=Gs;for(let T=0;T<t;T++){let R=l[T],$,q,K=-1,nt=0;for(;nt<R.length&&(m.lastIndex=nt,q=m.exec(R),q!==null);)nt=m.lastIndex,m===Gs?q[1]==="!--"?m=lp:q[1]!==void 0?m=cp:q[2]!==void 0?(fp.test(q[2])&&(a=RegExp("</"+q[2],"g")),m=Vi):q[3]!==void 0&&(m=Vi):m===Vi?q[0]===">"?(m=a!=null?a:Gs,K=-1):q[1]===void 0?K=-2:(K=m.lastIndex-q[2].length,$=q[1],m=q[3]===void 0?Vi:q[3]==='"'?hp:dp):m===hp||m===dp?m=Vi:m===lp||m===cp?m=Gs:(m=Vi,a=void 0);let Q=m===Vi&&l[T+1].startsWith("/>")?" ":"";h+=m===Gs?R+Ug:K>=0?(i.push($),R.slice(0,K)+ec+R.slice(K)+Br+Q):R+Br+(K===-2?T:Q)}return[vp(l,h+(l[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),i]},js=class l{constructor({strings:o,_$litType$:t},i){let a;this.parts=[];let h=0,m=0,T=o.length-1,R=this.parts,[$,q]=gp(o,t);if(this.el=l.createElement($,i),Bi.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(a=Bi.nextNode())!==null&&R.length<T;){if(a.nodeType===1){if(a.hasAttributes())for(let K of a.getAttributeNames())if(K.endsWith(ec)){let nt=q[m++],Q=a.getAttribute(K).split(Br),rt=/([.?@])?(.*)/.exec(nt);R.push({type:1,index:h,name:rt[2],strings:Q,ctor:rt[1]==="."?pn:rt[1]==="?"?mn:rt[1]==="@"?un:Hi}),a.removeAttribute(K)}else K.startsWith(Br)&&(R.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],Ys()),Bi.nextNode(),R.push({type:2,index:++h});a.append(K[nt],Ys())}}}else if(a.nodeType===8)if(a.data===rc)R.push({type:2,index:h});else{let K=-1;for(;(K=a.data.indexOf(Br,K+1))!==-1;)R.push({type:7,index:h}),K+=Br.length-1}h++}}static createElement(o,t){let i=Ui.createElement("template");return i.innerHTML=o,i}};function Gi(l,o,t=l,i){var m,T,R;if(o===Ne)return o;let a=i!==void 0?(m=t.o)==null?void 0:m[i]:t.l,h=Ws(o)?void 0:o._$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,i)),i!==void 0?((R=t.o)!=null?R:t.o=[])[i]=a:t.l=a),a!==void 0&&(o=Gi(l,a._$AS(l,o.values),a,i)),o}var hn=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var $;let{el:{content:t},parts:i}=this._$AD,a=(($=o==null?void 0:o.creationScope)!=null?$:Ui).importNode(t,!0);Bi.currentNode=a;let h=Bi.nextNode(),m=0,T=0,R=i[0];for(;R!==void 0;){if(m===R.index){let q;R.type===2?q=new Oo(h,h.nextSibling,this,o):R.type===1?q=new R.ctor(h,R.name,R.strings,this,o):R.type===6&&(q=new fn(h,this,o)),this._$AV.push(q),R=i[++T]}m!==(R==null?void 0:R.index)&&(h=Bi.nextNode(),m++)}return Bi.currentNode=Ui,a}p(o){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,t),t+=i.strings.length-2):i._$AI(o[t])),t++}},Oo=class l{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,i,a){var h;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=i,this.options=a,this.v=(h=a==null?void 0:a.isConnected)!=null?h:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Gi(this,o,t),Ws(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==Ne&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):up(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==W&&Ws(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ui.createTextNode(o)),this._$AH=o}$(o){var h;let{values:t,_$litType$:i}=o,a=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=js.createElement(vp(i.h,i.h[0]),this.options)),i);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(o){let t=pp.get(o.strings);return t===void 0&&pp.set(o.strings,t=new js(o)),t}k(o){ic(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,a=0;for(let h of o)a===t.length?t.push(i=new l(this.O(Ys()),this.O(Ys()),this,this.options)):i=t[a],i._$AI(h),a++;a<t.length&&(this._$AR(i&&i._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);o&&o!==this._$AB;){let a=o.nextSibling;o.remove(),o=a}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Hi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,i,a,h){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(o,t=this,i,a){let h=this.strings,m=!1;if(h===void 0)o=Gi(this,o,t,0),m=!Ws(o)||o!==this._$AH&&o!==Ne,m&&(this._$AH=o);else{let T=o,R,$;for(o=h[0],R=0;R<h.length-1;R++)$=Gi(this,T[i+R],t,R),$===Ne&&($=this._$AH[R]),m||(m=!Ws($)||$!==this._$AH[R]),$===W?o=W:o!==W&&(o+=($!=null?$:"")+h[R+1]),this._$AH[R]=$}m&&!a&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},pn=class extends Hi{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},mn=class extends Hi{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},un=class extends Hi{constructor(o,t,i,a,h){super(o,t,i,a,h),this.type=5}_$AI(o,t=this){var m;if((o=(m=Gi(this,o,t,0))!=null?m:W)===Ne)return;let i=this._$AH,a=o===W&&i!==W||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,h=o!==W&&(i===W||a);a&&this.element.removeEventListener(this.name,this,i),h&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,o):this._$AH.handleEvent(o)}},fn=class{constructor(o,t,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){Gi(this,o)}},bp={M:ec,P:Br,A:rc,C:1,L:gp,R:hn,D:up,V:Gi,I:Oo,H:Hi,N:mn,U:un,B:pn,F:fn},tc=Hs.litHtmlPolyfillSupport,mp;tc==null||tc(js,Oo),((mp=Hs.litHtmlVersions)!=null?mp:Hs.litHtmlVersions=[]).push("3.2.0");var yp=(l,o,t)=>{var h,m;let i=(h=t==null?void 0:t.renderBefore)!=null?h:o,a=i._$litPart$;if(a===void 0){let T=(m=t==null?void 0:t.renderBefore)!=null?m:null;i._$litPart$=a=new Oo(o.insertBefore(Ys(),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,i;let o=super.createRenderRoot();return(i=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=yp(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return Ne}},Ep;yi._$litElement$=!0,yi.finalized=!0,(Ep=globalThis.litElementHydrateSupport)==null||Ep.call(globalThis,{LitElement:yi});var sc=globalThis.litElementPolyfillSupport;sc==null||sc({LitElement:yi});var Tp;((Tp=globalThis.litElementVersions)!=null?Tp:globalThis.litElementVersions=[]).push("4.1.0");var Gg={attribute:!0,type:String,converter:Us,reflect:!1,hasChanged:cn},Hg=(l=Gg,o,t)=>{let{kind:i,metadata:a}=t,h=globalThis.litPropertyMetadata.get(a);if(h===void 0&&globalThis.litPropertyMetadata.set(a,h=new Map),h.set(t.name,l),i==="accessor"){let{name:m}=t;return{set(T){let R=o.get.call(this);o.set.call(this,T),this.requestUpdate(m,R,l)},init(T){return T!==void 0&&this.P(m,void 0,l),T}}}if(i==="setter"){let{name:m}=t;return function(T){let R=this[m];o.call(this,T),this.requestUpdate(m,R,l)}}throw Error("Unsupported decorator location: "+i)};function g(l){return(o,t)=>typeof t=="object"?Hg(l,o,t):((i,a,h)=>{let m=a.hasOwnProperty(h);return a.constructor.createProperty(h,m?{...i,wrapped:!0}:i),m?Object.getOwnPropertyDescriptor(a,h):void 0})(l,o,t)}function Tt(l){return g({...l,state:!0,attribute:!1})}var Ur=(l,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(l,o,t),t);function Gr(l,o){return(t,i,a)=>{let h=m=>{var T,R;return(R=(T=m.renderRoot)==null?void 0:T.querySelector(l))!=null?R:null};if(o){let{get:m,set:T}=typeof i=="object"?t:a!=null?a:(()=>{let R=Symbol();return{get(){return this[R]},set($){this[R]=$}}})();return Ur(t,i,{get(){let R=m.call(this);return R===void 0&&(R=h(this),(R!==null||this.hasUpdated)&&T.call(this,R)),R}})}return Ur(t,i,{get(){return h(this)}})}}function Nt(l){return(o,t)=>{let{slot:i,selector:a}=l!=null?l:{},h="slot"+(i?`[name=${i}]`:":not([name])");return Ur(o,t,{get(){var R,$;let m=(R=this.renderRoot)==null?void 0:R.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(o,t)=>{let{slot:i}=l!=null?l:{},a="slot"+(i?`[name=${i}]`:":not([name])");return Ur(o,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},ac=Wg;var jg=l=>[ac.NAMESPACE.PREFIX,l].join(ac.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 Hx=Y.constructTagName("buttonsimple"),Yi={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},Po={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},qs={SIZE:Yi[32],TYPE:Po.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Hr=Y.constructTagName("button"),Ot={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ks={40:40,32:32,28:28,24:24},je={64:64,52:52,20:20,...Ks},Wi={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Do={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Le={VARIANT:Ot.PRIMARY,SIZE:Ks[32],COLOR:Wi.DEFAULT,TYPE_INTERNAL:Do.ICON,TYPE:Po.BUTTON,INVERTED:!1};var gn=l=>{class o extends l{constructor(){super(...arguments);this.variant=Le.VARIANT;this.color=Le.COLOR;this.typeInternal=Le.TYPE_INTERNAL}setVariant(a){this.setAttribute("variant",Object.values(Ot).includes(a)?a:Le.VARIANT)}setColor(a){!Object.values(Wi).includes(a)||this.variant===Ot.TERTIARY?this.setAttribute("color",`${Le.COLOR}`):this.setAttribute("color",a)}setSize(a){let m=this.typeInternal===Do.ICON?Object.values(je).includes(a)&&!(a===je[20]&&this.variant!==Ot.TERTIARY):Object.values(Ks).includes(a);this.setAttribute("size",m?`${a}`:`${Le.SIZE}`)}inferButtonType(){var h,m;let a=(m=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"))==null?void 0:m.assignedNodes().filter(T=>{var R;return T.nodeType!==Node.TEXT_NODE||((R=T.textContent)==null?void 0:R.trim())}).length;a&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Do.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!a&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Do.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Do.PILL,this.setAttribute("data-btn-type","pill"))}}return p([g({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),p([g({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),p([g({type:String})],o.prototype,"variant",2),p([g({type:String})],o.prototype,"color",2),p([Tt()],o.prototype,"typeInternal",2),o};var xp=H`
|
1
|
+
"use strict";(()=>{var Cg=Object.create;var Kl=Object.defineProperty;var Jh=Object.getOwnPropertyDescriptor;var wg=Object.getOwnPropertyNames;var Ng=Object.getPrototypeOf,Lg=Object.prototype.hasOwnProperty;var Rg=(l,o)=>()=>(o||l((o={exports:{}}).exports,o),o.exports);var Mg=(l,o,t,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of wg(o))!Lg.call(l,a)&&a!==t&&Kl(l,a,{get:()=>o[a],enumerable:!(i=Jh(o,a))||i.enumerable});return l};var Og=(l,o,t)=>(t=l!=null?Cg(Ng(l)):{},Mg(o||!l||!l.__esModule?Kl(t,"default",{value:l,enumerable:!0}):t,l));var p=(l,o,t,i)=>{for(var a=i>1?void 0:i?Jh(o,t):o,h=l.length-1,m;h>=0;h--)(m=l[h])&&(a=(i?m(o,t,a):m(a))||a);return i&&a&&Kl(o,t,a),a};var Xp=Rg((ra,Mn)=>{typeof navigator<"u"&&function(l,o){typeof ra=="object"&&typeof Mn<"u"?Mn.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=o())}(ra,function(){"use strict";var l="http://www.w3.org/2000/svg",o="",t=!1,i=-999999,a=function(r){t=!!r},h=function(){return t},m=function(r){o=r},T=function(){return o};function R(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 ut(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ut=function(s){return typeof s}:ut=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},ut(e)}var At=!0,Et=null,St=null,kt="",Ht=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Dt=!1,zt=Math.pow,jt=Math.sqrt,ie=Math.floor,or=Math.max,Se=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=ut(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 _e=function(){var e=0;return function(){return e+=1,kt+"__lottie_element_"+e}}();function Dl(e,r,s){var n,d,c,f,x,v,I,N;switch(f=Math.floor(e*6),x=e*6-f,v=s*(1-r),I=s*(1-x*r),N=s*(1-(1-x)*r),f%6){case 0:n=s,d=N,c=v;break;case 1:n=I,d=s,c=v;break;case 2:n=v,d=s,c=N;break;case 3:n=v,d=I,c=s;break;case 4:n=N,d=v,c=s;break;case 5:n=s,d=v,c=I;break;default:break}return[n,d,c]}function Fl(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=Fl(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),Dl(s[0],s[1],s[2])}function dh(e,r){var s=Fl(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),Dl(s[0],s[1],s[2])}function hh(e,r){var s=Fl(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),Dl(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){At=!!r},Lv=function(){return At},Rv=function(r){Et=r},Va=function(){return Et},HT=function(r){St=r},ph=function(){return St},Ba=function(r){ar=r},As=function(){return ar},Mv=function(r){kt=r},GT=function(){return kt};function gt(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 Ss=function(){var e=1,r=[],s,n,d={onmessage:function(){},postMessage:function(L){s({data:L})}},c={postMessage:function(L){d.onmessage({data:L})}};function f(E){if(window.Worker&&window.Blob&&h()){var L=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(L);return new Worker(P)}return s=E,d}function x(){n||(n=f(function(L){function P(){function z(X,S){var O,u,b=X.length,U,F,at,pt;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(pt=vt[U].pt.k.length,at=0;at<pt;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&&bt(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)}}}(),dt=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,pt,vt,Ct;for(U=0;U<F;U+=1){if(b=u[U],b.hasMask){var wt=b.masksProperties;for(pt=wt.length,at=0;at<pt;at+=1)if(wt[at].pt.k.i)wt[at].pt.k.c=wt[at].cl;else for(Ct=wt[at].pt.k.length,vt=0;vt<Ct;vt+=1)wt[at].pt.k[vt].s&&(wt[at].pt.k[vt].s[0].c=wt[at].cl),wt[at].pt.k[vt].e&&(wt[at].pt.k[vt].e[0].c=wt[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),dt(X),z(X.layers,X.assets),w(X.chars,X.assets),X.__complete=!0)}function bt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=et,lt.checkColors=ft,lt.checkChars=H,lt.checkPathProperties=Z,lt.checkShapes=dt,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(_){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}}()),L.data.type==="loadAnimation")c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})});else if(L.data.type==="complete"){var M=L.data.animation;c.dataManager.completeData(M),c.postMessage({id:L.data.id,payload:M,status:"success"})}else L.data.type==="loadData"&&c.assetLoader.load(L.data.path,L.data.fullPath,function(z){c.postMessage({id:L.data.id,payload:z,status:"success"})},function(){c.postMessage({id:L.data.id,status:"error"})})}),n.onmessage=function(E){var L=E.data,P=L.id,M=r[P];r[P]=null,L.status==="success"?M.onComplete(L.payload):M.onError&&M.onError()})}function v(E,L){e+=1;var P="processId_"+e;return r[P]={onComplete:E,onError:L},P}function I(E,L,P){x();var M=v(L,P);n.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function N(E,L,P){x();var M=v(L,P);n.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,L,P){x();var M=v(L,P);n.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:N,completeAnimation:B}}(),Ov=function(){var e=function(){var w=R("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=gt("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=R("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 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 N(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 L(){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:N,setPath:I,loadedImages:L,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}}(),_s={},Fv=function(r,s){_s[r]=s};function $v(e){return _s[e]}function zv(){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 ht=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=_e(),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],ht),ht.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")),Ss.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ht.prototype.onSetupError=function(){this.trigger("data_failed")},ht.prototype.setupAnimation=function(e){Ss.completeAnimation(e,this.configAnimation)},ht.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: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")},ht.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,Ss.completeAnimation(this.animationData,this.onSegmentComplete)},ht.prototype.onSegmentComplete=function(e){this.animationData=e;var r=Va();r&&r.initExpressions(this),this.loadNextSegment()},ht.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))},ht.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ht.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ht.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ht.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)}},ht.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ht.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()}},ht.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)},ht.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ht.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")},ht.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)}},ht.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")))},ht.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())},ht.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ht.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ht.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},ht.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()}},ht.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()}},ht.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"))}},ht.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")},ht.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)},ht.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()},ht.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ht.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ht.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)},ht.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ht.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ht.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ht.prototype.setLoop=function(e){this.loop=e},ht.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},ht.prototype.getVolume=function(){return this.audioController.getVolume()},ht.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ht.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ht.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ht.prototype.getPath=function(){return this.path},ht.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},ht.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},ht.prototype.hide=function(){this.renderer.hide()},ht.prototype.show=function(){this.renderer.show()},ht.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ht.prototype.updateDocumentData=function(e,r,s){try{var n=this.renderer.getElementByPath(e);n.updateDocumentData(r,s)}catch{}},ht.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))},ht.prototype.triggerRenderFrameError=function(e){var r=new Cv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},ht.prototype.triggerConfigError=function(e){var r=new wv(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,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 ht;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 N(){d+=1,ft()}function B(){d-=1}function E(S,O){S.addEventListener("destroy",x),S.addEventListener("_active",N),S.addEventListener("_idle",B),r.push({elem:O,animation:S}),n+=1}function L(S){var O=new ht;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 pt=R("div");pt.style.width="100%",pt.style.height="100%",pt.setAttribute("data-bm-type",u),at.appendChild(pt),v(pt,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 dt(){f=!0}function et(){f=!1,ft()}function bt(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=L,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=dt,e.unfreeze=et,e.setVolume=bt,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,f=10,x=11,v=1/(x-1),I=typeof Float32Array=="function";function N(_,y){return 1-3*y+3*_}function B(_,y){return 3*y-6*_}function E(_){return 3*_}function L(_,y,A){return((N(y,A)*_+B(y,A))*_+E(y))*_}function P(_,y,A){return 3*N(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=L(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=L(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:L(this._getTForX(y),k,V)},_precompute:function(){var y=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(y!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],A=this._p[2],k=0;k<x;++k)this._mSampleValues[k]=L(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]),dt=V+ft*v,et=P(dt,A,k);return et>=d?z(y,dt,A,k):et===0?dt: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",As()),lengths:Q("float32",As())}}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,L,P,M,z,w){var _=E*M+L*z+P*w-z*M-w*E-P*L;return _>-.001&&_<.001}function s(E,L,P,M,z,w,_,y,A){if(P===0&&w===0&&A===0)return r(E,L,M,z,_,y);var k=e.sqrt(e.pow(M-E,2)+e.pow(z-L,2)+e.pow(w-P,2)),D=e.sqrt(e.pow(_-E,2)+e.pow(y-L,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,L,P,M){var z=As(),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)*L[_],H[_]=A,Z[_]!==null&&(V+=zt(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 L=vh.newElement(),P=E.c,M=E.v,z=E.o,w=E.i,_,y=E._length,A=L.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),L.totalLength=k,L}function c(E){this.segmentLength=0,this.points=new Array(E)}function f(E,L){this.partialLength=E,this.point=L}var x=function(){var E={};return function(L,P,M,z){var w=(L[0]+"_"+L[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,dt=null;L.length===2&&(L[0]!==P[0]||L[1]!==P[1])&&r(L[0],L[1],P[0],P[1],L[0]+M[0],L[1]+M[1])&&r(L[0],L[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(_=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)*L[A]+3*zt(1-V,2)*V*(L[A]+M[A])+3*(1-V)*zt(V,2)*(P[A]+z[A])+zt(V,3)*P[A],ft[A]=D,dt!==null&&(Z+=zt(ft[A]-dt[A],2));Z=jt(Z),H+=Z,et.points[y]=new f(Z,ft),dt=ft}et.segmentLength=H,E[w]=et}return E[w]}}();function v(E,L){var P=L.percents,M=L.lengths,z=P.length,w=ie((z-1)*E),_=E*L.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,L,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]+_*_*_*L[0])*1e3)/1e3,k=e.round((y*y*y*E[1]+(_*y*y+y*_*y+y*y*_)*P[1]+(_*_*y+y*_*_+_*y*_)*M[1]+_*_*_*L[1])*1e3)/1e3;return[A,k]}var N=Q("float32",8);function B(E,L,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,dt=y*y*V*3,et=y*y*y,bt=V*V*H,lt=y*V*H+V*y*H+V*V*A,X=y*y*H+V*y*A+y*V*A,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,pt=A*A*H+H*A*A+A*H*A,vt=A*A*A;for(k=0;k<D;k+=1)N[k*4]=e.round((Z*E[k]+ft*P[k]+dt*M[k]+et*L[k])*1e3)/1e3,N[k*4+1]=e.round((bt*E[k]+lt*P[k]+X*M[k]+S*L[k])*1e3)/1e3,N[k*4+2]=e.round((O*E[k]+u*P[k]+b*M[k]+U*L[k])*1e3)/1e3,N[k*4+3]=e.round((F*E[k]+at*P[k]+pt*M[k]+vt*L[k])*1e3)/1e3;return N}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:s}}var yr=Vv(),Oi=i,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,N;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)}N=this.keyframesMetadata[c]||{};var B,E,L,P,M,z,w=I.t-s,_=v.t-s,y;if(v.to){N.bezierData||(N.bezierData=yr.buildBezierData(v.s,I.s||v.e,v.to,v.ti));var A=N.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{N.__fnct?z=N.__fnct:(z=ks.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,N.__fnct=z),L=z((e-_)/(w-_));var D=A.segmentLength*L,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||L===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,dt,et,bt;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?L=1:e<_?L=0:(v.o.x.constructor===Array?(N.__fnct||(N.__fnct=[]),N.__fnct[c]?z=N.__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],dt=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=ks.getBezierEasing(Z,ft,dt,et).get,N.__fnct[c]=z)):N.__fnct?z=N.__fnct:(Z=v.o.x,ft=v.o.y,dt=v.i.x,et=v.i.y,z=ks.getBezierEasing(Z,ft,dt,et).get,v.keyframeMetadata=z),L=z((e-_)/(w-_)))),y=I.s||v.e,bt=v.h===1?v.s[c]:v.s[c]+(y[c]-v.s[c])*L,this.propType==="multidimensional"?n[c]=bt:n=bt}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],N=r[2],B=r[3],E,L,P,M,z;return L=d*v+c*I+f*N+x*B,L<0&&(L=-L,v=-v,I=-I,N=-N,B=-B),1-L>1e-6?(E=Math.acos(L),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*N,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),N=d*c*f-x*v*I,B=x*v*f+d*c*I,E=x*c*f+d*v*I,L=d*v*f-x*c*I;return[B,E,L,N]}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!==Oi&&(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:Oi,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=Oi,this.pv=Oi,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 N=r.k[0].s.length;for(this.v=Q("float32",N),this.pv=Q("float32",N),d=0;d<N;d+=1)this.v[d]=Oi,this.pv[d]=Oi;this._caching={lastFrame:Oi,lastIndex:0,value:Q("float32",N)},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 Pi=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]=Pi.newElement(),this.o[s]=Pi.newElement(),this.i[s]=Pi.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]=Pi.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)Pi.release(d.v[f]),Pi.release(d.i[f]),Pi.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 $l(){this._length=0,this._maxLength=4,this.shapes=rt(this._maxLength)}$l.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},$l.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ce.release(this.shapes[e]);this._length=0};var ko=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 $l,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,dt,et,bt,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,dt=k.i[0].length,y.lastIndex=A,H=0;H<ft;H+=1)for(Z=0;Z<dt;Z+=1)bt=V?k.i[H][Z]:k.i[H][Z]+(D.i[H][Z]-k.i[H][Z])*et,_.i[H][Z]=bt,bt=V?k.o[H][Z]:k.o[H][Z]+(D.o[H][Z]-k.o[H][Z])*et,_.o[H][Z]=bt,bt=V?k.v[H][Z]:k.v[H][Z]+(D.v[H][Z]-k.v[H][Z])*et,_.v[H][Z]=bt}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=ko.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=ko.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 N=function(){var w=le;function _(y,A){this.v=ce.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ko.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=ko.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),dt=2*Math.PI*V/(y*2),et,bt,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){bt=k?D:V,lt=k?H:Z,X=k?ft:dt;var u=bt*Math.cos(S),b=bt*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 dt=k*Math.cos(Z),et=k*Math.sin(Z),bt=dt===0&&et===0?0:et/Math.sqrt(dt*dt+et*et),lt=dt===0&&et===0?0:-dt/Math.sqrt(dt*dt+et*et);dt+=+this.p.v[0],et+=+this.p.v[1],this.v.setTripleAt(dt,et,dt-bt*V*D*ft,et-lt*V*D*ft,dt+bt*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=ko.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=Se(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 L(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 N(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=L,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 N(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 L(u,b,U,F,at,pt,vt,Ct,wt,Kt,ke,Tr,Ce,se,De,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]=pt,this.props[6]=vt,this.props[7]=Ct,this.props[8]=wt,this.props[9]=Kt,this.props[10]=ke,this.props[11]=Tr,this.props[12]=Ce,this.props[13]=se,this.props[14]=De,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,pt,vt,Ct,wt,Kt,ke,Tr,Ce,se,De,Mt){var ct=this.props;if(u===1&&b===0&&U===0&&F===0&&at===0&&pt===1&&vt===0&&Ct===0&&wt===0&&Kt===0&&ke===1&&Tr===0)return ct[12]=ct[12]*u+ct[15]*Ce,ct[13]=ct[13]*pt+ct[15]*se,ct[14]=ct[14]*ke+ct[15]*De,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],we=ct[6],fi=ct[7],vi=ct[8],lr=ct[9],gi=ct[10],cr=ct[11],zi=ct[12],rn=ct[13],on=ct[14],sn=ct[15];return ct[0]=Dr*u+ui*at+Fr*wt+xr*Ce,ct[1]=Dr*b+ui*pt+Fr*Kt+xr*se,ct[2]=Dr*U+ui*vt+Fr*ke+xr*De,ct[3]=Dr*F+ui*Ct+Fr*Tr+xr*Mt,ct[4]=$r*u+zr*at+we*wt+fi*Ce,ct[5]=$r*b+zr*pt+we*Kt+fi*se,ct[6]=$r*U+zr*vt+we*ke+fi*De,ct[7]=$r*F+zr*Ct+we*Tr+fi*Mt,ct[8]=vi*u+lr*at+gi*wt+cr*Ce,ct[9]=vi*b+lr*pt+gi*Kt+cr*se,ct[10]=vi*U+lr*vt+gi*ke+cr*De,ct[11]=vi*F+lr*Ct+gi*Tr+cr*Mt,ct[12]=zi*u+rn*at+on*wt+sn*Ce,ct[13]=zi*b+rn*pt+on*Kt+sn*se,ct[14]=zi*U+rn*vt+on*ke+sn*De,ct[15]=zi*F+rn*Ct+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,pt=(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,Ct=new de;return Ct.props[0]=b,Ct.props[1]=U,Ct.props[4]=F,Ct.props[5]=at,Ct.props[12]=pt,Ct.props[13]=vt,Ct}function ft(u){var b=this.getInverseMatrix();return b.applyToPointArray(u[0],u[1],u[2]||0)}function dt(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],pt=this.props[1],vt=this.props[4],Ct=this.props[5],wt=this.props[12],Kt=this.props[13];F[0]=u[0]*at+u[1]*vt+wt,F[1]=u[0]*pt+u[1]*Ct+Kt,F[2]=b[0]*at+b[1]*vt+wt,F[3]=b[0]*pt+b[1]*Ct+Kt,F[4]=U[0]*at+U[1]*vt+wt,F[5]=U[0]*pt+U[1]*Ct+Kt}return F}function bt(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]),pt=S(u[12]),vt=S(u[13]);return"matrix("+b+","+U+","+F+","+at+","+pt+","+vt+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=f,this.rotateY=x,this.rotateZ=v,this.skew=N,this.skewFromAxis=B,this.shear=I,this.scale=E,this.setTransform=L,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=H,this.applyToPointArray=bt,this.applyToTriplePoints=et,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=_,this.inversePoints=dt,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?qt.searchAnimations(Th,Ka,xh):qt.searchAnimations()}function qv(e){Nv(e)}function Kv(e){Mv(e)}function Xv(e){return Ka===!0&&(e.animationData=JSON.parse(Th)),qt.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);As()>=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=qt.play,Rt.pause=qt.pause,Rt.setLocationHref=jv,Rt.togglePause=qt.togglePause,Rt.setSpeed=qt.setSpeed,Rt.setDirection=qt.setDirection,Rt.stop=qt.stop,Rt.searchAnimations=Ah,Rt.registerAnimation=qt.registerAnimation,Rt.loadAnimation=Xv,Rt.setSubframeRendering=qv,Rt.resize=qt.resize,Rt.goToAndStop=qt.goToAndStop,Rt.destroy=qt.destroy,Rt.setQuality=Zv,Rt.inBrowser=Qv,Rt.installPlugin=Jv,Rt.freeze=qt.freeze,Rt.unfreeze=qt.unfreeze,Rt.setVolume=qt.setVolume,Rt.mute=qt.mute,Rt.unmute=qt.unmute,Rt.getRegisteredAnimations=qt.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 ra>"u"?"undefined":qa(ra))==="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:ko.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=i,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 N,B;I.s*d<=n?N=0:N=(I.s*d-n)/s,I.e*d>=n+s?B=1:B=(I.e*d-n)/s,f.push([N,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,N,B,E,L=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(N=this.releasePathsData(M.pathsData),v=0;v<I;v+=1)B=yr.getSegmentsLength(c.shapes[v]),N.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=N}L+=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,L),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,N,B,E,L,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(N=E[x-1],I+N.addedLength<r.s)I+=N.addedLength,s.c=!1;else if(I>r.e){s.c=!1;break}else r.s<=I&&r.e>=I+N.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):(L=yr.getNewSegment(d[c].v[x-1],d[c].v[x],d[c].o[x-1],d[c].i[x],(r.s-I)/N.addedLength,(r.e-I)/N.addedLength,E[x-1]),this.addSegmentFromArray(L,s,B,z),z=!1,s.c=!1),I+=N.addedLength,B+=1;if(d[c].c&&E.length){if(N=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):(L=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(L,s,B,z),z=!1,s.c=!1)}else s.c=!1;I+=N.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 Cs(){}$([Ye],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 f=ce.newElement();f.c=e.c;var x,v,I,N,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,N=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,N,B,E,c);return f},Cs.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 zl=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 N,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?(N=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?(N=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)):(N=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){N=[],B=[];var E=this.px,L=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(N[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),N[1]=L.getValueAtTime((L.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=L.getValueAtTime(L.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(N[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),N[1]=L.getValueAtTime(L.keyframes[L.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=L.getValueAtTime((L.keyframes[L.keyframes.length-1].t-.01)/I,0)):(N=[E.pv,L.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=L.getValueAtTime((L._caching.lastFrame+L.offsetTime-.01)/I,L.offsetTime))}else B=e,N=B;this.v.rotate(-Math.atan2(N[1]-B[1],N[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,N){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(N||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,N){return new f(v,I,N)}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=zl.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 N=this.elemsData[n].it,B=N[N.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,L=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;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,L,!1),_+=L)}else if(E<0){for(;_>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;L&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-L,!0),_-=L)}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 ws(){}$([Ye],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=ce.newElement();s.c=e.c;var n,d=e._length,c,f,x,v,I,N,B=0,E,L,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)),N=I?Math.min(I/2,r)/I:0,z=c[0]+(v[0]-c[0])*N,E=z,w=c[1]-(c[1]-v[1])*N,L=w,P=E-(E-c[0])*le,M=L-(L-c[1])*le,s.setTripleAt(E,L,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)),N=I?Math.min(I/2,r)/I:0,P=c[0]+(v[0]-c[0])*N,E=P,M=c[1]+(v[1]-c[1])*N,L=M,z=E-(E-c[0])*le,w=L-(L-c[1])*le,s.setTripleAt(E,L,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,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 Vl(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&&wo(e,r)&&(r=ci(e,n,1/3)),d&&wo(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(Vl(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 Vl(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 Ns(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);Ns(f[0],x[0],s+1,n,d,c),Ns(f[0],x[1],s+1,n,d,c),Ns(f[1],x[0],s+1,n,d,c),Ns(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 Ns(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 Bl(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=Bl(Bl(d,c),Bl(f,x));return Vl(v[2])?null:[v[0]/v[2],v[1]/v[2]]}function Co(e,r,s){return[e[0]+Math.cos(r)*s,e[1]-Math.sin(r)*s]}function Ul(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function wo(e,r){return Xa(e[0],r[0])&&Xa(e[1],r[1])}function Ls(){}$([Ye],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 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,N=r[1]-Math.sin(s)*n*d;e.setTripleAt(I,N,I+Math.cos(x)*c,N-Math.sin(x)*c,I+Math.cos(v)*f,N-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],N=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]-N[0],2)+Math.pow(v[1]-N[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),N=r.point(x);Rh(e,N,I,c,s,v/((n+1)*2),v/((n+1)*2),d),c=-c}return c}Ls.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},Ls.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,N;for(s=0;s<n;s+=1){if(I=this.shapes[s],N=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(N.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)N.addShape(this.processPath(r[d],f,x,v));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Hl(e,r,s){var n=Math.atan2(r[0]-e[0],r[1]-e[1]);return[Co(e,n,s),Co(r,n,s)]}function No(e,r){var s,n,d,c,f,x,v;v=Hl(e.points[0],e.points[1],r),s=v[0],n=v[1],v=Hl(e.points[1],e.points[2],r),d=v[0],c=v[1],v=Hl(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 N=Qa(f,x,d,c);return N===null&&(N=f),new Bt(s,I,N,x)}function Oh(e,r,s,n,d){var c=r.points[3],f=s.points[0];if(n===3||wo(c,f))return c;if(n===2){var x=-r.tangentAngle(1),v=-s.tangentAngle(0)+Math.PI,I=Qa(c,Co(c,x+Math.PI/2,100),f,Co(f,x+Math.PI/2,100)),N=I?Ul(I,c):Ul(c,f)/2,B=Co(c,x,2*N*le);return e.setXYAt(B[0],B[1],"o",e.length()-1),B=Co(f,v,2*N*le),e.setTripleAt(f[0],f[1],f[0],f[1],B[0],B[1],e.length()),f}var E=wo(c,r.points[2])?r.points[0]:r.points[2],L=wo(f,s.points[1])?s.points[3]:s.points[1],P=Qa(E,c,f,L);return P&&Ul(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[No(e,r)];if(s.length===1||Xa(s[1],1))return c=e.split(s[0]),n=c[0],d=c[1],[No(n,r),No(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],[No(n,r),No(f,r),No(d,r)]}function Rs(){}$([Ye],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=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 N=null,B=null;for(f=0;f<I.length;f+=1){var E=I[f];for(B&&(N=Oh(d,B,E[0],s,n)),B=E[E.length-1],x=0;x<E.length;x+=1)v=E[x],N&&wo(v.points[0],N)?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()),N=v.points[3]}return I.length&&Oh(d,B,I[0][0],s,n),d},Rs.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,N;for(s=0;s<n;s+=1){if(I=this.shapes[s],N=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(N.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)N.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 Di=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,N=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 L(S,O){var u=R("span");u.setAttribute("aria-hidden",!0),u.style.fontFamily=O;var b=R("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=gt("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 pt(vt){return u==="svg"?(b.textContent=vt,b.getComputedTextLength()):b.measureText(vt).width}return{measureText:pt}}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(ke){ke.helper=M(ke),ke.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,pt,vt;if(u[b].loaded=!1,u[b].monoCase=L(u[b].fFamily,"monospace"),u[b].sansCase=L(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(pt=document.querySelectorAll('style[f-forigin="p"][f-family="'+u[b].fFamily+'"], style[f-origin="3"][f-family="'+u[b].fFamily+'"]'),pt.length>0&&(at=!1),at){var Ct=R("style");Ct.setAttribute("f-forigin",u[b].fOrigin),Ct.setAttribute("f-origin",u[b].origin),Ct.setAttribute("f-family",u[b].fFamily),Ct.type="text/css",Ct.innerText="@font-face {font-family: "+u[b].fFamily+"; font-style: normal; src: url('"+u[b].fPath+"');}",O.appendChild(Ct)}}else if(u[b].fOrigin==="g"||u[b].origin===1){for(pt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),vt=0;vt<pt.length;vt+=1)pt[vt].href.indexOf(u[b].fPath)!==-1&&(at=!1);if(at){var wt=R("link");wt.setAttribute("f-forigin",u[b].fOrigin),wt.setAttribute("f-origin",u[b].origin),wt.type="text/css",wt.rel="stylesheet",wt.href=u[b].fPath,document.body.appendChild(wt)}}else if(u[b].fOrigin==="t"||u[b].origin===2){for(pt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),vt=0;vt<pt.length;vt+=1)u[b].fPath===pt[vt].src&&(at=!1);if(at){var Kt=R("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+"|"),pt=F.measureText("||");b.cache[U]=(at-pt)/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<=N}function ft(S){return Z(S.substr(0,2))&&Z(S.substr(2,2))}function dt(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 bt(){this.isLoaded=!0}var lt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};lt.isModifier=D,lt.isZeroWidthJoiner=V,lt.isFlagEmoji=ft,lt.isRegionalCode=Z,lt.isCombinedCharacter=dt,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:bt};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 Gl=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 Ms(s[n],r),this.effectElements.push(c)}function Ms(e,r){this.init(e,r)}$([oe],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 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=Gl(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=_e(),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 Ie(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)}Ie.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],Ie),Ie.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))},Ie.prototype.show=function(){},Ie.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ie.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ie.prototype.resume=function(){this._canPlay=!0},Ie.prototype.setRate=function(e){this.audio.rate(e)},Ie.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ie.prototype.getBaseElement=function(){return null},Ie.prototype.destroy=function(){},Ie.prototype.sourceRectAtTime=function(){},Ie.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 Ie(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 Di,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 Lo(){}Lo.prototype={initTransform:function(){var r=new de;this.finalTransform={mProp:this.data.ks?zl.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 Fi(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=[],N,B,E=_e(),L,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?(L=gt("rect"),L.setAttribute("fill","#ffffff"),L.setAttribute("width",this.element.comp.data.w||0),L.setAttribute("height",this.element.comp.data.h||0),I.push(L)):L=null,f=gt("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=_e(),P=gt("filter"),P.setAttribute("id",y),M=gt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),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=gt("g");for(N=0;N<B;N+=1)A.appendChild(I[N]);var k=gt("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:L},this.viewData[d].prop.k||this.drawPath(x[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=gt(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)}Fi.prototype.getMaskProperty=function(e){return this.viewData[e].prop},Fi.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))}},Fi.prototype.getMaskelement=function(){return this.maskElement},Fi.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},Fi.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}},Fi.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=gt("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=gt("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 Yl(e){var r,s="SourceGraphic",n=e.data.ef?e.data.ef.length:0,d=_e(),c=Os.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)}Yl.prototype.renderFrame=function(e){var r,s=this.filters.length;for(r=0;r<s;r+=1)this.filters[r].renderFrame(e)},Yl.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 Ps(){}Ps.prototype={initRendererElement:function(){this.layerElement=gt("g")},createContainerElements:function(){this.matteElement=gt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var s=gt("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=gt("clipPath"),d=gt("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=_e();if(n.setAttribute("id",c),n.appendChild(d),this.globalData.defs.appendChild(n),this.checkMasks()){var f=gt("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 Fi(this.data,this,this.globalData),this.renderableEffectsManager=new Yl(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=gt("mask");x.setAttribute("id",s),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=gt("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=_e(),d=Os.createFilter(n),this.globalData.defs.appendChild(d),d.appendChild(Os.createAlphaToLuminanceFilter()),f=gt("g"),f.appendChild(c),x.appendChild(f),f.setAttribute("filter","url("+T()+"#"+n+")"))}else if(r===2){var v=gt("mask");v.setAttribute("id",s),v.setAttribute("mask-type","alpha");var I=gt("g");v.appendChild(I),n=_e(),d=Os.createFilter(n);var N=gt("feComponentTransfer");N.setAttribute("in","SourceGraphic"),d.appendChild(N);var B=gt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),N.appendChild(B),this.globalData.defs.appendChild(d);var E=gt("rect");E.setAttribute("width",this.comp.data.w),E.setAttribute("height",this.comp.data.h),E.setAttribute("x","0"),E.setAttribute("y","0"),E.setAttribute("fill","#ffffff"),E.setAttribute("opacity","0"),I.setAttribute("filter","url("+T()+"#"+n+")"),I.appendChild(E),c=gt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),Bh.maskType||(v.setAttribute("mask-type","luminance"),d.appendChild(Os.createAlphaToLuminanceFilter()),f=gt("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 Ro(){}Ro.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()}};$([Ja,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}}$([di,Lo,Ps,Ro,hi,Ds],Fs),Fs.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=gt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},Fs.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=gt("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 $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}},$([oe],$s);function Mo(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,s)}Mo.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},Mo.prototype.setGradientData=function(e,r){var s=_e(),n=gt(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=gt("stop"),n.appendChild(c),d.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+T()+"#"+s+")"),this.gf=n,this.cst=d},Mo.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var s,n,d,c=gt("mask"),f=gt("path");c.appendChild(f);var x=_e(),v=_e();c.setAttribute("id",v);var I=gt(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 N=this.stops;for(n=e.g.p*4;n<d;n+=2)s=gt("stop"),s.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(s),N.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=N,this.maskId=v,r.msElem=f}},$([oe],Mo);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}$([Mo,oe],Zh);function xg(){this.it=[],this.prevViewData=[],this.gr=gt("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 N;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,L){(L||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(L||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function f(B,E,L){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||L,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,L){var P=E.style;(E.c._mdf||L)&&P.pElem.setAttribute("fill","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||L)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function v(B,E,L){I(B,E,L),N(B,E,L)}function I(B,E,L){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,w=E.e.v;if(E.o._mdf||L){var _=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(_,E.o.v)}if(E.s._mdf||L){var y=B.t===1?"x1":"cx",A=y==="x1"?"y1":"cy";P.setAttribute(y,z[0]),P.setAttribute(A,z[1]),M&&!E.g._collapsable&&(E.of.setAttribute(y,z[0]),E.of.setAttribute(A,z[1]))}var k,D,V,H;if(E.g._cmdf||L){k=E.cst;var Z=E.g.c;for(V=k.length,D=0;D<V;D+=1)H=k[D],H.setAttribute("offset",Z[D*4]+"%"),H.setAttribute("stop-color","rgb("+Z[D*4+1]+","+Z[D*4+2]+","+Z[D*4+3]+")")}if(M&&(E.g._omdf||L)){var 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||L)&&(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 dt;if((E.s._mdf||E.e._mdf||L)&&(dt=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)),P.setAttribute("r",dt),M&&!E.g._collapsable&&E.of.setAttribute("r",dt)),E.e._mdf||E.h._mdf||E.a._mdf||L){dt||(dt=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)));var et=Math.atan2(w[1]-z[1],w[0]-z[0]),bt=E.h.v;bt>=1?bt=.99:bt<=-1&&(bt=-.99);var lt=dt*bt,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 N(B,E,L){var P=E.style,M=E.d;M&&(M._mdf||L)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||L)&&P.pElem.setAttribute("stroke","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||L)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||L)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return 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,Lo,Ps,Hh,Ro,hi,Ds],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"?Mo: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"]=Gl(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"]=Gl(e.bm)),r},Gt.prototype.createTransformElement=function(e,r){var s=zl.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,N,B,E=[],L=[],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,N=0;N<B;N+=1)r[v].prevViewData[N]=r[v].it[N];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)),L.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),L.push(M));this.addProcessedElement(e[v],v+1)}for(I=E.length,v=0;v<I;v+=1)E[v].closed=!0;for(I=L.length,v=0;v<I;v+=1)L[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 Wl(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}}Wl.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 fe(e,r){this._frameId=i,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)}fe.prototype.defaultBoxWidth=[0,0],fe.prototype.copyData=function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},fe.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},fe.prototype.searchProperty=function(){return this.searchKeyframes()},fe.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},fe.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},fe.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}},fe.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},fe.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),Di.isCombinedCharacter(d)?f=!0:d>=55296&&d<=56319?Di.isRegionalFlag(e,s)?v=e.substr(s,14):(c=e.charCodeAt(s+1),c>=56320&&c<=57343&&(Di.isModifier(d,c)?(v=e.substr(s,2),f=!0):Di.isFlagEmoji(e.substr(s,4))?v=e.substr(s,4):v=e.substr(s,2))):d>56319?(c=e.charCodeAt(s+1),Di.isVariationSelector(d)&&(f=!0)):Di.isZeroWidthJoiner(d)&&(f=!0,x=!0),f?(r[r.length-1]+=v,f=!1):r.push(v),s+=v.length;return r},fe.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,N=0,B=0,E=0,L=[],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],dt,et;H;){et=this.buildFinalText(e.t),dt=0,P=0,c=et.length,D=e.tr/1e3*e.finalSize;var bt=-1;for(d=0;d<c;d+=1)V=et[d].charCodeAt(0),f=!1,et[d]===" "?bt=d:(V===13||V===3)&&(P=0,f=!0,dt+=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]!==" "?(bt===-1?c+=1:d=bt,dt+=e.finalLineHeight||e.finalSize*1.2,et.splice(d,bt===d?1:0,"\r"),bt=-1,P=0):(P+=A,P+=D);dt+=_.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ft<dt?(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,L.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:N,n:f,anIndexes:[],val:v,line:E,animatorJustifyOffset:0}),I==2){if(N+=A,v===""||v===" "||d===c-1){for((v===""||v===" ")&&(N-=A);B<=d;)n[B].an=N,n[B].ind=x,n[B].extra=A,B+=1;x+=1,N=0}}else if(I==3){if(N+=A,v===""||d===c-1){for(v===""&&(N-=A);B<=d;)n[B].an=N,n[B].ind=x,n[B].extra=A,B+=1;N=0,x+=1}}else n[x].ind=x,n[x].extra=0,x+=1;if(e.l=n,M=P>M?P:M,L.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=L;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,pt;if(O.s.rn===1)for(d=0;d<c;d+=1)u=n[d],at!=u.anIndexes[z]&&(at=u.anIndexes[z],pt=F.splice(Math.floor(Math.random()*F.length),1)[0]),u.anIndexes[z]=pt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=_.ascent*e.finalSize/100},fe.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)},fe.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},fe.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},fe.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,N=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:N=1+this.xe.v/100;var B=ks.getBezierEasing(x,v,I,N).get,E=0,L=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===L?E=f>=P?1:0:E=e(0,r(.5/(P-L)+(f-L)/(P-L),1)),E=B(E);else if(M===3)P===L?E=f>=P?0:1:E=1-e(0,r(.5/(P-L)+(f-L)/(P-L),1)),E=B(E);else if(M===4)P===L?E=0:(E=e(0,r(.5/(P-L)+(f-L)/(P-L),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===L)E=0;else{var z=P-L;f=r(e(0,f+.5-L),P-L);var w=-z/2+f,_=z/2;E=Math.sqrt(1-w*w/(_*_))}E=B(E)}else M===6?(P===L?E=0:(f=r(e(0,f+.5-L),P-L),E=(1+Math.cos(Math.PI+Math.PI*2*f/(P-L)))/2),E=B(E)):(f>=s(L)&&(f-L<0?E=e(0,r(r(P,1)-(L-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,N=this.e.v/x+v;if(I>N){var B=I;I=N,N=B}this.finalS=I,this.finalE=N}},$([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 $i(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)}$i.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)},$i.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,N,B,E=e.l,L,P,M,z,w,_,y,A,k,D,V,H,Z,ft,dt;if(this._hasMaskedPath){if(dt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var et=dt.v;this._pathData.r.v&&(et=et.reverse()),L={tLength:0,segments:[]},B=et._length-1;var bt;for(H=0,N=0;N<B;N+=1)bt=yr.buildBezierData(et.v[N],et.v[N+1],[et.o[N][0]-et.v[N][0],et.o[N][1]-et.v[N][1]],[et.i[N+1][0]-et.v[N+1][0],et.i[N+1][1]-et.v[N+1][1]]),L.tLength+=bt.segmentLength,L.segments.push(bt),H+=bt.segmentLength;N=B,dt.v.c&&(bt=yr.buildBezierData(et.v[N],et.v[0],[et.o[N][0]-et.v[N][0],et.o[N][1]-et.v[N][1]],[et.i[0][0]-et.v[0][0],et.i[0][1]-et.v[0][1]]),L.tLength+=bt.segmentLength,L.segments.push(bt),H+=bt.segmentLength),this._pathData.pi=L}if(L=this._pathData.pi,P=this._pathData.f.v,y=0,_=1,z=0,w=!0,D=L.segments,P<0&&dt.v.c)for(L.tLength<Math.abs(P)&&(P=-Math.abs(P)%L.tLength),y=D.length-1,k=D[y].points,_=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,pt,vt,Ct,wt=P,Kt=y,ke=_,Tr=-1,Ce,se,De,Mt,ct,Dr,ui,Fr,xr="",$r=this.defaultPropsArray,zr;if(e.j===2||e.j===1){var we=0,fi=0,vi=e.j===2?-.5:-1,lr=0,gi=!0;for(N=0;N<B;N+=1)if(E[N].n){for(we&&(we+=fi);lr<N;)E[lr].animatorJustifyOffset=we,lr+=1;we=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[N].anIndexes[u],d.a[u].s.totalChars),F.length?we+=S.t.v*F[0]*vi:we+=S.t.v*F*vi);gi=!1}for(we&&(we+=fi);lr<N;)E[lr].animatorJustifyOffset=we,lr+=1}for(N=0;N<B;N+=1){if(c.reset(),Ce=1,E[N].n)v=0,I+=e.yOffset,I+=X?1:0,P=wt,X=!1,this._hasMaskedPath&&(y=Kt,_=ke,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[N].line){switch(e.j){case 1:P+=H-e.lineWidths[E[N].line];break;case 2:P+=(H-e.lineWidths[E[N].line])/2;break;default:break}Tr=E[N].line}at!==E[N].ind&&(E[at]&&(P+=E[at].extra),P+=E[N].an/2,at=E[N].ind),P+=s[0]*E[N].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[N].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[N].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,Ct=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-s[0]*E[N].an*.005,-(s[1]*lt)*.01),w=!1):k&&(z+=M.partialLength,_+=1,_>=k.length&&(_=0,y+=1,D[y]?k=D[y].points:dt.v.c?(_=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[_],V=M.partialLength));pt=E[N].an/2-E[N].add,c.translate(-pt,0,0)}else pt=E[N].an/2-E[N].add,c.translate(-pt,0,0),c.translate(-s[0]*E[N].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[N].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&&(De=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[N].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[N].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[N].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?Ce+=(S.o.v*F[0]-Ce)*F[0]:Ce+=(S.o.v*F-Ce)*F),e.strokeWidthAnim&&S.sw.propType&&(F.length?De+=S.sw.v*F[0]:De+=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[N].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=De<0?0:De),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 zi=Math.atan(ft)*180/Math.PI;M.point[0]<A.point[0]&&(zi+=180),c.rotate(-zi*Math.PI/180)}c.translate(vt,Ct,0),P-=s[0]*E[N].an*.005,E[N+1]&&at!==E[N+1].ind&&(P+=E[N].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[N].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[N].line]),0,0);break;case 2:c.translate(E[N].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[N].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(pt,0,0),c.translate(s[0]*E[N].an*.005,s[1]*lt*.01,0),v+=E[N].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=Ce}x<=N?(U=new Wl(zr,Dr,ui,Fr,xr,$r),this.renderedLetters.push(U),x+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[N],this.lettersChangedFlag=U.update(zr,Dr,ui,Fr,xr,$r)||this.lettersChangedFlag)}}},$i.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},$i.prototype.mHelper=new de,$i.prototype.defaultPropsArray=[],$([oe],$i);function We(){}We.prototype.initElement=function(e,r,s){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,s),this.textProperty=new fe(this,e.t,this.dynamicProperties),this.textAnimator=new $i(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 Wl,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,Lo,Ps,Ro,hi,Ds,We],Or),Or.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=gt("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,N="",B=this.data.singleShape,E=0,L=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,L=s.ps?s.ps[1]+s.ascent:0,e=0;e<r;e+=1)v=this.textSpans[e].span||gt("tspan"),v.textContent=_[e],v.setAttribute("x",0),v.setAttribute("y",L),v.style.display="inherit",z.appendChild(v),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=v,L+=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:gt(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=gt("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,L+=s.yOffset,L+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(s,I,f[e].line,E,L),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 zs(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",N)}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 jl(e,r,s){this.initElement(e,r,s)}$([Fs],jl),jl.prototype.createContent=function(){var e=gt("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,Lo,Ro,hi],mi);function Jt(){}$([he],Jt),Jt.prototype.createNull=function(e){return new mi(e,this.globalData,this)},Jt.prototype.createShape=function(e){return new Gt(e,this.globalData,this)},Jt.prototype.createText=function(e){return new Or(e,this.globalData,this)},Jt.prototype.createImage=function(e){return new Fs(e,this.globalData,this)},Jt.prototype.createSolid=function(e){return new jl(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=gt("clipPath"),n=gt("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var d=_e();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,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)}}}},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 Pr(){}$([di,Lo,Ro,hi,Ds],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 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,Pr,Ps],zs),zs.prototype.createComp=function(e){return new zs(e,this.globalData,this)};function ql(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=gt("svg");var s="";if(r&&r.title){var n=gt("title"),d=_e();n.setAttribute("id",d),n.textContent=r.title,this.svgElement.appendChild(n),s+=d}if(r&&r.description){var c=gt("desc"),f=_e();c.setAttribute("id",f),c.textContent=r.description,this.svgElement.appendChild(c),s+=" "+f}s&&this.svgElement.setAttribute("aria-labelledby",s);var x=gt("defs");this.svgElement.appendChild(x);var v=gt("g");this.svgElement.appendChild(v),this.layerElement=v,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return $([Jt],ql),ql.prototype.createComp=function(e){return new zs(e,this.globalData,this)},Fv("svg",ql),li.registerModifier("tm",nr),li.registerModifier("pb",Cs),li.registerModifier("rp",Er),li.registerModifier("rd",ws),li.registerModifier("zz",Ls),li.registerModifier("op",Rs),Rt})});var an=globalThis,nn=an.ShadowRoot&&(an.ShadyCSS===void 0||an.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xl=Symbol(),tp=new WeakMap,Vs=class{constructor(o,t,i){if(this._$cssResult$=!0,i!==Xl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(nn&&o===void 0){let i=t!==void 0&&t.length===1;i&&(o=tp.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),i&&tp.set(t,o))}return o}toString(){return this.cssText}},ep=l=>new Vs(typeof l=="string"?l:l+"",void 0,Xl),G=(l,...o)=>{let t=l.length===1?l[0]:o.reduce((i,a,h)=>i+(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,Xl)},Zl=(l,o)=>{if(nn)l.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let i=document.createElement("style"),a=an.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=t.cssText,l.appendChild(i)}},ln=nn?l=>l:l=>l instanceof CSSStyleSheet?(o=>{let t="";for(let i of o.cssRules)t+=i.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:"",Ql=bi.reactiveElementPolyfillSupport,Bs=(l,o)=>l,Us={toAttribute(l,o){switch(o){case Boolean:l=l?Bg:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,o){let t=l;switch(o){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,o)=>!Pg(l,o),ip={attribute:!0,type:String,converter:Us,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(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=ip){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let i=Symbol(),a=this.getPropertyDescriptor(o,i,t);a!==void 0&&Dg(this.prototype,o,a)}}static getPropertyDescriptor(o,t,i){var m;let{get:a,set:h}=(m=Fg(this.prototype,o))!=null?m:{get(){return this[t]},set(T){this[t]=T}};return{get(){return a==null?void 0:a.call(this)},set(T){let R=a==null?void 0:a.call(this);h.call(this,T),this.requestUpdate(o,R,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:ip}static _$Ei(){if(this.hasOwnProperty(Bs("elementProperties")))return;let o=Vg(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Bs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bs("properties"))){let t=this.properties,i=[...$g(t),...zg(t)];for(let a of i)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[i,a]of t)this.elementProperties.set(i,a)}this._$Eh=new Map;for(let[t,i]of this.elementProperties){let a=this._$Eu(t,i);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let i=new Set(o.flat(1/0).reverse());for(let a of i)t.unshift(ln(a))}else o!==void 0&&t.push(ln(o));return t}static _$Eu(o,t){let i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((i=o.hostConnected)==null||i.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let i of t.keys())this.hasOwnProperty(i)&&(o.set(i,this[i]),delete this[i]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Zl(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var a;return(a=i.hostConnected)==null?void 0:a.call(i)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(o,t,i){this._$AK(o,i)}_$EC(o,t){var h;let i=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,i);if(a!==void 0&&i.reflect===!0){let m=(((h=i.converter)==null?void 0:h.toAttribute)!==void 0?i.converter:Us).toAttribute(t,i.type);this._$Em=o,m==null?this.removeAttribute(a):this.setAttribute(a,m),this._$Em=null}}_$AK(o,t){var h;let i=this.constructor,a=i._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let m=i.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(o,t,i){var a;if(o!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(o)),!((a=i.hasChanged)!=null?a:cn)(this[o],t))return;this.P(o,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,i){var a;this._$AL.has(o)||this._$AL.set(o,t),i.reflect===!0&&this._$Em!==o&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=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 o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(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 o=!1,this._$EU(),h}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(i=>{var a;return(a=i.hostUpdated)==null?void 0:a.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},ap;Vr.elementStyles=[],Vr.shadowRootOptions={mode:"open"},Vr[Bs("elementProperties")]=new Map,Vr[Bs("finalized")]=new Map,Ql==null||Ql({ReactiveElement:Vr}),((ap=bi.reactiveElementVersions)!=null?ap:bi.reactiveElementVersions=[]).push("2.0.4");var Gs=globalThis,dn=Gs.trustedTypes,np=dn?dn.createPolicy("lit-html",{createHTML:l=>l}):void 0,ec="$lit$",Br=`lit$${Math.random().toFixed(9).slice(2)}$`,rc="?"+Br,Ug=`<${rc}>`,Ui=document,Ys=()=>Ui.createComment(""),Ws=l=>l===null||typeof l!="object"&&typeof l!="function",ic=Array.isArray,up=l=>ic(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Jl=`[
|
3
|
+
\f\r]`,Hs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lp=/-->/g,cp=/>/g,Vi=RegExp(`>|${Jl}(?:([^\\s"'>=/]+)(${Jl}*=${Jl}*(?:[^
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),dp=/'/g,hp=/"/g,fp=/^(?:script|style|textarea|title)$/i,oc=l=>(o,...t)=>({_$litType$:l,strings:o,values:t}),C=oc(1),ZT=oc(2),QT=oc(3),Ne=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),pp=new WeakMap,Bi=Ui.createTreeWalker(Ui,129);function vp(l,o){if(!ic(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return np!==void 0?np.createHTML(o):o}var gp=(l,o)=>{let t=l.length-1,i=[],a,h=o===2?"<svg>":o===3?"<math>":"",m=Hs;for(let T=0;T<t;T++){let R=l[T],$,q,K=-1,nt=0;for(;nt<R.length&&(m.lastIndex=nt,q=m.exec(R),q!==null);)nt=m.lastIndex,m===Hs?q[1]==="!--"?m=lp:q[1]!==void 0?m=cp:q[2]!==void 0?(fp.test(q[2])&&(a=RegExp("</"+q[2],"g")),m=Vi):q[3]!==void 0&&(m=Vi):m===Vi?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?Vi:q[3]==='"'?hp:dp):m===hp||m===dp?m=Vi:m===lp||m===cp?m=Hs:(m=Vi,a=void 0);let Q=m===Vi&&l[T+1].startsWith("/>")?" ":"";h+=m===Hs?R+Ug:K>=0?(i.push($),R.slice(0,K)+ec+R.slice(K)+Br+Q):R+Br+(K===-2?T:Q)}return[vp(l,h+(l[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),i]},js=class l{constructor({strings:o,_$litType$:t},i){let a;this.parts=[];let h=0,m=0,T=o.length-1,R=this.parts,[$,q]=gp(o,t);if(this.el=l.createElement($,i),Bi.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(a=Bi.nextNode())!==null&&R.length<T;){if(a.nodeType===1){if(a.hasAttributes())for(let K of a.getAttributeNames())if(K.endsWith(ec)){let nt=q[m++],Q=a.getAttribute(K).split(Br),rt=/([.?@])?(.*)/.exec(nt);R.push({type:1,index:h,name:rt[2],strings:Q,ctor:rt[1]==="."?pn:rt[1]==="?"?mn:rt[1]==="@"?un:Gi}),a.removeAttribute(K)}else K.startsWith(Br)&&(R.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],Ys()),Bi.nextNode(),R.push({type:2,index:++h});a.append(K[nt],Ys())}}}else if(a.nodeType===8)if(a.data===rc)R.push({type:2,index:h});else{let K=-1;for(;(K=a.data.indexOf(Br,K+1))!==-1;)R.push({type:7,index:h}),K+=Br.length-1}h++}}static createElement(o,t){let i=Ui.createElement("template");return i.innerHTML=o,i}};function Hi(l,o,t=l,i){var m,T,R;if(o===Ne)return o;let a=i!==void 0?(m=t.o)==null?void 0:m[i]:t.l,h=Ws(o)?void 0:o._$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,i)),i!==void 0?((R=t.o)!=null?R:t.o=[])[i]=a:t.l=a),a!==void 0&&(o=Hi(l,a._$AS(l,o.values),a,i)),o}var hn=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var $;let{el:{content:t},parts:i}=this._$AD,a=(($=o==null?void 0:o.creationScope)!=null?$:Ui).importNode(t,!0);Bi.currentNode=a;let h=Bi.nextNode(),m=0,T=0,R=i[0];for(;R!==void 0;){if(m===R.index){let q;R.type===2?q=new Oo(h,h.nextSibling,this,o):R.type===1?q=new R.ctor(h,R.name,R.strings,this,o):R.type===6&&(q=new fn(h,this,o)),this._$AV.push(q),R=i[++T]}m!==(R==null?void 0:R.index)&&(h=Bi.nextNode(),m++)}return Bi.currentNode=Ui,a}p(o){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,t),t+=i.strings.length-2):i._$AI(o[t])),t++}},Oo=class l{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,i,a){var h;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=i,this.options=a,this.v=(h=a==null?void 0:a.isConnected)!=null?h:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Hi(this,o,t),Ws(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==Ne&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):up(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==W&&Ws(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ui.createTextNode(o)),this._$AH=o}$(o){var h;let{values:t,_$litType$:i}=o,a=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=js.createElement(vp(i.h,i.h[0]),this.options)),i);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(o){let t=pp.get(o.strings);return t===void 0&&pp.set(o.strings,t=new js(o)),t}k(o){ic(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,a=0;for(let h of o)a===t.length?t.push(i=new l(this.O(Ys()),this.O(Ys()),this,this.options)):i=t[a],i._$AI(h),a++;a<t.length&&(this._$AR(i&&i._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);o&&o!==this._$AB;){let a=o.nextSibling;o.remove(),o=a}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,i,a,h){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(o,t=this,i,a){let h=this.strings,m=!1;if(h===void 0)o=Hi(this,o,t,0),m=!Ws(o)||o!==this._$AH&&o!==Ne,m&&(this._$AH=o);else{let T=o,R,$;for(o=h[0],R=0;R<h.length-1;R++)$=Hi(this,T[i+R],t,R),$===Ne&&($=this._$AH[R]),m||(m=!Ws($)||$!==this._$AH[R]),$===W?o=W:o!==W&&(o+=($!=null?$:"")+h[R+1]),this._$AH[R]=$}m&&!a&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},pn=class extends Gi{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},mn=class extends Gi{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},un=class extends Gi{constructor(o,t,i,a,h){super(o,t,i,a,h),this.type=5}_$AI(o,t=this){var m;if((o=(m=Hi(this,o,t,0))!=null?m:W)===Ne)return;let i=this._$AH,a=o===W&&i!==W||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,h=o!==W&&(i===W||a);a&&this.element.removeEventListener(this.name,this,i),h&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,o):this._$AH.handleEvent(o)}},fn=class{constructor(o,t,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){Hi(this,o)}},bp={M:ec,P:Br,A:rc,C:1,L:gp,R:hn,D:up,V:Hi,I:Oo,H:Gi,N:mn,U:un,B:pn,F:fn},tc=Gs.litHtmlPolyfillSupport,mp;tc==null||tc(js,Oo),((mp=Gs.litHtmlVersions)!=null?mp:Gs.litHtmlVersions=[]).push("3.2.0");var yp=(l,o,t)=>{var h,m;let i=(h=t==null?void 0:t.renderBefore)!=null?h:o,a=i._$litPart$;if(a===void 0){let T=(m=t==null?void 0:t.renderBefore)!=null?m:null;i._$litPart$=a=new Oo(o.insertBefore(Ys(),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,i;let o=super.createRenderRoot();return(i=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=yp(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return Ne}},Ep;yi._$litElement$=!0,yi.finalized=!0,(Ep=globalThis.litElementHydrateSupport)==null||Ep.call(globalThis,{LitElement:yi});var sc=globalThis.litElementPolyfillSupport;sc==null||sc({LitElement:yi});var Tp;((Tp=globalThis.litElementVersions)!=null?Tp:globalThis.litElementVersions=[]).push("4.1.0");var Hg={attribute:!0,type:String,converter:Us,reflect:!1,hasChanged:cn},Gg=(l=Hg,o,t)=>{let{kind:i,metadata:a}=t,h=globalThis.litPropertyMetadata.get(a);if(h===void 0&&globalThis.litPropertyMetadata.set(a,h=new Map),h.set(t.name,l),i==="accessor"){let{name:m}=t;return{set(T){let R=o.get.call(this);o.set.call(this,T),this.requestUpdate(m,R,l)},init(T){return T!==void 0&&this.P(m,void 0,l),T}}}if(i==="setter"){let{name:m}=t;return function(T){let R=this[m];o.call(this,T),this.requestUpdate(m,R,l)}}throw Error("Unsupported decorator location: "+i)};function g(l){return(o,t)=>typeof t=="object"?Gg(l,o,t):((i,a,h)=>{let m=a.hasOwnProperty(h);return a.constructor.createProperty(h,m?{...i,wrapped:!0}:i),m?Object.getOwnPropertyDescriptor(a,h):void 0})(l,o,t)}function Tt(l){return g({...l,state:!0,attribute:!1})}var Ur=(l,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(l,o,t),t);function Hr(l,o){return(t,i,a)=>{let h=m=>{var T,R;return(R=(T=m.renderRoot)==null?void 0:T.querySelector(l))!=null?R:null};if(o){let{get:m,set:T}=typeof i=="object"?t:a!=null?a:(()=>{let R=Symbol();return{get(){return this[R]},set($){this[R]=$}}})();return Ur(t,i,{get(){let R=m.call(this);return R===void 0&&(R=h(this),(R!==null||this.hasUpdated)&&T.call(this,R)),R}})}return Ur(t,i,{get(){return h(this)}})}}function Nt(l){return(o,t)=>{let{slot:i,selector:a}=l!=null?l:{},h="slot"+(i?`[name=${i}]`:":not([name])");return Ur(o,t,{get(){var R,$;let m=(R=this.renderRoot)==null?void 0:R.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(o,t)=>{let{slot:i}=l!=null?l:{},a="slot"+(i?`[name=${i}]`:":not([name])");return Ur(o,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},ac=Wg;var jg=l=>[ac.NAMESPACE.PREFIX,l].join(ac.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"),Yi={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},Po={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},qs={SIZE:Yi[32],TYPE:Po.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Gr=Y.constructTagName("button"),Ot={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ks={40:40,32:32,28:28,24:24},je={64:64,52:52,20:20,...Ks},Wi={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Do={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Le={VARIANT:Ot.PRIMARY,SIZE:Ks[32],COLOR:Wi.DEFAULT,TYPE_INTERNAL:Do.ICON,TYPE:Po.BUTTON,INVERTED:!1};var gn=l=>{class o extends l{constructor(){super(...arguments);this.variant=Le.VARIANT;this.color=Le.COLOR;this.typeInternal=Le.TYPE_INTERNAL}setVariant(a){this.setAttribute("variant",Object.values(Ot).includes(a)?a:Le.VARIANT)}setColor(a){!Object.values(Wi).includes(a)||this.variant===Ot.TERTIARY?this.setAttribute("color",`${Le.COLOR}`):this.setAttribute("color",a)}setSize(a){let m=this.typeInternal===Do.ICON?Object.values(je).includes(a)&&!(a===je[20]&&this.variant!==Ot.TERTIARY):Object.values(Ks).includes(a);this.setAttribute("size",m?`${a}`:`${Le.SIZE}`)}inferButtonType(){var h,m;let a=(m=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"))==null?void 0:m.assignedNodes().filter(T=>{var R;return T.nodeType!==Node.TEXT_NODE||((R=T.textContent)==null?void 0:R.trim())}).length;a&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Do.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!a&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Do.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Do.PILL,this.setAttribute("data-btn-type","pill"))}}return p([g({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),p([g({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),p([g({type:String})],o.prototype,"variant",2),p([g({type:String})],o.prototype,"color",2),p([Tt()],o.prototype,"typeInternal",2),o};var xp=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 bn=class extends yi{static register(o){customElements.get(o)||customElements.define(o,this)}};bn.styles=[xp];var Ap=bn;var j=Ap;var Ei=class extends Event{constructor(o,t,i){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=i!=null?i:!1}};var Fo=class{constructor(o,t,i,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=o,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=i,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 Ei(this.context,this.t,this.subscribe))}};var yn=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let i=t||!Object.is(o,this.o);this.o=o,i&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:i}]of this.subscriptions)t(this.o,i)},o!==void 0&&(this.value=o)}addCallback(o,t,i){if(!i)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var nc=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},$o=class extends yn{constructor(o,t,i){var a,h;super(t.context!==void 0?t.initialValue:i),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 R=new Set;for(let[$,{consumerHost:q}]of this.subscriptions)R.has($)||(R.add($),q.dispatchEvent(new Ei(this.context,$,!0)));m.stopPropagation()},this.host=o,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 nc(this.context))}};var qg=
|
14
|
+
`;var bn=class extends yi{static register(o){customElements.get(o)||customElements.define(o,this)}};bn.styles=[xp];var Ap=bn;var j=Ap;var Ei=class extends Event{constructor(o,t,i){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=i!=null?i:!1}};var Fo=class{constructor(o,t,i,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=o,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=i,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 Ei(this.context,this.t,this.subscribe))}};var yn=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let i=t||!Object.is(o,this.o);this.o=o,i&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:i}]of this.subscriptions)t(this.o,i)},o!==void 0&&(this.value=o)}addCallback(o,t,i){if(!i)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var nc=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},$o=class extends yn{constructor(o,t,i){var a,h;super(t.context!==void 0?t.initialValue:i),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 R=new Set;for(let[$,{consumerHost:q}]of this.subscriptions)R.has($)||(R.add($),q.dispatchEvent(new Ei(this.context,$,!0)));m.stopPropagation()},this.host=o,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 nc(this.context))}};var qg=G`
|
15
15
|
:host {
|
16
16
|
display: contents;
|
17
17
|
}
|
18
|
-
`,Sp=qg;var Tn=class extends j{constructor({context:o,initialValue:t}){super(),this.context=new $o(this,{context:o,initialValue:t})}render(){return this.updateContext(),C`<slot></slot>`}};Tn.styles=[...j.styles,Sp];var _p=Tn;var Ar=_p;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 Ip=l=>{class o extends l{constructor(){super(...arguments);this.autofocus=!1}firstUpdated(a){super.firstUpdated(a),this.autofocus&&this.focus()}}return p([g({type:Boolean,reflect:!0})],o.prototype,"autofocus",2),o};var $t=l=>{class o extends l{}return p([g({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var qe=l=>{class o extends l{constructor(){super(...arguments);this.tabIndex=0}}return p([g({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var yt=
|
18
|
+
`,Sp=qg;var Tn=class extends j{constructor({context:o,initialValue:t}){super(),this.context=new $o(this,{context:o,initialValue:t})}render(){return this.updateContext(),C`<slot></slot>`}};Tn.styles=[...j.styles,Sp];var _p=Tn;var Ar=_p;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 Ip=l=>{class o extends l{constructor(){super(...arguments);this.autofocus=!1}firstUpdated(a){super.firstUpdated(a),this.autofocus&&this.focus()}}return p([g({type:Boolean,reflect:!0})],o.prototype,"autofocus",2),o};var $t=l=>{class o extends l{}return p([g({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var qe=l=>{class o extends l{constructor(){super(...arguments);this.tabIndex=0}}return p([g({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var yt=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
|
-
`,xn=
|
26
|
+
`,xn=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);
|
@@ -36,10 +36,10 @@
|
|
36
36
|
--mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
|
37
37
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
38
38
|
}
|
39
|
-
`,xt=(l=!1)=>{let o=
|
39
|
+
`,xt=(l=!1)=>{let o=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?[xn,
|
42
|
+
`;return l?[xn,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
|
-
`]:[xn,
|
66
|
+
`]:[xn,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 Kg=[yt,
|
81
|
+
`]};var Kg=[yt,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
|
-
`,...xt()],kp=Kg;var dr=class extends Ip(qe($t(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===Po.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Po.RESET&&this.form&&this.form.reset()}setActive(t,i){this.ariaStateKey&&this.ariaStateKey.split(",").filter(h=>h.trim().startsWith("aria-")).forEach(h=>{i===!0?t.setAttribute(h.trim(),"true"):i===!1?t.setAttribute(h.trim(),"false"):t.removeAttribute(h.trim())})}setSoftDisabled(t,i){i?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,i){i?(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> `}};dr.formAssociated=!0,dr.styles=[...j.styles,...kp],p([g({type:Boolean,reflect:!0})],dr.prototype,"active",2),p([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],dr.prototype,"softDisabled",2),p([g({type:Number,reflect:!0})],dr.prototype,"size",2),p([g({type:String,reflect:!0})],dr.prototype,"role",2),p([g({type:String,reflect:!0})],dr.prototype,"ariaStateKey",2),p([g({reflect:!0})],dr.prototype,"type",2);var pe=dr;var Xg=
|
139
|
+
`,...xt()],kp=Kg;var dr=class extends Ip(qe($t(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===Po.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Po.RESET&&this.form&&this.form.reset()}setActive(t,i){this.ariaStateKey&&this.ariaStateKey.split(",").filter(h=>h.trim().startsWith("aria-")).forEach(h=>{i===!0?t.setAttribute(h.trim(),"true"):i===!1?t.setAttribute(h.trim(),"false"):t.removeAttribute(h.trim())})}setSoftDisabled(t,i){i?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,i){i?(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> `}};dr.formAssociated=!0,dr.styles=[...j.styles,...kp],p([g({type:Boolean,reflect:!0})],dr.prototype,"active",2),p([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],dr.prototype,"softDisabled",2),p([g({type:Number,reflect:!0})],dr.prototype,"size",2),p([g({type:String,reflect:!0})],dr.prototype,"role",2),p([g({type:String,reflect:!0})],dr.prototype,"ariaStateKey",2),p([g({reflect:!0})],dr.prototype,"type",2);var pe=dr;var Xg=G`
|
140
140
|
:host {
|
141
141
|
background-color: transparent;
|
142
142
|
border-radius: 1.25rem;
|
@@ -396,7 +396,7 @@
|
|
396
396
|
part="postfix-icon"
|
397
397
|
length-unit="rem"
|
398
398
|
></mdc-icon>`:""}
|
399
|
-
`}};Yr.styles=[...pe.styles,...Cp],p([g({type:Number})],Yr.prototype,"size",2),p([g({type:Boolean,reflect:!0})],Yr.prototype,"inverted",2),p([g({type:String,reflect:!0})],Yr.prototype,"role",2),p([Tt()],Yr.prototype,"prefixFilledIconName",2),p([Tt()],Yr.prototype,"postfixFilledIconName",2);var qi=Yr;var Zg=l=>{let{host:o,context:t,subscribe:i}=l;return new Fo(o,{context:t,subscribe:i!=null?i:!0})},Qg={consume:Zg},Sr=Qg;var An=Y.constructTagName("iconprovider"),wp=["svg"],Np=["em","rem","px","%"],Jg={px:16,em:1,rem:1,"%":100},Wr={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Jg.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Sn=class{};Sn.context=An;var _n=Sn;var _r=class extends Ar{constructor(){super({context:_n.context,initialValue:new _n});this.iconSet=Wr.ICON_SET;this.fileExtension=Wr.FILE_EXTENSION;this.lengthUnit=Wr.LENGTH_UNIT;this.size=Wr.SIZE}static get Context(){return _n.context}updateValuesInContext(){this.fileExtension&&wp.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Wr.FILE_EXTENSION,this.context.value.fileExtension=Wr.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&&Np.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Wr.LENGTH_UNIT,this.context.value.lengthUnit=Wr.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([g({type:String,attribute:"icon-set",reflect:!0})],_r.prototype,"iconSet",2),p([g({type:String})],_r.prototype,"url",2),p([g({type:String,attribute:"file-extension",reflect:!0})],_r.prototype,"fileExtension",2),p([g({type:String,attribute:"length-unit",reflect:!0})],_r.prototype,"lengthUnit",2),p([g({type:Number,reflect:!0})],_r.prototype,"size",2),p([g({type:String,attribute:"cache-strategy"})],_r.prototype,"cacheStrategy",2),p([g({type:String,attribute:"cache-name"})],_r.prototype,"cacheName",2);var Xs=_r;var tb=[yt,
|
399
|
+
`}};Yr.styles=[...pe.styles,...Cp],p([g({type:Number})],Yr.prototype,"size",2),p([g({type:Boolean,reflect:!0})],Yr.prototype,"inverted",2),p([g({type:String,reflect:!0})],Yr.prototype,"role",2),p([Tt()],Yr.prototype,"prefixFilledIconName",2),p([Tt()],Yr.prototype,"postfixFilledIconName",2);var qi=Yr;var Zg=l=>{let{host:o,context:t,subscribe:i}=l;return new Fo(o,{context:t,subscribe:i!=null?i:!0})},Qg={consume:Zg},Sr=Qg;var An=Y.constructTagName("iconprovider"),wp=["svg"],Np=["em","rem","px","%"],Jg={px:16,em:1,rem:1,"%":100},Wr={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Jg.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Sn=class{};Sn.context=An;var _n=Sn;var _r=class extends Ar{constructor(){super({context:_n.context,initialValue:new _n});this.iconSet=Wr.ICON_SET;this.fileExtension=Wr.FILE_EXTENSION;this.lengthUnit=Wr.LENGTH_UNIT;this.size=Wr.SIZE}static get Context(){return _n.context}updateValuesInContext(){this.fileExtension&&wp.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Wr.FILE_EXTENSION,this.context.value.fileExtension=Wr.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&&Np.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Wr.LENGTH_UNIT,this.context.value.lengthUnit=Wr.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([g({type:String,attribute:"icon-set",reflect:!0})],_r.prototype,"iconSet",2),p([g({type:String})],_r.prototype,"url",2),p([g({type:String,attribute:"file-extension",reflect:!0})],_r.prototype,"fileExtension",2),p([g({type:String,attribute:"length-unit",reflect:!0})],_r.prototype,"lengthUnit",2),p([g({type:Number,reflect:!0})],_r.prototype,"size",2),p([g({type:String,attribute:"cache-strategy"})],_r.prototype,"cacheStrategy",2),p([g({type:String,attribute:"cache-name"})],_r.prototype,"cacheName",2);var Xs=_r;var tb=[yt,G`
|
400
400
|
:host {
|
401
401
|
--mdc-icon-fill-color: currentColor;
|
402
402
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -411,7 +411,7 @@
|
|
411
411
|
width: 100%;
|
412
412
|
fill: var(--mdc-icon-fill-color);
|
413
413
|
}
|
414
|
-
`,...xt()],Lp=tb;var Zs={},Rp=async l=>(Zs[l]===void 0&&(Zs[l]=new Map),{async set(o,t){Zs[l].set(o.url,await t.text())},async get(o){return Zs[l].get(o.url)},async delete(o){Zs[l].delete(o.url)}}),Mp=async l=>{let o=await caches.open(l);return{set:async(t,i)=>{await o.put(t,i)},get:async t=>{let i=await o.match(t);return i==null?void 0:i.text()},delete:async t=>{await o.delete(t)}}},Op=async(l,o)=>o==="in-memory-cache"?Rp(l):Mp(l);var Pp=async l=>fetch(l).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Dp=async({url:l,name:o,fileExtension:t,cacheStrategy:i,cacheName:a,renewSignal:h})=>{let m=h(),T=new Request(`${l}/${o}.${t}`,{signal:m});return!a||!i||!["in-memory-cache","web-cache-api"].includes(i)?Pp(T).then(R=>R.text()):Op(a,i).then(R=>R.get(T).then($=>$||Pp(T.clone()).then(q=>{var K;return q.status<400&&q.headers.has("content-type")?(K=R.set)==null?void 0:K.call(R,T,q.clone()).then(()=>q.text()):q.text()})).catch($=>{throw new Error(`Error in caching the Icon ${o}, ${$}`)}))};var Fp=Y.constructTagName("icon"),lc={NAME:void 0,SIZE:1};var Fe=class extends j{constructor(){super();this.name=lc.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Sr.consume({host:this,context:Xs.Context});this.abortController=new AbortController}prepareIconElement(t){let i=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&i.setAttribute("data-name",this.name),i.setAttribute("part","icon"),i.setAttribute("aria-hidden","true"),i}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:i,url:a,cacheName:h,iconSet:m,cacheStrategy:T}=this.iconProviderContext.value;if(m==="custom-icons"&&a&&i&&this.name){let R=()=>{var $;return($=this.abortController)==null||$.abort(),this.abortController=new AbortController,this.abortController.signal};return Dp({url:a,name:this.name,fileExtension:i,cacheName:h,cacheStrategy:T,renewSignal:R}).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(R=>{this.handleIconLoadedSuccess(R.default())}).catch(R=>{this.handleIconLoadedFailure(R)})}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 i=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(i)}handleIconLoadedFailure(t){let i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let i=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",i)}}get computedIconSize(){var t,i;return(i=(t=this.size)!=null?t:this.sizeFromContext)!=null?i:lc.SIZE}updated(t){var i,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!==((i=this.iconProviderContext.value)==null?void 0:i.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} `}};Fe.styles=[...j.styles,...Lp],p([Tt()],Fe.prototype,"iconData",2),p([Tt()],Fe.prototype,"lengthUnitFromContext",2),p([Tt()],Fe.prototype,"sizeFromContext",2),p([g({type:String,reflect:!0})],Fe.prototype,"name",2),p([g({type:Number})],Fe.prototype,"size",2),p([g({type:String,attribute:"length-unit"})],Fe.prototype,"lengthUnit",2),p([g({type:String,attribute:"aria-label"})],Fe.prototype,"ariaLabel",2),p([g({type:String,attribute:"aria-labelledby"})],Fe.prototype,"ariaLabelledBy",2),p([Tt()],Fe.prototype,"abortController",2);var cc=Fe;cc.register(Fp);var eb=cc;qi.register(
|
414
|
+
`,...xt()],Lp=tb;var Zs={},Rp=async l=>(Zs[l]===void 0&&(Zs[l]=new Map),{async set(o,t){Zs[l].set(o.url,await t.text())},async get(o){return Zs[l].get(o.url)},async delete(o){Zs[l].delete(o.url)}}),Mp=async l=>{let o=await caches.open(l);return{set:async(t,i)=>{await o.put(t,i)},get:async t=>{let i=await o.match(t);return i==null?void 0:i.text()},delete:async t=>{await o.delete(t)}}},Op=async(l,o)=>o==="in-memory-cache"?Rp(l):Mp(l);var Pp=async l=>fetch(l).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Dp=async({url:l,name:o,fileExtension:t,cacheStrategy:i,cacheName:a,renewSignal:h})=>{let m=h(),T=new Request(`${l}/${o}.${t}`,{signal:m});return!a||!i||!["in-memory-cache","web-cache-api"].includes(i)?Pp(T).then(R=>R.text()):Op(a,i).then(R=>R.get(T).then($=>$||Pp(T.clone()).then(q=>{var K;return q.status<400&&q.headers.has("content-type")?(K=R.set)==null?void 0:K.call(R,T,q.clone()).then(()=>q.text()):q.text()})).catch($=>{throw new Error(`Error in caching the Icon ${o}, ${$}`)}))};var Fp=Y.constructTagName("icon"),lc={NAME:void 0,SIZE:1};var Fe=class extends j{constructor(){super();this.name=lc.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Sr.consume({host:this,context:Xs.Context});this.abortController=new AbortController}prepareIconElement(t){let i=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&i.setAttribute("data-name",this.name),i.setAttribute("part","icon"),i.setAttribute("aria-hidden","true"),i}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:i,url:a,cacheName:h,iconSet:m,cacheStrategy:T}=this.iconProviderContext.value;if(m==="custom-icons"&&a&&i&&this.name){let R=()=>{var $;return($=this.abortController)==null||$.abort(),this.abortController=new AbortController,this.abortController.signal};return Dp({url:a,name:this.name,fileExtension:i,cacheName:h,cacheStrategy:T,renewSignal:R}).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(R=>{this.handleIconLoadedSuccess(R.default())}).catch(R=>{this.handleIconLoadedFailure(R)})}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 i=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(i)}handleIconLoadedFailure(t){let i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let i=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",i)}}get computedIconSize(){var t,i;return(i=(t=this.size)!=null?t:this.sizeFromContext)!=null?i:lc.SIZE}updated(t){var i,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!==((i=this.iconProviderContext.value)==null?void 0:i.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} `}};Fe.styles=[...j.styles,...Lp],p([Tt()],Fe.prototype,"iconData",2),p([Tt()],Fe.prototype,"lengthUnitFromContext",2),p([Tt()],Fe.prototype,"sizeFromContext",2),p([g({type:String,reflect:!0})],Fe.prototype,"name",2),p([g({type:Number})],Fe.prototype,"size",2),p([g({type:String,attribute:"length-unit"})],Fe.prototype,"lengthUnit",2),p([g({type:String,attribute:"aria-label"})],Fe.prototype,"ariaLabel",2),p([g({type:String,attribute:"aria-labelledby"})],Fe.prototype,"ariaLabelledBy",2),p([Tt()],Fe.prototype,"abortController",2);var cc=Fe;cc.register(Fp);var eb=cc;qi.register(Gr);var rb=qi;var $p=G`
|
415
415
|
:host::part(text) {
|
416
416
|
font-size: unset;
|
417
417
|
font-weight: unset;
|
@@ -654,14 +654,14 @@
|
|
654
654
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
655
655
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
656
656
|
}
|
657
|
-
`;var ib=[
|
657
|
+
`;var ib=[G`
|
658
658
|
:host {
|
659
659
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
660
660
|
|
661
661
|
display: block;
|
662
662
|
font-family: var(--mdc-text-font-family);
|
663
663
|
}
|
664
|
-
`,$p],zp=ib;var Qs=Y.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},mt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},me={TYPE:ot.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:mt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var zo=class extends j{constructor(){super(...arguments);this.type=me.TYPE;this.tagname=me.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case mt.H1:return C`<h1 part=${me.CSS_PART_TEXT}><slot></slot></h1>`;case mt.H2:return C`<h2 part=${me.CSS_PART_TEXT}><slot></slot></h2>`;case mt.H3:return C`<h3 part=${me.CSS_PART_TEXT}><slot></slot></h3>`;case mt.H4:return C`<h4 part=${me.CSS_PART_TEXT}><slot></slot></h4>`;case mt.H5:return C`<h5 part=${me.CSS_PART_TEXT}><slot></slot></h5>`;case mt.H6:return C`<h6 part=${me.CSS_PART_TEXT}><slot></slot></h6>`;case mt.DIV:return C`<div part=${me.CSS_PART_TEXT}><slot></slot></div>`;case mt.SPAN:return C`<span part=${me.CSS_PART_TEXT}><slot></slot></span>`;case mt.SMALL:return C`<small part=${me.CSS_PART_TEXT}><slot></slot></small>`;case mt.P:default:return C`<p part=${me.CSS_PART_TEXT}><slot></slot></p>`}}};zo.styles=[...j.styles,...zp],p([g({attribute:"type",reflect:!0,type:String})],zo.prototype,"type",2),p([g({attribute:"tagname",reflect:!0,type:String})],zo.prototype,"tagname",2);var dc=zo;dc.register(Qs);var ob=dc;var st=l=>l!=null?l:W;var ae=[];for(let l=0;l<256;++l)ae.push((l+256).toString(16).slice(1));function Vp(l,o=0){return(ae[l[o+0]]+ae[l[o+1]]+ae[l[o+2]]+ae[l[o+3]]+"-"+ae[l[o+4]]+ae[l[o+5]]+"-"+ae[l[o+6]]+ae[l[o+7]]+"-"+ae[l[o+8]]+ae[l[o+9]]+"-"+ae[l[o+10]]+ae[l[o+11]]+ae[l[o+12]]+ae[l[o+13]]+ae[l[o+14]]+ae[l[o+15]]).toLowerCase()}var hc,sb=new Uint8Array(16);function pc(){if(!hc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");hc=crypto.getRandomValues.bind(crypto)}return hc(sb)}var ab=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mc={randomUUID:ab};function nb(l,o,t){var a,h,m;if(mc.randomUUID&&!o&&!l)return mc.randomUUID();l=l||{};let i=(m=(h=l.random)!=null?h:(a=l.rng)==null?void 0:a.call(l))!=null?m:pc();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let T=0;T<16;++T)o[t+T]=i[T];return o}return Vp(i)}var ve=nb;var Bp=Y.constructTagName("accordiongroup"),uc={SMALL:"small",LARGE:"large"},lb={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},Js={SIZE:uc.SMALL,VARIANT:lb.STACKED};var In=Y.constructTagName("accordionbutton"),ta={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},cb={DEFAULT:"default",BORDERLESS:"borderless"},Ti={EXPANDED:!1,SIZE:uc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:cb.DEFAULT,ICON_NAME:ta.ARROW_UP};var db=
|
664
|
+
`,$p],zp=ib;var Qs=Y.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},mt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},me={TYPE:ot.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:mt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var zo=class extends j{constructor(){super(...arguments);this.type=me.TYPE;this.tagname=me.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case mt.H1:return C`<h1 part=${me.CSS_PART_TEXT}><slot></slot></h1>`;case mt.H2:return C`<h2 part=${me.CSS_PART_TEXT}><slot></slot></h2>`;case mt.H3:return C`<h3 part=${me.CSS_PART_TEXT}><slot></slot></h3>`;case mt.H4:return C`<h4 part=${me.CSS_PART_TEXT}><slot></slot></h4>`;case mt.H5:return C`<h5 part=${me.CSS_PART_TEXT}><slot></slot></h5>`;case mt.H6:return C`<h6 part=${me.CSS_PART_TEXT}><slot></slot></h6>`;case mt.DIV:return C`<div part=${me.CSS_PART_TEXT}><slot></slot></div>`;case mt.SPAN:return C`<span part=${me.CSS_PART_TEXT}><slot></slot></span>`;case mt.SMALL:return C`<small part=${me.CSS_PART_TEXT}><slot></slot></small>`;case mt.P:default:return C`<p part=${me.CSS_PART_TEXT}><slot></slot></p>`}}};zo.styles=[...j.styles,...zp],p([g({attribute:"type",reflect:!0,type:String})],zo.prototype,"type",2),p([g({attribute:"tagname",reflect:!0,type:String})],zo.prototype,"tagname",2);var dc=zo;dc.register(Qs);var ob=dc;var st=l=>l!=null?l:W;var ae=[];for(let l=0;l<256;++l)ae.push((l+256).toString(16).slice(1));function Vp(l,o=0){return(ae[l[o+0]]+ae[l[o+1]]+ae[l[o+2]]+ae[l[o+3]]+"-"+ae[l[o+4]]+ae[l[o+5]]+"-"+ae[l[o+6]]+ae[l[o+7]]+"-"+ae[l[o+8]]+ae[l[o+9]]+"-"+ae[l[o+10]]+ae[l[o+11]]+ae[l[o+12]]+ae[l[o+13]]+ae[l[o+14]]+ae[l[o+15]]).toLowerCase()}var hc,sb=new Uint8Array(16);function pc(){if(!hc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");hc=crypto.getRandomValues.bind(crypto)}return hc(sb)}var ab=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mc={randomUUID:ab};function nb(l,o,t){var a,h,m;if(mc.randomUUID&&!o&&!l)return mc.randomUUID();l=l||{};let i=(m=(h=l.random)!=null?h:(a=l.rng)==null?void 0:a.call(l))!=null?m:pc();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let T=0;T<16;++T)o[t+T]=i[T];return o}return Vp(i)}var ve=nb;var Bp=Y.constructTagName("accordiongroup"),uc={SMALL:"small",LARGE:"large"},lb={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},Js={SIZE:uc.SMALL,VARIANT:lb.STACKED};var In=Y.constructTagName("accordionbutton"),ta={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},cb={DEFAULT:"default",BORDERLESS:"borderless"},Ti={EXPANDED:!1,SIZE:uc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:cb.DEFAULT,ICON_NAME:ta.ARROW_UP};var db=G`
|
665
665
|
:host {
|
666
666
|
--mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
|
667
667
|
--mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
|
@@ -809,7 +809,7 @@
|
|
809
809
|
role="${tt.REGION}"
|
810
810
|
>
|
811
811
|
<slot></slot>
|
812
|
-
</div>`:W}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=Ti.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=Ti.SIZE),t.has("variant")&&!this.variant&&(this.variant=Ti.VARIANT)}render(){return C` ${this.renderHeader()} ${this.renderBody()} `}};Ir.styles=[...j.styles,...Up],p([g({type:String,reflect:!0})],Ir.prototype,"size",2),p([g({type:String,reflect:!0})],Ir.prototype,"variant",2),p([g({type:Number,reflect:!0,attribute:"data-aria-level"})],Ir.prototype,"dataAriaLevel",2),p([g({type:Boolean,reflect:!0})],Ir.prototype,"expanded",2),p([g({type:String,reflect:!0,attribute:"header-text"})],Ir.prototype,"headerText",2),p([g({type:String,attribute:"prefix-icon"})],Ir.prototype,"prefixIcon",2);var Vo=Ir;var hb=
|
812
|
+
</div>`:W}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=Ti.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=Ti.SIZE),t.has("variant")&&!this.variant&&(this.variant=Ti.VARIANT)}render(){return C` ${this.renderHeader()} ${this.renderBody()} `}};Ir.styles=[...j.styles,...Up],p([g({type:String,reflect:!0})],Ir.prototype,"size",2),p([g({type:String,reflect:!0})],Ir.prototype,"variant",2),p([g({type:Number,reflect:!0,attribute:"data-aria-level"})],Ir.prototype,"dataAriaLevel",2),p([g({type:Boolean,reflect:!0})],Ir.prototype,"expanded",2),p([g({type:String,reflect:!0,attribute:"header-text"})],Ir.prototype,"headerText",2),p([g({type:String,attribute:"prefix-icon"})],Ir.prototype,"prefixIcon",2);var Vo=Ir;var hb=G`
|
813
813
|
:host::part(header-section) {
|
814
814
|
display: flex;
|
815
815
|
align-items: center;
|
@@ -823,7 +823,7 @@
|
|
823
823
|
:host::part(trailing-header__button) {
|
824
824
|
margin: 0.125rem;
|
825
825
|
}
|
826
|
-
`,
|
826
|
+
`,Hp=[hb];var Bo=class extends Vo{update(o){super.update(o),o.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderHeader(){return C`
|
827
827
|
<div part="header-section">
|
828
828
|
<div part="leading-header">
|
829
829
|
${this.renderIcon(this.prefixIcon)}
|
@@ -845,7 +845,7 @@
|
|
845
845
|
></mdc-button>
|
846
846
|
</div>
|
847
847
|
</div>
|
848
|
-
`}};Bo.styles=[...Vo.styles,...
|
848
|
+
`}};Bo.styles=[...Vo.styles,...Hp],p([Nt({slot:"leading-controls"})],Bo.prototype,"leadingControlsSlot",2),p([Nt({slot:"trailing-controls"})],Bo.prototype,"trailingControlsSlot",2);var fc=Bo;var kn=Y.constructTagName("accordion");fc.register(kn);var pb=fc;var mb=G`
|
849
849
|
:host {
|
850
850
|
--mdc-accordiongroup-border-color: var(--mds-color-theme-outline-secondary-normal);
|
851
851
|
|
@@ -889,7 +889,7 @@
|
|
889
889
|
:host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
|
890
890
|
border-bottom: 1px solid var(--mdc-accordiongroup-border-color);
|
891
891
|
}
|
892
|
-
`,
|
892
|
+
`,Gp=[mb,...xt()];var jr=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(i=>{i!==t.target&&i.hasAttribute("expanded")&&i.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,i){[...this.accordionItems].forEach(a=>{a.setAttribute(t,i)}),[...this.accordionButtonItems].forEach(a=>{a.setAttribute(t,i)})}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> `}};jr.styles=[...j.styles,...Gp],p([g({type:String,reflect:!0})],jr.prototype,"size",2),p([g({type:String,reflect:!0})],jr.prototype,"variant",2),p([g({type:Boolean,reflect:!0,attribute:"allow-multiple"})],jr.prototype,"allowMultiple",2),p([Nt({selector:kn})],jr.prototype,"accordionItems",2),p([Nt({selector:In})],jr.prototype,"accordionButtonItems",2);var vc=jr;vc.register(Bp);var ub=vc;Vo.register(In);var fb=Vo;var vb=G`
|
893
893
|
:host {
|
894
894
|
height: 1.5rem;
|
895
895
|
gap: 0.25rem;
|
@@ -991,16 +991,16 @@
|
|
991
991
|
:host([variant='informational']:active) {
|
992
992
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
993
993
|
}
|
994
|
-
`,Yp=[yt,vb,...xt()];var Wp=Y.constructTagName("alertchip"),Ki={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Uo={VARIANT:Ki.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Yi[24],ROLE:"button"};var jp=l=>({[Ki.ERROR]:"error-legacy-badge-filled",[Ki.WARNING]:"warning-badge-filled",[Ki.SUCCESS]:"check-circle-badge-filled",[Ki.INFORMATIONAL]:"info-badge-filled",[Ki.NEUTRAL]:"dnd-presence-badge-filled"})[l];var
|
994
|
+
`,Yp=[yt,vb,...xt()];var Wp=Y.constructTagName("alertchip"),Ki={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Uo={VARIANT:Ki.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Yi[24],ROLE:"button"};var jp=l=>({[Ki.ERROR]:"error-legacy-badge-filled",[Ki.WARNING]:"warning-badge-filled",[Ki.SUCCESS]:"check-circle-badge-filled",[Ki.INFORMATIONAL]:"info-badge-filled",[Ki.NEUTRAL]:"dnd-presence-badge-filled"})[l];var Ho=class extends pe{constructor(){super(...arguments);this.variant=Uo.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Uo.SIZE,this.role=Uo.ROLE}render(){return C`
|
995
995
|
<mdc-icon part="icon" name="${jp(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
996
996
|
${this.label?C`<mdc-text part="label" type="${Uo.TEXT_TYPE}" tagname="${Uo.TAG_NAME}"
|
997
997
|
>${this.label}</mdc-text
|
998
998
|
>`:W}
|
999
|
-
`}};
|
999
|
+
`}};Ho.styles=[...j.styles,...Yp],p([g({type:String})],Ho.prototype,"variant",2),p([g({type:String})],Ho.prototype,"label",2);var gc=Ho;gc.register(Wp);var gb=gc;var{I:II}=bp;var Cn=l=>l.strings===void 0;var bb={},qp=(l,o=bb)=>l._$AH=o;var hr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Xi=l=>(...o)=>({_$litDirective$:l,values:o}),xi=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,i){this.t=o,this._$AM=t,this.i=i}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var ea=(l,o)=>{var i;let t=l._$AN;if(t===void 0)return!1;for(let a of t)(i=a._$AO)==null||i.call(a,o,!1),ea(a,o);return!0},wn=l=>{let o,t;do{if((o=l._$AM)===void 0)break;t=o._$AN,t.delete(l),l=o}while((t==null?void 0:t.size)===0)},Kp=l=>{for(let o;o=l._$AM;l=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(l))break;t.add(l),Tb(o)}};function yb(l){this._$AN!==void 0?(wn(this),this._$AM=l,Kp(this)):this._$AM=l}function Eb(l,o=!1,t=0){let i=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(o)if(Array.isArray(i))for(let h=t;h<i.length;h++)ea(i[h],!1),wn(i[h]);else i!=null&&(ea(i,!1),wn(i));else ea(this,l)}var Tb=l=>{var o,t;l.type==hr.CHILD&&((o=l._$AP)!=null||(l._$AP=Eb),(t=l._$AQ)!=null||(l._$AQ=yb))},Nn=class extends xi{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,i){super._$AT(o,t,i),Kp(this),this.isConnected=o._$AU}_$AO(o,t=!0){var i,a;o!==this.isConnected&&(this.isConnected=o,o?(i=this.reconnected)==null||i.call(this):(a=this.disconnected)==null||a.call(this)),t&&(ea(this,o),wn(this))}setValue(o){if(Cn(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Ln=()=>new yc,yc=class{},bc=new WeakMap,Rn=Xi(class extends Nn{render(l){return W}update(l,[o]){var i;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(i=l.options)==null?void 0:i.host,this.rt(this.ct=l.element)),W}rt(l){var o;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,i=bc.get(t);i===void 0&&(i=new WeakMap,bc.set(t,i)),i.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),i.set(this.Y,l),l!==void 0&&this.Y.call(this.ht,l)}else this.Y.value=l}get lt(){var l,o,t;return typeof this.Y=="function"?(o=bc.get((l=this.ht)!=null?l:globalThis))==null?void 0:o.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 Jp=Og(Xp());var Ec={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 xb=[yt,G`
|
1000
1000
|
:host svg {
|
1001
1001
|
display: block;
|
1002
1002
|
}
|
1003
|
-
`],Zp=xb;var Qp=Y.constructTagName("animation"),On={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var qr=class extends j{constructor(){super(...arguments);this.name=On.NAME;this.loop=On.LOOP;this.autoplay=On.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=Ln();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=Jp.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 i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}getAnimationData(){this.name&&Ec[this.name]?import(`@momentum-design/animations/dist/lottie${Ec[this.name].replace(/^\.\/lottie/,"")}`).then(i=>this.onLoadSuccessHandler(i.default)).catch(i=>this.onLoadFailHandler(i)):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" ${Rn(this.containerRef)}></div>`}};qr.styles=[...j.styles,...Zp],p([g({type:String,reflect:!0})],qr.prototype,"name",2),p([g({type:String,reflect:!0})],qr.prototype,"loop",2),p([g({type:Boolean,reflect:!0})],qr.prototype,"autoplay",2),p([g({type:String,attribute:"aria-label"})],qr.prototype,"ariaLabel",2),p([g({type:String,attribute:"aria-labelledby"})],qr.prototype,"ariaLabelledBy",2);var Tc=qr;Tc.register(Qp);var Ab=Tc;var Sb=
|
1003
|
+
`],Zp=xb;var Qp=Y.constructTagName("animation"),On={NAME:void 0,AUTO_PLAY:!0,LOOP:"true"};var qr=class extends j{constructor(){super(...arguments);this.name=On.NAME;this.loop=On.LOOP;this.autoplay=On.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledBy=null;this.containerRef=Ln();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=Jp.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 i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}getAnimationData(){this.name&&Ec[this.name]?import(`@momentum-design/animations/dist/lottie${Ec[this.name].replace(/^\.\/lottie/,"")}`).then(i=>this.onLoadSuccessHandler(i.default)).catch(i=>this.onLoadFailHandler(i)):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" ${Rn(this.containerRef)}></div>`}};qr.styles=[...j.styles,...Zp],p([g({type:String,reflect:!0})],qr.prototype,"name",2),p([g({type:String,reflect:!0})],qr.prototype,"loop",2),p([g({type:Boolean,reflect:!0})],qr.prototype,"autoplay",2),p([g({type:String,attribute:"aria-label"})],qr.prototype,"ariaLabel",2),p([g({type:String,attribute:"aria-labelledby"})],qr.prototype,"ariaLabelledBy",2);var Tc=qr;Tc.register(Qp);var Ab=Tc;var Sb=G`
|
1004
1004
|
:host {
|
1005
1005
|
--mdc-appheader-height: 4rem;
|
1006
1006
|
}
|
@@ -1043,7 +1043,7 @@
|
|
1043
1043
|
<div part="trailing-section">
|
1044
1044
|
<slot name="trailing"></slot>
|
1045
1045
|
</div>
|
1046
|
-
</header>`}};Pn.styles=[...j.styles,...tm];var xc=Pn;var em=Y.constructTagName("appheader");xc.register(em);var _b=xc;var rm=Y.constructTagName("avatar"),ge={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Ac=99,Ib="user-regular",Ft={24:24,32:32,48:48,64:64,72:72,88:88,124:124},
|
1046
|
+
</header>`}};Pn.styles=[...j.styles,...tm];var xc=Pn;var em=Y.constructTagName("appheader");xc.register(em);var _b=xc;var rm=Y.constructTagName("avatar"),ge={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Ac=99,Ib="user-regular",Ft={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Go={TYPE:ge.PHOTO,SIZE:Ft[32],ICON_NAME:Ib};var Dn=l=>{class o extends l{constructor(){super(...arguments);this.size=Go.SIZE;this.isTyping=!1}}return p([g({type:String})],o.prototype,"src",2),p([g({type:String})],o.prototype,"initials",2),p([g({type:String})],o.prototype,"presence",2),p([g({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),p([g({type:Number})],o.prototype,"counter",2),p([g({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var te=l=>{class o extends l{}return p([g({type:String,attribute:"icon-name"})],o.prototype,"iconName",2),o};var kb=[yt,G`
|
1047
1047
|
:host {
|
1048
1048
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
1049
1049
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -1181,14 +1181,14 @@
|
|
1181
1181
|
@load="${this.handleOnLoad}"
|
1182
1182
|
@error="${this.handleOnError}"
|
1183
1183
|
/>
|
1184
|
-
`}iconTemplate(){let t=this.iconName||
|
1184
|
+
`}iconTemplate(){let t=this.iconName||Go.ICON_NAME;return C`
|
1185
1185
|
<mdc-icon name="${st(t)}" length-unit="rem" size="${am(this.size)}"></mdc-icon>
|
1186
1186
|
`}textTemplate(t){return C` <mdc-text type="${nm(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Ac?`${Ac}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let i="";return t===ge.TEXT&&this.initials&&(i=this.generateInitialsText(this.initials)),t===ge.COUNTER&&(this.counter||this.counter===0)&&(i=this.generateCounterText(this.counter)),this.textTemplate(i)}getTypeBasedOnInputs(){return this.src?ge.PHOTO:this.iconName?ge.ICON:this.initials?ge.TEXT:this.counter||this.counter===0?ge.COUNTER:ge.ICON}getTemplateBasedOnType(t){switch(t){case ge.PHOTO:return this.photoTemplate();case ge.TEXT:case ge.COUNTER:return this.generateTextContent(t);case ge.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===ge.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`
|
1187
1187
|
<div part="content" aria-hidden="true">
|
1188
1188
|
${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
|
1189
1189
|
${this.getPresenceTemplateBasedOnType(t)}
|
1190
1190
|
</div>
|
1191
|
-
`}};ia.styles=[...j.styles,...im],p([Tt()],ia.prototype,"isPhotoLoaded",2);var Sc=ia;var Cb=[yt,
|
1191
|
+
`}};ia.styles=[...j.styles,...im],p([Tt()],ia.prototype,"isPhotoLoaded",2);var Sc=ia;var Cb=[yt,G`
|
1192
1192
|
:host {
|
1193
1193
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
1194
1194
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -1292,7 +1292,7 @@
|
|
1292
1292
|
@error="${this.handleOnError}"
|
1293
1293
|
></mdc-icon>
|
1294
1294
|
</div>
|
1295
|
-
`}};Zi.styles=[...j.styles,...lm],p([g({type:String,reflect:!0})],Zi.prototype,"type",2),p([g({type:String,reflect:!0})],Zi.prototype,"size",2),p([Tt()],Zi.prototype,"currentIconType",2);var _c=Zi;_c.register(om);var wb=_c;Sc.register(rm);var Nb=Sc;var Lb=[yt,
|
1295
|
+
`}};Zi.styles=[...j.styles,...lm],p([g({type:String,reflect:!0})],Zi.prototype,"type",2),p([g({type:String,reflect:!0})],Zi.prototype,"size",2),p([Tt()],Zi.prototype,"currentIconType",2);var _c=Zi;_c.register(om);var wb=_c;Sc.register(rm);var Nb=Sc;var Lb=[yt,G`
|
1296
1296
|
:host {
|
1297
1297
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
1298
1298
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -1321,7 +1321,7 @@
|
|
1321
1321
|
:host::part(presence) {
|
1322
1322
|
z-index: 2;
|
1323
1323
|
}
|
1324
|
-
`,...xt()],dm=Lb;var oa=class extends Dn(te(pe)){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=Le.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ft).includes(t)?`${t}`:
|
1324
|
+
`,...xt()],dm=Lb;var oa=class extends Dn(te(pe)){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=Le.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ft).includes(t)?`${t}`:Go.SIZE.toString())}render(){return C`
|
1325
1325
|
<div part="overlay" aria-hidden="true"></div>
|
1326
1326
|
<mdc-avatar
|
1327
1327
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
@@ -1333,7 +1333,7 @@
|
|
1333
1333
|
size="${st(this.size)}"
|
1334
1334
|
src="${st(this.src)}"
|
1335
1335
|
></mdc-avatar>
|
1336
|
-
`}};oa.styles=[...dm],p([g({type:String,attribute:"aria-label"})],oa.prototype,"ariaLabel",2);var Ic=oa;var hm=Y.constructTagName("avatarbutton");Ic.register(hm);var Rb=Ic;var kr=Xi(class extends xi{constructor(l){var o;if(super(l),l.type!==hr.ATTRIBUTE||l.name!=="class"||((o=l.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(l){return" "+Object.keys(l).filter(o=>l[o]).join(" ")+" "}update(l,[o]){var i,a;if(this.st===void 0){this.st=new Set,l.strings!==void 0&&(this.nt=new Set(l.strings.join(" ").split(/\s/).filter(h=>h!=="")));for(let h in o)o[h]&&!((i=this.nt)!=null&&i.has(h))&&this.st.add(h);return this.render(o)}let t=l.element.classList;for(let h of this.st)h in o||(t.remove(h),this.st.delete(h));for(let h in o){let m=!!o[h];m===this.st.has(h)||(a=this.nt)!=null&&a.has(h)||(m?(t.add(h),this.st.add(h)):(t.remove(h),this.st.delete(h)))}return Ne}});var pm=Y.constructTagName("badge"),Ke={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fn={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},$n={PRIMARY:"primary",SECONDARY:"secondary"},sa={SUCCESS:"success",WARNING:"warning",ERROR:"error"},YC={...$n,...sa},Ai={TYPE:Ke.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:$n.PRIMARY,ICON_SIZE:1};var Mb=[yt,
|
1336
|
+
`}};oa.styles=[...dm],p([g({type:String,attribute:"aria-label"})],oa.prototype,"ariaLabel",2);var Ic=oa;var hm=Y.constructTagName("avatarbutton");Ic.register(hm);var Rb=Ic;var kr=Xi(class extends xi{constructor(l){var o;if(super(l),l.type!==hr.ATTRIBUTE||l.name!=="class"||((o=l.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(l){return" "+Object.keys(l).filter(o=>l[o]).join(" ")+" "}update(l,[o]){var i,a;if(this.st===void 0){this.st=new Set,l.strings!==void 0&&(this.nt=new Set(l.strings.join(" ").split(/\s/).filter(h=>h!=="")));for(let h in o)o[h]&&!((i=this.nt)!=null&&i.has(h))&&this.st.add(h);return this.render(o)}let t=l.element.classList;for(let h of this.st)h in o||(t.remove(h),this.st.delete(h));for(let h in o){let m=!!o[h];m===this.st.has(h)||(a=this.nt)!=null&&a.has(h)||(m?(t.add(h),this.st.add(h)):(t.remove(h),this.st.delete(h)))}return Ne}});var pm=Y.constructTagName("badge"),Ke={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fn={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},$n={PRIMARY:"primary",SECONDARY:"secondary"},sa={SUCCESS:"success",WARNING:"warning",ERROR:"error"},YC={...$n,...sa},Ai={TYPE:Ke.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:$n.PRIMARY,ICON_SIZE:1};var Mb=[yt,G`
|
1337
1337
|
:host {
|
1338
1338
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
1339
1339
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -1423,7 +1423,7 @@
|
|
1423
1423
|
>
|
1424
1424
|
${this.getCounterText(this.maxCounter,this.counter)}
|
1425
1425
|
</mdc-text>
|
1426
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values($n).includes(this.variant)&&(this.variant=Ai.VARIANT);let{iconName:t,type:i,variant:a}=this;switch(i){case Ke.ICON:return this.getBadgeIcon(t||"",a);case Ke.COUNTER:return this.getBadgeCounterText();case Ke.SUCCESS:return this.getBadgeIcon(Fn.SUCCESS_ICON_NAME,sa.SUCCESS);case Ke.WARNING:return this.getBadgeIcon(Fn.WARNING_ICON_NAME,sa.WARNING);case Ke.ERROR:return this.getBadgeIcon(Fn.ERROR_ICON_NAME,sa.ERROR);case Ke.DOT:default:return this.type=Ke.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Cr.styles=[...j.styles,...mm],p([g({type:String,reflect:!0})],Cr.prototype,"type",2),p([g({type:String,reflect:!0})],Cr.prototype,"variant",2),p([g({type:Number})],Cr.prototype,"counter",2),p([g({type:Number,attribute:"max-counter",reflect:!0})],Cr.prototype,"maxCounter",2),p([g({type:Boolean})],Cr.prototype,"overlay",2),p([g({type:String,attribute:"aria-label"})],Cr.prototype,"ariaLabel",2);var kc=Cr;kc.register(pm);var Ob=kc;var Pb=
|
1426
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values($n).includes(this.variant)&&(this.variant=Ai.VARIANT);let{iconName:t,type:i,variant:a}=this;switch(i){case Ke.ICON:return this.getBadgeIcon(t||"",a);case Ke.COUNTER:return this.getBadgeCounterText();case Ke.SUCCESS:return this.getBadgeIcon(Fn.SUCCESS_ICON_NAME,sa.SUCCESS);case Ke.WARNING:return this.getBadgeIcon(Fn.WARNING_ICON_NAME,sa.WARNING);case Ke.ERROR:return this.getBadgeIcon(Fn.ERROR_ICON_NAME,sa.ERROR);case Ke.DOT:default:return this.type=Ke.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Cr.styles=[...j.styles,...mm],p([g({type:String,reflect:!0})],Cr.prototype,"type",2),p([g({type:String,reflect:!0})],Cr.prototype,"variant",2),p([g({type:Number})],Cr.prototype,"counter",2),p([g({type:Number,attribute:"max-counter",reflect:!0})],Cr.prototype,"maxCounter",2),p([g({type:Boolean})],Cr.prototype,"overlay",2),p([g({type:String,attribute:"aria-label"})],Cr.prototype,"ariaLabel",2);var kc=Cr;kc.register(pm);var Ob=kc;var Pb=G`
|
1427
1427
|
:host {
|
1428
1428
|
display: block;
|
1429
1429
|
height: 100%;
|
@@ -1432,7 +1432,7 @@
|
|
1432
1432
|
height: 100%;
|
1433
1433
|
width: 100%;
|
1434
1434
|
}
|
1435
|
-
`,um=[Pb];var fm=Y.constructTagName("brandvisual"),vm={NAME:void 0};var Wo=class extends j{constructor(){super(...arguments);this.name=vm.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(i=>{this.onerror&&this.onerror(i)})}handleBrandVisualLoadedSuccess(t){this.brandVisualData=t;let i=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(i)}handleBrandVisualLoadedFailure(t){let i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}render(){return C` ${this.brandVisualData} `}};Wo.styles=[...j.styles,...um],p([Tt()],Wo.prototype,"brandVisualData",2),p([g({type:String,reflect:!0})],Wo.prototype,"name",2);var Cc=Wo;Cc.register(fm);var Db=Cc;var Fb=
|
1435
|
+
`,um=[Pb];var fm=Y.constructTagName("brandvisual"),vm={NAME:void 0};var Wo=class extends j{constructor(){super(...arguments);this.name=vm.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(i=>{this.onerror&&this.onerror(i)})}handleBrandVisualLoadedSuccess(t){this.brandVisualData=t;let i=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(i)}handleBrandVisualLoadedFailure(t){let i=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(i)}render(){return C` ${this.brandVisualData} `}};Wo.styles=[...j.styles,...um],p([Tt()],Wo.prototype,"brandVisualData",2),p([g({type:String,reflect:!0})],Wo.prototype,"name",2);var Cc=Wo;Cc.register(fm);var Db=Cc;var Fb=G`
|
1436
1436
|
:host {
|
1437
1437
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
1438
1438
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -1453,7 +1453,7 @@
|
|
1453
1453
|
:host([size='large']) {
|
1454
1454
|
height: var(--mdc-bullet-size-large);
|
1455
1455
|
}
|
1456
|
-
`,gm=[Fb];var bm=Y.constructTagName("bullet"),ym={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var aa=class extends j{constructor(){super(...arguments);this.size=ym.SMALL}};aa.styles=[...j.styles,...gm],p([g({type:String,reflect:!0})],aa.prototype,"size",2);var wc=aa;wc.register(bm);var $b=wc;var Em=Y.constructTagName("buttongroup"),zb={40:40,32:32,28:28,24:24},Vb={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Bb={PRIMARY:"primary",SECONDARY:"secondary"},zn={SIZE:zb[28],VARIANT:Bb.PRIMARY,ORIENTATION:Vb.HORIZONTAL};var Ub=
|
1456
|
+
`,gm=[Fb];var bm=Y.constructTagName("bullet"),ym={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var aa=class extends j{constructor(){super(...arguments);this.size=ym.SMALL}};aa.styles=[...j.styles,...gm],p([g({type:String,reflect:!0})],aa.prototype,"size",2);var wc=aa;wc.register(bm);var $b=wc;var Em=Y.constructTagName("buttongroup"),zb={40:40,32:32,28:28,24:24},Vb={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Bb={PRIMARY:"primary",SECONDARY:"secondary"},zn={SIZE:zb[28],VARIANT:Bb.PRIMARY,ORIENTATION:Vb.HORIZONTAL};var Ub=G`
|
1457
1457
|
:host {
|
1458
1458
|
--mdc-buttongroup-border-radius: 1.25rem;
|
1459
1459
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1534,7 +1534,7 @@
|
|
1534
1534
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
1535
1535
|
width: 2.5rem;
|
1536
1536
|
}
|
1537
|
-
`,Tm=[yt,Ub];var Kr=class extends j{constructor(){super(...arguments);this.orientation=zn.ORIENTATION;this.variant=zn.VARIANT;this.size=zn.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>`}};Kr.styles=[...j.styles,...Tm],p([g({type:String,reflect:!0})],Kr.prototype,"orientation",2),p([g({type:String,reflect:!0})],Kr.prototype,"variant",2),p([g({type:Number,reflect:!0})],Kr.prototype,"size",2),p([g({type:Boolean,reflect:!0})],Kr.prototype,"compact",2),p([Nt({selector:"mdc-button"})],Kr.prototype,"buttons",2);var Nc=Kr;Nc.register(Em);var
|
1537
|
+
`,Tm=[yt,Ub];var Kr=class extends j{constructor(){super(...arguments);this.orientation=zn.ORIENTATION;this.variant=zn.VARIANT;this.size=zn.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>`}};Kr.styles=[...j.styles,...Tm],p([g({type:String,reflect:!0})],Kr.prototype,"orientation",2),p([g({type:String,reflect:!0})],Kr.prototype,"variant",2),p([g({type:Number,reflect:!0})],Kr.prototype,"size",2),p([g({type:Boolean,reflect:!0})],Kr.prototype,"compact",2),p([Nt({selector:"mdc-button"})],Kr.prototype,"buttons",2);var Nc=Kr;Nc.register(Em);var Hb=Nc;var xm=Y.constructTagName("linksimple"),jo={INLINE:!1,INVERTED:!1};var Gb=[yt,G`
|
1538
1538
|
:host {
|
1539
1539
|
--mdc-link-border-radius: 0.25rem;
|
1540
1540
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1600,11 +1600,11 @@
|
|
1600
1600
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
1601
1601
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1602
1602
|
}
|
1603
|
-
`,...xt()],Am=
|
1603
|
+
`,...xt()],Am=Gb;var Xr=class extends $t(qe(j)){constructor(){super(...arguments);this.inline=jo.INLINE;this.inverted=jo.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> `}};Xr.styles=[...j.styles,...Am],p([g({type:Boolean,reflect:!0})],Xr.prototype,"inline",2),p([g({type:Boolean,reflect:!0})],Xr.prototype,"inverted",2),p([g({type:String,reflect:!0})],Xr.prototype,"href",2),p([g({type:String,reflect:!0})],Xr.prototype,"target",2),p([g({type:String,reflect:!0})],Xr.prototype,"rel",2);var Si=Xr;var qo=class extends gn(Si){constructor(){super(...arguments);this.size=Le.SIZE}setSoftDisabled(t,i){i?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`
|
1604
1604
|
${this.prefixIcon?C` <mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1605
1605
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1606
1606
|
${this.postfixIcon?C` <mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1607
|
-
`}};qo.styles=[...qi.styles],p([g({type:Number,reflect:!0})],qo.prototype,"size",2),p([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],qo.prototype,"softDisabled",2);var Lc=qo;var Sm=Y.constructTagName("buttonlink");Lc.register(Sm);var Yb=Lc;var Vn=Y.constructTagName("link"),Bn={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Un={LARGE:1,MIDSIZE:.875,SMALL:.75},_m={LINK_SIZE:Bn.LARGE};var Im=Y.constructTagName("card"),Rc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Wb={HORIZONTAL:"horizontal",VERTICAL:"vertical"},re={VARIANT:Rc.BORDER,ORIENTATION:Wb.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Vn,BUTTON:
|
1607
|
+
`}};qo.styles=[...qi.styles],p([g({type:Number,reflect:!0})],qo.prototype,"size",2),p([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],qo.prototype,"softDisabled",2);var Lc=qo;var Sm=Y.constructTagName("buttonlink");Lc.register(Sm);var Yb=Lc;var Vn=Y.constructTagName("link"),Bn={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Un={LARGE:1,MIDSIZE:.875,SMALL:.75},_m={LINK_SIZE:Bn.LARGE};var Im=Y.constructTagName("card"),Rc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Wb={HORIZONTAL:"horizontal",VERTICAL:"vertical"},re={VARIANT:Rc.BORDER,ORIENTATION:Wb.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Vn,BUTTON:Gr};var Hn=l=>{class o 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
|
1608
1608
|
part="icon"
|
1609
1609
|
size="${re.ICON_SIZE}"
|
1610
1610
|
length-unit="${re.ICON_LENGTH_UNIT}"
|
@@ -1626,7 +1626,7 @@
|
|
1626
1626
|
@slotchange=${()=>this.handleFooterSlot(re.BUTTON,Ot.PRIMARY)}
|
1627
1627
|
></slot>
|
1628
1628
|
</div>
|
1629
|
-
</slot>`}}return p([Nt({slot:"footer-link"})],o.prototype,"footerLink",2),p([Nt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),p([Nt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var jb=
|
1629
|
+
</slot>`}}return p([Nt({slot:"footer-link"})],o.prototype,"footerLink",2),p([Nt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),p([Nt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var jb=G`
|
1630
1630
|
:host {
|
1631
1631
|
--mdc-card-width: 20rem;
|
1632
1632
|
align-items: stretch;
|
@@ -1735,7 +1735,7 @@
|
|
1735
1735
|
mdc-text::part(text) {
|
1736
1736
|
margin: 0;
|
1737
1737
|
}
|
1738
|
-
`,km=[yt,jb];var na=class extends
|
1738
|
+
`,km=[yt,jb];var na=class extends Hn(Ko(j)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(i=>{i.matches(re.BUTTON)&&(i.setAttribute("variant",Ot.TERTIARY),i.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?C`<div part="header">
|
1739
1739
|
${this.renderIcon()} ${this.renderTitle()}
|
1740
1740
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
1741
1741
|
</div>`:W}render(){return C`
|
@@ -1749,7 +1749,7 @@
|
|
1749
1749
|
</div>
|
1750
1750
|
${this.renderFooter()}
|
1751
1751
|
</div>
|
1752
|
-
`}};na.styles=[...j.styles,...km],p([Nt({slot:"icon-button"})],na.prototype,"iconButtons",2);var pr=na;pr.register(Im);var qb=pr;var Kb=
|
1752
|
+
`}};na.styles=[...j.styles,...km],p([Nt({slot:"icon-button"})],na.prototype,"iconButtons",2);var pr=na;pr.register(Im);var qb=pr;var Kb=G`
|
1753
1753
|
:host {
|
1754
1754
|
cursor: pointer;
|
1755
1755
|
user-select: none;
|
@@ -1771,7 +1771,7 @@
|
|
1771
1771
|
:host([disabled])::part(image) {
|
1772
1772
|
opacity: 0.5;
|
1773
1773
|
}
|
1774
|
-
`,Cm=[Kb,...xt()];var
|
1774
|
+
`,Cm=[Kb,...xt()];var Gn=class extends Hn(pe){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`
|
1775
1775
|
${this.renderImage()}
|
1776
1776
|
<div part="body">
|
1777
1777
|
${this.renderHeader()}
|
@@ -1779,7 +1779,7 @@
|
|
1779
1779
|
<slot name="body"></slot>
|
1780
1780
|
<slot name="after-body"></slot>
|
1781
1781
|
</div>
|
1782
|
-
`}};
|
1782
|
+
`}};Gn.styles=[...pr.styles,...Cm];var Mc=Gn;var wm=Y.constructTagName("cardbutton");Mc.register(wm);var Xb=Mc;var Nm=Y.constructTagName("cardcheckbox"),Oc={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Yn={CHECK:"check",CHECKBOX:"checkbox"},Wn={SELECTION_TYPE:Yn.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var Zb=G`
|
1783
1783
|
:host {
|
1784
1784
|
cursor: pointer;
|
1785
1785
|
user-select: none;
|
@@ -1853,7 +1853,7 @@
|
|
1853
1853
|
<slot name="body"></slot>
|
1854
1854
|
<slot name="after-body"></slot>
|
1855
1855
|
</div>
|
1856
|
-
`}};Xo.styles=[...pr.styles,...Lm],p([g({type:Boolean,reflect:!0})],Xo.prototype,"checked",2),p([g({type:String,attribute:"selection-type",reflect:!0})],Xo.prototype,"selectionType",2);var Pc=Xo;var Qb=[
|
1856
|
+
`}};Xo.styles=[...pr.styles,...Lm],p([g({type:Boolean,reflect:!0})],Xo.prototype,"checked",2),p([g({type:String,attribute:"selection-type",reflect:!0})],Xo.prototype,"selectionType",2);var Pc=Xo;var Qb=[G`
|
1857
1857
|
:host {
|
1858
1858
|
margin: 0.125rem 0;
|
1859
1859
|
border-radius: 0.125rem;
|
@@ -1917,7 +1917,7 @@
|
|
1917
1917
|
length-unit="rem"
|
1918
1918
|
></mdc-icon>
|
1919
1919
|
`:W;return C`<slot></slot>
|
1920
|
-
<div part="icon-container">${t}</div>`}};Zo.styles=[...j.styles,...Rm],p([g({type:Boolean,reflect:!0})],Zo.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],Zo.prototype,"indeterminate",2);var Dc=Zo;Dc.register(Om);var Jb=Dc;Pc.register(Nm);var ty=Pc;var ey=
|
1920
|
+
<div part="icon-container">${t}</div>`}};Zo.styles=[...j.styles,...Rm],p([g({type:Boolean,reflect:!0})],Zo.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],Zo.prototype,"indeterminate",2);var Dc=Zo;Dc.register(Om);var Jb=Dc;Pc.register(Nm);var ty=Pc;var ey=G`
|
1921
1921
|
:host {
|
1922
1922
|
cursor: pointer;
|
1923
1923
|
user-select: none;
|
@@ -1981,7 +1981,7 @@
|
|
1981
1981
|
<slot name="body"></slot>
|
1982
1982
|
<slot name="after-body"></slot>
|
1983
1983
|
</div>
|
1984
|
-
`}};Qo.styles=[...pr.styles,...Pm],p([g({type:Boolean,reflect:!0})],Qo.prototype,"checked",2),p([g({type:String})],Qo.prototype,"name",2);var Fc=Qo;var qn=Y.constructTagName("cardradio");var ry=[
|
1984
|
+
`}};Qo.styles=[...pr.styles,...Pm],p([g({type:Boolean,reflect:!0})],Qo.prototype,"checked",2),p([g({type:String})],Qo.prototype,"name",2);var Fc=Qo;var qn=Y.constructTagName("cardradio");var ry=[G`
|
1985
1985
|
:host {
|
1986
1986
|
display: block;
|
1987
1987
|
position: relative;
|
@@ -2065,7 +2065,7 @@
|
|
2065
2065
|
background-color: var(--mdc-staticradio-text-disabled-color);
|
2066
2066
|
}
|
2067
2067
|
`],Dm=ry;var Jo=class extends $t(j){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return C` <slot></slot>
|
2068
|
-
<span part="radio-icon" class="icon"></span>`}};Jo.styles=[...j.styles,...Dm],p([g({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],Jo.prototype,"readonly",2);var $c=Jo;var Fm=Y.constructTagName("staticradio");$c.register(Fm);var iy=$c;Fc.register(qn);var oy=Fc;var wr=Math.min,be=Math.max,ca=Math.round,da=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,o,t){return be(l,wr(o,t))}function Qi(l,o){return typeof l=="function"?l(o):l}function Zr(l){return l.split("-")[0]}function Ji(l){return l.split("-")[1]}function zc(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 zc(Nr(l))}function Vm(l,o,t){t===void 0&&(t=!1);let i=Ji(l),a=Qn(l),h=Zn(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(m=la(m)),[m,la(m)]}function Bm(l){let o=la(l);return[Kn(l),o,Kn(o)]}function Kn(l){return l.replace(/start|end/g,o=>ay[o])}var $m=["left","right"],zm=["right","left"],ly=["top","bottom"],cy=["bottom","top"];function dy(l,o,t){switch(l){case"top":case"bottom":return t?o?zm:$m:o?$m:zm;case"left":case"right":return o?ly:cy;default:return[]}}function Um(l,o,t,i){let a=Ji(l),h=dy(Zr(l),t==="start",i);return a&&(h=h.map(m=>m+"-"+a),o&&(h=h.concat(h.map(Kn)))),h}function la(l){return l.replace(/left|right|bottom|top/g,o=>sy[o])}function hy(l){return{top:0,right:0,bottom:0,left:0,...l}}function Vc(l){return typeof l!="number"?hy(l):{top:l,right:l,bottom:l,left:l}}function to(l){let{x:o,y:t,width:i,height:a}=l;return{width:i,height:a,top:t,left:o,right:o+i,bottom:t+a,x:o,y:t}}function Gm(l,o,t){let{reference:i,floating:a}=l,h=Nr(o),m=Qn(o),T=Zn(m),R=Zr(o),$=h==="y",q=i.x+i.width/2-a.width/2,K=i.y+i.height/2-a.height/2,nt=i[T]/2-a[T]/2,Q;switch(R){case"top":Q={x:q,y:i.y-a.height};break;case"bottom":Q={x:q,y:i.y+i.height};break;case"right":Q={x:i.x+i.width,y:K};break;case"left":Q={x:i.x-a.width,y:K};break;default:Q={x:i.x,y:i.y}}switch(Ji(o)){case"start":Q[m]-=nt*(t&&$?-1:1);break;case"end":Q[m]+=nt*(t&&$?-1:1);break}return Q}var Hm=async(l,o,t)=>{let{placement:i="bottom",strategy:a="absolute",middleware:h=[],platform:m}=t,T=h.filter(Boolean),R=await(m.isRTL==null?void 0:m.isRTL(o)),$=await m.getElementRects({reference:l,floating:o,strategy:a}),{x:q,y:K}=Gm($,i,R),nt=i,Q={},rt=0;for(let ut=0;ut<T.length;ut++){let{name:At,fn:Et}=T[ut],{x:St,y:kt,data:Gt,reset:Dt}=await Et({x:q,y:K,initialPlacement:i,placement:nt,strategy:a,middlewareData:Q,rects:$,platform:m,elements:{reference:l,floating:o}});q=St!=null?St:q,K=kt!=null?kt:K,Q={...Q,[At]:{...Q[At],...Gt}},Dt&&rt<=50&&(rt++,typeof Dt=="object"&&(Dt.placement&&(nt=Dt.placement),Dt.rects&&($=Dt.rects===!0?await m.getElementRects({reference:l,floating:o,strategy:a}):Dt.rects),{x:q,y:K}=Gm($,nt,R)),ut=-1)}return{x:q,y:K,placement:nt,strategy:a,middlewareData:Q}};async function Jn(l,o){var t;o===void 0&&(o={});let{x:i,y:a,platform:h,rects:m,elements:T,strategy:R}=l,{boundary:$="clippingAncestors",rootBoundary:q="viewport",elementContext:K="floating",altBoundary:nt=!1,padding:Q=0}=Qi(o,l),rt=Vc(Q),At=T[nt?K==="floating"?"reference":"floating":K],Et=to(await h.getClippingRect({element:(t=await(h.isElement==null?void 0:h.isElement(At)))==null||t?At:At.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(T.floating)),boundary:$,rootBoundary:q,strategy:R})),St=K==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,kt=await(h.getOffsetParent==null?void 0:h.getOffsetParent(T.floating)),Gt=await(h.isElement==null?void 0:h.isElement(kt))?await(h.getScale==null?void 0:h.getScale(kt))||{x:1,y:1}:{x:1,y:1},Dt=to(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:T,rect:St,offsetParent:kt,strategy:R}):St);return{top:(Et.top-Dt.top+rt.top)/Gt.y,bottom:(Dt.bottom-Et.bottom+rt.bottom)/Gt.y,left:(Et.left-Dt.left+rt.left)/Gt.x,right:(Dt.right-Et.right+rt.right)/Gt.x}}var Ym=l=>({name:"arrow",options:l,async fn(o){let{x:t,y:i,placement:a,rects:h,platform:m,elements:T,middlewareData:R}=o,{element:$,padding:q=0}=Qi(l,o)||{};if($==null)return{};let K=Vc(q),nt={x:t,y:i},Q=Qn(a),rt=Zn(Q),ut=await m.getDimensions($),At=Q==="y",Et=At?"top":"left",St=At?"bottom":"right",kt=At?"clientHeight":"clientWidth",Gt=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($)),jt=zt?zt[kt]:0;(!jt||!await(m.isElement==null?void 0:m.isElement(zt)))&&(jt=T.floating[kt]||h.floating[rt]);let ie=Gt/2-Dt/2,or=jt/2-ut[rt]/2-1,Se=wr(K[Et],or),Ve=wr(K[St],or),sr=Se,ar=jt-ut[rt]-Ve,It=jt/2-ut[rt]/2+ie,le=Xn(sr,It,ar),Be=!R.arrow&&Ji(a)!=null&&It!==le&&h.reference[rt]/2-(It<sr?Se:Ve)-ut[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(o){var t,i;let{placement:a,middlewareData:h,rects:m,initialPlacement:T,platform:R,elements:$}=o,{mainAxis:q=!0,crossAxis:K=!0,fallbackPlacements:nt,fallbackStrategy:Q="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:ut=!0,...At}=Qi(l,o);if((t=h.arrow)!=null&&t.alignmentOffset)return{};let Et=Zr(a),St=Nr(T),kt=Zr(T)===T,Gt=await(R.isRTL==null?void 0:R.isRTL($.floating)),Dt=nt||(kt||!ut?[la(T)]:Bm(T)),zt=rt!=="none";!nt&&zt&&Dt.push(...Um(T,ut,rt,Gt));let jt=[T,...Dt],ie=await Jn(o,At),or=[],Se=((i=h.flip)==null?void 0:i.overflows)||[];if(q&&or.push(ie[Et]),K){let It=Vm(a,m,Gt);or.push(ie[It[0]],ie[It[1]])}if(Se=[...Se,{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=jt[It];if(le&&(!(K==="alignment"?St!==Nr(le):!1)||Se.every(Ge=>Ge.overflows[0]>0&&Nr(Ge.placement)===St)))return{data:{index:It,overflows:Se},reset:{placement:le}};let Be=(sr=Se.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,Ge)=>Ue.overflows[1]-Ge.overflows[1])[0])==null?void 0:sr.placement;if(!Be)switch(Q){case"bestFit":{var ar;let Ue=(ar=Se.filter(Ge=>{if(zt){let He=Nr(Ge.placement);return He===St||He==="y"}return!0}).map(Ge=>[Ge.placement,Ge.overflows.filter(He=>He>0).reduce((He,za)=>He+za,0)]).sort((Ge,He)=>Ge[1]-He[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,o){let{placement:t,platform:i,elements:a}=l,h=await(i.isRTL==null?void 0:i.isRTL(a.floating)),m=Zr(t),T=Ji(t),R=Nr(t)==="y",$=py.has(m)?-1:1,q=h&&R?-1:1,K=Qi(o,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),R?{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(o){var t,i;let{x:a,y:h,placement:m,middlewareData:T}=o,R=await my(o,l);return m===((t=T.offset)==null?void 0:t.placement)&&(i=T.arrow)!=null&&i.alignmentOffset?{}:{x:a+R.x,y:h+R.y,data:{...R,placement:m}}}}},qm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(o){let{x:t,y:i,placement:a}=o,{mainAxis:h=!0,crossAxis:m=!1,limiter:T={fn:At=>{let{x:Et,y:St}=At;return{x:Et,y:St}}},...R}=Qi(l,o),$={x:t,y:i},q=await Jn(o,R),K=Nr(Zr(a)),nt=zc(K),Q=$[nt],rt=$[K];if(h){let At=nt==="y"?"top":"left",Et=nt==="y"?"bottom":"right",St=Q+q[At],kt=Q-q[Et];Q=Xn(St,Q,kt)}if(m){let At=K==="y"?"top":"left",Et=K==="y"?"bottom":"right",St=rt+q[At],kt=rt-q[Et];rt=Xn(St,rt,kt)}let ut=T.fn({...o,[nt]:Q,[K]:rt});return{...ut,data:{x:ut.x-t,y:ut.y-i,enabled:{[nt]:h,[K]:m}}}}}};var Km=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var t,i;let{placement:a,rects:h,platform:m,elements:T}=o,{apply:R=()=>{},...$}=Qi(l,o),q=await Jn(o,$),K=Zr(a),nt=Ji(a),Q=Nr(a)==="y",{width:rt,height:ut}=h.floating,At,Et;K==="top"||K==="bottom"?(At=K,Et=nt===(await(m.isRTL==null?void 0:m.isRTL(T.floating))?"start":"end")?"left":"right"):(Et=K,At=nt==="end"?"top":"bottom");let St=ut-q.top-q.bottom,kt=rt-q.left-q.right,Gt=wr(ut-q[At],St),Dt=wr(rt-q[Et],kt),zt=!o.middlewareData.shift,jt=Gt,ie=Dt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ie=kt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(jt=St),zt&&!nt){let Se=be(q.left,0),Ve=be(q.right,0),sr=be(q.top,0),ar=be(q.bottom,0);Q?ie=rt-2*(Se!==0||Ve!==0?Se+Ve:be(q.left,q.right)):jt=ut-2*(sr!==0||ar!==0?sr+ar:be(q.top,q.bottom))}await R({...o,availableWidth:ie,availableHeight:jt});let or=await m.getDimensions(T.floating);return rt!==or.width||ut!==or.height?{reset:{rects:!0}}:{}}}};function tl(){return typeof window<"u"}function eo(l){return Zm(l)?(l.nodeName||"").toLowerCase():"#document"}function Re(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function ur(l){var o;return(o=(Zm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function Zm(l){return tl()?l instanceof Node||l instanceof Re(l).Node:!1}function Xe(l){return tl()?l instanceof Element||l instanceof Re(l).Element:!1}function fr(l){return tl()?l instanceof HTMLElement||l instanceof Re(l).HTMLElement:!1}function Xm(l){return!tl()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Re(l).ShadowRoot}var uy=new Set(["inline","contents"]);function es(l){let{overflow:o,overflowX:t,overflowY:i,display:a}=Ze(l);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!uy.has(a)}var fy=new Set(["table","td","th"]);function Qm(l){return fy.has(eo(l))}var vy=[":popover-open",":modal"];function ha(l){return vy.some(o=>{try{return l.matches(o)}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 o=rl(),t=Xe(l)?Ze(l):l;return gy.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||by.some(i=>(t.willChange||"").includes(i))||yy.some(i=>(t.contain||"").includes(i))}function Jm(l){let o=Qr(l);for(;fr(o)&&!ro(o);){if(el(o))return o;if(ha(o))return null;o=Qr(o)}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 ro(l){return Ey.has(eo(l))}function Ze(l){return Re(l).getComputedStyle(l)}function pa(l){return Xe(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Qr(l){if(eo(l)==="html")return l;let o=l.assignedSlot||l.parentNode||Xm(l)&&l.host||ur(l);return Xm(o)?o.host:o}function tu(l){let o=Qr(l);return ro(o)?l.ownerDocument?l.ownerDocument.body:l.body:fr(o)&&es(o)?o:tu(o)}function ts(l,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=tu(l),h=a===((i=l.ownerDocument)==null?void 0:i.body),m=Re(a);if(h){let T=il(m);return o.concat(m,m.visualViewport||[],es(a)?a:[],T&&t?ts(T):[])}return o.concat(a,ts(a,[],t))}function il(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function iu(l){let o=Ze(l),t=parseFloat(o.width)||0,i=parseFloat(o.height)||0,a=fr(l),h=a?l.offsetWidth:t,m=a?l.offsetHeight:i,T=ca(t)!==h||ca(i)!==m;return T&&(t=h,i=m),{width:t,height:i,$:T}}function Uc(l){return Xe(l)?l:l.contextElement}function rs(l){let o=Uc(l);if(!fr(o))return mr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:h}=iu(o),m=(h?ca(t.width):t.width)/i,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 Ty=mr(0);function ou(l){let o=Re(l);return!rl()||!o.visualViewport?Ty:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function xy(l,o,t){return o===void 0&&(o=!1),!t||o&&t!==Re(l)?!1:o}function io(l,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=l.getBoundingClientRect(),h=Uc(l),m=mr(1);o&&(i?Xe(i)&&(m=rs(i)):m=rs(l));let T=xy(h,t,i)?ou(h):mr(0),R=(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=Re(h),Q=i&&Xe(i)?Re(i):i,rt=nt,ut=il(rt);for(;ut&&i&&Q!==rt;){let At=rs(ut),Et=ut.getBoundingClientRect(),St=Ze(ut),kt=Et.left+(ut.clientLeft+parseFloat(St.paddingLeft))*At.x,Gt=Et.top+(ut.clientTop+parseFloat(St.paddingTop))*At.y;R*=At.x,$*=At.y,q*=At.x,K*=At.y,R+=kt,$+=Gt,rt=Re(ut),ut=il(rt)}}return to({width:q,height:K,x:R,y:$})}function Gc(l,o){let t=pa(l).scrollLeft;return o?o.left+t:io(ur(l)).left+t}function su(l,o,t){t===void 0&&(t=!1);let i=l.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:Gc(l,i)),h=i.top+o.scrollTop;return{x:a,y:h}}function Ay(l){let{elements:o,rect:t,offsetParent:i,strategy:a}=l,h=a==="fixed",m=ur(i),T=o?ha(o.floating):!1;if(i===m||T&&h)return t;let R={scrollLeft:0,scrollTop:0},$=mr(1),q=mr(0),K=fr(i);if((K||!K&&!h)&&((eo(i)!=="body"||es(m))&&(R=pa(i)),fr(i))){let Q=io(i);$=rs(i),q.x=Q.x+i.clientLeft,q.y=Q.y+i.clientTop}let nt=m&&!K&&!h?su(m,R,!0):mr(0);return{width:t.width*$.x,height:t.height*$.y,x:t.x*$.x-R.scrollLeft*$.x+q.x+nt.x,y:t.y*$.y-R.scrollTop*$.y+q.y+nt.y}}function Sy(l){return Array.from(l.getClientRects())}function _y(l){let o=ur(l),t=pa(l),i=l.ownerDocument.body,a=be(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),h=be(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),m=-t.scrollLeft+Gc(l),T=-t.scrollTop;return Ze(i).direction==="rtl"&&(m+=be(o.clientWidth,i.clientWidth)-a),{width:a,height:h,x:m,y:T}}function Iy(l,o){let t=Re(l),i=ur(l),a=t.visualViewport,h=i.clientWidth,m=i.clientHeight,T=0,R=0;if(a){h=a.width,m=a.height;let $=rl();(!$||$&&o==="fixed")&&(T=a.offsetLeft,R=a.offsetTop)}return{width:h,height:m,x:T,y:R}}var ky=new Set(["absolute","fixed"]);function Cy(l,o){let t=io(l,!0,o==="fixed"),i=t.top+l.clientTop,a=t.left+l.clientLeft,h=fr(l)?rs(l):mr(1),m=l.clientWidth*h.x,T=l.clientHeight*h.y,R=a*h.x,$=i*h.y;return{width:m,height:T,x:R,y:$}}function eu(l,o,t){let i;if(o==="viewport")i=Iy(l,t);else if(o==="document")i=_y(ur(l));else if(Xe(o))i=Cy(o,t);else{let a=ou(l);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return to(i)}function au(l,o){let t=Qr(l);return t===o||!Xe(t)||ro(t)?!1:Ze(t).position==="fixed"||au(t,o)}function wy(l,o){let t=o.get(l);if(t)return t;let i=ts(l,[],!1).filter(T=>Xe(T)&&eo(T)!=="body"),a=null,h=Ze(l).position==="fixed",m=h?Qr(l):l;for(;Xe(m)&&!ro(m);){let T=Ze(m),R=el(m);!R&&T.position==="fixed"&&(a=null),(h?!R&&!a:!R&&T.position==="static"&&!!a&&ky.has(a.position)||es(m)&&!R&&au(l,m))?i=i.filter(q=>q!==m):a=T,m=Qr(m)}return o.set(l,i),i}function Ny(l){let{element:o,boundary:t,rootBoundary:i,strategy:a}=l,m=[...t==="clippingAncestors"?ha(o)?[]:wy(o,this._c):[].concat(t),i],T=m[0],R=m.reduce(($,q)=>{let K=eu(o,q,a);return $.top=be(K.top,$.top),$.right=wr(K.right,$.right),$.bottom=wr(K.bottom,$.bottom),$.left=be(K.left,$.left),$},eu(o,T,a));return{width:R.right-R.left,height:R.bottom-R.top,x:R.left,y:R.top}}function Ly(l){let{width:o,height:t}=iu(l);return{width:o,height:t}}function Ry(l,o,t){let i=fr(o),a=ur(o),h=t==="fixed",m=io(l,!0,h,o),T={scrollLeft:0,scrollTop:0},R=mr(0);function $(){R.x=Gc(a)}if(i||!i&&!h)if((eo(o)!=="body"||es(a))&&(T=pa(o)),i){let Q=io(o,!0,h,o);R.x=Q.x+o.clientLeft,R.y=Q.y+o.clientTop}else a&&$();h&&!i&&a&&$();let q=a&&!i&&!h?su(a,T):mr(0),K=m.left+T.scrollLeft-R.x-q.x,nt=m.top+T.scrollTop-R.y-q.y;return{x:K,y:nt,width:m.width,height:m.height}}function Bc(l){return Ze(l).position==="static"}function ru(l,o){if(!fr(l)||Ze(l).position==="fixed")return null;if(o)return o(l);let t=l.offsetParent;return ur(l)===t&&(t=t.ownerDocument.body),t}function nu(l,o){let t=Re(l);if(ha(l))return t;if(!fr(l)){let a=Qr(l);for(;a&&!ro(a);){if(Xe(a)&&!Bc(a))return a;a=Qr(a)}return t}let i=ru(l,o);for(;i&&Qm(i)&&Bc(i);)i=ru(i,o);return i&&ro(i)&&Bc(i)&&!el(i)?t:i||Jm(l)||t}var My=async function(l){let o=this.getOffsetParent||nu,t=this.getDimensions,i=await t(l.floating);return{reference:Ry(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:i.width,height:i.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:rs,isElement:Xe,isRTL:Oy};function lu(l,o){return l.x===o.x&&l.y===o.y&&l.width===o.width&&l.height===o.height}function Dy(l,o){let t=null,i,a=ur(l);function h(){var T;clearTimeout(i),(T=t)==null||T.disconnect(),t=null}function m(T,R){T===void 0&&(T=!1),R===void 0&&(R=1),h();let $=l.getBoundingClientRect(),{left:q,top:K,width:nt,height:Q}=$;if(T||o(),!nt||!Q)return;let rt=da(K),ut=da(a.clientWidth-(q+nt)),At=da(a.clientHeight-(K+Q)),Et=da(q),kt={rootMargin:-rt+"px "+-ut+"px "+-At+"px "+-Et+"px",threshold:be(0,wr(1,R))||1},Gt=!0;function Dt(zt){let jt=zt[0].intersectionRatio;if(jt!==R){if(!Gt)return m();jt?m(!1,jt):i=setTimeout(()=>{m(!1,1e-7)},1e3)}jt===1&&!lu($,l.getBoundingClientRect())&&m(),Gt=!1}try{t=new IntersectionObserver(Dt,{...kt,root:a.ownerDocument})}catch{t=new IntersectionObserver(Dt,kt)}t.observe(l)}return m(!0),h}function cu(l,o,t,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:T=typeof IntersectionObserver=="function",animationFrame:R=!1}=i,$=Uc(l),q=a||h?[...$?ts($):[],...ts(o)]:[];q.forEach(Et=>{a&&Et.addEventListener("scroll",t,{passive:!0}),h&&Et.addEventListener("resize",t)});let K=$&&T?Dy($,t):null,nt=-1,Q=null;m&&(Q=new ResizeObserver(Et=>{let[St]=Et;St&&St.target===$&&Q&&(Q.unobserve(o),cancelAnimationFrame(nt),nt=requestAnimationFrame(()=>{var kt;(kt=Q)==null||kt.observe(o)})),t()}),$&&!R&&Q.observe($),Q.observe(o));let rt,ut=R?io(l):null;R&&At();function At(){let Et=io(l);ut&&!lu(ut,Et)&&t(),ut=Et,rt=requestAnimationFrame(At)}return t(),()=>{var Et;q.forEach(St=>{a&&St.removeEventListener("scroll",t),h&&St.removeEventListener("resize",t)}),K==null||K(),(Et=Q)==null||Et.disconnect(),Q=null,R&&cancelAnimationFrame(rt)}}var du=jm;var hu=qm,pu=Wm,mu=Km;var uu=Ym;var fu=(l,o,t)=>{let i=new Map,a={platform:Py,...t},h={...a.platform,_c:i};return Hm(l,o,{...a,platform:h})};var is=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};is.stack=new Set,is.currentKeydownListener=null;var ol=l=>{class o 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),is.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),is.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:m}=a.getBoundingClientRect(),{offsetWidth:T,offsetHeight:R}=a;return T+R+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){return a instanceof HTMLElement&&this.isFocusable(a)&&h.add(a),Array.from(a.children).forEach(T=>{let R=T;this.isFocusable(R)&&h.add(R),R.shadowRoot?this.findFocusable(R.shadowRoot,h):R.tagName==="SLOT"?R.assignedElements({flatten:!0}).forEach(q=>{q instanceof HTMLElement&&this.findFocusable(q,h)}):this.findFocusable(R,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 R=this.focusableElements[this.focusTrapIndex];R.tagName!=="IFRAME"&&R&&(a.preventDefault(),R.focus())}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&this.trapFocus(a)}}return p([g({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var sl=l=>{class o 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 o};var vu=Y.constructTagName("popover"),Ut={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},oo={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},so={TONAL:"tonal",CONTRAST:"contrast"},Lt={PLACEMENT:Ut.BOTTOM,TRIGGER:oo.CLICK,COLOR:so.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};var Jr=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var Hc=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},ye=new Hc;var Fy=H`
|
2068
|
+
<span part="radio-icon" class="icon"></span>`}};Jo.styles=[...j.styles,...Dm],p([g({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],Jo.prototype,"readonly",2);var $c=Jo;var Fm=Y.constructTagName("staticradio");$c.register(Fm);var iy=$c;Fc.register(qn);var oy=Fc;var wr=Math.min,be=Math.max,ca=Math.round,da=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,o,t){return be(l,wr(o,t))}function Qi(l,o){return typeof l=="function"?l(o):l}function Zr(l){return l.split("-")[0]}function Ji(l){return l.split("-")[1]}function zc(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 zc(Nr(l))}function Vm(l,o,t){t===void 0&&(t=!1);let i=Ji(l),a=Qn(l),h=Zn(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[h]>o.floating[h]&&(m=la(m)),[m,la(m)]}function Bm(l){let o=la(l);return[Kn(l),o,Kn(o)]}function Kn(l){return l.replace(/start|end/g,o=>ay[o])}var $m=["left","right"],zm=["right","left"],ly=["top","bottom"],cy=["bottom","top"];function dy(l,o,t){switch(l){case"top":case"bottom":return t?o?zm:$m:o?$m:zm;case"left":case"right":return o?ly:cy;default:return[]}}function Um(l,o,t,i){let a=Ji(l),h=dy(Zr(l),t==="start",i);return a&&(h=h.map(m=>m+"-"+a),o&&(h=h.concat(h.map(Kn)))),h}function la(l){return l.replace(/left|right|bottom|top/g,o=>sy[o])}function hy(l){return{top:0,right:0,bottom:0,left:0,...l}}function Vc(l){return typeof l!="number"?hy(l):{top:l,right:l,bottom:l,left:l}}function to(l){let{x:o,y:t,width:i,height:a}=l;return{width:i,height:a,top:t,left:o,right:o+i,bottom:t+a,x:o,y:t}}function Hm(l,o,t){let{reference:i,floating:a}=l,h=Nr(o),m=Qn(o),T=Zn(m),R=Zr(o),$=h==="y",q=i.x+i.width/2-a.width/2,K=i.y+i.height/2-a.height/2,nt=i[T]/2-a[T]/2,Q;switch(R){case"top":Q={x:q,y:i.y-a.height};break;case"bottom":Q={x:q,y:i.y+i.height};break;case"right":Q={x:i.x+i.width,y:K};break;case"left":Q={x:i.x-a.width,y:K};break;default:Q={x:i.x,y:i.y}}switch(Ji(o)){case"start":Q[m]-=nt*(t&&$?-1:1);break;case"end":Q[m]+=nt*(t&&$?-1:1);break}return Q}var Gm=async(l,o,t)=>{let{placement:i="bottom",strategy:a="absolute",middleware:h=[],platform:m}=t,T=h.filter(Boolean),R=await(m.isRTL==null?void 0:m.isRTL(o)),$=await m.getElementRects({reference:l,floating:o,strategy:a}),{x:q,y:K}=Hm($,i,R),nt=i,Q={},rt=0;for(let ut=0;ut<T.length;ut++){let{name:At,fn:Et}=T[ut],{x:St,y:kt,data:Ht,reset:Dt}=await Et({x:q,y:K,initialPlacement:i,placement:nt,strategy:a,middlewareData:Q,rects:$,platform:m,elements:{reference:l,floating:o}});q=St!=null?St:q,K=kt!=null?kt:K,Q={...Q,[At]:{...Q[At],...Ht}},Dt&&rt<=50&&(rt++,typeof Dt=="object"&&(Dt.placement&&(nt=Dt.placement),Dt.rects&&($=Dt.rects===!0?await m.getElementRects({reference:l,floating:o,strategy:a}):Dt.rects),{x:q,y:K}=Hm($,nt,R)),ut=-1)}return{x:q,y:K,placement:nt,strategy:a,middlewareData:Q}};async function Jn(l,o){var t;o===void 0&&(o={});let{x:i,y:a,platform:h,rects:m,elements:T,strategy:R}=l,{boundary:$="clippingAncestors",rootBoundary:q="viewport",elementContext:K="floating",altBoundary:nt=!1,padding:Q=0}=Qi(o,l),rt=Vc(Q),At=T[nt?K==="floating"?"reference":"floating":K],Et=to(await h.getClippingRect({element:(t=await(h.isElement==null?void 0:h.isElement(At)))==null||t?At:At.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(T.floating)),boundary:$,rootBoundary:q,strategy:R})),St=K==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,kt=await(h.getOffsetParent==null?void 0:h.getOffsetParent(T.floating)),Ht=await(h.isElement==null?void 0:h.isElement(kt))?await(h.getScale==null?void 0:h.getScale(kt))||{x:1,y:1}:{x:1,y:1},Dt=to(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:T,rect:St,offsetParent:kt,strategy:R}):St);return{top:(Et.top-Dt.top+rt.top)/Ht.y,bottom:(Dt.bottom-Et.bottom+rt.bottom)/Ht.y,left:(Et.left-Dt.left+rt.left)/Ht.x,right:(Dt.right-Et.right+rt.right)/Ht.x}}var Ym=l=>({name:"arrow",options:l,async fn(o){let{x:t,y:i,placement:a,rects:h,platform:m,elements:T,middlewareData:R}=o,{element:$,padding:q=0}=Qi(l,o)||{};if($==null)return{};let K=Vc(q),nt={x:t,y:i},Q=Qn(a),rt=Zn(Q),ut=await m.getDimensions($),At=Q==="y",Et=At?"top":"left",St=At?"bottom":"right",kt=At?"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($)),jt=zt?zt[kt]:0;(!jt||!await(m.isElement==null?void 0:m.isElement(zt)))&&(jt=T.floating[kt]||h.floating[rt]);let ie=Ht/2-Dt/2,or=jt/2-ut[rt]/2-1,Se=wr(K[Et],or),Ve=wr(K[St],or),sr=Se,ar=jt-ut[rt]-Ve,It=jt/2-ut[rt]/2+ie,le=Xn(sr,It,ar),Be=!R.arrow&&Ji(a)!=null&&It!==le&&h.reference[rt]/2-(It<sr?Se:Ve)-ut[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(o){var t,i;let{placement:a,middlewareData:h,rects:m,initialPlacement:T,platform:R,elements:$}=o,{mainAxis:q=!0,crossAxis:K=!0,fallbackPlacements:nt,fallbackStrategy:Q="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:ut=!0,...At}=Qi(l,o);if((t=h.arrow)!=null&&t.alignmentOffset)return{};let Et=Zr(a),St=Nr(T),kt=Zr(T)===T,Ht=await(R.isRTL==null?void 0:R.isRTL($.floating)),Dt=nt||(kt||!ut?[la(T)]:Bm(T)),zt=rt!=="none";!nt&&zt&&Dt.push(...Um(T,ut,rt,Ht));let jt=[T,...Dt],ie=await Jn(o,At),or=[],Se=((i=h.flip)==null?void 0:i.overflows)||[];if(q&&or.push(ie[Et]),K){let It=Vm(a,m,Ht);or.push(ie[It[0]],ie[It[1]])}if(Se=[...Se,{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=jt[It];if(le&&(!(K==="alignment"?St!==Nr(le):!1)||Se.every(He=>He.overflows[0]>0&&Nr(He.placement)===St)))return{data:{index:It,overflows:Se},reset:{placement:le}};let Be=(sr=Se.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=Se.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,o){let{placement:t,platform:i,elements:a}=l,h=await(i.isRTL==null?void 0:i.isRTL(a.floating)),m=Zr(t),T=Ji(t),R=Nr(t)==="y",$=py.has(m)?-1:1,q=h&&R?-1:1,K=Qi(o,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),R?{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(o){var t,i;let{x:a,y:h,placement:m,middlewareData:T}=o,R=await my(o,l);return m===((t=T.offset)==null?void 0:t.placement)&&(i=T.arrow)!=null&&i.alignmentOffset?{}:{x:a+R.x,y:h+R.y,data:{...R,placement:m}}}}},qm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(o){let{x:t,y:i,placement:a}=o,{mainAxis:h=!0,crossAxis:m=!1,limiter:T={fn:At=>{let{x:Et,y:St}=At;return{x:Et,y:St}}},...R}=Qi(l,o),$={x:t,y:i},q=await Jn(o,R),K=Nr(Zr(a)),nt=zc(K),Q=$[nt],rt=$[K];if(h){let At=nt==="y"?"top":"left",Et=nt==="y"?"bottom":"right",St=Q+q[At],kt=Q-q[Et];Q=Xn(St,Q,kt)}if(m){let At=K==="y"?"top":"left",Et=K==="y"?"bottom":"right",St=rt+q[At],kt=rt-q[Et];rt=Xn(St,rt,kt)}let ut=T.fn({...o,[nt]:Q,[K]:rt});return{...ut,data:{x:ut.x-t,y:ut.y-i,enabled:{[nt]:h,[K]:m}}}}}};var Km=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(o){var t,i;let{placement:a,rects:h,platform:m,elements:T}=o,{apply:R=()=>{},...$}=Qi(l,o),q=await Jn(o,$),K=Zr(a),nt=Ji(a),Q=Nr(a)==="y",{width:rt,height:ut}=h.floating,At,Et;K==="top"||K==="bottom"?(At=K,Et=nt===(await(m.isRTL==null?void 0:m.isRTL(T.floating))?"start":"end")?"left":"right"):(Et=K,At=nt==="end"?"top":"bottom");let St=ut-q.top-q.bottom,kt=rt-q.left-q.right,Ht=wr(ut-q[At],St),Dt=wr(rt-q[Et],kt),zt=!o.middlewareData.shift,jt=Ht,ie=Dt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ie=kt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(jt=St),zt&&!nt){let Se=be(q.left,0),Ve=be(q.right,0),sr=be(q.top,0),ar=be(q.bottom,0);Q?ie=rt-2*(Se!==0||Ve!==0?Se+Ve:be(q.left,q.right)):jt=ut-2*(sr!==0||ar!==0?sr+ar:be(q.top,q.bottom))}await R({...o,availableWidth:ie,availableHeight:jt});let or=await m.getDimensions(T.floating);return rt!==or.width||ut!==or.height?{reset:{rects:!0}}:{}}}};function tl(){return typeof window<"u"}function eo(l){return Zm(l)?(l.nodeName||"").toLowerCase():"#document"}function Re(l){var o;return(l==null||(o=l.ownerDocument)==null?void 0:o.defaultView)||window}function ur(l){var o;return(o=(Zm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:o.documentElement}function Zm(l){return tl()?l instanceof Node||l instanceof Re(l).Node:!1}function Xe(l){return tl()?l instanceof Element||l instanceof Re(l).Element:!1}function fr(l){return tl()?l instanceof HTMLElement||l instanceof Re(l).HTMLElement:!1}function Xm(l){return!tl()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Re(l).ShadowRoot}var uy=new Set(["inline","contents"]);function es(l){let{overflow:o,overflowX:t,overflowY:i,display:a}=Ze(l);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!uy.has(a)}var fy=new Set(["table","td","th"]);function Qm(l){return fy.has(eo(l))}var vy=[":popover-open",":modal"];function ha(l){return vy.some(o=>{try{return l.matches(o)}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 o=rl(),t=Xe(l)?Ze(l):l;return gy.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||by.some(i=>(t.willChange||"").includes(i))||yy.some(i=>(t.contain||"").includes(i))}function Jm(l){let o=Qr(l);for(;fr(o)&&!ro(o);){if(el(o))return o;if(ha(o))return null;o=Qr(o)}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 ro(l){return Ey.has(eo(l))}function Ze(l){return Re(l).getComputedStyle(l)}function pa(l){return Xe(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Qr(l){if(eo(l)==="html")return l;let o=l.assignedSlot||l.parentNode||Xm(l)&&l.host||ur(l);return Xm(o)?o.host:o}function tu(l){let o=Qr(l);return ro(o)?l.ownerDocument?l.ownerDocument.body:l.body:fr(o)&&es(o)?o:tu(o)}function ts(l,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=tu(l),h=a===((i=l.ownerDocument)==null?void 0:i.body),m=Re(a);if(h){let T=il(m);return o.concat(m,m.visualViewport||[],es(a)?a:[],T&&t?ts(T):[])}return o.concat(a,ts(a,[],t))}function il(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function iu(l){let o=Ze(l),t=parseFloat(o.width)||0,i=parseFloat(o.height)||0,a=fr(l),h=a?l.offsetWidth:t,m=a?l.offsetHeight:i,T=ca(t)!==h||ca(i)!==m;return T&&(t=h,i=m),{width:t,height:i,$:T}}function Uc(l){return Xe(l)?l:l.contextElement}function rs(l){let o=Uc(l);if(!fr(o))return mr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:h}=iu(o),m=(h?ca(t.width):t.width)/i,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 Ty=mr(0);function ou(l){let o=Re(l);return!rl()||!o.visualViewport?Ty:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function xy(l,o,t){return o===void 0&&(o=!1),!t||o&&t!==Re(l)?!1:o}function io(l,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=l.getBoundingClientRect(),h=Uc(l),m=mr(1);o&&(i?Xe(i)&&(m=rs(i)):m=rs(l));let T=xy(h,t,i)?ou(h):mr(0),R=(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=Re(h),Q=i&&Xe(i)?Re(i):i,rt=nt,ut=il(rt);for(;ut&&i&&Q!==rt;){let At=rs(ut),Et=ut.getBoundingClientRect(),St=Ze(ut),kt=Et.left+(ut.clientLeft+parseFloat(St.paddingLeft))*At.x,Ht=Et.top+(ut.clientTop+parseFloat(St.paddingTop))*At.y;R*=At.x,$*=At.y,q*=At.x,K*=At.y,R+=kt,$+=Ht,rt=Re(ut),ut=il(rt)}}return to({width:q,height:K,x:R,y:$})}function Hc(l,o){let t=pa(l).scrollLeft;return o?o.left+t:io(ur(l)).left+t}function su(l,o,t){t===void 0&&(t=!1);let i=l.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:Hc(l,i)),h=i.top+o.scrollTop;return{x:a,y:h}}function Ay(l){let{elements:o,rect:t,offsetParent:i,strategy:a}=l,h=a==="fixed",m=ur(i),T=o?ha(o.floating):!1;if(i===m||T&&h)return t;let R={scrollLeft:0,scrollTop:0},$=mr(1),q=mr(0),K=fr(i);if((K||!K&&!h)&&((eo(i)!=="body"||es(m))&&(R=pa(i)),fr(i))){let Q=io(i);$=rs(i),q.x=Q.x+i.clientLeft,q.y=Q.y+i.clientTop}let nt=m&&!K&&!h?su(m,R,!0):mr(0);return{width:t.width*$.x,height:t.height*$.y,x:t.x*$.x-R.scrollLeft*$.x+q.x+nt.x,y:t.y*$.y-R.scrollTop*$.y+q.y+nt.y}}function Sy(l){return Array.from(l.getClientRects())}function _y(l){let o=ur(l),t=pa(l),i=l.ownerDocument.body,a=be(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),h=be(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),m=-t.scrollLeft+Hc(l),T=-t.scrollTop;return Ze(i).direction==="rtl"&&(m+=be(o.clientWidth,i.clientWidth)-a),{width:a,height:h,x:m,y:T}}function Iy(l,o){let t=Re(l),i=ur(l),a=t.visualViewport,h=i.clientWidth,m=i.clientHeight,T=0,R=0;if(a){h=a.width,m=a.height;let $=rl();(!$||$&&o==="fixed")&&(T=a.offsetLeft,R=a.offsetTop)}return{width:h,height:m,x:T,y:R}}var ky=new Set(["absolute","fixed"]);function Cy(l,o){let t=io(l,!0,o==="fixed"),i=t.top+l.clientTop,a=t.left+l.clientLeft,h=fr(l)?rs(l):mr(1),m=l.clientWidth*h.x,T=l.clientHeight*h.y,R=a*h.x,$=i*h.y;return{width:m,height:T,x:R,y:$}}function eu(l,o,t){let i;if(o==="viewport")i=Iy(l,t);else if(o==="document")i=_y(ur(l));else if(Xe(o))i=Cy(o,t);else{let a=ou(l);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return to(i)}function au(l,o){let t=Qr(l);return t===o||!Xe(t)||ro(t)?!1:Ze(t).position==="fixed"||au(t,o)}function wy(l,o){let t=o.get(l);if(t)return t;let i=ts(l,[],!1).filter(T=>Xe(T)&&eo(T)!=="body"),a=null,h=Ze(l).position==="fixed",m=h?Qr(l):l;for(;Xe(m)&&!ro(m);){let T=Ze(m),R=el(m);!R&&T.position==="fixed"&&(a=null),(h?!R&&!a:!R&&T.position==="static"&&!!a&&ky.has(a.position)||es(m)&&!R&&au(l,m))?i=i.filter(q=>q!==m):a=T,m=Qr(m)}return o.set(l,i),i}function Ny(l){let{element:o,boundary:t,rootBoundary:i,strategy:a}=l,m=[...t==="clippingAncestors"?ha(o)?[]:wy(o,this._c):[].concat(t),i],T=m[0],R=m.reduce(($,q)=>{let K=eu(o,q,a);return $.top=be(K.top,$.top),$.right=wr(K.right,$.right),$.bottom=wr(K.bottom,$.bottom),$.left=be(K.left,$.left),$},eu(o,T,a));return{width:R.right-R.left,height:R.bottom-R.top,x:R.left,y:R.top}}function Ly(l){let{width:o,height:t}=iu(l);return{width:o,height:t}}function Ry(l,o,t){let i=fr(o),a=ur(o),h=t==="fixed",m=io(l,!0,h,o),T={scrollLeft:0,scrollTop:0},R=mr(0);function $(){R.x=Hc(a)}if(i||!i&&!h)if((eo(o)!=="body"||es(a))&&(T=pa(o)),i){let Q=io(o,!0,h,o);R.x=Q.x+o.clientLeft,R.y=Q.y+o.clientTop}else a&&$();h&&!i&&a&&$();let q=a&&!i&&!h?su(a,T):mr(0),K=m.left+T.scrollLeft-R.x-q.x,nt=m.top+T.scrollTop-R.y-q.y;return{x:K,y:nt,width:m.width,height:m.height}}function Bc(l){return Ze(l).position==="static"}function ru(l,o){if(!fr(l)||Ze(l).position==="fixed")return null;if(o)return o(l);let t=l.offsetParent;return ur(l)===t&&(t=t.ownerDocument.body),t}function nu(l,o){let t=Re(l);if(ha(l))return t;if(!fr(l)){let a=Qr(l);for(;a&&!ro(a);){if(Xe(a)&&!Bc(a))return a;a=Qr(a)}return t}let i=ru(l,o);for(;i&&Qm(i)&&Bc(i);)i=ru(i,o);return i&&ro(i)&&Bc(i)&&!el(i)?t:i||Jm(l)||t}var My=async function(l){let o=this.getOffsetParent||nu,t=this.getDimensions,i=await t(l.floating);return{reference:Ry(l.reference,await o(l.floating),l.strategy),floating:{x:0,y:0,width:i.width,height:i.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:rs,isElement:Xe,isRTL:Oy};function lu(l,o){return l.x===o.x&&l.y===o.y&&l.width===o.width&&l.height===o.height}function Dy(l,o){let t=null,i,a=ur(l);function h(){var T;clearTimeout(i),(T=t)==null||T.disconnect(),t=null}function m(T,R){T===void 0&&(T=!1),R===void 0&&(R=1),h();let $=l.getBoundingClientRect(),{left:q,top:K,width:nt,height:Q}=$;if(T||o(),!nt||!Q)return;let rt=da(K),ut=da(a.clientWidth-(q+nt)),At=da(a.clientHeight-(K+Q)),Et=da(q),kt={rootMargin:-rt+"px "+-ut+"px "+-At+"px "+-Et+"px",threshold:be(0,wr(1,R))||1},Ht=!0;function Dt(zt){let jt=zt[0].intersectionRatio;if(jt!==R){if(!Ht)return m();jt?m(!1,jt):i=setTimeout(()=>{m(!1,1e-7)},1e3)}jt===1&&!lu($,l.getBoundingClientRect())&&m(),Ht=!1}try{t=new IntersectionObserver(Dt,{...kt,root:a.ownerDocument})}catch{t=new IntersectionObserver(Dt,kt)}t.observe(l)}return m(!0),h}function cu(l,o,t,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:T=typeof IntersectionObserver=="function",animationFrame:R=!1}=i,$=Uc(l),q=a||h?[...$?ts($):[],...ts(o)]:[];q.forEach(Et=>{a&&Et.addEventListener("scroll",t,{passive:!0}),h&&Et.addEventListener("resize",t)});let K=$&&T?Dy($,t):null,nt=-1,Q=null;m&&(Q=new ResizeObserver(Et=>{let[St]=Et;St&&St.target===$&&Q&&(Q.unobserve(o),cancelAnimationFrame(nt),nt=requestAnimationFrame(()=>{var kt;(kt=Q)==null||kt.observe(o)})),t()}),$&&!R&&Q.observe($),Q.observe(o));let rt,ut=R?io(l):null;R&&At();function At(){let Et=io(l);ut&&!lu(ut,Et)&&t(),ut=Et,rt=requestAnimationFrame(At)}return t(),()=>{var Et;q.forEach(St=>{a&&St.removeEventListener("scroll",t),h&&St.removeEventListener("resize",t)}),K==null||K(),(Et=Q)==null||Et.disconnect(),Q=null,R&&cancelAnimationFrame(rt)}}var du=jm;var hu=qm,pu=Wm,mu=Km;var uu=Ym;var fu=(l,o,t)=>{let i=new Map,a={platform:Py,...t},h={...a.platform,_c:i};return Gm(l,o,{...a,platform:h})};var is=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};is.stack=new Set,is.currentKeydownListener=null;var ol=l=>{class o 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),is.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),is.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:m}=a.getBoundingClientRect(),{offsetWidth:T,offsetHeight:R}=a;return T+R+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 R=T;this.isFocusable(R)&&h.add(R),R.shadowRoot?this.findFocusable(R.shadowRoot,h):R.tagName==="SLOT"?R.assignedElements({flatten:!0}).forEach(q=>{q instanceof HTMLElement&&this.findFocusable(q,h)}):this.findFocusable(R,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 R=this.focusableElements[this.focusTrapIndex];R.tagName!=="IFRAME"&&R&&(a.preventDefault(),R.focus())}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&this.trapFocus(a)}}return p([g({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var sl=l=>{class o 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 o};var vu=Y.constructTagName("popover"),Ut={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},oo={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},so={TONAL:"tonal",CONTRAST:"contrast"},Lt={PLACEMENT:Ut.BOTTOM,TRIGGER:oo.CLICK,COLOR:so.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};var Jr=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var Gc=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},ye=new Gc;var Fy=G`
|
2069
2069
|
:host {
|
2070
2070
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
2071
2071
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -2201,7 +2201,7 @@
|
|
2201
2201
|
<div part="popover-content">
|
2202
2202
|
<slot></slot>
|
2203
2203
|
</div>
|
2204
|
-
`}};_t.styles=[...j.styles,...gu],p([g({type:String,reflect:!0})],_t.prototype,"id",2),p([g({type:String,reflect:!0})],_t.prototype,"triggerID",2),p([g({type:String,reflect:!0})],_t.prototype,"trigger",2),p([g({type:String,reflect:!0})],_t.prototype,"placement",2),p([g({type:String,reflect:!0})],_t.prototype,"color",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"visible",2),p([g({type:Number,reflect:!0})],_t.prototype,"offset",2),p([g({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),p([g({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),p([g({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),p([g({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),p([g({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),p([g({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),p([g({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),p([g({type:String,reflect:!0})],_t.prototype,"delay",2),p([g({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),p([g({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),p([g({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),p([g({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),p([g({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"flip",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"size",2),p([g({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",2),p([g({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),p([g({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),p([g({type:String,reflect:!0})],_t.prototype,"role",2),p([g({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),p([g({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],_t.prototype,"disableAriaHasPopup",2),p([g({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-closed"})],_t.prototype,"keepConnectedTooltipClosed",2);var Yc=_t,Me=Yc;var bu=Y.constructTagName("toggletip"),ao={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Ut.TOP,CLICK:oo.CLICK,SHOW_ARROW:!0};var $y=
|
2204
|
+
`}};_t.styles=[...j.styles,...gu],p([g({type:String,reflect:!0})],_t.prototype,"id",2),p([g({type:String,reflect:!0})],_t.prototype,"triggerID",2),p([g({type:String,reflect:!0})],_t.prototype,"trigger",2),p([g({type:String,reflect:!0})],_t.prototype,"placement",2),p([g({type:String,reflect:!0})],_t.prototype,"color",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"visible",2),p([g({type:Number,reflect:!0})],_t.prototype,"offset",2),p([g({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),p([g({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),p([g({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),p([g({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),p([g({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),p([g({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),p([g({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),p([g({type:String,reflect:!0})],_t.prototype,"delay",2),p([g({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),p([g({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),p([g({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),p([g({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),p([g({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"flip",2),p([g({type:Boolean,reflect:!0})],_t.prototype,"size",2),p([g({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",2),p([g({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),p([g({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),p([g({type:String,reflect:!0})],_t.prototype,"role",2),p([g({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),p([g({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],_t.prototype,"disableAriaHasPopup",2),p([g({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-closed"})],_t.prototype,"keepConnectedTooltipClosed",2);var Yc=_t,Me=Yc;var bu=Y.constructTagName("toggletip"),ao={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Ut.TOP,CLICK:oo.CLICK,SHOW_ARROW:!0};var $y=G`
|
2205
2205
|
:host {
|
2206
2206
|
--mdc-toggletip-max-width: 400px;
|
2207
2207
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -2239,7 +2239,7 @@
|
|
2239
2239
|
delay="300"
|
2240
2240
|
>
|
2241
2241
|
</mdc-screenreaderannouncer>
|
2242
|
-
`}};_i.styles=[...Me.styles,...yu],p([vn()],_i.prototype,"defaultSlotNodes",2),p([Tt()],_i.prototype,"currentAnnouncement",2),p([g({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],_i.prototype,"screenreaderAnnouncerIdentity",2),p([g({type:String,reflect:!0})],_i.prototype,"placement",2);var Wc=_i;var Eu=Y.constructTagName("screenreaderannouncer"),zy={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},os={ARIA_LIVE:zy.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Vy=[
|
2242
|
+
`}};_i.styles=[...Me.styles,...yu],p([vn()],_i.prototype,"defaultSlotNodes",2),p([Tt()],_i.prototype,"currentAnnouncement",2),p([g({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],_i.prototype,"screenreaderAnnouncerIdentity",2),p([g({type:String,reflect:!0})],_i.prototype,"placement",2);var Wc=_i;var Eu=Y.constructTagName("screenreaderannouncer"),zy={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},os={ARIA_LIVE:zy.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Vy=[G`
|
2243
2243
|
:host {
|
2244
2244
|
display: none;
|
2245
2245
|
visibility: hidden;
|
@@ -2254,7 +2254,7 @@
|
|
2254
2254
|
white-space: nowrap;
|
2255
2255
|
width: 1px;
|
2256
2256
|
}
|
2257
|
-
`,t.appendChild(i),t.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(t)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=os.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(t){t.has("identity")&&this.identity.length===0&&(this.identity=os.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};ti.styles=[...j.styles,...Tu],p([g({type:String,reflect:!0})],ti.prototype,"announcement",2),p([g({type:String,reflect:!0})],ti.prototype,"identity",2),p([g({type:String,reflect:!0,attribute:"data-aria-live"})],ti.prototype,"dataAriaLive",2),p([g({type:Number,reflect:!0})],ti.prototype,"delay",2),p([g({type:Number,reflect:!0})],ti.prototype,"timeout",2);var jc=ti;jc.register(Eu);var By=jc;Wc.register(bu);var Uy=Wc;var Yt=l=>{class o extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return p([g({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Oe=l=>{class o extends l{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-el-${ve()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,p([g({reflect:!0,type:String})],o.prototype,"name",2),p([g({reflect:!0,type:String})],o.prototype,"value",2),p([g({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),p([
|
2257
|
+
`,t.appendChild(i),t.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(t)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=os.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(t){t.has("identity")&&this.identity.length===0&&(this.identity=os.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};ti.styles=[...j.styles,...Tu],p([g({type:String,reflect:!0})],ti.prototype,"announcement",2),p([g({type:String,reflect:!0})],ti.prototype,"identity",2),p([g({type:String,reflect:!0,attribute:"data-aria-live"})],ti.prototype,"dataAriaLive",2),p([g({type:Number,reflect:!0})],ti.prototype,"delay",2),p([g({type:Number,reflect:!0})],ti.prototype,"timeout",2);var jc=ti;jc.register(Eu);var By=jc;Wc.register(bu);var Uy=Wc;var Yt=l=>{class o extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return p([g({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Oe=l=>{class o extends l{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-el-${ve()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,p([g({reflect:!0,type:String})],o.prototype,"name",2),p([g({reflect:!0,type:String})],o.prototype,"value",2),p([g({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),p([Hr("input")],o.prototype,"inputElement",2),o};var xu=Y.constructTagName("formfieldwrapper"),Wt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Pt={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:mt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Hy=[yt,G`
|
2258
2258
|
:host {
|
2259
2259
|
flex-direction: column;
|
2260
2260
|
align-items: flex-start;
|
@@ -2313,7 +2313,7 @@
|
|
2313
2313
|
:host([help-text-type='priority']) .mdc-help-text {
|
2314
2314
|
color: var(--mds-color-theme-text-accent-normal);
|
2315
2315
|
}
|
2316
|
-
`],Au=
|
2316
|
+
`],Au=Hy;var Su=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 Qe=class extends $t(j){constructor(){super(...arguments);this.required=!1;this.id="";this.helpTextType=Pt.VALIDATION;this.toggletipPlacement=Pt.TOGGLETIP_PLACEMENT;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?C`<label for="${this.id}" id="${Pt.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:C` <mdc-text
|
2317
2317
|
id="${Pt.HEADING_ID}"
|
2318
2318
|
tagname="${ma.TAGNAME}"
|
2319
2319
|
type="${ma.HEADER_TYPE}"
|
@@ -2350,7 +2350,7 @@
|
|
2350
2350
|
</div>`:W}renderHelperText(){return this.helpText?C`<div class="mdc-help-text" part="help-text">
|
2351
2351
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
2352
2352
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
2353
|
-
</div>`:W}};Qe.styles=[...j.styles,...Au],p([g({reflect:!0,type:String})],Qe.prototype,"label",2),p([g({type:Boolean,reflect:!0,attribute:"required"})],Qe.prototype,"required",2),p([g({type:String})],Qe.prototype,"id",2),p([g({reflect:!0,attribute:"help-text-type"})],Qe.prototype,"helpTextType",2),p([g({type:String,reflect:!0,attribute:"help-text"})],Qe.prototype,"helpText",2),p([g({type:String,reflect:!0,attribute:"toggletip-text"})],Qe.prototype,"toggletipText",2),p([g({type:String,reflect:!0,attribute:"toggletip-placement"})],Qe.prototype,"toggletipPlacement",2),p([g({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Qe.prototype,"infoIconAriaLabel",2);var Ee=Qe;var
|
2353
|
+
</div>`:W}};Qe.styles=[...j.styles,...Au],p([g({reflect:!0,type:String})],Qe.prototype,"label",2),p([g({type:Boolean,reflect:!0,attribute:"required"})],Qe.prototype,"required",2),p([g({type:String})],Qe.prototype,"id",2),p([g({reflect:!0,attribute:"help-text-type"})],Qe.prototype,"helpTextType",2),p([g({type:String,reflect:!0,attribute:"help-text"})],Qe.prototype,"helpText",2),p([g({type:String,reflect:!0,attribute:"toggletip-text"})],Qe.prototype,"toggletipText",2),p([g({type:String,reflect:!0,attribute:"toggletip-placement"})],Qe.prototype,"toggletipPlacement",2),p([g({type:String,reflect:!0,attribute:"info-icon-aria-label"})],Qe.prototype,"infoIconAriaLabel",2);var Ee=Qe;var Gy=[G`
|
2354
2354
|
:host {
|
2355
2355
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
2356
2356
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -2422,7 +2422,7 @@
|
|
2422
2422
|
flex-direction: column;
|
2423
2423
|
gap: 0.25rem;
|
2424
2424
|
}
|
2425
|
-
`,...xt(!0)],_u=
|
2425
|
+
`,...xt(!0)],_u=Gy;var no=class extends Oe(Yt(Ee)){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 i;t.key===J.ENTER&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let i=t.constructor;this.dispatchEvent(new i(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return C`
|
2426
2426
|
<mdc-staticcheckbox
|
2427
2427
|
class="mdc-focus-ring"
|
2428
2428
|
?checked="${this.checked}"
|
@@ -2449,7 +2449,7 @@
|
|
2449
2449
|
/>
|
2450
2450
|
</mdc-staticcheckbox>
|
2451
2451
|
${this.renderLabelAndHelperText()}
|
2452
|
-
`}};no.styles=[...Ee.styles,..._u],p([g({type:Boolean,reflect:!0})],no.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],no.prototype,"indeterminate",2),p([g({type:Boolean,reflect:!0})],no.prototype,"autofocus",2);var qc=no;qc.register(Mm);var Yy=qc;var Iu=Y.constructTagName("chip"),Wy={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},ss={COLOR:Wy.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Yi[24],ROLE:tt.BUTTON};var jy=
|
2452
|
+
`}};no.styles=[...Ee.styles,..._u],p([g({type:Boolean,reflect:!0})],no.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],no.prototype,"indeterminate",2),p([g({type:Boolean,reflect:!0})],no.prototype,"autofocus",2);var qc=no;qc.register(Mm);var Yy=qc;var Iu=Y.constructTagName("chip"),Wy={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},ss={COLOR:Wy.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Yi[24],ROLE:tt.BUTTON};var jy=G`
|
2453
2453
|
:host {
|
2454
2454
|
height: 1.5rem;
|
2455
2455
|
gap: 0.25rem;
|
@@ -2606,7 +2606,7 @@
|
|
2606
2606
|
${this.label?C`<mdc-text part="label" type="${ss.TEXT_TYPE}" tagname="${ss.TAG_NAME}"
|
2607
2607
|
>${this.label}</mdc-text
|
2608
2608
|
>`:W}
|
2609
|
-
`}};as.styles=[...j.styles,...ku],p([g({type:String,reflect:!0})],as.prototype,"color",2),p([g({type:String})],as.prototype,"label",2);var ns=as;ns.register(Iu);var qy=ns;var Cu=Y.constructTagName("coachmark"),lo={COLOR:so.CONTRAST,TRIGGER:oo.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var co=class extends Me{constructor(){super(...arguments);this.trigger=lo.TRIGGER;this.showArrow=lo.ARROW;this.closeButton=lo.CLOSE_BUTTON;this.disableAriaExpanded=lo.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=lo.COLOR,this.showArrow=lo.ARROW}};p([g({type:String,reflect:!0})],co.prototype,"trigger",2),p([g({type:Boolean,attribute:"show-arrow"})],co.prototype,"showArrow",2),p([g({type:Boolean,reflect:!0,attribute:"close-button"})],co.prototype,"closeButton",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],co.prototype,"disableAriaExpanded",2);var Kc=co;Kc.register(Cu);var Ky=Kc;var wu=Y.constructTagName("dialog"),Xy={DEFAULT:"default",PROMOTIONAL:"promotional"},Je={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Xy.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0};var Ii=class{static dispatchDialogEvent(o,t,i=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:i}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var Zy=
|
2609
|
+
`}};as.styles=[...j.styles,...ku],p([g({type:String,reflect:!0})],as.prototype,"color",2),p([g({type:String})],as.prototype,"label",2);var ns=as;ns.register(Iu);var qy=ns;var Cu=Y.constructTagName("coachmark"),lo={COLOR:so.CONTRAST,TRIGGER:oo.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var co=class extends Me{constructor(){super(...arguments);this.trigger=lo.TRIGGER;this.showArrow=lo.ARROW;this.closeButton=lo.CLOSE_BUTTON;this.disableAriaExpanded=lo.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=lo.COLOR,this.showArrow=lo.ARROW}};p([g({type:String,reflect:!0})],co.prototype,"trigger",2),p([g({type:Boolean,attribute:"show-arrow"})],co.prototype,"showArrow",2),p([g({type:Boolean,reflect:!0,attribute:"close-button"})],co.prototype,"closeButton",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],co.prototype,"disableAriaExpanded",2);var Kc=co;Kc.register(Cu);var Ky=Kc;var wu=Y.constructTagName("dialog"),Xy={DEFAULT:"default",PROMOTIONAL:"promotional"},Je={VISIBLE:!1,Z_INDEX:1e3,ROLE:"dialog",SIZE:"small",HEADER_TAG_NAME:"h2",DESCRIPTION_TAG_NAME:"p",CANCEL_ICON:"cancel-bold",VARIANT:Xy.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0};var Ii=class{static dispatchDialogEvent(o,t,i=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:i}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var Zy=G`
|
2610
2610
|
:host {
|
2611
2611
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2612
2612
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2770,7 +2770,7 @@
|
|
2770
2770
|
<slot name="dialog-body"></slot>
|
2771
2771
|
</div>
|
2772
2772
|
${this.renderFooter()}
|
2773
|
-
`}};Vt.styles=[...j.styles,...Nu],p([g({type:String,reflect:!0})],Vt.prototype,"id",2),p([g({type:String,reflect:!0})],Vt.prototype,"triggerId",2),p([g({type:Boolean,reflect:!0})],Vt.prototype,"visible",2),p([g({type:Number,reflect:!0,attribute:"z-index"})],Vt.prototype,"zIndex",2),p([g({type:String,reflect:!0})],Vt.prototype,"size",2),p([g({type:String,reflect:!0})],Vt.prototype,"variant",2),p([g({type:String,attribute:"close-button-aria-label"})],Vt.prototype,"closeButtonAriaLabel",2),p([g({type:String,reflect:!0,attribute:"aria-label"})],Vt.prototype,"ariaLabel",2),p([g({type:String,reflect:!0,attribute:"aria-labelledby"})],Vt.prototype,"ariaLabelledby",2),p([g({type:String,reflect:!0,attribute:"aria-describedby"})],Vt.prototype,"ariaDescribedBy",2),p([g({type:String,reflect:!0,attribute:"aria-description"})],Vt.prototype,"ariaDescription",2),p([g({type:String,reflect:!0,attribute:"header-text"})],Vt.prototype,"headerText",2),p([g({type:String,reflect:!0,attribute:"description-text"})],Vt.prototype,"descriptionText",2),p([g({type:String,reflect:!0,attribute:"header-tag-name"})],Vt.prototype,"headerTagName",2),p([g({type:String,reflect:!0,attribute:"description-tag-name"})],Vt.prototype,"descriptionTagName",2),p([g({type:String,reflect:!0})],Vt.prototype,"role",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Vt.prototype,"disableAriaHasPopup",2),p([g({type:Boolean,reflect:!0,attribute:"focus-trap"})],Vt.prototype,"focusTrap",2);var Xc=Vt;Xc.register(wu);var Qy=Xc;var Lu=Y.constructTagName("divider"),ho={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ua={SOLID:"solid",GRADIENT:"gradient"},Te={POSITIVE:"positive",NEGATIVE:"negative"},fa={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},po={ORIENTATION:ho.HORIZONTAL,VARIANT:ua.SOLID,ARROW_DIRECTION:Te.NEGATIVE,BUTTON_DIRECTION:Te.NEGATIVE};var Jy=[yt,
|
2773
|
+
`}};Vt.styles=[...j.styles,...Nu],p([g({type:String,reflect:!0})],Vt.prototype,"id",2),p([g({type:String,reflect:!0})],Vt.prototype,"triggerId",2),p([g({type:Boolean,reflect:!0})],Vt.prototype,"visible",2),p([g({type:Number,reflect:!0,attribute:"z-index"})],Vt.prototype,"zIndex",2),p([g({type:String,reflect:!0})],Vt.prototype,"size",2),p([g({type:String,reflect:!0})],Vt.prototype,"variant",2),p([g({type:String,attribute:"close-button-aria-label"})],Vt.prototype,"closeButtonAriaLabel",2),p([g({type:String,reflect:!0,attribute:"aria-label"})],Vt.prototype,"ariaLabel",2),p([g({type:String,reflect:!0,attribute:"aria-labelledby"})],Vt.prototype,"ariaLabelledby",2),p([g({type:String,reflect:!0,attribute:"aria-describedby"})],Vt.prototype,"ariaDescribedBy",2),p([g({type:String,reflect:!0,attribute:"aria-description"})],Vt.prototype,"ariaDescription",2),p([g({type:String,reflect:!0,attribute:"header-text"})],Vt.prototype,"headerText",2),p([g({type:String,reflect:!0,attribute:"description-text"})],Vt.prototype,"descriptionText",2),p([g({type:String,reflect:!0,attribute:"header-tag-name"})],Vt.prototype,"headerTagName",2),p([g({type:String,reflect:!0,attribute:"description-tag-name"})],Vt.prototype,"descriptionTagName",2),p([g({type:String,reflect:!0})],Vt.prototype,"role",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Vt.prototype,"disableAriaHasPopup",2),p([g({type:Boolean,reflect:!0,attribute:"focus-trap"})],Vt.prototype,"focusTrap",2);var Xc=Vt;Xc.register(wu);var Qy=Xc;var Lu=Y.constructTagName("divider"),ho={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ua={SOLID:"solid",GRADIENT:"gradient"},Te={POSITIVE:"positive",NEGATIVE:"negative"},fa={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},po={ORIENTATION:ho.HORIZONTAL,VARIANT:ua.SOLID,ARROW_DIRECTION:Te.NEGATIVE,BUTTON_DIRECTION:Te.NEGATIVE};var Jy=[yt,G`
|
2774
2774
|
:host {
|
2775
2775
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2776
2776
|
--mdc-divider-width: 0.0625rem;
|
@@ -2967,11 +2967,11 @@
|
|
2967
2967
|
line-height: var(--mdc-divider-text-line-height);
|
2968
2968
|
flex-shrink: 0;
|
2969
2969
|
}
|
2970
|
-
`],Ru=Jy;var ki=class extends j{constructor(){super(...arguments);this.orientation=po.ORIENTATION;this.variant=po.VARIANT;this.arrowDirection=po.ARROW_DIRECTION;this.buttonPosition=po.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(ua).includes(t)?t:po.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(ho).includes(t)?t:po.ORIENTATION)}ensureValidDirections(){let t=this.orientation===ho.HORIZONTAL?Te.NEGATIVE:Te.POSITIVE;Object.values(Te).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Te).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let i=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",i)}}getArrowIcon(){let t=this.orientation===ho.HORIZONTAL,i=this.arrowDirection===Te.POSITIVE;return t?i?fa.UP:fa.DOWN:i?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"),i=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(i.length>1)return;let a=i.some(T=>T.tagName===Qs.toUpperCase()),h=i.some(T=>T.tagName===
|
2970
|
+
`],Ru=Jy;var ki=class extends j{constructor(){super(...arguments);this.orientation=po.ORIENTATION;this.variant=po.VARIANT;this.arrowDirection=po.ARROW_DIRECTION;this.buttonPosition=po.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(ua).includes(t)?t:po.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(ho).includes(t)?t:po.ORIENTATION)}ensureValidDirections(){let t=this.orientation===ho.HORIZONTAL?Te.NEGATIVE:Te.POSITIVE;Object.values(Te).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Te).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let i=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",i)}}getArrowIcon(){let t=this.orientation===ho.HORIZONTAL,i=this.arrowDirection===Te.POSITIVE;return t?i?fa.UP:fa.DOWN:i?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"),i=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(i.length>1)return;let a=i.some(T=>T.tagName===Qs.toUpperCase()),h=i.some(T=>T.tagName===Gr.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`
|
2971
2971
|
<div></div>
|
2972
2972
|
<slot @slotchange=${this.inferDividerType}></slot>
|
2973
2973
|
<div></div>
|
2974
|
-
`}};ki.styles=[...j.styles,...Ru],p([g({type:String,reflect:!0})],ki.prototype,"orientation",2),p([g({type:String,reflect:!0})],ki.prototype,"variant",2),p([g({type:String,attribute:"arrow-direction",reflect:!0})],ki.prototype,"arrowDirection",2),p([g({type:String,attribute:"button-position",reflect:!0})],ki.prototype,"buttonPosition",2);var Zc=ki;Zc.register(Lu);var tE=Zc;var eE=
|
2974
|
+
`}};ki.styles=[...j.styles,...Ru],p([g({type:String,reflect:!0})],ki.prototype,"orientation",2),p([g({type:String,reflect:!0})],ki.prototype,"variant",2),p([g({type:String,attribute:"arrow-direction",reflect:!0})],ki.prototype,"arrowDirection",2),p([g({type:String,attribute:"button-position",reflect:!0})],ki.prototype,"buttonPosition",2);var Zc=ki;Zc.register(Lu);var tE=Zc;var eE=G`
|
2975
2975
|
:host([selected]) {
|
2976
2976
|
border: 2px solid;
|
2977
2977
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -2993,7 +2993,7 @@
|
|
2993
2993
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2994
2994
|
cursor: auto;
|
2995
2995
|
}
|
2996
|
-
`,Mu=[eE];var Ou=Y.constructTagName("filterchip"),Qc={ICON_NAME:"check-bold",COLOR:"default"};var va=class extends ns{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Qc.COLOR}setSelected(t){t?(this.iconName=Qc.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=[...ns.styles,...Mu],p([g({type:Boolean,reflect:!0})],va.prototype,"selected",2);var Jc=va;Jc.register(Ou);var rE=Jc;var iE=
|
2996
|
+
`,Mu=[eE];var Ou=Y.constructTagName("filterchip"),Qc={ICON_NAME:"check-bold",COLOR:"default"};var va=class extends ns{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Qc.COLOR}setSelected(t){t?(this.iconName=Qc.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=[...ns.styles,...Mu],p([g({type:Boolean,reflect:!0})],va.prototype,"selected",2);var Jc=va;Jc.register(Ou);var rE=Jc;var iE=G`
|
2997
2997
|
:host::part(container) {
|
2998
2998
|
display: flex;
|
2999
2999
|
flex-direction: column;
|
@@ -3020,7 +3020,7 @@
|
|
3020
3020
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
3021
3021
|
<slot></slot>
|
3022
3022
|
</div>
|
3023
|
-
`}};nl.styles=[...Ee.styles,...Pu];var td=nl;var Du=Y.constructTagName("formfieldgroup");td.register(Du);var ll=td;Xs.register(An);var oE=Xs;var Fu=Xi(class extends xi{constructor(l){if(super(l),l.type!==hr.PROPERTY&&l.type!==hr.ATTRIBUTE&&l.type!==hr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Cn(l))throw Error("`live` bindings can only contain a single expression")}render(l){return l}update(l,[o]){if(o===Ne||o===W)return o;let t=l.element,i=l.name;if(l.type===hr.PROPERTY){if(o===t[i])return Ne}else if(l.type===hr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(i))return Ne}else if(l.type===hr.ATTRIBUTE&&t.getAttribute(i)===o+"")return Ne;return qp(l),o}});Ee.register(xu);var tr=Ee;var $u=Y.constructTagName("input"),cl={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ed={OFF:"off",ON:"on"},ls={PASSWORD:"password",TEXT:"text",SEARCH:"search"},zu={MAX_LENGTH:10,VALIDATION:Wt.ERROR},ei={VALIDATION:Wt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ot.TERTIARY,CLEAR_BUTTON_SIZE:je[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:ed.OFF,INPUT_TYPE:ls.TEXT};var sE=[
|
3023
|
+
`}};nl.styles=[...Ee.styles,...Pu];var td=nl;var Du=Y.constructTagName("formfieldgroup");td.register(Du);var ll=td;Xs.register(An);var oE=Xs;var Fu=Xi(class extends xi{constructor(l){if(super(l),l.type!==hr.PROPERTY&&l.type!==hr.ATTRIBUTE&&l.type!==hr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Cn(l))throw Error("`live` bindings can only contain a single expression")}render(l){return l}update(l,[o]){if(o===Ne||o===W)return o;let t=l.element,i=l.name;if(l.type===hr.PROPERTY){if(o===t[i])return Ne}else if(l.type===hr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(i))return Ne}else if(l.type===hr.ATTRIBUTE&&t.getAttribute(i)===o+"")return Ne;return qp(l),o}});Ee.register(xu);var tr=Ee;var $u=Y.constructTagName("input"),cl={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ed={OFF:"off",ON:"on"},ls={PASSWORD:"password",TEXT:"text",SEARCH:"search"},zu={MAX_LENGTH:10,VALIDATION:Wt.ERROR},ei={VALIDATION:Wt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ot.TERTIARY,CLEAR_BUTTON_SIZE:je[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:ed.OFF,INPUT_TYPE:ls.TEXT};var sE=[G`
|
3024
3024
|
:host {
|
3025
3025
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
3026
3026
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -3209,7 +3209,7 @@
|
|
3209
3209
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
3210
3210
|
</div>
|
3211
3211
|
${this.helpText?this.renderHelperText():W}
|
3212
|
-
`}};Xt.styles=[...tr.styles,...Vu],p([g({type:String})],Xt.prototype,"placeholder",2),p([g({type:Boolean})],Xt.prototype,"readonly",2),p([g({type:String,attribute:"prefix-text"})],Xt.prototype,"prefixText",2),p([g({type:String,attribute:"leading-icon"})],Xt.prototype,"leadingIcon",2),p([g({type:Boolean,attribute:"trailing-button"})],Xt.prototype,"trailingButton",2),p([g({type:Number})],Xt.prototype,"maxlength",2),p([g({type:Number})],Xt.prototype,"minlength",2),p([g({type:String})],Xt.prototype,"autocapitalize",2),p([g({type:String})],Xt.prototype,"autocomplete",2),p([g({type:Boolean})],Xt.prototype,"autofocus",2),p([g({type:String})],Xt.prototype,"dirname",2),p([g({type:String})],Xt.prototype,"pattern",2),p([g({type:String})],Xt.prototype,"list",2),p([g({type:Number})],Xt.prototype,"size",2),p([g({type:String,attribute:"clear-aria-label"})],Xt.prototype,"clearAriaLabel",2);var ri=Xt;ri.register($u);var aE=ri;var nE=
|
3212
|
+
`}};Xt.styles=[...tr.styles,...Vu],p([g({type:String})],Xt.prototype,"placeholder",2),p([g({type:Boolean})],Xt.prototype,"readonly",2),p([g({type:String,attribute:"prefix-text"})],Xt.prototype,"prefixText",2),p([g({type:String,attribute:"leading-icon"})],Xt.prototype,"leadingIcon",2),p([g({type:Boolean,attribute:"trailing-button"})],Xt.prototype,"trailingButton",2),p([g({type:Number})],Xt.prototype,"maxlength",2),p([g({type:Number})],Xt.prototype,"minlength",2),p([g({type:String})],Xt.prototype,"autocapitalize",2),p([g({type:String})],Xt.prototype,"autocomplete",2),p([g({type:Boolean})],Xt.prototype,"autofocus",2),p([g({type:String})],Xt.prototype,"dirname",2),p([g({type:String})],Xt.prototype,"pattern",2),p([g({type:String})],Xt.prototype,"list",2),p([g({type:Number})],Xt.prototype,"size",2),p([g({type:String,attribute:"clear-aria-label"})],Xt.prototype,"clearAriaLabel",2);var ri=Xt;ri.register($u);var aE=ri;var nE=G`
|
3213
3213
|
:host {
|
3214
3214
|
height: 1.5rem;
|
3215
3215
|
gap: 0.25rem;
|
@@ -3254,7 +3254,7 @@
|
|
3254
3254
|
size="20"
|
3255
3255
|
@click="${this.handleClose}"
|
3256
3256
|
></mdc-button>
|
3257
|
-
`}};mo.styles=[...j.styles,...Bu],p([g({type:String})],mo.prototype,"label",2),p([g({type:Boolean})],mo.prototype,"error",2),p([g({type:String,attribute:"clear-aria-label"})],mo.prototype,"clearAriaLabel",2);var rd=mo;rd.register(dl);var lE=rd;var cE=
|
3257
|
+
`}};mo.styles=[...j.styles,...Bu],p([g({type:String})],mo.prototype,"label",2),p([g({type:Boolean})],mo.prototype,"error",2),p([g({type:String,attribute:"clear-aria-label"})],mo.prototype,"clearAriaLabel",2);var rd=mo;rd.register(dl);var lE=rd;var cE=G`
|
3258
3258
|
:host {
|
3259
3259
|
gap: 0.25rem;
|
3260
3260
|
}
|
@@ -3315,7 +3315,7 @@
|
|
3315
3315
|
`,Uu=[cE];var ga=class extends te(Si){constructor(){super(...arguments);this.size=_m.LINK_SIZE}getIconSize(){switch(this.size){case Bn.SMALL:return Un.SMALL;case Bn.MIDSIZE:return Un.MIDSIZE;default:return Un.LARGE}}render(){return C`
|
3316
3316
|
<slot></slot>
|
3317
3317
|
${this.iconName?C` <mdc-icon name=${this.iconName} size=${this.getIconSize()} length-unit="rem"></mdc-icon> `:W}
|
3318
|
-
`}};ga.styles=[...Si.styles,...Uu],p([g({type:String,reflect:!0})],ga.prototype,"size",2);var ba=ga;ba.register(Vn);var dE=ba;var
|
3318
|
+
`}};ga.styles=[...Si.styles,...Uu],p([g({type:String,reflect:!0})],ga.prototype,"size",2);var ba=ga;ba.register(Vn);var dE=ba;var Hu=Y.constructTagName("linkbutton"),cs={12:12,14:14,16:16},ds={SIZE:cs[16],ROLE:tt.BUTTON,INLINE:jo.INLINE,INVERTED:jo.INVERTED};var Gu=l=>{switch(l){case cs[12]:return .75;case cs[14]:return .875;default:return 1}};var hE=G`
|
3319
3319
|
:host {
|
3320
3320
|
--mdc-link-color-disabled: var(--mds-color-theme-text-primary-disabled);
|
3321
3321
|
gap: 0.25rem;
|
@@ -3380,8 +3380,8 @@
|
|
3380
3380
|
}
|
3381
3381
|
`,Yu=[hE];var uo=class extends te(pe){constructor(){super(...arguments);this.size=ds.SIZE;this.inline=ds.INLINE;this.inverted=ds.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=ds.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(cs).includes(t)?`${t}`:ds.SIZE.toString())}render(){return C`
|
3382
3382
|
<slot></slot>
|
3383
|
-
${this.iconName?C` <mdc-icon name=${this.iconName} size=${
|
3384
|
-
`}};uo.styles=[...ba.styles,...Yu],p([g({type:Number,reflect:!0})],uo.prototype,"size",2),p([g({type:Boolean,reflect:!0})],uo.prototype,"inline",2),p([g({type:Boolean,reflect:!0})],uo.prototype,"inverted",2);var id=uo;id.register(
|
3383
|
+
${this.iconName?C` <mdc-icon name=${this.iconName} size=${Gu(this.size)} length-unit="rem"></mdc-icon> `:W}
|
3384
|
+
`}};uo.styles=[...ba.styles,...Yu],p([g({type:Number,reflect:!0})],uo.prototype,"size",2),p([g({type:Boolean,reflect:!0})],uo.prototype,"inline",2),p([g({type:Boolean,reflect:!0})],uo.prototype,"inverted",2);var id=uo;id.register(Hu);var pE=id;Si.register(xm);var mE=Si;var pl=Y.constructTagName("listitem"),ya={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},od={VARIANT:ya.FULL_WIDTH,TOOLTIP_PLACEMENT:Ut.TOP};var Wu=Y.constructTagName("list"),sd="header-id";var uE=G`
|
3385
3385
|
:host::part(header-text) {
|
3386
3386
|
padding: 0.5rem 0.75rem;
|
3387
3387
|
}
|
@@ -3402,7 +3402,7 @@
|
|
3402
3402
|
${t}
|
3403
3403
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
3404
3404
|
</div>
|
3405
|
-
`}};hs.styles=[...j.styles,...ju],p([Nt({selector:`${pl}:not([disabled])`})],hs.prototype,"listItems",2),p([g({type:String,attribute:"header-text",reflect:!0})],hs.prototype,"headerText",2);var ad=hs;ad.register(Wu);var fE=ad;var vE=
|
3405
|
+
`}};hs.styles=[...j.styles,...ju],p([Nt({selector:`${pl}:not([disabled])`})],hs.prototype,"listItems",2),p([g({type:String,attribute:"header-text",reflect:!0})],hs.prototype,"headerText",2);var ad=hs;ad.register(Wu);var fE=ad;var vE=G`
|
3406
3406
|
:host {
|
3407
3407
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
3408
3408
|
--mdc-listheader-gap: 0.5rem;
|
@@ -3448,7 +3448,7 @@
|
|
3448
3448
|
size="1"
|
3449
3449
|
length-unit="rem"
|
3450
3450
|
></mdc-icon>`:W}
|
3451
|
-
`}};Ci.styles=[...j.styles,...qu],p([g({type:String,attribute:"prefix-icon"})],Ci.prototype,"prefixIcon",2),p([g({type:String,attribute:"postfix-icon"})],Ci.prototype,"postfixIcon",2),p([g({type:String,attribute:"header-text"})],Ci.prototype,"headerText",2),p([g({type:Boolean,reflect:!0})],Ci.prototype,"disabled",2);var nd=Ci;var Ku=Y.constructTagName("listheader");nd.register(Ku);var gE=nd;var Ea=Y.constructTagName("tooltip"),$e={DESCRIPTION:"description",LABEL:"label",NONE:"none"},wi={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:$e.DESCRIPTION};var bE=
|
3451
|
+
`}};Ci.styles=[...j.styles,...qu],p([g({type:String,attribute:"prefix-icon"})],Ci.prototype,"prefixIcon",2),p([g({type:String,attribute:"postfix-icon"})],Ci.prototype,"postfixIcon",2),p([g({type:String,attribute:"header-text"})],Ci.prototype,"headerText",2),p([g({type:Boolean,reflect:!0})],Ci.prototype,"disabled",2);var nd=Ci;var Ku=Y.constructTagName("listheader");nd.register(Ku);var gE=nd;var Ea=Y.constructTagName("tooltip"),$e={DESCRIPTION:"description",LABEL:"label",NONE:"none"},wi={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:$e.DESCRIPTION};var bE=G`
|
3452
3452
|
:host {
|
3453
3453
|
--mdc-tooltip-max-width: 400px;
|
3454
3454
|
--mdc-tooltip-padding: 0.75rem;
|
@@ -3472,7 +3472,7 @@
|
|
3472
3472
|
:host([color='contrast'])::part(popover-content) {
|
3473
3473
|
color: var(--mdc-tooltip-text-color-contrast);
|
3474
3474
|
}
|
3475
|
-
`,Xu=[bE];var ps=class extends Me{constructor(){super(...arguments);this.tooltipType=wi.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||wi.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||wi.OFFSET,this.placement=this.placement||wi.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,i;return((i=(t=this.defaultSlotNodes)==null?void 0:t.map(a=>a.textContent).join(" "))==null?void 0:i.trim())||""}setTooltipType(t){this.setAttribute("tooltip-type",Object.values($e).includes(t)?t:wi.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${ve()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case $e.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case $e.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Ut).includes(this.placement)||(this.placement=wi.PLACEMENT)}onTooltipTypeUpdated(t){let i=t.get("tooltipType");if(Object.values($e).includes(this.tooltipType)||this.setTooltipType(wi.TOOLTIP_TYPE),this.triggerElement){let a=this.getTooltipText();switch(this.tooltipType){case $e.DESCRIPTION:i===$e.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case $e.LABEL:i===$e.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:i===$e.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):i===$e.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==$e.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)}};ps.styles=[...Me.styles,...Xu],p([g({type:String,attribute:"tooltip-type",reflect:!0})],ps.prototype,"tooltipType",2),p([vn()],ps.prototype,"defaultSlotNodes",2);var ld=ps;ld.register(Ea);var yE=ld;var EE=
|
3475
|
+
`,Xu=[bE];var ps=class extends Me{constructor(){super(...arguments);this.tooltipType=wi.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||wi.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||wi.OFFSET,this.placement=this.placement||wi.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,i;return((i=(t=this.defaultSlotNodes)==null?void 0:t.map(a=>a.textContent).join(" "))==null?void 0:i.trim())||""}setTooltipType(t){this.setAttribute("tooltip-type",Object.values($e).includes(t)?t:wi.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${ve()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case $e.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case $e.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Ut).includes(this.placement)||(this.placement=wi.PLACEMENT)}onTooltipTypeUpdated(t){let i=t.get("tooltipType");if(Object.values($e).includes(this.tooltipType)||this.setTooltipType(wi.TOOLTIP_TYPE),this.triggerElement){let a=this.getTooltipText();switch(this.tooltipType){case $e.DESCRIPTION:i===$e.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case $e.LABEL:i===$e.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:i===$e.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):i===$e.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==$e.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)}};ps.styles=[...Me.styles,...Xu],p([g({type:String,attribute:"tooltip-type",reflect:!0})],ps.prototype,"tooltipType",2),p([vn()],ps.prototype,"defaultSlotNodes",2);var ld=ps;ld.register(Ea);var yE=ld;var EE=G`
|
3476
3476
|
:host {
|
3477
3477
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
3478
3478
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -3604,7 +3604,7 @@
|
|
3604
3604
|
${this.renderTrailingControls()}
|
3605
3605
|
</div>
|
3606
3606
|
</slot>
|
3607
|
-
`}};xe.styles=[...j.styles,...Zu],p([Nt({slot:"leading-controls"})],xe.prototype,"leadingControlsSlot",2),p([Nt({slot:"trailing-controls"})],xe.prototype,"trailingControlsSlot",2),p([g({type:String,reflect:!0})],xe.prototype,"variant",2),p([g({type:String,reflect:!0})],xe.prototype,"label",2),p([g({type:String,reflect:!0,attribute:"secondary-label"})],xe.prototype,"secondaryLabel",2),p([g({type:String,reflect:!0,attribute:"tertiary-label"})],xe.prototype,"tertiaryLabel",2),p([g({type:String,reflect:!0,attribute:"side-header-text"})],xe.prototype,"sideHeaderText",2),p([g({type:String,reflect:!0,attribute:"subline-text"})],xe.prototype,"sublineText",2),p([g({type:Boolean,reflect:!0,attribute:"soft-disabled"})],xe.prototype,"softDisabled",2),p([g({type:String,reflect:!0,attribute:"tooltip-text"})],xe.prototype,"tooltipText",2),p([g({type:String,reflect:!0,attribute:"tooltip-placement"})],xe.prototype,"tooltipPlacement",2);var ii=xe;ii.register(pl);var TE=ii;var xE=
|
3607
|
+
`}};xe.styles=[...j.styles,...Zu],p([Nt({slot:"leading-controls"})],xe.prototype,"leadingControlsSlot",2),p([Nt({slot:"trailing-controls"})],xe.prototype,"trailingControlsSlot",2),p([g({type:String,reflect:!0})],xe.prototype,"variant",2),p([g({type:String,reflect:!0})],xe.prototype,"label",2),p([g({type:String,reflect:!0,attribute:"secondary-label"})],xe.prototype,"secondaryLabel",2),p([g({type:String,reflect:!0,attribute:"tertiary-label"})],xe.prototype,"tertiaryLabel",2),p([g({type:String,reflect:!0,attribute:"side-header-text"})],xe.prototype,"sideHeaderText",2),p([g({type:String,reflect:!0,attribute:"subline-text"})],xe.prototype,"sublineText",2),p([g({type:Boolean,reflect:!0,attribute:"soft-disabled"})],xe.prototype,"softDisabled",2),p([g({type:String,reflect:!0,attribute:"tooltip-text"})],xe.prototype,"tooltipText",2),p([g({type:String,reflect:!0,attribute:"tooltip-placement"})],xe.prototype,"tooltipPlacement",2);var ii=xe;ii.register(pl);var TE=ii;var xE=G`
|
3608
3608
|
:host {
|
3609
3609
|
--mdc-marker-width: 0.25rem;
|
3610
3610
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -3629,7 +3629,7 @@
|
|
3629
3629
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3630
3630
|
);
|
3631
3631
|
}
|
3632
|
-
`,tf=[xE];var ef=Y.constructTagName("marker"),rf={SOLID:"solid",STRIPED:"striped"};var Ta=class extends j{constructor(){super(...arguments);this.variant=rf.SOLID}};Ta.styles=[...j.styles,...tf],p([g({type:String,reflect:!0})],Ta.prototype,"variant",2);var cd=Ta;cd.register(ef);var AE=cd;var Zt=Y.constructTagName("menupopover"),dd={PLACEMENT:Ut.BOTTOM_START,ORIENTATION:"vertical"};var oi=Y.constructTagName("menusection"),of={DIVIDER_VARIANT:"solid"};var Ni=Y.constructTagName("sidenavigation"),Lr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",HIDDEN:"hidden"},xa={VARIANT:Lr.FLEXIBLE};var Aa=Y.constructTagName("menubar"),sf={ORIENTATION:"vertical"};var SE=
|
3632
|
+
`,tf=[xE];var ef=Y.constructTagName("marker"),rf={SOLID:"solid",STRIPED:"striped"};var Ta=class extends j{constructor(){super(...arguments);this.variant=rf.SOLID}};Ta.styles=[...j.styles,...tf],p([g({type:String,reflect:!0})],Ta.prototype,"variant",2);var cd=Ta;cd.register(ef);var AE=cd;var Zt=Y.constructTagName("menupopover"),dd={PLACEMENT:Ut.BOTTOM_START,ORIENTATION:"vertical"};var oi=Y.constructTagName("menusection"),of={DIVIDER_VARIANT:"solid"};var Ni=Y.constructTagName("sidenavigation"),Lr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",HIDDEN:"hidden"},xa={VARIANT:Lr.FLEXIBLE};var Aa=Y.constructTagName("menubar"),sf={ORIENTATION:"vertical"};var SE=G`
|
3633
3633
|
:host {
|
3634
3634
|
display: flex;
|
3635
3635
|
}
|
@@ -3641,7 +3641,7 @@
|
|
3641
3641
|
:host([aria-orientation='vertical']) {
|
3642
3642
|
flex-direction: column;
|
3643
3643
|
}
|
3644
|
-
`,af=[SE];var Sa=class extends j{constructor(){super(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var o;super.connectedCallback(),this.role=tt.MENUBAR,this.ariaOrientation=sf.ORIENTATION,await this.updateComplete,(o=this.menusections)==null||o.forEach(t=>{t.setAttribute("divider-variant","gradient")})}get menuItems(){var h,m;let o=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"),t=(m=o==null?void 0:o.assignedElements({flatten:!0}))!=null?m:[],i=[],a=T=>{T.role===tt.MENUITEM&&!T.hasAttribute("disabled")?i.push(T):T.tagName.toLowerCase()===oi&&Array.from(T.children).forEach(a)};return t.forEach(a),i}getVisibleSubMenusOfItems(o){let t=[];return!o||o.length===0||o.forEach(i=>{var m;let a=i.getAttribute("id");if(!a)return;let h=(m=this.querySelector)==null?void 0:m.call(this,`${Zt}[triggerid="${a}"]`);h&&h.visible&&t.push(h)}),t}getAllPopovers(){var a,h;if(!this.menuItems.length)return[];let o=(h=(a=this.menuItems[0])==null?void 0:a.closest(Ni))!=null?h:this;if(!o)return[];let t=[],i=m=>{m.querySelectorAll(`${Zt}`).forEach(T=>{t.push(T)}),m.querySelectorAll("slot").forEach(T=>{T.assignedElements({flatten:!0}).forEach(i)})};return i(o),t}update(o){super.update(o)}firstUpdated(o){super.firstUpdated(o),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}handleClick(o){let t=o.target;if(!t||!this.isTopLevelMenuItem(t))return;let i=this.menuItems.filter(h=>h!==t);this.getVisibleSubMenusOfItems(i).forEach(h=>{h.hide()})}resetTabIndexAndSetActiveTabIndex(o){o.forEach((t,i)=>{let a=i===0?"0":"-1";t==null||t.setAttribute("tabindex",a)})}getCurrentIndex(o){return this.menuItems.findIndex(t=>t===o||t===o.parentElement)}getSubmenu(o){if(o)return this.getAllPopovers().find(t=>t.getAttribute("triggerid")===o)}showSubmenu(o){if(!o||!this.menuItems.find(a=>a.getAttribute("id")===o))return;let i=this.getSubmenu(o);i&&i.show()}updatePopoverPlacement(){let o=Ut.RIGHT_START;this.getAllPopovers().forEach(t=>{t.setAttribute("placement",o)})}updateTabIndexAndFocus(o,t,i){var a,h,m;i<0||t<0||(t!==i&&((a=o[t])==null||a.setAttribute("tabindex","-1"),(h=o[i])==null||h.setAttribute("tabindex","0")),(m=o[i])==null||m.focus())}navigateToMenuItem(o,t,i=!1){var m;let{length:a}=this.menuItems;if(a===0)return;let h=o;if(h=t==="prev"?(o-1+a)%a:(o+1)%a,this.updateTabIndexAndFocus(this.menuItems,o,h),i){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(o){return window.getComputedStyle(this).direction==="rtl"?o===J.ARROW_LEFT?J.ARROW_RIGHT:o===J.ARROW_RIGHT?J.ARROW_LEFT:o:o}isTopLevelMenuItem(o){var h;let t=o.parentElement;if(!t||o.role!==tt.MENUITEM)return!1;let i=t.tagName.toLowerCase(),a=(h=t.parentElement)==null?void 0:h.tagName.toLowerCase();return i===Aa||i===Ni||i===oi&&(a===Aa||a===Ni)}isNestedMenuItem(o){return!!o.closest(Zt)&&o.role===tt.MENUITEM}async closeAllMenuPopovers(){let o=[];for(;ye.peek();){let t=ye.pop();t&&(t.hide(),o.push(t))}await Promise.all(o.map(t=>t.updateComplete))}async crossMenubarNavigationOnLeft(o){if(o.role===tt.MENUITEM){let i=o.closest(Zt),a=i==null?void 0:i.getAttribute("triggerid"),h=this.menuItems.find(m=>m.getAttribute("id")===a);if(h){this.isTopLevelMenuItem(h)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let m=this.getCurrentIndex(h);this.navigateToMenuItem(m,"prev",!0)}}}async crossMenubarNavigationOnRight(o){if(this.isTopLevelMenuItem(o)&&this.getSubmenu(o.id)&&!o.hasAttribute("soft-disabled"))this.showSubmenu(o.id);else if(this.isNestedMenuItem(o)&&!this.getSubmenu(o.id)){await this.closeAllMenuPopovers();let t=this.getParentMenuItemIndex(o);t>=0&&this.navigateToMenuItem(t,"next",!0)}}getParentMenuItemIndex(o){let t=o.parentElement;for(;t;){if(t.tagName.toLowerCase()===Zt){let i=t.getAttribute("triggerid"),a=this.menuItems.find(h=>h.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(h=>h===a):this.getParentMenuItemIndex(a)}t=t.parentElement}return-1}async handleKeyDown(o){let t=this.getCurrentIndex(o.target);switch(this.getKeyWithDirectionFix(o.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]:o.target;await this.crossMenubarNavigationOnLeft(a);break}case J.ARROW_RIGHT:{let a=t>=0?this.menuItems[t]:o.target;await this.crossMenubarNavigationOnRight(a);break}case J.ARROW_UP:{this.navigateToMenuItem(t,"prev"),o.preventDefault();break}case J.ARROW_DOWN:{this.navigateToMenuItem(t,"next"),o.preventDefault();break}default:break}}render(){return C`<slot role="${tt.GROUP}"></slot>`}};Sa.styles=[...j.styles,...af],p([Nt({selector:"mdc-menusection",flatten:!0})],Sa.prototype,"menusections",2);var hd=Sa;hd.register(Aa);var _E=hd;var _a=Y.constructTagName("menuitem"),Ia={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},pd={POSITIVE:"positive",NEGATIVE:"negative"},md={LEADING:"leading",TRAILING:"trailing"};var IE=
|
3644
|
+
`,af=[SE];var Sa=class extends j{constructor(){super(),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var o;super.connectedCallback(),this.role=tt.MENUBAR,this.ariaOrientation=sf.ORIENTATION,await this.updateComplete,(o=this.menusections)==null||o.forEach(t=>{t.setAttribute("divider-variant","gradient")})}get menuItems(){var h,m;let o=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"),t=(m=o==null?void 0:o.assignedElements({flatten:!0}))!=null?m:[],i=[],a=T=>{T.role===tt.MENUITEM&&!T.hasAttribute("disabled")?i.push(T):T.tagName.toLowerCase()===oi&&Array.from(T.children).forEach(a)};return t.forEach(a),i}getVisibleSubMenusOfItems(o){let t=[];return!o||o.length===0||o.forEach(i=>{var m;let a=i.getAttribute("id");if(!a)return;let h=(m=this.querySelector)==null?void 0:m.call(this,`${Zt}[triggerid="${a}"]`);h&&h.visible&&t.push(h)}),t}getAllPopovers(){var a,h;if(!this.menuItems.length)return[];let o=(h=(a=this.menuItems[0])==null?void 0:a.closest(Ni))!=null?h:this;if(!o)return[];let t=[],i=m=>{m.querySelectorAll(`${Zt}`).forEach(T=>{t.push(T)}),m.querySelectorAll("slot").forEach(T=>{T.assignedElements({flatten:!0}).forEach(i)})};return i(o),t}update(o){super.update(o)}firstUpdated(o){super.firstUpdated(o),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}handleClick(o){let t=o.target;if(!t||!this.isTopLevelMenuItem(t))return;let i=this.menuItems.filter(h=>h!==t);this.getVisibleSubMenusOfItems(i).forEach(h=>{h.hide()})}resetTabIndexAndSetActiveTabIndex(o){o.forEach((t,i)=>{let a=i===0?"0":"-1";t==null||t.setAttribute("tabindex",a)})}getCurrentIndex(o){return this.menuItems.findIndex(t=>t===o||t===o.parentElement)}getSubmenu(o){if(o)return this.getAllPopovers().find(t=>t.getAttribute("triggerid")===o)}showSubmenu(o){if(!o||!this.menuItems.find(a=>a.getAttribute("id")===o))return;let i=this.getSubmenu(o);i&&i.show()}updatePopoverPlacement(){let o=Ut.RIGHT_START;this.getAllPopovers().forEach(t=>{t.setAttribute("placement",o)})}updateTabIndexAndFocus(o,t,i){var a,h,m;i<0||t<0||(t!==i&&((a=o[t])==null||a.setAttribute("tabindex","-1"),(h=o[i])==null||h.setAttribute("tabindex","0")),(m=o[i])==null||m.focus())}navigateToMenuItem(o,t,i=!1){var m;let{length:a}=this.menuItems;if(a===0)return;let h=o;if(h=t==="prev"?(o-1+a)%a:(o+1)%a,this.updateTabIndexAndFocus(this.menuItems,o,h),i){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(o){return window.getComputedStyle(this).direction==="rtl"?o===J.ARROW_LEFT?J.ARROW_RIGHT:o===J.ARROW_RIGHT?J.ARROW_LEFT:o:o}isTopLevelMenuItem(o){var h;let t=o.parentElement;if(!t||o.role!==tt.MENUITEM)return!1;let i=t.tagName.toLowerCase(),a=(h=t.parentElement)==null?void 0:h.tagName.toLowerCase();return i===Aa||i===Ni||i===oi&&(a===Aa||a===Ni)}isNestedMenuItem(o){return!!o.closest(Zt)&&o.role===tt.MENUITEM}async closeAllMenuPopovers(){let o=[];for(;ye.peek();){let t=ye.pop();t&&(t.hide(),o.push(t))}await Promise.all(o.map(t=>t.updateComplete))}async crossMenubarNavigationOnLeft(o){if(o.role===tt.MENUITEM){let i=o.closest(Zt),a=i==null?void 0:i.getAttribute("triggerid"),h=this.menuItems.find(m=>m.getAttribute("id")===a);if(h){this.isTopLevelMenuItem(h)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let m=this.getCurrentIndex(h);this.navigateToMenuItem(m,"prev",!0)}}}async crossMenubarNavigationOnRight(o){if(this.isTopLevelMenuItem(o)&&this.getSubmenu(o.id)&&!o.hasAttribute("soft-disabled"))this.showSubmenu(o.id);else if(this.isNestedMenuItem(o)&&!this.getSubmenu(o.id)){await this.closeAllMenuPopovers();let t=this.getParentMenuItemIndex(o);t>=0&&this.navigateToMenuItem(t,"next",!0)}}getParentMenuItemIndex(o){let t=o.parentElement;for(;t;){if(t.tagName.toLowerCase()===Zt){let i=t.getAttribute("triggerid"),a=this.menuItems.find(h=>h.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(h=>h===a):this.getParentMenuItemIndex(a)}t=t.parentElement}return-1}async handleKeyDown(o){let t=this.getCurrentIndex(o.target);switch(this.getKeyWithDirectionFix(o.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]:o.target;await this.crossMenubarNavigationOnLeft(a);break}case J.ARROW_RIGHT:{let a=t>=0?this.menuItems[t]:o.target;await this.crossMenubarNavigationOnRight(a);break}case J.ARROW_UP:{this.navigateToMenuItem(t,"prev"),o.preventDefault();break}case J.ARROW_DOWN:{this.navigateToMenuItem(t,"next"),o.preventDefault();break}default:break}}render(){return C`<slot role="${tt.GROUP}"></slot>`}};Sa.styles=[...j.styles,...af],p([Nt({selector:"mdc-menusection",flatten:!0})],Sa.prototype,"menusections",2);var hd=Sa;hd.register(Aa);var _E=hd;var _a=Y.constructTagName("menuitem"),Ia={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},pd={POSITIVE:"positive",NEGATIVE:"negative"},md={LEADING:"leading",TRAILING:"trailing"};var IE=G`
|
3645
3645
|
:host(:dir(rtl))::part(trailing-arrow),
|
3646
3646
|
:host(:dir(rtl))::part(leading-arrow) {
|
3647
3647
|
transform: rotate(180deg);
|
@@ -3666,7 +3666,7 @@
|
|
3666
3666
|
@keydown=${this.stopEventPropagation}
|
3667
3667
|
></slot>
|
3668
3668
|
${this.arrowPosition===md.LEADING?C`<mdc-icon name="${t}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
|
3669
|
-
`}};Li.styles=[...ii.styles,...nf],p([g({type:String,reflect:!0,attribute:"arrow-position"})],Li.prototype,"arrowPosition",2),p([g({type:String,reflect:!0,attribute:"arrow-direction"})],Li.prototype,"arrowDirection",2),p([g({type:String,reflect:!0})],Li.prototype,"name",2),p([g({type:String,reflect:!0})],Li.prototype,"value",2);var er=Li;er.register(_a);var kE=er;var lf=Y.constructTagName("statictoggle"),CE={DEFAULT:"default",COMPACT:"compact"},ud={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},cf={compact:.75,default:1.25},df={SIZE:CE.DEFAULT};var wE=[
|
3669
|
+
`}};Li.styles=[...ii.styles,...nf],p([g({type:String,reflect:!0,attribute:"arrow-position"})],Li.prototype,"arrowPosition",2),p([g({type:String,reflect:!0,attribute:"arrow-direction"})],Li.prototype,"arrowDirection",2),p([g({type:String,reflect:!0})],Li.prototype,"name",2),p([g({type:String,reflect:!0})],Li.prototype,"value",2);var er=Li;er.register(_a);var kE=er;var lf=Y.constructTagName("statictoggle"),CE={DEFAULT:"default",COMPACT:"compact"},ud={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},cf={compact:.75,default:1.25},df={SIZE:CE.DEFAULT};var wE=[G`
|
3670
3670
|
:host {
|
3671
3671
|
--mdc-statictoggle-width: 3rem;
|
3672
3672
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3756,7 +3756,7 @@
|
|
3756
3756
|
size="${cf[this.size]}"
|
3757
3757
|
></mdc-icon>
|
3758
3758
|
</div>
|
3759
|
-
`}};ms.styles=[...j.styles,...hf],p([g({type:Boolean,reflect:!0})],ms.prototype,"checked",2),p([g({type:String,reflect:!0})],ms.prototype,"size",2);var fd=ms;fd.register(lf);var NE=fd;var pf=Y.constructTagName("toggle"),ka={DEFAULT:"default",COMPACT:"compact"};var vd={SIZE:ka.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var ml=Y.constructTagName("menuitemcheckbox"),Ca={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},mf={INDICATOR:Ca.CHECKBOX};var LE=
|
3759
|
+
`}};ms.styles=[...j.styles,...hf],p([g({type:Boolean,reflect:!0})],ms.prototype,"checked",2),p([g({type:String,reflect:!0})],ms.prototype,"size",2);var fd=ms;fd.register(lf);var NE=fd;var pf=Y.constructTagName("toggle"),ka={DEFAULT:"default",COMPACT:"compact"};var vd={SIZE:ka.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var ml=Y.constructTagName("menuitemcheckbox"),Ca={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},mf={INDICATOR:Ca.CHECKBOX};var LE=G`
|
3760
3760
|
:host::part(checkmark-icon) {
|
3761
3761
|
--mdc-icon-fill-color: currentColor;
|
3762
3762
|
}
|
@@ -3801,7 +3801,7 @@
|
|
3801
3801
|
<slot name="trailing-controls"></slot>
|
3802
3802
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
3803
3803
|
</div>
|
3804
|
-
`}};us.styles=[...er.styles,...uf],p([g({type:Boolean,reflect:!0})],us.prototype,"checked",2),p([g({type:String,reflect:!0})],us.prototype,"indicator",2);var gd=us;gd.register(ml);var RE=gd;var ul=Y.constructTagName("menuitemradio"),fl={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},ff={INDICATOR:fl.RADIO};var ME=
|
3804
|
+
`}};us.styles=[...er.styles,...uf],p([g({type:Boolean,reflect:!0})],us.prototype,"checked",2),p([g({type:String,reflect:!0})],us.prototype,"indicator",2);var gd=us;gd.register(ml);var RE=gd;var ul=Y.constructTagName("menuitemradio"),fl={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},ff={INDICATOR:fl.RADIO};var ME=G`
|
3805
3805
|
:host::part(checkmark-icon) {
|
3806
3806
|
--mdc-icon-fill-color: currentColor;
|
3807
3807
|
}
|
@@ -3839,7 +3839,7 @@
|
|
3839
3839
|
<slot name="trailing-controls"></slot>
|
3840
3840
|
${this.renderCheckmarkIcon()}
|
3841
3841
|
</div>
|
3842
|
-
`}};fs.styles=[...er.styles,...vf],p([g({type:Boolean,reflect:!0})],fs.prototype,"checked",2),p([g({type:String,reflect:!0})],fs.prototype,"indicator",2);var bd=fs;bd.register(ul);var OE=bd;var PE=
|
3842
|
+
`}};fs.styles=[...er.styles,...vf],p([g({type:Boolean,reflect:!0})],fs.prototype,"checked",2),p([g({type:String,reflect:!0})],fs.prototype,"indicator",2);var bd=fs;bd.register(ul);var OE=bd;var PE=G`
|
3843
3843
|
:host::part(popover-content) {
|
3844
3844
|
padding: 0.75rem 0.5rem;
|
3845
3845
|
}
|
@@ -3847,7 +3847,7 @@
|
|
3847
3847
|
::slotted(mdc-divider) {
|
3848
3848
|
margin-block: 0.25rem;
|
3849
3849
|
}
|
3850
|
-
`,gf=[PE];var wa=l=>{var t;if(!l)return!1;let o=(t=l.getAttribute("role"))==null?void 0:t.toLowerCase();return o===tt.MENUITEM||o===tt.MENUITEMCHECKBOX||o===tt.MENUITEMRADIO},yd=l=>{var o;return((o=l==null?void 0:l.tagName)==null?void 0:o.toLowerCase())===Zt};var Na=class extends Me{constructor(){super();this.placement=dd.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(ye.peek()!==this)return;let i=t.composedPath(),a=this.contains(t.target)||i.includes(this.triggerElement)||i.includes(this),h=this.backdropElement?i.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 i=t.target;wa(i)&&(t.stopImmediatePropagation(),i.addEventListener("destroyed",this.handleItemChangeEvent),i.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(i=>i.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let i=!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),i=!0;break}case J.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,h),i=!0;break}case J.ARROW_DOWN:{let R=h+1===this.menuItems.length?0:h+1;this.resetTabIndexAndSetFocus(R,h),i=!0;break}case J.ARROW_UP:{let R=h-1===-1?this.menuItems.length-1:h-1;this.resetTabIndexAndSetFocus(R,h),i=!0;break}case J.ARROW_RIGHT:{let R=this.getSubMenuPopoverOfTarget(a);R&&(R.show(),i=!0);break}case J.ARROW_LEFT:{yd(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,h),i=!0);break}case J.ESCAPE:{this.resetTabIndexAndSetFocus(0,h),i=!0;break}case J.ENTER:{this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),i=!0);break}case J.SPACE:{i=!0;break}default:break}i&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let i=!1,a=t.target;switch(t.key){case J.SPACE:{a.matches(`${ul}, ${ml}`)||this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),i=!0);break}default:break}i&&(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 i=t.getAttribute("id");return i?(h=(a=this.parentElement)==null?void 0:a.querySelector)==null?void 0:h.call(a,`${Zt}[triggerid="${i}"]`):null}collectMenuItems(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),i=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=i.map(h=>h.tagName.toLowerCase()===oi?Array.from(h.children).filter(m=>wa(m)):wa(h)?h:[]).flat().filter(h=>!!h&&!h.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(h=>this.getSubMenuPopoverOfTarget(h))}getOpenSubMenusOfItems(t){let i=[];return!t||t.length===0||t.forEach(a=>{let h=this.getSubMenuPopoverOfTarget(a);h&&h.visible&&i.push(h)}),i}connectedCallback(){super.connectedCallback(),this.role=tt.MENU,this.ariaOrientation=dd.ORIENTATION,this.backdrop=!1,this.color=so.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,i){return t===i||!this.triggerElement?Promise.resolve():(i&&(this.backdrop=this.triggerElement.tagName.toLowerCase()!==_a),i===!1&&this.menuItemsWithSubMenus.forEach(a=>{let h=this.getSubMenuPopoverOfTarget(a);h&&h.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,i))}async firstUpdated(t){var i;await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0),(i=this.triggerElement)==null||i.setAttribute("aria-haspopup",tt.MENU)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(i=>i.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(i=>i===t)}resetTabIndexAndSetFocus(t,i){t!==i&&(this.menuItems[i].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){for(;ye.peek()!==t&&yd(ye.peek());){let i=ye.pop();if(i)i.hide();else break}}closeOtherSubMenusOnSameLevel(t){let i=this.menuItemsWithSubMenus.filter(h=>h!==t);this.getOpenSubMenusOfItems(i).forEach(h=>{h.hide()})}fireMenuItemAction(t){t.matches(_a)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let i=t.target;if(t.stopPropagation(),!(!wa(i)||!t.isTrusted)){if(this.getSubMenuPopoverOfTarget(i)){this.closeOtherSubMenusOnSameLevel(i);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(i)}}resolveDirectionKey(t,i){if(!i)return t;switch(t){case J.ARROW_LEFT:return J.ARROW_RIGHT;case J.ARROW_RIGHT:return J.ARROW_LEFT;default:return t}}};Na.styles=[...Me.styles,...gf],p([g({type:String,reflect:!0})],Na.prototype,"placement",2);var Ed=Na;Ed.register(Zt);var DE=Ed;var vs=Y.constructTagName("navmenuitem"),bf={DOT:Ke.DOT,COUNTER:Ke.COUNTER},yf={RIGHT_ARROW:"arrow-right-bold"},Ef={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Yi[24],VARIANT:Lr.FLEXIBLE};var vl=class{constructor(o,t,i){this.variant=o,this.expanded=t,this.parentNavTooltipText=i}hasSiblingWithTriggerId(o){var a,h;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((h=(a=o==null?void 0:o.parentElement)==null?void 0:a.children)!=null?h:[]).some(m=>m!==o&&m.tagName.toLowerCase()===Zt&&m.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],i=o;for(;i;){let a=i==null?void 0:i.closest(Zt);if(!a)break;let h=a.getAttribute("triggerid");if(!h)break;let m=document.getElementById(h);if(m&&m.tagName.toLowerCase()===vs)t.push(m),i=m;else break}return t}setCurrentActiveNavMenuItem(o){var h;let t=((h=this.currentActiveNavMenuItem)==null?void 0:h.navId)===(o==null?void 0:o.navId),i=(o==null?void 0:o.disableAriaCurrent)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||i||(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")})),!o))return;this.currentActiveNavMenuItem=o,o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(m=>{m.setAttribute("tooltip-text",this.parentNavTooltipText||""),m.setAttribute("tooltip-placement",Ut.BOTTOM),m.setAttribute("active","")})}};vl.context=Ni;var gl=vl;var FE=
|
3850
|
+
`,gf=[PE];var wa=l=>{var t;if(!l)return!1;let o=(t=l.getAttribute("role"))==null?void 0:t.toLowerCase();return o===tt.MENUITEM||o===tt.MENUITEMCHECKBOX||o===tt.MENUITEMRADIO},yd=l=>{var o;return((o=l==null?void 0:l.tagName)==null?void 0:o.toLowerCase())===Zt};var Na=class extends Me{constructor(){super();this.placement=dd.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(ye.peek()!==this)return;let i=t.composedPath(),a=this.contains(t.target)||i.includes(this.triggerElement)||i.includes(this),h=this.backdropElement?i.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 i=t.target;wa(i)&&(t.stopImmediatePropagation(),i.addEventListener("destroyed",this.handleItemChangeEvent),i.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(i=>i.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let i=!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),i=!0;break}case J.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,h),i=!0;break}case J.ARROW_DOWN:{let R=h+1===this.menuItems.length?0:h+1;this.resetTabIndexAndSetFocus(R,h),i=!0;break}case J.ARROW_UP:{let R=h-1===-1?this.menuItems.length-1:h-1;this.resetTabIndexAndSetFocus(R,h),i=!0;break}case J.ARROW_RIGHT:{let R=this.getSubMenuPopoverOfTarget(a);R&&(R.show(),i=!0);break}case J.ARROW_LEFT:{yd(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,h),i=!0);break}case J.ESCAPE:{this.resetTabIndexAndSetFocus(0,h),i=!0;break}case J.ENTER:{this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),i=!0);break}case J.SPACE:{i=!0;break}default:break}i&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let i=!1,a=t.target;switch(t.key){case J.SPACE:{a.matches(`${ul}, ${ml}`)||this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),i=!0);break}default:break}i&&(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 i=t.getAttribute("id");return i?(h=(a=this.parentElement)==null?void 0:a.querySelector)==null?void 0:h.call(a,`${Zt}[triggerid="${i}"]`):null}collectMenuItems(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),i=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=i.map(h=>h.tagName.toLowerCase()===oi?Array.from(h.children).filter(m=>wa(m)):wa(h)?h:[]).flat().filter(h=>!!h&&!h.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(h=>this.getSubMenuPopoverOfTarget(h))}getOpenSubMenusOfItems(t){let i=[];return!t||t.length===0||t.forEach(a=>{let h=this.getSubMenuPopoverOfTarget(a);h&&h.visible&&i.push(h)}),i}connectedCallback(){super.connectedCallback(),this.role=tt.MENU,this.ariaOrientation=dd.ORIENTATION,this.backdrop=!1,this.color=so.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,i){return t===i||!this.triggerElement?Promise.resolve():(i&&(this.backdrop=this.triggerElement.tagName.toLowerCase()!==_a),i===!1&&this.menuItemsWithSubMenus.forEach(a=>{let h=this.getSubMenuPopoverOfTarget(a);h&&h.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,i))}async firstUpdated(t){var i;await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0),(i=this.triggerElement)==null||i.setAttribute("aria-haspopup",tt.MENU)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(i=>i.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(i=>i===t)}resetTabIndexAndSetFocus(t,i){t!==i&&(this.menuItems[i].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){for(;ye.peek()!==t&&yd(ye.peek());){let i=ye.pop();if(i)i.hide();else break}}closeOtherSubMenusOnSameLevel(t){let i=this.menuItemsWithSubMenus.filter(h=>h!==t);this.getOpenSubMenusOfItems(i).forEach(h=>{h.hide()})}fireMenuItemAction(t){t.matches(_a)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let i=t.target;if(t.stopPropagation(),!(!wa(i)||!t.isTrusted)){if(this.getSubMenuPopoverOfTarget(i)){this.closeOtherSubMenusOnSameLevel(i);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(i)}}resolveDirectionKey(t,i){if(!i)return t;switch(t){case J.ARROW_LEFT:return J.ARROW_RIGHT;case J.ARROW_RIGHT:return J.ARROW_LEFT;default:return t}}};Na.styles=[...Me.styles,...gf],p([g({type:String,reflect:!0})],Na.prototype,"placement",2);var Ed=Na;Ed.register(Zt);var DE=Ed;var vs=Y.constructTagName("navmenuitem"),bf={DOT:Ke.DOT,COUNTER:Ke.COUNTER},yf={RIGHT_ARROW:"arrow-right-bold"},Ef={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:Yi[24],VARIANT:Lr.FLEXIBLE};var vl=class{constructor(o,t,i){this.variant=o,this.expanded=t,this.parentNavTooltipText=i}hasSiblingWithTriggerId(o){var a,h;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((h=(a=o==null?void 0:o.parentElement)==null?void 0:a.children)!=null?h:[]).some(m=>m!==o&&m.tagName.toLowerCase()===Zt&&m.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],i=o;for(;i;){let a=i==null?void 0:i.closest(Zt);if(!a)break;let h=a.getAttribute("triggerid");if(!h)break;let m=document.getElementById(h);if(m&&m.tagName.toLowerCase()===vs)t.push(m),i=m;else break}return t}setCurrentActiveNavMenuItem(o){var h;let t=((h=this.currentActiveNavMenuItem)==null?void 0:h.navId)===(o==null?void 0:o.navId),i=(o==null?void 0:o.disableAriaCurrent)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||i||(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")})),!o))return;this.currentActiveNavMenuItem=o,o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(m=>{m.setAttribute("tooltip-text",this.parentNavTooltipText||""),m.setAttribute("tooltip-placement",Ut.BOTTOM),m.setAttribute("active","")})}};vl.context=Ni;var gl=vl;var FE=G`
|
3851
3851
|
:host {
|
3852
3852
|
--mdc-sidenavigation-expanded-width: 15rem;
|
3853
3853
|
--mdc-sidenavigation-collapsed-width: 4.5rem;
|
@@ -3950,7 +3950,7 @@
|
|
3950
3950
|
part="grabber-btn"
|
3951
3951
|
></mdc-button>
|
3952
3952
|
</mdc-divider>`:W}
|
3953
|
-
`}};vr.styles=[...j.styles,...Tf],p([g({type:String,reflect:!0})],vr.prototype,"variant",2),p([g({type:String,reflect:!0,attribute:"footer-text"})],vr.prototype,"footerText",2),p([g({type:Boolean,reflect:!0})],vr.prototype,"expanded",2),p([g({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],vr.prototype,"grabberBtnAriaLabel",2),p([g({type:String,reflect:!0,attribute:"parent-nav-tooltip-text"})],vr.prototype,"parentNavTooltipText",2),p([Tt()],vr.prototype,"flexibleExpanded",2),p([Tt()],vr.prototype,"arrowDirection",2);var vo=vr;var $E=
|
3953
|
+
`}};vr.styles=[...j.styles,...Tf],p([g({type:String,reflect:!0})],vr.prototype,"variant",2),p([g({type:String,reflect:!0,attribute:"footer-text"})],vr.prototype,"footerText",2),p([g({type:Boolean,reflect:!0})],vr.prototype,"expanded",2),p([g({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],vr.prototype,"grabberBtnAriaLabel",2),p([g({type:String,reflect:!0,attribute:"parent-nav-tooltip-text"})],vr.prototype,"parentNavTooltipText",2),p([Tt()],vr.prototype,"flexibleExpanded",2),p([Tt()],vr.prototype,"arrowDirection",2);var vo=vr;var $E=G`
|
3954
3954
|
:host {
|
3955
3955
|
display: flex;
|
3956
3956
|
flex-direction: column;
|
@@ -3977,7 +3977,7 @@
|
|
3977
3977
|
${this.hideHeaderText?null:this.renderHeader()}
|
3978
3978
|
<slot></slot>
|
3979
3979
|
${this.showDivider?C`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
3980
|
-
`}};Rr.styles=[...j.styles,...xf],p([g({type:String,reflect:!0,attribute:"aria-label"})],Rr.prototype,"ariaLabel",2),p([g({type:String,reflect:!0,attribute:"header-text"})],Rr.prototype,"headerText",2),p([g({type:String,attribute:"prefix-icon"})],Rr.prototype,"prefixIcon",2),p([g({type:Boolean,reflect:!0,attribute:"show-divider"})],Rr.prototype,"showDivider",2),p([g({type:String,reflect:!0,attribute:"divider-variant"})],Rr.prototype,"dividerVariant",2),p([g({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Rr.prototype,"hideHeaderText",2);var Td=Rr;Td.register(oi);var zE=Td;var VE=[yt,
|
3980
|
+
`}};Rr.styles=[...j.styles,...xf],p([g({type:String,reflect:!0,attribute:"aria-label"})],Rr.prototype,"ariaLabel",2),p([g({type:String,reflect:!0,attribute:"header-text"})],Rr.prototype,"headerText",2),p([g({type:String,attribute:"prefix-icon"})],Rr.prototype,"prefixIcon",2),p([g({type:Boolean,reflect:!0,attribute:"show-divider"})],Rr.prototype,"showDivider",2),p([g({type:String,reflect:!0,attribute:"divider-variant"})],Rr.prototype,"dividerVariant",2),p([g({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Rr.prototype,"hideHeaderText",2);var Td=Rr;Td.register(oi);var zE=Td;var VE=[yt,G`
|
3981
3981
|
:host {
|
3982
3982
|
--mdc-navmenuitem-color: var(--mds-color-theme-text-primary-normal);
|
3983
3983
|
--mdc-navmenuitem-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4148,7 +4148,7 @@
|
|
4148
4148
|
</div>
|
4149
4149
|
${this.showLabel?C`${this.renderTextLabel(this.label)}${this.renderBadge(this.showLabel)}`:W}
|
4150
4150
|
${t!=null&&t.hasSiblingWithTriggerId(this)?this.renderArrowIcon(this.showLabel):W}
|
4151
|
-
`}};rr.styles=[...er.styles,...Af],p([g({type:Boolean,reflect:!0})],rr.prototype,"active",2),p([g({type:String,reflect:!0,attribute:"badge-type"})],rr.prototype,"badgeType",2),p([g({type:Number,reflect:!0})],rr.prototype,"counter",2),p([g({type:Number,attribute:"max-counter",reflect:!0})],rr.prototype,"maxCounter",2),p([g({type:String,reflect:!0,attribute:"nav-id"})],rr.prototype,"navId",2),p([g({type:Boolean,reflect:!0,attribute:"show-label"})],rr.prototype,"showLabel",2),p([g({type:String,attribute:"aria-label"})],rr.prototype,"ariaLabel",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],rr.prototype,"disableAriaCurrent",2);var xd=rr;xd.register(vs);var BE=xd;var Sf=Y.constructTagName("optgroup"),Ad="header-id";var UE=
|
4151
|
+
`}};rr.styles=[...er.styles,...Af],p([g({type:Boolean,reflect:!0})],rr.prototype,"active",2),p([g({type:String,reflect:!0,attribute:"badge-type"})],rr.prototype,"badgeType",2),p([g({type:Number,reflect:!0})],rr.prototype,"counter",2),p([g({type:Number,attribute:"max-counter",reflect:!0})],rr.prototype,"maxCounter",2),p([g({type:String,reflect:!0,attribute:"nav-id"})],rr.prototype,"navId",2),p([g({type:Boolean,reflect:!0,attribute:"show-label"})],rr.prototype,"showLabel",2),p([g({type:String,attribute:"aria-label"})],rr.prototype,"ariaLabel",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],rr.prototype,"disableAriaCurrent",2);var xd=rr;xd.register(vs);var BE=xd;var Sf=Y.constructTagName("optgroup"),Ad="header-id";var UE=G`
|
4152
4152
|
:host {
|
4153
4153
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
4154
4154
|
}
|
@@ -4178,7 +4178,7 @@
|
|
4178
4178
|
${o}
|
4179
4179
|
<slot role="${tt.PRESENTATION}"></slot>
|
4180
4180
|
</div>
|
4181
|
-
`}};gs.styles=[...j.styles,..._f],p([g({type:String,reflect:!0})],gs.prototype,"label",2),p([Nt({selector:"mdc-option"})],gs.prototype,"options",2);var Sd=gs;Sd.register(Sf);var
|
4181
|
+
`}};gs.styles=[...j.styles,..._f],p([g({type:String,reflect:!0})],gs.prototype,"label",2),p([Nt({selector:"mdc-option"})],gs.prototype,"options",2);var Sd=gs;Sd.register(Sf);var HE=Sd;var If="check-bold",bs=Y.constructTagName("option");var GE=G`
|
4182
4182
|
:host {
|
4183
4183
|
--mdc-option-icon-width: 1rem;
|
4184
4184
|
|
@@ -4204,7 +4204,7 @@
|
|
4204
4204
|
/** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
|
4205
4205
|
width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
|
4206
4206
|
}
|
4207
|
-
`,kf=[
|
4207
|
+
`,kf=[GE];var go=class extends Oe(ii){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`
|
4208
4208
|
<div part="leading-icon">
|
4209
4209
|
<mdc-icon length-unit="rem" slot="leading-controls" name="${st(this.prefixIcon)}"></mdc-icon>
|
4210
4210
|
</div>
|
@@ -4226,7 +4226,7 @@
|
|
4226
4226
|
aria-label=${this.showHideButtonAriaLabel}
|
4227
4227
|
prefix-icon=${this.showPassword?Id.HIDE_BOLD:Id.SHOW_BOLD}
|
4228
4228
|
></mdc-button>
|
4229
|
-
`:W}renderInputElement(t,i){let a=this.showPassword?ls.TEXT:ls.PASSWORD;return super.renderInputElement(a,i)}};bo.styles=[...ri.styles],p([g({type:String,attribute:"show-hide-button-aria-label"})],bo.prototype,"showHideButtonAriaLabel",2),p([g({type:String,attribute:"help-text-type"})],bo.prototype,"helpTextType",2),p([Tt()],bo.prototype,"showPassword",2);var kd=bo;kd.register(Cf);var WE=kd;Me.register(vu);var jE=Me;var wf=Y.constructTagName("progressbar"),bl={DEFAULT:"default",INLINE:"inline"},Nf={VARIANT:bl.DEFAULT,VALIDATION:Wt.DEFAULT};var qE=[yt,
|
4229
|
+
`:W}renderInputElement(t,i){let a=this.showPassword?ls.TEXT:ls.PASSWORD;return super.renderInputElement(a,i)}};bo.styles=[...ri.styles],p([g({type:String,attribute:"show-hide-button-aria-label"})],bo.prototype,"showHideButtonAriaLabel",2),p([g({type:String,attribute:"help-text-type"})],bo.prototype,"helpTextType",2),p([Tt()],bo.prototype,"showPassword",2);var kd=bo;kd.register(Cf);var WE=kd;Me.register(vu);var jE=Me;var wf=Y.constructTagName("progressbar"),bl={DEFAULT:"default",INLINE:"inline"},Nf={VARIANT:bl.DEFAULT,VALIDATION:Wt.DEFAULT};var qE=[yt,G`
|
4230
4230
|
:host {
|
4231
4231
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
4232
4232
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -4333,7 +4333,7 @@
|
|
4333
4333
|
</div>
|
4334
4334
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
4335
4335
|
`}
|
4336
|
-
`}};yo.styles=[...tr.styles,...Lf],p([g({type:String,reflect:!0})],yo.prototype,"variant",2),p([g({type:String,reflect:!0})],yo.prototype,"value",2),p([g({type:Boolean,attribute:"error"})],yo.prototype,"error",2);var La=yo;La.register(wf);var KE=La;var Rf=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"},Cd={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var wd=l=>{if(l===0)return 0;let o=l/100*Qt.CIRCUMFERENCE-Qt.GAP_SIZE;return Math.max(o,.1*l)},Mf=l=>{let o=Qt.CIRCUMFERENCE-wd(l)-2*Qt.GAP_SIZE;return l===0?Qt.CIRCUMFERENCE:o<0?0:o},Of=l=>l===0?0:Qt.GAP_SIZE*.5,Pf=(l,o)=>{let t=o+Qt.GAP_SIZE*1.5;return l===0?0:t};var XE=
|
4336
|
+
`}};yo.styles=[...tr.styles,...Lf],p([g({type:String,reflect:!0})],yo.prototype,"variant",2),p([g({type:String,reflect:!0})],yo.prototype,"value",2),p([g({type:Boolean,attribute:"error"})],yo.prototype,"error",2);var La=yo;La.register(wf);var KE=La;var Rf=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"},Cd={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var wd=l=>{if(l===0)return 0;let o=l/100*Qt.CIRCUMFERENCE-Qt.GAP_SIZE;return Math.max(o,.1*l)},Mf=l=>{let o=Qt.CIRCUMFERENCE-wd(l)-2*Qt.GAP_SIZE;return l===0?Qt.CIRCUMFERENCE:o<0?0:o},Of=l=>l===0?0:Qt.GAP_SIZE*.5,Pf=(l,o)=>{let t=o+Qt.GAP_SIZE*1.5;return l===0?0:t};var XE=G`
|
4337
4337
|
:host {
|
4338
4338
|
--mdc-spinner-size: 3rem;
|
4339
4339
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -4423,7 +4423,7 @@
|
|
4423
4423
|
size="${Qt.SUCCESS_ICON_SIZE}"
|
4424
4424
|
length-unit="${Qt.ICON_LENGTH_UNIT}"
|
4425
4425
|
></mdc-icon>
|
4426
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():C` ${this.renderProgressSpinner()}`}};yl.styles=[...j.styles,...Df];var Nd=yl;Nd.register(Rf);var ZE=Nd;var QE=[yt,
|
4426
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():C` ${this.renderProgressSpinner()}`}};yl.styles=[...j.styles,...Df];var Nd=yl;Nd.register(Rf);var ZE=Nd;var QE=[yt,G`
|
4427
4427
|
:host {
|
4428
4428
|
display: flex;
|
4429
4429
|
flex-direction: row;
|
@@ -4535,7 +4535,7 @@
|
|
4535
4535
|
/>
|
4536
4536
|
</mdc-staticradio>
|
4537
4537
|
${this.renderLabelAndHelperText()}
|
4538
|
-
`}};Eo.styles=[...Ee.styles,...Ff],p([g({type:Boolean,reflect:!0})],Eo.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],Eo.prototype,"readonly",2),p([g({type:Boolean,reflect:!0})],Eo.prototype,"autofocus",2);var Ld=Eo;var El=Y.constructTagName("radio");Ld.register(El);var JE=Ld;var Ra=class extends ll{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,i,a,h,m;(m=(h=(a=(i=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:i.flatMap(T=>T.assignedElements({flatten:!0})))==null?void 0:a.filter(T=>T.tagName.toLowerCase()===El||T.tagName.toLowerCase()===qn))==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())})}};Ra.styles=[...ll.styles],p([g({type:String})],Ra.prototype,"name",2);var Rd=Ra;var $f=Y.constructTagName("radiogroup");Rd.register($f);var tT=Rd;var eT=
|
4538
|
+
`}};Eo.styles=[...Ee.styles,...Ff],p([g({type:Boolean,reflect:!0})],Eo.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],Eo.prototype,"readonly",2),p([g({type:Boolean,reflect:!0})],Eo.prototype,"autofocus",2);var Ld=Eo;var El=Y.constructTagName("radio");Ld.register(El);var JE=Ld;var Ra=class extends ll{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,i,a,h,m;(m=(h=(a=(i=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:i.flatMap(T=>T.assignedElements({flatten:!0})))==null?void 0:a.filter(T=>T.tagName.toLowerCase()===El||T.tagName.toLowerCase()===qn))==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())})}};Ra.styles=[...ll.styles],p([g({type:String})],Ra.prototype,"name",2);var Rd=Ra;var $f=Y.constructTagName("radiogroup");Rd.register($f);var tT=Rd;var eT=G`
|
4539
4539
|
:host::part(filters-container) {
|
4540
4540
|
display: flex;
|
4541
4541
|
gap: 0.25rem;
|
@@ -4580,7 +4580,7 @@
|
|
4580
4580
|
</div>
|
4581
4581
|
${this.renderTrailingButton(this.hasInputChips)}
|
4582
4582
|
</div>
|
4583
|
-
`}};To.styles=[...ri.styles,...zf],p([Nt({slot:"filters"})],To.prototype,"inputChips",2),p([Tt()],To.prototype,"isInputFocused",2),p([Tt()],To.prototype,"hasInputChips",2);var Md=To;Md.register(Vf);var rT=Md;var Bf=Y.constructTagName("select"),Od={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Oa="select-base-triggerid",Pd="select-listbox";var iT=
|
4583
|
+
`}};To.styles=[...ri.styles,...zf],p([Nt({slot:"filters"})],To.prototype,"inputChips",2),p([Tt()],To.prototype,"isInputFocused",2),p([Tt()],To.prototype,"hasInputChips",2);var Md=To;Md.register(Vf);var rT=Md;var Bf=Y.constructTagName("select"),Od={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Oa="select-base-triggerid",Pd="select-listbox";var iT=G`
|
4584
4584
|
:host {
|
4585
4585
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
4586
4586
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -4778,7 +4778,7 @@
|
|
4778
4778
|
</mdc-popover>
|
4779
4779
|
</div>
|
4780
4780
|
${this.renderHelperText()}
|
4781
|
-
`}};ze.styles=[...Ee.styles,...Uf],p([g({type:String})],ze.prototype,"placeholder",2),p([g({type:Boolean})],ze.prototype,"readonly",2),p([g({type:String})],ze.prototype,"height",2),p([g({type:String,reflect:!0})],ze.prototype,"placement",2),p([g({type:Boolean,attribute:"soft-disabled"})],ze.prototype,"softDisabled",2),p([Nt({selector:"mdc-selectlistbox"})],ze.prototype,"slottedListboxes",2),p([
|
4781
|
+
`}};ze.styles=[...Ee.styles,...Uf],p([g({type:String})],ze.prototype,"placeholder",2),p([g({type:Boolean})],ze.prototype,"readonly",2),p([g({type:String})],ze.prototype,"height",2),p([g({type:String,reflect:!0})],ze.prototype,"placement",2),p([g({type:Boolean,attribute:"soft-disabled"})],ze.prototype,"softDisabled",2),p([Nt({selector:"mdc-selectlistbox"})],ze.prototype,"slottedListboxes",2),p([Hr(`[id="${Oa}"]`)],ze.prototype,"visualCombobox",2),p([Tt()],ze.prototype,"selectedOption",2),p([Tt()],ze.prototype,"displayPopover",2);var Dd=ze;Dd.register(Bf);var oT=Dd;var Fd=class extends j{constructor(){super(...arguments);this.role=tt.LISTBOX}createRenderRoot(){return this}},$d=Fd;var Hf=Y.constructTagName("selectlistbox");$d.register(Hf);var sT=$d;vo.register(Ni);var aT=vo;var Gf=Y.constructTagName("skeleton"),Yf={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Wf={VARIANT:Yf.RECTANGULAR};var nT=G`
|
4782
4782
|
:host {
|
4783
4783
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
4784
4784
|
--mdc-skeleton-height: 100%;
|
@@ -4815,7 +4815,7 @@
|
|
4815
4815
|
::slotted(*) {
|
4816
4816
|
visibility: hidden;
|
4817
4817
|
}
|
4818
|
-
`,jf=nT;var Pa=class extends j{constructor(){super(...arguments);this.variant=Wf.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return C`<slot @slotchange=${this.checkSlotContent}></slot>`}};Pa.styles=[...j.styles,jf],p([g({type:String,reflect:!0})],Pa.prototype,"variant",2);var zd=Pa;zd.register(
|
4818
|
+
`,jf=nT;var Pa=class extends j{constructor(){super(...arguments);this.variant=Wf.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return C`<slot @slotchange=${this.checkSlotContent}></slot>`}};Pa.styles=[...j.styles,jf],p([g({type:String,reflect:!0})],Pa.prototype,"variant",2);var zd=Pa;zd.register(Gf);var lT=zd;var cT=[yt,G`
|
4819
4819
|
:host {
|
4820
4820
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
4821
4821
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -4883,7 +4883,7 @@
|
|
4883
4883
|
<svg part="container" viewBox="0 0 100 100">
|
4884
4884
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
4885
4885
|
</svg>
|
4886
|
-
`}};Ri.styles=[...j.styles,...qf],p([g({type:Boolean,reflect:!0})],Ri.prototype,"inverted",2),p([g({type:String,reflect:!0})],Ri.prototype,"size",2),p([g({type:String,attribute:"aria-label"})],Ri.prototype,"ariaLabel",2),p([g({type:String,reflect:!0})],Ri.prototype,"variant",2);var Vd=Ri;Vd.register(Kf);var pT=Vd;var mT={COMPLETE:"complete",INCOMPLETE:"incomplete"},Bd={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Ud={STATUS:mT.INCOMPLETE,ORIENTATION:Bd.HORIZONTAL},Xf=Y.constructTagName("stepperconnector");var Zf=Y.constructTagName("stepperitem"),
|
4886
|
+
`}};Ri.styles=[...j.styles,...qf],p([g({type:Boolean,reflect:!0})],Ri.prototype,"inverted",2),p([g({type:String,reflect:!0})],Ri.prototype,"size",2),p([g({type:String,attribute:"aria-label"})],Ri.prototype,"ariaLabel",2),p([g({type:String,reflect:!0})],Ri.prototype,"variant",2);var Vd=Ri;Vd.register(Kf);var pT=Vd;var mT={COMPLETE:"complete",INCOMPLETE:"incomplete"},Bd={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Ud={STATUS:mT.INCOMPLETE,ORIENTATION:Bd.HORIZONTAL},Xf=Y.constructTagName("stepperconnector");var Zf=Y.constructTagName("stepperitem"),Hd={INLINE:"inline",STACKED:"stacked"},si={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},xl={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},Gd={VARIANT:Hd.INLINE,STATUS:si.NOT_STARTED};var Al=Y.constructTagName("stepper"),Da={ORIENTATION:Bd.HORIZONTAL,VARIANT:Hd.INLINE};var Sl=class{constructor(o,t){this.orientation=o,this.variant=t}};Sl.context=Al;var _l=Sl;var uT=G`
|
4887
4887
|
:host {
|
4888
4888
|
gap: 0.5rem;
|
4889
4889
|
}
|
@@ -4920,7 +4920,7 @@
|
|
4920
4920
|
padding-top: 0.9375rem;
|
4921
4921
|
margin: 0 -3rem;
|
4922
4922
|
}
|
4923
|
-
`,Qf=[yt,uT];var ys=class extends Ar{constructor(){super({context:_l.context,initialValue:new _l(Da.ORIENTATION,Da.VARIANT)});this.orientation=Da.ORIENTATION;this.variant=Da.VARIANT}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}static get Context(){return _l.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,...Qf],p([g({type:String,reflect:!0})],ys.prototype,"orientation",2),p([g({type:String,reflect:!0})],ys.prototype,"variant",2);var xo=ys;xo.register(Al);var fT=xo;var vT=
|
4923
|
+
`,Qf=[yt,uT];var ys=class extends Ar{constructor(){super({context:_l.context,initialValue:new _l(Da.ORIENTATION,Da.VARIANT)});this.orientation=Da.ORIENTATION;this.variant=Da.VARIANT}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}static get Context(){return _l.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,...Qf],p([g({type:String,reflect:!0})],ys.prototype,"orientation",2),p([g({type:String,reflect:!0})],ys.prototype,"variant",2);var xo=ys;xo.register(Al);var fT=xo;var vT=G`
|
4924
4924
|
:host {
|
4925
4925
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
4926
4926
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
@@ -4955,7 +4955,7 @@
|
|
4955
4955
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
4956
4956
|
}
|
4957
4957
|
}
|
4958
|
-
`,Jf=[vT];var Es=class extends j{constructor(){super(...arguments);this.status=Ud.STATUS;this.orientation=Ud.ORIENTATION;this.stepperContext=Sr.consume({host:this,context:xo.Context})}updated(t){var a;super.updated(t);let i=(a=this.stepperContext)==null?void 0:a.value;!i||!i.orientation||(this.orientation=i.orientation)}render(){return C` <div part="connector"></div> `}};Es.styles=[...j.styles,...Jf],p([g({type:String,reflect:!0})],Es.prototype,"status",2),p([g({type:String,reflect:!0})],Es.prototype,"orientation",2);var Yd=Es;Yd.register(Xf);var gT=Yd;var bT=
|
4958
|
+
`,Jf=[vT];var Es=class extends j{constructor(){super(...arguments);this.status=Ud.STATUS;this.orientation=Ud.ORIENTATION;this.stepperContext=Sr.consume({host:this,context:xo.Context})}updated(t){var a;super.updated(t);let i=(a=this.stepperContext)==null?void 0:a.value;!i||!i.orientation||(this.orientation=i.orientation)}render(){return C` <div part="connector"></div> `}};Es.styles=[...j.styles,...Jf],p([g({type:String,reflect:!0})],Es.prototype,"status",2),p([g({type:String,reflect:!0})],Es.prototype,"orientation",2);var Yd=Es;Yd.register(Xf);var gT=Yd;var bT=G`
|
4959
4959
|
:host {
|
4960
4960
|
gap: 0.5rem;
|
4961
4961
|
border-radius: 0.25rem;
|
@@ -5112,7 +5112,7 @@
|
|
5112
5112
|
:host([status='error-incomplete']:active) {
|
5113
5113
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
5114
5114
|
}
|
5115
|
-
`,tv=[yt,bT,...xt()];var ai=class extends qe(j){constructor(){super();this.variant=
|
5115
|
+
`,tv=[yt,bT,...xt()];var ai=class extends qe(j){constructor(){super();this.variant=Gd.VARIANT;this.status=Gd.STATUS;this.label="";this.stepperContext=Sr.consume({host:this,context:xo.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var a;super.updated(t);let i=(a=this.stepperContext)==null?void 0:a.value;!i||!i.variant||(this.variant=i.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===si.COMPLETED?C`<mdc-icon part="status-icon" name=${xl.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===si.ERROR_CURRENT||this.status===si.CURRENT?C`<mdc-icon part="status-icon" name=${xl.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===si.NOT_STARTED||this.status===si.ERROR_INCOMPLETE)?C`<mdc-text part="step-number" tagname=${mt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
5116
5116
|
>${this.stepNumber}</mdc-text
|
5117
5117
|
>`:W}renderHelpText(){if(!this.helpText)return W;let t=C`<mdc-text
|
5118
5118
|
part="help-text"
|
@@ -5128,7 +5128,7 @@
|
|
5128
5128
|
>${this.label}</mdc-text
|
5129
5129
|
>`:W}
|
5130
5130
|
${this.renderHelpText()}
|
5131
|
-
</div>`}};ai.styles=[...j.styles,...tv],p([g({type:String,reflect:!0})],ai.prototype,"variant",2),p([g({type:String,reflect:!0})],ai.prototype,"status",2),p([g({type:String,reflect:!0})],ai.prototype,"label",2),p([g({type:String,reflect:!0,attribute:"help-text"})],ai.prototype,"helpText",2),p([g({type:Number,reflect:!0,attribute:"step-number"})],ai.prototype,"stepNumber",2);var Wd=ai;Wd.register(Zf);var yT=Wd;var ev=Y.constructTagName("tab"),jd={GLASS:"glass",LINE:"line",PILL:"pill"},Il={VARIANT:jd.PILL,ACTIVE:!1};var ET=[yt,
|
5131
|
+
</div>`}};ai.styles=[...j.styles,...tv],p([g({type:String,reflect:!0})],ai.prototype,"variant",2),p([g({type:String,reflect:!0})],ai.prototype,"status",2),p([g({type:String,reflect:!0})],ai.prototype,"label",2),p([g({type:String,reflect:!0,attribute:"help-text"})],ai.prototype,"helpText",2),p([g({type:Number,reflect:!0,attribute:"step-number"})],ai.prototype,"stepNumber",2);var Wd=ai;Wd.register(Zf);var yT=Wd;var ev=Y.constructTagName("tab"),jd={GLASS:"glass",LINE:"line",PILL:"pill"},Il={VARIANT:jd.PILL,ACTIVE:!1};var ET=[yt,G`
|
5132
5132
|
:host {
|
5133
5133
|
--mdc-tab-content-gap: 0.5rem;
|
5134
5134
|
--mdc-tab-height: 2rem;
|
@@ -5384,7 +5384,7 @@
|
|
5384
5384
|
<slot name="chip"></slot>
|
5385
5385
|
</div>
|
5386
5386
|
<div part="indicator"></div>
|
5387
|
-
`}};Mi.styles=[...pe.styles,...rv],p([g({type:Boolean,reflect:!0})],Mi.prototype,"active",2),p([g({type:String,reflect:!0})],Mi.prototype,"text",2),p([g({type:String,reflect:!0})],Mi.prototype,"variant",2),p([g({type:String,reflect:!0,attribute:"tab-id"})],Mi.prototype,"tabId",2);var ir=Mi;ir.register(ev);var TT=ir;var xT=[xn,
|
5387
|
+
`}};Mi.styles=[...pe.styles,...rv],p([g({type:Boolean,reflect:!0})],Mi.prototype,"active",2),p([g({type:String,reflect:!0})],Mi.prototype,"text",2),p([g({type:String,reflect:!0})],Mi.prototype,"variant",2),p([g({type:String,reflect:!0,attribute:"tab-id"})],Mi.prototype,"tabId",2);var ir=Mi;ir.register(ev);var TT=ir;var xT=[xn,G`
|
5388
5388
|
:host {
|
5389
5389
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
5390
5390
|
--mdc-tablist-gap: 0.5rem;
|
@@ -5423,7 +5423,7 @@
|
|
5423
5423
|
<div class="container" role="${tt.TABLIST}" tabindex="-1" aria-label="${st(this.dataAriaLabel)}">
|
5424
5424
|
<slot></slot>
|
5425
5425
|
</div>
|
5426
|
-
${a(Ts.FORWARD)}`}};gr.styles=[...j.styles,...iv],p([g({type:String,attribute:"active-tab-id",reflect:!0})],gr.prototype,"activeTabId",2),p([g({type:String,attribute:"data-aria-label"})],gr.prototype,"dataAriaLabel",2),p([
|
5426
|
+
${a(Ts.FORWARD)}`}};gr.styles=[...j.styles,...iv],p([g({type:String,attribute:"active-tab-id",reflect:!0})],gr.prototype,"activeTabId",2),p([g({type:String,attribute:"data-aria-label"})],gr.prototype,"dataAriaLabel",2),p([Hr(".container")],gr.prototype,"tabsContainer",2),p([Hr("mdc-button:not(:focus-visible)")],gr.prototype,"notFocusedArrowButton",2),p([Nt({selector:"mdc-tab"})],gr.prototype,"tabs",2),p([Tt()],gr.prototype,"showForwardArrowButton",2),p([Tt()],gr.prototype,"showBackwardArrowButton",2);var Xd=gr;Xd.register(ov);var AT=Xd;var lv=Y.constructTagName("textarea"),Zd={HARD:"hard",SOFT:"soft"},cv={OFF:"off",ON:"on"},Cl={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Zd.SOFT};var ST=[G`
|
5427
5427
|
:host {
|
5428
5428
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
5429
5429
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -5575,7 +5575,7 @@
|
|
5575
5575
|
></textarea>
|
5576
5576
|
</div>
|
5577
5577
|
${this.renderTextareaFooter()}
|
5578
|
-
`}};ne.styles=[...tr.styles,...dv],p([g({type:String})],ne.prototype,"placeholder",2),p([g({type:Boolean})],ne.prototype,"readonly",2),p([g({type:Number})],ne.prototype,"rows",2),p([g({type:Number})],ne.prototype,"cols",2),p([g({type:String})],ne.prototype,"wrap",2),p([g({type:String})],ne.prototype,"autocapitalize",2),p([g({type:String})],ne.prototype,"autocomplete",2),p([g({type:Boolean})],ne.prototype,"autofocus",2),p([g({type:String})],ne.prototype,"dirname",2),p([g({type:Number})],ne.prototype,"maxlength",2),p([g({type:Number})],ne.prototype,"minlength",2),p([g({type:Number,attribute:"max-character-limit"})],ne.prototype,"maxCharacterLimit",2),p([
|
5578
|
+
`}};ne.styles=[...tr.styles,...dv],p([g({type:String})],ne.prototype,"placeholder",2),p([g({type:Boolean})],ne.prototype,"readonly",2),p([g({type:Number})],ne.prototype,"rows",2),p([g({type:Number})],ne.prototype,"cols",2),p([g({type:String})],ne.prototype,"wrap",2),p([g({type:String})],ne.prototype,"autocapitalize",2),p([g({type:String})],ne.prototype,"autocomplete",2),p([g({type:Boolean})],ne.prototype,"autofocus",2),p([g({type:String})],ne.prototype,"dirname",2),p([g({type:Number})],ne.prototype,"maxlength",2),p([g({type:Number})],ne.prototype,"minlength",2),p([g({type:Number,attribute:"max-character-limit"})],ne.prototype,"maxCharacterLimit",2),p([Hr("textarea")],ne.prototype,"inputElement",2);var Qd=ne;Qd.register(lv);var _T=Qd;var IT=[G`
|
5579
5579
|
:host {
|
5580
5580
|
display: block;
|
5581
5581
|
position: relative;
|
@@ -5600,7 +5600,7 @@
|
|
5600
5600
|
>
|
5601
5601
|
<slot @slotchange=${this.handleSlotChange} class="typewriter-hidden"></slot>
|
5602
5602
|
</div>
|
5603
|
-
`}};br.styles=[...j.styles,...hv],p([g({attribute:"type",reflect:!0,type:String})],br.prototype,"type",2),p([g({attribute:"tagname",reflect:!0,type:String})],br.prototype,"tagname",2),p([g({attribute:"speed",reflect:!0})],br.prototype,"speed",2),p([g({attribute:"max-queue-size",type:Number,reflect:!0})],br.prototype,"maxQueueSize",2),p([Tt()],br.prototype,"displayedText",2),p([Tt()],br.prototype,"originalText",2),p([Tt()],br.prototype,"typingComplete",2);var Jd=br;Jd.register(pv);var kT=Jd;var wl=Y.constructTagName("themeprovider"),th={THEMECLASS:"mds-theme-stable-darkWebex"};var Nl=class{constructor(o){this.themeclass=o}};Nl.context=wl;var Ll=Nl;var CT=
|
5603
|
+
`}};br.styles=[...j.styles,...hv],p([g({attribute:"type",reflect:!0,type:String})],br.prototype,"type",2),p([g({attribute:"tagname",reflect:!0,type:String})],br.prototype,"tagname",2),p([g({attribute:"speed",reflect:!0})],br.prototype,"speed",2),p([g({attribute:"max-queue-size",type:Number,reflect:!0})],br.prototype,"maxQueueSize",2),p([Tt()],br.prototype,"displayedText",2),p([Tt()],br.prototype,"originalText",2),p([Tt()],br.prototype,"typingComplete",2);var Jd=br;Jd.register(pv);var kT=Jd;var wl=Y.constructTagName("themeprovider"),th={THEMECLASS:"mds-theme-stable-darkWebex"};var Nl=class{constructor(o){this.themeclass=o}};Nl.context=wl;var Ll=Nl;var CT=G`
|
5604
5604
|
:host {
|
5605
5605
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
5606
5606
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -5627,7 +5627,7 @@
|
|
5627
5627
|
* {
|
5628
5628
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
5629
5629
|
}
|
5630
|
-
`,mv=[CT];var xs=class extends Ar{constructor(){super({context:Ll.context,initialValue:new Ll(th.THEMECLASS)});this.themeclass=th.THEMECLASS}static get Context(){return Ll.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=[...Ar.styles,...mv],p([Tt()],xs.prototype,"currentThemeClass",2),p([g({type:String})],xs.prototype,"themeclass",2);var eh=xs;eh.register(wl);var wT=eh;var uv=Y.constructTagName("toast"),$a={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Rl={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Pe={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:je[20],BUTTON:
|
5630
|
+
`,mv=[CT];var xs=class extends Ar{constructor(){super({context:Ll.context,initialValue:new Ll(th.THEMECLASS)});this.themeclass=th.THEMECLASS}static get Context(){return Ll.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=[...Ar.styles,...mv],p([Tt()],xs.prototype,"currentThemeClass",2),p([g({type:String})],xs.prototype,"themeclass",2);var eh=xs;eh.register(wl);var wT=eh;var uv=Y.constructTagName("toast"),$a={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Rl={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Pe={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:je[20],BUTTON:Gr,PRIMARY_BUTTON:Ot.PRIMARY,SECONDARY_BUTTON:Ot.SECONDARY,TERTIARY_BUTTON:Ot.TERTIARY,VARIANT:$a.CUSTOM};var fv=l=>{switch(l){case $a.SUCCESS:return Rl.SUCCESS_ICON_NAME;case $a.WARNING:return Rl.WARNING_ICON_NAME;case $a.ERROR:return Rl.ERROR_ICON_NAME;default:return null}};var NT=G`
|
5631
5631
|
:host {
|
5632
5632
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
5633
5633
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
@@ -5766,7 +5766,7 @@
|
|
5766
5766
|
></mdc-button>
|
5767
5767
|
</div>
|
5768
5768
|
${this.renderFooter()}
|
5769
|
-
`}};Ae.styles=[...j.styles,...vv],p([g({type:String,reflect:!0})],Ae.prototype,"variant",2),p([g({type:String,attribute:"close-button-aria-label"})],Ae.prototype,"closeButtonAriaLabel",2),p([g({type:String,reflect:!0,attribute:"header-text"})],Ae.prototype,"headerText",2),p([g({type:String,reflect:!0,attribute:"header-tag-name"})],Ae.prototype,"headerTagName",2),p([g({type:String,reflect:!0,attribute:"aria-label"})],Ae.prototype,"ariaLabel",2),p([g({type:String,reflect:!0,attribute:"show-more-text"})],Ae.prototype,"showMoreText",2),p([g({type:String,reflect:!0,attribute:"show-less-text"})],Ae.prototype,"showLessText",2),p([Tt()],Ae.prototype,"isDetailVisible",2),p([Tt()],Ae.prototype,"hasDetailedSlot",2),p([Nt({slot:"toast-body-detailed",flatten:!0})],Ae.prototype,"detailedElements",2),p([Tt()],Ae.prototype,"hasFooterButtons",2);var rh=Ae;rh.register(uv);var LT=rh;var RT=[yt,
|
5769
|
+
`}};Ae.styles=[...j.styles,...vv],p([g({type:String,reflect:!0})],Ae.prototype,"variant",2),p([g({type:String,attribute:"close-button-aria-label"})],Ae.prototype,"closeButtonAriaLabel",2),p([g({type:String,reflect:!0,attribute:"header-text"})],Ae.prototype,"headerText",2),p([g({type:String,reflect:!0,attribute:"header-tag-name"})],Ae.prototype,"headerTagName",2),p([g({type:String,reflect:!0,attribute:"aria-label"})],Ae.prototype,"ariaLabel",2),p([g({type:String,reflect:!0,attribute:"show-more-text"})],Ae.prototype,"showMoreText",2),p([g({type:String,reflect:!0,attribute:"show-less-text"})],Ae.prototype,"showLessText",2),p([Tt()],Ae.prototype,"isDetailVisible",2),p([Tt()],Ae.prototype,"hasDetailedSlot",2),p([Nt({slot:"toast-body-detailed",flatten:!0})],Ae.prototype,"detailedElements",2),p([Tt()],Ae.prototype,"hasFooterButtons",2);var rh=Ae;rh.register(uv);var LT=rh;var RT=[yt,G`
|
5770
5770
|
:host {
|
5771
5771
|
--mdc-toggle-width: 3rem;
|
5772
5772
|
--mdc-toggle-height: 1.5rem;
|
@@ -5883,7 +5883,7 @@
|
|
5883
5883
|
`}};So.styles=[...tr.styles,...gv],p([g({type:Boolean,reflect:!0})],So.prototype,"checked",2),p([g({type:String,reflect:!0})],So.prototype,"size",2),p([g({type:Boolean,reflect:!0})],So.prototype,"autofocus",2);var ih=So;ih.register(pf);var MT=ih;function _o(l,o,t){var h;let i=(h=t.initialDeps)!=null?h:[],a;return()=>{var m,T,R,$;let q;t.key&&((m=t.debug)!=null&&m.call(t))&&(q=Date.now());let K=l();if(!(K.length!==i.length||K.some((rt,ut)=>i[ut]!==rt)))return a;i=K;let Q;if(t.key&&((T=t.debug)!=null&&T.call(t))&&(Q=Date.now()),a=o(...K),t.key&&((R=t.debug)!=null&&R.call(t))){let rt=Math.round((Date.now()-q)*100)/100,ut=Math.round((Date.now()-Q)*100)/100,At=ut/16,Et=(St,kt)=>{for(St=String(St);St.length<kt;)St=" "+St;return St};console.info(`%c\u23F1 ${Et(ut,5)} /${Et(rt,5)} ms`,`
|
5884
5884
|
font-size: .6rem;
|
5885
5885
|
font-weight: bold;
|
5886
|
-
color: hsl(${Math.max(0,Math.min(120-120*At,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,a),a}}function Ml(l,o){if(l===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return l}var bv=(l,o)=>Math.abs(l-o)<1,yv=(l,o,t)=>{let i;return function(...a){l.clearTimeout(i),i=l.setTimeout(()=>o.apply(this,a),t)}};var OT=l=>l,PT=l=>{let o=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),i=[];for(let a=o;a<=t;a++)i.push(a);return i},Tv=(l,o)=>{let t=l.scrollElement;if(!t)return;let i=l.targetWindow;if(!i)return;let a=m=>{let{width:T,height:R}=m;o({width:Math.round(T),height:Math.round(R)})};if(a(t.getBoundingClientRect()),!i.ResizeObserver)return()=>{};let h=new i.ResizeObserver(m=>{let T=m[0];if(T!=null&&T.borderBoxSize){let R=T.borderBoxSize[0];if(R){a({width:R.inlineSize,height:R.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,o)=>{let t=l.scrollElement;if(!t)return;let i=l.targetWindow;if(!i)return;let a=0,h=l.options.useScrollendEvent&&DT?()=>{}:yv(i,()=>{o(a,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:q,isRtl:K}=l.options;a=q?t.scrollLeft*(K&&-1||1):t.scrollTop,h(),o(a,$)},T=m(!0),R=m(!1);return R(),t.addEventListener("scroll",T,Ev),t.addEventListener("scrollend",R,Ev),()=>{t.removeEventListener("scroll",T),t.removeEventListener("scrollend",R)}};var FT=(l,o,t)=>{if(o!=null&&o.borderBoxSize){let i=o.borderBoxSize[0];if(i)return Math.round(i[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var Av=(l,{adjustments:o=0,behavior:t},i)=>{var a,h;let m=l+o;(h=(a=i.scrollElement)==null?void 0:a.scrollTo)==null||h.call(a,{[i.options.horizontal?"left":"top"]:m,behavior:t})},Ol=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,i=()=>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=i())==null||a.disconnect(),t=null},observe:a=>{var h;return(h=i())==null?void 0:h.observe(a,{box:"border-box"})},unobserve:a=>{var h;return(h=i())==null?void 0:h.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([i,a])=>{typeof a>"u"&&delete t[i]}),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 i,a;(a=(i=this.options).onChange)==null||a.call(i,this,t)},this.maybeNotify=_o(()=>(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 i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,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,i)=>{let a=new Map,h=new Map;for(let m=i-1;m>=0;m--){let T=t[m];if(a.has(T.lane))continue;let R=h.get(T.lane);if(R==null||T.end>R.end?h.set(T.lane,T):T.end<R.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=_o(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,i,a,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:i,scrollMargin:a,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=_o(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:i,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 R=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,R);for(let q=R;q<t;q++){let K=h(q),nt=this.options.lanes===1?$[q-1]:this.getFurthestMeasurement($,q),Q=nt?nt.end+this.options.gap:i+a,rt=T.get(K),ut=typeof rt=="number"?rt:this.options.estimateSize(q),At=Q+ut,Et=nt?nt.lane:q%this.options.lanes;$[q]={index:q,start:Q,size:ut,end:At,key:K,lane:Et}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=_o(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,i,a)=>this.range=t.length>0&&i>0?$T({measurements:t,outerSize:i,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=_o(()=>{let t=null,i=null,a=this.calculateRange();return a&&(t=a.startIndex,i=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,i]},(t,i,a,h,m)=>h===null||m===null?[]:t({startIndex:h,endIndex:m,overscan:i,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let i=this.options.indexAttribute,a=t.getAttribute(i);return a?parseInt(a,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(t,i)=>{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,i,this))},this.resizeItem=(t,i)=>{var T;let a=this.measurementsCache[t];if(!a)return;let h=(T=this.itemSizeCache.get(a.key))!=null?T:a.size,m=i-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,i)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((i,a)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(a))});return}this._measureElement(t,void 0)},this.getVirtualItems=_o(()=>[this.getIndexes(),this.getMeasurements()],(t,i)=>{let a=[];for(let h=0,m=t.length;h<m;h++){let T=t[h],R=i[T];a.push(R)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let i=this.getMeasurements();if(i.length!==0)return Ml(i[Sv(0,i.length-1,a=>Ml(i[a]).start,t)])},this.getOffsetForAlignment=(t,i)=>{let a=this.getSize(),h=this.getScrollOffset();i==="auto"&&t>=h+a&&(i="end"),i==="end"&&(t-=a);let m=this.options.horizontal?"scrollWidth":"scrollHeight",R=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-a;return Math.max(Math.min(R,t),0)},this.getOffsetForIndex=(t,i="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(i==="auto")if(a.end>=m+h-this.options.scrollPaddingEnd)i="end";else if(a.start<=m+this.options.scrollPaddingStart)i="start";else return[m,i];let T=a.start-this.options.scrollPaddingStart+(a.size-h)/2;switch(i){case"center":return[this.getOffsetForAlignment(T,i),i];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,i),i];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,i),i]}},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:i="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,i),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:i="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,i);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[$]=Ml(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:i}={})=>{this.cancelScrollToIndex(),i==="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:i})},this.getTotalSize=()=>{var h;var t;let i=this.getMeasurements(),a;return i.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(h=(t=i[i.length-1])==null?void 0:t.end)!=null?h:0:Math.max(...i.slice(-this.options.lanes).map(m=>m.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:i,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Sv=(l,o,t,i)=>{for(;l<=o;){let a=(l+o)/2|0,h=t(a);if(h<i)l=a+1;else if(h>i)o=a-1;else return a}return l>0?l-1:0};function $T({measurements:l,outerSize:o,scrollOffset:t}){let i=l.length-1,h=Sv(0,i,T=>l[T].start,t),m=h;for(;m<i&&l[m].end<t+o;)m++;return{startIndex:h,endIndex:m}}var oh=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let i={...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 Ol(i)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pl=class extends oh{constructor(o,t){super(o,{observeElementRect:Tv,observeElementOffset:xv,scrollToFn:Av,...t})}};var zT=[H`
|
5886
|
+
color: hsl(${Math.max(0,Math.min(120-120*At,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,a),a}}function Ml(l,o){if(l===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return l}var bv=(l,o)=>Math.abs(l-o)<1,yv=(l,o,t)=>{let i;return function(...a){l.clearTimeout(i),i=l.setTimeout(()=>o.apply(this,a),t)}};var OT=l=>l,PT=l=>{let o=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),i=[];for(let a=o;a<=t;a++)i.push(a);return i},Tv=(l,o)=>{let t=l.scrollElement;if(!t)return;let i=l.targetWindow;if(!i)return;let a=m=>{let{width:T,height:R}=m;o({width:Math.round(T),height:Math.round(R)})};if(a(t.getBoundingClientRect()),!i.ResizeObserver)return()=>{};let h=new i.ResizeObserver(m=>{let T=m[0];if(T!=null&&T.borderBoxSize){let R=T.borderBoxSize[0];if(R){a({width:R.inlineSize,height:R.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,o)=>{let t=l.scrollElement;if(!t)return;let i=l.targetWindow;if(!i)return;let a=0,h=l.options.useScrollendEvent&&DT?()=>{}:yv(i,()=>{o(a,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:q,isRtl:K}=l.options;a=q?t.scrollLeft*(K&&-1||1):t.scrollTop,h(),o(a,$)},T=m(!0),R=m(!1);return R(),t.addEventListener("scroll",T,Ev),t.addEventListener("scrollend",R,Ev),()=>{t.removeEventListener("scroll",T),t.removeEventListener("scrollend",R)}};var FT=(l,o,t)=>{if(o!=null&&o.borderBoxSize){let i=o.borderBoxSize[0];if(i)return Math.round(i[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var Av=(l,{adjustments:o=0,behavior:t},i)=>{var a,h;let m=l+o;(h=(a=i.scrollElement)==null?void 0:a.scrollTo)==null||h.call(a,{[i.options.horizontal?"left":"top"]:m,behavior:t})},Ol=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,i=()=>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=i())==null||a.disconnect(),t=null},observe:a=>{var h;return(h=i())==null?void 0:h.observe(a,{box:"border-box"})},unobserve:a=>{var h;return(h=i())==null?void 0:h.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([i,a])=>{typeof a>"u"&&delete t[i]}),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 i,a;(a=(i=this.options).onChange)==null||a.call(i,this,t)},this.maybeNotify=_o(()=>(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 i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,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,i)=>{let a=new Map,h=new Map;for(let m=i-1;m>=0;m--){let T=t[m];if(a.has(T.lane))continue;let R=h.get(T.lane);if(R==null||T.end>R.end?h.set(T.lane,T):T.end<R.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=_o(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,i,a,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:i,scrollMargin:a,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=_o(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:i,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 R=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,R);for(let q=R;q<t;q++){let K=h(q),nt=this.options.lanes===1?$[q-1]:this.getFurthestMeasurement($,q),Q=nt?nt.end+this.options.gap:i+a,rt=T.get(K),ut=typeof rt=="number"?rt:this.options.estimateSize(q),At=Q+ut,Et=nt?nt.lane:q%this.options.lanes;$[q]={index:q,start:Q,size:ut,end:At,key:K,lane:Et}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=_o(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,i,a)=>this.range=t.length>0&&i>0?$T({measurements:t,outerSize:i,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=_o(()=>{let t=null,i=null,a=this.calculateRange();return a&&(t=a.startIndex,i=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,i]},(t,i,a,h,m)=>h===null||m===null?[]:t({startIndex:h,endIndex:m,overscan:i,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let i=this.options.indexAttribute,a=t.getAttribute(i);return a?parseInt(a,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(t,i)=>{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,i,this))},this.resizeItem=(t,i)=>{var T;let a=this.measurementsCache[t];if(!a)return;let h=(T=this.itemSizeCache.get(a.key))!=null?T:a.size,m=i-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,i)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((i,a)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(a))});return}this._measureElement(t,void 0)},this.getVirtualItems=_o(()=>[this.getIndexes(),this.getMeasurements()],(t,i)=>{let a=[];for(let h=0,m=t.length;h<m;h++){let T=t[h],R=i[T];a.push(R)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let i=this.getMeasurements();if(i.length!==0)return Ml(i[Sv(0,i.length-1,a=>Ml(i[a]).start,t)])},this.getOffsetForAlignment=(t,i)=>{let a=this.getSize(),h=this.getScrollOffset();i==="auto"&&t>=h+a&&(i="end"),i==="end"&&(t-=a);let m=this.options.horizontal?"scrollWidth":"scrollHeight",R=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-a;return Math.max(Math.min(R,t),0)},this.getOffsetForIndex=(t,i="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(i==="auto")if(a.end>=m+h-this.options.scrollPaddingEnd)i="end";else if(a.start<=m+this.options.scrollPaddingStart)i="start";else return[m,i];let T=a.start-this.options.scrollPaddingStart+(a.size-h)/2;switch(i){case"center":return[this.getOffsetForAlignment(T,i),i];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,i),i];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,i),i]}},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:i="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,i),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:i="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,i);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[$]=Ml(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:i}={})=>{this.cancelScrollToIndex(),i==="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:i})},this.getTotalSize=()=>{var h;var t;let i=this.getMeasurements(),a;return i.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(h=(t=i[i.length-1])==null?void 0:t.end)!=null?h:0:Math.max(...i.slice(-this.options.lanes).map(m=>m.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:i,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Sv=(l,o,t,i)=>{for(;l<=o;){let a=(l+o)/2|0,h=t(a);if(h<i)l=a+1;else if(h>i)o=a-1;else return a}return l>0?l-1:0};function $T({measurements:l,outerSize:o,scrollOffset:t}){let i=l.length-1,h=Sv(0,i,T=>l[T].start,t),m=h;for(;m<i&&l[m].end<t+o;)m++;return{startIndex:h,endIndex:m}}var oh=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let i={...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 Ol(i)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pl=class extends oh{constructor(o,t){super(o,{observeElementRect:Tv,observeElementOffset:xv,scrollToFn:Av,...t})}};var zT=[G`
|
5887
5887
|
:host::part(scroll) {
|
5888
5888
|
height: 100%;
|
5889
5889
|
width: 100%;
|