@momentum-design/components 0.133.18 → 0.133.20
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 +91 -91
- package/dist/browser/index.js.map +3 -3
- package/dist/components/searchfield/searchfield.component.d.ts +12 -1
- package/dist/components/searchfield/searchfield.component.js +24 -6
- package/dist/components/searchfield/searchfield.types.d.ts +11 -1
- package/dist/components/searchpopover/searchpopover.component.d.ts +7 -0
- package/dist/components/searchpopover/searchpopover.component.js +7 -0
- package/dist/components/searchpopover/searchpopover.types.d.ts +2 -2
- package/dist/custom-elements.json +140 -4
- package/dist/react/searchfield/index.d.ts +7 -0
- package/dist/react/searchfield/index.js +6 -0
- package/dist/react/searchpopover/index.d.ts +15 -6
- package/dist/react/searchpopover/index.js +8 -0
- package/dist/utils/keys.d.ts +1 -0
- package/dist/utils/keys.js +1 -0
- package/dist/utils/mixins/TabListComponentMixin.js +5 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";(()=>{var fT=Object.create;var Bc=Object.defineProperty;var Mu=Object.getOwnPropertyDescriptor;var vT=Object.getOwnPropertyNames;var gT=Object.getPrototypeOf,bT=Object.prototype.hasOwnProperty;var yT=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var ET=(a,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of vT(o))!bT.call(a,i)&&i!==t&&Bc(a,i,{get:()=>o[i],enumerable:!(e=Mu(o,i))||e.enumerable});return a};var TT=(a,o,t)=>(t=a!=null?fT(gT(a)):{},ET(o||!a||!a.__esModule?Bc(t,"default",{value:a,enumerable:!0}):t,a));var h=(a,o,t,e)=>{for(var i=e>1?void 0:e?Mu(o,t):o,l=a.length-1,c;l>=0;l--)(c=a[l])&&(i=(e?c(o,t,i):c(i))||i);return e&&i&&Bc(o,t,i),i};var Bf=yT((on,Gl)=>{typeof navigator<"u"&&function(a,o){typeof on=="object"&&typeof Gl<"u"?Gl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(on,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},l=function(){return t},c=function(s){o=s},f=function(){return o};function y(r){return document.createElement(r)}function A(r,s){var n,d=r.length,m;for(n=0;n<d;n+=1){m=r[n].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function F(r,s){return Object.getOwnPropertyDescriptor(r,s)}function U(r){function s(){}return s.prototype=r,s}var Q=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].pause()},resume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].resume()},setRate:function(n){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,d=this.audios.length;for(n=0;n<d;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),X=function(){function r(n,d){var m=0,p=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(m=0;m<d;m+=1)p.push(g);return p}function s(n,d){return n==="float32"?new Float32Array(d):n==="int16"?new Int16Array(d):n==="uint8c"?new Uint8ClampedArray(d):r(n,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function tt(r){return Array.apply(null,{length:r})}function nt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nt=function(n){return typeof n}:nt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nt(r)}var at=!0,ft=null,It=null,Ct="",Ht=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),$t=!1,Ut=Math.pow,Ot=Math.sqrt,ae=Math.floor,Ue=Math.max,Yt=Math.min,Te={};(function(){var r=["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"],s,n=r.length;for(s=0;s<n;s+=1)Te[r[s]]=Math[r[s]]})();function xe(){return{}}Te.random=Math.random,Te.abs=function(r){var s=nt(r);if(s==="object"&&r.length){var n=tt(r.length),d,m=r.length;for(d=0;d<m;d+=1)n[d]=Math.abs(r[d]);return n}return Math.abs(r)};var Ae=150,kt=Math.PI/180,oe=.5519;function Ge(r){$t=!!r}function Qe(r){return $t?Math.round(r):r}function Je(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function xr(r,s,n,d){this.type=r,this.currentTime=s,this.totalTime=n,this.direction=d<0?-1:1}function Xn(r,s){this.type=r,this.direction=s<0?-1:1}function $m(r,s,n,d){this.type=r,this.currentLoop=n,this.totalLoops=s,this.direction=d<0?-1:1}function Vm(r,s,n){this.type=r,this.firstFrame=s,this.totalFrames=n}function zm(r,s){this.type=r,this.target=s}function fE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function vE(r){this.type="configError",this.nativeError=r}function SI(r,s){this.type=r,this.nativeError=s}var tr=function(){var r=0;return function(){return r+=1,Ct+"__lottie_element_"+r}}();function kc(r,s,n){var d,m,p,g,I,b,w,L;switch(g=Math.floor(r*6),I=r*6-g,b=n*(1-s),w=n*(1-I*s),L=n*(1-(1-I)*s),g%6){case 0:d=n,m=L,p=b;break;case 1:d=w,m=n,p=b;break;case 2:d=b,m=n,p=L;break;case 3:d=b,m=w,p=n;break;case 4:d=L,m=b,p=n;break;case 5:d=n,m=b,p=w;break;default:break}return[d,m,p]}function wc(r,s,n){var d=Math.max(r,s,n),m=Math.min(r,s,n),p=d-m,g,I=d===0?0:p/d,b=d/255;switch(d){case m:g=0;break;case r:g=s-n+p*(s<n?6:0),g/=6*p;break;case s:g=n-r+p*2,g/=6*p;break;case n:g=r-s+p*4,g/=6*p;break;default:break}return[g,I,b]}function Bm(r,s){var n=wc(r[0]*255,r[1]*255,r[2]*255);return n[1]+=s,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),kc(n[0],n[1],n[2])}function Hm(r,s){var n=wc(r[0]*255,r[1]*255,r[2]*255);return n[2]+=s,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),kc(n[0],n[1],n[2])}function Um(r,s){var n=wc(r[0]*255,r[1]*255,r[2]*255);return n[0]+=s/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),kc(n[0],n[1],n[2])}var II=function(){var r=[],s,n;for(s=0;s<256;s+=1)n=s.toString(16),r[s]=n.length===1?"0"+n:n;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),gE=function(s){at=!!s},bE=function(){return at},yE=function(s){ft=s},Zn=function(){return ft},CI=function(s){It=s},Gm=function(){return It},Qn=function(s){Ae=s},Ta=function(){return Ae},EE=function(s){Ct=s},_I=function(){return Ct};function At(r){return document.createElementNS(a,r)}function Jn(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jn=function(n){return typeof n}:Jn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jn(r)}var xa=function(){var r=1,s=[],n,d,m={onmessage:function(){},postMessage:function(O){n({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),P=URL.createObjectURL(O);return new Worker(P)}return n=x,m}function I(){d||(d=g(function(O){function P(){function H(rt,_){var D,v,E=rt.length,j,V,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var xt=D.masksProperties;for(V=xt.length,j=0;j<V;j+=1)if(xt[j].pt.k.i)N(xt[j].pt.k);else for(gt=xt[j].pt.k.length,ct=0;ct<gt;ct+=1)xt[j].pt.k[ct].s&&N(xt[j].pt.k[ct].s[0]),xt[j].pt.k[ct].e&&N(xt[j].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,_),H(D.layers,_)):D.ty===4?C(D.shapes):D.ty===5&&St(D)}}function M(rt,_){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,_),H(rt[D].data.layers,_))}}function k(rt,_){for(var D=0,v=_.length;D<v;){if(_[D].id===rt)return _[D];D+=1}return null}function T(rt,_){var D=k(rt,_);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function C(rt){var _,D=rt.length,v,E;for(_=D-1;_>=0;_-=1)if(rt[_].ty==="sh")if(rt[_].ks.k.i)N(rt[_].ks.k);else for(E=rt[_].ks.k.length,v=0;v<E;v+=1)rt[_].ks.k[v].s&&N(rt[_].ks.k[v].s[0]),rt[_].ks.k[v].e&&N(rt[_].ks.k[v].e[0]);else rt[_].ty==="gr"&&C(rt[_].it)}function N(rt){var _,D=rt.i.length;for(_=0;_<D;_+=1)rt.i[_][0]+=rt.v[_][0],rt.i[_][1]+=rt.v[_][1],rt.o[_][0]+=rt.v[_][0],rt.o[_][1]+=rt.v[_][1]}function $(rt,_){var D=_?_.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var G=function(){var rt=[4,4,14];function _(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),q=function(){var rt=[4,7,99];return function(_){if(_.chars&&!$(rt,_.v)){var D,v=_.chars.length;for(D=0;D<v;D+=1){var E=_.chars[D];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[D].t||(E.data.shapes.push({ty:"no"}),E.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"})))}}}}(),it=function(){var rt=[5,7,15];function _(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===5&&_(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),Tt=function(){var rt=[4,1,9];function _(v){var E,j=v.length,V,ct;for(E=0;E<j;E+=1)if(v[E].ty==="gr")_(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,V=0;V<ct;V+=1)v[E].c.k[V].s&&(v[E].c.k[V].s[0]/=255,v[E].c.k[V].s[1]/=255,v[E].c.k[V].s[2]/=255,v[E].c.k[V].s[3]/=255),v[E].c.k[V].e&&(v[E].c.k[V].e[0]/=255,v[E].c.k[V].e[1]/=255,v[E].c.k[V].e[2]/=255,v[E].c.k[V].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,j=v.length;for(E=0;E<j;E+=1)v[E].ty===4&&_(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ut=function(){var rt=[4,4,18];function _(v){var E,j=v.length,V,ct;for(E=j-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,V=0;V<ct;V+=1)v[E].ks.k[V].s&&(v[E].ks.k[V].s[0].c=v[E].closed),v[E].ks.k[V].e&&(v[E].ks.k[V].e[0].c=v[E].closed);else v[E].ty==="gr"&&_(v[E].it)}function D(v){var E,j,V=v.length,ct,gt,xt,Pt;for(j=0;j<V;j+=1){if(E=v[j],E.hasMask){var Ft=E.masksProperties;for(gt=Ft.length,ct=0;ct<gt;ct+=1)if(Ft[ct].pt.k.i)Ft[ct].pt.k.c=Ft[ct].cl;else for(Pt=Ft[ct].pt.k.length,xt=0;xt<Pt;xt+=1)Ft[ct].pt.k[xt].s&&(Ft[ct].pt.k[xt].s[0].c=Ft[ct].cl),Ft[ct].pt.k[xt].e&&(Ft[ct].pt.k[xt].e[0].c=Ft[ct].cl)}E.ty===4&&_(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,j=v.assets.length;for(E=0;E<j;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function st(rt){rt.__complete||(Tt(rt),G(rt),q(rt),it(rt),ut(rt),H(rt.layers,rt.assets),M(rt.chars,rt.assets),rt.__complete=!0)}function St(rt){rt.t.a.length===0&&"m"in rt.t.p}var ht={};return ht.completeData=st,ht.checkColors=Tt,ht.checkChars=q,ht.checkPathProperties=it,ht.checkShapes=ut,ht.completeLayers=H,ht}if(p.dataManager||(p.dataManager=P()),p.assetLoader||(p.assetLoader=function(){function H(k){var T=k.getResponseHeader("content-type");return T&&k.responseType==="json"&&T.indexOf("json")!==-1||k.response&&Jn(k.response)==="object"?k.response:k.response&&typeof k.response=="string"?JSON.parse(k.response):k.responseText?JSON.parse(k.responseText):null}function M(k,T,C,N){var $,G=new XMLHttpRequest;try{G.responseType="json"}catch{}G.onreadystatechange=function(){if(G.readyState===4)if(G.status===200)$=H(G),C($);else try{$=H(G),C($)}catch(q){N&&N(q)}};try{G.open(["G","E","T"].join(""),k,!0)}catch{G.open(["G","E","T"].join(""),T+"/"+k,!0)}G.send()}return{load:M}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(H){p.dataManager.completeData(H),p.postMessage({id:O.data.id,payload:H,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(H){p.postMessage({id:O.data.id,payload:H,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,P=O.id,R=s[P];s[P]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){r+=1;var P="processId_"+r;return s[P]={onComplete:x,onError:O},P}function w(x,O,P){I();var R=b(O,P);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function L(x,O,P){I();var R=b(O,P);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function K(x,O,P){I();var R=b(O,P);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:L,completeAnimation:K}}(),TE=function(){var r=function(){var M=y("canvas");M.width=1,M.height=1;var k=M.getContext("2d");return k.fillStyle="rgba(0,0,0,0)",k.fillRect(0,0,1,1),M}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(M,k,T){var C="";if(M.e)C=M.p;else if(k){var N=M.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=k+N}else C=T,C+=M.u?M.u:"",C+=M.p;return C}function m(M){var k=0,T=setInterval((function(){var C=M.getBBox();(C.width||k>500)&&(this._imageLoaded(),clearInterval(T)),k+=1}).bind(this),50)}function p(M){var k=d(M,this.assetsPath,this.path),T=At("image");Ht?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",k),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:M};return C}function g(M){var k=d(M,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=k;var C={img:T,assetData:M};return C}function I(M){var k={assetData:M},T=d(M,this.assetsPath,this.path);return xa.loadData(T,(function(C){k.img=C,this._footageLoaded()}).bind(this),(function(){k.img={},this._footageLoaded()}).bind(this)),k}function b(M,k){this.imagesLoadedCb=k;var T,C=M.length;for(T=0;T<C;T+=1)M[T].layers||(!M[T].t||M[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(M[T]))):M[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(M[T]))))}function w(M){this.path=M||""}function L(M){this.assetsPath=M||""}function K(M){for(var k=0,T=this.images.length;k<T;){if(this.images[k].assetData===M)return this.images[k].img;k+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function R(M,k){M==="svg"?(this._elementHelper=k,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function H(){this._imageLoaded=s.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return H.prototype={loadAssets:b,setAssetsPath:L,setPath:w,loadedImages:O,loadedFootages:P,destroy:x,getAsset:K,createImgData:g,createImageData:p,imageLoaded:s,footageLoaded:n,setCacheType:R},H}();function Km(){}Km.prototype={triggerEvent:function(s,n){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](n)},addEventListener:function(s,n){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(n),(function(){this.removeEventListener(s,n)}).bind(this)},removeEventListener:function(s,n){if(!n)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===n&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var xE=function(){function r(s){for(var n=s.split(`\r
|
|
2
|
-
`),d={},m,p=0,g=0;g<n.length;g+=1)m=n[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var n=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}n.push(p)}return n}}(),AE=function(){function r(s){this.compositions.push(s)}return function(){function s(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Aa={},SE=function(s,n){Aa[s]=n};function IE(r){return Aa[r]}function CE(){if(Aa.canvas)return"canvas";for(var r in Aa)if(Aa[r])return r;return""}function Sa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sa=function(n){return typeof n}:Sa=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sa(r)}var vt=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=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=bE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=AE(),this.imagePreloader=new TE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new xr("drawnFrame",0,0,0),this.expressionsPlugin=Zn()};A([Km],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var n=IE(s);this.renderer=new n(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),xa.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){xa.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Sa(s)!=="object"&&(s=JSON.parse(s));var n={wrapper:r,animationData:s},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:CE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,n,d=s.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(n=0;n<d;){if(s[n].id===m[p].id){s[n]=m[p];break}n+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,xa.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Zn();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,xa.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,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(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=xE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.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 r=Zn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var n=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(n,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.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")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,n=0;n<this.markers.length;n+=1)if(s=this.markers[n],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,n=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(n=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,s=0)):this.setCurrentRawFrameValue(s),n&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>s&&(n=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Sa(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!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)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),s=this.assetsPath+n}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,n=this.assets.length;s<n;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new xr(r,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(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new $m(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Xn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Vm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new zm(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new xr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new $m(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Xn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Vm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new zm(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new fE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new vE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var me=function(){var r={},s=[],n=0,d=0,m=0,p=!0,g=!1;function I(_){for(var D=0,v=_.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||K()),D+=1}function b(_,D){if(!_)return null;for(var v=0;v<d;){if(s[v].elem===_&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,_),E.setData(_,D),E}function w(){var _,D=s.length,v=[];for(_=0;_<D;_+=1)v.push(s[_].animation);return v}function L(){m+=1,Tt()}function K(){m-=1}function x(_,D){_.addEventListener("destroy",I),_.addEventListener("_active",L),_.addEventListener("_idle",K),s.push({elem:D,animation:_}),d+=1}function O(_){var D=new vt;return x(D,null),D.setParams(_),D}function P(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(_,D)}function R(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(_,D)}function H(_){var D;for(D=0;D<d;D+=1)s[D].animation.play(_)}function M(_){var D=_-n,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);n=_,m&&!g?window.requestAnimationFrame(M):p=!0}function k(_){n=_,window.requestAnimationFrame(M)}function T(_){var D;for(D=0;D<d;D+=1)s[D].animation.pause(_)}function C(_,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(_,D,v)}function N(_){var D;for(D=0;D<d;D+=1)s[D].animation.stop(_)}function $(_){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(_)}function G(_){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(_)}function q(_,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,V=E.length;for(j=0;j<V;j+=1)v&&E[j].setAttribute("data-bm-type",v),b(E[j],_);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=y("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),b(gt,_)}}function it(){var _;for(_=0;_<d;_+=1)s[_].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(k),p=!1)}function ut(){g=!0}function st(){g=!1,Tt()}function St(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(_,D)}function ht(_){var D;for(D=0;D<d;D+=1)s[D].animation.mute(_)}function rt(_){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(_)}return r.registerAnimation=b,r.loadAnimation=O,r.setSpeed=P,r.setDirection=R,r.play=H,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=q,r.resize=it,r.goToAndStop=C,r.destroy=G,r.freeze=ut,r.unfreeze=st,r.setVolume=St,r.mute=ht,r.unmute=rt,r.getRegisteredAnimations=w,r}(),Ia=function(){var r={};r.getBezierEasing=n;var s={};function n(k,T,C,N,$){var G=$||("bez_"+k+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[G])return s[G];var q=new M([k,T,C,N]);return s[G]=q,q}var d=4,m=.001,p=1e-7,g=10,I=11,b=1/(I-1),w=typeof Float32Array=="function";function L(k,T){return 1-3*T+3*k}function K(k,T){return 3*T-6*k}function x(k){return 3*k}function O(k,T,C){return((L(T,C)*k+K(T,C))*k+x(T))*k}function P(k,T,C){return 3*L(T,C)*k*k+2*K(T,C)*k+x(T)}function R(k,T,C,N,$){var G,q,it=0;do q=T+(C-T)/2,G=O(q,N,$)-k,G>0?C=q:T=q;while(Math.abs(G)>p&&++it<g);return q}function H(k,T,C,N){for(var $=0;$<d;++$){var G=P(T,C,N);if(G===0)return T;var q=O(T,C,N)-k;T-=q/G}return T}function M(k){this._p=k,this._mSampleValues=w?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return M.prototype={get:function(T){var C=this._p[0],N=this._p[1],$=this._p[2],G=this._p[3];return this._precomputed||this._precompute(),C===N&&$===G?T:T===0?0:T===1?1:O(this._getTForX(T),N,G)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==C||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*b,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],$=this._mSampleValues,G=0,q=1,it=I-1;q!==it&&$[q]<=T;++q)G+=b;--q;var Tt=(T-$[q])/($[q+1]-$[q]),ut=G+Tt*b,st=P(ut,C,N);return st>=m?H(T,ut,C,N):st===0?ut:R(T,G,G+b,C,N)}},r}(),Wm=function(){function r(s){return s.concat(tt(s.length))}return{double:r}}(),tl=function(){return function(r,s,n){var d=0,m=r,p=tt(m),g={newElement:I,release:b};function I(){var w;return d?(d-=1,w=p[d]):w=s(),w}function b(w){d===m&&(p=Wm.double(p),m*=2),n&&n(w),p[d]=w,d+=1}return g}}(),Ym=function(){function r(){return{addedLength:0,percents:X("float32",Ta()),lengths:X("float32",Ta())}}return tl(8,r)}(),jm=function(){function r(){return{lengths:[],totalLength:0}}function s(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)Ym.release(n.lengths[d]);n.lengths.length=0}return tl(8,r,s)}();function _E(){var r=Math;function s(x,O,P,R,H,M){var k=x*R+O*H+P*M-H*R-M*x-P*O;return k>-.001&&k<.001}function n(x,O,P,R,H,M,k,T,C){if(P===0&&M===0&&C===0)return s(x,O,R,H,k,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(H-O,2)+r.pow(M-P,2)),$=r.sqrt(r.pow(k-x,2)+r.pow(T-O,2)+r.pow(C-P,2)),G=r.sqrt(r.pow(k-R,2)+r.pow(T-H,2)+r.pow(C-M,2)),q;return N>$?N>G?q=N-$-G:q=G-$-N:G>$?q=G-$-N:q=$-N-G,q>-1e-4&&q<1e-4}var d=function(){return function(x,O,P,R){var H=Ta(),M,k,T,C,N,$=0,G,q=[],it=[],Tt=Ym.newElement();for(T=P.length,M=0;M<H;M+=1){for(N=M/(H-1),G=0,k=0;k<T;k+=1)C=Ut(1-N,3)*x[k]+3*Ut(1-N,2)*N*P[k]+3*(1-N)*Ut(N,2)*R[k]+Ut(N,3)*O[k],q[k]=C,it[k]!==null&&(G+=Ut(q[k]-it[k],2)),it[k]=q[k];G&&(G=Ot(G),$+=G),Tt.percents[M]=N,Tt.lengths[M]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=jm.newElement(),P=x.c,R=x.v,H=x.o,M=x.i,k,T=x._length,C=O.lengths,N=0;for(k=0;k<T-1;k+=1)C[k]=d(R[k],R[k+1],H[k],M[k+1]),N+=C[k].addedLength;return P&&T&&(C[k]=d(R[k],R[0],H[k],M[0]),N+=C[k].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,P,R,H){var M=(O[0]+"_"+O[1]+"_"+P[0]+"_"+P[1]+"_"+R[0]+"_"+R[1]+"_"+H[0]+"_"+H[1]).replace(/\./g,"p");if(!x[M]){var k=Ta(),T,C,N,$,G,q=0,it,Tt,ut=null;O.length===2&&(O[0]!==P[0]||O[1]!==P[1])&&s(O[0],O[1],P[0],P[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],P[0],P[1],P[0]+H[0],P[1]+H[1])&&(k=2);var st=new p(k);for(N=R.length,T=0;T<k;T+=1){for(Tt=tt(N),G=T/(k-1),it=0,C=0;C<N;C+=1)$=Ut(1-G,3)*O[C]+3*Ut(1-G,2)*G*(O[C]+R[C])+3*(1-G)*Ut(G,2)*(P[C]+H[C])+Ut(G,3)*P[C],Tt[C]=$,ut!==null&&(it+=Ut(Tt[C]-ut[C],2));it=Ot(it),q+=it,st.points[T]=new g(it,Tt),ut=Tt}st.segmentLength=q,x[M]=st}return x[M]}}();function b(x,O){var P=O.percents,R=O.lengths,H=P.length,M=ae((H-1)*x),k=x*O.addedLength,T=0;if(M===H-1||M===0||k===R[M])return P[M];for(var C=R[M]>k?-1:1,N=!0;N;)if(R[M]<=k&&R[M+1]>k?(T=(k-R[M])/(R[M+1]-R[M]),N=!1):M+=C,M<0||M>=H-1){if(M===H-1)return P[M];N=!1}return P[M]+(P[M+1]-P[M])*T}function w(x,O,P,R,H,M){var k=b(H,M),T=1-k,C=r.round((T*T*T*x[0]+(k*T*T+T*k*T+T*T*k)*P[0]+(k*k*T+T*k*k+k*T*k)*R[0]+k*k*k*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(k*T*T+T*k*T+T*T*k)*P[1]+(k*k*T+T*k*k+k*T*k)*R[1]+k*k*k*O[1])*1e3)/1e3;return[C,N]}var L=X("float32",8);function K(x,O,P,R,H,M,k){H<0?H=0:H>1&&(H=1);var T=b(H,k);M=M>1?1:M;var C=b(M,k),N,$=x.length,G=1-T,q=1-C,it=G*G*G,Tt=T*G*G*3,ut=T*T*G*3,st=T*T*T,St=G*G*q,ht=T*G*q+G*T*q+G*G*C,rt=T*T*q+G*T*C+T*G*C,_=T*T*C,D=G*q*q,v=T*q*q+G*C*q+G*q*C,E=T*C*q+G*C*C+T*q*C,j=T*C*C,V=q*q*q,ct=C*q*q+q*C*q+q*q*C,gt=C*C*q+q*C*C+C*q*C,xt=C*C*C;for(N=0;N<$;N+=1)L[N*4]=r.round((it*x[N]+Tt*P[N]+ut*R[N]+st*O[N])*1e3)/1e3,L[N*4+1]=r.round((St*x[N]+ht*P[N]+rt*R[N]+_*O[N])*1e3)/1e3,L[N*4+2]=r.round((D*x[N]+v*P[N]+E*R[N]+j*O[N])*1e3)/1e3,L[N*4+3]=r.round((V*x[N]+ct*P[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return L}return{getSegmentsLength:m,getNewSegment:K,getPointInSegment:w,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:n}}var Xr=_E(),Lo=e,qm=Math.abs;function Xm(r,s){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=X("float32",this.pv.length));for(var m=s.lastIndex,p=m,g=this.keyframes.length-1,I=!0,b,w,L;I;){if(b=this.keyframes[p],w=this.keyframes[p+1],p===g-1&&r>=w.t-n){b.h&&(b=w),m=0;break}if(w.t-n>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}L=this.keyframesMetadata[p]||{};var K,x,O,P,R,H,M=w.t-n,k=b.t-n,T;if(b.to){L.bezierData||(L.bezierData=Xr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var C=L.bezierData;if(r>=M||r<k){var N=r>=M?C.points.length-1:0;for(x=C.points[N].point.length,K=0;K<x;K+=1)d[K]=C.points[N].point[K]}else{L.__fnct?H=L.__fnct:(H=Ia.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,L.__fnct=H),O=H((r-k)/(M-k));var $=C.segmentLength*O,G,q=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,P=C.points.length;I;){if(q+=C.points[R].partialLength,$===0||O===0||R===C.points.length-1){for(x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K];break}else if($>=q&&$<q+C.points[R+1].partialLength){for(G=($-q)/C.points[R+1].partialLength,x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K]+(C.points[R+1].point[K]-C.points[R].point[K])*G;break}R<P-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=q-C.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,Tt,ut,st,St;if(g=b.s.length,T=w.s||b.e,this.sh&&b.h!==1)if(r>=M)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=k)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ht=Zm(b.s),rt=Zm(T),_=(r-k)/(M-k);wE(d,kE(ht,rt,_))}else for(p=0;p<g;p+=1)b.h!==1&&(r>=M?O=1:r<k?O=0:(b.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[p]?H=L.__fnct[p]:(it=b.o.x[p]===void 0?b.o.x[0]:b.o.x[p],Tt=b.o.y[p]===void 0?b.o.y[0]:b.o.y[p],ut=b.i.x[p]===void 0?b.i.x[0]:b.i.x[p],st=b.i.y[p]===void 0?b.i.y[0]:b.i.y[p],H=Ia.getBezierEasing(it,Tt,ut,st).get,L.__fnct[p]=H)):L.__fnct?H=L.__fnct:(it=b.o.x,Tt=b.o.y,ut=b.i.x,st=b.i.y,H=Ia.getBezierEasing(it,Tt,ut,st).get,b.keyframeMetadata=H),O=H((r-k)/(M-k)))),T=w.s||b.e,St=b.h===1?b.s[p]:b.s[p]+(T[p]-b.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return s.lastIndex=m,d}function kE(r,s,n){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],b=s[0],w=s[1],L=s[2],K=s[3],x,O,P,R,H;return O=m*b+p*w+g*L+I*K,O<0&&(O=-O,b=-b,w=-w,L=-L,K=-K),1-O>1e-6?(x=Math.acos(O),P=Math.sin(x),R=Math.sin((1-n)*x)/P,H=Math.sin(n*x)/P):(R=1-n,H=n),d[0]=R*m+H*b,d[1]=R*p+H*w,d[2]=R*g+H*L,d[3]=R*I+H*K,d}function wE(r,s){var n=s[0],d=s[1],m=s[2],p=s[3],g=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),b=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=g/kt,r[1]=I/kt,r[2]=b/kt}function Zm(r){var s=r[0]*kt,n=r[1]*kt,d=r[2]*kt,m=Math.cos(s/2),p=Math.cos(n/2),g=Math.cos(d/2),I=Math.sin(s/2),b=Math.sin(n/2),w=Math.sin(d/2),L=m*p*g-I*b*w,K=I*b*g+m*p*w,x=I*p*g+m*b*w,O=m*b*g-I*p*w;return[K,x,O,L]}function Qm(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Lo&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function el(r){var s;if(this.propType==="unidimensional")s=r*this.mult,qm(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)s=r[n]*this.mult,qm(this.v[n]-s)>1e-5&&(this.v[n]=s,this._mdf=!0),n+=1}function rl(){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 r,s=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function il(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function NE(r,s,n,d){this.propType="unidimensional",this.mult=n||1,this.data=s,this.v=n?s.k*n:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.addEffect=il}function ME(r,s,n,d){this.propType="multidimensional",this.mult=n||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=X("float32",p),this.pv=X("float32",p),this.vel=X("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=rl,this.setVValue=el,this.addEffect=il}function LE(r,s,n,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Lo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Lo,this.pv=Lo,this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.interpolateValue=Xm,this.effectsSequence=[Qm.bind(this)],this.addEffect=il}function OE(r,s,n,d){this.propType="multidimensional";var m,p=s.k.length,g,I,b,w;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(g=s.k[m].s,I=s.k[m+1].s,b=s.k[m].to,w=s.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&Xr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+b[0],g[1]+b[1])&&Xr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+w[0],I[1]+w[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&Xr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Xr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+w[0],I[1]+w[1],I[2]+w[2]))&&(s.k[m].to=null,s.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===I[2]&&b[2]===0&&w[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[Qm.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=rl,this.setVValue=el,this.interpolateValue=Xm,this.frameId=-1;var L=s.k[0].s.length;for(this.v=X("float32",L),this.pv=X("float32",L),m=0;m<L;m+=1)this.v[m]=Lo,this.pv[m]=Lo;this._caching={lastFrame:Lo,lastIndex:0,value:X("float32",L)},this.addEffect=il}var lt=function(){function r(n,d,m,p,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new NE(n,d,p,g);else if(typeof d.k[0]=="number")I=new ME(n,d,p,g);else switch(m){case 0:I=new LE(n,d,p,g);break;case 1:I=new OE(n,d,p,g);break;default:break}return I.effectsSequence.length&&g.addDynamicProperty(I),I}var s={getProp:r};return s}();function Me(){}Me.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,n=this.dynamicProperties.length;for(s=0;s<n;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Oo=function(){function r(){return X("float32",2)}return tl(8,r)}();function mi(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}mi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var n=0;n<s;)this.v[n]=Oo.newElement(),this.o[n]=Oo.newElement(),this.i[n]=Oo.newElement(),n+=1},mi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},mi.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},mi.prototype.setXYAt=function(r,s,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Oo.newElement()),p[d][0]=r,p[d][1]=s},mi.prototype.setTripleAt=function(r,s,n,d,m,p,g,I){this.setXYAt(r,s,"v",g,I),this.setXYAt(n,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},mi.prototype.reverse=function(){var r=new mi;r.setPathData(this.c,this._length);var s=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},mi.prototype.length=function(){return this._length};var De=function(){function r(){return new mi}function s(m){var p=m._length,g;for(g=0;g<p;g+=1)Oo.release(m.v[g]),Oo.release(m.i[g]),Oo.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=tl(4,r,s);return d.clone=n,d}();function Nc(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}Nc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Nc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Cs=function(){var r={newShapeCollection:m,release:p},s=0,n=4,d=tt(n);function m(){var g;return s?(s-=1,g=d[s]):g=new Nc,g}function p(g){var I,b=g._length;for(I=0;I<b;I+=1)De.release(g.shapes[I]);g._length=0,s===n&&(d=Wm.double(d),n*=2),d[s]=g,s+=1}return r}(),ol=function(){var r=-999999;function s(M,k,T){var C=T.lastIndex,N,$,G,q,it,Tt,ut,st,St,ht=this.keyframes;if(M<ht[0].t-this.offsetTime)N=ht[0].s[0],G=!0,C=0;else if(M>=ht[ht.length-1].t-this.offsetTime)N=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],G=!0;else{for(var rt=C,_=ht.length-1,D=!0,v,E,j;D&&(v=ht[rt],E=ht[rt+1],!(E.t-this.offsetTime>M));)rt<_-1?rt+=1:D=!1;if(j=this.keyframesMetadata[rt]||{},G=v.h===1,C=rt,!G){if(M>=E.t-this.offsetTime)st=1;else if(M<v.t-this.offsetTime)st=0;else{var V;j.__fnct?V=j.__fnct:(V=Ia.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,j.__fnct=V),st=V((M-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=k._length,ut=N.i[0].length,T.lastIndex=C,q=0;q<Tt;q+=1)for(it=0;it<ut;it+=1)St=G?N.i[q][it]:N.i[q][it]+($.i[q][it]-N.i[q][it])*st,k.i[q][it]=St,St=G?N.o[q][it]:N.o[q][it]+($.o[q][it]-N.o[q][it])*st,k.o[q][it]=St,St=G?N.v[q][it]:N.v[q][it]+($.v[q][it]-N.v[q][it])*st,k.v[q][it]=St}function n(){var M=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<k&&M<k||C>T&&M>T)||(this._caching.lastIndex=C<M?this._caching.lastIndex:0,this.interpolateShape(M,this.pv,this._caching)),this._caching.lastFrame=M,this.pv}function d(){this.paths=this.localShapeCollection}function m(M,k){if(M._length!==k._length||M.c!==k.c)return!1;var T,C=M._length;for(T=0;T<C;T+=1)if(M.v[T][0]!==k.v[T][0]||M.v[T][1]!==k.v[T][1]||M.o[T][0]!==k.o[T][0]||M.o[T][1]!==k.o[T][1]||M.i[T][0]!==k.i[T][0]||M.i[T][1]!==k.i[T][1])return!1;return!0}function p(M){m(this.v,M)||(this.v=De.clone(M),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){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 M;this.kf?M=this.pv:this.data.ks?M=this.data.ks.k:M=this.data.pt.k;var k,T=this.effectsSequence.length;for(k=0;k<T;k+=1)M=this.effectsSequence[k](M);this.setVValue(M),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(M,k,T){this.propType="shape",this.comp=M.comp,this.container=M,this.elem=M,this.data=k,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?k.pt.k:k.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(M){this.effectsSequence.push(M),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=b;function w(M,k,T){this.propType="shape",this.comp=M.comp,this.elem=M,this.container=M,this.offsetTime=M.data.st,this.keyframes=T===3?k.pt.k:k.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=s,w.prototype.setVValue=p,w.prototype.addEffect=b;var L=function(){var M=oe;function k(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,C.p,1,0,this),this.s=lt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return k.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,G=this.s.v[1]/2,q=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-G,it.v[1][0]=q?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+G,it.v[3][0]=q?C-$:C+$,it.v[3][1]=N,it.i[0][0]=q?C-$*M:C+$*M,it.i[0][1]=N-G,it.i[1][0]=q?C+$:C-$,it.i[1][1]=N-G*M,it.i[2][0]=q?C+$*M:C-$*M,it.i[2][1]=N+G,it.i[3][0]=q?C-$:C+$,it.i[3][1]=N+G*M,it.o[0][0]=q?C+$*M:C-$*M,it.o[0][1]=N-G,it.o[1][0]=q?C+$:C-$,it.o[1][1]=N+G*M,it.o[2][0]=q?C-$*M:C+$*M,it.o[2][1]=N+G,it.o[3][0]=q?C-$:C+$,it.o[3][1]=N-G*M}},A([Me],k),k}(),K=function(){function M(k,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=k,this.comp=k.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),T.sy===1?(this.ir=lt.getProp(k,T.ir,0,0,this),this.is=lt.getProp(k,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(k,T.pt,0,0,this),this.p=lt.getProp(k,T.p,1,0,this),this.r=lt.getProp(k,T.r,0,kt,this),this.or=lt.getProp(k,T.or,0,0,this),this.os=lt.getProp(k,T.os,0,.01,this),this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return M.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,$=this.or.v,G=this.ir.v,q=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ut=2*Math.PI*G/(T*2),st,St,ht,rt,_=-Math.PI/2;_+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){St=N?$:G,ht=N?q:it,rt=N?Tt:ut;var v=St*Math.cos(_),E=St*Math.sin(_),j=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-j*rt*ht*D,E-V*rt*ht*D,v+j*rt*ht*D,E+V*rt*ht*D,st,!0),N=!N,_+=C*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,G=2*Math.PI*N/(T*4),q,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,q=0;q<T;q+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),St=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ht=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-St*G*$*Tt,st-ht*G*$*Tt,ut+St*G*$*Tt,st+ht*G*$*Tt,q,!0),it+=C*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Me],M),M}(),x=function(){function M(k,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=k,this.comp=k.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),this.p=lt.getProp(k,T.p,1,0,this),this.s=lt.getProp(k,T.s,1,0,this),this.r=lt.getProp(k,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return M.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,G=Yt(N,$,this.r.v),q=G*(1-oe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+G,T+N,C-$+q,0,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-q,T+N,C+$-G,1,!0),G!==0?(this.v.setTripleAt(T+N-G,C+$,T+N-G,C+$,T+N-q,C+$,2,!0),this.v.setTripleAt(T-N+G,C+$,T-N+q,C+$,T-N+G,C+$,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-G,T-N,C+$-q,4,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+q,T-N,C-$+G,5,!0),this.v.setTripleAt(T-N+G,C-$,T-N+G,C-$,T-N+q,C-$,6,!0),this.v.setTripleAt(T+N-G,C-$,T+N-q,C-$,T+N-G,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+q,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+q,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+q,T+N,C-$+G,0,!0),G!==0?(this.v.setTripleAt(T+N-G,C-$,T+N-G,C-$,T+N-q,C-$,1,!0),this.v.setTripleAt(T-N+G,C-$,T-N+q,C-$,T-N+G,C-$,2,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+G,T-N,C-$+q,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-q,T-N,C+$-G,4,!0),this.v.setTripleAt(T-N+G,C+$,T-N+G,C+$,T-N+q,C+$,5,!0),this.v.setTripleAt(T+N-G,C+$,T+N-q,C+$,T+N-G,C+$,6,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-G,T+N,C+$-q,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+q,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-q,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-q,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Me],M),M}();function O(M,k,T){var C;if(T===3||T===4){var N=T===3?k.pt:k.ks,$=N.k;$.length?C=new w(M,k,T):C=new I(M,k,T)}else T===5?C=new x(M,k):T===6?C=new L(M,k):T===7&&(C=new K(M,k));return C.k&&M.addDynamicProperty(C),C}function P(){return I}function R(){return w}var H={};return H.getShapeProp=O,H.getConstructorFunction=P,H.getKeyframedConstructorFunction=R,H}();var Pe=function(){var r=Math.cos,s=Math.sin,n=Math.tan,d=Math.round;function m(){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 p(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function w(v,E){return this._t(1,E,v,1,0,0)}function L(v,E){return this.shear(n(v),n(E))}function K(v,E){var j=r(E),V=s(E);return this._t(j,V,0,0,-V,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(j,-V,0,0,V,j,0,0,0,0,1,0,0,0,0,1)}function x(v,E,j){return!j&&j!==0&&(j=1),v===1&&E===1&&j===1?this:this._t(v,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(v,E,j,V,ct,gt,xt,Pt,Ft,ue,rr,Qr,ir,Le,ur,Wt){return this.props[0]=v,this.props[1]=E,this.props[2]=j,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Pt,this.props[8]=Ft,this.props[9]=ue,this.props[10]=rr,this.props[11]=Qr,this.props[12]=ir,this.props[13]=Le,this.props[14]=ur,this.props[15]=Wt,this}function P(v,E,j){return j=j||0,v!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,j,1):this}function R(v,E,j,V,ct,gt,xt,Pt,Ft,ue,rr,Qr,ir,Le,ur,Wt){var pt=this.props;if(v===1&&E===0&&j===0&&V===0&&ct===0&>===1&&xt===0&&Pt===0&&Ft===0&&ue===0&&rr===1&&Qr===0)return pt[12]=pt[12]*v+pt[15]*ir,pt[13]=pt[13]*gt+pt[15]*Le,pt[14]=pt[14]*rr+pt[15]*ur,pt[15]*=Wt,this._identityCalculated=!1,this;var vi=pt[0],Zi=pt[1],gi=pt[2],Jr=pt[3],bi=pt[4],yi=pt[5],or=pt[6],Qi=pt[7],Ji=pt[8],Dr=pt[9],to=pt[10],Pr=pt[11],Fo=pt[12],ml=pt[13],ul=pt[14],fl=pt[15];return pt[0]=vi*v+Zi*ct+gi*Ft+Jr*ir,pt[1]=vi*E+Zi*gt+gi*ue+Jr*Le,pt[2]=vi*j+Zi*xt+gi*rr+Jr*ur,pt[3]=vi*V+Zi*Pt+gi*Qr+Jr*Wt,pt[4]=bi*v+yi*ct+or*Ft+Qi*ir,pt[5]=bi*E+yi*gt+or*ue+Qi*Le,pt[6]=bi*j+yi*xt+or*rr+Qi*ur,pt[7]=bi*V+yi*Pt+or*Qr+Qi*Wt,pt[8]=Ji*v+Dr*ct+to*Ft+Pr*ir,pt[9]=Ji*E+Dr*gt+to*ue+Pr*Le,pt[10]=Ji*j+Dr*xt+to*rr+Pr*ur,pt[11]=Ji*V+Dr*Pt+to*Qr+Pr*Wt,pt[12]=Fo*v+ml*ct+ul*Ft+fl*ir,pt[13]=Fo*E+ml*gt+ul*ue+fl*Le,pt[14]=Fo*j+ml*xt+ul*rr+fl*ur,pt[15]=Fo*V+ml*Pt+ul*Qr+fl*Wt,this._identityCalculated=!1,this}function H(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function M(){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 k(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function C(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,j){return{x:v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(v,E,j){return v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function G(v,E,j){return v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function q(v,E,j){return v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,j=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new Pe;return Pt.props[0]=E,Pt.props[1]=j,Pt.props[4]=V,Pt.props[5]=ct,Pt.props[12]=gt,Pt.props[13]=xt,Pt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,j=v.length,V=[];for(E=0;E<j;E+=1)V[E]=Tt(v[E]);return V}function st(v,E,j){var V=X("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=j[0],V[5]=j[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Pt=this.props[5],Ft=this.props[12],ue=this.props[13];V[0]=v[0]*ct+v[1]*xt+Ft,V[1]=v[0]*gt+v[1]*Pt+ue,V[2]=E[0]*ct+E[1]*xt+Ft,V[3]=E[0]*gt+E[1]*Pt+ue,V[4]=j[0]*ct+j[1]*xt+Ft,V[5]=j[0]*gt+j[1]*Pt+ue}return V}function St(v,E,j){var V;return this.isIdentity()?V=[v,E,j]:V=[v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],V}function ht(v,E){if(this.isIdentity())return v+","+E;var j=this.props;return Math.round((v*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((v*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var v=0,E=this.props,j="matrix3d(",V=1e4;v<16;)j+=d(E[v]*V)/V,j+=v===15?")":",",v+=1;return j}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=_(v[0]),j=_(v[1]),V=_(v[4]),ct=_(v[5]),gt=_(v[12]),xt=_(v[13]);return"matrix("+E+","+j+","+V+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=b,this.skew=L,this.skewFromAxis=K,this.shear=w,this.scale=x,this.setTransform=O,this.translate=P,this.transform=R,this.multiply=H,this.applyToPoint=N,this.applyToX=$,this.applyToY=G,this.applyToZ=q,this.applyToPointArray=St,this.applyToTriplePoints=st,this.applyToPointStringified=ht,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=C,this.equals=k,this.inversePoints=ut,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=M,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function sl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(n){return typeof n}:sl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sl(r)}var Gt={},al="__[STANDALONE]__",Jm="__[ANIMATIONDATA]__",tu="";function RE(r){c(r)}function eu(){al===!0?me.searchAnimations(Jm,al,tu):me.searchAnimations()}function DE(r){gE(r)}function PE(r){EE(r)}function FE(r){return al===!0&&(r.animationData=JSON.parse(Jm)),me.loadAnimation(r)}function $E(r){if(typeof r=="string")switch(r){case"high":Qn(200);break;default:case"medium":Qn(50);break;case"low":Qn(10);break}else!isNaN(r)&&r>1&&Qn(r);Ta()>=50?Ge(!1):Ge(!0)}function VE(){return typeof navigator<"u"}function zE(r,s){r==="expressions"&&yE(s)}function BE(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return ol;case"matrix":return Pe;default:return null}}Gt.play=me.play,Gt.pause=me.pause,Gt.setLocationHref=RE,Gt.togglePause=me.togglePause,Gt.setSpeed=me.setSpeed,Gt.setDirection=me.setDirection,Gt.stop=me.stop,Gt.searchAnimations=eu,Gt.registerAnimation=me.registerAnimation,Gt.loadAnimation=FE,Gt.setSubframeRendering=DE,Gt.resize=me.resize,Gt.goToAndStop=me.goToAndStop,Gt.destroy=me.destroy,Gt.setQuality=$E,Gt.inBrowser=VE,Gt.installPlugin=zE,Gt.freeze=me.freeze,Gt.unfreeze=me.unfreeze,Gt.setVolume=me.setVolume,Gt.mute=me.mute,Gt.unmute=me.unmute,Gt.getRegisteredAnimations=me.getRegisteredAnimations,Gt.useWebWorker=i,Gt.setIDPrefix=PE,Gt.__getFactory=BE,Gt.version="5.12.2";function HE(){document.readyState==="complete"&&(clearInterval(KE),eu())}function UE(r){for(var s=ru.split("&"),n=0;n<s.length;n+=1){var d=s[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var ru="";if(al){var iu=document.getElementsByTagName("script"),GE=iu.length-1,ou=iu[GE]||{src:""};ru=ou.src?ou.src.replace(/^[^\?]+\??/,""):"",tu=UE("renderer")}var KE=setInterval(HE,100);try{!((typeof on>"u"?"undefined":sl(on))==="object"&&typeof Gl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Gt)}catch{}var Ki=function(){var r={},s={};r.registerModifier=n,r.getModifier=d;function n(m,p){s[m]||(s[m]=p)}function d(m,p,g){return new s[m](p,g)}return r}();function Ar(){}Ar.prototype.initModifierProperties=function(){},Ar.prototype.addShapeToModifier=function(){},Ar.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Cs.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Ar.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ar.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Me],Ar);function Rr(){}A([Ar],Rr),Rr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Rr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Rr.prototype.calculateShapeEdges=function(r,s,n,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var g=[],I,b=p.length,w;for(I=0;I<b;I+=1)if(w=p[I],!(w.e*m<d||w.s*m>d+n)){var L,K;w.s*m<=d?L=0:L=(w.s*m-d)/n,w.e*m>=d+n?K=1:K=(w.e*m-d)/n,g.push([L,K])}return g.length||g.push([0,0]),g},Rr.prototype.releasePathsData=function(r){var s,n=r.length;for(s=0;s<n;s+=1)jm.release(r[s]);return r.length=0,r},Rr.prototype.processShapes=function(r){var s,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,s>n){var m=s;s=n,n=m}s=Math.round(s*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=s,this.eValue=n}else s=this.sValue,n=this.eValue;var p,g,I=this.shapes.length,b,w,L,K,x,O=0;if(n===s)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&s===0||n===0&&s===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var P=[],R,H;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,w=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(L=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)K=Xr.getSegmentsLength(p.shapes[b]),L.push(K),x+=K.totalLength;R.totalShapeLength=x,R.pathsData=L}O+=x,R.shape._mdf=!0}var M=s,k=n,T=0,C;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(H=R.localShapeCollection,H.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):C=[[M,k]],w=C.length,b=0;b<w;b+=1){M=C[b][0],k=C[b][1],P.length=0,k<=1?P.push({s:R.totalShapeLength*M,e:R.totalShapeLength*k}):M>=1?P.push({s:R.totalShapeLength*(M-1),e:R.totalShapeLength*(k-1)}):(P.push({s:R.totalShapeLength*M,e:R.totalShapeLength}),P.push({s:0,e:R.totalShapeLength*(k-1)}));var N=this.addShapes(R,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var G=N.pop();this.addPaths(N,H),N=this.addShapes(R,P[1],G)}else this.addPaths(N,H),N=this.addShapes(R,P[1])}this.addPaths(N,H)}}R.shape.paths=H}}},Rr.prototype.addPaths=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)s.addShape(r[n])},Rr.prototype.addSegment=function(r,s,n,d,m,p,g){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Rr.prototype.addSegmentFromArray=function(r,s,n,d){s.setXYAt(r[1],r[5],"o",n),s.setXYAt(r[2],r[6],"i",n+1),d&&s.setXYAt(r[0],r[4],"v",n),s.setXYAt(r[3],r[7],"v",n+1)},Rr.prototype.addShapes=function(r,s,n){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,b,w=0,L,K,x,O,P=[],R,H=!0;for(n?(K=n._length,R=n._length):(n=De.newElement(),K=0,R=0),P.push(n),p=0;p<g;p+=1){for(x=d[p].lengths,n.c=m[p].c,b=m[p].c?x.length:x.length+1,I=1;I<b;I+=1)if(L=x[I-1],w+L.addedLength<s.s)w+=L.addedLength,n.c=!1;else if(w>s.e){n.c=!1;break}else s.s<=w&&s.e>=w+L.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,K,H),H=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-w)/L.addedLength,(s.e-w)/L.addedLength,x[I-1]),this.addSegmentFromArray(O,n,K,H),H=!1,n.c=!1),w+=L.addedLength,K+=1;if(m[p].c&&x.length){if(L=x[I-1],w<=s.e){var M=x[I-1].addedLength;s.s<=w&&s.e>=w+M?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,K,H),H=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-w)/M,(s.e-w)/M,x[I-1]),this.addSegmentFromArray(O,n,K,H),H=!1,n.c=!1)}else n.c=!1;w+=L.addedLength,K+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),w>s.e)break;p<g-1&&(n=De.newElement(),H=!0,P.push(n),K=0)}return P};function Ca(){}A([Ar],Ca),Ca.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ca.prototype.processPath=function(r,s){var n=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=De.newElement();g.c=r.c;var I,b,w,L,K,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,b=r.v[p][1]+(d[1]-r.v[p][1])*n,w=r.o[p][0]+(d[0]-r.o[p][0])*-n,L=r.o[p][1]+(d[1]-r.o[p][1])*-n,K=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,g.setTripleAt(I,b,w,L,K,x,p);return g},Ca.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Mc=function(){var r=[0,0];function s(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.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?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var w;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,K;if(w=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)/w,0),K=this.p.getValueAtTime(this.p.keyframes[0].t/w,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/w,0),K=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(L=this.p.pv,K=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],K=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(L[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),L[1]=O.getValueAtTime((O.keyframes[0].t+.01)/w,0),K[0]=x.getValueAtTime(x.keyframes[0].t/w,0),K[1]=O.getValueAtTime(O.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(L[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),L[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/w,0),K[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),K[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/w,0)):(L=[x.pv,O.pv],K[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),K[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/w,O.offsetTime))}else K=r,L=K;this.v.rotate(-Math.atan2(L[1]-K[1],L[0]-K[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 d(){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 m(){}function p(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,L){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||b),w.p&&w.p.s?(this.px=lt.getProp(b,w.p.x,0,0,this),this.py=lt.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=lt.getProp(b,w.p.z,0,0,this))):this.p=lt.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=lt.getProp(b,w.rx,0,kt,this),this.ry=lt.getProp(b,w.ry,0,kt,this),this.rz=lt.getProp(b,w.rz,0,kt,this),w.or.k[0].ti){var K,x=w.or.k.length;for(K=0;K<x;K+=1)w.or.k[K].to=null,w.or.k[K].ti=null}this.or=lt.getProp(b,w.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(b,w.r||{k:0},0,kt,this);w.sk&&(this.sk=lt.getProp(b,w.sk,0,kt,this),this.sa=lt.getProp(b,w.sa,0,kt,this)),this.a=lt.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=lt.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:n,precalculateMatrix:d,autoOrient:m},A([Me],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Me.prototype.addDynamicProperty;function I(b,w,L){return new g(b,w,L)}return{getTransformProperty:I}}();function Zr(){}A([Ar],Zr),Zr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=Mc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Zr.prototype.applyTransforms=function(r,s,n,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),b=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*g*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Zr.prototype.init=function(r,s,n,d){for(this.elem=r,this.arr=s,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[n]);n>0;)n-=1,this._elements.unshift(s[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Zr.prototype.resetElements=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Zr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Zr.prototype.changeGroupRender=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=s,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,s)},Zr.prototype.processShapes=function(r){var s,n,d,m,p,g=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.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,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}p=0;var w;for(d=0;d<=this._groups.length-1;d+=1){if(w=p<I,this._groups[d]._render=w,this.changeGroupRender(this._groups[d].it,w),!w){var L=this.elemsData[d].it,K=L[L.length-1];K.transform.op.v!==0?(K.transform.op._mdf=!0,K.transform.op.v=0):K.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,P=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,H=this.rMatrix.props,M=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var k=0;if(x>0){for(;k<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),k+=O)}else if(x<0){for(;k>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),k-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,C=n.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),k!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[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]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<C;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)n[T]=this.matrix.props[T];k+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return g},Zr.prototype.addShape=function(){};function _a(){}A([Ar],_a),_a.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},_a.prototype.processPath=function(r,s){var n=De.newElement();n.c=r.c;var d,m=r._length,p,g,I,b,w,L,K=0,x,O,P,R,H,M;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],K),K+=1):(d===0?b=r.v[m-1]:b=r.v[d-1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,H=p[0]+(b[0]-p[0])*L,x=H,M=p[1]-(p[1]-b[1])*L,O=M,P=x-(x-p[0])*oe,R=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,H,M,K),K+=1,d===m-1?b=r.v[0]:b=r.v[d+1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,P=p[0]+(b[0]-p[0])*L,x=P,R=p[1]+(b[1]-p[1])*L,O=R,H=x-(x-p[0])*oe,M=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,H,M,K),K+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],K),K+=1);return n},_a.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Lc(r){return Math.abs(r)<=1e-5}function su(r,s,n){return r*(1-n)+s*n}function Wi(r,s,n){return[su(r[0],s[0],n),su(r[1],s[1],n)]}function WE(r,s,n){if(r===0)return[];var d=s*s-4*r*n;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function au(r,s,n,d){return[-r+3*s-3*n+d,3*r-6*s+3*n,-3*r+3*s,r]}function nu(r){return new ne(r,r,r,r,!1)}function ne(r,s,n,d,m){m&&ks(r,s)&&(s=Wi(r,d,1/3)),m&&ks(n,d)&&(n=Wi(r,d,2/3));var p=au(r[0],s[0],n[0],d[0]),g=au(r[1],s[1],n[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,s,n,d]}ne.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},ne.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},ne.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},ne.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},ne.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Lc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Lc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},ne.prototype.split=function(r){if(r<=0)return[nu(this.points[0]),this];if(r>=1)return[this,nu(this.points[this.points.length-1])];var s=Wi(this.points[0],this.points[1],r),n=Wi(this.points[1],this.points[2],r),d=Wi(this.points[2],this.points[3],r),m=Wi(s,n,r),p=Wi(n,d,r),g=Wi(m,p,r);return[new ne(this.points[0],s,m,g,!0),new ne(g,p,d,this.points[3],!0)]};function lu(r,s){var n=r.points[0][s],d=r.points[r.points.length-1][s];if(n>d){var m=d;d=n,n=m}for(var p=WE(3*r.a[s],2*r.b[s],r.c[s]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[s];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}ne.prototype.bounds=function(){return{x:lu(this,0),y:lu(this,1)}},ne.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function ll(r,s,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+n)/2,t1:s,t2:n}}function du(r){var s=r.bez.split(.5);return[ll(s[0],r.t1,r.t),ll(s[1],r.t,r.t2)]}function YE(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function ka(r,s,n,d,m,p){if(YE(r,s)){if(n>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var g=du(r),I=du(s);ka(g[0],I[0],n+1,d,m,p),ka(g[0],I[1],n+1,d,m,p),ka(g[1],I[0],n+1,d,m,p),ka(g[1],I[1],n+1,d,m,p)}}ne.prototype.intersections=function(r,s,n){s===void 0&&(s=2),n===void 0&&(n=7);var d=[];return ka(ll(this,0,1),ll(r,0,1),0,s,d,n),d},ne.shapeSegment=function(r,s){var n=(s+1)%r.length();return new ne(r.v[s],r.o[s],r.i[n],r.v[n],!0)},ne.shapeSegmentInverted=function(r,s){var n=(s+1)%r.length();return new ne(r.v[n],r.i[n],r.o[s],r.v[s],!0)};function Oc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function dl(r,s,n,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],g=[n[0],n[1],1],I=[d[0],d[1],1],b=Oc(Oc(m,p),Oc(g,I));return Lc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function _s(r,s,n){return[r[0]+Math.cos(s)*n,r[1]-Math.sin(s)*n]}function Rc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ks(r,s){return nl(r[0],s[0])&&nl(r[1],s[1])}function wa(){}A([Ar],wa),wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function cu(r,s,n,d,m,p,g){var I=n-Math.PI/2,b=n+Math.PI/2,w=s[0]+Math.cos(n)*d*m,L=s[1]-Math.sin(n)*d*m;r.setTripleAt(w,L,w+Math.cos(I)*p,L-Math.sin(I)*p,w+Math.cos(b)*g,L-Math.sin(b)*g,r.length())}function jE(r,s){var n=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function qE(r,s){var n=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[n],p=r.v[d],g=jE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function hu(r,s,n,d,m,p,g){var I=qE(s,n),b=s.v[n%s._length],w=s.v[n===0?s._length-1:n-1],L=s.v[(n+1)%s._length],K=p===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=p===2?Math.sqrt(Math.pow(b[0]-L[0],2)+Math.pow(b[1]-L[1],2)):0;cu(r,s.v[n%s._length],I,g,d,x/((m+1)*2),K/((m+1)*2),p)}function XE(r,s,n,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+1),b=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,w=s.normalAngle(I),L=s.point(I);cu(r,L,w,p,n,b/((d+1)*2),b/((d+1)*2),m),p=-p}return p}wa.prototype.processPath=function(r,s,n,d){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=ne.shapeSegment(r,0);hu(p,r,0,s,n,d,g);for(var b=0;b<m;b+=1)g=XE(p,I,s,n,d,-g),b===m-1&&!r.c?I=null:I=ne.shapeSegment(r,(b+1)%m),hu(p,r,b+1,s,n,d,g);return p},wa.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,L;for(n=0;n<d;n+=1){if(w=this.shapes[n],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,I,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Dc(r,s,n){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[_s(r,d,n),_s(s,d,n)]}function ws(r,s){var n,d,m,p,g,I,b;b=Dc(r.points[0],r.points[1],s),n=b[0],d=b[1],b=Dc(r.points[1],r.points[2],s),m=b[0],p=b[1],b=Dc(r.points[2],r.points[3],s),g=b[0],I=b[1];var w=dl(n,d,m,p);w===null&&(w=d);var L=dl(g,I,m,p);return L===null&&(L=g),new ne(n,w,L,I)}function pu(r,s,n,d,m){var p=s.points[3],g=n.points[0];if(d===3||ks(p,g))return p;if(d===2){var I=-s.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,w=dl(p,_s(p,I+Math.PI/2,100),g,_s(g,I+Math.PI/2,100)),L=w?Rc(w,p):Rc(p,g)/2,K=_s(p,I,2*L*oe);return r.setXYAt(K[0],K[1],"o",r.length()-1),K=_s(g,b,2*L*oe),r.setTripleAt(g[0],g[1],g[0],g[1],K[0],K[1],r.length()),g}var x=ks(p,s.points[2])?s.points[0]:s.points[2],O=ks(g,n.points[1])?n.points[3]:n.points[1],P=dl(x,p,g,O);return P&&Rc(P,p)<m?(r.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],r.length()),P):p}function mu(r,s){var n=r.intersections(s);return n.length&&nl(n[0][0],1)&&n.shift(),n.length?n[0]:null}function uu(r,s){var n=r.slice(),d=s.slice(),m=mu(r[r.length-1],s[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=mu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[n,d]}function ZE(r){for(var s,n=1;n<r.length;n+=1)s=uu(r[n-1],r[n]),r[n-1]=s[0],r[n]=s[1];return r.length>1&&(s=uu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function fu(r,s){var n=r.inflectionPoints(),d,m,p,g;if(n.length===0)return[ws(r,s)];if(n.length===1||nl(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[ws(d,s),ws(m,s)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),g=p[0],m=p[1],[ws(d,s),ws(g,s),ws(m,s)]}function Na(){}A([Ar],Na),Na.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Na.prototype.processPath=function(r,s,n,d){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,b,w=[];for(g=0;g<p;g+=1)b=ne.shapeSegment(r,g),w.push(fu(b,s));if(!r.c)for(g=p-1;g>=0;g-=1)b=ne.shapeSegmentInverted(r,g),w.push(fu(b,s));w=ZE(w);var L=null,K=null;for(g=0;g<w.length;g+=1){var x=w[g];for(K&&(L=pu(m,K,x[0],n,d)),K=x[x.length-1],I=0;I<x.length;I+=1)b=x[I],L&&ks(b.points[0],L)?m.setXYAt(b.points[1][0],b.points[1][1],"o",m.length()-1):m.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],m.length()),m.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],m.length()),L=b.points[3]}return w.length&&pu(m,K,w[0][0],n,d),m},Na.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,L;for(n=0;n<d;n+=1){if(w=this.shapes[n],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,b,I));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function vu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=s.length,p,g=0;g<m;g+=1)switch(p=s[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var Ro=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.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 d=127988,m=917631,p=917601,g=917626,I=65039,b=8205,w=127462,L=127487,K=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var D=_.split(","),v,E=D.length,j=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&j.push(D[v]);return j.join(",")}function O(_,D){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var j=E.offsetWidth;return E.style.fontFamily=x(_)+", "+D,{node:E,w:j,parent:v}}function P(){var _,D=this.fonts.length,v,E,j=D;for(_=0;_<D;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(v=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,v.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.offsetWidth!==E&&(j-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));j!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(_,D){var v=document.body&&D?"svg":"canvas",E,j=vu(_);if(v==="svg"){var V=At("text");V.style.fontSize="100px",V.setAttribute("font-family",_.fFamily),V.setAttribute("font-style",j.style),V.setAttribute("font-weight",j.weight),V.textContent="1",_.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",_.fClass)):V.style.fontFamily=_.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function H(_,D){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(rr){rr.helper=R(rr),rr.cache={}}),this.fonts=_.list;return}var v=_.list,E,j=v.length,V=j;for(E=0;E<j;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Pt=y("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Ft=y("link");Ft.setAttribute("f-forigin",v[E].fOrigin),Ft.setAttribute("f-origin",v[E].origin),Ft.type="text/css",Ft.rel="stylesheet",Ft.href=v[E].fPath,document.body.appendChild(Ft)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var ue=y("link");ue.setAttribute("f-forigin",v[E].fOrigin),ue.setAttribute("f-origin",v[E].origin),ue.setAttribute("rel","stylesheet"),ue.setAttribute("href",v[E].fPath),D.appendChild(ue)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function M(_){if(_){this.chars||(this.chars=[]);var D,v=_.length,E,j=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<j;)this.chars[E].style===_[D].style&&this.chars[E].fFamily===_[D].fFamily&&this.chars[E].ch===_[D].ch&&(V=!0),E+=1;V||(this.chars.push(_[D]),j+=1)}}}function k(_,D,v){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,D,v)),s}function T(_,D,v){var E=this.getFontByName(D),j=_;if(!E.cache[j]){var V=E.helper;if(_===" "){var ct=V.measureText("|"+_+"|"),gt=V.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=V.measureText(_)/100}return E.cache[j]*v}function C(_){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===_)return this.fonts[D];D+=1}return this.fonts[0]}function N(_){var D=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(_,D){var v=_.toString(16)+D.toString(16);return K.indexOf(v)!==-1}function G(_){return _===b}function q(_){return _===I}function it(_){var D=N(_);return D>=w&&D<=L}function Tt(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ut(_){return n.indexOf(_)!==-1}function st(_,D){var v=N(_.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(_.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(_.substr(D,2))===m}function St(){this.isLoaded=!0}var ht=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)};ht.isModifier=$,ht.isZeroWidthJoiner=G,ht.isFlagEmoji=Tt,ht.isRegionalCode=it,ht.isCombinedCharacter=ut,ht.isRegionalFlag=st,ht.isVariationSelector=q,ht.BLACK_FLAG_CODE_POINT=d;var rt={addChars:M,addFonts:H,getCharData:k,getFontByName:C,measureText:T,checkLoadedFonts:P,setIsLoaded:St};return ht.prototype=rt,ht}();function gu(r){this.animationData=r}gu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function QE(r){return new gu(r)}function cl(){}cl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},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(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?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 s,n=this.renderableComponents.length;for(s=0;s<n;s+=1)this.renderableComponents[s].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 Pc=function(){var r={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(s){return r[s]||""}}();function JE(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function tT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function eT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function rT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function iT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function oT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function sT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function aT(){this.p={}}function bu(r,s){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new Ma(n[d],s),this.effectElements.push(p)}function Ma(r,s){this.init(r,s)}A([Me],Ma),Ma.prototype.getValue=Ma.prototype.iterateDynamicProperties,Ma.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new JE(p[n],s,this);break;case 1:m=new tT(p[n],s,this);break;case 2:m=new eT(p[n],s,this);break;case 3:m=new rT(p[n],s,this);break;case 4:case 7:m=new sT(p[n],s,this);break;case 10:m=new iT(p[n],s,this);break;case 11:m=new oT(p[n],s,this);break;case 5:m=new bu(p[n],s,this);break;default:m=new aT(p[n],s,this);break}m&&this.effectElements.push(m)}};function Yi(){}Yi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,n=this.data.masksProperties.length;s<n;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Gm();if(s){var n=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),g=s("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=Pc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=s},initBaseData:function(s,n,d){this.globalData=n,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new bu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function ji(){}ji.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function qi(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,n)}qi.prototype.prepareFrame=function(){},A([cl,Yi,ji],qi),qi.prototype.getBaseElement=function(){return null},qi.prototype.renderFrame=function(){},qi.prototype.destroy=function(){},qi.prototype.initExpressions=function(){var r=Gm();if(r){var s=r("footage");this.layerInterface=s(this)}},qi.prototype.getFootageData=function(){return this.footageData};function er(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([cl,Yi,ji],er),er.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))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,n=this.layers.length,d;for(this.completeLayers=!0,s=n-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new qi(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,n=r.length,d,m=this.layers.length;for(s=0;s<n;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,n){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,n=r.length;for(s=0;s<n;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Fe.prototype.getElementById=function(r){var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),n;if(typeof s=="number")n=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Ro,this.globalData.slotManager=QE(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),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=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var nT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?Mc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,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 s,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,n.cloneFromProps(s),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].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 s=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<n;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<n;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<n;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(nT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var n=0,d=s.length;for(n=0;n<d;n+=1)this.localTransforms.push(s[n])}}},globalToLocal:function(s){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=n.length,I;for(p=0;p<g;p+=1)I=n[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Do(r,s,n){this.data=r,this.element=s,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(p),this.solidPath="";var g,I=this.masksProperties,b=0,w=[],L,K,x=tr(),O,P,R,H,M="clipPath",k="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(M="mask",k="mask"),(I[m].mode==="s"||I[m].mode==="i")&&b===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),w.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(M="mask",k="mask",H=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),P=At("filter"),P.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),P.appendChild(R),d.appendChild(P),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,H=null),this.storedData[m]={elem:g,x:H,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){K=w.length;var C=At("g");for(L=0;L<K;L+=1)C.appendChild(w[L]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),w.length=0,w.push(C)}else w.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=At(M),p=w.length,m=0;m<p;m+=1)this.maskElement.appendChild(w[m]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(k,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Do.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Do.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},Do.prototype.getMaskelement=function(){return this.maskElement},Do.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Do.prototype.drawPath=function(r,s,n){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),n.lastPath!==d){var g="";n.elem&&(s.c&&(g=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},Do.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var La=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=n;function s(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),yu=function(){var r={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))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),hl={},Eu="filter_result_";function Fc(r){var s,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=La.createFilter(m,!0),g=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var b=r.data.ef[s].ty;if(hl[b]){var w=hl[b].effect;I=new w(p,r.effectsManager.effectElements[s],r,Eu+g,n),n=Eu+g,hl[b].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}Fc.prototype.renderFrame=function(r){var s,n=this.filters.length;for(s=0;s<n;s+=1)this.filters[s].renderFrame(r)},Fc.prototype.getEffects=function(r){var s,n=this.filters.length,d=[];for(s=0;s<n;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function kI(r,s,n){hl[r]={effect:s,countsAsEffect:n}}function Oa(){}Oa.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var n=At("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),s=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=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 d=At("clipPath"),m=At("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}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 Do(this.data,this,this.globalData),this.renderableEffectsManager=new Fc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var n=this.layerId+"_"+s,d,m,p,g;if(s===1||s===3){var I=At("mask");I.setAttribute("id",n),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!yu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=La.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(La.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var b=At("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var w=At("g");b.appendChild(w),d=tr(),m=La.createFilter(d);var L=At("feComponentTransfer");L.setAttribute("in","SourceGraphic"),m.appendChild(L);var K=At("feFuncA");K.setAttribute("type","table"),K.setAttribute("tableValues","1.0 0.0"),L.appendChild(K),this.globalData.defs.appendChild(m);var x=At("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),w.setAttribute("filter","url("+f()+"#"+d+")"),w.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(p),yu.maskType||(b.setAttribute("mask-type","luminance"),m.appendChild(La.createAlphaToLuminanceFilter()),g=At("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[s]=n}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ms(){}Ms.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ra(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([cl,U(r)],Ra)})();function Da(r,s,n){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Yi,Ns,Oa,Ms,ji,Ra],Da),Da.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("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",r),this.layerElement.appendChild(this.innerElem)},Da.prototype.sourceRectAtTime=function(){return this.sourceRect};function lT(r,s){this.elem=r,this.pos=s}function Tu(){}Tu.prototype={addShapeToModifiers:function(s){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,n=this.shapes.length;for(s=0;s<n;s+=1)this.shapes[s].sh.reset();n=this.shapeModifiers.length;var d;for(s=n-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===s)return n[d].pos;d+=1}return 0},addProcessedElement:function(s,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=n;return}d.push(new lT(s,n))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var xu={1:"butt",2:"round",3:"square"},Au={1:"miter",2:"round",3:"bevel"};function Su(r,s,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=s,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Su.prototype.setAsAnimated=function(){this._isAnimated=!0};function Iu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}Iu.prototype.reset=function(){this.d="",this._mdf=!1};function pl(r,s,n,d){this.elem=r,this.frameId=-1,this.dataProps=tt(s.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=X("float32",s.length?s.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,g;for(m=0;m<p;m+=1)g=lt.getProp(r,s[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:s[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}pl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<n;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Me],pl);function Cu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Me],Cu);function _u(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n}A([Me],_u);function ku(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Me],ku);function Pa(r,s,n){this.data=s,this.c=X("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=X("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Pa.prototype.comparePoints=function(r,s){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[s*4+n*2]),m>.01)return!1;n+=1}return!0},Pa.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Pa.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,n=this.data.p*4,d,m;for(s=0;s<n;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,s=this.data.p*4;s<n;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Me],Pa);function Ls(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,n)}Ls.prototype.initGradientData=function(r,s,n){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new Pa(r,s.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,s),this.setGradientOpacity(s,n),this._isAnimated=!!this._isAnimated},Ls.prototype.setGradientData=function(r,s){var n=tr(),d=At(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=s.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ls.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=tr(),b=tr();p.setAttribute("id",b);var w=At(r.t===1?"linearGradient":"radialGradient");w.setAttribute("id",I),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var L=this.stops;for(d=r.g.p*4;d<m;d+=2)n=At("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(n),L.push(n);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",xu[r.lc||2]),g.setAttribute("stroke-linejoin",Au[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=w,this.ms=p,this.ost=L,this.maskId=b,s.msElem=g}},A([Me],Ls);function wu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.initGradientData(r,s,n),this._isAnimated=!!this._isAnimated}A([Ls,Me],wu);function dT(){this.it=[],this.prevViewData=[],this.gr=At("g")}function cT(r,s,n){this.transform={mProps:r,op:s,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Nu=function(s,n,d,m){if(n===0)return"";var p=s.o,g=s.i,I=s.v,b,w=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(b=1;b<n;b+=1)w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[b][0],g[b][1])+" "+m.applyToPointStringified(I[b][0],I[b][1]);return d&&n&&(w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),w+="z"),w},hT=function(){var r=new Pe,s=new Pe,n={createRenderFunction:d};function d(K){switch(K.ty){case"fl":return I;case"gf":return w;case"gs":return b;case"st":return L;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(K,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function g(K,x,O){var P,R,H,M,k,T,C=x.styles.length,N=x.lvl,$,G,q,it;for(T=0;T<C;T+=1){if(M=x.sh._mdf||O,x.styles[T].lvl<N){for(G=s.reset(),q=N-x.styles[T].lvl,it=x.transformers.length-1;!M&&q>0;)M=x.transformers[it].mProps._mdf||M,q-=1,it-=1;if(M)for(q=N-x.styles[T].lvl,it=x.transformers.length-1;q>0;)G.multiply(x.transformers[it].mProps.v),q-=1,it-=1}else G=r;if($=x.sh.paths,R=$._length,M){for(H="",P=0;P<R;P+=1)k=$.shapes[P],k&&k._length&&(H+=Nu(k,k._length,k.c,G));x.caches[T]=H}else H=x.caches[T];x.styles[T].d+=K.hd===!0?"":H,x.styles[T]._mdf=M||x.styles[T]._mdf}}function I(K,x,O){var P=x.style;(x.c._mdf||O)&&P.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("fill-opacity",x.o.v)}function b(K,x,O){w(K,x,O),L(K,x,O)}function w(K,x,O){var P=x.gf,R=x.g._hasOpacity,H=x.s.v,M=x.e.v;if(x.o._mdf||O){var k=K.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(k,x.o.v)}if(x.s._mdf||O){var T=K.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";P.setAttribute(T,H[0]),P.setAttribute(C,H[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,H[0]),x.of.setAttribute(C,H[1]))}var N,$,G,q;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(G=N.length,$=0;$<G;$+=1)q=N[$],q.setAttribute("offset",it[$*4]+"%"),q.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,G=N.length,$=0;$<G;$+=1)q=N[$],x.g._collapsable||q.setAttribute("offset",Tt[$*2]+"%"),q.setAttribute("stop-opacity",Tt[$*2+1])}if(K.t===1)(x.e._mdf||O)&&(P.setAttribute("x2",M[0]),P.setAttribute("y2",M[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",M[0]),x.of.setAttribute("y2",M[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)),P.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)));var st=Math.atan2(M[1]-H[1],M[0]-H[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var ht=ut*St,rt=Math.cos(st+x.a.v)*ht+H[0],_=Math.sin(st+x.a.v)*ht+H[1];P.setAttribute("fx",rt),P.setAttribute("fy",_),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",_))}}}function L(K,x,O){var P=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(P.pElem.setAttribute("stroke-dasharray",R.dashStr),P.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&P.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(P.pElem.setAttribute("stroke-width",x.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",x.w.v))}return n}();function de(r,s,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,n),this.prevViewData=[]}A([Yi,Ns,Oa,Tu,Ms,ji,Ra],de),de.prototype.initSecondaryElement=function(){},de.prototype.identityMatrix=new Pe,de.prototype.buildExpressionInterface=function(){},de.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},de.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,n,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<s;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(g.push(n),I=n._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},de.prototype.setShapesAsAnimated=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s].setAsAnimated()},de.prototype.createStyleElement=function(r,s){var n,d=new Iu(r,s),m=d.pElem;if(r.ty==="st")n=new Cu(this,r,d);else if(r.ty==="fl")n=new _u(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ls:wu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new ku(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",xu[r.lc||2]),m.setAttribute("stroke-linejoin",Au[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=Pc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},de.prototype.createGroupElement=function(r){var s=new dT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=Pc(r.bm)),s},de.prototype.createTransformElement=function(r,s){var n=Mc.getTransformProperty(this,r,this),d=new cT(n,n.o,s);return this.addToAnimatedContents(r,d),d},de.prototype.createShapeElement=function(r,s,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=ol.getShapeProp(this,r,d,this),p=new Su(s,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},de.prototype.addToAnimatedContents=function(r,s){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===s)return;n+=1}this.animatedContents.push({fn:hT.createRenderFunction(r),element:s,data:r})},de.prototype.setElementStyles=function(r){var s=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||s.push(this.stylesList[n])},de.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},de.prototype.searchShapes=function(r,s,n,d,m,p,g){var I=[].concat(p),b,w=r.length-1,L,K,x=[],O=[],P,R,H;for(b=w;b>=0;b-=1){if(H=this.searchProcessedElement(r[b]),H?s[b]=n[H-1]:r[b]._render=g,r[b].ty==="fl"||r[b].ty==="st"||r[b].ty==="gf"||r[b].ty==="gs"||r[b].ty==="no")H?s[b].style.closed=!1:s[b]=this.createStyleElement(r[b],m),r[b]._render&&s[b].style.pElem.parentNode!==d&&d.appendChild(s[b].style.pElem),x.push(s[b].style);else if(r[b].ty==="gr"){if(!H)s[b]=this.createGroupElement(r[b]);else for(K=s[b].it.length,L=0;L<K;L+=1)s[b].prevViewData[L]=s[b].it[L];this.searchShapes(r[b].it,s[b].it,s[b].prevViewData,s[b].gr,m+1,I,g),r[b]._render&&s[b].gr.parentNode!==d&&d.appendChild(s[b].gr)}else r[b].ty==="tr"?(H||(s[b]=this.createTransformElement(r[b],d)),P=s[b].transform,I.push(P)):r[b].ty==="sh"||r[b].ty==="rc"||r[b].ty==="el"||r[b].ty==="sr"?(H||(s[b]=this.createShapeElement(r[b],I,m)),this.setElementStyles(s[b])):r[b].ty==="tm"||r[b].ty==="rd"||r[b].ty==="ms"||r[b].ty==="pb"||r[b].ty==="zz"||r[b].ty==="op"?(H?(R=s[b],R.closed=!1):(R=Ki.getModifier(r[b].ty),R.init(this,r[b]),s[b]=R,this.shapeModifiers.push(R)),O.push(R)):r[b].ty==="rp"&&(H?(R=s[b],R.closed=!0):(R=Ki.getModifier(r[b].ty),s[b]=R,R.init(this,r,b,s),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=O.length,b=0;b<w;b+=1)O[b].closed=!0},de.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},de.prototype.renderShape=function(){var r,s=this.animatedContents.length,n;for(r=0;r<s;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},de.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function $c(r,s,n,d,m,p){this.o=r,this.sw=s,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!n,fc:!!d,m:!0,p:!0}}$c.prototype.update=function(r,s,n,d,m,p){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 g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,g=!0),g};function Ke(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,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)}Ke.prototype.defaultBoxWidth=[0,0],Ke.prototype.copyData=function(r,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n]);return r},Ke.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ke.prototype.searchProperty=function(){return this.searchKeyframes()},Ke.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ke.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},Ke.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Ke.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>s);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Ke.prototype.buildFinalText=function(r){for(var s=[],n=0,d=r.length,m,p,g=!1,I=!1,b="";n<d;)g=I,I=!1,m=r.charCodeAt(n),b=r.charAt(n),Ro.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?Ro.isRegionalFlag(r,n)?b=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(Ro.isModifier(m,p)?(b=r.substr(n,2),g=!0):Ro.isFlagEmoji(r.substr(n,4))?b=r.substr(n,4):b=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),Ro.isVariationSelector(m)&&(g=!0)):Ro.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(s[s.length-1]+=b,g=!1):s.push(b),n+=b.length;return s},Ke.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,n=this.data,d=[],m,p,g,I=0,b,w=n.m.g,L=0,K=0,x=0,O=[],P=0,R=0,H,M,k=s.getFontByName(r.f),T,C=0,N=vu(k);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,G;if(r.sz)for(var q=!0,it=r.sz[0],Tt=r.sz[1],ut,st;q;){st=this.buildFinalText(r.t),ut=0,P=0,p=st.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)G=st[m].charCodeAt(0),g=!1,st[m]===" "?St=m:(G===13||G===3)&&(P=0,g=!0,ut+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(st[m],k.fStyle,k.fFamily),C=g?0:T.w*r.finalSize/100):C=s.measureText(st[m],r.f,r.finalSize),P+C>it&&st[m]!==" "?(St===-1?p+=1:m=St,ut+=r.finalLineHeight||r.finalSize*1.2,st.splice(m,St===m?1:0,"\r"),St=-1,P=0):(P+=C,P+=$);ut+=k.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ut?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=st,p=r.finalText.length,q=!1)}P=-$,C=0;var ht=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],G=rt.charCodeAt(0),G===13||G===3?(ht=0,O.push(P),R=P>R?P:R,P=-2*$,b="",g=!0,x+=1):b=rt,s.chars?(T=s.getCharData(rt,k.fStyle,s.getFontByName(r.f).fFamily),C=g?0:T.w*r.finalSize/100):C=s.measureText(b,r.f,r.finalSize),rt===" "?ht+=C+$:(P+=C+$+ht,ht=0),d.push({l:C,an:C,add:L,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(L+=C,b===""||b===" "||m===p-1){for((b===""||b===" ")&&(L-=C);K<=m;)d[K].an=L,d[K].ind=I,d[K].extra=C,K+=1;I+=1,L=0}}else if(w==3){if(L+=C,b===""||m===p-1){for(b===""&&(L-=C);K<=m;)d[K].an=L,d[K].ind=I,d[K].extra=C,K+=1;L=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=P>R?P:R,O.push(P),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=n.a,D,v;M=_.length;var E,j,V=[];for(H=0;H<M;H+=1){for(D=_[H],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),j=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[H]=j,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(j),j+=1);n.a[H].s.totalChars=j;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[H]&&(ct=v.anIndexes[H],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[H]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=k.ascent*r.finalSize/100},Ke.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var n=this.copyData({},this.data.d.k[s].s);n=this.copyData(n,r),this.data.d.k[s].s=n,this.recalculate(s),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Ke.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},Ke.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ke.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var pT=function(){var r=Math.max,s=Math.min,n=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=lt.getProp(p,g.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,g.o||{k:0},0,0,this),this.xe=lt.getProp(p,g.xe||{k:0},0,0,this),this.ne=lt.getProp(p,g.ne||{k:0},0,0,this),this.sm=lt.getProp(p,g.sm||{k:100},0,0,this),this.a=lt.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,b=0,w=1,L=1;this.ne.v>0?I=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:L=1+this.xe.v/100;var K=Ia.getBezierEasing(I,b,w,L).get,x=0,O=this.finalS,P=this.finalE,R=this.data.sh;if(R===2)P===O?x=g>=P?1:0:x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===3)P===O?x=g>=P?0:1:x=1-r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===4)P===O?x=0:(x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=K(x);else if(R===5){if(P===O)x=0;else{var H=P-O;g=s(r(0,g+.5-O),P-O);var M=-H/2+g,k=H/2;x=Math.sqrt(1-M*M/(k*k))}x=K(x)}else R===6?(P===O?x=0:(g=s(r(0,g+.5-O),P-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(P-O)))/2),x=K(x)):(g>=n(O)&&(g-O<0?x=r(0,s(s(P,1)-(O-g),1)):x=r(0,s(P-g,1))),x=K(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/I,w=this.s.v/I+b,L=this.e.v/I+b;if(w>L){var K=w;w=L,L=K}this.finalS=w,this.finalE=L}},A([Me],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function mT(r,s,n){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,n):d,rx:p.rx?m(r,p.rx,0,kt,n):d,ry:p.ry?m(r,p.ry,0,kt,n):d,sk:p.sk?m(r,p.sk,0,kt,n):d,sa:p.sa?m(r,p.sa,0,kt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=pT.getTextSelectorProp(r,s.s,n),this.s.t=s.s.t}function Po(r,s,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=n,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Po.prototype.searchProperties=function(){var r,s=this._textData.a.length,n,d=lt.getProp;for(r=0;r<s;r+=1)n=this._textData.a[r],this._animatorsData[r]=new mT(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(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=d(this._elem,this._textData.m.a,1,0,this)},Po.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,b,w,L,K,x=r.l,O,P,R,H,M,k,T,C,N,$,G,q,it,Tt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},K=st._length-1;var St;for(q=0,L=0;L<K;L+=1)St=Xr.buildBezierData(st.v[L],st.v[L+1],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[L+1][0]-st.v[L+1][0],st.i[L+1][1]-st.v[L+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength;L=K,ut.v.c&&(St=Xr.buildBezierData(st.v[L],st.v[0],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,P=this._pathData.f.v,T=0,k=1,H=0,M=!0,$=O.segments,P<0&&ut.v.c)for(O.tLength<Math.abs(P)&&(P=-Math.abs(P)%O.tLength),T=$.length-1,N=$[T].points,k=N.length-1;P<0;)P+=N[k].partialLength,k-=1,k<0&&(T-=1,N=$[T].points,k=N.length-1);N=$[T].points,C=N[k-1],R=N[k],G=R.partialLength}K=x.length,b=0,w=0;var ht=r.finalSize*1.2*.714,rt=!0,_,D,v,E,j;E=d.length;var V,ct=-1,gt,xt,Pt,Ft=P,ue=T,rr=k,Qr=-1,ir,Le,ur,Wt,pt,vi,Zi,gi,Jr="",bi=this.defaultPropsArray,yi;if(r.j===2||r.j===1){var or=0,Qi=0,Ji=r.j===2?-.5:-1,Dr=0,to=!0;for(L=0;L<K;L+=1)if(x[L].n){for(or&&(or+=Qi);Dr<L;)x[Dr].animatorJustifyOffset=or,Dr+=1;or=0,to=!0}else{for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(to&&r.j===2&&(Qi+=_.t.v*Ji),D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?or+=_.t.v*V[0]*Ji:or+=_.t.v*V*Ji);to=!1}for(or&&(or+=Qi);Dr<L;)x[Dr].animatorJustifyOffset=or,Dr+=1}for(L=0;L<K;L+=1){if(p.reset(),ir=1,x[L].n)b=0,w+=r.yOffset,w+=rt?1:0,P=Ft,rt=!1,this._hasMaskedPath&&(T=ue,k=rr,N=$[T].points,C=N[k-1],R=N[k],G=R.partialLength,H=0),Jr="",gi="",vi="",yi="",bi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Qr!==x[L].line){switch(r.j){case 1:P+=q-r.lineWidths[x[L].line];break;case 2:P+=(q-r.lineWidths[x[L].line])/2;break;default:break}Qr=x[L].line}ct!==x[L].ind&&(x[ct]&&(P+=x[ct].extra),P+=x[L].an/2,ct=x[L].ind),P+=n[0]*x[L].an*.005;var Pr=0;for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=_.p.v[0]*V[0]:Pr+=_.p.v[0]*V),_.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=_.a.v[0]*V[0]:Pr+=_.a.v[0]*V);for(M=!0,this._pathData.a.v&&(P=x[0].an*.5+(q-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(K-1),P+=this._pathData.f.v);M;)H+G>=P+Pr||!N?(it=(P+Pr-H)/R.partialLength,xt=C.point[0]+(R.point[0]-C.point[0])*it,Pt=C.point[1]+(R.point[1]-C.point[1])*it,p.translate(-n[0]*x[L].an*.005,-(n[1]*ht)*.01),M=!1):N&&(H+=R.partialLength,k+=1,k>=N.length&&(k=0,T+=1,$[T]?N=$[T].points:ut.v.c?(k=0,T=0,N=$[T].points):(H-=R.partialLength,N=null)),N&&(C=R,R=N[k],G=R.partialLength));gt=x[L].an/2-x[L].add,p.translate(-gt,0,0)}else gt=x[L].an/2-x[L].add,p.translate(-gt,0,0),p.translate(-n[0]*x[L].an*.005,-n[1]*ht*.01,0);for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),(b!==0||r.j!==0)&&(this._hasMaskedPath?V.length?P+=_.t.v*V[0]:P+=_.t.v*V:V.length?b+=_.t.v*V[0]:b+=_.t.v*V));for(r.strokeWidthAnim&&(ur=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Wt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)_=d[v].a,_.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-_.a.v[0]*V[0],-_.a.v[1]*V[1],_.a.v[2]*V[2]):p.translate(-_.a.v[0]*V,-_.a.v[1]*V,_.a.v[2]*V));for(v=0;v<E;v+=1)_=d[v].a,_.s.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(_.s.v[0]-1)*V[0],1+(_.s.v[1]-1)*V[1],1):p.scale(1+(_.s.v[0]-1)*V,1+(_.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(_=d[v].a,D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),_.sk.propType&&(V.length?p.skewFromAxis(-_.sk.v*V[0],_.sa.v*V[1]):p.skewFromAxis(-_.sk.v*V,_.sa.v*V)),_.r.propType&&(V.length?p.rotateZ(-_.r.v*V[2]):p.rotateZ(-_.r.v*V)),_.ry.propType&&(V.length?p.rotateY(_.ry.v*V[1]):p.rotateY(_.ry.v*V)),_.rx.propType&&(V.length?p.rotateX(_.rx.v*V[0]):p.rotateX(_.rx.v*V)),_.o.propType&&(V.length?ir+=(_.o.v*V[0]-ir)*V[0]:ir+=(_.o.v*V-ir)*V),r.strokeWidthAnim&&_.sw.propType&&(V.length?ur+=_.sw.v*V[0]:ur+=_.sw.v*V),r.strokeColorAnim&&_.sc.propType)for(pt=0;pt<3;pt+=1)V.length?Le[pt]+=(_.sc.v[pt]-Le[pt])*V[0]:Le[pt]+=(_.sc.v[pt]-Le[pt])*V;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(pt=0;pt<3;pt+=1)V.length?Wt[pt]+=(_.fc.v[pt]-Wt[pt])*V[0]:Wt[pt]+=(_.fc.v[pt]-Wt[pt])*V;_.fh.propType&&(V.length?Wt=Um(Wt,_.fh.v*V[0]):Wt=Um(Wt,_.fh.v*V)),_.fs.propType&&(V.length?Wt=Bm(Wt,_.fs.v*V[0]):Wt=Bm(Wt,_.fs.v*V)),_.fb.propType&&(V.length?Wt=Hm(Wt,_.fb.v*V[0]):Wt=Hm(Wt,_.fb.v*V))}}for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,_.p.v[1]*V[0],-_.p.v[2]*V[1]):p.translate(0,_.p.v[1]*V,-_.p.v[2]*V):V.length?p.translate(_.p.v[0]*V[0],_.p.v[1]*V[1],-_.p.v[2]*V[2]):p.translate(_.p.v[0]*V,_.p.v[1]*V,-_.p.v[2]*V));if(r.strokeWidthAnim&&(vi=ur<0?0:ur),r.strokeColorAnim&&(Zi="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(gi="rgb("+Math.round(Wt[0]*255)+","+Math.round(Wt[1]*255)+","+Math.round(Wt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,n[1]*ht*.01+w,0),this._pathData.p.v){Tt=(R.point[1]-C.point[1])/(R.point[0]-C.point[0]);var Fo=Math.atan(Tt)*180/Math.PI;R.point[0]<C.point[0]&&(Fo+=180),p.rotate(-Fo*Math.PI/180)}p.translate(xt,Pt,0),P-=n[0]*x[L].an*.005,x[L+1]&&ct!==x[L+1].ind&&(P+=x[L].an/2,P+=r.tr*.001*r.finalSize)}else{switch(p.translate(b,w,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line]),0,0);break;case 2:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(n[0]*x[L].an*.005,n[1]*ht*.01,0),b+=x[L].l+r.tr*.001*r.finalSize}g==="html"?Jr=p.toCSS():g==="svg"?Jr=p.to2dCSS():bi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],yi=ir}I<=L?(j=new $c(yi,vi,Zi,gi,Jr,bi),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[L],this.lettersChangedFlag=j.update(yi,vi,Zi,gi,Jr,bi)||this.lettersChangedFlag)}}},Po.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Po.prototype.mHelper=new Pe,Po.prototype.defaultPropsArray=[],A([Me],Po);function Sr(){}Sr.prototype.initElement=function(r,s,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,n),this.textProperty=new Ke(this,r.t,this.dynamicProperties),this.textAnimator=new Po(r.t,this.renderType,this),this.initTransform(r,s,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Sr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Sr.prototype.createPathShape=function(r,s){var n,d=s.length,m,p="";for(n=0;n<d;n+=1)s[n].ty==="sh"&&(m=s[n].ks.k,p+=Nu(m,m.i.length,!0,r));return p},Sr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Sr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Sr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Sr.prototype.applyTextPropertiesToMatrix=function(r,s,n,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}s.translate(d,m,0)},Sr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Sr.prototype.emptyProp=new $c,Sr.prototype.destroy=function(){},Sr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var uT={shapes:[]};function ui(r,s,n){this.textSpans=[],this.renderType="svg",this.initElement(r,s,n)}A([Yi,Ns,Oa,Ms,ji,Ra,Sr],ui),ui.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},ui.prototype.buildTextContents=function(r){for(var s=0,n=r.length,d=[],m="";s<n;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},ui.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},ui.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,n=this.textProperty.currentData;this.renderedLetters=tt(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],I=!!this.globalData.fontManager.chars;s=g.length;var b,w=this.mHelper,L="",K=this.data.singleShape,x=0,O=0,P=!0,R=n.tr*.001*n.finalSize;if(K&&!I&&!n.sz){var H=this.textContainer,M="start";switch(n.j){case 1:M="end";break;case 2:M="middle";break;default:M="start";break}H.setAttribute("text-anchor",M),H.setAttribute("letter-spacing",R);var k=this.buildTextContents(n.finalText);for(s=k.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<s;r+=1)b=this.textSpans[r].span||At("tspan"),b.textContent=k[r],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",H.appendChild(b),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(H)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!K||r===0){if(b=T>r?this.textSpans[r].span:At(I?"g":"text"),T<=r){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=b,I){var N=At("g");b.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),K&&(g[r].n&&(x=-R,O+=n.yOffset,O+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(n,w,g[r].line,x,O),x+=g[r].l||0,x+=R),I){C=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(C.t===1)$=new Fa(C.data,this.globalData,this);else{var G=uT;C.data&&C.data.shapes&&(G=this.buildShapeData(C.data,n.finalSize)),$=new de(G,this.globalData,this)}if(this.textSpans[r].glyph){var q=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(q.layerElement),q.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else K&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[r].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}K&&b&&b.setAttribute("d",L)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},ui.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},ui.prototype.getValue=function(){var r,s=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ui.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 r,s,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,g;for(r=0;r<s;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Vc(r,s,n){this.initElement(r,s,n)}A([Da],Vc),Vc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Xi(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initFrame(),this.initTransform(r,s,n),this.initHierarchy()}Xi.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Xi.prototype.renderFrame=function(){},Xi.prototype.getBaseElement=function(){return null},Xi.prototype.destroy=function(){},Xi.prototype.sourceRectAtTime=function(){},Xi.prototype.hide=function(){},A([Yi,Ns,Ms,ji],Xi);function Se(){}A([Fe],Se),Se.prototype.createNull=function(r){return new Xi(r,this.globalData,this)},Se.prototype.createShape=function(r){return new de(r,this.globalData,this)},Se.prototype.createText=function(r){return new ui(r,this.globalData,this)},Se.prototype.createImage=function(r){return new Da(r,this.globalData,this)},Se.prototype.createSolid=function(r){return new Vc(r,this.globalData,this)},Se.prototype.configAnimation=function(r){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 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.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 s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var n=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(n),this.layers=r.layers,this.elements=tt(r.layers.length)},Se.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Se.prototype.updateContainerSize=function(){},Se.prototype.findIndexByInd=function(r){var s=0,n=this.layers.length;for(s=0;s<n;s+=1)if(this.layers[s].ind===r)return s;return-1},Se.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var n=this.createItem(this.layers[r]);if(s[r]=n,Zn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=s[d],p=m.getMatte(this.layers[r].tt);n.setMatte(p)}}}},Se.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,n=this.elements.length;s<n;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Se.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<n;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Se.prototype.appendElementInPos=function(r,s){var n=r.getBaseElement();if(n){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Se.prototype.hide=function(){this.layerElement.style.display="none"},Se.prototype.show=function(){this.layerElement.style.display="block"};function fi(){}A([Yi,Ns,Ms,ji,Ra],fi),fi.prototype.initElement=function(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initTransform(r,s,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},fi.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},fi.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},fi.prototype.setElements=function(r){this.elements=r},fi.prototype.getElements=function(){return this.elements},fi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},fi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Fa(r,s,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(r,s,n),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Se,fi,Oa],Fa),Fa.prototype.createComp=function(r){return new Fa(r,this.globalData,this)};function zc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var n="";if(s&&s.title){var d=At("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),n+=m}if(s&&s.description){var p=At("desc"),g=tr();p.setAttribute("id",g),p.textContent=s.description,this.svgElement.appendChild(p),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=At("defs");this.svgElement.appendChild(I);var b=At("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Se],zc),zc.prototype.createComp=function(r){return new Fa(r,this.globalData,this)},SE("svg",zc),Ki.registerModifier("tm",Rr),Ki.registerModifier("pb",Ca),Ki.registerModifier("rp",Zr),Ki.registerModifier("rd",_a),Ki.registerModifier("zz",wa),Ki.registerModifier("op",Na),Gt})});var vl=globalThis,gl=vl.ShadowRoot&&(vl.ShadyCSS===void 0||vl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hc=Symbol(),Lu=new WeakMap,$a=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Hc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(gl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=Lu.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&Lu.set(t,o))}return o}toString(){return this.cssText}},Ou=a=>new $a(typeof a=="string"?a:a+"",void 0,Hc),B=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((e,i,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+a[l+1],a[0]);return new $a(t,a,Hc)},Uc=(a,o)=>{if(gl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=vl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,a.appendChild(e)}},bl=gl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return Ou(t)})(a):a;var{is:xT,defineProperty:AT,getOwnPropertyDescriptor:ST,getOwnPropertyNames:IT,getOwnPropertySymbols:CT,getPrototypeOf:_T}=Object,eo=globalThis,Ru=eo.trustedTypes,kT=Ru?Ru.emptyScript:"",Gc=eo.reactiveElementPolyfillSupport,Va=(a,o)=>a,za={toAttribute(a,o){switch(o){case Boolean:a=a?kT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},yl=(a,o)=>!xT(a,o),Du={attribute:!0,type:String,converter:za,reflect:!1,hasChanged:yl},Pu,Fu;(Pu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Fu=eo.litPropertyMetadata)!=null||(eo.litPropertyMetadata=new WeakMap);var Ei=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Du){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&AT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var c;let{get:i,set:l}=(c=ST(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let y=i==null?void 0:i.call(this);l.call(this,f),this.requestUpdate(o,y,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Du}static _$Ei(){if(this.hasOwnProperty(Va("elementProperties")))return;let o=_T(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Va("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Va("properties"))){let t=this.properties,e=[...IT(t),...CT(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(bl(i))}else o!==void 0&&t.push(bl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Uc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var l;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:za).toAttribute(t,e.type);this._$Em=o,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(o,t){var l;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let c=e.getPropertyOptions(i),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:za;this._$Em=i,this[i]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:yl)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},$u;Ei.elementStyles=[],Ei.shadowRootOptions={mode:"open"},Ei[Va("elementProperties")]=new Map,Ei[Va("finalized")]=new Map,Gc==null||Gc({ReactiveElement:Ei}),(($u=eo.reactiveElementVersions)!=null?$u:eo.reactiveElementVersions=[]).push("2.0.4");var Ha=globalThis,El=Ha.trustedTypes,Vu=El?El.createPolicy("lit-html",{createHTML:a=>a}):void 0,Yc="$lit$",Ti=`lit$${Math.random().toFixed(9).slice(2)}$`,jc="?"+Ti,wT=`<${jc}>`,zo=document,Ua=()=>zo.createComment(""),Ga=a=>a===null||typeof a!="object"&&typeof a!="function",qc=Array.isArray,Wu=a=>qc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Kc=`[
|
|
2
|
+
`),d={},m,p=0,g=0;g<n.length;g+=1)m=n[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var n=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}n.push(p)}return n}}(),AE=function(){function r(s){this.compositions.push(s)}return function(){function s(n){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===n)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),Aa={},SE=function(s,n){Aa[s]=n};function IE(r){return Aa[r]}function CE(){if(Aa.canvas)return"canvas";for(var r in Aa)if(Aa[r])return r;return""}function Sa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sa=function(n){return typeof n}:Sa=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sa(r)}var vt=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=tr(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=bE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=AE(),this.imagePreloader=new TE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new xr("drawnFrame",0,0,0),this.expressionsPlugin=Zn()};A([Km],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var n=IE(s);this.renderer=new n(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),xa.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){xa.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Sa(s)!=="object"&&(s=JSON.parse(s));var n={wrapper:r,animationData:s},d=r.attributes;n.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",n.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:CE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?n.loop=!1:m==="true"?n.loop=!0:m!==""&&(n.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;n.autoplay=p!=="false",n.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,n,d=s.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(n=0;n<d;){if(s[n].id===m[p].id){s[n]=m[p];break}n+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,n=0;n<d;n+=1)this.animationData.assets.push(r.assets[n]);this.animationData.__complete=!1,xa.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Zn();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,xa.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,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(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=xE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.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 r=Zn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var n=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(n,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.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")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,n=0;n<this.markers.length;n+=1)if(s=this.markers[n],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,n){if(!(n&&this.name!==n)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,n);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,n=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(n=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,s=0)):this.setCurrentRawFrameValue(s),n&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?n=r:this.currentRawFrame+this.firstFrame>s&&(n=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Sa(r[0])==="object"){var n,d=r.length;for(n=0;n<d;n+=1)this.segments.push(r[n])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!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)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var n=r.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),s=this.assetsPath+n}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,n=this.assets.length;s<n;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,n){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,n)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new xr(r,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(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new $m(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Xn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Vm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new zm(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new xr(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new $m(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Xn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Vm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new zm(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new fE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new vE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var me=function(){var r={},s=[],n=0,d=0,m=0,p=!0,g=!1;function I(_){for(var D=0,v=_.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||K()),D+=1}function b(_,D){if(!_)return null;for(var v=0;v<d;){if(s[v].elem===_&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,_),E.setData(_,D),E}function w(){var _,D=s.length,v=[];for(_=0;_<D;_+=1)v.push(s[_].animation);return v}function L(){m+=1,Tt()}function K(){m-=1}function x(_,D){_.addEventListener("destroy",I),_.addEventListener("_active",L),_.addEventListener("_idle",K),s.push({elem:D,animation:_}),d+=1}function O(_){var D=new vt;return x(D,null),D.setParams(_),D}function P(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(_,D)}function R(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(_,D)}function H(_){var D;for(D=0;D<d;D+=1)s[D].animation.play(_)}function M(_){var D=_-n,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);n=_,m&&!g?window.requestAnimationFrame(M):p=!0}function k(_){n=_,window.requestAnimationFrame(M)}function T(_){var D;for(D=0;D<d;D+=1)s[D].animation.pause(_)}function C(_,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(_,D,v)}function N(_){var D;for(D=0;D<d;D+=1)s[D].animation.stop(_)}function $(_){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(_)}function G(_){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(_)}function q(_,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),j,V=E.length;for(j=0;j<V;j+=1)v&&E[j].setAttribute("data-bm-type",v),b(E[j],_);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=y("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),b(gt,_)}}function it(){var _;for(_=0;_<d;_+=1)s[_].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(k),p=!1)}function ut(){g=!0}function st(){g=!1,Tt()}function St(_,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(_,D)}function ht(_){var D;for(D=0;D<d;D+=1)s[D].animation.mute(_)}function rt(_){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(_)}return r.registerAnimation=b,r.loadAnimation=O,r.setSpeed=P,r.setDirection=R,r.play=H,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=q,r.resize=it,r.goToAndStop=C,r.destroy=G,r.freeze=ut,r.unfreeze=st,r.setVolume=St,r.mute=ht,r.unmute=rt,r.getRegisteredAnimations=w,r}(),Ia=function(){var r={};r.getBezierEasing=n;var s={};function n(k,T,C,N,$){var G=$||("bez_"+k+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[G])return s[G];var q=new M([k,T,C,N]);return s[G]=q,q}var d=4,m=.001,p=1e-7,g=10,I=11,b=1/(I-1),w=typeof Float32Array=="function";function L(k,T){return 1-3*T+3*k}function K(k,T){return 3*T-6*k}function x(k){return 3*k}function O(k,T,C){return((L(T,C)*k+K(T,C))*k+x(T))*k}function P(k,T,C){return 3*L(T,C)*k*k+2*K(T,C)*k+x(T)}function R(k,T,C,N,$){var G,q,it=0;do q=T+(C-T)/2,G=O(q,N,$)-k,G>0?C=q:T=q;while(Math.abs(G)>p&&++it<g);return q}function H(k,T,C,N){for(var $=0;$<d;++$){var G=P(T,C,N);if(G===0)return T;var q=O(T,C,N)-k;T-=q/G}return T}function M(k){this._p=k,this._mSampleValues=w?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return M.prototype={get:function(T){var C=this._p[0],N=this._p[1],$=this._p[2],G=this._p[3];return this._precomputed||this._precompute(),C===N&&$===G?T:T===0?0:T===1?1:O(this._getTForX(T),N,G)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==C||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*b,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],$=this._mSampleValues,G=0,q=1,it=I-1;q!==it&&$[q]<=T;++q)G+=b;--q;var Tt=(T-$[q])/($[q+1]-$[q]),ut=G+Tt*b,st=P(ut,C,N);return st>=m?H(T,ut,C,N):st===0?ut:R(T,G,G+b,C,N)}},r}(),Wm=function(){function r(s){return s.concat(tt(s.length))}return{double:r}}(),tl=function(){return function(r,s,n){var d=0,m=r,p=tt(m),g={newElement:I,release:b};function I(){var w;return d?(d-=1,w=p[d]):w=s(),w}function b(w){d===m&&(p=Wm.double(p),m*=2),n&&n(w),p[d]=w,d+=1}return g}}(),Ym=function(){function r(){return{addedLength:0,percents:X("float32",Ta()),lengths:X("float32",Ta())}}return tl(8,r)}(),jm=function(){function r(){return{lengths:[],totalLength:0}}function s(n){var d,m=n.lengths.length;for(d=0;d<m;d+=1)Ym.release(n.lengths[d]);n.lengths.length=0}return tl(8,r,s)}();function _E(){var r=Math;function s(x,O,P,R,H,M){var k=x*R+O*H+P*M-H*R-M*x-P*O;return k>-.001&&k<.001}function n(x,O,P,R,H,M,k,T,C){if(P===0&&M===0&&C===0)return s(x,O,R,H,k,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(H-O,2)+r.pow(M-P,2)),$=r.sqrt(r.pow(k-x,2)+r.pow(T-O,2)+r.pow(C-P,2)),G=r.sqrt(r.pow(k-R,2)+r.pow(T-H,2)+r.pow(C-M,2)),q;return N>$?N>G?q=N-$-G:q=G-$-N:G>$?q=G-$-N:q=$-N-G,q>-1e-4&&q<1e-4}var d=function(){return function(x,O,P,R){var H=Ta(),M,k,T,C,N,$=0,G,q=[],it=[],Tt=Ym.newElement();for(T=P.length,M=0;M<H;M+=1){for(N=M/(H-1),G=0,k=0;k<T;k+=1)C=Ut(1-N,3)*x[k]+3*Ut(1-N,2)*N*P[k]+3*(1-N)*Ut(N,2)*R[k]+Ut(N,3)*O[k],q[k]=C,it[k]!==null&&(G+=Ut(q[k]-it[k],2)),it[k]=q[k];G&&(G=Ot(G),$+=G),Tt.percents[M]=N,Tt.lengths[M]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=jm.newElement(),P=x.c,R=x.v,H=x.o,M=x.i,k,T=x._length,C=O.lengths,N=0;for(k=0;k<T-1;k+=1)C[k]=d(R[k],R[k+1],H[k],M[k+1]),N+=C[k].addedLength;return P&&T&&(C[k]=d(R[k],R[0],H[k],M[0]),N+=C[k].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,P,R,H){var M=(O[0]+"_"+O[1]+"_"+P[0]+"_"+P[1]+"_"+R[0]+"_"+R[1]+"_"+H[0]+"_"+H[1]).replace(/\./g,"p");if(!x[M]){var k=Ta(),T,C,N,$,G,q=0,it,Tt,ut=null;O.length===2&&(O[0]!==P[0]||O[1]!==P[1])&&s(O[0],O[1],P[0],P[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],P[0],P[1],P[0]+H[0],P[1]+H[1])&&(k=2);var st=new p(k);for(N=R.length,T=0;T<k;T+=1){for(Tt=tt(N),G=T/(k-1),it=0,C=0;C<N;C+=1)$=Ut(1-G,3)*O[C]+3*Ut(1-G,2)*G*(O[C]+R[C])+3*(1-G)*Ut(G,2)*(P[C]+H[C])+Ut(G,3)*P[C],Tt[C]=$,ut!==null&&(it+=Ut(Tt[C]-ut[C],2));it=Ot(it),q+=it,st.points[T]=new g(it,Tt),ut=Tt}st.segmentLength=q,x[M]=st}return x[M]}}();function b(x,O){var P=O.percents,R=O.lengths,H=P.length,M=ae((H-1)*x),k=x*O.addedLength,T=0;if(M===H-1||M===0||k===R[M])return P[M];for(var C=R[M]>k?-1:1,N=!0;N;)if(R[M]<=k&&R[M+1]>k?(T=(k-R[M])/(R[M+1]-R[M]),N=!1):M+=C,M<0||M>=H-1){if(M===H-1)return P[M];N=!1}return P[M]+(P[M+1]-P[M])*T}function w(x,O,P,R,H,M){var k=b(H,M),T=1-k,C=r.round((T*T*T*x[0]+(k*T*T+T*k*T+T*T*k)*P[0]+(k*k*T+T*k*k+k*T*k)*R[0]+k*k*k*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(k*T*T+T*k*T+T*T*k)*P[1]+(k*k*T+T*k*k+k*T*k)*R[1]+k*k*k*O[1])*1e3)/1e3;return[C,N]}var L=X("float32",8);function K(x,O,P,R,H,M,k){H<0?H=0:H>1&&(H=1);var T=b(H,k);M=M>1?1:M;var C=b(M,k),N,$=x.length,G=1-T,q=1-C,it=G*G*G,Tt=T*G*G*3,ut=T*T*G*3,st=T*T*T,St=G*G*q,ht=T*G*q+G*T*q+G*G*C,rt=T*T*q+G*T*C+T*G*C,_=T*T*C,D=G*q*q,v=T*q*q+G*C*q+G*q*C,E=T*C*q+G*C*C+T*q*C,j=T*C*C,V=q*q*q,ct=C*q*q+q*C*q+q*q*C,gt=C*C*q+q*C*C+C*q*C,xt=C*C*C;for(N=0;N<$;N+=1)L[N*4]=r.round((it*x[N]+Tt*P[N]+ut*R[N]+st*O[N])*1e3)/1e3,L[N*4+1]=r.round((St*x[N]+ht*P[N]+rt*R[N]+_*O[N])*1e3)/1e3,L[N*4+2]=r.round((D*x[N]+v*P[N]+E*R[N]+j*O[N])*1e3)/1e3,L[N*4+3]=r.round((V*x[N]+ct*P[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return L}return{getSegmentsLength:m,getNewSegment:K,getPointInSegment:w,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:n}}var Xr=_E(),Lo=e,qm=Math.abs;function Xm(r,s){var n=this.offsetTime,d;this.propType==="multidimensional"&&(d=X("float32",this.pv.length));for(var m=s.lastIndex,p=m,g=this.keyframes.length-1,I=!0,b,w,L;I;){if(b=this.keyframes[p],w=this.keyframes[p+1],p===g-1&&r>=w.t-n){b.h&&(b=w),m=0;break}if(w.t-n>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}L=this.keyframesMetadata[p]||{};var K,x,O,P,R,H,M=w.t-n,k=b.t-n,T;if(b.to){L.bezierData||(L.bezierData=Xr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var C=L.bezierData;if(r>=M||r<k){var N=r>=M?C.points.length-1:0;for(x=C.points[N].point.length,K=0;K<x;K+=1)d[K]=C.points[N].point[K]}else{L.__fnct?H=L.__fnct:(H=Ia.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,L.__fnct=H),O=H((r-k)/(M-k));var $=C.segmentLength*O,G,q=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,P=C.points.length;I;){if(q+=C.points[R].partialLength,$===0||O===0||R===C.points.length-1){for(x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K];break}else if($>=q&&$<q+C.points[R+1].partialLength){for(G=($-q)/C.points[R+1].partialLength,x=C.points[R].point.length,K=0;K<x;K+=1)d[K]=C.points[R].point[K]+(C.points[R+1].point[K]-C.points[R].point[K])*G;break}R<P-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=q-C.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,Tt,ut,st,St;if(g=b.s.length,T=w.s||b.e,this.sh&&b.h!==1)if(r>=M)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=k)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ht=Zm(b.s),rt=Zm(T),_=(r-k)/(M-k);wE(d,kE(ht,rt,_))}else for(p=0;p<g;p+=1)b.h!==1&&(r>=M?O=1:r<k?O=0:(b.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[p]?H=L.__fnct[p]:(it=b.o.x[p]===void 0?b.o.x[0]:b.o.x[p],Tt=b.o.y[p]===void 0?b.o.y[0]:b.o.y[p],ut=b.i.x[p]===void 0?b.i.x[0]:b.i.x[p],st=b.i.y[p]===void 0?b.i.y[0]:b.i.y[p],H=Ia.getBezierEasing(it,Tt,ut,st).get,L.__fnct[p]=H)):L.__fnct?H=L.__fnct:(it=b.o.x,Tt=b.o.y,ut=b.i.x,st=b.i.y,H=Ia.getBezierEasing(it,Tt,ut,st).get,b.keyframeMetadata=H),O=H((r-k)/(M-k)))),T=w.s||b.e,St=b.h===1?b.s[p]:b.s[p]+(T[p]-b.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return s.lastIndex=m,d}function kE(r,s,n){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],b=s[0],w=s[1],L=s[2],K=s[3],x,O,P,R,H;return O=m*b+p*w+g*L+I*K,O<0&&(O=-O,b=-b,w=-w,L=-L,K=-K),1-O>1e-6?(x=Math.acos(O),P=Math.sin(x),R=Math.sin((1-n)*x)/P,H=Math.sin(n*x)/P):(R=1-n,H=n),d[0]=R*m+H*b,d[1]=R*p+H*w,d[2]=R*g+H*L,d[3]=R*I+H*K,d}function wE(r,s){var n=s[0],d=s[1],m=s[2],p=s[3],g=Math.atan2(2*d*p-2*n*m,1-2*d*d-2*m*m),I=Math.asin(2*n*d+2*m*p),b=Math.atan2(2*n*p-2*d*m,1-2*n*n-2*m*m);r[0]=g/kt,r[1]=I/kt,r[2]=b/kt}function Zm(r){var s=r[0]*kt,n=r[1]*kt,d=r[2]*kt,m=Math.cos(s/2),p=Math.cos(n/2),g=Math.cos(d/2),I=Math.sin(s/2),b=Math.sin(n/2),w=Math.sin(d/2),L=m*p*g-I*b*w,K=I*b*g+m*p*w,x=I*p*g+m*b*w,O=m*b*g-I*p*w;return[K,x,O,L]}function Qm(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Lo&&(this._caching.lastFrame>=n&&r>=n||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function el(r){var s;if(this.propType==="unidimensional")s=r*this.mult,qm(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var n=0,d=this.v.length;n<d;)s=r[n]*this.mult,qm(this.v[n]-s)>1e-5&&(this.v[n]=s,this._mdf=!0),n+=1}function rl(){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 r,s=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)n=this.effectsSequence[r](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function il(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function NE(r,s,n,d){this.propType="unidimensional",this.mult=n||1,this.data=s,this.v=n?s.k*n:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.addEffect=il}function ME(r,s,n,d){this.propType="multidimensional",this.mult=n||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=X("float32",p),this.pv=X("float32",p),this.vel=X("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=rl,this.setVValue=el,this.addEffect=il}function LE(r,s,n,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Lo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=Lo,this.pv=Lo,this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.interpolateValue=Xm,this.effectsSequence=[Qm.bind(this)],this.addEffect=il}function OE(r,s,n,d){this.propType="multidimensional";var m,p=s.k.length,g,I,b,w;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(g=s.k[m].s,I=s.k[m+1].s,b=s.k[m].to,w=s.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&Xr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+b[0],g[1]+b[1])&&Xr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+w[0],I[1]+w[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&Xr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Xr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+w[0],I[1]+w[1],I[2]+w[2]))&&(s.k[m].to=null,s.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===I[2]&&b[2]===0&&w[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[Qm.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=rl,this.setVValue=el,this.interpolateValue=Xm,this.frameId=-1;var L=s.k[0].s.length;for(this.v=X("float32",L),this.pv=X("float32",L),m=0;m<L;m+=1)this.v[m]=Lo,this.pv[m]=Lo;this._caching={lastFrame:Lo,lastIndex:0,value:X("float32",L)},this.addEffect=il}var lt=function(){function r(n,d,m,p,g){d.sid&&(d=n.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new NE(n,d,p,g);else if(typeof d.k[0]=="number")I=new ME(n,d,p,g);else switch(m){case 0:I=new LE(n,d,p,g);break;case 1:I=new OE(n,d,p,g);break;default:break}return I.effectsSequence.length&&g.addDynamicProperty(I),I}var s={getProp:r};return s}();function Me(){}Me.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,n=this.dynamicProperties.length;for(s=0;s<n;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Oo=function(){function r(){return X("float32",2)}return tl(8,r)}();function ui(){this.c=!1,this._length=0,this._maxLength=8,this.v=tt(this._maxLength),this.o=tt(this._maxLength),this.i=tt(this._maxLength)}ui.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var n=0;n<s;)this.v[n]=Oo.newElement(),this.o[n]=Oo.newElement(),this.i[n]=Oo.newElement(),n+=1},ui.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},ui.prototype.doubleArrayLength=function(){this.v=this.v.concat(tt(this._maxLength)),this.i=this.i.concat(tt(this._maxLength)),this.o=this.o.concat(tt(this._maxLength)),this._maxLength*=2},ui.prototype.setXYAt=function(r,s,n,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=Oo.newElement()),p[d][0]=r,p[d][1]=s},ui.prototype.setTripleAt=function(r,s,n,d,m,p,g,I){this.setXYAt(r,s,"v",g,I),this.setXYAt(n,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},ui.prototype.reverse=function(){var r=new ui;r.setPathData(this.c,this._length);var s=this.v,n=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],n[0][0],n[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],n[p][0],n[p][1],I,!1),p-=1;return r},ui.prototype.length=function(){return this._length};var De=function(){function r(){return new ui}function s(m){var p=m._length,g;for(g=0;g<p;g+=1)Oo.release(m.v[g]),Oo.release(m.i[g]),Oo.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function n(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=tl(4,r,s);return d.clone=n,d}();function Nc(){this._length=0,this._maxLength=4,this.shapes=tt(this._maxLength)}Nc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(tt(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Nc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Cs=function(){var r={newShapeCollection:m,release:p},s=0,n=4,d=tt(n);function m(){var g;return s?(s-=1,g=d[s]):g=new Nc,g}function p(g){var I,b=g._length;for(I=0;I<b;I+=1)De.release(g.shapes[I]);g._length=0,s===n&&(d=Wm.double(d),n*=2),d[s]=g,s+=1}return r}(),ol=function(){var r=-999999;function s(M,k,T){var C=T.lastIndex,N,$,G,q,it,Tt,ut,st,St,ht=this.keyframes;if(M<ht[0].t-this.offsetTime)N=ht[0].s[0],G=!0,C=0;else if(M>=ht[ht.length-1].t-this.offsetTime)N=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],G=!0;else{for(var rt=C,_=ht.length-1,D=!0,v,E,j;D&&(v=ht[rt],E=ht[rt+1],!(E.t-this.offsetTime>M));)rt<_-1?rt+=1:D=!1;if(j=this.keyframesMetadata[rt]||{},G=v.h===1,C=rt,!G){if(M>=E.t-this.offsetTime)st=1;else if(M<v.t-this.offsetTime)st=0;else{var V;j.__fnct?V=j.__fnct:(V=Ia.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,j.__fnct=V),st=V((M-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=k._length,ut=N.i[0].length,T.lastIndex=C,q=0;q<Tt;q+=1)for(it=0;it<ut;it+=1)St=G?N.i[q][it]:N.i[q][it]+($.i[q][it]-N.i[q][it])*st,k.i[q][it]=St,St=G?N.o[q][it]:N.o[q][it]+($.o[q][it]-N.o[q][it])*st,k.o[q][it]=St,St=G?N.v[q][it]:N.v[q][it]+($.v[q][it]-N.v[q][it])*st,k.v[q][it]=St}function n(){var M=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<k&&M<k||C>T&&M>T)||(this._caching.lastIndex=C<M?this._caching.lastIndex:0,this.interpolateShape(M,this.pv,this._caching)),this._caching.lastFrame=M,this.pv}function d(){this.paths=this.localShapeCollection}function m(M,k){if(M._length!==k._length||M.c!==k.c)return!1;var T,C=M._length;for(T=0;T<C;T+=1)if(M.v[T][0]!==k.v[T][0]||M.v[T][1]!==k.v[T][1]||M.o[T][0]!==k.o[T][0]||M.o[T][1]!==k.o[T][1]||M.i[T][0]!==k.i[T][0]||M.i[T][1]!==k.i[T][1])return!1;return!0}function p(M){m(this.v,M)||(this.v=De.clone(M),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){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 M;this.kf?M=this.pv:this.data.ks?M=this.data.ks.k:M=this.data.pt.k;var k,T=this.effectsSequence.length;for(k=0;k<T;k+=1)M=this.effectsSequence[k](M);this.setVValue(M),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(M,k,T){this.propType="shape",this.comp=M.comp,this.container=M,this.elem=M,this.data=k,this.k=!1,this.kf=!1,this._mdf=!1;var C=T===3?k.pt.k:k.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(M){this.effectsSequence.push(M),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=b;function w(M,k,T){this.propType="shape",this.comp=M.comp,this.elem=M,this.container=M,this.offsetTime=M.data.st,this.keyframes=T===3?k.pt.k:k.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[n.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=s,w.prototype.setVValue=p,w.prototype.addEffect=b;var L=function(){var M=oe;function k(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Cs.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=lt.getProp(T,C.p,1,0,this),this.s=lt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return k.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,G=this.s.v[1]/2,q=this.d!==3,it=this.v;it.v[0][0]=C,it.v[0][1]=N-G,it.v[1][0]=q?C+$:C-$,it.v[1][1]=N,it.v[2][0]=C,it.v[2][1]=N+G,it.v[3][0]=q?C-$:C+$,it.v[3][1]=N,it.i[0][0]=q?C-$*M:C+$*M,it.i[0][1]=N-G,it.i[1][0]=q?C+$:C-$,it.i[1][1]=N-G*M,it.i[2][0]=q?C+$*M:C-$*M,it.i[2][1]=N+G,it.i[3][0]=q?C-$:C+$,it.i[3][1]=N+G*M,it.o[0][0]=q?C+$*M:C-$*M,it.o[0][1]=N-G,it.o[1][0]=q?C+$:C-$,it.o[1][1]=N+G*M,it.o[2][0]=q?C-$*M:C+$*M,it.o[2][1]=N+G,it.o[3][0]=q?C-$:C+$,it.o[3][1]=N-G*M}},A([Me],k),k}(),K=function(){function M(k,T){this.v=De.newElement(),this.v.setPathData(!0,0),this.elem=k,this.comp=k.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),T.sy===1?(this.ir=lt.getProp(k,T.ir,0,0,this),this.is=lt.getProp(k,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(k,T.pt,0,0,this),this.p=lt.getProp(k,T.p,1,0,this),this.r=lt.getProp(k,T.r,0,kt,this),this.or=lt.getProp(k,T.or,0,0,this),this.os=lt.getProp(k,T.os,0,.01,this),this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return M.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,$=this.or.v,G=this.ir.v,q=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ut=2*Math.PI*G/(T*2),st,St,ht,rt,_=-Math.PI/2;_+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){St=N?$:G,ht=N?q:it,rt=N?Tt:ut;var v=St*Math.cos(_),E=St*Math.sin(_),j=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-j*rt*ht*D,E-V*rt*ht*D,v+j*rt*ht*D,E+V*rt*ht*D,st,!0),N=!N,_+=C*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,$=this.os.v,G=2*Math.PI*N/(T*4),q,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,q=0;q<T;q+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),St=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ht=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-St*G*$*Tt,st-ht*G*$*Tt,ut+St*G*$*Tt,st+ht*G*$*Tt,q,!0),it+=C*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Me],M),M}(),x=function(){function M(k,T){this.v=De.newElement(),this.v.c=!0,this.localShapeCollection=Cs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=k,this.comp=k.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),this.p=lt.getProp(k,T.p,1,0,this),this.s=lt.getProp(k,T.s,1,0,this),this.r=lt.getProp(k,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return M.prototype={convertRectToPath:function(){var T=this.p.v[0],C=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,G=Yt(N,$,this.r.v),q=G*(1-oe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+G,T+N,C-$+q,0,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-q,T+N,C+$-G,1,!0),G!==0?(this.v.setTripleAt(T+N-G,C+$,T+N-G,C+$,T+N-q,C+$,2,!0),this.v.setTripleAt(T-N+G,C+$,T-N+q,C+$,T-N+G,C+$,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-G,T-N,C+$-q,4,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+q,T-N,C-$+G,5,!0),this.v.setTripleAt(T-N+G,C-$,T-N+G,C-$,T-N+q,C-$,6,!0),this.v.setTripleAt(T+N-G,C-$,T+N-q,C-$,T+N-G,C-$,7,!0)):(this.v.setTripleAt(T-N,C+$,T-N+q,C+$,T-N,C+$,2),this.v.setTripleAt(T-N,C-$,T-N,C-$+q,T-N,C-$,3))):(this.v.setTripleAt(T+N,C-$+G,T+N,C-$+q,T+N,C-$+G,0,!0),G!==0?(this.v.setTripleAt(T+N-G,C-$,T+N-G,C-$,T+N-q,C-$,1,!0),this.v.setTripleAt(T-N+G,C-$,T-N+q,C-$,T-N+G,C-$,2,!0),this.v.setTripleAt(T-N,C-$+G,T-N,C-$+G,T-N,C-$+q,3,!0),this.v.setTripleAt(T-N,C+$-G,T-N,C+$-q,T-N,C+$-G,4,!0),this.v.setTripleAt(T-N+G,C+$,T-N+G,C+$,T-N+q,C+$,5,!0),this.v.setTripleAt(T+N-G,C+$,T+N-q,C+$,T+N-G,C+$,6,!0),this.v.setTripleAt(T+N,C+$-G,T+N,C+$-G,T+N,C+$-q,7,!0)):(this.v.setTripleAt(T-N,C-$,T-N+q,C-$,T-N,C-$,1,!0),this.v.setTripleAt(T-N,C+$,T-N,C+$-q,T-N,C+$,2,!0),this.v.setTripleAt(T+N,C+$,T+N-q,C+$,T+N,C+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Me],M),M}();function O(M,k,T){var C;if(T===3||T===4){var N=T===3?k.pt:k.ks,$=N.k;$.length?C=new w(M,k,T):C=new I(M,k,T)}else T===5?C=new x(M,k):T===6?C=new L(M,k):T===7&&(C=new K(M,k));return C.k&&M.addDynamicProperty(C),C}function P(){return I}function R(){return w}var H={};return H.getShapeProp=O,H.getConstructorFunction=P,H.getKeyframedConstructorFunction=R,H}();var Pe=function(){var r=Math.cos,s=Math.sin,n=Math.tan,d=Math.round;function m(){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 p(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(1,0,0,0,0,E,-j,0,0,j,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,0,j,0,0,1,0,0,-j,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),j=s(v);return this._t(E,-j,0,0,j,E,0,0,0,0,1,0,0,0,0,1)}function w(v,E){return this._t(1,E,v,1,0,0)}function L(v,E){return this.shear(n(v),n(E))}function K(v,E){var j=r(E),V=s(E);return this._t(j,V,0,0,-V,j,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(v),1,0,0,0,0,1,0,0,0,0,1)._t(j,-V,0,0,V,j,0,0,0,0,1,0,0,0,0,1)}function x(v,E,j){return!j&&j!==0&&(j=1),v===1&&E===1&&j===1?this:this._t(v,0,0,0,0,E,0,0,0,0,j,0,0,0,0,1)}function O(v,E,j,V,ct,gt,xt,Pt,Ft,ue,rr,Qr,ir,Le,ur,Wt){return this.props[0]=v,this.props[1]=E,this.props[2]=j,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Pt,this.props[8]=Ft,this.props[9]=ue,this.props[10]=rr,this.props[11]=Qr,this.props[12]=ir,this.props[13]=Le,this.props[14]=ur,this.props[15]=Wt,this}function P(v,E,j){return j=j||0,v!==0||E!==0||j!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,j,1):this}function R(v,E,j,V,ct,gt,xt,Pt,Ft,ue,rr,Qr,ir,Le,ur,Wt){var pt=this.props;if(v===1&&E===0&&j===0&&V===0&&ct===0&>===1&&xt===0&&Pt===0&&Ft===0&&ue===0&&rr===1&&Qr===0)return pt[12]=pt[12]*v+pt[15]*ir,pt[13]=pt[13]*gt+pt[15]*Le,pt[14]=pt[14]*rr+pt[15]*ur,pt[15]*=Wt,this._identityCalculated=!1,this;var gi=pt[0],Qi=pt[1],bi=pt[2],Jr=pt[3],yi=pt[4],Ei=pt[5],or=pt[6],Ji=pt[7],to=pt[8],Dr=pt[9],eo=pt[10],Pr=pt[11],Fo=pt[12],ml=pt[13],ul=pt[14],fl=pt[15];return pt[0]=gi*v+Qi*ct+bi*Ft+Jr*ir,pt[1]=gi*E+Qi*gt+bi*ue+Jr*Le,pt[2]=gi*j+Qi*xt+bi*rr+Jr*ur,pt[3]=gi*V+Qi*Pt+bi*Qr+Jr*Wt,pt[4]=yi*v+Ei*ct+or*Ft+Ji*ir,pt[5]=yi*E+Ei*gt+or*ue+Ji*Le,pt[6]=yi*j+Ei*xt+or*rr+Ji*ur,pt[7]=yi*V+Ei*Pt+or*Qr+Ji*Wt,pt[8]=to*v+Dr*ct+eo*Ft+Pr*ir,pt[9]=to*E+Dr*gt+eo*ue+Pr*Le,pt[10]=to*j+Dr*xt+eo*rr+Pr*ur,pt[11]=to*V+Dr*Pt+eo*Qr+Pr*Wt,pt[12]=Fo*v+ml*ct+ul*Ft+fl*ir,pt[13]=Fo*E+ml*gt+ul*ue+fl*Le,pt[14]=Fo*j+ml*xt+ul*rr+fl*ur,pt[15]=Fo*V+ml*Pt+ul*Qr+fl*Wt,this._identityCalculated=!1,this}function H(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function M(){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 k(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function C(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,j){return{x:v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}}function $(v,E,j){return v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12]}function G(v,E,j){return v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13]}function q(v,E,j){return v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,j=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Pt=new Pe;return Pt.props[0]=E,Pt.props[1]=j,Pt.props[4]=V,Pt.props[5]=ct,Pt.props[12]=gt,Pt.props[13]=xt,Pt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,j=v.length,V=[];for(E=0;E<j;E+=1)V[E]=Tt(v[E]);return V}function st(v,E,j){var V=X("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=j[0],V[5]=j[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Pt=this.props[5],Ft=this.props[12],ue=this.props[13];V[0]=v[0]*ct+v[1]*xt+Ft,V[1]=v[0]*gt+v[1]*Pt+ue,V[2]=E[0]*ct+E[1]*xt+Ft,V[3]=E[0]*gt+E[1]*Pt+ue,V[4]=j[0]*ct+j[1]*xt+Ft,V[5]=j[0]*gt+j[1]*Pt+ue}return V}function St(v,E,j){var V;return this.isIdentity()?V=[v,E,j]:V=[v*this.props[0]+E*this.props[4]+j*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+j*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+j*this.props[10]+this.props[14]],V}function ht(v,E){if(this.isIdentity())return v+","+E;var j=this.props;return Math.round((v*j[0]+E*j[4]+j[12])*100)/100+","+Math.round((v*j[1]+E*j[5]+j[13])*100)/100}function rt(){for(var v=0,E=this.props,j="matrix3d(",V=1e4;v<16;)j+=d(E[v]*V)/V,j+=v===15?")":",",v+=1;return j}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=_(v[0]),j=_(v[1]),V=_(v[4]),ct=_(v[5]),gt=_(v[12]),xt=_(v[13]);return"matrix("+E+","+j+","+V+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=b,this.skew=L,this.skewFromAxis=K,this.shear=w,this.scale=x,this.setTransform=O,this.translate=P,this.transform=R,this.multiply=H,this.applyToPoint=N,this.applyToX=$,this.applyToY=G,this.applyToZ=q,this.applyToPointArray=St,this.applyToTriplePoints=st,this.applyToPointStringified=ht,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=C,this.equals=k,this.inversePoints=ut,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=M,this._identity=!0,this._identityCalculated=!1,this.props=X("float32",16),this.reset()}}();function sl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(n){return typeof n}:sl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sl(r)}var Gt={},al="__[STANDALONE]__",Jm="__[ANIMATIONDATA]__",tu="";function RE(r){c(r)}function eu(){al===!0?me.searchAnimations(Jm,al,tu):me.searchAnimations()}function DE(r){gE(r)}function PE(r){EE(r)}function FE(r){return al===!0&&(r.animationData=JSON.parse(Jm)),me.loadAnimation(r)}function $E(r){if(typeof r=="string")switch(r){case"high":Qn(200);break;default:case"medium":Qn(50);break;case"low":Qn(10);break}else!isNaN(r)&&r>1&&Qn(r);Ta()>=50?Ge(!1):Ge(!0)}function VE(){return typeof navigator<"u"}function zE(r,s){r==="expressions"&&yE(s)}function BE(r){switch(r){case"propertyFactory":return lt;case"shapePropertyFactory":return ol;case"matrix":return Pe;default:return null}}Gt.play=me.play,Gt.pause=me.pause,Gt.setLocationHref=RE,Gt.togglePause=me.togglePause,Gt.setSpeed=me.setSpeed,Gt.setDirection=me.setDirection,Gt.stop=me.stop,Gt.searchAnimations=eu,Gt.registerAnimation=me.registerAnimation,Gt.loadAnimation=FE,Gt.setSubframeRendering=DE,Gt.resize=me.resize,Gt.goToAndStop=me.goToAndStop,Gt.destroy=me.destroy,Gt.setQuality=$E,Gt.inBrowser=VE,Gt.installPlugin=zE,Gt.freeze=me.freeze,Gt.unfreeze=me.unfreeze,Gt.setVolume=me.setVolume,Gt.mute=me.mute,Gt.unmute=me.unmute,Gt.getRegisteredAnimations=me.getRegisteredAnimations,Gt.useWebWorker=i,Gt.setIDPrefix=PE,Gt.__getFactory=BE,Gt.version="5.12.2";function HE(){document.readyState==="complete"&&(clearInterval(KE),eu())}function UE(r){for(var s=ru.split("&"),n=0;n<s.length;n+=1){var d=s[n].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var ru="";if(al){var iu=document.getElementsByTagName("script"),GE=iu.length-1,ou=iu[GE]||{src:""};ru=ou.src?ou.src.replace(/^[^\?]+\??/,""):"",tu=UE("renderer")}var KE=setInterval(HE,100);try{!((typeof on>"u"?"undefined":sl(on))==="object"&&typeof Gl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Gt)}catch{}var Wi=function(){var r={},s={};r.registerModifier=n,r.getModifier=d;function n(m,p){s[m]||(s[m]=p)}function d(m,p,g){return new s[m](p,g)}return r}();function Ar(){}Ar.prototype.initModifierProperties=function(){},Ar.prototype.addShapeToModifier=function(){},Ar.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Cs.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Ar.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ar.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Me],Ar);function Rr(){}A([Ar],Rr),Rr.prototype.initModifierProperties=function(r,s){this.s=lt.getProp(r,s.s,0,.01,this),this.e=lt.getProp(r,s.e,0,.01,this),this.o=lt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Rr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Rr.prototype.calculateShapeEdges=function(r,s,n,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var g=[],I,b=p.length,w;for(I=0;I<b;I+=1)if(w=p[I],!(w.e*m<d||w.s*m>d+n)){var L,K;w.s*m<=d?L=0:L=(w.s*m-d)/n,w.e*m>=d+n?K=1:K=(w.e*m-d)/n,g.push([L,K])}return g.length||g.push([0,0]),g},Rr.prototype.releasePathsData=function(r){var s,n=r.length;for(s=0;s<n;s+=1)jm.release(r[s]);return r.length=0,r},Rr.prototype.processShapes=function(r){var s,n;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?n=1+d:this.e.v<0?n=0+d:n=this.e.v+d,s>n){var m=s;s=n,n=m}s=Math.round(s*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=s,this.eValue=n}else s=this.sValue,n=this.eValue;var p,g,I=this.shapes.length,b,w,L,K,x,O=0;if(n===s)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(n===1&&s===0||n===0&&s===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var P=[],R,H;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,w=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(L=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)K=Xr.getSegmentsLength(p.shapes[b]),L.push(K),x+=K.totalLength;R.totalShapeLength=x,R.pathsData=L}O+=x,R.shape._mdf=!0}var M=s,k=n,T=0,C;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(H=R.localShapeCollection,H.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):C=[[M,k]],w=C.length,b=0;b<w;b+=1){M=C[b][0],k=C[b][1],P.length=0,k<=1?P.push({s:R.totalShapeLength*M,e:R.totalShapeLength*k}):M>=1?P.push({s:R.totalShapeLength*(M-1),e:R.totalShapeLength*(k-1)}):(P.push({s:R.totalShapeLength*M,e:R.totalShapeLength}),P.push({s:0,e:R.totalShapeLength*(k-1)}));var N=this.addShapes(R,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var G=N.pop();this.addPaths(N,H),N=this.addShapes(R,P[1],G)}else this.addPaths(N,H),N=this.addShapes(R,P[1])}this.addPaths(N,H)}}R.shape.paths=H}}},Rr.prototype.addPaths=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)s.addShape(r[n])},Rr.prototype.addSegment=function(r,s,n,d,m,p,g){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(n[0],n[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Rr.prototype.addSegmentFromArray=function(r,s,n,d){s.setXYAt(r[1],r[5],"o",n),s.setXYAt(r[2],r[6],"i",n+1),d&&s.setXYAt(r[0],r[4],"v",n),s.setXYAt(r[3],r[7],"v",n+1)},Rr.prototype.addShapes=function(r,s,n){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,b,w=0,L,K,x,O,P=[],R,H=!0;for(n?(K=n._length,R=n._length):(n=De.newElement(),K=0,R=0),P.push(n),p=0;p<g;p+=1){for(x=d[p].lengths,n.c=m[p].c,b=m[p].c?x.length:x.length+1,I=1;I<b;I+=1)if(L=x[I-1],w+L.addedLength<s.s)w+=L.addedLength,n.c=!1;else if(w>s.e){n.c=!1;break}else s.s<=w&&s.e>=w+L.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],n,K,H),H=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-w)/L.addedLength,(s.e-w)/L.addedLength,x[I-1]),this.addSegmentFromArray(O,n,K,H),H=!1,n.c=!1),w+=L.addedLength,K+=1;if(m[p].c&&x.length){if(L=x[I-1],w<=s.e){var M=x[I-1].addedLength;s.s<=w&&s.e>=w+M?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],n,K,H),H=!1):(O=Xr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-w)/M,(s.e-w)/M,x[I-1]),this.addSegmentFromArray(O,n,K,H),H=!1,n.c=!1)}else n.c=!1;w+=L.addedLength,K+=1}if(n._length&&(n.setXYAt(n.v[R][0],n.v[R][1],"i",R),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),w>s.e)break;p<g-1&&(n=De.newElement(),H=!0,P.push(n),K=0)}return P};function Ca(){}A([Ar],Ca),Ca.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ca.prototype.processPath=function(r,s){var n=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=De.newElement();g.c=r.c;var I,b,w,L,K,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*n,b=r.v[p][1]+(d[1]-r.v[p][1])*n,w=r.o[p][0]+(d[0]-r.o[p][0])*-n,L=r.o[p][1]+(d[1]-r.o[p][1])*-n,K=r.i[p][0]+(d[0]-r.i[p][0])*-n,x=r.i[p][1]+(d[1]-r.i[p][1])*-n,g.setTripleAt(I,b,w,L,K,x,p);return g},Ca.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Mc=function(){var r=[0,0];function s(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.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?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var w;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,K;if(w=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)/w,0),K=this.p.getValueAtTime(this.p.keyframes[0].t/w,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/w,0),K=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(L=this.p.pv,K=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],K=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(L[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),L[1]=O.getValueAtTime((O.keyframes[0].t+.01)/w,0),K[0]=x.getValueAtTime(x.keyframes[0].t/w,0),K[1]=O.getValueAtTime(O.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(L[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),L[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/w,0),K[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),K[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/w,0)):(L=[x.pv,O.pv],K[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),K[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/w,O.offsetTime))}else K=r,L=K;this.v.rotate(-Math.atan2(L[1]-K[1],L[0]-K[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 d(){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 m(){}function p(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,L){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||b),w.p&&w.p.s?(this.px=lt.getProp(b,w.p.x,0,0,this),this.py=lt.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=lt.getProp(b,w.p.z,0,0,this))):this.p=lt.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=lt.getProp(b,w.rx,0,kt,this),this.ry=lt.getProp(b,w.ry,0,kt,this),this.rz=lt.getProp(b,w.rz,0,kt,this),w.or.k[0].ti){var K,x=w.or.k.length;for(K=0;K<x;K+=1)w.or.k[K].to=null,w.or.k[K].ti=null}this.or=lt.getProp(b,w.or,1,kt,this),this.or.sh=!0}else this.r=lt.getProp(b,w.r||{k:0},0,kt,this);w.sk&&(this.sk=lt.getProp(b,w.sk,0,kt,this),this.sa=lt.getProp(b,w.sa,0,kt,this)),this.a=lt.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=lt.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:n,precalculateMatrix:d,autoOrient:m},A([Me],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Me.prototype.addDynamicProperty;function I(b,w,L){return new g(b,w,L)}return{getTransformProperty:I}}();function Zr(){}A([Ar],Zr),Zr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=lt.getProp(r,s.c,0,null,this),this.o=lt.getProp(r,s.o,0,null,this),this.tr=Mc.getTransformProperty(r,s.tr,this),this.so=lt.getProp(r,s.tr.so,0,.01,this),this.eo=lt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},Zr.prototype.applyTransforms=function(r,s,n,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),b=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*g*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),n.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),n.scale(p?1/I:I,p?1/b:b),n.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Zr.prototype.init=function(r,s,n,d){for(this.elem=r,this.arr=s,this.pos=n,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[n]);n>0;)n-=1,this._elements.unshift(s[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Zr.prototype.resetElements=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Zr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Zr.prototype.changeGroupRender=function(r,s){var n,d=r.length;for(n=0;n<d;n+=1)r[n]._render=s,r[n].ty==="gr"&&this.changeGroupRender(r[n].it,s)},Zr.prototype.processShapes=function(r){var s,n,d,m,p,g=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.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,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}p=0;var w;for(d=0;d<=this._groups.length-1;d+=1){if(w=p<I,this._groups[d]._render=w,this.changeGroupRender(this._groups[d].it,w),!w){var L=this.elemsData[d].it,K=L[L.length-1];K.transform.op.v!==0?(K.transform.op._mdf=!0,K.transform.op.v=0):K.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,P=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,H=this.rMatrix.props,M=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var k=0;if(x>0){for(;k<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),k+=O)}else if(x<0){for(;k>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),k-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,C=n.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),k!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[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]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<C;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)n[T]=this.matrix.props[T];k+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,n=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return g},Zr.prototype.addShape=function(){};function _a(){}A([Ar],_a),_a.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=lt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},_a.prototype.processPath=function(r,s){var n=De.newElement();n.c=r.c;var d,m=r._length,p,g,I,b,w,L,K=0,x,O,P,R,H,M;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(n.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],K),K+=1):(d===0?b=r.v[m-1]:b=r.v[d-1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,H=p[0]+(b[0]-p[0])*L,x=H,M=p[1]-(p[1]-b[1])*L,O=M,P=x-(x-p[0])*oe,R=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,H,M,K),K+=1,d===m-1?b=r.v[0]:b=r.v[d+1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,P=p[0]+(b[0]-p[0])*L,x=P,R=p[1]+(b[1]-p[1])*L,O=R,H=x-(x-p[0])*oe,M=O-(O-p[1])*oe,n.setTripleAt(x,O,P,R,H,M,K),K+=1):(n.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],K),K+=1);return n},_a.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,b;for(n=0;n<d;n+=1){if(I=this.shapes[n],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function Lc(r){return Math.abs(r)<=1e-5}function su(r,s,n){return r*(1-n)+s*n}function Yi(r,s,n){return[su(r[0],s[0],n),su(r[1],s[1],n)]}function WE(r,s,n){if(r===0)return[];var d=s*s-4*r*n;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function au(r,s,n,d){return[-r+3*s-3*n+d,3*r-6*s+3*n,-3*r+3*s,r]}function nu(r){return new ne(r,r,r,r,!1)}function ne(r,s,n,d,m){m&&ks(r,s)&&(s=Yi(r,d,1/3)),m&&ks(n,d)&&(n=Yi(r,d,2/3));var p=au(r[0],s[0],n[0],d[0]),g=au(r[1],s[1],n[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,s,n,d]}ne.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},ne.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},ne.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},ne.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},ne.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Lc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,n=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(n<0)return[];var d=Math.sqrt(n);return Lc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},ne.prototype.split=function(r){if(r<=0)return[nu(this.points[0]),this];if(r>=1)return[this,nu(this.points[this.points.length-1])];var s=Yi(this.points[0],this.points[1],r),n=Yi(this.points[1],this.points[2],r),d=Yi(this.points[2],this.points[3],r),m=Yi(s,n,r),p=Yi(n,d,r),g=Yi(m,p,r);return[new ne(this.points[0],s,m,g,!0),new ne(g,p,d,this.points[3],!0)]};function lu(r,s){var n=r.points[0][s],d=r.points[r.points.length-1][s];if(n>d){var m=d;d=n,n=m}for(var p=WE(3*r.a[s],2*r.b[s],r.c[s]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[s];I<n?n=I:I>d&&(d=I)}return{min:n,max:d}}ne.prototype.bounds=function(){return{x:lu(this,0),y:lu(this,1)}},ne.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function ll(r,s,n){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+n)/2,t1:s,t2:n}}function du(r){var s=r.bez.split(.5);return[ll(s[0],r.t1,r.t),ll(s[1],r.t,r.t2)]}function YE(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function ka(r,s,n,d,m,p){if(YE(r,s)){if(n>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var g=du(r),I=du(s);ka(g[0],I[0],n+1,d,m,p),ka(g[0],I[1],n+1,d,m,p),ka(g[1],I[0],n+1,d,m,p),ka(g[1],I[1],n+1,d,m,p)}}ne.prototype.intersections=function(r,s,n){s===void 0&&(s=2),n===void 0&&(n=7);var d=[];return ka(ll(this,0,1),ll(r,0,1),0,s,d,n),d},ne.shapeSegment=function(r,s){var n=(s+1)%r.length();return new ne(r.v[s],r.o[s],r.i[n],r.v[n],!0)},ne.shapeSegmentInverted=function(r,s){var n=(s+1)%r.length();return new ne(r.v[n],r.i[n],r.o[s],r.v[s],!0)};function Oc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function dl(r,s,n,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],g=[n[0],n[1],1],I=[d[0],d[1],1],b=Oc(Oc(m,p),Oc(g,I));return Lc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function _s(r,s,n){return[r[0]+Math.cos(s)*n,r[1]-Math.sin(s)*n]}function Rc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ks(r,s){return nl(r[0],s[0])&&nl(r[1],s[1])}function wa(){}A([Ar],wa),wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=lt.getProp(r,s.s,0,null,this),this.frequency=lt.getProp(r,s.r,0,null,this),this.pointsType=lt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function cu(r,s,n,d,m,p,g){var I=n-Math.PI/2,b=n+Math.PI/2,w=s[0]+Math.cos(n)*d*m,L=s[1]-Math.sin(n)*d*m;r.setTripleAt(w,L,w+Math.cos(I)*p,L-Math.sin(I)*p,w+Math.cos(b)*g,L-Math.sin(b)*g,r.length())}function jE(r,s){var n=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*n[0]-Math.sin(d)*n[1],Math.sin(d)*n[0]+Math.cos(d)*n[1]];return m}function qE(r,s){var n=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[n],p=r.v[d],g=jE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function hu(r,s,n,d,m,p,g){var I=qE(s,n),b=s.v[n%s._length],w=s.v[n===0?s._length-1:n-1],L=s.v[(n+1)%s._length],K=p===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=p===2?Math.sqrt(Math.pow(b[0]-L[0],2)+Math.pow(b[1]-L[1],2)):0;cu(r,s.v[n%s._length],I,g,d,x/((m+1)*2),K/((m+1)*2),p)}function XE(r,s,n,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+1),b=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,w=s.normalAngle(I),L=s.point(I);cu(r,L,w,p,n,b/((d+1)*2),b/((d+1)*2),m),p=-p}return p}wa.prototype.processPath=function(r,s,n,d){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=ne.shapeSegment(r,0);hu(p,r,0,s,n,d,g);for(var b=0;b<m;b+=1)g=XE(p,I,s,n,d,-g),b===m-1&&!r.c?I=null:I=ne.shapeSegment(r,(b+1)%m),hu(p,r,b+1,s,n,d,g);return p},wa.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,L;for(n=0;n<d;n+=1){if(w=this.shapes[n],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,I,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Dc(r,s,n){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[_s(r,d,n),_s(s,d,n)]}function ws(r,s){var n,d,m,p,g,I,b;b=Dc(r.points[0],r.points[1],s),n=b[0],d=b[1],b=Dc(r.points[1],r.points[2],s),m=b[0],p=b[1],b=Dc(r.points[2],r.points[3],s),g=b[0],I=b[1];var w=dl(n,d,m,p);w===null&&(w=d);var L=dl(g,I,m,p);return L===null&&(L=g),new ne(n,w,L,I)}function pu(r,s,n,d,m){var p=s.points[3],g=n.points[0];if(d===3||ks(p,g))return p;if(d===2){var I=-s.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,w=dl(p,_s(p,I+Math.PI/2,100),g,_s(g,I+Math.PI/2,100)),L=w?Rc(w,p):Rc(p,g)/2,K=_s(p,I,2*L*oe);return r.setXYAt(K[0],K[1],"o",r.length()-1),K=_s(g,b,2*L*oe),r.setTripleAt(g[0],g[1],g[0],g[1],K[0],K[1],r.length()),g}var x=ks(p,s.points[2])?s.points[0]:s.points[2],O=ks(g,n.points[1])?n.points[3]:n.points[1],P=dl(x,p,g,O);return P&&Rc(P,p)<m?(r.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],r.length()),P):p}function mu(r,s){var n=r.intersections(s);return n.length&&nl(n[0][0],1)&&n.shift(),n.length?n[0]:null}function uu(r,s){var n=r.slice(),d=s.slice(),m=mu(r[r.length-1],s[0]);return m&&(n[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=mu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[n,d]}function ZE(r){for(var s,n=1;n<r.length;n+=1)s=uu(r[n-1],r[n]),r[n-1]=s[0],r[n]=s[1];return r.length>1&&(s=uu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function fu(r,s){var n=r.inflectionPoints(),d,m,p,g;if(n.length===0)return[ws(r,s)];if(n.length===1||nl(n[1],1))return p=r.split(n[0]),d=p[0],m=p[1],[ws(d,s),ws(m,s)];p=r.split(n[0]),d=p[0];var I=(n[1]-n[0])/(1-n[0]);return p=p[1].split(I),g=p[0],m=p[1],[ws(d,s),ws(g,s),ws(m,s)]}function Na(){}A([Ar],Na),Na.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=lt.getProp(r,s.a,0,null,this),this.miterLimit=lt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Na.prototype.processPath=function(r,s,n,d){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,b,w=[];for(g=0;g<p;g+=1)b=ne.shapeSegment(r,g),w.push(fu(b,s));if(!r.c)for(g=p-1;g>=0;g-=1)b=ne.shapeSegmentInverted(r,g),w.push(fu(b,s));w=ZE(w);var L=null,K=null;for(g=0;g<w.length;g+=1){var x=w[g];for(K&&(L=pu(m,K,x[0],n,d)),K=x[x.length-1],I=0;I<x.length;I+=1)b=x[I],L&&ks(b.points[0],L)?m.setXYAt(b.points[1][0],b.points[1][1],"o",m.length()-1):m.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],m.length()),m.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],m.length()),L=b.points[3]}return w.length&&pu(m,K,w[0][0],n,d),m},Na.prototype.processShapes=function(r){var s,n,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,L;for(n=0;n<d;n+=1){if(w=this.shapes[n],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,b,I));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function vu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],n="normal",d="normal",m=s.length,p,g=0;g<m;g+=1)switch(p=s[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break;default:break}return{style:d,weight:r.fWeight||n}}var Ro=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.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 d=127988,m=917631,p=917601,g=917626,I=65039,b=8205,w=127462,L=127487,K=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var D=_.split(","),v,E=D.length,j=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&j.push(D[v]);return j.join(",")}function O(_,D){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var j=E.offsetWidth;return E.style.fontFamily=x(_)+", "+D,{node:E,w:j,parent:v}}function P(){var _,D=this.fonts.length,v,E,j=D;for(_=0;_<D;_+=1)this.fonts[_].loaded?j-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(v=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,v.offsetWidth!==E?(j-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.offsetWidth!==E&&(j-=1,this.fonts[_].loaded=!0)),this.fonts[_].loaded&&(this.fonts[_].sansCase.parent.parentNode.removeChild(this.fonts[_].sansCase.parent),this.fonts[_].monoCase.parent.parentNode.removeChild(this.fonts[_].monoCase.parent)));j!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(_,D){var v=document.body&&D?"svg":"canvas",E,j=vu(_);if(v==="svg"){var V=At("text");V.style.fontSize="100px",V.setAttribute("font-family",_.fFamily),V.setAttribute("font-style",j.style),V.setAttribute("font-weight",j.weight),V.textContent="1",_.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",_.fClass)):V.style.fontFamily=_.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=j.style+" "+j.weight+" 100px "+_.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function H(_,D){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(rr){rr.helper=R(rr),rr.cache={}}),this.fonts=_.list;return}var v=_.list,E,j=v.length,V=j;for(E=0;E<j;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Pt=y("style");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.setAttribute("f-family",v[E].fFamily),Pt.type="text/css",Pt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Pt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Ft=y("link");Ft.setAttribute("f-forigin",v[E].fOrigin),Ft.setAttribute("f-origin",v[E].origin),Ft.type="text/css",Ft.rel="stylesheet",Ft.href=v[E].fPath,document.body.appendChild(Ft)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var ue=y("link");ue.setAttribute("f-forigin",v[E].fOrigin),ue.setAttribute("f-origin",v[E].origin),ue.setAttribute("rel","stylesheet"),ue.setAttribute("href",v[E].fPath),D.appendChild(ue)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function M(_){if(_){this.chars||(this.chars=[]);var D,v=_.length,E,j=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<j;)this.chars[E].style===_[D].style&&this.chars[E].fFamily===_[D].fFamily&&this.chars[E].ch===_[D].ch&&(V=!0),E+=1;V||(this.chars.push(_[D]),j+=1)}}}function k(_,D,v){for(var E=0,j=this.chars.length;E<j;){if(this.chars[E].ch===_&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof _=="string"&&_.charCodeAt(0)!==13||!_)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",_,D,v)),s}function T(_,D,v){var E=this.getFontByName(D),j=_;if(!E.cache[j]){var V=E.helper;if(_===" "){var ct=V.measureText("|"+_+"|"),gt=V.measureText("||");E.cache[j]=(ct-gt)/100}else E.cache[j]=V.measureText(_)/100}return E.cache[j]*v}function C(_){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===_)return this.fonts[D];D+=1}return this.fonts[0]}function N(_){var D=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(_,D){var v=_.toString(16)+D.toString(16);return K.indexOf(v)!==-1}function G(_){return _===b}function q(_){return _===I}function it(_){var D=N(_);return D>=w&&D<=L}function Tt(_){return it(_.substr(0,2))&&it(_.substr(2,2))}function ut(_){return n.indexOf(_)!==-1}function st(_,D){var v=N(_.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(_.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(_.substr(D,2))===m}function St(){this.isLoaded=!0}var ht=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)};ht.isModifier=$,ht.isZeroWidthJoiner=G,ht.isFlagEmoji=Tt,ht.isRegionalCode=it,ht.isCombinedCharacter=ut,ht.isRegionalFlag=st,ht.isVariationSelector=q,ht.BLACK_FLAG_CODE_POINT=d;var rt={addChars:M,addFonts:H,getCharData:k,getFontByName:C,measureText:T,checkLoadedFonts:P,setIsLoaded:St};return ht.prototype=rt,ht}();function gu(r){this.animationData=r}gu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function QE(r){return new gu(r)}function cl(){}cl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},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(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?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 s,n=this.renderableComponents.length;for(s=0;s<n;s+=1)this.renderableComponents[s].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 Pc=function(){var r={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(s){return r[s]||""}}();function JE(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function tT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function eT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function rT(r,s,n){this.p=lt.getProp(s,r.v,1,0,n)}function iT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function oT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function sT(r,s,n){this.p=lt.getProp(s,r.v,0,0,n)}function aT(){this.p={}}function bu(r,s){var n=r.ef||[];this.effectElements=[];var d,m=n.length,p;for(d=0;d<m;d+=1)p=new Ma(n[d],s),this.effectElements.push(p)}function Ma(r,s){this.init(r,s)}A([Me],Ma),Ma.prototype.getValue=Ma.prototype.iterateDynamicProperties,Ma.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var n,d=this.data.ef.length,m,p=this.data.ef;for(n=0;n<d;n+=1){switch(m=null,p[n].ty){case 0:m=new JE(p[n],s,this);break;case 1:m=new tT(p[n],s,this);break;case 2:m=new eT(p[n],s,this);break;case 3:m=new rT(p[n],s,this);break;case 4:case 7:m=new sT(p[n],s,this);break;case 10:m=new iT(p[n],s,this);break;case 11:m=new oT(p[n],s,this);break;case 5:m=new bu(p[n],s,this);break;default:m=new aT(p[n],s,this);break}m&&this.effectElements.push(m)}};function ji(){}ji.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,n=this.data.masksProperties.length;s<n;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Gm();if(s){var n=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),g=s("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=Pc(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=s},initBaseData:function(s,n,d){this.globalData=n,this.comp=d,this.data=s,this.layerId=tr(),this.data.sr||(this.data.sr=1),this.effectsManager=new bu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function qi(){}qi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,n){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(n||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function Xi(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,n)}Xi.prototype.prepareFrame=function(){},A([cl,ji,qi],Xi),Xi.prototype.getBaseElement=function(){return null},Xi.prototype.renderFrame=function(){},Xi.prototype.destroy=function(){},Xi.prototype.initExpressions=function(){var r=Gm();if(r){var s=r("footage");this.layerInterface=s(this)}},Xi.prototype.getFootageData=function(){return this.footageData};function er(r,s,n){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,n),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}er.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},A([cl,ji,qi],er),er.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))},er.prototype.show=function(){},er.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},er.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},er.prototype.resume=function(){this._canPlay=!0},er.prototype.setRate=function(r){this.audio.rate(r)},er.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},er.prototype.getBaseElement=function(){return null},er.prototype.destroy=function(){},er.prototype.sourceRectAtTime=function(){},er.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,n=this.layers.length,d;for(this.completeLayers=!0,s=n-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new er(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new Xi(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,n=r.length,d,m=this.layers.length;for(s=0;s<n;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,n){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(n.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,n):r.setHierarchy(n))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,n=r.length;for(s=0;s<n;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Fe.prototype.getElementById=function(r){var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),n;if(typeof s=="number")n=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){n=this.elements[d];break}}return r.length===0?n:n.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Ro,this.globalData.slotManager=QE(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),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=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var nT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?Mc.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,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 s,n=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,n.cloneFromProps(s),d=0;d<m;d+=1)n.multiply(this.hierarchy[d].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 s=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<n;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<n;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<n;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(nT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var n=0,d=s.length;for(n=0;n<d;n+=1)this.localTransforms.push(s[n])}}},globalToLocal:function(s){var n=[];n.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&n.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=n.length,I;for(p=0;p<g;p+=1)I=n[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Do(r,s,n){this.data=r,this.element=s,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=tt(p),this.solidPath="";var g,I=this.masksProperties,b=0,w=[],L,K,x=tr(),O,P,R,H,M="clipPath",k="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(M="mask",k="mask"),(I[m].mode==="s"||I[m].mode==="i")&&b===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),w.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(M="mask",k="mask",H=lt.getProp(this.element,I[m].x,0,null,this.element),T=tr(),P=At("filter"),P.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),P.appendChild(R),d.appendChild(P),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,H=null),this.storedData[m]={elem:g,x:H,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){K=w.length;var C=At("g");for(L=0;L<K;L+=1)C.appendChild(w[L]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),w.length=0,w.push(C)}else w.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:lt.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=At(M),p=w.length,m=0;m<p;m+=1)this.maskElement.appendChild(w[m]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(k,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Do.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Do.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,n,d=this.masksProperties.length;for(n=0;n<d;n+=1)if((this.viewData[n].prop._mdf||r)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||r)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[n].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||r))){var m=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+f()+"#"+this.storedData[n].filterId+")")),m.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},Do.prototype.getMaskelement=function(){return this.maskElement},Do.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Do.prototype.drawPath=function(r,s,n){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),n.lastPath!==d){var g="";n.elem&&(s.c&&(g=r.inv?this.solidPath+d:d),n.elem.setAttribute("d",g)),n.lastPath=d}},Do.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var La=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=n;function s(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function n(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),yu=function(){var r={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))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),hl={},Eu="filter_result_";function Fc(r){var s,n="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=tr(),p=La.createFilter(m,!0),g=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var b=r.data.ef[s].ty;if(hl[b]){var w=hl[b].effect;I=new w(p,r.effectsManager.effectElements[s],r,Eu+g,n),n=Eu+g,hl[b].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}Fc.prototype.renderFrame=function(r){var s,n=this.filters.length;for(s=0;s<n;s+=1)this.filters[s].renderFrame(r)},Fc.prototype.getEffects=function(r){var s,n=this.filters.length,d=[];for(s=0;s<n;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function kI(r,s,n){hl[r]={effect:s,countsAsEffect:n}}function Oa(){}Oa.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var n=At("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),s=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=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 d=At("clipPath"),m=At("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=tr();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}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 Do(this.data,this,this.globalData),this.renderableEffectsManager=new Fc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var n=this.layerId+"_"+s,d,m,p,g;if(s===1||s===3){var I=At("mask");I.setAttribute("id",n),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!yu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=tr(),m=La.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(La.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var b=At("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var w=At("g");b.appendChild(w),d=tr(),m=La.createFilter(d);var L=At("feComponentTransfer");L.setAttribute("in","SourceGraphic"),m.appendChild(L);var K=At("feFuncA");K.setAttribute("type","table"),K.setAttribute("tableValues","1.0 0.0"),L.appendChild(K),this.globalData.defs.appendChild(m);var x=At("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),w.setAttribute("filter","url("+f()+"#"+d+")"),w.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(p),yu.maskType||(b.setAttribute("mask-type","luminance"),m.appendChild(La.createAlphaToLuminanceFilter()),g=At("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[s]=n}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ms(){}Ms.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ra(){}(function(){var r={initElement:function(n,d,m){this.initFrame(),this.initBaseData(n,d,m),this.initTransform(n,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([cl,U(r)],Ra)})();function Da(r,s,n){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([ji,Ns,Oa,Ms,qi,Ra],Da),Da.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("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",r),this.layerElement.appendChild(this.innerElem)},Da.prototype.sourceRectAtTime=function(){return this.sourceRect};function lT(r,s){this.elem=r,this.pos=s}function Tu(){}Tu.prototype={addShapeToModifiers:function(s){var n,d=this.shapeModifiers.length;for(n=0;n<d;n+=1)this.shapeModifiers[n].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var n=0,d=this.shapeModifiers.length;n<d;)if(this.shapeModifiers[n].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,n=this.shapes.length;for(s=0;s<n;s+=1)this.shapes[s].sh.reset();n=this.shapeModifiers.length;var d;for(s=n-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var n=this.processedElements,d=0,m=n.length;d<m;){if(n[d].elem===s)return n[d].pos;d+=1}return 0},addProcessedElement:function(s,n){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=n;return}d.push(new lT(s,n))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var xu={1:"butt",2:"round",3:"square"},Au={1:"miter",2:"round",3:"bevel"};function Su(r,s,n){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=n,this.lvl=s,this._isAnimated=!!n.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Su.prototype.setAsAnimated=function(){this._isAnimated=!0};function Iu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}Iu.prototype.reset=function(){this.d="",this._mdf=!1};function pl(r,s,n,d){this.elem=r,this.frameId=-1,this.dataProps=tt(s.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=X("float32",s.length?s.length-1:0),this.dashoffset=X("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,g;for(m=0;m<p;m+=1)g=lt.getProp(r,s[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:s[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}pl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<n;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Me],pl);function Cu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}A([Me],Cu);function _u(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(r,s.o,0,.01,this),this.c=lt.getProp(r,s.c,1,255,this),this.style=n}A([Me],_u);function ku(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=n}A([Me],ku);function Pa(r,s,n){this.data=s,this.c=X("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=X("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(n),this.prop=lt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Pa.prototype.comparePoints=function(r,s){for(var n=0,d=this.o.length/2,m;n<d;){if(m=Math.abs(r[n*4]-r[s*4+n*2]),m>.01)return!1;n+=1}return!0},Pa.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Pa.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,n=this.data.p*4,d,m;for(s=0;s<n;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(n=this.prop.v.length,s=this.data.p*4;s<n;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Me],Pa);function Ls(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,n)}Ls.prototype.initGradientData=function(r,s,n){this.o=lt.getProp(r,s.o,0,.01,this),this.s=lt.getProp(r,s.s,1,null,this),this.e=lt.getProp(r,s.e,1,null,this),this.h=lt.getProp(r,s.h||{k:0},0,.01,this),this.a=lt.getProp(r,s.a||{k:0},0,kt,this),this.g=new Pa(r,s.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,s),this.setGradientOpacity(s,n),this._isAnimated=!!this._isAnimated},Ls.prototype.setGradientData=function(r,s){var n=tr(),d=At(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",n),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=s.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=d,this.cst=m},Ls.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var n,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=tr(),b=tr();p.setAttribute("id",b);var w=At(r.t===1?"linearGradient":"radialGradient");w.setAttribute("id",I),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var L=this.stops;for(d=r.g.p*4;d<m;d+=2)n=At("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(n),L.push(n);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",xu[r.lc||2]),g.setAttribute("stroke-linejoin",Au[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=w,this.ms=p,this.ost=L,this.maskId=b,s.msElem=g}},A([Me],Ls);function wu(r,s,n){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.initGradientData(r,s,n),this._isAnimated=!!this._isAnimated}A([Ls,Me],wu);function dT(){this.it=[],this.prevViewData=[],this.gr=At("g")}function cT(r,s,n){this.transform={mProps:r,op:s,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Nu=function(s,n,d,m){if(n===0)return"";var p=s.o,g=s.i,I=s.v,b,w=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(b=1;b<n;b+=1)w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[b][0],g[b][1])+" "+m.applyToPointStringified(I[b][0],I[b][1]);return d&&n&&(w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),w+="z"),w},hT=function(){var r=new Pe,s=new Pe,n={createRenderFunction:d};function d(K){switch(K.ty){case"fl":return I;case"gf":return w;case"gs":return b;case"st":return L;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(K,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function g(K,x,O){var P,R,H,M,k,T,C=x.styles.length,N=x.lvl,$,G,q,it;for(T=0;T<C;T+=1){if(M=x.sh._mdf||O,x.styles[T].lvl<N){for(G=s.reset(),q=N-x.styles[T].lvl,it=x.transformers.length-1;!M&&q>0;)M=x.transformers[it].mProps._mdf||M,q-=1,it-=1;if(M)for(q=N-x.styles[T].lvl,it=x.transformers.length-1;q>0;)G.multiply(x.transformers[it].mProps.v),q-=1,it-=1}else G=r;if($=x.sh.paths,R=$._length,M){for(H="",P=0;P<R;P+=1)k=$.shapes[P],k&&k._length&&(H+=Nu(k,k._length,k.c,G));x.caches[T]=H}else H=x.caches[T];x.styles[T].d+=K.hd===!0?"":H,x.styles[T]._mdf=M||x.styles[T]._mdf}}function I(K,x,O){var P=x.style;(x.c._mdf||O)&&P.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("fill-opacity",x.o.v)}function b(K,x,O){w(K,x,O),L(K,x,O)}function w(K,x,O){var P=x.gf,R=x.g._hasOpacity,H=x.s.v,M=x.e.v;if(x.o._mdf||O){var k=K.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(k,x.o.v)}if(x.s._mdf||O){var T=K.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";P.setAttribute(T,H[0]),P.setAttribute(C,H[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,H[0]),x.of.setAttribute(C,H[1]))}var N,$,G,q;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(G=N.length,$=0;$<G;$+=1)q=N[$],q.setAttribute("offset",it[$*4]+"%"),q.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,G=N.length,$=0;$<G;$+=1)q=N[$],x.g._collapsable||q.setAttribute("offset",Tt[$*2]+"%"),q.setAttribute("stop-opacity",Tt[$*2+1])}if(K.t===1)(x.e._mdf||O)&&(P.setAttribute("x2",M[0]),P.setAttribute("y2",M[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",M[0]),x.of.setAttribute("y2",M[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)),P.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(H[0]-M[0],2)+Math.pow(H[1]-M[1],2)));var st=Math.atan2(M[1]-H[1],M[0]-H[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var ht=ut*St,rt=Math.cos(st+x.a.v)*ht+H[0],_=Math.sin(st+x.a.v)*ht+H[1];P.setAttribute("fx",rt),P.setAttribute("fy",_),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",_))}}}function L(K,x,O){var P=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(P.pElem.setAttribute("stroke-dasharray",R.dashStr),P.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&P.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(P.pElem.setAttribute("stroke-width",x.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",x.w.v))}return n}();function de(r,s,n){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,n),this.prevViewData=[]}A([ji,Ns,Oa,Tu,Ms,qi,Ra],de),de.prototype.initSecondaryElement=function(){},de.prototype.identityMatrix=new Pe,de.prototype.buildExpressionInterface=function(){},de.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},de.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,n,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<s;r+=1)n=this.shapes[r],n.styles.indexOf(p)!==-1&&(g.push(n),I=n._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},de.prototype.setShapesAsAnimated=function(r){var s,n=r.length;for(s=0;s<n;s+=1)r[s].setAsAnimated()},de.prototype.createStyleElement=function(r,s){var n,d=new Iu(r,s),m=d.pElem;if(r.ty==="st")n=new Cu(this,r,d);else if(r.ty==="fl")n=new _u(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ls:wu;n=new p(this,r,d),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),m.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else r.ty==="no"&&(n=new ku(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",xu[r.lc||2]),m.setAttribute("stroke-linejoin",Au[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=Pc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,n),n},de.prototype.createGroupElement=function(r){var s=new dT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=Pc(r.bm)),s},de.prototype.createTransformElement=function(r,s){var n=Mc.getTransformProperty(this,r,this),d=new cT(n,n.o,s);return this.addToAnimatedContents(r,d),d},de.prototype.createShapeElement=function(r,s,n){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=ol.getShapeProp(this,r,d,this),p=new Su(s,n,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},de.prototype.addToAnimatedContents=function(r,s){for(var n=0,d=this.animatedContents.length;n<d;){if(this.animatedContents[n].element===s)return;n+=1}this.animatedContents.push({fn:hT.createRenderFunction(r),element:s,data:r})},de.prototype.setElementStyles=function(r){var s=r.styles,n,d=this.stylesList.length;for(n=0;n<d;n+=1)this.stylesList[n].closed||s.push(this.stylesList[n])},de.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},de.prototype.searchShapes=function(r,s,n,d,m,p,g){var I=[].concat(p),b,w=r.length-1,L,K,x=[],O=[],P,R,H;for(b=w;b>=0;b-=1){if(H=this.searchProcessedElement(r[b]),H?s[b]=n[H-1]:r[b]._render=g,r[b].ty==="fl"||r[b].ty==="st"||r[b].ty==="gf"||r[b].ty==="gs"||r[b].ty==="no")H?s[b].style.closed=!1:s[b]=this.createStyleElement(r[b],m),r[b]._render&&s[b].style.pElem.parentNode!==d&&d.appendChild(s[b].style.pElem),x.push(s[b].style);else if(r[b].ty==="gr"){if(!H)s[b]=this.createGroupElement(r[b]);else for(K=s[b].it.length,L=0;L<K;L+=1)s[b].prevViewData[L]=s[b].it[L];this.searchShapes(r[b].it,s[b].it,s[b].prevViewData,s[b].gr,m+1,I,g),r[b]._render&&s[b].gr.parentNode!==d&&d.appendChild(s[b].gr)}else r[b].ty==="tr"?(H||(s[b]=this.createTransformElement(r[b],d)),P=s[b].transform,I.push(P)):r[b].ty==="sh"||r[b].ty==="rc"||r[b].ty==="el"||r[b].ty==="sr"?(H||(s[b]=this.createShapeElement(r[b],I,m)),this.setElementStyles(s[b])):r[b].ty==="tm"||r[b].ty==="rd"||r[b].ty==="ms"||r[b].ty==="pb"||r[b].ty==="zz"||r[b].ty==="op"?(H?(R=s[b],R.closed=!1):(R=Wi.getModifier(r[b].ty),R.init(this,r[b]),s[b]=R,this.shapeModifiers.push(R)),O.push(R)):r[b].ty==="rp"&&(H?(R=s[b],R.closed=!0):(R=Wi.getModifier(r[b].ty),s[b]=R,R.init(this,r,b,s),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=O.length,b=0;b<w;b+=1)O[b].closed=!0},de.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},de.prototype.renderShape=function(){var r,s=this.animatedContents.length,n;for(r=0;r<s;r+=1)n=this.animatedContents[r],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},de.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function $c(r,s,n,d,m,p){this.o=r,this.sw=s,this.sc=n,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!n,fc:!!d,m:!0,p:!0}}$c.prototype.update=function(r,s,n,d,m,p){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 g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,g=!0),g};function Ke(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,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)}Ke.prototype.defaultBoxWidth=[0,0],Ke.prototype.copyData=function(r,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n]);return r},Ke.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ke.prototype.searchProperty=function(){return this.searchKeyframes()},Ke.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ke.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},Ke.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)n!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Ke.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,n=0,d=r.length;n<=d-1&&!(n===d-1||r[n+1].t>s);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Ke.prototype.buildFinalText=function(r){for(var s=[],n=0,d=r.length,m,p,g=!1,I=!1,b="";n<d;)g=I,I=!1,m=r.charCodeAt(n),b=r.charAt(n),Ro.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?Ro.isRegionalFlag(r,n)?b=r.substr(n,14):(p=r.charCodeAt(n+1),p>=56320&&p<=57343&&(Ro.isModifier(m,p)?(b=r.substr(n,2),g=!0):Ro.isFlagEmoji(r.substr(n,4))?b=r.substr(n,4):b=r.substr(n,2))):m>56319?(p=r.charCodeAt(n+1),Ro.isVariationSelector(m)&&(g=!0)):Ro.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(s[s.length-1]+=b,g=!1):s.push(b),n+=b.length;return s},Ke.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,n=this.data,d=[],m,p,g,I=0,b,w=n.m.g,L=0,K=0,x=0,O=[],P=0,R=0,H,M,k=s.getFontByName(r.f),T,C=0,N=vu(k);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,G;if(r.sz)for(var q=!0,it=r.sz[0],Tt=r.sz[1],ut,st;q;){st=this.buildFinalText(r.t),ut=0,P=0,p=st.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)G=st[m].charCodeAt(0),g=!1,st[m]===" "?St=m:(G===13||G===3)&&(P=0,g=!0,ut+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(st[m],k.fStyle,k.fFamily),C=g?0:T.w*r.finalSize/100):C=s.measureText(st[m],r.f,r.finalSize),P+C>it&&st[m]!==" "?(St===-1?p+=1:m=St,ut+=r.finalLineHeight||r.finalSize*1.2,st.splice(m,St===m?1:0,"\r"),St=-1,P=0):(P+=C,P+=$);ut+=k.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ut?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=st,p=r.finalText.length,q=!1)}P=-$,C=0;var ht=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],G=rt.charCodeAt(0),G===13||G===3?(ht=0,O.push(P),R=P>R?P:R,P=-2*$,b="",g=!0,x+=1):b=rt,s.chars?(T=s.getCharData(rt,k.fStyle,s.getFontByName(r.f).fFamily),C=g?0:T.w*r.finalSize/100):C=s.measureText(b,r.f,r.finalSize),rt===" "?ht+=C+$:(P+=C+$+ht,ht=0),d.push({l:C,an:C,add:L,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(L+=C,b===""||b===" "||m===p-1){for((b===""||b===" ")&&(L-=C);K<=m;)d[K].an=L,d[K].ind=I,d[K].extra=C,K+=1;I+=1,L=0}}else if(w==3){if(L+=C,b===""||m===p-1){for(b===""&&(L-=C);K<=m;)d[K].an=L,d[K].ind=I,d[K].extra=C,K+=1;L=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=P>R?P:R,O.push(P),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=n.a,D,v;M=_.length;var E,j,V=[];for(H=0;H<M;H+=1){for(D=_[H],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),j=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[H]=j,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(j),j+=1);n.a[H].s.totalChars=j;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[H]&&(ct=v.anIndexes[H],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[H]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=k.ascent*r.finalSize/100},Ke.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var n=this.copyData({},this.data.d.k[s].s);n=this.copyData(n,r),this.data.d.k[s].s=n,this.recalculate(s),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Ke.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},Ke.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ke.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var pT=function(){var r=Math.max,s=Math.min,n=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=lt.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=lt.getProp(p,g.e,0,0,this):this.e={v:100},this.o=lt.getProp(p,g.o||{k:0},0,0,this),this.xe=lt.getProp(p,g.xe||{k:0},0,0,this),this.ne=lt.getProp(p,g.ne||{k:0},0,0,this),this.sm=lt.getProp(p,g.sm||{k:100},0,0,this),this.a=lt.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,b=0,w=1,L=1;this.ne.v>0?I=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:L=1+this.xe.v/100;var K=Ia.getBezierEasing(I,b,w,L).get,x=0,O=this.finalS,P=this.finalE,R=this.data.sh;if(R===2)P===O?x=g>=P?1:0:x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===3)P===O?x=g>=P?0:1:x=1-r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=K(x);else if(R===4)P===O?x=0:(x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=K(x);else if(R===5){if(P===O)x=0;else{var H=P-O;g=s(r(0,g+.5-O),P-O);var M=-H/2+g,k=H/2;x=Math.sqrt(1-M*M/(k*k))}x=K(x)}else R===6?(P===O?x=0:(g=s(r(0,g+.5-O),P-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(P-O)))/2),x=K(x)):(g>=n(O)&&(g-O<0?x=r(0,s(s(P,1)-(O-g),1)):x=r(0,s(P-g,1))),x=K(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/I,w=this.s.v/I+b,L=this.e.v/I+b;if(w>L){var K=w;w=L,L=K}this.finalS=w,this.finalE=L}},A([Me],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function mT(r,s,n){var d={propType:!1},m=lt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,kt,n):d,rx:p.rx?m(r,p.rx,0,kt,n):d,ry:p.ry?m(r,p.ry,0,kt,n):d,sk:p.sk?m(r,p.sk,0,kt,n):d,sa:p.sa?m(r,p.sa,0,kt,n):d,s:p.s?m(r,p.s,1,.01,n):d,a:p.a?m(r,p.a,1,0,n):d,o:p.o?m(r,p.o,0,.01,n):d,p:p.p?m(r,p.p,1,0,n):d,sw:p.sw?m(r,p.sw,0,0,n):d,sc:p.sc?m(r,p.sc,1,0,n):d,fc:p.fc?m(r,p.fc,1,0,n):d,fh:p.fh?m(r,p.fh,0,0,n):d,fs:p.fs?m(r,p.fs,0,.01,n):d,fb:p.fb?m(r,p.fb,0,.01,n):d,t:p.t?m(r,p.t,0,0,n):d},this.s=pT.getTextSelectorProp(r,s.s,n),this.s.t=s.s.t}function Po(r,s,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=n,this._animatorsData=tt(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}Po.prototype.searchProperties=function(){var r,s=this._textData.a.length,n,d=lt.getProp;for(r=0;r<s;r+=1)n=this._textData.a[r],this._animatorsData[r]=new mT(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(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=d(this._elem,this._textData.m.a,1,0,this)},Po.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,b,w,L,K,x=r.l,O,P,R,H,M,k,T,C,N,$,G,q,it,Tt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},K=st._length-1;var St;for(q=0,L=0;L<K;L+=1)St=Xr.buildBezierData(st.v[L],st.v[L+1],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[L+1][0]-st.v[L+1][0],st.i[L+1][1]-st.v[L+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength;L=K,ut.v.c&&(St=Xr.buildBezierData(st.v[L],st.v[0],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),q+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,P=this._pathData.f.v,T=0,k=1,H=0,M=!0,$=O.segments,P<0&&ut.v.c)for(O.tLength<Math.abs(P)&&(P=-Math.abs(P)%O.tLength),T=$.length-1,N=$[T].points,k=N.length-1;P<0;)P+=N[k].partialLength,k-=1,k<0&&(T-=1,N=$[T].points,k=N.length-1);N=$[T].points,C=N[k-1],R=N[k],G=R.partialLength}K=x.length,b=0,w=0;var ht=r.finalSize*1.2*.714,rt=!0,_,D,v,E,j;E=d.length;var V,ct=-1,gt,xt,Pt,Ft=P,ue=T,rr=k,Qr=-1,ir,Le,ur,Wt,pt,gi,Qi,bi,Jr="",yi=this.defaultPropsArray,Ei;if(r.j===2||r.j===1){var or=0,Ji=0,to=r.j===2?-.5:-1,Dr=0,eo=!0;for(L=0;L<K;L+=1)if(x[L].n){for(or&&(or+=Ji);Dr<L;)x[Dr].animatorJustifyOffset=or,Dr+=1;or=0,eo=!0}else{for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(eo&&r.j===2&&(Ji+=_.t.v*to),D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?or+=_.t.v*V[0]*to:or+=_.t.v*V*to);eo=!1}for(or&&(or+=Ji);Dr<L;)x[Dr].animatorJustifyOffset=or,Dr+=1}for(L=0;L<K;L+=1){if(p.reset(),ir=1,x[L].n)b=0,w+=r.yOffset,w+=rt?1:0,P=Ft,rt=!1,this._hasMaskedPath&&(T=ue,k=rr,N=$[T].points,C=N[k-1],R=N[k],G=R.partialLength,H=0),Jr="",bi="",gi="",Ei="",yi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Qr!==x[L].line){switch(r.j){case 1:P+=q-r.lineWidths[x[L].line];break;case 2:P+=(q-r.lineWidths[x[L].line])/2;break;default:break}Qr=x[L].line}ct!==x[L].ind&&(x[ct]&&(P+=x[ct].extra),P+=x[L].an/2,ct=x[L].ind),P+=n[0]*x[L].an*.005;var Pr=0;for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=_.p.v[0]*V[0]:Pr+=_.p.v[0]*V),_.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=_.a.v[0]*V[0]:Pr+=_.a.v[0]*V);for(M=!0,this._pathData.a.v&&(P=x[0].an*.5+(q-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(K-1),P+=this._pathData.f.v);M;)H+G>=P+Pr||!N?(it=(P+Pr-H)/R.partialLength,xt=C.point[0]+(R.point[0]-C.point[0])*it,Pt=C.point[1]+(R.point[1]-C.point[1])*it,p.translate(-n[0]*x[L].an*.005,-(n[1]*ht)*.01),M=!1):N&&(H+=R.partialLength,k+=1,k>=N.length&&(k=0,T+=1,$[T]?N=$[T].points:ut.v.c?(k=0,T=0,N=$[T].points):(H-=R.partialLength,N=null)),N&&(C=R,R=N[k],G=R.partialLength));gt=x[L].an/2-x[L].add,p.translate(-gt,0,0)}else gt=x[L].an/2-x[L].add,p.translate(-gt,0,0),p.translate(-n[0]*x[L].an*.005,-n[1]*ht*.01,0);for(v=0;v<E;v+=1)_=d[v].a,_.t.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),(b!==0||r.j!==0)&&(this._hasMaskedPath?V.length?P+=_.t.v*V[0]:P+=_.t.v*V:V.length?b+=_.t.v*V[0]:b+=_.t.v*V));for(r.strokeWidthAnim&&(ur=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Wt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)_=d[v].a,_.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-_.a.v[0]*V[0],-_.a.v[1]*V[1],_.a.v[2]*V[2]):p.translate(-_.a.v[0]*V,-_.a.v[1]*V,_.a.v[2]*V));for(v=0;v<E;v+=1)_=d[v].a,_.s.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(_.s.v[0]-1)*V[0],1+(_.s.v[1]-1)*V[1],1):p.scale(1+(_.s.v[0]-1)*V,1+(_.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(_=d[v].a,D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),_.sk.propType&&(V.length?p.skewFromAxis(-_.sk.v*V[0],_.sa.v*V[1]):p.skewFromAxis(-_.sk.v*V,_.sa.v*V)),_.r.propType&&(V.length?p.rotateZ(-_.r.v*V[2]):p.rotateZ(-_.r.v*V)),_.ry.propType&&(V.length?p.rotateY(_.ry.v*V[1]):p.rotateY(_.ry.v*V)),_.rx.propType&&(V.length?p.rotateX(_.rx.v*V[0]):p.rotateX(_.rx.v*V)),_.o.propType&&(V.length?ir+=(_.o.v*V[0]-ir)*V[0]:ir+=(_.o.v*V-ir)*V),r.strokeWidthAnim&&_.sw.propType&&(V.length?ur+=_.sw.v*V[0]:ur+=_.sw.v*V),r.strokeColorAnim&&_.sc.propType)for(pt=0;pt<3;pt+=1)V.length?Le[pt]+=(_.sc.v[pt]-Le[pt])*V[0]:Le[pt]+=(_.sc.v[pt]-Le[pt])*V;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(pt=0;pt<3;pt+=1)V.length?Wt[pt]+=(_.fc.v[pt]-Wt[pt])*V[0]:Wt[pt]+=(_.fc.v[pt]-Wt[pt])*V;_.fh.propType&&(V.length?Wt=Um(Wt,_.fh.v*V[0]):Wt=Um(Wt,_.fh.v*V)),_.fs.propType&&(V.length?Wt=Bm(Wt,_.fs.v*V[0]):Wt=Bm(Wt,_.fs.v*V)),_.fb.propType&&(V.length?Wt=Hm(Wt,_.fb.v*V[0]):Wt=Hm(Wt,_.fb.v*V))}}for(v=0;v<E;v+=1)_=d[v].a,_.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,_.p.v[1]*V[0],-_.p.v[2]*V[1]):p.translate(0,_.p.v[1]*V,-_.p.v[2]*V):V.length?p.translate(_.p.v[0]*V[0],_.p.v[1]*V[1],-_.p.v[2]*V[2]):p.translate(_.p.v[0]*V,_.p.v[1]*V,-_.p.v[2]*V));if(r.strokeWidthAnim&&(gi=ur<0?0:ur),r.strokeColorAnim&&(Qi="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(bi="rgb("+Math.round(Wt[0]*255)+","+Math.round(Wt[1]*255)+","+Math.round(Wt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,n[1]*ht*.01+w,0),this._pathData.p.v){Tt=(R.point[1]-C.point[1])/(R.point[0]-C.point[0]);var Fo=Math.atan(Tt)*180/Math.PI;R.point[0]<C.point[0]&&(Fo+=180),p.rotate(-Fo*Math.PI/180)}p.translate(xt,Pt,0),P-=n[0]*x[L].an*.005,x[L+1]&&ct!==x[L+1].ind&&(P+=x[L].an/2,P+=r.tr*.001*r.finalSize)}else{switch(p.translate(b,w,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line]),0,0);break;case 2:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(n[0]*x[L].an*.005,n[1]*ht*.01,0),b+=x[L].l+r.tr*.001*r.finalSize}g==="html"?Jr=p.toCSS():g==="svg"?Jr=p.to2dCSS():yi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Ei=ir}I<=L?(j=new $c(Ei,gi,Qi,bi,Jr,yi),this.renderedLetters.push(j),I+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[L],this.lettersChangedFlag=j.update(Ei,gi,Qi,bi,Jr,yi)||this.lettersChangedFlag)}}},Po.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Po.prototype.mHelper=new Pe,Po.prototype.defaultPropsArray=[],A([Me],Po);function Sr(){}Sr.prototype.initElement=function(r,s,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,n),this.textProperty=new Ke(this,r.t,this.dynamicProperties),this.textAnimator=new Po(r.t,this.renderType,this),this.initTransform(r,s,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Sr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},Sr.prototype.createPathShape=function(r,s){var n,d=s.length,m,p="";for(n=0;n<d;n+=1)s[n].ty==="sh"&&(m=s[n].ks.k,p+=Nu(m,m.i.length,!0,r));return p},Sr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},Sr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},Sr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},Sr.prototype.applyTextPropertiesToMatrix=function(r,s,n,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[n])/2,0,0);break;default:break}s.translate(d,m,0)},Sr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},Sr.prototype.emptyProp=new $c,Sr.prototype.destroy=function(){},Sr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var uT={shapes:[]};function fi(r,s,n){this.textSpans=[],this.renderType="svg",this.initElement(r,s,n)}A([ji,Ns,Oa,Ms,qi,Ra,Sr],fi),fi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},fi.prototype.buildTextContents=function(r){for(var s=0,n=r.length,d=[],m="";s<n;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},fi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var n=r.shapes[0];if(n.it){var d=n.it[n.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},fi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,n=this.textProperty.currentData;this.renderedLetters=tt(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var d=this.globalData.fontManager.getFontByName(n.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=n.fWeight,p=n.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],I=!!this.globalData.fontManager.chars;s=g.length;var b,w=this.mHelper,L="",K=this.data.singleShape,x=0,O=0,P=!0,R=n.tr*.001*n.finalSize;if(K&&!I&&!n.sz){var H=this.textContainer,M="start";switch(n.j){case 1:M="end";break;case 2:M="middle";break;default:M="start";break}H.setAttribute("text-anchor",M),H.setAttribute("letter-spacing",R);var k=this.buildTextContents(n.finalText);for(s=k.length,O=n.ps?n.ps[1]+n.ascent:0,r=0;r<s;r+=1)b=this.textSpans[r].span||At("tspan"),b.textContent=k[r],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",H.appendChild(b),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(H)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!K||r===0){if(b=T>r?this.textSpans[r].span:At(I?"g":"text"),T<=r){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=b,I){var N=At("g");b.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),K&&(g[r].n&&(x=-R,O+=n.yOffset,O+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(n,w,g[r].line,x,O),x+=g[r].l||0,x+=R),I){C=this.globalData.fontManager.getCharData(n.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var $;if(C.t===1)$=new Fa(C.data,this.globalData,this);else{var G=uT;C.data&&C.data.shapes&&(G=this.buildShapeData(C.data,n.finalSize)),$=new de(G,this.globalData,this)}if(this.textSpans[r].glyph){var q=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(q.layerElement),q.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else K&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[r].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}K&&b&&b.setAttribute("d",L)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},fi.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},fi.prototype.getValue=function(){var r,s=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)n=this.textSpans[r].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},fi.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 r,s,n=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,g;for(r=0;r<s;r+=1)d[r].n||(m=n[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Vc(r,s,n){this.initElement(r,s,n)}A([Da],Vc),Vc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function Zi(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initFrame(),this.initTransform(r,s,n),this.initHierarchy()}Zi.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},Zi.prototype.renderFrame=function(){},Zi.prototype.getBaseElement=function(){return null},Zi.prototype.destroy=function(){},Zi.prototype.sourceRectAtTime=function(){},Zi.prototype.hide=function(){},A([ji,Ns,Ms,qi],Zi);function Se(){}A([Fe],Se),Se.prototype.createNull=function(r){return new Zi(r,this.globalData,this)},Se.prototype.createShape=function(r){return new de(r,this.globalData,this)},Se.prototype.createText=function(r){return new fi(r,this.globalData,this)},Se.prototype.createImage=function(r){return new Da(r,this.globalData,this)},Se.prototype.createSolid=function(r){return new Vc(r,this.globalData,this)},Se.prototype.configAnimation=function(r){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 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.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 s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var n=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=tr();n.setAttribute("id",m),n.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(n),this.layers=r.layers,this.elements=tt(r.layers.length)},Se.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Se.prototype.updateContainerSize=function(){},Se.prototype.findIndexByInd=function(r){var s=0,n=this.layers.length;for(s=0;s<n;s+=1)if(this.layers[s].ind===r)return s;return-1},Se.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var n=this.createItem(this.layers[r]);if(s[r]=n,Zn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(n);else{var m=s[d],p=m.getMatte(this.layers[r].tt);n.setMatte(p)}}}},Se.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,n=this.elements.length;s<n;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Se.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,n=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=n-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<n;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Se.prototype.appendElementInPos=function(r,s){var n=r.getBaseElement();if(n){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(n,m):this.layerElement.appendChild(n)}},Se.prototype.hide=function(){this.layerElement.style.display="none"},Se.prototype.show=function(){this.layerElement.style.display="block"};function vi(){}A([ji,Ns,Ms,qi,Ra],vi),vi.prototype.initElement=function(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initTransform(r,s,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},vi.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var n,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=d-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},vi.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},vi.prototype.setElements=function(r){this.elements=r},vi.prototype.getElements=function(){return this.elements},vi.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},vi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Fa(r,s,n){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?tt(this.layers.length):[],this.initElement(r,s,n),this.tm=r.tm?lt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Se,vi,Oa],Fa),Fa.prototype.createComp=function(r){return new Fa(r,this.globalData,this)};function zc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var n="";if(s&&s.title){var d=At("title"),m=tr();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),n+=m}if(s&&s.description){var p=At("desc"),g=tr();p.setAttribute("id",g),p.textContent=s.description,this.svgElement.appendChild(p),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var I=At("defs");this.svgElement.appendChild(I);var b=At("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Se],zc),zc.prototype.createComp=function(r){return new Fa(r,this.globalData,this)},SE("svg",zc),Wi.registerModifier("tm",Rr),Wi.registerModifier("pb",Ca),Wi.registerModifier("rp",Zr),Wi.registerModifier("rd",_a),Wi.registerModifier("zz",wa),Wi.registerModifier("op",Na),Gt})});var vl=globalThis,gl=vl.ShadowRoot&&(vl.ShadyCSS===void 0||vl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hc=Symbol(),Lu=new WeakMap,$a=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Hc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(gl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=Lu.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&Lu.set(t,o))}return o}toString(){return this.cssText}},Ou=a=>new $a(typeof a=="string"?a:a+"",void 0,Hc),B=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((e,i,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+a[l+1],a[0]);return new $a(t,a,Hc)},Uc=(a,o)=>{if(gl)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=vl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,a.appendChild(e)}},bl=gl?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return Ou(t)})(a):a;var{is:xT,defineProperty:AT,getOwnPropertyDescriptor:ST,getOwnPropertyNames:IT,getOwnPropertySymbols:CT,getPrototypeOf:_T}=Object,ro=globalThis,Ru=ro.trustedTypes,kT=Ru?Ru.emptyScript:"",Gc=ro.reactiveElementPolyfillSupport,Va=(a,o)=>a,za={toAttribute(a,o){switch(o){case Boolean:a=a?kT:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute(a,o){let t=a;switch(o){case Boolean:t=a!==null;break;case Number:t=a===null?null:Number(a);break;case Object:case Array:try{t=JSON.parse(a)}catch{t=null}}return t}},yl=(a,o)=>!xT(a,o),Du={attribute:!0,type:String,converter:za,reflect:!1,hasChanged:yl},Pu,Fu;(Pu=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Fu=ro.litPropertyMetadata)!=null||(ro.litPropertyMetadata=new WeakMap);var Ti=class extends HTMLElement{static addInitializer(o){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=Du){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&AT(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var c;let{get:i,set:l}=(c=ST(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let y=i==null?void 0:i.call(this);l.call(this,f),this.requestUpdate(o,y,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Du}static _$Ei(){if(this.hasOwnProperty(Va("elementProperties")))return;let o=_T(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Va("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Va("properties"))){let t=this.properties,e=[...IT(t),...CT(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(bl(i))}else o!==void 0&&t.push(bl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Uc(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var l;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:za).toAttribute(t,e.type);this._$Em=o,c==null?this.removeAttribute(i):this.setAttribute(i,c),this._$Em=null}}_$AK(o,t){var l;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let c=e.getPropertyOptions(i),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:za;this._$Em=i,this[i]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:yl)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw o=!1,this._$EU(),l}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},$u;Ti.elementStyles=[],Ti.shadowRootOptions={mode:"open"},Ti[Va("elementProperties")]=new Map,Ti[Va("finalized")]=new Map,Gc==null||Gc({ReactiveElement:Ti}),(($u=ro.reactiveElementVersions)!=null?$u:ro.reactiveElementVersions=[]).push("2.0.4");var Ha=globalThis,El=Ha.trustedTypes,Vu=El?El.createPolicy("lit-html",{createHTML:a=>a}):void 0,Yc="$lit$",xi=`lit$${Math.random().toFixed(9).slice(2)}$`,jc="?"+xi,wT=`<${jc}>`,zo=document,Ua=()=>zo.createComment(""),Ga=a=>a===null||typeof a!="object"&&typeof a!="function",qc=Array.isArray,Wu=a=>qc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",Kc=`[
|
|
3
3
|
\f\r]`,Ba=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zu=/-->/g,Bu=/>/g,$o=RegExp(`>|${Kc}(?:([^\\s"'>=/]+)(${Kc}*=${Kc}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Hu=/'/g,Uu=/"/g,Yu=/^(?:script|style|textarea|title)$/i,Xc=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),S=Xc(1),RI=Xc(2),DI=Xc(3),$e=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Gu=new WeakMap,Vo=zo.createTreeWalker(zo,129);function ju(a,o){if(!qc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vu!==void 0?Vu.createHTML(o):o}var qu=(a,o)=>{let t=a.length-1,e=[],i,l=o===2?"<svg>":o===3?"<math>":"",c=Ba;for(let f=0;f<t;f++){let y=a[f],A,F,U=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,F=c.exec(y),F!==null);)Q=c.lastIndex,c===Ba?F[1]==="!--"?c=zu:F[1]!==void 0?c=Bu:F[2]!==void 0?(Yu.test(F[2])&&(i=RegExp("</"+F[2],"g")),c=$o):F[3]!==void 0&&(c=$o):c===$o?F[0]===">"?(c=i!=null?i:Ba,U=-1):F[1]===void 0?U=-2:(U=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?$o:F[3]==='"'?Uu:Hu):c===Uu||c===Hu?c=$o:c===zu||c===Bu?c=Ba:(c=$o,i=void 0);let X=c===$o&&a[f+1].startsWith("/>")?" ":"";l+=c===Ba?y+wT:U>=0?(e.push(A),y.slice(0,U)+Yc+y.slice(U)+Ti+X):y+Ti+(U===-2?f:X)}return[ju(a,l+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Ka=class a{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let l=0,c=0,f=o.length-1,y=this.parts,[A,F]=qu(o,t);if(this.el=a.createElement(A,e),Vo.currentNode=this.el.content,t===2||t===3){let U=this.el.content.firstChild;U.replaceWith(...U.childNodes)}for(;(i=Vo.nextNode())!==null&&y.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let U of i.getAttributeNames())if(U.endsWith(Yc)){let Q=F[c++],X=i.getAttribute(U).split(Ti),tt=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:tt[2],strings:X,ctor:tt[1]==="."?xl:tt[1]==="?"?Al:tt[1]==="@"?Sl:Ho}),i.removeAttribute(U)}else U.startsWith(Ti)&&(y.push({type:6,index:l}),i.removeAttribute(U));if(Yu.test(i.tagName)){let U=i.textContent.split(Ti),Q=U.length-1;if(Q>0){i.textContent=El?El.emptyScript:"";for(let X=0;X<Q;X++)i.append(U[X],Ua()),Vo.nextNode(),y.push({type:2,index:++l});i.append(U[Q],Ua())}}}else if(i.nodeType===8)if(i.data===jc)y.push({type:2,index:l});else{let U=-1;for(;(U=i.data.indexOf(Ti,U+1))!==-1;)y.push({type:7,index:l}),U+=Ti.length-1}l++}}static createElement(o,t){let e=zo.createElement("template");return e.innerHTML=o,e}};function Bo(a,o,t=a,e){var c,f,y;if(o===$e)return o;let i=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Ga(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==l&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),l===void 0?i=void 0:(i=new l(a),i._$AT(a,t,e)),e!==void 0?((y=t.o)!=null?y:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Bo(a,i._$AS(a,o.values),i,e)),o}var Tl=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var A;let{el:{content:t},parts:e}=this._$AD,i=((A=o==null?void 0:o.creationScope)!=null?A:zo).importNode(t,!0);Vo.currentNode=i;let l=Vo.nextNode(),c=0,f=0,y=e[0];for(;y!==void 0;){if(c===y.index){let F;y.type===2?F=new Os(l,l.nextSibling,this,o):y.type===1?F=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(F=new Il(l,this,o)),this._$AV.push(F),y=e[++f]}c!==(y==null?void 0:y.index)&&(l=Vo.nextNode(),c++)}return Vo.currentNode=zo,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Os=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(l=i==null?void 0:i.isConnected)!=null?l:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Bo(this,o,t),Ga(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Wu(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==W&&Ga(this._$AH)?this._$AA.nextSibling.data=o:this.T(zo.createTextNode(o)),this._$AH=o}$(o){var l;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Ka.createElement(ju(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===i)this._$AH.p(t);else{let c=new Tl(i,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=Gu.get(o.strings);return t===void 0&&Gu.set(o.strings,t=new Ka(o)),t}k(o){qc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let l of o)i===t.length?t.push(e=new a(this.O(Ua()),this.O(Ua()),this,this.options)):e=t[i],e._$AI(l),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Ho=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(o,t=this,e,i){let l=this.strings,c=!1;if(l===void 0)o=Bo(this,o,t,0),c=!Ga(o)||o!==this._$AH&&o!==$e,c&&(this._$AH=o);else{let f=o,y,A;for(o=l[0],y=0;y<l.length-1;y++)A=Bo(this,f[e+y],t,y),A===$e&&(A=this._$AH[y]),c||(c=!Ga(A)||A!==this._$AH[y]),A===W?o=W:o!==W&&(o+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!i&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},xl=class extends Ho{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Al=class extends Ho{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Sl=class extends Ho{constructor(o,t,e,i,l){super(o,t,e,i,l),this.type=5}_$AI(o,t=this){var c;if((o=(c=Bo(this,o,t,0))!=null?c:W)===$e)return;let e=this._$AH,i=o===W&&e!==W||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==W&&(e===W||i);i&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Il=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Bo(this,o)}},Xu={M:Yc,P:Ti,A:jc,C:1,L:qu,R:Tl,D:Wu,V:Bo,I:Os,H:Ho,N:Al,U:Sl,B:xl,F:Il},Wc=Ha.litHtmlPolyfillSupport,Ku;Wc==null||Wc(Ka,Os),((Ku=Ha.litHtmlVersions)!=null?Ku:Ha.litHtmlVersions=[]).push("3.2.0");var Zu=(a,o,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:o,i=e._$litPart$;if(i===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=i=new Os(o.insertBefore(Ua(),f),f,void 0,t!=null?t:{})}return i._$AI(a),i};var ro=class extends Ei{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Zu(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},Qu;ro._$litElement$=!0,ro.finalized=!0,(Qu=globalThis.litElementHydrateSupport)==null||Qu.call(globalThis,{LitElement:ro});var Zc=globalThis.litElementPolyfillSupport;Zc==null||Zc({LitElement:ro});var Ju;((Ju=globalThis.litElementVersions)!=null?Ju:globalThis.litElementVersions=[]).push("4.1.0");var NT={attribute:!0,type:String,converter:za,reflect:!1,hasChanged:yl},MT=(a=NT,o,t)=>{let{kind:e,metadata:i}=t,l=globalThis.litPropertyMetadata.get(i);if(l===void 0&&globalThis.litPropertyMetadata.set(i,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let y=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,y,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let y=this[c];o.call(this,f),this.requestUpdate(c,y,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(o,t)=>typeof t=="object"?MT(a,o,t):((e,i,l)=>{let c=i.hasOwnProperty(l);return i.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(i,l):void 0})(a,o,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function tf(a){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,a)}}var ti=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Kt(a,o){return(t,e,i)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?y:null};if(o){let{get:c,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return ti(t,e,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return ti(t,e,{get(){return l(this)}})}}var Qc;function ef(a){return(o,t)=>ti(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:Qc!=null?Qc:Qc=document.createDocumentFragment()).querySelectorAll(a)}})}function jt(a){return(o,t)=>{let{slot:e,selector:i}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return i===void 0?f:f.filter(F=>F.matches(i))}})}}function rf(a){return(o,t)=>{let{slot:e}=a!=null?a:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(i);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var LT={PREFIX:"mdc",SEPARATOR:"-"},OT={NAMESPACE:LT},Jc=OT;var RT=a=>[Jc.NAMESPACE.PREFIX,a].join(Jc.NAMESPACE.SEPARATOR),z={constructTagName:RT};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var of=z.constructTagName("buttonsimple"),Uo={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},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Wa={SIZE:Uo[32],TYPE:Rs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var xi=z.constructTagName("button"),Vt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ya={40:40,32:32,28:28,24:24},Ir={64:64,52:52,20:20,...Ya},Go={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},sr={VARIANT:Vt.PRIMARY,SIZE:Ya[32],COLOR:Go.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var Cl=a=>{class o extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Vt).includes(i)?i:sr.VARIANT)}setColor(i){!Object.values(Go).includes(i)||this.variant===Vt.TERTIARY?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let c=this.typeInternal===Ds.ICON?Object.values(Ir).includes(i)&&!(i===Ir[20]&&this.variant!==Vt.TERTIARY):Object.values(Ya).includes(i);this.setAttribute("size",c?`${i}`:`${sr.SIZE}`)}inferButtonType(){var A,F,U,Q,X,tt;let i=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,l=(Q=(U=this.shadowRoot)==null?void 0:U.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,c=this.prefixIcon||l&&l>0,f=(tt=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:tt.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,y=this.postfixIcon||f&&f>0;i&&(c||y)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(c||y)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([dt()],o.prototype,"typeInternal",2),o};var sf=B`
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Hu=/'/g,Uu=/"/g,Yu=/^(?:script|style|textarea|title)$/i,Xc=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),S=Xc(1),RI=Xc(2),DI=Xc(3),$e=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),Gu=new WeakMap,Vo=zo.createTreeWalker(zo,129);function ju(a,o){if(!qc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vu!==void 0?Vu.createHTML(o):o}var qu=(a,o)=>{let t=a.length-1,e=[],i,l=o===2?"<svg>":o===3?"<math>":"",c=Ba;for(let f=0;f<t;f++){let y=a[f],A,F,U=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,F=c.exec(y),F!==null);)Q=c.lastIndex,c===Ba?F[1]==="!--"?c=zu:F[1]!==void 0?c=Bu:F[2]!==void 0?(Yu.test(F[2])&&(i=RegExp("</"+F[2],"g")),c=$o):F[3]!==void 0&&(c=$o):c===$o?F[0]===">"?(c=i!=null?i:Ba,U=-1):F[1]===void 0?U=-2:(U=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?$o:F[3]==='"'?Uu:Hu):c===Uu||c===Hu?c=$o:c===zu||c===Bu?c=Ba:(c=$o,i=void 0);let X=c===$o&&a[f+1].startsWith("/>")?" ":"";l+=c===Ba?y+wT:U>=0?(e.push(A),y.slice(0,U)+Yc+y.slice(U)+xi+X):y+xi+(U===-2?f:X)}return[ju(a,l+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Ka=class a{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let l=0,c=0,f=o.length-1,y=this.parts,[A,F]=qu(o,t);if(this.el=a.createElement(A,e),Vo.currentNode=this.el.content,t===2||t===3){let U=this.el.content.firstChild;U.replaceWith(...U.childNodes)}for(;(i=Vo.nextNode())!==null&&y.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let U of i.getAttributeNames())if(U.endsWith(Yc)){let Q=F[c++],X=i.getAttribute(U).split(xi),tt=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:tt[2],strings:X,ctor:tt[1]==="."?xl:tt[1]==="?"?Al:tt[1]==="@"?Sl:Ho}),i.removeAttribute(U)}else U.startsWith(xi)&&(y.push({type:6,index:l}),i.removeAttribute(U));if(Yu.test(i.tagName)){let U=i.textContent.split(xi),Q=U.length-1;if(Q>0){i.textContent=El?El.emptyScript:"";for(let X=0;X<Q;X++)i.append(U[X],Ua()),Vo.nextNode(),y.push({type:2,index:++l});i.append(U[Q],Ua())}}}else if(i.nodeType===8)if(i.data===jc)y.push({type:2,index:l});else{let U=-1;for(;(U=i.data.indexOf(xi,U+1))!==-1;)y.push({type:7,index:l}),U+=xi.length-1}l++}}static createElement(o,t){let e=zo.createElement("template");return e.innerHTML=o,e}};function Bo(a,o,t=a,e){var c,f,y;if(o===$e)return o;let i=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Ga(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==l&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),l===void 0?i=void 0:(i=new l(a),i._$AT(a,t,e)),e!==void 0?((y=t.o)!=null?y:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Bo(a,i._$AS(a,o.values),i,e)),o}var Tl=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){var A;let{el:{content:t},parts:e}=this._$AD,i=((A=o==null?void 0:o.creationScope)!=null?A:zo).importNode(t,!0);Vo.currentNode=i;let l=Vo.nextNode(),c=0,f=0,y=e[0];for(;y!==void 0;){if(c===y.index){let F;y.type===2?F=new Os(l,l.nextSibling,this,o):y.type===1?F=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(F=new Il(l,this,o)),this._$AV.push(F),y=e[++f]}c!==(y==null?void 0:y.index)&&(l=Vo.nextNode(),c++)}return Vo.currentNode=zo,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Os=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var l;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(l=i==null?void 0:i.isConnected)!=null?l:!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(o==null?void 0:o.nodeType)===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Bo(this,o,t),Ga(o)?o===W||o==null||o===""?(this._$AH!==W&&this._$AR(),this._$AH=W):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Wu(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==W&&Ga(this._$AH)?this._$AA.nextSibling.data=o:this.T(zo.createTextNode(o)),this._$AH=o}$(o){var l;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Ka.createElement(ju(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===i)this._$AH.p(t);else{let c=new Tl(i,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=Gu.get(o.strings);return t===void 0&&Gu.set(o.strings,t=new Ka(o)),t}k(o){qc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let l of o)i===t.length?t.push(e=new a(this.O(Ua()),this.O(Ua()),this,this.options)):e=t[i],e._$AI(l),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Ho=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,l){this.type=1,this._$AH=W,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=W}_$AI(o,t=this,e,i){let l=this.strings,c=!1;if(l===void 0)o=Bo(this,o,t,0),c=!Ga(o)||o!==this._$AH&&o!==$e,c&&(this._$AH=o);else{let f=o,y,A;for(o=l[0],y=0;y<l.length-1;y++)A=Bo(this,f[e+y],t,y),A===$e&&(A=this._$AH[y]),c||(c=!Ga(A)||A!==this._$AH[y]),A===W?o=W:o!==W&&(o+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!i&&this.j(o)}j(o){o===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},xl=class extends Ho{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===W?void 0:o}},Al=class extends Ho{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==W)}},Sl=class extends Ho{constructor(o,t,e,i,l){super(o,t,e,i,l),this.type=5}_$AI(o,t=this){var c;if((o=(c=Bo(this,o,t,0))!=null?c:W)===$e)return;let e=this._$AH,i=o===W&&e!==W||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==W&&(e===W||i);i&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Il=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Bo(this,o)}},Xu={M:Yc,P:xi,A:jc,C:1,L:qu,R:Tl,D:Wu,V:Bo,I:Os,H:Ho,N:Al,U:Sl,B:xl,F:Il},Wc=Ha.litHtmlPolyfillSupport,Ku;Wc==null||Wc(Ka,Os),((Ku=Ha.litHtmlVersions)!=null?Ku:Ha.litHtmlVersions=[]).push("3.2.0");var Zu=(a,o,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:o,i=e._$litPart$;if(i===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=i=new Os(o.insertBefore(Ua(),f),f,void 0,t!=null?t:{})}return i._$AI(a),i};var io=class extends Ti{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Zu(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},Qu;io._$litElement$=!0,io.finalized=!0,(Qu=globalThis.litElementHydrateSupport)==null||Qu.call(globalThis,{LitElement:io});var Zc=globalThis.litElementPolyfillSupport;Zc==null||Zc({LitElement:io});var Ju;((Ju=globalThis.litElementVersions)!=null?Ju:globalThis.litElementVersions=[]).push("4.1.0");var NT={attribute:!0,type:String,converter:za,reflect:!1,hasChanged:yl},MT=(a=NT,o,t)=>{let{kind:e,metadata:i}=t,l=globalThis.litPropertyMetadata.get(i);if(l===void 0&&globalThis.litPropertyMetadata.set(i,l=new Map),l.set(t.name,a),e==="accessor"){let{name:c}=t;return{set(f){let y=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,y,a)},init(f){return f!==void 0&&this.P(c,void 0,a),f}}}if(e==="setter"){let{name:c}=t;return function(f){let y=this[c];o.call(this,f),this.requestUpdate(c,y,a)}}throw Error("Unsupported decorator location: "+e)};function u(a){return(o,t)=>typeof t=="object"?MT(a,o,t):((e,i,l)=>{let c=i.hasOwnProperty(l);return i.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(i,l):void 0})(a,o,t)}function dt(a){return u({...a,state:!0,attribute:!1})}function tf(a){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,a)}}var ti=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Kt(a,o){return(t,e,i)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(a))!=null?y:null};if(o){let{get:c,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return ti(t,e,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return ti(t,e,{get(){return l(this)}})}}var Qc;function ef(a){return(o,t)=>ti(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:Qc!=null?Qc:Qc=document.createDocumentFragment()).querySelectorAll(a)}})}function jt(a){return(o,t)=>{let{slot:e,selector:i}=a!=null?a:{},l="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(a))!=null?A:[];return i===void 0?f:f.filter(F=>F.matches(i))}})}}function rf(a){return(o,t)=>{let{slot:e}=a!=null?a:{},i="slot"+(e?`[name=${e}]`:":not([name])");return ti(o,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(i);return(f=l==null?void 0:l.assignedNodes(a))!=null?f:[]}})}}var LT={PREFIX:"mdc",SEPARATOR:"-"},OT={NAMESPACE:LT},Jc=OT;var RT=a=>[Jc.NAMESPACE.PREFIX,a].join(Jc.NAMESPACE.SEPARATOR),z={constructTagName:RT};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var of=z.constructTagName("buttonsimple"),Uo={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},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Wa={SIZE:Uo[32],TYPE:Rs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Ai=z.constructTagName("button"),Vt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ya={40:40,32:32,28:28,24:24},Ir={64:64,52:52,20:20,...Ya},Go={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},sr={VARIANT:Vt.PRIMARY,SIZE:Ya[32],COLOR:Go.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var Cl=a=>{class o extends a{constructor(){super(...arguments);this.variant=sr.VARIANT;this.color=sr.COLOR;this.typeInternal=sr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Vt).includes(i)?i:sr.VARIANT)}setColor(i){!Object.values(Go).includes(i)||this.variant===Vt.TERTIARY?this.setAttribute("color",`${sr.COLOR}`):this.setAttribute("color",i)}setSize(i){let c=this.typeInternal===Ds.ICON?Object.values(Ir).includes(i)&&!(i===Ir[20]&&this.variant!==Vt.TERTIARY):Object.values(Ya).includes(i);this.setAttribute("size",c?`${i}`:`${sr.SIZE}`)}inferButtonType(){var A,F,U,Q,X,tt;let i=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,l=(Q=(U=this.shadowRoot)==null?void 0:U.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,c=this.prefixIcon||l&&l>0,f=(tt=(X=this.shadowRoot)==null?void 0:X.querySelector('slot[name="postfix"]'))==null?void 0:tt.assignedNodes().filter(nt=>{var at;return nt.nodeType!==Node.TEXT_NODE||((at=nt.textContent)==null?void 0:at.trim())}).length,y=this.postfixIcon||f&&f>0;i&&(c||y)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(c||y)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([dt()],o.prototype,"typeInternal",2),o};var sf=B`
|
|
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 _l=class extends
|
|
14
|
+
`;var _l=class extends io{static register(o){customElements.get(o)||customElements.define(o,this)}};_l.styles=[sf];var af=_l;var Z=af;var oo=class extends Event{constructor(o,t,e){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=e!=null?e:!1}};var Ps=class{constructor(o,t,e,i){var l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=o,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(l=c.subscribe)!=null?l:!1}else this.context=t,this.callback=e,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new oo(this.context,this.t,this.subscribe))}};var kl=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:i}=this.subscriptions.get(o);o(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var th=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Fs=class extends kl{constructor(o,t,e){var i,l;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let y=new Set;for(let[A,{consumerHost:F}]of this.subscriptions)y.has(A)||(y.add(A),F.dispatchEvent(new oo(this.context,A,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(l=(i=this.host).addController)==null||l.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new th(this.context))}};var DT=B`
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
18
|
-
`,nf=DT;var wl=class extends Z{constructor({context:o,initialValue:t}){super(),this.context=new Fs(this,{context:o,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};wl.styles=[...Z.styles,nf];var lf=wl;var Ie=lf;var Ve=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var te=a=>{class o extends a{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ei=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var wt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var PT=a=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:l}=a,c=(i||l)&&(f=>{l&&l.forEach(y=>{o.requestUpdate(y)}),i==null||i(f)});return new Ps(o,{context:t,callback:c,subscribe:e!=null?e:!0})},FT={consume:PT},Ce=FT;var df=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),cf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),$T=a=>a.getClientRects().length===0,VT=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=a;return e+i+t+o===0},hf=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:e}=o;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},zT=a=>VT(a)||$T(a),BT=a=>{let{display:o,opacity:t,visibility:e}=a.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},HT=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},UT=a=>getComputedStyle(a).display==="contents",GT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||BT(a)||!UT(a)&&(HT(a)||zT(a)),KT=a=>a.disabled,WT=a=>a.getAttribute("tabindex")!=="-1",YT=a=>!!(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),jT=(a,o)=>o.some(t=>a.matches(t));var $s=(a,o={})=>{var f,y;if(!a)return[];let t=new Set((f=o==null?void 0:o.excludedElements)!=null?f:[]),e=(y=o==null?void 0:o.includeSelectors)!=null?y:[],i=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(GT(A)||KT(A))?"stop":jT(A,e)||WT(A)&&YT(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&i.add(A);let F=[];A instanceof HTMLElement&&A.shadowRoot?F=Array.from(A.shadowRoot.children):A.children.length&&(F=Array.from(A.children)),F.forEach(U=>{let Q=U,X=l(Q);X==="focusable"&&i.add(Q),X!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(nt=>{nt instanceof HTMLElement&&c(nt)}):c(Q))})};return c(a),[...i]},ja=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},pf=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",eh=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?eh(o.host):a},mf=a=>{let o=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Ai=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Ai.stack=new Set,Ai.currentKeydownListener=null;var Nl=z.constructTagName("spatialnavigationprovider");var rh={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var qT=Nl,ih=qT;var uf=a=>{let{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),A=o+e/2,F=t+i/2;return{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:y,xMid:A,yMid:F}},XT=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),ZT=(a,o)=>o==="horizontal"?a.height/2:a.width/2,QT=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),JT=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,tx=(a,o,t,e)=>{let i=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(i*i+l*l),f=XT(a,o,t)+ZT(a,t)*e.orthogonalWeight[t],y=QT(a,o,t),A=JT(a,t,y)*e.alignWeight;return c+f-A-Math.sqrt(y)},ff=(a,o,t,e)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let i=uf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let y=uf(f);if(t==="left"&&y.right>i.xMid||t==="right"&&y.left<i.xMid||t==="up"&&y.bottom>i.yMid||t==="down"&&y.top<i.yMid)return c;let A=tx(i,y,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Ko=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var qa=class extends Ie{constructor(){super({context:ih});this.navigationKeyMapping=rh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=rh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new Ko("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(i)),i.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Ko("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=ja();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return ih}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=$s(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=Ai.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===i||y===this.root||hf(y)){c.push(...$s(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||y===i||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let l=new Ko("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var y,A;if(t.length===0)return;let i=this.getActiveElement(),l=ja();if((!i||!t.includes(i)||i!==l)&&(l&&t.includes(l)?i=l:[i]=t,this.setActiveElement(i)),i!==ja())return i;let c=`data-spatial-${e}`;if(l){let F=mf(l).find(Q=>Q.hasAttribute(c)),U=F==null?void 0:F.getAttribute(c);if(F&&U){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(U);if(Q)return Q}}return(A=ff(i,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new Ko("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=ja();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(i=>i.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],qa.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],qa.prototype,"distanceCalculationWeights",2);var oh=qa;oh.register(Nl);var vf=oh;var Y={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},ex={[wt.ARROW_UP]:Y.UP,[wt.ARROW_DOWN]:Y.DOWN,[wt.ARROW_LEFT]:Y.LEFT,[wt.ARROW_RIGHT]:Y.RIGHT,[wt.ENTER]:Y.ENTER,[wt.SPACE]:Y.SPACE,[wt.ESCAPE]:Y.ESCAPE,[wt.TAB]:Y.TAB,[wt.HOME]:Y.HOME,[wt.END]:Y.END,[wt.BACKSPACE]:Y.BACKSPACE},ee={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=Ce.consume({host:this,context:vf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?ee.SPATIAL:ee.DEFAULT}getActionForKeyEvent(i,l=!1){var y,A,F;let f=((F=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?F:ex)[i.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===Y.LEFT)return Y.RIGHT;if(f===Y.RIGHT)return Y.LEFT}return f}isDirectionAction(i){return i===Y.UP||i===Y.DOWN||i===Y.LEFT||i===Y.RIGHT}}return o};var Lt=a=>{class o extends a{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var yt=B`
|
|
18
|
+
`,nf=DT;var wl=class extends Z{constructor({context:o,initialValue:t}){super(),this.context=new Fs(this,{context:o,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};wl.styles=[...Z.styles,nf];var lf=wl;var Ie=lf;var Ve=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var te=a=>{class o extends a{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var ei=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var wt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var PT=a=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:l}=a,c=(i||l)&&(f=>{l&&l.forEach(y=>{o.requestUpdate(y)}),i==null||i(f)});return new Ps(o,{context:t,callback:c,subscribe:e!=null?e:!0})},FT={consume:PT},Ce=FT;var df=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),cf=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),$T=a=>a.getClientRects().length===0,VT=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=a;return e+i+t+o===0},hf=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:e}=o;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},zT=a=>VT(a)||$T(a),BT=a=>{let{display:o,opacity:t,visibility:e}=a.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},HT=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},UT=a=>getComputedStyle(a).display==="contents",GT=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||BT(a)||!UT(a)&&(HT(a)||zT(a)),KT=a=>a.disabled,WT=a=>a.getAttribute("tabindex")!=="-1",YT=a=>!!(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),jT=(a,o)=>o.some(t=>a.matches(t));var $s=(a,o={})=>{var f,y;if(!a)return[];let t=new Set((f=o==null?void 0:o.excludedElements)!=null?f:[]),e=(y=o==null?void 0:o.includeSelectors)!=null?y:[],i=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(GT(A)||KT(A))?"stop":jT(A,e)||WT(A)&&YT(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&i.add(A);let F=[];A instanceof HTMLElement&&A.shadowRoot?F=Array.from(A.shadowRoot.children):A.children.length&&(F=Array.from(A.children)),F.forEach(U=>{let Q=U,X=l(Q);X==="focusable"&&i.add(Q),X!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(nt=>{nt instanceof HTMLElement&&c(nt)}):c(Q))})};return c(a),[...i]},ja=(a=document)=>{var t;let o=a instanceof Document?a.activeElement:a;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},pf=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",eh=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?eh(o.host):a},mf=a=>{let o=[a],t=a;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var Si=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(o){this.currentKeydownListener=o,document.addEventListener("keydown",o)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(o){this.stackArray.forEach(t=>{t!==o&&t.setIsFocusTrapActivated(!1)}),this.stack.add(o),this.removeKeydownListener(),this.addKeydownListener(o.handleTabKeydown.bind(o))}static deactivate(o){if(this.stack.has(o)&&(this.stack.delete(o),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};Si.stack=new Set,Si.currentKeydownListener=null;var Nl=z.constructTagName("spatialnavigationprovider");var rh={SPATIAL_NAVIGATION_KEY_MAPPING:{left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown",escape:"Escape",enter:"Enter"},WEIGHTS:{alignWeight:5,orthogonalWeight:{vertical:2,horizontal:30}}};var qT=Nl,ih=qT;var uf=a=>{let{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:y}=a.getBoundingClientRect(),A=o+e/2,F=t+i/2;return{x:o,y:t,width:e,height:i,left:l,top:c,right:f,bottom:y,xMid:A,yMid:F}},XT=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),ZT=(a,o)=>o==="horizontal"?a.height/2:a.width/2,QT=(a,o,t)=>t==="horizontal"?Math.max(0,Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)):Math.max(0,Math.min(a.right,o.right)-Math.max(a.left,o.left)),JT=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,tx=(a,o,t,e)=>{let i=o.xMid-a.xMid,l=o.yMid-a.yMid,c=Math.sqrt(i*i+l*l),f=XT(a,o,t)+ZT(a,t)*e.orthogonalWeight[t],y=QT(a,o,t),A=JT(a,t,y)*e.alignWeight;return c+f-A-Math.sqrt(y)},ff=(a,o,t,e)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let i=uf(a),l=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let y=uf(f);if(t==="left"&&y.right>i.xMid||t==="right"&&y.left<i.xMid||t==="up"&&y.bottom>i.yMid||t==="down"&&y.top<i.yMid)return c;let A=tx(i,y,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Ko=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var qa=class extends Ie{constructor(){super({context:ih});this.navigationKeyMapping=rh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=rh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new Ko("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(i)),i.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Ko("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=ja();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return ih}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=$s(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=Si.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===i||y===this.root||hf(y)){c.push(...$s(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||y===i||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let l=new Ko("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var y,A;if(t.length===0)return;let i=this.getActiveElement(),l=ja();if((!i||!t.includes(i)||i!==l)&&(l&&t.includes(l)?i=l:[i]=t,this.setActiveElement(i)),i!==ja())return i;let c=`data-spatial-${e}`;if(l){let F=mf(l).find(Q=>Q.hasAttribute(c)),U=F==null?void 0:F.getAttribute(c);if(F&&U){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(U);if(Q)return Q}}return(A=ff(i,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new Ko("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=ja();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(i=>i.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],qa.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],qa.prototype,"distanceCalculationWeights",2);var oh=qa;oh.register(Nl);var vf=oh;var Y={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},ex={[wt.ARROW_UP]:Y.UP,[wt.ARROW_DOWN]:Y.DOWN,[wt.ARROW_LEFT]:Y.LEFT,[wt.ARROW_RIGHT]:Y.RIGHT,[wt.ENTER]:Y.ENTER,[wt.SPACE]:Y.SPACE,[wt.ESCAPE]:Y.ESCAPE,[wt.TAB]:Y.TAB,[wt.HOME]:Y.HOME,[wt.END]:Y.END,[wt.BACKSPACE]:Y.BACKSPACE},ee={DEFAULT:"default",SPATIAL:"spatial"},Nt=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=Ce.consume({host:this,context:vf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?ee.SPATIAL:ee.DEFAULT}getActionForKeyEvent(i,l=!1){var y,A,F;let f=((F=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?F:ex)[i.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===Y.LEFT)return Y.RIGHT;if(f===Y.RIGHT)return Y.LEFT}return f}isDirectionAction(i){return i===Y.UP||i===Y.DOWN||i===Y.LEFT||i===Y.RIGHT}}return o};var Lt=a=>{class o extends a{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var yt=B`
|
|
19
19
|
:host {
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: flex;
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
length-unit="rem"
|
|
451
451
|
></mdc-icon>`:""}
|
|
452
452
|
</slot>
|
|
453
|
-
`}};ri.styles=[...fe.styles,...bf],h([Kt('slot[part="button-text"]')],ri.prototype,"buttonTextPart",2),h([u({type:Number})],ri.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ri.prototype,"inverted",2),h([u({type:String,reflect:!0})],ri.prototype,"role",2),h([dt()],ri.prototype,"prefixFilledIconName",2),h([dt()],ri.prototype,"postfixFilledIconName",2);var Yo=ri;var Ll=z.constructTagName("iconprovider"),yf=["svg"],Ef=["em","rem","px","%"],ox={px:16,em:1,rem:1,"%":100},
|
|
453
|
+
`}};ri.styles=[...fe.styles,...bf],h([Kt('slot[part="button-text"]')],ri.prototype,"buttonTextPart",2),h([u({type:Number})],ri.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ri.prototype,"inverted",2),h([u({type:String,reflect:!0})],ri.prototype,"role",2),h([dt()],ri.prototype,"prefixFilledIconName",2),h([dt()],ri.prototype,"postfixFilledIconName",2);var Yo=ri;var Ll=z.constructTagName("iconprovider"),yf=["svg"],Ef=["em","rem","px","%"],ox={px:16,em:1,rem:1,"%":100},Ii={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ox.em,ICON_SET:"momentum-icons"};var Ol=class{};Ol.context=Ll;var Rl=Ol;var ii=class extends Ie{constructor(){super({context:Rl.context,initialValue:new Rl});this.iconSet=Ii.ICON_SET;this.fileExtension=Ii.FILE_EXTENSION;this.lengthUnit=Ii.LENGTH_UNIT;this.size=Ii.SIZE}static get Context(){return Rl.context}updateValuesInContext(){this.fileExtension&&yf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ii.FILE_EXTENSION,this.context.value.fileExtension=Ii.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&&Ef.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ii.LENGTH_UNIT,this.context.value.lengthUnit=Ii.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())}};h([u({type:String,attribute:"icon-set",reflect:!0})],ii.prototype,"iconSet",2),h([u({type:String})],ii.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ii.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ii.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ii.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ii.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ii.prototype,"cacheName",2);var Xa=ii;var sx=[yt,B`
|
|
454
454
|
:host {
|
|
455
455
|
--mdc-icon-fill-color: currentColor;
|
|
456
456
|
--mdc-icon-size: var(--computed-icon-size);
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
width: 100%;
|
|
466
466
|
fill: var(--mdc-icon-fill-color);
|
|
467
467
|
}
|
|
468
|
-
`,...Et()],Tf=sx;var Za={},xf=async a=>(Za[a]===void 0&&(Za[a]=new Map),{async set(o,t){Za[a].set(o.url,await t.text())},async get(o){return Za[a].get(o.url)},async delete(o){Za[a].delete(o.url)}}),Af=async a=>{let o=await caches.open(a);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},Dl=async(a,o)=>o==="in-memory-cache"?xf(a):Af(a);var Sf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),If=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?Sf(f).then(y=>y.text()):Dl(i,e).then(y=>y.get(f).then(A=>A||Sf(f.clone()).then(F=>{var U;return F.status<400&&F.headers.has("content-type")?(U=y.set)==null?void 0:U.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var Cf=z.constructTagName("icon"),sh={NAME:void 0,SIZE:1};var vr=class extends Z{constructor(){super();this.name=sh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ce.consume({host:this,context:Xa.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&i&&e&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return If({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(y=>{this.handleIconLoadedSuccess(y.default())}).catch(y=>{this.handleIconLoadedFailure(y)})}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 e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:sh.SIZE}updated(t){var e,i,l,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};vr.styles=[...Z.styles,...Tf],h([dt()],vr.prototype,"iconData",2),h([dt()],vr.prototype,"lengthUnitFromContext",2),h([dt()],vr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:Number})],vr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],vr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],vr.prototype,"ariaLabelledby",2),h([dt()],vr.prototype,"abortController",2);var ah=vr;ah.register(Cf);var ax=ah;Yo.register(
|
|
468
|
+
`,...Et()],Tf=sx;var Za={},xf=async a=>(Za[a]===void 0&&(Za[a]=new Map),{async set(o,t){Za[a].set(o.url,await t.text())},async get(o){return Za[a].get(o.url)},async delete(o){Za[a].delete(o.url)}}),Af=async a=>{let o=await caches.open(a);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},Dl=async(a,o)=>o==="in-memory-cache"?xf(a):Af(a);var Sf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),If=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?Sf(f).then(y=>y.text()):Dl(i,e).then(y=>y.get(f).then(A=>A||Sf(f.clone()).then(F=>{var U;return F.status<400&&F.headers.has("content-type")?(U=y.set)==null?void 0:U.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${o}, ${A}`)}))};var Cf=z.constructTagName("icon"),sh={NAME:void 0,SIZE:1};var vr=class extends Z{constructor(){super();this.name=sh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=Ce.consume({host:this,context:Xa.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&i&&e&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return If({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(y=>{this.handleIconLoadedSuccess(y.default())}).catch(y=>{this.handleIconLoadedFailure(y)})}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 e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:sh.SIZE}updated(t){var e,i,l,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};vr.styles=[...Z.styles,...Tf],h([dt()],vr.prototype,"iconData",2),h([dt()],vr.prototype,"lengthUnitFromContext",2),h([dt()],vr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],vr.prototype,"name",2),h([u({type:Number})],vr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],vr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],vr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],vr.prototype,"ariaLabelledby",2),h([dt()],vr.prototype,"abortController",2);var ah=vr;ah.register(Cf);var ax=ah;Yo.register(Ai);var nx=Yo;var _f=B`
|
|
469
469
|
:host::part(text) {
|
|
470
470
|
font-size: unset;
|
|
471
471
|
font-weight: unset;
|
|
@@ -882,7 +882,7 @@
|
|
|
882
882
|
:host::part(toggle-button) {
|
|
883
883
|
margin: 0.125rem;
|
|
884
884
|
}
|
|
885
|
-
`,Lf=[vx];var
|
|
885
|
+
`,Lf=[vx];var ao=class extends Vs{handleHeaderShownEvent(o){o.stopPropagation()}update(o){super.update(o),o.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderToggleButton(){return S`
|
|
886
886
|
<mdc-button
|
|
887
887
|
part="toggle-button"
|
|
888
888
|
?disabled="${this.disabled}"
|
|
@@ -908,7 +908,7 @@
|
|
|
908
908
|
${o?W:this.renderToggleButton()}
|
|
909
909
|
</div>
|
|
910
910
|
</div>
|
|
911
|
-
`}};
|
|
911
|
+
`}};ao.styles=[...Vs.styles,...Lf],h([jt({slot:"leading-controls"})],ao.prototype,"leadingControlsSlot",2),h([jt({slot:"trailing-controls"})],ao.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],ao.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],ao.prototype,"closeButtonAriaLabel",2);var ph=ao;var Fl=z.constructTagName("accordion");ph.register(Fl);var gx=ph;var bx=B`
|
|
912
912
|
:host {
|
|
913
913
|
--mdc-accordiongroup-items-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
914
914
|
|
|
@@ -952,7 +952,7 @@
|
|
|
952
952
|
:host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
|
|
953
953
|
border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
|
|
954
954
|
}
|
|
955
|
-
`,Of=[bx,...Et()];var
|
|
955
|
+
`,Of=[bx,...Et()];var Ci=class extends Z{constructor(){super();this.size=Ja.SIZE;this.variant=Ja.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=Ja.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=Ja.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return S` <slot></slot> `}};Ci.styles=[...Z.styles,...Of],h([u({type:String,reflect:!0})],Ci.prototype,"size",2),h([u({type:String,reflect:!0})],Ci.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Ci.prototype,"allowMultiple",2),h([jt({selector:Fl})],Ci.prototype,"accordionItems",2),h([jt({selector:Pl})],Ci.prototype,"accordionButtonItems",2);var mh=Ci;mh.register(Nf);var yx=mh;Vs.register(Pl);var Ex=Vs;var ce=a=>{class o extends a{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var Tx=B`
|
|
956
956
|
:host {
|
|
957
957
|
height: 1.5rem;
|
|
958
958
|
gap: 0.25rem;
|
|
@@ -1070,11 +1070,11 @@
|
|
|
1070
1070
|
${this.label?S`<mdc-text part="label" type="${zs.TEXT_TYPE}" tagname="${zs.TAG_NAME}"
|
|
1071
1071
|
>${this.label}</mdc-text
|
|
1072
1072
|
>`:W}
|
|
1073
|
-
`}};Bs.styles=[...Z.styles,...Rf],h([u({type:String,reflect:!0})],Bs.prototype,"variant",2),h([u({type:String})],Bs.prototype,"label",2);var uh=Bs;uh.register($l);var xx=uh;var{I:Ax}=Xu;var Vl=a=>a.strings===void 0,Pf=()=>document.createComment(""),Hs=(a,o,t)=>{var l;let e=a._$AA.parentNode,i=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=e.insertBefore(Pf(),i),f=e.insertBefore(Pf(),i);t=new Ax(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,y=f!==a;if(y){let A;(l=t._$AQ)==null||l.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==i||y){let A=t._$AA;for(;A!==c;){let F=A.nextSibling;e.insertBefore(A,i),A=F}}}return t},
|
|
1073
|
+
`}};Bs.styles=[...Z.styles,...Rf],h([u({type:String,reflect:!0})],Bs.prototype,"variant",2),h([u({type:String})],Bs.prototype,"label",2);var uh=Bs;uh.register($l);var xx=uh;var{I:Ax}=Xu;var Vl=a=>a.strings===void 0,Pf=()=>document.createComment(""),Hs=(a,o,t)=>{var l;let e=a._$AA.parentNode,i=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=e.insertBefore(Pf(),i),f=e.insertBefore(Pf(),i);t=new Ax(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,y=f!==a;if(y){let A;(l=t._$AQ)==null||l.call(t,a),t._$AM=a,t._$AP!==void 0&&(A=a._$AU)!==f._$AU&&t._$AP(A)}if(c!==i||y){let A=t._$AA;for(;A!==c;){let F=A.nextSibling;e.insertBefore(A,i),A=F}}}return t},no=(a,o,t=a)=>(a._$AI(o,t),a),Sx={},zl=(a,o=Sx)=>a._$AH=o,Ff=a=>a._$AH,Bl=a=>{var e;(e=a._$AP)==null||e.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var gr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_i=a=>(...o)=>({_$litDirective$:a,values:o}),si=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var rn=(a,o)=>{var e;let t=a._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),rn(i,o);return!0},Hl=a=>{let o,t;do{if((o=a._$AM)===void 0)break;t=o._$AN,t.delete(a),a=o}while((t==null?void 0:t.size)===0)},$f=a=>{for(let o;o=a._$AM;a=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(a))break;t.add(a),_x(o)}};function Ix(a){this._$AN!==void 0?(Hl(this),this._$AM=a,$f(this)):this._$AM=a}function Cx(a,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let l=t;l<e.length;l++)rn(e[l],!1),Hl(e[l]);else e!=null&&(rn(e,!1),Hl(e));else rn(this,a)}var _x=a=>{var o,t;a.type==gr.CHILD&&((o=a._$AP)!=null||(a._$AP=Cx),(t=a._$AQ)!=null||(a._$AQ=Ix))},Ul=class extends si{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),$f(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(rn(this,o),Hl(this))}setValue(o){if(Vl(this.t))this.t._$AI(o,this);else{let t=[...this.t._$AH];t[this.i]=o,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Vf=()=>new vh,vh=class{},fh=new WeakMap,zf=_i(class extends Ul{render(a){return W}update(a,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=a.options)==null?void 0:e.host,this.rt(this.ct=a.element)),W}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=fh.get(t);e===void 0&&(e=new WeakMap,fh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,a),a!==void 0&&this.Y.call(this.ht,a)}else this.Y.value=a}get lt(){var a,o,t;return typeof this.Y=="function"?(o=fh.get((a=this.ht)!=null?a:globalThis))==null?void 0:o.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Gf=TT(Bf());var gh={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 kx=[yt,B`
|
|
1074
1074
|
:host svg {
|
|
1075
1075
|
display: block;
|
|
1076
1076
|
}
|
|
1077
|
-
`],Hf=kx;var Uf=z.constructTagName("animation"),bh={AUTO_PLAY:!0,LOOP:"true"};var
|
|
1077
|
+
`],Hf=kx;var Uf=z.constructTagName("animation"),bh={AUTO_PLAY:!0,LOOP:"true"};var ki=class extends Z{constructor(){super(...arguments);this.loop=bh.LOOP;this.autoplay=bh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Vf();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=Gf.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 e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.name&&gh[this.name]?import(`@momentum-design/animations/dist/lottie${gh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):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?et.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${zf(this.containerRef)}></div>`}};ki.styles=[...Z.styles,...Hf],h([u({type:String,reflect:!0})],ki.prototype,"name",2),h([u({type:String,reflect:!0})],ki.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],ki.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],ki.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],ki.prototype,"ariaLabelledby",2);var yh=ki;yh.register(Uf);var wx=yh;var Kl=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(i){this.isFocusTrapActivated=i}activateFocusTrap(){this.setIsFocusTrapActivated(!0),Si.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),Si.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=$s(this.shadowRoot))}setInitialFocus(i=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus({preventScroll:!0}))}calculateNextIndex(i,l){let{length:c}=this.focusableElements;if(i===-1)return l>0?0:c-1;let f=i+l;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var l;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((l=i.shadowRoot)!=null&&l.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(l=>this.isEqualFocusNode(i,l))}isEqualFocusNode(i,l){return i.nodeType>=0?l.isEqualNode(i)&&l===i:!1}trapFocus(i){if(this.setFocusableElements(),this.focusableElements.length===0)return;let l=this.getDeepActiveElement(),c=this.findElement(l);i.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let y=this.focusableElements[this.focusTrapIndex];y.tagName!=="IFRAME"&&y&&(i.preventDefault(),y.focus())}handleTabKeydown(i){this.isFocusTrapActivated&&i.key==="Tab"&&this.trapFocus(i)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var Wl=a=>{class o extends a{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return o};var Yl=z.constructTagName("link"),jl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},ql={LARGE:1,MIDSIZE:.875,SMALL:.75},Kf={LINK_SIZE:jl.LARGE};var Wf=z.constructTagName("card"),Eh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Nx={HORIZONTAL:"horizontal",VERTICAL:"vertical"},_e={VARIANT:Eh.BORDER,ORIENTATION:Nx.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Yl,BUTTON:Ai};var Us=a=>{class o extends a{updateFooterButtonColors(e){let i=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];i==null||i.forEach(l=>{e===Eh.PROMOTIONAL?l.setAttribute("color",Go.PROMOTIONAL):l.setAttribute("color",Go.DEFAULT)})}handleFooterSlot(e,i){var c,f,y;let l=[];e===_e.LINK&&((c=this.footerLink)!=null&&c.length)?l=this.footerLink:e===_e.BUTTON&&i===Vt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?l=this.footerButtonPrimary:e===_e.BUTTON&&i===Vt.SECONDARY&&((y=this.footerButtonSecondary)!=null&&y.length)&&(l=this.footerButtonSecondary);for(let A=1;A<l.length;A+=1)l[A].remove();l.forEach(A=>{A.matches(e)||A.remove(),i&&A.setAttribute("variant",i)})}renderFooter(){return S` <slot name="footer">
|
|
1078
1078
|
<div part="footer">
|
|
1079
1079
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(_e.LINK)}></slot>
|
|
1080
1080
|
<slot
|
|
@@ -1086,7 +1086,7 @@
|
|
|
1086
1086
|
@slotchange=${()=>this.handleFooterSlot(_e.BUTTON,Vt.PRIMARY)}
|
|
1087
1087
|
></slot>
|
|
1088
1088
|
</div>
|
|
1089
|
-
</slot>`}}return h([jt({slot:"footer-link"})],o.prototype,"footerLink",2),h([jt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),h([jt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var We=[],Yf=1e3,Mx=3,Th=-2,xh=-1,
|
|
1089
|
+
</slot>`}}return h([jt({slot:"footer-link"})],o.prototype,"footerLink",2),h([jt({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),h([jt({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var We=[],Yf=1e3,Mx=3,Th=-2,xh=-1,lo=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return We.length}pushHost(){var o,t;return this.has(this.host)?!1:(We.push(this.host),(t=(o=this.host).onComponentStackChanged)==null||t.call(o,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(o){if(!this.has(o))return;let t=We.filter(l=>l.stackGroupName===o.stackGroupName),e=t.indexOf(o),i=[];for(let l=t.length-1;l>=e;l-=1){let c=t[l];(c===o||c.triggerID!==o.triggerID)&&i.push(c)}return this.remove(i),o}pop(){var t;let o=We.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let e=We.length-1;e>=0;e-=1){let i=We[e],l=o(i,e);if(l===!1)break;l!=="skip"&&t.push(i)}return this.remove(t)}peek(){return We.at(-1)}remove(o){var i,l;let t=o.filter(c=>We.includes(c)),e=t.reduce((c,f)=>Math.min(c,We.indexOf(f)),1/0);t.forEach(c=>{We.splice(We.indexOf(c),1)}),t.forEach(c=>{var f;(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=e;c<We.length;c+=1)(l=(i=We[c]).onComponentStackChanged)==null||l.call(i,"moved");return t}has(o){return We.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return We.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?Yf+t*Mx:Yf}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var Xl=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(i){var l;if(super.update(i),i.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Th}`;let c=(l=this.triggerElementCache)==null?void 0:l.deref();c&&(c.style.zIndex=`${this.zIndex+xh}`)}}createBackdrop(i){let l=document.createElement("div");l.classList.add(`${i}-backdrop`);let c=document.createElement("style"),f=this.isBackdropInvisible?"transparent":getComputedStyle(this).getPropertyValue("--mdc-backdrop-mixin-background-color")||"var(--mds-color-theme-common-overlays-secondary-normal)";c.textContent=`
|
|
1090
1090
|
.${i}-backdrop {
|
|
1091
1091
|
position: fixed;
|
|
1092
1092
|
top: 0;
|
|
@@ -1096,7 +1096,7 @@
|
|
|
1096
1096
|
background: ${f};
|
|
1097
1097
|
z-index: ${this.zIndex+Th};
|
|
1098
1098
|
}
|
|
1099
|
-
`,l.appendChild(c);let A=document.getElementById(this.backdropAppendTo)||this.parentElement;A==null||A.appendChild(l),this.backdropElement=l}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(i){i&&(this.triggerElementCache=new WeakRef(i),this.elementOriginalStyle={zIndex:i.style.zIndex,position:i.style.position},i.style.zIndex=`${this.zIndex+xh}`,["fixed","absolute"].includes(window.getComputedStyle(i).position)||(i.style.position="relative"))}moveElementBackAfterBackdropRemoval(i){!i||!this.elementOriginalStyle||(i.style.zIndex=this.elementOriginalStyle.zIndex,i.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var Zl=z.constructTagName("responsivesettingsprovider"),zr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},jf=["float","dialog"],qf=["unknown","mobile","desktop","tablet"];var Ql=class{constructor(o={}){this.media=zr.MEDIA;this.forceFullscreenDialog=zr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=zr.POPOVER_POSITIONING;Object.assign(this,o)}};Ql.context=Zl;var Jl=Ql;var Gs=class extends Ie{constructor(){super({context:Jl.context,initialValue:new Jl({media:zr.MEDIA,popoverPositioning:zr.POPOVER_POSITIONING,forceFullscreenDialog:zr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=zr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=zr.POPOVER_POSITIONING;this.privateMedia=zr.MEDIA}static get Context(){return Jl.context}set popoverPositioning(t){jf.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){qf.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,e,i;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((e=this.context.value)==null?void 0:e.popoverPositioning)!==this.privatePopoverPositioning||((i=this.context.value)==null?void 0:i.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};h([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Gs.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Gs.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Gs.prototype,"media",1);var Ah=Gs;Ah.register(Zl);var Sh=Ah;var Xf=z.constructTagName("dialog"),Ih={DEFAULT:"default",PROMOTIONAL:"promotional"},Cr={VISIBLE:!1,Z_INDEX:1e3,ROLE:et.DIALOG,SIZE:"small",HEADER_TAG_NAME:mt.H2,DESCRIPTION_TAG_NAME:mt.P,CANCEL_ICON:"cancel-bold",VARIANT:Ih.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var p1=[et.DIALOG,et.ALERTDIALOG];var
|
|
1099
|
+
`,l.appendChild(c);let A=document.getElementById(this.backdropAppendTo)||this.parentElement;A==null||A.appendChild(l),this.backdropElement=l}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(i){i&&(this.triggerElementCache=new WeakRef(i),this.elementOriginalStyle={zIndex:i.style.zIndex,position:i.style.position},i.style.zIndex=`${this.zIndex+xh}`,["fixed","absolute"].includes(window.getComputedStyle(i).position)||(i.style.position="relative"))}moveElementBackAfterBackdropRemoval(i){!i||!this.elementOriginalStyle||(i.style.zIndex=this.elementOriginalStyle.zIndex,i.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var Zl=z.constructTagName("responsivesettingsprovider"),zr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},jf=["float","dialog"],qf=["unknown","mobile","desktop","tablet"];var Ql=class{constructor(o={}){this.media=zr.MEDIA;this.forceFullscreenDialog=zr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=zr.POPOVER_POSITIONING;Object.assign(this,o)}};Ql.context=Zl;var Jl=Ql;var Gs=class extends Ie{constructor(){super({context:Jl.context,initialValue:new Jl({media:zr.MEDIA,popoverPositioning:zr.POPOVER_POSITIONING,forceFullscreenDialog:zr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=zr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=zr.POPOVER_POSITIONING;this.privateMedia=zr.MEDIA}static get Context(){return Jl.context}set popoverPositioning(t){jf.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){qf.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,e,i;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((e=this.context.value)==null?void 0:e.popoverPositioning)!==this.privatePopoverPositioning||((i=this.context.value)==null?void 0:i.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};h([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Gs.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Gs.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Gs.prototype,"media",1);var Ah=Gs;Ah.register(Zl);var Sh=Ah;var Xf=z.constructTagName("dialog"),Ih={DEFAULT:"default",PROMOTIONAL:"promotional"},Cr={VISIBLE:!1,Z_INDEX:1e3,ROLE:et.DIALOG,SIZE:"small",HEADER_TAG_NAME:mt.H2,DESCRIPTION_TAG_NAME:mt.P,CANCEL_ICON:"cancel-bold",VARIANT:Ih.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var p1=[et.DIALOG,et.ALERTDIALOG];var co=class{static dispatchDialogEvent(o,t,e=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:e}))}static onShowDialog(o){this.dispatchDialogEvent("shown",o)}static onHideDialog(o){this.dispatchDialogEvent("hidden",o)}static onCloseDialog(o,t=!0){this.dispatchDialogEvent("close",o,t)}static onCreatedDialog(o){this.dispatchDialogEvent("created",o)}static onDestroyedDialog(o){this.dispatchDialogEvent("destroyed",o)}};var Lx=B`
|
|
1100
1100
|
:host {
|
|
1101
1101
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
1102
1102
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
mdc-text::part(text) {
|
|
1250
1250
|
margin: 0;
|
|
1251
1251
|
}
|
|
1252
|
-
`,Zf=[Lx];var re=class extends Lt(Nt(Xl(Wl(Kl(Us(Z)))))){constructor(){super(...arguments);this.responsiveSettingsContext=Ce.consume({host:this,context:Sh.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new
|
|
1252
|
+
`,Zf=[Lx];var re=class extends Lt(Nt(Xl(Wl(Kl(Us(Z)))))){constructor(){super(...arguments);this.responsiveSettingsContext=Ce.consume({host:this,context:Sh.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new lo(this);this.id="";this.visible=Cr.VISIBLE;this.internalSize=Cr.SIZE;this.variant=Cr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=Cr.HEADER_TAG_NAME;this.descriptionTagName=Cr.DESCRIPTION_TAG_NAME;this.role=Cr.ROLE;this.disableAriaHasPopup=Cr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=Cr.FOCUS_TRAP;this.hideBackdrop=Cr.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Y.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,e;return(e=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&e.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(e=this.deactivateFocusTrap)==null||e.call(this),this.focusBackToTrigger(),co.onDestroyedDialog(this)}applyZIndex(){this.style.setProperty("z-index",`${this.zIndex}`)}async firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-modal","true"),this.setupAriaLabelledDescribedBy(),this.applyZIndex(),co.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 e=t.get("visible");await this.isOpenUpdated(e,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=Cr.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,e;this.disableAriaHasPopup||(e=this.triggerElement)==null||e.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(){this.depthManager.popHost(),co.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var i,l,c,f,y;t!==e&&(e&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((i=this.activateFocusTrap)==null||i.call(this)),(l=this.setInitialFocus)==null||l.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),co.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(y=this.deactivateFocusTrap)==null||y.call(this),this.focusBackToTrigger(),co.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?S` <div part="header-section">
|
|
1253
1253
|
<div part="header">
|
|
1254
1254
|
<slot name="header-prefix"></slot>
|
|
1255
1255
|
<mdc-text
|
|
@@ -1349,7 +1349,7 @@
|
|
|
1349
1349
|
</slot>
|
|
1350
1350
|
</div>
|
|
1351
1351
|
</div>
|
|
1352
|
-
`}};Ws.styles=[...Ks.styles,...Qf],h([u({type:String,reflect:!0})],Ws.prototype,"illustration",2),h([u({type:String,reflect:!0})],Ws.prototype,"size",1);var Ch=Ws;var td=z.constructTagName("illustrationprovider"),ev=["svg"],sn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var ed=class{};ed.context=td;var rd=ed;var
|
|
1352
|
+
`}};Ws.styles=[...Ks.styles,...Qf],h([u({type:String,reflect:!0})],Ws.prototype,"illustration",2),h([u({type:String,reflect:!0})],Ws.prototype,"size",1);var Ch=Ws;var td=z.constructTagName("illustrationprovider"),ev=["svg"],sn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var ed=class{};ed.context=td;var rd=ed;var ho=class extends Ie{constructor(){super({context:rd.context,initialValue:new rd});this.illustrationSet=sn.ILLUSTRATION_SET;this.fileExtension=sn.FILE_EXTENSION}static get Context(){return rd.context}updateValuesInContext(){this.fileExtension&&ev.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=sn.FILE_EXTENSION,this.context.value.fileExtension=sn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"illustration-set",reflect:!0})],ho.prototype,"illustrationSet",2),h([u({type:String})],ho.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ho.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],ho.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ho.prototype,"cacheName",2);var an=ho;var Rx=[yt,B`
|
|
1353
1353
|
:host {
|
|
1354
1354
|
--mdc-illustration-size: auto;
|
|
1355
1355
|
}
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
height: var(--mdc-illustration-size);
|
|
1358
1358
|
width: var(--mdc-illustration-size);
|
|
1359
1359
|
}
|
|
1360
|
-
`],rv=Rx;var iv=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),ov=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?iv(f).then(y=>y.text()):Dl(i,e).then(y=>y.get(f).then(A=>A||iv(f.clone()).then(F=>{var U;return F.status<400&&F.headers.has("content-type")?(U=y.set)==null?void 0:U.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var sv=z.constructTagName("illustration"),av={NAME:void 0};var
|
|
1360
|
+
`],rv=Rx;var iv=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),ov=async({url:a,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:l})=>{let c=l(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?iv(f).then(y=>y.text()):Dl(i,e).then(y=>y.get(f).then(A=>A||iv(f.clone()).then(F=>{var U;return F.status<400&&F.headers.has("content-type")?(U=y.set)==null?void 0:U.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${o}, ${A}`)}))};var sv=z.constructTagName("illustration"),av={NAME:void 0};var wi=class extends Z{constructor(){super();this.name=av.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=Ce.consume({host:this,context:an.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:i,cacheName:l,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&i&&e&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return ov({url:i,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(F)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(y=>{this.handleIllustrationLoadedSuccess(y.default())}).catch(y=>{this.handleIllustrationLoadedFailure(y)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?et.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.illustrationData} `}};wi.styles=[...Z.styles,...rv],h([dt()],wi.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],wi.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],wi.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],wi.prototype,"ariaLabelledby",2),h([dt()],wi.prototype,"abortController",2);var _h=wi;_h.register(sv);var Dx=_h;Ch.register(Jf);var Px=Ch;var Fx=B`
|
|
1361
1361
|
:host {
|
|
1362
1362
|
--mdc-appheader-height: 4rem;
|
|
1363
1363
|
}
|
|
@@ -1729,7 +1729,7 @@
|
|
|
1729
1729
|
size="${J(this.size)}"
|
|
1730
1730
|
src="${J(this.src)}"
|
|
1731
1731
|
></mdc-avatar>
|
|
1732
|
-
`}};ln.styles=[...bv],h([u({type:String,attribute:"aria-label"})],ln.prototype,"ariaLabel",2);var Lh=ln;var yv=z.constructTagName("avatarbutton");Lh.register(yv);var Kx=Lh;var Ev=z.constructTagName("badge"),_r={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},sd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Oh={PRIMARY:"primary",SECONDARY:"secondary"},
|
|
1732
|
+
`}};ln.styles=[...bv],h([u({type:String,attribute:"aria-label"})],ln.prototype,"ariaLabel",2);var Lh=ln;var yv=z.constructTagName("avatarbutton");Lh.register(yv);var Kx=Lh;var Ev=z.constructTagName("badge"),_r={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},sd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Oh={PRIMARY:"primary",SECONDARY:"secondary"},Ni={TYPE:_r.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Oh.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var Wx=[yt,B`
|
|
1733
1733
|
:host {
|
|
1734
1734
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
|
1735
1735
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
|
@@ -1808,11 +1808,11 @@
|
|
|
1808
1808
|
outline: none;
|
|
1809
1809
|
}
|
|
1810
1810
|
}
|
|
1811
|
-
`],Tv=Wx;var ai=class extends ce(Z){constructor(){super(...arguments);this.variant=
|
|
1811
|
+
`],Tv=Wx;var ai=class extends ce(Z){constructor(){super(...arguments);this.variant=Ni.VARIANT;this.maxCounter=Ni.MAX_COUNTER;this.overlay=Ni.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>Ni.MAX_COUNTER_LIMIT||e>Ni.MAX_COUNTER_LIMIT?`${Ni.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return S`
|
|
1812
1812
|
<mdc-icon
|
|
1813
1813
|
part="badge-icon ${this.overlay?"badge-overlay":""}"
|
|
1814
1814
|
name="${J(t)}"
|
|
1815
|
-
size="${
|
|
1815
|
+
size="${Ni.ICON_SIZE}"
|
|
1816
1816
|
></mdc-icon>
|
|
1817
1817
|
`}getBadgeDot(){return S`<div part="badge-dot ${this.overlay?"badge-overlay":""}"></div>`}getBadgeCounterText(){return S`
|
|
1818
1818
|
<mdc-text
|
|
@@ -1822,7 +1822,7 @@
|
|
|
1822
1822
|
>
|
|
1823
1823
|
${this.getCounterText(this.maxCounter,this.counter)}
|
|
1824
1824
|
</mdc-text>
|
|
1825
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Oh).includes(this.variant)&&(this.variant=
|
|
1825
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=et.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Oh).includes(this.variant)&&(this.variant=Ni.VARIANT);let{iconName:t,type:e}=this;switch(e){case _r.ICON:return this.getBadgeIcon(t||"");case _r.COUNTER:return this.getBadgeCounterText();case _r.SUCCESS:return this.getBadgeIcon(sd.SUCCESS_ICON_NAME);case _r.WARNING:return this.getBadgeIcon(sd.WARNING_ICON_NAME);case _r.ERROR:return this.getBadgeIcon(sd.ERROR_ICON_NAME);case _r.DOT:default:return this.type=_r.DOT,this.getBadgeDot()}}};ai.styles=[...Z.styles,...Tv],h([u({type:String,reflect:!0})],ai.prototype,"type",2),h([u({type:String,reflect:!0})],ai.prototype,"variant",2),h([u({type:Number})],ai.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],ai.prototype,"maxCounter",2),h([u({type:Boolean})],ai.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],ai.prototype,"ariaLabel",2);var Rh=ai;Rh.register(Ev);var Yx=Rh;var jx=B`
|
|
1826
1826
|
:host {
|
|
1827
1827
|
display: block;
|
|
1828
1828
|
height: 100%;
|
|
@@ -1956,7 +1956,7 @@
|
|
|
1956
1956
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
|
1957
1957
|
width: 2.5rem;
|
|
1958
1958
|
}
|
|
1959
|
-
`,kv=[yt,eA];var
|
|
1959
|
+
`,kv=[yt,eA];var Mi=class extends Z{constructor(){super(...arguments);this.orientation=ad.ORIENTATION;this.variant=ad.VARIANT;this.size=ad.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 S`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Mi.styles=[...Z.styles,...kv],h([u({type:String,reflect:!0})],Mi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Mi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Mi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Mi.prototype,"compact",2),h([jt({selector:"mdc-button"})],Mi.prototype,"buttons",2);var Fh=Mi;Fh.register(_v);var rA=Fh;var ie=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var wv=z.constructTagName("linksimple"),qs={INLINE:!1,INVERTED:!1};var iA=[yt,B`
|
|
1960
1960
|
:host {
|
|
1961
1961
|
--mdc-link-border-radius: 0.25rem;
|
|
1962
1962
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
|
@@ -2432,7 +2432,7 @@
|
|
|
2432
2432
|
--mdc-staticcheckbox-icon-color: GrayText;
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
|
-
`],$v=hA;var Vv=z.constructTagName("popover"),Mt={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"},ke={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Qo={TONAL:"tonal",CONTRAST:"contrast"},Hh={ABSOLUTE:"absolute",FIXED:"fixed"},pA={VIEWPORT:"viewport",DOCUMENT:"document"},bt={PLACEMENT:Mt.BOTTOM,TRIGGER:ke.CLICK,COLOR:Qo.TONAL,STRATEGY:Hh.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:pA.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,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},
|
|
2435
|
+
`],$v=hA;var Vv=z.constructTagName("popover"),Mt={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"},ke={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Qo={TONAL:"tonal",CONTRAST:"contrast"},Hh={ABSOLUTE:"absolute",FIXED:"fixed"},pA={VIEWPORT:"viewport",DOCUMENT:"document"},bt={PLACEMENT:Mt.BOTTOM,TRIGGER:ke.CLICK,COLOR:Qo.TONAL,STRATEGY:Hh.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:pA.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,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1,INLINE:!1},Li={OPEN:"open",HOVER:"hover",CLOSE:"close"};var zv=z.constructTagName("formfieldwrapper"),qt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Xt={VALIDATION:qt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:Hh.ABSOLUTE},hn={TAGNAME:mt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Bv=z.constructTagName("checkbox"),hd={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Hv={ERROR:qt.ERROR,DEFAULT:qt.DEFAULT};var Uv=z.constructTagName("staticcheckbox");var po=class extends te(Z){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
|
|
2436
2436
|
<mdc-icon
|
|
2437
2437
|
part="checkbox-icon"
|
|
2438
2438
|
name="${this.indeterminate?hd.INDETERMINATE:hd.CHECKED}"
|
|
@@ -2440,7 +2440,7 @@
|
|
|
2440
2440
|
length-unit="rem"
|
|
2441
2441
|
></mdc-icon>
|
|
2442
2442
|
`:W;return S`<slot></slot>
|
|
2443
|
-
<div part="icon-container">${t}</div>`}};
|
|
2443
|
+
<div part="icon-container">${t}</div>`}};po.styles=[...Z.styles,...$v],h([u({type:Boolean,reflect:!0})],po.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],po.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],po.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],po.prototype,"softDisabled",2);var Uh=po;Uh.register(Uv);var mA=Uh;Bh.register(Pv);var uA=Bh;var fA=B`
|
|
2444
2444
|
:host {
|
|
2445
2445
|
cursor: pointer;
|
|
2446
2446
|
user-select: none;
|
|
@@ -2602,7 +2602,7 @@
|
|
|
2602
2602
|
}
|
|
2603
2603
|
}
|
|
2604
2604
|
`],Kv=vA;var Jo=class extends te(Z){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
|
|
2605
|
-
<span part="radio-icon" class="radio-icon"></span>`}};Jo.styles=[...Z.styles,...Kv],h([u({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Jo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Jo.prototype,"softDisabled",2);var Kh=Jo;var Wv=z.constructTagName("staticradio");Kh.register(Wv);var gA=Kh;Gh.register(pd);var bA=Gh;var br=Math.min,we=Math.max,mn=Math.round,un=Math.floor,Hr=a=>({x:a,y:a}),yA={left:"right",right:"left",bottom:"top",top:"bottom"},EA={start:"end",end:"start"};function ud(a,o,t){return we(a,br(o,t))}function po(a,o){return typeof a=="function"?a(o):a}function Ur(a){return a.split("-")[0]}function ts(a){return a.split("-")[1]}function Wh(a){return a==="x"?"y":"x"}function fd(a){return a==="y"?"height":"width"}var TA=new Set(["top","bottom"]);function Gr(a){return TA.has(Ur(a))?"y":"x"}function vd(a){return Wh(Gr(a))}function qv(a,o,t){t===void 0&&(t=!1);let e=ts(a),i=vd(a),l=fd(i),c=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=pn(c)),[c,pn(c)]}function Xv(a){let o=pn(a);return[md(a),o,md(o)]}function md(a){return a.replace(/start|end/g,o=>EA[o])}var Yv=["left","right"],jv=["right","left"],xA=["top","bottom"],AA=["bottom","top"];function SA(a,o,t){switch(a){case"top":case"bottom":return t?o?jv:Yv:o?Yv:jv;case"left":case"right":return o?xA:AA;default:return[]}}function Zv(a,o,t,e){let i=ts(a),l=SA(Ur(a),t==="start",e);return i&&(l=l.map(c=>c+"-"+i),o&&(l=l.concat(l.map(md)))),l}function pn(a){return a.replace(/left|right|bottom|top/g,o=>yA[o])}function IA(a){return{top:0,right:0,bottom:0,left:0,...a}}function gd(a){return typeof a!="number"?IA(a):{top:a,right:a,bottom:a,left:a}}function Li(a){let{x:o,y:t,width:e,height:i}=a;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function Qv(a,o,t){let{reference:e,floating:i}=a,l=Gr(o),c=vd(o),f=fd(c),y=Ur(o),A=l==="y",F=e.x+e.width/2-i.width/2,U=e.y+e.height/2-i.height/2,Q=e[f]/2-i[f]/2,X;switch(y){case"top":X={x:F,y:e.y-i.height};break;case"bottom":X={x:F,y:e.y+e.height};break;case"right":X={x:e.x+e.width,y:U};break;case"left":X={x:e.x-i.width,y:U};break;default:X={x:e.x,y:e.y}}switch(ts(o)){case"start":X[c]-=Q*(t&&A?-1:1);break;case"end":X[c]+=Q*(t&&A?-1:1);break}return X}var Jv=async(a,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(o)),A=await c.getElementRects({reference:a,floating:o,strategy:i}),{x:F,y:U}=Qv(A,e,y),Q=e,X={},tt=0;for(let nt=0;nt<f.length;nt++){let{name:at,fn:ft}=f[nt],{x:It,y:Ct,data:Ht,reset:$t}=await ft({x:F,y:U,initialPlacement:e,placement:Q,strategy:i,middlewareData:X,rects:A,platform:c,elements:{reference:a,floating:o}});F=It!=null?It:F,U=Ct!=null?Ct:U,X={...X,[at]:{...X[at],...Ht}},$t&&tt<=50&&(tt++,typeof $t=="object"&&($t.placement&&(Q=$t.placement),$t.rects&&(A=$t.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:i}):$t.rects),{x:F,y:U}=Qv(A,Q,y)),nt=-1)}return{x:F,y:U,placement:Q,strategy:i,middlewareData:X}};async function bd(a,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:l,rects:c,elements:f,strategy:y}=a,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:U="floating",altBoundary:Q=!1,padding:X=0}=po(o,a),tt=gd(X),at=f[Q?U==="floating"?"reference":"floating":U],ft=Li(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(at)))==null||t?at:at.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:y})),It=U==="floating"?{x:e,y:i,width:c.floating.width,height:c.floating.height}:c.reference,Ct=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Ht=await(l.isElement==null?void 0:l.isElement(Ct))?await(l.getScale==null?void 0:l.getScale(Ct))||{x:1,y:1}:{x:1,y:1},$t=Li(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:Ct,strategy:y}):It);return{top:(ft.top-$t.top+tt.top)/Ht.y,bottom:($t.bottom-ft.bottom+tt.bottom)/Ht.y,left:(ft.left-$t.left+tt.left)/Ht.x,right:($t.right-ft.right+tt.right)/Ht.x}}var tg=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:e,placement:i,rects:l,platform:c,elements:f,middlewareData:y}=o,{element:A,padding:F=0}=po(a,o)||{};if(A==null)return{};let U=gd(F),Q={x:t,y:e},X=vd(i),tt=fd(X),nt=await c.getDimensions(A),at=X==="y",ft=at?"top":"left",It=at?"bottom":"right",Ct=at?"clientHeight":"clientWidth",Ht=l.reference[tt]+l.reference[X]-Q[X]-l.floating[tt],$t=Q[X]-l.reference[X],Ut=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Ot=Ut?Ut[Ct]:0;(!Ot||!await(c.isElement==null?void 0:c.isElement(Ut)))&&(Ot=f.floating[Ct]||l.floating[tt]);let ae=Ht/2-$t/2,Ue=Ot/2-nt[tt]/2-1,Yt=br(U[ft],Ue),Te=br(U[It],Ue),xe=Yt,Ae=Ot-nt[tt]-Te,kt=Ot/2-nt[tt]/2+ae,oe=ud(xe,kt,Ae),Ge=!y.arrow&&ts(i)!=null&&kt!==oe&&l.reference[tt]/2-(kt<xe?Yt:Te)-nt[tt]/2<0,Qe=Ge?kt<xe?kt-xe:kt-Ae:0;return{[X]:Q[X]+Qe,data:{[X]:oe,centerOffset:kt-oe-Qe,...Ge&&{alignmentOffset:Qe}},reset:Ge}}});var eg=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,e;let{placement:i,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:A}=o,{mainAxis:F=!0,crossAxis:U=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:nt=!0,...at}=po(a,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ft=Ur(i),It=Gr(f),Ct=Ur(f)===f,Ht=await(y.isRTL==null?void 0:y.isRTL(A.floating)),$t=Q||(Ct||!nt?[pn(f)]:Xv(f)),Ut=tt!=="none";!Q&&Ut&&$t.push(...Zv(f,nt,tt,Ht));let Ot=[f,...$t],ae=await bd(o,at),Ue=[],Yt=((e=l.flip)==null?void 0:e.overflows)||[];if(F&&Ue.push(ae[ft]),U){let kt=qv(i,c,Ht);Ue.push(ae[kt[0]],ae[kt[1]])}if(Yt=[...Yt,{placement:i,overflows:Ue}],!Ue.every(kt=>kt<=0)){var Te,xe;let kt=(((Te=l.flip)==null?void 0:Te.index)||0)+1,oe=Ot[kt];if(oe&&(!(U==="alignment"?It!==Gr(oe):!1)||Yt.every(Je=>Je.overflows[0]>0&&Gr(Je.placement)===It)))return{data:{index:kt,overflows:Yt},reset:{placement:oe}};let Ge=(xe=Yt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:xe.placement;if(!Ge)switch(X){case"bestFit":{var Ae;let Qe=(Ae=Yt.filter(Je=>{if(Ut){let xr=Gr(Je.placement);return xr===It||xr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(xr=>xr>0).reduce((xr,Xn)=>xr+Xn,0)]).sort((Je,xr)=>Je[1]-xr[1])[0])==null?void 0:Ae[0];Qe&&(Ge=Qe);break}case"initialPlacement":Ge=f;break}if(i!==Ge)return{reset:{placement:Ge}}}return{}}}};function rg(a){let o=br(...a.map(l=>l.left)),t=br(...a.map(l=>l.top)),e=we(...a.map(l=>l.right)),i=we(...a.map(l=>l.bottom));return{x:o,y:t,width:e-o,height:i-t}}function CA(a){let o=a.slice().sort((i,l)=>i.y-l.y),t=[],e=null;for(let i=0;i<o.length;i++){let l=o[i];!e||l.y-e.y>e.height/2?t.push([l]):t[t.length-1].push(l),e=l}return t.map(i=>Li(rg(i)))}var ig=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(o){let{placement:t,elements:e,rects:i,platform:l,strategy:c}=o,{padding:f=2,x:y,y:A}=po(a,o),F=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(e.reference))||[]),U=CA(F),Q=Li(rg(F)),X=gd(f);function tt(){if(U.length===2&&U[0].left>U[1].right&&y!=null&&A!=null)return U.find(at=>y>at.left-X.left&&y<at.right+X.right&&A>at.top-X.top&&A<at.bottom+X.bottom)||Q;if(U.length>=2){if(Gr(t)==="y"){let Yt=U[0],Te=U[U.length-1],xe=Ur(t)==="top",Ae=Yt.top,kt=Te.bottom,oe=xe?Yt.left:Te.left,Ge=xe?Yt.right:Te.right,Qe=Ge-oe,Je=kt-Ae;return{top:Ae,bottom:kt,left:oe,right:Ge,width:Qe,height:Je,x:oe,y:Ae}}let at=Ur(t)==="left",ft=we(...U.map(Yt=>Yt.right)),It=br(...U.map(Yt=>Yt.left)),Ct=U.filter(Yt=>at?Yt.left===It:Yt.right===ft),Ht=Ct[0].top,$t=Ct[Ct.length-1].bottom,Ut=It,Ot=ft,ae=Ot-Ut,Ue=$t-Ht;return{top:Ht,bottom:$t,left:Ut,right:Ot,width:ae,height:Ue,x:Ut,y:Ht}}return Q}let nt=await l.getElementRects({reference:{getBoundingClientRect:tt},floating:e.floating,strategy:c});return i.reference.x!==nt.reference.x||i.reference.y!==nt.reference.y||i.reference.width!==nt.reference.width||i.reference.height!==nt.reference.height?{reset:{rects:nt}}:{}}}},_A=new Set(["left","top"]);async function kA(a,o){let{placement:t,platform:e,elements:i}=a,l=await(e.isRTL==null?void 0:e.isRTL(i.floating)),c=Ur(t),f=ts(t),y=Gr(t)==="y",A=_A.has(c)?-1:1,F=l&&y?-1:1,U=po(o,a),{mainAxis:Q,crossAxis:X,alignmentAxis:tt}=typeof U=="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};return f&&typeof tt=="number"&&(X=f==="end"?tt*-1:tt),y?{x:X*F,y:Q*A}:{x:Q*A,y:X*F}}var og=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,e;let{x:i,y:l,placement:c,middlewareData:f}=o,y=await kA(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+y.x,y:l+y.y,data:{...y,placement:c}}}}},sg=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:at=>{let{x:ft,y:It}=at;return{x:ft,y:It}}},...y}=po(a,o),A={x:t,y:e},F=await bd(o,y),U=Gr(Ur(i)),Q=Wh(U),X=A[Q],tt=A[U];if(l){let at=Q==="y"?"top":"left",ft=Q==="y"?"bottom":"right",It=X+F[at],Ct=X-F[ft];X=ud(It,X,Ct)}if(c){let at=U==="y"?"top":"left",ft=U==="y"?"bottom":"right",It=tt+F[at],Ct=tt-F[ft];tt=ud(It,tt,Ct)}let nt=f.fn({...o,[Q]:X,[U]:tt});return{...nt,data:{x:nt.x-t,y:nt.y-e,enabled:{[Q]:l,[U]:c}}}}}};var ag=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,e;let{placement:i,rects:l,platform:c,elements:f}=o,{apply:y=()=>{},...A}=po(a,o),F=await bd(o,A),U=Ur(i),Q=ts(i),X=Gr(i)==="y",{width:tt,height:nt}=l.floating,at,ft;U==="top"||U==="bottom"?(at=U,ft=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ft=U,at=Q==="end"?"top":"bottom");let It=nt-F.top-F.bottom,Ct=tt-F.left-F.right,Ht=br(nt-F[at],It),$t=br(tt-F[ft],Ct),Ut=!o.middlewareData.shift,Ot=Ht,ae=$t;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ae=Ct),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Ot=It),Ut&&!Q){let Yt=we(F.left,0),Te=we(F.right,0),xe=we(F.top,0),Ae=we(F.bottom,0);X?ae=tt-2*(Yt!==0||Te!==0?Yt+Te:we(F.left,F.right)):Ot=nt-2*(xe!==0||Ae!==0?xe+Ae:we(F.top,F.bottom))}await y({...o,availableWidth:ae,availableHeight:Ot});let Ue=await c.getDimensions(f.floating);return tt!==Ue.width||nt!==Ue.height?{reset:{rects:!0}}:{}}}};function yd(){return typeof window<"u"}function es(a){return lg(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Kr(a){var o;return(o=(lg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function lg(a){return yd()?a instanceof Node||a instanceof ar(a).Node:!1}function kr(a){return yd()?a instanceof Element||a instanceof ar(a).Element:!1}function Wr(a){return yd()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function ng(a){return!yd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var wA=new Set(["inline","contents"]);function ta(a){let{overflow:o,overflowX:t,overflowY:e,display:i}=wr(a);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!wA.has(i)}var NA=new Set(["table","td","th"]);function dg(a){return NA.has(es(a))}var MA=[":popover-open",":modal"];function fn(a){return MA.some(o=>{try{return a.matches(o)}catch{return!1}})}var LA=["transform","translate","scale","rotate","perspective"],OA=["transform","translate","scale","rotate","perspective","filter"],RA=["paint","layout","strict","content"];function Ed(a){let o=Td(),t=kr(a)?wr(a):a;return LA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||OA.some(e=>(t.willChange||"").includes(e))||RA.some(e=>(t.contain||"").includes(e))}function cg(a){let o=Oi(a);for(;Wr(o)&&!rs(o);){if(Ed(o))return o;if(fn(o))return null;o=Oi(o)}return null}function Td(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var DA=new Set(["html","body","#document"]);function rs(a){return DA.has(es(a))}function wr(a){return ar(a).getComputedStyle(a)}function vn(a){return kr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Oi(a){if(es(a)==="html")return a;let o=a.assignedSlot||a.parentNode||ng(a)&&a.host||Kr(a);return ng(o)?o.host:o}function hg(a){let o=Oi(a);return rs(o)?a.ownerDocument?a.ownerDocument.body:a.body:Wr(o)&&ta(o)?o:hg(o)}function Js(a,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=hg(a),l=i===((e=a.ownerDocument)==null?void 0:e.body),c=ar(i);if(l){let f=xd(c);return o.concat(c,c.visualViewport||[],ta(i)?i:[],f&&t?Js(f):[])}return o.concat(i,Js(i,[],t))}function xd(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function ug(a){let o=wr(a),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Wr(a),l=i?a.offsetWidth:t,c=i?a.offsetHeight:e,f=mn(t)!==l||mn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function jh(a){return kr(a)?a:a.contextElement}function ea(a){let o=jh(a);if(!Wr(o))return Hr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:l}=ug(o),c=(l?mn(t.width):t.width)/e,f=(l?mn(t.height):t.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var PA=Hr(0);function fg(a){let o=ar(a);return!Td()||!o.visualViewport?PA:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function FA(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(a)?!1:o}function is(a,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=a.getBoundingClientRect(),l=jh(a),c=Hr(1);o&&(e?kr(e)&&(c=ea(e)):c=ea(a));let f=FA(l,t,e)?fg(l):Hr(0),y=(i.left+f.x)/c.x,A=(i.top+f.y)/c.y,F=i.width/c.x,U=i.height/c.y;if(l){let Q=ar(l),X=e&&kr(e)?ar(e):e,tt=Q,nt=xd(tt);for(;nt&&e&&X!==tt;){let at=ea(nt),ft=nt.getBoundingClientRect(),It=wr(nt),Ct=ft.left+(nt.clientLeft+parseFloat(It.paddingLeft))*at.x,Ht=ft.top+(nt.clientTop+parseFloat(It.paddingTop))*at.y;y*=at.x,A*=at.y,F*=at.x,U*=at.y,y+=Ct,A+=Ht,tt=ar(nt),nt=xd(tt)}}return Li({width:F,height:U,x:y,y:A})}function qh(a,o){let t=vn(a).scrollLeft;return o?o.left+t:is(Kr(a)).left+t}function vg(a,o,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:qh(a,e)),l=e.top+o.scrollTop;return{x:i,y:l}}function $A(a){let{elements:o,rect:t,offsetParent:e,strategy:i}=a,l=i==="fixed",c=Kr(e),f=o?fn(o.floating):!1;if(e===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},A=Hr(1),F=Hr(0),U=Wr(e);if((U||!U&&!l)&&((es(e)!=="body"||ta(c))&&(y=vn(e)),Wr(e))){let X=is(e);A=ea(e),F.x=X.x+e.clientLeft,F.y=X.y+e.clientTop}let Q=c&&!U&&!l?vg(c,y,!0):Hr(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-y.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-y.scrollTop*A.y+F.y+Q.y}}function VA(a){return Array.from(a.getClientRects())}function zA(a){let o=Kr(a),t=vn(a),e=a.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+qh(a),f=-t.scrollTop;return wr(e).direction==="rtl"&&(c+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:l,x:c,y:f}}function BA(a,o){let t=ar(a),e=Kr(a),i=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,y=0;if(i){l=i.width,c=i.height;let A=Td();(!A||A&&o==="fixed")&&(f=i.offsetLeft,y=i.offsetTop)}return{width:l,height:c,x:f,y}}var HA=new Set(["absolute","fixed"]);function UA(a,o){let t=is(a,!0,o==="fixed"),e=t.top+a.clientTop,i=t.left+a.clientLeft,l=Wr(a)?ea(a):Hr(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,y=i*l.x,A=e*l.y;return{width:c,height:f,x:y,y:A}}function pg(a,o,t){let e;if(o==="viewport")e=BA(a,t);else if(o==="document")e=zA(Kr(a));else if(kr(o))e=UA(o,t);else{let i=fg(a);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Li(e)}function gg(a,o){let t=Oi(a);return t===o||!kr(t)||rs(t)?!1:wr(t).position==="fixed"||gg(t,o)}function GA(a,o){let t=o.get(a);if(t)return t;let e=Js(a,[],!1).filter(f=>kr(f)&&es(f)!=="body"),i=null,l=wr(a).position==="fixed",c=l?Oi(a):a;for(;kr(c)&&!rs(c);){let f=wr(c),y=Ed(c);!y&&f.position==="fixed"&&(i=null),(l?!y&&!i:!y&&f.position==="static"&&!!i&&HA.has(i.position)||ta(c)&&!y&&gg(a,c))?e=e.filter(F=>F!==c):i=f,c=Oi(c)}return o.set(a,e),e}function KA(a){let{element:o,boundary:t,rootBoundary:e,strategy:i}=a,c=[...t==="clippingAncestors"?fn(o)?[]:GA(o,this._c):[].concat(t),e],f=c[0],y=c.reduce((A,F)=>{let U=pg(o,F,i);return A.top=we(U.top,A.top),A.right=br(U.right,A.right),A.bottom=br(U.bottom,A.bottom),A.left=we(U.left,A.left),A},pg(o,f,i));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function WA(a){let{width:o,height:t}=ug(a);return{width:o,height:t}}function YA(a,o,t){let e=Wr(o),i=Kr(o),l=t==="fixed",c=is(a,!0,l,o),f={scrollLeft:0,scrollTop:0},y=Hr(0);function A(){y.x=qh(i)}if(e||!e&&!l)if((es(o)!=="body"||ta(i))&&(f=vn(o)),e){let X=is(o,!0,l,o);y.x=X.x+o.clientLeft,y.y=X.y+o.clientTop}else i&&A();l&&!e&&i&&A();let F=i&&!e&&!l?vg(i,f):Hr(0),U=c.left+f.scrollLeft-y.x-F.x,Q=c.top+f.scrollTop-y.y-F.y;return{x:U,y:Q,width:c.width,height:c.height}}function Yh(a){return wr(a).position==="static"}function mg(a,o){if(!Wr(a)||wr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Kr(a)===t&&(t=t.ownerDocument.body),t}function bg(a,o){let t=ar(a);if(fn(a))return t;if(!Wr(a)){let i=Oi(a);for(;i&&!rs(i);){if(kr(i)&&!Yh(i))return i;i=Oi(i)}return t}let e=mg(a,o);for(;e&&dg(e)&&Yh(e);)e=mg(e,o);return e&&rs(e)&&Yh(e)&&!Ed(e)?t:e||cg(a)||t}var jA=async function(a){let o=this.getOffsetParent||bg,t=this.getDimensions,e=await t(a.floating);return{reference:YA(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function qA(a){return wr(a).direction==="rtl"}var XA={convertOffsetParentRelativeRectToViewportRelativeRect:$A,getDocumentElement:Kr,getClippingRect:KA,getOffsetParent:bg,getElementRects:jA,getClientRects:VA,getDimensions:WA,getScale:ea,isElement:kr,isRTL:qA};function yg(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function ZA(a,o){let t=null,e,i=Kr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let A=a.getBoundingClientRect(),{left:F,top:U,width:Q,height:X}=A;if(f||o(),!Q||!X)return;let tt=un(U),nt=un(i.clientWidth-(F+Q)),at=un(i.clientHeight-(U+X)),ft=un(F),Ct={rootMargin:-tt+"px "+-nt+"px "+-at+"px "+-ft+"px",threshold:we(0,br(1,y))||1},Ht=!0;function $t(Ut){let Ot=Ut[0].intersectionRatio;if(Ot!==y){if(!Ht)return c();Ot?c(!1,Ot):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Ot===1&&!yg(A,a.getBoundingClientRect())&&c(),Ht=!1}try{t=new IntersectionObserver($t,{...Ct,root:i.ownerDocument})}catch{t=new IntersectionObserver($t,Ct)}t.observe(a)}return c(!0),l}function Eg(a,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,A=jh(a),F=i||l?[...A?Js(A):[],...Js(o)]:[];F.forEach(ft=>{i&&ft.addEventListener("scroll",t,{passive:!0}),l&&ft.addEventListener("resize",t)});let U=A&&f?ZA(A,t):null,Q=-1,X=null;c&&(X=new ResizeObserver(ft=>{let[It]=ft;It&&It.target===A&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),A&&!y&&X.observe(A),X.observe(o));let tt,nt=y?is(a):null;y&&at();function at(){let ft=is(a);nt&&!yg(nt,ft)&&t(),nt=ft,tt=requestAnimationFrame(at)}return t(),()=>{var ft;F.forEach(It=>{i&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),U==null||U(),(ft=X)==null||ft.disconnect(),X=null,y&&cancelAnimationFrame(tt)}}var Tg=og;var xg=sg,Ag=eg,Sg=ag;var Ig=tg,Cg=ig;var _g=(a,o,t)=>{let e=new Map,i={platform:XA,...t},l={...i.platform,_c:e};return Jv(a,o,{...i,platform:l})};var Ad=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let l=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,l),l}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,l),l}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,c])=>c===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Ri=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var QA=B`
|
|
2605
|
+
<span part="radio-icon" class="radio-icon"></span>`}};Jo.styles=[...Z.styles,...Kv],h([u({type:Boolean,reflect:!0})],Jo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Jo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Jo.prototype,"softDisabled",2);var Kh=Jo;var Wv=z.constructTagName("staticradio");Kh.register(Wv);var gA=Kh;Gh.register(pd);var bA=Gh;var br=Math.min,we=Math.max,mn=Math.round,un=Math.floor,Hr=a=>({x:a,y:a}),yA={left:"right",right:"left",bottom:"top",top:"bottom"},EA={start:"end",end:"start"};function ud(a,o,t){return we(a,br(o,t))}function mo(a,o){return typeof a=="function"?a(o):a}function Ur(a){return a.split("-")[0]}function ts(a){return a.split("-")[1]}function Wh(a){return a==="x"?"y":"x"}function fd(a){return a==="y"?"height":"width"}var TA=new Set(["top","bottom"]);function Gr(a){return TA.has(Ur(a))?"y":"x"}function vd(a){return Wh(Gr(a))}function qv(a,o,t){t===void 0&&(t=!1);let e=ts(a),i=vd(a),l=fd(i),c=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=pn(c)),[c,pn(c)]}function Xv(a){let o=pn(a);return[md(a),o,md(o)]}function md(a){return a.replace(/start|end/g,o=>EA[o])}var Yv=["left","right"],jv=["right","left"],xA=["top","bottom"],AA=["bottom","top"];function SA(a,o,t){switch(a){case"top":case"bottom":return t?o?jv:Yv:o?Yv:jv;case"left":case"right":return o?xA:AA;default:return[]}}function Zv(a,o,t,e){let i=ts(a),l=SA(Ur(a),t==="start",e);return i&&(l=l.map(c=>c+"-"+i),o&&(l=l.concat(l.map(md)))),l}function pn(a){return a.replace(/left|right|bottom|top/g,o=>yA[o])}function IA(a){return{top:0,right:0,bottom:0,left:0,...a}}function gd(a){return typeof a!="number"?IA(a):{top:a,right:a,bottom:a,left:a}}function Oi(a){let{x:o,y:t,width:e,height:i}=a;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function Qv(a,o,t){let{reference:e,floating:i}=a,l=Gr(o),c=vd(o),f=fd(c),y=Ur(o),A=l==="y",F=e.x+e.width/2-i.width/2,U=e.y+e.height/2-i.height/2,Q=e[f]/2-i[f]/2,X;switch(y){case"top":X={x:F,y:e.y-i.height};break;case"bottom":X={x:F,y:e.y+e.height};break;case"right":X={x:e.x+e.width,y:U};break;case"left":X={x:e.x-i.width,y:U};break;default:X={x:e.x,y:e.y}}switch(ts(o)){case"start":X[c]-=Q*(t&&A?-1:1);break;case"end":X[c]+=Q*(t&&A?-1:1);break}return X}var Jv=async(a,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(o)),A=await c.getElementRects({reference:a,floating:o,strategy:i}),{x:F,y:U}=Qv(A,e,y),Q=e,X={},tt=0;for(let nt=0;nt<f.length;nt++){let{name:at,fn:ft}=f[nt],{x:It,y:Ct,data:Ht,reset:$t}=await ft({x:F,y:U,initialPlacement:e,placement:Q,strategy:i,middlewareData:X,rects:A,platform:c,elements:{reference:a,floating:o}});F=It!=null?It:F,U=Ct!=null?Ct:U,X={...X,[at]:{...X[at],...Ht}},$t&&tt<=50&&(tt++,typeof $t=="object"&&($t.placement&&(Q=$t.placement),$t.rects&&(A=$t.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:i}):$t.rects),{x:F,y:U}=Qv(A,Q,y)),nt=-1)}return{x:F,y:U,placement:Q,strategy:i,middlewareData:X}};async function bd(a,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:l,rects:c,elements:f,strategy:y}=a,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:U="floating",altBoundary:Q=!1,padding:X=0}=mo(o,a),tt=gd(X),at=f[Q?U==="floating"?"reference":"floating":U],ft=Oi(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(at)))==null||t?at:at.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:y})),It=U==="floating"?{x:e,y:i,width:c.floating.width,height:c.floating.height}:c.reference,Ct=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),Ht=await(l.isElement==null?void 0:l.isElement(Ct))?await(l.getScale==null?void 0:l.getScale(Ct))||{x:1,y:1}:{x:1,y:1},$t=Oi(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:Ct,strategy:y}):It);return{top:(ft.top-$t.top+tt.top)/Ht.y,bottom:($t.bottom-ft.bottom+tt.bottom)/Ht.y,left:(ft.left-$t.left+tt.left)/Ht.x,right:($t.right-ft.right+tt.right)/Ht.x}}var tg=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:e,placement:i,rects:l,platform:c,elements:f,middlewareData:y}=o,{element:A,padding:F=0}=mo(a,o)||{};if(A==null)return{};let U=gd(F),Q={x:t,y:e},X=vd(i),tt=fd(X),nt=await c.getDimensions(A),at=X==="y",ft=at?"top":"left",It=at?"bottom":"right",Ct=at?"clientHeight":"clientWidth",Ht=l.reference[tt]+l.reference[X]-Q[X]-l.floating[tt],$t=Q[X]-l.reference[X],Ut=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Ot=Ut?Ut[Ct]:0;(!Ot||!await(c.isElement==null?void 0:c.isElement(Ut)))&&(Ot=f.floating[Ct]||l.floating[tt]);let ae=Ht/2-$t/2,Ue=Ot/2-nt[tt]/2-1,Yt=br(U[ft],Ue),Te=br(U[It],Ue),xe=Yt,Ae=Ot-nt[tt]-Te,kt=Ot/2-nt[tt]/2+ae,oe=ud(xe,kt,Ae),Ge=!y.arrow&&ts(i)!=null&&kt!==oe&&l.reference[tt]/2-(kt<xe?Yt:Te)-nt[tt]/2<0,Qe=Ge?kt<xe?kt-xe:kt-Ae:0;return{[X]:Q[X]+Qe,data:{[X]:oe,centerOffset:kt-oe-Qe,...Ge&&{alignmentOffset:Qe}},reset:Ge}}});var eg=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,e;let{placement:i,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:A}=o,{mainAxis:F=!0,crossAxis:U=!0,fallbackPlacements:Q,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:nt=!0,...at}=mo(a,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ft=Ur(i),It=Gr(f),Ct=Ur(f)===f,Ht=await(y.isRTL==null?void 0:y.isRTL(A.floating)),$t=Q||(Ct||!nt?[pn(f)]:Xv(f)),Ut=tt!=="none";!Q&&Ut&&$t.push(...Zv(f,nt,tt,Ht));let Ot=[f,...$t],ae=await bd(o,at),Ue=[],Yt=((e=l.flip)==null?void 0:e.overflows)||[];if(F&&Ue.push(ae[ft]),U){let kt=qv(i,c,Ht);Ue.push(ae[kt[0]],ae[kt[1]])}if(Yt=[...Yt,{placement:i,overflows:Ue}],!Ue.every(kt=>kt<=0)){var Te,xe;let kt=(((Te=l.flip)==null?void 0:Te.index)||0)+1,oe=Ot[kt];if(oe&&(!(U==="alignment"?It!==Gr(oe):!1)||Yt.every(Je=>Je.overflows[0]>0&&Gr(Je.placement)===It)))return{data:{index:kt,overflows:Yt},reset:{placement:oe}};let Ge=(xe=Yt.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:xe.placement;if(!Ge)switch(X){case"bestFit":{var Ae;let Qe=(Ae=Yt.filter(Je=>{if(Ut){let xr=Gr(Je.placement);return xr===It||xr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(xr=>xr>0).reduce((xr,Xn)=>xr+Xn,0)]).sort((Je,xr)=>Je[1]-xr[1])[0])==null?void 0:Ae[0];Qe&&(Ge=Qe);break}case"initialPlacement":Ge=f;break}if(i!==Ge)return{reset:{placement:Ge}}}return{}}}};function rg(a){let o=br(...a.map(l=>l.left)),t=br(...a.map(l=>l.top)),e=we(...a.map(l=>l.right)),i=we(...a.map(l=>l.bottom));return{x:o,y:t,width:e-o,height:i-t}}function CA(a){let o=a.slice().sort((i,l)=>i.y-l.y),t=[],e=null;for(let i=0;i<o.length;i++){let l=o[i];!e||l.y-e.y>e.height/2?t.push([l]):t[t.length-1].push(l),e=l}return t.map(i=>Oi(rg(i)))}var ig=function(a){return a===void 0&&(a={}),{name:"inline",options:a,async fn(o){let{placement:t,elements:e,rects:i,platform:l,strategy:c}=o,{padding:f=2,x:y,y:A}=mo(a,o),F=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(e.reference))||[]),U=CA(F),Q=Oi(rg(F)),X=gd(f);function tt(){if(U.length===2&&U[0].left>U[1].right&&y!=null&&A!=null)return U.find(at=>y>at.left-X.left&&y<at.right+X.right&&A>at.top-X.top&&A<at.bottom+X.bottom)||Q;if(U.length>=2){if(Gr(t)==="y"){let Yt=U[0],Te=U[U.length-1],xe=Ur(t)==="top",Ae=Yt.top,kt=Te.bottom,oe=xe?Yt.left:Te.left,Ge=xe?Yt.right:Te.right,Qe=Ge-oe,Je=kt-Ae;return{top:Ae,bottom:kt,left:oe,right:Ge,width:Qe,height:Je,x:oe,y:Ae}}let at=Ur(t)==="left",ft=we(...U.map(Yt=>Yt.right)),It=br(...U.map(Yt=>Yt.left)),Ct=U.filter(Yt=>at?Yt.left===It:Yt.right===ft),Ht=Ct[0].top,$t=Ct[Ct.length-1].bottom,Ut=It,Ot=ft,ae=Ot-Ut,Ue=$t-Ht;return{top:Ht,bottom:$t,left:Ut,right:Ot,width:ae,height:Ue,x:Ut,y:Ht}}return Q}let nt=await l.getElementRects({reference:{getBoundingClientRect:tt},floating:e.floating,strategy:c});return i.reference.x!==nt.reference.x||i.reference.y!==nt.reference.y||i.reference.width!==nt.reference.width||i.reference.height!==nt.reference.height?{reset:{rects:nt}}:{}}}},_A=new Set(["left","top"]);async function kA(a,o){let{placement:t,platform:e,elements:i}=a,l=await(e.isRTL==null?void 0:e.isRTL(i.floating)),c=Ur(t),f=ts(t),y=Gr(t)==="y",A=_A.has(c)?-1:1,F=l&&y?-1:1,U=mo(o,a),{mainAxis:Q,crossAxis:X,alignmentAxis:tt}=typeof U=="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};return f&&typeof tt=="number"&&(X=f==="end"?tt*-1:tt),y?{x:X*F,y:Q*A}:{x:Q*A,y:X*F}}var og=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,e;let{x:i,y:l,placement:c,middlewareData:f}=o,y=await kA(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+y.x,y:l+y.y,data:{...y,placement:c}}}}},sg=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:at=>{let{x:ft,y:It}=at;return{x:ft,y:It}}},...y}=mo(a,o),A={x:t,y:e},F=await bd(o,y),U=Gr(Ur(i)),Q=Wh(U),X=A[Q],tt=A[U];if(l){let at=Q==="y"?"top":"left",ft=Q==="y"?"bottom":"right",It=X+F[at],Ct=X-F[ft];X=ud(It,X,Ct)}if(c){let at=U==="y"?"top":"left",ft=U==="y"?"bottom":"right",It=tt+F[at],Ct=tt-F[ft];tt=ud(It,tt,Ct)}let nt=f.fn({...o,[Q]:X,[U]:tt});return{...nt,data:{x:nt.x-t,y:nt.y-e,enabled:{[Q]:l,[U]:c}}}}}};var ag=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,e;let{placement:i,rects:l,platform:c,elements:f}=o,{apply:y=()=>{},...A}=mo(a,o),F=await bd(o,A),U=Ur(i),Q=ts(i),X=Gr(i)==="y",{width:tt,height:nt}=l.floating,at,ft;U==="top"||U==="bottom"?(at=U,ft=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ft=U,at=Q==="end"?"top":"bottom");let It=nt-F.top-F.bottom,Ct=tt-F.left-F.right,Ht=br(nt-F[at],It),$t=br(tt-F[ft],Ct),Ut=!o.middlewareData.shift,Ot=Ht,ae=$t;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ae=Ct),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Ot=It),Ut&&!Q){let Yt=we(F.left,0),Te=we(F.right,0),xe=we(F.top,0),Ae=we(F.bottom,0);X?ae=tt-2*(Yt!==0||Te!==0?Yt+Te:we(F.left,F.right)):Ot=nt-2*(xe!==0||Ae!==0?xe+Ae:we(F.top,F.bottom))}await y({...o,availableWidth:ae,availableHeight:Ot});let Ue=await c.getDimensions(f.floating);return tt!==Ue.width||nt!==Ue.height?{reset:{rects:!0}}:{}}}};function yd(){return typeof window<"u"}function es(a){return lg(a)?(a.nodeName||"").toLowerCase():"#document"}function ar(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Kr(a){var o;return(o=(lg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function lg(a){return yd()?a instanceof Node||a instanceof ar(a).Node:!1}function kr(a){return yd()?a instanceof Element||a instanceof ar(a).Element:!1}function Wr(a){return yd()?a instanceof HTMLElement||a instanceof ar(a).HTMLElement:!1}function ng(a){return!yd()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ar(a).ShadowRoot}var wA=new Set(["inline","contents"]);function ta(a){let{overflow:o,overflowX:t,overflowY:e,display:i}=wr(a);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!wA.has(i)}var NA=new Set(["table","td","th"]);function dg(a){return NA.has(es(a))}var MA=[":popover-open",":modal"];function fn(a){return MA.some(o=>{try{return a.matches(o)}catch{return!1}})}var LA=["transform","translate","scale","rotate","perspective"],OA=["transform","translate","scale","rotate","perspective","filter"],RA=["paint","layout","strict","content"];function Ed(a){let o=Td(),t=kr(a)?wr(a):a;return LA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||OA.some(e=>(t.willChange||"").includes(e))||RA.some(e=>(t.contain||"").includes(e))}function cg(a){let o=Ri(a);for(;Wr(o)&&!rs(o);){if(Ed(o))return o;if(fn(o))return null;o=Ri(o)}return null}function Td(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var DA=new Set(["html","body","#document"]);function rs(a){return DA.has(es(a))}function wr(a){return ar(a).getComputedStyle(a)}function vn(a){return kr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Ri(a){if(es(a)==="html")return a;let o=a.assignedSlot||a.parentNode||ng(a)&&a.host||Kr(a);return ng(o)?o.host:o}function hg(a){let o=Ri(a);return rs(o)?a.ownerDocument?a.ownerDocument.body:a.body:Wr(o)&&ta(o)?o:hg(o)}function Js(a,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=hg(a),l=i===((e=a.ownerDocument)==null?void 0:e.body),c=ar(i);if(l){let f=xd(c);return o.concat(c,c.visualViewport||[],ta(i)?i:[],f&&t?Js(f):[])}return o.concat(i,Js(i,[],t))}function xd(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function ug(a){let o=wr(a),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Wr(a),l=i?a.offsetWidth:t,c=i?a.offsetHeight:e,f=mn(t)!==l||mn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function jh(a){return kr(a)?a:a.contextElement}function ea(a){let o=jh(a);if(!Wr(o))return Hr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:l}=ug(o),c=(l?mn(t.width):t.width)/e,f=(l?mn(t.height):t.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var PA=Hr(0);function fg(a){let o=ar(a);return!Td()||!o.visualViewport?PA:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function FA(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==ar(a)?!1:o}function is(a,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=a.getBoundingClientRect(),l=jh(a),c=Hr(1);o&&(e?kr(e)&&(c=ea(e)):c=ea(a));let f=FA(l,t,e)?fg(l):Hr(0),y=(i.left+f.x)/c.x,A=(i.top+f.y)/c.y,F=i.width/c.x,U=i.height/c.y;if(l){let Q=ar(l),X=e&&kr(e)?ar(e):e,tt=Q,nt=xd(tt);for(;nt&&e&&X!==tt;){let at=ea(nt),ft=nt.getBoundingClientRect(),It=wr(nt),Ct=ft.left+(nt.clientLeft+parseFloat(It.paddingLeft))*at.x,Ht=ft.top+(nt.clientTop+parseFloat(It.paddingTop))*at.y;y*=at.x,A*=at.y,F*=at.x,U*=at.y,y+=Ct,A+=Ht,tt=ar(nt),nt=xd(tt)}}return Oi({width:F,height:U,x:y,y:A})}function qh(a,o){let t=vn(a).scrollLeft;return o?o.left+t:is(Kr(a)).left+t}function vg(a,o,t){t===void 0&&(t=!1);let e=a.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:qh(a,e)),l=e.top+o.scrollTop;return{x:i,y:l}}function $A(a){let{elements:o,rect:t,offsetParent:e,strategy:i}=a,l=i==="fixed",c=Kr(e),f=o?fn(o.floating):!1;if(e===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},A=Hr(1),F=Hr(0),U=Wr(e);if((U||!U&&!l)&&((es(e)!=="body"||ta(c))&&(y=vn(e)),Wr(e))){let X=is(e);A=ea(e),F.x=X.x+e.clientLeft,F.y=X.y+e.clientTop}let Q=c&&!U&&!l?vg(c,y,!0):Hr(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-y.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-y.scrollTop*A.y+F.y+Q.y}}function VA(a){return Array.from(a.getClientRects())}function zA(a){let o=Kr(a),t=vn(a),e=a.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+qh(a),f=-t.scrollTop;return wr(e).direction==="rtl"&&(c+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:l,x:c,y:f}}function BA(a,o){let t=ar(a),e=Kr(a),i=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,y=0;if(i){l=i.width,c=i.height;let A=Td();(!A||A&&o==="fixed")&&(f=i.offsetLeft,y=i.offsetTop)}return{width:l,height:c,x:f,y}}var HA=new Set(["absolute","fixed"]);function UA(a,o){let t=is(a,!0,o==="fixed"),e=t.top+a.clientTop,i=t.left+a.clientLeft,l=Wr(a)?ea(a):Hr(1),c=a.clientWidth*l.x,f=a.clientHeight*l.y,y=i*l.x,A=e*l.y;return{width:c,height:f,x:y,y:A}}function pg(a,o,t){let e;if(o==="viewport")e=BA(a,t);else if(o==="document")e=zA(Kr(a));else if(kr(o))e=UA(o,t);else{let i=fg(a);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Oi(e)}function gg(a,o){let t=Ri(a);return t===o||!kr(t)||rs(t)?!1:wr(t).position==="fixed"||gg(t,o)}function GA(a,o){let t=o.get(a);if(t)return t;let e=Js(a,[],!1).filter(f=>kr(f)&&es(f)!=="body"),i=null,l=wr(a).position==="fixed",c=l?Ri(a):a;for(;kr(c)&&!rs(c);){let f=wr(c),y=Ed(c);!y&&f.position==="fixed"&&(i=null),(l?!y&&!i:!y&&f.position==="static"&&!!i&&HA.has(i.position)||ta(c)&&!y&&gg(a,c))?e=e.filter(F=>F!==c):i=f,c=Ri(c)}return o.set(a,e),e}function KA(a){let{element:o,boundary:t,rootBoundary:e,strategy:i}=a,c=[...t==="clippingAncestors"?fn(o)?[]:GA(o,this._c):[].concat(t),e],f=c[0],y=c.reduce((A,F)=>{let U=pg(o,F,i);return A.top=we(U.top,A.top),A.right=br(U.right,A.right),A.bottom=br(U.bottom,A.bottom),A.left=we(U.left,A.left),A},pg(o,f,i));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function WA(a){let{width:o,height:t}=ug(a);return{width:o,height:t}}function YA(a,o,t){let e=Wr(o),i=Kr(o),l=t==="fixed",c=is(a,!0,l,o),f={scrollLeft:0,scrollTop:0},y=Hr(0);function A(){y.x=qh(i)}if(e||!e&&!l)if((es(o)!=="body"||ta(i))&&(f=vn(o)),e){let X=is(o,!0,l,o);y.x=X.x+o.clientLeft,y.y=X.y+o.clientTop}else i&&A();l&&!e&&i&&A();let F=i&&!e&&!l?vg(i,f):Hr(0),U=c.left+f.scrollLeft-y.x-F.x,Q=c.top+f.scrollTop-y.y-F.y;return{x:U,y:Q,width:c.width,height:c.height}}function Yh(a){return wr(a).position==="static"}function mg(a,o){if(!Wr(a)||wr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Kr(a)===t&&(t=t.ownerDocument.body),t}function bg(a,o){let t=ar(a);if(fn(a))return t;if(!Wr(a)){let i=Ri(a);for(;i&&!rs(i);){if(kr(i)&&!Yh(i))return i;i=Ri(i)}return t}let e=mg(a,o);for(;e&&dg(e)&&Yh(e);)e=mg(e,o);return e&&rs(e)&&Yh(e)&&!Ed(e)?t:e||cg(a)||t}var jA=async function(a){let o=this.getOffsetParent||bg,t=this.getDimensions,e=await t(a.floating);return{reference:YA(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function qA(a){return wr(a).direction==="rtl"}var XA={convertOffsetParentRelativeRectToViewportRelativeRect:$A,getDocumentElement:Kr,getClippingRect:KA,getOffsetParent:bg,getElementRects:jA,getClientRects:VA,getDimensions:WA,getScale:ea,isElement:kr,isRTL:qA};function yg(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function ZA(a,o){let t=null,e,i=Kr(a);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let A=a.getBoundingClientRect(),{left:F,top:U,width:Q,height:X}=A;if(f||o(),!Q||!X)return;let tt=un(U),nt=un(i.clientWidth-(F+Q)),at=un(i.clientHeight-(U+X)),ft=un(F),Ct={rootMargin:-tt+"px "+-nt+"px "+-at+"px "+-ft+"px",threshold:we(0,br(1,y))||1},Ht=!0;function $t(Ut){let Ot=Ut[0].intersectionRatio;if(Ot!==y){if(!Ht)return c();Ot?c(!1,Ot):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Ot===1&&!yg(A,a.getBoundingClientRect())&&c(),Ht=!1}try{t=new IntersectionObserver($t,{...Ct,root:i.ownerDocument})}catch{t=new IntersectionObserver($t,Ct)}t.observe(a)}return c(!0),l}function Eg(a,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,A=jh(a),F=i||l?[...A?Js(A):[],...Js(o)]:[];F.forEach(ft=>{i&&ft.addEventListener("scroll",t,{passive:!0}),l&&ft.addEventListener("resize",t)});let U=A&&f?ZA(A,t):null,Q=-1,X=null;c&&(X=new ResizeObserver(ft=>{let[It]=ft;It&&It.target===A&&X&&(X.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var Ct;(Ct=X)==null||Ct.observe(o)})),t()}),A&&!y&&X.observe(A),X.observe(o));let tt,nt=y?is(a):null;y&&at();function at(){let ft=is(a);nt&&!yg(nt,ft)&&t(),nt=ft,tt=requestAnimationFrame(at)}return t(),()=>{var ft;F.forEach(It=>{i&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),U==null||U(),(ft=X)==null||ft.disconnect(),X=null,y&&cancelAnimationFrame(tt)}}var Tg=og;var xg=sg,Ag=eg,Sg=ag;var Ig=tg,Cg=ig;var _g=(a,o,t)=>{let e=new Map,i={platform:XA,...t},l={...i.platform,_c:e};return Jv(a,o,{...i,platform:l})};var Ad=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let l=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,l),l}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,l),l}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,c])=>c===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var Di=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var QA=B`
|
|
2606
2606
|
:host {
|
|
2607
2607
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
|
2608
2608
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -2726,7 +2726,7 @@
|
|
|
2726
2726
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
|
2727
2727
|
border-bottom-left-radius: 100%;
|
|
2728
2728
|
}
|
|
2729
|
-
`,kg=[QA];var Id=z.constructTagName("popoverportal"),Sd=class extends Z{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Cd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,y=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(i.top-l.bottom,l.top-i.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-i.right,i.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Id),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var F;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),y=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let U=y!=null&&y[i]?12-Math.abs(f[i]-y[i]):0;Math.round(U)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Lt(Nt(Xl(Wl(Kl(Z))))){constructor(){super();this.depthManager=new no(this);this.id="";this.triggerID="";this.trigger=bt.TRIGGER;this.placement=bt.PLACEMENT;this.color=bt.COLOR;this.visible=bt.VISIBLE;this.offset=bt.OFFSET;this.boundary=bt.BOUNDARY;this.boundaryRoot=bt.BOUNDARY_ROOT;this.focusTrap=bt.FOCUS_TRAP;this.preventScroll=bt.PREVENT_SCROLL;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.interactive=bt.INTERACTIVE;this.delay=bt.DELAY;this.hideOnEscape=bt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=bt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=bt.HIDE_ON_BLUR;this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=bt.FOCUS_BACK;this.backdrop=bt.BACKDROP;this.isBackdropInvisible=bt.IS_BACKDROP_INVISIBLE;this.disableFlip=bt.DISABLE_FLIP;this.size=bt.SIZE;this.closeButtonAriaLabel=null;this.strategy=bt.STRATEGY;this.role=bt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=bt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=bt.ANIMATION_FRAME;this.inline=bt.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Ad(this);this.parseTrigger=()=>{var l;let i=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(ke).includes(c)).length>0?this.trigger:bt.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.hide(),Ri.onClickOutside(this),l&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Y.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ri.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Mi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Mi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Mi.HOVER),this.timers.clearTimeout(Mi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Mi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Mi.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,l=[];if(this.inline&&l.push(Cg()),l.push(xg({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||l.push(Ag({boundary:e,rootBoundary:i})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(Sg({boundary:e,rootBoundary:i,apply({availableHeight:A}){y&&(Object.assign(y.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(Ig({element:this.arrowElement,padding:12}))}l.push(Tg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=Eg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:U,placement:Q}=await _g(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),U.arrow&&this.arrowElement&&this.utils.updateArrowStyle(U.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Cd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Ri.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Ri.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:bt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Qo).includes(this.color)?this.color:bt.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(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("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,y,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Ri.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ri.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Mi.OPEN,t,this.openDelay):(this.timers.clearTimeout(Mi.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
|
|
2729
|
+
`,kg=[QA];var Id=z.constructTagName("popoverportal"),Sd=class extends Z{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Cd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,y=this.popover.offsetWidth||0,A=o.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(i.top-l.bottom,l.top-i.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-i.right,i.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Id),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var F;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),y=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let U=y!=null&&y[i]?12-Math.abs(f[i]-y[i]):0;Math.round(U)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Lt(Nt(Xl(Wl(Kl(Z))))){constructor(){super();this.depthManager=new lo(this);this.id="";this.triggerID="";this.trigger=bt.TRIGGER;this.placement=bt.PLACEMENT;this.color=bt.COLOR;this.visible=bt.VISIBLE;this.offset=bt.OFFSET;this.boundary=bt.BOUNDARY;this.boundaryRoot=bt.BOUNDARY_ROOT;this.focusTrap=bt.FOCUS_TRAP;this.preventScroll=bt.PREVENT_SCROLL;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.interactive=bt.INTERACTIVE;this.delay=bt.DELAY;this.hideOnEscape=bt.HIDE_ON_ESCAPE;this.propagateEventOnEscape=bt.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=bt.HIDE_ON_BLUR;this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=bt.FOCUS_BACK;this.backdrop=bt.BACKDROP;this.isBackdropInvisible=bt.IS_BACKDROP_INVISIBLE;this.disableFlip=bt.DISABLE_FLIP;this.size=bt.SIZE;this.closeButtonAriaLabel=null;this.strategy=bt.STRATEGY;this.role=bt.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=bt.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=bt.ANIMATION_FRAME;this.inline=bt.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Ad(this);this.parseTrigger=()=>{var l;let i=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(ke).includes(c)).length>0?this.trigger:bt.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.hide(),Di.onClickOutside(this),l&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==Y.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Di.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Li.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Li.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Li.HOVER),this.timers.clearTimeout(Li.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Li.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Li.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,l=[];if(this.inline&&l.push(Cg()),l.push(xg({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||l.push(Ag({boundary:e,rootBoundary:i})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(Sg({boundary:e,rootBoundary:i,apply({availableHeight:A}){y&&(Object.assign(y.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(Ig({element:this.arrowElement,padding:12}))}l.push(Tg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=Eg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:U,placement:Q}=await _g(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),U.arrow&&this.arrowElement&&this.utils.updateArrowStyle(U.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Cd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Di.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Di.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:bt.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Qo).includes(this.color)?this.color:bt.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(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("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,y,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Di.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Di.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Li.OPEN,t,this.openDelay):(this.timers.clearTimeout(Li.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
|
|
2730
2730
|
<div part="popover-hover-bridge"></div>
|
|
2731
2731
|
${this.closeButton?S` <mdc-button
|
|
2732
2732
|
part="popover-close"
|
|
@@ -2770,7 +2770,7 @@
|
|
|
2770
2770
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
|
2771
2771
|
margin-left: 2rem;
|
|
2772
2772
|
}
|
|
2773
|
-
`,Ng=[JA];var
|
|
2773
|
+
`,Ng=[JA];var uo=class extends nr{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=os.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:os.CLOSE_BUTTON,this.closeButtonAriaLabel=os.CLOSE_BUTTON_ARIA_LABEL,this.trigger=os.CLICK,this.showArrow=os.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,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(i=>i.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=os.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
|
|
2774
2774
|
${super.render()}
|
|
2775
2775
|
<mdc-screenreaderannouncer
|
|
2776
2776
|
identity="${J(this.screenreaderAnnouncerIdentity)}"
|
|
@@ -2778,7 +2778,7 @@
|
|
|
2778
2778
|
delay="300"
|
|
2779
2779
|
>
|
|
2780
2780
|
</mdc-screenreaderannouncer>
|
|
2781
|
-
`}};
|
|
2781
|
+
`}};uo.styles=[...nr.styles,...Ng],h([rf()],uo.prototype,"defaultSlotNodes",2),h([dt()],uo.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],uo.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],uo.prototype,"placement",2);var Xh=uo;function _d(a,o=500){let t,e=(...i)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...i)},o)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var Mg=z.constructTagName("screenreaderannouncer"),t0={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},ss={ARIA_LIVE:t0.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var e0=[B`
|
|
2782
2782
|
:host {
|
|
2783
2783
|
display: none;
|
|
2784
2784
|
visibility: hidden;
|
|
@@ -2989,7 +2989,7 @@
|
|
|
2989
2989
|
:host([soft-disabled]) {
|
|
2990
2990
|
pointer-events: none;
|
|
2991
2991
|
}
|
|
2992
|
-
`,...Et(!0)],Dg=s0;var
|
|
2992
|
+
`,...Et(!0)],Dg=s0;var fo=class extends Lt(Nt(Ve(pe(ie(Qt))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=Hv.DEFAULT;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}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.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===ee.DEFAULT&&((this.readonly||this.softDisabled)&&e===Y.SPACE&&t.preventDefault(),e===Y.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===ee.SPATIAL&&!(this.readonly||this.softDisabled)&&e===Y.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return S`
|
|
2993
2993
|
<mdc-staticcheckbox
|
|
2994
2994
|
part="static-checkbox"
|
|
2995
2995
|
class="mdc-focus-ring"
|
|
@@ -3019,7 +3019,7 @@
|
|
|
3019
3019
|
/>
|
|
3020
3020
|
</mdc-staticcheckbox>
|
|
3021
3021
|
${this.renderLabelAndHelperText()}
|
|
3022
|
-
`}};
|
|
3022
|
+
`}};fo.styles=[...Qt.styles,...Dg],fo.shadowRootOptions={...Qt.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],fo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],fo.prototype,"indeterminate",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],fo.prototype,"helpTextType",2);var Qh=fo;Qh.register(Bv);var a0=Qh;var Pg=z.constructTagName("staticchip"),Jh={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},kd={COLOR:Jh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN};var n0=B`
|
|
3023
3023
|
:host {
|
|
3024
3024
|
height: 1.5rem;
|
|
3025
3025
|
gap: 0.25rem;
|
|
@@ -3195,7 +3195,7 @@
|
|
|
3195
3195
|
${this.label?S`<mdc-text part="label" type="${ia.TEXT_TYPE}" tagname="${ia.TAG_NAME}"
|
|
3196
3196
|
>${this.label}</mdc-text
|
|
3197
3197
|
>`:W}
|
|
3198
|
-
`}};oa.styles=[...gn.styles,...$g],h([u({type:String,reflect:!0})],oa.prototype,"color",2),h([u({type:String})],oa.prototype,"label",2);var sa=oa;sa.register(wd);var d0=sa;var Vg=z.constructTagName("coachmark"),as={COLOR:Qo.CONTRAST,TRIGGER:ke.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ns=class extends nr{constructor(){super(...arguments);this.trigger=as.TRIGGER;this.showArrow=as.ARROW;this.closeButton=as.CLOSE_BUTTON;this.disableAriaExpanded=as.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=as.COLOR,this.showArrow=as.ARROW}};h([u({type:String,reflect:!0})],ns.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],ns.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],ns.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ns.prototype,"disableAriaExpanded",2);var tp=ns;tp.register(Vg);var c0=tp;var Nd=z.constructTagName("controltypeprovider"),Md={CONTROL_TYPE:"uncontrolled"},Ld=["controlled","uncontrolled"];var h0=Nd,ep=h0;var Od=class extends Ie{constructor(){super({context:ep});this.innerControlType=Md.CONTROL_TYPE}static get Context(){return ep}set controlType(t){Ld.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],Od.prototype,"controlType",1);var rp=Od;rp.register(Nd);var ip=rp;var Yr=
|
|
3198
|
+
`}};oa.styles=[...gn.styles,...$g],h([u({type:String,reflect:!0})],oa.prototype,"color",2),h([u({type:String})],oa.prototype,"label",2);var sa=oa;sa.register(wd);var d0=sa;var Vg=z.constructTagName("coachmark"),as={COLOR:Qo.CONTRAST,TRIGGER:ke.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var ns=class extends nr{constructor(){super(...arguments);this.trigger=as.TRIGGER;this.showArrow=as.ARROW;this.closeButton=as.CLOSE_BUTTON;this.disableAriaExpanded=as.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=as.COLOR,this.showArrow=as.ARROW}};h([u({type:String,reflect:!0})],ns.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],ns.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],ns.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],ns.prototype,"disableAriaExpanded",2);var tp=ns;tp.register(Vg);var c0=tp;var Nd=z.constructTagName("controltypeprovider"),Md={CONTROL_TYPE:"uncontrolled"},Ld=["controlled","uncontrolled"];var h0=Nd,ep=h0;var Od=class extends Ie{constructor(){super({context:ep});this.innerControlType=Md.CONTROL_TYPE}static get Context(){return ep}set controlType(t){Ld.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],Od.prototype,"controlType",1);var rp=Od;rp.register(Nd);var ip=rp;var Yr=_i(class extends si{constructor(a){var o;if(super(a),a.type!==gr.ATTRIBUTE||a.name!=="class"||((o=a.strings)==null?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(a){return" "+Object.keys(a).filter(o=>a[o]).join(" ")+" "}update(a,[o]){var e,i;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(let l in o)o[l]&&!((e=this.nt)!=null&&e.has(l))&&this.st.add(l);return this.render(o)}let t=a.element.classList;for(let l of this.st)l in o||(t.remove(l),this.st.delete(l));for(let l in o){let c=!!o[l];c===this.st.has(l)||(i=this.nt)!=null&&i.has(l)||(c?(t.add(l),this.st.add(l)):(t.remove(l),this.st.delete(l)))}return $e}});function yr(a){let o=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),e=String(a.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function zt(a){if(!a||!/^\d{4}-\d{2}-\d{2}$/.test(a))return null;let o=a.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),l=new Date(t,e-1,i);return l.getFullYear()!==t||l.getMonth()!==e-1||l.getDate()!==i?null:l}function di(a,o,t=1){return new Date(a,o-1,t)}function ls(){let a=new Date;return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function Er(a,o){let t=new Date(a);return t.setDate(t.getDate()+o),t}function Dd(a,o){let t=a.getMonth()+o,e=new Date(a.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function op(a,o){let t=a.getFullYear()+o,e=new Date(t,a.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(a.getDate(),i)),e}function Pd(a,o){return a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()&&a.getDate()===o.getDate()}function Pi(a,o){return a.getTime()<o.getTime()}function vo(a,o){return a.getTime()>o.getTime()}function Fd(a,o){return a.getTime()<=o.getTime()}function zg(a){return new Date(a.getFullYear(),a.getMonth(),1)}function sp(a){return new Date(a.getFullYear(),a.getMonth()+1,0)}function $d(a,o){return new Date(a,o,0).getDate()}function Bg(a){let o=a.getDay();return o===0?7:o}function bn(a,o=1){let t=a.getDay(),l=((t===0?7:t)-(o===7?7:o)+7)%7;return Er(a,-l)}function Hg(a,o="narrow"){let t=new Intl.DateTimeFormat(a,{weekday:o}),e=new Date(2026,0,5),i=[];for(let l=0;l<7;l+=1)i.push(t.format(Er(e,l)));return i}function ds(a){var i,l;try{let c=new Intl.Locale(a),f=(l=c.weekInfo)!=null?l:(i=c.getWeekInfo)==null?void 0:i.call(c);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=a.split("-")[0].toLowerCase(),e=a.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function Ug(a,o,t){let e=di(a,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function Gg(a,o){let t=zt(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function Rd(a,o){let t=zt(a);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function Kg(a,o,t){let e=zt(a),i=zt(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${Rd(a,t)} \u2013 ${Rd(o,t)}`}}function Vd(a){let t=new Intl.DateTimeFormat(a,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let l of t)l.type==="month"&&!e.includes("month")&&e.push("month"),l.type==="day"&&!e.includes("day")&&e.push("day"),l.type==="year"&&!e.includes("year")&&e.push("year"),l.type==="literal"&&l.value.trim()&&(i=l.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var Wg=z.constructTagName("calendar"),se={SINGLE:"single",WEEK:"week",RANGE:"range"},ap={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},Yg=6,np=7,lp={SELECTION_MODE:se.SINGLE,LOCALE:"en-US"};var p0=B`
|
|
3199
3199
|
:host {
|
|
3200
3200
|
--mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
3201
3201
|
--mdc-calendar-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -3371,7 +3371,7 @@
|
|
|
3371
3371
|
.calendar-today-button mdc-button {
|
|
3372
3372
|
width: auto;
|
|
3373
3373
|
}
|
|
3374
|
-
`,jg=[Fr,p0];function qg(a){let o=Hg(a,"narrow"),t=ds(a),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Xg(a,o,t,e,i,l,c,f){let y=di(a,o,1),A=ls(),F=ds(t),U=Bg(y),Q;F===7?Q=U===7?0:U:(Q=U-F,Q<0&&(Q+=7));let X=Er(y,-Q),tt=c?zt(c):void 0,nt=f?zt(f):void 0,at=i?zt(i):void 0,ft=l?zt(l):void 0,It=new Set(e),Ct=[];for(let Ht=0;Ht<Yg;Ht+=1){let $t=[];for(let Ut=0;Ut<np;Ut+=1){let Ot=Er(X,Ht*np+Ut),ae=yr(Ot),Ue=Ot.getMonth()+1===o&&Ot.getFullYear()===a,Yt=Pd(Ot,A),Te=It.has(ae),xe=!1;tt&&
|
|
3374
|
+
`,jg=[Fr,p0];function qg(a){let o=Hg(a,"narrow"),t=ds(a),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Xg(a,o,t,e,i,l,c,f){let y=di(a,o,1),A=ls(),F=ds(t),U=Bg(y),Q;F===7?Q=U===7?0:U:(Q=U-F,Q<0&&(Q+=7));let X=Er(y,-Q),tt=c?zt(c):void 0,nt=f?zt(f):void 0,at=i?zt(i):void 0,ft=l?zt(l):void 0,It=new Set(e),Ct=[];for(let Ht=0;Ht<Yg;Ht+=1){let $t=[];for(let Ut=0;Ut<np;Ut+=1){let Ot=Er(X,Ht*np+Ut),ae=yr(Ot),Ue=Ot.getMonth()+1===o&&Ot.getFullYear()===a,Yt=Pd(Ot,A),Te=It.has(ae),xe=!1;tt&&Pi(Ot,tt)&&(xe=!0),nt&&vo(Ot,nt)&&(xe=!0);let Ae=!1,kt=!1,oe=!1;at&&ft&&(kt=Pd(Ot,at),oe=Pd(Ot,ft),Ae=Fd(at,Ot)&&Fd(Ot,ft)),$t.push({date:ae,day:Ot.getDate(),isCurrentMonth:Ue,isToday:Yt,isSelected:Te,isInRange:Ae,isRangeStart:kt,isRangeEnd:oe,isDisabled:xe})}Ct.push({days:$t})}return Ct}function zd(a,o){let t=zt(a);if(!t)return{start:"",end:""};let e=bn(t,ds(o)),i=Er(e,6);return{start:yr(e),end:yr(i)}}function dp(a,o,t){return Ug(a,o,t)}function Zg(a,o){let t=zt(a),e=zt(o);if(!t||!e)return[];let i=[],l=t;for(;Fd(l,e);)i.push(yr(l)),l=Er(l,1);return i}function Qg(a,o){return Rd(a,o)}function yn(a,o,t){return Kg(a,o,t)}var ve=class extends Lt(Nt(Z)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=lp.SELECTION_MODE;this.locale=lp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=zt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=zt(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ls(),e=this.min?zt(this.min):void 0,i=this.max?zt(this.max):void 0,l=t;e&&Pi(t,e)?l=e:i&&vo(t,i)&&(l=i),this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear(),this.focusedDate=yr(l)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),i=this.getRangeEnd();return Xg(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value&&this.endValue?Zg(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===se.WEEK||this.selectionMode===se.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=di(this.displayYear,this.displayMonth,1),e=zt(this.min);return e?vo(t,zg(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=sp(di(this.displayYear,this.displayMonth,1)),e=zt(this.max);return e?Pi(t,sp(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Dd(di(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=yr(di(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case se.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case se.WEEK:{let{start:e,end:i}=zd(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case se.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=zt(this.value),i=zt(t);e&&i&&Pi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?zt(this.focusedDate):ls();if(!e)return;let i=this.getActionForKeyEvent(t),l;switch(i){case Y.LEFT:t.preventDefault(),l=Er(e,-1);break;case Y.RIGHT:t.preventDefault(),l=Er(e,1);break;case Y.UP:t.preventDefault(),l=Er(e,-7);break;case Y.DOWN:t.preventDefault(),l=Er(e,7);break;case Y.HOME:{t.preventDefault();let c=ds(this.locale);l=bn(e,c);break}case Y.END:{t.preventDefault();let c=ds(this.locale);l=Er(bn(e,c),6);break}case Y.ENTER:case Y.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===wt.PAGE_UP){t.preventDefault(),l=t.shiftKey?op(e,-1):Dd(e,-1);break}if(t.key===wt.PAGE_DOWN){t.preventDefault(),l=t.shiftKey?op(e,1):Dd(e,1);break}return}if(this.keyDownEventHandled(),l){let c=yr(l);if(this.isDateDisabled(c))return;this.focusedDate=c,(l.getMonth()+1!==this.displayMonth||l.getFullYear()!==this.displayYear)&&(this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear()),this.updateComplete.then(()=>{var y;let f=(y=this.shadowRoot)==null?void 0:y.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===se.WEEK&&this.value&&this.endValue?`Calendar, ${yn(this.value,this.endValue,this.locale)}`:`Calendar, ${dp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=dp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return S`
|
|
3375
3375
|
<div class="calendar-header">
|
|
3376
3376
|
<mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
|
|
3377
3377
|
<div class="calendar-header-nav">
|
|
@@ -3423,7 +3423,7 @@
|
|
|
3423
3423
|
</div>
|
|
3424
3424
|
${t.map(i=>S` <div class="calendar-row" role="row">${i.days.map(l=>this.renderDay(l))}</div> `)}
|
|
3425
3425
|
</div>
|
|
3426
|
-
`}isDateDisabled(t){let e=zt(t);if(!e)return!0;let i=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;return!!(i&&
|
|
3426
|
+
`}isDateDisabled(t){let e=zt(t);if(!e)return!0;let i=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;return!!(i&&Pi(e,i)||l&&vo(e,l))}isTodayDisabled(){return this.isDateDisabled(yr(ls()))}handleTodayClick(){let t=ls(),e=yr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return W;let t=this.isTodayDisabled();return S`
|
|
3427
3427
|
<div class="calendar-today-button">
|
|
3428
3428
|
<mdc-button
|
|
3429
3429
|
variant="${Vt.TERTIARY}"
|
|
@@ -3606,7 +3606,7 @@
|
|
|
3606
3606
|
--mdc-datepicker-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
3607
3607
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
3608
3608
|
}
|
|
3609
|
-
`,tb=[f0,...Et(!0)];function xn(a){return Vd(a).order}function eb(a){return Vd(a).separator}function rb(a){if(!a)return null;let o=zt(a);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function ib(a,o,t){let e=parseInt(a,10),i=parseInt(o,10),l=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(l)||e<1||e>12||i<1||i>31||l<1)return"";let c=$d(l,e);if(i>c)return"";let f=di(l,e,i);return yr(f)}function ob(a){let{order:o,separator:t}=Vd(a),e={month:"mm",day:"dd",year:"yyyy"};return o.map(i=>e[i]).join(` ${t} `)}function pp(a,o,t){switch(a){case"month":return 12;case"day":return o&&t?$d(t,o):o?$d(2e3,o):31;case"year":return 9999;default:return 0}}function mp(a){switch(a){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var Bt=class extends pe(ie(Qt)){constructor(){super(...arguments);this.variant=Bd.VARIANT;this.value="";this.selectionMode=se.SINGLE;this.locale=Bd.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=bt.STRATEGY;this.disableFlip=Bd.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(){let t=rb(this.value);t?(this.internalMonth=t.month,this.internalDay=t.day,this.internalYear=t.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return ib(this.internalMonth,this.internalDay,this.internalYear)}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){let t=this.internalToValue();if(t&&t!==this.value){let e=zt(t);if(e){let i=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;if(i&&
|
|
3609
|
+
`,tb=[f0,...Et(!0)];function xn(a){return Vd(a).order}function eb(a){return Vd(a).separator}function rb(a){if(!a)return null;let o=zt(a);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function ib(a,o,t){let e=parseInt(a,10),i=parseInt(o,10),l=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(l)||e<1||e>12||i<1||i>31||l<1)return"";let c=$d(l,e);if(i>c)return"";let f=di(l,e,i);return yr(f)}function ob(a){let{order:o,separator:t}=Vd(a),e={month:"mm",day:"dd",year:"yyyy"};return o.map(i=>e[i]).join(` ${t} `)}function pp(a,o,t){switch(a){case"month":return 12;case"day":return o&&t?$d(t,o):o?$d(2e3,o):31;case"year":return 9999;default:return 0}}function mp(a){switch(a){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var Bt=class extends pe(ie(Qt)){constructor(){super(...arguments);this.variant=Bd.VARIANT;this.value="";this.selectionMode=se.SINGLE;this.locale=Bd.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=bt.STRATEGY;this.disableFlip=Bd.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(){let t=rb(this.value);t?(this.internalMonth=t.month,this.internalDay=t.day,this.internalYear=t.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return ib(this.internalMonth,this.internalDay,this.internalYear)}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){let t=this.internalToValue();if(t&&t!==this.value){let e=zt(t);if(e){let i=this.min?zt(this.min):void 0,l=this.max?zt(this.max):void 0;if(i&&Pi(e,i)||l&&vo(e,l))return}this.value=t,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){this.disabled||this.readonly||(this.displayPopover||this.flushPendingInput(),this.displayPopover=!this.displayPopover)}handleSelectTriggerClick(){this.disabled||this.readonly||(this.displayPopover=!this.displayPopover)}handleSelectKeydown(t){this.disabled||this.readonly||(t.key===wt.ENTER||t.key===wt.SPACE||t.key===wt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}handleDateSelected(t){let{detail:e}=t,i=this.effectiveSelectionMode;i===se.WEEK||i===se.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let l=i===se.RANGE&&this.value&&this.endValue;(i!==se.RANGE||l)&&(this.displayPopover=!1,this.focusBackToTrigger())}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,l=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=l;break;case"day":this.internalDay=l;break;case"year":this.internalYear=l;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let i=parseInt(this.internalMonth,10)||void 0,l=parseInt(this.internalYear,10)||void 0,c=mp(e),f=pp(e,i,l),y=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case wt.ARROW_UP:{t.preventDefault();let A=y>=f?c:y+1;this.setFieldValue(e,A),this.commitValue();break}case wt.ARROW_DOWN:{t.preventDefault();let A=y<=c?f:y-1;this.setFieldValue(e,A),this.commitValue();break}case wt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case wt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case wt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,c,f)):t.preventDefault();break}}}handleDigitInput(t,e,i,l){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let c=e==="year"?4:2;if(this.pendingDigits.length>=c){let f=parseInt(this.pendingDigits,10);f>l&&(f=l),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),y=Math.floor(l/10);if(f>y){let A=f;A>l&&(A=l),A<i&&(A=i),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let A=f;A<i&&(A=i),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=xn(this.locale),i=e.indexOf(t);if(i<e.length-1){let l=e[i+1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(l);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}advanceToPrevField(t){let e=xn(this.locale),i=e.indexOf(t);if(i>0){let l=e[i-1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(l);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=xn(this.locale),l=this.getSpinbuttonInput(i[0]);l==null||l.focus(),l==null||l.select()}}handleBaseKeydown(t){t.key===wt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===En.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Tn);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===se.WEEK?se.WEEK:this.variant===En.DEFAULT?se.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===se.WEEK){let{start:t,end:e}=zd(this.value,this.locale);return yn(t,e,this.locale)}return this.effectiveSelectionMode===se.RANGE&&this.endValue?yn(this.value,this.endValue,this.locale):Qg(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=parseInt(this.internalMonth,10)||void 0,l=parseInt(this.internalYear,10)||void 0,c=mp(t),f=pp(t,i,l),y={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},A={month:"mm",day:"dd",year:"yyyy"};return S`
|
|
3610
3610
|
<input
|
|
3611
3611
|
id="${t}-spinbutton"
|
|
3612
3612
|
part="spinbutton spinbutton-${t}"
|
|
@@ -3922,11 +3922,11 @@
|
|
|
3922
3922
|
:host([data-hidden]) {
|
|
3923
3923
|
display: none;
|
|
3924
3924
|
}
|
|
3925
|
-
`],sb=b0;var
|
|
3925
|
+
`],sb=b0;var go=class extends Z{constructor(){super(...arguments);this.orientation=hs.ORIENTATION;this.variant=hs.VARIANT;this.arrowDirection=hs.ARROW_DIRECTION;this.buttonPosition=hs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(Sn).includes(t)?t:hs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(cs).includes(t)?t:hs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===cs.HORIZONTAL?Nr.NEGATIVE:Nr.POSITIVE;Object.values(Nr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Nr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===cs.HORIZONTAL,e=this.arrowDirection===Nr.POSITIVE;return t?e?In.UP:In.DOWN:e?In.RIGHT:In.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 c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let i=e.some(f=>f.tagName===Qa.toUpperCase()),l=e.some(f=>f.tagName===Ai.toUpperCase());i&&!l?this.setAttribute("data-type","mdc-text-divider"):!i&&l&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
|
|
3926
3926
|
<div></div>
|
|
3927
3927
|
<slot @slotchange=${this.inferDividerType}></slot>
|
|
3928
3928
|
<div></div>
|
|
3929
|
-
`}};
|
|
3929
|
+
`}};go.styles=[...Z.styles,...sb],h([u({type:String,reflect:!0})],go.prototype,"orientation",2),h([u({type:String,reflect:!0})],go.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],go.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],go.prototype,"buttonPosition",2);var fp=go;fp.register(An);var y0=fp;var E0=B`
|
|
3930
3930
|
:host([selected]) {
|
|
3931
3931
|
border: 2px solid;
|
|
3932
3932
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
|
@@ -3963,7 +3963,7 @@
|
|
|
3963
3963
|
`,lb=[x0];var Hd=class extends Qt{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?et.RADIOGROUP:et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return S`
|
|
3964
3964
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
|
3965
3965
|
<slot></slot>
|
|
3966
|
-
`}};Hd.styles=[...Qt.styles,...lb];var bp=Hd;var db=z.constructTagName("formfieldgroup");bp.register(db);var Ud=bp;Xa.register(Ll);var A0=Xa;an.register(td);var S0=an;var ps=
|
|
3966
|
+
`}};Hd.styles=[...Qt.styles,...lb];var bp=Hd;var db=z.constructTagName("formfieldgroup");bp.register(db);var Ud=bp;Xa.register(Ll);var A0=Xa;an.register(td);var S0=an;var ps=_i(class extends si{constructor(a){if(super(a),a.type!==gr.PROPERTY&&a.type!==gr.ATTRIBUTE&&a.type!==gr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Vl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===$e||o===W)return o;let t=a.element,e=a.name;if(a.type===gr.PROPERTY){if(o===t[e])return $e}else if(a.type===gr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(a.type===gr.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return zl(a),o}});Qt.register(zv);var dr=Qt;var cb=z.constructTagName("input"),Gd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},aa={OFF:"off",ON:"on"},bo={PASSWORD:"password",TEXT:"text",SEARCH:"search"},hb={MAX_LENGTH:10,VALIDATION:qt.ERROR},Fi={VALIDATION:qt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Vt.TERTIARY,CLEAR_BUTTON_SIZE:Ir[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:aa.OFF,INPUT_TYPE:bo.TEXT};var I0=[B`
|
|
3967
3967
|
:host {
|
|
3968
3968
|
--mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
|
|
3969
3969
|
--mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -4088,15 +4088,15 @@
|
|
|
4088
4088
|
<mdc-icon
|
|
4089
4089
|
part="leading-icon"
|
|
4090
4090
|
name=${this.leadingIcon}
|
|
4091
|
-
size="${
|
|
4092
|
-
length-unit="${
|
|
4091
|
+
size="${Fi.ICON_SIZE_VALUE}"
|
|
4092
|
+
length-unit="${Fi.ICON_SIZE_UNIT}"
|
|
4093
4093
|
>
|
|
4094
4094
|
</mdc-icon>
|
|
4095
4095
|
`:W}renderPrefixText(){return this.prefixText?S`
|
|
4096
4096
|
<mdc-text
|
|
4097
4097
|
part="prefix-text"
|
|
4098
|
-
tagname="${
|
|
4099
|
-
type="${
|
|
4098
|
+
tagname="${Fi.PREFIX_TEXT_TAG}"
|
|
4099
|
+
type="${Fi.PREFIX_TEXT_TYPE}"
|
|
4100
4100
|
aria-hidden="true"
|
|
4101
4101
|
>
|
|
4102
4102
|
${this.prefixText.slice(0,hb.MAX_LENGTH)}
|
|
@@ -4105,9 +4105,9 @@
|
|
|
4105
4105
|
<mdc-button
|
|
4106
4106
|
part="trailing-button"
|
|
4107
4107
|
class="own-focus-ring ${e?"":"hidden"}"
|
|
4108
|
-
prefix-icon="${
|
|
4109
|
-
variant="${
|
|
4110
|
-
size="${
|
|
4108
|
+
prefix-icon="${Fi.CLEAR_BUTTON_ICON}"
|
|
4109
|
+
variant="${Fi.CLEAR_BUTTON_VARIANT}"
|
|
4110
|
+
size="${Fi.CLEAR_BUTTON_SIZE}"
|
|
4111
4111
|
aria-label="${this.clearAriaLabel}"
|
|
4112
4112
|
@click=${this.clearInputText}
|
|
4113
4113
|
?disabled=${this.disabled||this.readonly||!e}
|
|
@@ -4142,7 +4142,7 @@
|
|
|
4142
4142
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
|
4143
4143
|
<div part="input-section">
|
|
4144
4144
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
|
4145
|
-
<slot name="input">${this.renderInputElement(
|
|
4145
|
+
<slot name="input">${this.renderInputElement(Fi.INPUT_TYPE)}</slot>
|
|
4146
4146
|
</div>
|
|
4147
4147
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
|
4148
4148
|
</div>
|
|
@@ -4374,7 +4374,7 @@
|
|
|
4374
4374
|
`,gb=[M0,...Et()];var us=class extends ce(fe){constructor(){super(...arguments);this.size=da.SIZE;this.inline=da.INLINE;this.inverted=da.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=da.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(la).includes(t)?`${t}`:da.SIZE.toString())}render(){return S`
|
|
4375
4375
|
<slot></slot>
|
|
4376
4376
|
${this.iconName?S` <mdc-icon name=${this.iconName} size=${vb(this.size)} length-unit="rem"></mdc-icon> `:W}
|
|
4377
|
-
`}};us.styles=[...ni.styles,...gb],h([u({type:Number,reflect:!0})],us.prototype,"size",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inverted",2);var Tp=us;Tp.register(fb);var L0=Tp;ni.register(wv);var O0=ni;var Jt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var
|
|
4377
|
+
`}};us.styles=[...ni.styles,...gb],h([u({type:Number,reflect:!0})],us.prototype,"size",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],us.prototype,"inverted",2);var Tp=us;Tp.register(fb);var L0=Tp;ni.register(wv);var O0=ni;var Jt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var yo=a=>{class o extends Lt(Nt(a)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:l}=i,c=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof Z&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let l=i.target,c=this.getCurrentIndex(l);if(c!==-1){let f=!(this.navItems.at(c)!==l&&document.activeElement===i.target);this.resetTabIndexAndSetFocus(c,void 0,f,!1)}};this.handleNavBeforeFocus=i=>{let l=eh(i.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){i.preventDefault();let c=this.navItems.find(y=>y.contains(l)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Jt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let l=this.getActionForKeyEvent(i,!0),c=this.orientation==="vertical",f=new Set(c?[Y.DOWN,Y.UP,Y.HOME,Y.END]:[Y.LEFT,Y.RIGHT,Y.HOME,Y.END]);if(!l||!f.has(l))return;let y=i.target,A=this.getCurrentIndex(y);if(A===-1)return;this.resetTabIndexes(A);let F=!1;switch(l){case Y.HOME:{F=this.resetTabIndexAndSetFocus(0,A);break}case Y.END:{F=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case Y.DOWN:case Y.RIGHT:{let U=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?U:A+1;F=this.resetTabIndexAndSetFocus(Q,A);break}case Y.UP:case Y.LEFT:{let U=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?U:A-1;F=this.resetTabIndexAndSetFocus(Q,A);break}default:break}F&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(l=>l===i||!!(l.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,y=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);y&&(y.setAttribute("tabindex","0"),l&&y.focus())}}resetTabIndexAndSetFocus(i,l,c=!0,f=!0){var F;let{navItems:y}=this;if(y.length===0)return!1;let A=(F=y.at(i))!=null?F:y.find(Boolean);return i===0&&l===0&&y.length===1?!0:i===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?y.forEach(U=>U.setAttribute("tabindex","-1")):y.at(l)&&y.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===ee.SPATIAL?!1:this.loop!=="false"}}return o};var Wd=z.constructTagName("listitem"),kn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},bb={VARIANT:kn.FULL_WIDTH};var R0=a=>!!a,Mr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||R0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Jt.CREATED,this.itemCreationHandler),this.host.addEventListener(Jt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Jt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Jt.DESTROYED,this.itemDestroyHandler),this.reset()}add(o){this.addItem(o,void 0)}addAt(o,t){this.addItem(o,t)}getIndexToInsertInCache(o){if(!this.cache.length||!df(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);cf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let l=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(e):l>=0&&this.cache.splice(l,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var ci=a=>{class o extends a{constructor(...i){super(...i);this.handleItemCreation=i=>{let l=i.target;l&&l.addEventListener(Jt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Jt.DESTROYED&&(i.target.removeEventListener(Jt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Jt.CREATED,this.handleItemCreation)}}return o};var D0=B`
|
|
4378
4378
|
:host {
|
|
4379
4379
|
display: flex;
|
|
4380
4380
|
flex-direction: column;
|
|
@@ -4400,11 +4400,11 @@
|
|
|
4400
4400
|
scroll-padding-left: 0.25rem;
|
|
4401
4401
|
scroll-padding-right: 0.25rem;
|
|
4402
4402
|
}
|
|
4403
|
-
`,yb=[D0];var Eb=z.constructTagName("list");var wn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Yd={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:wn.VERTICAL};var fs=class extends
|
|
4403
|
+
`,yb=[D0];var Eb=z.constructTagName("list");var wn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Yd={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:wn.VERTICAL};var fs=class extends yo(ci(Z)){constructor(){super();this.loop=Yd.LOOP;this.initialFocus=Yd.INITIAL_FOCUS;this.orientation=Yd.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Jt.MODIFIED,this.handleModifiedEvent),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=i+1;l>=this.navItems.length&&(l=i-1),this.resetTabIndexes(l,this.focusWithin)}}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${Wd}:not([disabled])`)}render(){return S`
|
|
4404
4404
|
<slot name="list-header"></slot>
|
|
4405
4405
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
4406
4406
|
<slot part="container" role="presentation"></slot>
|
|
4407
|
-
`}};fs.styles=[...Z.styles,...yb],h([u({type:String,reflect:!0})],fs.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],fs.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],fs.prototype,"orientation",2);var
|
|
4407
|
+
`}};fs.styles=[...Z.styles,...yb],h([u({type:String,reflect:!0})],fs.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],fs.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],fs.prototype,"orientation",2);var $i=fs;$i.register(Eb);var xp=$i;var P0=B`
|
|
4408
4408
|
:host {
|
|
4409
4409
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
|
4410
4410
|
--mdc-listheader-gap: 0.5rem;
|
|
@@ -4431,7 +4431,7 @@
|
|
|
4431
4431
|
:host::part(postfix-icon) {
|
|
4432
4432
|
flex-shrink: 0;
|
|
4433
4433
|
}
|
|
4434
|
-
`,Tb=[P0];var
|
|
4434
|
+
`,Tb=[P0];var Eo=class extends Z{constructor(){super(...arguments);this.disabled=!1}render(){return S`
|
|
4435
4435
|
${this.prefixIcon?S`<mdc-icon
|
|
4436
4436
|
part="prefix-icon"
|
|
4437
4437
|
name="${this.prefixIcon}"
|
|
@@ -4450,7 +4450,7 @@
|
|
|
4450
4450
|
size="1"
|
|
4451
4451
|
length-unit="rem"
|
|
4452
4452
|
></mdc-icon>`:W}
|
|
4453
|
-
`}};
|
|
4453
|
+
`}};Eo.styles=[...Z.styles,...Tb],h([u({type:String,attribute:"prefix-icon"})],Eo.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],Eo.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],Eo.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],Eo.prototype,"disabled",2);var Ap=Eo;var xb=z.constructTagName("listheader");Ap.register(xb);var F0=Ap;var jd=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Jt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Jt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Jt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Jt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var Nn=class{static dispatchListItemEvent(o,t){t.dispatchEvent(new Event(o,{composed:!0,bubbles:!0}))}static onDisableListItem(o){this.dispatchListItemEvent("disabled",o)}static onEnableListItem(o){this.dispatchListItemEvent("enabled",o)}static onCreatedListItem(o){setTimeout(()=>{this.dispatchListItemEvent("created",o)},0)}static onDestroyedListItem(o){this.dispatchListItemEvent("destroyed",o)}};var $0=B`
|
|
4454
4454
|
:host {
|
|
4455
4455
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
4456
4456
|
--mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
|
|
@@ -4595,7 +4595,7 @@
|
|
|
4595
4595
|
${this.renderTrailingControls()}
|
|
4596
4596
|
</div>
|
|
4597
4597
|
</slot>
|
|
4598
|
-
`}};qe.styles=[...Z.styles,...Ab],h([jt({slot:"leading-controls"})],qe.prototype,"leadingControlsSlot",2),h([jt({slot:"trailing-controls"})],qe.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],qe.prototype,"variant",2),h([u({type:String,reflect:!0})],qe.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],qe.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],qe.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],qe.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],qe.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],qe.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],qe.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],qe.prototype,"active",2);var
|
|
4598
|
+
`}};qe.styles=[...Z.styles,...Ab],h([jt({slot:"leading-controls"})],qe.prototype,"leadingControlsSlot",2),h([jt({slot:"trailing-controls"})],qe.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],qe.prototype,"variant",2),h([u({type:String,reflect:!0})],qe.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],qe.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],qe.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],qe.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],qe.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],qe.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],qe.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],qe.prototype,"active",2);var Vi=qe;Vi.register(Wd);var V0=Vi;var z0=B`
|
|
4599
4599
|
:host {
|
|
4600
4600
|
--mdc-marker-width: 0.25rem;
|
|
4601
4601
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -4620,7 +4620,7 @@
|
|
|
4620
4620
|
var(--mdc-marker-striped-background-color) 0.375rem
|
|
4621
4621
|
);
|
|
4622
4622
|
}
|
|
4623
|
-
`,Sb=[z0];var Ib=z.constructTagName("marker"),Cb={SOLID:"solid",STRIPED:"striped"};var Mn=class extends Z{constructor(){super(...arguments);this.variant=Cb.SOLID}};Mn.styles=[...Z.styles,...Sb],h([u({type:String,reflect:!0})],Mn.prototype,"variant",2);var Sp=Mn;Sp.register(Ib);var B0=Sp;var be=z.constructTagName("menupopover"),Ip={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var
|
|
4623
|
+
`,Sb=[z0];var Ib=z.constructTagName("marker"),Cb={SOLID:"solid",STRIPED:"striped"};var Mn=class extends Z{constructor(){super(...arguments);this.variant=Cb.SOLID}};Mn.styles=[...Z.styles,...Sb],h([u({type:String,reflect:!0})],Mn.prototype,"variant",2);var Sp=Mn;Sp.register(Ib);var B0=Sp;var be=z.constructTagName("menupopover"),Ip={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var zi=z.constructTagName("menusection"),_b={DIVIDER_VARIANT:"solid"};var To=z.constructTagName("sidenavigation"),cr={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},qd={VARIANT:cr.FLEXIBLE};var Ln=z.constructTagName("menubar"),kb={ORIENTATION:"vertical"};var H0=B`
|
|
4624
4624
|
:host {
|
|
4625
4625
|
display: flex;
|
|
4626
4626
|
}
|
|
@@ -4632,7 +4632,7 @@
|
|
|
4632
4632
|
:host([aria-orientation='vertical']) {
|
|
4633
4633
|
flex-direction: column;
|
|
4634
4634
|
}
|
|
4635
|
-
`,wb=[H0];var On=class extends Lt(Nt(Z)){constructor(){super();this.depthManager=new
|
|
4635
|
+
`,wb=[H0];var On=class extends Lt(Nt(Z)){constructor(){super();this.depthManager=new lo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(c=>c!==e);this.getVisibleSubMenusOfItems(i).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=kb.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var c,f;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],l=y=>{y.role===et.MENUITEM&&!y.hasAttribute("disabled")?i.push(y):y.tagName.toLowerCase()===zi&&Array.from(y.children).forEach(l)};return e.forEach(l),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let l=i.getAttribute("id");if(!l)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${be}[triggerid="${l}"]`);c&&c.visible&&e.push(c)}),e}getAllPopovers(){var l,c;if(!this.menuItems.length)return[];let t=(c=(l=this.menuItems[0])==null?void 0:l.closest(To))!=null?c:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${be}`).forEach(y=>{e.push(y)}),f.querySelectorAll("slot").forEach(y=>{y.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let l=i===0?"0":"-1";e==null||e.setAttribute("tabindex",l)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(l=>l.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var l,c;i<0||e<0||(e!==i&&((l=t[e])==null||l.setAttribute("tabindex","-1"),(c=t[i])==null||c.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var y;let{length:l}=this.menuItems;if(l===0)return;let c=t;if(this.getKeyboardNavMode()===ee.DEFAULT?c=e==="prev"?(t-1+l)%l:(t+1)%l:c=e==="prev"?Math.max(0,t-1):Math.min(t+1,l-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),i)){let A=(y=this.menuItems[c])==null?void 0:y.getAttribute("id");this.getSubmenu(A)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(A),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),l=(c=e.parentElement)==null?void 0:c.tagName.toLowerCase();return i===Ln||i===To||i===zi&&(l===Ln||l===To)}isNestedMenuItem(t){return!!t.closest(be)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(e=>this.contains(e));await Promise.all(t.map(e=>e.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(be),l=i==null?void 0:i.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===l);if(c){this.isTopLevelMenuItem(c)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(c);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===be){let i=e.getAttribute("triggerid"),l=this.menuItems.find(c=>c.getAttribute("id")===i);if(l)return this.isTopLevelMenuItem(l)?this.menuItems.findIndex(c=>c===l):this.getParentMenuItemIndex(l)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case Y.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case Y.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case Y.LEFT:{let l=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(l);break}case Y.RIGHT:{let l=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(l);break}case Y.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case Y.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return S`<slot></slot>`}};On.styles=[...Z.styles,...wb],h([jt({selector:"mdc-menusection",flatten:!0})],On.prototype,"menusections",2);var Cp=On;Cp.register(Ln);var U0=Cp;var Rn=z.constructTagName("menuitem"),Dn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},_p={POSITIVE:"positive",NEGATIVE:"negative"},kp={LEADING:"leading",TRAILING:"trailing"};var G0=B`
|
|
4636
4636
|
:host(:dir(rtl))::part(trailing-arrow),
|
|
4637
4637
|
:host(:dir(rtl))::part(leading-arrow) {
|
|
4638
4638
|
transform: rotate(180deg);
|
|
@@ -4641,7 +4641,7 @@
|
|
|
4641
4641
|
:host::part(leading-arrow) {
|
|
4642
4642
|
--mdc-icon-size: 1rem;
|
|
4643
4643
|
}
|
|
4644
|
-
`,Nb=[G0];var
|
|
4644
|
+
`,Nb=[G0];var xo=class extends Vi{handleKeyDown(o){this.getActionForKeyEvent(o)===Y.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===Y.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=kn.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===_p.NEGATIVE?Dn.LEFT:Dn.RIGHT;return S`
|
|
4645
4645
|
<slot
|
|
4646
4646
|
name="trailing-controls"
|
|
4647
4647
|
@click=${this.stopEventPropagation}
|
|
@@ -4657,7 +4657,7 @@
|
|
|
4657
4657
|
@keydown=${this.stopEventPropagation}
|
|
4658
4658
|
></slot>
|
|
4659
4659
|
${this.arrowPosition===kp.LEADING?S`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:W}
|
|
4660
|
-
`}};
|
|
4660
|
+
`}};xo.styles=[...Vi.styles,...Nb],h([u({type:String,reflect:!0,attribute:"arrow-position"})],xo.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],xo.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],xo.prototype,"name",2),h([u({type:String,reflect:!0})],xo.prototype,"value",2);var Lr=xo;Lr.register(Rn);var K0=Lr;var Mb=z.constructTagName("statictoggle"),W0={DEFAULT:"default",COMPACT:"compact"},wp={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Lb={compact:.75,default:1.25},Ob={SIZE:W0.DEFAULT};var Y0=[B`
|
|
4661
4661
|
:host {
|
|
4662
4662
|
--mdc-statictoggle-width: 3rem;
|
|
4663
4663
|
--mdc-statictoggle-height: 1.5rem;
|
|
@@ -4752,7 +4752,7 @@
|
|
|
4752
4752
|
border: 1px solid GrayText;
|
|
4753
4753
|
}
|
|
4754
4754
|
}
|
|
4755
|
-
`],Rb=Y0;var
|
|
4755
|
+
`],Rb=Y0;var Ao=class extends te(Z){constructor(){super(...arguments);this.checked=!1;this.size=Ob.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return S`
|
|
4756
4756
|
<slot></slot>
|
|
4757
4757
|
<div part="slider">
|
|
4758
4758
|
<mdc-icon
|
|
@@ -4762,7 +4762,7 @@
|
|
|
4762
4762
|
size="${Lb[this.size]}"
|
|
4763
4763
|
></mdc-icon>
|
|
4764
4764
|
</div>
|
|
4765
|
-
`}};
|
|
4765
|
+
`}};Ao.styles=[...Z.styles,...Rb],h([u({type:Boolean,reflect:!0})],Ao.prototype,"checked",2),h([u({type:String,reflect:!0})],Ao.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Ao.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Ao.prototype,"softDisabled",2);var Np=Ao;Np.register(Mb);var j0=Np;var Pn=z.constructTagName("tooltip"),Or={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Xe={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${ke.MOUSEENTER} ${ke.FOCUSIN}`,OFFSET:4,PLACEMENT:Mt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Or.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var q0=B`
|
|
4766
4766
|
:host {
|
|
4767
4767
|
--mdc-tooltip-max-width: 400px;
|
|
4768
4768
|
--mdc-tooltip-padding: 0.75rem;
|
|
@@ -4786,14 +4786,14 @@
|
|
|
4786
4786
|
:host([color='contrast'])::part(popover-content) {
|
|
4787
4787
|
color: var(--mdc-tooltip-text-color-contrast);
|
|
4788
4788
|
}
|
|
4789
|
-
`,Db=[q0];var ca=class extends nr{constructor(){super(...arguments);this.tooltipType=Xe.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Xe.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Xe.ARIA_HIDDEN,this.backdrop=Xe.BACKDROP,this.delay=this.delay||Xe.DELAY,this.disableAriaExpanded=Xe.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Xe.HIDE_ON_BLUR,this.hideOnEscape=Xe.HIDE_ON_ESCAPE,this.offset=this.offset||Xe.OFFSET,this.placement=this.placement||Xe.PLACEMENT,this.trigger=Xe.TRIGGER,this.closeButton=bt.CLOSE_BUTTON,this.disableFlip=bt.DISABLE_FLIP,this.focusBackToTrigger=bt.FOCUS_BACK,this.focusTrap=bt.FOCUS_TRAP,this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE,this.interactive=bt.INTERACTIVE,this.preventScroll=bt.PREVENT_SCROLL,this.size=bt.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Or).includes(t)?t:Xe.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${ze()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case Or.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Or.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=Xe.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Or).includes(this.tooltipType)||this.setTooltipType(Xe.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Or.DESCRIPTION:e===Or.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Or.LABEL:e===Or.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Or.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Or.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:i}=this;t===e||!i||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&pf(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};ca.styles=[...nr.styles,...Db],h([u({type:String,attribute:"tooltip-type",reflect:!0})],ca.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],ca.prototype,"onlyShowWhenTriggerOverflows",2);var Mp=ca;Mp.register(Pn);var X0=Mp;var Pb=z.constructTagName("toggle"),Fn={DEFAULT:"default",COMPACT:"compact"};var Lp={SIZE:Fn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var
|
|
4789
|
+
`,Db=[q0];var ca=class extends nr{constructor(){super(...arguments);this.tooltipType=Xe.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=Xe.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=et.TOOLTIP,this.ariaHidden=Xe.ARIA_HIDDEN,this.backdrop=Xe.BACKDROP,this.delay=this.delay||Xe.DELAY,this.disableAriaExpanded=Xe.DISABLE_ARIA_EXPANDED,this.hideOnBlur=Xe.HIDE_ON_BLUR,this.hideOnEscape=Xe.HIDE_ON_ESCAPE,this.offset=this.offset||Xe.OFFSET,this.placement=this.placement||Xe.PLACEMENT,this.trigger=Xe.TRIGGER,this.closeButton=bt.CLOSE_BUTTON,this.disableFlip=bt.DISABLE_FLIP,this.focusBackToTrigger=bt.FOCUS_BACK,this.focusTrap=bt.FOCUS_TRAP,this.hideOnOutsideClick=bt.HIDE_ON_CLICK_OUTSIDE,this.interactive=bt.INTERACTIVE,this.preventScroll=bt.PREVENT_SCROLL,this.size=bt.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Or).includes(t)?t:Xe.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${ze()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case Or.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Or.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=Xe.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Or).includes(this.tooltipType)||this.setTooltipType(Xe.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Or.DESCRIPTION:e===Or.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Or.LABEL:e===Or.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Or.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Or.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:i}=this;t===e||!i||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&pf(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};ca.styles=[...nr.styles,...Db],h([u({type:String,attribute:"tooltip-type",reflect:!0})],ca.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],ca.prototype,"onlyShowWhenTriggerOverflows",2);var Mp=ca;Mp.register(Pn);var X0=Mp;var Pb=z.constructTagName("toggle"),Fn={DEFAULT:"default",COMPACT:"compact"};var Lp={SIZE:Fn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var hi=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=Ce.consume({host:this,context:ip.Context})}willUpdate(){this.controlType&&Ld.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=Md.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var Xd=z.constructTagName("menuitemcheckbox"),$n={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Fb={INDICATOR:$n.CHECKBOX};var Z0=B`
|
|
4790
4790
|
:host::part(checkmark-icon) {
|
|
4791
4791
|
--mdc-icon-fill-color: currentColor;
|
|
4792
4792
|
}
|
|
4793
4793
|
:host .hidden-checkmark {
|
|
4794
4794
|
visibility: hidden;
|
|
4795
4795
|
}
|
|
4796
|
-
`,$b=[Z0];var ha=class extends
|
|
4796
|
+
`,$b=[Z0];var ha=class extends hi(Lr){constructor(){super();this.checked=!1;this.indicator=Fb.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===$n.CHECKBOX?S`
|
|
4797
4797
|
<mdc-staticcheckbox
|
|
4798
4798
|
slot="leading-controls"
|
|
4799
4799
|
?checked="${this.checked}"
|
|
@@ -4842,7 +4842,7 @@
|
|
|
4842
4842
|
:host .hidden-checkmark {
|
|
4843
4843
|
visibility: hidden;
|
|
4844
4844
|
}
|
|
4845
|
-
`,zb=[J0];var pa=class extends
|
|
4845
|
+
`,zb=[J0];var pa=class extends hi(Lr){constructor(){super();this.checked=!1;this.indicator=Vb.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${zi}, ${be}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(e=>{e!==this&&e.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===Qd.RADIO?S`
|
|
4846
4846
|
<mdc-staticradio
|
|
4847
4847
|
slot="leading-controls"
|
|
4848
4848
|
?checked="${this.checked}"
|
|
@@ -4884,7 +4884,7 @@
|
|
|
4884
4884
|
::slotted(mdc-divider) {
|
|
4885
4885
|
margin-block: 0.25rem;
|
|
4886
4886
|
}
|
|
4887
|
-
`,Ub=[eS];var Vn=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},Pp=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===be};var zn=class extends nr{constructor(){super();this.placement=Ip.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.closeAllMenuPopovers(),l&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e;(e=this.triggerElement)!=null&&e.hasAttribute("soft-disabled")||(t.composedPath().find(i=>i.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;Vn(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.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(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,l=this.getCurrentIndex(i);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case Y.HOME:{this.resetTabIndexAndSetFocus(0,l),e=!0;break}case Y.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),e=!0;break}case Y.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case Y.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case Y.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&(f.show(),e=!0);break}case Y.LEFT:{Pp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),e=!0);break}case Y.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),e=!0);break}case Y.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case Y.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case Y.SPACE:{!i.matches(`${Zd}, ${Xd}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,l;let e=t.getAttribute("id");return e?(l=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:l.call(i,`${be}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(l=>l.tagName.toLowerCase()===
|
|
4887
|
+
`,Ub=[eS];var Vn=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},Pp=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===be};var zn=class extends nr{constructor(){super();this.placement=Ip.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!i||l)&&(this.closeAllMenuPopovers(),l&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e;(e=this.triggerElement)!=null&&e.hasAttribute("soft-disabled")||(t.composedPath().find(i=>i.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;Vn(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.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(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,l=this.getCurrentIndex(i);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case Y.HOME:{this.resetTabIndexAndSetFocus(0,l),e=!0;break}case Y.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),e=!0;break}case Y.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case Y.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case Y.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&(f.show(),e=!0);break}case Y.LEFT:{Pp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),e=!0);break}case Y.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),e=!0);break}case Y.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case Y.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case Y.SPACE:{!i.matches(`${Zd}, ${Xd}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,l;let e=t.getAttribute("id");return e?(l=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:l.call(i,`${be}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(l=>l.tagName.toLowerCase()===zi?Array.from(l.children).filter(c=>Vn(c)):Vn(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let l=this.getSubMenuPopoverOfTarget(i);l&&l.visible&&e.push(l)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Ip.ORIENTATION,this.backdrop=!1,this.color=Qo.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,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![Rn,So].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let l=this.getSubMenuPopoverOfTarget(i);l&&l.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&Pp(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(l=>l!==t);this.getOpenSubMenusOfItems(e).forEach(l=>{l.hide()})}fireMenuItemAction(t){t.matches(Rn)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!Vn(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};zn.styles=[...nr.styles,...Ub],h([u({type:String,reflect:!0})],zn.prototype,"placement",2);var Fp=zn;Fp.register(be);var rS=Fp;var Jd=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var i,l;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((l=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?l:[]).some(c=>c!==o&&c.tagName.toLowerCase()===be&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],e=o;for(;e;){let i=e==null?void 0:e.closest(be);if(!i)break;let l=i.getAttribute("triggerid");if(!l)break;let c=document.getElementById(l);if(c&&c.tagName.toLowerCase()===So)t.push(c),e=c;else break}return t}setCurrentActiveNavMenuItem(o){var l;let t=((l=this.currentActiveNavMenuItem)==null?void 0:l.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};Jd.context=To;var tc=Jd;var iS=B`
|
|
4888
4888
|
:host {
|
|
4889
4889
|
--mdc-sidenavigation-expanded-width: 14.5rem;
|
|
4890
4890
|
--mdc-sidenavigation-expanded-left-padding: 1rem;
|
|
@@ -5022,7 +5022,7 @@
|
|
|
5022
5022
|
:host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
|
|
5023
5023
|
opacity: 1;
|
|
5024
5024
|
}
|
|
5025
|
-
`,Gb=[iS];var
|
|
5025
|
+
`,Gb=[iS];var Bi=class extends Ie{constructor(){super({context:tc.context,initialValue:new tc(qd.VARIANT,!0)});this.variant=qd.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===cr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return tc.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case cr.FIXED_EXPANDED:this.expanded=!0;break;case cr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===cr.FLEXIBLE||this.variant===cr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext())}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${So}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(cr).includes(t)?t:qd.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===cr.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){t.key===wt.SPACE&&t.preventDefault()}render(){var t;return this.variant===cr.HIDDEN?S``:S`
|
|
5026
5026
|
<div part="side-navigation-container" id="side-nav-container">
|
|
5027
5027
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
|
5028
5028
|
<slot name="scrollable-section">
|
|
@@ -5066,7 +5066,7 @@
|
|
|
5066
5066
|
aria-controls="side-nav-container"
|
|
5067
5067
|
></mdc-button>
|
|
5068
5068
|
</mdc-divider>`:W}
|
|
5069
|
-
`}};
|
|
5069
|
+
`}};Bi.styles=[...Z.styles,...Gb],h([u({type:String,reflect:!0})],Bi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],Bi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],Bi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Bi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Bi.prototype,"hideFixedSectionDivider",2);var vs=Bi;var oS=B`
|
|
5070
5070
|
:host {
|
|
5071
5071
|
--mdc-menusection-divider-margin-block: 0.25rem;
|
|
5072
5072
|
--mdc-menusection-gap: 0rem;
|
|
@@ -5087,7 +5087,7 @@
|
|
|
5087
5087
|
:host::part(align-header) {
|
|
5088
5088
|
--mdc-listheader-padding: var(--mdc-menusection-header-padding);
|
|
5089
5089
|
}
|
|
5090
|
-
`,Kb=[oS];var
|
|
5090
|
+
`,Kb=[oS];var pi=class extends Z{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=_b.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=Ce.consume({host:this,context:vs.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",et.GROUP)}update(t){var l;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(l=this.sideNavigationContext)==null?void 0:l.value;if(!e)return;let{expanded:i}=e;this.hideHeaderText=!i}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
|
|
5091
5091
|
part="header ${(e=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&e.expanded?"align-header":""}"
|
|
5092
5092
|
header-text="${this.headerText}"
|
|
5093
5093
|
prefix-icon="${J(this.prefixIcon)}"
|
|
@@ -5096,7 +5096,7 @@
|
|
|
5096
5096
|
${this.hideHeaderText?null:this.renderHeader()}
|
|
5097
5097
|
<slot part="container"></slot>
|
|
5098
5098
|
${this.showDivider?S`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
|
5099
|
-
`}};
|
|
5099
|
+
`}};pi.styles=[...Z.styles,...Kb],h([u({type:String,reflect:!0,attribute:"aria-label"})],pi.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],pi.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],pi.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],pi.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],pi.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],pi.prototype,"hideHeaderText",2);var $p=pi;$p.register(zi);var sS=$p;var aS=[yt,B`
|
|
5100
5100
|
:host {
|
|
5101
5101
|
--mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
|
|
5102
5102
|
--mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
|
|
@@ -5380,7 +5380,7 @@
|
|
|
5380
5380
|
:host([data-hidden]) {
|
|
5381
5381
|
display: none;
|
|
5382
5382
|
}
|
|
5383
|
-
`],qb=cS;var gs=class extends pe(
|
|
5383
|
+
`],qb=cS;var gs=class extends pe(Vi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=kn.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}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Yb):W;return S`
|
|
5384
5384
|
<div part="leading">
|
|
5385
5385
|
<slot name="leading-controls">
|
|
5386
5386
|
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):W}
|
|
@@ -5391,7 +5391,7 @@
|
|
|
5391
5391
|
</div>
|
|
5392
5392
|
</div>
|
|
5393
5393
|
<div part="trailing">${t}</div>
|
|
5394
|
-
`}};gs.styles=[
|
|
5394
|
+
`}};gs.styles=[...Vi.styles,...qb],h([u({type:Boolean,reflect:!0})],gs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],gs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],gs.prototype,"ariaLabel",2);var Hp=gs;Hp.register(Tr);var hS=Hp;var Up={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Xb=z.constructTagName("password");var pS=[B`
|
|
5395
5395
|
input::-ms-reveal {
|
|
5396
5396
|
display: none;
|
|
5397
5397
|
}
|
|
@@ -5406,7 +5406,7 @@
|
|
|
5406
5406
|
aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
|
|
5407
5407
|
prefix-icon=${this.showPassword?Up.HIDE_BOLD:Up.SHOW_BOLD}
|
|
5408
5408
|
></mdc-button>
|
|
5409
|
-
`:W}renderInputElement(t,e){let i=this.showPassword?
|
|
5409
|
+
`:W}renderInputElement(t,e){let i=this.showPassword?bo.TEXT:bo.PASSWORD;return super.renderInputElement(i,e)}};bs.styles=[...jr.styles,...Zb],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],bs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],bs.prototype,"hideButtonAriaLabel",2),h([dt()],bs.prototype,"showPassword",2);var Gp=bs;Gp.register(Xb);var mS=Gp;var rc=z.constructTagName("progressbar"),ic={DEFAULT:"default",INLINE:"inline"},Qb={VARIANT:ic.DEFAULT,VALIDATION:qt.DEFAULT};var uS=[yt,B`
|
|
5410
5410
|
:host {
|
|
5411
5411
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
5412
5412
|
--mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
|
|
@@ -5708,7 +5708,7 @@
|
|
|
5708
5708
|
slot[name='filters']::slotted(:first-child) {
|
|
5709
5709
|
margin-left: 0.25rem;
|
|
5710
5710
|
}
|
|
5711
|
-
`,ny=[xS];var ly=z.constructTagName("searchfield"),ac={TYPE:
|
|
5711
|
+
`,ny=[xS];var ly=z.constructTagName("searchfield"),ac={TYPE:bo.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var AS=[wd,na,$l],dy=AS.join(", ");var Es=class extends hi(Lt(jr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===Y.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===Y.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===Y.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===Y.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===Y.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,l=i.value.length;i.setSelectionRange(l,l),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var c,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),l=i&&(f=(c=this.chips)==null?void 0:c.indexOf(i))!=null?f:-1;l>=0&&(this.focusedChipIndex=l,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var c;super.handleKeyDown(t);let e=this.getActionForKeyEvent(t);if(e===Y.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((c=this.chips)!=null&&c.length))return;let i=this.inputElement,l=i.selectionStart===0&&i.selectionEnd===0;if(e===Y.BACKSPACE&&l){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===Y.LEFT&&l){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===Y.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=ac.ICON,this.trailingButton=ac.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(dy)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove()}clearInputText(){var e;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(na)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,l,c;if((i=this.chips)!=null&&i.includes(t))return t;let e=(l=t.getRootNode())==null?void 0:l.host;return e&&((c=this.chips)!=null&&c.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),l=t.getBoundingClientRect();l.left<i.left?e.scrollLeft-=i.left-l.left:l.right>i.right&&(e.scrollLeft+=l.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let l=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,l)}render(){return S`
|
|
5712
5712
|
${this.renderLabelElement()}
|
|
5713
5713
|
<div
|
|
5714
5714
|
class="${Yr({"mdc-focus-ring":this.isInputFocused})}"
|
|
@@ -5757,7 +5757,7 @@
|
|
|
5757
5757
|
min-width: auto;
|
|
5758
5758
|
padding: 0.75rem 0.5rem;
|
|
5759
5759
|
}
|
|
5760
|
-
`,cy=[IS];var hy=z.constructTagName("searchpopover"),Xp={TYPE:
|
|
5760
|
+
`,cy=[IS];var hy=z.constructTagName("searchpopover"),Xp={TYPE:bo.TEXT,DISPLAY_POPOVER:!1},Zp="searchpopover-container-triggerid",nc="searchpopover-popoverid";var Io=class extends ua{constructor(){super(...arguments);this.displayPopover=Xp.DISPLAY_POPOVER;this.placement=Mt.BOTTOM_START;this.popoverZIndex=void 0}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="filters-container"]'))!=null?e:null}renderInputElement(){var e,i;let t=this.hasChips?"":this.placeholder;return S`<input
|
|
5761
5761
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
|
5762
5762
|
part="input-text"
|
|
5763
5763
|
id="${this.inputId}"
|
|
@@ -5928,7 +5928,7 @@
|
|
|
5928
5928
|
:host([soft-disabled])::part(base-text) {
|
|
5929
5929
|
--mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
5930
5930
|
}
|
|
5931
|
-
`,fy=[_S,...Et(!0)];var hr=class extends
|
|
5931
|
+
`,fy=[_S,...Et(!0)];var hr=class extends yo(Nt(ci(Ve(pe(ie(Qt)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=bt.BOUNDARY;this.strategy=bt.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=uy.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,l)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||l.length===0)return;let c=i+1;if(c>=l.length&&(c=i-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?l[c]:l[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Tr}:not([disabled])`);this.addEventListener(Jt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var l;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((l=this.selectedOption)==null?void 0:l.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),y=this.navItems.find(F=>F.value===i),A=null;if(y)A=y;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(F=>{this.onerror&&this.onerror(F)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===Tr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,l;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(l=this.inputElement)==null||l.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(l=>l.value===t||l.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||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())}setupDebounceSearch(){this.debounceSearch=_d(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var l;return(l=i.getAttribute("label"))==null?void 0:l.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],l=this.filterOptionsBySearchKey(i,t),c=null;if(l.length)[c]=l;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],y=this.filterOptionsBySearchKey(i,t[0]),A=y.filter(F=>F===f);c=A.length?A[0]:y[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===ee.DEFAULT)switch(e){case Y.DOWN:case Y.UP:case Y.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case Y.SPACE:t.preventDefault(),t.stopPropagation();break;case Y.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case Y.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===Y.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===ee.DEFAULT&&e===Y.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===ee.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,l,c,f;return S`
|
|
5932
5932
|
${this.renderLabel()}
|
|
5933
5933
|
<div part="container">
|
|
5934
5934
|
<div
|
|
@@ -6012,7 +6012,7 @@
|
|
|
6012
6012
|
</mdc-popover>
|
|
6013
6013
|
</div>
|
|
6014
6014
|
${this.renderHelperText()}
|
|
6015
|
-
`}};hr.styles=[...Qt.styles,...fy],h([u({type:String})],hr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],hr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],hr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],hr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],hr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],hr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],hr.prototype,"backdropAppendTo",2),h([Kt(`[id="${lc}"]`)],hr.prototype,"visualCombobox",2),h([dt()],hr.prototype,"selectedOption",2),h([dt()],hr.prototype,"displayPopover",2);var tm=hr;tm.register(py);var kS=tm;var em=class extends Z{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},rm=em;var dc=z.constructTagName("selectlistbox");rm.register(dc);var wS=rm;vs.register(
|
|
6015
|
+
`}};hr.styles=[...Qt.styles,...fy],h([u({type:String})],hr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],hr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],hr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],hr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],hr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],hr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],hr.prototype,"backdropAppendTo",2),h([Kt(`[id="${lc}"]`)],hr.prototype,"visualCombobox",2),h([dt()],hr.prototype,"selectedOption",2),h([dt()],hr.prototype,"displayPopover",2);var tm=hr;tm.register(py);var kS=tm;var em=class extends Z{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},rm=em;var dc=z.constructTagName("selectlistbox");rm.register(dc);var wS=rm;vs.register(To);var NS=vs;var vy=z.constructTagName("skeleton"),gy={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},by={VARIANT:gy.RECTANGULAR};var MS=B`
|
|
6016
6016
|
:host {
|
|
6017
6017
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
|
6018
6018
|
--mdc-skeleton-height: 100%;
|
|
@@ -6117,7 +6117,7 @@
|
|
|
6117
6117
|
<svg part="container" viewBox="0 0 100 100">
|
|
6118
6118
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
|
6119
6119
|
</svg>
|
|
6120
|
-
`}};Co.styles=[...Z.styles,...Ey],h([u({type:Boolean,reflect:!0})],Co.prototype,"inverted",2),h([u({type:String,reflect:!0})],Co.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],Co.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],Co.prototype,"variant",2);var om=Co;om.register(Ty);var PS=om;gn.register(Pg);var FS=gn;var $S={COMPLETE:"complete",INCOMPLETE:"incomplete"},sm={VERTICAL:"vertical",HORIZONTAL:"horizontal"},am={STATUS:$S.INCOMPLETE,ORIENTATION:sm.HORIZONTAL},xy=z.constructTagName("stepperconnector");var Ay=z.constructTagName("stepperitem"),nm={INLINE:"inline",STACKED:"stacked"},
|
|
6120
|
+
`}};Co.styles=[...Z.styles,...Ey],h([u({type:Boolean,reflect:!0})],Co.prototype,"inverted",2),h([u({type:String,reflect:!0})],Co.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],Co.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],Co.prototype,"variant",2);var om=Co;om.register(Ty);var PS=om;gn.register(Pg);var FS=gn;var $S={COMPLETE:"complete",INCOMPLETE:"incomplete"},sm={VERTICAL:"vertical",HORIZONTAL:"horizontal"},am={STATUS:$S.INCOMPLETE,ORIENTATION:sm.HORIZONTAL},xy=z.constructTagName("stepperconnector");var Ay=z.constructTagName("stepperitem"),nm={INLINE:"inline",STACKED:"stacked"},Hi={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},hc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},lm={VARIANT:nm.INLINE,STATUS:Hi.NOT_STARTED};var pc=z.constructTagName("stepper"),Kn={ORIENTATION:sm.HORIZONTAL,VARIANT:nm.INLINE};var mc=class{constructor(o,t){this.orientation=o,this.variant=t}};mc.context=pc;var uc=mc;var VS=B`
|
|
6121
6121
|
:host {
|
|
6122
6122
|
gap: 0.5rem;
|
|
6123
6123
|
}
|
|
@@ -6345,14 +6345,14 @@
|
|
|
6345
6345
|
:host([status='error-incomplete']:active) {
|
|
6346
6346
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
|
6347
6347
|
}
|
|
6348
|
-
`,Cy=[yt,US,...Et()];var
|
|
6348
|
+
`,Cy=[yt,US,...Et()];var Ui=class extends Lt(Nt(ei(Z))){constructor(){super();this.variant=lm.VARIANT;this.status=lm.STATUS;this.label="";this.stepperContext=Ce.consume({host:this,context:Ts.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var i;super.updated(t);let e=(i=this.stepperContext)==null?void 0:i.value;!e||!e.variant||(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===Y.ENTER||e===Y.SPACE)&&(this.classList.add("pressed"),e===Y.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===Y.ENTER||e===Y.SPACE)&&(this.classList.remove("pressed"),e===Y.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Hi.COMPLETED?S`<mdc-icon part="status-icon" name=${hc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Hi.ERROR_CURRENT||this.status===Hi.CURRENT?S`<mdc-icon part="status-icon" name=${hc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Hi.NOT_STARTED||this.status===Hi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${mt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
|
6349
6349
|
>${this.stepNumber}</mdc-text
|
|
6350
6350
|
>`:W}renderHelpText(){if(!this.helpText)return W;let t=S`<mdc-text
|
|
6351
6351
|
part="help-text"
|
|
6352
6352
|
tagname=${mt.SPAN}
|
|
6353
6353
|
type=${ot.BODY_MIDSIZE_REGULAR}
|
|
6354
6354
|
>${this.helpText}</mdc-text
|
|
6355
|
-
>`;return this.status===
|
|
6355
|
+
>`;return this.status===Hi.ERROR_INCOMPLETE||this.status===Hi.ERROR_CURRENT?S`<div part="help-text-container">
|
|
6356
6356
|
<mdc-icon part="help-icon" name=${hc.ERROR} length-unit="rem" size="1"></mdc-icon>
|
|
6357
6357
|
${t}
|
|
6358
6358
|
</div>`:t}render(){return S` <div part="status-container">${this.renderStatusIcon()}</div>
|
|
@@ -6361,7 +6361,7 @@
|
|
|
6361
6361
|
>${this.label}</mdc-text
|
|
6362
6362
|
>`:W}
|
|
6363
6363
|
${this.renderHelpText()}
|
|
6364
|
-
</div>`}};
|
|
6364
|
+
</div>`}};Ui.styles=[...Z.styles,...Cy],h([u({type:String,reflect:!0})],Ui.prototype,"variant",2),h([u({type:String,reflect:!0})],Ui.prototype,"status",2),h([u({type:String,reflect:!0})],Ui.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],Ui.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],Ui.prototype,"stepNumber",2);var cm=Ui;cm.register(Ay);var GS=cm;var ga=z.constructTagName("tab"),hm={GLASS:"glass",LINE:"line",PILL:"pill"},fc={VARIANT:hm.PILL,ACTIVE:!1};var KS=[yt,B`
|
|
6365
6365
|
:host {
|
|
6366
6366
|
--mdc-tab-content-gap: 0.5rem;
|
|
6367
6367
|
--mdc-tab-height: 2rem;
|
|
@@ -6623,7 +6623,7 @@
|
|
|
6623
6623
|
<slot name="postfix"></slot>
|
|
6624
6624
|
</div>
|
|
6625
6625
|
<div part="indicator"></div>
|
|
6626
|
-
`}};_o.styles=[...fe.styles,..._y],h([u({type:Boolean,reflect:!0})],_o.prototype,"active",2),h([u({type:String,reflect:!0})],_o.prototype,"text",2),h([u({type:String,reflect:!0})],_o.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],_o.prototype,"tabId",2);var
|
|
6626
|
+
`}};_o.styles=[...fe.styles,..._y],h([u({type:Boolean,reflect:!0})],_o.prototype,"active",2),h([u({type:String,reflect:!0})],_o.prototype,"text",2),h([u({type:String,reflect:!0})],_o.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],_o.prototype,"tabId",2);var Gi=_o;Gi.register(ga);var vc=Gi;var pm=a=>a.at(0),ky=a=>a.at(a.length-1),wy=(a,o)=>a.find(t=>t.tabId===o),mm=a=>a.find(o=>o.active);var gc=a=>{class o extends a{constructor(...e){super(...e),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.navItems||!this.activeTabId)return;let i=wy(this.navItems,this.activeTabId);if(!(i instanceof vc))return;this.setActiveTab(i),e.get("activeTabId")&&this.fireTabChangeEvent(i)}}setActiveTab(e){var i;(i=this.navItems)==null||i.forEach(l=>{l===e?l.setAttribute("active",""):l.removeAttribute("active")})}fireTabChangeEvent(e){let i=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(i)}async handleNestedTabActiveChange(e){e.stopPropagation();let i=e.target;i instanceof vc&&(this.activeTabId=i.tabId)}}return h([u({type:String,attribute:"active-tab-id",reflect:!0})],o.prototype,"activeTabId",2),o};var WS=[Fr,B`
|
|
6627
6627
|
:host {
|
|
6628
6628
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
|
6629
6629
|
--mdc-tablist-gap: 0.5rem;
|
|
@@ -6653,7 +6653,7 @@
|
|
|
6653
6653
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
|
6654
6654
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
|
6655
6655
|
}
|
|
6656
|
-
`],Ny=[...WS];var My=z.constructTagName("tablist"),ba={FORWARD:"forward",BACKWARD:"backward"};var
|
|
6656
|
+
`],Ny=[...WS];var My=z.constructTagName("tablist"),ba={FORWARD:"forward",BACKWARD:"backward"};var Ki=class extends yo(ci(Lt(Nt(gc(Z))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${ga}:not([disabled])`)}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=i+1;l>=this.navItems.length&&(l=i-1);let c=this.navItems.at(l);c instanceof Gi&&c.focus(),this.resetTabIndexes(l,!1)}}resetTabIndexAndSetFocus(t,e){var c;let i=super.resetTabIndexAndSetFocus(t,e,!1,!1),l=(c=this.navItems)==null?void 0:c.at(t);return l instanceof Gi&&l.focus(),this.handleArrowButtonVisibility(),i}async firstUpdated(){var i,l;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(c=>c.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(i=pm(this.navItems))==null?void 0:i.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}async handleFocus(t){if(t.relatedTarget instanceof Gi||!(t.target instanceof Gi))return;let e=mm(this.navItems||[]);if(!(e instanceof Gi))return;let i=this.navItems.findIndex(l=>l===e);this.resetTabIndexAndSetFocus(i,void 0)}shouldShowArrowButton(t){return t===ba.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=mm(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var U,Q,X;if(!this.navItems||!this.tabsContainer)return;let t=!1;((U=this.shadowRoot)==null?void 0:U.activeElement)instanceof Yo&&(t=!0);let e=pm(this.navItems),i=ky(this.navItems);if(!e||!i)return;let l=e.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=i.getBoundingClientRect().right,y=(X=this.tabsContainer)==null?void 0:X.getBoundingClientRect().right,A=e.getBoundingClientRect().right,F=i.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>y?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>y?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,F<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var l;let e=this.isRtl()?-1:1,i=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===ba.FORWARD?e:i),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",i=l=>S` ${this.shouldShowArrowButton(l)?S`<mdc-button
|
|
6657
6657
|
variant="tertiary"
|
|
6658
6658
|
prefix-icon="arrow-${l===ba.FORWARD?t:e}-regular"
|
|
6659
6659
|
aria-label="Scroll tabs ${l===ba.FORWARD?t:e}"
|
|
@@ -6662,7 +6662,7 @@
|
|
|
6662
6662
|
<div part="container" role="${et.TABLIST}" tabindex="-1" aria-label="${J(this.dataAriaLabel)}">
|
|
6663
6663
|
<slot></slot>
|
|
6664
6664
|
</div>
|
|
6665
|
-
${i(ba.FORWARD)}`}};
|
|
6665
|
+
${i(ba.FORWARD)}`}};Ki.styles=[...Z.styles,...Ny],h([u({type:String,attribute:"data-aria-label"})],Ki.prototype,"dataAriaLabel",2),h([Kt('[part="container"]')],Ki.prototype,"tabsContainer",2),h([Kt("mdc-button:not(:focus-visible)")],Ki.prototype,"notFocusedArrowButton",2),h([dt()],Ki.prototype,"showForwardArrowButton",2),h([dt()],Ki.prototype,"showBackwardArrowButton",2);var um=Ki;um.register(My);var YS=um;var Ly=z.constructTagName("textarea"),fm={HARD:"hard",SOFT:"soft"},Oy={OFF:"off",ON:"on"},Wn={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:fm.SOFT};var jS=[B`
|
|
6666
6666
|
:host {
|
|
6667
6667
|
--mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
|
|
6668
6668
|
--mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -7163,16 +7163,16 @@
|
|
|
7163
7163
|
:host::part(typewriter-hidden) {
|
|
7164
7164
|
display: none;
|
|
7165
7165
|
}
|
|
7166
|
-
`],Fy=QS;var $y=z.constructTagName("typewriter"),xs={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},
|
|
7167
|
-
<div part="${
|
|
7166
|
+
`],Fy=QS;var $y=z.constructTagName("typewriter"),xs={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},mi={TYPE:Oe.TYPE,TEXT_ELEMENT_TAGNAME:Oe.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CSS_PART_HIDDEN:"typewriter-hidden",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var qr=class extends Z{constructor(){super(...arguments);this.type=mi.TYPE;this.tagname=mi.TEXT_ELEMENT_TAGNAME;this.speed=mi.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,e){let i=window.setTimeout(()=>{this.pendingTimeouts.delete(i),t()},e);return this.pendingTimeouts.add(i),i}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,e,i){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:e,instant:i}),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(),e=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=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(mi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(mi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return xs.SLOW;case"fast":return xs.FAST;case"very-slow":return xs.VERY_SLOW;case"very-fast":return xs.VERY_FAST;case"normal":return xs.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?xs.NORMAL:Math.max(10,e)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!t)return;let e=t.assignedNodes().filter(l=>l.nodeType===Node.TEXT_NODE||l.nodeType===Node.ELEMENT_NODE).map(l=>l.textContent||"").join("");e!==this.previousTextContent&&(this.displayedText===""||!e.includes(this.displayedText)?(this.originalText=e,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=e,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=e,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 e=()=>{if(this.currentIndex<this.originalText.length){let i=this.originalText[this.currentIndex],l=this.displayedText+i;l!==this.displayedText&&(this.displayedText=l,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(mi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return S`
|
|
7167
|
+
<div part="${mi.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
|
|
7168
7168
|
<mdc-text
|
|
7169
|
-
part="${
|
|
7169
|
+
part="${mi.CSS_PART_TEXT}"
|
|
7170
7170
|
type="${this.type}"
|
|
7171
7171
|
tagname="${J(this.tagname)}"
|
|
7172
7172
|
aria-label="${this.originalText}"
|
|
7173
7173
|
>${this.displayedText}</mdc-text
|
|
7174
7174
|
>
|
|
7175
|
-
<slot @slotchange=${this.handleSlotChange} part="${
|
|
7175
|
+
<slot @slotchange=${this.handleSlotChange} part="${mi.CSS_PART_HIDDEN}"></slot>
|
|
7176
7176
|
</div>
|
|
7177
7177
|
`}};qr.styles=[...Z.styles,...Fy],h([u({attribute:"type",reflect:!0,type:String})],qr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],qr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],qr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],qr.prototype,"maxQueueSize",2),h([dt()],qr.prototype,"displayedText",2),h([dt()],qr.prototype,"originalText",2),h([dt()],qr.prototype,"typingComplete",2);var Tm=qr;Tm.register($y);var JS=Tm;var bc=z.constructTagName("themeprovider"),xm={THEMECLASS:"mds-theme-stable-darkWebex"};var yc=class{constructor(o){this.themeclass=o}};yc.context=bc;var Ec=yc;var tI=B`
|
|
7178
7178
|
:host {
|
|
@@ -7198,7 +7198,7 @@
|
|
|
7198
7198
|
* {
|
|
7199
7199
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
|
7200
7200
|
}
|
|
7201
|
-
`,Vy=[tI];var ya=class extends Ie{constructor(){super({context:Ec.context,initialValue:new Ec(xm.THEMECLASS)});this.themeclass=xm.THEMECLASS}static get Context(){return Ec.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(" "))}};ya.styles=[...Ie.styles,...Vy],h([dt()],ya.prototype,"currentThemeClass",2),h([u({type:String})],ya.prototype,"themeclass",2);var Am=ya;Am.register(bc);var eI=Am;var zy=z.constructTagName("toast"),Yn={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Tc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},pr={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:Ir[20],BUTTON:
|
|
7201
|
+
`,Vy=[tI];var ya=class extends Ie{constructor(){super({context:Ec.context,initialValue:new Ec(xm.THEMECLASS)});this.themeclass=xm.THEMECLASS}static get Context(){return Ec.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(" "))}};ya.styles=[...Ie.styles,...Vy],h([dt()],ya.prototype,"currentThemeClass",2),h([u({type:String})],ya.prototype,"themeclass",2);var Am=ya;Am.register(bc);var eI=Am;var zy=z.constructTagName("toast"),Yn={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Tc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},pr={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:Ir[20],BUTTON:Ai,PRIMARY_BUTTON:Vt.PRIMARY,SECONDARY_BUTTON:Vt.SECONDARY,TERTIARY_BUTTON:Vt.TERTIARY,VARIANT:Yn.CUSTOM};var By=a=>{switch(a){case Yn.SUCCESS:return Tc.SUCCESS_ICON_NAME;case Yn.WARNING:return Tc.WARNING_ICON_NAME;case Yn.ERROR:return Tc.ERROR_ICON_NAME;default:return null}};var rI=B`
|
|
7202
7202
|
:host {
|
|
7203
7203
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
7204
7204
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -7408,7 +7408,7 @@
|
|
|
7408
7408
|
:host([soft-disabled]) {
|
|
7409
7409
|
pointer-events: none;
|
|
7410
7410
|
}
|
|
7411
|
-
`,...Et(!0)],Uy=oI;var As=class extends Nt(
|
|
7411
|
+
`,...Et(!0)],Uy=oI;var As=class extends Nt(hi(Ve(pe(ie(dr))))){constructor(){super(...arguments);this.checked=!1;this.size=Lp.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:W}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}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.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===Y.SPACE&&t.preventDefault(),e===Y.ENTER&&this.getKeyboardNavMode()===ee.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Fn).includes(t)?t:Lp.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
|
|
7412
7412
|
<mdc-statictoggle
|
|
7413
7413
|
?checked="${this.checked}"
|
|
7414
7414
|
?disabled="${this.disabled}"
|
|
@@ -7471,7 +7471,7 @@
|
|
|
7471
7471
|
::slotted(mdc-listitem) {
|
|
7472
7472
|
position: relative;
|
|
7473
7473
|
}
|
|
7474
|
-
`],Jy=cI;var tE=z.constructTagName("virtualizedlist"),
|
|
7474
|
+
`],Jy=cI;var tE=z.constructTagName("virtualizedlist"),Drt=z.constructTagName("virtualizedwrapper"),jn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var mr=class extends ie($i){constructor(){super();this.virtualizerProps=jn.VIRTUALIZER_PROPS;this.loop=jn.LOOP;this.scrollAnchoring=jn.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=jn.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(l=>l===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=wn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Jt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,l;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(l=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?l:"data-index";this.virtualizedNavItems=new Ic(super.navItems,f=>Number(f.getAttribute(c)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Ac(this,{...this.virtualizerProps,horizontal:!1,getScrollElement:()=>this.scrollRef,onChange:this.onVListStateChangeHandler.bind(this),rangeExtractor:this.virtualizerRangeExtractor.bind(this)}),this.virtualizer=this.virtualizerController.getVirtualizer(),super.connectedCallback(),this.role=null,this.atBottom=this.revertList&&this.scrollAnchoring?"yes":"no",this.resizeObserver=new ResizeObserver(this.handleResizeObserverCallback.bind(this)),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.clearScrollToBottomTimer(),this.virtualizerController=null,this.virtualizer=null,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}async update(t){super.update(t),t.has("orientation")&&this.orientation!==wn.VERTICAL&&(this.orientation=wn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,l;this.observeSizeChanges&&((l=(i=this.virtualizer)==null?void 0:i.measureElement)==null||l.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var l,c;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((l=t==null?void 0:t.count)!=null?l:0)),y=this.selectedIndex,A=this.firstKey,F=new Sc(y-f,y+f,{includeEnd:!0}),U=(c=Array.from(F).find(X=>e.options.getItemKey(X)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(U),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&y!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let X=e.measurementsCache[this.selectedIndex].end-i[y].end;this.scrollRef.scrollTop+=X}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,l,c,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(l=this.virtualizer)==null?void 0:l.getVirtualItems)==null?void 0:c.call(l))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var y,A,F,U;let{navItems:e,virtualizerProps:i,virtualizer:l}=this,c=(A=(y=i.rangeExtractor)==null?void 0:y.call(i,t))!=null?A:_m(t);return this.hiddenIndexes.forEach(Q=>{let X=e.at(Q);X&&(X.removeAttribute("data-virtualized-hidden"),X.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(U=(F=this.virtualizer)==null?void 0:F.options.getItemKey(this.firstIndex))!=null?U:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var X;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((X=l==null?void 0:l.options.count)!=null?X:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,X)=>Q-X),c}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:l}=this;if(!l||i.count===0)return;let{measurementsCache:c}=l;this.hiddenIndexes.forEach(f=>{let y=e.at(f);if(y){let A=Math.max(t.startIndex-t.overscan,0),F=c[A],U=c[f];y.setAttribute("data-virtualized-hidden","true"),y.style.setProperty("--mdc-virtualizedlist-hidden-top",`${U.start-F.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){if(e==="added"){let i=this.isElementSelected(t);t.tabIndex=i?0:-1,this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,l,c,f;switch(this.getActionForKeyEvent(t)){case Y.HOME:{(l=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||l.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case Y.END:{let y=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,y,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(y));break}case Y.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,e,i=!0,l=i){if(this.navItems.find(y=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(y))===t})===void 0)return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,l),this.setSelectedIndex(t)}),!0;let f=super.resetTabIndexAndSetFocus(t,e,i,l);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,l;(l=(i=this.virtualizer).scrollToIndex)==null||l.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var l;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),e=(l=t==null?void 0:t.start)!=null?l:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return S`
|
|
7475
7475
|
<slot name="list-header"></slot>
|
|
7476
7476
|
<div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
|
|
7477
7477
|
<div part="wrapper">
|
|
@@ -7480,7 +7480,7 @@
|
|
|
7480
7480
|
</div>
|
|
7481
7481
|
</div>
|
|
7482
7482
|
</div>
|
|
7483
|
-
`}};mr.styles=[
|
|
7483
|
+
`}};mr.styles=[...$i.styles,...Jy],h([u({type:Object})],mr.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],mr.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],mr.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],mr.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],mr.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],mr.prototype,"atBottomThreshold",2),h([Kt('[part="scroll"]',!0)],mr.prototype,"scrollRef",2),h([Kt('[part="wrapper"]',!0)],mr.prototype,"wrapperRef",2),h([Kt('[part="container"]',!0)],mr.prototype,"containerRef",2),h([tf({passive:!0})],mr.prototype,"onScrollHandler",1);var wm=mr;wm.register(tE);var hI=wm;fe.register(of);var pI=fe;var eE=z.constructTagName("combobox"),Nm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Mm={MATCH_STARTS_WITH:"match-starts-with",NONE:"none"},rE="list";var Lm="combobox-trigger-id";var wo=class{static dispatchComboboxEvent(o,t,e,i=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:i}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var mI=B`
|
|
7484
7484
|
:host {
|
|
7485
7485
|
--mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
7486
7486
|
--mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -7589,7 +7589,7 @@
|
|
|
7589
7589
|
--mdc-icon-fill-color: ButtonText;
|
|
7590
7590
|
}
|
|
7591
7591
|
}
|
|
7592
|
-
`,iE=[mI];var Ne=class extends Lt(Nt(ci(Ve(pe(ie(
|
|
7592
|
+
`,iE=[mI];var Ne=class extends Lt(Nt(ci(Ve(pe(ie(hi(Qt))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=bt.BOUNDARY;this.strategy=bt.STRATEGY;this.popoverZIndex=void 0;this.filter=Mm.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,l)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(c=>c.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let c=t;if(c&&(!this.isValidItem(c)||c.tabIndex!==0))return;let f=this.navItems.findIndex(A=>A===c);if(f===-1)return;let y=f+1;y>=this.navItems.length&&(y=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Jt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Mr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(Tr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===Mm.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let l=(t==null?void 0:t.getAttribute("label"))||"",c=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===c&&this.filteredValue===l)){if(this.controlType==="controlled"&&!i){e&&(wo.onInputCombobox(this,t),wo.onChangeCombobox(this,t));return}this.filteredValue=l,this.value=c,this.lastCommittedValue=c,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&(wo.onInputCombobox(this,t),wo.onChangeCombobox(this,t))}}resetSelectedValue(){this.controlType!=="controlled"&&(this.value=""),this.internals.setFormValue(this.value),this.resetHelpText()}resetHelpText(){this.invalidCustomValueText&&this.helpText===this.invalidCustomValueText&&(this.helpText="",this.helpTextType=qt.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let l=null;if(i!==""){let c=this.getFirstSelectedOption(),f=this.navItems.find(y=>y.value===i);if(f)l=f;else if(c)l=c;else if(this.placeholder)l=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(l,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,l;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(l=this.visualCombobox)==null||l.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(l=>l.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(l=>(l.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let l=this.navItems.find(c=>c.value===this.lastCommittedValue);this.setSelectedValue(l)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=qt.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var l;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(l=t[i])==null||l.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),i=e.findIndex(c=>c.hasAttribute("data-focused")),l=this.getKeyboardNavMode()===ee.SPATIAL;switch(this.getActionForKeyEvent(t)){case Y.DOWN:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case Y.UP:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,c),t.preventDefault(),this.keyDownEventHandled();break}case Y.ENTER:{if(l&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case Y.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case Y.TAB:{this.closePopover(),this.keyDownEventHandled();break}case Y.HOME:case Y.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let l=this.matchesFilter(i,this.filteredValue);l?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let c=i.parentElement;if(c&&c.matches(ec)){let y=c;e.add(y),l&&t.set(y,((f=t.get(y))!=null?f:0)+1)}}),e.forEach(i=>{var f;let l=((f=t.get(i))!=null?f:0)>0,c=i.nextElementSibling;l?(i.removeAttribute("data-hidden"),c&&c.matches(An)&&c.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),c&&c.matches(An)&&c.setAttribute("data-hidden",""))})}handleInputChange(t){var e;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),wo.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var i;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(Tr))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return S`
|
|
7593
7593
|
<input
|
|
7594
7594
|
id="${this.inputId}"
|
|
7595
7595
|
name="${this.name}"
|
|
@@ -7685,7 +7685,7 @@
|
|
|
7685
7685
|
</mdc-popover>
|
|
7686
7686
|
</div>
|
|
7687
7687
|
${this.renderHelperText()}
|
|
7688
|
-
`}};Ne.styles=[...jr.styles,...Qt.styles,...iE],h([u({type:String})],Ne.prototype,"placeholder",2),h([u({type:String,reflect:!0})],Ne.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],Ne.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],Ne.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],Ne.prototype,"boundary",2),h([u({type:String,reflect:!0})],Ne.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Ne.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],Ne.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ne.prototype,"backdropAppendTo",2),h([Kt(`[role="${et.COMBOBOX}"]`)],Ne.prototype,"visualCombobox",2),h([Kt('[part="combobox-button"]')],Ne.prototype,"dropDownButton",2),h([jt({selector:dc})],Ne.prototype,"slottedListboxes",2),h([dt()],Ne.prototype,"isOpen",2),h([dt()],Ne.prototype,"filteredValue",2);var Om=Ne;Om.register(eE);var uI=Om;var oE=(a,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(a[i],i);return e},sE=
|
|
7688
|
+
`}};Ne.styles=[...jr.styles,...Qt.styles,...iE],h([u({type:String})],Ne.prototype,"placeholder",2),h([u({type:String,reflect:!0})],Ne.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],Ne.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],Ne.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],Ne.prototype,"boundary",2),h([u({type:String,reflect:!0})],Ne.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Ne.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,converter:{toAttribute(t){return typeof t=="string"?t:null}}})],Ne.prototype,"filter",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Ne.prototype,"backdropAppendTo",2),h([Kt(`[role="${et.COMBOBOX}"]`)],Ne.prototype,"visualCombobox",2),h([Kt('[part="combobox-button"]')],Ne.prototype,"dropDownButton",2),h([jt({selector:dc})],Ne.prototype,"slottedListboxes",2),h([dt()],Ne.prototype,"isOpen",2),h([dt()],Ne.prototype,"filteredValue",2);var Om=Ne;Om.register(eE);var uI=Om;var oE=(a,o,t)=>{let e=new Map;for(let i=o;i<=t;i++)e.set(a[i],i);return e},sE=_i(class extends si{constructor(a){if(super(a),a.type!==gr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let i=[],l=[],c=0;for(let f of a)i[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:i}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,e]){var nt;let i=Ff(a),{values:l,keys:c}=this.dt(o,t,e);if(!Array.isArray(i))return this.ut=c,l;let f=(nt=this.ut)!=null?nt:this.ut=[],y=[],A,F,U=0,Q=i.length-1,X=0,tt=l.length-1;for(;U<=Q&&X<=tt;)if(i[U]===null)U++;else if(i[Q]===null)Q--;else if(f[U]===c[X])y[X]=no(i[U],l[X]),U++,X++;else if(f[Q]===c[tt])y[tt]=no(i[Q],l[tt]),Q--,tt--;else if(f[U]===c[tt])y[tt]=no(i[U],l[tt]),Hs(a,y[tt+1],i[U]),U++,tt--;else if(f[Q]===c[X])y[X]=no(i[Q],l[X]),Hs(a,i[U],i[Q]),Q--,X++;else if(A===void 0&&(A=oE(c,X,tt),F=oE(f,U,Q)),A.has(f[U]))if(A.has(f[Q])){let at=F.get(c[X]),ft=at!==void 0?i[at]:null;if(ft===null){let It=Hs(a,i[U]);no(It,l[X]),y[X]=It}else y[X]=no(ft,l[X]),Hs(a,i[U],ft),i[at]=null;X++}else Bl(i[Q]),Q--;else Bl(i[U]),U++;for(;X<=tt;){let at=Hs(a,y[tt+1]);no(at,l[X]),y[X++]=at}for(;U<=Q;){let at=i[U++];at!==null&&Bl(at)}return this.ut=c,zl(a,y),$e}});var aE=z.constructTagName("slider"),fI={START:"start",END:"end",UNDEFINED:void 0},No={MIN:0,MAX:100,STEP:1,STATE:fI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var vI=B`
|
|
7689
7689
|
:host {
|
|
7690
7690
|
width: 100%;
|
|
7691
7691
|
--mdc-slider-tooltip-left: 0;
|
|
@@ -8031,7 +8031,7 @@
|
|
|
8031
8031
|
::slotted(mdc-option) {
|
|
8032
8032
|
width: 100%;
|
|
8033
8033
|
}
|
|
8034
|
-
`,lE=[bI];var Mo=class extends
|
|
8034
|
+
`,lE=[bI];var Mo=class extends yo(ci(Z)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.multiple=!1;this.itemsStore=new Mr(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.multiple?this.syncValueToFirstSelected():this.setSelectedOption(e,!1,!1);break;case"unselected":this.multiple?this.syncValueToFirstSelected():this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Tr}:not([disabled])`)}handleClick(t){let i=t.target.closest(Tr);!i||!this.isValidItem(i)||(this.multiple?this.toggleOptionSelection(i):this.setSelectedOption(i))}toggleOptionSelection(t){if(t.disabled||t.softDisabled)return;let e=t.hasAttribute("selected");t.toggleAttribute("selected",!e),this.syncValueToFirstSelected(),this.fireEvents()}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}syncValueToFirstSelected(){let t=this.getFirstSelectedOption();this.value=t==null?void 0:t.value,this.selectedOption=t!=null?t:null}getSelectedValues(){return this.itemsStore.items.reduce((t,e)=>{let{value:i}=e;return e.hasAttribute("selected")&&i!==void 0&&t.push(i),t},[])}setInitialFocus(){let t=this.getFirstSelectedOption();if(t){let e=this.itemsStore.items.indexOf(t);if(e!==-1){this.resetTabIndexAndSetFocus(e,void 0,!1);return}}super.setInitialFocus()}updated(t){if(t.has("multiple")&&(this.multiple?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")),t.has("value")&&!this.multiple){let e=this.itemsStore.items.find(i=>i.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,i=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(i&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,selectedValues:this.getSelectedValues()},composed:!0,bubbles:!0}))}render(){return S`<slot part="container"></slot>`}};Mo.styles=[...xp.styles,...lE],h([u({type:String,reflect:!0})],Mo.prototype,"name",2),h([u({type:String,reflect:!0})],Mo.prototype,"value",2),h([u({type:Boolean,reflect:!0})],Mo.prototype,"multiple",2),h([dt()],Mo.prototype,"selectedOption",2);var Dm=Mo;var dE=z.constructTagName("listbox");Dm.register(dE);var yI=Dm;var cE=z.constructTagName("banner"),Ea={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},qn={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Cc={VARIANT:Ea.CUSTOM,PREFIX_ICON_SIZE:1.25};var EI=B`
|
|
8035
8035
|
:host {
|
|
8036
8036
|
--mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
8037
8037
|
--mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -8164,10 +8164,10 @@
|
|
|
8164
8164
|
--mdc-tab-line-active-indicator-width: 0.125rem;
|
|
8165
8165
|
--mdc-tab-content-justification: space-between;
|
|
8166
8166
|
}
|
|
8167
|
-
`,mE=[xI];var _c=class extends gc(
|
|
8167
|
+
`,mE=[xI];var _c=class extends gc($i){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${ga}:not([disabled])`)}onElementStoreUpdate(t,e,i){super.onElementStoreUpdate(t,e,i),e==="added"&&t.setAttribute("variant","line")}connectedCallback(){super.connectedCallback(),this.role=et.TABLIST,this.setAttribute("aria-orientation","vertical")}render(){return S`
|
|
8168
8168
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
8169
8169
|
<slot part="container" role="presentation"></slot>
|
|
8170
|
-
`}};_c.styles=[
|
|
8170
|
+
`}};_c.styles=[...$i.styles,...mE];var Fm=_c;var uE=z.constructTagName("verticaltablist");Fm.register(uE);var AI=Fm;})();
|
|
8171
8171
|
/*! Bundled license information:
|
|
8172
8172
|
|
|
8173
8173
|
lottie-web/build/player/lottie_light.js:
|