@momentum-design/components 0.104.3 → 0.104.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +269 -275
- package/dist/browser/index.js.map +4 -4
- package/dist/components/dialog/dialog.component.d.ts +1 -10
- package/dist/components/dialog/dialog.component.js +13 -45
- package/dist/components/menubar/menubar.component.js +1 -1
- package/dist/components/menupopover/menupopover.component.js +2 -1
- package/dist/components/popover/popover.component.d.ts +13 -5
- package/dist/components/popover/popover.component.js +25 -20
- package/dist/components/popover/popover.constants.d.ts +1 -0
- package/dist/components/popover/popover.constants.js +1 -0
- package/dist/components/popover/popover.utils.d.ts +0 -2
- package/dist/components/popover/popover.utils.js +0 -29
- package/dist/components/select/select.component.d.ts +13 -0
- package/dist/components/select/select.component.js +28 -5
- package/dist/components/select/select.styles.js +1 -0
- package/dist/custom-elements.json +2073 -1603
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +5 -5
- package/dist/utils/mixins/BackdropMixin.d.ts +14 -0
- package/dist/utils/mixins/BackdropMixin.js +99 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";(()=>{var kg=Object.create;var Kl=Object.defineProperty;var Qh=Object.getOwnPropertyDescriptor;var Cg=Object.getOwnPropertyNames;var wg=Object.getPrototypeOf,Ng=Object.prototype.hasOwnProperty;var Lg=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var Rg=(l,i,t,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of Cg(i))!Ng.call(l,a)&&a!==t&&Kl(l,a,{get:()=>i[a],enumerable:!(o=Qh(i,a))||o.enumerable});return l};var Mg=(l,i,t)=>(t=l!=null?kg(wg(l)):{},Rg(i||!l||!l.__esModule?Kl(t,"default",{value:l,enumerable:!0}):t,l));var p=(l,i,t,o)=>{for(var a=o>1?void 0:o?Qh(i,t):i,h=l.length-1,u;h>=0;h--)(u=l[h])&&(a=(o?u(i,t,a):u(a))||a);return o&&a&&Kl(i,t,a),a};var Kp=Lg((ea,Mn)=>{typeof navigator<"u"&&function(l,i){typeof ea=="object"&&typeof Mn<"u"?Mn.exports=i():typeof define=="function"&&define.amd?define(i):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=i())}(ea,function(){"use strict";var l="http://www.w3.org/2000/svg",i="",t=!1,o=-999999,a=function(r){t=!!r},h=function(){return t},u=function(r){i=r},T=function(){return i};function N(e){return document.createElement(e)}function $(e,r){var s,n=e.length,d;for(s=0;s<n;s+=1){d=e[s].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function q(e,r){return Object.getOwnPropertyDescriptor(e,r)}function K(e){function r(){}return r.prototype=e,r}var nt=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(s){this.audios.push(s)},pause:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].pause()},resume:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].resume()},setRate:function(s){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].setRate(s)},createAudio:function(s){return this.audioFactory?this.audioFactory(s):window.Howl?new window.Howl({src:[s]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(s){this.audioFactory=s},setVolume:function(s){this._volume=s,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),Q=function(){function e(s,n){var d=0,c=[],f;switch(s){case"int16":case"uint8c":f=1;break;default:f=1.1;break}for(d=0;d<n;d+=1)c.push(f);return c}function r(s,n){return s==="float32"?new Float32Array(n):s==="int16"?new Int16Array(n):s==="uint8c"?new Uint8ClampedArray(n):e(s,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function rt(e){return Array.apply(null,{length:e})}function dt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(s){return typeof s}:dt=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},dt(e)}var ut=!0,Tt=null,St=null,Ct="",Ht=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Dt=!1,zt=Math.pow,Wt=Math.sqrt,ie=Math.floor,or=Math.max,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=dt(e);if(r==="object"&&e.length){var s=rt(e.length),n,d=e.length;for(n=0;n<d;n+=1)s[n]=Math.abs(e[n]);return s}return Math.abs(e)};var ar=150,It=Math.PI/180,le=.5519;function Be(e){Dt=!!e}function Ue(e){return Dt?Math.round(e):e}function He(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function Ge(e,r,s,n){this.type=e,this.currentTime=r,this.totalTime=s,this.direction=n<0?-1:1}function za(e,r){this.type=e,this.direction=r<0?-1:1}function sh(e,r,s,n){this.type=e,this.currentLoop=s,this.totalLoops=r,this.direction=n<0?-1:1}function ah(e,r,s){this.type=e,this.firstFrame=r,this.totalFrames=s}function nh(e,r){this.type=e,this.target=r}function kv(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function Cv(e){this.type="configError",this.nativeError=e}function VT(e,r){this.type=e,this.nativeError=r}var _e=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function Dl(e,r,s){var n,d,c,f,x,v,I,L;switch(f=Math.floor(e*6),x=e*6-f,v=s*(1-r),I=s*(1-x*r),L=s*(1-(1-x)*r),f%6){case 0:n=s,d=L,c=v;break;case 1:n=I,d=s,c=v;break;case 2:n=v,d=s,c=L;break;case 3:n=v,d=I,c=s;break;case 4:n=L,d=v,c=s;break;case 5:n=s,d=v,c=I;break;default:break}return[n,d,c]}function 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 lh(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 ch(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 dh(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 BT=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]}}(),wv=function(r){ut=!!r},Nv=function(){return ut},Lv=function(r){Tt=r},Va=function(){return Tt},UT=function(r){St=r},hh=function(){return St},Ba=function(r){ar=r},xs=function(){return ar},Rv=function(r){Ct=r},HT=function(){return Ct};function bt(e){return document.createElementNS(l,e)}function Ua(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ua=function(s){return typeof s}:Ua=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ua(e)}var As=function(){var e=1,r=[],s,n,d={onmessage:function(){},postMessage:function(R){s({data:R})}},c={postMessage:function(R){d.onmessage({data:R})}};function f(E){if(window.Worker&&window.Blob&&h()){var R=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(R);return new Worker(P)}return s=E,d}function x(){n||(n=f(function(R){function P(){function z(X,S){var O,m,b=X.length,U,F,at,mt;for(m=0;m<b;m+=1)if(O=X[m],"ks"in O&&!O.completed){if(O.completed=!0,O.hasMask){var vt=O.masksProperties;for(F=vt.length,U=0;U<F;U+=1)if(vt[U].pt.k.i)k(vt[U].pt.k);else for(mt=vt[U].pt.k.length,at=0;at<mt;at+=1)vt[U].pt.k[at].s&&k(vt[U].pt.k[at].s[0]),vt[U].pt.k[at].e&&k(vt[U].pt.k[at].e[0])}O.ty===0?(O.layers=y(O.refId,S),z(O.layers,S)):O.ty===4?A(O.shapes):O.ty===5&&yt(O)}}function w(X,S){if(X){var O=0,m=X.length;for(O=0;O<m;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,m=S.length;O<m;){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,m,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,m=0;m<b;m+=1)X[S].ks.k[m].s&&k(X[S].ks.k[m].s[0]),X[S].ks.k[m].e&&k(X[S].ks.k[m].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(m){var b=m.t.d;m.t.d={k:[{s:b,t:0}]}}function O(m){var b,U=m.length;for(b=0;b<U;b+=1)m[b].ty===5&&S(m[b])}return function(m){if(D(X,m.v)&&(O(m.layers),m.assets)){var b,U=m.assets.length;for(b=0;b<U;b+=1)m.assets[b].layers&&O(m.assets[b].layers)}}}(),H=function(){var X=[4,7,99];return function(S){if(S.chars&&!D(X,S.v)){var O,m=S.chars.length;for(O=0;O<m;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(m){var b=m.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(m){var b,U=m.length;for(b=0;b<U;b+=1)m[b].ty===5&&S(m[b])}return function(m){if(D(X,m.v)&&(O(m.layers),m.assets)){var b,U=m.assets.length;for(b=0;b<U;b+=1)m.assets[b].layers&&O(m.assets[b].layers)}}}(),ft=function(){var X=[4,1,9];function S(m){var b,U=m.length,F,at;for(b=0;b<U;b+=1)if(m[b].ty==="gr")S(m[b].it);else if(m[b].ty==="fl"||m[b].ty==="st")if(m[b].c.k&&m[b].c.k[0].i)for(at=m[b].c.k.length,F=0;F<at;F+=1)m[b].c.k[F].s&&(m[b].c.k[F].s[0]/=255,m[b].c.k[F].s[1]/=255,m[b].c.k[F].s[2]/=255,m[b].c.k[F].s[3]/=255),m[b].c.k[F].e&&(m[b].c.k[F].e[0]/=255,m[b].c.k[F].e[1]/=255,m[b].c.k[F].e[2]/=255,m[b].c.k[F].e[3]/=255);else m[b].c.k[0]/=255,m[b].c.k[1]/=255,m[b].c.k[2]/=255,m[b].c.k[3]/=255}function O(m){var b,U=m.length;for(b=0;b<U;b+=1)m[b].ty===4&&S(m[b].shapes)}return function(m){if(D(X,m.v)&&(O(m.layers),m.assets)){var b,U=m.assets.length;for(b=0;b<U;b+=1)m.assets[b].layers&&O(m.assets[b].layers)}}}(),ht=function(){var X=[4,4,18];function S(m){var b,U=m.length,F,at;for(b=U-1;b>=0;b-=1)if(m[b].ty==="sh")if(m[b].ks.k.i)m[b].ks.k.c=m[b].closed;else for(at=m[b].ks.k.length,F=0;F<at;F+=1)m[b].ks.k[F].s&&(m[b].ks.k[F].s[0].c=m[b].closed),m[b].ks.k[F].e&&(m[b].ks.k[F].e[0].c=m[b].closed);else m[b].ty==="gr"&&S(m[b].it)}function O(m){var b,U,F=m.length,at,mt,vt,wt;for(U=0;U<F;U+=1){if(b=m[U],b.hasMask){var Nt=b.masksProperties;for(mt=Nt.length,at=0;at<mt;at+=1)if(Nt[at].pt.k.i)Nt[at].pt.k.c=Nt[at].cl;else for(wt=Nt[at].pt.k.length,vt=0;vt<wt;vt+=1)Nt[at].pt.k[vt].s&&(Nt[at].pt.k[vt].s[0].c=Nt[at].cl),Nt[at].pt.k[vt].e&&(Nt[at].pt.k[vt].e[0].c=Nt[at].cl)}b.ty===4&&S(b.shapes)}}return function(m){if(D(X,m.v)&&(O(m.layers),m.assets)){var b,U=m.assets.length;for(b=0;b<U;b+=1)m.assets[b].layers&&O(m.assets[b].layers)}}}();function et(X){X.__complete||(ft(X),V(X),H(X),Z(X),ht(X),z(X.layers,X.assets),w(X.chars,X.assets),X.__complete=!0)}function yt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=et,lt.checkColors=ft,lt.checkChars=H,lt.checkPathProperties=Z,lt.checkShapes=ht,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(_){var y=_.getResponseHeader("content-type");return y&&_.responseType==="json"&&y.indexOf("json")!==-1||_.response&&Ua(_.response)==="object"?_.response:_.response&&typeof _.response=="string"?JSON.parse(_.response):_.responseText?JSON.parse(_.responseText):null}function w(_,y,A,k){var D,V=new XMLHttpRequest;try{V.responseType="json"}catch{}V.onreadystatechange=function(){if(V.readyState===4)if(V.status===200)D=z(V),A(D);else try{D=z(V),A(D)}catch(H){k&&k(H)}};try{V.open(["G","E","T"].join(""),_,!0)}catch{V.open(["G","E","T"].join(""),y+"/"+_,!0)}V.send()}return{load:w}}()),R.data.type==="loadAnimation")c.assetLoader.load(R.data.path,R.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:R.data.id,payload:z,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})});else if(R.data.type==="complete"){var M=R.data.animation;c.dataManager.completeData(M),c.postMessage({id:R.data.id,payload:M,status:"success"})}else R.data.type==="loadData"&&c.assetLoader.load(R.data.path,R.data.fullPath,function(z){c.postMessage({id:R.data.id,payload:z,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})})}),n.onmessage=function(E){var R=E.data,P=R.id,M=r[P];r[P]=null,R.status==="success"?M.onComplete(R.payload):M.onError&&M.onError()})}function v(E,R){e+=1;var P="processId_"+e;return r[P]={onComplete:E,onError:R},P}function I(E,R,P){x();var M=v(R,P);n.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function L(E,R,P){x();var M=v(R,P);n.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,R,P){x();var M=v(R,P);n.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:L,completeAnimation:B}}(),Mv=function(){var e=function(){var w=N("canvas");w.width=1,w.height=1;var _=w.getContext("2d");return _.fillStyle="rgba(0,0,0,0)",_.fillRect(0,0,1,1),w}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(w,_,y){var A="";if(w.e)A=w.p;else if(_){var k=w.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),A=_+k}else A=y,A+=w.u?w.u:"",A+=w.p;return A}function d(w){var _=0,y=setInterval((function(){var A=w.getBBox();(A.width||_>500)&&(this._imageLoaded(),clearInterval(y)),_+=1}).bind(this),50)}function c(w){var _=n(w,this.assetsPath,this.path),y=bt("image");Ht?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",_),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var A={img:y,assetData:w};return A}function f(w){var _=n(w,this.assetsPath,this.path),y=N("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.src=_;var A={img:y,assetData:w};return A}function x(w){var _={assetData:w},y=n(w,this.assetsPath,this.path);return As.loadData(y,(function(A){_.img=A,this._footageLoaded()}).bind(this),(function(){_.img={},this._footageLoaded()}).bind(this)),_}function v(w,_){this.imagesLoadedCb=_;var y,A=w.length;for(y=0;y<A;y+=1)w[y].layers||(!w[y].t||w[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(w[y]))):w[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(w[y]))))}function I(w){this.path=w||""}function L(w){this.assetsPath=w||""}function B(w){for(var _=0,y=this.images.length;_<y;){if(this.images[_].assetData===w)return this.images[_].img;_+=1}return null}function E(){this.imagesLoadedCb=null,this.images.length=0}function R(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function M(w,_){w==="svg"?(this._elementHelper=_,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function z(){this._imageLoaded=r.bind(this),this._footageLoaded=s.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=x.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return z.prototype={loadAssets:v,setAssetsPath:L,setPath:I,loadedImages:R,loadedFootages:P,destroy:E,getAsset:B,createImgData:f,createImageData:c,imageLoaded:r,footageLoaded:s,setCacheType:M},z}();function ph(){}ph.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 Ov=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}}(),Pv=function(){function e(r){this.compositions.push(r)}return function(){function r(s){for(var n=0,d=this.compositions.length;n<d;){if(this.compositions[n].data&&this.compositions[n].data.nm===s)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=e,r}}(),Ss={},Dv=function(r,s){Ss[r]=s};function Fv(e){return Ss[e]}function $v(){if(Ss.canvas)return"canvas";for(var e in Ss)if(Ss[e])return e;return""}function _s(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_s=function(s){return typeof s}:_s=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_s(e)}var pt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=_e(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Nv(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Pv(),this.imagePreloader=new Mv,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()};$([ph],pt),pt.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var s=Fv(r);this.renderer=new s(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),As.loadAnimation(e.path,this.configAnimation,this.onSetupError))},pt.prototype.onSetupError=function(){this.trigger("data_failed")},pt.prototype.setupAnimation=function(e){As.completeAnimation(e,this.configAnimation)},pt.prototype.setData=function(e,r){r&&_s(r)!=="object"&&(r=JSON.parse(r));var s={wrapper:e,animationData:r},n=e.attributes;s.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",s.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:$v()||"canvas";var d=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";d==="false"?s.loop=!1:d==="true"?s.loop=!0:d!==""&&(s.loop=parseInt(d,10));var c=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;s.autoplay=c!=="false",s.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var f=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";f==="false"&&(s.prerender=!1),s.path?this.setParams(s):this.trigger("destroy")},pt.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var r=this.animationData.layers,s,n=r.length,d=e.layers,c,f=d.length;for(c=0;c<f;c+=1)for(s=0;s<n;){if(r[s].id===d[c].id){r[s]=d[c];break}s+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,s=0;s<n;s+=1)this.animationData.assets.push(e.assets[s]);this.animationData.__complete=!1,As.completeAnimation(this.animationData,this.onSegmentComplete)},pt.prototype.onSegmentComplete=function(e){this.animationData=e;var r=Va();r&&r.initExpressions(this),this.loadNextSegment()},pt.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=e.shift();this.timeCompleted=r.time*this.frameRate;var s=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,As.loadData(s,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},pt.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},pt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},pt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},pt.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Ov(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},pt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},pt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=Va();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},pt.prototype.resize=function(e,r){var s=typeof e=="number"?e:void 0,n=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(s,n)},pt.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},pt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},pt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},pt.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},pt.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},pt.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},pt.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pt.prototype.getMarkerData=function(e){for(var r,s=0;s<this.markers.length;s+=1)if(r=this.markers[s],r.payload&&r.payload.name===e)return r;return null},pt.prototype.goToAndStop=function(e,r,s){if(!(s&&this.name!==s)){var n=Number(e);if(isNaN(n)){var d=this.getMarkerData(e);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},pt.prototype.goToAndPlay=function(e,r,s){if(!(s&&this.name!==s)){var n=Number(e);if(isNaN(n)){var d=this.getMarkerData(e);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(n,r,s);this.play()}},pt.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,s=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(s=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(s=!0,r=0)):this.setCurrentRawFrameValue(r),s&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},pt.prototype.adjustSegment=function(e,r){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},pt.prototype.setSegment=function(e,r){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?s=e:this.currentRawFrame+this.firstFrame>r&&(s=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,s!==-1&&this.goToAndStop(s,!0)},pt.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),_s(e[0])==="object"){var s,n=e.length;for(s=0;s<n;s+=1)this.segments.push(e[s])}else this.segments.push(e);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},pt.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},pt.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},pt.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},pt.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},pt.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},pt.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},pt.prototype.setLoop=function(e){this.loop=e},pt.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},pt.prototype.getVolume=function(){return this.audioController.getVolume()},pt.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},pt.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},pt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},pt.prototype.getPath=function(){return this.path},pt.prototype.getAssetsPath=function(e){var r="";if(e.e)r=e.p;else if(this.assetsPath){var s=e.p;s.indexOf("images/")!==-1&&(s=s.split("/")[1]),r=this.assetsPath+s}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},pt.prototype.getAssetData=function(e){for(var r=0,s=this.assets.length;r<s;){if(e===this.assets[r].id)return this.assets[r];r+=1}return null},pt.prototype.hide=function(){this.renderer.hide()},pt.prototype.show=function(){this.renderer.show()},pt.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},pt.prototype.updateDocumentData=function(e,r,s){try{var n=this.renderer.getElementByPath(e);n.updateDocumentData(r,s)}catch{}},pt.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new Ge(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new sh(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 ah(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new nh(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 sh(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 ah(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new nh(e,this))},pt.prototype.triggerRenderFrameError=function(e){var r=new kv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},pt.prototype.triggerConfigError=function(e){var r=new Cv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var jt=function(){var e={},r=[],s=0,n=0,d=0,c=!0,f=!1;function x(S){for(var O=0,m=S.target;O<n;)r[O].animation===m&&(r.splice(O,1),O-=1,n-=1,m.isPaused||B()),O+=1}function v(S,O){if(!S)return null;for(var m=0;m<n;){if(r[m].elem===S&&r[m].elem!==null)return r[m].animation;m+=1}var b=new pt;return E(b,S),b.setData(S,O),b}function I(){var S,O=r.length,m=[];for(S=0;S<O;S+=1)m.push(r[S].animation);return m}function L(){d+=1,ft()}function B(){d-=1}function E(S,O){S.addEventListener("destroy",x),S.addEventListener("_active",L),S.addEventListener("_idle",B),r.push({elem:O,animation:S}),n+=1}function R(S){var O=new pt;return E(O,null),O.setParams(S),O}function P(S,O){var m;for(m=0;m<n;m+=1)r[m].animation.setSpeed(S,O)}function M(S,O){var m;for(m=0;m<n;m+=1)r[m].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,m;for(m=0;m<n;m+=1)r[m].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,m){var b;for(b=0;b<n;b+=1)r[b].animation.goToAndStop(S,O,m)}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,m){var b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=b.length;for(U=0;U<F;U+=1)m&&b[U].setAttribute("data-bm-type",m),v(b[U],S);if(O&&F===0){m||(m="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var mt=N("div");mt.style.width="100%",mt.style.height="100%",mt.setAttribute("data-bm-type",m),at.appendChild(mt),v(mt,S)}}function Z(){var S;for(S=0;S<n;S+=1)r[S].animation.resize()}function ft(){!f&&d&&c&&(window.requestAnimationFrame(_),c=!1)}function ht(){f=!0}function et(){f=!1,ft()}function yt(S,O){var m;for(m=0;m<n;m+=1)r[m].animation.setVolume(S,O)}function lt(S){var O;for(O=0;O<n;O+=1)r[O].animation.mute(S)}function X(S){var O;for(O=0;O<n;O+=1)r[O].animation.unmute(S)}return e.registerAnimation=v,e.loadAnimation=R,e.setSpeed=P,e.setDirection=M,e.play=z,e.pause=y,e.stop=k,e.togglePause=D,e.searchAnimations=H,e.resize=Z,e.goToAndStop=A,e.destroy=V,e.freeze=ht,e.unfreeze=et,e.setVolume=yt,e.mute=lt,e.unmute=X,e.getRegisteredAnimations=I,e}(),Is=function(){var e={};e.getBezierEasing=s;var r={};function s(_,y,A,k,D){var V=D||("bez_"+_+"_"+y+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var H=new w([_,y,A,k]);return r[V]=H,H}var n=4,d=.001,c=1e-7,f=10,x=11,v=1/(x-1),I=typeof Float32Array=="function";function L(_,y){return 1-3*y+3*_}function B(_,y){return 3*y-6*_}function E(_){return 3*_}function R(_,y,A){return((L(y,A)*_+B(y,A))*_+E(y))*_}function P(_,y,A){return 3*L(y,A)*_*_+2*B(y,A)*_+E(y)}function M(_,y,A,k,D){var V,H,Z=0;do H=y+(A-y)/2,V=R(H,k,D)-_,V>0?A=H:y=H;while(Math.abs(V)>c&&++Z<f);return H}function z(_,y,A,k){for(var D=0;D<n;++D){var V=P(y,A,k);if(V===0)return y;var H=R(y,A,k)-_;y-=H/V}return y}function w(_){this._p=_,this._mSampleValues=I?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return w.prototype={get:function(y){var A=this._p[0],k=this._p[1],D=this._p[2],V=this._p[3];return this._precomputed||this._precompute(),A===k&&D===V?y:y===0?0:y===1?1:R(this._getTForX(y),k,V)},_precompute:function(){var y=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(y!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],A=this._p[2],k=0;k<x;++k)this._mSampleValues[k]=R(k*v,y,A)},_getTForX:function(y){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,H=1,Z=x-1;H!==Z&&D[H]<=y;++H)V+=v;--H;var ft=(y-D[H])/(D[H+1]-D[H]),ht=V+ft*v,et=P(ht,A,k);return et>=d?z(y,ht,A,k):et===0?ht:M(y,V,V+v,A,k)}},e}(),mh=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=mh.double(c),d*=2),s&&s(I),c[n]=I,n+=1}return f}}(),uh=function(){function e(){return{addedLength:0,percents:Q("float32",xs()),lengths:Q("float32",xs())}}return Ha(8,e)}(),fh=function(){function e(){return{lengths:[],totalLength:0}}function r(s){var n,d=s.lengths.length;for(n=0;n<d;n+=1)uh.release(s.lengths[n]);s.lengths.length=0}return Ha(8,e,r)}();function zv(){var e=Math;function r(E,R,P,M,z,w){var _=E*M+R*z+P*w-z*M-w*E-P*R;return _>-.001&&_<.001}function s(E,R,P,M,z,w,_,y,A){if(P===0&&w===0&&A===0)return r(E,R,M,z,_,y);var k=e.sqrt(e.pow(M-E,2)+e.pow(z-R,2)+e.pow(w-P,2)),D=e.sqrt(e.pow(_-E,2)+e.pow(y-R,2)+e.pow(A-P,2)),V=e.sqrt(e.pow(_-M,2)+e.pow(y-z,2)+e.pow(A-w,2)),H;return k>D?k>V?H=k-D-V:H=V-D-k:V>D?H=V-D-k:H=D-k-V,H>-1e-4&&H<1e-4}var n=function(){return function(E,R,P,M){var z=xs(),w,_,y,A,k,D=0,V,H=[],Z=[],ft=uh.newElement();for(y=P.length,w=0;w<z;w+=1){for(k=w/(z-1),V=0,_=0;_<y;_+=1)A=zt(1-k,3)*E[_]+3*zt(1-k,2)*k*P[_]+3*(1-k)*zt(k,2)*M[_]+zt(k,3)*R[_],H[_]=A,Z[_]!==null&&(V+=zt(H[_]-Z[_],2)),Z[_]=H[_];V&&(V=Wt(V),D+=V),ft.percents[w]=k,ft.lengths[w]=D}return ft.addedLength=D,ft}}();function d(E){var R=fh.newElement(),P=E.c,M=E.v,z=E.o,w=E.i,_,y=E._length,A=R.lengths,k=0;for(_=0;_<y-1;_+=1)A[_]=n(M[_],M[_+1],z[_],w[_+1]),k+=A[_].addedLength;return P&&y&&(A[_]=n(M[_],M[0],z[_],w[0]),k+=A[_].addedLength),R.totalLength=k,R}function c(E){this.segmentLength=0,this.points=new Array(E)}function f(E,R){this.partialLength=E,this.point=R}var x=function(){var E={};return function(R,P,M,z){var w=(R[0]+"_"+R[1]+"_"+P[0]+"_"+P[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!E[w]){var _=xs(),y,A,k,D,V,H=0,Z,ft,ht=null;R.length===2&&(R[0]!==P[0]||R[1]!==P[1])&&r(R[0],R[1],P[0],P[1],R[0]+M[0],R[1]+M[1])&&r(R[0],R[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(_=2);var et=new c(_);for(k=M.length,y=0;y<_;y+=1){for(ft=rt(k),V=y/(_-1),Z=0,A=0;A<k;A+=1)D=zt(1-V,3)*R[A]+3*zt(1-V,2)*V*(R[A]+M[A])+3*(1-V)*zt(V,2)*(P[A]+z[A])+zt(V,3)*P[A],ft[A]=D,ht!==null&&(Z+=zt(ft[A]-ht[A],2));Z=Wt(Z),H+=Z,et.points[y]=new f(Z,ft),ht=ft}et.segmentLength=H,E[w]=et}return E[w]}}();function v(E,R){var P=R.percents,M=R.lengths,z=P.length,w=ie((z-1)*E),_=E*R.addedLength,y=0;if(w===z-1||w===0||_===M[w])return P[w];for(var A=M[w]>_?-1:1,k=!0;k;)if(M[w]<=_&&M[w+1]>_?(y=(_-M[w])/(M[w+1]-M[w]),k=!1):w+=A,w<0||w>=z-1){if(w===z-1)return P[w];k=!1}return P[w]+(P[w+1]-P[w])*y}function I(E,R,P,M,z,w){var _=v(z,w),y=1-_,A=e.round((y*y*y*E[0]+(_*y*y+y*_*y+y*y*_)*P[0]+(_*_*y+y*_*_+_*y*_)*M[0]+_*_*_*R[0])*1e3)/1e3,k=e.round((y*y*y*E[1]+(_*y*y+y*_*y+y*y*_)*P[1]+(_*_*y+y*_*_+_*y*_)*M[1]+_*_*_*R[1])*1e3)/1e3;return[A,k]}var L=Q("float32",8);function B(E,R,P,M,z,w,_){z<0?z=0:z>1&&(z=1);var y=v(z,_);w=w>1?1:w;var A=v(w,_),k,D=E.length,V=1-y,H=1-A,Z=V*V*V,ft=y*V*V*3,ht=y*y*V*3,et=y*y*y,yt=V*V*H,lt=y*V*H+V*y*H+V*V*A,X=y*y*H+V*y*A+y*V*A,S=y*y*A,O=V*H*H,m=y*H*H+V*A*H+V*H*A,b=y*A*H+V*A*A+y*H*A,U=y*A*A,F=H*H*H,at=A*H*H+H*A*H+H*H*A,mt=A*A*H+H*A*A+A*H*A,vt=A*A*A;for(k=0;k<D;k+=1)L[k*4]=e.round((Z*E[k]+ft*P[k]+ht*M[k]+et*R[k])*1e3)/1e3,L[k*4+1]=e.round((yt*E[k]+lt*P[k]+X*M[k]+S*R[k])*1e3)/1e3,L[k*4+2]=e.round((O*E[k]+m*P[k]+b*M[k]+U*R[k])*1e3)/1e3,L[k*4+3]=e.round((F*E[k]+at*P[k]+mt*M[k]+vt*R[k])*1e3)/1e3;return L}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:s}}var yr=zv(),Oi=o,vh=Math.abs;function gh(e,r){var s=this.offsetTime,n;this.propType==="multidimensional"&&(n=Q("float32",this.pv.length));for(var d=r.lastIndex,c=d,f=this.keyframes.length-1,x=!0,v,I,L;x;){if(v=this.keyframes[c],I=this.keyframes[c+1],c===f-1&&e>=I.t-s){v.h&&(v=I),d=0;break}if(I.t-s>e){d=c;break}c<f-1?c+=1:(d=0,x=!1)}L=this.keyframesMetadata[c]||{};var B,E,R,P,M,z,w=I.t-s,_=v.t-s,y;if(v.to){L.bezierData||(L.bezierData=yr.buildBezierData(v.s,I.s||v.e,v.to,v.ti));var A=L.bezierData;if(e>=w||e<_){var k=e>=w?A.points.length-1:0;for(E=A.points[k].point.length,B=0;B<E;B+=1)n[B]=A.points[k].point[B]}else{L.__fnct?z=L.__fnct:(z=Is.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,L.__fnct=z),R=z((e-_)/(w-_));var D=A.segmentLength*R,V,H=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastPoint:0,x=!0,P=A.points.length;x;){if(H+=A.points[M].partialLength,D===0||R===0||M===A.points.length-1){for(E=A.points[M].point.length,B=0;B<E;B+=1)n[B]=A.points[M].point[B];break}else if(D>=H&&D<H+A.points[M+1].partialLength){for(V=(D-H)/A.points[M+1].partialLength,E=A.points[M].point.length,B=0;B<E;B+=1)n[B]=A.points[M].point[B]+(A.points[M+1].point[B]-A.points[M].point[B])*V;break}M<P-1?M+=1:x=!1}r._lastPoint=M,r._lastAddedLength=H-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ft,ht,et,yt;if(f=v.s.length,y=I.s||v.e,this.sh&&v.h!==1)if(e>=w)n[0]=y[0],n[1]=y[1],n[2]=y[2];else if(e<=_)n[0]=v.s[0],n[1]=v.s[1],n[2]=v.s[2];else{var lt=bh(v.s),X=bh(y),S=(e-_)/(w-_);Bv(n,Vv(lt,X,S))}else for(c=0;c<f;c+=1)v.h!==1&&(e>=w?R=1:e<_?R=0:(v.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[c]?z=L.__fnct[c]:(Z=v.o.x[c]===void 0?v.o.x[0]:v.o.x[c],ft=v.o.y[c]===void 0?v.o.y[0]:v.o.y[c],ht=v.i.x[c]===void 0?v.i.x[0]:v.i.x[c],et=v.i.y[c]===void 0?v.i.y[0]:v.i.y[c],z=Is.getBezierEasing(Z,ft,ht,et).get,L.__fnct[c]=z)):L.__fnct?z=L.__fnct:(Z=v.o.x,ft=v.o.y,ht=v.i.x,et=v.i.y,z=Is.getBezierEasing(Z,ft,ht,et).get,v.keyframeMetadata=z),R=z((e-_)/(w-_)))),y=I.s||v.e,yt=v.h===1?v.s[c]:v.s[c]+(y[c]-v.s[c])*R,this.propType==="multidimensional"?n[c]=yt:n=yt}return r.lastIndex=d,n}function Vv(e,r,s){var n=[],d=e[0],c=e[1],f=e[2],x=e[3],v=r[0],I=r[1],L=r[2],B=r[3],E,R,P,M,z;return R=d*v+c*I+f*L+x*B,R<0&&(R=-R,v=-v,I=-I,L=-L,B=-B),1-R>1e-6?(E=Math.acos(R),P=Math.sin(E),M=Math.sin((1-s)*E)/P,z=Math.sin(s*E)/P):(M=1-s,z=s),n[0]=M*d+z*v,n[1]=M*c+z*I,n[2]=M*f+z*L,n[3]=M*x+z*B,n}function Bv(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 bh(e){var r=e[0]*It,s=e[1]*It,n=e[2]*It,d=Math.cos(r/2),c=Math.cos(s/2),f=Math.cos(n/2),x=Math.sin(r/2),v=Math.sin(s/2),I=Math.sin(n/2),L=d*c*f-x*v*I,B=x*v*f+d*c*I,E=x*c*f+d*v*I,R=d*v*f-x*c*I;return[B,E,R,L]}function yh(){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,vh(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,vh(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 Uv(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 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=Ga,this.addEffect=Wa}function Gv(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=gh,this.effectsSequence=[yh.bind(this)],this.addEffect=Wa}function Yv(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=[yh.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=gh,this.frameId=-1;var L=r.k[0].s.length;for(this.v=Q("float32",L),this.pv=Q("float32",L),d=0;d<L;d+=1)this.v[d]=Oi,this.pv[d]=Oi;this._caching={lastFrame:Oi,lastIndex:0,value:Q("float32",L)},this.addEffect=Wa}var it=function(){function e(s,n,d,c,f){n.sid&&(n=s.globalData.slotManager.getProp(n));var x;if(!n.k.length)x=new Uv(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 Gv(s,n,c,f);break;case 1:x=new Yv(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 Co=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=mh.double(n),s*=2),n[r]=f,r+=1}return e}(),ja=function(){var e=-999999;function r(w,_,y){var A=y.lastIndex,k,D,V,H,Z,ft,ht,et,yt,lt=this.keyframes;if(w<lt[0].t-this.offsetTime)k=lt[0].s[0],V=!0,A=0;else if(w>=lt[lt.length-1].t-this.offsetTime)k=lt[lt.length-1].s?lt[lt.length-1].s[0]:lt[lt.length-2].e[0],V=!0;else{for(var X=A,S=lt.length-1,O=!0,m,b,U;O&&(m=lt[X],b=lt[X+1],!(b.t-this.offsetTime>w));)X<S-1?X+=1:O=!1;if(U=this.keyframesMetadata[X]||{},V=m.h===1,A=X,!V){if(w>=b.t-this.offsetTime)et=1;else if(w<m.t-this.offsetTime)et=0;else{var F;U.__fnct?F=U.__fnct:(F=Is.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,U.__fnct=F),et=F((w-(m.t-this.offsetTime))/(b.t-this.offsetTime-(m.t-this.offsetTime)))}D=b.s?b.s[0]:m.e[0]}k=m.s[0]}for(ft=_._length,ht=k.i[0].length,y.lastIndex=A,H=0;H<ft;H+=1)for(Z=0;Z<ht;Z+=1)yt=V?k.i[H][Z]:k.i[H][Z]+(D.i[H][Z]-k.i[H][Z])*et,_.i[H][Z]=yt,yt=V?k.o[H][Z]:k.o[H][Z]+(D.o[H][Z]-k.o[H][Z])*et,_.o[H][Z]=yt,yt=V?k.v[H][Z]:k.v[H][Z]+(D.v[H][Z]-k.v[H][Z])*et,_.v[H][Z]=yt}function s(){var w=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==e&&(A<_&&w<_||A>y&&w>y)||(this._caching.lastIndex=A<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching)),this._caching.lastFrame=w,this.pv}function n(){this.paths=this.localShapeCollection}function d(w,_){if(w._length!==_._length||w.c!==_.c)return!1;var y,A=w._length;for(y=0;y<A;y+=1)if(w.v[y][0]!==_.v[y][0]||w.v[y][1]!==_.v[y][1]||w.o[y][0]!==_.o[y][0]||w.o[y][1]!==_.o[y][1]||w.i[y][0]!==_.i[y][0]||w.i[y][1]!==_.i[y][1])return!1;return!0}function c(w){d(this.v,w)||(this.v=ce.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function f(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var w;this.kf?w=this.pv:this.data.ks?w=this.data.ks.k:w=this.data.pt.k;var _,y=this.effectsSequence.length;for(_=0;_<y;_+=1)w=this.effectsSequence[_](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(w,_,y){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=_,this.k=!1,this.kf=!1,this._mdf=!1;var A=y===3?_.pt.k:_.ks.k;this.v=ce.clone(A),this.pv=ce.clone(this.v),this.localShapeCollection=Co.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=Co.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[s.bind(this)]}I.prototype.getValue=f,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=v;var L=function(){var w=le;function _(y,A){this.v=ce.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Co.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=Co.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return w.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var y=Math.floor(this.pt.v)*2,A=Math.PI*2/y,k=!0,D=this.or.v,V=this.ir.v,H=this.os.v,Z=this.is.v,ft=2*Math.PI*D/(y*2),ht=2*Math.PI*V/(y*2),et,yt,lt,X,S=-Math.PI/2;S+=this.r.v;var O=this.data.d===3?-1:1;for(this.v._length=0,et=0;et<y;et+=1){yt=k?D:V,lt=k?H:Z,X=k?ft:ht;var m=yt*Math.cos(S),b=yt*Math.sin(S),U=m===0&&b===0?0:b/Math.sqrt(m*m+b*b),F=m===0&&b===0?0:-m/Math.sqrt(m*m+b*b);m+=+this.p.v[0],b+=+this.p.v[1],this.v.setTripleAt(m,b,m-U*X*lt*O,b-F*X*lt*O,m+U*X*lt*O,b+F*X*lt*O,et,!0),k=!k,S+=A*O}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),A=Math.PI*2/y,k=this.or.v,D=this.os.v,V=2*Math.PI*k/(y*4),H,Z=-Math.PI*.5,ft=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,H=0;H<y;H+=1){var ht=k*Math.cos(Z),et=k*Math.sin(Z),yt=ht===0&&et===0?0:et/Math.sqrt(ht*ht+et*et),lt=ht===0&&et===0?0:-ht/Math.sqrt(ht*ht+et*et);ht+=+this.p.v[0],et+=+this.p.v[1],this.v.setTripleAt(ht,et,ht-yt*V*D*ft,et-lt*V*D*ft,ht+yt*V*D*ft,et+lt*V*D*ft,H,!0),Z+=A*ft}this.paths.length=0,this.paths[0]=this.v}},$([oe],w),w}(),E=function(){function w(_,y){this.v=ce.newElement(),this.v.c=!0,this.localShapeCollection=Co.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 R(w,_,y){var A;if(y===3||y===4){var k=y===3?_.pt:_.ks,D=k.k;D.length?A=new I(w,_,y):A=new x(w,_,y)}else y===5?A=new E(w,_):y===6?A=new L(w,_):y===7&&(A=new B(w,_));return A.k&&w.addDynamicProperty(A),A}function P(){return x}function M(){return I}var z={};return z.getShapeProp=R,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var de=function(){var e=Math.cos,r=Math.sin,s=Math.tan,n=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(m){if(m===0)return this;var b=e(m),U=r(m);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function f(m){if(m===0)return this;var b=e(m),U=r(m);return this._t(1,0,0,0,0,b,-U,0,0,U,b,0,0,0,0,1)}function x(m){if(m===0)return this;var b=e(m),U=r(m);return this._t(b,0,U,0,0,1,0,0,-U,0,b,0,0,0,0,1)}function v(m){if(m===0)return this;var b=e(m),U=r(m);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function I(m,b){return this._t(1,b,m,1,0,0)}function L(m,b){return this.shear(s(m),s(b))}function B(m,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(m),1,0,0,0,0,1,0,0,0,0,1)._t(U,-F,0,0,F,U,0,0,0,0,1,0,0,0,0,1)}function E(m,b,U){return!U&&U!==0&&(U=1),m===1&&b===1&&U===1?this:this._t(m,0,0,0,0,b,0,0,0,0,U,0,0,0,0,1)}function R(m,b,U,F,at,mt,vt,wt,Nt,qt,ke,Tr,Ce,se,Fe,Mt){return this.props[0]=m,this.props[1]=b,this.props[2]=U,this.props[3]=F,this.props[4]=at,this.props[5]=mt,this.props[6]=vt,this.props[7]=wt,this.props[8]=Nt,this.props[9]=qt,this.props[10]=ke,this.props[11]=Tr,this.props[12]=Ce,this.props[13]=se,this.props[14]=Fe,this.props[15]=Mt,this}function P(m,b,U){return U=U||0,m!==0||b!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,m,b,U,1):this}function M(m,b,U,F,at,mt,vt,wt,Nt,qt,ke,Tr,Ce,se,Fe,Mt){var ct=this.props;if(m===1&&b===0&&U===0&&F===0&&at===0&&mt===1&&vt===0&&wt===0&&Nt===0&&qt===0&&ke===1&&Tr===0)return ct[12]=ct[12]*m+ct[15]*Ce,ct[13]=ct[13]*mt+ct[15]*se,ct[14]=ct[14]*ke+ct[15]*Fe,ct[15]*=Mt,this._identityCalculated=!1,this;var Dr=ct[0],ui=ct[1],Fr=ct[2],xr=ct[3],$r=ct[4],zr=ct[5],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*m+ui*at+Fr*Nt+xr*Ce,ct[1]=Dr*b+ui*mt+Fr*qt+xr*se,ct[2]=Dr*U+ui*vt+Fr*ke+xr*Fe,ct[3]=Dr*F+ui*wt+Fr*Tr+xr*Mt,ct[4]=$r*m+zr*at+we*Nt+fi*Ce,ct[5]=$r*b+zr*mt+we*qt+fi*se,ct[6]=$r*U+zr*vt+we*ke+fi*Fe,ct[7]=$r*F+zr*wt+we*Tr+fi*Mt,ct[8]=vi*m+lr*at+gi*Nt+cr*Ce,ct[9]=vi*b+lr*mt+gi*qt+cr*se,ct[10]=vi*U+lr*vt+gi*ke+cr*Fe,ct[11]=vi*F+lr*wt+gi*Tr+cr*Mt,ct[12]=zi*m+rn*at+on*Nt+sn*Ce,ct[13]=zi*b+rn*mt+on*qt+sn*se,ct[14]=zi*U+rn*vt+on*ke+sn*Fe,ct[15]=zi*F+rn*wt+on*Tr+sn*Mt,this._identityCalculated=!1,this}function z(m){var b=m.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 _(m){for(var b=0;b<16;){if(m.props[b]!==this.props[b])return!1;b+=1}return!0}function y(m){var b;for(b=0;b<16;b+=1)m.props[b]=this.props[b];return m}function A(m){var b;for(b=0;b<16;b+=1)this.props[b]=m[b]}function k(m,b,U){return{x:m*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],y:m*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],z:m*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}}function D(m,b,U){return m*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12]}function V(m,b,U){return m*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13]}function H(m,b,U){return m*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}function Z(){var m=this.props[0]*this.props[5]-this.props[1]*this.props[4],b=this.props[5]/m,U=-this.props[1]/m,F=-this.props[4]/m,at=this.props[0]/m,mt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/m,vt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/m,wt=new de;return wt.props[0]=b,wt.props[1]=U,wt.props[4]=F,wt.props[5]=at,wt.props[12]=mt,wt.props[13]=vt,wt}function ft(m){var b=this.getInverseMatrix();return b.applyToPointArray(m[0],m[1],m[2]||0)}function ht(m){var b,U=m.length,F=[];for(b=0;b<U;b+=1)F[b]=ft(m[b]);return F}function et(m,b,U){var F=Q("float32",6);if(this.isIdentity())F[0]=m[0],F[1]=m[1],F[2]=b[0],F[3]=b[1],F[4]=U[0],F[5]=U[1];else{var at=this.props[0],mt=this.props[1],vt=this.props[4],wt=this.props[5],Nt=this.props[12],qt=this.props[13];F[0]=m[0]*at+m[1]*vt+Nt,F[1]=m[0]*mt+m[1]*wt+qt,F[2]=b[0]*at+b[1]*vt+Nt,F[3]=b[0]*mt+b[1]*wt+qt,F[4]=U[0]*at+U[1]*vt+Nt,F[5]=U[0]*mt+U[1]*wt+qt}return F}function yt(m,b,U){var F;return this.isIdentity()?F=[m,b,U]:F=[m*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],m*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],m*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]],F}function lt(m,b){if(this.isIdentity())return m+","+b;var U=this.props;return Math.round((m*U[0]+b*U[4]+U[12])*100)/100+","+Math.round((m*U[1]+b*U[5]+U[13])*100)/100}function X(){for(var m=0,b=this.props,U="matrix3d(",F=1e4;m<16;)U+=n(b[m]*F)/F,U+=m===15?")":",",m+=1;return U}function S(m){var b=1e4;return m<1e-6&&m>0||m>-1e-6&&m<0?n(m*b)/b:m}function O(){var m=this.props,b=S(m[0]),U=S(m[1]),F=S(m[4]),at=S(m[5]),mt=S(m[12]),vt=S(m[13]);return"matrix("+b+","+U+","+F+","+at+","+mt+","+vt+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=f,this.rotateY=x,this.rotateZ=v,this.skew=L,this.skewFromAxis=B,this.shear=I,this.scale=E,this.setTransform=R,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=H,this.applyToPointArray=yt,this.applyToTriplePoints=et,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=_,this.inversePoints=ht,this.inversePoint=ft,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=Q("float32",16),this.reset()}}();function qa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qa=function(s){return typeof s}:qa=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},qa(e)}var Rt={},Ka="__[STANDALONE]__",Eh="__[ANIMATIONDATA]__",Th="";function Wv(e){u(e)}function xh(){Ka===!0?jt.searchAnimations(Eh,Ka,Th):jt.searchAnimations()}function jv(e){wv(e)}function qv(e){Rv(e)}function Kv(e){return Ka===!0&&(e.animationData=JSON.parse(Eh)),jt.loadAnimation(e)}function Xv(e){if(typeof e=="string")switch(e){case"high":Ba(200);break;default:case"medium":Ba(50);break;case"low":Ba(10);break}else!isNaN(e)&&e>1&&Ba(e);xs()>=50?Be(!1):Be(!0)}function Zv(){return typeof navigator<"u"}function Qv(e,r){e==="expressions"&&Lv(r)}function Jv(e){switch(e){case"propertyFactory":return it;case"shapePropertyFactory":return ja;case"matrix":return de;default:return null}}Rt.play=jt.play,Rt.pause=jt.pause,Rt.setLocationHref=Wv,Rt.togglePause=jt.togglePause,Rt.setSpeed=jt.setSpeed,Rt.setDirection=jt.setDirection,Rt.stop=jt.stop,Rt.searchAnimations=xh,Rt.registerAnimation=jt.registerAnimation,Rt.loadAnimation=Kv,Rt.setSubframeRendering=jv,Rt.resize=jt.resize,Rt.goToAndStop=jt.goToAndStop,Rt.destroy=jt.destroy,Rt.setQuality=Xv,Rt.inBrowser=Zv,Rt.installPlugin=Qv,Rt.freeze=jt.freeze,Rt.unfreeze=jt.unfreeze,Rt.setVolume=jt.setVolume,Rt.mute=jt.mute,Rt.unmute=jt.unmute,Rt.getRegisteredAnimations=jt.getRegisteredAnimations,Rt.useWebWorker=a,Rt.setIDPrefix=qv,Rt.__getFactory=Jv,Rt.version="5.12.2";function tg(){document.readyState==="complete"&&(clearInterval(ig),xh())}function eg(e){for(var r=Ah.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 Ah="";if(Ka){var Sh=document.getElementsByTagName("script"),rg=Sh.length-1,_h=Sh[rg]||{src:""};Ah=_h.src?_h.src.replace(/^[^\?]+\??/,""):"",Th=eg("renderer")}var ig=setInterval(tg,100);try{!((typeof ea>"u"?"undefined":qa(ea))==="object"&&typeof Mn<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Rt)}catch{}var li=function(){var e={},r={};e.registerModifier=s,e.getModifier=n;function s(d,c){r[d]||(r[d]=c)}function n(d,c,f){return new r[d](c,f)}return e}();function Ye(){}Ye.prototype.initModifierProperties=function(){},Ye.prototype.addShapeToModifier=function(){},Ye.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:Co.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},Ye.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),this.frameId=o,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ye.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([oe],Ye);function nr(){}$([Ye],nr),nr.prototype.initModifierProperties=function(e,r){this.s=it.getProp(e,r.s,0,.01,this),this.e=it.getProp(e,r.e,0,.01,this),this.o=it.getProp(e,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},nr.prototype.addShapeToModifier=function(e){e.pathsData=[]},nr.prototype.calculateShapeEdges=function(e,r,s,n,d){var c=[];r<=1?c.push({s:e,e:r}):e>=1?c.push({s:e-1,e:r-1}):(c.push({s:e,e:1}),c.push({s:0,e:r-1}));var f=[],x,v=c.length,I;for(x=0;x<v;x+=1)if(I=c[x],!(I.e*d<n||I.s*d>n+s)){var L,B;I.s*d<=n?L=0:L=(I.s*d-n)/s,I.e*d>=n+s?B=1:B=(I.e*d-n)/s,f.push([L,B])}return f.length||f.push([0,0]),f},nr.prototype.releasePathsData=function(e){var r,s=e.length;for(r=0;r<s;r+=1)fh.release(e[r]);return e.length=0,e},nr.prototype.processShapes=function(e){var r,s;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?r=1+n:this.s.v<0?r=0+n:r=this.s.v+n,this.e.v>1?s=1+n:this.e.v<0?s=0+n:s=this.e.v+n,r>s){var d=r;r=s,s=d}r=Math.round(r*1e4)*1e-4,s=Math.round(s*1e4)*1e-4,this.sValue=r,this.eValue=s}else r=this.sValue,s=this.eValue;var c,f,x=this.shapes.length,v,I,L,B,E,R=0;if(s===r)for(f=0;f<x;f+=1)this.shapes[f].localShapeCollection.releaseShapes(),this.shapes[f].shape._mdf=!0,this.shapes[f].shape.paths=this.shapes[f].localShapeCollection,this._mdf&&(this.shapes[f].pathsData.length=0);else if(s===1&&r===0||s===0&&r===1){if(this._mdf)for(f=0;f<x;f+=1)this.shapes[f].pathsData.length=0,this.shapes[f].shape._mdf=!0}else{var P=[],M,z;for(f=0;f<x;f+=1)if(M=this.shapes[f],!M.shape._mdf&&!this._mdf&&!e&&this.m!==2)M.shape.paths=M.localShapeCollection;else{if(c=M.shape.paths,I=c._length,E=0,!M.shape._mdf&&M.pathsData.length)E=M.totalShapeLength;else{for(L=this.releasePathsData(M.pathsData),v=0;v<I;v+=1)B=yr.getSegmentsLength(c.shapes[v]),L.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=L}R+=E,M.shape._mdf=!0}var w=r,_=s,y=0,A;for(f=x-1;f>=0;f-=1)if(M=this.shapes[f],M.shape._mdf){for(z=M.localShapeCollection,z.releaseShapes(),this.m===2&&x>1?(A=this.calculateShapeEdges(r,s,M.totalShapeLength,y,R),y+=M.totalShapeLength):A=[[w,_]],I=A.length,v=0;v<I;v+=1){w=A[v][0],_=A[v][1],P.length=0,_<=1?P.push({s:M.totalShapeLength*w,e:M.totalShapeLength*_}):w>=1?P.push({s:M.totalShapeLength*(w-1),e:M.totalShapeLength*(_-1)}):(P.push({s:M.totalShapeLength*w,e:M.totalShapeLength}),P.push({s:0,e:M.totalShapeLength*(_-1)}));var k=this.addShapes(M,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var D=M.shape.paths.shapes[M.shape.paths._length-1];if(D.c){var V=k.pop();this.addPaths(k,z),k=this.addShapes(M,P[1],V)}else this.addPaths(k,z),k=this.addShapes(M,P[1])}this.addPaths(k,z)}}M.shape.paths=z}}},nr.prototype.addPaths=function(e,r){var s,n=e.length;for(s=0;s<n;s+=1)r.addShape(e[s])},nr.prototype.addSegment=function(e,r,s,n,d,c,f){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(s[0],s[1],"i",c+1),f&&d.setXYAt(e[0],e[1],"v",c),d.setXYAt(n[0],n[1],"v",c+1)},nr.prototype.addSegmentFromArray=function(e,r,s,n){r.setXYAt(e[1],e[5],"o",s),r.setXYAt(e[2],e[6],"i",s+1),n&&r.setXYAt(e[0],e[4],"v",s),r.setXYAt(e[3],e[7],"v",s+1)},nr.prototype.addShapes=function(e,r,s){var n=e.pathsData,d=e.shape.paths.shapes,c,f=e.shape.paths._length,x,v,I=0,L,B,E,R,P=[],M,z=!0;for(s?(B=s._length,M=s._length):(s=ce.newElement(),B=0,M=0),P.push(s),c=0;c<f;c+=1){for(E=n[c].lengths,s.c=d[c].c,v=d[c].c?E.length:E.length+1,x=1;x<v;x+=1)if(L=E[x-1],I+L.addedLength<r.s)I+=L.addedLength,s.c=!1;else if(I>r.e){s.c=!1;break}else r.s<=I&&r.e>=I+L.addedLength?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[x],d[c].v[x],s,B,z),z=!1):(R=yr.getNewSegment(d[c].v[x-1],d[c].v[x],d[c].o[x-1],d[c].i[x],(r.s-I)/L.addedLength,(r.e-I)/L.addedLength,E[x-1]),this.addSegmentFromArray(R,s,B,z),z=!1,s.c=!1),I+=L.addedLength,B+=1;if(d[c].c&&E.length){if(L=E[x-1],I<=r.e){var w=E[x-1].addedLength;r.s<=I&&r.e>=I+w?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[0],d[c].v[0],s,B,z),z=!1):(R=yr.getNewSegment(d[c].v[x-1],d[c].v[0],d[c].o[x-1],d[c].i[0],(r.s-I)/w,(r.e-I)/w,E[x-1]),this.addSegmentFromArray(R,s,B,z),z=!1,s.c=!1)}else s.c=!1;I+=L.addedLength,B+=1}if(s._length&&(s.setXYAt(s.v[M][0],s.v[M][1],"i",M),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),I>r.e)break;c<f-1&&(s=ce.newElement(),z=!0,P.push(s),B=0)}return P};function ks(){}$([Ye],ks),ks.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ks.prototype.processPath=function(e,r){var s=r/100,n=[0,0],d=e._length,c=0;for(c=0;c<d;c+=1)n[0]+=e.v[c][0],n[1]+=e.v[c][1];n[0]/=d,n[1]/=d;var f=ce.newElement();f.c=e.c;var x,v,I,L,B,E;for(c=0;c<d;c+=1)x=e.v[c][0]+(n[0]-e.v[c][0])*s,v=e.v[c][1]+(n[1]-e.v[c][1])*s,I=e.o[c][0]+(n[0]-e.o[c][0])*-s,L=e.o[c][1]+(n[1]-e.o[c][1])*-s,B=e.i[c][0]+(n[0]-e.i[c][0])*-s,E=e.i[c][1]+(n[1]-e.i[c][1])*-s,f.setTripleAt(x,v,I,L,B,E,c);return f},ks.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.amount.v;if(f!==0){var x,v;for(s=0;s<n;s+=1){if(x=this.shapes[s],v=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],f));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var 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 L,B;if(I=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/I,0),B=this.p.getValueAtTime(this.p.keyframes[0].t/I,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/I,0),B=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/I,0)):(L=this.p.pv,B=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/I,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],B=[];var E=this.px,R=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(L[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),L[1]=R.getValueAtTime((R.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=R.getValueAtTime(R.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(L[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),L[1]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/I,0)):(L=[E.pv,R.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/I,R.offsetTime))}else B=e,L=B;this.v.rotate(-Math.atan2(L[1]-B[1],L[0]-B[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function d(){}function c(v){this._addDynamicProperty(v),this.elem.addDynamicProperty(v),this._isDirty=!0}function f(v,I,L){if(this.elem=v,this.frameId=-1,this.propType="transform",this.data=I,this.v=new de,this.pre=new de,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||v),I.p&&I.p.s?(this.px=it.getProp(v,I.p.x,0,0,this),this.py=it.getProp(v,I.p.y,0,0,this),I.p.z&&(this.pz=it.getProp(v,I.p.z,0,0,this))):this.p=it.getProp(v,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=it.getProp(v,I.rx,0,It,this),this.ry=it.getProp(v,I.ry,0,It,this),this.rz=it.getProp(v,I.rz,0,It,this),I.or.k[0].ti){var B,E=I.or.k.length;for(B=0;B<E;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=it.getProp(v,I.or,1,It,this),this.or.sh=!0}else this.r=it.getProp(v,I.r||{k:0},0,It,this);I.sk&&(this.sk=it.getProp(v,I.sk,0,It,this),this.sa=it.getProp(v,I.sa,0,It,this)),this.a=it.getProp(v,I.a||{k:[0,0,0]},1,0,this),this.s=it.getProp(v,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=it.getProp(v,I.o,0,.01,v):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}f.prototype={applyToMatrix:r,getValue:s,precalculateMatrix:n,autoOrient:d},$([oe],f),f.prototype.addDynamicProperty=c,f.prototype._addDynamicProperty=oe.prototype.addDynamicProperty;function x(v,I,L){return new f(v,I,L)}return{getTransformProperty:x}}();function Er(){}$([Ye],Er),Er.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=it.getProp(e,r.c,0,null,this),this.o=it.getProp(e,r.o,0,null,this),this.tr=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 L=this.elemsData[n].it,B=L[L.length-1];B.transform.op.v!==0?(B.transform.op._mdf=!0,B.transform.op.v=0):B.transform.op._mdf=!1}c+=1}this._currentCopies=x;var E=this.o.v,R=E%1,P=E>0?Math.floor(E):Math.ceil(E),M=this.pMatrix.props,z=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(E>0){for(;_<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,R,!1),_+=R)}else if(E<0){for(;_>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-R,!0),_-=R)}n=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var y,A;c;){if(r=this.elemsData[n].it,s=r[r.length-1].transform.mProps.v.props,A=s.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),_!==0){for((n!==0&&d===1||n!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),y=0;y<A;y+=1)s[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<A;y+=1)s[y]=this.matrix.props[y];_+=1,c-=1,n+=d}}else for(c=this._currentCopies,n=0,d=1;c;)r=this.elemsData[n].it,s=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,c-=1,n+=d;return f},Er.prototype.addShape=function(){};function Cs(){}$([Ye],Cs),Cs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=it.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Cs.prototype.processPath=function(e,r){var s=ce.newElement();s.c=e.c;var n,d=e._length,c,f,x,v,I,L,B=0,E,R,P,M,z,w;for(n=0;n<d;n+=1)c=e.v[n],x=e.o[n],f=e.i[n],c[0]===x[0]&&c[1]===x[1]&&c[0]===f[0]&&c[1]===f[1]?(n===0||n===d-1)&&!e.c?(s.setTripleAt(c[0],c[1],x[0],x[1],f[0],f[1],B),B+=1):(n===0?v=e.v[d-1]:v=e.v[n-1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),L=I?Math.min(I/2,r)/I:0,z=c[0]+(v[0]-c[0])*L,E=z,w=c[1]-(c[1]-v[1])*L,R=w,P=E-(E-c[0])*le,M=R-(R-c[1])*le,s.setTripleAt(E,R,P,M,z,w,B),B+=1,n===d-1?v=e.v[0]:v=e.v[n+1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),L=I?Math.min(I/2,r)/I:0,P=c[0]+(v[0]-c[0])*L,E=P,M=c[1]+(v[1]-c[1])*L,R=M,z=E-(E-c[0])*le,w=R-(R-c[1])*le,s.setTripleAt(E,R,P,M,z,w,B),B+=1):(s.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],B),B+=1);return s},Cs.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.rd.v;if(f!==0){var x,v;for(s=0;s<n;s+=1){if(x=this.shapes[s],v=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],f));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Xa(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function Vl(e){return Math.abs(e)<=1e-5}function Ih(e,r,s){return e*(1-s)+r*s}function ci(e,r,s){return[Ih(e[0],r[0],s),Ih(e[1],r[1],s)]}function og(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 kh(e,r,s,n){return[-e+3*r-3*s+n,3*e-6*r+3*s,-3*e+3*r,e]}function Ch(e){return new Bt(e,e,e,e,!1)}function Bt(e,r,s,n,d){d&&No(e,r)&&(r=ci(e,n,1/3)),d&&No(s,n)&&(s=ci(e,n,2/3));var c=kh(e[0],r[0],s[0],n[0]),f=kh(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[Ch(this.points[0]),this];if(e>=1)return[this,Ch(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 wh(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=og(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:wh(this,0),y:wh(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 Nh(e){var r=e.bez.split(.5);return[Za(r[0],e.t1,e.t),Za(r[1],e.t,e.t2)]}function sg(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function ws(e,r,s,n,d,c){if(sg(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=Nh(e),x=Nh(r);ws(f[0],x[0],s+1,n,d,c),ws(f[0],x[1],s+1,n,d,c),ws(f[1],x[0],s+1,n,d,c),ws(f[1],x[1],s+1,n,d,c)}}Bt.prototype.intersections=function(e,r,s){r===void 0&&(r=2),s===void 0&&(s=7);var n=[];return ws(Za(this,0,1),Za(e,0,1),0,r,n,s),n},Bt.shapeSegment=function(e,r){var s=(r+1)%e.length();return new Bt(e.v[r],e.o[r],e.i[s],e.v[s],!0)},Bt.shapeSegmentInverted=function(e,r){var s=(r+1)%e.length();return new Bt(e.v[s],e.i[s],e.o[r],e.v[r],!0)};function 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 wo(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 No(e,r){return Xa(e[0],r[0])&&Xa(e[1],r[1])}function Ns(){}$([Ye],Ns),Ns.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=it.getProp(e,r.s,0,null,this),this.frequency=it.getProp(e,r.r,0,null,this),this.pointsType=it.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Lh(e,r,s,n,d,c,f){var x=s-Math.PI/2,v=s+Math.PI/2,I=r[0]+Math.cos(s)*n*d,L=r[1]-Math.sin(s)*n*d;e.setTripleAt(I,L,I+Math.cos(x)*c,L-Math.sin(x)*c,I+Math.cos(v)*f,L-Math.sin(v)*f,e.length())}function ag(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 ng(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=ag(d,c);return Math.atan2(0,1)-Math.atan2(f[1],f[0])}function Rh(e,r,s,n,d,c,f){var x=ng(r,s),v=r.v[s%r._length],I=r.v[s===0?r._length-1:s-1],L=r.v[(s+1)%r._length],B=c===2?Math.sqrt(Math.pow(v[0]-I[0],2)+Math.pow(v[1]-I[1],2)):0,E=c===2?Math.sqrt(Math.pow(v[0]-L[0],2)+Math.pow(v[1]-L[1],2)):0;Lh(e,r.v[s%r._length],x,f,n,E/((d+1)*2),B/((d+1)*2),c)}function lg(e,r,s,n,d,c){for(var f=0;f<n;f+=1){var x=(f+1)/(n+1),v=d===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,I=r.normalAngle(x),L=r.point(x);Lh(e,L,I,c,s,v/((n+1)*2),v/((n+1)*2),d),c=-c}return c}Ns.prototype.processPath=function(e,r,s,n){var d=e._length,c=ce.newElement();if(c.c=e.c,e.c||(d-=1),d===0)return c;var f=-1,x=Bt.shapeSegment(e,0);Rh(c,e,0,r,s,n,f);for(var v=0;v<d;v+=1)f=lg(c,x,r,s,n,-f),v===d-1&&!e.c?x=null:x=Bt.shapeSegment(e,(v+1)%d),Rh(c,e,v+1,r,s,n,f);return c},Ns.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),v=this.pointsType.v;if(f!==0){var I,L;for(s=0;s<n;s+=1){if(I=this.shapes[s],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],f,x,v));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Hl(e,r,s){var n=Math.atan2(r[0]-e[0],r[1]-e[1]);return[wo(e,n,s),wo(r,n,s)]}function Lo(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 L=Qa(f,x,d,c);return L===null&&(L=f),new Bt(s,I,L,x)}function Mh(e,r,s,n,d){var c=r.points[3],f=s.points[0];if(n===3||No(c,f))return c;if(n===2){var x=-r.tangentAngle(1),v=-s.tangentAngle(0)+Math.PI,I=Qa(c,wo(c,x+Math.PI/2,100),f,wo(f,x+Math.PI/2,100)),L=I?Ul(I,c):Ul(c,f)/2,B=wo(c,x,2*L*le);return e.setXYAt(B[0],B[1],"o",e.length()-1),B=wo(f,v,2*L*le),e.setTripleAt(f[0],f[1],f[0],f[1],B[0],B[1],e.length()),f}var E=No(c,r.points[2])?r.points[0]:r.points[2],R=No(f,s.points[1])?s.points[3]:s.points[1],P=Qa(E,c,f,R);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 Oh(e,r){var s=e.intersections(r);return s.length&&Xa(s[0][0],1)&&s.shift(),s.length?s[0]:null}function Ph(e,r){var s=e.slice(),n=r.slice(),d=Oh(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=Oh(e[0],r[r.length-1]),d)?[[e[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[s,n]}function cg(e){for(var r,s=1;s<e.length;s+=1)r=Ph(e[s-1],e[s]),e[s-1]=r[0],e[s]=r[1];return e.length>1&&(r=Ph(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function Dh(e,r){var s=e.inflectionPoints(),n,d,c,f;if(s.length===0)return[Lo(e,r)];if(s.length===1||Xa(s[1],1))return c=e.split(s[0]),n=c[0],d=c[1],[Lo(n,r),Lo(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],[Lo(n,r),Lo(f,r),Lo(d,r)]}function Ls(){}$([Ye],Ls),Ls.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this.miterLimit=it.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ls.prototype.processPath=function(e,r,s,n){var d=ce.newElement();d.c=e.c;var c=e.length();e.c||(c-=1);var f,x,v,I=[];for(f=0;f<c;f+=1)v=Bt.shapeSegment(e,f),I.push(Dh(v,r));if(!e.c)for(f=c-1;f>=0;f-=1)v=Bt.shapeSegmentInverted(e,f),I.push(Dh(v,r));I=cg(I);var L=null,B=null;for(f=0;f<I.length;f+=1){var E=I[f];for(B&&(L=Mh(d,B,E[0],s,n)),B=E[E.length-1],x=0;x<E.length;x+=1)v=E[x],L&&No(v.points[0],L)?d.setXYAt(v.points[1][0],v.points[1][1],"o",d.length()-1):d.setTripleAt(v.points[0][0],v.points[0][1],v.points[1][0],v.points[1][1],v.points[0][0],v.points[0][1],d.length()),d.setTripleAt(v.points[3][0],v.points[3][1],v.points[3][0],v.points[3][1],v.points[2][0],v.points[2][1],d.length()),L=v.points[3]}return I.length&&Mh(d,B,I[0][0],s,n),d},Ls.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.amount.v,x=this.miterLimit.v,v=this.lineJoin;if(f!==0){var I,L;for(s=0;s<n;s+=1){if(I=this.shapes[s],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],f,v,x));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Fh(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,L=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function E(S){var O=S.split(","),m,b=O.length,U=[];for(m=0;m<b;m+=1)O[m]!=="sans-serif"&&O[m]!=="monospace"&&U.push(O[m]);return U.join(",")}function R(S,O){var m=N("span");m.setAttribute("aria-hidden",!0),m.style.fontFamily=O;var b=N("span");b.innerText="giItT1WQy@!-/#",m.style.position="absolute",m.style.left="-10000px",m.style.top="-10000px",m.style.fontSize="300px",m.style.fontVariant="normal",m.style.fontStyle="normal",m.style.fontWeight="normal",m.style.letterSpacing="0",m.appendChild(b),document.body.appendChild(m);var U=b.offsetWidth;return b.style.fontFamily=E(S)+", "+O,{node:b,w:U,parent:m}}function P(){var S,O=this.fonts.length,m,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:(m=this.fonts[S].monoCase.node,b=this.fonts[S].monoCase.w,m.offsetWidth!==b?(U-=1,this.fonts[S].loaded=!0):(m=this.fonts[S].sansCase.node,b=this.fonts[S].sansCase.w,m.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 m=document.body&&O?"svg":"canvas",b,U=Fh(S);if(m==="svg"){var F=bt("text");F.style.fontSize="100px",F.setAttribute("font-family",S.fFamily),F.setAttribute("font-style",U.style),F.setAttribute("font-weight",U.weight),F.textContent="1",S.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",S.fClass)):F.style.fontFamily=S.fFamily,O.appendChild(F),b=F}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=U.style+" "+U.weight+" 100px "+S.fFamily,b=at}function mt(vt){return m==="svg"?(b.textContent=vt,b.getComputedTextLength()):b.measureText(vt).width}return{measureText:mt}}function z(S,O){if(!S){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=S.list;return}if(!document.body){this.isLoaded=!0,S.list.forEach(function(ke){ke.helper=M(ke),ke.cache={}}),this.fonts=S.list;return}var m=S.list,b,U=m.length,F=U;for(b=0;b<U;b+=1){var at=!0,mt,vt;if(m[b].loaded=!1,m[b].monoCase=R(m[b].fFamily,"monospace"),m[b].sansCase=R(m[b].fFamily,"sans-serif"),!m[b].fPath)m[b].loaded=!0,F-=1;else if(m[b].fOrigin==="p"||m[b].origin===3){if(mt=document.querySelectorAll('style[f-forigin="p"][f-family="'+m[b].fFamily+'"], style[f-origin="3"][f-family="'+m[b].fFamily+'"]'),mt.length>0&&(at=!1),at){var wt=N("style");wt.setAttribute("f-forigin",m[b].fOrigin),wt.setAttribute("f-origin",m[b].origin),wt.setAttribute("f-family",m[b].fFamily),wt.type="text/css",wt.innerText="@font-face {font-family: "+m[b].fFamily+"; font-style: normal; src: url('"+m[b].fPath+"');}",O.appendChild(wt)}}else if(m[b].fOrigin==="g"||m[b].origin===1){for(mt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),vt=0;vt<mt.length;vt+=1)mt[vt].href.indexOf(m[b].fPath)!==-1&&(at=!1);if(at){var Nt=N("link");Nt.setAttribute("f-forigin",m[b].fOrigin),Nt.setAttribute("f-origin",m[b].origin),Nt.type="text/css",Nt.rel="stylesheet",Nt.href=m[b].fPath,document.body.appendChild(Nt)}}else if(m[b].fOrigin==="t"||m[b].origin===2){for(mt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),vt=0;vt<mt.length;vt+=1)m[b].fPath===mt[vt].src&&(at=!1);if(at){var qt=N("link");qt.setAttribute("f-forigin",m[b].fOrigin),qt.setAttribute("f-origin",m[b].origin),qt.setAttribute("rel","stylesheet"),qt.setAttribute("href",m[b].fPath),O.appendChild(qt)}}m[b].helper=M(m[b],O),m[b].cache={},this.fonts.push(m[b])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function w(S){if(S){this.chars||(this.chars=[]);var O,m=S.length,b,U=this.chars.length,F;for(O=0;O<m;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,m){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===m)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,m)),r}function y(S,O,m){var b=this.getFontByName(O),U=S;if(!b.cache[U]){var F=b.helper;if(S===" "){var at=F.measureText("|"+S+"|"),mt=F.measureText("||");b.cache[U]=(at-mt)/100}else b.cache[U]=F.measureText(S)/100}return b.cache[U]*m}function A(S){for(var O=0,m=this.fonts.length;O<m;){if(this.fonts[O].fName===S)return this.fonts[O];O+=1}return this.fonts[0]}function k(S){var O=0,m=S.charCodeAt(0);if(m>=55296&&m<=56319){var b=S.charCodeAt(1);b>=56320&&b<=57343&&(O=(m-55296)*1024+b-56320+65536)}return O}function D(S,O){var m=S.toString(16)+O.toString(16);return B.indexOf(m)!==-1}function V(S){return S===v}function H(S){return S===x}function Z(S){var O=k(S);return O>=I&&O<=L}function ft(S){return Z(S.substr(0,2))&&Z(S.substr(2,2))}function ht(S){return s.indexOf(S)!==-1}function et(S,O){var m=k(S.substr(O,2));if(m!==n)return!1;var b=0;for(O+=2;b<5;){if(m=k(S.substr(O,2)),m<c||m>f)return!1;b+=1,O+=2}return k(S.substr(O,2))===d}function yt(){this.isLoaded=!0}var lt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};lt.isModifier=D,lt.isZeroWidthJoiner=V,lt.isFlagEmoji=ft,lt.isRegionalCode=Z,lt.isCombinedCharacter=ht,lt.isRegionalFlag=et,lt.isVariationSelector=H,lt.BLACK_FLAG_CODE_POINT=n;var X={addChars:w,addFonts:z,getCharData:_,getFontByName:A,measureText:y,checkLoadedFonts:P,setIsLoaded:yt};return lt.prototype=X,lt}();function $h(e){this.animationData=e}$h.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function dg(e){return new $h(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 hg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}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,1,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,0,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(){this.p={}}function zh(e,r){var s=e.ef||[];this.effectElements=[];var n,d=s.length,c;for(n=0;n<d;n+=1)c=new Rs(s[n],r),this.effectElements.push(c)}function Rs(e,r){this.init(e,r)}$([oe],Rs),Rs.prototype.getValue=Rs.prototype.iterateDynamicProperties,Rs.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var s,n=this.data.ef.length,d,c=this.data.ef;for(s=0;s<n;s+=1){switch(d=null,c[s].ty){case 0:d=new hg(c[s],r,this);break;case 1:d=new pg(c[s],r,this);break;case 2:d=new mg(c[s],r,this);break;case 3:d=new ug(c[s],r,this);break;case 4:case 7:d=new gg(c[s],r,this);break;case 10:d=new fg(c[s],r,this);break;case 11:d=new vg(c[s],r,this);break;case 5:d=new zh(c[s],r,this);break;default:d=new bg(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=hh();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 zh(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=hh();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=dg(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 yg={TRANSFORM_EFFECT:"transformEFfect"};function Ro(){}Ro.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(yg.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=[],L,B,E=_e(),R,P,M,z,w="clipPath",_="clip-path";for(d=0;d<c;d+=1)if((x[d].mode!=="a"&&x[d].mode!=="n"||x[d].inv||x[d].o.k!==100||x[d].o.x)&&(w="mask",_="mask"),(x[d].mode==="s"||x[d].mode==="i")&&v===0?(R=bt("rect"),R.setAttribute("fill","#ffffff"),R.setAttribute("width",this.element.comp.data.w||0),R.setAttribute("height",this.element.comp.data.h||0),I.push(R)):R=null,f=bt("path"),x[d].mode==="n")this.viewData[d]={op:it.getProp(this.element,x[d].o,0,.01,this.element),prop:ja.getShapeProp(this.element,x[d],3),elem:f,lastPath:""},n.appendChild(f);else{v+=1,f.setAttribute("fill",x[d].mode==="s"?"#000000":"#ffffff"),f.setAttribute("clip-rule","nonzero");var y;if(x[d].x.k!==0?(w="mask",_="mask",z=it.getProp(this.element,x[d].x,0,null,this.element),y=_e(),P=bt("filter"),P.setAttribute("id",y),M=bt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),n.appendChild(P),f.setAttribute("stroke",x[d].mode==="s"?"#000000":"#ffffff")):(M=null,z=null),this.storedData[d]={elem:f,x:z,expan:M,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},x[d].mode==="i"){B=I.length;var A=bt("g");for(L=0;L<B;L+=1)A.appendChild(I[L]);var k=bt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",E+"_"+v),k.appendChild(f),n.appendChild(k),A.setAttribute("mask","url("+T()+"#"+E+"_"+v+")"),I.length=0,I.push(A)}else I.push(f);x[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:f,lastPath:"",op:it.getProp(this.element,x[d].o,0,.01,this.element),prop:ja.getShapeProp(this.element,x[d],3),invRect:R},this.viewData[d].prop.k||this.drawPath(x[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=bt(w),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);v>0&&(this.maskElement.setAttribute("id",E),this.element.maskedElement.setAttribute(_,"url("+T()+"#"+E+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}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 Ms=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=s;function r(n,d){var c=bt("filter");return c.setAttribute("id",n),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function s(){var n=bt("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return e}(),Vh=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={},Bh="filter_result_";function Yl(e){var r,s="SourceGraphic",n=e.data.ef?e.data.ef.length:0,d=_e(),c=Ms.createFilter(d,!0),f=0;this.filters=[];var x;for(r=0;r<n;r+=1){x=null;var v=e.data.ef[r].ty;if(tn[v]){var I=tn[v].effect;x=new I(c,e.effectsManager.effectElements[r],e,Bh+f,s),s=Bh+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 GT(e,r,s){tn[e]={effect:r,countsAsEffect:s}}function Os(){}Os.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var s=bt("g");s.setAttribute("id",this.layerId),s.appendChild(this.layerElement),r=s,this.globalData.defs.appendChild(s)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=bt("clipPath"),d=bt("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=_e();if(n.setAttribute("id",c),n.appendChild(d),this.globalData.defs.appendChild(n),this.checkMasks()){var f=bt("g");f.setAttribute("clip-path","url("+T()+"#"+c+")"),f.appendChild(this.layerElement),this.transformedElement=f,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+T()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new 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=bt("mask");x.setAttribute("id",s),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=bt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(c),this.globalData.defs.appendChild(x),!Vh.maskType&&r===1&&(x.setAttribute("mask-type","luminance"),n=_e(),d=Ms.createFilter(n),this.globalData.defs.appendChild(d),d.appendChild(Ms.createAlphaToLuminanceFilter()),f=bt("g"),f.appendChild(c),x.appendChild(f),f.setAttribute("filter","url("+T()+"#"+n+")"))}else if(r===2){var v=bt("mask");v.setAttribute("id",s),v.setAttribute("mask-type","alpha");var I=bt("g");v.appendChild(I),n=_e(),d=Ms.createFilter(n);var L=bt("feComponentTransfer");L.setAttribute("in","SourceGraphic"),d.appendChild(L);var B=bt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),L.appendChild(B),this.globalData.defs.appendChild(d);var E=bt("rect");E.setAttribute("width",this.comp.data.w),E.setAttribute("height",this.comp.data.h),E.setAttribute("x","0"),E.setAttribute("y","0"),E.setAttribute("fill","#ffffff"),E.setAttribute("opacity","0"),I.setAttribute("filter","url("+T()+"#"+n+")"),I.appendChild(E),c=bt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),Vh.maskType||(v.setAttribute("mask-type","luminance"),d.appendChild(Ms.createAlphaToLuminanceFilter()),f=bt("g"),I.appendChild(E),f.appendChild(this.layerElement),I.appendChild(f)),this.globalData.defs.appendChild(v)}this.matteMasks[r]=s}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+T()+"#"+r+")")}};function Mo(){}Mo.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ps(){}(function(){var e={initElement:function(s,n,d){this.initFrame(),this.initBaseData(s,n,d),this.initTransform(s,n,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var s=this.baseElement||this.layerElement;s.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var s=this.baseElement||this.layerElement;s.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(s){this._mdf=!1,this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};$([Ja,K(e)],Ps)})();function Ds(e,r,s){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,s),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}$([di,Ro,Os,Mo,hi,Ps],Ds),Ds.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},Ds.prototype.sourceRectAtTime=function(){return this.sourceRect};function Eg(e,r){this.elem=e,this.pos=r}function Uh(){}Uh.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 Eg(r,s))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Hh={1:"butt",2:"round",3:"square"},Gh={1:"miter",2:"round",3:"bevel"};function Yh(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}}Yh.prototype.setAsAnimated=function(){this._isAnimated=!0};function Wh(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=bt("path"),this.msElem=null}Wh.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 jh(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],jh);function qh(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],qh);function Kh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=s}$([oe],Kh);function Fs(e,r,s){this.data=r,this.c=Q("uint8c",r.p*4);var n=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=Q("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(s),this.prop=it.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Fs.prototype.comparePoints=function(e,r){for(var s=0,n=this.o.length/2,d;s<n;){if(d=Math.abs(e[s*4]-e[r*4+s*2]),d>.01)return!1;s+=1}return!0},Fs.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Fs.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,s=this.data.p*4,n,d;for(r=0;r<s;r+=1)n=r%4===0?100:255,d=Math.round(this.prop.v[r]*n),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!e);if(this.o.length)for(s=this.prop.v.length,r=this.data.p*4;r<s;r+=1)n=r%2===0?100:1,d=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==d&&(this.o[r-this.data.p*4]=d,this._omdf=!e);this._mdf=!e}},$([oe],Fs);function Oo(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,s)}Oo.prototype.initGradientData=function(e,r,s){this.o=it.getProp(e,r.o,0,.01,this),this.s=it.getProp(e,r.s,1,null,this),this.e=it.getProp(e,r.e,1,null,this),this.h=it.getProp(e,r.h||{k:0},0,.01,this),this.a=it.getProp(e,r.a||{k:0},0,It,this),this.g=new Fs(e,r.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,r),this.setGradientOpacity(r,s),this._isAnimated=!!this._isAnimated},Oo.prototype.setGradientData=function(e,r){var s=_e(),n=bt(r.t===1?"linearGradient":"radialGradient");n.setAttribute("id",s),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,f,x;for(x=r.g.p*4,f=0;f<x;f+=4)c=bt("stop"),n.appendChild(c),d.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+T()+"#"+s+")"),this.gf=n,this.cst=d},Oo.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var s,n,d,c=bt("mask"),f=bt("path");c.appendChild(f);var x=_e(),v=_e();c.setAttribute("id",v);var I=bt(e.t===1?"linearGradient":"radialGradient");I.setAttribute("id",x),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var L=this.stops;for(n=e.g.p*4;n<d;n+=2)s=bt("stop"),s.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(s),L.push(s);f.setAttribute(e.ty==="gf"?"fill":"stroke","url("+T()+"#"+x+")"),e.ty==="gs"&&(f.setAttribute("stroke-linecap",Hh[e.lc||2]),f.setAttribute("stroke-linejoin",Gh[e.lj||2]),e.lj===1&&f.setAttribute("stroke-miterlimit",e.ml)),this.of=I,this.ms=c,this.ost=L,this.maskId=v,r.msElem=f}},$([oe],Oo);function Xh(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}$([Oo,oe],Xh);function Tg(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function xg(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 Zh=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},Ag=function(){var e=new de,r=new de,s={createRenderFunction:n};function n(B){switch(B.ty){case"fl":return x;case"gf":return I;case"gs":return v;case"st":return L;case"sh":case"el":case"rc":case"sr":return f;case"tr":return d;case"no":return c;default:return null}}function d(B,E,R){(R||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(R||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function f(B,E,R){var P,M,z,w,_,y,A=E.styles.length,k=E.lvl,D,V,H,Z;for(y=0;y<A;y+=1){if(w=E.sh._mdf||R,E.styles[y].lvl<k){for(V=r.reset(),H=k-E.styles[y].lvl,Z=E.transformers.length-1;!w&&H>0;)w=E.transformers[Z].mProps._mdf||w,H-=1,Z-=1;if(w)for(H=k-E.styles[y].lvl,Z=E.transformers.length-1;H>0;)V.multiply(E.transformers[Z].mProps.v),H-=1,Z-=1}else V=e;if(D=E.sh.paths,M=D._length,w){for(z="",P=0;P<M;P+=1)_=D.shapes[P],_&&_._length&&(z+=Zh(_,_._length,_.c,V));E.caches[y]=z}else z=E.caches[y];E.styles[y].d+=B.hd===!0?"":z,E.styles[y]._mdf=w||E.styles[y]._mdf}}function x(B,E,R){var P=E.style;(E.c._mdf||R)&&P.pElem.setAttribute("fill","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||R)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function v(B,E,R){I(B,E,R),L(B,E,R)}function I(B,E,R){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,w=E.e.v;if(E.o._mdf||R){var _=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(_,E.o.v)}if(E.s._mdf||R){var y=B.t===1?"x1":"cx",A=y==="x1"?"y1":"cy";P.setAttribute(y,z[0]),P.setAttribute(A,z[1]),M&&!E.g._collapsable&&(E.of.setAttribute(y,z[0]),E.of.setAttribute(A,z[1]))}var k,D,V,H;if(E.g._cmdf||R){k=E.cst;var Z=E.g.c;for(V=k.length,D=0;D<V;D+=1)H=k[D],H.setAttribute("offset",Z[D*4]+"%"),H.setAttribute("stop-color","rgb("+Z[D*4+1]+","+Z[D*4+2]+","+Z[D*4+3]+")")}if(M&&(E.g._omdf||R)){var ft=E.g.o;for(E.g._collapsable?k=E.cst:k=E.ost,V=k.length,D=0;D<V;D+=1)H=k[D],E.g._collapsable||H.setAttribute("offset",ft[D*2]+"%"),H.setAttribute("stop-opacity",ft[D*2+1])}if(B.t===1)(E.e._mdf||R)&&(P.setAttribute("x2",w[0]),P.setAttribute("y2",w[1]),M&&!E.g._collapsable&&(E.of.setAttribute("x2",w[0]),E.of.setAttribute("y2",w[1])));else{var ht;if((E.s._mdf||E.e._mdf||R)&&(ht=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)),P.setAttribute("r",ht),M&&!E.g._collapsable&&E.of.setAttribute("r",ht)),E.e._mdf||E.h._mdf||E.a._mdf||R){ht||(ht=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)));var et=Math.atan2(w[1]-z[1],w[0]-z[0]),yt=E.h.v;yt>=1?yt=.99:yt<=-1&&(yt=-.99);var lt=ht*yt,X=Math.cos(et+E.a.v)*lt+z[0],S=Math.sin(et+E.a.v)*lt+z[1];P.setAttribute("fx",X),P.setAttribute("fy",S),M&&!E.g._collapsable&&(E.of.setAttribute("fx",X),E.of.setAttribute("fy",S))}}}function L(B,E,R){var P=E.style,M=E.d;M&&(M._mdf||R)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||R)&&P.pElem.setAttribute("stroke","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||R)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||R)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return s}();function Gt(e,r,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,s),this.prevViewData=[]}$([di,Ro,Os,Uh,Mo,hi,Ps],Gt),Gt.prototype.initSecondaryElement=function(){},Gt.prototype.identityMatrix=new de,Gt.prototype.buildExpressionInterface=function(){},Gt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Gt.prototype.filterUniqueShapes=function(){var e,r=this.shapes.length,s,n,d=this.stylesList.length,c,f=[],x=!1;for(n=0;n<d;n+=1){for(c=this.stylesList[n],x=!1,f.length=0,e=0;e<r;e+=1)s=this.shapes[e],s.styles.indexOf(c)!==-1&&(f.push(s),x=s._isAnimated||x);f.length>1&&x&&this.setShapesAsAnimated(f)}},Gt.prototype.setShapesAsAnimated=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r].setAsAnimated()},Gt.prototype.createStyleElement=function(e,r){var s,n=new Wh(e,r),d=n.pElem;if(e.ty==="st")s=new jh(this,e,n);else if(e.ty==="fl")s=new qh(this,e,n);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?Oo:Xh;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 Kh(this,e,n));return(e.ty==="st"||e.ty==="gs")&&(d.setAttribute("stroke-linecap",Hh[e.lc||2]),d.setAttribute("stroke-linejoin",Gh[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 Tg;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 xg(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 Yh(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:Ag.createRenderFunction(e),element:r,data:e})},Gt.prototype.setElementStyles=function(e){var r=e.styles,s,n=this.stylesList.length;for(s=0;s<n;s+=1)this.stylesList[s].closed||r.push(this.stylesList[s])},Gt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Gt.prototype.searchShapes=function(e,r,s,n,d,c,f){var x=[].concat(c),v,I=e.length-1,L,B,E=[],R=[],P,M,z;for(v=I;v>=0;v-=1){if(z=this.searchProcessedElement(e[v]),z?r[v]=s[z-1]:e[v]._render=f,e[v].ty==="fl"||e[v].ty==="st"||e[v].ty==="gf"||e[v].ty==="gs"||e[v].ty==="no")z?r[v].style.closed=!1:r[v]=this.createStyleElement(e[v],d),e[v]._render&&r[v].style.pElem.parentNode!==n&&n.appendChild(r[v].style.pElem),E.push(r[v].style);else if(e[v].ty==="gr"){if(!z)r[v]=this.createGroupElement(e[v]);else for(B=r[v].it.length,L=0;L<B;L+=1)r[v].prevViewData[L]=r[v].it[L];this.searchShapes(e[v].it,r[v].it,r[v].prevViewData,r[v].gr,d+1,x,f),e[v]._render&&r[v].gr.parentNode!==n&&n.appendChild(r[v].gr)}else e[v].ty==="tr"?(z||(r[v]=this.createTransformElement(e[v],n)),P=r[v].transform,x.push(P)):e[v].ty==="sh"||e[v].ty==="rc"||e[v].ty==="el"||e[v].ty==="sr"?(z||(r[v]=this.createShapeElement(e[v],x,d)),this.setElementStyles(r[v])):e[v].ty==="tm"||e[v].ty==="rd"||e[v].ty==="ms"||e[v].ty==="pb"||e[v].ty==="zz"||e[v].ty==="op"?(z?(M=r[v],M.closed=!1):(M=li.getModifier(e[v].ty),M.init(this,e[v]),r[v]=M,this.shapeModifiers.push(M)),R.push(M)):e[v].ty==="rp"&&(z?(M=r[v],M.closed=!0):(M=li.getModifier(e[v].ty),r[v]=M,M.init(this,e,v,r),this.shapeModifiers.push(M),f=!1),R.push(M));this.addProcessedElement(e[v],v+1)}for(I=E.length,v=0;v<I;v+=1)E[v].closed=!0;for(I=R.length,v=0;v<I;v+=1)R[v].closed=!0},Gt.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Gt.prototype.renderShape=function(){var e,r=this.animatedContents.length,s;for(e=0;e<r;e+=1)s=this.animatedContents[e],(this._isFirstFrame||s.element._isAnimated)&&s.data!==!0&&s.fn(s.data,s.element,this._isFirstFrame)},Gt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function 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=o,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}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,L=0,B=0,E=0,R=[],P=0,M=0,z,w,_=r.getFontByName(e.f),y,A=0,k=Fh(_);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var D=e.tr/1e3*e.finalSize,V;if(e.sz)for(var H=!0,Z=e.sz[0],ft=e.sz[1],ht,et;H;){et=this.buildFinalText(e.t),ht=0,P=0,c=et.length,D=e.tr/1e3*e.finalSize;var yt=-1;for(d=0;d<c;d+=1)V=et[d].charCodeAt(0),f=!1,et[d]===" "?yt=d:(V===13||V===3)&&(P=0,f=!0,ht+=e.finalLineHeight||e.finalSize*1.2),r.chars?(y=r.getCharData(et[d],_.fStyle,_.fFamily),A=f?0:y.w*e.finalSize/100):A=r.measureText(et[d],e.f,e.finalSize),P+A>Z&&et[d]!==" "?(yt===-1?c+=1:d=yt,ht+=e.finalLineHeight||e.finalSize*1.2,et.splice(d,yt===d?1:0,"\r"),yt=-1,P=0):(P+=A,P+=D);ht+=_.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ft<ht?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=et,c=e.finalText.length,H=!1)}P=-D,A=0;var lt=0,X;for(d=0;d<c;d+=1)if(f=!1,X=e.finalText[d],V=X.charCodeAt(0),V===13||V===3?(lt=0,R.push(P),M=P>M?P:M,P=-2*D,v="",f=!0,E+=1):v=X,r.chars?(y=r.getCharData(X,_.fStyle,r.getFontByName(e.f).fFamily),A=f?0:y.w*e.finalSize/100):A=r.measureText(v,e.f,e.finalSize),X===" "?lt+=A+D:(P+=A+D+lt,lt=0),n.push({l:A,an:A,add:L,n:f,anIndexes:[],val:v,line:E,animatorJustifyOffset:0}),I==2){if(L+=A,v===""||v===" "||d===c-1){for((v===""||v===" ")&&(L-=A);B<=d;)n[B].an=L,n[B].ind=x,n[B].extra=A,B+=1;x+=1,L=0}}else if(I==3){if(L+=A,v===""||d===c-1){for(v===""&&(L-=A);B<=d;)n[B].an=L,n[B].ind=x,n[B].extra=A,B+=1;L=0,x+=1}}else n[x].ind=x,n[x].extra=0,x+=1;if(e.l=n,M=P>M?P:M,R.push(P),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=M,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=R;var S=s.a,O,m;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)m=n[d],m.anIndexes[z]=U,(b==1&&m.val!==""||b==2&&m.val!==""&&m.val!==" "||b==3&&(m.n||m.val==" "||d==c-1)||b==4&&(m.n||d==c-1))&&(O.s.rn===1&&F.push(U),U+=1);s.a[z].s.totalChars=U;var at=-1,mt;if(O.s.rn===1)for(d=0;d<c;d+=1)m=n[d],at!=m.anIndexes[z]&&(at=m.anIndexes[z],mt=F.splice(Math.floor(Math.random()*F.length),1)[0]),m.anIndexes[z]=mt}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 Sg=function(){var e=Math.max,r=Math.min,s=Math.floor;function n(c,f){this._currentTextLength=-1,this.k=!1,this.data=f,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=it.getProp(c,f.s||{k:0},0,0,this),"e"in f?this.e=it.getProp(c,f.e,0,0,this):this.e={v:100},this.o=it.getProp(c,f.o||{k:0},0,0,this),this.xe=it.getProp(c,f.xe||{k:0},0,0,this),this.ne=it.getProp(c,f.ne||{k:0},0,0,this),this.sm=it.getProp(c,f.sm||{k:100},0,0,this),this.a=it.getProp(c,f.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(f){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,v=0,I=1,L=1;this.ne.v>0?x=this.ne.v/100:v=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:L=1+this.xe.v/100;var B=Is.getBezierEasing(x,v,I,L).get,E=0,R=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===R?E=f>=P?1:0:E=e(0,r(.5/(P-R)+(f-R)/(P-R),1)),E=B(E);else if(M===3)P===R?E=f>=P?0:1:E=1-e(0,r(.5/(P-R)+(f-R)/(P-R),1)),E=B(E);else if(M===4)P===R?E=0:(E=e(0,r(.5/(P-R)+(f-R)/(P-R),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===R)E=0;else{var z=P-R;f=r(e(0,f+.5-R),P-R);var w=-z/2+f,_=z/2;E=Math.sqrt(1-w*w/(_*_))}E=B(E)}else M===6?(P===R?E=0:(f=r(e(0,f+.5-R),P-R),E=(1+Math.cos(Math.PI+Math.PI*2*f/(P-R)))/2),E=B(E)):(f>=s(R)&&(f-R<0?E=e(0,r(r(P,1)-(R-f),1)):E=e(0,r(P-f,1))),E=B(E));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var A=.5-y*.5;E<A?E=0:(E=(E-A)/y,E>1&&(E=1))}return E*this.a.v},getValue:function(f){this.iterateDynamicProperties(),this._mdf=f||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,f&&this.data.r===2&&(this.e.v=this._currentTextLength);var x=this.data.r===2?1:100/this.data.totalChars,v=this.o.v/x,I=this.s.v/x+v,L=this.e.v/x+v;if(I>L){var B=I;I=L,L=B}this.finalS=I,this.finalE=L}},$([oe],n);function d(c,f,x){return new n(c,f,x)}return{getTextSelectorProp:d}}();function _g(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=Sg.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 _g(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,L,B,E=e.l,R,P,M,z,w,_,y,A,k,D,V,H,Z,ft,ht;if(this._hasMaskedPath){if(ht=this._pathData.m,!this._pathData.n||this._pathData._mdf){var et=ht.v;this._pathData.r.v&&(et=et.reverse()),R={tLength:0,segments:[]},B=et._length-1;var yt;for(H=0,L=0;L<B;L+=1)yt=yr.buildBezierData(et.v[L],et.v[L+1],[et.o[L][0]-et.v[L][0],et.o[L][1]-et.v[L][1]],[et.i[L+1][0]-et.v[L+1][0],et.i[L+1][1]-et.v[L+1][1]]),R.tLength+=yt.segmentLength,R.segments.push(yt),H+=yt.segmentLength;L=B,ht.v.c&&(yt=yr.buildBezierData(et.v[L],et.v[0],[et.o[L][0]-et.v[L][0],et.o[L][1]-et.v[L][1]],[et.i[0][0]-et.v[0][0],et.i[0][1]-et.v[0][1]]),R.tLength+=yt.segmentLength,R.segments.push(yt),H+=yt.segmentLength),this._pathData.pi=R}if(R=this._pathData.pi,P=this._pathData.f.v,y=0,_=1,z=0,w=!0,D=R.segments,P<0&&ht.v.c)for(R.tLength<Math.abs(P)&&(P=-Math.abs(P)%R.tLength),y=D.length-1,k=D[y].points,_=k.length-1;P<0;)P+=k[_].partialLength,_-=1,_<0&&(y-=1,k=D[y].points,_=k.length-1);k=D[y].points,A=k[_-1],M=k[_],V=M.partialLength}B=E.length,v=0,I=0;var lt=e.finalSize*1.2*.714,X=!0,S,O,m,b,U;b=n.length;var F,at=-1,mt,vt,wt,Nt=P,qt=y,ke=_,Tr=-1,Ce,se,Fe,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(L=0;L<B;L+=1)if(E[L].n){for(we&&(we+=fi);lr<L;)E[lr].animatorJustifyOffset=we,lr+=1;we=0,gi=!0}else{for(m=0;m<b;m+=1)S=n[m].a,S.t.propType&&(gi&&e.j===2&&(fi+=S.t.v*vi),O=n[m].s,F=O.getMult(E[L].anIndexes[m],d.a[m].s.totalChars),F.length?we+=S.t.v*F[0]*vi:we+=S.t.v*F*vi);gi=!1}for(we&&(we+=fi);lr<L;)E[lr].animatorJustifyOffset=we,lr+=1}for(L=0;L<B;L+=1){if(c.reset(),Ce=1,E[L].n)v=0,I+=e.yOffset,I+=X?1:0,P=Nt,X=!1,this._hasMaskedPath&&(y=qt,_=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[L].line){switch(e.j){case 1:P+=H-e.lineWidths[E[L].line];break;case 2:P+=(H-e.lineWidths[E[L].line])/2;break;default:break}Tr=E[L].line}at!==E[L].ind&&(E[at]&&(P+=E[at].extra),P+=E[L].an/2,at=E[L].ind),P+=s[0]*E[L].an*.005;var cr=0;for(m=0;m<b;m+=1)S=n[m].a,S.p.propType&&(O=n[m].s,F=O.getMult(E[L].anIndexes[m],d.a[m].s.totalChars),F.length?cr+=S.p.v[0]*F[0]:cr+=S.p.v[0]*F),S.a.propType&&(O=n[m].s,F=O.getMult(E[L].anIndexes[m],d.a[m].s.totalChars),F.length?cr+=S.a.v[0]*F[0]:cr+=S.a.v[0]*F);for(w=!0,this._pathData.a.v&&(P=E[0].an*.5+(H-this._pathData.f.v-E[0].an*.5-E[E.length-1].an*.5)*at/(B-1),P+=this._pathData.f.v);w;)z+V>=P+cr||!k?(Z=(P+cr-z)/M.partialLength,vt=A.point[0]+(M.point[0]-A.point[0])*Z,wt=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-s[0]*E[L].an*.005,-(s[1]*lt)*.01),w=!1):k&&(z+=M.partialLength,_+=1,_>=k.length&&(_=0,y+=1,D[y]?k=D[y].points:ht.v.c?(_=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[_],V=M.partialLength));mt=E[L].an/2-E[L].add,c.translate(-mt,0,0)}else mt=E[L].an/2-E[L].add,c.translate(-mt,0,0),c.translate(-s[0]*E[L].an*.005,-s[1]*lt*.01,0);for(m=0;m<b;m+=1)S=n[m].a,S.t.propType&&(O=n[m].s,F=O.getMult(E[L].anIndexes[m],d.a[m].s.totalChars),(v!==0||e.j!==0)&&(this._hasMaskedPath?F.length?P+=S.t.v*F[0]:P+=S.t.v*F:F.length?v+=S.t.v*F[0]:v+=S.t.v*F));for(e.strokeWidthAnim&&(Fe=e.sw||0),e.strokeColorAnim&&(e.sc?se=[e.sc[0],e.sc[1],e.sc[2]]:se=[0,0,0]),e.fillColorAnim&&e.fc&&(Mt=[e.fc[0],e.fc[1],e.fc[2]]),m=0;m<b;m+=1)S=n[m].a,S.a.propType&&(O=n[m].s,F=O.getMult(E[L].anIndexes[m],d.a[m].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(m=0;m<b;m+=1)S=n[m].a,S.s.propType&&(O=n[m].s,F=O.getMult(E[L].anIndexes[m],d.a[m].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(m=0;m<b;m+=1){if(S=n[m].a,O=n[m].s,F=O.getMult(E[L].anIndexes[m],d.a[m].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?Fe+=S.sw.v*F[0]:Fe+=S.sw.v*F),e.strokeColorAnim&&S.sc.propType)for(ct=0;ct<3;ct+=1)F.length?se[ct]+=(S.sc.v[ct]-se[ct])*F[0]:se[ct]+=(S.sc.v[ct]-se[ct])*F;if(e.fillColorAnim&&e.fc){if(S.fc.propType)for(ct=0;ct<3;ct+=1)F.length?Mt[ct]+=(S.fc.v[ct]-Mt[ct])*F[0]:Mt[ct]+=(S.fc.v[ct]-Mt[ct])*F;S.fh.propType&&(F.length?Mt=dh(Mt,S.fh.v*F[0]):Mt=dh(Mt,S.fh.v*F)),S.fs.propType&&(F.length?Mt=lh(Mt,S.fs.v*F[0]):Mt=lh(Mt,S.fs.v*F)),S.fb.propType&&(F.length?Mt=ch(Mt,S.fb.v*F[0]):Mt=ch(Mt,S.fb.v*F))}}for(m=0;m<b;m+=1)S=n[m].a,S.p.propType&&(O=n[m].s,F=O.getMult(E[L].anIndexes[m],d.a[m].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,S.p.v[1]*F[0],-S.p.v[2]*F[1]):c.translate(0,S.p.v[1]*F,-S.p.v[2]*F):F.length?c.translate(S.p.v[0]*F[0],S.p.v[1]*F[1],-S.p.v[2]*F[2]):c.translate(S.p.v[0]*F,S.p.v[1]*F,-S.p.v[2]*F));if(e.strokeWidthAnim&&(Dr=Fe<0?0:Fe),e.strokeColorAnim&&(ui="rgb("+Math.round(se[0]*255)+","+Math.round(se[1]*255)+","+Math.round(se[2]*255)+")"),e.fillColorAnim&&e.fc&&(Fr="rgb("+Math.round(Mt[0]*255)+","+Math.round(Mt[1]*255)+","+Math.round(Mt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,s[1]*lt*.01+I,0),this._pathData.p.v){ft=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var zi=Math.atan(ft)*180/Math.PI;M.point[0]<A.point[0]&&(zi+=180),c.rotate(-zi*Math.PI/180)}c.translate(vt,wt,0),P-=s[0]*E[L].an*.005,E[L+1]&&at!==E[L+1].ind&&(P+=E[L].an/2,P+=e.tr*.001*e.finalSize)}else{switch(c.translate(v,I,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(E[L].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[L].line]),0,0);break;case 2:c.translate(E[L].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[L].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(mt,0,0),c.translate(s[0]*E[L].an*.005,s[1]*lt*.01,0),v+=E[L].l+e.tr*.001*e.finalSize}f==="html"?xr=c.toCSS():f==="svg"?xr=c.to2dCSS():$r=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],zr=Ce}x<=L?(U=new Wl(zr,Dr,ui,Fr,xr,$r),this.renderedLetters.push(U),x+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[L],this.lettersChangedFlag=U.update(zr,Dr,ui,Fr,xr,$r)||this.lettersChangedFlag)}}},$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+=Zh(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 Ig={shapes:[]};function Or(e,r,s){this.textSpans=[],this.renderType="svg",this.initElement(e,r,s)}$([di,Ro,Os,Mo,hi,Ps,We],Or),Or.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},Or.prototype.buildTextContents=function(e){for(var r=0,s=e.length,n=[],d="";r<s;)e[r]==="\r"||e[r]===""?(n.push(d),d=""):d+=e[r],r+=1;return n.push(d),n},Or.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var s=e.shapes[0];if(s.it){var n=s.it[s.it.length-1];n.s&&(n.s.k[0]=r,n.s.k[1]=r)}}return e},Or.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,s=this.textProperty.currentData;this.renderedLetters=rt(s?s.l.length:0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",s.sw)),this.layerElement.setAttribute("font-size",s.finalSize);var n=this.globalData.fontManager.getFontByName(s.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var d=s.fWeight,c=s.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",s.t);var f=s.l||[],x=!!this.globalData.fontManager.chars;r=f.length;var v,I=this.mHelper,L="",B=this.data.singleShape,E=0,R=0,P=!0,M=s.tr*.001*s.finalSize;if(B&&!x&&!s.sz){var z=this.textContainer,w="start";switch(s.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}z.setAttribute("text-anchor",w),z.setAttribute("letter-spacing",M);var _=this.buildTextContents(s.finalText);for(r=_.length,R=s.ps?s.ps[1]+s.ascent:0,e=0;e<r;e+=1)v=this.textSpans[e].span||bt("tspan"),v.textContent=_[e],v.setAttribute("x",0),v.setAttribute("y",R),v.style.display="inherit",z.appendChild(v),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=v,R+=s.finalLineHeight;this.layerElement.appendChild(z)}else{var y=this.textSpans.length,A;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!x||!B||e===0){if(v=y>e?this.textSpans[e].span:bt(x?"g":"text"),y<=e){if(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=v,x){var k=bt("g");v.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=v,this.layerElement.appendChild(v)}v.style.display="inherit"}if(I.reset(),B&&(f[e].n&&(E=-M,R+=s.yOffset,R+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(s,I,f[e].line,E,R),E+=f[e].l||0,E+=M),x){A=this.globalData.fontManager.getCharData(s.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily);var D;if(A.t===1)D=new $s(A.data,this.globalData,this);else{var V=Ig;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,s.finalSize)),D=new Gt(V,this.globalData,this)}if(this.textSpans[e].glyph){var H=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(H.layerElement),H.destroy()}this.textSpans[e].glyph=D,D._debug=!0,D.prepareFrame(0),D.renderFrame(),this.textSpans[e].childSpan.appendChild(D.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+s.finalSize/100+","+s.finalSize/100+")")}else B&&v.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),v.textContent=f[e].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&v&&v.setAttribute("d",L)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Or.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Or.prototype.getValue=function(){var e,r=this.textSpans.length,s;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)s=this.textSpans[e].glyph,s&&(s.prepareFrame(this.comp.renderedFrame-this.data.st),s._mdf&&(this._mdf=!0))},Or.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,r,s=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;r=n.length;var d,c,f;for(e=0;e<r;e+=1)n[e].n||(d=s[e],c=this.textSpans[e].span,f=this.textSpans[e].glyph,f&&f.renderFrame(),d._mdf.m&&c.setAttribute("transform",d.m),d._mdf.o&&c.setAttribute("opacity",d.o),d._mdf.sw&&c.setAttribute("stroke-width",d.sw),d._mdf.sc&&c.setAttribute("stroke",d.sc),d._mdf.fc&&c.setAttribute("fill",d.fc))}};function jl(e,r,s){this.initElement(e,r,s)}$([Ds],jl),jl.prototype.createContent=function(){var e=bt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function mi(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initFrame(),this.initTransform(e,r,s),this.initHierarchy()}mi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},mi.prototype.renderFrame=function(){},mi.prototype.getBaseElement=function(){return null},mi.prototype.destroy=function(){},mi.prototype.sourceRectAtTime=function(){},mi.prototype.hide=function(){},$([di,Ro,Mo,hi],mi);function Qt(){}$([he],Qt),Qt.prototype.createNull=function(e){return new mi(e,this.globalData,this)},Qt.prototype.createShape=function(e){return new Gt(e,this.globalData,this)},Qt.prototype.createText=function(e){return new Or(e,this.globalData,this)},Qt.prototype.createImage=function(e){return new Ds(e,this.globalData,this)},Qt.prototype.createSolid=function(e){return new jl(e,this.globalData,this)},Qt.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var s=bt("clipPath"),n=bt("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var d=_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)},Qt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Qt.prototype.updateContainerSize=function(){},Qt.prototype.findIndexByInd=function(e){var r=0,s=this.layers.length;for(r=0;r<s;r+=1)if(this.layers[r].ind===e)return r;return-1},Qt.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var s=this.createItem(this.layers[e]);if(r[e]=s,Va()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(s),s.initExpressions()),this.appendElementInPos(s,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(s);else{var d=r[n],c=d.getMatte(this.layers[e].tt);s.setMatte(c)}}}},Qt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,s=this.elements.length;r<s;){if(this.elements[r]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,d=this.elements[n],c=d.getMatte(this.layers[r].tt);e.setMatte(c);break}r+=1}}},Qt.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,s=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=s-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Qt.prototype.appendElementInPos=function(e,r){var s=e.getBaseElement();if(s){for(var n=0,d;n<r;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(d=this.elements[n].getBaseElement()),n+=1;d?this.layerElement.insertBefore(s,d):this.layerElement.appendChild(s)}},Qt.prototype.hide=function(){this.layerElement.style.display="none"},Qt.prototype.show=function(){this.layerElement.style.display="block"};function Pr(){}$([di,Ro,Mo,hi,Ps],Pr),Pr.prototype.initElement=function(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initTransform(e,r,s),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},Pr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var s,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&(this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st),this.elements[s]._mdf&&(this._mdf=!0))}},Pr.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Pr.prototype.setElements=function(e){this.elements=e},Pr.prototype.getElements=function(){return this.elements},Pr.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},Pr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function $s(e,r,s){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?rt(this.layers.length):[],this.initElement(e,r,s),this.tm=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}$([Qt,Pr,Os],$s),$s.prototype.createComp=function(e){return new $s(e,this.globalData,this)};function ql(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var s="";if(r&&r.title){var n=bt("title"),d=_e();n.setAttribute("id",d),n.textContent=r.title,this.svgElement.appendChild(n),s+=d}if(r&&r.description){var c=bt("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=bt("defs");this.svgElement.appendChild(x);var v=bt("g");this.svgElement.appendChild(v),this.layerElement=v,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return $([Qt],ql),ql.prototype.createComp=function(e){return new $s(e,this.globalData,this)},Dv("svg",ql),li.registerModifier("tm",nr),li.registerModifier("pb",ks),li.registerModifier("rp",Er),li.registerModifier("rd",Cs),li.registerModifier("zz",Ns),li.registerModifier("op",Ls),Rt})});var an=globalThis,nn=an.ShadowRoot&&(an.ShadyCSS===void 0||an.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xl=Symbol(),Jh=new WeakMap,zs=class{constructor(i,t,o){if(this._$cssResult$=!0,o!==Xl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(nn&&i===void 0){let o=t!==void 0&&t.length===1;o&&(i=Jh.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),o&&Jh.set(t,i))}return i}toString(){return this.cssText}},tp=l=>new zs(typeof l=="string"?l:l+"",void 0,Xl),G=(l,...i)=>{let t=l.length===1?l[0]:i.reduce((o,a,h)=>o+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+l[h+1],l[0]);return new zs(t,l,Xl)},Zl=(l,i)=>{if(nn)l.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let o=document.createElement("style"),a=an.litNonce;a!==void 0&&o.setAttribute("nonce",a),o.textContent=t.cssText,l.appendChild(o)}},ln=nn?l=>l:l=>l instanceof CSSStyleSheet?(i=>{let t="";for(let o of i.cssRules)t+=o.cssText;return tp(t)})(l):l;var{is:Og,defineProperty:Pg,getOwnPropertyDescriptor:Dg,getOwnPropertyNames:Fg,getOwnPropertySymbols:$g,getPrototypeOf:zg}=Object,bi=globalThis,ep=bi.trustedTypes,Vg=ep?ep.emptyScript:"",Ql=bi.reactiveElementPolyfillSupport,Vs=(l,i)=>l,Bs={toAttribute(l,i){switch(i){case Boolean:l=l?Vg:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,i){let t=l;switch(i){case Boolean:t=l!==null;break;case Number:t=l===null?null:Number(l);break;case Object:case Array:try{t=JSON.parse(l)}catch{t=null}}return t}},cn=(l,i)=>!Og(l,i),rp={attribute:!0,type:String,converter:Bs,reflect:!1,hasChanged:cn},ip,op;(ip=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(op=bi.litPropertyMetadata)!=null||(bi.litPropertyMetadata=new WeakMap);var Vr=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=rp){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let o=Symbol(),a=this.getPropertyDescriptor(i,o,t);a!==void 0&&Pg(this.prototype,i,a)}}static getPropertyDescriptor(i,t,o){var u;let{get:a,set:h}=(u=Dg(this.prototype,i))!=null?u:{get(){return this[t]},set(T){this[t]=T}};return{get(){return a==null?void 0:a.call(this)},set(T){let N=a==null?void 0:a.call(this);h.call(this,T),this.requestUpdate(i,N,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:rp}static _$Ei(){if(this.hasOwnProperty(Vs("elementProperties")))return;let i=zg(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Vs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vs("properties"))){let t=this.properties,o=[...Fg(t),...$g(t)];for(let a of o)this.createProperty(a,t[a])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[o,a]of t)this.elementProperties.set(o,a)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let a=this._$Eu(t,o);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let o=new Set(i.flat(1/0).reverse());for(let a of o)t.unshift(ln(a))}else i!==void 0&&t.push(ln(i));return t}static _$Eu(i,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,o;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((o=i.hostConnected)==null||o.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(i.set(o,this[o]),delete this[o]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Zl(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(o=>{var a;return(a=o.hostConnected)==null?void 0:a.call(o)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(i,t,o){this._$AK(i,o)}_$EC(i,t){var h;let o=this.constructor.elementProperties.get(i),a=this.constructor._$Eu(i,o);if(a!==void 0&&o.reflect===!0){let u=(((h=o.converter)==null?void 0:h.toAttribute)!==void 0?o.converter:Bs).toAttribute(t,o.type);this._$Em=i,u==null?this.removeAttribute(a):this.setAttribute(a,u),this._$Em=null}}_$AK(i,t){var h;let o=this.constructor,a=o._$Eh.get(i);if(a!==void 0&&this._$Em!==a){let u=o.getPropertyOptions(a),T=typeof u.converter=="function"?{fromAttribute:u.converter}:((h=u.converter)==null?void 0:h.fromAttribute)!==void 0?u.converter:Bs;this._$Em=a,this[a]=T.fromAttribute(t,u.type),this._$Em=null}}requestUpdate(i,t,o){var a;if(i!==void 0){if(o!=null||(o=this.constructor.getPropertyOptions(i)),!((a=o.hasChanged)!=null?a:cn)(this[i],t))return;this.P(i,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,o){var a;this._$AL.has(i)||this._$AL.set(i,t),o.reflect===!0&&this._$Em!==i&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[u,T]of this._$Ep)this[u]=T;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[u,T]of h)T.wrapped!==!0||this._$AL.has(u)||this[u]===void 0||this.P(u,this[u],T)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(a=this._$EO)==null||a.forEach(h=>{var u;return(u=h.hostUpdate)==null?void 0:u.call(h)}),this.update(t)):this._$EU()}catch(h){throw i=!1,this._$EU(),h}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(o=>{var a;return(a=o.hostUpdated)==null?void 0:a.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},sp;Vr.elementStyles=[],Vr.shadowRootOptions={mode:"open"},Vr[Vs("elementProperties")]=new Map,Vr[Vs("finalized")]=new Map,Ql==null||Ql({ReactiveElement:Vr}),((sp=bi.reactiveElementVersions)!=null?sp:bi.reactiveElementVersions=[]).push("2.0.4");var Hs=globalThis,dn=Hs.trustedTypes,ap=dn?dn.createPolicy("lit-html",{createHTML:l=>l}):void 0,ec="$lit$",Br=`lit$${Math.random().toFixed(9).slice(2)}$`,rc="?"+Br,Bg=`<${rc}>`,Ui=document,Gs=()=>Ui.createComment(""),Ys=l=>l===null||typeof l!="object"&&typeof l!="function",ic=Array.isArray,mp=l=>ic(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",Jl=`[
|
3
|
-
\f\r]`,Us=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),cp=/'/g,dp=/"/g,up=/^(?:script|style|textarea|title)$/i,oc=l=>(i,...t)=>({_$litType$:l,strings:i,values:t}),C=oc(1),XT=oc(2),ZT=oc(3),Ne=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),hp=new WeakMap,Bi=Ui.createTreeWalker(Ui,129);function fp(l,i){if(!ic(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return ap!==void 0?ap.createHTML(i):i}var vp=(l,i)=>{let t=l.length-1,o=[],a,h=i===2?"<svg>":i===3?"<math>":"",u=Us;for(let T=0;T<t;T++){let N=l[T],$,q,K=-1,nt=0;for(;nt<N.length&&(u.lastIndex=nt,q=u.exec(N),q!==null);)nt=u.lastIndex,u===Us?q[1]==="!--"?u=np:q[1]!==void 0?u=lp:q[2]!==void 0?(up.test(q[2])&&(a=RegExp("</"+q[2],"g")),u=Vi):q[3]!==void 0&&(u=Vi):u===Vi?q[0]===">"?(u=a!=null?a:Us,K=-1):q[1]===void 0?K=-2:(K=u.lastIndex-q[2].length,$=q[1],u=q[3]===void 0?Vi:q[3]==='"'?dp:cp):u===dp||u===cp?u=Vi:u===np||u===lp?u=Us:(u=Vi,a=void 0);let Q=u===Vi&&l[T+1].startsWith("/>")?" ":"";h+=u===Us?N+Bg:K>=0?(o.push($),N.slice(0,K)+ec+N.slice(K)+Br+Q):N+Br+(K===-2?T:Q)}return[fp(l,h+(l[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),o]},Ws=class l{constructor({strings:i,_$litType$:t},o){let a;this.parts=[];let h=0,u=0,T=i.length-1,N=this.parts,[$,q]=vp(i,t);if(this.el=l.createElement($,o),Bi.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(a=Bi.nextNode())!==null&&N.length<T;){if(a.nodeType===1){if(a.hasAttributes())for(let K of a.getAttributeNames())if(K.endsWith(ec)){let nt=q[u++],Q=a.getAttribute(K).split(Br),rt=/([.?@])?(.*)/.exec(nt);N.push({type:1,index:h,name:rt[2],strings:Q,ctor:rt[1]==="."?pn:rt[1]==="?"?mn:rt[1]==="@"?un:Gi}),a.removeAttribute(K)}else K.startsWith(Br)&&(N.push({type:6,index:h}),a.removeAttribute(K));if(up.test(a.tagName)){let K=a.textContent.split(Br),nt=K.length-1;if(nt>0){a.textContent=dn?dn.emptyScript:"";for(let Q=0;Q<nt;Q++)a.append(K[Q],Gs()),Bi.nextNode(),N.push({type:2,index:++h});a.append(K[nt],Gs())}}}else if(a.nodeType===8)if(a.data===rc)N.push({type:2,index:h});else{let K=-1;for(;(K=a.data.indexOf(Br,K+1))!==-1;)N.push({type:7,index:h}),K+=Br.length-1}h++}}static createElement(i,t){let o=Ui.createElement("template");return o.innerHTML=i,o}};function Hi(l,i,t=l,o){var u,T,N;if(i===Ne)return i;let a=o!==void 0?(u=t.o)==null?void 0:u[o]:t.l,h=Ys(i)?void 0:i._$litDirective$;return(a==null?void 0:a.constructor)!==h&&((T=a==null?void 0:a._$AO)==null||T.call(a,!1),h===void 0?a=void 0:(a=new h(l),a._$AT(l,t,o)),o!==void 0?((N=t.o)!=null?N:t.o=[])[o]=a:t.l=a),a!==void 0&&(i=Hi(l,a._$AS(l,i.values),a,o)),i}var hn=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var $;let{el:{content:t},parts:o}=this._$AD,a=(($=i==null?void 0:i.creationScope)!=null?$:Ui).importNode(t,!0);Bi.currentNode=a;let h=Bi.nextNode(),u=0,T=0,N=o[0];for(;N!==void 0;){if(u===N.index){let q;N.type===2?q=new Po(h,h.nextSibling,this,i):N.type===1?q=new N.ctor(h,N.name,N.strings,this,i):N.type===6&&(q=new fn(h,this,i)),this._$AV.push(q),N=o[++T]}u!==(N==null?void 0:N.index)&&(h=Bi.nextNode(),u++)}return Bi.currentNode=Ui,a}p(i){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(i,o,t),t+=o.strings.length-2):o._$AI(i[t])),t++}},Po=class l{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,o,a){var h;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=o,this.options=a,this.v=(h=a==null?void 0:a.isConnected)!=null?h:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=Hi(this,i,t),Ys(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==Ne&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):mp(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==W&&Ys(this._$AH)?this._$AA.nextSibling.data=i:this.T(Ui.createTextNode(i)),this._$AH=i}$(i){var h;let{values:t,_$litType$:o}=i,a=typeof o=="number"?this._$AC(i):(o.el===void 0&&(o.el=Ws.createElement(fp(o.h,o.h[0]),this.options)),o);if(((h=this._$AH)==null?void 0:h._$AD)===a)this._$AH.p(t);else{let u=new hn(a,this),T=u.u(this.options);u.p(t),this.T(T),this._$AH=u}}_$AC(i){let t=hp.get(i.strings);return t===void 0&&hp.set(i.strings,t=new Ws(i)),t}k(i){ic(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,a=0;for(let h of i)a===t.length?t.push(o=new l(this.O(Gs()),this.O(Gs()),this,this.options)):o=t[a],o._$AI(h),a++;a<t.length&&(this._$AR(o&&o._$AB.nextSibling,a),t.length=a)}_$AR(i=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);i&&i!==this._$AB;){let a=i.nextSibling;i.remove(),i=a}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},Gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,o,a,h){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=t,this._$AM=a,this.options=h,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=W}_$AI(i,t=this,o,a){let h=this.strings,u=!1;if(h===void 0)i=Hi(this,i,t,0),u=!Ys(i)||i!==this._$AH&&i!==Ne,u&&(this._$AH=i);else{let T=i,N,$;for(i=h[0],N=0;N<h.length-1;N++)$=Hi(this,T[o+N],t,N),$===Ne&&($=this._$AH[N]),u||(u=!Ys($)||$!==this._$AH[N]),$===W?i=W:i!==W&&(i+=($!=null?$:"")+h[N+1]),this._$AH[N]=$}u&&!a&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},pn=class extends Gi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},mn=class extends Gi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},un=class extends Gi{constructor(i,t,o,a,h){super(i,t,o,a,h),this.type=5}_$AI(i,t=this){var u;if((i=(u=Hi(this,i,t,0))!=null?u:W)===Ne)return;let o=this._$AH,a=i===W&&o!==W||i.capture!==o.capture||i.once!==o.once||i.passive!==o.passive,h=i!==W&&(o===W||a);a&&this.element.removeEventListener(this.name,this,o),h&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)==null?void 0:t.host)!=null?o:this.element,i):this._$AH.handleEvent(i)}},fn=class{constructor(i,t,o){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(i){Hi(this,i)}},gp={M:ec,P:Br,A:rc,C:1,L:vp,R:hn,D:mp,V:Hi,I:Po,H:Gi,N:mn,U:un,B:pn,F:fn},tc=Hs.litHtmlPolyfillSupport,pp;tc==null||tc(Ws,Po),((pp=Hs.litHtmlVersions)!=null?pp:Hs.litHtmlVersions=[]).push("3.2.0");var bp=(l,i,t)=>{var h,u;let o=(h=t==null?void 0:t.renderBefore)!=null?h:i,a=o._$litPart$;if(a===void 0){let T=(u=t==null?void 0:t.renderBefore)!=null?u:null;o._$litPart$=a=new Po(i.insertBefore(Gs(),T),T,void 0,t!=null?t:{})}return a._$AI(l),a};var yi=class extends Vr{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,o;let i=super.createRenderRoot();return(o=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=bp(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return Ne}},yp;yi._$litElement$=!0,yi.finalized=!0,(yp=globalThis.litElementHydrateSupport)==null||yp.call(globalThis,{LitElement:yi});var sc=globalThis.litElementPolyfillSupport;sc==null||sc({LitElement:yi});var Ep;((Ep=globalThis.litElementVersions)!=null?Ep:globalThis.litElementVersions=[]).push("4.1.0");var Ug={attribute:!0,type:String,converter:Bs,reflect:!1,hasChanged:cn},Hg=(l=Ug,i,t)=>{let{kind:o,metadata:a}=t,h=globalThis.litPropertyMetadata.get(a);if(h===void 0&&globalThis.litPropertyMetadata.set(a,h=new Map),h.set(t.name,l),o==="accessor"){let{name:u}=t;return{set(T){let N=i.get.call(this);i.set.call(this,T),this.requestUpdate(u,N,l)},init(T){return T!==void 0&&this.P(u,void 0,l),T}}}if(o==="setter"){let{name:u}=t;return function(T){let N=this[u];i.call(this,T),this.requestUpdate(u,N,l)}}throw Error("Unsupported decorator location: "+o)};function g(l){return(i,t)=>typeof t=="object"?Hg(l,i,t):((o,a,h)=>{let u=a.hasOwnProperty(h);return a.constructor.createProperty(h,u?{...o,wrapped:!0}:o),u?Object.getOwnPropertyDescriptor(a,h):void 0})(l,i,t)}function xt(l){return g({...l,state:!0,attribute:!1})}var Ur=(l,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(l,i,t),t);function Hr(l,i){return(t,o,a)=>{let h=u=>{var T,N;return(N=(T=u.renderRoot)==null?void 0:T.querySelector(l))!=null?N:null};if(i){let{get:u,set:T}=typeof o=="object"?t:a!=null?a:(()=>{let N=Symbol();return{get(){return this[N]},set($){this[N]=$}}})();return Ur(t,o,{get(){let N=u.call(this);return N===void 0&&(N=h(this),(N!==null||this.hasUpdated)&&T.call(this,N)),N}})}return Ur(t,o,{get(){return h(this)}})}}function Lt(l){return(i,t)=>{let{slot:o,selector:a}=l!=null?l:{},h="slot"+(o?`[name=${o}]`:":not([name])");return Ur(i,t,{get(){var N,$;let u=(N=this.renderRoot)==null?void 0:N.querySelector(h),T=($=u==null?void 0:u.assignedElements(l))!=null?$:[];return a===void 0?T:T.filter(q=>q.matches(a))}})}}function vn(l){return(i,t)=>{let{slot:o}=l!=null?l:{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ur(i,t,{get(){var u,T;let h=(u=this.renderRoot)==null?void 0:u.querySelector(a);return(T=h==null?void 0:h.assignedNodes(l))!=null?T:[]}})}}var Gg={PREFIX:"mdc",SEPARATOR:"-"},Yg={NAMESPACE:Gg},ac=Yg;var Wg=l=>[ac.NAMESPACE.PREFIX,l].join(ac.NAMESPACE.SEPARATOR),Y={constructTagName:Wg};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},Do={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},js={SIZE:Yi[32],TYPE:Do.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Gr=Y.constructTagName("button"),Ot={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},qs={40:40,32:32,28:28,24:24},je={64:64,52:52,20:20,...qs},Wi={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Fo={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Le={VARIANT:Ot.PRIMARY,SIZE:qs[32],COLOR:Wi.DEFAULT,TYPE_INTERNAL:Fo.ICON,TYPE:Do.BUTTON,INVERTED:!1};var gn=l=>{class i 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 u=this.typeInternal===Fo.ICON?Object.values(je).includes(a)&&!(a===je[20]&&this.variant!==Ot.TERTIARY):Object.values(qs).includes(a);this.setAttribute("size",u?`${a}`:`${Le.SIZE}`)}inferButtonType(){var $,q,K,nt,Q,rt;let a=(q=($=this.shadowRoot)==null?void 0:$.querySelector("slot:not([name])"))==null?void 0:q.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,h=(nt=(K=this.shadowRoot)==null?void 0:K.querySelector('slot[name="prefix"]'))==null?void 0:nt.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,u=this.prefixIcon||h&&h>0,T=(rt=(Q=this.shadowRoot)==null?void 0:Q.querySelector('slot[name="postfix"]'))==null?void 0:rt.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,N=this.postfixIcon||T&&T>0;a&&(u||N)?(this.typeInternal=Fo.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!a&&(u||N)?(this.typeInternal=Fo.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Fo.PILL,this.setAttribute("data-btn-type","pill"))}}return p([g({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),p([g({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),p([g({type:String})],i.prototype,"variant",2),p([g({type:String})],i.prototype,"color",2),p([xt()],i.prototype,"typeInternal",2),i};var Tp=G`
|
1
|
+
"use strict";(()=>{var Cg=Object.create;var Xl=Object.defineProperty;var Jh=Object.getOwnPropertyDescriptor;var wg=Object.getOwnPropertyNames;var Ng=Object.getPrototypeOf,Lg=Object.prototype.hasOwnProperty;var Rg=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var Mg=(l,i,t,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of wg(i))!Lg.call(l,a)&&a!==t&&Xl(l,a,{get:()=>i[a],enumerable:!(o=Jh(i,a))||o.enumerable});return l};var Og=(l,i,t)=>(t=l!=null?Cg(Ng(l)):{},Mg(i||!l||!l.__esModule?Xl(t,"default",{value:l,enumerable:!0}):t,l));var p=(l,i,t,o)=>{for(var a=o>1?void 0:o?Jh(i,t):i,h=l.length-1,m;h>=0;h--)(m=l[h])&&(a=(o?m(i,t,a):m(a))||a);return o&&a&&Xl(i,t,a),a};var Xp=Rg((ea,Mn)=>{typeof navigator<"u"&&function(l,i){typeof ea=="object"&&typeof Mn<"u"?Mn.exports=i():typeof define=="function"&&define.amd?define(i):(l=typeof globalThis<"u"?globalThis:l||self,l.lottie=i())}(ea,function(){"use strict";var l="http://www.w3.org/2000/svg",i="",t=!1,o=-999999,a=function(r){t=!!r},h=function(){return t},m=function(r){i=r},T=function(){return i};function N(e){return document.createElement(e)}function $(e,r){var s,n=e.length,d;for(s=0;s<n;s+=1){d=e[s].prototype;for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(r.prototype[c]=d[c])}}function q(e,r){return Object.getOwnPropertyDescriptor(e,r)}function K(e){function r(){}return r.prototype=e,r}var nt=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(s){this.audios.push(s)},pause:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].pause()},resume:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].resume()},setRate:function(s){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].setRate(s)},createAudio:function(s){return this.audioFactory?this.audioFactory(s):window.Howl?new window.Howl({src:[s]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(s){this.audioFactory=s},setVolume:function(s){this._volume=s,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),Q=function(){function e(s,n){var d=0,c=[],f;switch(s){case"int16":case"uint8c":f=1;break;default:f=1.1;break}for(d=0;d<n;d+=1)c.push(f);return c}function r(s,n){return s==="float32"?new Float32Array(n):s==="int16"?new Int16Array(n):s==="uint8c"?new Uint8ClampedArray(n):e(s,n)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r:e}();function rt(e){return Array.apply(null,{length:e})}function dt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(s){return typeof s}:dt=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},dt(e)}var ut=!0,Tt=null,St=null,Ct="",Ht=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Dt=!1,zt=Math.pow,Wt=Math.sqrt,ie=Math.floor,or=Math.max,_e=Math.min,Ve={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r,s=e.length;for(r=0;r<s;r+=1)Ve[e[r]]=Math[e[r]]})();function sr(){return{}}Ve.random=Math.random,Ve.abs=function(e){var r=dt(e);if(r==="object"&&e.length){var s=rt(e.length),n,d=e.length;for(n=0;n<d;n+=1)s[n]=Math.abs(e[n]);return s}return Math.abs(e)};var ar=150,It=Math.PI/180,le=.5519;function Be(e){Dt=!!e}function Ue(e){return Dt?Math.round(e):e}function He(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function Ge(e,r,s,n){this.type=e,this.currentTime=r,this.totalTime=s,this.direction=n<0?-1:1}function za(e,r){this.type=e,this.direction=r<0?-1:1}function ah(e,r,s,n){this.type=e,this.currentLoop=s,this.totalLoops=r,this.direction=n<0?-1:1}function nh(e,r,s){this.type=e,this.firstFrame=r,this.totalFrames=s}function lh(e,r){this.type=e,this.target=r}function Cv(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}function wv(e){this.type="configError",this.nativeError=e}function BT(e,r){this.type=e,this.nativeError=r}var Ie=function(){var e=0;return function(){return e+=1,Ct+"__lottie_element_"+e}}();function Fl(e,r,s){var n,d,c,f,x,v,I,L;switch(f=Math.floor(e*6),x=e*6-f,v=s*(1-r),I=s*(1-x*r),L=s*(1-(1-x)*r),f%6){case 0:n=s,d=L,c=v;break;case 1:n=I,d=s,c=v;break;case 2:n=v,d=s,c=L;break;case 3:n=v,d=I,c=s;break;case 4:n=L,d=v,c=s;break;case 5:n=s,d=v,c=I;break;default:break}return[n,d,c]}function $l(e,r,s){var n=Math.max(e,r,s),d=Math.min(e,r,s),c=n-d,f,x=n===0?0:c/n,v=n/255;switch(n){case d:f=0;break;case e:f=r-s+c*(r<s?6:0),f/=6*c;break;case r:f=s-e+c*2,f/=6*c;break;case s:f=e-r+c*4,f/=6*c;break;default:break}return[f,x,v]}function ch(e,r){var s=$l(e[0]*255,e[1]*255,e[2]*255);return s[1]+=r,s[1]>1?s[1]=1:s[1]<=0&&(s[1]=0),Fl(s[0],s[1],s[2])}function dh(e,r){var s=$l(e[0]*255,e[1]*255,e[2]*255);return s[2]+=r,s[2]>1?s[2]=1:s[2]<0&&(s[2]=0),Fl(s[0],s[1],s[2])}function hh(e,r){var s=$l(e[0]*255,e[1]*255,e[2]*255);return s[0]+=r/360,s[0]>1?s[0]-=1:s[0]<0&&(s[0]+=1),Fl(s[0],s[1],s[2])}var UT=function(){var e=[],r,s;for(r=0;r<256;r+=1)s=r.toString(16),e[r]=s.length===1?"0"+s:s;return function(n,d,c){return n<0&&(n=0),d<0&&(d=0),c<0&&(c=0),"#"+e[n]+e[d]+e[c]}}(),Nv=function(r){ut=!!r},Lv=function(){return ut},Rv=function(r){Tt=r},Va=function(){return Tt},HT=function(r){St=r},ph=function(){return St},Ba=function(r){ar=r},xs=function(){return ar},Mv=function(r){Ct=r},GT=function(){return Ct};function bt(e){return document.createElementNS(l,e)}function Ua(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ua=function(s){return typeof s}:Ua=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},Ua(e)}var As=function(){var e=1,r=[],s,n,d={onmessage:function(){},postMessage:function(R){s({data:R})}},c={postMessage:function(R){d.onmessage({data:R})}};function f(E){if(window.Worker&&window.Blob&&h()){var R=new Blob(["var _workerSelf = self; self.onmessage = ",E.toString()],{type:"text/javascript"}),P=URL.createObjectURL(R);return new Worker(P)}return s=E,d}function x(){n||(n=f(function(R){function P(){function z(X,S){var O,u,b=X.length,U,F,at,mt;for(u=0;u<b;u+=1)if(O=X[u],"ks"in O&&!O.completed){if(O.completed=!0,O.hasMask){var vt=O.masksProperties;for(F=vt.length,U=0;U<F;U+=1)if(vt[U].pt.k.i)k(vt[U].pt.k);else for(mt=vt[U].pt.k.length,at=0;at<mt;at+=1)vt[U].pt.k[at].s&&k(vt[U].pt.k[at].s[0]),vt[U].pt.k[at].e&&k(vt[U].pt.k[at].e[0])}O.ty===0?(O.layers=y(O.refId,S),z(O.layers,S)):O.ty===4?A(O.shapes):O.ty===5&&yt(O)}}function w(X,S){if(X){var O=0,u=X.length;for(O=0;O<u;O+=1)X[O].t===1&&(X[O].data.layers=y(X[O].data.refId,S),z(X[O].data.layers,S))}}function _(X,S){for(var O=0,u=S.length;O<u;){if(S[O].id===X)return S[O];O+=1}return null}function y(X,S){var O=_(X,S);return O?O.layers.__used?JSON.parse(JSON.stringify(O.layers)):(O.layers.__used=!0,O.layers):null}function A(X){var S,O=X.length,u,b;for(S=O-1;S>=0;S-=1)if(X[S].ty==="sh")if(X[S].ks.k.i)k(X[S].ks.k);else for(b=X[S].ks.k.length,u=0;u<b;u+=1)X[S].ks.k[u].s&&k(X[S].ks.k[u].s[0]),X[S].ks.k[u].e&&k(X[S].ks.k[u].e[0]);else X[S].ty==="gr"&&A(X[S].it)}function k(X){var S,O=X.i.length;for(S=0;S<O;S+=1)X.i[S][0]+=X.v[S][0],X.i[S][1]+=X.v[S][1],X.o[S][0]+=X.v[S][0],X.o[S][1]+=X.v[S][1]}function D(X,S){var O=S?S.split("."):[100,100,100];return X[0]>O[0]?!0:O[0]>X[0]?!1:X[1]>O[1]?!0:O[1]>X[1]?!1:X[2]>O[2]?!0:O[2]>X[2]?!1:null}var V=function(){var X=[4,4,14];function S(u){var b=u.t.d;u.t.d={k:[{s:b,t:0}]}}function O(u){var b,U=u.length;for(b=0;b<U;b+=1)u[b].ty===5&&S(u[b])}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}(),H=function(){var X=[4,7,99];return function(S){if(S.chars&&!D(X,S.v)){var O,u=S.chars.length;for(O=0;O<u;O+=1){var b=S.chars[O];b.data&&b.data.shapes&&(A(b.data.shapes),b.data.ip=0,b.data.op=99999,b.data.st=0,b.data.sr=1,b.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},S.chars[O].t||(b.data.shapes.push({ty:"no"}),b.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Z=function(){var X=[5,7,15];function S(u){var b=u.t.p;typeof b.a=="number"&&(b.a={a:0,k:b.a}),typeof b.p=="number"&&(b.p={a:0,k:b.p}),typeof b.r=="number"&&(b.r={a:0,k:b.r})}function O(u){var b,U=u.length;for(b=0;b<U;b+=1)u[b].ty===5&&S(u[b])}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}(),ft=function(){var X=[4,1,9];function S(u){var b,U=u.length,F,at;for(b=0;b<U;b+=1)if(u[b].ty==="gr")S(u[b].it);else if(u[b].ty==="fl"||u[b].ty==="st")if(u[b].c.k&&u[b].c.k[0].i)for(at=u[b].c.k.length,F=0;F<at;F+=1)u[b].c.k[F].s&&(u[b].c.k[F].s[0]/=255,u[b].c.k[F].s[1]/=255,u[b].c.k[F].s[2]/=255,u[b].c.k[F].s[3]/=255),u[b].c.k[F].e&&(u[b].c.k[F].e[0]/=255,u[b].c.k[F].e[1]/=255,u[b].c.k[F].e[2]/=255,u[b].c.k[F].e[3]/=255);else u[b].c.k[0]/=255,u[b].c.k[1]/=255,u[b].c.k[2]/=255,u[b].c.k[3]/=255}function O(u){var b,U=u.length;for(b=0;b<U;b+=1)u[b].ty===4&&S(u[b].shapes)}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}(),ht=function(){var X=[4,4,18];function S(u){var b,U=u.length,F,at;for(b=U-1;b>=0;b-=1)if(u[b].ty==="sh")if(u[b].ks.k.i)u[b].ks.k.c=u[b].closed;else for(at=u[b].ks.k.length,F=0;F<at;F+=1)u[b].ks.k[F].s&&(u[b].ks.k[F].s[0].c=u[b].closed),u[b].ks.k[F].e&&(u[b].ks.k[F].e[0].c=u[b].closed);else u[b].ty==="gr"&&S(u[b].it)}function O(u){var b,U,F=u.length,at,mt,vt,wt;for(U=0;U<F;U+=1){if(b=u[U],b.hasMask){var Nt=b.masksProperties;for(mt=Nt.length,at=0;at<mt;at+=1)if(Nt[at].pt.k.i)Nt[at].pt.k.c=Nt[at].cl;else for(wt=Nt[at].pt.k.length,vt=0;vt<wt;vt+=1)Nt[at].pt.k[vt].s&&(Nt[at].pt.k[vt].s[0].c=Nt[at].cl),Nt[at].pt.k[vt].e&&(Nt[at].pt.k[vt].e[0].c=Nt[at].cl)}b.ty===4&&S(b.shapes)}}return function(u){if(D(X,u.v)&&(O(u.layers),u.assets)){var b,U=u.assets.length;for(b=0;b<U;b+=1)u.assets[b].layers&&O(u.assets[b].layers)}}}();function et(X){X.__complete||(ft(X),V(X),H(X),Z(X),ht(X),z(X.layers,X.assets),w(X.chars,X.assets),X.__complete=!0)}function yt(X){X.t.a.length===0&&"m"in X.t.p}var lt={};return lt.completeData=et,lt.checkColors=ft,lt.checkChars=H,lt.checkPathProperties=Z,lt.checkShapes=ht,lt.completeLayers=z,lt}if(c.dataManager||(c.dataManager=P()),c.assetLoader||(c.assetLoader=function(){function z(_){var y=_.getResponseHeader("content-type");return y&&_.responseType==="json"&&y.indexOf("json")!==-1||_.response&&Ua(_.response)==="object"?_.response:_.response&&typeof _.response=="string"?JSON.parse(_.response):_.responseText?JSON.parse(_.responseText):null}function w(_,y,A,k){var D,V=new XMLHttpRequest;try{V.responseType="json"}catch{}V.onreadystatechange=function(){if(V.readyState===4)if(V.status===200)D=z(V),A(D);else try{D=z(V),A(D)}catch(H){k&&k(H)}};try{V.open(["G","E","T"].join(""),_,!0)}catch{V.open(["G","E","T"].join(""),y+"/"+_,!0)}V.send()}return{load:w}}()),R.data.type==="loadAnimation")c.assetLoader.load(R.data.path,R.data.fullPath,function(z){c.dataManager.completeData(z),c.postMessage({id:R.data.id,payload:z,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})});else if(R.data.type==="complete"){var M=R.data.animation;c.dataManager.completeData(M),c.postMessage({id:R.data.id,payload:M,status:"success"})}else R.data.type==="loadData"&&c.assetLoader.load(R.data.path,R.data.fullPath,function(z){c.postMessage({id:R.data.id,payload:z,status:"success"})},function(){c.postMessage({id:R.data.id,status:"error"})})}),n.onmessage=function(E){var R=E.data,P=R.id,M=r[P];r[P]=null,R.status==="success"?M.onComplete(R.payload):M.onError&&M.onError()})}function v(E,R){e+=1;var P="processId_"+e;return r[P]={onComplete:E,onError:R},P}function I(E,R,P){x();var M=v(R,P);n.postMessage({type:"loadAnimation",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function L(E,R,P){x();var M=v(R,P);n.postMessage({type:"loadData",path:E,fullPath:window.location.origin+window.location.pathname,id:M})}function B(E,R,P){x();var M=v(R,P);n.postMessage({type:"complete",animation:E,id:M})}return{loadAnimation:I,loadData:L,completeAnimation:B}}(),Ov=function(){var e=function(){var w=N("canvas");w.width=1,w.height=1;var _=w.getContext("2d");return _.fillStyle="rgba(0,0,0,0)",_.fillRect(0,0,1,1),w}();function r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(w,_,y){var A="";if(w.e)A=w.p;else if(_){var k=w.p;k.indexOf("images/")!==-1&&(k=k.split("/")[1]),A=_+k}else A=y,A+=w.u?w.u:"",A+=w.p;return A}function d(w){var _=0,y=setInterval((function(){var A=w.getBBox();(A.width||_>500)&&(this._imageLoaded(),clearInterval(y)),_+=1}).bind(this),50)}function c(w){var _=n(w,this.assetsPath,this.path),y=bt("image");Ht?this.testImageLoaded(y):y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.setAttributeNS("http://www.w3.org/1999/xlink","href",_),this._elementHelper.append?this._elementHelper.append(y):this._elementHelper.appendChild(y);var A={img:y,assetData:w};return A}function f(w){var _=n(w,this.assetsPath,this.path),y=N("img");y.crossOrigin="anonymous",y.addEventListener("load",this._imageLoaded,!1),y.addEventListener("error",(function(){A.img=e,this._imageLoaded()}).bind(this),!1),y.src=_;var A={img:y,assetData:w};return A}function x(w){var _={assetData:w},y=n(w,this.assetsPath,this.path);return As.loadData(y,(function(A){_.img=A,this._footageLoaded()}).bind(this),(function(){_.img={},this._footageLoaded()}).bind(this)),_}function v(w,_){this.imagesLoadedCb=_;var y,A=w.length;for(y=0;y<A;y+=1)w[y].layers||(!w[y].t||w[y].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(w[y]))):w[y].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(w[y]))))}function I(w){this.path=w||""}function L(w){this.assetsPath=w||""}function B(w){for(var _=0,y=this.images.length;_<y;){if(this.images[_].assetData===w)return this.images[_].img;_+=1}return null}function E(){this.imagesLoadedCb=null,this.images.length=0}function R(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function M(w,_){w==="svg"?(this._elementHelper=_,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function z(){this._imageLoaded=r.bind(this),this._footageLoaded=s.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=x.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return z.prototype={loadAssets:v,setAssetsPath:L,setPath:I,loadedImages:R,loadedFootages:P,destroy:E,getAsset:B,createImgData:f,createImageData:c,imageLoaded:r,footageLoaded:s,setCacheType:M},z}();function mh(){}mh.prototype={triggerEvent:function(r,s){if(this._cbs[r])for(var n=this._cbs[r],d=0;d<n.length;d+=1)n[d](s)},addEventListener:function(r,s){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(s),(function(){this.removeEventListener(r,s)}).bind(this)},removeEventListener:function(r,s){if(!s)this._cbs[r]=null;else if(this._cbs[r]){for(var n=0,d=this._cbs[r].length;n<d;)this._cbs[r][n]===s&&(this._cbs[r].splice(n,1),n-=1,d-=1),n+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var Pv=function(){function e(r){for(var s=r.split(`\r
|
2
|
+
`),n={},d,c=0,f=0;f<s.length;f+=1)d=s[f].split(":"),d.length===2&&(n[d[0]]=d[1].trim(),c+=1);if(c===0)throw new Error;return n}return function(r){for(var s=[],n=0;n<r.length;n+=1){var d=r[n],c={time:d.tm,duration:d.dr};try{c.payload=JSON.parse(r[n].cm)}catch{try{c.payload=e(r[n].cm)}catch{c.payload={name:r[n].cm}}}s.push(c)}return s}}(),Dv=function(){function e(r){this.compositions.push(r)}return function(){function r(s){for(var n=0,d=this.compositions.length;n<d;){if(this.compositions[n].data&&this.compositions[n].data.nm===s)return this.compositions[n].prepareFrame&&this.compositions[n].data.xt&&this.compositions[n].prepareFrame(this.currentFrame),this.compositions[n].compInterface;n+=1}return null}return r.compositions=[],r.currentFrame=0,r.registerComposition=e,r}}(),Ss={},Fv=function(r,s){Ss[r]=s};function $v(e){return Ss[e]}function zv(){if(Ss.canvas)return"canvas";for(var e in Ss)if(Ss[e])return e;return""}function _s(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_s=function(s){return typeof s}:_s=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_s(e)}var pt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Ie(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Lv(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Dv(),this.imagePreloader=new Ov,this.audioController=nt(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ge("drawnFrame",0,0,0),this.expressionsPlugin=Va()};$([mh],pt),pt.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var s=$v(r);this.renderer=new s(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),As.loadAnimation(e.path,this.configAnimation,this.onSetupError))},pt.prototype.onSetupError=function(){this.trigger("data_failed")},pt.prototype.setupAnimation=function(e){As.completeAnimation(e,this.configAnimation)},pt.prototype.setData=function(e,r){r&&_s(r)!=="object"&&(r=JSON.parse(r));var s={wrapper:e,animationData:r},n=e.attributes;s.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",s.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:zv()||"canvas";var d=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";d==="false"?s.loop=!1:d==="true"?s.loop=!0:d!==""&&(s.loop=parseInt(d,10));var c=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:n.getNamedItem("bm-autoplay")?n.getNamedItem("bm-autoplay").value:!0;s.autoplay=c!=="false",s.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"";var f=n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"";f==="false"&&(s.prerender=!1),s.path?this.setParams(s):this.trigger("destroy")},pt.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var r=this.animationData.layers,s,n=r.length,d=e.layers,c,f=d.length;for(c=0;c<f;c+=1)for(s=0;s<n;){if(r[s].id===d[c].id){r[s]=d[c];break}s+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,s=0;s<n;s+=1)this.animationData.assets.push(e.assets[s]);this.animationData.__complete=!1,As.completeAnimation(this.animationData,this.onSegmentComplete)},pt.prototype.onSegmentComplete=function(e){this.animationData=e;var r=Va();r&&r.initExpressions(this),this.loadNextSegment()},pt.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var r=e.shift();this.timeCompleted=r.time*this.frameRate;var s=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,As.loadData(s,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},pt.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},pt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},pt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},pt.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=Pv(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(r){this.triggerConfigError(r)}},pt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},pt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=Va();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},pt.prototype.resize=function(e,r){var s=typeof e=="number"?e:void 0,n=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(s,n)},pt.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},pt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},pt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},pt.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},pt.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},pt.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},pt.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},pt.prototype.getMarkerData=function(e){for(var r,s=0;s<this.markers.length;s+=1)if(r=this.markers[s],r.payload&&r.payload.name===e)return r;return null},pt.prototype.goToAndStop=function(e,r,s){if(!(s&&this.name!==s)){var n=Number(e);if(isNaN(n)){var d=this.getMarkerData(e);d&&this.goToAndStop(d.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},pt.prototype.goToAndPlay=function(e,r,s){if(!(s&&this.name!==s)){var n=Number(e);if(isNaN(n)){var d=this.getMarkerData(e);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(n,r,s);this.play()}},pt.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,s=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(s=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(s=!0,r=0)):this.setCurrentRawFrameValue(r),s&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},pt.prototype.adjustSegment=function(e,r){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-r)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+r)),this.trigger("segmentStart")},pt.prototype.setSegment=function(e,r){var s=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?s=e:this.currentRawFrame+this.firstFrame>r&&(s=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,s!==-1&&this.goToAndStop(s,!0)},pt.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),_s(e[0])==="object"){var s,n=e.length;for(s=0;s<n;s+=1)this.segments.push(e[s])}else this.segments.push(e);this.segments.length&&r&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},pt.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},pt.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},pt.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},pt.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},pt.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},pt.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},pt.prototype.setLoop=function(e){this.loop=e},pt.prototype.setVolume=function(e,r){r&&this.name!==r||this.audioController.setVolume(e)},pt.prototype.getVolume=function(){return this.audioController.getVolume()},pt.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},pt.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},pt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},pt.prototype.getPath=function(){return this.path},pt.prototype.getAssetsPath=function(e){var r="";if(e.e)r=e.p;else if(this.assetsPath){var s=e.p;s.indexOf("images/")!==-1&&(s=s.split("/")[1]),r=this.assetsPath+s}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},pt.prototype.getAssetData=function(e){for(var r=0,s=this.assets.length;r<s;){if(e===this.assets[r].id)return this.assets[r];r+=1}return null},pt.prototype.hide=function(){this.renderer.hide()},pt.prototype.show=function(){this.renderer.show()},pt.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},pt.prototype.updateDocumentData=function(e,r,s){try{var n=this.renderer.getElementByPath(e);n.updateDocumentData(r,s)}catch{}},pt.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new Ge(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new ah(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new za(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new nh(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new lh(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ge(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new ah(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new za(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new nh(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new lh(e,this))},pt.prototype.triggerRenderFrameError=function(e){var r=new Cv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},pt.prototype.triggerConfigError=function(e){var r=new wv(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var jt=function(){var e={},r=[],s=0,n=0,d=0,c=!0,f=!1;function x(S){for(var O=0,u=S.target;O<n;)r[O].animation===u&&(r.splice(O,1),O-=1,n-=1,u.isPaused||B()),O+=1}function v(S,O){if(!S)return null;for(var u=0;u<n;){if(r[u].elem===S&&r[u].elem!==null)return r[u].animation;u+=1}var b=new pt;return E(b,S),b.setData(S,O),b}function I(){var S,O=r.length,u=[];for(S=0;S<O;S+=1)u.push(r[S].animation);return u}function L(){d+=1,ft()}function B(){d-=1}function E(S,O){S.addEventListener("destroy",x),S.addEventListener("_active",L),S.addEventListener("_idle",B),r.push({elem:O,animation:S}),n+=1}function R(S){var O=new pt;return E(O,null),O.setParams(S),O}function P(S,O){var u;for(u=0;u<n;u+=1)r[u].animation.setSpeed(S,O)}function M(S,O){var u;for(u=0;u<n;u+=1)r[u].animation.setDirection(S,O)}function z(S){var O;for(O=0;O<n;O+=1)r[O].animation.play(S)}function w(S){var O=S-s,u;for(u=0;u<n;u+=1)r[u].animation.advanceTime(O);s=S,d&&!f?window.requestAnimationFrame(w):c=!0}function _(S){s=S,window.requestAnimationFrame(w)}function y(S){var O;for(O=0;O<n;O+=1)r[O].animation.pause(S)}function A(S,O,u){var b;for(b=0;b<n;b+=1)r[b].animation.goToAndStop(S,O,u)}function k(S){var O;for(O=0;O<n;O+=1)r[O].animation.stop(S)}function D(S){var O;for(O=0;O<n;O+=1)r[O].animation.togglePause(S)}function V(S){var O;for(O=n-1;O>=0;O-=1)r[O].animation.destroy(S)}function H(S,O,u){var b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),U,F=b.length;for(U=0;U<F;U+=1)u&&b[U].setAttribute("data-bm-type",u),v(b[U],S);if(O&&F===0){u||(u="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var mt=N("div");mt.style.width="100%",mt.style.height="100%",mt.setAttribute("data-bm-type",u),at.appendChild(mt),v(mt,S)}}function Z(){var S;for(S=0;S<n;S+=1)r[S].animation.resize()}function ft(){!f&&d&&c&&(window.requestAnimationFrame(_),c=!1)}function ht(){f=!0}function et(){f=!1,ft()}function yt(S,O){var u;for(u=0;u<n;u+=1)r[u].animation.setVolume(S,O)}function lt(S){var O;for(O=0;O<n;O+=1)r[O].animation.mute(S)}function X(S){var O;for(O=0;O<n;O+=1)r[O].animation.unmute(S)}return e.registerAnimation=v,e.loadAnimation=R,e.setSpeed=P,e.setDirection=M,e.play=z,e.pause=y,e.stop=k,e.togglePause=D,e.searchAnimations=H,e.resize=Z,e.goToAndStop=A,e.destroy=V,e.freeze=ht,e.unfreeze=et,e.setVolume=yt,e.mute=lt,e.unmute=X,e.getRegisteredAnimations=I,e}(),Is=function(){var e={};e.getBezierEasing=s;var r={};function s(_,y,A,k,D){var V=D||("bez_"+_+"_"+y+"_"+A+"_"+k).replace(/\./g,"p");if(r[V])return r[V];var H=new w([_,y,A,k]);return r[V]=H,H}var n=4,d=.001,c=1e-7,f=10,x=11,v=1/(x-1),I=typeof Float32Array=="function";function L(_,y){return 1-3*y+3*_}function B(_,y){return 3*y-6*_}function E(_){return 3*_}function R(_,y,A){return((L(y,A)*_+B(y,A))*_+E(y))*_}function P(_,y,A){return 3*L(y,A)*_*_+2*B(y,A)*_+E(y)}function M(_,y,A,k,D){var V,H,Z=0;do H=y+(A-y)/2,V=R(H,k,D)-_,V>0?A=H:y=H;while(Math.abs(V)>c&&++Z<f);return H}function z(_,y,A,k){for(var D=0;D<n;++D){var V=P(y,A,k);if(V===0)return y;var H=R(y,A,k)-_;y-=H/V}return y}function w(_){this._p=_,this._mSampleValues=I?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return w.prototype={get:function(y){var A=this._p[0],k=this._p[1],D=this._p[2],V=this._p[3];return this._precomputed||this._precompute(),A===k&&D===V?y:y===0?0:y===1?1:R(this._getTForX(y),k,V)},_precompute:function(){var y=this._p[0],A=this._p[1],k=this._p[2],D=this._p[3];this._precomputed=!0,(y!==A||k!==D)&&this._calcSampleValues()},_calcSampleValues:function(){for(var y=this._p[0],A=this._p[2],k=0;k<x;++k)this._mSampleValues[k]=R(k*v,y,A)},_getTForX:function(y){for(var A=this._p[0],k=this._p[2],D=this._mSampleValues,V=0,H=1,Z=x-1;H!==Z&&D[H]<=y;++H)V+=v;--H;var ft=(y-D[H])/(D[H+1]-D[H]),ht=V+ft*v,et=P(ht,A,k);return et>=d?z(y,ht,A,k):et===0?ht:M(y,V,V+v,A,k)}},e}(),uh=function(){function e(r){return r.concat(rt(r.length))}return{double:e}}(),Ha=function(){return function(e,r,s){var n=0,d=e,c=rt(d),f={newElement:x,release:v};function x(){var I;return n?(n-=1,I=c[n]):I=r(),I}function v(I){n===d&&(c=uh.double(c),d*=2),s&&s(I),c[n]=I,n+=1}return f}}(),fh=function(){function e(){return{addedLength:0,percents:Q("float32",xs()),lengths:Q("float32",xs())}}return Ha(8,e)}(),vh=function(){function e(){return{lengths:[],totalLength:0}}function r(s){var n,d=s.lengths.length;for(n=0;n<d;n+=1)fh.release(s.lengths[n]);s.lengths.length=0}return Ha(8,e,r)}();function Vv(){var e=Math;function r(E,R,P,M,z,w){var _=E*M+R*z+P*w-z*M-w*E-P*R;return _>-.001&&_<.001}function s(E,R,P,M,z,w,_,y,A){if(P===0&&w===0&&A===0)return r(E,R,M,z,_,y);var k=e.sqrt(e.pow(M-E,2)+e.pow(z-R,2)+e.pow(w-P,2)),D=e.sqrt(e.pow(_-E,2)+e.pow(y-R,2)+e.pow(A-P,2)),V=e.sqrt(e.pow(_-M,2)+e.pow(y-z,2)+e.pow(A-w,2)),H;return k>D?k>V?H=k-D-V:H=V-D-k:V>D?H=V-D-k:H=D-k-V,H>-1e-4&&H<1e-4}var n=function(){return function(E,R,P,M){var z=xs(),w,_,y,A,k,D=0,V,H=[],Z=[],ft=fh.newElement();for(y=P.length,w=0;w<z;w+=1){for(k=w/(z-1),V=0,_=0;_<y;_+=1)A=zt(1-k,3)*E[_]+3*zt(1-k,2)*k*P[_]+3*(1-k)*zt(k,2)*M[_]+zt(k,3)*R[_],H[_]=A,Z[_]!==null&&(V+=zt(H[_]-Z[_],2)),Z[_]=H[_];V&&(V=Wt(V),D+=V),ft.percents[w]=k,ft.lengths[w]=D}return ft.addedLength=D,ft}}();function d(E){var R=vh.newElement(),P=E.c,M=E.v,z=E.o,w=E.i,_,y=E._length,A=R.lengths,k=0;for(_=0;_<y-1;_+=1)A[_]=n(M[_],M[_+1],z[_],w[_+1]),k+=A[_].addedLength;return P&&y&&(A[_]=n(M[_],M[0],z[_],w[0]),k+=A[_].addedLength),R.totalLength=k,R}function c(E){this.segmentLength=0,this.points=new Array(E)}function f(E,R){this.partialLength=E,this.point=R}var x=function(){var E={};return function(R,P,M,z){var w=(R[0]+"_"+R[1]+"_"+P[0]+"_"+P[1]+"_"+M[0]+"_"+M[1]+"_"+z[0]+"_"+z[1]).replace(/\./g,"p");if(!E[w]){var _=xs(),y,A,k,D,V,H=0,Z,ft,ht=null;R.length===2&&(R[0]!==P[0]||R[1]!==P[1])&&r(R[0],R[1],P[0],P[1],R[0]+M[0],R[1]+M[1])&&r(R[0],R[1],P[0],P[1],P[0]+z[0],P[1]+z[1])&&(_=2);var et=new c(_);for(k=M.length,y=0;y<_;y+=1){for(ft=rt(k),V=y/(_-1),Z=0,A=0;A<k;A+=1)D=zt(1-V,3)*R[A]+3*zt(1-V,2)*V*(R[A]+M[A])+3*(1-V)*zt(V,2)*(P[A]+z[A])+zt(V,3)*P[A],ft[A]=D,ht!==null&&(Z+=zt(ft[A]-ht[A],2));Z=Wt(Z),H+=Z,et.points[y]=new f(Z,ft),ht=ft}et.segmentLength=H,E[w]=et}return E[w]}}();function v(E,R){var P=R.percents,M=R.lengths,z=P.length,w=ie((z-1)*E),_=E*R.addedLength,y=0;if(w===z-1||w===0||_===M[w])return P[w];for(var A=M[w]>_?-1:1,k=!0;k;)if(M[w]<=_&&M[w+1]>_?(y=(_-M[w])/(M[w+1]-M[w]),k=!1):w+=A,w<0||w>=z-1){if(w===z-1)return P[w];k=!1}return P[w]+(P[w+1]-P[w])*y}function I(E,R,P,M,z,w){var _=v(z,w),y=1-_,A=e.round((y*y*y*E[0]+(_*y*y+y*_*y+y*y*_)*P[0]+(_*_*y+y*_*_+_*y*_)*M[0]+_*_*_*R[0])*1e3)/1e3,k=e.round((y*y*y*E[1]+(_*y*y+y*_*y+y*y*_)*P[1]+(_*_*y+y*_*_+_*y*_)*M[1]+_*_*_*R[1])*1e3)/1e3;return[A,k]}var L=Q("float32",8);function B(E,R,P,M,z,w,_){z<0?z=0:z>1&&(z=1);var y=v(z,_);w=w>1?1:w;var A=v(w,_),k,D=E.length,V=1-y,H=1-A,Z=V*V*V,ft=y*V*V*3,ht=y*y*V*3,et=y*y*y,yt=V*V*H,lt=y*V*H+V*y*H+V*V*A,X=y*y*H+V*y*A+y*V*A,S=y*y*A,O=V*H*H,u=y*H*H+V*A*H+V*H*A,b=y*A*H+V*A*A+y*H*A,U=y*A*A,F=H*H*H,at=A*H*H+H*A*H+H*H*A,mt=A*A*H+H*A*A+A*H*A,vt=A*A*A;for(k=0;k<D;k+=1)L[k*4]=e.round((Z*E[k]+ft*P[k]+ht*M[k]+et*R[k])*1e3)/1e3,L[k*4+1]=e.round((yt*E[k]+lt*P[k]+X*M[k]+S*R[k])*1e3)/1e3,L[k*4+2]=e.round((O*E[k]+u*P[k]+b*M[k]+U*R[k])*1e3)/1e3,L[k*4+3]=e.round((F*E[k]+at*P[k]+mt*M[k]+vt*R[k])*1e3)/1e3;return L}return{getSegmentsLength:d,getNewSegment:B,getPointInSegment:I,buildBezierData:x,pointOnLine2D:r,pointOnLine3D:s}}var yr=Vv(),Pi=o,gh=Math.abs;function bh(e,r){var s=this.offsetTime,n;this.propType==="multidimensional"&&(n=Q("float32",this.pv.length));for(var d=r.lastIndex,c=d,f=this.keyframes.length-1,x=!0,v,I,L;x;){if(v=this.keyframes[c],I=this.keyframes[c+1],c===f-1&&e>=I.t-s){v.h&&(v=I),d=0;break}if(I.t-s>e){d=c;break}c<f-1?c+=1:(d=0,x=!1)}L=this.keyframesMetadata[c]||{};var B,E,R,P,M,z,w=I.t-s,_=v.t-s,y;if(v.to){L.bezierData||(L.bezierData=yr.buildBezierData(v.s,I.s||v.e,v.to,v.ti));var A=L.bezierData;if(e>=w||e<_){var k=e>=w?A.points.length-1:0;for(E=A.points[k].point.length,B=0;B<E;B+=1)n[B]=A.points[k].point[B]}else{L.__fnct?z=L.__fnct:(z=Is.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,L.__fnct=z),R=z((e-_)/(w-_));var D=A.segmentLength*R,V,H=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastAddedLength:0;for(M=r.lastFrame<e&&r._lastKeyframeIndex===c?r._lastPoint:0,x=!0,P=A.points.length;x;){if(H+=A.points[M].partialLength,D===0||R===0||M===A.points.length-1){for(E=A.points[M].point.length,B=0;B<E;B+=1)n[B]=A.points[M].point[B];break}else if(D>=H&&D<H+A.points[M+1].partialLength){for(V=(D-H)/A.points[M+1].partialLength,E=A.points[M].point.length,B=0;B<E;B+=1)n[B]=A.points[M].point[B]+(A.points[M+1].point[B]-A.points[M].point[B])*V;break}M<P-1?M+=1:x=!1}r._lastPoint=M,r._lastAddedLength=H-A.points[M].partialLength,r._lastKeyframeIndex=c}}else{var Z,ft,ht,et,yt;if(f=v.s.length,y=I.s||v.e,this.sh&&v.h!==1)if(e>=w)n[0]=y[0],n[1]=y[1],n[2]=y[2];else if(e<=_)n[0]=v.s[0],n[1]=v.s[1],n[2]=v.s[2];else{var lt=yh(v.s),X=yh(y),S=(e-_)/(w-_);Uv(n,Bv(lt,X,S))}else for(c=0;c<f;c+=1)v.h!==1&&(e>=w?R=1:e<_?R=0:(v.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[c]?z=L.__fnct[c]:(Z=v.o.x[c]===void 0?v.o.x[0]:v.o.x[c],ft=v.o.y[c]===void 0?v.o.y[0]:v.o.y[c],ht=v.i.x[c]===void 0?v.i.x[0]:v.i.x[c],et=v.i.y[c]===void 0?v.i.y[0]:v.i.y[c],z=Is.getBezierEasing(Z,ft,ht,et).get,L.__fnct[c]=z)):L.__fnct?z=L.__fnct:(Z=v.o.x,ft=v.o.y,ht=v.i.x,et=v.i.y,z=Is.getBezierEasing(Z,ft,ht,et).get,v.keyframeMetadata=z),R=z((e-_)/(w-_)))),y=I.s||v.e,yt=v.h===1?v.s[c]:v.s[c]+(y[c]-v.s[c])*R,this.propType==="multidimensional"?n[c]=yt:n=yt}return r.lastIndex=d,n}function Bv(e,r,s){var n=[],d=e[0],c=e[1],f=e[2],x=e[3],v=r[0],I=r[1],L=r[2],B=r[3],E,R,P,M,z;return R=d*v+c*I+f*L+x*B,R<0&&(R=-R,v=-v,I=-I,L=-L,B=-B),1-R>1e-6?(E=Math.acos(R),P=Math.sin(E),M=Math.sin((1-s)*E)/P,z=Math.sin(s*E)/P):(M=1-s,z=s),n[0]=M*d+z*v,n[1]=M*c+z*I,n[2]=M*f+z*L,n[3]=M*x+z*B,n}function Uv(e,r){var s=r[0],n=r[1],d=r[2],c=r[3],f=Math.atan2(2*n*c-2*s*d,1-2*n*n-2*d*d),x=Math.asin(2*s*n+2*d*c),v=Math.atan2(2*s*c-2*n*d,1-2*s*s-2*d*d);e[0]=f/It,e[1]=x/It,e[2]=v/It}function yh(e){var r=e[0]*It,s=e[1]*It,n=e[2]*It,d=Math.cos(r/2),c=Math.cos(s/2),f=Math.cos(n/2),x=Math.sin(r/2),v=Math.sin(s/2),I=Math.sin(n/2),L=d*c*f-x*v*I,B=x*v*f+d*c*I,E=x*c*f+d*v*I,R=d*v*f-x*c*I;return[B,E,R,L]}function Eh(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==Pi&&(this._caching.lastFrame>=s&&e>=s||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function Ga(e){var r;if(this.propType==="unidimensional")r=e*this.mult,gh(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var s=0,n=this.v.length;s<n;)r=e[s]*this.mult,gh(this.v[s]-r)>1e-5&&(this.v[s]=r,this._mdf=!0),s+=1}function Ya(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,r=this.effectsSequence.length,s=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)s=this.effectsSequence[e](s);this.setVValue(s),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Wa(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function Hv(e,r,s,n){this.propType="unidimensional",this.mult=s||1,this.data=r,this.v=s?r.k*s:r.k,this.pv=r.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Ya,this.setVValue=Ga,this.addEffect=Wa}function Gv(e,r,s,n){this.propType="multidimensional",this.mult=s||1,this.data=r,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,c=r.k.length;for(this.v=Q("float32",c),this.pv=Q("float32",c),this.vel=Q("float32",c),d=0;d<c;d+=1)this.v[d]=r.k[d]*this.mult,this.pv[d]=r.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Ya,this.setVValue=Ga,this.addEffect=Wa}function Yv(e,r,s,n){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:Pi,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=s||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=Pi,this.pv=Pi,this._isFirstFrame=!0,this.getValue=Ya,this.setVValue=Ga,this.interpolateValue=bh,this.effectsSequence=[Eh.bind(this)],this.addEffect=Wa}function Wv(e,r,s,n){this.propType="multidimensional";var d,c=r.k.length,f,x,v,I;for(d=0;d<c-1;d+=1)r.k[d].to&&r.k[d].s&&r.k[d+1]&&r.k[d+1].s&&(f=r.k[d].s,x=r.k[d+1].s,v=r.k[d].to,I=r.k[d].ti,(f.length===2&&!(f[0]===x[0]&&f[1]===x[1])&&yr.pointOnLine2D(f[0],f[1],x[0],x[1],f[0]+v[0],f[1]+v[1])&&yr.pointOnLine2D(f[0],f[1],x[0],x[1],x[0]+I[0],x[1]+I[1])||f.length===3&&!(f[0]===x[0]&&f[1]===x[1]&&f[2]===x[2])&&yr.pointOnLine3D(f[0],f[1],f[2],x[0],x[1],x[2],f[0]+v[0],f[1]+v[1],f[2]+v[2])&&yr.pointOnLine3D(f[0],f[1],f[2],x[0],x[1],x[2],x[0]+I[0],x[1]+I[1],x[2]+I[2]))&&(r.k[d].to=null,r.k[d].ti=null),f[0]===x[0]&&f[1]===x[1]&&v[0]===0&&v[1]===0&&I[0]===0&&I[1]===0&&(f.length===2||f[2]===x[2]&&v[2]===0&&I[2]===0)&&(r.k[d].to=null,r.k[d].ti=null));this.effectsSequence=[Eh.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=s||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=Ya,this.setVValue=Ga,this.interpolateValue=bh,this.frameId=-1;var L=r.k[0].s.length;for(this.v=Q("float32",L),this.pv=Q("float32",L),d=0;d<L;d+=1)this.v[d]=Pi,this.pv[d]=Pi;this._caching={lastFrame:Pi,lastIndex:0,value:Q("float32",L)},this.addEffect=Wa}var it=function(){function e(s,n,d,c,f){n.sid&&(n=s.globalData.slotManager.getProp(n));var x;if(!n.k.length)x=new Hv(s,n,c,f);else if(typeof n.k[0]=="number")x=new Gv(s,n,c,f);else switch(d){case 0:x=new Yv(s,n,c,f);break;case 1:x=new Wv(s,n,c,f);break;default:break}return x.effectsSequence.length&&f.addDynamicProperty(x),x}var r={getProp:e};return r}();function oe(){}oe.prototype={addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&(this.dynamicProperties.push(r),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var r,s=this.dynamicProperties.length;for(r=0;r<s;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(r){this.container=r,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Di=function(){function e(){return Q("float32",2)}return Ha(8,e)}();function Mr(){this.c=!1,this._length=0,this._maxLength=8,this.v=rt(this._maxLength),this.o=rt(this._maxLength),this.i=rt(this._maxLength)}Mr.prototype.setPathData=function(e,r){this.c=e,this.setLength(r);for(var s=0;s<r;)this.v[s]=Di.newElement(),this.o[s]=Di.newElement(),this.i[s]=Di.newElement(),s+=1},Mr.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},Mr.prototype.doubleArrayLength=function(){this.v=this.v.concat(rt(this._maxLength)),this.i=this.i.concat(rt(this._maxLength)),this.o=this.o.concat(rt(this._maxLength)),this._maxLength*=2},Mr.prototype.setXYAt=function(e,r,s,n,d){var c;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),s){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[n]||c[n]&&!d)&&(c[n]=Di.newElement()),c[n][0]=e,c[n][1]=r},Mr.prototype.setTripleAt=function(e,r,s,n,d,c,f,x){this.setXYAt(e,r,"v",f,x),this.setXYAt(s,n,"o",f,x),this.setXYAt(d,c,"i",f,x)},Mr.prototype.reverse=function(){var e=new Mr;e.setPathData(this.c,this._length);var r=this.v,s=this.o,n=this.i,d=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],n[0][0],n[0][1],s[0][0],s[0][1],0,!1),d=1);var c=this._length-1,f=this._length,x;for(x=d;x<f;x+=1)e.setTripleAt(r[c][0],r[c][1],n[c][0],n[c][1],s[c][0],s[c][1],x,!1),c-=1;return e},Mr.prototype.length=function(){return this._length};var ce=function(){function e(){return new Mr}function r(d){var c=d._length,f;for(f=0;f<c;f+=1)Di.release(d.v[f]),Di.release(d.i[f]),Di.release(d.o[f]),d.v[f]=null,d.i[f]=null,d.o[f]=null;d._length=0,d.c=!1}function s(d){var c=n.newElement(),f,x=d._length===void 0?d.v.length:d._length;for(c.setLength(x),c.c=d.c,f=0;f<x;f+=1)c.setTripleAt(d.v[f][0],d.v[f][1],d.o[f][0],d.o[f][1],d.i[f][0],d.i[f][1],f);return c}var n=Ha(4,e,r);return n.clone=s,n}();function zl(){this._length=0,this._maxLength=4,this.shapes=rt(this._maxLength)}zl.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(rt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},zl.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)ce.release(this.shapes[e]);this._length=0};var wo=function(){var e={newShapeCollection:d,release:c},r=0,s=4,n=rt(s);function d(){var f;return r?(r-=1,f=n[r]):f=new zl,f}function c(f){var x,v=f._length;for(x=0;x<v;x+=1)ce.release(f.shapes[x]);f._length=0,r===s&&(n=uh.double(n),s*=2),n[r]=f,r+=1}return e}(),ja=function(){var e=-999999;function r(w,_,y){var A=y.lastIndex,k,D,V,H,Z,ft,ht,et,yt,lt=this.keyframes;if(w<lt[0].t-this.offsetTime)k=lt[0].s[0],V=!0,A=0;else if(w>=lt[lt.length-1].t-this.offsetTime)k=lt[lt.length-1].s?lt[lt.length-1].s[0]:lt[lt.length-2].e[0],V=!0;else{for(var X=A,S=lt.length-1,O=!0,u,b,U;O&&(u=lt[X],b=lt[X+1],!(b.t-this.offsetTime>w));)X<S-1?X+=1:O=!1;if(U=this.keyframesMetadata[X]||{},V=u.h===1,A=X,!V){if(w>=b.t-this.offsetTime)et=1;else if(w<u.t-this.offsetTime)et=0;else{var F;U.__fnct?F=U.__fnct:(F=Is.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y).get,U.__fnct=F),et=F((w-(u.t-this.offsetTime))/(b.t-this.offsetTime-(u.t-this.offsetTime)))}D=b.s?b.s[0]:u.e[0]}k=u.s[0]}for(ft=_._length,ht=k.i[0].length,y.lastIndex=A,H=0;H<ft;H+=1)for(Z=0;Z<ht;Z+=1)yt=V?k.i[H][Z]:k.i[H][Z]+(D.i[H][Z]-k.i[H][Z])*et,_.i[H][Z]=yt,yt=V?k.o[H][Z]:k.o[H][Z]+(D.o[H][Z]-k.o[H][Z])*et,_.o[H][Z]=yt,yt=V?k.v[H][Z]:k.v[H][Z]+(D.v[H][Z]-k.v[H][Z])*et,_.v[H][Z]=yt}function s(){var w=this.comp.renderedFrame-this.offsetTime,_=this.keyframes[0].t-this.offsetTime,y=this.keyframes[this.keyframes.length-1].t-this.offsetTime,A=this._caching.lastFrame;return A!==e&&(A<_&&w<_||A>y&&w>y)||(this._caching.lastIndex=A<w?this._caching.lastIndex:0,this.interpolateShape(w,this.pv,this._caching)),this._caching.lastFrame=w,this.pv}function n(){this.paths=this.localShapeCollection}function d(w,_){if(w._length!==_._length||w.c!==_.c)return!1;var y,A=w._length;for(y=0;y<A;y+=1)if(w.v[y][0]!==_.v[y][0]||w.v[y][1]!==_.v[y][1]||w.o[y][0]!==_.o[y][0]||w.o[y][1]!==_.o[y][1]||w.i[y][0]!==_.i[y][0]||w.i[y][1]!==_.i[y][1])return!1;return!0}function c(w){d(this.v,w)||(this.v=ce.clone(w),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function f(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var w;this.kf?w=this.pv:this.data.ks?w=this.data.ks.k:w=this.data.pt.k;var _,y=this.effectsSequence.length;for(_=0;_<y;_+=1)w=this.effectsSequence[_](w);this.setVValue(w),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(w,_,y){this.propType="shape",this.comp=w.comp,this.container=w,this.elem=w,this.data=_,this.k=!1,this.kf=!1,this._mdf=!1;var A=y===3?_.pt.k:_.ks.k;this.v=ce.clone(A),this.pv=ce.clone(this.v),this.localShapeCollection=wo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function v(w){this.effectsSequence.push(w),this.container.addDynamicProperty(this)}x.prototype.interpolateShape=r,x.prototype.getValue=f,x.prototype.setVValue=c,x.prototype.addEffect=v;function I(w,_,y){this.propType="shape",this.comp=w.comp,this.elem=w,this.container=w,this.offsetTime=w.data.st,this.keyframes=y===3?_.pt.k:_.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var A=this.keyframes[0].s[0].i.length;this.v=ce.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,A),this.pv=ce.clone(this.v),this.localShapeCollection=wo.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[s.bind(this)]}I.prototype.getValue=f,I.prototype.interpolateShape=r,I.prototype.setVValue=c,I.prototype.addEffect=v;var L=function(){var w=le;function _(y,A){this.v=ce.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=wo.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=A.d,this.elem=y,this.comp=y.comp,this.frameId=-1,this.initDynamicPropertyContainer(y),this.p=it.getProp(y,A.p,1,0,this),this.s=it.getProp(y,A.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return _.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var A=this.p.v[0],k=this.p.v[1],D=this.s.v[0]/2,V=this.s.v[1]/2,H=this.d!==3,Z=this.v;Z.v[0][0]=A,Z.v[0][1]=k-V,Z.v[1][0]=H?A+D:A-D,Z.v[1][1]=k,Z.v[2][0]=A,Z.v[2][1]=k+V,Z.v[3][0]=H?A-D:A+D,Z.v[3][1]=k,Z.i[0][0]=H?A-D*w:A+D*w,Z.i[0][1]=k-V,Z.i[1][0]=H?A+D:A-D,Z.i[1][1]=k-V*w,Z.i[2][0]=H?A+D*w:A-D*w,Z.i[2][1]=k+V,Z.i[3][0]=H?A-D:A+D,Z.i[3][1]=k+V*w,Z.o[0][0]=H?A+D*w:A-D*w,Z.o[0][1]=k-V,Z.o[1][0]=H?A+D:A-D,Z.o[1][1]=k+V*w,Z.o[2][0]=H?A-D*w:A+D*w,Z.o[2][1]=k+V,Z.o[3][0]=H?A-D:A+D,Z.o[3][1]=k-V*w}},$([oe],_),_}(),B=function(){function w(_,y){this.v=ce.newElement(),this.v.setPathData(!0,0),this.elem=_,this.comp=_.comp,this.data=y,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(_),y.sy===1?(this.ir=it.getProp(_,y.ir,0,0,this),this.is=it.getProp(_,y.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=it.getProp(_,y.pt,0,0,this),this.p=it.getProp(_,y.p,1,0,this),this.r=it.getProp(_,y.r,0,It,this),this.or=it.getProp(_,y.or,0,0,this),this.os=it.getProp(_,y.os,0,.01,this),this.localShapeCollection=wo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return w.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var y=Math.floor(this.pt.v)*2,A=Math.PI*2/y,k=!0,D=this.or.v,V=this.ir.v,H=this.os.v,Z=this.is.v,ft=2*Math.PI*D/(y*2),ht=2*Math.PI*V/(y*2),et,yt,lt,X,S=-Math.PI/2;S+=this.r.v;var O=this.data.d===3?-1:1;for(this.v._length=0,et=0;et<y;et+=1){yt=k?D:V,lt=k?H:Z,X=k?ft:ht;var u=yt*Math.cos(S),b=yt*Math.sin(S),U=u===0&&b===0?0:b/Math.sqrt(u*u+b*b),F=u===0&&b===0?0:-u/Math.sqrt(u*u+b*b);u+=+this.p.v[0],b+=+this.p.v[1],this.v.setTripleAt(u,b,u-U*X*lt*O,b-F*X*lt*O,u+U*X*lt*O,b+F*X*lt*O,et,!0),k=!k,S+=A*O}},convertPolygonToPath:function(){var y=Math.floor(this.pt.v),A=Math.PI*2/y,k=this.or.v,D=this.os.v,V=2*Math.PI*k/(y*4),H,Z=-Math.PI*.5,ft=this.data.d===3?-1:1;for(Z+=this.r.v,this.v._length=0,H=0;H<y;H+=1){var ht=k*Math.cos(Z),et=k*Math.sin(Z),yt=ht===0&&et===0?0:et/Math.sqrt(ht*ht+et*et),lt=ht===0&&et===0?0:-ht/Math.sqrt(ht*ht+et*et);ht+=+this.p.v[0],et+=+this.p.v[1],this.v.setTripleAt(ht,et,ht-yt*V*D*ft,et-lt*V*D*ft,ht+yt*V*D*ft,et+lt*V*D*ft,H,!0),Z+=A*ft}this.paths.length=0,this.paths[0]=this.v}},$([oe],w),w}(),E=function(){function w(_,y){this.v=ce.newElement(),this.v.c=!0,this.localShapeCollection=wo.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=_,this.comp=_.comp,this.frameId=-1,this.d=y.d,this.initDynamicPropertyContainer(_),this.p=it.getProp(_,y.p,1,0,this),this.s=it.getProp(_,y.s,1,0,this),this.r=it.getProp(_,y.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return w.prototype={convertRectToPath:function(){var y=this.p.v[0],A=this.p.v[1],k=this.s.v[0]/2,D=this.s.v[1]/2,V=_e(k,D,this.r.v),H=V*(1-le);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+V,y+k,A-D+H,0,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-H,y+k,A+D-V,1,!0),V!==0?(this.v.setTripleAt(y+k-V,A+D,y+k-V,A+D,y+k-H,A+D,2,!0),this.v.setTripleAt(y-k+V,A+D,y-k+H,A+D,y-k+V,A+D,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-V,y-k,A+D-H,4,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+H,y-k,A-D+V,5,!0),this.v.setTripleAt(y-k+V,A-D,y-k+V,A-D,y-k+H,A-D,6,!0),this.v.setTripleAt(y+k-V,A-D,y+k-H,A-D,y+k-V,A-D,7,!0)):(this.v.setTripleAt(y-k,A+D,y-k+H,A+D,y-k,A+D,2),this.v.setTripleAt(y-k,A-D,y-k,A-D+H,y-k,A-D,3))):(this.v.setTripleAt(y+k,A-D+V,y+k,A-D+H,y+k,A-D+V,0,!0),V!==0?(this.v.setTripleAt(y+k-V,A-D,y+k-V,A-D,y+k-H,A-D,1,!0),this.v.setTripleAt(y-k+V,A-D,y-k+H,A-D,y-k+V,A-D,2,!0),this.v.setTripleAt(y-k,A-D+V,y-k,A-D+V,y-k,A-D+H,3,!0),this.v.setTripleAt(y-k,A+D-V,y-k,A+D-H,y-k,A+D-V,4,!0),this.v.setTripleAt(y-k+V,A+D,y-k+V,A+D,y-k+H,A+D,5,!0),this.v.setTripleAt(y+k-V,A+D,y+k-H,A+D,y+k-V,A+D,6,!0),this.v.setTripleAt(y+k,A+D-V,y+k,A+D-V,y+k,A+D-H,7,!0)):(this.v.setTripleAt(y-k,A-D,y-k+H,A-D,y-k,A-D,1,!0),this.v.setTripleAt(y-k,A+D,y-k,A+D-H,y-k,A+D,2,!0),this.v.setTripleAt(y+k,A+D,y+k-H,A+D,y+k,A+D,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},$([oe],w),w}();function R(w,_,y){var A;if(y===3||y===4){var k=y===3?_.pt:_.ks,D=k.k;D.length?A=new I(w,_,y):A=new x(w,_,y)}else y===5?A=new E(w,_):y===6?A=new L(w,_):y===7&&(A=new B(w,_));return A.k&&w.addDynamicProperty(A),A}function P(){return x}function M(){return I}var z={};return z.getShapeProp=R,z.getConstructorFunction=P,z.getKeyframedConstructorFunction=M,z}();var de=function(){var e=Math.cos,r=Math.sin,s=Math.tan,n=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function c(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function f(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(1,0,0,0,0,b,-U,0,0,U,b,0,0,0,0,1)}function x(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(b,0,U,0,0,1,0,0,-U,0,b,0,0,0,0,1)}function v(u){if(u===0)return this;var b=e(u),U=r(u);return this._t(b,-U,0,0,U,b,0,0,0,0,1,0,0,0,0,1)}function I(u,b){return this._t(1,b,u,1,0,0)}function L(u,b){return this.shear(s(u),s(b))}function B(u,b){var U=e(b),F=r(b);return this._t(U,F,0,0,-F,U,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,s(u),1,0,0,0,0,1,0,0,0,0,1)._t(U,-F,0,0,F,U,0,0,0,0,1,0,0,0,0,1)}function E(u,b,U){return!U&&U!==0&&(U=1),u===1&&b===1&&U===1?this:this._t(u,0,0,0,0,b,0,0,0,0,U,0,0,0,0,1)}function R(u,b,U,F,at,mt,vt,wt,Nt,qt,Ce,Tr,we,se,Fe,Mt){return this.props[0]=u,this.props[1]=b,this.props[2]=U,this.props[3]=F,this.props[4]=at,this.props[5]=mt,this.props[6]=vt,this.props[7]=wt,this.props[8]=Nt,this.props[9]=qt,this.props[10]=Ce,this.props[11]=Tr,this.props[12]=we,this.props[13]=se,this.props[14]=Fe,this.props[15]=Mt,this}function P(u,b,U){return U=U||0,u!==0||b!==0||U!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,u,b,U,1):this}function M(u,b,U,F,at,mt,vt,wt,Nt,qt,Ce,Tr,we,se,Fe,Mt){var ct=this.props;if(u===1&&b===0&&U===0&&F===0&&at===0&&mt===1&&vt===0&&wt===0&&Nt===0&&qt===0&&Ce===1&&Tr===0)return ct[12]=ct[12]*u+ct[15]*we,ct[13]=ct[13]*mt+ct[15]*se,ct[14]=ct[14]*Ce+ct[15]*Fe,ct[15]*=Mt,this._identityCalculated=!1,this;var Dr=ct[0],ui=ct[1],Fr=ct[2],xr=ct[3],$r=ct[4],zr=ct[5],Ne=ct[6],fi=ct[7],vi=ct[8],lr=ct[9],gi=ct[10],cr=ct[11],Vi=ct[12],rn=ct[13],on=ct[14],sn=ct[15];return ct[0]=Dr*u+ui*at+Fr*Nt+xr*we,ct[1]=Dr*b+ui*mt+Fr*qt+xr*se,ct[2]=Dr*U+ui*vt+Fr*Ce+xr*Fe,ct[3]=Dr*F+ui*wt+Fr*Tr+xr*Mt,ct[4]=$r*u+zr*at+Ne*Nt+fi*we,ct[5]=$r*b+zr*mt+Ne*qt+fi*se,ct[6]=$r*U+zr*vt+Ne*Ce+fi*Fe,ct[7]=$r*F+zr*wt+Ne*Tr+fi*Mt,ct[8]=vi*u+lr*at+gi*Nt+cr*we,ct[9]=vi*b+lr*mt+gi*qt+cr*se,ct[10]=vi*U+lr*vt+gi*Ce+cr*Fe,ct[11]=vi*F+lr*wt+gi*Tr+cr*Mt,ct[12]=Vi*u+rn*at+on*Nt+sn*we,ct[13]=Vi*b+rn*mt+on*qt+sn*se,ct[14]=Vi*U+rn*vt+on*Ce+sn*Fe,ct[15]=Vi*F+rn*wt+on*Tr+sn*Mt,this._identityCalculated=!1,this}function z(u){var b=u.props;return this.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15])}function w(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function _(u){for(var b=0;b<16;){if(u.props[b]!==this.props[b])return!1;b+=1}return!0}function y(u){var b;for(b=0;b<16;b+=1)u.props[b]=this.props[b];return u}function A(u){var b;for(b=0;b<16;b+=1)this.props[b]=u[b]}function k(u,b,U){return{x:u*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],y:u*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],z:u*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}}function D(u,b,U){return u*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12]}function V(u,b,U){return u*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13]}function H(u,b,U){return u*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]}function Z(){var u=this.props[0]*this.props[5]-this.props[1]*this.props[4],b=this.props[5]/u,U=-this.props[1]/u,F=-this.props[4]/u,at=this.props[0]/u,mt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/u,vt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/u,wt=new de;return wt.props[0]=b,wt.props[1]=U,wt.props[4]=F,wt.props[5]=at,wt.props[12]=mt,wt.props[13]=vt,wt}function ft(u){var b=this.getInverseMatrix();return b.applyToPointArray(u[0],u[1],u[2]||0)}function ht(u){var b,U=u.length,F=[];for(b=0;b<U;b+=1)F[b]=ft(u[b]);return F}function et(u,b,U){var F=Q("float32",6);if(this.isIdentity())F[0]=u[0],F[1]=u[1],F[2]=b[0],F[3]=b[1],F[4]=U[0],F[5]=U[1];else{var at=this.props[0],mt=this.props[1],vt=this.props[4],wt=this.props[5],Nt=this.props[12],qt=this.props[13];F[0]=u[0]*at+u[1]*vt+Nt,F[1]=u[0]*mt+u[1]*wt+qt,F[2]=b[0]*at+b[1]*vt+Nt,F[3]=b[0]*mt+b[1]*wt+qt,F[4]=U[0]*at+U[1]*vt+Nt,F[5]=U[0]*mt+U[1]*wt+qt}return F}function yt(u,b,U){var F;return this.isIdentity()?F=[u,b,U]:F=[u*this.props[0]+b*this.props[4]+U*this.props[8]+this.props[12],u*this.props[1]+b*this.props[5]+U*this.props[9]+this.props[13],u*this.props[2]+b*this.props[6]+U*this.props[10]+this.props[14]],F}function lt(u,b){if(this.isIdentity())return u+","+b;var U=this.props;return Math.round((u*U[0]+b*U[4]+U[12])*100)/100+","+Math.round((u*U[1]+b*U[5]+U[13])*100)/100}function X(){for(var u=0,b=this.props,U="matrix3d(",F=1e4;u<16;)U+=n(b[u]*F)/F,U+=u===15?")":",",u+=1;return U}function S(u){var b=1e4;return u<1e-6&&u>0||u>-1e-6&&u<0?n(u*b)/b:u}function O(){var u=this.props,b=S(u[0]),U=S(u[1]),F=S(u[4]),at=S(u[5]),mt=S(u[12]),vt=S(u[13]);return"matrix("+b+","+U+","+F+","+at+","+mt+","+vt+")"}return function(){this.reset=d,this.rotate=c,this.rotateX=f,this.rotateY=x,this.rotateZ=v,this.skew=L,this.skewFromAxis=B,this.shear=I,this.scale=E,this.setTransform=R,this.translate=P,this.transform=M,this.multiply=z,this.applyToPoint=k,this.applyToX=D,this.applyToY=V,this.applyToZ=H,this.applyToPointArray=yt,this.applyToTriplePoints=et,this.applyToPointStringified=lt,this.toCSS=X,this.to2dCSS=O,this.clone=y,this.cloneFromProps=A,this.equals=_,this.inversePoints=ht,this.inversePoint=ft,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=w,this._identity=!0,this._identityCalculated=!1,this.props=Q("float32",16),this.reset()}}();function qa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qa=function(s){return typeof s}:qa=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},qa(e)}var Rt={},Ka="__[STANDALONE]__",Th="__[ANIMATIONDATA]__",xh="";function jv(e){m(e)}function Ah(){Ka===!0?jt.searchAnimations(Th,Ka,xh):jt.searchAnimations()}function qv(e){Nv(e)}function Kv(e){Mv(e)}function Xv(e){return Ka===!0&&(e.animationData=JSON.parse(Th)),jt.loadAnimation(e)}function Zv(e){if(typeof e=="string")switch(e){case"high":Ba(200);break;default:case"medium":Ba(50);break;case"low":Ba(10);break}else!isNaN(e)&&e>1&&Ba(e);xs()>=50?Be(!1):Be(!0)}function Qv(){return typeof navigator<"u"}function Jv(e,r){e==="expressions"&&Rv(r)}function tg(e){switch(e){case"propertyFactory":return it;case"shapePropertyFactory":return ja;case"matrix":return de;default:return null}}Rt.play=jt.play,Rt.pause=jt.pause,Rt.setLocationHref=jv,Rt.togglePause=jt.togglePause,Rt.setSpeed=jt.setSpeed,Rt.setDirection=jt.setDirection,Rt.stop=jt.stop,Rt.searchAnimations=Ah,Rt.registerAnimation=jt.registerAnimation,Rt.loadAnimation=Xv,Rt.setSubframeRendering=qv,Rt.resize=jt.resize,Rt.goToAndStop=jt.goToAndStop,Rt.destroy=jt.destroy,Rt.setQuality=Zv,Rt.inBrowser=Qv,Rt.installPlugin=Jv,Rt.freeze=jt.freeze,Rt.unfreeze=jt.unfreeze,Rt.setVolume=jt.setVolume,Rt.mute=jt.mute,Rt.unmute=jt.unmute,Rt.getRegisteredAnimations=jt.getRegisteredAnimations,Rt.useWebWorker=a,Rt.setIDPrefix=Kv,Rt.__getFactory=tg,Rt.version="5.12.2";function eg(){document.readyState==="complete"&&(clearInterval(og),Ah())}function rg(e){for(var r=Sh.split("&"),s=0;s<r.length;s+=1){var n=r[s].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}var Sh="";if(Ka){var _h=document.getElementsByTagName("script"),ig=_h.length-1,Ih=_h[ig]||{src:""};Sh=Ih.src?Ih.src.replace(/^[^\?]+\??/,""):"",xh=rg("renderer")}var og=setInterval(eg,100);try{!((typeof ea>"u"?"undefined":qa(ea))==="object"&&typeof Mn<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Rt)}catch{}var li=function(){var e={},r={};e.registerModifier=s,e.getModifier=n;function s(d,c){r[d]||(r[d]=c)}function n(d,c,f){return new r[d](c,f)}return e}();function Ye(){}Ye.prototype.initModifierProperties=function(){},Ye.prototype.addShapeToModifier=function(){},Ye.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var r={shape:e.sh,data:e,localShapeCollection:wo.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},Ye.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),this.frameId=o,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ye.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},$([oe],Ye);function nr(){}$([Ye],nr),nr.prototype.initModifierProperties=function(e,r){this.s=it.getProp(e,r.s,0,.01,this),this.e=it.getProp(e,r.e,0,.01,this),this.o=it.getProp(e,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},nr.prototype.addShapeToModifier=function(e){e.pathsData=[]},nr.prototype.calculateShapeEdges=function(e,r,s,n,d){var c=[];r<=1?c.push({s:e,e:r}):e>=1?c.push({s:e-1,e:r-1}):(c.push({s:e,e:1}),c.push({s:0,e:r-1}));var f=[],x,v=c.length,I;for(x=0;x<v;x+=1)if(I=c[x],!(I.e*d<n||I.s*d>n+s)){var L,B;I.s*d<=n?L=0:L=(I.s*d-n)/s,I.e*d>=n+s?B=1:B=(I.e*d-n)/s,f.push([L,B])}return f.length||f.push([0,0]),f},nr.prototype.releasePathsData=function(e){var r,s=e.length;for(r=0;r<s;r+=1)vh.release(e[r]);return e.length=0,e},nr.prototype.processShapes=function(e){var r,s;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),this.s.v>1?r=1+n:this.s.v<0?r=0+n:r=this.s.v+n,this.e.v>1?s=1+n:this.e.v<0?s=0+n:s=this.e.v+n,r>s){var d=r;r=s,s=d}r=Math.round(r*1e4)*1e-4,s=Math.round(s*1e4)*1e-4,this.sValue=r,this.eValue=s}else r=this.sValue,s=this.eValue;var c,f,x=this.shapes.length,v,I,L,B,E,R=0;if(s===r)for(f=0;f<x;f+=1)this.shapes[f].localShapeCollection.releaseShapes(),this.shapes[f].shape._mdf=!0,this.shapes[f].shape.paths=this.shapes[f].localShapeCollection,this._mdf&&(this.shapes[f].pathsData.length=0);else if(s===1&&r===0||s===0&&r===1){if(this._mdf)for(f=0;f<x;f+=1)this.shapes[f].pathsData.length=0,this.shapes[f].shape._mdf=!0}else{var P=[],M,z;for(f=0;f<x;f+=1)if(M=this.shapes[f],!M.shape._mdf&&!this._mdf&&!e&&this.m!==2)M.shape.paths=M.localShapeCollection;else{if(c=M.shape.paths,I=c._length,E=0,!M.shape._mdf&&M.pathsData.length)E=M.totalShapeLength;else{for(L=this.releasePathsData(M.pathsData),v=0;v<I;v+=1)B=yr.getSegmentsLength(c.shapes[v]),L.push(B),E+=B.totalLength;M.totalShapeLength=E,M.pathsData=L}R+=E,M.shape._mdf=!0}var w=r,_=s,y=0,A;for(f=x-1;f>=0;f-=1)if(M=this.shapes[f],M.shape._mdf){for(z=M.localShapeCollection,z.releaseShapes(),this.m===2&&x>1?(A=this.calculateShapeEdges(r,s,M.totalShapeLength,y,R),y+=M.totalShapeLength):A=[[w,_]],I=A.length,v=0;v<I;v+=1){w=A[v][0],_=A[v][1],P.length=0,_<=1?P.push({s:M.totalShapeLength*w,e:M.totalShapeLength*_}):w>=1?P.push({s:M.totalShapeLength*(w-1),e:M.totalShapeLength*(_-1)}):(P.push({s:M.totalShapeLength*w,e:M.totalShapeLength}),P.push({s:0,e:M.totalShapeLength*(_-1)}));var k=this.addShapes(M,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var D=M.shape.paths.shapes[M.shape.paths._length-1];if(D.c){var V=k.pop();this.addPaths(k,z),k=this.addShapes(M,P[1],V)}else this.addPaths(k,z),k=this.addShapes(M,P[1])}this.addPaths(k,z)}}M.shape.paths=z}}},nr.prototype.addPaths=function(e,r){var s,n=e.length;for(s=0;s<n;s+=1)r.addShape(e[s])},nr.prototype.addSegment=function(e,r,s,n,d,c,f){d.setXYAt(r[0],r[1],"o",c),d.setXYAt(s[0],s[1],"i",c+1),f&&d.setXYAt(e[0],e[1],"v",c),d.setXYAt(n[0],n[1],"v",c+1)},nr.prototype.addSegmentFromArray=function(e,r,s,n){r.setXYAt(e[1],e[5],"o",s),r.setXYAt(e[2],e[6],"i",s+1),n&&r.setXYAt(e[0],e[4],"v",s),r.setXYAt(e[3],e[7],"v",s+1)},nr.prototype.addShapes=function(e,r,s){var n=e.pathsData,d=e.shape.paths.shapes,c,f=e.shape.paths._length,x,v,I=0,L,B,E,R,P=[],M,z=!0;for(s?(B=s._length,M=s._length):(s=ce.newElement(),B=0,M=0),P.push(s),c=0;c<f;c+=1){for(E=n[c].lengths,s.c=d[c].c,v=d[c].c?E.length:E.length+1,x=1;x<v;x+=1)if(L=E[x-1],I+L.addedLength<r.s)I+=L.addedLength,s.c=!1;else if(I>r.e){s.c=!1;break}else r.s<=I&&r.e>=I+L.addedLength?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[x],d[c].v[x],s,B,z),z=!1):(R=yr.getNewSegment(d[c].v[x-1],d[c].v[x],d[c].o[x-1],d[c].i[x],(r.s-I)/L.addedLength,(r.e-I)/L.addedLength,E[x-1]),this.addSegmentFromArray(R,s,B,z),z=!1,s.c=!1),I+=L.addedLength,B+=1;if(d[c].c&&E.length){if(L=E[x-1],I<=r.e){var w=E[x-1].addedLength;r.s<=I&&r.e>=I+w?(this.addSegment(d[c].v[x-1],d[c].o[x-1],d[c].i[0],d[c].v[0],s,B,z),z=!1):(R=yr.getNewSegment(d[c].v[x-1],d[c].v[0],d[c].o[x-1],d[c].i[0],(r.s-I)/w,(r.e-I)/w,E[x-1]),this.addSegmentFromArray(R,s,B,z),z=!1,s.c=!1)}else s.c=!1;I+=L.addedLength,B+=1}if(s._length&&(s.setXYAt(s.v[M][0],s.v[M][1],"i",M),s.setXYAt(s.v[s._length-1][0],s.v[s._length-1][1],"o",s._length-1)),I>r.e)break;c<f-1&&(s=ce.newElement(),z=!0,P.push(s),B=0)}return P};function ks(){}$([Ye],ks),ks.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ks.prototype.processPath=function(e,r){var s=r/100,n=[0,0],d=e._length,c=0;for(c=0;c<d;c+=1)n[0]+=e.v[c][0],n[1]+=e.v[c][1];n[0]/=d,n[1]/=d;var f=ce.newElement();f.c=e.c;var x,v,I,L,B,E;for(c=0;c<d;c+=1)x=e.v[c][0]+(n[0]-e.v[c][0])*s,v=e.v[c][1]+(n[1]-e.v[c][1])*s,I=e.o[c][0]+(n[0]-e.o[c][0])*-s,L=e.o[c][1]+(n[1]-e.o[c][1])*-s,B=e.i[c][0]+(n[0]-e.i[c][0])*-s,E=e.i[c][1]+(n[1]-e.i[c][1])*-s,f.setTripleAt(x,v,I,L,B,E,c);return f},ks.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.amount.v;if(f!==0){var x,v;for(s=0;s<n;s+=1){if(x=this.shapes[s],v=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],f));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Vl=function(){var e=[0,0];function r(v){var I=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||I,this.a&&v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&v.skewFromAxis(-this.sk.v,this.sa.v),this.r?v.rotate(-this.r.v):v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?v.translate(this.px.v,this.py.v,-this.pz.v):v.translate(this.px.v,this.py.v,0):v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function s(v){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||v){var I;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var L,B;if(I=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/I,0),B=this.p.getValueAtTime(this.p.keyframes[0].t/I,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/I,0),B=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/I,0)):(L=this.p.pv,B=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/I,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],B=[];var E=this.px,R=this.py;E._caching.lastFrame+E.offsetTime<=E.keyframes[0].t?(L[0]=E.getValueAtTime((E.keyframes[0].t+.01)/I,0),L[1]=R.getValueAtTime((R.keyframes[0].t+.01)/I,0),B[0]=E.getValueAtTime(E.keyframes[0].t/I,0),B[1]=R.getValueAtTime(R.keyframes[0].t/I,0)):E._caching.lastFrame+E.offsetTime>=E.keyframes[E.keyframes.length-1].t?(L[0]=E.getValueAtTime(E.keyframes[E.keyframes.length-1].t/I,0),L[1]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/I,0),B[0]=E.getValueAtTime((E.keyframes[E.keyframes.length-1].t-.01)/I,0),B[1]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/I,0)):(L=[E.pv,R.pv],B[0]=E.getValueAtTime((E._caching.lastFrame+E.offsetTime-.01)/I,E.offsetTime),B[1]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/I,R.offsetTime))}else B=e,L=B;this.v.rotate(-Math.atan2(L[1]-B[1],L[0]-B[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function d(){}function c(v){this._addDynamicProperty(v),this.elem.addDynamicProperty(v),this._isDirty=!0}function f(v,I,L){if(this.elem=v,this.frameId=-1,this.propType="transform",this.data=I,this.v=new de,this.pre=new de,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||v),I.p&&I.p.s?(this.px=it.getProp(v,I.p.x,0,0,this),this.py=it.getProp(v,I.p.y,0,0,this),I.p.z&&(this.pz=it.getProp(v,I.p.z,0,0,this))):this.p=it.getProp(v,I.p||{k:[0,0,0]},1,0,this),I.rx){if(this.rx=it.getProp(v,I.rx,0,It,this),this.ry=it.getProp(v,I.ry,0,It,this),this.rz=it.getProp(v,I.rz,0,It,this),I.or.k[0].ti){var B,E=I.or.k.length;for(B=0;B<E;B+=1)I.or.k[B].to=null,I.or.k[B].ti=null}this.or=it.getProp(v,I.or,1,It,this),this.or.sh=!0}else this.r=it.getProp(v,I.r||{k:0},0,It,this);I.sk&&(this.sk=it.getProp(v,I.sk,0,It,this),this.sa=it.getProp(v,I.sa,0,It,this)),this.a=it.getProp(v,I.a||{k:[0,0,0]},1,0,this),this.s=it.getProp(v,I.s||{k:[100,100,100]},1,.01,this),I.o?this.o=it.getProp(v,I.o,0,.01,v):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}f.prototype={applyToMatrix:r,getValue:s,precalculateMatrix:n,autoOrient:d},$([oe],f),f.prototype.addDynamicProperty=c,f.prototype._addDynamicProperty=oe.prototype.addDynamicProperty;function x(v,I,L){return new f(v,I,L)}return{getTransformProperty:x}}();function Er(){}$([Ye],Er),Er.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=it.getProp(e,r.c,0,null,this),this.o=it.getProp(e,r.o,0,null,this),this.tr=Vl.getTransformProperty(e,r.tr,this),this.so=it.getProp(e,r.tr.so,0,.01,this),this.eo=it.getProp(e,r.tr.eo,0,.01,this),this.data=r,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new de,this.rMatrix=new de,this.sMatrix=new de,this.tMatrix=new de,this.matrix=new de},Er.prototype.applyTransforms=function(e,r,s,n,d,c){var f=c?-1:1,x=n.s.v[0]+(1-n.s.v[0])*(1-d),v=n.s.v[1]+(1-n.s.v[1])*(1-d);e.translate(n.p.v[0]*f*d,n.p.v[1]*f*d,n.p.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.rotate(-n.r.v*f*d),r.translate(n.a.v[0],n.a.v[1],n.a.v[2]),s.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),s.scale(c?1/x:x,c?1/v:v),s.translate(n.a.v[0],n.a.v[1],n.a.v[2])},Er.prototype.init=function(e,r,s,n){for(this.elem=e,this.arr=r,this.pos=s,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[s]);s>0;)s-=1,this._elements.unshift(r[s]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Er.prototype.resetElements=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},Er.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},Er.prototype.changeGroupRender=function(e,r){var s,n=e.length;for(s=0;s<n;s+=1)e[s]._render=r,e[s].ty==="gr"&&this.changeGroupRender(e[s].it,r)},Er.prototype.processShapes=function(e){var r,s,n,d,c,f=!1;if(this._mdf||e){var x=Math.ceil(this.c.v);if(this._groups.length<x){for(;this._groups.length<x;){var v={it:this.cloneElements(this._elements),ty:"gr"};v.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,v),this._groups.splice(0,0,v),this._currentCopies+=1}this.elem.reloadShapes(),f=!0}c=0;var I;for(n=0;n<=this._groups.length-1;n+=1){if(I=c<x,this._groups[n]._render=I,this.changeGroupRender(this._groups[n].it,I),!I){var L=this.elemsData[n].it,B=L[L.length-1];B.transform.op.v!==0?(B.transform.op._mdf=!0,B.transform.op.v=0):B.transform.op._mdf=!1}c+=1}this._currentCopies=x;var E=this.o.v,R=E%1,P=E>0?Math.floor(E):Math.ceil(E),M=this.pMatrix.props,z=this.rMatrix.props,w=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _=0;if(E>0){for(;_<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,R,!1),_+=R)}else if(E<0){for(;_>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;R&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-R,!0),_-=R)}n=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,c=this._currentCopies;for(var y,A;c;){if(r=this.elemsData[n].it,s=r[r.length-1].transform.mProps.v.props,A=s.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),_!==0){for((n!==0&&d===1||n!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),y=0;y<A;y+=1)s[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<A;y+=1)s[y]=this.matrix.props[y];_+=1,c-=1,n+=d}}else for(c=this._currentCopies,n=0,d=1;c;)r=this.elemsData[n].it,s=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.length-1].transform.op._mdf=!1,c-=1,n+=d;return f},Er.prototype.addShape=function(){};function Cs(){}$([Ye],Cs),Cs.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.rd=it.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Cs.prototype.processPath=function(e,r){var s=ce.newElement();s.c=e.c;var n,d=e._length,c,f,x,v,I,L,B=0,E,R,P,M,z,w;for(n=0;n<d;n+=1)c=e.v[n],x=e.o[n],f=e.i[n],c[0]===x[0]&&c[1]===x[1]&&c[0]===f[0]&&c[1]===f[1]?(n===0||n===d-1)&&!e.c?(s.setTripleAt(c[0],c[1],x[0],x[1],f[0],f[1],B),B+=1):(n===0?v=e.v[d-1]:v=e.v[n-1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),L=I?Math.min(I/2,r)/I:0,z=c[0]+(v[0]-c[0])*L,E=z,w=c[1]-(c[1]-v[1])*L,R=w,P=E-(E-c[0])*le,M=R-(R-c[1])*le,s.setTripleAt(E,R,P,M,z,w,B),B+=1,n===d-1?v=e.v[0]:v=e.v[n+1],I=Math.sqrt(Math.pow(c[0]-v[0],2)+Math.pow(c[1]-v[1],2)),L=I?Math.min(I/2,r)/I:0,P=c[0]+(v[0]-c[0])*L,E=P,M=c[1]+(v[1]-c[1])*L,R=M,z=E-(E-c[0])*le,w=R-(R-c[1])*le,s.setTripleAt(E,R,P,M,z,w,B),B+=1):(s.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],B),B+=1);return s},Cs.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.rd.v;if(f!==0){var x,v;for(s=0;s<n;s+=1){if(x=this.shapes[s],v=x.localShapeCollection,!(!x.shape._mdf&&!this._mdf&&!e))for(v.releaseShapes(),x.shape._mdf=!0,r=x.shape.paths.shapes,c=x.shape.paths._length,d=0;d<c;d+=1)v.addShape(this.processPath(r[d],f));x.shape.paths=x.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Xa(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function Bl(e){return Math.abs(e)<=1e-5}function kh(e,r,s){return e*(1-s)+r*s}function ci(e,r,s){return[kh(e[0],r[0],s),kh(e[1],r[1],s)]}function sg(e,r,s){if(e===0)return[];var n=r*r-4*e*s;if(n<0)return[];var d=-r/(2*e);if(n===0)return[d];var c=Math.sqrt(n)/(2*e);return[d-c,d+c]}function Ch(e,r,s,n){return[-e+3*r-3*s+n,3*e-6*r+3*s,-3*e+3*r,e]}function wh(e){return new Bt(e,e,e,e,!1)}function Bt(e,r,s,n,d){d&&Lo(e,r)&&(r=ci(e,n,1/3)),d&&Lo(s,n)&&(s=ci(e,n,2/3));var c=Ch(e[0],r[0],s[0],n[0]),f=Ch(e[1],r[1],s[1],n[1]);this.a=[c[0],f[0]],this.b=[c[1],f[1]],this.c=[c[2],f[2]],this.d=[c[3],f[3]],this.points=[e,r,s,n]}Bt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Bt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Bt.prototype.tangentAngle=function(e){var r=this.derivative(e);return Math.atan2(r[1],r[0])},Bt.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},Bt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Bl(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,s=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(s<0)return[];var n=Math.sqrt(s);return Bl(n)?n>0&&n<1?[r]:[]:[r-n,r+n].filter(function(d){return d>0&&d<1})},Bt.prototype.split=function(e){if(e<=0)return[wh(this.points[0]),this];if(e>=1)return[this,wh(this.points[this.points.length-1])];var r=ci(this.points[0],this.points[1],e),s=ci(this.points[1],this.points[2],e),n=ci(this.points[2],this.points[3],e),d=ci(r,s,e),c=ci(s,n,e),f=ci(d,c,e);return[new Bt(this.points[0],r,d,f,!0),new Bt(f,c,n,this.points[3],!0)]};function Nh(e,r){var s=e.points[0][r],n=e.points[e.points.length-1][r];if(s>n){var d=n;n=s,s=d}for(var c=sg(3*e.a[r],2*e.b[r],e.c[r]),f=0;f<c.length;f+=1)if(c[f]>0&&c[f]<1){var x=e.point(c[f])[r];x<s?s=x:x>n&&(n=x)}return{min:s,max:n}}Bt.prototype.bounds=function(){return{x:Nh(this,0),y:Nh(this,1)}},Bt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Za(e,r,s){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(r+s)/2,t1:r,t2:s}}function Lh(e){var r=e.bez.split(.5);return[Za(r[0],e.t1,e.t),Za(r[1],e.t,e.t2)]}function ag(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function ws(e,r,s,n,d,c){if(ag(e,r)){if(s>=c||e.width<=n&&e.height<=n&&r.width<=n&&r.height<=n){d.push([e.t,r.t]);return}var f=Lh(e),x=Lh(r);ws(f[0],x[0],s+1,n,d,c),ws(f[0],x[1],s+1,n,d,c),ws(f[1],x[0],s+1,n,d,c),ws(f[1],x[1],s+1,n,d,c)}}Bt.prototype.intersections=function(e,r,s){r===void 0&&(r=2),s===void 0&&(s=7);var n=[];return ws(Za(this,0,1),Za(e,0,1),0,r,n,s),n},Bt.shapeSegment=function(e,r){var s=(r+1)%e.length();return new Bt(e.v[r],e.o[r],e.i[s],e.v[s],!0)},Bt.shapeSegmentInverted=function(e,r){var s=(r+1)%e.length();return new Bt(e.v[s],e.i[s],e.o[r],e.v[r],!0)};function Ul(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function Qa(e,r,s,n){var d=[e[0],e[1],1],c=[r[0],r[1],1],f=[s[0],s[1],1],x=[n[0],n[1],1],v=Ul(Ul(d,c),Ul(f,x));return Bl(v[2])?null:[v[0]/v[2],v[1]/v[2]]}function No(e,r,s){return[e[0]+Math.cos(r)*s,e[1]-Math.sin(r)*s]}function Hl(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function Lo(e,r){return Xa(e[0],r[0])&&Xa(e[1],r[1])}function Ns(){}$([Ye],Ns),Ns.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=it.getProp(e,r.s,0,null,this),this.frequency=it.getProp(e,r.r,0,null,this),this.pointsType=it.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Rh(e,r,s,n,d,c,f){var x=s-Math.PI/2,v=s+Math.PI/2,I=r[0]+Math.cos(s)*n*d,L=r[1]-Math.sin(s)*n*d;e.setTripleAt(I,L,I+Math.cos(x)*c,L-Math.sin(x)*c,I+Math.cos(v)*f,L-Math.sin(v)*f,e.length())}function ng(e,r){var s=[r[0]-e[0],r[1]-e[1]],n=-Math.PI*.5,d=[Math.cos(n)*s[0]-Math.sin(n)*s[1],Math.sin(n)*s[0]+Math.cos(n)*s[1]];return d}function lg(e,r){var s=r===0?e.length()-1:r-1,n=(r+1)%e.length(),d=e.v[s],c=e.v[n],f=ng(d,c);return Math.atan2(0,1)-Math.atan2(f[1],f[0])}function Mh(e,r,s,n,d,c,f){var x=lg(r,s),v=r.v[s%r._length],I=r.v[s===0?r._length-1:s-1],L=r.v[(s+1)%r._length],B=c===2?Math.sqrt(Math.pow(v[0]-I[0],2)+Math.pow(v[1]-I[1],2)):0,E=c===2?Math.sqrt(Math.pow(v[0]-L[0],2)+Math.pow(v[1]-L[1],2)):0;Rh(e,r.v[s%r._length],x,f,n,E/((d+1)*2),B/((d+1)*2),c)}function cg(e,r,s,n,d,c){for(var f=0;f<n;f+=1){var x=(f+1)/(n+1),v=d===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,I=r.normalAngle(x),L=r.point(x);Rh(e,L,I,c,s,v/((n+1)*2),v/((n+1)*2),d),c=-c}return c}Ns.prototype.processPath=function(e,r,s,n){var d=e._length,c=ce.newElement();if(c.c=e.c,e.c||(d-=1),d===0)return c;var f=-1,x=Bt.shapeSegment(e,0);Mh(c,e,0,r,s,n,f);for(var v=0;v<d;v+=1)f=cg(c,x,r,s,n,-f),v===d-1&&!e.c?x=null:x=Bt.shapeSegment(e,(v+1)%d),Mh(c,e,v+1,r,s,n,f);return c},Ns.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),v=this.pointsType.v;if(f!==0){var I,L;for(s=0;s<n;s+=1){if(I=this.shapes[s],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],f,x,v));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Gl(e,r,s){var n=Math.atan2(r[0]-e[0],r[1]-e[1]);return[No(e,n,s),No(r,n,s)]}function Ro(e,r){var s,n,d,c,f,x,v;v=Gl(e.points[0],e.points[1],r),s=v[0],n=v[1],v=Gl(e.points[1],e.points[2],r),d=v[0],c=v[1],v=Gl(e.points[2],e.points[3],r),f=v[0],x=v[1];var I=Qa(s,n,d,c);I===null&&(I=n);var L=Qa(f,x,d,c);return L===null&&(L=f),new Bt(s,I,L,x)}function Oh(e,r,s,n,d){var c=r.points[3],f=s.points[0];if(n===3||Lo(c,f))return c;if(n===2){var x=-r.tangentAngle(1),v=-s.tangentAngle(0)+Math.PI,I=Qa(c,No(c,x+Math.PI/2,100),f,No(f,x+Math.PI/2,100)),L=I?Hl(I,c):Hl(c,f)/2,B=No(c,x,2*L*le);return e.setXYAt(B[0],B[1],"o",e.length()-1),B=No(f,v,2*L*le),e.setTripleAt(f[0],f[1],f[0],f[1],B[0],B[1],e.length()),f}var E=Lo(c,r.points[2])?r.points[0]:r.points[2],R=Lo(f,s.points[1])?s.points[3]:s.points[1],P=Qa(E,c,f,R);return P&&Hl(P,c)<d?(e.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],e.length()),P):c}function Ph(e,r){var s=e.intersections(r);return s.length&&Xa(s[0][0],1)&&s.shift(),s.length?s[0]:null}function Dh(e,r){var s=e.slice(),n=r.slice(),d=Ph(e[e.length-1],r[0]);return d&&(s[e.length-1]=e[e.length-1].split(d[0])[0],n[0]=r[0].split(d[1])[1]),e.length>1&&r.length>1&&(d=Ph(e[0],r[r.length-1]),d)?[[e[0].split(d[0])[0]],[r[r.length-1].split(d[1])[1]]]:[s,n]}function dg(e){for(var r,s=1;s<e.length;s+=1)r=Dh(e[s-1],e[s]),e[s-1]=r[0],e[s]=r[1];return e.length>1&&(r=Dh(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function Fh(e,r){var s=e.inflectionPoints(),n,d,c,f;if(s.length===0)return[Ro(e,r)];if(s.length===1||Xa(s[1],1))return c=e.split(s[0]),n=c[0],d=c[1],[Ro(n,r),Ro(d,r)];c=e.split(s[0]),n=c[0];var x=(s[1]-s[0])/(1-s[0]);return c=c[1].split(x),f=c[0],d=c[1],[Ro(n,r),Ro(f,r),Ro(d,r)]}function Ls(){}$([Ye],Ls),Ls.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=it.getProp(e,r.a,0,null,this),this.miterLimit=it.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ls.prototype.processPath=function(e,r,s,n){var d=ce.newElement();d.c=e.c;var c=e.length();e.c||(c-=1);var f,x,v,I=[];for(f=0;f<c;f+=1)v=Bt.shapeSegment(e,f),I.push(Fh(v,r));if(!e.c)for(f=c-1;f>=0;f-=1)v=Bt.shapeSegmentInverted(e,f),I.push(Fh(v,r));I=dg(I);var L=null,B=null;for(f=0;f<I.length;f+=1){var E=I[f];for(B&&(L=Oh(d,B,E[0],s,n)),B=E[E.length-1],x=0;x<E.length;x+=1)v=E[x],L&&Lo(v.points[0],L)?d.setXYAt(v.points[1][0],v.points[1][1],"o",d.length()-1):d.setTripleAt(v.points[0][0],v.points[0][1],v.points[1][0],v.points[1][1],v.points[0][0],v.points[0][1],d.length()),d.setTripleAt(v.points[3][0],v.points[3][1],v.points[3][0],v.points[3][1],v.points[2][0],v.points[2][1],d.length()),L=v.points[3]}return I.length&&Oh(d,B,I[0][0],s,n),d},Ls.prototype.processShapes=function(e){var r,s,n=this.shapes.length,d,c,f=this.amount.v,x=this.miterLimit.v,v=this.lineJoin;if(f!==0){var I,L;for(s=0;s<n;s+=1){if(I=this.shapes[s],L=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!e))for(L.releaseShapes(),I.shape._mdf=!0,r=I.shape.paths.shapes,c=I.shape.paths._length,d=0;d<c;d+=1)L.addShape(this.processPath(r[d],f,v,x));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function $h(e){for(var r=e.fStyle?e.fStyle.split(" "):[],s="normal",n="normal",d=r.length,c,f=0;f<d;f+=1)switch(c=r[f].toLowerCase(),c){case"italic":n="italic";break;case"bold":s="700";break;case"black":s="900";break;case"medium":s="500";break;case"regular":case"normal":s="400";break;case"light":case"thin":s="200";break;default:break}return{style:n,weight:e.fWeight||s}}var Fi=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},s=[];s=s.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=127988,d=917631,c=917601,f=917626,x=65039,v=8205,I=127462,L=127487,B=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function E(S){var O=S.split(","),u,b=O.length,U=[];for(u=0;u<b;u+=1)O[u]!=="sans-serif"&&O[u]!=="monospace"&&U.push(O[u]);return U.join(",")}function R(S,O){var u=N("span");u.setAttribute("aria-hidden",!0),u.style.fontFamily=O;var b=N("span");b.innerText="giItT1WQy@!-/#",u.style.position="absolute",u.style.left="-10000px",u.style.top="-10000px",u.style.fontSize="300px",u.style.fontVariant="normal",u.style.fontStyle="normal",u.style.fontWeight="normal",u.style.letterSpacing="0",u.appendChild(b),document.body.appendChild(u);var U=b.offsetWidth;return b.style.fontFamily=E(S)+", "+O,{node:b,w:U,parent:u}}function P(){var S,O=this.fonts.length,u,b,U=O;for(S=0;S<O;S+=1)this.fonts[S].loaded?U-=1:this.fonts[S].fOrigin==="n"||this.fonts[S].origin===0?this.fonts[S].loaded=!0:(u=this.fonts[S].monoCase.node,b=this.fonts[S].monoCase.w,u.offsetWidth!==b?(U-=1,this.fonts[S].loaded=!0):(u=this.fonts[S].sansCase.node,b=this.fonts[S].sansCase.w,u.offsetWidth!==b&&(U-=1,this.fonts[S].loaded=!0)),this.fonts[S].loaded&&(this.fonts[S].sansCase.parent.parentNode.removeChild(this.fonts[S].sansCase.parent),this.fonts[S].monoCase.parent.parentNode.removeChild(this.fonts[S].monoCase.parent)));U!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function M(S,O){var u=document.body&&O?"svg":"canvas",b,U=$h(S);if(u==="svg"){var F=bt("text");F.style.fontSize="100px",F.setAttribute("font-family",S.fFamily),F.setAttribute("font-style",U.style),F.setAttribute("font-weight",U.weight),F.textContent="1",S.fClass?(F.style.fontFamily="inherit",F.setAttribute("class",S.fClass)):F.style.fontFamily=S.fFamily,O.appendChild(F),b=F}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=U.style+" "+U.weight+" 100px "+S.fFamily,b=at}function mt(vt){return u==="svg"?(b.textContent=vt,b.getComputedTextLength()):b.measureText(vt).width}return{measureText:mt}}function z(S,O){if(!S){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=S.list;return}if(!document.body){this.isLoaded=!0,S.list.forEach(function(Ce){Ce.helper=M(Ce),Ce.cache={}}),this.fonts=S.list;return}var u=S.list,b,U=u.length,F=U;for(b=0;b<U;b+=1){var at=!0,mt,vt;if(u[b].loaded=!1,u[b].monoCase=R(u[b].fFamily,"monospace"),u[b].sansCase=R(u[b].fFamily,"sans-serif"),!u[b].fPath)u[b].loaded=!0,F-=1;else if(u[b].fOrigin==="p"||u[b].origin===3){if(mt=document.querySelectorAll('style[f-forigin="p"][f-family="'+u[b].fFamily+'"], style[f-origin="3"][f-family="'+u[b].fFamily+'"]'),mt.length>0&&(at=!1),at){var wt=N("style");wt.setAttribute("f-forigin",u[b].fOrigin),wt.setAttribute("f-origin",u[b].origin),wt.setAttribute("f-family",u[b].fFamily),wt.type="text/css",wt.innerText="@font-face {font-family: "+u[b].fFamily+"; font-style: normal; src: url('"+u[b].fPath+"');}",O.appendChild(wt)}}else if(u[b].fOrigin==="g"||u[b].origin===1){for(mt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),vt=0;vt<mt.length;vt+=1)mt[vt].href.indexOf(u[b].fPath)!==-1&&(at=!1);if(at){var Nt=N("link");Nt.setAttribute("f-forigin",u[b].fOrigin),Nt.setAttribute("f-origin",u[b].origin),Nt.type="text/css",Nt.rel="stylesheet",Nt.href=u[b].fPath,document.body.appendChild(Nt)}}else if(u[b].fOrigin==="t"||u[b].origin===2){for(mt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),vt=0;vt<mt.length;vt+=1)u[b].fPath===mt[vt].src&&(at=!1);if(at){var qt=N("link");qt.setAttribute("f-forigin",u[b].fOrigin),qt.setAttribute("f-origin",u[b].origin),qt.setAttribute("rel","stylesheet"),qt.setAttribute("href",u[b].fPath),O.appendChild(qt)}}u[b].helper=M(u[b],O),u[b].cache={},this.fonts.push(u[b])}F===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function w(S){if(S){this.chars||(this.chars=[]);var O,u=S.length,b,U=this.chars.length,F;for(O=0;O<u;O+=1){for(b=0,F=!1;b<U;)this.chars[b].style===S[O].style&&this.chars[b].fFamily===S[O].fFamily&&this.chars[b].ch===S[O].ch&&(F=!0),b+=1;F||(this.chars.push(S[O]),U+=1)}}}function _(S,O,u){for(var b=0,U=this.chars.length;b<U;){if(this.chars[b].ch===S&&this.chars[b].style===O&&this.chars[b].fFamily===u)return this.chars[b];b+=1}return(typeof S=="string"&&S.charCodeAt(0)!==13||!S)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",S,O,u)),r}function y(S,O,u){var b=this.getFontByName(O),U=S;if(!b.cache[U]){var F=b.helper;if(S===" "){var at=F.measureText("|"+S+"|"),mt=F.measureText("||");b.cache[U]=(at-mt)/100}else b.cache[U]=F.measureText(S)/100}return b.cache[U]*u}function A(S){for(var O=0,u=this.fonts.length;O<u;){if(this.fonts[O].fName===S)return this.fonts[O];O+=1}return this.fonts[0]}function k(S){var O=0,u=S.charCodeAt(0);if(u>=55296&&u<=56319){var b=S.charCodeAt(1);b>=56320&&b<=57343&&(O=(u-55296)*1024+b-56320+65536)}return O}function D(S,O){var u=S.toString(16)+O.toString(16);return B.indexOf(u)!==-1}function V(S){return S===v}function H(S){return S===x}function Z(S){var O=k(S);return O>=I&&O<=L}function ft(S){return Z(S.substr(0,2))&&Z(S.substr(2,2))}function ht(S){return s.indexOf(S)!==-1}function et(S,O){var u=k(S.substr(O,2));if(u!==n)return!1;var b=0;for(O+=2;b<5;){if(u=k(S.substr(O,2)),u<c||u>f)return!1;b+=1,O+=2}return k(S.substr(O,2))===d}function yt(){this.isLoaded=!0}var lt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};lt.isModifier=D,lt.isZeroWidthJoiner=V,lt.isFlagEmoji=ft,lt.isRegionalCode=Z,lt.isCombinedCharacter=ht,lt.isRegionalFlag=et,lt.isVariationSelector=H,lt.BLACK_FLAG_CODE_POINT=n;var X={addChars:w,addFonts:z,getCharData:_,getFontByName:A,measureText:y,checkLoadedFonts:P,setIsLoaded:yt};return lt.prototype=X,lt}();function zh(e){this.animationData=e}zh.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function hg(e){return new zh(e)}function Ja(){}Ja.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var r,s=this.renderableComponents.length;for(r=0;r<s;r+=1)this.renderableComponents[r].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Yl=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(r){return e[r]||""}}();function pg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function mg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function ug(e,r,s){this.p=it.getProp(r,e.v,1,0,s)}function fg(e,r,s){this.p=it.getProp(r,e.v,1,0,s)}function vg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function gg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function bg(e,r,s){this.p=it.getProp(r,e.v,0,0,s)}function yg(){this.p={}}function Vh(e,r){var s=e.ef||[];this.effectElements=[];var n,d=s.length,c;for(n=0;n<d;n+=1)c=new Rs(s[n],r),this.effectElements.push(c)}function Rs(e,r){this.init(e,r)}$([oe],Rs),Rs.prototype.getValue=Rs.prototype.iterateDynamicProperties,Rs.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var s,n=this.data.ef.length,d,c=this.data.ef;for(s=0;s<n;s+=1){switch(d=null,c[s].ty){case 0:d=new pg(c[s],r,this);break;case 1:d=new mg(c[s],r,this);break;case 2:d=new ug(c[s],r,this);break;case 3:d=new fg(c[s],r,this);break;case 4:case 7:d=new bg(c[s],r,this);break;case 10:d=new vg(c[s],r,this);break;case 11:d=new gg(c[s],r,this);break;case 5:d=new Vh(c[s],r,this);break;default:d=new yg(c[s],r,this);break}d&&this.effectElements.push(d)}};function di(){}di.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,s=this.data.masksProperties.length;r<s;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=ph();if(r){var s=r("layer"),n=r("effects"),d=r("shape"),c=r("text"),f=r("comp");this.layerInterface=s(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var x=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(x),this.data.ty===0||this.data.xt?this.compInterface=f(this):this.data.ty===4?(this.layerInterface.shapeInterface=d(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var r=Yl(this.data.bm),s=this.baseElement||this.layerElement;s.style["mix-blend-mode"]=r},initBaseData:function(r,s,n){this.globalData=s,this.comp=n,this.data=r,this.layerId=Ie(),this.data.sr||(this.data.sr=1),this.effectsManager=new Vh(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function hi(){}hi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(r,s){var n,d=this.dynamicProperties.length;for(n=0;n<d;n+=1)(s||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function pi(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,s)}pi.prototype.prepareFrame=function(){},$([Ja,di,hi],pi),pi.prototype.getBaseElement=function(){return null},pi.prototype.renderFrame=function(){},pi.prototype.destroy=function(){},pi.prototype.initExpressions=function(){var e=ph();if(e){var r=e("footage");this.layerInterface=r(this)}},pi.prototype.getFootageData=function(){return this.footageData};function ke(e,r,s){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,s),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0},this.lv=it.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}ke.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var s=this._volume*this._volumeMultiplier;this._previousVolume!==s&&(this._previousVolume=s,this.audio.volume(s))},$([Ja,di,hi],ke),ke.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},ke.prototype.show=function(){},ke.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ke.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ke.prototype.resume=function(){this._canPlay=!0},ke.prototype.setRate=function(e){this.audio.rate(e)},ke.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},ke.prototype.getBaseElement=function(){return null},ke.prototype.destroy=function(){},ke.prototype.sourceRectAtTime=function(){},ke.prototype.initExpressions=function(){};function he(){}he.prototype.checkLayers=function(e){var r,s=this.layers.length,n;for(this.completeLayers=!0,r=s-1;r>=0;r-=1)this.elements[r]||(n=this.layers[r],n.ip-n.st<=e-this.layers[r].st&&n.op-n.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?this.completeLayers:!1;this.checkPendingElements()},he.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},he.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},he.prototype.createAudio=function(e){return new ke(e,this.globalData,this)},he.prototype.createFootage=function(e){return new pi(e,this.globalData,this)},he.prototype.buildAllItems=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},he.prototype.includeLayers=function(e){this.completeLayers=!1;var r,s=e.length,n,d=this.layers.length;for(r=0;r<s;r+=1)for(n=0;n<d;){if(this.layers[n].id===e[r].id){this.layers[n]=e[r];break}n+=1}},he.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},he.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},he.prototype.buildElementParenting=function(e,r,s){for(var n=this.elements,d=this.layers,c=0,f=d.length;c<f;)d[c].ind==r&&(!n[c]||n[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(s.push(n[c]),n[c].setAsParent(),d[c].parent!==void 0?this.buildElementParenting(e,d[c].parent,s):e.setHierarchy(s))),c+=1},he.prototype.addPendingElement=function(e){this.pendingElements.push(e)},he.prototype.searchExtraCompositions=function(e){var r,s=e.length;for(r=0;r<s;r+=1)if(e[r].xt){var n=this.createComp(e[r]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},he.prototype.getElementById=function(e){var r,s=this.elements.length;for(r=0;r<s;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},he.prototype.getElementByPath=function(e){var r=e.shift(),s;if(typeof r=="number")s=this.elements[r];else{var n,d=this.elements.length;for(n=0;n<d;n+=1)if(this.elements[n].data.nm===r){s=this.elements[n];break}}return e.length===0?s:s.getElementByPath(e)},he.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new Fi,this.globalData.slotManager=hg(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,r),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Eg={TRANSFORM_EFFECT:"transformEFfect"};function Mo(){}Mo.prototype={initTransform:function(){var r=new de;this.finalTransform={mProp:this.data.ks?Vl.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var r,s=this.finalTransform.mat,n=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<d;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(r=this.finalTransform.mProp.v.props,s.cloneFromProps(r),n=0;n<d;n+=1)s.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var r=0,s=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<s;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),r=1;r<s;r+=1){var d=this.localTransforms[r].matrix;n.multiply(d)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(r=0;r<s;r+=1)c*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(Eg.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new de;var s=0,n=r.length;for(s=0;s<n;s+=1)this.localTransforms.push(r[s])}}},globalToLocal:function(r){var s=[];s.push(this.finalTransform);for(var n=!0,d=this.comp;n;)d.finalTransform?(d.data.hasMask&&s.splice(0,0,d.finalTransform),d=d.comp):n=!1;var c,f=s.length,x;for(c=0;c<f;c+=1)x=s[c].mat.applyToPointArray(0,0,0),r=[r[0]-x[0],r[1]-x[1],0];return r},mHelper:new de};function $i(e,r,s){this.data=e,this.element=r,this.globalData=s,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n=this.globalData.defs,d,c=this.masksProperties?this.masksProperties.length:0;this.viewData=rt(c),this.solidPath="";var f,x=this.masksProperties,v=0,I=[],L,B,E=Ie(),R,P,M,z,w="clipPath",_="clip-path";for(d=0;d<c;d+=1)if((x[d].mode!=="a"&&x[d].mode!=="n"||x[d].inv||x[d].o.k!==100||x[d].o.x)&&(w="mask",_="mask"),(x[d].mode==="s"||x[d].mode==="i")&&v===0?(R=bt("rect"),R.setAttribute("fill","#ffffff"),R.setAttribute("width",this.element.comp.data.w||0),R.setAttribute("height",this.element.comp.data.h||0),I.push(R)):R=null,f=bt("path"),x[d].mode==="n")this.viewData[d]={op:it.getProp(this.element,x[d].o,0,.01,this.element),prop:ja.getShapeProp(this.element,x[d],3),elem:f,lastPath:""},n.appendChild(f);else{v+=1,f.setAttribute("fill",x[d].mode==="s"?"#000000":"#ffffff"),f.setAttribute("clip-rule","nonzero");var y;if(x[d].x.k!==0?(w="mask",_="mask",z=it.getProp(this.element,x[d].x,0,null,this.element),y=Ie(),P=bt("filter"),P.setAttribute("id",y),M=bt("feMorphology"),M.setAttribute("operator","erode"),M.setAttribute("in","SourceGraphic"),M.setAttribute("radius","0"),P.appendChild(M),n.appendChild(P),f.setAttribute("stroke",x[d].mode==="s"?"#000000":"#ffffff")):(M=null,z=null),this.storedData[d]={elem:f,x:z,expan:M,lastPath:"",lastOperator:"",filterId:y,lastRadius:0},x[d].mode==="i"){B=I.length;var A=bt("g");for(L=0;L<B;L+=1)A.appendChild(I[L]);var k=bt("mask");k.setAttribute("mask-type","alpha"),k.setAttribute("id",E+"_"+v),k.appendChild(f),n.appendChild(k),A.setAttribute("mask","url("+T()+"#"+E+"_"+v+")"),I.length=0,I.push(A)}else I.push(f);x[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:f,lastPath:"",op:it.getProp(this.element,x[d].o,0,.01,this.element),prop:ja.getShapeProp(this.element,x[d],3),invRect:R},this.viewData[d].prop.k||this.drawPath(x[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=bt(w),c=I.length,d=0;d<c;d+=1)this.maskElement.appendChild(I[d]);v>0&&(this.maskElement.setAttribute("id",E),this.element.maskedElement.setAttribute(_,"url("+T()+"#"+E+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}$i.prototype.getMaskProperty=function(e){return this.viewData[e].prop},$i.prototype.renderFrame=function(e){var r=this.element.finalTransform.mat,s,n=this.masksProperties.length;for(s=0;s<n;s+=1)if((this.viewData[s].prop._mdf||e)&&this.drawPath(this.masksProperties[s],this.viewData[s].prop.v,this.viewData[s]),(this.viewData[s].op._mdf||e)&&this.viewData[s].elem.setAttribute("fill-opacity",this.viewData[s].op.v),this.masksProperties[s].mode!=="n"&&(this.viewData[s].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[s].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[s].x&&(this.storedData[s].x._mdf||e))){var d=this.storedData[s].expan;this.storedData[s].x.v<0?(this.storedData[s].lastOperator!=="erode"&&(this.storedData[s].lastOperator="erode",this.storedData[s].elem.setAttribute("filter","url("+T()+"#"+this.storedData[s].filterId+")")),d.setAttribute("radius",-this.storedData[s].x.v)):(this.storedData[s].lastOperator!=="dilate"&&(this.storedData[s].lastOperator="dilate",this.storedData[s].elem.setAttribute("filter",null)),this.storedData[s].elem.setAttribute("stroke-width",this.storedData[s].x.v*2))}},$i.prototype.getMaskelement=function(){return this.maskElement},$i.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},$i.prototype.drawPath=function(e,r,s){var n=" M"+r.v[0][0]+","+r.v[0][1],d,c;for(c=r._length,d=1;d<c;d+=1)n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[d][0]+","+r.i[d][1]+" "+r.v[d][0]+","+r.v[d][1];if(r.c&&c>1&&(n+=" C"+r.o[d-1][0]+","+r.o[d-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),s.lastPath!==n){var f="";s.elem&&(r.c&&(f=e.inv?this.solidPath+n:n),s.elem.setAttribute("d",f)),s.lastPath=n}},$i.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ms=function(){var e={};e.createFilter=r,e.createAlphaToLuminanceFilter=s;function r(n,d){var c=bt("filter");return c.setAttribute("id",n),d!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function s(){var n=bt("feColorMatrix");return n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),n}return e}(),Bh=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),tn={},Uh="filter_result_";function Wl(e){var r,s="SourceGraphic",n=e.data.ef?e.data.ef.length:0,d=Ie(),c=Ms.createFilter(d,!0),f=0;this.filters=[];var x;for(r=0;r<n;r+=1){x=null;var v=e.data.ef[r].ty;if(tn[v]){var I=tn[v].effect;x=new I(c,e.effectsManager.effectElements[r],e,Uh+f,s),s=Uh+f,tn[v].countsAsEffect&&(f+=1)}x&&this.filters.push(x)}f&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+T()+"#"+d+")")),this.filters.length&&e.addRenderableComponent(this)}Wl.prototype.renderFrame=function(e){var r,s=this.filters.length;for(r=0;r<s;r+=1)this.filters[r].renderFrame(e)},Wl.prototype.getEffects=function(e){var r,s=this.filters.length,n=[];for(r=0;r<s;r+=1)this.filters[r].type===e&&n.push(this.filters[r]);return n};function YT(e,r,s){tn[e]={effect:r,countsAsEffect:s}}function Os(){}Os.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var r=null;if(this.data.td){this.matteMasks={};var s=bt("g");s.setAttribute("id",this.layerId),s.appendChild(this.layerElement),r=s,this.globalData.defs.appendChild(s)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=bt("clipPath"),d=bt("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=Ie();if(n.setAttribute("id",c),n.appendChild(d),this.globalData.defs.appendChild(n),this.checkMasks()){var f=bt("g");f.setAttribute("clip-path","url("+T()+"#"+c+")"),f.appendChild(this.layerElement),this.transformedElement=f,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+T()+"#"+c+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new $i(this.data,this,this.globalData),this.renderableEffectsManager=new Wl(this),this.searchEffectTransforms()},getMatte:function(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var s=this.layerId+"_"+r,n,d,c,f;if(r===1||r===3){var x=bt("mask");x.setAttribute("id",s),x.setAttribute("mask-type",r===3?"luminance":"alpha"),c=bt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(c),this.globalData.defs.appendChild(x),!Bh.maskType&&r===1&&(x.setAttribute("mask-type","luminance"),n=Ie(),d=Ms.createFilter(n),this.globalData.defs.appendChild(d),d.appendChild(Ms.createAlphaToLuminanceFilter()),f=bt("g"),f.appendChild(c),x.appendChild(f),f.setAttribute("filter","url("+T()+"#"+n+")"))}else if(r===2){var v=bt("mask");v.setAttribute("id",s),v.setAttribute("mask-type","alpha");var I=bt("g");v.appendChild(I),n=Ie(),d=Ms.createFilter(n);var L=bt("feComponentTransfer");L.setAttribute("in","SourceGraphic"),d.appendChild(L);var B=bt("feFuncA");B.setAttribute("type","table"),B.setAttribute("tableValues","1.0 0.0"),L.appendChild(B),this.globalData.defs.appendChild(d);var E=bt("rect");E.setAttribute("width",this.comp.data.w),E.setAttribute("height",this.comp.data.h),E.setAttribute("x","0"),E.setAttribute("y","0"),E.setAttribute("fill","#ffffff"),E.setAttribute("opacity","0"),I.setAttribute("filter","url("+T()+"#"+n+")"),I.appendChild(E),c=bt("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(c),Bh.maskType||(v.setAttribute("mask-type","luminance"),d.appendChild(Ms.createAlphaToLuminanceFilter()),f=bt("g"),I.appendChild(E),f.appendChild(this.layerElement),I.appendChild(f)),this.globalData.defs.appendChild(v)}this.matteMasks[r]=s}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+T()+"#"+r+")")}};function Oo(){}Oo.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ps(){}(function(){var e={initElement:function(s,n,d){this.initFrame(),this.initBaseData(s,n,d),this.initTransform(s,n,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var s=this.baseElement||this.layerElement;s.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var s=this.baseElement||this.layerElement;s.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(s){this._mdf=!1,this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};$([Ja,K(e)],Ps)})();function Ds(e,r,s){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,s),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}$([di,Mo,Os,Oo,hi,Ps],Ds),Ds.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},Ds.prototype.sourceRectAtTime=function(){return this.sourceRect};function Tg(e,r){this.elem=e,this.pos=r}function Hh(){}Hh.prototype={addShapeToModifiers:function(r){var s,n=this.shapeModifiers.length;for(s=0;s<n;s+=1)this.shapeModifiers[s].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var s=0,n=this.shapeModifiers.length;s<n;)if(this.shapeModifiers[s].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,s=this.shapes.length;for(r=0;r<s;r+=1)this.shapes[r].sh.reset();s=this.shapeModifiers.length;var n;for(r=s-1;r>=0&&(n=this.shapeModifiers[r].processShapes(this._isFirstFrame),!n);r-=1);}},searchProcessedElement:function(r){for(var s=this.processedElements,n=0,d=s.length;n<d;){if(s[n].elem===r)return s[n].pos;n+=1}return 0},addProcessedElement:function(r,s){for(var n=this.processedElements,d=n.length;d;)if(d-=1,n[d].elem===r){n[d].pos=s;return}n.push(new Tg(r,s))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var Gh={1:"butt",2:"round",3:"square"},Yh={1:"miter",2:"round",3:"bevel"};function Wh(e,r,s){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=s,this.lvl=r,this._isAnimated=!!s.k;for(var n=0,d=e.length;n<d;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}Wh.prototype.setAsAnimated=function(){this._isAnimated=!0};function jh(e,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,this._mdf=!1,this.closed=e.hd===!0,this.pElem=bt("path"),this.msElem=null}jh.prototype.reset=function(){this.d="",this._mdf=!1};function en(e,r,s,n){this.elem=e,this.frameId=-1,this.dataProps=rt(r.length),this.renderer=s,this.k=!1,this.dashStr="",this.dashArray=Q("float32",r.length?r.length-1:0),this.dashoffset=Q("float32",1),this.initDynamicPropertyContainer(n);var d,c=r.length||0,f;for(d=0;d<c;d+=1)f=it.getProp(e,r[d].v,0,0,this),this.k=f.k||this.k,this.dataProps[d]={n:r[d].n,p:f};this.k||this.getValue(!0),this._isAnimated=this.k}en.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var r=0,s=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<s;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},$([oe],en);function qh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.w=it.getProp(e,r.w,0,null,this),this.d=new en(e,r.d||{},"svg",this),this.c=it.getProp(e,r.c,1,255,this),this.style=s,this._isAnimated=!!this._isAnimated}$([oe],qh);function Kh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(e,r.o,0,.01,this),this.c=it.getProp(e,r.c,1,255,this),this.style=s}$([oe],Kh);function Xh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=s}$([oe],Xh);function Fs(e,r,s){this.data=r,this.c=Q("uint8c",r.p*4);var n=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=Q("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(s),this.prop=it.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Fs.prototype.comparePoints=function(e,r){for(var s=0,n=this.o.length/2,d;s<n;){if(d=Math.abs(e[s*4]-e[r*4+s*2]),d>.01)return!1;s+=1}return!0},Fs.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,r=this.data.k.k.length;e<r;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Fs.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var r,s=this.data.p*4,n,d;for(r=0;r<s;r+=1)n=r%4===0?100:255,d=Math.round(this.prop.v[r]*n),this.c[r]!==d&&(this.c[r]=d,this._cmdf=!e);if(this.o.length)for(s=this.prop.v.length,r=this.data.p*4;r<s;r+=1)n=r%2===0?100:1,d=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==d&&(this.o[r-this.data.p*4]=d,this._omdf=!e);this._mdf=!e}},$([oe],Fs);function Po(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,s)}Po.prototype.initGradientData=function(e,r,s){this.o=it.getProp(e,r.o,0,.01,this),this.s=it.getProp(e,r.s,1,null,this),this.e=it.getProp(e,r.e,1,null,this),this.h=it.getProp(e,r.h||{k:0},0,.01,this),this.a=it.getProp(e,r.a||{k:0},0,It,this),this.g=new Fs(e,r.g,this),this.style=s,this.stops=[],this.setGradientData(s.pElem,r),this.setGradientOpacity(r,s),this._isAnimated=!!this._isAnimated},Po.prototype.setGradientData=function(e,r){var s=Ie(),n=bt(r.t===1?"linearGradient":"radialGradient");n.setAttribute("id",s),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var d=[],c,f,x;for(x=r.g.p*4,f=0;f<x;f+=4)c=bt("stop"),n.appendChild(c),d.push(c);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+T()+"#"+s+")"),this.gf=n,this.cst=d},Po.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var s,n,d,c=bt("mask"),f=bt("path");c.appendChild(f);var x=Ie(),v=Ie();c.setAttribute("id",v);var I=bt(e.t===1?"linearGradient":"radialGradient");I.setAttribute("id",x),I.setAttribute("spreadMethod","pad"),I.setAttribute("gradientUnits","userSpaceOnUse"),d=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var L=this.stops;for(n=e.g.p*4;n<d;n+=2)s=bt("stop"),s.setAttribute("stop-color","rgb(255,255,255)"),I.appendChild(s),L.push(s);f.setAttribute(e.ty==="gf"?"fill":"stroke","url("+T()+"#"+x+")"),e.ty==="gs"&&(f.setAttribute("stroke-linecap",Gh[e.lc||2]),f.setAttribute("stroke-linejoin",Yh[e.lj||2]),e.lj===1&&f.setAttribute("stroke-miterlimit",e.ml)),this.of=I,this.ms=c,this.ost=L,this.maskId=v,r.msElem=f}},$([oe],Po);function Zh(e,r,s){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=it.getProp(e,r.w,0,null,this),this.d=new en(e,r.d||{},"svg",this),this.initGradientData(e,r,s),this._isAnimated=!!this._isAnimated}$([Po,oe],Zh);function xg(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function Ag(e,r,s){this.transform={mProps:e,op:r,container:s},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Qh=function(r,s,n,d){if(s===0)return"";var c=r.o,f=r.i,x=r.v,v,I=" M"+d.applyToPointStringified(x[0][0],x[0][1]);for(v=1;v<s;v+=1)I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(f[v][0],f[v][1])+" "+d.applyToPointStringified(x[v][0],x[v][1]);return n&&s&&(I+=" C"+d.applyToPointStringified(c[v-1][0],c[v-1][1])+" "+d.applyToPointStringified(f[0][0],f[0][1])+" "+d.applyToPointStringified(x[0][0],x[0][1]),I+="z"),I},Sg=function(){var e=new de,r=new de,s={createRenderFunction:n};function n(B){switch(B.ty){case"fl":return x;case"gf":return I;case"gs":return v;case"st":return L;case"sh":case"el":case"rc":case"sr":return f;case"tr":return d;case"no":return c;default:return null}}function d(B,E,R){(R||E.transform.op._mdf)&&E.transform.container.setAttribute("opacity",E.transform.op.v),(R||E.transform.mProps._mdf)&&E.transform.container.setAttribute("transform",E.transform.mProps.v.to2dCSS())}function c(){}function f(B,E,R){var P,M,z,w,_,y,A=E.styles.length,k=E.lvl,D,V,H,Z;for(y=0;y<A;y+=1){if(w=E.sh._mdf||R,E.styles[y].lvl<k){for(V=r.reset(),H=k-E.styles[y].lvl,Z=E.transformers.length-1;!w&&H>0;)w=E.transformers[Z].mProps._mdf||w,H-=1,Z-=1;if(w)for(H=k-E.styles[y].lvl,Z=E.transformers.length-1;H>0;)V.multiply(E.transformers[Z].mProps.v),H-=1,Z-=1}else V=e;if(D=E.sh.paths,M=D._length,w){for(z="",P=0;P<M;P+=1)_=D.shapes[P],_&&_._length&&(z+=Qh(_,_._length,_.c,V));E.caches[y]=z}else z=E.caches[y];E.styles[y].d+=B.hd===!0?"":z,E.styles[y]._mdf=w||E.styles[y]._mdf}}function x(B,E,R){var P=E.style;(E.c._mdf||R)&&P.pElem.setAttribute("fill","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||R)&&P.pElem.setAttribute("fill-opacity",E.o.v)}function v(B,E,R){I(B,E,R),L(B,E,R)}function I(B,E,R){var P=E.gf,M=E.g._hasOpacity,z=E.s.v,w=E.e.v;if(E.o._mdf||R){var _=B.ty==="gf"?"fill-opacity":"stroke-opacity";E.style.pElem.setAttribute(_,E.o.v)}if(E.s._mdf||R){var y=B.t===1?"x1":"cx",A=y==="x1"?"y1":"cy";P.setAttribute(y,z[0]),P.setAttribute(A,z[1]),M&&!E.g._collapsable&&(E.of.setAttribute(y,z[0]),E.of.setAttribute(A,z[1]))}var k,D,V,H;if(E.g._cmdf||R){k=E.cst;var Z=E.g.c;for(V=k.length,D=0;D<V;D+=1)H=k[D],H.setAttribute("offset",Z[D*4]+"%"),H.setAttribute("stop-color","rgb("+Z[D*4+1]+","+Z[D*4+2]+","+Z[D*4+3]+")")}if(M&&(E.g._omdf||R)){var ft=E.g.o;for(E.g._collapsable?k=E.cst:k=E.ost,V=k.length,D=0;D<V;D+=1)H=k[D],E.g._collapsable||H.setAttribute("offset",ft[D*2]+"%"),H.setAttribute("stop-opacity",ft[D*2+1])}if(B.t===1)(E.e._mdf||R)&&(P.setAttribute("x2",w[0]),P.setAttribute("y2",w[1]),M&&!E.g._collapsable&&(E.of.setAttribute("x2",w[0]),E.of.setAttribute("y2",w[1])));else{var ht;if((E.s._mdf||E.e._mdf||R)&&(ht=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)),P.setAttribute("r",ht),M&&!E.g._collapsable&&E.of.setAttribute("r",ht)),E.e._mdf||E.h._mdf||E.a._mdf||R){ht||(ht=Math.sqrt(Math.pow(z[0]-w[0],2)+Math.pow(z[1]-w[1],2)));var et=Math.atan2(w[1]-z[1],w[0]-z[0]),yt=E.h.v;yt>=1?yt=.99:yt<=-1&&(yt=-.99);var lt=ht*yt,X=Math.cos(et+E.a.v)*lt+z[0],S=Math.sin(et+E.a.v)*lt+z[1];P.setAttribute("fx",X),P.setAttribute("fy",S),M&&!E.g._collapsable&&(E.of.setAttribute("fx",X),E.of.setAttribute("fy",S))}}}function L(B,E,R){var P=E.style,M=E.d;M&&(M._mdf||R)&&M.dashStr&&(P.pElem.setAttribute("stroke-dasharray",M.dashStr),P.pElem.setAttribute("stroke-dashoffset",M.dashoffset[0])),E.c&&(E.c._mdf||R)&&P.pElem.setAttribute("stroke","rgb("+ie(E.c.v[0])+","+ie(E.c.v[1])+","+ie(E.c.v[2])+")"),(E.o._mdf||R)&&P.pElem.setAttribute("stroke-opacity",E.o.v),(E.w._mdf||R)&&(P.pElem.setAttribute("stroke-width",E.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",E.w.v))}return s}();function Gt(e,r,s){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,s),this.prevViewData=[]}$([di,Mo,Os,Hh,Oo,hi,Ps],Gt),Gt.prototype.initSecondaryElement=function(){},Gt.prototype.identityMatrix=new de,Gt.prototype.buildExpressionInterface=function(){},Gt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Gt.prototype.filterUniqueShapes=function(){var e,r=this.shapes.length,s,n,d=this.stylesList.length,c,f=[],x=!1;for(n=0;n<d;n+=1){for(c=this.stylesList[n],x=!1,f.length=0,e=0;e<r;e+=1)s=this.shapes[e],s.styles.indexOf(c)!==-1&&(f.push(s),x=s._isAnimated||x);f.length>1&&x&&this.setShapesAsAnimated(f)}},Gt.prototype.setShapesAsAnimated=function(e){var r,s=e.length;for(r=0;r<s;r+=1)e[r].setAsAnimated()},Gt.prototype.createStyleElement=function(e,r){var s,n=new jh(e,r),d=n.pElem;if(e.ty==="st")s=new qh(this,e,n);else if(e.ty==="fl")s=new Kh(this,e,n);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?Po:Zh;s=new c(this,e,n),this.globalData.defs.appendChild(s.gf),s.maskId&&(this.globalData.defs.appendChild(s.ms),this.globalData.defs.appendChild(s.of),d.setAttribute("mask","url("+T()+"#"+s.maskId+")"))}else e.ty==="no"&&(s=new Xh(this,e,n));return(e.ty==="st"||e.ty==="gs")&&(d.setAttribute("stroke-linecap",Gh[e.lc||2]),d.setAttribute("stroke-linejoin",Yh[e.lj||2]),d.setAttribute("fill-opacity","0"),e.lj===1&&d.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&d.setAttribute("fill-rule","evenodd"),e.ln&&d.setAttribute("id",e.ln),e.cl&&d.setAttribute("class",e.cl),e.bm&&(d.style["mix-blend-mode"]=Yl(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,s),s},Gt.prototype.createGroupElement=function(e){var r=new xg;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=Yl(e.bm)),r},Gt.prototype.createTransformElement=function(e,r){var s=Vl.getTransformProperty(this,e,this),n=new Ag(s,s.o,r);return this.addToAnimatedContents(e,n),n},Gt.prototype.createShapeElement=function(e,r,s){var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7);var d=ja.getShapeProp(this,e,n,this),c=new Wh(r,s,d);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},Gt.prototype.addToAnimatedContents=function(e,r){for(var s=0,n=this.animatedContents.length;s<n;){if(this.animatedContents[s].element===r)return;s+=1}this.animatedContents.push({fn:Sg.createRenderFunction(e),element:r,data:e})},Gt.prototype.setElementStyles=function(e){var r=e.styles,s,n=this.stylesList.length;for(s=0;s<n;s+=1)this.stylesList[s].closed||r.push(this.stylesList[s])},Gt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Gt.prototype.searchShapes=function(e,r,s,n,d,c,f){var x=[].concat(c),v,I=e.length-1,L,B,E=[],R=[],P,M,z;for(v=I;v>=0;v-=1){if(z=this.searchProcessedElement(e[v]),z?r[v]=s[z-1]:e[v]._render=f,e[v].ty==="fl"||e[v].ty==="st"||e[v].ty==="gf"||e[v].ty==="gs"||e[v].ty==="no")z?r[v].style.closed=!1:r[v]=this.createStyleElement(e[v],d),e[v]._render&&r[v].style.pElem.parentNode!==n&&n.appendChild(r[v].style.pElem),E.push(r[v].style);else if(e[v].ty==="gr"){if(!z)r[v]=this.createGroupElement(e[v]);else for(B=r[v].it.length,L=0;L<B;L+=1)r[v].prevViewData[L]=r[v].it[L];this.searchShapes(e[v].it,r[v].it,r[v].prevViewData,r[v].gr,d+1,x,f),e[v]._render&&r[v].gr.parentNode!==n&&n.appendChild(r[v].gr)}else e[v].ty==="tr"?(z||(r[v]=this.createTransformElement(e[v],n)),P=r[v].transform,x.push(P)):e[v].ty==="sh"||e[v].ty==="rc"||e[v].ty==="el"||e[v].ty==="sr"?(z||(r[v]=this.createShapeElement(e[v],x,d)),this.setElementStyles(r[v])):e[v].ty==="tm"||e[v].ty==="rd"||e[v].ty==="ms"||e[v].ty==="pb"||e[v].ty==="zz"||e[v].ty==="op"?(z?(M=r[v],M.closed=!1):(M=li.getModifier(e[v].ty),M.init(this,e[v]),r[v]=M,this.shapeModifiers.push(M)),R.push(M)):e[v].ty==="rp"&&(z?(M=r[v],M.closed=!0):(M=li.getModifier(e[v].ty),r[v]=M,M.init(this,e,v,r),this.shapeModifiers.push(M),f=!1),R.push(M));this.addProcessedElement(e[v],v+1)}for(I=E.length,v=0;v<I;v+=1)E[v].closed=!0;for(I=R.length,v=0;v<I;v+=1)R[v].closed=!0},Gt.prototype.renderInnerContent=function(){this.renderModifiers();var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Gt.prototype.renderShape=function(){var e,r=this.animatedContents.length,s;for(e=0;e<r;e+=1)s=this.animatedContents[e],(this._isFirstFrame||s.element._isAnimated)&&s.data!==!0&&s.fn(s.data,s.element,this._isFirstFrame)},Gt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function jl(e,r,s,n,d,c){this.o=e,this.sw=r,this.sc=s,this.fc=n,this.m=d,this.p=c,this._mdf={o:!0,sw:!!r,sc:!!s,fc:!!n,m:!0,p:!0}}jl.prototype.update=function(e,r,s,n,d,c){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var f=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,f=!0),this.sw!==r&&(this.sw=r,this._mdf.sw=!0,f=!0),this.sc!==s&&(this.sc=s,this._mdf.sc=!0,f=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,f=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,f=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,f=!0),f};function ve(e,r){this._frameId=o,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}ve.prototype.defaultBoxWidth=[0,0],ve.prototype.copyData=function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},ve.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},ve.prototype.searchProperty=function(){return this.searchKeyframes()},ve.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ve.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},ve.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var r=this.currentData,s=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n,d=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(n=0;n<d;n+=1)s!==this.keysIndex?c=this.effectsSequence[n](c,c.t):c=this.effectsSequence[n](this.currentData,c.t);r!==c&&this.setCurrentData(c),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},ve.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,r=this.elem.comp.renderedFrame,s=0,n=e.length;s<=n-1&&!(s===n-1||e[s+1].t>r);)s+=1;return this.keysIndex!==s&&(this.keysIndex=s),this.data.d.k[this.keysIndex].s},ve.prototype.buildFinalText=function(e){for(var r=[],s=0,n=e.length,d,c,f=!1,x=!1,v="";s<n;)f=x,x=!1,d=e.charCodeAt(s),v=e.charAt(s),Fi.isCombinedCharacter(d)?f=!0:d>=55296&&d<=56319?Fi.isRegionalFlag(e,s)?v=e.substr(s,14):(c=e.charCodeAt(s+1),c>=56320&&c<=57343&&(Fi.isModifier(d,c)?(v=e.substr(s,2),f=!0):Fi.isFlagEmoji(e.substr(s,4))?v=e.substr(s,4):v=e.substr(s,2))):d>56319?(c=e.charCodeAt(s+1),Fi.isVariationSelector(d)&&(f=!0)):Fi.isZeroWidthJoiner(d)&&(f=!0,x=!0),f?(r[r.length-1]+=v,f=!1):r.push(v),s+=v.length;return r},ve.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,s=this.data,n=[],d,c,f,x=0,v,I=s.m.g,L=0,B=0,E=0,R=[],P=0,M=0,z,w,_=r.getFontByName(e.f),y,A=0,k=$h(_);e.fWeight=k.weight,e.fStyle=k.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var D=e.tr/1e3*e.finalSize,V;if(e.sz)for(var H=!0,Z=e.sz[0],ft=e.sz[1],ht,et;H;){et=this.buildFinalText(e.t),ht=0,P=0,c=et.length,D=e.tr/1e3*e.finalSize;var yt=-1;for(d=0;d<c;d+=1)V=et[d].charCodeAt(0),f=!1,et[d]===" "?yt=d:(V===13||V===3)&&(P=0,f=!0,ht+=e.finalLineHeight||e.finalSize*1.2),r.chars?(y=r.getCharData(et[d],_.fStyle,_.fFamily),A=f?0:y.w*e.finalSize/100):A=r.measureText(et[d],e.f,e.finalSize),P+A>Z&&et[d]!==" "?(yt===-1?c+=1:d=yt,ht+=e.finalLineHeight||e.finalSize*1.2,et.splice(d,yt===d?1:0,"\r"),yt=-1,P=0):(P+=A,P+=D);ht+=_.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ft<ht?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=et,c=e.finalText.length,H=!1)}P=-D,A=0;var lt=0,X;for(d=0;d<c;d+=1)if(f=!1,X=e.finalText[d],V=X.charCodeAt(0),V===13||V===3?(lt=0,R.push(P),M=P>M?P:M,P=-2*D,v="",f=!0,E+=1):v=X,r.chars?(y=r.getCharData(X,_.fStyle,r.getFontByName(e.f).fFamily),A=f?0:y.w*e.finalSize/100):A=r.measureText(v,e.f,e.finalSize),X===" "?lt+=A+D:(P+=A+D+lt,lt=0),n.push({l:A,an:A,add:L,n:f,anIndexes:[],val:v,line:E,animatorJustifyOffset:0}),I==2){if(L+=A,v===""||v===" "||d===c-1){for((v===""||v===" ")&&(L-=A);B<=d;)n[B].an=L,n[B].ind=x,n[B].extra=A,B+=1;x+=1,L=0}}else if(I==3){if(L+=A,v===""||d===c-1){for(v===""&&(L-=A);B<=d;)n[B].an=L,n[B].ind=x,n[B].extra=A,B+=1;L=0,x+=1}}else n[x].ind=x,n[x].extra=0,x+=1;if(e.l=n,M=P>M?P:M,R.push(P),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=M,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=R;var S=s.a,O,u;w=S.length;var b,U,F=[];for(z=0;z<w;z+=1){for(O=S[z],O.a.sc&&(e.strokeColorAnim=!0),O.a.sw&&(e.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(e.fillColorAnim=!0),U=0,b=O.s.b,d=0;d<c;d+=1)u=n[d],u.anIndexes[z]=U,(b==1&&u.val!==""||b==2&&u.val!==""&&u.val!==" "||b==3&&(u.n||u.val==" "||d==c-1)||b==4&&(u.n||d==c-1))&&(O.s.rn===1&&F.push(U),U+=1);s.a[z].s.totalChars=U;var at=-1,mt;if(O.s.rn===1)for(d=0;d<c;d+=1)u=n[d],at!=u.anIndexes[z]&&(at=u.anIndexes[z],mt=F.splice(Math.floor(Math.random()*F.length),1)[0]),u.anIndexes[z]=mt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=_.ascent*e.finalSize/100},ve.prototype.updateDocumentData=function(e,r){r=r===void 0?this.keysIndex:r;var s=this.copyData({},this.data.d.k[r].s);s=this.copyData(s,e),this.data.d.k[r].s=s,this.recalculate(r),this.setCurrentData(s),this.elem.addDynamicProperty(this)},ve.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},ve.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},ve.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var _g=function(){var e=Math.max,r=Math.min,s=Math.floor;function n(c,f){this._currentTextLength=-1,this.k=!1,this.data=f,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=it.getProp(c,f.s||{k:0},0,0,this),"e"in f?this.e=it.getProp(c,f.e,0,0,this):this.e={v:100},this.o=it.getProp(c,f.o||{k:0},0,0,this),this.xe=it.getProp(c,f.xe||{k:0},0,0,this),this.ne=it.getProp(c,f.ne||{k:0},0,0,this),this.sm=it.getProp(c,f.sm||{k:100},0,0,this),this.a=it.getProp(c,f.a,0,.01,this),this.dynamicProperties.length||this.getValue()}n.prototype={getMult:function(f){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,v=0,I=1,L=1;this.ne.v>0?x=this.ne.v/100:v=-this.ne.v/100,this.xe.v>0?I=1-this.xe.v/100:L=1+this.xe.v/100;var B=Is.getBezierEasing(x,v,I,L).get,E=0,R=this.finalS,P=this.finalE,M=this.data.sh;if(M===2)P===R?E=f>=P?1:0:E=e(0,r(.5/(P-R)+(f-R)/(P-R),1)),E=B(E);else if(M===3)P===R?E=f>=P?0:1:E=1-e(0,r(.5/(P-R)+(f-R)/(P-R),1)),E=B(E);else if(M===4)P===R?E=0:(E=e(0,r(.5/(P-R)+(f-R)/(P-R),1)),E<.5?E*=2:E=1-2*(E-.5)),E=B(E);else if(M===5){if(P===R)E=0;else{var z=P-R;f=r(e(0,f+.5-R),P-R);var w=-z/2+f,_=z/2;E=Math.sqrt(1-w*w/(_*_))}E=B(E)}else M===6?(P===R?E=0:(f=r(e(0,f+.5-R),P-R),E=(1+Math.cos(Math.PI+Math.PI*2*f/(P-R)))/2),E=B(E)):(f>=s(R)&&(f-R<0?E=e(0,r(r(P,1)-(R-f),1)):E=e(0,r(P-f,1))),E=B(E));if(this.sm.v!==100){var y=this.sm.v*.01;y===0&&(y=1e-8);var A=.5-y*.5;E<A?E=0:(E=(E-A)/y,E>1&&(E=1))}return E*this.a.v},getValue:function(f){this.iterateDynamicProperties(),this._mdf=f||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,f&&this.data.r===2&&(this.e.v=this._currentTextLength);var x=this.data.r===2?1:100/this.data.totalChars,v=this.o.v/x,I=this.s.v/x+v,L=this.e.v/x+v;if(I>L){var B=I;I=L,L=B}this.finalS=I,this.finalE=L}},$([oe],n);function d(c,f,x){return new n(c,f,x)}return{getTextSelectorProp:d}}();function Ig(e,r,s){var n={propType:!1},d=it.getProp,c=r.a;this.a={r:c.r?d(e,c.r,0,It,s):n,rx:c.rx?d(e,c.rx,0,It,s):n,ry:c.ry?d(e,c.ry,0,It,s):n,sk:c.sk?d(e,c.sk,0,It,s):n,sa:c.sa?d(e,c.sa,0,It,s):n,s:c.s?d(e,c.s,1,.01,s):n,a:c.a?d(e,c.a,1,0,s):n,o:c.o?d(e,c.o,0,.01,s):n,p:c.p?d(e,c.p,1,0,s):n,sw:c.sw?d(e,c.sw,0,0,s):n,sc:c.sc?d(e,c.sc,1,0,s):n,fc:c.fc?d(e,c.fc,1,0,s):n,fh:c.fh?d(e,c.fh,0,0,s):n,fs:c.fs?d(e,c.fs,0,.01,s):n,fb:c.fb?d(e,c.fb,0,.01,s):n,t:c.t?d(e,c.t,0,0,s):n},this.s=_g.getTextSelectorProp(e,r.s,s),this.s.t=r.s.t}function zi(e,r,s){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=s,this._animatorsData=rt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(s)}zi.prototype.searchProperties=function(){var e,r=this._textData.a.length,s,n=it.getProp;for(e=0;e<r;e+=1)s=this._textData.a[e],this._animatorsData[e]=new Ig(this._elem,s,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},zi.prototype.getMeasures=function(e,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var s=this._moreOptions.alignment.v,n=this._animatorsData,d=this._textData,c=this.mHelper,f=this._renderType,x=this.renderedLetters.length,v,I,L,B,E=e.l,R,P,M,z,w,_,y,A,k,D,V,H,Z,ft,ht;if(this._hasMaskedPath){if(ht=this._pathData.m,!this._pathData.n||this._pathData._mdf){var et=ht.v;this._pathData.r.v&&(et=et.reverse()),R={tLength:0,segments:[]},B=et._length-1;var yt;for(H=0,L=0;L<B;L+=1)yt=yr.buildBezierData(et.v[L],et.v[L+1],[et.o[L][0]-et.v[L][0],et.o[L][1]-et.v[L][1]],[et.i[L+1][0]-et.v[L+1][0],et.i[L+1][1]-et.v[L+1][1]]),R.tLength+=yt.segmentLength,R.segments.push(yt),H+=yt.segmentLength;L=B,ht.v.c&&(yt=yr.buildBezierData(et.v[L],et.v[0],[et.o[L][0]-et.v[L][0],et.o[L][1]-et.v[L][1]],[et.i[0][0]-et.v[0][0],et.i[0][1]-et.v[0][1]]),R.tLength+=yt.segmentLength,R.segments.push(yt),H+=yt.segmentLength),this._pathData.pi=R}if(R=this._pathData.pi,P=this._pathData.f.v,y=0,_=1,z=0,w=!0,D=R.segments,P<0&&ht.v.c)for(R.tLength<Math.abs(P)&&(P=-Math.abs(P)%R.tLength),y=D.length-1,k=D[y].points,_=k.length-1;P<0;)P+=k[_].partialLength,_-=1,_<0&&(y-=1,k=D[y].points,_=k.length-1);k=D[y].points,A=k[_-1],M=k[_],V=M.partialLength}B=E.length,v=0,I=0;var lt=e.finalSize*1.2*.714,X=!0,S,O,u,b,U;b=n.length;var F,at=-1,mt,vt,wt,Nt=P,qt=y,Ce=_,Tr=-1,we,se,Fe,Mt,ct,Dr,ui,Fr,xr="",$r=this.defaultPropsArray,zr;if(e.j===2||e.j===1){var Ne=0,fi=0,vi=e.j===2?-.5:-1,lr=0,gi=!0;for(L=0;L<B;L+=1)if(E[L].n){for(Ne&&(Ne+=fi);lr<L;)E[lr].animatorJustifyOffset=Ne,lr+=1;Ne=0,gi=!0}else{for(u=0;u<b;u+=1)S=n[u].a,S.t.propType&&(gi&&e.j===2&&(fi+=S.t.v*vi),O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?Ne+=S.t.v*F[0]*vi:Ne+=S.t.v*F*vi);gi=!1}for(Ne&&(Ne+=fi);lr<L;)E[lr].animatorJustifyOffset=Ne,lr+=1}for(L=0;L<B;L+=1){if(c.reset(),we=1,E[L].n)v=0,I+=e.yOffset,I+=X?1:0,P=Nt,X=!1,this._hasMaskedPath&&(y=qt,_=Ce,k=D[y].points,A=k[_-1],M=k[_],V=M.partialLength,z=0),xr="",Fr="",Dr="",zr="",$r=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Tr!==E[L].line){switch(e.j){case 1:P+=H-e.lineWidths[E[L].line];break;case 2:P+=(H-e.lineWidths[E[L].line])/2;break;default:break}Tr=E[L].line}at!==E[L].ind&&(E[at]&&(P+=E[at].extra),P+=E[L].an/2,at=E[L].ind),P+=s[0]*E[L].an*.005;var cr=0;for(u=0;u<b;u+=1)S=n[u].a,S.p.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?cr+=S.p.v[0]*F[0]:cr+=S.p.v[0]*F),S.a.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?cr+=S.a.v[0]*F[0]:cr+=S.a.v[0]*F);for(w=!0,this._pathData.a.v&&(P=E[0].an*.5+(H-this._pathData.f.v-E[0].an*.5-E[E.length-1].an*.5)*at/(B-1),P+=this._pathData.f.v);w;)z+V>=P+cr||!k?(Z=(P+cr-z)/M.partialLength,vt=A.point[0]+(M.point[0]-A.point[0])*Z,wt=A.point[1]+(M.point[1]-A.point[1])*Z,c.translate(-s[0]*E[L].an*.005,-(s[1]*lt)*.01),w=!1):k&&(z+=M.partialLength,_+=1,_>=k.length&&(_=0,y+=1,D[y]?k=D[y].points:ht.v.c?(_=0,y=0,k=D[y].points):(z-=M.partialLength,k=null)),k&&(A=M,M=k[_],V=M.partialLength));mt=E[L].an/2-E[L].add,c.translate(-mt,0,0)}else mt=E[L].an/2-E[L].add,c.translate(-mt,0,0),c.translate(-s[0]*E[L].an*.005,-s[1]*lt*.01,0);for(u=0;u<b;u+=1)S=n[u].a,S.t.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),(v!==0||e.j!==0)&&(this._hasMaskedPath?F.length?P+=S.t.v*F[0]:P+=S.t.v*F:F.length?v+=S.t.v*F[0]:v+=S.t.v*F));for(e.strokeWidthAnim&&(Fe=e.sw||0),e.strokeColorAnim&&(e.sc?se=[e.sc[0],e.sc[1],e.sc[2]]:se=[0,0,0]),e.fillColorAnim&&e.fc&&(Mt=[e.fc[0],e.fc[1],e.fc[2]]),u=0;u<b;u+=1)S=n[u].a,S.a.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?c.translate(-S.a.v[0]*F[0],-S.a.v[1]*F[1],S.a.v[2]*F[2]):c.translate(-S.a.v[0]*F,-S.a.v[1]*F,S.a.v[2]*F));for(u=0;u<b;u+=1)S=n[u].a,S.s.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),F.length?c.scale(1+(S.s.v[0]-1)*F[0],1+(S.s.v[1]-1)*F[1],1):c.scale(1+(S.s.v[0]-1)*F,1+(S.s.v[1]-1)*F,1));for(u=0;u<b;u+=1){if(S=n[u].a,O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),S.sk.propType&&(F.length?c.skewFromAxis(-S.sk.v*F[0],S.sa.v*F[1]):c.skewFromAxis(-S.sk.v*F,S.sa.v*F)),S.r.propType&&(F.length?c.rotateZ(-S.r.v*F[2]):c.rotateZ(-S.r.v*F)),S.ry.propType&&(F.length?c.rotateY(S.ry.v*F[1]):c.rotateY(S.ry.v*F)),S.rx.propType&&(F.length?c.rotateX(S.rx.v*F[0]):c.rotateX(S.rx.v*F)),S.o.propType&&(F.length?we+=(S.o.v*F[0]-we)*F[0]:we+=(S.o.v*F-we)*F),e.strokeWidthAnim&&S.sw.propType&&(F.length?Fe+=S.sw.v*F[0]:Fe+=S.sw.v*F),e.strokeColorAnim&&S.sc.propType)for(ct=0;ct<3;ct+=1)F.length?se[ct]+=(S.sc.v[ct]-se[ct])*F[0]:se[ct]+=(S.sc.v[ct]-se[ct])*F;if(e.fillColorAnim&&e.fc){if(S.fc.propType)for(ct=0;ct<3;ct+=1)F.length?Mt[ct]+=(S.fc.v[ct]-Mt[ct])*F[0]:Mt[ct]+=(S.fc.v[ct]-Mt[ct])*F;S.fh.propType&&(F.length?Mt=hh(Mt,S.fh.v*F[0]):Mt=hh(Mt,S.fh.v*F)),S.fs.propType&&(F.length?Mt=ch(Mt,S.fs.v*F[0]):Mt=ch(Mt,S.fs.v*F)),S.fb.propType&&(F.length?Mt=dh(Mt,S.fb.v*F[0]):Mt=dh(Mt,S.fb.v*F))}}for(u=0;u<b;u+=1)S=n[u].a,S.p.propType&&(O=n[u].s,F=O.getMult(E[L].anIndexes[u],d.a[u].s.totalChars),this._hasMaskedPath?F.length?c.translate(0,S.p.v[1]*F[0],-S.p.v[2]*F[1]):c.translate(0,S.p.v[1]*F,-S.p.v[2]*F):F.length?c.translate(S.p.v[0]*F[0],S.p.v[1]*F[1],-S.p.v[2]*F[2]):c.translate(S.p.v[0]*F,S.p.v[1]*F,-S.p.v[2]*F));if(e.strokeWidthAnim&&(Dr=Fe<0?0:Fe),e.strokeColorAnim&&(ui="rgb("+Math.round(se[0]*255)+","+Math.round(se[1]*255)+","+Math.round(se[2]*255)+")"),e.fillColorAnim&&e.fc&&(Fr="rgb("+Math.round(Mt[0]*255)+","+Math.round(Mt[1]*255)+","+Math.round(Mt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,s[1]*lt*.01+I,0),this._pathData.p.v){ft=(M.point[1]-A.point[1])/(M.point[0]-A.point[0]);var Vi=Math.atan(ft)*180/Math.PI;M.point[0]<A.point[0]&&(Vi+=180),c.rotate(-Vi*Math.PI/180)}c.translate(vt,wt,0),P-=s[0]*E[L].an*.005,E[L+1]&&at!==E[L+1].ind&&(P+=E[L].an/2,P+=e.tr*.001*e.finalSize)}else{switch(c.translate(v,I,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate(E[L].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[L].line]),0,0);break;case 2:c.translate(E[L].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[L].line])/2,0,0);break;default:break}c.translate(0,-e.ls),c.translate(mt,0,0),c.translate(s[0]*E[L].an*.005,s[1]*lt*.01,0),v+=E[L].l+e.tr*.001*e.finalSize}f==="html"?xr=c.toCSS():f==="svg"?xr=c.to2dCSS():$r=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],zr=we}x<=L?(U=new jl(zr,Dr,ui,Fr,xr,$r),this.renderedLetters.push(U),x+=1,this.lettersChangedFlag=!0):(U=this.renderedLetters[L],this.lettersChangedFlag=U.update(zr,Dr,ui,Fr,xr,$r)||this.lettersChangedFlag)}}},zi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},zi.prototype.mHelper=new de,zi.prototype.defaultPropsArray=[],$([oe],zi);function We(){}We.prototype.initElement=function(e,r,s){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,s),this.textProperty=new ve(this,e.t,this.dynamicProperties),this.textAnimator=new zi(e.t,this.renderType,this),this.initTransform(e,r,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},We.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},We.prototype.createPathShape=function(e,r){var s,n=r.length,d,c="";for(s=0;s<n;s+=1)r[s].ty==="sh"&&(d=r[s].ks.k,c+=Qh(d,d.i.length,!0,e));return c},We.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},We.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},We.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},We.prototype.applyTextPropertiesToMatrix=function(e,r,s,n,d){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[s])/2,0,0);break;default:break}r.translate(n,d,0)},We.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},We.prototype.emptyProp=new jl,We.prototype.destroy=function(){},We.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var kg={shapes:[]};function Or(e,r,s){this.textSpans=[],this.renderType="svg",this.initElement(e,r,s)}$([di,Mo,Os,Oo,hi,Ps,We],Or),Or.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},Or.prototype.buildTextContents=function(e){for(var r=0,s=e.length,n=[],d="";r<s;)e[r]==="\r"||e[r]===""?(n.push(d),d=""):d+=e[r],r+=1;return n.push(d),n},Or.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var s=e.shapes[0];if(s.it){var n=s.it[s.it.length-1];n.s&&(n.s.k[0]=r,n.s.k[1]=r)}}return e},Or.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,s=this.textProperty.currentData;this.renderedLetters=rt(s?s.l.length:0),s.fc?this.layerElement.setAttribute("fill",this.buildColor(s.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),s.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(s.sc)),this.layerElement.setAttribute("stroke-width",s.sw)),this.layerElement.setAttribute("font-size",s.finalSize);var n=this.globalData.fontManager.getFontByName(s.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var d=s.fWeight,c=s.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",s.t);var f=s.l||[],x=!!this.globalData.fontManager.chars;r=f.length;var v,I=this.mHelper,L="",B=this.data.singleShape,E=0,R=0,P=!0,M=s.tr*.001*s.finalSize;if(B&&!x&&!s.sz){var z=this.textContainer,w="start";switch(s.j){case 1:w="end";break;case 2:w="middle";break;default:w="start";break}z.setAttribute("text-anchor",w),z.setAttribute("letter-spacing",M);var _=this.buildTextContents(s.finalText);for(r=_.length,R=s.ps?s.ps[1]+s.ascent:0,e=0;e<r;e+=1)v=this.textSpans[e].span||bt("tspan"),v.textContent=_[e],v.setAttribute("x",0),v.setAttribute("y",R),v.style.display="inherit",z.appendChild(v),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=v,R+=s.finalLineHeight;this.layerElement.appendChild(z)}else{var y=this.textSpans.length,A;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!x||!B||e===0){if(v=y>e?this.textSpans[e].span:bt(x?"g":"text"),y<=e){if(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=v,x){var k=bt("g");v.appendChild(k),this.textSpans[e].childSpan=k}this.textSpans[e].span=v,this.layerElement.appendChild(v)}v.style.display="inherit"}if(I.reset(),B&&(f[e].n&&(E=-M,R+=s.yOffset,R+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(s,I,f[e].line,E,R),E+=f[e].l||0,E+=M),x){A=this.globalData.fontManager.getCharData(s.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(s.f).fFamily);var D;if(A.t===1)D=new $s(A.data,this.globalData,this);else{var V=kg;A.data&&A.data.shapes&&(V=this.buildShapeData(A.data,s.finalSize)),D=new Gt(V,this.globalData,this)}if(this.textSpans[e].glyph){var H=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(H.layerElement),H.destroy()}this.textSpans[e].glyph=D,D._debug=!0,D.prepareFrame(0),D.renderFrame(),this.textSpans[e].childSpan.appendChild(D.layerElement),A.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+s.finalSize/100+","+s.finalSize/100+")")}else B&&v.setAttribute("transform","translate("+I.props[12]+","+I.props[13]+")"),v.textContent=f[e].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}B&&v&&v.setAttribute("d",L)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},Or.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},Or.prototype.getValue=function(){var e,r=this.textSpans.length,s;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)s=this.textSpans[e].glyph,s&&(s.prepareFrame(this.comp.renderedFrame-this.data.st),s._mdf&&(this._mdf=!0))},Or.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,r,s=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;r=n.length;var d,c,f;for(e=0;e<r;e+=1)n[e].n||(d=s[e],c=this.textSpans[e].span,f=this.textSpans[e].glyph,f&&f.renderFrame(),d._mdf.m&&c.setAttribute("transform",d.m),d._mdf.o&&c.setAttribute("opacity",d.o),d._mdf.sw&&c.setAttribute("stroke-width",d.sw),d._mdf.sc&&c.setAttribute("stroke",d.sc),d._mdf.fc&&c.setAttribute("fill",d.fc))}};function ql(e,r,s){this.initElement(e,r,s)}$([Ds],ql),ql.prototype.createContent=function(){var e=bt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function mi(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initFrame(),this.initTransform(e,r,s),this.initHierarchy()}mi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},mi.prototype.renderFrame=function(){},mi.prototype.getBaseElement=function(){return null},mi.prototype.destroy=function(){},mi.prototype.sourceRectAtTime=function(){},mi.prototype.hide=function(){},$([di,Mo,Oo,hi],mi);function Qt(){}$([he],Qt),Qt.prototype.createNull=function(e){return new mi(e,this.globalData,this)},Qt.prototype.createShape=function(e){return new Gt(e,this.globalData,this)},Qt.prototype.createText=function(e){return new Or(e,this.globalData,this)},Qt.prototype.createImage=function(e){return new Ds(e,this.globalData,this)},Qt.prototype.createSolid=function(e){return new ql(e,this.globalData,this)},Qt.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var s=bt("clipPath"),n=bt("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var d=Ie();s.setAttribute("id",d),s.appendChild(n),this.layerElement.setAttribute("clip-path","url("+T()+"#"+d+")"),r.appendChild(s),this.layers=e.layers,this.elements=rt(e.layers.length)},Qt.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,r=this.layers?this.layers.length:0;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Qt.prototype.updateContainerSize=function(){},Qt.prototype.findIndexByInd=function(e){var r=0,s=this.layers.length;for(r=0;r<s;r+=1)if(this.layers[r].ind===e)return r;return-1},Qt.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var s=this.createItem(this.layers[e]);if(r[e]=s,Va()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(s),s.initExpressions()),this.appendElementInPos(s,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(n===-1)return;if(!this.elements[n]||this.elements[n]===!0)this.buildItem(n),this.addPendingElement(s);else{var d=r[n],c=d.getMatte(this.layers[e].tt);s.setMatte(c)}}}},Qt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,s=this.elements.length;r<s;){if(this.elements[r]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,d=this.elements[n],c=d.getMatte(this.layers[r].tt);e.setMatte(c);break}r+=1}}},Qt.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r,s=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=s-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},Qt.prototype.appendElementInPos=function(e,r){var s=e.getBaseElement();if(s){for(var n=0,d;n<r;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(d=this.elements[n].getBaseElement()),n+=1;d?this.layerElement.insertBefore(s,d):this.layerElement.appendChild(s)}},Qt.prototype.hide=function(){this.layerElement.style.display="none"},Qt.prototype.show=function(){this.layerElement.style.display="block"};function Pr(){}$([di,Mo,Oo,hi,Ps],Pr),Pr.prototype.initElement=function(e,r,s){this.initFrame(),this.initBaseData(e,r,s),this.initTransform(e,r,s),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.progressiveLoad)&&this.buildAllItems(),this.hide()},Pr.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var s,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&(this.elements[s].prepareFrame(this.renderedFrame-this.layers[s].st),this.elements[s]._mdf&&(this._mdf=!0))}},Pr.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},Pr.prototype.setElements=function(e){this.elements=e},Pr.prototype.getElements=function(){return this.elements},Pr.prototype.destroyElements=function(){var e,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},Pr.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function $s(e,r,s){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?rt(this.layers.length):[],this.initElement(e,r,s),this.tm=e.tm?it.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}$([Qt,Pr,Os],$s),$s.prototype.createComp=function(e){return new $s(e,this.globalData,this)};function Kl(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var s="";if(r&&r.title){var n=bt("title"),d=Ie();n.setAttribute("id",d),n.textContent=r.title,this.svgElement.appendChild(n),s+=d}if(r&&r.description){var c=bt("desc"),f=Ie();c.setAttribute("id",f),c.textContent=r.description,this.svgElement.appendChild(c),s+=" "+f}s&&this.svgElement.setAttribute("aria-labelledby",s);var x=bt("defs");this.svgElement.appendChild(x);var v=bt("g");this.svgElement.appendChild(v),this.layerElement=v,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return $([Qt],Kl),Kl.prototype.createComp=function(e){return new $s(e,this.globalData,this)},Fv("svg",Kl),li.registerModifier("tm",nr),li.registerModifier("pb",ks),li.registerModifier("rp",Er),li.registerModifier("rd",Cs),li.registerModifier("zz",Ns),li.registerModifier("op",Ls),Rt})});var an=globalThis,nn=an.ShadowRoot&&(an.ShadyCSS===void 0||an.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zl=Symbol(),tp=new WeakMap,zs=class{constructor(i,t,o){if(this._$cssResult$=!0,o!==Zl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(nn&&i===void 0){let o=t!==void 0&&t.length===1;o&&(i=tp.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),o&&tp.set(t,i))}return i}toString(){return this.cssText}},ep=l=>new zs(typeof l=="string"?l:l+"",void 0,Zl),G=(l,...i)=>{let t=l.length===1?l[0]:i.reduce((o,a,h)=>o+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+l[h+1],l[0]);return new zs(t,l,Zl)},Ql=(l,i)=>{if(nn)l.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let o=document.createElement("style"),a=an.litNonce;a!==void 0&&o.setAttribute("nonce",a),o.textContent=t.cssText,l.appendChild(o)}},ln=nn?l=>l:l=>l instanceof CSSStyleSheet?(i=>{let t="";for(let o of i.cssRules)t+=o.cssText;return ep(t)})(l):l;var{is:Pg,defineProperty:Dg,getOwnPropertyDescriptor:Fg,getOwnPropertyNames:$g,getOwnPropertySymbols:zg,getPrototypeOf:Vg}=Object,bi=globalThis,rp=bi.trustedTypes,Bg=rp?rp.emptyScript:"",Jl=bi.reactiveElementPolyfillSupport,Vs=(l,i)=>l,Bs={toAttribute(l,i){switch(i){case Boolean:l=l?Bg:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,i){let t=l;switch(i){case Boolean:t=l!==null;break;case Number:t=l===null?null:Number(l);break;case Object:case Array:try{t=JSON.parse(l)}catch{t=null}}return t}},cn=(l,i)=>!Pg(l,i),ip={attribute:!0,type:String,converter:Bs,reflect:!1,hasChanged:cn},op,sp;(op=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(sp=bi.litPropertyMetadata)!=null||(bi.litPropertyMetadata=new WeakMap);var Vr=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=ip){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let o=Symbol(),a=this.getPropertyDescriptor(i,o,t);a!==void 0&&Dg(this.prototype,i,a)}}static getPropertyDescriptor(i,t,o){var m;let{get:a,set:h}=(m=Fg(this.prototype,i))!=null?m:{get(){return this[t]},set(T){this[t]=T}};return{get(){return a==null?void 0:a.call(this)},set(T){let N=a==null?void 0:a.call(this);h.call(this,T),this.requestUpdate(i,N,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:ip}static _$Ei(){if(this.hasOwnProperty(Vs("elementProperties")))return;let i=Vg(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Vs("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vs("properties"))){let t=this.properties,o=[...$g(t),...zg(t)];for(let a of o)this.createProperty(a,t[a])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[o,a]of t)this.elementProperties.set(o,a)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let a=this._$Eu(t,o);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let o=new Set(i.flat(1/0).reverse());for(let a of o)t.unshift(ln(a))}else i!==void 0&&t.push(ln(i));return t}static _$Eu(i,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,o;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((o=i.hostConnected)==null||o.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(i.set(o,this[o]),delete this[o]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Ql(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(o=>{var a;return(a=o.hostConnected)==null?void 0:a.call(o)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(i,t,o){this._$AK(i,o)}_$EC(i,t){var h;let o=this.constructor.elementProperties.get(i),a=this.constructor._$Eu(i,o);if(a!==void 0&&o.reflect===!0){let m=(((h=o.converter)==null?void 0:h.toAttribute)!==void 0?o.converter:Bs).toAttribute(t,o.type);this._$Em=i,m==null?this.removeAttribute(a):this.setAttribute(a,m),this._$Em=null}}_$AK(i,t){var h;let o=this.constructor,a=o._$Eh.get(i);if(a!==void 0&&this._$Em!==a){let m=o.getPropertyOptions(a),T=typeof m.converter=="function"?{fromAttribute:m.converter}:((h=m.converter)==null?void 0:h.fromAttribute)!==void 0?m.converter:Bs;this._$Em=a,this[a]=T.fromAttribute(t,m.type),this._$Em=null}}requestUpdate(i,t,o){var a;if(i!==void 0){if(o!=null||(o=this.constructor.getPropertyOptions(i)),!((a=o.hasChanged)!=null?a:cn)(this[i],t))return;this.P(i,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,o){var a;this._$AL.has(i)||this._$AL.set(i,t),o.reflect===!0&&this._$Em!==i&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o,a;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[m,T]of this._$Ep)this[m]=T;this._$Ep=void 0}let h=this.constructor.elementProperties;if(h.size>0)for(let[m,T]of h)T.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],T)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(a=this._$EO)==null||a.forEach(h=>{var m;return(m=h.hostUpdate)==null?void 0:m.call(h)}),this.update(t)):this._$EU()}catch(h){throw i=!1,this._$EU(),h}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(o=>{var a;return(a=o.hostUpdated)==null?void 0:a.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},ap;Vr.elementStyles=[],Vr.shadowRootOptions={mode:"open"},Vr[Vs("elementProperties")]=new Map,Vr[Vs("finalized")]=new Map,Jl==null||Jl({ReactiveElement:Vr}),((ap=bi.reactiveElementVersions)!=null?ap:bi.reactiveElementVersions=[]).push("2.0.4");var Hs=globalThis,dn=Hs.trustedTypes,np=dn?dn.createPolicy("lit-html",{createHTML:l=>l}):void 0,rc="$lit$",Br=`lit$${Math.random().toFixed(9).slice(2)}$`,ic="?"+Br,Ug=`<${ic}>`,Hi=document,Gs=()=>Hi.createComment(""),Ys=l=>l===null||typeof l!="object"&&typeof l!="function",oc=Array.isArray,up=l=>oc(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",tc=`[
|
3
|
+
\f\r]`,Us=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lp=/-->/g,cp=/>/g,Bi=RegExp(`>|${tc}(?:([^\\s"'>=/]+)(${tc}*=${tc}*(?:[^
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),dp=/'/g,hp=/"/g,fp=/^(?:script|style|textarea|title)$/i,sc=l=>(i,...t)=>({_$litType$:l,strings:i,values:t}),C=sc(1),ZT=sc(2),QT=sc(3),Le=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),pp=new WeakMap,Ui=Hi.createTreeWalker(Hi,129);function vp(l,i){if(!oc(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return np!==void 0?np.createHTML(i):i}var gp=(l,i)=>{let t=l.length-1,o=[],a,h=i===2?"<svg>":i===3?"<math>":"",m=Us;for(let T=0;T<t;T++){let N=l[T],$,q,K=-1,nt=0;for(;nt<N.length&&(m.lastIndex=nt,q=m.exec(N),q!==null);)nt=m.lastIndex,m===Us?q[1]==="!--"?m=lp:q[1]!==void 0?m=cp:q[2]!==void 0?(fp.test(q[2])&&(a=RegExp("</"+q[2],"g")),m=Bi):q[3]!==void 0&&(m=Bi):m===Bi?q[0]===">"?(m=a!=null?a:Us,K=-1):q[1]===void 0?K=-2:(K=m.lastIndex-q[2].length,$=q[1],m=q[3]===void 0?Bi:q[3]==='"'?hp:dp):m===hp||m===dp?m=Bi:m===lp||m===cp?m=Us:(m=Bi,a=void 0);let Q=m===Bi&&l[T+1].startsWith("/>")?" ":"";h+=m===Us?N+Ug:K>=0?(o.push($),N.slice(0,K)+rc+N.slice(K)+Br+Q):N+Br+(K===-2?T:Q)}return[vp(l,h+(l[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),o]},Ws=class l{constructor({strings:i,_$litType$:t},o){let a;this.parts=[];let h=0,m=0,T=i.length-1,N=this.parts,[$,q]=gp(i,t);if(this.el=l.createElement($,o),Ui.currentNode=this.el.content,t===2||t===3){let K=this.el.content.firstChild;K.replaceWith(...K.childNodes)}for(;(a=Ui.nextNode())!==null&&N.length<T;){if(a.nodeType===1){if(a.hasAttributes())for(let K of a.getAttributeNames())if(K.endsWith(rc)){let nt=q[m++],Q=a.getAttribute(K).split(Br),rt=/([.?@])?(.*)/.exec(nt);N.push({type:1,index:h,name:rt[2],strings:Q,ctor:rt[1]==="."?pn:rt[1]==="?"?mn:rt[1]==="@"?un:Yi}),a.removeAttribute(K)}else K.startsWith(Br)&&(N.push({type:6,index:h}),a.removeAttribute(K));if(fp.test(a.tagName)){let K=a.textContent.split(Br),nt=K.length-1;if(nt>0){a.textContent=dn?dn.emptyScript:"";for(let Q=0;Q<nt;Q++)a.append(K[Q],Gs()),Ui.nextNode(),N.push({type:2,index:++h});a.append(K[nt],Gs())}}}else if(a.nodeType===8)if(a.data===ic)N.push({type:2,index:h});else{let K=-1;for(;(K=a.data.indexOf(Br,K+1))!==-1;)N.push({type:7,index:h}),K+=Br.length-1}h++}}static createElement(i,t){let o=Hi.createElement("template");return o.innerHTML=i,o}};function Gi(l,i,t=l,o){var m,T,N;if(i===Le)return i;let a=o!==void 0?(m=t.o)==null?void 0:m[o]:t.l,h=Ys(i)?void 0:i._$litDirective$;return(a==null?void 0:a.constructor)!==h&&((T=a==null?void 0:a._$AO)==null||T.call(a,!1),h===void 0?a=void 0:(a=new h(l),a._$AT(l,t,o)),o!==void 0?((N=t.o)!=null?N:t.o=[])[o]=a:t.l=a),a!==void 0&&(i=Gi(l,a._$AS(l,i.values),a,o)),i}var hn=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var $;let{el:{content:t},parts:o}=this._$AD,a=(($=i==null?void 0:i.creationScope)!=null?$:Hi).importNode(t,!0);Ui.currentNode=a;let h=Ui.nextNode(),m=0,T=0,N=o[0];for(;N!==void 0;){if(m===N.index){let q;N.type===2?q=new Do(h,h.nextSibling,this,i):N.type===1?q=new N.ctor(h,N.name,N.strings,this,i):N.type===6&&(q=new fn(h,this,i)),this._$AV.push(q),N=o[++T]}m!==(N==null?void 0:N.index)&&(h=Ui.nextNode(),m++)}return Ui.currentNode=Hi,a}p(i){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(i,o,t),t+=o.strings.length-2):o._$AI(i[t])),t++}},Do=class l{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,o,a){var h;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=o,this.options=a,this.v=(h=a==null?void 0:a.isConnected)!=null?h:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=Gi(this,i,t),Ys(i)?i===W||i==null||i===""?(this._$AH!==W&&this._$AR(),this._$AH=W):i!==this._$AH&&i!==Le&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):up(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==W&&Ys(this._$AH)?this._$AA.nextSibling.data=i:this.T(Hi.createTextNode(i)),this._$AH=i}$(i){var h;let{values:t,_$litType$:o}=i,a=typeof o=="number"?this._$AC(i):(o.el===void 0&&(o.el=Ws.createElement(vp(o.h,o.h[0]),this.options)),o);if(((h=this._$AH)==null?void 0:h._$AD)===a)this._$AH.p(t);else{let m=new hn(a,this),T=m.u(this.options);m.p(t),this.T(T),this._$AH=m}}_$AC(i){let t=pp.get(i.strings);return t===void 0&&pp.set(i.strings,t=new Ws(i)),t}k(i){oc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,a=0;for(let h of i)a===t.length?t.push(o=new l(this.O(Gs()),this.O(Gs()),this,this.options)):o=t[a],o._$AI(h),a++;a<t.length&&(this._$AR(o&&o._$AB.nextSibling,a),t.length=a)}_$AR(i=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);i&&i!==this._$AB;){let a=i.nextSibling;i.remove(),i=a}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},Yi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,o,a,h){this.type=1,this._$AH=W,this._$AN=void 0,this.element=i,this.name=t,this._$AM=a,this.options=h,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=W}_$AI(i,t=this,o,a){let h=this.strings,m=!1;if(h===void 0)i=Gi(this,i,t,0),m=!Ys(i)||i!==this._$AH&&i!==Le,m&&(this._$AH=i);else{let T=i,N,$;for(i=h[0],N=0;N<h.length-1;N++)$=Gi(this,T[o+N],t,N),$===Le&&($=this._$AH[N]),m||(m=!Ys($)||$!==this._$AH[N]),$===W?i=W:i!==W&&(i+=($!=null?$:"")+h[N+1]),this._$AH[N]=$}m&&!a&&this.j(i)}j(i){i===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},pn=class extends Yi{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===W?void 0:i}},mn=class extends Yi{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==W)}},un=class extends Yi{constructor(i,t,o,a,h){super(i,t,o,a,h),this.type=5}_$AI(i,t=this){var m;if((i=(m=Gi(this,i,t,0))!=null?m:W)===Le)return;let o=this._$AH,a=i===W&&o!==W||i.capture!==o.capture||i.once!==o.once||i.passive!==o.passive,h=i!==W&&(o===W||a);a&&this.element.removeEventListener(this.name,this,o),h&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)==null?void 0:t.host)!=null?o:this.element,i):this._$AH.handleEvent(i)}},fn=class{constructor(i,t,o){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(i){Gi(this,i)}},bp={M:rc,P:Br,A:ic,C:1,L:gp,R:hn,D:up,V:Gi,I:Do,H:Yi,N:mn,U:un,B:pn,F:fn},ec=Hs.litHtmlPolyfillSupport,mp;ec==null||ec(Ws,Do),((mp=Hs.litHtmlVersions)!=null?mp:Hs.litHtmlVersions=[]).push("3.2.0");var yp=(l,i,t)=>{var h,m;let o=(h=t==null?void 0:t.renderBefore)!=null?h:i,a=o._$litPart$;if(a===void 0){let T=(m=t==null?void 0:t.renderBefore)!=null?m:null;o._$litPart$=a=new Do(i.insertBefore(Gs(),T),T,void 0,t!=null?t:{})}return a._$AI(l),a};var yi=class extends Vr{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,o;let i=super.createRenderRoot();return(o=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=yp(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return Le}},Ep;yi._$litElement$=!0,yi.finalized=!0,(Ep=globalThis.litElementHydrateSupport)==null||Ep.call(globalThis,{LitElement:yi});var ac=globalThis.litElementPolyfillSupport;ac==null||ac({LitElement:yi});var Tp;((Tp=globalThis.litElementVersions)!=null?Tp:globalThis.litElementVersions=[]).push("4.1.0");var Hg={attribute:!0,type:String,converter:Bs,reflect:!1,hasChanged:cn},Gg=(l=Hg,i,t)=>{let{kind:o,metadata:a}=t,h=globalThis.litPropertyMetadata.get(a);if(h===void 0&&globalThis.litPropertyMetadata.set(a,h=new Map),h.set(t.name,l),o==="accessor"){let{name:m}=t;return{set(T){let N=i.get.call(this);i.set.call(this,T),this.requestUpdate(m,N,l)},init(T){return T!==void 0&&this.P(m,void 0,l),T}}}if(o==="setter"){let{name:m}=t;return function(T){let N=this[m];i.call(this,T),this.requestUpdate(m,N,l)}}throw Error("Unsupported decorator location: "+o)};function g(l){return(i,t)=>typeof t=="object"?Gg(l,i,t):((o,a,h)=>{let m=a.hasOwnProperty(h);return a.constructor.createProperty(h,m?{...o,wrapped:!0}:o),m?Object.getOwnPropertyDescriptor(a,h):void 0})(l,i,t)}function xt(l){return g({...l,state:!0,attribute:!1})}var Ur=(l,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(l,i,t),t);function Hr(l,i){return(t,o,a)=>{let h=m=>{var T,N;return(N=(T=m.renderRoot)==null?void 0:T.querySelector(l))!=null?N:null};if(i){let{get:m,set:T}=typeof o=="object"?t:a!=null?a:(()=>{let N=Symbol();return{get(){return this[N]},set($){this[N]=$}}})();return Ur(t,o,{get(){let N=m.call(this);return N===void 0&&(N=h(this),(N!==null||this.hasUpdated)&&T.call(this,N)),N}})}return Ur(t,o,{get(){return h(this)}})}}function Lt(l){return(i,t)=>{let{slot:o,selector:a}=l!=null?l:{},h="slot"+(o?`[name=${o}]`:":not([name])");return Ur(i,t,{get(){var N,$;let m=(N=this.renderRoot)==null?void 0:N.querySelector(h),T=($=m==null?void 0:m.assignedElements(l))!=null?$:[];return a===void 0?T:T.filter(q=>q.matches(a))}})}}function vn(l){return(i,t)=>{let{slot:o}=l!=null?l:{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ur(i,t,{get(){var m,T;let h=(m=this.renderRoot)==null?void 0:m.querySelector(a);return(T=h==null?void 0:h.assignedNodes(l))!=null?T:[]}})}}var Yg={PREFIX:"mdc",SEPARATOR:"-"},Wg={NAMESPACE:Yg},nc=Wg;var jg=l=>[nc.NAMESPACE.PREFIX,l].join(nc.NAMESPACE.SEPARATOR),Y={constructTagName:jg};var tt={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var Gx=Y.constructTagName("buttonsimple"),Wi={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Fo={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},js={SIZE:Wi[32],TYPE:Fo.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Gr=Y.constructTagName("button"),Ot={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},qs={40:40,32:32,28:28,24:24},je={64:64,52:52,20:20,...qs},ji={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},$o={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Re={VARIANT:Ot.PRIMARY,SIZE:qs[32],COLOR:ji.DEFAULT,TYPE_INTERNAL:$o.ICON,TYPE:Fo.BUTTON,INVERTED:!1};var gn=l=>{class i extends l{constructor(){super(...arguments);this.variant=Re.VARIANT;this.color=Re.COLOR;this.typeInternal=Re.TYPE_INTERNAL}setVariant(a){this.setAttribute("variant",Object.values(Ot).includes(a)?a:Re.VARIANT)}setColor(a){!Object.values(ji).includes(a)||this.variant===Ot.TERTIARY?this.setAttribute("color",`${Re.COLOR}`):this.setAttribute("color",a)}setSize(a){let m=this.typeInternal===$o.ICON?Object.values(je).includes(a)&&!(a===je[20]&&this.variant!==Ot.TERTIARY):Object.values(qs).includes(a);this.setAttribute("size",m?`${a}`:`${Re.SIZE}`)}inferButtonType(){var $,q,K,nt,Q,rt;let a=(q=($=this.shadowRoot)==null?void 0:$.querySelector("slot:not([name])"))==null?void 0:q.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,h=(nt=(K=this.shadowRoot)==null?void 0:K.querySelector('slot[name="prefix"]'))==null?void 0:nt.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,m=this.prefixIcon||h&&h>0,T=(rt=(Q=this.shadowRoot)==null?void 0:Q.querySelector('slot[name="postfix"]'))==null?void 0:rt.assignedNodes().filter(dt=>{var ut;return dt.nodeType!==Node.TEXT_NODE||((ut=dt.textContent)==null?void 0:ut.trim())}).length,N=this.postfixIcon||T&&T>0;a&&(m||N)?(this.typeInternal=$o.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!a&&(m||N)?(this.typeInternal=$o.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=$o.PILL,this.setAttribute("data-btn-type","pill"))}}return p([g({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),p([g({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),p([g({type:String})],i.prototype,"variant",2),p([g({type:String})],i.prototype,"color",2),p([xt()],i.prototype,"typeInternal",2),i};var xp=G`
|
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(i){customElements.get(i)||customElements.define(i,this)}};bn.styles=[
|
14
|
+
`;var bn=class extends yi{static register(i){customElements.get(i)||customElements.define(i,this)}};bn.styles=[xp];var Ap=bn;var j=Ap;var Ei=class extends Event{constructor(i,t,o){super("context-request",{bubbles:!0,composed:!0}),this.context=i,this.callback=t,this.subscribe=o!=null?o:!1}};var zo=class{constructor(i,t,o,a){var h;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(m,T)=>{this.unsubscribe&&(this.unsubscribe!==T&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=m,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(m,T)),this.unsubscribe=T},this.host=i,t.context!==void 0){let m=t;this.context=m.context,this.callback=m.callback,this.subscribe=(h=m.subscribe)!=null?h:!1}else this.context=t,this.callback=o,this.subscribe=a!=null?a:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Ei(this.context,this.t,this.subscribe))}};var yn=class{get value(){return this.o}set value(i){this.setValue(i)}setValue(i,t=!1){let o=t||!Object.is(i,this.o);this.o=i,o&&this.updateObservers()}constructor(i){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:o}]of this.subscriptions)t(this.o,o)},i!==void 0&&(this.value=i)}addCallback(i,t,o){if(!o)return void i(this.value);this.subscriptions.has(i)||this.subscriptions.set(i,{disposer:()=>{this.subscriptions.delete(i)},consumerHost:t});let{disposer:a}=this.subscriptions.get(i);i(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var lc=class extends Event{constructor(i){super("context-provider",{bubbles:!0,composed:!0}),this.context=i}},Vo=class extends yn{constructor(i,t,o){var a,h;super(t.context!==void 0?t.initialValue:o),this.onContextRequest=m=>{let T=m.composedPath()[0];m.context===this.context&&T!==this.host&&(m.stopPropagation(),this.addCallback(m.callback,T,m.subscribe))},this.onProviderRequest=m=>{let T=m.composedPath()[0];if(m.context!==this.context||T===this.host)return;let N=new Set;for(let[$,{consumerHost:q}]of this.subscriptions)N.has($)||(N.add($),q.dispatchEvent(new Ei(this.context,$,!0)));m.stopPropagation()},this.host=i,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(h=(a=this.host).addController)==null||h.call(a,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new lc(this.context))}};var qg=G`
|
15
15
|
:host {
|
16
16
|
display: contents;
|
17
17
|
}
|
18
|
-
`,
|
18
|
+
`,Sp=qg;var Tn=class extends j{constructor({context:i,initialValue:t}){super(),this.context=new Vo(this,{context:i,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 i extends l{constructor(){super(...arguments);this.autofocus=!1}firstUpdated(a){super.firstUpdated(a),this.autofocus&&this.focus()}}return p([g({type:Boolean,reflect:!0})],i.prototype,"autofocus",2),i};var $t=l=>{class i extends l{}return p([g({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var qe=l=>{class i extends l{constructor(){super(...arguments);this.tabIndex=0}}return p([g({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var Et=G`
|
19
19
|
:host {
|
20
20
|
align-items: center;
|
21
21
|
display: flex;
|
@@ -78,7 +78,7 @@
|
|
78
78
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
79
79
|
}
|
80
80
|
}
|
81
|
-
`]};var
|
81
|
+
`]};var Kg=[Et,G`
|
82
82
|
:host {
|
83
83
|
border: 0.0625rem solid transparent;
|
84
84
|
cursor: pointer;
|
@@ -136,7 +136,7 @@
|
|
136
136
|
:host([size='20']) {
|
137
137
|
height: var(--mdc-button-height-size-20);
|
138
138
|
}
|
139
|
-
`,...At()],
|
139
|
+
`,...At()],kp=Kg;var dr=class extends Ip(qe($t(j))){constructor(){super();this.size=js.SIZE;this.role=js.ROLE;this.type=js.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||js.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Fo.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Fo.RESET&&this.form&&this.form.reset()}setActive(t,o){this.ariaStateKey&&this.ariaStateKey.split(",").filter(h=>h.trim().startsWith("aria-")).forEach(h=>{o===!0?t.setAttribute(h.trim(),"true"):o===!1?t.setAttribute(h.trim(),"false"):t.removeAttribute(h.trim())})}setSoftDisabled(t,o){o?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,o){o?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){[J.ENTER,J.SPACE].includes(t.key)&&(this.classList.add("pressed"),t.key===J.ENTER&&this.triggerClickEvent(),t.preventDefault())}handleKeyUp(t){[J.ENTER,J.SPACE].includes(t.key)&&(this.classList.remove("pressed"),t.key===J.SPACE&&this.triggerClickEvent())}render(){return C` <slot></slot> `}};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;
|
@@ -385,7 +385,7 @@
|
|
385
385
|
:host::part(postfix-icon) {
|
386
386
|
flex-shrink: 0;
|
387
387
|
}
|
388
|
-
`,
|
388
|
+
`,Cp=[Xg];var qi=l=>{let i=l.split("-"),t=["bold","filled","regular","light"];return i.filter(o=>!t.includes(o)).join("-")};var Yr=class extends gn(pe){constructor(){super(...arguments);this.size=Re.SIZE;this.inverted=Re.INVERTED;this.role=tt.BUTTON}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${qi(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${qi(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return C`
|
389
389
|
<slot name="prefix" part="prefix">
|
390
390
|
${this.prefixFilledIconName?C` <mdc-icon
|
391
391
|
name="${this.prefixFilledIconName}"
|
@@ -401,7 +401,7 @@
|
|
401
401
|
length-unit="rem"
|
402
402
|
></mdc-icon>`:""}
|
403
403
|
</slot>
|
404
|
-
`}};Yr.styles=[...pe.styles,...
|
404
|
+
`}};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([xt()],Yr.prototype,"prefixFilledIconName",2),p([xt()],Yr.prototype,"postfixFilledIconName",2);var Ki=Yr;var Zg=l=>{let{host:i,context:t,subscribe:o}=l;return new zo(i,{context:t,subscribe:o!=null?o:!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 Ks=_r;var tb=[Et,G`
|
405
405
|
:host {
|
406
406
|
--mdc-icon-fill-color: currentColor;
|
407
407
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -416,7 +416,7 @@
|
|
416
416
|
width: 100%;
|
417
417
|
fill: var(--mdc-icon-fill-color);
|
418
418
|
}
|
419
|
-
`,...At()],
|
419
|
+
`,...At()],Lp=tb;var Xs={},Rp=async l=>(Xs[l]===void 0&&(Xs[l]=new Map),{async set(i,t){Xs[l].set(i.url,await t.text())},async get(i){return Xs[l].get(i.url)},async delete(i){Xs[l].delete(i.url)}}),Mp=async l=>{let i=await caches.open(l);return{set:async(t,o)=>{await i.put(t,o)},get:async t=>{let o=await i.match(t);return o==null?void 0:o.text()},delete:async t=>{await i.delete(t)}}},Op=async(l,i)=>i==="in-memory-cache"?Rp(l):Mp(l);var Pp=async l=>fetch(l).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),Dp=async({url:l,name:i,fileExtension:t,cacheStrategy:o,cacheName:a,renewSignal:h})=>{let m=h(),T=new Request(`${l}/${i}.${t}`,{signal:m});return!a||!o||!["in-memory-cache","web-cache-api"].includes(o)?Pp(T).then(N=>N.text()):Op(a,o).then(N=>N.get(T).then($=>$||Pp(T.clone()).then(q=>{var K;return q.status<400&&q.headers.has("content-type")?(K=N.set)==null?void 0:K.call(N,T,q.clone()).then(()=>q.text()):q.text()})).catch($=>{throw new Error(`Error in caching the Icon ${i}, ${$}`)}))};var Fp=Y.constructTagName("icon"),cc={NAME:void 0,SIZE:1};var $e=class extends j{constructor(){super();this.name=cc.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Sr.consume({host:this,context:Ks.Context});this.abortController=new AbortController}prepareIconElement(t){let o=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&o.setAttribute("data-name",this.name),o.setAttribute("part","icon"),o.setAttribute("aria-hidden","true"),o}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:o,url:a,cacheName:h,iconSet:m,cacheStrategy:T}=this.iconProviderContext.value;if(m==="custom-icons"&&a&&o&&this.name){let N=()=>{var $;return($=this.abortController)==null||$.abort(),this.abortController=new AbortController,this.abortController.signal};return Dp({url:a,name:this.name,fileExtension:o,cacheName:h,cacheStrategy:T,renewSignal:N}).then($=>{let q=this.prepareIconElement($);this.handleIconLoadedSuccess(q)}).catch($=>{this.handleIconLoadedFailure($)})}if(m==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(N=>{this.handleIconLoadedSuccess(N.default())}).catch(N=>{this.handleIconLoadedFailure(N)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let o=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(o)}handleIconLoadedFailure(t){let o=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(o)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let o=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",o)}}get computedIconSize(){var t,o;return(o=(t=this.size)!=null?t:this.sizeFromContext)!=null?o:cc.SIZE}updated(t){var o,a,h,m;super.updated(t),t.has("name")&&this.getIconData().catch(T=>{T.name!=="AbortError"&&this.onerror&&this.onerror(T)}),(t.has("ariaLabel")||t.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((o=this.iconProviderContext.value)==null?void 0:o.lengthUnit)&&(this.lengthUnitFromContext=(a=this.iconProviderContext.value)==null?void 0:a.lengthUnit,this.updateSize()),this.sizeFromContext!==((h=this.iconProviderContext.value)==null?void 0:h.size)&&(this.sizeFromContext=(m=this.iconProviderContext.value)==null?void 0:m.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return C` ${this.iconData} `}};$e.styles=[...j.styles,...Lp],p([xt()],$e.prototype,"iconData",2),p([xt()],$e.prototype,"lengthUnitFromContext",2),p([xt()],$e.prototype,"sizeFromContext",2),p([g({type:String,reflect:!0})],$e.prototype,"name",2),p([g({type:Number})],$e.prototype,"size",2),p([g({type:String,attribute:"length-unit"})],$e.prototype,"lengthUnit",2),p([g({type:String,attribute:"aria-label"})],$e.prototype,"ariaLabel",2),p([g({type:String,attribute:"aria-labelledby"})],$e.prototype,"ariaLabelledBy",2),p([xt()],$e.prototype,"abortController",2);var dc=$e;dc.register(Fp);var eb=dc;Ki.register(Gr);var rb=Ki;var $p=G`
|
420
420
|
:host::part(text) {
|
421
421
|
font-size: unset;
|
422
422
|
font-weight: unset;
|
@@ -659,14 +659,14 @@
|
|
659
659
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
660
660
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
661
661
|
}
|
662
|
-
`;var
|
662
|
+
`;var ib=[G`
|
663
663
|
:host {
|
664
664
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
665
665
|
|
666
666
|
display: block;
|
667
667
|
font-family: var(--mdc-text-font-family);
|
668
668
|
}
|
669
|
-
|
669
|
+
`,$p],zp=ib;var Zs=Y.constructTagName("text"),st={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},gt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},me={TYPE:st.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:gt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Bo=class extends j{constructor(){super(...arguments);this.type=me.TYPE;this.tagname=me.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case gt.H1:return C`<h1 part=${me.CSS_PART_TEXT}><slot></slot></h1>`;case gt.H2:return C`<h2 part=${me.CSS_PART_TEXT}><slot></slot></h2>`;case gt.H3:return C`<h3 part=${me.CSS_PART_TEXT}><slot></slot></h3>`;case gt.H4:return C`<h4 part=${me.CSS_PART_TEXT}><slot></slot></h4>`;case gt.H5:return C`<h5 part=${me.CSS_PART_TEXT}><slot></slot></h5>`;case gt.H6:return C`<h6 part=${me.CSS_PART_TEXT}><slot></slot></h6>`;case gt.DIV:return C`<div part=${me.CSS_PART_TEXT}><slot></slot></div>`;case gt.SPAN:return C`<span part=${me.CSS_PART_TEXT}><slot></slot></span>`;case gt.SMALL:return C`<small part=${me.CSS_PART_TEXT}><slot></slot></small>`;case gt.P:default:return C`<p part=${me.CSS_PART_TEXT}><slot></slot></p>`}}};Bo.styles=[...j.styles,...zp],p([g({attribute:"type",reflect:!0,type:String})],Bo.prototype,"type",2),p([g({attribute:"tagname",reflect:!0,type:String})],Bo.prototype,"tagname",2);var hc=Bo;hc.register(Zs);var ob=hc;var ot=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,i=0){return(ae[l[i+0]]+ae[l[i+1]]+ae[l[i+2]]+ae[l[i+3]]+"-"+ae[l[i+4]]+ae[l[i+5]]+"-"+ae[l[i+6]]+ae[l[i+7]]+"-"+ae[l[i+8]]+ae[l[i+9]]+"-"+ae[l[i+10]]+ae[l[i+11]]+ae[l[i+12]]+ae[l[i+13]]+ae[l[i+14]]+ae[l[i+15]]).toLowerCase()}var pc,sb=new Uint8Array(16);function mc(){if(!pc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pc=crypto.getRandomValues.bind(crypto)}return pc(sb)}var ab=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),uc={randomUUID:ab};function nb(l,i,t){var a,h,m;if(uc.randomUUID&&!i&&!l)return uc.randomUUID();l=l||{};let o=(m=(h=l.random)!=null?h:(a=l.rng)==null?void 0:a.call(l))!=null?m:mc();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,i){if(t=t||0,t<0||t+16>i.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let T=0;T<16;++T)i[t+T]=o[T];return i}return Vp(o)}var ge=nb;var Bp=Y.constructTagName("accordiongroup"),fc={SMALL:"small",LARGE:"large"},lb={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},Qs={SIZE:fc.SMALL,VARIANT:lb.STACKED};var In=Y.constructTagName("accordionbutton"),Js={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},cb={DEFAULT:"default",BORDERLESS:"borderless"},Ti={EXPANDED:!1,SIZE:fc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:cb.DEFAULT,ICON_NAME:Js.ARROW_UP};var db=G`
|
670
670
|
:host {
|
671
671
|
--mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
|
672
672
|
--mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
|
@@ -783,7 +783,7 @@
|
|
783
783
|
:host([variant='default']:not([expanded]))::part(header-section) {
|
784
784
|
border-bottom: none;
|
785
785
|
}
|
786
|
-
`,
|
786
|
+
`,Up=[db,...At(!0)];var Ir=class extends $t(j){constructor(){super(...arguments);this.size=Ti.SIZE;this.variant=Ti.VARIANT;this.dataAriaLevel=Ti.DATA_ARIA_LEVEL;this.expanded=Ti.EXPANDED;this.headSectionId=`head-section-${ge()}`;this.bodySectionId=`body-section-${ge()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){(t.key===J.ENTER||t.key===J.SPACE)&&this.handleHeaderClick()}renderIcon(t){return t?C`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:W}renderHeadingText(){return this.headerText?C`<mdc-text id="${this.headSectionId}" type="${st.BODY_LARGE_REGULAR}" tagname=${gt.SPAN}
|
787
787
|
>${this.headerText}</mdc-text
|
788
788
|
>`:W}renderHeader(){return C`
|
789
789
|
<div
|
@@ -814,7 +814,7 @@
|
|
814
814
|
role="${tt.REGION}"
|
815
815
|
>
|
816
816
|
<slot></slot>
|
817
|
-
</div>`:W}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=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,...
|
817
|
+
</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 Uo=Ir;var hb=G`
|
818
818
|
:host::part(header-section) {
|
819
819
|
display: flex;
|
820
820
|
align-items: center;
|
@@ -828,7 +828,7 @@
|
|
828
828
|
:host::part(trailing-header__button) {
|
829
829
|
margin: 0.125rem;
|
830
830
|
}
|
831
|
-
`,
|
831
|
+
`,Hp=[hb];var Ho=class extends Uo{update(i){super.update(i),i.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderHeader(){return C`
|
832
832
|
<div part="header-section">
|
833
833
|
<div part="leading-header">
|
834
834
|
${this.renderIcon(this.prefixIcon)}
|
@@ -843,14 +843,14 @@
|
|
843
843
|
@click="${this.handleHeaderClick}"
|
844
844
|
aria-controls="${this.bodySectionId}"
|
845
845
|
aria-expanded="${this.expanded}"
|
846
|
-
title="${
|
846
|
+
title="${ot(this.headerText)}"
|
847
847
|
prefix-icon="${this.getArrowIconName()}"
|
848
848
|
variant="${Ot.TERTIARY}"
|
849
849
|
size="${je[20]}"
|
850
850
|
></mdc-button>
|
851
851
|
</div>
|
852
852
|
</div>
|
853
|
-
`}};
|
853
|
+
`}};Ho.styles=[...Uo.styles,...Hp],p([Lt({slot:"leading-controls"})],Ho.prototype,"leadingControlsSlot",2),p([Lt({slot:"trailing-controls"})],Ho.prototype,"trailingControlsSlot",2);var vc=Ho;var kn=Y.constructTagName("accordion");vc.register(kn);var pb=vc;var mb=G`
|
854
854
|
:host {
|
855
855
|
--mdc-accordiongroup-border-color: var(--mds-color-theme-outline-secondary-normal);
|
856
856
|
|
@@ -894,7 +894,7 @@
|
|
894
894
|
:host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
|
895
895
|
border-bottom: 1px solid var(--mdc-accordiongroup-border-color);
|
896
896
|
}
|
897
|
-
`,
|
897
|
+
`,Gp=[mb,...At()];var jr=class extends j{constructor(){super();this.size=Qs.SIZE;this.variant=Qs.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(o=>{o!==t.target&&o.hasAttribute("expanded")&&o.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,o){[...this.accordionItems].forEach(a=>{a.setAttribute(t,o)}),[...this.accordionButtonItems].forEach(a=>{a.setAttribute(t,o)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=Qs.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=Qs.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([Lt({selector:kn})],jr.prototype,"accordionItems",2),p([Lt({selector:In})],jr.prototype,"accordionButtonItems",2);var gc=jr;gc.register(Bp);var ub=gc;Uo.register(In);var fb=Uo;var vb=G`
|
898
898
|
:host {
|
899
899
|
height: 1.5rem;
|
900
900
|
gap: 0.25rem;
|
@@ -996,16 +996,16 @@
|
|
996
996
|
:host([variant='informational']:active) {
|
997
997
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
998
998
|
}
|
999
|
-
`,
|
1000
|
-
<mdc-icon part="icon" name="${
|
1001
|
-
${this.label?C`<mdc-text part="label" type="${
|
999
|
+
`,Yp=[Et,vb,...At()];var Wp=Y.constructTagName("alertchip"),Xi={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Go={VARIANT:Xi.NEUTRAL,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:gt.SPAN,SIZE:Wi[24],ROLE:"button"};var jp=l=>({[Xi.ERROR]:"error-legacy-badge-filled",[Xi.WARNING]:"warning-badge-filled",[Xi.SUCCESS]:"check-circle-badge-filled",[Xi.INFORMATIONAL]:"info-badge-filled",[Xi.NEUTRAL]:"dnd-presence-badge-filled"})[l];var Yo=class extends pe{constructor(){super(...arguments);this.variant=Go.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Go.SIZE,this.role=Go.ROLE}render(){return C`
|
1000
|
+
<mdc-icon part="icon" name="${jp(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
1001
|
+
${this.label?C`<mdc-text part="label" type="${Go.TEXT_TYPE}" tagname="${Go.TAG_NAME}"
|
1002
1002
|
>${this.label}</mdc-text
|
1003
1003
|
>`:W}
|
1004
|
-
`}};
|
1004
|
+
`}};Yo.styles=[...j.styles,...Yp],p([g({type:String})],Yo.prototype,"variant",2),p([g({type:String})],Yo.prototype,"label",2);var bc=Yo;bc.register(Wp);var gb=bc;var{I:II}=bp;var Cn=l=>l.strings===void 0;var bb={},qp=(l,i=bb)=>l._$AH=i;var hr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Zi=l=>(...i)=>({_$litDirective$:l,values:i}),xi=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,o){this.t=i,this._$AM=t,this.i=o}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var ta=(l,i)=>{var o;let t=l._$AN;if(t===void 0)return!1;for(let a of t)(o=a._$AO)==null||o.call(a,i,!1),ta(a,i);return!0},wn=l=>{let i,t;do{if((i=l._$AM)===void 0)break;t=i._$AN,t.delete(l),l=i}while((t==null?void 0:t.size)===0)},Kp=l=>{for(let i;i=l._$AM;l=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(l))break;t.add(l),Tb(i)}};function yb(l){this._$AN!==void 0?(wn(this),this._$AM=l,Kp(this)):this._$AM=l}function Eb(l,i=!1,t=0){let o=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(i)if(Array.isArray(o))for(let h=t;h<o.length;h++)ta(o[h],!1),wn(o[h]);else o!=null&&(ta(o,!1),wn(o));else ta(this,l)}var Tb=l=>{var i,t;l.type==hr.CHILD&&((i=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(i,t,o){super._$AT(i,t,o),Kp(this),this.isConnected=i._$AU}_$AO(i,t=!0){var o,a;i!==this.isConnected&&(this.isConnected=i,i?(o=this.reconnected)==null||o.call(this):(a=this.disconnected)==null||a.call(this)),t&&(ta(this,i),wn(this))}setValue(i){if(Cn(this.t))this.t._$AI(i,this);else{let t=[...this.t._$AH];t[this.i]=i,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Ln=()=>new Ec,Ec=class{},yc=new WeakMap,Rn=Zi(class extends Nn{render(l){return W}update(l,[i]){var o;let t=i!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=i,this.ht=(o=l.options)==null?void 0:o.host,this.rt(this.ct=l.element)),W}rt(l){var i;if(this.isConnected||(l=void 0),typeof this.Y=="function"){let t=(i=this.ht)!=null?i:globalThis,o=yc.get(t);o===void 0&&(o=new WeakMap,yc.set(t,o)),o.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),o.set(this.Y,l),l!==void 0&&this.Y.call(this.ht,l)}else this.Y.value=l}get lt(){var l,i,t;return typeof this.Y=="function"?(i=yc.get((l=this.ht)!=null?l:globalThis))==null?void 0:i.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Jp=Og(Xp());var Tc={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=[Et,G`
|
1005
1005
|
:host svg {
|
1006
1006
|
display: block;
|
1007
1007
|
}
|
1008
|
-
`],
|
1008
|
+
`],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 o=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(o)}getAnimationData(){this.name&&Tc[this.name]?import(`@momentum-design/animations/dist/lottie${Tc[this.name].replace(/^\.\/lottie/,"")}`).then(o=>this.onLoadSuccessHandler(o.default)).catch(o=>this.onLoadFailHandler(o)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return C`<div aria-hidden="true" ${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 xc=qr;xc.register(Qp);var Ab=xc;var Sb=G`
|
1009
1009
|
:host {
|
1010
1010
|
--mdc-appheader-height: 4rem;
|
1011
1011
|
}
|
@@ -1038,7 +1038,7 @@
|
|
1038
1038
|
:host::part(trailing-section) {
|
1039
1039
|
justify-content: flex-end;
|
1040
1040
|
}
|
1041
|
-
`,
|
1041
|
+
`,tm=[Sb];var Pn=class extends j{render(){return C` <header part="container">
|
1042
1042
|
<div part="leading-section">
|
1043
1043
|
<slot name="leading"></slot>
|
1044
1044
|
</div>
|
@@ -1048,7 +1048,7 @@
|
|
1048
1048
|
<div part="trailing-section">
|
1049
1049
|
<slot name="trailing"></slot>
|
1050
1050
|
</div>
|
1051
|
-
</header>`}};Pn.styles=[...j.styles,...
|
1051
|
+
</header>`}};Pn.styles=[...j.styles,...tm];var Ac=Pn;var em=Y.constructTagName("appheader");Ac.register(em);var _b=Ac;var rm=Y.constructTagName("avatar"),be={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Sc=99,Ib="user-regular",Ft={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Wo={TYPE:be.PHOTO,SIZE:Ft[32],ICON_NAME:Ib};var Dn=l=>{class i extends l{constructor(){super(...arguments);this.size=Wo.SIZE;this.isTyping=!1}}return p([g({type:String})],i.prototype,"src",2),p([g({type:String})],i.prototype,"initials",2),p([g({type:String})],i.prototype,"presence",2),p([g({type:Number,reflect:!0,attribute:"size"})],i.prototype,"size",2),p([g({type:Number})],i.prototype,"counter",2),p([g({type:Boolean,attribute:"is-typing"})],i.prototype,"isTyping",2),i};var Jt=l=>{class i extends l{}return p([g({type:String,attribute:"icon-name"})],i.prototype,"iconName",2),i};var kb=[Et,G`
|
1052
1052
|
:host {
|
1053
1053
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
1054
1054
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -1175,25 +1175,25 @@
|
|
1175
1175
|
outline: 0.125rem solid;
|
1176
1176
|
}
|
1177
1177
|
}
|
1178
|
-
`],
|
1179
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
1178
|
+
`],im=kb;var om=Y.constructTagName("presence"),ue={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},te={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},jo={TYPE:ue.ACTIVE,SIZE:te.SMALL};var sm=l=>({[Ft[124]]:te.XX_LARGE,[Ft[88]]:te.X_LARGE,[Ft[72]]:te.LARGE,[Ft[64]]:te.MIDSIZE,[Ft[48]]:te.SMALL,[Ft[32]]:te.X_SMALL,[Ft[24]]:te.XX_SMALL})[l]||te.X_SMALL,am=l=>({[Ft[124]]:4.75,[Ft[88]]:3,[Ft[72]]:2.5,[Ft[64]]:2.25,[Ft[48]]:1.75,[Ft[32]]:1.25,[Ft[24]]:1})[l]||1.25,nm=l=>({[Ft[124]]:st.HEADING_XLARGE_MEDIUM,[Ft[88]]:st.HEADING_LARGE_MEDIUM,[Ft[72]]:st.HEADING_MIDSIZE_MEDIUM,[Ft[64]]:st.HEADING_SMALL_MEDIUM,[Ft[48]]:st.HEADING_SMALL_MEDIUM,[Ft[32]]:st.BODY_MIDSIZE_MEDIUM,[Ft[24]]:st.BODY_SMALL_MEDIUM})[l]||st.BODY_MIDSIZE_MEDIUM;var ra=class extends Dn(Jt(j)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(t){return t===be.COUNTER&&(this.counter||this.counter===0)||this.isTyping?W:this.presence?C`
|
1179
|
+
<mdc-presence part="presence" type="${this.presence}" size="${sm(this.size)}"></mdc-presence>
|
1180
1180
|
`:W}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return C`
|
1181
1181
|
<img
|
1182
1182
|
part="photo"
|
1183
|
-
src="${
|
1183
|
+
src="${ot(this.src)}"
|
1184
1184
|
aria-hidden="true"
|
1185
1185
|
?hidden="${!this.isPhotoLoaded}"
|
1186
1186
|
@load="${this.handleOnLoad}"
|
1187
1187
|
@error="${this.handleOnError}"
|
1188
1188
|
/>
|
1189
|
-
`}iconTemplate(){let t=this.iconName||
|
1190
|
-
<mdc-icon name="${
|
1191
|
-
`}textTemplate(t){return C` <mdc-text type="${
|
1189
|
+
`}iconTemplate(){let t=this.iconName||Wo.ICON_NAME;return C`
|
1190
|
+
<mdc-icon name="${ot(t)}" length-unit="rem" size="${am(this.size)}"></mdc-icon>
|
1191
|
+
`}textTemplate(t){return C` <mdc-text type="${nm(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Sc?`${Sc}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let o="";return t===be.TEXT&&this.initials&&(o=this.generateInitialsText(this.initials)),t===be.COUNTER&&(this.counter||this.counter===0)&&(o=this.generateCounterText(this.counter)),this.textTemplate(o)}getTypeBasedOnInputs(){return this.src?be.PHOTO:this.iconName?be.ICON:this.initials?be.TEXT:this.counter||this.counter===0?be.COUNTER:be.ICON}getTemplateBasedOnType(t){switch(t){case be.PHOTO:return this.photoTemplate();case be.TEXT:case be.COUNTER:return this.generateTextContent(t);case be.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===be.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():W}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return C`
|
1192
1192
|
<div part="content" aria-hidden="true">
|
1193
1193
|
${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
|
1194
1194
|
${this.getPresenceTemplateBasedOnType(t)}
|
1195
1195
|
</div>
|
1196
|
-
`}};ra.styles=[...j.styles,...
|
1196
|
+
`}};ra.styles=[...j.styles,...im],p([xt()],ra.prototype,"isPhotoLoaded",2);var _c=ra;var Cb=[Et,G`
|
1197
1197
|
:host {
|
1198
1198
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
1199
1199
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -1287,7 +1287,7 @@
|
|
1287
1287
|
.mdc-presence-icon__scheduled {
|
1288
1288
|
color: var(--mdc-presence-scheduled-background-color);
|
1289
1289
|
}
|
1290
|
-
`],
|
1290
|
+
`],lm=Cb;var cm=l=>{switch(l){case ue.AWAY:return"recents-presence-badge-filled";case ue.AWAY_CALLING:return"away-calling-presence-filled";case ue.BUSY:return"busy-presence-bold";case ue.DND:return"dnd-presence-badge-filled";case ue.MEETING:return"camera-filled";case ue.ON_CALL:return"handset-filled";case ue.ON_DEVICE:return"generic-device-video-badge-filled";case ue.ON_MOBILE:return"phone-badge-filled";case ue.PAUSE:return"pause-badge-filled";case ue.PTO:return"pto-presence-filled";case ue.PRESENTING:return"share-screen-badge-filled";case ue.QUIET:return"quiet-hours-presence-filled";case ue.SCHEDULED:return"meetings-presence-badge-filled";case ue.ACTIVE:default:return"active-presence-small-filled"}};var Qi=class extends j{constructor(){super(...arguments);this.type=jo.TYPE;this.size=jo.SIZE;this.currentIconType=jo.TYPE}get iconSize(){switch(this.size){case te.MIDSIZE:return 1.16125;case te.LARGE:return 1.30625;case te.X_LARGE:return 1.596875;case te.XX_LARGE:return 2.25;case te.XX_SMALL:case te.X_SMALL:case te.SMALL:default:return this.size=jo.SIZE,.875}}get icon(){let t=cm(this.type);return t==="active-presence-small-filled"&&(this.type=jo.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return C`
|
1291
1291
|
<div class="mdc-presence mdc-presence__${this.size}">
|
1292
1292
|
<mdc-icon
|
1293
1293
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -1297,7 +1297,7 @@
|
|
1297
1297
|
@error="${this.handleOnError}"
|
1298
1298
|
></mdc-icon>
|
1299
1299
|
</div>
|
1300
|
-
`}};
|
1300
|
+
`}};Qi.styles=[...j.styles,...lm],p([g({type:String,reflect:!0})],Qi.prototype,"type",2),p([g({type:String,reflect:!0})],Qi.prototype,"size",2),p([xt()],Qi.prototype,"currentIconType",2);var Ic=Qi;Ic.register(om);var wb=Ic;_c.register(rm);var Nb=_c;var Lb=[Et,G`
|
1301
1301
|
:host {
|
1302
1302
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
1303
1303
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -1326,19 +1326,19 @@
|
|
1326
1326
|
:host::part(presence) {
|
1327
1327
|
z-index: 2;
|
1328
1328
|
}
|
1329
|
-
`,...At()],
|
1329
|
+
`,...At()],dm=Lb;var ia=class extends Dn(Jt(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=Re.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ft).includes(t)?`${t}`:Wo.SIZE.toString())}render(){return C`
|
1330
1330
|
<div part="overlay" aria-hidden="true"></div>
|
1331
1331
|
<mdc-avatar
|
1332
1332
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
1333
1333
|
?is-typing="${this.isTyping}"
|
1334
|
-
counter="${
|
1335
|
-
icon-name="${
|
1336
|
-
initials="${
|
1337
|
-
presence="${
|
1338
|
-
size="${
|
1339
|
-
src="${
|
1334
|
+
counter="${ot(this.counter)}"
|
1335
|
+
icon-name="${ot(this.iconName)}"
|
1336
|
+
initials="${ot(this.initials)}"
|
1337
|
+
presence="${ot(this.presence)}"
|
1338
|
+
size="${ot(this.size)}"
|
1339
|
+
src="${ot(this.src)}"
|
1340
1340
|
></mdc-avatar>
|
1341
|
-
`}};ia.styles=[...
|
1341
|
+
`}};ia.styles=[...dm],p([g({type:String,attribute:"aria-label"})],ia.prototype,"ariaLabel",2);var kc=ia;var hm=Y.constructTagName("avatarbutton");kc.register(hm);var Rb=kc;var kr=Zi(class extends xi{constructor(l){var i;if(super(l),l.type!==hr.ATTRIBUTE||l.name!=="class"||((i=l.strings)==null?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(l){return" "+Object.keys(l).filter(i=>l[i]).join(" ")+" "}update(l,[i]){var o,a;if(this.st===void 0){this.st=new Set,l.strings!==void 0&&(this.nt=new Set(l.strings.join(" ").split(/\s/).filter(h=>h!=="")));for(let h in i)i[h]&&!((o=this.nt)!=null&&o.has(h))&&this.st.add(h);return this.render(i)}let t=l.element.classList;for(let h of this.st)h in i||(t.remove(h),this.st.delete(h));for(let h in i){let m=!!i[h];m===this.st.has(h)||(a=this.nt)!=null&&a.has(h)||(m?(t.add(h),this.st.add(h)):(t.remove(h),this.st.delete(h)))}return Le}});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"},oa={SUCCESS:"success",WARNING:"warning",ERROR:"error"},YC={...$n,...oa},Ai={TYPE:Ke.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:$n.PRIMARY,ICON_SIZE:1};var Mb=[Et,G`
|
1342
1342
|
:host {
|
1343
1343
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
1344
1344
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -1414,21 +1414,21 @@
|
|
1414
1414
|
outline: none;
|
1415
1415
|
}
|
1416
1416
|
}
|
1417
|
-
`],
|
1417
|
+
`],mm=Mb;var Cr=class extends Jt(j){constructor(){super(...arguments);this.variant=Ai.VARIANT;this.maxCounter=Ai.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(t,o){return o===void 0||typeof o!="number"||t===0?"":o>t?`${t}+`:t>Ai.MAX_COUNTER_LIMIT||o>Ai.MAX_COUNTER_LIMIT?`${Ai.MAX_COUNTER_LIMIT}+`:o.toString()}getBadgeIcon(t,o){return C`
|
1418
1418
|
<mdc-icon
|
1419
1419
|
class="mdc-badge-icon ${kr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${o}`]:!0})}"
|
1420
|
-
name="${
|
1420
|
+
name="${ot(t)}"
|
1421
1421
|
size="${Ai.ICON_SIZE}"
|
1422
1422
|
></mdc-icon>
|
1423
1423
|
`}getBadgeDot(){return C`<div class="mdc-badge-dot ${kr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return C`
|
1424
1424
|
<mdc-text
|
1425
|
-
type="${
|
1425
|
+
type="${st.BODY_SMALL_MEDIUM}"
|
1426
1426
|
tagname="${gt.DIV}"
|
1427
1427
|
class="mdc-badge-text ${kr({"mdc-badge-overlay":this.overlay})}"
|
1428
1428
|
>
|
1429
1429
|
${this.getCounterText(this.maxCounter,this.counter)}
|
1430
1430
|
</mdc-text>
|
1431
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values($n).includes(this.variant)&&(this.variant=Ai.VARIANT);let{iconName:t,type:o,variant:a}=this;switch(o){case Ke.ICON:return this.getBadgeIcon(t||"",a);case Ke.COUNTER:return this.getBadgeCounterText();case Ke.SUCCESS:return this.getBadgeIcon(Fn.SUCCESS_ICON_NAME,oa.SUCCESS);case Ke.WARNING:return this.getBadgeIcon(Fn.WARNING_ICON_NAME,oa.WARNING);case Ke.ERROR:return this.getBadgeIcon(Fn.ERROR_ICON_NAME,oa.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,...
|
1431
|
+
`}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:o,variant:a}=this;switch(o){case Ke.ICON:return this.getBadgeIcon(t||"",a);case Ke.COUNTER:return this.getBadgeCounterText();case Ke.SUCCESS:return this.getBadgeIcon(Fn.SUCCESS_ICON_NAME,oa.SUCCESS);case Ke.WARNING:return this.getBadgeIcon(Fn.WARNING_ICON_NAME,oa.WARNING);case Ke.ERROR:return this.getBadgeIcon(Fn.ERROR_ICON_NAME,oa.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 Cc=Cr;Cc.register(pm);var Ob=Cc;var Pb=G`
|
1432
1432
|
:host {
|
1433
1433
|
display: block;
|
1434
1434
|
height: 100%;
|
@@ -1437,7 +1437,7 @@
|
|
1437
1437
|
height: 100%;
|
1438
1438
|
width: 100%;
|
1439
1439
|
}
|
1440
|
-
`,
|
1440
|
+
`,um=[Pb];var fm=Y.constructTagName("brandvisual"),vm={NAME:void 0};var qo=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(o=>{this.onerror&&this.onerror(o)})}handleBrandVisualLoadedSuccess(t){this.brandVisualData=t;let o=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(o)}handleBrandVisualLoadedFailure(t){let o=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(o)}render(){return C` ${this.brandVisualData} `}};qo.styles=[...j.styles,...um],p([xt()],qo.prototype,"brandVisualData",2),p([g({type:String,reflect:!0})],qo.prototype,"name",2);var wc=qo;wc.register(fm);var Db=wc;var Fb=G`
|
1441
1441
|
:host {
|
1442
1442
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
1443
1443
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -1458,7 +1458,7 @@
|
|
1458
1458
|
:host([size='large']) {
|
1459
1459
|
height: var(--mdc-bullet-size-large);
|
1460
1460
|
}
|
1461
|
-
`,
|
1461
|
+
`,gm=[Fb];var bm=Y.constructTagName("bullet"),ym={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var sa=class extends j{constructor(){super(...arguments);this.size=ym.SMALL}};sa.styles=[...j.styles,...gm],p([g({type:String,reflect:!0})],sa.prototype,"size",2);var Nc=sa;Nc.register(bm);var $b=Nc;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`
|
1462
1462
|
:host {
|
1463
1463
|
--mdc-buttongroup-border-radius: 1.25rem;
|
1464
1464
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1539,7 +1539,7 @@
|
|
1539
1539
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
1540
1540
|
width: 2.5rem;
|
1541
1541
|
}
|
1542
|
-
`,
|
1542
|
+
`,Tm=[Et,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([Lt({selector:"mdc-button"})],Kr.prototype,"buttons",2);var Lc=Kr;Lc.register(Em);var Hb=Lc;var xm=Y.constructTagName("linksimple"),Ko={INLINE:!1,INVERTED:!1};var Gb=[Et,G`
|
1543
1543
|
:host {
|
1544
1544
|
--mdc-link-border-radius: 0.25rem;
|
1545
1545
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1605,11 +1605,11 @@
|
|
1605
1605
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
1606
1606
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1607
1607
|
}
|
1608
|
-
`,...At()],
|
1608
|
+
`,...At()],Am=Gb;var Xr=class extends $t(qe(j)){constructor(){super(...arguments);this.inline=Ko.INLINE;this.inverted=Ko.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 Xo=class extends gn(Si){constructor(){super(...arguments);this.size=Re.SIZE}setSoftDisabled(t,o){o?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}render(){return C`
|
1609
1609
|
${this.prefixIcon?C` <mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
1610
1610
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1611
1611
|
${this.postfixIcon?C` <mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1612
|
-
`}};
|
1612
|
+
`}};Xo.styles=[...Ki.styles],p([g({type:Number,reflect:!0})],Xo.prototype,"size",2),p([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xo.prototype,"softDisabled",2);var Rc=Xo;var Sm=Y.constructTagName("buttonlink");Rc.register(Sm);var Yb=Rc;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"),Mc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Wb={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ee={VARIANT:Mc.BORDER,ORIENTATION:Wb.VERTICAL,TITLE_TYPE:st.HEADING_SMALL_BOLD,SUBTITLE_TYPE:st.BODY_MIDSIZE_MEDIUM,TAGNAME:gt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Vn,BUTTON:Gr};var Hn=l=>{class i extends l{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=ee.VARIANT;this.orientation=ee.ORIENTATION;this.titleTagName=ee.TAGNAME;this.subtitleTagName=ee.TAGNAME}renderImage(){return this.imageSrc?C`<div part="image-wrapper"><img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" /></div>`:W}renderIcon(){return this.iconName?C`<mdc-icon
|
1613
1613
|
part="icon"
|
1614
1614
|
size="${ee.ICON_SIZE}"
|
1615
1615
|
length-unit="${ee.ICON_LENGTH_UNIT}"
|
@@ -1619,7 +1619,7 @@
|
|
1619
1619
|
${this.subtitle?C`<mdc-text part="subtitle" type="${ee.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
1620
1620
|
>${this.subtitle}</mdc-text
|
1621
1621
|
>`:W}
|
1622
|
-
</div>`}}return p([g({type:String,attribute:"card-title",reflect:!0})],i.prototype,"cardTitle",2),p([g({type:String,reflect:!0})],i.prototype,"subtitle",2),p([g({type:String,attribute:"image-src",reflect:!0})],i.prototype,"imageSrc",2),p([g({type:String,attribute:"image-alt",reflect:!0})],i.prototype,"imageAlt",2),p([g({type:String,reflect:!0})],i.prototype,"variant",2),p([g({type:String,reflect:!0})],i.prototype,"orientation",2),p([g({type:String,attribute:"title-tag-name",reflect:!0})],i.prototype,"titleTagName",2),p([g({type:String,attribute:"subtitle-tag-name",reflect:!0})],i.prototype,"subtitleTagName",2),p([g({type:String,attribute:"icon-name",reflect:!0})],i.prototype,"iconName",2),i};var
|
1622
|
+
</div>`}}return p([g({type:String,attribute:"card-title",reflect:!0})],i.prototype,"cardTitle",2),p([g({type:String,reflect:!0})],i.prototype,"subtitle",2),p([g({type:String,attribute:"image-src",reflect:!0})],i.prototype,"imageSrc",2),p([g({type:String,attribute:"image-alt",reflect:!0})],i.prototype,"imageAlt",2),p([g({type:String,reflect:!0})],i.prototype,"variant",2),p([g({type:String,reflect:!0})],i.prototype,"orientation",2),p([g({type:String,attribute:"title-tag-name",reflect:!0})],i.prototype,"titleTagName",2),p([g({type:String,attribute:"subtitle-tag-name",reflect:!0})],i.prototype,"subtitleTagName",2),p([g({type:String,attribute:"icon-name",reflect:!0})],i.prototype,"iconName",2),i};var Zo=l=>{class i extends l{updateFooterButtonColors(o){let a=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];a==null||a.forEach(h=>{o===Mc.PROMOTIONAL?h.setAttribute("color",ji.PROMOTIONAL):h.setAttribute("color",ji.DEFAULT)})}handleFooterSlot(o,a){var m,T,N;let h=[];o===ee.LINK&&((m=this.footerLink)!=null&&m.length)?h=this.footerLink:o===ee.BUTTON&&a===Ot.PRIMARY&&((T=this.footerButtonPrimary)!=null&&T.length)?h=this.footerButtonPrimary:o===ee.BUTTON&&a===Ot.SECONDARY&&((N=this.footerButtonSecondary)!=null&&N.length)&&(h=this.footerButtonSecondary);for(let $=1;$<h.length;$+=1)h[$].remove();h.forEach($=>{$.matches(o)||$.remove(),a&&$.setAttribute("variant",a)})}renderFooter(){return C` <slot name="footer">
|
1623
1623
|
<div part="footer">
|
1624
1624
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(ee.LINK)}></slot>
|
1625
1625
|
<slot
|
@@ -1631,7 +1631,7 @@
|
|
1631
1631
|
@slotchange=${()=>this.handleFooterSlot(ee.BUTTON,Ot.PRIMARY)}
|
1632
1632
|
></slot>
|
1633
1633
|
</div>
|
1634
|
-
</slot>`}}return p([Lt({slot:"footer-link"})],i.prototype,"footerLink",2),p([Lt({slot:"footer-button-primary"})],i.prototype,"footerButtonPrimary",2),p([Lt({slot:"footer-button-secondary"})],i.prototype,"footerButtonSecondary",2),i};var
|
1634
|
+
</slot>`}}return p([Lt({slot:"footer-link"})],i.prototype,"footerLink",2),p([Lt({slot:"footer-button-primary"})],i.prototype,"footerButtonPrimary",2),p([Lt({slot:"footer-button-secondary"})],i.prototype,"footerButtonSecondary",2),i};var jb=G`
|
1635
1635
|
:host {
|
1636
1636
|
--mdc-card-width: 20rem;
|
1637
1637
|
align-items: stretch;
|
@@ -1740,7 +1740,7 @@
|
|
1740
1740
|
mdc-text::part(text) {
|
1741
1741
|
margin: 0;
|
1742
1742
|
}
|
1743
|
-
`,
|
1743
|
+
`,km=[Et,jb];var aa=class extends Hn(Zo(j)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(o=>{o.matches(ee.BUTTON)&&(o.setAttribute("variant",Ot.TERTIARY),o.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?C`<div part="header">
|
1744
1744
|
${this.renderIcon()} ${this.renderTitle()}
|
1745
1745
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
1746
1746
|
</div>`:W}render(){return C`
|
@@ -1754,7 +1754,7 @@
|
|
1754
1754
|
</div>
|
1755
1755
|
${this.renderFooter()}
|
1756
1756
|
</div>
|
1757
|
-
`}};aa.styles=[...j.styles,...
|
1757
|
+
`}};aa.styles=[...j.styles,...km],p([Lt({slot:"icon-button"})],aa.prototype,"iconButtons",2);var pr=aa;pr.register(Im);var qb=pr;var Kb=G`
|
1758
1758
|
:host {
|
1759
1759
|
cursor: pointer;
|
1760
1760
|
user-select: none;
|
@@ -1776,7 +1776,7 @@
|
|
1776
1776
|
:host([disabled])::part(image) {
|
1777
1777
|
opacity: 0.5;
|
1778
1778
|
}
|
1779
|
-
`,
|
1779
|
+
`,Cm=[Kb,...At()];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`
|
1780
1780
|
${this.renderImage()}
|
1781
1781
|
<div part="body">
|
1782
1782
|
${this.renderHeader()}
|
@@ -1784,7 +1784,7 @@
|
|
1784
1784
|
<slot name="body"></slot>
|
1785
1785
|
<slot name="after-body"></slot>
|
1786
1786
|
</div>
|
1787
|
-
`}};Gn.styles=[...pr.styles,...
|
1787
|
+
`}};Gn.styles=[...pr.styles,...Cm];var Oc=Gn;var wm=Y.constructTagName("cardbutton");Oc.register(wm);var Xb=Oc;var Nm=Y.constructTagName("cardcheckbox"),Pc={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`
|
1788
1788
|
:host {
|
1789
1789
|
cursor: pointer;
|
1790
1790
|
user-select: none;
|
@@ -1841,7 +1841,7 @@
|
|
1841
1841
|
:host([disabled])::part(check-icon) {
|
1842
1842
|
color: var(--mds-color-theme-text-primary-disabled);
|
1843
1843
|
}
|
1844
|
-
`,
|
1844
|
+
`,Lm=[Zb,...At()];var Qo=class extends $t(qe(pr)){constructor(){super();this.checked=!1;this.selectionType=Wn.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.toggleOnEnter.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(t){t.key===J.ENTER&&this.toggleChecked()}toggleOnSpace(t){t.key===J.SPACE&&this.toggleChecked()}renderSelection(){let t=this.checked?Pc.CHECKED:Pc.DEFAULT;switch(this.selectionType){case Yn.CHECK:return C`<mdc-icon
|
1845
1845
|
part="check check-icon"
|
1846
1846
|
size="${Wn.ICON_SIZE}"
|
1847
1847
|
length-unit="${Wn.ICON_LENGTH_UNIT}"
|
@@ -1858,7 +1858,7 @@
|
|
1858
1858
|
<slot name="body"></slot>
|
1859
1859
|
<slot name="after-body"></slot>
|
1860
1860
|
</div>
|
1861
|
-
`}};
|
1861
|
+
`}};Qo.styles=[...pr.styles,...Lm],p([g({type:Boolean,reflect:!0})],Qo.prototype,"checked",2),p([g({type:String,attribute:"selection-type",reflect:!0})],Qo.prototype,"selectionType",2);var Dc=Qo;var Qb=[G`
|
1862
1862
|
:host {
|
1863
1863
|
margin: 0.125rem 0;
|
1864
1864
|
border-radius: 0.125rem;
|
@@ -1914,7 +1914,7 @@
|
|
1914
1914
|
border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
|
1915
1915
|
}
|
1916
1916
|
}
|
1917
|
-
`],
|
1917
|
+
`],Rm=Qb;var Mm=Y.constructTagName("checkbox"),jn={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Om=Y.constructTagName("staticcheckbox");var Jo=class extends $t(j){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1}render(){let t=this.checked||this.indeterminate?C`
|
1918
1918
|
<mdc-icon
|
1919
1919
|
class="icon"
|
1920
1920
|
name="${this.indeterminate?jn.INDETERMINATE:jn.CHECKED}"
|
@@ -1922,7 +1922,7 @@
|
|
1922
1922
|
length-unit="rem"
|
1923
1923
|
></mdc-icon>
|
1924
1924
|
`:W;return C`<slot></slot>
|
1925
|
-
<div part="icon-container">${t}</div>`}};
|
1925
|
+
<div part="icon-container">${t}</div>`}};Jo.styles=[...j.styles,...Rm],p([g({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],Jo.prototype,"indeterminate",2);var Fc=Jo;Fc.register(Om);var Jb=Fc;Dc.register(Nm);var ty=Dc;var ey=G`
|
1926
1926
|
:host {
|
1927
1927
|
cursor: pointer;
|
1928
1928
|
user-select: none;
|
@@ -1975,7 +1975,7 @@
|
|
1975
1975
|
:host([disabled])::part(image) {
|
1976
1976
|
opacity: 0.5;
|
1977
1977
|
}
|
1978
|
-
`,
|
1978
|
+
`,Pm=[ey,...At()];var ts=class extends $t(qe(pr)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.toggleOnEnter.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(o=>{o.checked=!1}),this.checked=!0}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,o){t[o].focus(),t[o].toggleChecked()}toggleOnEnter(t){if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(m=>!m.disabled),h=a.indexOf(this);if(["ArrowDown","ArrowRight"].includes(t.key)){let m=(h+1)%a.length;this.updateCardRadio(a,m)}else if(["ArrowUp","ArrowLeft"].includes(t.key)){let m=(h-1+a.length)%a.length;this.updateCardRadio(a,m)}t.key===J.ENTER&&this.toggleChecked()}toggleOnSpace(t){t.key===J.SPACE&&this.toggleChecked()}renderHeader(){return this.cardTitle?C`<div part="header">
|
1979
1979
|
${this.renderIcon()} ${this.renderTitle()}
|
1980
1980
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
1981
1981
|
</div>`:W}render(){return C`
|
@@ -1986,7 +1986,7 @@
|
|
1986
1986
|
<slot name="body"></slot>
|
1987
1987
|
<slot name="after-body"></slot>
|
1988
1988
|
</div>
|
1989
|
-
`}};
|
1989
|
+
`}};ts.styles=[...pr.styles,...Pm],p([g({type:Boolean,reflect:!0})],ts.prototype,"checked",2),p([g({type:String})],ts.prototype,"name",2);var $c=ts;var qn=Y.constructTagName("cardradio");var ry=[G`
|
1990
1990
|
:host {
|
1991
1991
|
display: block;
|
1992
1992
|
position: relative;
|
@@ -2069,8 +2069,18 @@
|
|
2069
2069
|
:host([readonly][checked]) .icon:after {
|
2070
2070
|
background-color: var(--mdc-staticradio-text-disabled-color);
|
2071
2071
|
}
|
2072
|
-
`],
|
2073
|
-
<span part="radio-icon" class="icon"></span>`}};ts.styles=[...j.styles,...Pm],p([g({type:Boolean,reflect:!0})],ts.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],ts.prototype,"readonly",2);var $c=ts;var Dm=Y.constructTagName("staticradio");$c.register(Dm);var ry=$c;Fc.register(qn);var iy=Fc;var wr=Math.min,be=Math.max,la=Math.round,ca=Math.floor,mr=l=>({x:l,y:l}),oy={left:"right",right:"left",bottom:"top",top:"bottom"},sy={start:"end",end:"start"};function Xn(l,i,t){return be(l,wr(i,t))}function Qi(l,i){return typeof l=="function"?l(i):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 ay=new Set(["top","bottom"]);function Nr(l){return ay.has(Zr(l))?"y":"x"}function Qn(l){return zc(Nr(l))}function zm(l,i,t){t===void 0&&(t=!1);let o=Ji(l),a=Qn(l),h=Zn(a),u=a==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return i.reference[h]>i.floating[h]&&(u=na(u)),[u,na(u)]}function Vm(l){let i=na(l);return[Kn(l),i,Kn(i)]}function Kn(l){return l.replace(/start|end/g,i=>sy[i])}var Fm=["left","right"],$m=["right","left"],ny=["top","bottom"],ly=["bottom","top"];function cy(l,i,t){switch(l){case"top":case"bottom":return t?i?$m:Fm:i?Fm:$m;case"left":case"right":return i?ny:ly;default:return[]}}function Bm(l,i,t,o){let a=Ji(l),h=cy(Zr(l),t==="start",o);return a&&(h=h.map(u=>u+"-"+a),i&&(h=h.concat(h.map(Kn)))),h}function na(l){return l.replace(/left|right|bottom|top/g,i=>oy[i])}function dy(l){return{top:0,right:0,bottom:0,left:0,...l}}function Vc(l){return typeof l!="number"?dy(l):{top:l,right:l,bottom:l,left:l}}function to(l){let{x:i,y:t,width:o,height:a}=l;return{width:o,height:a,top:t,left:i,right:i+o,bottom:t+a,x:i,y:t}}function Um(l,i,t){let{reference:o,floating:a}=l,h=Nr(i),u=Qn(i),T=Zn(u),N=Zr(i),$=h==="y",q=o.x+o.width/2-a.width/2,K=o.y+o.height/2-a.height/2,nt=o[T]/2-a[T]/2,Q;switch(N){case"top":Q={x:q,y:o.y-a.height};break;case"bottom":Q={x:q,y:o.y+o.height};break;case"right":Q={x:o.x+o.width,y:K};break;case"left":Q={x:o.x-a.width,y:K};break;default:Q={x:o.x,y:o.y}}switch(Ji(i)){case"start":Q[u]-=nt*(t&&$?-1:1);break;case"end":Q[u]+=nt*(t&&$?-1:1);break}return Q}var Hm=async(l,i,t)=>{let{placement:o="bottom",strategy:a="absolute",middleware:h=[],platform:u}=t,T=h.filter(Boolean),N=await(u.isRTL==null?void 0:u.isRTL(i)),$=await u.getElementRects({reference:l,floating:i,strategy:a}),{x:q,y:K}=Um($,o,N),nt=o,Q={},rt=0;for(let dt=0;dt<T.length;dt++){let{name:ut,fn:Tt}=T[dt],{x:St,y:Ct,data:Ht,reset:Dt}=await Tt({x:q,y:K,initialPlacement:o,placement:nt,strategy:a,middlewareData:Q,rects:$,platform:u,elements:{reference:l,floating:i}});q=St!=null?St:q,K=Ct!=null?Ct:K,Q={...Q,[ut]:{...Q[ut],...Ht}},Dt&&rt<=50&&(rt++,typeof Dt=="object"&&(Dt.placement&&(nt=Dt.placement),Dt.rects&&($=Dt.rects===!0?await u.getElementRects({reference:l,floating:i,strategy:a}):Dt.rects),{x:q,y:K}=Um($,nt,N)),dt=-1)}return{x:q,y:K,placement:nt,strategy:a,middlewareData:Q}};async function Jn(l,i){var t;i===void 0&&(i={});let{x:o,y:a,platform:h,rects:u,elements:T,strategy:N}=l,{boundary:$="clippingAncestors",rootBoundary:q="viewport",elementContext:K="floating",altBoundary:nt=!1,padding:Q=0}=Qi(i,l),rt=Vc(Q),ut=T[nt?K==="floating"?"reference":"floating":K],Tt=to(await h.getClippingRect({element:(t=await(h.isElement==null?void 0:h.isElement(ut)))==null||t?ut:ut.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(T.floating)),boundary:$,rootBoundary:q,strategy:N})),St=K==="floating"?{x:o,y:a,width:u.floating.width,height:u.floating.height}:u.reference,Ct=await(h.getOffsetParent==null?void 0:h.getOffsetParent(T.floating)),Ht=await(h.isElement==null?void 0:h.isElement(Ct))?await(h.getScale==null?void 0:h.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Dt=to(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:T,rect:St,offsetParent:Ct,strategy:N}):St);return{top:(Tt.top-Dt.top+rt.top)/Ht.y,bottom:(Dt.bottom-Tt.bottom+rt.bottom)/Ht.y,left:(Tt.left-Dt.left+rt.left)/Ht.x,right:(Dt.right-Tt.right+rt.right)/Ht.x}}var Gm=l=>({name:"arrow",options:l,async fn(i){let{x:t,y:o,placement:a,rects:h,platform:u,elements:T,middlewareData:N}=i,{element:$,padding:q=0}=Qi(l,i)||{};if($==null)return{};let K=Vc(q),nt={x:t,y:o},Q=Qn(a),rt=Zn(Q),dt=await u.getDimensions($),ut=Q==="y",Tt=ut?"top":"left",St=ut?"bottom":"right",Ct=ut?"clientHeight":"clientWidth",Ht=h.reference[rt]+h.reference[Q]-nt[Q]-h.floating[rt],Dt=nt[Q]-h.reference[Q],zt=await(u.getOffsetParent==null?void 0:u.getOffsetParent($)),Wt=zt?zt[Ct]:0;(!Wt||!await(u.isElement==null?void 0:u.isElement(zt)))&&(Wt=T.floating[Ct]||h.floating[rt]);let ie=Ht/2-Dt/2,or=Wt/2-dt[rt]/2-1,Se=wr(K[Tt],or),Ve=wr(K[St],or),sr=Se,ar=Wt-dt[rt]-Ve,It=Wt/2-dt[rt]/2+ie,le=Xn(sr,It,ar),Be=!N.arrow&&Ji(a)!=null&&It!==le&&h.reference[rt]/2-(It<sr?Se:Ve)-dt[rt]/2<0,Ue=Be?It<sr?It-sr:It-ar:0;return{[Q]:nt[Q]+Ue,data:{[Q]:le,centerOffset:It-le-Ue,...Be&&{alignmentOffset:Ue}},reset:Be}}});var Ym=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var t,o;let{placement:a,middlewareData:h,rects:u,initialPlacement:T,platform:N,elements:$}=i,{mainAxis:q=!0,crossAxis:K=!0,fallbackPlacements:nt,fallbackStrategy:Q="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:dt=!0,...ut}=Qi(l,i);if((t=h.arrow)!=null&&t.alignmentOffset)return{};let Tt=Zr(a),St=Nr(T),Ct=Zr(T)===T,Ht=await(N.isRTL==null?void 0:N.isRTL($.floating)),Dt=nt||(Ct||!dt?[na(T)]:Vm(T)),zt=rt!=="none";!nt&&zt&&Dt.push(...Bm(T,dt,rt,Ht));let Wt=[T,...Dt],ie=await Jn(i,ut),or=[],Se=((o=h.flip)==null?void 0:o.overflows)||[];if(q&&or.push(ie[Tt]),K){let It=zm(a,u,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=Wt[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 hy=new Set(["left","top"]);async function py(l,i){let{placement:t,platform:o,elements:a}=l,h=await(o.isRTL==null?void 0:o.isRTL(a.floating)),u=Zr(t),T=Ji(t),N=Nr(t)==="y",$=hy.has(u)?-1:1,q=h&&N?-1:1,K=Qi(i,l),{mainAxis:nt,crossAxis:Q,alignmentAxis:rt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return T&&typeof rt=="number"&&(Q=T==="end"?rt*-1:rt),N?{x:Q*q,y:nt*$}:{x:nt*$,y:Q*q}}var Wm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var t,o;let{x:a,y:h,placement:u,middlewareData:T}=i,N=await py(i,l);return u===((t=T.offset)==null?void 0:t.placement)&&(o=T.arrow)!=null&&o.alignmentOffset?{}:{x:a+N.x,y:h+N.y,data:{...N,placement:u}}}}},jm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){let{x:t,y:o,placement:a}=i,{mainAxis:h=!0,crossAxis:u=!1,limiter:T={fn:ut=>{let{x:Tt,y:St}=ut;return{x:Tt,y:St}}},...N}=Qi(l,i),$={x:t,y:o},q=await Jn(i,N),K=Nr(Zr(a)),nt=zc(K),Q=$[nt],rt=$[K];if(h){let ut=nt==="y"?"top":"left",Tt=nt==="y"?"bottom":"right",St=Q+q[ut],Ct=Q-q[Tt];Q=Xn(St,Q,Ct)}if(u){let ut=K==="y"?"top":"left",Tt=K==="y"?"bottom":"right",St=rt+q[ut],Ct=rt-q[Tt];rt=Xn(St,rt,Ct)}let dt=T.fn({...i,[nt]:Q,[K]:rt});return{...dt,data:{x:dt.x-t,y:dt.y-o,enabled:{[nt]:h,[K]:u}}}}}};var qm=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var t,o;let{placement:a,rects:h,platform:u,elements:T}=i,{apply:N=()=>{},...$}=Qi(l,i),q=await Jn(i,$),K=Zr(a),nt=Ji(a),Q=Nr(a)==="y",{width:rt,height:dt}=h.floating,ut,Tt;K==="top"||K==="bottom"?(ut=K,Tt=nt===(await(u.isRTL==null?void 0:u.isRTL(T.floating))?"start":"end")?"left":"right"):(Tt=K,ut=nt==="end"?"top":"bottom");let St=dt-q.top-q.bottom,Ct=rt-q.left-q.right,Ht=wr(dt-q[ut],St),Dt=wr(rt-q[Tt],Ct),zt=!i.middlewareData.shift,Wt=Ht,ie=Dt;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ie=Ct),(o=i.middlewareData.shift)!=null&&o.enabled.y&&(Wt=St),zt&&!nt){let 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)):Wt=dt-2*(sr!==0||ar!==0?sr+ar:be(q.top,q.bottom))}await N({...i,availableWidth:ie,availableHeight:Wt});let or=await u.getDimensions(T.floating);return rt!==or.width||dt!==or.height?{reset:{rects:!0}}:{}}}};function tl(){return typeof window<"u"}function eo(l){return Xm(l)?(l.nodeName||"").toLowerCase():"#document"}function Re(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function ur(l){var i;return(i=(Xm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function Xm(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 Km(l){return!tl()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Re(l).ShadowRoot}var my=new Set(["inline","contents"]);function rs(l){let{overflow:i,overflowX:t,overflowY:o,display:a}=Ze(l);return/auto|scroll|overlay|hidden|clip/.test(i+o+t)&&!my.has(a)}var uy=new Set(["table","td","th"]);function Zm(l){return uy.has(eo(l))}var fy=[":popover-open",":modal"];function da(l){return fy.some(i=>{try{return l.matches(i)}catch{return!1}})}var vy=["transform","translate","scale","rotate","perspective"],gy=["transform","translate","scale","rotate","perspective","filter"],by=["paint","layout","strict","content"];function el(l){let i=rl(),t=Xe(l)?Ze(l):l;return vy.some(o=>t[o]?t[o]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||gy.some(o=>(t.willChange||"").includes(o))||by.some(o=>(t.contain||"").includes(o))}function Qm(l){let i=Qr(l);for(;fr(i)&&!ro(i);){if(el(i))return i;if(da(i))return null;i=Qr(i)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var yy=new Set(["html","body","#document"]);function ro(l){return yy.has(eo(l))}function Ze(l){return Re(l).getComputedStyle(l)}function ha(l){return Xe(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Qr(l){if(eo(l)==="html")return l;let i=l.assignedSlot||l.parentNode||Km(l)&&l.host||ur(l);return Km(i)?i.host:i}function Jm(l){let i=Qr(l);return ro(i)?l.ownerDocument?l.ownerDocument.body:l.body:fr(i)&&rs(i)?i:Jm(i)}function es(l,i,t){var o;i===void 0&&(i=[]),t===void 0&&(t=!0);let a=Jm(l),h=a===((o=l.ownerDocument)==null?void 0:o.body),u=Re(a);if(h){let T=il(u);return i.concat(u,u.visualViewport||[],rs(a)?a:[],T&&t?es(T):[])}return i.concat(a,es(a,[],t))}function il(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function ru(l){let i=Ze(l),t=parseFloat(i.width)||0,o=parseFloat(i.height)||0,a=fr(l),h=a?l.offsetWidth:t,u=a?l.offsetHeight:o,T=la(t)!==h||la(o)!==u;return T&&(t=h,o=u),{width:t,height:o,$:T}}function Uc(l){return Xe(l)?l:l.contextElement}function is(l){let i=Uc(l);if(!fr(i))return mr(1);let t=i.getBoundingClientRect(),{width:o,height:a,$:h}=ru(i),u=(h?la(t.width):t.width)/o,T=(h?la(t.height):t.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!T||!Number.isFinite(T))&&(T=1),{x:u,y:T}}var Ey=mr(0);function iu(l){let i=Re(l);return!rl()||!i.visualViewport?Ey:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Ty(l,i,t){return i===void 0&&(i=!1),!t||i&&t!==Re(l)?!1:i}function io(l,i,t,o){i===void 0&&(i=!1),t===void 0&&(t=!1);let a=l.getBoundingClientRect(),h=Uc(l),u=mr(1);i&&(o?Xe(o)&&(u=is(o)):u=is(l));let T=Ty(h,t,o)?iu(h):mr(0),N=(a.left+T.x)/u.x,$=(a.top+T.y)/u.y,q=a.width/u.x,K=a.height/u.y;if(h){let nt=Re(h),Q=o&&Xe(o)?Re(o):o,rt=nt,dt=il(rt);for(;dt&&o&&Q!==rt;){let ut=is(dt),Tt=dt.getBoundingClientRect(),St=Ze(dt),Ct=Tt.left+(dt.clientLeft+parseFloat(St.paddingLeft))*ut.x,Ht=Tt.top+(dt.clientTop+parseFloat(St.paddingTop))*ut.y;N*=ut.x,$*=ut.y,q*=ut.x,K*=ut.y,N+=Ct,$+=Ht,rt=Re(dt),dt=il(rt)}}return to({width:q,height:K,x:N,y:$})}function Hc(l,i){let t=ha(l).scrollLeft;return i?i.left+t:io(ur(l)).left+t}function ou(l,i,t){t===void 0&&(t=!1);let o=l.getBoundingClientRect(),a=o.left+i.scrollLeft-(t?0:Hc(l,o)),h=o.top+i.scrollTop;return{x:a,y:h}}function xy(l){let{elements:i,rect:t,offsetParent:o,strategy:a}=l,h=a==="fixed",u=ur(o),T=i?da(i.floating):!1;if(o===u||T&&h)return t;let N={scrollLeft:0,scrollTop:0},$=mr(1),q=mr(0),K=fr(o);if((K||!K&&!h)&&((eo(o)!=="body"||rs(u))&&(N=ha(o)),fr(o))){let Q=io(o);$=is(o),q.x=Q.x+o.clientLeft,q.y=Q.y+o.clientTop}let nt=u&&!K&&!h?ou(u,N,!0):mr(0);return{width:t.width*$.x,height:t.height*$.y,x:t.x*$.x-N.scrollLeft*$.x+q.x+nt.x,y:t.y*$.y-N.scrollTop*$.y+q.y+nt.y}}function Ay(l){return Array.from(l.getClientRects())}function Sy(l){let i=ur(l),t=ha(l),o=l.ownerDocument.body,a=be(i.scrollWidth,i.clientWidth,o.scrollWidth,o.clientWidth),h=be(i.scrollHeight,i.clientHeight,o.scrollHeight,o.clientHeight),u=-t.scrollLeft+Hc(l),T=-t.scrollTop;return Ze(o).direction==="rtl"&&(u+=be(i.clientWidth,o.clientWidth)-a),{width:a,height:h,x:u,y:T}}function _y(l,i){let t=Re(l),o=ur(l),a=t.visualViewport,h=o.clientWidth,u=o.clientHeight,T=0,N=0;if(a){h=a.width,u=a.height;let $=rl();(!$||$&&i==="fixed")&&(T=a.offsetLeft,N=a.offsetTop)}return{width:h,height:u,x:T,y:N}}var Iy=new Set(["absolute","fixed"]);function ky(l,i){let t=io(l,!0,i==="fixed"),o=t.top+l.clientTop,a=t.left+l.clientLeft,h=fr(l)?is(l):mr(1),u=l.clientWidth*h.x,T=l.clientHeight*h.y,N=a*h.x,$=o*h.y;return{width:u,height:T,x:N,y:$}}function tu(l,i,t){let o;if(i==="viewport")o=_y(l,t);else if(i==="document")o=Sy(ur(l));else if(Xe(i))o=ky(i,t);else{let a=iu(l);o={x:i.x-a.x,y:i.y-a.y,width:i.width,height:i.height}}return to(o)}function su(l,i){let t=Qr(l);return t===i||!Xe(t)||ro(t)?!1:Ze(t).position==="fixed"||su(t,i)}function Cy(l,i){let t=i.get(l);if(t)return t;let o=es(l,[],!1).filter(T=>Xe(T)&&eo(T)!=="body"),a=null,h=Ze(l).position==="fixed",u=h?Qr(l):l;for(;Xe(u)&&!ro(u);){let T=Ze(u),N=el(u);!N&&T.position==="fixed"&&(a=null),(h?!N&&!a:!N&&T.position==="static"&&!!a&&Iy.has(a.position)||rs(u)&&!N&&su(l,u))?o=o.filter(q=>q!==u):a=T,u=Qr(u)}return i.set(l,o),o}function wy(l){let{element:i,boundary:t,rootBoundary:o,strategy:a}=l,u=[...t==="clippingAncestors"?da(i)?[]:Cy(i,this._c):[].concat(t),o],T=u[0],N=u.reduce(($,q)=>{let K=tu(i,q,a);return $.top=be(K.top,$.top),$.right=wr(K.right,$.right),$.bottom=wr(K.bottom,$.bottom),$.left=be(K.left,$.left),$},tu(i,T,a));return{width:N.right-N.left,height:N.bottom-N.top,x:N.left,y:N.top}}function Ny(l){let{width:i,height:t}=ru(l);return{width:i,height:t}}function Ly(l,i,t){let o=fr(i),a=ur(i),h=t==="fixed",u=io(l,!0,h,i),T={scrollLeft:0,scrollTop:0},N=mr(0);function $(){N.x=Hc(a)}if(o||!o&&!h)if((eo(i)!=="body"||rs(a))&&(T=ha(i)),o){let Q=io(i,!0,h,i);N.x=Q.x+i.clientLeft,N.y=Q.y+i.clientTop}else a&&$();h&&!o&&a&&$();let q=a&&!o&&!h?ou(a,T):mr(0),K=u.left+T.scrollLeft-N.x-q.x,nt=u.top+T.scrollTop-N.y-q.y;return{x:K,y:nt,width:u.width,height:u.height}}function Bc(l){return Ze(l).position==="static"}function eu(l,i){if(!fr(l)||Ze(l).position==="fixed")return null;if(i)return i(l);let t=l.offsetParent;return ur(l)===t&&(t=t.ownerDocument.body),t}function au(l,i){let t=Re(l);if(da(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 o=eu(l,i);for(;o&&Zm(o)&&Bc(o);)o=eu(o,i);return o&&ro(o)&&Bc(o)&&!el(o)?t:o||Qm(l)||t}var Ry=async function(l){let i=this.getOffsetParent||au,t=this.getDimensions,o=await t(l.floating);return{reference:Ly(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function My(l){return Ze(l).direction==="rtl"}var Oy={convertOffsetParentRelativeRectToViewportRelativeRect:xy,getDocumentElement:ur,getClippingRect:wy,getOffsetParent:au,getElementRects:Ry,getClientRects:Ay,getDimensions:Ny,getScale:is,isElement:Xe,isRTL:My};function nu(l,i){return l.x===i.x&&l.y===i.y&&l.width===i.width&&l.height===i.height}function Py(l,i){let t=null,o,a=ur(l);function h(){var T;clearTimeout(o),(T=t)==null||T.disconnect(),t=null}function u(T,N){T===void 0&&(T=!1),N===void 0&&(N=1),h();let $=l.getBoundingClientRect(),{left:q,top:K,width:nt,height:Q}=$;if(T||i(),!nt||!Q)return;let rt=ca(K),dt=ca(a.clientWidth-(q+nt)),ut=ca(a.clientHeight-(K+Q)),Tt=ca(q),Ct={rootMargin:-rt+"px "+-dt+"px "+-ut+"px "+-Tt+"px",threshold:be(0,wr(1,N))||1},Ht=!0;function Dt(zt){let Wt=zt[0].intersectionRatio;if(Wt!==N){if(!Ht)return u();Wt?u(!1,Wt):o=setTimeout(()=>{u(!1,1e-7)},1e3)}Wt===1&&!nu($,l.getBoundingClientRect())&&u(),Ht=!1}try{t=new IntersectionObserver(Dt,{...Ct,root:a.ownerDocument})}catch{t=new IntersectionObserver(Dt,Ct)}t.observe(l)}return u(!0),h}function lu(l,i,t,o){o===void 0&&(o={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:T=typeof IntersectionObserver=="function",animationFrame:N=!1}=o,$=Uc(l),q=a||h?[...$?es($):[],...es(i)]:[];q.forEach(Tt=>{a&&Tt.addEventListener("scroll",t,{passive:!0}),h&&Tt.addEventListener("resize",t)});let K=$&&T?Py($,t):null,nt=-1,Q=null;u&&(Q=new ResizeObserver(Tt=>{let[St]=Tt;St&&St.target===$&&Q&&(Q.unobserve(i),cancelAnimationFrame(nt),nt=requestAnimationFrame(()=>{var Ct;(Ct=Q)==null||Ct.observe(i)})),t()}),$&&!N&&Q.observe($),Q.observe(i));let rt,dt=N?io(l):null;N&&ut();function ut(){let Tt=io(l);dt&&!nu(dt,Tt)&&t(),dt=Tt,rt=requestAnimationFrame(ut)}return t(),()=>{var Tt;q.forEach(St=>{a&&St.removeEventListener("scroll",t),h&&St.removeEventListener("resize",t)}),K==null||K(),(Tt=Q)==null||Tt.disconnect(),Q=null,N&&cancelAnimationFrame(rt)}}var cu=Wm;var du=jm,hu=Ym,pu=qm;var mu=Gm;var uu=(l,i,t)=>{let o=new Map,a={platform:Oy,...t},h={...a.platform,_c:o};return Hm(l,i,{...a,platform:h})};var os=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};os.stack=new Set,os.currentKeydownListener=null;var ol=l=>{class i extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(a){this.isFocusTrapActivated=a}activateFocusTrap(){this.setIsFocusTrapActivated(!0),os.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),os.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:u}=a.getBoundingClientRect(),{offsetWidth:T,offsetHeight:N}=a;return T+N+u+h===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:h,opacity:u,visibility:T}=a.style;return h==="none"||u==="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 u=[];return a.children.length?u=Array.from(a.children):a instanceof HTMLElement&&a.shadowRoot&&(u=Array.from(a.shadowRoot.children)),u.forEach(T=>{let N=T;this.isFocusable(N)&&h.add(N),N.shadowRoot?this.findFocusable(N.shadowRoot,h):N.tagName==="SLOT"?N.assignedElements({flatten:!0}).forEach(q=>{q instanceof HTMLElement&&this.findFocusable(q,h)}):this.findFocusable(N,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus({preventScroll:!0}))}calculateNextIndex(a,h){let{length:u}=this.focusableElements;if(a===-1)return h>0?0:u-1;let T=a+h;return this.shouldFocusTrapWrap?(T<0&&(T=u-1),T>=u&&(T=0)):(T<0&&(T=0),T>=u&&(T=u-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(),u=this.findElement(h);a.shiftKey?this.focusTrapIndex=this.calculateNextIndex(u,-1):this.focusTrapIndex=this.calculateNextIndex(u,1);let N=this.focusableElements[this.focusTrapIndex];N.tagName!=="IFRAME"&&N&&(a.preventDefault(),N.focus())}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&this.trapFocus(a)}}return p([g({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var sl=l=>{class i extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var fu=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"},kt={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,STRATEGY:"absolute"};var Jr=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var Gc=class{constructor(){this.stack=[]}push(i){this.stack.push(i)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(i){this.stack=this.stack.filter(t=>t!==i)}has(i){return this.stack.includes(i)}clear(){this.stack=[]}},ye=new Gc;var Dy=G`
|
2072
|
+
`],Dm=ry;var es=class extends $t(j){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return C` <slot></slot>
|
2073
|
+
<span part="radio-icon" class="icon"></span>`}};es.styles=[...j.styles,...Dm],p([g({type:Boolean,reflect:!0})],es.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],es.prototype,"readonly",2);var zc=es;var Fm=Y.constructTagName("staticradio");zc.register(Fm);var iy=zc;$c.register(qn);var oy=$c;var wr=Math.min,ye=Math.max,la=Math.round,ca=Math.floor,mr=l=>({x:l,y:l}),sy={left:"right",right:"left",bottom:"top",top:"bottom"},ay={start:"end",end:"start"};function Xn(l,i,t){return ye(l,wr(i,t))}function Ji(l,i){return typeof l=="function"?l(i):l}function Zr(l){return l.split("-")[0]}function to(l){return l.split("-")[1]}function Vc(l){return l==="x"?"y":"x"}function Zn(l){return l==="y"?"height":"width"}var ny=new Set(["top","bottom"]);function Nr(l){return ny.has(Zr(l))?"y":"x"}function Qn(l){return Vc(Nr(l))}function Vm(l,i,t){t===void 0&&(t=!1);let o=to(l),a=Qn(l),h=Zn(a),m=a==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return i.reference[h]>i.floating[h]&&(m=na(m)),[m,na(m)]}function Bm(l){let i=na(l);return[Kn(l),i,Kn(i)]}function Kn(l){return l.replace(/start|end/g,i=>ay[i])}var $m=["left","right"],zm=["right","left"],ly=["top","bottom"],cy=["bottom","top"];function dy(l,i,t){switch(l){case"top":case"bottom":return t?i?zm:$m:i?$m:zm;case"left":case"right":return i?ly:cy;default:return[]}}function Um(l,i,t,o){let a=to(l),h=dy(Zr(l),t==="start",o);return a&&(h=h.map(m=>m+"-"+a),i&&(h=h.concat(h.map(Kn)))),h}function na(l){return l.replace(/left|right|bottom|top/g,i=>sy[i])}function hy(l){return{top:0,right:0,bottom:0,left:0,...l}}function Bc(l){return typeof l!="number"?hy(l):{top:l,right:l,bottom:l,left:l}}function eo(l){let{x:i,y:t,width:o,height:a}=l;return{width:o,height:a,top:t,left:i,right:i+o,bottom:t+a,x:i,y:t}}function Hm(l,i,t){let{reference:o,floating:a}=l,h=Nr(i),m=Qn(i),T=Zn(m),N=Zr(i),$=h==="y",q=o.x+o.width/2-a.width/2,K=o.y+o.height/2-a.height/2,nt=o[T]/2-a[T]/2,Q;switch(N){case"top":Q={x:q,y:o.y-a.height};break;case"bottom":Q={x:q,y:o.y+o.height};break;case"right":Q={x:o.x+o.width,y:K};break;case"left":Q={x:o.x-a.width,y:K};break;default:Q={x:o.x,y:o.y}}switch(to(i)){case"start":Q[m]-=nt*(t&&$?-1:1);break;case"end":Q[m]+=nt*(t&&$?-1:1);break}return Q}var Gm=async(l,i,t)=>{let{placement:o="bottom",strategy:a="absolute",middleware:h=[],platform:m}=t,T=h.filter(Boolean),N=await(m.isRTL==null?void 0:m.isRTL(i)),$=await m.getElementRects({reference:l,floating:i,strategy:a}),{x:q,y:K}=Hm($,o,N),nt=o,Q={},rt=0;for(let dt=0;dt<T.length;dt++){let{name:ut,fn:Tt}=T[dt],{x:St,y:Ct,data:Ht,reset:Dt}=await Tt({x:q,y:K,initialPlacement:o,placement:nt,strategy:a,middlewareData:Q,rects:$,platform:m,elements:{reference:l,floating:i}});q=St!=null?St:q,K=Ct!=null?Ct:K,Q={...Q,[ut]:{...Q[ut],...Ht}},Dt&&rt<=50&&(rt++,typeof Dt=="object"&&(Dt.placement&&(nt=Dt.placement),Dt.rects&&($=Dt.rects===!0?await m.getElementRects({reference:l,floating:i,strategy:a}):Dt.rects),{x:q,y:K}=Hm($,nt,N)),dt=-1)}return{x:q,y:K,placement:nt,strategy:a,middlewareData:Q}};async function Jn(l,i){var t;i===void 0&&(i={});let{x:o,y:a,platform:h,rects:m,elements:T,strategy:N}=l,{boundary:$="clippingAncestors",rootBoundary:q="viewport",elementContext:K="floating",altBoundary:nt=!1,padding:Q=0}=Ji(i,l),rt=Bc(Q),ut=T[nt?K==="floating"?"reference":"floating":K],Tt=eo(await h.getClippingRect({element:(t=await(h.isElement==null?void 0:h.isElement(ut)))==null||t?ut:ut.contextElement||await(h.getDocumentElement==null?void 0:h.getDocumentElement(T.floating)),boundary:$,rootBoundary:q,strategy:N})),St=K==="floating"?{x:o,y:a,width:m.floating.width,height:m.floating.height}:m.reference,Ct=await(h.getOffsetParent==null?void 0:h.getOffsetParent(T.floating)),Ht=await(h.isElement==null?void 0:h.isElement(Ct))?await(h.getScale==null?void 0:h.getScale(Ct))||{x:1,y:1}:{x:1,y:1},Dt=eo(h.convertOffsetParentRelativeRectToViewportRelativeRect?await h.convertOffsetParentRelativeRectToViewportRelativeRect({elements:T,rect:St,offsetParent:Ct,strategy:N}):St);return{top:(Tt.top-Dt.top+rt.top)/Ht.y,bottom:(Dt.bottom-Tt.bottom+rt.bottom)/Ht.y,left:(Tt.left-Dt.left+rt.left)/Ht.x,right:(Dt.right-Tt.right+rt.right)/Ht.x}}var Ym=l=>({name:"arrow",options:l,async fn(i){let{x:t,y:o,placement:a,rects:h,platform:m,elements:T,middlewareData:N}=i,{element:$,padding:q=0}=Ji(l,i)||{};if($==null)return{};let K=Bc(q),nt={x:t,y:o},Q=Qn(a),rt=Zn(Q),dt=await m.getDimensions($),ut=Q==="y",Tt=ut?"top":"left",St=ut?"bottom":"right",Ct=ut?"clientHeight":"clientWidth",Ht=h.reference[rt]+h.reference[Q]-nt[Q]-h.floating[rt],Dt=nt[Q]-h.reference[Q],zt=await(m.getOffsetParent==null?void 0:m.getOffsetParent($)),Wt=zt?zt[Ct]:0;(!Wt||!await(m.isElement==null?void 0:m.isElement(zt)))&&(Wt=T.floating[Ct]||h.floating[rt]);let ie=Ht/2-Dt/2,or=Wt/2-dt[rt]/2-1,_e=wr(K[Tt],or),Ve=wr(K[St],or),sr=_e,ar=Wt-dt[rt]-Ve,It=Wt/2-dt[rt]/2+ie,le=Xn(sr,It,ar),Be=!N.arrow&&to(a)!=null&&It!==le&&h.reference[rt]/2-(It<sr?_e:Ve)-dt[rt]/2<0,Ue=Be?It<sr?It-sr:It-ar:0;return{[Q]:nt[Q]+Ue,data:{[Q]:le,centerOffset:It-le-Ue,...Be&&{alignmentOffset:Ue}},reset:Be}}});var Wm=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var t,o;let{placement:a,middlewareData:h,rects:m,initialPlacement:T,platform:N,elements:$}=i,{mainAxis:q=!0,crossAxis:K=!0,fallbackPlacements:nt,fallbackStrategy:Q="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:dt=!0,...ut}=Ji(l,i);if((t=h.arrow)!=null&&t.alignmentOffset)return{};let Tt=Zr(a),St=Nr(T),Ct=Zr(T)===T,Ht=await(N.isRTL==null?void 0:N.isRTL($.floating)),Dt=nt||(Ct||!dt?[na(T)]:Bm(T)),zt=rt!=="none";!nt&&zt&&Dt.push(...Um(T,dt,rt,Ht));let Wt=[T,...Dt],ie=await Jn(i,ut),or=[],_e=((o=h.flip)==null?void 0:o.overflows)||[];if(q&&or.push(ie[Tt]),K){let It=Vm(a,m,Ht);or.push(ie[It[0]],ie[It[1]])}if(_e=[..._e,{placement:a,overflows:or}],!or.every(It=>It<=0)){var Ve,sr;let It=(((Ve=h.flip)==null?void 0:Ve.index)||0)+1,le=Wt[It];if(le&&(!(K==="alignment"?St!==Nr(le):!1)||_e.every(He=>He.overflows[0]>0&&Nr(He.placement)===St)))return{data:{index:It,overflows:_e},reset:{placement:le}};let Be=(sr=_e.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,He)=>Ue.overflows[1]-He.overflows[1])[0])==null?void 0:sr.placement;if(!Be)switch(Q){case"bestFit":{var ar;let Ue=(ar=_e.filter(He=>{if(zt){let Ge=Nr(He.placement);return Ge===St||Ge==="y"}return!0}).map(He=>[He.placement,He.overflows.filter(Ge=>Ge>0).reduce((Ge,za)=>Ge+za,0)]).sort((He,Ge)=>He[1]-Ge[1])[0])==null?void 0:ar[0];Ue&&(Be=Ue);break}case"initialPlacement":Be=T;break}if(a!==Be)return{reset:{placement:Be}}}return{}}}};var py=new Set(["left","top"]);async function my(l,i){let{placement:t,platform:o,elements:a}=l,h=await(o.isRTL==null?void 0:o.isRTL(a.floating)),m=Zr(t),T=to(t),N=Nr(t)==="y",$=py.has(m)?-1:1,q=h&&N?-1:1,K=Ji(i,l),{mainAxis:nt,crossAxis:Q,alignmentAxis:rt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return T&&typeof rt=="number"&&(Q=T==="end"?rt*-1:rt),N?{x:Q*q,y:nt*$}:{x:nt*$,y:Q*q}}var jm=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var t,o;let{x:a,y:h,placement:m,middlewareData:T}=i,N=await my(i,l);return m===((t=T.offset)==null?void 0:t.placement)&&(o=T.arrow)!=null&&o.alignmentOffset?{}:{x:a+N.x,y:h+N.y,data:{...N,placement:m}}}}},qm=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){let{x:t,y:o,placement:a}=i,{mainAxis:h=!0,crossAxis:m=!1,limiter:T={fn:ut=>{let{x:Tt,y:St}=ut;return{x:Tt,y:St}}},...N}=Ji(l,i),$={x:t,y:o},q=await Jn(i,N),K=Nr(Zr(a)),nt=Vc(K),Q=$[nt],rt=$[K];if(h){let ut=nt==="y"?"top":"left",Tt=nt==="y"?"bottom":"right",St=Q+q[ut],Ct=Q-q[Tt];Q=Xn(St,Q,Ct)}if(m){let ut=K==="y"?"top":"left",Tt=K==="y"?"bottom":"right",St=rt+q[ut],Ct=rt-q[Tt];rt=Xn(St,rt,Ct)}let dt=T.fn({...i,[nt]:Q,[K]:rt});return{...dt,data:{x:dt.x-t,y:dt.y-o,enabled:{[nt]:h,[K]:m}}}}}};var Km=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var t,o;let{placement:a,rects:h,platform:m,elements:T}=i,{apply:N=()=>{},...$}=Ji(l,i),q=await Jn(i,$),K=Zr(a),nt=to(a),Q=Nr(a)==="y",{width:rt,height:dt}=h.floating,ut,Tt;K==="top"||K==="bottom"?(ut=K,Tt=nt===(await(m.isRTL==null?void 0:m.isRTL(T.floating))?"start":"end")?"left":"right"):(Tt=K,ut=nt==="end"?"top":"bottom");let St=dt-q.top-q.bottom,Ct=rt-q.left-q.right,Ht=wr(dt-q[ut],St),Dt=wr(rt-q[Tt],Ct),zt=!i.middlewareData.shift,Wt=Ht,ie=Dt;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ie=Ct),(o=i.middlewareData.shift)!=null&&o.enabled.y&&(Wt=St),zt&&!nt){let _e=ye(q.left,0),Ve=ye(q.right,0),sr=ye(q.top,0),ar=ye(q.bottom,0);Q?ie=rt-2*(_e!==0||Ve!==0?_e+Ve:ye(q.left,q.right)):Wt=dt-2*(sr!==0||ar!==0?sr+ar:ye(q.top,q.bottom))}await N({...i,availableWidth:ie,availableHeight:Wt});let or=await m.getDimensions(T.floating);return rt!==or.width||dt!==or.height?{reset:{rects:!0}}:{}}}};function tl(){return typeof window<"u"}function ro(l){return Zm(l)?(l.nodeName||"").toLowerCase():"#document"}function Me(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function ur(l){var i;return(i=(Zm(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function Zm(l){return tl()?l instanceof Node||l instanceof Me(l).Node:!1}function Xe(l){return tl()?l instanceof Element||l instanceof Me(l).Element:!1}function fr(l){return tl()?l instanceof HTMLElement||l instanceof Me(l).HTMLElement:!1}function Xm(l){return!tl()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Me(l).ShadowRoot}var uy=new Set(["inline","contents"]);function is(l){let{overflow:i,overflowX:t,overflowY:o,display:a}=Ze(l);return/auto|scroll|overlay|hidden|clip/.test(i+o+t)&&!uy.has(a)}var fy=new Set(["table","td","th"]);function Qm(l){return fy.has(ro(l))}var vy=[":popover-open",":modal"];function da(l){return vy.some(i=>{try{return l.matches(i)}catch{return!1}})}var gy=["transform","translate","scale","rotate","perspective"],by=["transform","translate","scale","rotate","perspective","filter"],yy=["paint","layout","strict","content"];function el(l){let i=rl(),t=Xe(l)?Ze(l):l;return gy.some(o=>t[o]?t[o]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||by.some(o=>(t.willChange||"").includes(o))||yy.some(o=>(t.contain||"").includes(o))}function Jm(l){let i=Qr(l);for(;fr(i)&&!io(i);){if(el(i))return i;if(da(i))return null;i=Qr(i)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var Ey=new Set(["html","body","#document"]);function io(l){return Ey.has(ro(l))}function Ze(l){return Me(l).getComputedStyle(l)}function ha(l){return Xe(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Qr(l){if(ro(l)==="html")return l;let i=l.assignedSlot||l.parentNode||Xm(l)&&l.host||ur(l);return Xm(i)?i.host:i}function tu(l){let i=Qr(l);return io(i)?l.ownerDocument?l.ownerDocument.body:l.body:fr(i)&&is(i)?i:tu(i)}function rs(l,i,t){var o;i===void 0&&(i=[]),t===void 0&&(t=!0);let a=tu(l),h=a===((o=l.ownerDocument)==null?void 0:o.body),m=Me(a);if(h){let T=il(m);return i.concat(m,m.visualViewport||[],is(a)?a:[],T&&t?rs(T):[])}return i.concat(a,rs(a,[],t))}function il(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function iu(l){let i=Ze(l),t=parseFloat(i.width)||0,o=parseFloat(i.height)||0,a=fr(l),h=a?l.offsetWidth:t,m=a?l.offsetHeight:o,T=la(t)!==h||la(o)!==m;return T&&(t=h,o=m),{width:t,height:o,$:T}}function Hc(l){return Xe(l)?l:l.contextElement}function os(l){let i=Hc(l);if(!fr(i))return mr(1);let t=i.getBoundingClientRect(),{width:o,height:a,$:h}=iu(i),m=(h?la(t.width):t.width)/o,T=(h?la(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!T||!Number.isFinite(T))&&(T=1),{x:m,y:T}}var Ty=mr(0);function ou(l){let i=Me(l);return!rl()||!i.visualViewport?Ty:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function xy(l,i,t){return i===void 0&&(i=!1),!t||i&&t!==Me(l)?!1:i}function oo(l,i,t,o){i===void 0&&(i=!1),t===void 0&&(t=!1);let a=l.getBoundingClientRect(),h=Hc(l),m=mr(1);i&&(o?Xe(o)&&(m=os(o)):m=os(l));let T=xy(h,t,o)?ou(h):mr(0),N=(a.left+T.x)/m.x,$=(a.top+T.y)/m.y,q=a.width/m.x,K=a.height/m.y;if(h){let nt=Me(h),Q=o&&Xe(o)?Me(o):o,rt=nt,dt=il(rt);for(;dt&&o&&Q!==rt;){let ut=os(dt),Tt=dt.getBoundingClientRect(),St=Ze(dt),Ct=Tt.left+(dt.clientLeft+parseFloat(St.paddingLeft))*ut.x,Ht=Tt.top+(dt.clientTop+parseFloat(St.paddingTop))*ut.y;N*=ut.x,$*=ut.y,q*=ut.x,K*=ut.y,N+=Ct,$+=Ht,rt=Me(dt),dt=il(rt)}}return eo({width:q,height:K,x:N,y:$})}function Gc(l,i){let t=ha(l).scrollLeft;return i?i.left+t:oo(ur(l)).left+t}function su(l,i,t){t===void 0&&(t=!1);let o=l.getBoundingClientRect(),a=o.left+i.scrollLeft-(t?0:Gc(l,o)),h=o.top+i.scrollTop;return{x:a,y:h}}function Ay(l){let{elements:i,rect:t,offsetParent:o,strategy:a}=l,h=a==="fixed",m=ur(o),T=i?da(i.floating):!1;if(o===m||T&&h)return t;let N={scrollLeft:0,scrollTop:0},$=mr(1),q=mr(0),K=fr(o);if((K||!K&&!h)&&((ro(o)!=="body"||is(m))&&(N=ha(o)),fr(o))){let Q=oo(o);$=os(o),q.x=Q.x+o.clientLeft,q.y=Q.y+o.clientTop}let nt=m&&!K&&!h?su(m,N,!0):mr(0);return{width:t.width*$.x,height:t.height*$.y,x:t.x*$.x-N.scrollLeft*$.x+q.x+nt.x,y:t.y*$.y-N.scrollTop*$.y+q.y+nt.y}}function Sy(l){return Array.from(l.getClientRects())}function _y(l){let i=ur(l),t=ha(l),o=l.ownerDocument.body,a=ye(i.scrollWidth,i.clientWidth,o.scrollWidth,o.clientWidth),h=ye(i.scrollHeight,i.clientHeight,o.scrollHeight,o.clientHeight),m=-t.scrollLeft+Gc(l),T=-t.scrollTop;return Ze(o).direction==="rtl"&&(m+=ye(i.clientWidth,o.clientWidth)-a),{width:a,height:h,x:m,y:T}}function Iy(l,i){let t=Me(l),o=ur(l),a=t.visualViewport,h=o.clientWidth,m=o.clientHeight,T=0,N=0;if(a){h=a.width,m=a.height;let $=rl();(!$||$&&i==="fixed")&&(T=a.offsetLeft,N=a.offsetTop)}return{width:h,height:m,x:T,y:N}}var ky=new Set(["absolute","fixed"]);function Cy(l,i){let t=oo(l,!0,i==="fixed"),o=t.top+l.clientTop,a=t.left+l.clientLeft,h=fr(l)?os(l):mr(1),m=l.clientWidth*h.x,T=l.clientHeight*h.y,N=a*h.x,$=o*h.y;return{width:m,height:T,x:N,y:$}}function eu(l,i,t){let o;if(i==="viewport")o=Iy(l,t);else if(i==="document")o=_y(ur(l));else if(Xe(i))o=Cy(i,t);else{let a=ou(l);o={x:i.x-a.x,y:i.y-a.y,width:i.width,height:i.height}}return eo(o)}function au(l,i){let t=Qr(l);return t===i||!Xe(t)||io(t)?!1:Ze(t).position==="fixed"||au(t,i)}function wy(l,i){let t=i.get(l);if(t)return t;let o=rs(l,[],!1).filter(T=>Xe(T)&&ro(T)!=="body"),a=null,h=Ze(l).position==="fixed",m=h?Qr(l):l;for(;Xe(m)&&!io(m);){let T=Ze(m),N=el(m);!N&&T.position==="fixed"&&(a=null),(h?!N&&!a:!N&&T.position==="static"&&!!a&&ky.has(a.position)||is(m)&&!N&&au(l,m))?o=o.filter(q=>q!==m):a=T,m=Qr(m)}return i.set(l,o),o}function Ny(l){let{element:i,boundary:t,rootBoundary:o,strategy:a}=l,m=[...t==="clippingAncestors"?da(i)?[]:wy(i,this._c):[].concat(t),o],T=m[0],N=m.reduce(($,q)=>{let K=eu(i,q,a);return $.top=ye(K.top,$.top),$.right=wr(K.right,$.right),$.bottom=wr(K.bottom,$.bottom),$.left=ye(K.left,$.left),$},eu(i,T,a));return{width:N.right-N.left,height:N.bottom-N.top,x:N.left,y:N.top}}function Ly(l){let{width:i,height:t}=iu(l);return{width:i,height:t}}function Ry(l,i,t){let o=fr(i),a=ur(i),h=t==="fixed",m=oo(l,!0,h,i),T={scrollLeft:0,scrollTop:0},N=mr(0);function $(){N.x=Gc(a)}if(o||!o&&!h)if((ro(i)!=="body"||is(a))&&(T=ha(i)),o){let Q=oo(i,!0,h,i);N.x=Q.x+i.clientLeft,N.y=Q.y+i.clientTop}else a&&$();h&&!o&&a&&$();let q=a&&!o&&!h?su(a,T):mr(0),K=m.left+T.scrollLeft-N.x-q.x,nt=m.top+T.scrollTop-N.y-q.y;return{x:K,y:nt,width:m.width,height:m.height}}function Uc(l){return Ze(l).position==="static"}function ru(l,i){if(!fr(l)||Ze(l).position==="fixed")return null;if(i)return i(l);let t=l.offsetParent;return ur(l)===t&&(t=t.ownerDocument.body),t}function nu(l,i){let t=Me(l);if(da(l))return t;if(!fr(l)){let a=Qr(l);for(;a&&!io(a);){if(Xe(a)&&!Uc(a))return a;a=Qr(a)}return t}let o=ru(l,i);for(;o&&Qm(o)&&Uc(o);)o=ru(o,i);return o&&io(o)&&Uc(o)&&!el(o)?t:o||Jm(l)||t}var My=async function(l){let i=this.getOffsetParent||nu,t=this.getDimensions,o=await t(l.floating);return{reference:Ry(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Oy(l){return Ze(l).direction==="rtl"}var Py={convertOffsetParentRelativeRectToViewportRelativeRect:Ay,getDocumentElement:ur,getClippingRect:Ny,getOffsetParent:nu,getElementRects:My,getClientRects:Sy,getDimensions:Ly,getScale:os,isElement:Xe,isRTL:Oy};function lu(l,i){return l.x===i.x&&l.y===i.y&&l.width===i.width&&l.height===i.height}function Dy(l,i){let t=null,o,a=ur(l);function h(){var T;clearTimeout(o),(T=t)==null||T.disconnect(),t=null}function m(T,N){T===void 0&&(T=!1),N===void 0&&(N=1),h();let $=l.getBoundingClientRect(),{left:q,top:K,width:nt,height:Q}=$;if(T||i(),!nt||!Q)return;let rt=ca(K),dt=ca(a.clientWidth-(q+nt)),ut=ca(a.clientHeight-(K+Q)),Tt=ca(q),Ct={rootMargin:-rt+"px "+-dt+"px "+-ut+"px "+-Tt+"px",threshold:ye(0,wr(1,N))||1},Ht=!0;function Dt(zt){let Wt=zt[0].intersectionRatio;if(Wt!==N){if(!Ht)return m();Wt?m(!1,Wt):o=setTimeout(()=>{m(!1,1e-7)},1e3)}Wt===1&&!lu($,l.getBoundingClientRect())&&m(),Ht=!1}try{t=new IntersectionObserver(Dt,{...Ct,root:a.ownerDocument})}catch{t=new IntersectionObserver(Dt,Ct)}t.observe(l)}return m(!0),h}function cu(l,i,t,o){o===void 0&&(o={});let{ancestorScroll:a=!0,ancestorResize:h=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:T=typeof IntersectionObserver=="function",animationFrame:N=!1}=o,$=Hc(l),q=a||h?[...$?rs($):[],...rs(i)]:[];q.forEach(Tt=>{a&&Tt.addEventListener("scroll",t,{passive:!0}),h&&Tt.addEventListener("resize",t)});let K=$&&T?Dy($,t):null,nt=-1,Q=null;m&&(Q=new ResizeObserver(Tt=>{let[St]=Tt;St&&St.target===$&&Q&&(Q.unobserve(i),cancelAnimationFrame(nt),nt=requestAnimationFrame(()=>{var Ct;(Ct=Q)==null||Ct.observe(i)})),t()}),$&&!N&&Q.observe($),Q.observe(i));let rt,dt=N?oo(l):null;N&&ut();function ut(){let Tt=oo(l);dt&&!lu(dt,Tt)&&t(),dt=Tt,rt=requestAnimationFrame(ut)}return t(),()=>{var Tt;q.forEach(St=>{a&&St.removeEventListener("scroll",t),h&&St.removeEventListener("resize",t)}),K==null||K(),(Tt=Q)==null||Tt.disconnect(),Q=null,N&&cancelAnimationFrame(rt)}}var du=jm;var hu=qm,pu=Wm,mu=Km;var uu=Ym;var fu=(l,i,t)=>{let o=new Map,a={platform:Py,...t},h={...a.platform,_c:o};return Gm(l,i,{...a,platform:h})};var ol=l=>{class i extends l{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null}createBackdrop(a){let h=document.createElement("div");h.classList.add(`${a}-backdrop`);let m=document.createElement("style");m.textContent=`
|
2074
|
+
.${a}-backdrop {
|
2075
|
+
position: fixed;
|
2076
|
+
top: 0;
|
2077
|
+
left: 0;
|
2078
|
+
width: 100%;
|
2079
|
+
height: 100%;
|
2080
|
+
background: ${this.isBackdropInvisible?"transparent":"var(--mds-color-theme-common-overlays-secondary-normal)"};
|
2081
|
+
z-index: ${this.zIndex-1};
|
2082
|
+
}
|
2083
|
+
`,h.appendChild(m);let N=document.getElementById(this.backdropAppendTo)||this.parentElement;N==null||N.appendChild(h),this.backdropElement=h}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(a){a&&(this.elementOriginalStyle={zIndex:a.style.zIndex,position:a.style.position},a.style.zIndex=`${this.zIndex}`,["fixed","absolute"].includes(window.getComputedStyle(a).position)||(a.style.position="relative"))}moveElementBackAfterBackdropRemoval(a){!a||!this.elementOriginalStyle||(a.style.zIndex=this.elementOriginalStyle.zIndex,a.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0)}}return i};var ss=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};ss.stack=new Set,ss.currentKeydownListener=null;var sl=l=>{class i extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(a){this.isFocusTrapActivated=a}activateFocusTrap(){this.setIsFocusTrapActivated(!0),ss.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),ss.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:m}=a.getBoundingClientRect(),{offsetWidth:T,offsetHeight:N}=a;return T+N+m+h===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:h,opacity:m,visibility:T}=a.style;return h==="none"||m==="0"||T==="hidden"||T==="collapse"}hasComputedHidden(a){let h=getComputedStyle(a);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(a){return a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(a)||this.isNotVisible(a)||this.hasComputedHidden(a)}isDisabled(a){return a.disabled}isNotTabbable(a){return a.getAttribute("tabindex")==="-1"}isInteractiveElement(a){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1)}isFocusable(a){return this.isHidden(a)||this.isNotTabbable(a)||this.isDisabled(a)?!1:this.isInteractiveElement(a)}findFocusable(a,h=new Set){a instanceof HTMLElement&&this.isFocusable(a)&&h.add(a);let m=[];return a.children.length?m=Array.from(a.children):a instanceof HTMLElement&&a.shadowRoot&&(m=Array.from(a.shadowRoot.children)),m.forEach(T=>{let N=T;this.isFocusable(N)&&h.add(N),N.shadowRoot?this.findFocusable(N.shadowRoot,h):N.tagName==="SLOT"?N.assignedElements({flatten:!0}).forEach(q=>{q instanceof HTMLElement&&this.findFocusable(q,h)}):this.findFocusable(N,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus({preventScroll:!0}))}calculateNextIndex(a,h){let{length:m}=this.focusableElements;if(a===-1)return h>0?0:m-1;let T=a+h;return this.shouldFocusTrapWrap?(T<0&&(T=m-1),T>=m&&(T=0)):(T<0&&(T=0),T>=m&&(T=m-1)),T}getDeepActiveElement(){var h;let a=document.activeElement||document.body;for(;a instanceof HTMLElement&&((h=a.shadowRoot)!=null&&h.activeElement);)a=a.shadowRoot.activeElement;return a||document.body}findElement(a){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(a,h))}isEqualFocusNode(a,h){return a.nodeType>=0?h.isEqualNode(a)&&h===a:!1}trapFocus(a){if(this.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),m=this.findElement(h);a.shiftKey?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let N=this.focusableElements[this.focusTrapIndex];N.tagName!=="IFRAME"&&N&&(a.preventDefault(),N.focus())}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&this.trapFocus(a)}}return p([g({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var al=l=>{class i extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var 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"},so={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},ao={TONAL:"tonal",CONTRAST:"contrast"},kt={PLACEMENT:Ut.BOTTOM,TRIGGER:so.CLICK,COLOR:ao.TONAL,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,DISABLE_ARIA_HAS_POPUP:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,STRATEGY:"absolute",IS_BACKDROP_INVISIBLE:!1};var Jr=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var Yc=class{constructor(){this.stack=[]}push(i){this.stack.push(i)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(i){this.stack=this.stack.filter(t=>t!==i)}has(i){return this.stack.includes(i)}clear(){this.stack=[]}},Ee=new Yc;var Fy=G`
|
2074
2084
|
:host {
|
2075
2085
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
2076
2086
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -2191,32 +2201,21 @@
|
|
2191
2201
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
2192
2202
|
border-bottom-left-radius: 100%;
|
2193
2203
|
}
|
2194
|
-
`,vu=[Dy];var al=class{constructor(i){this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(o=>{let a=parseInt(o,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${o}`);return a});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){let t=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let o=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,h=this.popover.offsetWidth||0;if(t)switch(i.split("-")[0]){case"top":t.style.height=o,t.style.bottom=`calc(-1 * (${o}))`,t.style.left="50%",t.style.width=`${h}px`;break;case"left":t.style.height=`${a}px`,t.style.width=o,t.style.right=`calc(-1.5 * (${o}))`;break;case"right":t.style.height=`${a}px`,t.style.width=o,t.style.left=`calc(-0.5 * (${o}))`;break;case"bottom":default:t.style.height=o,t.style.top=`calc(-1 * (${o}))`,t.style.left="50%",t.style.width=`${h}px`;break}}setupAppendTo(){if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&i.appendChild(this.popover)}}updateAriaLabels(){var i,t,o;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((o=this.popover.triggerElement)==null?void 0:o.id)||""))}updateAriaModal(){this.popover.role===tt.DIALOG||this.popover.role===tt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var i,t,o;this.popover.interactive&&!this.popover.disableAriaHasPopup?(t=this.popover.triggerElement)==null||t.setAttribute("aria-haspopup",((i=this.popover.triggerElement)==null?void 0:i.getAttribute("aria-haspopup"))||"dialog"):(o=this.popover.triggerElement)==null||o.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var i,t;this.popover.disableAriaExpanded?(i=this.popover.triggerElement)==null||i.removeAttribute("aria-expanded"):(t=this.popover.triggerElement)==null||t.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(i,t){var q;if(!this.popover.arrowElement)return;let o=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[o],{x:h,y:u}=i,T=this.popover.arrowElement.getBoundingClientRect(),N=(q=this.popover.arrowElement.offsetParent)==null?void 0:q.getBoundingClientRect();if(!this.arrowPixelChange){let K=N!=null&&N[a]?12-Math.abs(T[a]-N[a]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let $=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",o),Object.assign(this.popover.arrowElement.style,{left:h!=null?`${h}px`:"",top:u!=null?`${u}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-$}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}createBackdrop(){var i;if(!this.popover.backdropElement){let t=document.createElement("div");t.classList.add("popover-backdrop");let o=document.createElement("style");o.textContent=`
|
2195
|
-
.popover-backdrop {
|
2196
|
-
position: fixed;
|
2197
|
-
cursor: default;
|
2198
|
-
top: 0;
|
2199
|
-
left: 0;
|
2200
|
-
width: 100%;
|
2201
|
-
height: 100%;
|
2202
|
-
background: transparent;
|
2203
|
-
z-index: ${this.popover.zIndex-1};
|
2204
|
-
}
|
2205
|
-
`,t.appendChild(o),(i=this.popover.parentElement)==null||i.appendChild(t),this.popover.backdropElement=t}}removeBackdrop(){this.popover.backdropElement&&(this.popover.backdropElement.remove(),this.popover.backdropElement=null)}};var _t=class _t extends sl(ol(j)){constructor(){super();this.id="";this.triggerID="";this.trigger=kt.TRIGGER;this.placement=kt.PLACEMENT;this.color=kt.COLOR;this.visible=kt.VISIBLE;this.offset=kt.OFFSET;this.boundary=kt.BOUNDARY;this.boundaryRoot=kt.BOUNDARY_ROOT;this.focusTrap=kt.FOCUS_TRAP;this.preventScroll=kt.PREVENT_SCROLL;this.showArrow=kt.ARROW;this.closeButton=kt.CLOSE_BUTTON;this.interactive=kt.INTERACTIVE;this.delay=kt.DELAY;this.hideOnEscape=kt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=kt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=kt.HIDE_ON_BLUR;this.hideOnOutsideClick=kt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=kt.FOCUS_BACK;this.backdrop=kt.BACKDROP;this.flip=kt.FLIP;this.size=kt.SIZE;this.zIndex=kt.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=kt.STRATEGY;this.role=kt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=kt.DISABLE_ARIA_EXPANDED;this.disableAriaHasPopup=kt.DISABLE_ARIA_HAS_POPUP;this.keepConnectedTooltipClosed=kt.KEEP_CONNECTED_TOOLTIP_CLOSED;this.arrowElement=null;this.triggerElement=null;this.triggerElementOriginalStyle={zIndex:"",position:""};this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSupressOpening=!1;this.backdropElement=null;this.connectedTooltip=null;this.storeConnectedTooltip=()=>{let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);for(let o of t)if(o!==this){this.connectedTooltip=o;return}this.connectedTooltip=null};this.cleanupTrigger=()=>{var h;let a=(((h=this.trigger)==null?void 0:h.split(" "))||[]).filter(u=>Object.values(oo).includes(u)).length>0?this.trigger:kt.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.triggerElement){if(this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.addEventListener("mouseenter",this.show),this.triggerElement.addEventListener("mouseenter",this.handleMouseEnter),this.triggerElement.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.handleFocusIn),this.interactive||this.triggerElement.addEventListener("focusout",this.handleFocusOut))}};this.removeTriggerListeners=()=>{var o,a,h,u,T;(o=this.triggerElement)==null||o.removeEventListener("click",this.togglePopoverVisible);let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.removeEventListener("mouseenter",this.show),(a=this.triggerElement)==null||a.removeEventListener("mouseenter",this.handleMouseEnter),(h=this.triggerElement)==null||h.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),(u=this.triggerElement)==null||u.removeEventListener("focusin",this.handleFocusIn),(T=this.triggerElement)==null||T.removeEventListener("focusout",this.handleFocusOut)};this.removeAllListeners=()=>{var t;this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),(t=this.triggerElement)==null||t.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(ye.peek()!==this)return;let o=t.composedPath(),a=this.contains(t.target)||o.includes(this.triggerElement)||o.includes(this),h=this.backdropElement?o.includes(this.backdropElement):!1;(!a||h)&&(this.hide(),Jr.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Jr.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=()=>{this.isHovered=!0,this.show()};this.handleMouseLeave=()=>{this.isHovered=!1,this.startCloseDelay()};this.handleFocusOut=()=>{this.isHovered||this.hide()};this.handleFocusIn=()=>{var t;((t=this.triggerElement)!=null&&t.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSupressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=()=>{this.visible?this.hide():this.show()};this.positionPopover=()=>{if(!this.triggerElement)return;let t=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),o=this.boundaryRoot,a=[du({boundary:t,rootBoundary:o,padding:this.boundaryPadding})],h=this.offset;if(this.flip&&a.push(hu({boundary:t,rootBoundary:o})),this.size){let u=N=>{this.style.setProperty("--mdc-popover-internal-available-height",`${N}px`)},T=this.renderRoot.querySelector('[part="popover-content"]');a.push(pu({boundary:t,rootBoundary:o,apply({availableHeight:N}){T&&(Object.assign(T.style,{maxHeight:`${N}px`,overflowY:"auto"}),u(N))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let u=this.arrowElement.offsetHeight,T=Math.sqrt(2*u**2)/2;h+=T,a.push(mu({element:this.arrowElement,padding:12}))}a.push(cu(h)),this.floatingUICleanupFunction=lu(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:u,y:T,middlewareData:N,placement:$}=await uu(this.triggerElement,this,{placement:this.placement,middleware:a,strategy:this.strategy});this.utils.updatePopoverStyle(u,T),N.arrow&&this.arrowElement&&this.utils.updateArrowStyle(N.arrow,$),this.trigger.includes("mouseenter")&&this.interactive&&this.utils.setupHoverBridge($)})};this.findClosestPopover=t=>{let o=t;for(;o&&!(o instanceof _t);)o=o.parentElement;return o};this.utils=new al(this)}setupTriggerRelatedElement(){this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.storeConnectedTooltip()}async firstUpdated(t){super.firstUpdated(t),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerRelatedElement(),this.cleanupTrigger(),this.setupTriggerListeners(),this.style.zIndex=`${this.zIndex}`,Jr.onCreatedPopover(this)}async disconnectedCallback(){var t,o;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.utils.removeBackdrop(),(o=this.floatingUICleanupFunction)==null||o.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSupressOpening=!1),Jr.onDestroyedPopover(this),ye.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let o=t.get("visible")||!1;await this.isOpenUpdated(o,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.cleanupTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Ut).includes(this.placement)?this.placement:kt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(so).includes(this.color)?this.color:kt.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("append-to")&&this.utils.setupAppendTo(),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),(t.has("interactive")||t.has("disableAriaHasPopup"))&&this.utils.updateAriaHasPopupAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,o){var a,h,u,T,N;t===o||!this.triggerElement||(o&&!this.shouldSupressOpening?(ye.peek()!==this&&ye.push(this),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSupressOpening=!0),this.backdrop&&(this.utils.createBackdrop(),this.triggerElementOriginalStyle={position:this.triggerElement.style.position,zIndex:this.triggerElement.style.zIndex},this.triggerElement.style.position="relative",this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),(a=this.triggerElement)==null||a.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),setTimeout(()=>{var $,q;this.interactive&&this.focusTrap&&(($=this.activateFocusTrap)==null||$.call(this),(q=this.setInitialFocus)==null||q.call(this))},0),Jr.onShowPopover(this)):(ye.peek()===this&&ye.pop(),(h=this.floatingUICleanupFunction)==null||h.call(this),this.backdrop&&(this.triggerElement.style.position=this.triggerElementOriginalStyle.position,this.triggerElement.style.zIndex=this.triggerElementOriginalStyle.zIndex,this.utils.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),(u=this.triggerElement)==null||u.removeEventListener("keydown",this.onEscapeKeydown)),this.disableAriaExpanded&&this.triggerElement.removeAttribute("aria-expanded"),this.interactive||this.triggerElement.removeAttribute("aria-haspopup"),this.deactivatePreventScroll(),(T=this.deactivateFocusTrap)==null||T.call(this),this.focusBackToTrigger&&((N=this.triggerElement)==null||N.focus()),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSupressOpening=!1),Jr.onHidePopover(this)))}render(){return C`
|
2204
|
+
`,gu=[Fy];var nl=class{constructor(i){this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(o=>{let a=parseInt(o,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${o}`);return a});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){let t=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let o=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,h=this.popover.offsetWidth||0;if(t)switch(i.split("-")[0]){case"top":t.style.height=o,t.style.bottom=`calc(-1 * (${o}))`,t.style.left="50%",t.style.width=`${h}px`;break;case"left":t.style.height=`${a}px`,t.style.width=o,t.style.right=`calc(-1.5 * (${o}))`;break;case"right":t.style.height=`${a}px`,t.style.width=o,t.style.left=`calc(-0.5 * (${o}))`;break;case"bottom":default:t.style.height=o,t.style.top=`calc(-1 * (${o}))`,t.style.left="50%",t.style.width=`${h}px`;break}}setupAppendTo(){if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&i.appendChild(this.popover)}}updateAriaLabels(){var i,t,o;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((o=this.popover.triggerElement)==null?void 0:o.id)||""))}updateAriaModal(){this.popover.role===tt.DIALOG||this.popover.role===tt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var i,t,o;this.popover.interactive&&!this.popover.disableAriaHasPopup?(t=this.popover.triggerElement)==null||t.setAttribute("aria-haspopup",((i=this.popover.triggerElement)==null?void 0:i.getAttribute("aria-haspopup"))||"dialog"):(o=this.popover.triggerElement)==null||o.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var i,t;this.popover.disableAriaExpanded?(i=this.popover.triggerElement)==null||i.removeAttribute("aria-expanded"):(t=this.popover.triggerElement)==null||t.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(i,t){var q;if(!this.popover.arrowElement)return;let o=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[o],{x:h,y:m}=i,T=this.popover.arrowElement.getBoundingClientRect(),N=(q=this.popover.arrowElement.offsetParent)==null?void 0:q.getBoundingClientRect();if(!this.arrowPixelChange){let K=N!=null&&N[a]?12-Math.abs(T[a]-N[a]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let $=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",o),Object.assign(this.popover.arrowElement.style,{left:h!=null?`${h}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-$}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}};var _t=class _t extends ol(al(sl(j))){constructor(){super();this.id="";this.triggerID="";this.trigger=kt.TRIGGER;this.placement=kt.PLACEMENT;this.color=kt.COLOR;this.visible=kt.VISIBLE;this.offset=kt.OFFSET;this.boundary=kt.BOUNDARY;this.boundaryRoot=kt.BOUNDARY_ROOT;this.focusTrap=kt.FOCUS_TRAP;this.preventScroll=kt.PREVENT_SCROLL;this.showArrow=kt.ARROW;this.closeButton=kt.CLOSE_BUTTON;this.interactive=kt.INTERACTIVE;this.delay=kt.DELAY;this.hideOnEscape=kt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=kt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=kt.HIDE_ON_BLUR;this.hideOnOutsideClick=kt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=kt.FOCUS_BACK;this.backdrop=kt.BACKDROP;this.isBackdropInvisible=kt.IS_BACKDROP_INVISIBLE;this.flip=kt.FLIP;this.size=kt.SIZE;this.zIndex=kt.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=kt.STRATEGY;this.role=kt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=kt.DISABLE_ARIA_EXPANDED;this.disableAriaHasPopup=kt.DISABLE_ARIA_HAS_POPUP;this.keepConnectedTooltipClosed=kt.KEEP_CONNECTED_TOOLTIP_CLOSED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSupressOpening=!1;this.connectedTooltip=null;this.storeConnectedTooltip=()=>{let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);for(let o of t)if(o!==this){this.connectedTooltip=o;return}this.connectedTooltip=null};this.cleanupTrigger=()=>{var h;let a=(((h=this.trigger)==null?void 0:h.split(" "))||[]).filter(m=>Object.values(so).includes(m)).length>0?this.trigger:kt.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.triggerElement){if(this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.addEventListener("mouseenter",this.show),this.triggerElement.addEventListener("mouseenter",this.handleMouseEnter),this.triggerElement.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.handleFocusIn),this.interactive||this.triggerElement.addEventListener("focusout",this.handleFocusOut))}};this.removeTriggerListeners=()=>{var o,a,h,m,T;(o=this.triggerElement)==null||o.removeEventListener("click",this.togglePopoverVisible);let t=this.renderRoot.querySelector(".popover-hover-bridge");t==null||t.removeEventListener("mouseenter",this.show),(a=this.triggerElement)==null||a.removeEventListener("mouseenter",this.handleMouseEnter),(h=this.triggerElement)==null||h.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),(m=this.triggerElement)==null||m.removeEventListener("focusin",this.handleFocusIn),(T=this.triggerElement)==null||T.removeEventListener("focusout",this.handleFocusOut)};this.removeAllListeners=()=>{var t;this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),(t=this.triggerElement)==null||t.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ee.peek()!==this)return;let o=t.composedPath(),a=this.contains(t.target)||o.includes(this.triggerElement)||o.includes(this),h=this.backdropElement?o.includes(this.backdropElement):!1;(!a||h)&&(this.hide(),Jr.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Jr.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=()=>{this.isHovered=!0,this.show()};this.handleMouseLeave=()=>{this.isHovered=!1,this.startCloseDelay()};this.handleFocusOut=()=>{this.isHovered||this.hide()};this.handleFocusIn=()=>{var t;((t=this.triggerElement)!=null&&t.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSupressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=()=>{this.visible?this.hide():this.show()};this.positionPopover=()=>{if(!this.triggerElement)return;let t=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),o=this.boundaryRoot,a=[hu({boundary:t,rootBoundary:o,padding:this.boundaryPadding})],h=this.offset;if(this.flip&&a.push(pu({boundary:t,rootBoundary:o})),this.size){let m=N=>{this.style.setProperty("--mdc-popover-internal-available-height",`${N}px`)},T=this.renderRoot.querySelector('[part="popover-content"]');a.push(mu({boundary:t,rootBoundary:o,apply({availableHeight:N}){T&&(Object.assign(T.style,{maxHeight:`${N}px`,overflowY:"auto"}),m(N))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let m=this.arrowElement.offsetHeight,T=Math.sqrt(2*m**2)/2;h+=T,a.push(uu({element:this.arrowElement,padding:12}))}a.push(du(h)),this.floatingUICleanupFunction=cu(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:m,y:T,middlewareData:N,placement:$}=await fu(this.triggerElement,this,{placement:this.placement,middleware:a,strategy:this.strategy});this.utils.updatePopoverStyle(m,T),N.arrow&&this.arrowElement&&this.utils.updateArrowStyle(N.arrow,$),this.trigger.includes("mouseenter")&&this.interactive&&this.utils.setupHoverBridge($)})};this.findClosestPopover=t=>{let o=t;for(;o&&!(o instanceof _t);)o=o.parentElement;return o};this.utils=new nl(this)}setupTriggerRelatedElement(){this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.storeConnectedTooltip()}async firstUpdated(t){super.firstUpdated(t),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerRelatedElement(),this.cleanupTrigger(),this.setupTriggerListeners(),this.style.zIndex=`${this.zIndex}`,Jr.onCreatedPopover(this)}async disconnectedCallback(){var t,o;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(o=this.floatingUICleanupFunction)==null||o.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSupressOpening=!1),Jr.onDestroyedPopover(this),Ee.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let o=t.get("visible")||!1;await this.isOpenUpdated(o,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.cleanupTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Ut).includes(this.placement)?this.placement:kt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(ao).includes(this.color)?this.color:kt.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("append-to")&&this.utils.setupAppendTo(),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),(t.has("interactive")||t.has("disableAriaHasPopup"))&&this.utils.updateAriaHasPopupAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,o){var a,h,m,T,N;t===o||!this.triggerElement||(o&&!this.shouldSupressOpening?(Ee.peek()!==this&&Ee.push(this),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSupressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(this.triggerElement)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),(a=this.triggerElement)==null||a.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),setTimeout(()=>{var $,q;this.interactive&&this.focusTrap&&(($=this.activateFocusTrap)==null||$.call(this),(q=this.setInitialFocus)==null||q.call(this))},0),Jr.onShowPopover(this)):(Ee.peek()===this&&Ee.pop(),(h=this.floatingUICleanupFunction)==null||h.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),(m=this.triggerElement)==null||m.removeEventListener("keydown",this.onEscapeKeydown)),this.disableAriaExpanded&&this.triggerElement.removeAttribute("aria-expanded"),this.interactive||this.triggerElement.removeAttribute("aria-haspopup"),this.deactivatePreventScroll(),(T=this.deactivateFocusTrap)==null||T.call(this),this.focusBackToTrigger&&((N=this.triggerElement)==null||N.focus()),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSupressOpening=!1),Jr.onHidePopover(this)))}render(){return C`
|
2206
2205
|
<div class="popover-hover-bridge"></div>
|
2207
2206
|
${this.closeButton?C` <mdc-button
|
2208
2207
|
class="popover-close"
|
2209
2208
|
prefix-icon="cancel-bold"
|
2210
2209
|
variant="tertiary"
|
2211
2210
|
size="20"
|
2212
|
-
aria-label=${
|
2211
|
+
aria-label=${ot(this.closeButtonAriaLabel)||""}
|
2213
2212
|
@click="${this.hide}"
|
2214
2213
|
></mdc-button>`:W}
|
2215
2214
|
${this.showArrow?C`<div class="popover-arrow"></div>`:W}
|
2216
2215
|
<div part="popover-content">
|
2217
2216
|
<slot></slot>
|
2218
2217
|
</div>
|
2219
|
-
`}};_t.styles=[...j.styles,...
|
2218
|
+
`}};_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:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),p([g({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",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,attribute:"strategy"})],_t.prototype,"strategy",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 Wc=_t,Oe=Wc;var bu=Y.constructTagName("toggletip"),no={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Ut.TOP,CLICK:so.CLICK,SHOW_ARROW:!0};var $y=G`
|
2220
2219
|
:host {
|
2221
2220
|
--mdc-toggletip-max-width: 400px;
|
2222
2221
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -2246,20 +2245,20 @@
|
|
2246
2245
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
2247
2246
|
margin-left: 2rem;
|
2248
2247
|
}
|
2249
|
-
`,
|
2248
|
+
`,yu=[$y];var _i=class extends Oe{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=no.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:no.CLOSE_BUTTON,this.closeButtonAriaLabel=no.CLOSE_BUTTON_ARIA_LABEL,this.trigger=no.CLICK,this.showArrow=no.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,o;return((o=(t=this.defaultSlotNodes)==null?void 0:t.map(a=>a.textContent).join(" "))==null?void 0:o.trim())||""}onPlacementUpdated(){Object.values(Ut).includes(this.placement)||(this.placement=no.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return C`
|
2250
2249
|
${super.render()}
|
2251
2250
|
<mdc-screenreaderannouncer
|
2252
|
-
identity="${
|
2251
|
+
identity="${ot(this.screenreaderAnnouncerIdentity)}"
|
2253
2252
|
announcement="${this.currentAnnouncement}"
|
2254
2253
|
delay="300"
|
2255
2254
|
>
|
2256
2255
|
</mdc-screenreaderannouncer>
|
2257
|
-
`}};_i.styles=[...
|
2256
|
+
`}};_i.styles=[...Oe.styles,...yu],p([vn()],_i.prototype,"defaultSlotNodes",2),p([xt()],_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 jc=_i;var Eu=Y.constructTagName("screenreaderannouncer"),zy={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},as={ARIA_LIVE:zy.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Vy=[G`
|
2258
2257
|
:host {
|
2259
2258
|
display: none;
|
2260
2259
|
visibility: hidden;
|
2261
2260
|
}
|
2262
|
-
`],
|
2261
|
+
`],Tu=Vy;var ti=class extends j{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=as.ARIA_LIVE;this.delay=as.DELAY;this.timeout=as.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(t,o,a,h){var m;if(t.length>0){let T=`mdc-screenreaderannouncer-announcement-${ge()}`,N=document.createElement("div");N.id=T,N.ariaLive=h,(m=document.getElementById(this.identity))==null||m.appendChild(N);let $=window.setTimeout(()=>{let q=document.createElement("p");q.textContent=t,N.appendChild(q),this.ariaLiveAnnouncementIds.push(T);let K=window.setTimeout(()=>{var nt;(nt=document.getElementById(T))==null||nt.remove()},a);this.timeOutIds.push(K)},o);this.timeOutIds.push($)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var o;(o=document.getElementById(t))==null||o.remove()})}createAnnouncementAriaLiveRegion(){let t=document.getElementById(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let o=document.createElement("style");o.textContent=`
|
2263
2262
|
.mdc-screenreaderannouncer__visually-hidden {
|
2264
2263
|
clip: rect(0 0 0 0);
|
2265
2264
|
clip-path: inset(50%);
|
@@ -2269,7 +2268,7 @@
|
|
2269
2268
|
white-space: nowrap;
|
2270
2269
|
width: 1px;
|
2271
2270
|
}
|
2272
|
-
`,t.appendChild(o),t.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(t)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=
|
2271
|
+
`,t.appendChild(o),t.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(t)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=as.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(t){t.has("identity")&&this.identity.length===0&&(this.identity=as.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 qc=ti;qc.register(Eu);var By=qc;jc.register(bu);var Uy=jc;var re=l=>{class i extends l{constructor(){super(...arguments);this.dataAriaLabel=null}}return p([g({type:String,reflect:!0,attribute:"data-aria-label"})],i.prototype,"dataAriaLabel",2),i};var Pe=l=>{class i extends l{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-el-${ge()}`}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return i.formAssociated=!0,p([g({reflect:!0,type:String})],i.prototype,"name",2),p([g({reflect:!0,type:String})],i.prototype,"value",2),p([g({reflect:!0,type:String,attribute:"validation-message"})],i.prototype,"validationMessage",2),p([Hr("input")],i.prototype,"inputElement",2),i};var xu=Y.constructTagName("formfieldwrapper"),Yt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Pt={VALIDATION:Yt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:"top"},pa={TAGNAME:gt.SPAN,TYPE:st.BODY_MIDSIZE_REGULAR,HEADER_TYPE:st.BODY_MIDSIZE_BOLD};var Hy=[Et,G`
|
2273
2272
|
:host {
|
2274
2273
|
flex-direction: column;
|
2275
2274
|
align-items: flex-start;
|
@@ -2328,13 +2327,13 @@
|
|
2328
2327
|
:host([help-text-type='priority']) .mdc-help-text {
|
2329
2328
|
color: var(--mds-color-theme-text-accent-normal);
|
2330
2329
|
}
|
2331
|
-
`],
|
2330
|
+
`],Au=Hy;var Su=l=>({[Yt.ERROR]:"error-legacy-badge-filled",[Yt.WARNING]:"warning-badge-filled",[Yt.SUCCESS]:"check-circle-badge-filled",[Yt.PRIORITY]:"priority-badge-filled",[Yt.DEFAULT]:""})[l]||"";var 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
|
2332
2331
|
id="${Pt.HEADING_ID}"
|
2333
2332
|
tagname="${pa.TAGNAME}"
|
2334
2333
|
type="${pa.HEADER_TYPE}"
|
2335
2334
|
part="label"
|
2336
2335
|
>${this.label}</mdc-text
|
2337
|
-
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=
|
2336
|
+
>`:W}renderHelpTextIcon(){if(!this.helpText)return W;let t=Su(this.helpTextType||Pt.VALIDATION);return t&&!this.disabled?C`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:W}renderHelpText(){return this.helpText?C`
|
2338
2337
|
<mdc-text
|
2339
2338
|
id="${Pt.HELPER_TEXT_ID}"
|
2340
2339
|
part="help-text"
|
@@ -2351,7 +2350,7 @@
|
|
2351
2350
|
prefix-icon="${Pt.INFO_ICON}"
|
2352
2351
|
size="${Pt.ICON_SIZE}"
|
2353
2352
|
variant="${Ot.TERTIARY}"
|
2354
|
-
aria-label="${
|
2353
|
+
aria-label="${ot(this.infoIconAriaLabel)}"
|
2355
2354
|
id="info-icon-id"
|
2356
2355
|
></mdc-button>
|
2357
2356
|
<mdc-toggletip
|
@@ -2365,7 +2364,7 @@
|
|
2365
2364
|
</div>`:W}renderHelperText(){return this.helpText?C`<div class="mdc-help-text" part="help-text">
|
2366
2365
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
2367
2366
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
2368
|
-
</div>`:W}};Qe.styles=[...j.styles,...
|
2367
|
+
</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 Te=Qe;var Gy=[G`
|
2369
2368
|
:host {
|
2370
2369
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
2371
2370
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -2437,7 +2436,7 @@
|
|
2437
2436
|
flex-direction: column;
|
2438
2437
|
gap: 0.25rem;
|
2439
2438
|
}
|
2440
|
-
`,...At(!0)],
|
2439
|
+
`,...At(!0)],_u=Gy;var lo=class extends Pe(re(Te)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?C`<div class="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(t){var o;t.key===J.ENTER&&((o=this.form)==null||o.requestSubmit())}handleChange(t){this.toggleState();let o=t.constructor;this.dispatchEvent(new o(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return C`
|
2441
2440
|
<mdc-staticcheckbox
|
2442
2441
|
class="mdc-focus-ring"
|
2443
2442
|
?checked="${this.checked}"
|
@@ -2449,8 +2448,8 @@
|
|
2449
2448
|
type="checkbox"
|
2450
2449
|
class="input"
|
2451
2450
|
?autofocus="${this.autofocus}"
|
2452
|
-
name="${
|
2453
|
-
value="${
|
2451
|
+
name="${ot(this.name)}"
|
2452
|
+
value="${ot(this.value)}"
|
2454
2453
|
?required="${this.required}"
|
2455
2454
|
.checked="${this.checked}"
|
2456
2455
|
aria-checked="${this.indeterminate?"mixed":this.checked}"
|
@@ -2458,13 +2457,13 @@
|
|
2458
2457
|
.disabled="${this.disabled}"
|
2459
2458
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
2460
2459
|
tabindex="${this.disabled?-1:0}"
|
2461
|
-
aria-describedby="${
|
2460
|
+
aria-describedby="${ot(this.helpText?Pt.HELPER_TEXT_ID:"")}"
|
2462
2461
|
@change=${this.handleChange}
|
2463
2462
|
@keydown=${this.handleKeyDown}
|
2464
2463
|
/>
|
2465
2464
|
</mdc-staticcheckbox>
|
2466
2465
|
${this.renderLabelAndHelperText()}
|
2467
|
-
`}};
|
2466
|
+
`}};lo.styles=[...Te.styles,..._u],p([g({type:Boolean,reflect:!0})],lo.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],lo.prototype,"indeterminate",2),p([g({type:Boolean,reflect:!0})],lo.prototype,"autofocus",2);var Kc=lo;Kc.register(Mm);var Yy=Kc;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"},ns={COLOR:Wy.DEFAULT,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:gt.SPAN,SIZE:Wi[24],ROLE:tt.BUTTON};var jy=G`
|
2468
2467
|
:host {
|
2469
2468
|
height: 1.5rem;
|
2470
2469
|
gap: 0.25rem;
|
@@ -2616,12 +2615,12 @@
|
|
2616
2615
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2617
2616
|
cursor: auto;
|
2618
2617
|
}
|
2619
|
-
`,
|
2618
|
+
`,ku=[Et,jy,...At()];var ls=class extends Jt(pe){constructor(){super(...arguments);this.color=ns.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=ns.ROLE,this.size=ns.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?C` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}render(){return C`
|
2620
2619
|
${this.renderIcon()}
|
2621
|
-
${this.label?C`<mdc-text part="label" type="${
|
2620
|
+
${this.label?C`<mdc-text part="label" type="${ns.TEXT_TYPE}" tagname="${ns.TAG_NAME}"
|
2622
2621
|
>${this.label}</mdc-text
|
2623
2622
|
>`:W}
|
2624
|
-
`}};
|
2623
|
+
`}};ls.styles=[...j.styles,...ku],p([g({type:String,reflect:!0})],ls.prototype,"color",2),p([g({type:String})],ls.prototype,"label",2);var cs=ls;cs.register(Iu);var qy=cs;var Cu=Y.constructTagName("coachmark"),co={COLOR:ao.CONTRAST,TRIGGER:so.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ho=class extends Oe{constructor(){super(...arguments);this.trigger=co.TRIGGER;this.showArrow=co.ARROW;this.closeButton=co.CLOSE_BUTTON;this.disableAriaExpanded=co.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=co.COLOR,this.showArrow=co.ARROW}};p([g({type:String,reflect:!0})],ho.prototype,"trigger",2),p([g({type:Boolean,attribute:"show-arrow"})],ho.prototype,"showArrow",2),p([g({type:Boolean,reflect:!0,attribute:"close-button"})],ho.prototype,"closeButton",2),p([g({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ho.prototype,"disableAriaExpanded",2);var Xc=ho;Xc.register(Cu);var Ky=Xc;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(i,t,o=!0){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:o}))}static onShowDialog(i){this.dispatchDialogEvent("shown",i)}static onHideDialog(i){this.dispatchDialogEvent("hidden",i)}static onCloseDialog(i,t=!0){this.dispatchDialogEvent("close",i,t)}static onCreatedDialog(i){this.dispatchDialogEvent("created",i)}static onDestroyedDialog(i){this.dispatchDialogEvent("destroyed",i)}};var Zy=G`
|
2625
2624
|
:host {
|
2626
2625
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2627
2626
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2743,24 +2742,14 @@
|
|
2743
2742
|
mdc-text::part(text) {
|
2744
2743
|
margin: 0;
|
2745
2744
|
}
|
2746
|
-
`,
|
2747
|
-
.dialog-backdrop {
|
2748
|
-
position: fixed;
|
2749
|
-
top: 0;
|
2750
|
-
left: 0;
|
2751
|
-
width: 100%;
|
2752
|
-
height: 100%;
|
2753
|
-
background: var(--mds-color-theme-common-overlays-secondary-normal);
|
2754
|
-
z-index: ${this.zIndex-1};
|
2755
|
-
}
|
2756
|
-
`,t.appendChild(o),(a=this.parentElement)==null||a.appendChild(t),this.backdropElement=t}closeDialog(){Ii.onCloseDialog(this,!1)}async isOpenUpdated(t,o){var a,h,u,T,N,$;t!==o&&(o&&!t?(this.lastActiveElement=document.activeElement,this.createBackdrop(),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((a=this.activateFocusTrap)==null||a.call(this)),(h=this.setInitialFocus)==null||h.call(this),(u=this.triggerElement)==null||u.setAttribute("aria-expanded","true"),Ii.onShowDialog(this)):!o&&t&&((T=this.backdropElement)==null||T.remove(),this.backdropElement=null,(N=this.triggerElement)==null||N.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),($=this.deactivateFocusTrap)==null||$.call(this),this.focusBackToTrigger(),Ii.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}render(){return C`
|
2745
|
+
`,Nu=[Zy];var Vt=class extends ol(al(sl(Zo(j)))){constructor(){super(...arguments);this.id="";this.visible=Je.VISIBLE;this.zIndex=Je.Z_INDEX;this.size=Je.SIZE;this.variant=Je.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedBy=null;this.ariaDescription=null;this.headerTagName=Je.HEADER_TAG_NAME;this.descriptionTagName=Je.DESCRIPTION_TAG_NAME;this.role=Je.ROLE;this.disableAriaHasPopup=Je.DISABLE_ARIA_HAS_POPUP;this.focusTrap=Je.FOCUS_TRAP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(t.preventDefault(),t.stopPropagation(),this.closeDialog())}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,o;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(o=this.deactivateFocusTrap)==null||o.call(this),this.focusBackToTrigger(),Ii.onDestroyedDialog(this)}applyZIndex(){var t;this.style.setProperty("z-index",`${this.zIndex}`),(t=this.backdropElement)==null||t.style.setProperty("z-index",`${this.zIndex-1}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),Ii.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerId")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.setupAriaHasPopup()),t.has("visible")){let o=t.get("visible");await this.isOpenUpdated(o,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=Je.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledBy")||t.has("ariaDescribedBy")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,o;this.disableAriaHasPopup||(o=this.triggerElement)==null||o.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerId&&this.setAttribute("aria-labelledby",this.triggerId)),!this.ariaDescribedBy&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerId&&this.setAttribute("aria-describedby",this.triggerId))}closeDialog(){Ii.onCloseDialog(this,!1)}async isOpenUpdated(t,o){var a,h,m,T,N;t!==o&&(o&&!t?(this.lastActiveElement=document.activeElement,this.removeBackdrop(),this.createBackdrop("dialog"),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((a=this.activateFocusTrap)==null||a.call(this)),(h=this.setInitialFocus)==null||h.call(this),(m=this.triggerElement)==null||m.setAttribute("aria-expanded","true"),Ii.onShowDialog(this)):!o&&t&&(this.removeBackdrop(),(T=this.triggerElement)==null||T.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(N=this.deactivateFocusTrap)==null||N.call(this),this.focusBackToTrigger(),Ii.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}render(){return C`
|
2757
2746
|
${this.headerText?C` <div part="header-section">
|
2758
2747
|
<div part="header">
|
2759
2748
|
<slot name="header-prefix"></slot>
|
2760
2749
|
<mdc-text
|
2761
2750
|
part="header-text"
|
2762
2751
|
tagname="${gt[this.headerTagName.toUpperCase()]}"
|
2763
|
-
type="${
|
2752
|
+
type="${st.BODY_LARGE_BOLD}"
|
2764
2753
|
>
|
2765
2754
|
${this.headerText}
|
2766
2755
|
</mdc-text>
|
@@ -2768,7 +2757,7 @@
|
|
2768
2757
|
${this.descriptionText?C`<mdc-text
|
2769
2758
|
part="description-text"
|
2770
2759
|
tagname="${gt[this.descriptionTagName.toUpperCase()]}"
|
2771
|
-
type="${
|
2760
|
+
type="${st.BODY_MIDSIZE_REGULAR}"
|
2772
2761
|
>
|
2773
2762
|
${this.descriptionText}
|
2774
2763
|
</mdc-text>`:W}
|
@@ -2778,14 +2767,14 @@
|
|
2778
2767
|
prefix-icon="${Je.CANCEL_ICON}"
|
2779
2768
|
variant="${Ot.TERTIARY}"
|
2780
2769
|
size="${je[20]}"
|
2781
|
-
aria-label="${
|
2770
|
+
aria-label="${ot(this.closeButtonAriaLabel)||""}"
|
2782
2771
|
@click="${this.closeDialog}"
|
2783
2772
|
></mdc-button>
|
2784
2773
|
<div part="body">
|
2785
2774
|
<slot name="dialog-body"></slot>
|
2786
2775
|
</div>
|
2787
2776
|
${this.renderFooter()}
|
2788
|
-
`}};Vt.styles=[...j.styles,...
|
2777
|
+
`}};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 Zc=Vt;Zc.register(wu);var Qy=Zc;var Lu=Y.constructTagName("divider"),po={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ma={SOLID:"solid",GRADIENT:"gradient"},xe={POSITIVE:"positive",NEGATIVE:"negative"},ua={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},mo={ORIENTATION:po.HORIZONTAL,VARIANT:ma.SOLID,ARROW_DIRECTION:xe.NEGATIVE,BUTTON_DIRECTION:xe.NEGATIVE};var Jy=[Et,G`
|
2789
2778
|
:host {
|
2790
2779
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2791
2780
|
--mdc-divider-width: 0.0625rem;
|
@@ -2982,11 +2971,11 @@
|
|
2982
2971
|
line-height: var(--mdc-divider-text-line-height);
|
2983
2972
|
flex-shrink: 0;
|
2984
2973
|
}
|
2985
|
-
`],
|
2974
|
+
`],Ru=Jy;var ki=class extends j{constructor(){super(...arguments);this.orientation=mo.ORIENTATION;this.variant=mo.VARIANT;this.arrowDirection=mo.ARROW_DIRECTION;this.buttonPosition=mo.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(ma).includes(t)?t:mo.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(po).includes(t)?t:mo.ORIENTATION)}ensureValidDirections(){let t=this.orientation===po.HORIZONTAL?xe.NEGATIVE:xe.POSITIVE;Object.values(xe).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(xe).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let o=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",o)}}getArrowIcon(){let t=this.orientation===po.HORIZONTAL,o=this.arrowDirection===xe.POSITIVE;return t?o?ua.UP:ua.DOWN:o?ua.RIGHT:ua.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var m;let t=(m=this.shadowRoot)==null?void 0:m.querySelector("slot"),o=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(o.length>1)return;let a=o.some(T=>T.tagName===Zs.toUpperCase()),h=o.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`
|
2986
2975
|
<div></div>
|
2987
2976
|
<slot @slotchange=${this.inferDividerType}></slot>
|
2988
2977
|
<div></div>
|
2989
|
-
`}};ki.styles=[...j.styles,...
|
2978
|
+
`}};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 Qc=ki;Qc.register(Lu);var tE=Qc;var eE=G`
|
2990
2979
|
:host([selected]) {
|
2991
2980
|
border: 2px solid;
|
2992
2981
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -3008,7 +2997,7 @@
|
|
3008
2997
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
3009
2998
|
cursor: auto;
|
3010
2999
|
}
|
3011
|
-
`,
|
3000
|
+
`,Mu=[eE];var Ou=Y.constructTagName("filterchip"),Jc={ICON_NAME:"check-bold",COLOR:"default"};var fa=class extends cs{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Jc.COLOR}setSelected(t){t?(this.iconName=Jc.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)}};fa.styles=[...cs.styles,...Mu],p([g({type:Boolean,reflect:!0})],fa.prototype,"selected",2);var td=fa;td.register(Ou);var rE=td;var iE=G`
|
3012
3001
|
:host::part(container) {
|
3013
3002
|
display: flex;
|
3014
3003
|
flex-direction: column;
|
@@ -3024,18 +3013,18 @@
|
|
3024
3013
|
:host::part(label-text) {
|
3025
3014
|
font-weight: bold;
|
3026
3015
|
}
|
3027
|
-
`,
|
3016
|
+
`,Pu=[iE];var ll=class extends re(Te){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.disabled=void 0}render(){var t;return C`
|
3028
3017
|
<div
|
3029
3018
|
part="container"
|
3030
3019
|
role="${this.isRadio?tt.RADIOGROUP:tt.GROUP}"
|
3031
3020
|
aria-labelledby="${Pt.HEADING_ID}"
|
3032
|
-
aria-describedby="${
|
3021
|
+
aria-describedby="${ot(this.helpText?Pt.HELPER_TEXT_ID:"")}"
|
3033
3022
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
3034
3023
|
>
|
3035
3024
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
3036
3025
|
<slot></slot>
|
3037
3026
|
</div>
|
3038
|
-
`}};
|
3027
|
+
`}};ll.styles=[...Te.styles,...Pu];var ed=ll;var Du=Y.constructTagName("formfieldgroup");ed.register(Du);var cl=ed;Ks.register(An);var oE=Ks;var Fu=Zi(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,[i]){if(i===Le||i===W)return i;let t=l.element,o=l.name;if(l.type===hr.PROPERTY){if(i===t[o])return Le}else if(l.type===hr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(o))return Le}else if(l.type===hr.ATTRIBUTE&&t.getAttribute(o)===i+"")return Le;return qp(l),i}});Te.register(xu);var tr=Te;var $u=Y.constructTagName("input"),dl={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},rd={OFF:"off",ON:"on"},ds={PASSWORD:"password",TEXT:"text",SEARCH:"search"},zu={MAX_LENGTH:10,VALIDATION:Yt.ERROR},ei={VALIDATION:Yt.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:st.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:gt.SPAN,AUTO_COMPLETE:rd.OFF,INPUT_TYPE:ds.TEXT};var sE=[G`
|
3039
3028
|
:host {
|
3040
3029
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
3041
3030
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -3158,7 +3147,7 @@
|
|
3158
3147
|
opacity: 0;
|
3159
3148
|
pointer-events: none;
|
3160
3149
|
}
|
3161
|
-
`,...At(!0)],
|
3150
|
+
`,...At(!0)],Vu=sE;var Kt=class extends Pe(re(tr)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=dl.OFF;this.autocomplete=rd.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,o,a){super.attributeChangedCallback(t,o,a),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(h=>{this.onerror&&this.onerror(h)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let o=t.constructor;this.dispatchEvent(new o(t.type,t))}handleKeyDown(t){var o;t.key===J.ENTER&&((o=this.form)==null||o.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?C`
|
3162
3151
|
<mdc-icon
|
3163
3152
|
class="leading-icon"
|
3164
3153
|
part="leading-icon"
|
@@ -3174,7 +3163,7 @@
|
|
3174
3163
|
type="${ei.PREFIX_TEXT_TYPE}"
|
3175
3164
|
aria-hidden="true"
|
3176
3165
|
>
|
3177
|
-
${this.prefixText.slice(0
|
3166
|
+
${this.prefixText.slice(0,zu.MAX_LENGTH)}
|
3178
3167
|
</mdc-text>
|
3179
3168
|
`:W}clearInputText(){var t;this.value="",(t=this.inputElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0}))}renderTrailingButton(t=!1){let o=t||this.value&&this.trailingButton;return o?C`
|
3180
3169
|
<mdc-button
|
@@ -3193,23 +3182,23 @@
|
|
3193
3182
|
part="mdc-input"
|
3194
3183
|
id="${this.id}"
|
3195
3184
|
name="${this.name}"
|
3196
|
-
.value="${
|
3185
|
+
.value="${Fu(this.value)}"
|
3197
3186
|
?disabled="${this.disabled}"
|
3198
3187
|
?readonly="${this.readonly}"
|
3199
3188
|
?required="${this.required}"
|
3200
3189
|
type="${t}"
|
3201
|
-
aria-describedby="${
|
3190
|
+
aria-describedby="${ot(this.helpText?Pt.HELPER_TEXT_ID:"")}"
|
3202
3191
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
3203
|
-
placeholder=${
|
3204
|
-
minlength=${
|
3205
|
-
maxlength=${
|
3192
|
+
placeholder=${ot(a)}
|
3193
|
+
minlength=${ot(this.minlength)}
|
3194
|
+
maxlength=${ot(this.maxlength)}
|
3206
3195
|
autocapitalize=${this.autocapitalize}
|
3207
3196
|
autocomplete=${this.autocomplete}
|
3208
3197
|
?autofocus="${this.autofocus}"
|
3209
|
-
dirname=${
|
3210
|
-
pattern=${
|
3211
|
-
list=${
|
3212
|
-
size=${
|
3198
|
+
dirname=${ot(this.dirname)}
|
3199
|
+
pattern=${ot(this.pattern)}
|
3200
|
+
list=${ot(this.list)}
|
3201
|
+
size=${ot(this.size)}
|
3213
3202
|
@input=${this.onInput}
|
3214
3203
|
@change=${this.onChange}
|
3215
3204
|
@keydown=${this.handleKeyDown}
|
@@ -3224,7 +3213,7 @@
|
|
3224
3213
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
3225
3214
|
</div>
|
3226
3215
|
${this.helpText?this.renderHelperText():W}
|
3227
|
-
`}};Kt.styles=[...tr.styles,...
|
3216
|
+
`}};Kt.styles=[...tr.styles,...Vu],p([g({type:String})],Kt.prototype,"placeholder",2),p([g({type:Boolean})],Kt.prototype,"readonly",2),p([g({type:String,attribute:"prefix-text"})],Kt.prototype,"prefixText",2),p([g({type:String,attribute:"leading-icon"})],Kt.prototype,"leadingIcon",2),p([g({type:Boolean,attribute:"trailing-button"})],Kt.prototype,"trailingButton",2),p([g({type:Number})],Kt.prototype,"maxlength",2),p([g({type:Number})],Kt.prototype,"minlength",2),p([g({type:String})],Kt.prototype,"autocapitalize",2),p([g({type:String})],Kt.prototype,"autocomplete",2),p([g({type:Boolean})],Kt.prototype,"autofocus",2),p([g({type:String})],Kt.prototype,"dirname",2),p([g({type:String})],Kt.prototype,"pattern",2),p([g({type:String})],Kt.prototype,"list",2),p([g({type:Number})],Kt.prototype,"size",2),p([g({type:String,attribute:"clear-aria-label"})],Kt.prototype,"clearAriaLabel",2);var ri=Kt;ri.register($u);var aE=ri;var nE=G`
|
3228
3217
|
:host {
|
3229
3218
|
height: 1.5rem;
|
3230
3219
|
gap: 0.25rem;
|
@@ -3255,9 +3244,9 @@
|
|
3255
3244
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
3256
3245
|
cursor: auto;
|
3257
3246
|
}
|
3258
|
-
`,
|
3247
|
+
`,Bu=[Et,nE];var hl=Y.constructTagName("inputchip"),pl={TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:gt.SPAN,CLOSE_ICON:"cancel-bold"};var uo=class extends Jt($t(j)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?C` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:W}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return C`
|
3259
3248
|
${this.renderIcon()}
|
3260
|
-
${this.label?C`<mdc-text part="label" type="${
|
3249
|
+
${this.label?C`<mdc-text part="label" type="${pl.TEXT_TYPE}" tagname="${pl.TAG_NAME}"
|
3261
3250
|
>${this.label}</mdc-text
|
3262
3251
|
>`:W}
|
3263
3252
|
<mdc-button
|
@@ -3265,11 +3254,11 @@
|
|
3265
3254
|
variant="tertiary"
|
3266
3255
|
part="close-icon"
|
3267
3256
|
aria-label="${this.clearAriaLabel}"
|
3268
|
-
prefix-icon="${
|
3257
|
+
prefix-icon="${pl.CLOSE_ICON}"
|
3269
3258
|
size="20"
|
3270
3259
|
@click="${this.handleClose}"
|
3271
3260
|
></mdc-button>
|
3272
|
-
`}};
|
3261
|
+
`}};uo.styles=[...j.styles,...Bu],p([g({type:String})],uo.prototype,"label",2),p([g({type:Boolean})],uo.prototype,"error",2),p([g({type:String,attribute:"clear-aria-label"})],uo.prototype,"clearAriaLabel",2);var id=uo;id.register(hl);var lE=id;var cE=G`
|
3273
3262
|
:host {
|
3274
3263
|
gap: 0.25rem;
|
3275
3264
|
}
|
@@ -3327,10 +3316,10 @@
|
|
3327
3316
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
3328
3317
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
3329
3318
|
}
|
3330
|
-
`,
|
3319
|
+
`,Uu=[cE];var va=class extends Jt(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`
|
3331
3320
|
<slot></slot>
|
3332
3321
|
${this.iconName?C` <mdc-icon name=${this.iconName} size=${this.getIconSize()} length-unit="rem"></mdc-icon> `:W}
|
3333
|
-
`}};va.styles=[...Si.styles,...
|
3322
|
+
`}};va.styles=[...Si.styles,...Uu],p([g({type:String,reflect:!0})],va.prototype,"size",2);var ga=va;ga.register(Vn);var dE=ga;var Hu=Y.constructTagName("linkbutton"),hs={12:12,14:14,16:16},ps={SIZE:hs[16],ROLE:tt.BUTTON,INLINE:Ko.INLINE,INVERTED:Ko.INVERTED};var Gu=l=>{switch(l){case hs[12]:return .75;case hs[14]:return .875;default:return 1}};var hE=G`
|
3334
3323
|
:host {
|
3335
3324
|
--mdc-link-color-disabled: var(--mds-color-theme-text-primary-disabled);
|
3336
3325
|
gap: 0.25rem;
|
@@ -3393,10 +3382,10 @@
|
|
3393
3382
|
:host([soft-disabled]) {
|
3394
3383
|
color: var(--mdc-link-color-disabled);
|
3395
3384
|
}
|
3396
|
-
`,
|
3385
|
+
`,Yu=[hE];var fo=class extends Jt(pe){constructor(){super(...arguments);this.size=ps.SIZE;this.inline=ps.INLINE;this.inverted=ps.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=ps.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(hs).includes(t)?`${t}`:ps.SIZE.toString())}render(){return C`
|
3397
3386
|
<slot></slot>
|
3398
|
-
${this.iconName?C` <mdc-icon name=${this.iconName} size=${
|
3399
|
-
`}};
|
3387
|
+
${this.iconName?C` <mdc-icon name=${this.iconName} size=${Gu(this.size)} length-unit="rem"></mdc-icon> `:W}
|
3388
|
+
`}};fo.styles=[...ga.styles,...Yu],p([g({type:Number,reflect:!0})],fo.prototype,"size",2),p([g({type:Boolean,reflect:!0})],fo.prototype,"inline",2),p([g({type:Boolean,reflect:!0})],fo.prototype,"inverted",2);var od=fo;od.register(Hu);var pE=od;Si.register(xm);var mE=Si;var ml=Y.constructTagName("listitem"),ba={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},sd={VARIANT:ba.FULL_WIDTH,TOOLTIP_PLACEMENT:Ut.TOP};var uE=G`
|
3400
3389
|
:host {
|
3401
3390
|
display: flex;
|
3402
3391
|
flex-direction: column;
|
@@ -3407,11 +3396,11 @@
|
|
3407
3396
|
flex-direction: column;
|
3408
3397
|
gap: 0rem;
|
3409
3398
|
}
|
3410
|
-
`,
|
3399
|
+
`,Wu=[uE];var ya=class extends j{constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.setAttribute("role",tt.LIST)}handleKeyDown(i){var a;let t=this.getCurrentIndex(i.target),o=this.getNewIndexBasedOnKey(i.key,t,this.listItems.length);o!==void 0&&((a=this.listItems[o])==null||a.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(i){return this.listItems.findIndex(t=>t===i||t===i.parentElement)}getNewIndexBasedOnKey(i,t,o){switch(i){case J.ARROW_DOWN:return(t+1)%o;case J.ARROW_UP:return(t-1+o)%o;case J.HOME:return 0;case J.END:return o-1;default:return}}handleMouseClick(i){let t=this.getCurrentIndex(i.target);this.resetTabIndexAndSetActiveTabIndex(t)}resetTabIndexAndSetActiveTabIndex(i){this.listItems.forEach((t,o)=>{let a=i===o?"0":"-1";t==null||t.setAttribute("tabindex",a)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){return C`
|
3411
3400
|
<slot name="list-header"></slot>
|
3412
3401
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
3413
3402
|
<slot part="container" @click="${this.handleMouseClick}" role="presentation"></slot>
|
3414
|
-
`}};ya.styles=[...j.styles,...
|
3403
|
+
`}};ya.styles=[...j.styles,...Wu],p([Lt({selector:`${ml}:not([disabled])`})],ya.prototype,"listItems",2);var ad=ya;var ju=Y.constructTagName("list");ad.register(ju);var fE=ad;var vE=G`
|
3415
3404
|
:host {
|
3416
3405
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
3417
3406
|
--mdc-listheader-gap: 0.5rem;
|
@@ -3438,7 +3427,7 @@
|
|
3438
3427
|
:host::part(postfix-icon) {
|
3439
3428
|
flex-shrink: 0;
|
3440
3429
|
}
|
3441
|
-
`,
|
3430
|
+
`,qu=[vE];var Ci=class extends j{constructor(){super(...arguments);this.disabled=!1}render(){return C`
|
3442
3431
|
${this.prefixIcon?C`<mdc-icon
|
3443
3432
|
part="prefix-icon"
|
3444
3433
|
name="${this.prefixIcon}"
|
@@ -3457,7 +3446,7 @@
|
|
3457
3446
|
size="1"
|
3458
3447
|
length-unit="rem"
|
3459
3448
|
></mdc-icon>`:W}
|
3460
|
-
`}};Ci.styles=[...j.styles,...
|
3449
|
+
`}};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"),ze={DESCRIPTION:"description",LABEL:"label",NONE:"none"},wi={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Ut.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:ze.DESCRIPTION};var bE=G`
|
3461
3450
|
:host {
|
3462
3451
|
--mdc-tooltip-max-width: 400px;
|
3463
3452
|
--mdc-tooltip-padding: 0.75rem;
|
@@ -3481,7 +3470,7 @@
|
|
3481
3470
|
:host([color='contrast'])::part(popover-content) {
|
3482
3471
|
color: var(--mdc-tooltip-text-color-contrast);
|
3483
3472
|
}
|
3484
|
-
`,
|
3473
|
+
`,Xu=[bE];var ms=class extends Oe{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,o;return((o=(t=this.defaultSlotNodes)==null?void 0:t.map(a=>a.textContent).join(" "))==null?void 0:o.trim())||""}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(ze).includes(t)?t:wi.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${ge()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case ze.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case ze.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 o=t.get("tooltipType");if(Object.values(ze).includes(this.tooltipType)||this.setTooltipType(wi.TOOLTIP_TYPE),this.triggerElement){let a=this.getTooltipText();switch(this.tooltipType){case ze.DESCRIPTION:o===ze.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case ze.LABEL:o===ze.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:o===ze.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):o===ze.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==ze.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)}};ms.styles=[...Oe.styles,...Xu],p([g({type:String,attribute:"tooltip-type",reflect:!0})],ms.prototype,"tooltipType",2),p([vn()],ms.prototype,"defaultSlotNodes",2);var ld=ms;ld.register(Ea);var yE=ld;var EE=G`
|
3485
3474
|
:host {
|
3486
3475
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
3487
3476
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -3582,11 +3571,11 @@
|
|
3582
3571
|
display: flex;
|
3583
3572
|
flex-direction: row;
|
3584
3573
|
}
|
3585
|
-
`,
|
3574
|
+
`,Zu=[EE,...At()];var Qu=()=>`listitem-tooltip-popover-${ge()}`,Ju=()=>`listitem-tooltip-triggerid-${ge()}`;var vo=class{static dispatchListItemEvent(i,t){t.dispatchEvent(new Event(i,{composed:!0,bubbles:!0}))}static onDisableListItem(i){this.dispatchListItemEvent("disabled",i)}static onEnableListItem(i){this.dispatchListItemEvent("enabled",i)}static onCreatedListItem(i){setTimeout(()=>{this.dispatchListItemEvent("created",i)},0)}static onDestroyedListItem(i){this.dispatchListItemEvent("destroyed",i)}};var Ae=class extends $t(qe(j)){constructor(){super();this.variant=sd.VARIANT;this.tooltipPlacement=sd.TOOLTIP_PLACEMENT;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("focusin",this.displayTooltipForLongText.bind(this)),this.addEventListener("mouseenter",this.displayTooltipForLongText.bind(this)),this.addEventListener("focusout",this.hideTooltipOnLeave.bind(this)),this.addEventListener("mouseout",this.hideTooltipOnLeave.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||tt.LISTITEM,this.id=this.id||Ju(),vo.onCreatedListItem(this)}disconnectedCallback(){super.disconnectedCallback(),vo.onDestroyedListItem(this)}handleKeyDown(t){(t.key===J.ENTER||t.key===J.SPACE)&&(this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleClick(t){if(this.disabled){t.stopImmediatePropagation(),t.preventDefault();return}this.hideTooltipOnLeave()}displayTooltipForLongText(){var o,a;if(!this.tooltipText)return;this.hideTooltipOnLeave();let t=document.createElement(Ea);t.id=Qu(),t.textContent=this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("placement",this.tooltipPlacement),t.setAttribute("visible",""),t.setAttribute("show-arrow",""),(o=this.parentElement)!=null&&o.hasAttribute("slot")&&t.setAttribute("slot",this.parentElement.getAttribute("slot")||""),(a=this.parentElement)==null||a.after(t)}hideTooltipOnLeave(){let t=document.querySelector(`${Ea}[triggerid="${this.id}"]`);t&&t.remove()}getText(t,o,a){return C`
|
3586
3575
|
<slot name="${t}">
|
3587
3576
|
${a?C`<mdc-text part="${t}" type="${o}" tagname="${gt.SPAN}">${a}</mdc-text>`:W}
|
3588
3577
|
</slot>
|
3589
|
-
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(o=>{t?(o.setAttribute("disabled",""),
|
3578
|
+
`}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(o=>{t?(o.setAttribute("disabled",""),vo.onDisableListItem(this)):(o.removeAttribute("disabled"),vo.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled)),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled)}renderTrailingControls(){return C`<slot
|
3590
3579
|
name="trailing-controls"
|
3591
3580
|
@click=${this.stopEventPropagation}
|
3592
3581
|
@keyup=${this.stopEventPropagation}
|
@@ -3601,20 +3590,20 @@
|
|
3601
3590
|
<div part="leading">
|
3602
3591
|
${this.renderLeadingControls()}
|
3603
3592
|
<div part="leading-text">
|
3604
|
-
${this.getText("leading-text-primary-label",
|
3605
|
-
${this.getText("leading-text-secondary-label",
|
3606
|
-
${this.getText("leading-text-tertiary-label",
|
3593
|
+
${this.getText("leading-text-primary-label",st.BODY_MIDSIZE_REGULAR,this.label)}
|
3594
|
+
${this.getText("leading-text-secondary-label",st.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3595
|
+
${this.getText("leading-text-tertiary-label",st.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3607
3596
|
</div>
|
3608
3597
|
</div>
|
3609
3598
|
<div part="trailing">
|
3610
3599
|
<div part="trailing-text">
|
3611
|
-
${this.getText("trailing-text-side-header",
|
3612
|
-
${this.getText("trailing-text-subline",
|
3600
|
+
${this.getText("trailing-text-side-header",st.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3601
|
+
${this.getText("trailing-text-subline",st.BODY_SMALL_REGULAR,this.sublineText)}
|
3613
3602
|
</div>
|
3614
3603
|
${this.renderTrailingControls()}
|
3615
3604
|
</div>
|
3616
3605
|
</slot>
|
3617
|
-
`}};
|
3606
|
+
`}};Ae.styles=[...j.styles,...Zu],p([Lt({slot:"leading-controls"})],Ae.prototype,"leadingControlsSlot",2),p([Lt({slot:"trailing-controls"})],Ae.prototype,"trailingControlsSlot",2),p([g({type:String,reflect:!0})],Ae.prototype,"variant",2),p([g({type:String,reflect:!0})],Ae.prototype,"label",2),p([g({type:String,reflect:!0,attribute:"secondary-label"})],Ae.prototype,"secondaryLabel",2),p([g({type:String,reflect:!0,attribute:"tertiary-label"})],Ae.prototype,"tertiaryLabel",2),p([g({type:String,reflect:!0,attribute:"side-header-text"})],Ae.prototype,"sideHeaderText",2),p([g({type:String,reflect:!0,attribute:"subline-text"})],Ae.prototype,"sublineText",2),p([g({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ae.prototype,"softDisabled",2),p([g({type:String,reflect:!0,attribute:"tooltip-text"})],Ae.prototype,"tooltipText",2),p([g({type:String,reflect:!0,attribute:"tooltip-placement"})],Ae.prototype,"tooltipPlacement",2);var ii=Ae;ii.register(ml);var TE=ii;var xE=G`
|
3618
3607
|
:host {
|
3619
3608
|
--mdc-marker-width: 0.25rem;
|
3620
3609
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -3639,7 +3628,7 @@
|
|
3639
3628
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3640
3629
|
);
|
3641
3630
|
}
|
3642
|
-
`,
|
3631
|
+
`,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 Xt=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`
|
3643
3632
|
:host {
|
3644
3633
|
display: flex;
|
3645
3634
|
}
|
@@ -3651,7 +3640,7 @@
|
|
3651
3640
|
:host([aria-orientation='vertical']) {
|
3652
3641
|
flex-direction: column;
|
3653
3642
|
}
|
3654
|
-
`,
|
3643
|
+
`,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 i;super.connectedCallback(),this.role=tt.MENUBAR,this.ariaOrientation=sf.ORIENTATION,await this.updateComplete,(i=this.menusections)==null||i.forEach(t=>{t.setAttribute("divider-variant","gradient")})}get menuItems(){var h,m;let i=(h=this.shadowRoot)==null?void 0:h.querySelector("slot"),t=(m=i==null?void 0:i.assignedElements({flatten:!0}))!=null?m:[],o=[],a=T=>{T.role===tt.MENUITEM&&!T.hasAttribute("disabled")?o.push(T):T.tagName.toLowerCase()===oi&&Array.from(T.children).forEach(a)};return t.forEach(a),o}getVisibleSubMenusOfItems(i){let t=[];return!i||i.length===0||i.forEach(o=>{var m;let a=o.getAttribute("id");if(!a)return;let h=(m=document.querySelector)==null?void 0:m.call(document,`${Xt}[triggerid="${a}"]`);h&&h.visible&&t.push(h)}),t}getAllPopovers(){var a,h;if(!this.menuItems.length)return[];let i=(h=(a=this.menuItems[0])==null?void 0:a.closest(Ni))!=null?h:this;if(!i)return[];let t=[],o=m=>{m.querySelectorAll(`${Xt}`).forEach(T=>{t.push(T)}),m.querySelectorAll("slot").forEach(T=>{T.assignedElements({flatten:!0}).forEach(o)})};return o(i),t}update(i){super.update(i)}firstUpdated(i){super.firstUpdated(i),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}handleClick(i){let t=i.target;if(!t||!this.isTopLevelMenuItem(t))return;let o=this.menuItems.filter(h=>h!==t);this.getVisibleSubMenusOfItems(o).forEach(h=>{h.hide()})}resetTabIndexAndSetActiveTabIndex(i){i.forEach((t,o)=>{let a=o===0?"0":"-1";t==null||t.setAttribute("tabindex",a)})}getCurrentIndex(i){return this.menuItems.findIndex(t=>t===i||t===i.parentElement)}getSubmenu(i){if(i)return this.getAllPopovers().find(t=>t.getAttribute("triggerid")===i)}showSubmenu(i){if(!i||!this.menuItems.find(a=>a.getAttribute("id")===i))return;let o=this.getSubmenu(i);o&&o.show()}updatePopoverPlacement(){let i=Ut.RIGHT_START;this.getAllPopovers().forEach(t=>{t.setAttribute("placement",i)})}updateTabIndexAndFocus(i,t,o){var a,h,m;o<0||t<0||(t!==o&&((a=i[t])==null||a.setAttribute("tabindex","-1"),(h=i[o])==null||h.setAttribute("tabindex","0")),(m=i[o])==null||m.focus())}navigateToMenuItem(i,t,o=!1){var m;let{length:a}=this.menuItems;if(a===0)return;let h=i;if(h=t==="prev"?(i-1+a)%a:(i+1)%a,this.updateTabIndexAndFocus(this.menuItems,i,h),o){let T=(m=this.menuItems[h])==null?void 0:m.getAttribute("id");this.getSubmenu(T)&&!this.menuItems[h].hasAttribute("soft-disabled")&&this.showSubmenu(T)}}getKeyWithDirectionFix(i){return window.getComputedStyle(this).direction==="rtl"?i===J.ARROW_LEFT?J.ARROW_RIGHT:i===J.ARROW_RIGHT?J.ARROW_LEFT:i:i}isTopLevelMenuItem(i){var h;let t=i.parentElement;if(!t||i.role!==tt.MENUITEM)return!1;let o=t.tagName.toLowerCase(),a=(h=t.parentElement)==null?void 0:h.tagName.toLowerCase();return o===Aa||o===Ni||o===oi&&(a===Aa||a===Ni)}isNestedMenuItem(i){return!!i.closest(Xt)&&i.role===tt.MENUITEM}async closeAllMenuPopovers(){let i=[];for(;Ee.peek();){let t=Ee.pop();t&&(t.hide(),i.push(t))}await Promise.all(i.map(t=>t.updateComplete))}async crossMenubarNavigationOnLeft(i){if(i.role===tt.MENUITEM){let o=i.closest(Xt),a=o==null?void 0:o.getAttribute("triggerid"),h=this.menuItems.find(m=>m.getAttribute("id")===a);if(h){this.isTopLevelMenuItem(h)&&(o==null||o.hide()),await(o==null?void 0:o.updateComplete);let m=this.getCurrentIndex(h);this.navigateToMenuItem(m,"prev",!0)}}}async crossMenubarNavigationOnRight(i){if(this.isTopLevelMenuItem(i)&&this.getSubmenu(i.id)&&!i.hasAttribute("soft-disabled"))this.showSubmenu(i.id);else if(this.isNestedMenuItem(i)&&!this.getSubmenu(i.id)){await this.closeAllMenuPopovers();let t=this.getParentMenuItemIndex(i);t>=0&&this.navigateToMenuItem(t,"next",!0)}}getParentMenuItemIndex(i){let t=i.parentElement;for(;t;){if(t.tagName.toLowerCase()===Xt){let o=t.getAttribute("triggerid"),a=this.menuItems.find(h=>h.getAttribute("id")===o);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(h=>h===a):this.getParentMenuItemIndex(a)}t=t.parentElement}return-1}async handleKeyDown(i){let t=this.getCurrentIndex(i.target);switch(this.getKeyWithDirectionFix(i.key)){case J.HOME:this.updateTabIndexAndFocus(this.menuItems,t,0);break;case J.END:this.updateTabIndexAndFocus(this.menuItems,t,this.menuItems.length-1);break;case J.ARROW_LEFT:{let a=t>=0?this.menuItems[t]:i.target;await this.crossMenubarNavigationOnLeft(a);break}case J.ARROW_RIGHT:{let a=t>=0?this.menuItems[t]:i.target;await this.crossMenubarNavigationOnRight(a);break}case J.ARROW_UP:{this.navigateToMenuItem(t,"prev"),i.preventDefault();break}case J.ARROW_DOWN:{this.navigateToMenuItem(t,"next"),i.preventDefault();break}default:break}}render(){return C`<slot role="${tt.GROUP}"></slot>`}};Sa.styles=[...j.styles,...af],p([Lt({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`
|
3655
3644
|
:host(:dir(rtl))::part(trailing-arrow),
|
3656
3645
|
:host(:dir(rtl))::part(leading-arrow) {
|
3657
3646
|
transform: rotate(180deg);
|
@@ -3660,23 +3649,23 @@
|
|
3660
3649
|
:host::part(leading-arrow) {
|
3661
3650
|
--mdc-icon-size: 1.25rem;
|
3662
3651
|
}
|
3663
|
-
`,
|
3652
|
+
`,nf=[IE];var Li=class extends ii{constructor(){super();this.name=void 0;this.value=void 0;this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(t){t.key===J.ENTER&&(this.triggerClickEvent(),t.preventDefault())}handleKeyUp(t){t.key===J.SPACE&&(this.triggerClickEvent(),t.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEM,this.variant=ba.INSET_RECTANGLE}renderTrailingControls(){let t=this.arrowDirection===pd.NEGATIVE?Ia.LEFT:Ia.RIGHT;return C`
|
3664
3653
|
<slot
|
3665
3654
|
name="trailing-controls"
|
3666
3655
|
@click=${this.stopEventPropagation}
|
3667
3656
|
@keyup=${this.stopEventPropagation}
|
3668
3657
|
@keydown=${this.stopEventPropagation}
|
3669
3658
|
></slot>
|
3670
|
-
${this.arrowPosition===
|
3671
|
-
`}renderLeadingControls(){let t=this.arrowDirection===
|
3659
|
+
${this.arrowPosition===md.TRAILING?C`<mdc-icon name="${t}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:W}
|
3660
|
+
`}renderLeadingControls(){let t=this.arrowDirection===pd.POSITIVE?Ia.RIGHT:Ia.LEFT;return C`
|
3672
3661
|
<slot
|
3673
3662
|
name="leading-controls"
|
3674
3663
|
@click=${this.stopEventPropagation}
|
3675
3664
|
@keyup=${this.stopEventPropagation}
|
3676
3665
|
@keydown=${this.stopEventPropagation}
|
3677
3666
|
></slot>
|
3678
|
-
${this.arrowPosition===
|
3679
|
-
`}};Li.styles=[...ii.styles,...
|
3667
|
+
${this.arrowPosition===md.LEADING?C`<mdc-icon name="${t}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
|
3668
|
+
`}};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`
|
3680
3669
|
:host {
|
3681
3670
|
--mdc-statictoggle-width: 3rem;
|
3682
3671
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3756,24 +3745,24 @@
|
|
3756
3745
|
border: var(--mdc-statictoggle-border);
|
3757
3746
|
}
|
3758
3747
|
}
|
3759
|
-
`],
|
3748
|
+
`],hf=wE;var us=class extends $t(j){constructor(){super(...arguments);this.checked=!1;this.size=df.SIZE}render(){return C`
|
3760
3749
|
<slot></slot>
|
3761
3750
|
<div part="slider">
|
3762
3751
|
<mdc-icon
|
3763
|
-
name="${this.checked?
|
3752
|
+
name="${this.checked?ud.CHECKED:ud.UNCHECKED}"
|
3764
3753
|
class="icon"
|
3765
3754
|
length-unit="rem"
|
3766
|
-
size="${
|
3755
|
+
size="${cf[this.size]}"
|
3767
3756
|
></mdc-icon>
|
3768
3757
|
</div>
|
3769
|
-
`}};
|
3758
|
+
`}};us.styles=[...j.styles,...hf],p([g({type:Boolean,reflect:!0})],us.prototype,"checked",2),p([g({type:String,reflect:!0})],us.prototype,"size",2);var fd=us;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 ul=Y.constructTagName("menuitemcheckbox"),Ca={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},mf={INDICATOR:Ca.CHECKBOX};var LE=G`
|
3770
3759
|
:host::part(checkmark-icon) {
|
3771
3760
|
--mdc-icon-fill-color: currentColor;
|
3772
3761
|
}
|
3773
3762
|
:host .hidden-checkmark {
|
3774
3763
|
visibility: hidden;
|
3775
3764
|
}
|
3776
|
-
`,
|
3765
|
+
`,uf=[LE];var fs=class extends er{constructor(){super();this.checked=!1;this.indicator=mf.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===Ca.CHECKBOX?C`
|
3777
3766
|
<mdc-staticcheckbox
|
3778
3767
|
slot="leading-controls"
|
3779
3768
|
?checked="${this.checked}"
|
@@ -3798,33 +3787,33 @@
|
|
3798
3787
|
${this.staticCheckbox()}
|
3799
3788
|
<slot name="leading-controls"></slot>
|
3800
3789
|
<div part="leading-text">
|
3801
|
-
${this.getText("leading-text-primary-label",
|
3802
|
-
${this.getText("leading-text-secondary-label",
|
3803
|
-
${this.getText("leading-text-tertiary-label",
|
3790
|
+
${this.getText("leading-text-primary-label",st.BODY_MIDSIZE_REGULAR,this.label)}
|
3791
|
+
${this.getText("leading-text-secondary-label",st.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3792
|
+
${this.getText("leading-text-tertiary-label",st.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3804
3793
|
</div>
|
3805
3794
|
</div>
|
3806
3795
|
<div part="trailing">
|
3807
3796
|
<div part="trailing-text">
|
3808
|
-
${this.getText("trailing-text-side-header",
|
3809
|
-
${this.getText("trailing-text-subline",
|
3797
|
+
${this.getText("trailing-text-side-header",st.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3798
|
+
${this.getText("trailing-text-subline",st.BODY_SMALL_REGULAR,this.sublineText)}
|
3810
3799
|
</div>
|
3811
3800
|
<slot name="trailing-controls"></slot>
|
3812
3801
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
3813
3802
|
</div>
|
3814
|
-
`}};
|
3803
|
+
`}};fs.styles=[...er.styles,...uf],p([g({type:Boolean,reflect:!0})],fs.prototype,"checked",2),p([g({type:String,reflect:!0})],fs.prototype,"indicator",2);var gd=fs;gd.register(ul);var RE=gd;var fl=Y.constructTagName("menuitemradio"),vl={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},ff={INDICATOR:vl.RADIO};var ME=G`
|
3815
3804
|
:host::part(checkmark-icon) {
|
3816
3805
|
--mdc-icon-fill-color: currentColor;
|
3817
3806
|
}
|
3818
3807
|
:host .hidden-checkmark {
|
3819
3808
|
visibility: hidden;
|
3820
3809
|
}
|
3821
|
-
`,
|
3810
|
+
`,vf=[ME];var vs=class extends er{constructor(){super();this.checked=!1;this.indicator=ff.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${oi}, ${Xt}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(o=>{o!==this&&o.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.checked||(this.updateOtherRadiosCheckedState(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===vl.RADIO?C`
|
3822
3811
|
<mdc-staticradio
|
3823
3812
|
slot="leading-controls"
|
3824
3813
|
?checked="${this.checked}"
|
3825
3814
|
?disabled="${this.disabled}"
|
3826
3815
|
></mdc-staticradio>
|
3827
|
-
`:W}renderCheckmarkIcon(){return this.indicator===
|
3816
|
+
`:W}renderCheckmarkIcon(){return this.indicator===vl.CHECKMARK?C`
|
3828
3817
|
<mdc-icon
|
3829
3818
|
slot="trailing-controls"
|
3830
3819
|
name="check-bold"
|
@@ -3836,20 +3825,20 @@
|
|
3836
3825
|
${this.renderStaticRadio()}
|
3837
3826
|
<slot name="leading-controls"></slot>
|
3838
3827
|
<div part="leading-text">
|
3839
|
-
${this.getText("leading-text-primary-label",
|
3840
|
-
${this.getText("leading-text-secondary-label",
|
3841
|
-
${this.getText("leading-text-tertiary-label",
|
3828
|
+
${this.getText("leading-text-primary-label",st.BODY_MIDSIZE_REGULAR,this.label)}
|
3829
|
+
${this.getText("leading-text-secondary-label",st.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3830
|
+
${this.getText("leading-text-tertiary-label",st.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3842
3831
|
</div>
|
3843
3832
|
</div>
|
3844
3833
|
<div part="trailing">
|
3845
3834
|
<div part="trailing-text">
|
3846
|
-
${this.getText("trailing-text-side-header",
|
3847
|
-
${this.getText("trailing-text-subline",
|
3835
|
+
${this.getText("trailing-text-side-header",st.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3836
|
+
${this.getText("trailing-text-subline",st.BODY_SMALL_REGULAR,this.sublineText)}
|
3848
3837
|
</div>
|
3849
3838
|
<slot name="trailing-controls"></slot>
|
3850
3839
|
${this.renderCheckmarkIcon()}
|
3851
3840
|
</div>
|
3852
|
-
`}};
|
3841
|
+
`}};vs.styles=[...er.styles,...vf],p([g({type:Boolean,reflect:!0})],vs.prototype,"checked",2),p([g({type:String,reflect:!0})],vs.prototype,"indicator",2);var bd=vs;bd.register(fl);var OE=bd;var Ri=Y.constructTagName("navmenuitem"),gf={DOT:Ke.DOT,COUNTER:Ke.COUNTER},bf={RIGHT_ARROW:"arrow-right-bold"},yf={MAX_COUNTER:99,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:gt.SPAN,SIZE:Wi[24],VARIANT:Lr.FLEXIBLE};var PE=G`
|
3853
3842
|
:host::part(popover-content) {
|
3854
3843
|
padding: 0.75rem 0.5rem;
|
3855
3844
|
}
|
@@ -3857,7 +3846,7 @@
|
|
3857
3846
|
::slotted(mdc-divider) {
|
3858
3847
|
margin-block: 0.25rem;
|
3859
3848
|
}
|
3860
|
-
`,
|
3849
|
+
`,Ef=[PE];var wa=l=>{var t;if(!l)return!1;let i=(t=l.getAttribute("role"))==null?void 0:t.toLowerCase();return i===tt.MENUITEM||i===tt.MENUITEMCHECKBOX||i===tt.MENUITEMRADIO},yd=l=>{var i;return((i=l==null?void 0:l.tagName)==null?void 0:i.toLowerCase())===Xt};var Na=class extends Oe{constructor(){super();this.placement=dd.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(Ee.peek()!==this)return;let o=t.composedPath(),a=this.contains(t.target)||o.includes(this.triggerElement)||o.includes(this),h=this.backdropElement?o.includes(this.backdropElement):!1;(!a||h)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=()=>{var t;(t=this.triggerElement)!=null&&t.hasAttribute("soft-disabled")||(this.visible?this.hide():this.show())};this.handleItemCreation=t=>{let o=t.target;wa(o)&&(t.stopImmediatePropagation(),o.addEventListener("destroyed",this.handleItemChangeEvent),o.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(o=>o.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let o=!1;this.collectMenuItems();let a=t.target,h=this.getCurrentIndex(a);if(h===-1)return;this.resetTabIndexes(h);let m=window.getComputedStyle(this).direction==="rtl";switch(this.resolveDirectionKey(t.key,m)){case J.HOME:{this.resetTabIndexAndSetFocus(0,h),o=!0;break}case J.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,h),o=!0;break}case J.ARROW_DOWN:{let N=h+1===this.menuItems.length?0:h+1;this.resetTabIndexAndSetFocus(N,h),o=!0;break}case J.ARROW_UP:{let N=h-1===-1?this.menuItems.length-1:h-1;this.resetTabIndexAndSetFocus(N,h),o=!0;break}case J.ARROW_RIGHT:{let N=this.getSubMenuPopoverOfTarget(a);N&&(N.show(),o=!0);break}case J.ARROW_LEFT:{yd(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,h),o=!0);break}case J.ESCAPE:{this.resetTabIndexAndSetFocus(0,h),o=!0;break}case J.ENTER:{this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),o=!0);break}case J.SPACE:{o=!0;break}default:break}o&&(t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let o=!1,a=t.target;switch(t.key){case J.SPACE:{a.matches(`${fl}, ${ul}`)||this.getSubMenuPopoverOfTarget(a)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(a),o=!0);break}default:break}o&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("click",this.handleMouseClick),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var a,h;let o=t.getAttribute("id");return o?(h=(a=this.parentElement)==null?void 0:a.querySelector)==null?void 0:h.call(a,`${Xt}[triggerid="${o}"]`):null}collectMenuItems(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),o=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=o.map(h=>h.tagName.toLowerCase()===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 o=[];return!t||t.length===0||t.forEach(a=>{let h=this.getSubMenuPopoverOfTarget(a);h&&h.visible&&o.push(h)}),o}connectedCallback(){super.connectedCallback(),this.role=tt.MENU,this.ariaOrientation=dd.ORIENTATION,this.backdrop=!1,this.color=ao.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,o){return t===o||!this.triggerElement?Promise.resolve():(o&&(this.backdrop=![_a,Ri].includes(this.triggerElement.tagName.toLowerCase())),o===!1&&this.menuItemsWithSubMenus.forEach(a=>{let h=this.getSubMenuPopoverOfTarget(a);h&&h.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,o))}async firstUpdated(t){var o;await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0),(o=this.triggerElement)==null||o.setAttribute("aria-haspopup",tt.MENU)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(o=>o.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(o=>o===t)}resetTabIndexAndSetFocus(t,o){t!==o&&(this.menuItems[o].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){for(;Ee.peek()!==t&&yd(Ee.peek());){let o=Ee.pop();if(o)o.hide();else break}}closeOtherSubMenusOnSameLevel(t){let o=this.menuItemsWithSubMenus.filter(h=>h!==t);this.getOpenSubMenusOfItems(o).forEach(h=>{h.hide()})}fireMenuItemAction(t){t.matches(_a)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let o=t.target;if(t.stopPropagation(),!(!wa(o)||!t.isTrusted)){if(this.getSubMenuPopoverOfTarget(o)){this.closeOtherSubMenusOnSameLevel(o);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(o)}}resolveDirectionKey(t,o){if(!o)return t;switch(t){case J.ARROW_LEFT:return J.ARROW_RIGHT;case J.ARROW_RIGHT:return J.ARROW_LEFT;default:return t}}};Na.styles=[...Oe.styles,...Ef],p([g({type:String,reflect:!0})],Na.prototype,"placement",2);var Ed=Na;Ed.register(Xt);var DE=Ed;var gl=class{constructor(i,t,o){this.variant=i,this.expanded=t,this.parentNavTooltipText=o}hasSiblingWithTriggerId(i){var a,h;let t=i==null?void 0:i.getAttribute("id");return t?Array.from((h=(a=i==null?void 0:i.parentElement)==null?void 0:a.children)!=null?h:[]).some(m=>m!==i&&m.tagName.toLowerCase()===Xt&&m.getAttribute("triggerid")===t):!1}getParentNavMenuItems(i){if(!i)return[];let t=[],o=i;for(;o;){let a=o==null?void 0:o.closest(Xt);if(!a)break;let h=a.getAttribute("triggerid");if(!h)break;let m=document.getElementById(h);if(m&&m.tagName.toLowerCase()===Ri)t.push(m),o=m;else break}return t}setCurrentActiveNavMenuItem(i){var h;let t=((h=this.currentActiveNavMenuItem)==null?void 0:h.navId)===(i==null?void 0:i.navId),o=(i==null?void 0:i.disableAriaCurrent)||this.hasSiblingWithTriggerId(i)||(i==null?void 0:i.softDisabled);if(t||o||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(T=>{T.removeAttribute("tooltip-text"),T.removeAttribute("tooltip-placement"),T.removeAttribute("active")})),!i))return;this.currentActiveNavMenuItem=i,i.setAttribute("aria-current","page"),i.setAttribute("active",""),this.getParentNavMenuItems(i).forEach(m=>{m.setAttribute("tooltip-text",this.parentNavTooltipText||""),m.setAttribute("tooltip-placement",Ut.BOTTOM),m.setAttribute("active","")})}};gl.context=Ni;var bl=gl;var FE=G`
|
3861
3850
|
:host {
|
3862
3851
|
--mdc-sidenavigation-expanded-width: 15rem;
|
3863
3852
|
--mdc-sidenavigation-collapsed-width: 4.5rem;
|
@@ -3922,7 +3911,7 @@
|
|
3922
3911
|
:host::part(separator) {
|
3923
3912
|
margin-bottom: 0.75rem;
|
3924
3913
|
}
|
3925
|
-
`,
|
3914
|
+
`,Tf=[FE];var vr=class extends Ar{constructor(){super({context:bl.context,initialValue:new bl(xa.VARIANT,!0)});this.variant=xa.VARIANT;this.footerText="";this.flexibleExpanded=this.variant===xa.VARIANT;this.arrowDirection=this.flexibleExpanded?xe.NEGATIVE:xe.POSITIVE;this.handleNestedNavMenuItemActiveChange=t=>{var o;if((o=this.context)!=null&&o.value){let a=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(a)}};this.findNav=(t,o)=>t.find(a=>a.navId===o);this.updateExpansionState=()=>{switch(this.variant){case Lr.FLEXIBLE:this.expanded=this.flexibleExpanded;break;case Lr.FIXED_EXPANDED:this.expanded=!0;break;case Lr.FIXED_COLLAPSED:this.expanded=!1;break;default:}};this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.NAVIGATION}static get Context(){return bl.context}updated(t){super.updated(t),t.has("variant")&&(this.setVariant(this.variant),this.updateExpansionState()),(t.has("variant")||t.has("expanded"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.parentNavTooltipText!==this.parentNavTooltipText)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.parentNavTooltipText=this.parentNavTooltipText,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${Ri}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(Lr).includes(t)?t:xa.VARIANT)}toggleSideNavigation(){this.flexibleExpanded=!this.flexibleExpanded,this.arrowDirection=this.arrowDirection===xe.NEGATIVE?xe.POSITIVE:xe.NEGATIVE,this.updateExpansionState()}preventScrollOnSpace(t){t.key===J.SPACE&&t.preventDefault()}render(){var t;return this.variant===Lr.HIDDEN?C``:C`
|
3926
3915
|
<div part="side-navigation-container" id="side-nav-container">
|
3927
3916
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
3928
3917
|
<slot name="scrollable-section">
|
@@ -3940,17 +3929,17 @@
|
|
3940
3929
|
</slot>
|
3941
3930
|
<div part="brand-logo-container">
|
3942
3931
|
<slot name="brand-logo"></slot>
|
3943
|
-
${this.expanded?C`<mdc-text type=${
|
3932
|
+
${this.expanded?C`<mdc-text type=${st.BODY_MIDSIZE_MEDIUM} tagname=${gt.SPAN} part="label"
|
3944
3933
|
>${this.footerText}</mdc-text
|
3945
3934
|
>`:W}
|
3946
3935
|
</div>
|
3947
3936
|
</div>
|
3948
3937
|
</div>
|
3949
3938
|
${this.variant===Lr.FLEXIBLE?C`<mdc-divider
|
3950
|
-
orientation=${
|
3939
|
+
orientation=${po.VERTICAL}
|
3951
3940
|
variant=${ma.GRADIENT}
|
3952
3941
|
arrow-direction=${this.arrowDirection}
|
3953
|
-
button-position=${
|
3942
|
+
button-position=${xe.POSITIVE}
|
3954
3943
|
>
|
3955
3944
|
<mdc-button
|
3956
3945
|
aria-label=${(t=this.grabberBtnAriaLabel)!=null?t:""}
|
@@ -3960,7 +3949,7 @@
|
|
3960
3949
|
part="grabber-btn"
|
3961
3950
|
></mdc-button>
|
3962
3951
|
</mdc-divider>`:W}
|
3963
|
-
`}};vr.styles=[...j.styles,...
|
3952
|
+
`}};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([xt()],vr.prototype,"flexibleExpanded",2),p([xt()],vr.prototype,"arrowDirection",2);var go=vr;var $E=G`
|
3964
3953
|
:host {
|
3965
3954
|
display: flex;
|
3966
3955
|
flex-direction: column;
|
@@ -3978,16 +3967,16 @@
|
|
3978
3967
|
:host(:dir(rtl))::part(align-header) {
|
3979
3968
|
padding-right: 1.75rem;
|
3980
3969
|
}
|
3981
|
-
`,
|
3970
|
+
`,xf=[$E];var Rr=class extends j{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=of.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Sr.consume({host:this,context:go.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",tt.GROUP)}update(t){var h;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let o=(h=this.sideNavigationContext)==null?void 0:h.value;if(!o)return;let{expanded:a}=o;this.hideHeaderText=!a}renderHeader(){var t,o;return this.headerText?C` <mdc-listheader
|
3982
3971
|
part="header ${(o=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&o.expanded?"align-header":""}"
|
3983
3972
|
header-text="${this.headerText}"
|
3984
|
-
prefix-icon="${
|
3973
|
+
prefix-icon="${ot(this.prefixIcon)}"
|
3985
3974
|
>
|
3986
3975
|
</mdc-listheader>`:null}render(){return C`
|
3987
3976
|
${this.hideHeaderText?null:this.renderHeader()}
|
3988
3977
|
<slot></slot>
|
3989
3978
|
${this.showDivider?C`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
3990
|
-
`}};Rr.styles=[...j.styles,...
|
3979
|
+
`}};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=[Et,G`
|
3991
3980
|
:host {
|
3992
3981
|
--mdc-navmenuitem-color: var(--mds-color-theme-text-primary-normal);
|
3993
3982
|
--mdc-navmenuitem-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4132,9 +4121,9 @@
|
|
4132
4121
|
left: -0.75rem;
|
4133
4122
|
top: 0.875rem;
|
4134
4123
|
}
|
4135
|
-
`,...At()],
|
4124
|
+
`,...At()],Af=VE;var rr=class extends Jt(er){constructor(){super();this.maxCounter=yf.MAX_COUNTER;this.ariaLabel=null;this.sideNavigationContext=Sr.consume({host:this,context:go.Context});this.emitNavMenuItemActiveChange=t=>{let o=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(o)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,this.tooltipPlacement=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}updated(){var o,a;let t=(o=this.sideNavigationContext)==null?void 0:o.value;if(t)if(this.showLabel=this.isNested()?!0:t.expanded,this.showLabel)this.removeAttribute("aria-label");else{let h=(a=this.label)!=null?a:"";this.ariaLabel=this.ariaLabel||h,this.setAttribute("aria-label",h)}}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===Xt)return!0;t=t.parentElement}return!1}modifyIconName(t){if(!this.iconName)return;let o=this.iconName.endsWith("-filled"),a=qi(this.iconName);t?o||(this.prevIconName=this.iconName,this.iconName=`${a}-filled`):this.prevIconName&&(this.iconName=this.prevIconName)}handleClickEvent(){this.disabled||this.emitNavMenuItemActiveChange(this.active)}update(t){super.update(t),t.has("active")&&this.modifyIconName(this.active)}renderTextLabel(t){return C`
|
4136
4125
|
<mdc-text
|
4137
|
-
type=${this.active?
|
4126
|
+
type=${this.active?st.BODY_MIDSIZE_BOLD:st.BODY_MIDSIZE_MEDIUM}
|
4138
4127
|
tagname=${gt.SPAN}
|
4139
4128
|
part="text-container"
|
4140
4129
|
>
|
@@ -4145,8 +4134,8 @@
|
|
4145
4134
|
`}renderBadge(t){let o=t?"":"badge";return Object.values(gf).includes(this.badgeType)?C`
|
4146
4135
|
<mdc-badge
|
4147
4136
|
class="${o}"
|
4148
|
-
type="${
|
4149
|
-
counter="${
|
4137
|
+
type="${ot(this.badgeType)}"
|
4138
|
+
counter="${ot(this.counter)}"
|
4150
4139
|
max-counter="${this.maxCounter}"
|
4151
4140
|
>
|
4152
4141
|
</mdc-badge>
|
@@ -4157,7 +4146,7 @@
|
|
4157
4146
|
</div>
|
4158
4147
|
${this.showLabel?C`${this.renderTextLabel(this.label)}${this.renderBadge(this.showLabel)}`:W}
|
4159
4148
|
${t!=null&&t.hasSiblingWithTriggerId(this)?this.renderArrowIcon(this.showLabel):W}
|
4160
|
-
`}};rr.styles=[...er.styles,...
|
4149
|
+
`}};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(Ri);var BE=xd;var Sf=Y.constructTagName("optgroup"),Ad="header-id";var UE=G`
|
4161
4150
|
:host {
|
4162
4151
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
4163
4152
|
}
|
@@ -4170,24 +4159,24 @@
|
|
4170
4159
|
color: var(--mdc-optgroup-disabled-color);
|
4171
4160
|
cursor: default;
|
4172
4161
|
}
|
4173
|
-
`,
|
4162
|
+
`,_f=[UE];var gs=class extends re($t(j)){setDisabledForAllOptions(){this.options.forEach(i=>{this.disabled?i.setAttribute("disabled",""):i.removeAttribute("disabled")})}updated(i){super.updated(i),i.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let i=this.label?C`
|
4174
4163
|
<mdc-text
|
4175
|
-
id="${
|
4164
|
+
id="${Ad}"
|
4176
4165
|
part="header-text"
|
4177
|
-
type="${
|
4166
|
+
type="${st.BODY_MIDSIZE_BOLD}"
|
4178
4167
|
tagname="${gt.SPAN}"
|
4179
4168
|
>${this.label}</mdc-text
|
4180
4169
|
>
|
4181
4170
|
`:W;return C`
|
4182
4171
|
<div
|
4183
4172
|
role="${tt.GROUP}"
|
4184
|
-
aria-labelledby="${this.label?
|
4173
|
+
aria-labelledby="${this.label?Ad:""}"
|
4185
4174
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
4186
4175
|
>
|
4187
4176
|
${i}
|
4188
4177
|
<slot role="${tt.PRESENTATION}"></slot>
|
4189
4178
|
</div>
|
4190
|
-
`}};gs.styles=[...j.styles,...
|
4179
|
+
`}};gs.styles=[...j.styles,..._f],p([g({type:String,reflect:!0})],gs.prototype,"label",2),p([Lt({selector:"mdc-option"})],gs.prototype,"options",2);var Sd=gs;Sd.register(Sf);var HE=Sd;var If="check-bold",bo=Y.constructTagName("option");var GE=G`
|
4191
4180
|
:host {
|
4192
4181
|
--mdc-option-icon-width: 1rem;
|
4193
4182
|
|
@@ -4213,18 +4202,18 @@
|
|
4213
4202
|
/** 2x of leading and trailing icon width + 2x of column gap on both sides of the label text */
|
4214
4203
|
width: calc(100% - (2 * var(--mdc-option-icon-width)) - (2 * var(--mdc-listitem-column-gap)));
|
4215
4204
|
}
|
4216
|
-
`,
|
4205
|
+
`,kf=[GE];var yo=class extends Pe(ii){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=ba.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`
|
4217
4206
|
<div part="leading-icon">
|
4218
|
-
<mdc-icon length-unit="rem" slot="leading-controls" name="${
|
4207
|
+
<mdc-icon length-unit="rem" slot="leading-controls" name="${ot(this.prefixIcon)}"></mdc-icon>
|
4219
4208
|
</div>
|
4220
|
-
`:W,o=this.selected?C` <mdc-icon length-unit="rem" slot="trailing-controls" name="${
|
4209
|
+
`:W,o=this.selected?C` <mdc-icon length-unit="rem" slot="trailing-controls" name="${If}"></mdc-icon> `:W;return C`
|
4221
4210
|
${t}
|
4222
4211
|
<div part="leading-text">
|
4223
|
-
${this.getText("leading-text-primary-label",
|
4224
|
-
${this.getText("leading-text-secondary-label",
|
4212
|
+
${this.getText("leading-text-primary-label",st.BODY_MIDSIZE_REGULAR,this.label)}
|
4213
|
+
${this.getText("leading-text-secondary-label",st.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
4225
4214
|
</div>
|
4226
4215
|
<div part="trailing">${o}</div>
|
4227
|
-
`}};
|
4216
|
+
`}};yo.styles=[...ii.styles,...kf],p([g({type:Boolean,reflect:!0})],yo.prototype,"selected",2),p([g({type:String,reflect:!0,attribute:"prefix-icon"})],yo.prototype,"prefixIcon",2),p([g({type:String,reflect:!0,attribute:"aria-label"})],yo.prototype,"ariaLabel",2);var _d=yo;_d.register(bo);var YE=_d;var Id={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Cf=Y.constructTagName("password");var Eo=class extends ri{constructor(){super(...arguments);this.showHideButtonAriaLabel="";this.helpTextType=Pt.VALIDATION;this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let o=t||this.value;return o?C`
|
4228
4217
|
<mdc-button
|
4229
4218
|
part="trailing-button"
|
4230
4219
|
class="own-focus-ring ${o?"":"hidden"}"
|
@@ -4233,9 +4222,9 @@
|
|
4233
4222
|
size="${Pt.ICON_SIZE}"
|
4234
4223
|
@click=${this.toggleShowPassword}
|
4235
4224
|
aria-label=${this.showHideButtonAriaLabel}
|
4236
|
-
prefix-icon=${this.showPassword?
|
4225
|
+
prefix-icon=${this.showPassword?Id.HIDE_BOLD:Id.SHOW_BOLD}
|
4237
4226
|
></mdc-button>
|
4238
|
-
`:W}renderInputElement(t,o){let a=this.showPassword?
|
4227
|
+
`:W}renderInputElement(t,o){let a=this.showPassword?ds.TEXT:ds.PASSWORD;return super.renderInputElement(a,o)}};Eo.styles=[...ri.styles],p([g({type:String,attribute:"show-hide-button-aria-label"})],Eo.prototype,"showHideButtonAriaLabel",2),p([g({type:String,attribute:"help-text-type"})],Eo.prototype,"helpTextType",2),p([xt()],Eo.prototype,"showPassword",2);var kd=Eo;kd.register(Cf);var WE=kd;Oe.register(vu);var jE=Oe;var wf=Y.constructTagName("progressbar"),yl={DEFAULT:"default",INLINE:"inline"},Nf={VARIANT:yl.DEFAULT,VALIDATION:Yt.DEFAULT};var qE=[Et,G`
|
4239
4228
|
:host {
|
4240
4229
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
4241
4230
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -4322,7 +4311,7 @@
|
|
4322
4311
|
border: var(--mdc-progressbar-border);
|
4323
4312
|
}
|
4324
4313
|
}
|
4325
|
-
`],
|
4314
|
+
`],Lf=qE;var To=class extends re(tr){constructor(){super(...arguments);this.variant=Nf.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var h;let t=this.getValidationVariant(),o=this.clampedValue>0&&this.clampedValue<100,a=this.error?"100":`${this.clampedValue}`;return C`
|
4326
4315
|
<div
|
4327
4316
|
part="progress-container ${o?"gap":""}"
|
4328
4317
|
role="${tt.PROGRESSBAR}"
|
@@ -4334,15 +4323,15 @@
|
|
4334
4323
|
<div part="progress-bar ${t}" style="width: ${a}%"></div>
|
4335
4324
|
<div part="remaining"></div>
|
4336
4325
|
</div>
|
4337
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${
|
4326
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${ge()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=Yt.ERROR:this.clampedValue===100?this.helpTextType=Yt.SUCCESS:this.helpTextType=Yt.DEFAULT,this.helpTextType}render(){let t=this.variant===yl.INLINE;return C`
|
4338
4327
|
${t?C`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:C`
|
4339
4328
|
<div part="label-container">
|
4340
4329
|
${this.renderLabelElement()}
|
4341
|
-
${this.variant===
|
4330
|
+
${this.variant===yl.DEFAULT&&this.label?C`<span part="percentage">${this.clampedValue}%</span>`:""}
|
4342
4331
|
</div>
|
4343
4332
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
4344
4333
|
`}
|
4345
|
-
`}};
|
4334
|
+
`}};To.styles=[...tr.styles,...Lf],p([g({type:String,reflect:!0})],To.prototype,"variant",2),p([g({type:String,reflect:!0})],To.prototype,"value",2),p([g({type:Boolean,attribute:"error"})],To.prototype,"error",2);var La=To;La.register(wf);var KE=La;var Rf=Y.constructTagName("progressspinner"),Zt={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Cd={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var wd=l=>{if(l===0)return 0;let i=l/100*Zt.CIRCUMFERENCE-Zt.GAP_SIZE;return Math.max(i,.1*l)},Mf=l=>{let i=Zt.CIRCUMFERENCE-wd(l)-2*Zt.GAP_SIZE;return l===0?Zt.CIRCUMFERENCE:i<0?0:i},Of=l=>l===0?0:Zt.GAP_SIZE*.5,Pf=(l,i)=>{let t=i+Zt.GAP_SIZE*1.5;return l===0?0:t};var XE=G`
|
4346
4335
|
:host {
|
4347
4336
|
--mdc-spinner-size: 3rem;
|
4348
4337
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
@@ -4386,7 +4375,7 @@
|
|
4386
4375
|
color: var(--mdc-progress-error-color);
|
4387
4376
|
margin: 0.5rem;
|
4388
4377
|
}
|
4389
|
-
`,
|
4378
|
+
`,Df=[XE];var El=class extends La{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var h;let i=wd(this.clampedValue),t=Mf(this.clampedValue),o=Of(this.clampedValue),a=Pf(this.clampedValue,i);return C`
|
4390
4379
|
<div
|
4391
4380
|
part="spinner-container ${this.variant}"
|
4392
4381
|
role="${tt.PROGRESSBAR}"
|
@@ -4420,7 +4409,7 @@
|
|
4420
4409
|
<mdc-icon
|
4421
4410
|
part="error-icon"
|
4422
4411
|
aria-label="${(i=this.dataAriaLabel)!=null?i:""}"
|
4423
|
-
name="${
|
4412
|
+
name="${Cd.ERROR_LEGACY_FILLED}"
|
4424
4413
|
size="${Zt.ERROR_ICON_SIZE}"
|
4425
4414
|
length-unit="${Zt.ICON_LENGTH_UNIT}"
|
4426
4415
|
></mdc-icon>
|
@@ -4428,11 +4417,11 @@
|
|
4428
4417
|
<mdc-icon
|
4429
4418
|
part="success-icon"
|
4430
4419
|
aria-label="${(i=this.dataAriaLabel)!=null?i:""}"
|
4431
|
-
name="${
|
4420
|
+
name="${Cd.CHECK_CIRCLE_BOLD}"
|
4432
4421
|
size="${Zt.SUCCESS_ICON_SIZE}"
|
4433
4422
|
length-unit="${Zt.ICON_LENGTH_UNIT}"
|
4434
4423
|
></mdc-icon>
|
4435
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():C` ${this.renderProgressSpinner()}`}};
|
4424
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():C` ${this.renderProgressSpinner()}`}};El.styles=[...j.styles,...Df];var Nd=El;Nd.register(Rf);var ZE=Nd;var QE=[Et,G`
|
4436
4425
|
:host {
|
4437
4426
|
display: flex;
|
4438
4427
|
flex-direction: row;
|
@@ -4517,7 +4506,7 @@
|
|
4517
4506
|
:host::part(required-indicator) {
|
4518
4507
|
display: none;
|
4519
4508
|
}
|
4520
|
-
`,...At(!0)],
|
4509
|
+
`,...At(!0)],Ff=QE;var xo=class extends Pe(re(Te)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?C`<div class="mdc-radio__label-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(o=>{o.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(o=>{this.onerror&&this.onerror(o)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,o){this.updateComplete.then(()=>{t.forEach(a=>{a.setComponentValidity(o)})}).catch(a=>{this.onerror&&this.onerror(a)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let o=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(o,!0);else{let a=o.some(T=>T.required),h=!!o.find(T=>T.checked),m=a&&!h;this.setGroupValidity(o,!m)}this.internals.setFormValue(t)}handleChange(){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(h=>{var T;let m=(T=h.shadowRoot)==null?void 0:T.querySelector("input");m&&(h.checked=!1,m.checked=!1)}),this.checked=!0;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("input");o&&(o.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}updateRadio(t,o){var a,h;(h=(a=t[o].shadowRoot)==null?void 0:a.querySelector("input"))==null||h.focus(),t[o].handleChange()}handleKeyDown(t){var m;if(this.disabled)return;let a=this.getAllRadiosWithinSameGroup().filter(T=>!T.disabled),h=a.indexOf(this);if(["ArrowDown","ArrowRight"].includes(t.key)){let T=(h+1)%a.length;this.updateRadio(a,T)}else if(["ArrowUp","ArrowLeft"].includes(t.key)){let T=(h-1+a.length)%a.length;this.updateRadio(a,T)}else t.key===J.SPACE&&this.updateRadio(a,h);this.updateTabIndex(),t.key===J.ENTER&&((m=this.form)==null||m.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),o=t.find(h=>h.checked),a=t.find(h=>!h.disabled);t.forEach(h=>{var T;let m=(T=h.shadowRoot)==null?void 0:T.querySelector("input");m&&(m.tabIndex=-1,(h===o||!o&&h===a)&&(m.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return C`
|
4521
4510
|
<mdc-staticradio
|
4522
4511
|
class="mdc-focus-ring"
|
4523
4512
|
?checked="${this.checked}"
|
@@ -4529,8 +4518,8 @@
|
|
4529
4518
|
type="radio"
|
4530
4519
|
role="${tt.RADIO}"
|
4531
4520
|
?autofocus="${this.autofocus}"
|
4532
|
-
name="${
|
4533
|
-
value="${
|
4521
|
+
name="${ot(this.name)}"
|
4522
|
+
value="${ot(this.value)}"
|
4534
4523
|
?required="${this.required}"
|
4535
4524
|
@change=${this.handleChange}
|
4536
4525
|
@keydown=${this.handleKeyDown}
|
@@ -4539,12 +4528,12 @@
|
|
4539
4528
|
?disabled=${this.disabled}
|
4540
4529
|
class="mdc-radio__input"
|
4541
4530
|
aria-checked="${this.checked}"
|
4542
|
-
aria-describedby="${
|
4531
|
+
aria-describedby="${ot(this.helpText?Pt.HELPER_TEXT_ID:"")}"
|
4543
4532
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
4544
4533
|
/>
|
4545
4534
|
</mdc-staticradio>
|
4546
4535
|
${this.renderLabelAndHelperText()}
|
4547
|
-
`}};
|
4536
|
+
`}};xo.styles=[...Te.styles,...Ff],p([g({type:Boolean,reflect:!0})],xo.prototype,"checked",2),p([g({type:Boolean,reflect:!0})],xo.prototype,"readonly",2),p([g({type:Boolean,reflect:!0})],xo.prototype,"autofocus",2);var Ld=xo;var Tl=Y.constructTagName("radio");Ld.register(Tl);var JE=Ld;var Ra=class extends cl{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,o,a,h,m;(m=(h=(a=(o=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:o.flatMap(T=>T.assignedElements({flatten:!0})))==null?void 0:a.filter(T=>T.tagName.toLowerCase()===Tl||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=[...cl.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`
|
4548
4537
|
:host::part(filters-container) {
|
4549
4538
|
display: flex;
|
4550
4539
|
gap: 0.25rem;
|
@@ -4569,7 +4558,7 @@
|
|
4569
4558
|
position: relative;
|
4570
4559
|
scrollbar-width: none;
|
4571
4560
|
}
|
4572
|
-
|
4561
|
+
`,zf=[eT];var Vf=Y.constructTagName("searchfield"),Ma={TYPE:ds.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:hl};var Ao=class extends ri{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(t){super.handleKeyDown(t),t.key===J.ESCAPE&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=Ma.ICON,this.trailingButton=Ma.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(o=>{o.matches(Ma.INPUT_CHIP_TAG)||o.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(o=>{o.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return C`
|
4573
4562
|
${this.renderLabelElement()}
|
4574
4563
|
<div
|
4575
4564
|
class="${kr({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}"
|
@@ -4589,7 +4578,7 @@
|
|
4589
4578
|
</div>
|
4590
4579
|
${this.renderTrailingButton(this.hasInputChips)}
|
4591
4580
|
</div>
|
4592
|
-
`}};
|
4581
|
+
`}};Ao.styles=[...ri.styles,...zf],p([Lt({slot:"filters"})],Ao.prototype,"inputChips",2),p([xt()],Ao.prototype,"isInputFocused",2),p([xt()],Ao.prototype,"hasInputChips",2);var Md=Ao;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`
|
4593
4582
|
:host {
|
4594
4583
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
4595
4584
|
--mdc-select-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -4678,6 +4667,7 @@
|
|
4678
4667
|
}
|
4679
4668
|
:host mdc-popover::part(popover-content) {
|
4680
4669
|
max-height: var(--mdc-popover-max-height);
|
4670
|
+
min-width: auto;
|
4681
4671
|
padding: 0.75rem 0.5rem;
|
4682
4672
|
}
|
4683
4673
|
|
@@ -4709,7 +4699,7 @@
|
|
4709
4699
|
:host([soft-disabled])::part(base-text) {
|
4710
4700
|
color: var(--mdc-select-text-color-disabled);
|
4711
4701
|
}
|
4712
|
-
`,
|
4702
|
+
`,Uf=[iT,...At(!0)];var fe=class extends Pe(re(Te)){constructor(){super(...arguments);this.readonly=!1;this.placement=Ut.BOTTOM_START;this.boundary=kt.BOUNDARY;this.strategy=kt.STRATEGY;this.popoverZIndex=kt.Z_INDEX;this.displayPopover=!1;this.initialSelectedOption=null}getAllValidOptions(){var t;return Array.from(((t=this.slottedListboxes[0])==null?void 0:t.querySelectorAll(`${bo}:not([disabled])`))||[])}getFirstValidOption(){var t;return(t=this.slottedListboxes[0])==null?void 0:t.querySelector(`${bo}:not([disabled])`)}getLastValidOption(){let t=this.getAllValidOptions();return t.length>0?t[t.length-1]:null}getFirstSelectedOption(){var t;return(t=this.slottedListboxes[0])==null?void 0:t.querySelector(`${bo}[selected]:not([disabled])`)}async firstUpdated(){await this.updateComplete,this.modifyListBoxWrapper();let t=this.getFirstSelectedOption();if(t)this.initialSelectedOption=t,this.setSelectedOption(t);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let o=this.getFirstValidOption();this.setSelectedOption(o),this.fireEvents()}}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1),t.has("dataAriaLabel")&&this.modifyListBoxWrapper()}modifyListBoxWrapper(){let t=this.slottedListboxes[0];t&&(t.setAttribute("id",Pd),t.setAttribute("aria-label",this.dataAriaLabel||""),t.setAttribute("aria-labelledby",Oa))}handleOptionsClick(t){let o=t.target;o&&o.tagName===bo.toUpperCase()&&!o.hasAttribute("disabled")&&!o.hasAttribute("soft-disabled")&&(this.setSelectedOption(o),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var o,a,h;this.updateSelectedInChildOptions(t),this.updateTabIndexForAllOptions(t),this.selectedOption=t,this.value=(a=(o=this.selectedOption)==null?void 0:o.value)!=null?a:"",this.internals.setFormValue(this.value),(h=this.inputElement)==null||h.setAttribute("value",this.value),this.setInputValidity()}updateTabIndexForAllOptions(t){let o=this.getAllValidOptions(),a=t||o[0];o.forEach(h=>{h.setAttribute("tabindex",h===a?"0":"-1")})}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.getAllValidOptions().forEach(a=>{a!==t&&a.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,o;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(o=this.inputElement)==null||o.setCustomValidity(""),this.setValidity()}formResetCallback(){var o;let t=this.initialSelectedOption||null;((o=this.selectedOption)==null?void 0:o.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var a;let o=this.getAllValidOptions().find(h=>h.value===t||h.label===t);((a=this.selectedOption)==null?void 0:a.value)!==(o==null?void 0:o.value)&&(this.setSelectedOption(o||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleKeydownCombobox(t){if(!(this.disabled||this.softDisabled||this.readonly))switch(t.key){case J.ARROW_DOWN:case J.ARROW_UP:this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case J.ENTER:case J.SPACE:this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case J.HOME:{this.displayPopover=!0;let o=this.getFirstValidOption();o&&(o==null||o.focus(),this.updateTabIndexForAllOptions(o)),t.preventDefault();break}case J.END:{this.displayPopover=!0;let o=this.getLastValidOption();o&&(o.focus(),this.updateTabIndexForAllOptions(o)),t.preventDefault();break}default:break}}handlePopoverKeydown(t){let o=null;switch(t.key){case J.HOME:{o=this.getFirstValidOption();break}case J.END:{o=this.getLastValidOption();break}case J.ARROW_DOWN:{let a=this.getAllValidOptions(),h=a.findIndex(T=>T===t.target),m=Math.min(h+1,a.length-1);o=a[m];break}case J.ARROW_UP:{let a=this.getAllValidOptions(),h=a.findIndex(T=>T===t.target),m=Math.max(h-1,0);o=a[m];break}case J.PAGE_DOWN:{let a=this.getAllValidOptions(),h=a.findIndex(T=>T===t.target),m=Math.min(h+10,a.length-1);o=a[m];break}case J.PAGE_UP:{let a=this.getAllValidOptions(),h=a.findIndex(T=>T===t.target),m=Math.max(h-10,0);o=a[m];break}default:break}o&&(this.focusAndUpdateTabIndexes(o),t.preventDefault(),t.stopPropagation())}focusAndUpdateTabIndexes(t){t&&(t.focus(),this.updateTabIndexForAllOptions(t))}handleNativeInputFocus(){this.visualCombobox.focus()}updateState(){var o;let t=this.getFirstSelectedOption();this.inputElement&&(t?((o=this.selectedOption)==null?void 0:o.value)!==t.value&&this.setSelectedOption(t):this.setSelectedOption(this.placeholder?null:this.getFirstValidOption()))}render(){var t,o,a,h,m,T;return C`
|
4713
4703
|
${this.renderLabel()}
|
4714
4704
|
<div part="container">
|
4715
4705
|
<div
|
@@ -4720,15 +4710,15 @@
|
|
4720
4710
|
tabindex="${this.disabled?"-1":"0"}"
|
4721
4711
|
class="${this.disabled?"":"mdc-focus-ring"}"
|
4722
4712
|
role="${tt.COMBOBOX}"
|
4723
|
-
aria-controls="${
|
4713
|
+
aria-controls="${Pd}"
|
4724
4714
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
4725
4715
|
aria-labelledby="${this.label?Pt.HEADING_ID:""}"
|
4726
4716
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
4727
4717
|
aria-haspopup="${tt.LISTBOX}"
|
4728
4718
|
aria-required="${this.required?"true":"false"}"
|
4729
4719
|
aria-invalid="${this.helpTextType===Yt.ERROR?"true":"false"}"
|
4730
|
-
aria-disabled="${
|
4731
|
-
aria-readonly="${
|
4720
|
+
aria-disabled="${ot(this.disabled||this.softDisabled)}"
|
4721
|
+
aria-readonly="${ot(this.readonly)}"
|
4732
4722
|
>
|
4733
4723
|
${(o=this.selectedOption)!=null&&o.prefixIcon?C`<mdc-icon
|
4734
4724
|
length-unit="rem"
|
@@ -4738,16 +4728,16 @@
|
|
4738
4728
|
></mdc-icon>`:W}
|
4739
4729
|
<mdc-text
|
4740
4730
|
part="base-text ${(h=this.selectedOption)!=null&&h.label?"selected":""}"
|
4741
|
-
type="${
|
4731
|
+
type="${st.BODY_MIDSIZE_REGULAR}"
|
4742
4732
|
tagname="${gt.SPAN}"
|
4743
4733
|
>
|
4744
|
-
${(T=(
|
4734
|
+
${(T=(m=this.selectedOption)==null?void 0:m.label)!=null?T:this.placeholder}
|
4745
4735
|
</mdc-text>
|
4746
4736
|
<div part="icon-container">
|
4747
4737
|
<mdc-icon
|
4748
4738
|
size="1"
|
4749
4739
|
length-unit="rem"
|
4750
|
-
name="${this.displayPopover?
|
4740
|
+
name="${this.displayPopover?Od.ARROW_UP:Od.ARROW_DOWN}"
|
4751
4741
|
></mdc-icon>
|
4752
4742
|
</div>
|
4753
4743
|
</div>
|
@@ -4764,7 +4754,7 @@
|
|
4764
4754
|
aria-hidden="true"
|
4765
4755
|
@focus=${this.handleNativeInputFocus}
|
4766
4756
|
@invalid=${this.setInputValidity}
|
4767
|
-
aria-disabled="${
|
4757
|
+
aria-disabled="${ot(this.disabled||this.softDisabled)}"
|
4768
4758
|
/>
|
4769
4759
|
<mdc-popover
|
4770
4760
|
trigger="manual"
|
@@ -4774,22 +4764,26 @@
|
|
4774
4764
|
?visible="${this.displayPopover}"
|
4775
4765
|
role=""
|
4776
4766
|
backdrop
|
4767
|
+
backdrop-append-to="${ot(this.backdropAppendTo)}"
|
4768
|
+
is-backdrop-invisible
|
4777
4769
|
hide-on-outside-click
|
4778
4770
|
hide-on-escape
|
4779
4771
|
focus-back-to-trigger
|
4780
4772
|
focus-trap
|
4781
4773
|
size
|
4782
|
-
boundary="${
|
4783
|
-
strategy="${
|
4774
|
+
boundary="${ot(this.boundary)}"
|
4775
|
+
strategy="${ot(this.strategy)}"
|
4784
4776
|
placement="${this.placement}"
|
4785
4777
|
@closebyescape="${()=>{this.displayPopover=!1}}"
|
4786
4778
|
@closebyoutsideclick="${()=>{this.displayPopover=!1}}"
|
4779
|
+
z-index="${ot(this.popoverZIndex)}"
|
4780
|
+
exportparts="popover-content"
|
4787
4781
|
>
|
4788
4782
|
<slot @click="${this.handleOptionsClick}"></slot>
|
4789
4783
|
</mdc-popover>
|
4790
4784
|
</div>
|
4791
4785
|
${this.renderHelperText()}
|
4792
|
-
`}};
|
4786
|
+
`}};fe.styles=[...Te.styles,...Uf],p([g({type:String})],fe.prototype,"placeholder",2),p([g({type:Boolean})],fe.prototype,"readonly",2),p([g({type:String,reflect:!0})],fe.prototype,"placement",2),p([g({type:Boolean,attribute:"soft-disabled",reflect:!0})],fe.prototype,"softDisabled",2),p([g({type:String,reflect:!0,attribute:"boundary"})],fe.prototype,"boundary",2),p([g({type:String,reflect:!0,attribute:"strategy"})],fe.prototype,"strategy",2),p([g({type:Number,reflect:!0,attribute:"popover-z-index"})],fe.prototype,"popoverZIndex",2),p([g({type:String,reflect:!0,attribute:"backdrop-append-to"})],fe.prototype,"backdropAppendTo",2),p([Lt({selector:"mdc-selectlistbox"})],fe.prototype,"slottedListboxes",2),p([Hr(`[id="${Oa}"]`)],fe.prototype,"visualCombobox",2),p([xt()],fe.prototype,"selectedOption",2),p([xt()],fe.prototype,"displayPopover",2);var Dd=fe;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;go.register(Ni);var aT=go;var Gf=Y.constructTagName("skeleton"),Yf={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Wf={VARIANT:Yf.RECTANGULAR};var nT=G`
|
4793
4787
|
:host {
|
4794
4788
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
4795
4789
|
--mdc-skeleton-height: 100%;
|
@@ -4826,7 +4820,7 @@
|
|
4826
4820
|
::slotted(*) {
|
4827
4821
|
visibility: hidden;
|
4828
4822
|
}
|
4829
|
-
`,
|
4823
|
+
`,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 o;let t=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return C`<slot @slotchange=${this.checkSlotContent}></slot>`}};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=[Et,G`
|
4830
4824
|
:host {
|
4831
4825
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
4832
4826
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -4890,11 +4884,11 @@
|
|
4890
4884
|
stroke-dashoffset: -292;
|
4891
4885
|
}
|
4892
4886
|
}
|
4893
|
-
`],
|
4887
|
+
`],qf=cT;var Kf=Y.constructTagName("spinner"),dT={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},hT={STANDALONE:"standalone",BUTTON:"button"},xl={VARIANT:hT.STANDALONE,SIZE:dT.MIDSIZE,INVERTED:!1};var Mi=class extends j{constructor(){super(...arguments);this.inverted=xl.INVERTED;this.size=xl.SIZE;this.ariaLabel=null;this.variant=xl.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?tt.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return C`
|
4894
4888
|
<svg part="container" viewBox="0 0 100 100">
|
4895
4889
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
4896
4890
|
</svg>
|
4897
|
-
`}};
|
4891
|
+
`}};Mi.styles=[...j.styles,...qf],p([g({type:Boolean,reflect:!0})],Mi.prototype,"inverted",2),p([g({type:String,reflect:!0})],Mi.prototype,"size",2),p([g({type:String,attribute:"aria-label"})],Mi.prototype,"ariaLabel",2),p([g({type:String,reflect:!0})],Mi.prototype,"variant",2);var Vd=Mi;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"},Al={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},Gd={VARIANT:Hd.INLINE,STATUS:si.NOT_STARTED};var Sl=Y.constructTagName("stepper"),Da={ORIENTATION:Bd.HORIZONTAL,VARIANT:Hd.INLINE};var _l=class{constructor(i,t){this.orientation=i,this.variant=t}};_l.context=Sl;var Il=_l;var uT=G`
|
4898
4892
|
:host {
|
4899
4893
|
gap: 0.5rem;
|
4900
4894
|
}
|
@@ -4931,7 +4925,7 @@
|
|
4931
4925
|
padding-top: 0.9375rem;
|
4932
4926
|
margin: 0 -3rem;
|
4933
4927
|
}
|
4934
|
-
`,
|
4928
|
+
`,Qf=[Et,uT];var bs=class extends Ar{constructor(){super({context:Il.context,initialValue:new Il(Da.ORIENTATION,Da.VARIANT)});this.orientation=Da.ORIENTATION;this.variant=Da.VARIANT}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}static get Context(){return Il.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> `}};bs.styles=[...j.styles,...Qf],p([g({type:String,reflect:!0})],bs.prototype,"orientation",2),p([g({type:String,reflect:!0})],bs.prototype,"variant",2);var So=bs;So.register(Sl);var fT=So;var vT=G`
|
4935
4929
|
:host {
|
4936
4930
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
4937
4931
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
@@ -4966,7 +4960,7 @@
|
|
4966
4960
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
4967
4961
|
}
|
4968
4962
|
}
|
4969
|
-
`,
|
4963
|
+
`,Jf=[vT];var ys=class extends j{constructor(){super(...arguments);this.status=Ud.STATUS;this.orientation=Ud.ORIENTATION;this.stepperContext=Sr.consume({host:this,context:So.Context})}updated(t){var a;super.updated(t);let o=(a=this.stepperContext)==null?void 0:a.value;!o||!o.orientation||(this.orientation=o.orientation)}render(){return C` <div part="connector"></div> `}};ys.styles=[...j.styles,...Jf],p([g({type:String,reflect:!0})],ys.prototype,"status",2),p([g({type:String,reflect:!0})],ys.prototype,"orientation",2);var Yd=ys;Yd.register(Xf);var gT=Yd;var bT=G`
|
4970
4964
|
:host {
|
4971
4965
|
gap: 0.5rem;
|
4972
4966
|
border-radius: 0.25rem;
|
@@ -5123,23 +5117,23 @@
|
|
5123
5117
|
:host([status='error-incomplete']:active) {
|
5124
5118
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
5125
5119
|
}
|
5126
|
-
`,
|
5120
|
+
`,tv=[Et,bT,...At()];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:So.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var a;super.updated(t);let o=(a=this.stepperContext)==null?void 0:a.value;!o||!o.variant||(this.variant=o.variant)}connectedCallback(){super.connectedCallback(),this.role=tt.LISTITEM}handleKeyDown(t){[J.ENTER,J.SPACE].includes(t.key)&&(this.classList.add("pressed"),t.key===J.ENTER&&this.triggerClickEvent(),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){[J.ENTER,J.SPACE].includes(t.key)&&(this.classList.remove("pressed"),t.key===J.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===si.COMPLETED?C`<mdc-icon part="status-icon" name=${Al.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===si.ERROR_CURRENT||this.status===si.CURRENT?C`<mdc-icon part="status-icon" name=${Al.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=${gt.SPAN} type=${st.BODY_MIDSIZE_REGULAR}
|
5127
5121
|
>${this.stepNumber}</mdc-text
|
5128
5122
|
>`:W}renderHelpText(){if(!this.helpText)return W;let t=C`<mdc-text
|
5129
5123
|
part="help-text"
|
5130
5124
|
tagname=${gt.SPAN}
|
5131
|
-
type=${
|
5125
|
+
type=${st.BODY_MIDSIZE_REGULAR}
|
5132
5126
|
>${this.helpText}</mdc-text
|
5133
5127
|
>`;return this.status===si.ERROR_INCOMPLETE||this.status===si.ERROR_CURRENT?C`<div part="help-text-container">
|
5134
|
-
<mdc-icon part="help-icon" name=${
|
5128
|
+
<mdc-icon part="help-icon" name=${Al.ERROR} length-unit="rem" size="1"></mdc-icon>
|
5135
5129
|
${t}
|
5136
5130
|
</div>`:t}render(){return C` <div part="status-container">${this.renderStatusIcon()}</div>
|
5137
5131
|
<div part="label-container">
|
5138
|
-
${this.label?C`<mdc-text part="label" tagname=${gt.SPAN} type=${
|
5132
|
+
${this.label?C`<mdc-text part="label" tagname=${gt.SPAN} type=${st.BODY_MIDSIZE_REGULAR}
|
5139
5133
|
>${this.label}</mdc-text
|
5140
5134
|
>`:W}
|
5141
5135
|
${this.renderHelpText()}
|
5142
|
-
</div>`}};ai.styles=[...j.styles,...
|
5136
|
+
</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"},kl={VARIANT:jd.PILL,ACTIVE:!1};var ET=[Et,G`
|
5143
5137
|
:host {
|
5144
5138
|
--mdc-tab-content-gap: 0.5rem;
|
5145
5139
|
--mdc-tab-height: 2rem;
|
@@ -5381,11 +5375,11 @@
|
|
5381
5375
|
background-color: var(--mdc-tab-pill-active-background-color-disabled);
|
5382
5376
|
color: var(--mdc-tab-pill-active-color-disabled);
|
5383
5377
|
}
|
5384
|
-
`,...At()],
|
5378
|
+
`,...At()],rv=ET;var Oi=class extends Jt(pe){constructor(){super(...arguments);this.active=kl.ACTIVE;this.variant=kl.VARIANT;this.handleTabActiveChange=t=>{let o=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(o)}}connectedCallback(){super.connectedCallback(),this.role=tt.TAB,this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${qi(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(jd).includes(t)?t:kl.VARIANT)}setActive(t,o){super.setActive(t,o),this.modifyIconName(o)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return C`
|
5385
5379
|
<div part="container">
|
5386
5380
|
${this.iconName?C` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:W}
|
5387
5381
|
${this.text?C` <mdc-text
|
5388
|
-
type=${this.active?
|
5382
|
+
type=${this.active?st.BODY_MIDSIZE_BOLD:st.BODY_MIDSIZE_MEDIUM}
|
5389
5383
|
tagname=${gt.SPAN}
|
5390
5384
|
data-text=${this.text}
|
5391
5385
|
part="text"
|
@@ -5395,7 +5389,7 @@
|
|
5395
5389
|
<slot name="chip"></slot>
|
5396
5390
|
</div>
|
5397
5391
|
<div part="indicator"></div>
|
5398
|
-
`}};
|
5392
|
+
`}};Oi.styles=[...pe.styles,...rv],p([g({type:Boolean,reflect:!0})],Oi.prototype,"active",2),p([g({type:String,reflect:!0})],Oi.prototype,"text",2),p([g({type:String,reflect:!0})],Oi.prototype,"variant",2),p([g({type:String,reflect:!0,attribute:"tab-id"})],Oi.prototype,"tabId",2);var ir=Oi;ir.register(ev);var TT=ir;var xT=[xn,G`
|
5399
5393
|
:host {
|
5400
5394
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
5401
5395
|
--mdc-tablist-gap: 0.5rem;
|
@@ -5425,16 +5419,16 @@
|
|
5425
5419
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
5426
5420
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
5427
5421
|
}
|
5428
|
-
`],
|
5422
|
+
`],iv=[...xT];var ov=Y.constructTagName("tablist"),Fa={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Es={FORWARD:"forward",BACKWARD:"backward"};var Cl=l=>l[0],qd=l=>l[l.length-1],sv=(l,i)=>{let t=l.findIndex(o=>i===o)-1;return l[(t+l.length)%l.length]},av=(l,i)=>{let t=l.findIndex(o=>i===o)+1;return l[t%l.length]},nv=(l,i)=>l.find(t=>t.tabId===i),Kd=l=>l.find(i=>i.active);var gr=class extends j{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("activechange",this.handleNestedTabActiveChange)}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}async firstUpdated(){var a,h,m;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.tabs.map(T=>T.tabId);new Set(t).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(a=Cl(this.tabs))==null?void 0:a.tabId),(h=this.tabsContainer)==null||h.addEventListener("focusin",this.handleFocus.bind(this)),(m=this.tabsContainer)==null||m.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,o;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus),(o=this.tabsContainer)==null||o.removeEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let o=nv(this.tabs,this.activeTabId);if(!(o instanceof ir))return;this.setActiveTab(o),t.get("activeTabId")?(this.fireTabChangeEvent(o),await this.focusTab(o)):this.resetTabIndexAndSetNewTabIndex(o)}}fireTabChangeEvent(t){let o=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(o)}async handleFocus(t){if(t.relatedTarget instanceof ir||!(t.target instanceof ir))return;let o=Kd(this.tabs||[]);o instanceof ir&&await this.focusTab(o)}handleMousedown(t){t.target instanceof ir&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let o=t.target;o instanceof ir&&(this.setActiveTab(o),await this.focusTab(o),this.activeTabId=o.tabId)}resetTabIndexAndSetNewTabIndex(t){var o;(o=this.tabs)==null||o.forEach(a=>{a.setAttribute("tabindex",a===t?"0":"-1")})}setActiveTab(t){var o;(o=this.tabs)==null||o.forEach(a=>{a===t?a.setAttribute("active",""):a.removeAttribute("active")})}async focusTab(t){t instanceof ir&&(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility())}async handleKeydown(t){let o=t.target;if(!(o instanceof ir)||!this.tabs)return;let a=sv(this.tabs,o),h=av(this.tabs,o),m=Cl(this.tabs),T=qd(this.tabs);switch(t.code){case Fa.LEFT:t.preventDefault(),await this.focusTab(this.isRtl()?h:a);break;case Fa.RIGHT:t.preventDefault(),await this.focusTab(this.isRtl()?a:h);break;case Fa.HOME:await this.focusTab(m);break;case Fa.END:await this.focusTab(T);break;default:}}shouldShowArrowButton(t){return t===Es.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,o;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Kd(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((o=this.notFocusedArrowButton)==null||o.focus())}async handleArrowButtonVisibility(){var K,nt,Q;if(!this.tabs||!this.tabsContainer)return;let t=!1;((K=this.shadowRoot)==null?void 0:K.activeElement)instanceof Ki&&(t=!0);let o=Cl(this.tabs),a=qd(this.tabs),h=o.getBoundingClientRect().left,m=(nt=this.tabsContainer)==null?void 0:nt.getBoundingClientRect().left,T=a.getBoundingClientRect().right,N=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().right,$=o.getBoundingClientRect().right,q=a.getBoundingClientRect().left;if(!this.isRtl()){h<=m?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,T>N?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}$>N?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,q<m?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()}async scrollTabs(t){var h;let o=this.isRtl()?-1:1,a=this.isRtl()?1:-1;(h=this.tabsContainer)==null||h.scrollBy({left:this.tabsContainer.clientWidth*(t===Es.FORWARD?o:a),behavior:"instant"}),await this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",o=this.isRtl()?"right":"left",a=h=>C` ${this.shouldShowArrowButton(h)?C`<mdc-button
|
5429
5423
|
variant="tertiary"
|
5430
5424
|
prefix-icon="arrow-${h===Es.FORWARD?t:o}-regular"
|
5431
5425
|
aria-label="Scroll tabs ${h===Es.FORWARD?t:o}"
|
5432
5426
|
@click="${()=>this.scrollTabs(h)}"
|
5433
5427
|
></mdc-button>`:W}`;return C` ${a("backward")}
|
5434
|
-
<div class="container" role="${tt.TABLIST}" tabindex="-1" aria-label="${
|
5428
|
+
<div class="container" role="${tt.TABLIST}" tabindex="-1" aria-label="${ot(this.dataAriaLabel)}">
|
5435
5429
|
<slot></slot>
|
5436
5430
|
</div>
|
5437
|
-
${a(Es.FORWARD)}`}};gr.styles=[...j.styles,...
|
5431
|
+
${a(Es.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([Lt({selector:"mdc-tab"})],gr.prototype,"tabs",2),p([xt()],gr.prototype,"showForwardArrowButton",2),p([xt()],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"},wl={CHARACTER_COUNTER_TYPE:st.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Zd.SOFT};var ST=[G`
|
5438
5432
|
:host {
|
5439
5433
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
5440
5434
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -5553,8 +5547,8 @@
|
|
5553
5547
|
opacity: 0;
|
5554
5548
|
pointer-events: none;
|
5555
5549
|
}
|
5556
|
-
`,...At(!0)],
|
5557
|
-
<mdc-text part="character-counter" tagname="span" type=${
|
5550
|
+
`,...At(!0)],dv=ST;var ne=class extends Pe(re(tr)){constructor(){super(...arguments);this.readonly=!1;this.rows=wl.ROWS;this.cols=wl.COLS;this.wrap=Zd.SOFT;this.autocapitalize=dl.OFF;this.autocomplete=cv.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(o=>{this.onerror&&this.onerror(o)})}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Yt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(t,o,a){super.attributeChangedCallback(t,o,a),["maxlength","minlength","required"].includes(t)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(m=>{this.onerror&&this.onerror(m)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(t){this.updateValue();let o=t.constructor;this.dispatchEvent(new o(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?C`
|
5551
|
+
<mdc-text part="character-counter" tagname="span" type=${wl.CHARACTER_COUNTER_TYPE}>
|
5558
5552
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
5559
5553
|
</mdc-text>
|
5560
5554
|
`:W}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?W:C` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}render(){var t;return C`
|
@@ -5569,24 +5563,24 @@
|
|
5569
5563
|
?disabled="${this.disabled}"
|
5570
5564
|
?readonly="${this.readonly}"
|
5571
5565
|
?required="${this.required}"
|
5572
|
-
placeholder=${
|
5573
|
-
rows=${
|
5574
|
-
cols=${
|
5575
|
-
wrap=${
|
5566
|
+
placeholder=${ot(this.placeholder)}
|
5567
|
+
rows=${ot(this.rows)}
|
5568
|
+
cols=${ot(this.cols)}
|
5569
|
+
wrap=${ot(this.wrap)}
|
5576
5570
|
?autofocus="${this.autofocus}"
|
5577
5571
|
autocapitalize=${this.autocapitalize}
|
5578
5572
|
autocomplete=${this.autocomplete}
|
5579
|
-
minlength=${
|
5580
|
-
maxlength=${
|
5581
|
-
dirname=${
|
5573
|
+
minlength=${ot(this.minlength)}
|
5574
|
+
maxlength=${ot(this.maxlength)}
|
5575
|
+
dirname=${ot(this.dirname)}
|
5582
5576
|
@input=${this.updateValue}
|
5583
5577
|
@change=${this.onChange}
|
5584
|
-
aria-describedby="${
|
5578
|
+
aria-describedby="${ot(this.helpText?Pt.HELPER_TEXT_ID:"")}"
|
5585
5579
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
5586
5580
|
></textarea>
|
5587
5581
|
</div>
|
5588
5582
|
${this.renderTextareaFooter()}
|
5589
|
-
`}};ne.styles=[...tr.styles,...
|
5583
|
+
`}};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`
|
5590
5584
|
:host {
|
5591
5585
|
display: block;
|
5592
5586
|
position: relative;
|
@@ -5600,18 +5594,18 @@
|
|
5600
5594
|
.typewriter-hidden {
|
5601
5595
|
display: none;
|
5602
5596
|
}
|
5603
|
-
`],
|
5597
|
+
`],hv=IT;var pv=Y.constructTagName("typewriter"),_o={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},ni={TYPE:me.TYPE,TEXT_ELEMENT_TAGNAME:me.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var br=class extends j{constructor(){super(...arguments);this.type=ni.TYPE;this.tagname=ni.TEXT_ELEMENT_TAGNAME;this.speed=ni.SPEED;this.maxQueueSize=Number.MAX_SAFE_INTEGER;this.displayedText="";this.originalText="";this.currentIndex=0;this.typingTimeout=null;this.pendingTimeouts=new Set;this.textChunkQueue=[];this.previousTextContent="";this.typingComplete=!0}connectedCallback(){super.connectedCallback(),this.createTimeout(()=>{this.captureAndProcessContent()},0)}disconnectedCallback(){this.clearTypingAnimation(),this.clearAllTimeouts(),super.disconnectedCallback()}createTimeout(t,o){let a=window.setTimeout(()=>{this.pendingTimeouts.delete(a),t()},o);return this.pendingTimeouts.add(a),a}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,o,a){t&&(this.maxQueueSize<Number.MAX_SAFE_INTEGER&&this.textChunkQueue.length>=this.maxQueueSize&&this.textChunkQueue.splice(0,this.textChunkQueue.length-this.maxQueueSize+1),this.textChunkQueue.push({text:t,speed:o,instant:a}),this.processChunkQueue())}addInstantTextChunk(t){this.addTextChunk(t,void 0,!0)}processChunkQueue(){this.textChunkQueue.length>0&&this.processNextChunk()}processNextChunk(){if(this.textChunkQueue.length===0)return;let t=this.textChunkQueue.shift(),o=this.speed;t.speed!==void 0&&(this.speed=t.speed),this.originalText+=t.text,this.typingComplete=!1,t.instant?(this.displayedText=this.originalText,this.currentIndex=this.originalText.length,this.typingComplete=!0,this.requestUpdate(),t.speed!==void 0&&(this.speed=o),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(ni.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=o),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(ni.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return _o.SLOW;case"fast":return _o.FAST;case"very-slow":return _o.VERY_SLOW;case"very-fast":return _o.VERY_FAST;case"normal":return _o.NORMAL;default:{let o=parseInt(t,10);return Number.isNaN(o)?_o.NORMAL:Math.max(10,o)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector("slot");if(!t)return;let o=t.assignedNodes().filter(h=>h.nodeType===Node.TEXT_NODE||h.nodeType===Node.ELEMENT_NODE).map(h=>h.textContent||"").join("");o!==this.previousTextContent&&(this.displayedText===""||!o.includes(this.displayedText)?(this.originalText=o,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=o,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=o,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let o=()=>{if(this.currentIndex<this.originalText.length){let a=this.originalText[this.currentIndex],h=this.displayedText+a;h!==this.displayedText&&(this.displayedText=h,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(o,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(ni.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(o,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return C`
|
5604
5598
|
<div part="${ni.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
|
5605
5599
|
<mdc-text
|
5606
5600
|
part="${ni.CSS_PART_TEXT}"
|
5607
5601
|
type="${this.type}"
|
5608
|
-
tagname="${
|
5602
|
+
tagname="${ot(this.tagname)}"
|
5609
5603
|
aria-label="${this.originalText}"
|
5610
5604
|
>${this.displayedText}</mdc-text
|
5611
5605
|
>
|
5612
5606
|
<slot @slotchange=${this.handleSlotChange} class="typewriter-hidden"></slot>
|
5613
5607
|
</div>
|
5614
|
-
`}};br.styles=[...j.styles,...
|
5608
|
+
`}};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([xt()],br.prototype,"displayedText",2),p([xt()],br.prototype,"originalText",2),p([xt()],br.prototype,"typingComplete",2);var Jd=br;Jd.register(pv);var kT=Jd;var Nl=Y.constructTagName("themeprovider"),th={THEMECLASS:"mds-theme-stable-darkWebex"};var Ll=class{constructor(i){this.themeclass=i}};Ll.context=Nl;var Rl=Ll;var CT=G`
|
5615
5609
|
:host {
|
5616
5610
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
5617
5611
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -5638,7 +5632,7 @@
|
|
5638
5632
|
* {
|
5639
5633
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
5640
5634
|
}
|
5641
|
-
`,
|
5635
|
+
`,mv=[CT];var Ts=class extends Ar{constructor(){super({context:Rl.context,initialValue:new Rl(th.THEMECLASS)});this.themeclass=th.THEMECLASS}static get Context(){return Rl.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(" "))}};Ts.styles=[...Ar.styles,...mv],p([xt()],Ts.prototype,"currentThemeClass",2),p([g({type:String})],Ts.prototype,"themeclass",2);var eh=Ts;eh.register(Nl);var wT=eh;var uv=Y.constructTagName("toast"),$a={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ml={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},De={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 Ml.SUCCESS_ICON_NAME;case $a.WARNING:return Ml.WARNING_ICON_NAME;case $a.ERROR:return Ml.ERROR_ICON_NAME;default:return null}};var NT=G`
|
5642
5636
|
:host {
|
5643
5637
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
5644
5638
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
@@ -5723,7 +5717,7 @@
|
|
5723
5717
|
mdc-text::part(text) {
|
5724
5718
|
margin: 0;
|
5725
5719
|
}
|
5726
|
-
`,
|
5720
|
+
`,vv=[NT];var Se=class extends Zo(j){constructor(){super(...arguments);this.variant=De.VARIANT;this.headerTagName=De.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,o;this.hasDetailedSlot=(o=(t=this.detailedElements)==null?void 0:t.some(a=>{var h;return(h=a.textContent)==null?void 0:h.trim()}))!=null?o:!1}updateFooterButtonsPresence(){var t,o,a,h;this.hasFooterButtons=((o=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?o:0)>0||((h=(a=this.footerButtonSecondary)==null?void 0:a.length)!=null?h:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?C`
|
5727
5721
|
<mdc-icon
|
5728
5722
|
name="${t}"
|
5729
5723
|
size="${De.PREFIX_ICON_SIZE}"
|
@@ -5741,7 +5735,7 @@
|
|
5741
5735
|
<mdc-text
|
5742
5736
|
part="toast-header"
|
5743
5737
|
tagname="${this.headerTagName}"
|
5744
|
-
type="${
|
5738
|
+
type="${st.BODY_LARGE_BOLD}"
|
5745
5739
|
>
|
5746
5740
|
${this.headerText}
|
5747
5741
|
</mdc-text>
|
@@ -5759,7 +5753,7 @@
|
|
5759
5753
|
</div>
|
5760
5754
|
</slot>`}render(){var t;return C`
|
5761
5755
|
<div part="content-container">
|
5762
|
-
${this.variant===De.VARIANT?C`<slot name="content-prefix"></slot>`:C`${this.renderIcon((t=
|
5756
|
+
${this.variant===De.VARIANT?C`<slot name="content-prefix"></slot>`:C`${this.renderIcon((t=fv(this.variant))!=null?t:"")}`}
|
5763
5757
|
<div part="toast-content">
|
5764
5758
|
${this.renderHeader()}
|
5765
5759
|
<slot name="toast-body-normal"></slot>
|
@@ -5772,12 +5766,12 @@
|
|
5772
5766
|
prefix-icon="${De.CANCEL_ICON}"
|
5773
5767
|
variant="${De.TERTIARY_BUTTON}"
|
5774
5768
|
size="${De.CLOSE_ICON_SIZE}"
|
5775
|
-
aria-label="${
|
5769
|
+
aria-label="${ot(this.closeButtonAriaLabel)}"
|
5776
5770
|
@click="${this.closeToast}"
|
5777
5771
|
></mdc-button>
|
5778
5772
|
</div>
|
5779
5773
|
${this.renderFooter()}
|
5780
|
-
`}};
|
5774
|
+
`}};Se.styles=[...j.styles,...vv],p([g({type:String,reflect:!0})],Se.prototype,"variant",2),p([g({type:String,attribute:"close-button-aria-label"})],Se.prototype,"closeButtonAriaLabel",2),p([g({type:String,reflect:!0,attribute:"header-text"})],Se.prototype,"headerText",2),p([g({type:String,reflect:!0,attribute:"header-tag-name"})],Se.prototype,"headerTagName",2),p([g({type:String,reflect:!0,attribute:"aria-label"})],Se.prototype,"ariaLabel",2),p([g({type:String,reflect:!0,attribute:"show-more-text"})],Se.prototype,"showMoreText",2),p([g({type:String,reflect:!0,attribute:"show-less-text"})],Se.prototype,"showLessText",2),p([xt()],Se.prototype,"isDetailVisible",2),p([xt()],Se.prototype,"hasDetailedSlot",2),p([Lt({slot:"toast-body-detailed",flatten:!0})],Se.prototype,"detailedElements",2),p([xt()],Se.prototype,"hasFooterButtons",2);var rh=Se;rh.register(uv);var LT=rh;var RT=[Et,G`
|
5781
5775
|
:host {
|
5782
5776
|
--mdc-toggle-width: 3rem;
|
5783
5777
|
--mdc-toggle-height: 1.5rem;
|
@@ -5863,7 +5857,7 @@
|
|
5863
5857
|
:host([disabled]) .mdc-help-text {
|
5864
5858
|
color: var(--mdc-toggle-label-color-disabled);
|
5865
5859
|
}
|
5866
|
-
`,...At(!0)],
|
5860
|
+
`,...At(!0)],gv=RT;var Io=class extends Pe(re(tr)){constructor(){super(...arguments);this.checked=!1;this.size=vd.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(t){var o;t.key===J.ENTER&&((o=this.form)==null||o.requestSubmit())}handleChange(t){this.toggleState();let o=t.constructor;this.dispatchEvent(new o(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ka).includes(t)?t:vd.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return C`
|
5867
5861
|
<mdc-statictoggle
|
5868
5862
|
?checked="${this.checked}"
|
5869
5863
|
?disabled="${this.disabled}"
|
@@ -5878,12 +5872,12 @@
|
|
5878
5872
|
role="${tt.CHECKBOX}"
|
5879
5873
|
?autofocus="${this.autofocus}"
|
5880
5874
|
?required="${this.required}"
|
5881
|
-
name="${
|
5882
|
-
value="${
|
5875
|
+
name="${ot(this.name)}"
|
5876
|
+
value="${ot(this.value)}"
|
5883
5877
|
.checked="${this.checked}"
|
5884
5878
|
aria-checked="${this.checked}"
|
5885
5879
|
.disabled="${this.disabled}"
|
5886
|
-
aria-describedby="${
|
5880
|
+
aria-describedby="${ot(this.helpText?Pt.HELPER_TEXT_ID:"")}"
|
5887
5881
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
5888
5882
|
tabindex="${this.disabled?-1:0}"
|
5889
5883
|
@change="${this.handleChange}"
|
@@ -5891,10 +5885,10 @@
|
|
5891
5885
|
/>
|
5892
5886
|
</mdc-statictoggle>
|
5893
5887
|
${this.renderLabel()} ${this.renderHelperText()}
|
5894
|
-
`}};
|
5888
|
+
`}};Io.styles=[...tr.styles,...gv],p([g({type:Boolean,reflect:!0})],Io.prototype,"checked",2),p([g({type:String,reflect:!0})],Io.prototype,"size",2),p([g({type:Boolean,reflect:!0})],Io.prototype,"autofocus",2);var ih=Io;ih.register(pf);var MT=ih;function ko(l,i,t){var h;let o=(h=t.initialDeps)!=null?h:[],a;return()=>{var m,T,N,$;let q;t.key&&((m=t.debug)!=null&&m.call(t))&&(q=Date.now());let K=l();if(!(K.length!==o.length||K.some((rt,dt)=>o[dt]!==rt)))return a;o=K;let Q;if(t.key&&((T=t.debug)!=null&&T.call(t))&&(Q=Date.now()),a=i(...K),t.key&&((N=t.debug)!=null&&N.call(t))){let rt=Math.round((Date.now()-q)*100)/100,dt=Math.round((Date.now()-Q)*100)/100,ut=dt/16,Tt=(St,Ct)=>{for(St=String(St);St.length<Ct;)St=" "+St;return St};console.info(`%c\u23F1 ${Tt(dt,5)} /${Tt(rt,5)} ms`,`
|
5895
5889
|
font-size: .6rem;
|
5896
5890
|
font-weight: bold;
|
5897
|
-
color: hsl(${Math.max(0,Math.min(120-120*ut,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,a),a}}function Ml(l,i){if(l===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return l}var gv=(l,i)=>Math.abs(l-i)<1,bv=(l,i,t)=>{let o;return function(...a){l.clearTimeout(o),o=l.setTimeout(()=>i.apply(this,a),t)}};var MT=l=>l,OT=l=>{let i=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),o=[];for(let a=i;a<=t;a++)o.push(a);return o},Ev=(l,i)=>{let t=l.scrollElement;if(!t)return;let o=l.targetWindow;if(!o)return;let a=u=>{let{width:T,height:N}=u;i({width:Math.round(T),height:Math.round(N)})};if(a(t.getBoundingClientRect()),!o.ResizeObserver)return()=>{};let h=new o.ResizeObserver(u=>{let T=u[0];if(T!=null&&T.borderBoxSize){let N=T.borderBoxSize[0];if(N){a({width:N.inlineSize,height:N.blockSize});return}}a(t.getBoundingClientRect())});return h.observe(t,{box:"border-box"}),()=>{h.unobserve(t)}},yv={passive:!0};var PT=typeof window>"u"?!0:"onscrollend"in window,Tv=(l,i)=>{let t=l.scrollElement;if(!t)return;let o=l.targetWindow;if(!o)return;let a=0,h=l.options.useScrollendEvent&&PT?()=>{}:bv(o,()=>{i(a,!1)},l.options.isScrollingResetDelay),u=$=>()=>{let{horizontal:q,isRtl:K}=l.options;a=q?t.scrollLeft*(K&&-1||1):t.scrollTop,h(),i(a,$)},T=u(!0),N=u(!1);return N(),t.addEventListener("scroll",T,yv),t.addEventListener("scrollend",N,yv),()=>{t.removeEventListener("scroll",T),t.removeEventListener("scrollend",N)}};var DT=(l,i,t)=>{if(i!=null&&i.borderBoxSize){let o=i.borderBoxSize[0];if(o)return Math.round(o[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var xv=(l,{adjustments:i=0,behavior:t},o)=>{var a,h;let u=l+i;(h=(a=o.scrollElement)==null?void 0:a.scrollTo)==null||h.call(a,{[o.options.horizontal?"left":"top"]:u,behavior:t})},Ol=class{constructor(i){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,o=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(a=>{a.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var a;(a=o())==null||a.disconnect(),t=null},observe:a=>{var h;return(h=o())==null?void 0:h.observe(a,{box:"border-box"})},unobserve:a=>{var h;return(h=o())==null?void 0:h.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([o,a])=>{typeof a>"u"&&delete t[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:MT,rangeExtractor:OT,onChange:()=>{},measureElement:DT,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var o,a;(a=(o=this.options).onChange)==null||a.call(o,this,t)},this.maybeNotify=Io(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var a;var t;let o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(a=(t=this.scrollElement)==null?void 0:t.window)!=null?a:null,this.elementsCache.forEach(h=>{this.observer.observe(h)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,h=>{this.scrollRect=h,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(h,u)=>{this.scrollAdjustments=0,this.scrollDirection=u?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=u,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,o)=>{let a=new Map,h=new Map;for(let u=o-1;u>=0;u--){let T=t[u];if(a.has(T.lane))continue;let N=h.get(T.lane);if(N==null||T.end>N.end?h.set(T.lane,T):T.end<N.end&&a.set(T.lane,!0),a.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((u,T)=>u.end===T.end?u.index-T.index:u.end-T.end)[0]:void 0},this.getMeasurementOptions=Io(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,o,a,h,u)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:o,scrollMargin:a,getItemKey:h,enabled:u}),{key:!1}),this.getMeasurements=Io(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:o,scrollMargin:a,getItemKey:h,enabled:u},T)=>{if(!u)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(q=>{this.itemSizeCache.set(q.key,q.size)}));let N=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,N);for(let q=N;q<t;q++){let K=h(q),nt=this.options.lanes===1?$[q-1]:this.getFurthestMeasurement($,q),Q=nt?nt.end+this.options.gap:o+a,rt=T.get(K),dt=typeof rt=="number"?rt:this.options.estimateSize(q),ut=Q+dt,Tt=nt?nt.lane:q%this.options.lanes;$[q]={index:q,start:Q,size:dt,end:ut,key:K,lane:Tt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Io(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,o,a)=>this.range=t.length>0&&o>0?FT({measurements:t,outerSize:o,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Io(()=>{let t=null,o=null,a=this.calculateRange();return a&&(t=a.startIndex,o=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,o]},(t,o,a,h,u)=>h===null||u===null?[]:t({startIndex:h,endIndex:u,overscan:o,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let o=this.options.indexAttribute,a=t.getAttribute(o);return a?parseInt(a,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(t,o)=>{let a=this.indexFromElement(t),h=this.measurementsCache[a];if(!h)return;let u=h.key,T=this.elementsCache.get(u);T!==t&&(T&&this.observer.unobserve(T),this.observer.observe(t),this.elementsCache.set(u,t)),t.isConnected&&this.resizeItem(a,this.options.measureElement(t,o,this))},this.resizeItem=(t,o)=>{var T;let a=this.measurementsCache[t];if(!a)return;let h=(T=this.itemSizeCache.get(a.key))!=null?T:a.size,u=o-h;u!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,u,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,o)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((o,a)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(a))});return}this._measureElement(t,void 0)},this.getVirtualItems=Io(()=>[this.getIndexes(),this.getMeasurements()],(t,o)=>{let a=[];for(let h=0,u=t.length;h<u;h++){let T=t[h],N=o[T];a.push(N)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let o=this.getMeasurements();if(o.length!==0)return Ml(o[Av(0,o.length-1,a=>Ml(o[a]).start,t)])},this.getOffsetForAlignment=(t,o)=>{let a=this.getSize(),h=this.getScrollOffset();o==="auto"&&t>=h+a&&(o="end"),o==="end"&&(t-=a);let u=this.options.horizontal?"scrollWidth":"scrollHeight",N=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[u]:this.scrollElement[u]:0)-a;return Math.max(Math.min(N,t),0)},this.getOffsetForIndex=(t,o="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let a=this.measurementsCache[t];if(!a)return;let h=this.getSize(),u=this.getScrollOffset();if(o==="auto")if(a.end>=u+h-this.options.scrollPaddingEnd)o="end";else if(a.start<=u+this.options.scrollPaddingStart)o="start";else return[u,o];let T=a.start-this.options.scrollPaddingStart+(a.size-h)/2;switch(o){case"center":return[this.getOffsetForAlignment(T,o),o];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,o),o];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,o),o]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:o="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,o),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:o="auto",behavior:a}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let h=this.getOffsetForIndex(t,o);if(!h)return;let[u,T]=h;this._scrollToOffset(u,{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));gv($,this.getScrollOffset())||this.scrollToIndex(t,{align:T,behavior:a})}else this.scrollToIndex(t,{align:T,behavior:a})}))},this.scrollBy=(t,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var h;var t;let o=this.getMeasurements(),a;return o.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(h=(t=o[o.length-1])==null?void 0:t.end)!=null?h:0:Math.max(...o.slice(-this.options.lanes).map(u=>u.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:o,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Av=(l,i,t,o)=>{for(;l<=i;){let a=(l+i)/2|0,h=t(a);if(h<o)l=a+1;else if(h>o)i=a-1;else return a}return l>0?l-1:0};function FT({measurements:l,outerSize:i,scrollOffset:t}){let o=l.length-1,h=Av(0,o,T=>l[T].start,t),u=h;for(;u<o&&l[u].end<t+i;)u++;return{startIndex:h,endIndex:u}}var ih=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let o={...t,onChange:(a,h)=>{var u;this.host.updateComplete.then(()=>this.host.requestUpdate()),(u=t.onChange)==null||u.call(t,a,h)}};this.virtualizer=new Ol(o)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pl=class extends ih{constructor(i,t){super(i,{observeElementRect:Ev,observeElementOffset:Tv,scrollToFn:xv,...t})}};var $T=[G`
|
5891
|
+
color: hsl(${Math.max(0,Math.min(120-120*ut,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,a),a}}function Ol(l,i){if(l===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return l}var bv=(l,i)=>Math.abs(l-i)<1,yv=(l,i,t)=>{let o;return function(...a){l.clearTimeout(o),o=l.setTimeout(()=>i.apply(this,a),t)}};var OT=l=>l,PT=l=>{let i=Math.max(l.startIndex-l.overscan,0),t=Math.min(l.endIndex+l.overscan,l.count-1),o=[];for(let a=i;a<=t;a++)o.push(a);return o},Tv=(l,i)=>{let t=l.scrollElement;if(!t)return;let o=l.targetWindow;if(!o)return;let a=m=>{let{width:T,height:N}=m;i({width:Math.round(T),height:Math.round(N)})};if(a(t.getBoundingClientRect()),!o.ResizeObserver)return()=>{};let h=new o.ResizeObserver(m=>{let T=m[0];if(T!=null&&T.borderBoxSize){let N=T.borderBoxSize[0];if(N){a({width:N.inlineSize,height:N.blockSize});return}}a(t.getBoundingClientRect())});return h.observe(t,{box:"border-box"}),()=>{h.unobserve(t)}},Ev={passive:!0};var DT=typeof window>"u"?!0:"onscrollend"in window,xv=(l,i)=>{let t=l.scrollElement;if(!t)return;let o=l.targetWindow;if(!o)return;let a=0,h=l.options.useScrollendEvent&&DT?()=>{}:yv(o,()=>{i(a,!1)},l.options.isScrollingResetDelay),m=$=>()=>{let{horizontal:q,isRtl:K}=l.options;a=q?t.scrollLeft*(K&&-1||1):t.scrollTop,h(),i(a,$)},T=m(!0),N=m(!1);return N(),t.addEventListener("scroll",T,Ev),t.addEventListener("scrollend",N,Ev),()=>{t.removeEventListener("scroll",T),t.removeEventListener("scrollend",N)}};var FT=(l,i,t)=>{if(i!=null&&i.borderBoxSize){let o=i.borderBoxSize[0];if(o)return Math.round(o[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(l.getBoundingClientRect()[t.options.horizontal?"width":"height"])};var Av=(l,{adjustments:i=0,behavior:t},o)=>{var a,h;let m=l+i;(h=(a=o.scrollElement)==null?void 0:a.scrollTo)==null||h.call(a,{[o.options.horizontal?"left":"top"]:m,behavior:t})},Pl=class{constructor(i){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,o=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(a=>{a.forEach(h=>{this._measureElement(h.target,h)})}));return{disconnect:()=>{var a;(a=o())==null||a.disconnect(),t=null},observe:a=>{var h;return(h=o())==null?void 0:h.observe(a,{box:"border-box"})},unobserve:a=>{var h;return(h=o())==null?void 0:h.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([o,a])=>{typeof a>"u"&&delete t[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:OT,rangeExtractor:PT,onChange:()=>{},measureElement:FT,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var o,a;(a=(o=this.options).onChange)==null||a.call(o,this,t)},this.maybeNotify=ko(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var a;var t;let o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(a=(t=this.scrollElement)==null?void 0:t.window)!=null?a:null,this.elementsCache.forEach(h=>{this.observer.observe(h)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,h=>{this.scrollRect=h,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(h,m)=>{this.scrollAdjustments=0,this.scrollDirection=m?this.getScrollOffset()<h?"forward":"backward":null,this.scrollOffset=h,this.isScrolling=m,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,o)=>{let a=new Map,h=new Map;for(let m=o-1;m>=0;m--){let T=t[m];if(a.has(T.lane))continue;let N=h.get(T.lane);if(N==null||T.end>N.end?h.set(T.lane,T):T.end<N.end&&a.set(T.lane,!0),a.size===this.options.lanes)break}return h.size===this.options.lanes?Array.from(h.values()).sort((m,T)=>m.end===T.end?m.index-T.index:m.end-T.end)[0]:void 0},this.getMeasurementOptions=ko(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,o,a,h,m)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:o,scrollMargin:a,getItemKey:h,enabled:m}),{key:!1}),this.getMeasurements=ko(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:o,scrollMargin:a,getItemKey:h,enabled:m},T)=>{if(!m)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(q=>{this.itemSizeCache.set(q.key,q.size)}));let N=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let $=this.measurementsCache.slice(0,N);for(let q=N;q<t;q++){let K=h(q),nt=this.options.lanes===1?$[q-1]:this.getFurthestMeasurement($,q),Q=nt?nt.end+this.options.gap:o+a,rt=T.get(K),dt=typeof rt=="number"?rt:this.options.estimateSize(q),ut=Q+dt,Tt=nt?nt.lane:q%this.options.lanes;$[q]={index:q,start:Q,size:dt,end:ut,key:K,lane:Tt}}return this.measurementsCache=$,$},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ko(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,o,a)=>this.range=t.length>0&&o>0?$T({measurements:t,outerSize:o,scrollOffset:a}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=ko(()=>{let t=null,o=null,a=this.calculateRange();return a&&(t=a.startIndex,o=a.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,o]},(t,o,a,h,m)=>h===null||m===null?[]:t({startIndex:h,endIndex:m,overscan:o,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let o=this.options.indexAttribute,a=t.getAttribute(o);return a?parseInt(a,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(t,o)=>{let a=this.indexFromElement(t),h=this.measurementsCache[a];if(!h)return;let m=h.key,T=this.elementsCache.get(m);T!==t&&(T&&this.observer.unobserve(T),this.observer.observe(t),this.elementsCache.set(m,t)),t.isConnected&&this.resizeItem(a,this.options.measureElement(t,o,this))},this.resizeItem=(t,o)=>{var T;let a=this.measurementsCache[t];if(!a)return;let h=(T=this.itemSizeCache.get(a.key))!=null?T:a.size,m=o-h;m!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,m,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=m,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,o)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((o,a)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(a))});return}this._measureElement(t,void 0)},this.getVirtualItems=ko(()=>[this.getIndexes(),this.getMeasurements()],(t,o)=>{let a=[];for(let h=0,m=t.length;h<m;h++){let T=t[h],N=o[T];a.push(N)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let o=this.getMeasurements();if(o.length!==0)return Ol(o[Sv(0,o.length-1,a=>Ol(o[a]).start,t)])},this.getOffsetForAlignment=(t,o)=>{let a=this.getSize(),h=this.getScrollOffset();o==="auto"&&t>=h+a&&(o="end"),o==="end"&&(t-=a);let m=this.options.horizontal?"scrollWidth":"scrollHeight",N=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[m]:this.scrollElement[m]:0)-a;return Math.max(Math.min(N,t),0)},this.getOffsetForIndex=(t,o="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let a=this.measurementsCache[t];if(!a)return;let h=this.getSize(),m=this.getScrollOffset();if(o==="auto")if(a.end>=m+h-this.options.scrollPaddingEnd)o="end";else if(a.start<=m+this.options.scrollPaddingStart)o="start";else return[m,o];let T=a.start-this.options.scrollPaddingStart+(a.size-h)/2;switch(o){case"center":return[this.getOffsetForAlignment(T,o),o];case"end":return[this.getOffsetForAlignment(a.end+this.options.scrollPaddingEnd,o),o];default:return[this.getOffsetForAlignment(a.start-this.options.scrollPaddingStart,o),o]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:o="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,o),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:o="auto",behavior:a}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let h=this.getOffsetForIndex(t,o);if(!h)return;let[m,T]=h;this._scrollToOffset(m,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){let[$]=Ol(this.getOffsetForIndex(t,T));bv($,this.getScrollOffset())||this.scrollToIndex(t,{align:T,behavior:a})}else this.scrollToIndex(t,{align:T,behavior:a})}))},this.scrollBy=(t,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var h;var t;let o=this.getMeasurements(),a;return o.length===0?a=this.options.paddingStart:a=this.options.lanes===1?(h=(t=o[o.length-1])==null?void 0:t.end)!=null?h:0:Math.max(...o.slice(-this.options.lanes).map(m=>m.end)),Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:o,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Sv=(l,i,t,o)=>{for(;l<=i;){let a=(l+i)/2|0,h=t(a);if(h<o)l=a+1;else if(h>o)i=a-1;else return a}return l>0?l-1:0};function $T({measurements:l,outerSize:i,scrollOffset:t}){let o=l.length-1,h=Sv(0,o,T=>l[T].start,t),m=h;for(;m<o&&l[m].end<t+i;)m++;return{startIndex:h,endIndex:m}}var oh=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let o={...t,onChange:(a,h)=>{var m;this.host.updateComplete.then(()=>this.host.requestUpdate()),(m=t.onChange)==null||m.call(t,a,h)}};this.virtualizer=new Pl(o)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Dl=class extends oh{constructor(i,t){super(i,{observeElementRect:Tv,observeElementOffset:xv,scrollToFn:Av,...t})}};var zT=[G`
|
5898
5892
|
:host::part(scroll) {
|
5899
5893
|
height: 100%;
|
5900
5894
|
width: 100%;
|
@@ -5904,11 +5898,11 @@
|
|
5904
5898
|
position: relative;
|
5905
5899
|
width: 100%;
|
5906
5900
|
}
|
5907
|
-
`],
|
5901
|
+
`],_v=zT;var Iv=Y.constructTagName("virtualizedlist"),y4=Y.constructTagName("virtualizedwrapper"),kv={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Co=class extends j{constructor(){super();this.virtualizerProps=kv.VIRTUALIZER_PROPS;this.scrollElementRef=Ln();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(t){super.update(t),t.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(t){super.firstUpdated(t),this.setVirtualizerOptions()}setVirtualizerOptions(){var t;(t=this.virtualizer)==null||t.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var t;this.virtualizerController=new Dl(this,{count:this.virtualizerProps.count,estimateSize:(t=this.virtualizerProps)==null?void 0:t.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(t){var T,N;this.virtualizer=t.getVirtualizer();let{getTotalSize:o,getVirtualItems:a,measureElement:h}=this.virtualizer,m=a();if(m!==this.virtualItems){this.virtualItems=m;let $=a(),q={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(N=(T=$[0])==null?void 0:T.start)!=null?N:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:$,measureElement:h,listStyle:q})}return C`<div part="container" style="height: ${o()}px;">
|
5908
5902
|
<slot></slot>
|
5909
5903
|
</div>`}render(){return C`<div ${Rn(this.scrollElementRef)} part="scroll" @scroll=${this.onscroll&&this.onscroll}>
|
5910
5904
|
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):C``}
|
5911
|
-
</div> `}};
|
5905
|
+
</div> `}};Co.styles=[...j.styles,..._v],p([g({type:Function,attribute:"onscroll"})],Co.prototype,"onscroll",2),p([g({type:Object,attribute:"virtualizerprops"})],Co.prototype,"virtualizerProps",2),p([g({type:Function,attribute:"setlistdata"})],Co.prototype,"setlistdata",2);var sh=Co;sh.register(Iv);var VT=sh;})();
|
5912
5906
|
/*! Bundled license information:
|
5913
5907
|
|
5914
5908
|
lottie-web/build/player/lottie_light.js:
|