@momentum-design/components 0.130.4 → 0.130.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- "use strict";(()=>{var Yy=Object.create;var oc=Object.defineProperty;var Om=Object.getOwnPropertyDescriptor;var jy=Object.getOwnPropertyNames;var qy=Object.getPrototypeOf,Xy=Object.prototype.hasOwnProperty;var Zy=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var Qy=(a,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of jy(o))!Xy.call(a,s)&&s!==t&&oc(a,s,{get:()=>o[s],enumerable:!(r=Om(o,s))||r.enumerable});return a};var Jy=(a,o,t)=>(t=a!=null?Yy(qy(a)):{},Qy(o||!a||!a.__esModule?oc(t,"default",{value:a,enumerable:!0}):t,a));var m=(a,o,t,r)=>{for(var s=r>1?void 0:r?Om(o,t):o,d=a.length-1,c;d>=0;d--)(c=a[d])&&(s=(r?c(o,t,s):c(s))||s);return r&&s&&oc(o,t,s),s};var Hu=Zy((Bn,xl)=>{typeof navigator<"u"&&function(a,o){typeof Bn=="object"&&typeof xl<"u"?xl.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(Bn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},d=function(){return t},c=function(i){o=i},f=function(){return o};function y(e){return document.createElement(e)}function I(e,i){var n,l=e.length,p;for(n=0;n<l;n+=1){p=e[n].prototype;for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(i.prototype[h]=p[h])}}function $(e,i){return Object.getOwnPropertyDescriptor(e,i)}function Y(e){function i(){}return i.prototype=e,i}var Q=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].pause()},resume:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].resume()},setRate:function(n){var l,p=this.audios.length;for(l=0;l<p;l+=1)this.audios[l].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,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),Z=function(){function e(n,l){var p=0,h=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(p=0;p<l;p+=1)h.push(g);return h}function i(n,l){return n==="float32"?new Float32Array(l):n==="int16"?new Int16Array(l):n==="uint8c"?new Uint8ClampedArray(l):e(n,l)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i:e}();function it(e){return Array.apply(null,{length:e})}function lt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(n){return typeof n}:lt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lt(e)}var dt=!0,gt=null,It=null,wt="",jt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Bt=!1,qt=Math.pow,re=Math.sqrt,ve=Math.floor,xr=Math.max,$e=Math.min,sr={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,n=e.length;for(i=0;i<n;i+=1)sr[e[i]]=Math[e[i]]})();function Ar(){return{}}sr.random=Math.random,sr.abs=function(e){var i=lt(e);if(i==="object"&&e.length){var n=it(e.length),l,p=e.length;for(l=0;l<p;l+=1)n[l]=Math.abs(e[l]);return n}return Math.abs(e)};var Sr=150,kt=Math.PI/180,Te=.5519;function nr(e){Bt=!!e}function ar(e){return Bt?Math.round(e):e}function lr(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function dr(e,i,n,l){this.type=e,this.currentTime=i,this.totalTime=n,this.direction=l<0?-1:1}function ka(e,i){this.type=e,this.direction=i<0?-1:1}function Vp(e,i,n,l){this.type=e,this.currentLoop=n,this.totalLoops=i,this.direction=l<0?-1:1}function Bp(e,i,n){this.type=e,this.firstFrame=i,this.totalFrames=n}function Up(e,i){this.type=e,this.target=i}function Yb(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function jb(e){this.type="configError",this.nativeError=e}function K0(e,i){this.type=e,this.nativeError=i}var ze=function(){var e=0;return function(){return e+=1,wt+"__lottie_element_"+e}}();function Kd(e,i,n){var l,p,h,g,A,b,k,M;switch(g=Math.floor(e*6),A=e*6-g,b=n*(1-i),k=n*(1-A*i),M=n*(1-(1-A)*i),g%6){case 0:l=n,p=M,h=b;break;case 1:l=k,p=n,h=b;break;case 2:l=b,p=n,h=M;break;case 3:l=b,p=k,h=n;break;case 4:l=M,p=b,h=n;break;case 5:l=n,p=b,h=k;break;default:break}return[l,p,h]}function Wd(e,i,n){var l=Math.max(e,i,n),p=Math.min(e,i,n),h=l-p,g,A=l===0?0:h/l,b=l/255;switch(l){case p:g=0;break;case e:g=i-n+h*(i<n?6:0),g/=6*h;break;case i:g=n-e+h*2,g/=6*h;break;case n:g=e-i+h*4,g/=6*h;break;default:break}return[g,A,b]}function Hp(e,i){var n=Wd(e[0]*255,e[1]*255,e[2]*255);return n[1]+=i,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Kd(n[0],n[1],n[2])}function Gp(e,i){var n=Wd(e[0]*255,e[1]*255,e[2]*255);return n[2]+=i,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Kd(n[0],n[1],n[2])}function Kp(e,i){var n=Wd(e[0]*255,e[1]*255,e[2]*255);return n[0]+=i/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Kd(n[0],n[1],n[2])}var W0=function(){var e=[],i,n;for(i=0;i<256;i+=1)n=i.toString(16),e[i]=n.length===1?"0"+n:n;return function(l,p,h){return l<0&&(l=0),p<0&&(p=0),h<0&&(h=0),"#"+e[l]+e[p]+e[h]}}(),qb=function(i){dt=!!i},Xb=function(){return dt},Zb=function(i){gt=i},Na=function(){return gt},Y0=function(i){It=i},Wp=function(){return It},La=function(i){Sr=i},nn=function(){return Sr},Qb=function(i){wt=i},j0=function(){return wt};function Tt(e){return document.createElementNS(a,e)}function Ma(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ma=function(n){return typeof n}:Ma=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ma(e)}var an=function(){var e=1,i=[],n,l,p={onmessage:function(){},postMessage:function(O){n({data:O})}},h={postMessage:function(O){p.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&d()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),D=URL.createObjectURL(O);return new Worker(D)}return n=x,p}function A(){l||(l=g(function(O){function D(){function B(et,_){var P,v,E=et.length,K,z,at,vt;for(v=0;v<E;v+=1)if(P=et[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for(z=Et.length,K=0;K<z;K+=1)if(Et[K].pt.k.i)N(Et[K].pt.k);else for(vt=Et[K].pt.k.length,at=0;at<vt;at+=1)Et[K].pt.k[at].s&&N(Et[K].pt.k[at].s[0]),Et[K].pt.k[at].e&&N(Et[K].pt.k[at].e[0])}P.ty===0?(P.layers=T(P.refId,_),B(P.layers,_)):P.ty===4?S(P.shapes):P.ty===5&&xt(P)}}function L(et,_){if(et){var P=0,v=et.length;for(P=0;P<v;P+=1)et[P].t===1&&(et[P].data.layers=T(et[P].data.refId,_),B(et[P].data.layers,_))}}function w(et,_){for(var P=0,v=_.length;P<v;){if(_[P].id===et)return _[P];P+=1}return null}function T(et,_){var P=w(et,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function S(et){var _,P=et.length,v,E;for(_=P-1;_>=0;_-=1)if(et[_].ty==="sh")if(et[_].ks.k.i)N(et[_].ks.k);else for(E=et[_].ks.k.length,v=0;v<E;v+=1)et[_].ks.k[v].s&&N(et[_].ks.k[v].s[0]),et[_].ks.k[v].e&&N(et[_].ks.k[v].e[0]);else et[_].ty==="gr"&&S(et[_].it)}function N(et){var _,P=et.i.length;for(_=0;_<P;_+=1)et.i[_][0]+=et.v[_][0],et.i[_][1]+=et.v[_][1],et.o[_][0]+=et.v[_][0],et.o[_][1]+=et.v[_][1]}function F(et,_){var P=_?_.split("."):[100,100,100];return et[0]>P[0]?!0:P[0]>et[0]?!1:et[1]>P[1]?!0:P[1]>et[1]?!1:et[2]>P[2]?!0:P[2]>et[2]?!1:null}var H=function(){var et=[4,4,14];function _(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&_(v[E])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),W=function(){var et=[4,7,99];return function(_){if(_.chars&&!F(et,_.v)){var P,v=_.chars.length;for(P=0;P<v;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(S(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[P].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"})))}}}}(),rt=function(){var et=[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 P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&_(v[E])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),yt=function(){var et=[4,1,9];function _(v){var E,K=v.length,z,at;for(E=0;E<K;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(at=v[E].c.k.length,z=0;z<at;z+=1)v[E].c.k[z].s&&(v[E].c.k[z].s[0]/=255,v[E].c.k[z].s[1]/=255,v[E].c.k[z].s[2]/=255,v[E].c.k[z].s[3]/=255),v[E].c.k[z].e&&(v[E].c.k[z].e[0]/=255,v[E].c.k[z].e[1]/=255,v[E].c.k[z].e[2]/=255,v[E].c.k[z].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 P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===4&&_(v[E].shapes)}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),mt=function(){var et=[4,4,18];function _(v){var E,K=v.length,z,at;for(E=K-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(at=v[E].ks.k.length,z=0;z<at;z+=1)v[E].ks.k[z].s&&(v[E].ks.k[z].s[0].c=v[E].closed),v[E].ks.k[z].e&&(v[E].ks.k[z].e[0].c=v[E].closed);else v[E].ty==="gr"&&_(v[E].it)}function P(v){var E,K,z=v.length,at,vt,Et,Rt;for(K=0;K<z;K+=1){if(E=v[K],E.hasMask){var Pt=E.masksProperties;for(vt=Pt.length,at=0;at<vt;at+=1)if(Pt[at].pt.k.i)Pt[at].pt.k.c=Pt[at].cl;else for(Rt=Pt[at].pt.k.length,Et=0;Et<Rt;Et+=1)Pt[at].pt.k[Et].s&&(Pt[at].pt.k[Et].s[0].c=Pt[at].cl),Pt[at].pt.k[Et].e&&(Pt[at].pt.k[Et].e[0].c=Pt[at].cl)}E.ty===4&&_(E.shapes)}}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}();function st(et){et.__complete||(yt(et),H(et),W(et),rt(et),mt(et),B(et.layers,et.assets),L(et.chars,et.assets),et.__complete=!0)}function xt(et){et.t.a.length===0&&"m"in et.t.p}var ct={};return ct.completeData=st,ct.checkColors=yt,ct.checkChars=W,ct.checkPathProperties=rt,ct.checkShapes=mt,ct.completeLayers=B,ct}if(h.dataManager||(h.dataManager=D()),h.assetLoader||(h.assetLoader=function(){function B(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&Ma(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,S,N){var F,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)F=B(H),S(F);else try{F=B(H),S(F)}catch(W){N&&N(W)}};try{H.open(["G","E","T"].join(""),w,!0)}catch{H.open(["G","E","T"].join(""),T+"/"+w,!0)}H.send()}return{load:L}}()),O.data.type==="loadAnimation")h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.dataManager.completeData(B),h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;h.dataManager.completeData(R),h.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})})}),l.onmessage=function(x){var O=x.data,D=O.id,R=i[D];i[D]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){e+=1;var D="processId_"+e;return i[D]={onComplete:x,onError:O},D}function k(x,O,D){A();var R=b(O,D);l.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function M(x,O,D){A();var R=b(O,D);l.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,O,D){A();var R=b(O,D);l.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:k,loadData:M,completeAnimation:G}}(),Jb=function(){var e=function(){var L=y("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function i(){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 l(L,w,T){var S="";if(L.e)S=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),S=w+N}else S=T,S+=L.u?L.u:"",S+=L.p;return S}function p(L){var w=0,T=setInterval((function(){var S=L.getBBox();(S.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function h(L){var w=l(L,this.assetsPath,this.path),T=Tt("image");jt?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var S={img:T,assetData:L};return S}function g(L){var w=l(L,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),T.src=w;var S={img:T,assetData:L};return S}function A(L){var w={assetData:L},T=l(L,this.assetsPath,this.path);return an.loadData(T,(function(S){w.img=S,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function b(L,w){this.imagesLoadedCb=w;var T,S=L.length;for(T=0;T<S;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function G(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function R(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function B(){this._imageLoaded=i.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=p.bind(this),this.createFootageData=A.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return B.prototype={loadAssets:b,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:D,destroy:x,getAsset:G,createImgData:g,createImageData:h,imageLoaded:i,footageLoaded:n,setCacheType:R},B}();function Yp(){}Yp.prototype={triggerEvent:function(i,n){if(this._cbs[i])for(var l=this._cbs[i],p=0;p<l.length;p+=1)l[p](n)},addEventListener:function(i,n){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(n),(function(){this.removeEventListener(i,n)}).bind(this)},removeEventListener:function(i,n){if(!n)this._cbs[i]=null;else if(this._cbs[i]){for(var l=0,p=this._cbs[i].length;l<p;)this._cbs[i][l]===n&&(this._cbs[i].splice(l,1),l-=1,p-=1),l+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var ty=function(){function e(i){for(var n=i.split(`\r
2
- `),l={},p,h=0,g=0;g<n.length;g+=1)p=n[g].split(":"),p.length===2&&(l[p[0]]=p[1].trim(),h+=1);if(h===0)throw new Error;return l}return function(i){for(var n=[],l=0;l<i.length;l+=1){var p=i[l],h={time:p.tm,duration:p.dr};try{h.payload=JSON.parse(i[l].cm)}catch{try{h.payload=e(i[l].cm)}catch{h.payload={name:i[l].cm}}}n.push(h)}return n}}(),ey=function(){function e(i){this.compositions.push(i)}return function(){function i(n){for(var l=0,p=this.compositions.length;l<p;){if(this.compositions[l].data&&this.compositions[l].data.nm===n)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),ln={},ry=function(i,n){ln[i]=n};function iy(e){return ln[e]}function oy(){if(ln.canvas)return"canvas";for(var e in ln)if(ln[e])return e;return""}function dn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dn=function(n){return typeof n}:dn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dn(e)}var ft=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=ze(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Xb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ey(),this.imagePreloader=new Jb,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 dr("drawnFrame",0,0,0),this.expressionsPlugin=Na()};I([Yp],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var n=iy(i);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),an.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){an.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&dn(i)!=="object"&&(i=JSON.parse(i));var n={wrapper:e,animationData:i},l=e.attributes;n.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",n.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:oy()||"canvas";var p=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";p==="false"?n.loop=!1:p==="true"?n.loop=!0:p!==""&&(n.loop=parseInt(p,10));var h=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;n.autoplay=h!=="false",n.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var g=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,n,l=i.length,p=e.layers,h,g=p.length;for(h=0;h<g;h+=1)for(n=0;n<l;){if(i[n].id===p[h].id){i[n]=p[h];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,n=0;n<l;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,an.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=Na();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,an.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=ty(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ft.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ft.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=Na();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var n=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(n,l)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.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")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,n=0;n<this.markers.length;n+=1)if(i=this.markers[n],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var p=this.getMarkerData(e);p&&this.goToAndStop(p.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var p=this.getMarkerData(e);p&&(p.duration?this.playSegments([p.time,p.time+p.duration],!0):this.goToAndStop(p.time,!0))}else this.goToAndStop(l,i,n);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,n=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(n=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,i=0)):this.setCurrentRawFrameValue(i),n&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>i&&(n=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),dn(e[0])==="object"){var n,l=e.length;for(n=0;n<l;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),i=this.assetsPath+n}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,n=this.assets.length;i<n;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,n){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,n)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new dr(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new Vp(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new ka(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new Bp(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Up(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new dr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Vp(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new ka(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Bp(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Up(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new Yb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new jb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ie=function(){var e={},i=[],n=0,l=0,p=0,h=!0,g=!1;function A(_){for(var P=0,v=_.target;P<l;)i[P].animation===v&&(i.splice(P,1),P-=1,l-=1,v.isPaused||G()),P+=1}function b(_,P){if(!_)return null;for(var v=0;v<l;){if(i[v].elem===_&&i[v].elem!==null)return i[v].animation;v+=1}var E=new ft;return x(E,_),E.setData(_,P),E}function k(){var _,P=i.length,v=[];for(_=0;_<P;_+=1)v.push(i[_].animation);return v}function M(){p+=1,yt()}function G(){p-=1}function x(_,P){_.addEventListener("destroy",A),_.addEventListener("_active",M),_.addEventListener("_idle",G),i.push({elem:P,animation:_}),l+=1}function O(_){var P=new ft;return x(P,null),P.setParams(_),P}function D(_,P){var v;for(v=0;v<l;v+=1)i[v].animation.setSpeed(_,P)}function R(_,P){var v;for(v=0;v<l;v+=1)i[v].animation.setDirection(_,P)}function B(_){var P;for(P=0;P<l;P+=1)i[P].animation.play(_)}function L(_){var P=_-n,v;for(v=0;v<l;v+=1)i[v].animation.advanceTime(P);n=_,p&&!g?window.requestAnimationFrame(L):h=!0}function w(_){n=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<l;P+=1)i[P].animation.pause(_)}function S(_,P,v){var E;for(E=0;E<l;E+=1)i[E].animation.goToAndStop(_,P,v)}function N(_){var P;for(P=0;P<l;P+=1)i[P].animation.stop(_)}function F(_){var P;for(P=0;P<l;P+=1)i[P].animation.togglePause(_)}function H(_){var P;for(P=l-1;P>=0;P-=1)i[P].animation.destroy(_)}function W(_,P,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,z=E.length;for(K=0;K<z;K+=1)v&&E[K].setAttribute("data-bm-type",v),b(E[K],_);if(P&&z===0){v||(v="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var vt=y("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",v),at.appendChild(vt),b(vt,_)}}function rt(){var _;for(_=0;_<l;_+=1)i[_].animation.resize()}function yt(){!g&&p&&h&&(window.requestAnimationFrame(w),h=!1)}function mt(){g=!0}function st(){g=!1,yt()}function xt(_,P){var v;for(v=0;v<l;v+=1)i[v].animation.setVolume(_,P)}function ct(_){var P;for(P=0;P<l;P+=1)i[P].animation.mute(_)}function et(_){var P;for(P=0;P<l;P+=1)i[P].animation.unmute(_)}return e.registerAnimation=b,e.loadAnimation=O,e.setSpeed=D,e.setDirection=R,e.play=B,e.pause=T,e.stop=N,e.togglePause=F,e.searchAnimations=W,e.resize=rt,e.goToAndStop=S,e.destroy=H,e.freeze=mt,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=et,e.getRegisteredAnimations=k,e}(),cn=function(){var e={};e.getBezierEasing=n;var i={};function n(w,T,S,N,F){var H=F||("bez_"+w+"_"+T+"_"+S+"_"+N).replace(/\./g,"p");if(i[H])return i[H];var W=new L([w,T,S,N]);return i[H]=W,W}var l=4,p=.001,h=1e-7,g=10,A=11,b=1/(A-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function G(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,S){return((M(T,S)*w+G(T,S))*w+x(T))*w}function D(w,T,S){return 3*M(T,S)*w*w+2*G(T,S)*w+x(T)}function R(w,T,S,N,F){var H,W,rt=0;do W=T+(S-T)/2,H=O(W,N,F)-w,H>0?S=W:T=W;while(Math.abs(H)>h&&++rt<g);return W}function B(w,T,S,N){for(var F=0;F<l;++F){var H=D(T,S,N);if(H===0)return T;var W=O(T,S,N)-w;T-=W/H}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var S=this._p[0],N=this._p[1],F=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),S===N&&F===H?T:T===0?0:T===1?1:O(this._getTForX(T),N,H)},_precompute:function(){var T=this._p[0],S=this._p[1],N=this._p[2],F=this._p[3];this._precomputed=!0,(T!==S||N!==F)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],S=this._p[2],N=0;N<A;++N)this._mSampleValues[N]=O(N*b,T,S)},_getTForX:function(T){for(var S=this._p[0],N=this._p[2],F=this._mSampleValues,H=0,W=1,rt=A-1;W!==rt&&F[W]<=T;++W)H+=b;--W;var yt=(T-F[W])/(F[W+1]-F[W]),mt=H+yt*b,st=D(mt,S,N);return st>=p?B(T,mt,S,N):st===0?mt:R(T,H,H+b,S,N)}},e}(),jp=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),Oa=function(){return function(e,i,n){var l=0,p=e,h=it(p),g={newElement:A,release:b};function A(){var k;return l?(l-=1,k=h[l]):k=i(),k}function b(k){l===p&&(h=jp.double(h),p*=2),n&&n(k),h[l]=k,l+=1}return g}}(),qp=function(){function e(){return{addedLength:0,percents:Z("float32",nn()),lengths:Z("float32",nn())}}return Oa(8,e)}(),Xp=function(){function e(){return{lengths:[],totalLength:0}}function i(n){var l,p=n.lengths.length;for(l=0;l<p;l+=1)qp.release(n.lengths[l]);n.lengths.length=0}return Oa(8,e,i)}();function sy(){var e=Math;function i(x,O,D,R,B,L){var w=x*R+O*B+D*L-B*R-L*x-D*O;return w>-.001&&w<.001}function n(x,O,D,R,B,L,w,T,S){if(D===0&&L===0&&S===0)return i(x,O,R,B,w,T);var N=e.sqrt(e.pow(R-x,2)+e.pow(B-O,2)+e.pow(L-D,2)),F=e.sqrt(e.pow(w-x,2)+e.pow(T-O,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(w-R,2)+e.pow(T-B,2)+e.pow(S-L,2)),W;return N>F?N>H?W=N-F-H:W=H-F-N:H>F?W=H-F-N:W=F-N-H,W>-1e-4&&W<1e-4}var l=function(){return function(x,O,D,R){var B=nn(),L,w,T,S,N,F=0,H,W=[],rt=[],yt=qp.newElement();for(T=D.length,L=0;L<B;L+=1){for(N=L/(B-1),H=0,w=0;w<T;w+=1)S=qt(1-N,3)*x[w]+3*qt(1-N,2)*N*D[w]+3*(1-N)*qt(N,2)*R[w]+qt(N,3)*O[w],W[w]=S,rt[w]!==null&&(H+=qt(W[w]-rt[w],2)),rt[w]=W[w];H&&(H=re(H),F+=H),yt.percents[L]=N,yt.lengths[L]=F}return yt.addedLength=F,yt}}();function p(x){var O=Xp.newElement(),D=x.c,R=x.v,B=x.o,L=x.i,w,T=x._length,S=O.lengths,N=0;for(w=0;w<T-1;w+=1)S[w]=l(R[w],R[w+1],B[w],L[w+1]),N+=S[w].addedLength;return D&&T&&(S[w]=l(R[w],R[0],B[w],L[0]),N+=S[w].addedLength),O.totalLength=N,O}function h(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var A=function(){var x={};return function(O,D,R,B){var L=(O[0]+"_"+O[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+B[0]+"_"+B[1]).replace(/\./g,"p");if(!x[L]){var w=nn(),T,S,N,F,H,W=0,rt,yt,mt=null;O.length===2&&(O[0]!==D[0]||O[1]!==D[1])&&i(O[0],O[1],D[0],D[1],O[0]+R[0],O[1]+R[1])&&i(O[0],O[1],D[0],D[1],D[0]+B[0],D[1]+B[1])&&(w=2);var st=new h(w);for(N=R.length,T=0;T<w;T+=1){for(yt=it(N),H=T/(w-1),rt=0,S=0;S<N;S+=1)F=qt(1-H,3)*O[S]+3*qt(1-H,2)*H*(O[S]+R[S])+3*(1-H)*qt(H,2)*(D[S]+B[S])+qt(H,3)*D[S],yt[S]=F,mt!==null&&(rt+=qt(yt[S]-mt[S],2));rt=re(rt),W+=rt,st.points[T]=new g(rt,yt),mt=yt}st.segmentLength=W,x[L]=st}return x[L]}}();function b(x,O){var D=O.percents,R=O.lengths,B=D.length,L=ve((B-1)*x),w=x*O.addedLength,T=0;if(L===B-1||L===0||w===R[L])return D[L];for(var S=R[L]>w?-1:1,N=!0;N;)if(R[L]<=w&&R[L+1]>w?(T=(w-R[L])/(R[L+1]-R[L]),N=!1):L+=S,L<0||L>=B-1){if(L===B-1)return D[L];N=!1}return D[L]+(D[L+1]-D[L])*T}function k(x,O,D,R,B,L){var w=b(B,L),T=1-w,S=e.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*D[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=e.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*D[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[S,N]}var M=Z("float32",8);function G(x,O,D,R,B,L,w){B<0?B=0:B>1&&(B=1);var T=b(B,w);L=L>1?1:L;var S=b(L,w),N,F=x.length,H=1-T,W=1-S,rt=H*H*H,yt=T*H*H*3,mt=T*T*H*3,st=T*T*T,xt=H*H*W,ct=T*H*W+H*T*W+H*H*S,et=T*T*W+H*T*S+T*H*S,_=T*T*S,P=H*W*W,v=T*W*W+H*S*W+H*W*S,E=T*S*W+H*S*S+T*W*S,K=T*S*S,z=W*W*W,at=S*W*W+W*S*W+W*W*S,vt=S*S*W+W*S*S+S*W*S,Et=S*S*S;for(N=0;N<F;N+=1)M[N*4]=e.round((rt*x[N]+yt*D[N]+mt*R[N]+st*O[N])*1e3)/1e3,M[N*4+1]=e.round((xt*x[N]+ct*D[N]+et*R[N]+_*O[N])*1e3)/1e3,M[N*4+2]=e.round((P*x[N]+v*D[N]+E*R[N]+K*O[N])*1e3)/1e3,M[N*4+3]=e.round((z*x[N]+at*D[N]+vt*R[N]+Et*O[N])*1e3)/1e3;return M}return{getSegmentsLength:p,getNewSegment:G,getPointInSegment:k,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:n}}var Dr=sy(),fo=r,Zp=Math.abs;function Qp(e,i){var n=this.offsetTime,l;this.propType==="multidimensional"&&(l=Z("float32",this.pv.length));for(var p=i.lastIndex,h=p,g=this.keyframes.length-1,A=!0,b,k,M;A;){if(b=this.keyframes[h],k=this.keyframes[h+1],h===g-1&&e>=k.t-n){b.h&&(b=k),p=0;break}if(k.t-n>e){p=h;break}h<g-1?h+=1:(p=0,A=!1)}M=this.keyframesMetadata[h]||{};var G,x,O,D,R,B,L=k.t-n,w=b.t-n,T;if(b.to){M.bezierData||(M.bezierData=Dr.buildBezierData(b.s,k.s||b.e,b.to,b.ti));var S=M.bezierData;if(e>=L||e<w){var N=e>=L?S.points.length-1:0;for(x=S.points[N].point.length,G=0;G<x;G+=1)l[G]=S.points[N].point[G]}else{M.__fnct?B=M.__fnct:(B=cn.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,M.__fnct=B),O=B((e-w)/(L-w));var F=S.segmentLength*O,H,W=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastPoint:0,A=!0,D=S.points.length;A;){if(W+=S.points[R].partialLength,F===0||O===0||R===S.points.length-1){for(x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G];break}else if(F>=W&&F<W+S.points[R+1].partialLength){for(H=(F-W)/S.points[R+1].partialLength,x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G]+(S.points[R+1].point[G]-S.points[R].point[G])*H;break}R<D-1?R+=1:A=!1}i._lastPoint=R,i._lastAddedLength=W-S.points[R].partialLength,i._lastKeyframeIndex=h}}else{var rt,yt,mt,st,xt;if(g=b.s.length,T=k.s||b.e,this.sh&&b.h!==1)if(e>=L)l[0]=T[0],l[1]=T[1],l[2]=T[2];else if(e<=w)l[0]=b.s[0],l[1]=b.s[1],l[2]=b.s[2];else{var ct=Jp(b.s),et=Jp(T),_=(e-w)/(L-w);ay(l,ny(ct,et,_))}else for(h=0;h<g;h+=1)b.h!==1&&(e>=L?O=1:e<w?O=0:(b.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[h]?B=M.__fnct[h]:(rt=b.o.x[h]===void 0?b.o.x[0]:b.o.x[h],yt=b.o.y[h]===void 0?b.o.y[0]:b.o.y[h],mt=b.i.x[h]===void 0?b.i.x[0]:b.i.x[h],st=b.i.y[h]===void 0?b.i.y[0]:b.i.y[h],B=cn.getBezierEasing(rt,yt,mt,st).get,M.__fnct[h]=B)):M.__fnct?B=M.__fnct:(rt=b.o.x,yt=b.o.y,mt=b.i.x,st=b.i.y,B=cn.getBezierEasing(rt,yt,mt,st).get,b.keyframeMetadata=B),O=B((e-w)/(L-w)))),T=k.s||b.e,xt=b.h===1?b.s[h]:b.s[h]+(T[h]-b.s[h])*O,this.propType==="multidimensional"?l[h]=xt:l=xt}return i.lastIndex=p,l}function ny(e,i,n){var l=[],p=e[0],h=e[1],g=e[2],A=e[3],b=i[0],k=i[1],M=i[2],G=i[3],x,O,D,R,B;return O=p*b+h*k+g*M+A*G,O<0&&(O=-O,b=-b,k=-k,M=-M,G=-G),1-O>1e-6?(x=Math.acos(O),D=Math.sin(x),R=Math.sin((1-n)*x)/D,B=Math.sin(n*x)/D):(R=1-n,B=n),l[0]=R*p+B*b,l[1]=R*h+B*k,l[2]=R*g+B*M,l[3]=R*A+B*G,l}function ay(e,i){var n=i[0],l=i[1],p=i[2],h=i[3],g=Math.atan2(2*l*h-2*n*p,1-2*l*l-2*p*p),A=Math.asin(2*n*l+2*p*h),b=Math.atan2(2*n*h-2*l*p,1-2*n*n-2*p*p);e[0]=g/kt,e[1]=A/kt,e[2]=b/kt}function Jp(e){var i=e[0]*kt,n=e[1]*kt,l=e[2]*kt,p=Math.cos(i/2),h=Math.cos(n/2),g=Math.cos(l/2),A=Math.sin(i/2),b=Math.sin(n/2),k=Math.sin(l/2),M=p*h*g-A*b*k,G=A*b*g+p*h*k,x=A*h*g+p*b*k,O=p*b*g-A*h*k;return[G,x,O,M]}function tm(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==fo&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function Ra(e){var i;if(this.propType==="unidimensional")i=e*this.mult,Zp(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,l=this.v.length;n<l;)i=e[n]*this.mult,Zp(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function Pa(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Da(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ly(e,i,n,l){this.propType="unidimensional",this.mult=n||1,this.data=i,this.v=n?i.k*n:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Pa,this.setVValue=Ra,this.addEffect=Da}function dy(e,i,n,l){this.propType="multidimensional",this.mult=n||1,this.data=i,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var p,h=i.k.length;for(this.v=Z("float32",h),this.pv=Z("float32",h),this.vel=Z("float32",h),p=0;p<h;p+=1)this.v[p]=i.k[p]*this.mult,this.pv[p]=i.k[p];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Pa,this.setVValue=Ra,this.addEffect=Da}function cy(e,i,n,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:fo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=fo,this.pv=fo,this._isFirstFrame=!0,this.getValue=Pa,this.setVValue=Ra,this.interpolateValue=Qp,this.effectsSequence=[tm.bind(this)],this.addEffect=Da}function hy(e,i,n,l){this.propType="multidimensional";var p,h=i.k.length,g,A,b,k;for(p=0;p<h-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(g=i.k[p].s,A=i.k[p+1].s,b=i.k[p].to,k=i.k[p].ti,(g.length===2&&!(g[0]===A[0]&&g[1]===A[1])&&Dr.pointOnLine2D(g[0],g[1],A[0],A[1],g[0]+b[0],g[1]+b[1])&&Dr.pointOnLine2D(g[0],g[1],A[0],A[1],A[0]+k[0],A[1]+k[1])||g.length===3&&!(g[0]===A[0]&&g[1]===A[1]&&g[2]===A[2])&&Dr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Dr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],A[0]+k[0],A[1]+k[1],A[2]+k[2]))&&(i.k[p].to=null,i.k[p].ti=null),g[0]===A[0]&&g[1]===A[1]&&b[0]===0&&b[1]===0&&k[0]===0&&k[1]===0&&(g.length===2||g[2]===A[2]&&b[2]===0&&k[2]===0)&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[tm.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=Pa,this.setVValue=Ra,this.interpolateValue=Qp,this.frameId=-1;var M=i.k[0].s.length;for(this.v=Z("float32",M),this.pv=Z("float32",M),p=0;p<M;p+=1)this.v[p]=fo,this.pv[p]=fo;this._caching={lastFrame:fo,lastIndex:0,value:Z("float32",M)},this.addEffect=Da}var nt=function(){function e(n,l,p,h,g){l.sid&&(l=n.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new ly(n,l,h,g);else if(typeof l.k[0]=="number")A=new dy(n,l,h,g);else switch(p){case 0:A=new cy(n,l,h,g);break;case 1:A=new hy(n,l,h,g);break;default:break}return A.effectsSequence.length&&g.addDynamicProperty(A),A}var i={getProp:e};return i}();function ge(){}ge.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var vo=function(){function e(){return Z("float32",2)}return Oa(8,e)}();function ti(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}ti.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var n=0;n<i;)this.v[n]=vo.newElement(),this.o[n]=vo.newElement(),this.i[n]=vo.newElement(),n+=1},ti.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ti.prototype.doubleArrayLength=function(){this.v=this.v.concat(it(this._maxLength)),this.i=this.i.concat(it(this._maxLength)),this.o=this.o.concat(it(this._maxLength)),this._maxLength*=2},ti.prototype.setXYAt=function(e,i,n,l,p){var h;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":h=this.v;break;case"i":h=this.i;break;case"o":h=this.o;break;default:h=[];break}(!h[l]||h[l]&&!p)&&(h[l]=vo.newElement()),h[l][0]=e,h[l][1]=i},ti.prototype.setTripleAt=function(e,i,n,l,p,h,g,A){this.setXYAt(e,i,"v",g,A),this.setXYAt(n,l,"o",g,A),this.setXYAt(p,h,"i",g,A)},ti.prototype.reverse=function(){var e=new ti;e.setPathData(this.c,this._length);var i=this.v,n=this.o,l=this.i,p=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],n[0][0],n[0][1],0,!1),p=1);var h=this._length-1,g=this._length,A;for(A=p;A<g;A+=1)e.setTripleAt(i[h][0],i[h][1],l[h][0],l[h][1],n[h][0],n[h][1],A,!1),h-=1;return e},ti.prototype.length=function(){return this._length};var xe=function(){function e(){return new ti}function i(p){var h=p._length,g;for(g=0;g<h;g+=1)vo.release(p.v[g]),vo.release(p.i[g]),vo.release(p.o[g]),p.v[g]=null,p.i[g]=null,p.o[g]=null;p._length=0,p.c=!1}function n(p){var h=l.newElement(),g,A=p._length===void 0?p.v.length:p._length;for(h.setLength(A),h.c=p.c,g=0;g<A;g+=1)h.setTripleAt(p.v[g][0],p.v[g][1],p.o[g][0],p.o[g][1],p.i[g][0],p.i[g][1],g);return h}var l=Oa(4,e,i);return l.clone=n,l}();function Yd(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}Yd.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(it(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},Yd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)xe.release(this.shapes[e]);this._length=0};var ls=function(){var e={newShapeCollection:p,release:h},i=0,n=4,l=it(n);function p(){var g;return i?(i-=1,g=l[i]):g=new Yd,g}function h(g){var A,b=g._length;for(A=0;A<b;A+=1)xe.release(g.shapes[A]);g._length=0,i===n&&(l=jp.double(l),n*=2),l[i]=g,i+=1}return e}(),Fa=function(){var e=-999999;function i(L,w,T){var S=T.lastIndex,N,F,H,W,rt,yt,mt,st,xt,ct=this.keyframes;if(L<ct[0].t-this.offsetTime)N=ct[0].s[0],H=!0,S=0;else if(L>=ct[ct.length-1].t-this.offsetTime)N=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var et=S,_=ct.length-1,P=!0,v,E,K;P&&(v=ct[et],E=ct[et+1],!(E.t-this.offsetTime>L));)et<_-1?et+=1:P=!1;if(K=this.keyframesMetadata[et]||{},H=v.h===1,S=et,!H){if(L>=E.t-this.offsetTime)st=1;else if(L<v.t-this.offsetTime)st=0;else{var z;K.__fnct?z=K.__fnct:(z=cn.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,K.__fnct=z),st=z((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}F=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(yt=w._length,mt=N.i[0].length,T.lastIndex=S,W=0;W<yt;W+=1)for(rt=0;rt<mt;rt+=1)xt=H?N.i[W][rt]:N.i[W][rt]+(F.i[W][rt]-N.i[W][rt])*st,w.i[W][rt]=xt,xt=H?N.o[W][rt]:N.o[W][rt]+(F.o[W][rt]-N.o[W][rt])*st,w.o[W][rt]=xt,xt=H?N.v[W][rt]:N.v[W][rt]+(F.v[W][rt]-N.v[W][rt])*st,w.v[W][rt]=xt}function n(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==e&&(S<w&&L<w||S>T&&L>T)||(this._caching.lastIndex=S<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function l(){this.paths=this.localShapeCollection}function p(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,S=L._length;for(T=0;T<S;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function h(L){p(this.v,L)||(this.v=xe.clone(L),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 L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var S=T===3?w.pt.k:w.ks.k;this.v=xe.clone(S),this.pv=xe.clone(this.v),this.localShapeCollection=ls.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function b(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=g,A.prototype.setVValue=h,A.prototype.addEffect=b;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=xe.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=xe.clone(this.v),this.localShapeCollection=ls.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=g,k.prototype.interpolateShape=i,k.prototype.setVValue=h,k.prototype.addEffect=b;var M=function(){var L=Te;function w(T,S){this.v=xe.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ls.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=nt.getProp(T,S.p,1,0,this),this.s=nt.getProp(T,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],N=this.p.v[1],F=this.s.v[0]/2,H=this.s.v[1]/2,W=this.d!==3,rt=this.v;rt.v[0][0]=S,rt.v[0][1]=N-H,rt.v[1][0]=W?S+F:S-F,rt.v[1][1]=N,rt.v[2][0]=S,rt.v[2][1]=N+H,rt.v[3][0]=W?S-F:S+F,rt.v[3][1]=N,rt.i[0][0]=W?S-F*L:S+F*L,rt.i[0][1]=N-H,rt.i[1][0]=W?S+F:S-F,rt.i[1][1]=N-H*L,rt.i[2][0]=W?S+F*L:S-F*L,rt.i[2][1]=N+H,rt.i[3][0]=W?S-F:S+F,rt.i[3][1]=N+H*L,rt.o[0][0]=W?S+F*L:S-F*L,rt.o[0][1]=N-H,rt.o[1][0]=W?S+F:S-F,rt.o[1][1]=N+H*L,rt.o[2][0]=W?S-F*L:S+F*L,rt.o[2][1]=N+H,rt.o[3][0]=W?S-F:S+F,rt.o[3][1]=N-H*L}},I([ge],w),w}(),G=function(){function L(w,T){this.v=xe.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=nt.getProp(w,T.ir,0,0,this),this.is=nt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=nt.getProp(w,T.pt,0,0,this),this.p=nt.getProp(w,T.p,1,0,this),this.r=nt.getProp(w,T.r,0,kt,this),this.or=nt.getProp(w,T.or,0,0,this),this.os=nt.getProp(w,T.os,0,.01,this),this.localShapeCollection=ls.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:l,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,S=Math.PI*2/T,N=!0,F=this.or.v,H=this.ir.v,W=this.os.v,rt=this.is.v,yt=2*Math.PI*F/(T*2),mt=2*Math.PI*H/(T*2),st,xt,ct,et,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){xt=N?F:H,ct=N?W:rt,et=N?yt:mt;var v=xt*Math.cos(_),E=xt*Math.sin(_),K=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),z=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-K*et*ct*P,E-z*et*ct*P,v+K*et*ct*P,E+z*et*ct*P,st,!0),N=!N,_+=S*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),S=Math.PI*2/T,N=this.or.v,F=this.os.v,H=2*Math.PI*N/(T*4),W,rt=-Math.PI*.5,yt=this.data.d===3?-1:1;for(rt+=this.r.v,this.v._length=0,W=0;W<T;W+=1){var mt=N*Math.cos(rt),st=N*Math.sin(rt),xt=mt===0&&st===0?0:st/Math.sqrt(mt*mt+st*st),ct=mt===0&&st===0?0:-mt/Math.sqrt(mt*mt+st*st);mt+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(mt,st,mt-xt*H*F*yt,st-ct*H*F*yt,mt+xt*H*F*yt,st+ct*H*F*yt,W,!0),rt+=S*yt}this.paths.length=0,this.paths[0]=this.v}},I([ge],L),L}(),x=function(){function L(w,T){this.v=xe.newElement(),this.v.c=!0,this.localShapeCollection=ls.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=nt.getProp(w,T.p,1,0,this),this.s=nt.getProp(w,T.s,1,0,this),this.r=nt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],S=this.p.v[1],N=this.s.v[0]/2,F=this.s.v[1]/2,H=$e(N,F,this.r.v),W=H*(1-Te);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,S-F+H,T+N,S-F+H,T+N,S-F+W,0,!0),this.v.setTripleAt(T+N,S+F-H,T+N,S+F-W,T+N,S+F-H,1,!0),H!==0?(this.v.setTripleAt(T+N-H,S+F,T+N-H,S+F,T+N-W,S+F,2,!0),this.v.setTripleAt(T-N+H,S+F,T-N+W,S+F,T-N+H,S+F,3,!0),this.v.setTripleAt(T-N,S+F-H,T-N,S+F-H,T-N,S+F-W,4,!0),this.v.setTripleAt(T-N,S-F+H,T-N,S-F+W,T-N,S-F+H,5,!0),this.v.setTripleAt(T-N+H,S-F,T-N+H,S-F,T-N+W,S-F,6,!0),this.v.setTripleAt(T+N-H,S-F,T+N-W,S-F,T+N-H,S-F,7,!0)):(this.v.setTripleAt(T-N,S+F,T-N+W,S+F,T-N,S+F,2),this.v.setTripleAt(T-N,S-F,T-N,S-F+W,T-N,S-F,3))):(this.v.setTripleAt(T+N,S-F+H,T+N,S-F+W,T+N,S-F+H,0,!0),H!==0?(this.v.setTripleAt(T+N-H,S-F,T+N-H,S-F,T+N-W,S-F,1,!0),this.v.setTripleAt(T-N+H,S-F,T-N+W,S-F,T-N+H,S-F,2,!0),this.v.setTripleAt(T-N,S-F+H,T-N,S-F+H,T-N,S-F+W,3,!0),this.v.setTripleAt(T-N,S+F-H,T-N,S+F-W,T-N,S+F-H,4,!0),this.v.setTripleAt(T-N+H,S+F,T-N+H,S+F,T-N+W,S+F,5,!0),this.v.setTripleAt(T+N-H,S+F,T+N-W,S+F,T+N-H,S+F,6,!0),this.v.setTripleAt(T+N,S+F-H,T+N,S+F-H,T+N,S+F-W,7,!0)):(this.v.setTripleAt(T-N,S-F,T-N+W,S-F,T-N,S-F,1,!0),this.v.setTripleAt(T-N,S+F,T-N,S+F-W,T-N,S+F,2,!0),this.v.setTripleAt(T+N,S+F,T+N-W,S+F,T+N,S+F,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},I([ge],L),L}();function O(L,w,T){var S;if(T===3||T===4){var N=T===3?w.pt:w.ks,F=N.k;F.length?S=new k(L,w,T):S=new A(L,w,T)}else T===5?S=new x(L,w):T===6?S=new M(L,w):T===7&&(S=new G(L,w));return S.k&&L.addDynamicProperty(S),S}function D(){return A}function R(){return k}var B={};return B.getShapeProp=O,B.getConstructorFunction=D,B.getKeyframedConstructorFunction=R,B}();var Ae=function(){var e=Math.cos,i=Math.sin,n=Math.tan,l=Math.round;function p(){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 h(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(1,0,0,0,0,E,-K,0,0,K,E,0,0,0,0,1)}function A(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,0,K,0,0,1,0,0,-K,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function G(v,E){var K=e(E),z=i(E);return this._t(K,z,0,0,-z,K,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(K,-z,0,0,z,K,0,0,0,0,1,0,0,0,0,1)}function x(v,E,K){return!K&&K!==0&&(K=1),v===1&&E===1&&K===1?this:this._t(v,0,0,0,0,E,0,0,0,0,K,0,0,0,0,1)}function O(v,E,K,z,at,vt,Et,Rt,Pt,oe,Be,$r,Ue,be,Je,$t){return this.props[0]=v,this.props[1]=E,this.props[2]=K,this.props[3]=z,this.props[4]=at,this.props[5]=vt,this.props[6]=Et,this.props[7]=Rt,this.props[8]=Pt,this.props[9]=oe,this.props[10]=Be,this.props[11]=$r,this.props[12]=Ue,this.props[13]=be,this.props[14]=Je,this.props[15]=$t,this}function D(v,E,K){return K=K||0,v!==0||E!==0||K!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,K,1):this}function R(v,E,K,z,at,vt,Et,Rt,Pt,oe,Be,$r,Ue,be,Je,$t){var ht=this.props;if(v===1&&E===0&&K===0&&z===0&&at===0&&vt===1&&Et===0&&Rt===0&&Pt===0&&oe===0&&Be===1&&$r===0)return ht[12]=ht[12]*v+ht[15]*Ue,ht[13]=ht[13]*vt+ht[15]*be,ht[14]=ht[14]*Be+ht[15]*Je,ht[15]*=$t,this._identityCalculated=!1,this;var ii=ht[0],Ri=ht[1],oi=ht[2],zr=ht[3],si=ht[4],ni=ht[5],He=ht[6],Pi=ht[7],Di=ht[8],_r=ht[9],Fi=ht[10],Cr=ht[11],Eo=ht[12],Wa=ht[13],Ya=ht[14],ja=ht[15];return ht[0]=ii*v+Ri*at+oi*Pt+zr*Ue,ht[1]=ii*E+Ri*vt+oi*oe+zr*be,ht[2]=ii*K+Ri*Et+oi*Be+zr*Je,ht[3]=ii*z+Ri*Rt+oi*$r+zr*$t,ht[4]=si*v+ni*at+He*Pt+Pi*Ue,ht[5]=si*E+ni*vt+He*oe+Pi*be,ht[6]=si*K+ni*Et+He*Be+Pi*Je,ht[7]=si*z+ni*Rt+He*$r+Pi*$t,ht[8]=Di*v+_r*at+Fi*Pt+Cr*Ue,ht[9]=Di*E+_r*vt+Fi*oe+Cr*be,ht[10]=Di*K+_r*Et+Fi*Be+Cr*Je,ht[11]=Di*z+_r*Rt+Fi*$r+Cr*$t,ht[12]=Eo*v+Wa*at+Ya*Pt+ja*Ue,ht[13]=Eo*E+Wa*vt+Ya*oe+ja*be,ht[14]=Eo*K+Wa*Et+Ya*Be+ja*Je,ht[15]=Eo*z+Wa*Rt+Ya*$r+ja*$t,this._identityCalculated=!1,this}function B(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 L(){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 w(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 S(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,K){return{x:v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}}function F(v,E,K){return v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12]}function H(v,E,K){return v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13]}function W(v,E,K){return v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}function rt(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,K=-this.props[1]/v,z=-this.props[4]/v,at=this.props[0]/v,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Rt=new Ae;return Rt.props[0]=E,Rt.props[1]=K,Rt.props[4]=z,Rt.props[5]=at,Rt.props[12]=vt,Rt.props[13]=Et,Rt}function yt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function mt(v){var E,K=v.length,z=[];for(E=0;E<K;E+=1)z[E]=yt(v[E]);return z}function st(v,E,K){var z=Z("float32",6);if(this.isIdentity())z[0]=v[0],z[1]=v[1],z[2]=E[0],z[3]=E[1],z[4]=K[0],z[5]=K[1];else{var at=this.props[0],vt=this.props[1],Et=this.props[4],Rt=this.props[5],Pt=this.props[12],oe=this.props[13];z[0]=v[0]*at+v[1]*Et+Pt,z[1]=v[0]*vt+v[1]*Rt+oe,z[2]=E[0]*at+E[1]*Et+Pt,z[3]=E[0]*vt+E[1]*Rt+oe,z[4]=K[0]*at+K[1]*Et+Pt,z[5]=K[0]*vt+K[1]*Rt+oe}return z}function xt(v,E,K){var z;return this.isIdentity()?z=[v,E,K]:z=[v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]],z}function ct(v,E){if(this.isIdentity())return v+","+E;var K=this.props;return Math.round((v*K[0]+E*K[4]+K[12])*100)/100+","+Math.round((v*K[1]+E*K[5]+K[13])*100)/100}function et(){for(var v=0,E=this.props,K="matrix3d(",z=1e4;v<16;)K+=l(E[v]*z)/z,K+=v===15?")":",",v+=1;return K}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?l(v*E)/E:v}function P(){var v=this.props,E=_(v[0]),K=_(v[1]),z=_(v[4]),at=_(v[5]),vt=_(v[12]),Et=_(v[13]);return"matrix("+E+","+K+","+z+","+at+","+vt+","+Et+")"}return function(){this.reset=p,this.rotate=h,this.rotateX=g,this.rotateY=A,this.rotateZ=b,this.skew=M,this.skewFromAxis=G,this.shear=k,this.scale=x,this.setTransform=O,this.translate=D,this.transform=R,this.multiply=B,this.applyToPoint=N,this.applyToX=F,this.applyToY=H,this.applyToZ=W,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=et,this.to2dCSS=P,this.clone=T,this.cloneFromProps=S,this.equals=w,this.inversePoints=mt,this.inversePoint=yt,this.getInverseMatrix=rt,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function $a(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$a=function(n){return typeof n}:$a=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$a(e)}var Dt={},za="__[STANDALONE]__",em="__[ANIMATIONDATA]__",rm="";function py(e){c(e)}function im(){za===!0?ie.searchAnimations(em,za,rm):ie.searchAnimations()}function my(e){qb(e)}function uy(e){Qb(e)}function fy(e){return za===!0&&(e.animationData=JSON.parse(em)),ie.loadAnimation(e)}function vy(e){if(typeof e=="string")switch(e){case"high":La(200);break;default:case"medium":La(50);break;case"low":La(10);break}else!isNaN(e)&&e>1&&La(e);nn()>=50?nr(!1):nr(!0)}function gy(){return typeof navigator<"u"}function by(e,i){e==="expressions"&&Zb(i)}function yy(e){switch(e){case"propertyFactory":return nt;case"shapePropertyFactory":return Fa;case"matrix":return Ae;default:return null}}Dt.play=ie.play,Dt.pause=ie.pause,Dt.setLocationHref=py,Dt.togglePause=ie.togglePause,Dt.setSpeed=ie.setSpeed,Dt.setDirection=ie.setDirection,Dt.stop=ie.stop,Dt.searchAnimations=im,Dt.registerAnimation=ie.registerAnimation,Dt.loadAnimation=fy,Dt.setSubframeRendering=my,Dt.resize=ie.resize,Dt.goToAndStop=ie.goToAndStop,Dt.destroy=ie.destroy,Dt.setQuality=vy,Dt.inBrowser=gy,Dt.installPlugin=by,Dt.freeze=ie.freeze,Dt.unfreeze=ie.unfreeze,Dt.setVolume=ie.setVolume,Dt.mute=ie.mute,Dt.unmute=ie.unmute,Dt.getRegisteredAnimations=ie.getRegisteredAnimations,Dt.useWebWorker=s,Dt.setIDPrefix=uy,Dt.__getFactory=yy,Dt.version="5.12.2";function Ey(){document.readyState==="complete"&&(clearInterval(Ay),im())}function Ty(e){for(var i=om.split("&"),n=0;n<i.length;n+=1){var l=i[n].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var om="";if(za){var sm=document.getElementsByTagName("script"),xy=sm.length-1,nm=sm[xy]||{src:""};om=nm.src?nm.src.replace(/^[^\?]+\??/,""):"",rm=Ty("renderer")}var Ay=setInterval(Ey,100);try{!((typeof Bn>"u"?"undefined":$a(Bn))==="object"&&typeof xl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Dt)}catch{}var wi=function(){var e={},i={};e.registerModifier=n,e.getModifier=l;function n(p,h){i[p]||(i[p]=h)}function l(p,h,g){return new i[p](h,g)}return e}();function cr(){}cr.prototype.initModifierProperties=function(){},cr.prototype.addShapeToModifier=function(){},cr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:ls.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},cr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},cr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},I([ge],cr);function Ir(){}I([cr],Ir),Ir.prototype.initModifierProperties=function(e,i){this.s=nt.getProp(e,i.s,0,.01,this),this.e=nt.getProp(e,i.e,0,.01,this),this.o=nt.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ir.prototype.addShapeToModifier=function(e){e.pathsData=[]},Ir.prototype.calculateShapeEdges=function(e,i,n,l,p){var h=[];i<=1?h.push({s:e,e:i}):e>=1?h.push({s:e-1,e:i-1}):(h.push({s:e,e:1}),h.push({s:0,e:i-1}));var g=[],A,b=h.length,k;for(A=0;A<b;A+=1)if(k=h[A],!(k.e*p<l||k.s*p>l+n)){var M,G;k.s*p<=l?M=0:M=(k.s*p-l)/n,k.e*p>=l+n?G=1:G=(k.e*p-l)/n,g.push([M,G])}return g.length||g.push([0,0]),g},Ir.prototype.releasePathsData=function(e){var i,n=e.length;for(i=0;i<n;i+=1)Xp.release(e[i]);return e.length=0,e},Ir.prototype.processShapes=function(e){var i,n;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?i=1+l:this.s.v<0?i=0+l:i=this.s.v+l,this.e.v>1?n=1+l:this.e.v<0?n=0+l:n=this.e.v+l,i>n){var p=i;i=n,n=p}i=Math.round(i*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=i,this.eValue=n}else i=this.sValue,n=this.eValue;var h,g,A=this.shapes.length,b,k,M,G,x,O=0;if(n===i)for(g=0;g<A;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&&i===0||n===0&&i===1){if(this._mdf)for(g=0;g<A;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,B;for(g=0;g<A;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(h=R.shape.paths,k=h._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),b=0;b<k;b+=1)G=Dr.getSegmentsLength(h.shapes[b]),M.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=i,w=n,T=0,S;for(g=A-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(B=R.localShapeCollection,B.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):S=[[L,w]],k=S.length,b=0;b<k;b+=1){L=S[b][0],w=S[b][1],D.length=0,w<=1?D.push({s:R.totalShapeLength*L,e:R.totalShapeLength*w}):L>=1?D.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(w-1)}):(D.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=R.shape.paths.shapes[R.shape.paths._length-1];if(F.c){var H=N.pop();this.addPaths(N,B),N=this.addShapes(R,D[1],H)}else this.addPaths(N,B),N=this.addShapes(R,D[1])}this.addPaths(N,B)}}R.shape.paths=B}}},Ir.prototype.addPaths=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)i.addShape(e[n])},Ir.prototype.addSegment=function(e,i,n,l,p,h,g){p.setXYAt(i[0],i[1],"o",h),p.setXYAt(n[0],n[1],"i",h+1),g&&p.setXYAt(e[0],e[1],"v",h),p.setXYAt(l[0],l[1],"v",h+1)},Ir.prototype.addSegmentFromArray=function(e,i,n,l){i.setXYAt(e[1],e[5],"o",n),i.setXYAt(e[2],e[6],"i",n+1),l&&i.setXYAt(e[0],e[4],"v",n),i.setXYAt(e[3],e[7],"v",n+1)},Ir.prototype.addShapes=function(e,i,n){var l=e.pathsData,p=e.shape.paths.shapes,h,g=e.shape.paths._length,A,b,k=0,M,G,x,O,D=[],R,B=!0;for(n?(G=n._length,R=n._length):(n=xe.newElement(),G=0,R=0),D.push(n),h=0;h<g;h+=1){for(x=l[h].lengths,n.c=p[h].c,b=p[h].c?x.length:x.length+1,A=1;A<b;A+=1)if(M=x[A-1],k+M.addedLength<i.s)k+=M.addedLength,n.c=!1;else if(k>i.e){n.c=!1;break}else i.s<=k&&i.e>=k+M.addedLength?(this.addSegment(p[h].v[A-1],p[h].o[A-1],p[h].i[A],p[h].v[A],n,G,B),B=!1):(O=Dr.getNewSegment(p[h].v[A-1],p[h].v[A],p[h].o[A-1],p[h].i[A],(i.s-k)/M.addedLength,(i.e-k)/M.addedLength,x[A-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1),k+=M.addedLength,G+=1;if(p[h].c&&x.length){if(M=x[A-1],k<=i.e){var L=x[A-1].addedLength;i.s<=k&&i.e>=k+L?(this.addSegment(p[h].v[A-1],p[h].o[A-1],p[h].i[0],p[h].v[0],n,G,B),B=!1):(O=Dr.getNewSegment(p[h].v[A-1],p[h].v[0],p[h].o[A-1],p[h].i[0],(i.s-k)/L,(i.e-k)/L,x[A-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1)}else n.c=!1;k+=M.addedLength,G+=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)),k>i.e)break;h<g-1&&(n=xe.newElement(),B=!0,D.push(n),G=0)}return D};function hn(){}I([cr],hn),hn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},hn.prototype.processPath=function(e,i){var n=i/100,l=[0,0],p=e._length,h=0;for(h=0;h<p;h+=1)l[0]+=e.v[h][0],l[1]+=e.v[h][1];l[0]/=p,l[1]/=p;var g=xe.newElement();g.c=e.c;var A,b,k,M,G,x;for(h=0;h<p;h+=1)A=e.v[h][0]+(l[0]-e.v[h][0])*n,b=e.v[h][1]+(l[1]-e.v[h][1])*n,k=e.o[h][0]+(l[0]-e.o[h][0])*-n,M=e.o[h][1]+(l[1]-e.o[h][1])*-n,G=e.i[h][0]+(l[0]-e.i[h][0])*-n,x=e.i[h][1]+(l[1]-e.i[h][1])*-n,g.setTripleAt(A,b,k,M,G,x,h);return g},hn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,p,h,g=this.amount.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,h=A.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var jd=function(){var e=[0,0];function i(b){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,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 k;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 M,G;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),G[0]=x.getValueAtTime(x.keyframes[0].t/k,0),G[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),G[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),G[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else G=e,M=G;this.v.rotate(-Math.atan2(M[1]-G[1],M[0]-G[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 l(){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 p(){}function h(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,k,M){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Ae,this.pre=new Ae,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||b),k.p&&k.p.s?(this.px=nt.getProp(b,k.p.x,0,0,this),this.py=nt.getProp(b,k.p.y,0,0,this),k.p.z&&(this.pz=nt.getProp(b,k.p.z,0,0,this))):this.p=nt.getProp(b,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=nt.getProp(b,k.rx,0,kt,this),this.ry=nt.getProp(b,k.ry,0,kt,this),this.rz=nt.getProp(b,k.rz,0,kt,this),k.or.k[0].ti){var G,x=k.or.k.length;for(G=0;G<x;G+=1)k.or.k[G].to=null,k.or.k[G].ti=null}this.or=nt.getProp(b,k.or,1,kt,this),this.or.sh=!0}else this.r=nt.getProp(b,k.r||{k:0},0,kt,this);k.sk&&(this.sk=nt.getProp(b,k.sk,0,kt,this),this.sa=nt.getProp(b,k.sa,0,kt,this)),this.a=nt.getProp(b,k.a||{k:[0,0,0]},1,0,this),this.s=nt.getProp(b,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=nt.getProp(b,k.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:n,precalculateMatrix:l,autoOrient:p},I([ge],g),g.prototype.addDynamicProperty=h,g.prototype._addDynamicProperty=ge.prototype.addDynamicProperty;function A(b,k,M){return new g(b,k,M)}return{getTransformProperty:A}}();function Fr(){}I([cr],Fr),Fr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=nt.getProp(e,i.c,0,null,this),this.o=nt.getProp(e,i.o,0,null,this),this.tr=jd.getTransformProperty(e,i.tr,this),this.so=nt.getProp(e,i.tr.so,0,.01,this),this.eo=nt.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ae,this.rMatrix=new Ae,this.sMatrix=new Ae,this.tMatrix=new Ae,this.matrix=new Ae},Fr.prototype.applyTransforms=function(e,i,n,l,p,h){var g=h?-1:1,A=l.s.v[0]+(1-l.s.v[0])*(1-p),b=l.s.v[1]+(1-l.s.v[1])*(1-p);e.translate(l.p.v[0]*g*p,l.p.v[1]*g*p,l.p.v[2]),i.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),i.rotate(-l.r.v*g*p),i.translate(l.a.v[0],l.a.v[1],l.a.v[2]),n.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),n.scale(h?1/A:A,h?1/b:b),n.translate(l.a.v[0],l.a.v[1],l.a.v[2])},Fr.prototype.init=function(e,i,n,l){for(this.elem=e,this.arr=i,this.pos=n,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[n]);n>0;)n-=1,this._elements.unshift(i[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Fr.prototype.resetElements=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},Fr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},Fr.prototype.changeGroupRender=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)e[n]._render=i,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,i)},Fr.prototype.processShapes=function(e){var i,n,l,p,h,g=!1;if(this._mdf||e){var A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){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}h=0;var k;for(l=0;l<=this._groups.length-1;l+=1){if(k=h<A,this._groups[l]._render=k,this.changeGroupRender(this._groups[l].it,k),!k){var M=this.elemsData[l].it,G=M[M.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}h+=1}this._currentCopies=A;var x=this.o.v,O=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,B=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}l=this.data.m===1?0:this._currentCopies-1,p=this.data.m===1?1:-1,h=this._currentCopies;for(var T,S;h;){if(i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,S=n.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(l/(this._currentCopies-1)),w!==0){for((l!==0&&p===1||l!==this._currentCopies-1&&p===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14],B[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[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<S;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<S;T+=1)n[T]=this.matrix.props[T];w+=1,h-=1,l+=p}}else for(h=this._currentCopies,l=0,p=1;h;)i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,h-=1,l+=p;return g},Fr.prototype.addShape=function(){};function pn(){}I([cr],pn),pn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=nt.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},pn.prototype.processPath=function(e,i){var n=xe.newElement();n.c=e.c;var l,p=e._length,h,g,A,b,k,M,G=0,x,O,D,R,B,L;for(l=0;l<p;l+=1)h=e.v[l],A=e.o[l],g=e.i[l],h[0]===A[0]&&h[1]===A[1]&&h[0]===g[0]&&h[1]===g[1]?(l===0||l===p-1)&&!e.c?(n.setTripleAt(h[0],h[1],A[0],A[1],g[0],g[1],G),G+=1):(l===0?b=e.v[p-1]:b=e.v[l-1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,B=h[0]+(b[0]-h[0])*M,x=B,L=h[1]-(h[1]-b[1])*M,O=L,D=x-(x-h[0])*Te,R=O-(O-h[1])*Te,n.setTripleAt(x,O,D,R,B,L,G),G+=1,l===p-1?b=e.v[0]:b=e.v[l+1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,D=h[0]+(b[0]-h[0])*M,x=D,R=h[1]+(b[1]-h[1])*M,O=R,B=x-(x-h[0])*Te,L=O-(O-h[1])*Te,n.setTripleAt(x,O,D,R,B,L,G),G+=1):(n.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],G),G+=1);return n},pn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,p,h,g=this.rd.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,h=A.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Va(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function qd(e){return Math.abs(e)<=1e-5}function am(e,i,n){return e*(1-n)+i*n}function ki(e,i,n){return[am(e[0],i[0],n),am(e[1],i[1],n)]}function Sy(e,i,n){if(e===0)return[];var l=i*i-4*e*n;if(l<0)return[];var p=-i/(2*e);if(l===0)return[p];var h=Math.sqrt(l)/(2*e);return[p-h,p+h]}function lm(e,i,n,l){return[-e+3*i-3*n+l,3*e-6*i+3*n,-3*e+3*i,e]}function dm(e){return new Xt(e,e,e,e,!1)}function Xt(e,i,n,l,p){p&&cs(e,i)&&(i=ki(e,l,1/3)),p&&cs(n,l)&&(n=ki(e,l,2/3));var h=lm(e[0],i[0],n[0],l[0]),g=lm(e[1],i[1],n[1],l[1]);this.a=[h[0],g[0]],this.b=[h[1],g[1]],this.c=[h[2],g[2]],this.d=[h[3],g[3]],this.points=[e,i,n,l]}Xt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Xt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Xt.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},Xt.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},Xt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(qd(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var l=Math.sqrt(n);return qd(l)?l>0&&l<1?[i]:[]:[i-l,i+l].filter(function(p){return p>0&&p<1})},Xt.prototype.split=function(e){if(e<=0)return[dm(this.points[0]),this];if(e>=1)return[this,dm(this.points[this.points.length-1])];var i=ki(this.points[0],this.points[1],e),n=ki(this.points[1],this.points[2],e),l=ki(this.points[2],this.points[3],e),p=ki(i,n,e),h=ki(n,l,e),g=ki(p,h,e);return[new Xt(this.points[0],i,p,g,!0),new Xt(g,h,l,this.points[3],!0)]};function cm(e,i){var n=e.points[0][i],l=e.points[e.points.length-1][i];if(n>l){var p=l;l=n,n=p}for(var h=Sy(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<h.length;g+=1)if(h[g]>0&&h[g]<1){var A=e.point(h[g])[i];A<n?n=A:A>l&&(l=A)}return{min:n,max:l}}Xt.prototype.bounds=function(){return{x:cm(this,0),y:cm(this,1)}},Xt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Ba(e,i,n){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+n)/2,t1:i,t2:n}}function hm(e){var i=e.bez.split(.5);return[Ba(i[0],e.t1,e.t),Ba(i[1],e.t,e.t2)]}function Iy(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function mn(e,i,n,l,p,h){if(Iy(e,i)){if(n>=h||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){p.push([e.t,i.t]);return}var g=hm(e),A=hm(i);mn(g[0],A[0],n+1,l,p,h),mn(g[0],A[1],n+1,l,p,h),mn(g[1],A[0],n+1,l,p,h),mn(g[1],A[1],n+1,l,p,h)}}Xt.prototype.intersections=function(e,i,n){i===void 0&&(i=2),n===void 0&&(n=7);var l=[];return mn(Ba(this,0,1),Ba(e,0,1),0,i,l,n),l},Xt.shapeSegment=function(e,i){var n=(i+1)%e.length();return new Xt(e.v[i],e.o[i],e.i[n],e.v[n],!0)},Xt.shapeSegmentInverted=function(e,i){var n=(i+1)%e.length();return new Xt(e.v[n],e.i[n],e.o[i],e.v[i],!0)};function Xd(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Ua(e,i,n,l){var p=[e[0],e[1],1],h=[i[0],i[1],1],g=[n[0],n[1],1],A=[l[0],l[1],1],b=Xd(Xd(p,h),Xd(g,A));return qd(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function ds(e,i,n){return[e[0]+Math.cos(i)*n,e[1]-Math.sin(i)*n]}function Zd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function cs(e,i){return Va(e[0],i[0])&&Va(e[1],i[1])}function un(){}I([cr],un),un.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=nt.getProp(e,i.s,0,null,this),this.frequency=nt.getProp(e,i.r,0,null,this),this.pointsType=nt.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function pm(e,i,n,l,p,h,g){var A=n-Math.PI/2,b=n+Math.PI/2,k=i[0]+Math.cos(n)*l*p,M=i[1]-Math.sin(n)*l*p;e.setTripleAt(k,M,k+Math.cos(A)*h,M-Math.sin(A)*h,k+Math.cos(b)*g,M-Math.sin(b)*g,e.length())}function _y(e,i){var n=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,p=[Math.cos(l)*n[0]-Math.sin(l)*n[1],Math.sin(l)*n[0]+Math.cos(l)*n[1]];return p}function Cy(e,i){var n=i===0?e.length()-1:i-1,l=(i+1)%e.length(),p=e.v[n],h=e.v[l],g=_y(p,h);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function mm(e,i,n,l,p,h,g){var A=Cy(i,n),b=i.v[n%i._length],k=i.v[n===0?i._length-1:n-1],M=i.v[(n+1)%i._length],G=h===2?Math.sqrt(Math.pow(b[0]-k[0],2)+Math.pow(b[1]-k[1],2)):0,x=h===2?Math.sqrt(Math.pow(b[0]-M[0],2)+Math.pow(b[1]-M[1],2)):0;pm(e,i.v[n%i._length],A,g,l,x/((p+1)*2),G/((p+1)*2),h)}function wy(e,i,n,l,p,h){for(var g=0;g<l;g+=1){var A=(g+1)/(l+1),b=p===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,k=i.normalAngle(A),M=i.point(A);pm(e,M,k,h,n,b/((l+1)*2),b/((l+1)*2),p),h=-h}return h}un.prototype.processPath=function(e,i,n,l){var p=e._length,h=xe.newElement();if(h.c=e.c,e.c||(p-=1),p===0)return h;var g=-1,A=Xt.shapeSegment(e,0);mm(h,e,0,i,n,l,g);for(var b=0;b<p;b+=1)g=wy(h,A,i,n,l,-g),b===p-1&&!e.c?A=null:A=Xt.shapeSegment(e,(b+1)%p),mm(h,e,b+1,i,n,l,g);return h},un.prototype.processShapes=function(e){var i,n,l=this.shapes.length,p,h,g=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var k,M;for(n=0;n<l;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,A,b));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Qd(e,i,n){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[ds(e,l,n),ds(i,l,n)]}function hs(e,i){var n,l,p,h,g,A,b;b=Qd(e.points[0],e.points[1],i),n=b[0],l=b[1],b=Qd(e.points[1],e.points[2],i),p=b[0],h=b[1],b=Qd(e.points[2],e.points[3],i),g=b[0],A=b[1];var k=Ua(n,l,p,h);k===null&&(k=l);var M=Ua(g,A,p,h);return M===null&&(M=g),new Xt(n,k,M,A)}function um(e,i,n,l,p){var h=i.points[3],g=n.points[0];if(l===3||cs(h,g))return h;if(l===2){var A=-i.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,k=Ua(h,ds(h,A+Math.PI/2,100),g,ds(g,A+Math.PI/2,100)),M=k?Zd(k,h):Zd(h,g)/2,G=ds(h,A,2*M*Te);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=ds(g,b,2*M*Te),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=cs(h,i.points[2])?i.points[0]:i.points[2],O=cs(g,n.points[1])?n.points[3]:n.points[1],D=Ua(x,h,g,O);return D&&Zd(D,h)<p?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):h}function fm(e,i){var n=e.intersections(i);return n.length&&Va(n[0][0],1)&&n.shift(),n.length?n[0]:null}function vm(e,i){var n=e.slice(),l=i.slice(),p=fm(e[e.length-1],i[0]);return p&&(n[e.length-1]=e[e.length-1].split(p[0])[0],l[0]=i[0].split(p[1])[1]),e.length>1&&i.length>1&&(p=fm(e[0],i[i.length-1]),p)?[[e[0].split(p[0])[0]],[i[i.length-1].split(p[1])[1]]]:[n,l]}function ky(e){for(var i,n=1;n<e.length;n+=1)i=vm(e[n-1],e[n]),e[n-1]=i[0],e[n]=i[1];return e.length>1&&(i=vm(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function gm(e,i){var n=e.inflectionPoints(),l,p,h,g;if(n.length===0)return[hs(e,i)];if(n.length===1||Va(n[1],1))return h=e.split(n[0]),l=h[0],p=h[1],[hs(l,i),hs(p,i)];h=e.split(n[0]),l=h[0];var A=(n[1]-n[0])/(1-n[0]);return h=h[1].split(A),g=h[0],p=h[1],[hs(l,i),hs(g,i),hs(p,i)]}function fn(){}I([cr],fn),fn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this.miterLimit=nt.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},fn.prototype.processPath=function(e,i,n,l){var p=xe.newElement();p.c=e.c;var h=e.length();e.c||(h-=1);var g,A,b,k=[];for(g=0;g<h;g+=1)b=Xt.shapeSegment(e,g),k.push(gm(b,i));if(!e.c)for(g=h-1;g>=0;g-=1)b=Xt.shapeSegmentInverted(e,g),k.push(gm(b,i));k=ky(k);var M=null,G=null;for(g=0;g<k.length;g+=1){var x=k[g];for(G&&(M=um(p,G,x[0],n,l)),G=x[x.length-1],A=0;A<x.length;A+=1)b=x[A],M&&cs(b.points[0],M)?p.setXYAt(b.points[1][0],b.points[1][1],"o",p.length()-1):p.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],p.length()),p.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],p.length()),M=b.points[3]}return k.length&&um(p,G,k[0][0],n,l),p},fn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,p,h,g=this.amount.v,A=this.miterLimit.v,b=this.lineJoin;if(g!==0){var k,M;for(n=0;n<l;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,b,A));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function bm(e){for(var i=e.fStyle?e.fStyle.split(" "):[],n="normal",l="normal",p=i.length,h,g=0;g<p;g+=1)switch(h=i[g].toLowerCase(),h){case"italic":l="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:l,weight:e.fWeight||n}}var go=function(){var e=5e3,i={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 l=127988,p=917631,h=917601,g=917626,A=65039,b=8205,k=127462,M=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var P=_.split(","),v,E=P.length,K=[];for(v=0;v<E;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&K.push(P[v]);return K.join(",")}function O(_,P){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;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 K=E.offsetWidth;return E.style.fontFamily=x(_)+", "+P,{node:E,w:K,parent:v}}function D(){var _,P=this.fonts.length,v,E,K=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?K-=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?(K-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.offsetWidth!==E&&(K-=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)));K!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(_,P){var v=document.body&&P?"svg":"canvas",E,K=bm(_);if(v==="svg"){var z=Tt("text");z.style.fontSize="100px",z.setAttribute("font-family",_.fFamily),z.setAttribute("font-style",K.style),z.setAttribute("font-weight",K.weight),z.textContent="1",_.fClass?(z.style.fontFamily="inherit",z.setAttribute("class",_.fClass)):z.style.fontFamily=_.fFamily,P.appendChild(z),E=z}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=K.style+" "+K.weight+" 100px "+_.fFamily,E=at}function vt(Et){return v==="svg"?(E.textContent=Et,E.getComputedTextLength()):E.measureText(Et).width}return{measureText:vt}}function B(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(Be){Be.helper=R(Be),Be.cache={}}),this.fonts=_.list;return}var v=_.list,E,K=v.length,z=K;for(E=0;E<K;E+=1){var at=!0,vt,Et;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,z-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),vt.length>0&&(at=!1),at){var Rt=y("style");Rt.setAttribute("f-forigin",v[E].fOrigin),Rt.setAttribute("f-origin",v[E].origin),Rt.setAttribute("f-family",v[E].fFamily),Rt.type="text/css",Rt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",P.appendChild(Rt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(v[E].fPath)!==-1&&(at=!1);if(at){var Pt=y("link");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.type="text/css",Pt.rel="stylesheet",Pt.href=v[E].fPath,document.body.appendChild(Pt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)v[E].fPath===vt[Et].src&&(at=!1);if(at){var oe=y("link");oe.setAttribute("f-forigin",v[E].fOrigin),oe.setAttribute("f-origin",v[E].origin),oe.setAttribute("rel","stylesheet"),oe.setAttribute("href",v[E].fPath),P.appendChild(oe)}}v[E].helper=R(v[E],P),v[E].cache={},this.fonts.push(v[E])}z===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,v=_.length,E,K=this.chars.length,z;for(P=0;P<v;P+=1){for(E=0,z=!1;E<K;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(z=!0),E+=1;z||(this.chars.push(_[P]),K+=1)}}}function w(_,P,v){for(var E=0,K=this.chars.length;E<K;){if(this.chars[E].ch===_&&this.chars[E].style===P&&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: ",_,P,v)),i}function T(_,P,v){var E=this.getFontByName(P),K=_;if(!E.cache[K]){var z=E.helper;if(_===" "){var at=z.measureText("|"+_+"|"),vt=z.measureText("||");E.cache[K]=(at-vt)/100}else E.cache[K]=z.measureText(_)/100}return E.cache[K]*v}function S(_){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(v-55296)*1024+E-56320+65536)}return P}function F(_,P){var v=_.toString(16)+P.toString(16);return G.indexOf(v)!==-1}function H(_){return _===b}function W(_){return _===A}function rt(_){var P=N(_);return P>=k&&P<=M}function yt(_){return rt(_.substr(0,2))&&rt(_.substr(2,2))}function mt(_){return n.indexOf(_)!==-1}function st(_,P){var v=N(_.substr(P,2));if(v!==l)return!1;var E=0;for(P+=2;E<5;){if(v=N(_.substr(P,2)),v<h||v>g)return!1;E+=1,P+=2}return N(_.substr(P,2))===p}function xt(){this.isLoaded=!0}var ct=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)};ct.isModifier=F,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=rt,ct.isCombinedCharacter=mt,ct.isRegionalFlag=st,ct.isVariationSelector=W,ct.BLACK_FLAG_CODE_POINT=l;var et={addChars:L,addFonts:B,getCharData:w,getFontByName:S,measureText:T,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=et,ct}();function ym(e){this.animationData=e}ym.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function Ny(e){return new ym(e)}function Ha(){}Ha.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},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(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?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 i,n=this.renderableComponents.length;for(i=0;i<n;i+=1)this.renderableComponents[i].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 Jd=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function Ly(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function My(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Oy(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Ry(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Py(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Dy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Fy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function $y(){this.p={}}function Em(e,i){var n=e.ef||[];this.effectElements=[];var l,p=n.length,h;for(l=0;l<p;l+=1)h=new vn(n[l],i),this.effectElements.push(h)}function vn(e,i){this.init(e,i)}I([ge],vn),vn.prototype.getValue=vn.prototype.iterateDynamicProperties,vn.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var n,l=this.data.ef.length,p,h=this.data.ef;for(n=0;n<l;n+=1){switch(p=null,h[n].ty){case 0:p=new Ly(h[n],i,this);break;case 1:p=new My(h[n],i,this);break;case 2:p=new Oy(h[n],i,this);break;case 3:p=new Ry(h[n],i,this);break;case 4:case 7:p=new Fy(h[n],i,this);break;case 10:p=new Py(h[n],i,this);break;case 11:p=new Dy(h[n],i,this);break;case 5:p=new Em(h[n],i,this);break;default:p=new $y(h[n],i,this);break}p&&this.effectElements.push(p)}};function Ni(){}Ni.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,n=this.data.masksProperties.length;i<n;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Wp();if(i){var n=i("layer"),l=i("effects"),p=i("shape"),h=i("text"),g=i("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var A=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(A),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=p(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=h(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=Jd(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=i},initBaseData:function(i,n,l){this.globalData=n,this.comp=l,this.data=i,this.layerId=ze(),this.data.sr||(this.data.sr=1),this.effectsManager=new Em(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Li(){}Li.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,n){var l,p=this.dynamicProperties.length;for(l=0;l<p;l+=1)(n||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function Mi(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,n)}Mi.prototype.prepareFrame=function(){},I([Ha,Ni,Li],Mi),Mi.prototype.getBaseElement=function(){return null},Mi.prototype.renderFrame=function(){},Mi.prototype.destroy=function(){},Mi.prototype.initExpressions=function(){var e=Wp();if(e){var i=e("footage");this.layerInterface=i(this)}},Mi.prototype.getFootageData=function(){return this.footageData};function Ve(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,n),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=nt.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ve.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},I([Ha,Ni,Li],Ve),Ve.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))},Ve.prototype.show=function(){},Ve.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ve.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ve.prototype.resume=function(){this._canPlay=!0},Ve.prototype.setRate=function(e){this.audio.rate(e)},Ve.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ve.prototype.getBaseElement=function(){return null},Ve.prototype.destroy=function(){},Ve.prototype.sourceRectAtTime=function(){},Ve.prototype.initExpressions=function(){};function Se(){}Se.prototype.checkLayers=function(e){var i,n=this.layers.length,l;for(this.completeLayers=!0,i=n-1;i>=0;i-=1)this.elements[i]||(l=this.layers[i],l.ip-l.st<=e-this.layers[i].st&&l.op-l.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},Se.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},Se.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Se.prototype.createAudio=function(e){return new Ve(e,this.globalData,this)},Se.prototype.createFootage=function(e){return new Mi(e,this.globalData,this)},Se.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},Se.prototype.includeLayers=function(e){this.completeLayers=!1;var i,n=e.length,l,p=this.layers.length;for(i=0;i<n;i+=1)for(l=0;l<p;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},Se.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Se.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Se.prototype.buildElementParenting=function(e,i,n){for(var l=this.elements,p=this.layers,h=0,g=p.length;h<g;)p[h].ind==i&&(!l[h]||l[h]===!0?(this.buildItem(h),this.addPendingElement(e)):(n.push(l[h]),l[h].setAsParent(),p[h].parent!==void 0?this.buildElementParenting(e,p[h].parent,n):e.setHierarchy(n))),h+=1},Se.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Se.prototype.searchExtraCompositions=function(e){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},Se.prototype.getElementById=function(e){var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},Se.prototype.getElementByPath=function(e){var i=e.shift(),n;if(typeof i=="number")n=this.elements[i];else{var l,p=this.elements.length;for(l=0;l<p;l+=1)if(this.elements[l].data.nm===i){n=this.elements[l];break}}return e.length===0?n:n.getElementByPath(e)},Se.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new go,this.globalData.slotManager=Ny(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var zy={TRANSFORM_EFFECT:"transformEFfect"};function ps(){}ps.prototype={initTransform:function(){var i=new Ae;this.finalTransform={mProp:this.data.ks?jd.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,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 i,n=this.finalTransform.mat,l=0,p=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<p;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,n.cloneFromProps(i),l=0;l<p;l+=1)n.multiply(this.hierarchy[l].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 i=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<n;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),i=1;i<n;i+=1){var p=this.localTransforms[i].matrix;l.multiply(p)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var h=this.finalTransform.localOpacity;for(i=0;i<n;i+=1)h*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=h}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(zy.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new Ae;var n=0,l=i.length;for(n=0;n<l;n+=1)this.localTransforms.push(i[n])}}},globalToLocal:function(i){var n=[];n.push(this.finalTransform);for(var l=!0,p=this.comp;l;)p.finalTransform?(p.data.hasMask&&n.splice(0,0,p.finalTransform),p=p.comp):l=!1;var h,g=n.length,A;for(h=0;h<g;h+=1)A=n[h].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new Ae};function bo(e,i,n){this.data=e,this.element=i,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,p,h=this.masksProperties?this.masksProperties.length:0;this.viewData=it(h),this.solidPath="";var g,A=this.masksProperties,b=0,k=[],M,G,x=ze(),O,D,R,B,L="clipPath",w="clip-path";for(p=0;p<h;p+=1)if((A[p].mode!=="a"&&A[p].mode!=="n"||A[p].inv||A[p].o.k!==100||A[p].o.x)&&(L="mask",w="mask"),(A[p].mode==="s"||A[p].mode==="i")&&b===0?(O=Tt("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,g=Tt("path"),A[p].mode==="n")this.viewData[p]={op:nt.getProp(this.element,A[p].o,0,.01,this.element),prop:Fa.getShapeProp(this.element,A[p],3),elem:g,lastPath:""},l.appendChild(g);else{b+=1,g.setAttribute("fill",A[p].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(A[p].x.k!==0?(L="mask",w="mask",B=nt.getProp(this.element,A[p].x,0,null,this.element),T=ze(),D=Tt("filter"),D.setAttribute("id",T),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),l.appendChild(D),g.setAttribute("stroke",A[p].mode==="s"?"#000000":"#ffffff")):(R=null,B=null),this.storedData[p]={elem:g,x:B,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},A[p].mode==="i"){G=k.length;var S=Tt("g");for(M=0;M<G;M+=1)S.appendChild(k[M]);var N=Tt("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),l.appendChild(N),S.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),k.length=0,k.push(S)}else k.push(g);A[p].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[p]={elem:g,lastPath:"",op:nt.getProp(this.element,A[p].o,0,.01,this.element),prop:Fa.getShapeProp(this.element,A[p],3),invRect:O},this.viewData[p].prop.k||this.drawPath(A[p],this.viewData[p].prop.v,this.viewData[p])}for(this.maskElement=Tt(L),h=k.length,p=0;p<h;p+=1)this.maskElement.appendChild(k[p]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}bo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},bo.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,n,l=this.masksProperties.length;for(n=0;n<l;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&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||e)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var p=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+")")),p.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))}},bo.prototype.getMaskelement=function(){return this.maskElement},bo.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},bo.prototype.drawPath=function(e,i,n){var l=" M"+i.v[0][0]+","+i.v[0][1],p,h;for(h=i._length,p=1;p<h;p+=1)l+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[p][0]+","+i.i[p][1]+" "+i.v[p][0]+","+i.v[p][1];if(i.c&&h>1&&(l+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),n.lastPath!==l){var g="";n.elem&&(i.c&&(g=e.inv?this.solidPath+l:l),n.elem.setAttribute("d",g)),n.lastPath=l}},bo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var gn=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=n;function i(l,p){var h=Tt("filter");return h.setAttribute("id",l),p!==!0&&(h.setAttribute("filterUnits","objectBoundingBox"),h.setAttribute("x","0%"),h.setAttribute("y","0%"),h.setAttribute("width","100%"),h.setAttribute("height","100%")),h}function n(){var l=Tt("feColorMatrix");return l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),l}return e}(),Tm=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),Ga={},xm="filter_result_";function tc(e){var i,n="SourceGraphic",l=e.data.ef?e.data.ef.length:0,p=ze(),h=gn.createFilter(p,!0),g=0;this.filters=[];var A;for(i=0;i<l;i+=1){A=null;var b=e.data.ef[i].ty;if(Ga[b]){var k=Ga[b].effect;A=new k(h,e.effectsManager.effectElements[i],e,xm+g,n),n=xm+g,Ga[b].countsAsEffect&&(g+=1)}A&&this.filters.push(A)}g&&(e.globalData.defs.appendChild(h),e.layerElement.setAttribute("filter","url("+f()+"#"+p+")")),this.filters.length&&e.addRenderableComponent(this)}tc.prototype.renderFrame=function(e){var i,n=this.filters.length;for(i=0;i<n;i+=1)this.filters[i].renderFrame(e)},tc.prototype.getEffects=function(e){var i,n=this.filters.length,l=[];for(i=0;i<n;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function q0(e,i,n){Ga[e]={effect:i,countsAsEffect:n}}function bn(){}bn.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var n=Tt("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=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 l=Tt("clipPath"),p=Tt("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var h=ze();if(l.setAttribute("id",h),l.appendChild(p),this.globalData.defs.appendChild(l),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+f()+"#"+h+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+h+")")}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 bo(this.data,this,this.globalData),this.renderableEffectsManager=new tc(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var n=this.layerId+"_"+i,l,p,h,g;if(i===1||i===3){var A=Tt("mask");A.setAttribute("id",n),A.setAttribute("mask-type",i===3?"luminance":"alpha"),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(h),this.globalData.defs.appendChild(A),!Tm.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=ze(),p=gn.createFilter(l),this.globalData.defs.appendChild(p),p.appendChild(gn.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(h),A.appendChild(g),g.setAttribute("filter","url("+f()+"#"+l+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var k=Tt("g");b.appendChild(k),l=ze(),p=gn.createFilter(l);var M=Tt("feComponentTransfer");M.setAttribute("in","SourceGraphic"),p.appendChild(M);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),M.appendChild(G),this.globalData.defs.appendChild(p);var x=Tt("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"),k.setAttribute("filter","url("+f()+"#"+l+")"),k.appendChild(x),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(h),Tm.maskType||(b.setAttribute("mask-type","luminance"),p.appendChild(gn.createAlphaToLuminanceFilter()),g=Tt("g"),k.appendChild(x),g.appendChild(this.layerElement),k.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=n}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+i+")")}};function ms(){}ms.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function yn(){}(function(){var e={initElement:function(n,l,p){this.initFrame(),this.initBaseData(n,l,p),this.initTransform(n,l,p),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()}};I([Ha,Y(e)],yn)})();function En(e,i,n){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}I([Ni,ps,bn,ms,Li,yn],En),En.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},En.prototype.sourceRectAtTime=function(){return this.sourceRect};function Vy(e,i){this.elem=e,this.pos=i}function Am(){}Am.prototype={addShapeToModifiers:function(i){var n,l=this.shapeModifiers.length;for(n=0;n<l;n+=1)this.shapeModifiers[n].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var n=0,l=this.shapeModifiers.length;n<l;)if(this.shapeModifiers[n].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,n=this.shapes.length;for(i=0;i<n;i+=1)this.shapes[i].sh.reset();n=this.shapeModifiers.length;var l;for(i=n-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var n=this.processedElements,l=0,p=n.length;l<p;){if(n[l].elem===i)return n[l].pos;l+=1}return 0},addProcessedElement:function(i,n){for(var l=this.processedElements,p=l.length;p;)if(p-=1,l[p].elem===i){l[p].pos=n;return}l.push(new Vy(i,n))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var Sm={1:"butt",2:"round",3:"square"},Im={1:"miter",2:"round",3:"bevel"};function _m(e,i,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=i,this._isAnimated=!!n.k;for(var l=0,p=e.length;l<p;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}_m.prototype.setAsAnimated=function(){this._isAnimated=!0};function Cm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}Cm.prototype.reset=function(){this.d="",this._mdf=!1};function Ka(e,i,n,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",i.length?i.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(l);var p,h=i.length||0,g;for(p=0;p<h;p+=1)g=nt.getProp(e,i[p].v,0,0,this),this.k=g.k||this.k,this.dataProps[p]={n:i[p].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}Ka.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<n;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},I([ge],Ka);function wm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.w=nt.getProp(e,i.w,0,null,this),this.d=new Ka(e,i.d||{},"svg",this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}I([ge],wm);function km(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n}I([ge],km);function Nm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}I([ge],Nm);function Tn(e,i,n){this.data=i,this.c=Z("uint8c",i.p*4);var l=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=Z("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(n),this.prop=nt.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Tn.prototype.comparePoints=function(e,i){for(var n=0,l=this.o.length/2,p;n<l;){if(p=Math.abs(e[n*4]-e[i*4+n*2]),p>.01)return!1;n+=1}return!0},Tn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Tn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,n=this.data.p*4,l,p;for(i=0;i<n;i+=1)l=i%4===0?100:255,p=Math.round(this.prop.v[i]*l),this.c[i]!==p&&(this.c[i]=p,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,i=this.data.p*4;i<n;i+=1)l=i%2===0?100:1,p=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==p&&(this.o[i-this.data.p*4]=p,this._omdf=!e);this._mdf=!e}},I([ge],Tn);function us(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,n)}us.prototype.initGradientData=function(e,i,n){this.o=nt.getProp(e,i.o,0,.01,this),this.s=nt.getProp(e,i.s,1,null,this),this.e=nt.getProp(e,i.e,1,null,this),this.h=nt.getProp(e,i.h||{k:0},0,.01,this),this.a=nt.getProp(e,i.a||{k:0},0,kt,this),this.g=new Tn(e,i.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,i),this.setGradientOpacity(i,n),this._isAnimated=!!this._isAnimated},us.prototype.setGradientData=function(e,i){var n=ze(),l=Tt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",n),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var p=[],h,g,A;for(A=i.g.p*4,g=0;g<A;g+=4)h=Tt("stop"),l.appendChild(h),p.push(h);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=l,this.cst=p},us.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var n,l,p,h=Tt("mask"),g=Tt("path");h.appendChild(g);var A=ze(),b=ze();h.setAttribute("id",b);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",A),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),p=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var M=this.stops;for(l=e.g.p*4;l<p;l+=2)n=Tt("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),M.push(n);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+f()+"#"+A+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",Sm[e.lc||2]),g.setAttribute("stroke-linejoin",Im[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=h,this.ost=M,this.maskId=b,i.msElem=g}},I([ge],us);function Lm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=nt.getProp(e,i.w,0,null,this),this.d=new Ka(e,i.d||{},"svg",this),this.initGradientData(e,i,n),this._isAnimated=!!this._isAnimated}I([us,ge],Lm);function By(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function Uy(e,i,n){this.transform={mProps:e,op:i,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Mm=function(i,n,l,p){if(n===0)return"";var h=i.o,g=i.i,A=i.v,b,k=" M"+p.applyToPointStringified(A[0][0],A[0][1]);for(b=1;b<n;b+=1)k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[b][0],g[b][1])+" "+p.applyToPointStringified(A[b][0],A[b][1]);return l&&n&&(k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[0][0],g[0][1])+" "+p.applyToPointStringified(A[0][0],A[0][1]),k+="z"),k},Hy=function(){var e=new Ae,i=new Ae,n={createRenderFunction:l};function l(G){switch(G.ty){case"fl":return A;case"gf":return k;case"gs":return b;case"st":return M;case"sh":case"el":case"rc":case"sr":return g;case"tr":return p;case"no":return h;default:return null}}function p(G,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 h(){}function g(G,x,O){var D,R,B,L,w,T,S=x.styles.length,N=x.lvl,F,H,W,rt;for(T=0;T<S;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(H=i.reset(),W=N-x.styles[T].lvl,rt=x.transformers.length-1;!L&&W>0;)L=x.transformers[rt].mProps._mdf||L,W-=1,rt-=1;if(L)for(W=N-x.styles[T].lvl,rt=x.transformers.length-1;W>0;)H.multiply(x.transformers[rt].mProps.v),W-=1,rt-=1}else H=e;if(F=x.sh.paths,R=F._length,L){for(B="",D=0;D<R;D+=1)w=F.shapes[D],w&&w._length&&(B+=Mm(w,w._length,w.c,H));x.caches[T]=B}else B=x.caches[T];x.styles[T].d+=G.hd===!0?"":B,x.styles[T]._mdf=L||x.styles[T]._mdf}}function A(G,x,O){var D=x.style;(x.c._mdf||O)&&D.pElem.setAttribute("fill","rgb("+ve(x.c.v[0])+","+ve(x.c.v[1])+","+ve(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){k(G,x,O),M(G,x,O)}function k(G,x,O){var D=x.gf,R=x.g._hasOpacity,B=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=G.t===1?"x1":"cx",S=T==="x1"?"y1":"cy";D.setAttribute(T,B[0]),D.setAttribute(S,B[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,B[0]),x.of.setAttribute(S,B[1]))}var N,F,H,W;if(x.g._cmdf||O){N=x.cst;var rt=x.g.c;for(H=N.length,F=0;F<H;F+=1)W=N[F],W.setAttribute("offset",rt[F*4]+"%"),W.setAttribute("stop-color","rgb("+rt[F*4+1]+","+rt[F*4+2]+","+rt[F*4+3]+")")}if(R&&(x.g._omdf||O)){var yt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,H=N.length,F=0;F<H;F+=1)W=N[F],x.g._collapsable||W.setAttribute("offset",yt[F*2]+"%"),W.setAttribute("stop-opacity",yt[F*2+1])}if(G.t===1)(x.e._mdf||O)&&(D.setAttribute("x2",L[0]),D.setAttribute("y2",L[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var mt;if((x.s._mdf||x.e._mdf||O)&&(mt=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)),D.setAttribute("r",mt),R&&!x.g._collapsable&&x.of.setAttribute("r",mt)),x.e._mdf||x.h._mdf||x.a._mdf||O){mt||(mt=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)));var st=Math.atan2(L[1]-B[1],L[0]-B[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=mt*xt,et=Math.cos(st+x.a.v)*ct+B[0],_=Math.sin(st+x.a.v)*ct+B[1];D.setAttribute("fx",et),D.setAttribute("fy",_),R&&!x.g._collapsable&&(x.of.setAttribute("fx",et),x.of.setAttribute("fy",_))}}}function M(G,x,O){var D=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&D.pElem.setAttribute("stroke","rgb("+ve(x.c.v[0])+","+ve(x.c.v[1])+","+ve(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return n}();function Qt(e,i,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,n),this.prevViewData=[]}I([Ni,ps,bn,Am,ms,Li,yn],Qt),Qt.prototype.initSecondaryElement=function(){},Qt.prototype.identityMatrix=new Ae,Qt.prototype.buildExpressionInterface=function(){},Qt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Qt.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,n,l,p=this.stylesList.length,h,g=[],A=!1;for(l=0;l<p;l+=1){for(h=this.stylesList[l],A=!1,g.length=0,e=0;e<i;e+=1)n=this.shapes[e],n.styles.indexOf(h)!==-1&&(g.push(n),A=n._isAnimated||A);g.length>1&&A&&this.setShapesAsAnimated(g)}},Qt.prototype.setShapesAsAnimated=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i].setAsAnimated()},Qt.prototype.createStyleElement=function(e,i){var n,l=new Cm(e,i),p=l.pElem;if(e.ty==="st")n=new wm(this,e,l);else if(e.ty==="fl")n=new km(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var h=e.ty==="gf"?us:Lm;n=new h(this,e,l),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),p.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new Nm(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(p.setAttribute("stroke-linecap",Sm[e.lc||2]),p.setAttribute("stroke-linejoin",Im[e.lj||2]),p.setAttribute("fill-opacity","0"),e.lj===1&&p.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&p.setAttribute("fill-rule","evenodd"),e.ln&&p.setAttribute("id",e.ln),e.cl&&p.setAttribute("class",e.cl),e.bm&&(p.style["mix-blend-mode"]=Jd(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,n),n},Qt.prototype.createGroupElement=function(e){var i=new By;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=Jd(e.bm)),i},Qt.prototype.createTransformElement=function(e,i){var n=jd.getTransformProperty(this,e,this),l=new Uy(n,n.o,i);return this.addToAnimatedContents(e,l),l},Qt.prototype.createShapeElement=function(e,i,n){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var p=Fa.getShapeProp(this,e,l,this),h=new _m(i,n,p);return this.shapes.push(h),this.addShapeToModifiers(h),this.addToAnimatedContents(e,h),h},Qt.prototype.addToAnimatedContents=function(e,i){for(var n=0,l=this.animatedContents.length;n<l;){if(this.animatedContents[n].element===i)return;n+=1}this.animatedContents.push({fn:Hy.createRenderFunction(e),element:i,data:e})},Qt.prototype.setElementStyles=function(e){var i=e.styles,n,l=this.stylesList.length;for(n=0;n<l;n+=1)this.stylesList[n].closed||i.push(this.stylesList[n])},Qt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Qt.prototype.searchShapes=function(e,i,n,l,p,h,g){var A=[].concat(h),b,k=e.length-1,M,G,x=[],O=[],D,R,B;for(b=k;b>=0;b-=1){if(B=this.searchProcessedElement(e[b]),B?i[b]=n[B-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")B?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],p),e[b]._render&&i[b].style.pElem.parentNode!==l&&l.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!B)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,M=0;M<G;M+=1)i[b].prevViewData[M]=i[b].it[M];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,p+1,A,g),e[b]._render&&i[b].gr.parentNode!==l&&l.appendChild(i[b].gr)}else e[b].ty==="tr"?(B||(i[b]=this.createTransformElement(e[b],l)),D=i[b].transform,A.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(B||(i[b]=this.createShapeElement(e[b],A,p)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(B?(R=i[b],R.closed=!1):(R=wi.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),O.push(R)):e[b].ty==="rp"&&(B?(R=i[b],R.closed=!0):(R=wi.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(e[b],b+1)}for(k=x.length,b=0;b<k;b+=1)x[b].closed=!0;for(k=O.length,b=0;b<k;b+=1)O[b].closed=!0},Qt.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Qt.prototype.renderShape=function(){var e,i=this.animatedContents.length,n;for(e=0;e<i;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},Qt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ec(e,i,n,l,p,h){this.o=e,this.sw=i,this.sc=n,this.fc=l,this.m=p,this.p=h,this._mdf={o:!0,sw:!!i,sc:!!n,fc:!!l,m:!0,p:!0}}ec.prototype.update=function(e,i,n,l,p,h){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!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,g=!0),this.m!==p&&(this.m=p,this._mdf.m=!0,g=!0),h.length&&(this.p[0]!==h[0]||this.p[1]!==h[1]||this.p[4]!==h[4]||this.p[5]!==h[5]||this.p[12]!==h[12]||this.p[13]!==h[13])&&(this.p=h,this._mdf.p=!0,g=!0),g};function Ne(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Ne.prototype.defaultBoxWidth=[0,0],Ne.prototype.copyData=function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},Ne.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ne.prototype.searchProperty=function(){return this.searchKeyframes()},Ne.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ne.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Ne.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,p=this.effectsSequence.length,h=e||this.data.d.k[this.keysIndex].s;for(l=0;l<p;l+=1)n!==this.keysIndex?h=this.effectsSequence[l](h,h.t):h=this.effectsSequence[l](this.currentData,h.t);i!==h&&this.setCurrentData(h),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Ne.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,n=0,l=e.length;n<=l-1&&!(n===l-1||e[n+1].t>i);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Ne.prototype.buildFinalText=function(e){for(var i=[],n=0,l=e.length,p,h,g=!1,A=!1,b="";n<l;)g=A,A=!1,p=e.charCodeAt(n),b=e.charAt(n),go.isCombinedCharacter(p)?g=!0:p>=55296&&p<=56319?go.isRegionalFlag(e,n)?b=e.substr(n,14):(h=e.charCodeAt(n+1),h>=56320&&h<=57343&&(go.isModifier(p,h)?(b=e.substr(n,2),g=!0):go.isFlagEmoji(e.substr(n,4))?b=e.substr(n,4):b=e.substr(n,2))):p>56319?(h=e.charCodeAt(n+1),go.isVariationSelector(p)&&(g=!0)):go.isZeroWidthJoiner(p)&&(g=!0,A=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),n+=b.length;return i},Ne.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,n=this.data,l=[],p,h,g,A=0,b,k=n.m.g,M=0,G=0,x=0,O=[],D=0,R=0,B,L,w=i.getFontByName(e.f),T,S=0,N=bm(w);e.fWeight=N.weight,e.fStyle=N.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),h=e.finalText.length,e.finalLineHeight=e.lh;var F=e.tr/1e3*e.finalSize,H;if(e.sz)for(var W=!0,rt=e.sz[0],yt=e.sz[1],mt,st;W;){st=this.buildFinalText(e.t),mt=0,D=0,h=st.length,F=e.tr/1e3*e.finalSize;var xt=-1;for(p=0;p<h;p+=1)H=st[p].charCodeAt(0),g=!1,st[p]===" "?xt=p:(H===13||H===3)&&(D=0,g=!0,mt+=e.finalLineHeight||e.finalSize*1.2),i.chars?(T=i.getCharData(st[p],w.fStyle,w.fFamily),S=g?0:T.w*e.finalSize/100):S=i.measureText(st[p],e.f,e.finalSize),D+S>rt&&st[p]!==" "?(xt===-1?h+=1:p=xt,mt+=e.finalLineHeight||e.finalSize*1.2,st.splice(p,xt===p?1:0,"\r"),xt=-1,D=0):(D+=S,D+=F);mt+=w.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<mt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,h=e.finalText.length,W=!1)}D=-F,S=0;var ct=0,et;for(p=0;p<h;p+=1)if(g=!1,et=e.finalText[p],H=et.charCodeAt(0),H===13||H===3?(ct=0,O.push(D),R=D>R?D:R,D=-2*F,b="",g=!0,x+=1):b=et,i.chars?(T=i.getCharData(et,w.fStyle,i.getFontByName(e.f).fFamily),S=g?0:T.w*e.finalSize/100):S=i.measureText(b,e.f,e.finalSize),et===" "?ct+=S+F:(D+=S+F+ct,ct=0),l.push({l:S,an:S,add:M,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),k==2){if(M+=S,b===""||b===" "||p===h-1){for((b===""||b===" ")&&(M-=S);G<=p;)l[G].an=M,l[G].ind=A,l[G].extra=S,G+=1;A+=1,M=0}}else if(k==3){if(M+=S,b===""||p===h-1){for(b===""&&(M-=S);G<=p;)l[G].an=M,l[G].ind=A,l[G].extra=S,G+=1;M=0,A+=1}}else l[A].ind=A,l[A].extra=0,A+=1;if(e.l=l,R=D>R?D:R,O.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=O;var _=n.a,P,v;L=_.length;var E,K,z=[];for(B=0;B<L;B+=1){for(P=_[B],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),K=0,E=P.s.b,p=0;p<h;p+=1)v=l[p],v.anIndexes[B]=K,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||p==h-1)||E==4&&(v.n||p==h-1))&&(P.s.rn===1&&z.push(K),K+=1);n.a[B].s.totalChars=K;var at=-1,vt;if(P.s.rn===1)for(p=0;p<h;p+=1)v=l[p],at!=v.anIndexes[B]&&(at=v.anIndexes[B],vt=z.splice(Math.floor(Math.random()*z.length),1)[0]),v.anIndexes[B]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=w.ascent*e.finalSize/100},Ne.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var n=this.copyData({},this.data.d.k[i].s);n=this.copyData(n,e),this.data.d.k[i].s=n,this.recalculate(i),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Ne.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},Ne.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ne.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Gy=function(){var e=Math.max,i=Math.min,n=Math.floor;function l(h,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=h,this.comp=h.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(h),this.s=nt.getProp(h,g.s||{k:0},0,0,this),"e"in g?this.e=nt.getProp(h,g.e,0,0,this):this.e={v:100},this.o=nt.getProp(h,g.o||{k:0},0,0,this),this.xe=nt.getProp(h,g.xe||{k:0},0,0,this),this.ne=nt.getProp(h,g.ne||{k:0},0,0,this),this.sm=nt.getProp(h,g.sm||{k:100},0,0,this),this.a=nt.getProp(h,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,b=0,k=1,M=1;this.ne.v>0?A=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var G=cn.getBezierEasing(A,b,k,M).get,x=0,O=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===O?x=g>=D?1:0:x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===3)D===O?x=g>=D?0:1:x=1-e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===4)D===O?x=0:(x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===O)x=0;else{var B=D-O;g=i(e(0,g+.5-O),D-O);var L=-B/2+g,w=B/2;x=Math.sqrt(1-L*L/(w*w))}x=G(x)}else R===6?(D===O?x=0:(g=i(e(0,g+.5-O),D-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-O)))/2),x=G(x)):(g>=n(O)&&(g-O<0?x=e(0,i(i(D,1)-(O-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var S=.5-T*.5;x<S?x=0:(x=(x-S)/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 A=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/A,k=this.s.v/A+b,M=this.e.v/A+b;if(k>M){var G=k;k=M,M=G}this.finalS=k,this.finalE=M}},I([ge],l);function p(h,g,A){return new l(h,g,A)}return{getTextSelectorProp:p}}();function Ky(e,i,n){var l={propType:!1},p=nt.getProp,h=i.a;this.a={r:h.r?p(e,h.r,0,kt,n):l,rx:h.rx?p(e,h.rx,0,kt,n):l,ry:h.ry?p(e,h.ry,0,kt,n):l,sk:h.sk?p(e,h.sk,0,kt,n):l,sa:h.sa?p(e,h.sa,0,kt,n):l,s:h.s?p(e,h.s,1,.01,n):l,a:h.a?p(e,h.a,1,0,n):l,o:h.o?p(e,h.o,0,.01,n):l,p:h.p?p(e,h.p,1,0,n):l,sw:h.sw?p(e,h.sw,0,0,n):l,sc:h.sc?p(e,h.sc,1,0,n):l,fc:h.fc?p(e,h.fc,1,0,n):l,fh:h.fh?p(e,h.fh,0,0,n):l,fs:h.fs?p(e,h.fs,0,.01,n):l,fb:h.fb?p(e,h.fb,0,.01,n):l,t:h.t?p(e,h.t,0,0,n):l},this.s=Gy.getTextSelectorProp(e,i.s,n),this.s.t=i.s.t}function yo(e,i,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=n,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}yo.prototype.searchProperties=function(){var e,i=this._textData.a.length,n,l=nt.getProp;for(e=0;e<i;e+=1)n=this._textData.a[e],this._animatorsData[e]=new Ky(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(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=l(this._elem,this._textData.m.a,1,0,this)},yo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,l=this._animatorsData,p=this._textData,h=this.mHelper,g=this._renderType,A=this.renderedLetters.length,b,k,M,G,x=e.l,O,D,R,B,L,w,T,S,N,F,H,W,rt,yt,mt;if(this._hasMaskedPath){if(mt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=mt.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var xt;for(W=0,M=0;M<G;M+=1)xt=Dr.buildBezierData(st.v[M],st.v[M+1],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[M+1][0]-st.v[M+1][0],st.i[M+1][1]-st.v[M+1][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),W+=xt.segmentLength;M=G,mt.v.c&&(xt=Dr.buildBezierData(st.v[M],st.v[0],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),W+=xt.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,D=this._pathData.f.v,T=0,w=1,B=0,L=!0,F=O.segments,D<0&&mt.v.c)for(O.tLength<Math.abs(D)&&(D=-Math.abs(D)%O.tLength),T=F.length-1,N=F[T].points,w=N.length-1;D<0;)D+=N[w].partialLength,w-=1,w<0&&(T-=1,N=F[T].points,w=N.length-1);N=F[T].points,S=N[w-1],R=N[w],H=R.partialLength}G=x.length,b=0,k=0;var ct=e.finalSize*1.2*.714,et=!0,_,P,v,E,K;E=l.length;var z,at=-1,vt,Et,Rt,Pt=D,oe=T,Be=w,$r=-1,Ue,be,Je,$t,ht,ii,Ri,oi,zr="",si=this.defaultPropsArray,ni;if(e.j===2||e.j===1){var He=0,Pi=0,Di=e.j===2?-.5:-1,_r=0,Fi=!0;for(M=0;M<G;M+=1)if(x[M].n){for(He&&(He+=Pi);_r<M;)x[_r].animatorJustifyOffset=He,_r+=1;He=0,Fi=!0}else{for(v=0;v<E;v+=1)_=l[v].a,_.t.propType&&(Fi&&e.j===2&&(Pi+=_.t.v*Di),P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?He+=_.t.v*z[0]*Di:He+=_.t.v*z*Di);Fi=!1}for(He&&(He+=Pi);_r<M;)x[_r].animatorJustifyOffset=He,_r+=1}for(M=0;M<G;M+=1){if(h.reset(),Ue=1,x[M].n)b=0,k+=e.yOffset,k+=et?1:0,D=Pt,et=!1,this._hasMaskedPath&&(T=oe,w=Be,N=F[T].points,S=N[w-1],R=N[w],H=R.partialLength,B=0),zr="",oi="",ii="",ni="",si=this.defaultPropsArray;else{if(this._hasMaskedPath){if($r!==x[M].line){switch(e.j){case 1:D+=W-e.lineWidths[x[M].line];break;case 2:D+=(W-e.lineWidths[x[M].line])/2;break;default:break}$r=x[M].line}at!==x[M].ind&&(x[at]&&(D+=x[at].extra),D+=x[M].an/2,at=x[M].ind),D+=n[0]*x[M].an*.005;var Cr=0;for(v=0;v<E;v+=1)_=l[v].a,_.p.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?Cr+=_.p.v[0]*z[0]:Cr+=_.p.v[0]*z),_.a.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?Cr+=_.a.v[0]*z[0]:Cr+=_.a.v[0]*z);for(L=!0,this._pathData.a.v&&(D=x[0].an*.5+(W-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*at/(G-1),D+=this._pathData.f.v);L;)B+H>=D+Cr||!N?(rt=(D+Cr-B)/R.partialLength,Et=S.point[0]+(R.point[0]-S.point[0])*rt,Rt=S.point[1]+(R.point[1]-S.point[1])*rt,h.translate(-n[0]*x[M].an*.005,-(n[1]*ct)*.01),L=!1):N&&(B+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,F[T]?N=F[T].points:mt.v.c?(w=0,T=0,N=F[T].points):(B-=R.partialLength,N=null)),N&&(S=R,R=N[w],H=R.partialLength));vt=x[M].an/2-x[M].add,h.translate(-vt,0,0)}else vt=x[M].an/2-x[M].add,h.translate(-vt,0,0),h.translate(-n[0]*x[M].an*.005,-n[1]*ct*.01,0);for(v=0;v<E;v+=1)_=l[v].a,_.t.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?z.length?D+=_.t.v*z[0]:D+=_.t.v*z:z.length?b+=_.t.v*z[0]:b+=_.t.v*z));for(e.strokeWidthAnim&&(Je=e.sw||0),e.strokeColorAnim&&(e.sc?be=[e.sc[0],e.sc[1],e.sc[2]]:be=[0,0,0]),e.fillColorAnim&&e.fc&&($t=[e.fc[0],e.fc[1],e.fc[2]]),v=0;v<E;v+=1)_=l[v].a,_.a.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?h.translate(-_.a.v[0]*z[0],-_.a.v[1]*z[1],_.a.v[2]*z[2]):h.translate(-_.a.v[0]*z,-_.a.v[1]*z,_.a.v[2]*z));for(v=0;v<E;v+=1)_=l[v].a,_.s.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?h.scale(1+(_.s.v[0]-1)*z[0],1+(_.s.v[1]-1)*z[1],1):h.scale(1+(_.s.v[0]-1)*z,1+(_.s.v[1]-1)*z,1));for(v=0;v<E;v+=1){if(_=l[v].a,P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),_.sk.propType&&(z.length?h.skewFromAxis(-_.sk.v*z[0],_.sa.v*z[1]):h.skewFromAxis(-_.sk.v*z,_.sa.v*z)),_.r.propType&&(z.length?h.rotateZ(-_.r.v*z[2]):h.rotateZ(-_.r.v*z)),_.ry.propType&&(z.length?h.rotateY(_.ry.v*z[1]):h.rotateY(_.ry.v*z)),_.rx.propType&&(z.length?h.rotateX(_.rx.v*z[0]):h.rotateX(_.rx.v*z)),_.o.propType&&(z.length?Ue+=(_.o.v*z[0]-Ue)*z[0]:Ue+=(_.o.v*z-Ue)*z),e.strokeWidthAnim&&_.sw.propType&&(z.length?Je+=_.sw.v*z[0]:Je+=_.sw.v*z),e.strokeColorAnim&&_.sc.propType)for(ht=0;ht<3;ht+=1)z.length?be[ht]+=(_.sc.v[ht]-be[ht])*z[0]:be[ht]+=(_.sc.v[ht]-be[ht])*z;if(e.fillColorAnim&&e.fc){if(_.fc.propType)for(ht=0;ht<3;ht+=1)z.length?$t[ht]+=(_.fc.v[ht]-$t[ht])*z[0]:$t[ht]+=(_.fc.v[ht]-$t[ht])*z;_.fh.propType&&(z.length?$t=Kp($t,_.fh.v*z[0]):$t=Kp($t,_.fh.v*z)),_.fs.propType&&(z.length?$t=Hp($t,_.fs.v*z[0]):$t=Hp($t,_.fs.v*z)),_.fb.propType&&(z.length?$t=Gp($t,_.fb.v*z[0]):$t=Gp($t,_.fb.v*z))}}for(v=0;v<E;v+=1)_=l[v].a,_.p.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),this._hasMaskedPath?z.length?h.translate(0,_.p.v[1]*z[0],-_.p.v[2]*z[1]):h.translate(0,_.p.v[1]*z,-_.p.v[2]*z):z.length?h.translate(_.p.v[0]*z[0],_.p.v[1]*z[1],-_.p.v[2]*z[2]):h.translate(_.p.v[0]*z,_.p.v[1]*z,-_.p.v[2]*z));if(e.strokeWidthAnim&&(ii=Je<0?0:Je),e.strokeColorAnim&&(Ri="rgb("+Math.round(be[0]*255)+","+Math.round(be[1]*255)+","+Math.round(be[2]*255)+")"),e.fillColorAnim&&e.fc&&(oi="rgb("+Math.round($t[0]*255)+","+Math.round($t[1]*255)+","+Math.round($t[2]*255)+")"),this._hasMaskedPath){if(h.translate(0,-e.ls),h.translate(0,n[1]*ct*.01+k,0),this._pathData.p.v){yt=(R.point[1]-S.point[1])/(R.point[0]-S.point[0]);var Eo=Math.atan(yt)*180/Math.PI;R.point[0]<S.point[0]&&(Eo+=180),h.rotate(-Eo*Math.PI/180)}h.translate(Et,Rt,0),D-=n[0]*x[M].an*.005,x[M+1]&&at!==x[M+1].ind&&(D+=x[M].an/2,D+=e.tr*.001*e.finalSize)}else{switch(h.translate(b,k,0),e.ps&&h.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line]),0,0);break;case 2:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line])/2,0,0);break;default:break}h.translate(0,-e.ls),h.translate(vt,0,0),h.translate(n[0]*x[M].an*.005,n[1]*ct*.01,0),b+=x[M].l+e.tr*.001*e.finalSize}g==="html"?zr=h.toCSS():g==="svg"?zr=h.to2dCSS():si=[h.props[0],h.props[1],h.props[2],h.props[3],h.props[4],h.props[5],h.props[6],h.props[7],h.props[8],h.props[9],h.props[10],h.props[11],h.props[12],h.props[13],h.props[14],h.props[15]],ni=Ue}A<=M?(K=new ec(ni,ii,Ri,oi,zr,si),this.renderedLetters.push(K),A+=1,this.lettersChangedFlag=!0):(K=this.renderedLetters[M],this.lettersChangedFlag=K.update(ni,ii,Ri,oi,zr,si)||this.lettersChangedFlag)}}},yo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},yo.prototype.mHelper=new Ae,yo.prototype.defaultPropsArray=[],I([ge],yo);function hr(){}hr.prototype.initElement=function(e,i,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,n),this.textProperty=new Ne(this,e.t,this.dynamicProperties),this.textAnimator=new yo(e.t,this.renderType,this),this.initTransform(e,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},hr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},hr.prototype.createPathShape=function(e,i){var n,l=i.length,p,h="";for(n=0;n<l;n+=1)i[n].ty==="sh"&&(p=i[n].ks.k,h+=Mm(p,p.i.length,!0,e));return h},hr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},hr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},hr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},hr.prototype.applyTextPropertiesToMatrix=function(e,i,n,l,p){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}i.translate(l,p,0)},hr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},hr.prototype.emptyProp=new ec,hr.prototype.destroy=function(){},hr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Wy={shapes:[]};function ei(e,i,n){this.textSpans=[],this.renderType="svg",this.initElement(e,i,n)}I([Ni,ps,bn,ms,Li,yn,hr],ei),ei.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ei.prototype.buildTextContents=function(e){for(var i=0,n=e.length,l=[],p="";i<n;)e[i]==="\r"||e[i]===""?(l.push(p),p=""):p+=e[i],i+=1;return l.push(p),l},ei.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var l=n.it[n.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},ei.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,n=this.textProperty.currentData;this.renderedLetters=it(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 l=this.globalData.fontManager.getFontByName(n.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var p=n.fWeight,h=n.fStyle;this.layerElement.setAttribute("font-style",h),this.layerElement.setAttribute("font-weight",p)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],A=!!this.globalData.fontManager.chars;i=g.length;var b,k=this.mHelper,M="",G=this.data.singleShape,x=0,O=0,D=!0,R=n.tr*.001*n.finalSize;if(G&&!A&&!n.sz){var B=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}B.setAttribute("text-anchor",L),B.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(i=w.length,O=n.ps?n.ps[1]+n.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=w[e],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",B.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(B)}else{var T=this.textSpans.length,S;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!A||!G||e===0){if(b=T>e?this.textSpans[e].span:Tt(A?"g":"text"),T<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,A){var N=Tt("g");b.appendChild(N),this.textSpans[e].childSpan=N}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(k.reset(),G&&(g[e].n&&(x=-R,O+=n.yOffset,O+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(n,k,g[e].line,x,O),x+=g[e].l||0,x+=R),A){S=this.globalData.fontManager.getCharData(n.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var F;if(S.t===1)F=new xn(S.data,this.globalData,this);else{var H=Wy;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,n.finalSize)),F=new Qt(H,this.globalData,this)}if(this.textSpans[e].glyph){var W=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(W.layerElement),W.destroy()}this.textSpans[e].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[e].childSpan.appendChild(F.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",M)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ei.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},ei.prototype.getValue=function(){var e,i=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ei.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,n=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var p,h,g;for(e=0;e<i;e+=1)l[e].n||(p=n[e],h=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),p._mdf.m&&h.setAttribute("transform",p.m),p._mdf.o&&h.setAttribute("opacity",p.o),p._mdf.sw&&h.setAttribute("stroke-width",p.sw),p._mdf.sc&&h.setAttribute("stroke",p.sc),p._mdf.fc&&h.setAttribute("fill",p.fc))}};function rc(e,i,n){this.initElement(e,i,n)}I([En],rc),rc.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Oi(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initFrame(),this.initTransform(e,i,n),this.initHierarchy()}Oi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Oi.prototype.renderFrame=function(){},Oi.prototype.getBaseElement=function(){return null},Oi.prototype.destroy=function(){},Oi.prototype.sourceRectAtTime=function(){},Oi.prototype.hide=function(){},I([Ni,ps,ms,Li],Oi);function de(){}I([Se],de),de.prototype.createNull=function(e){return new Oi(e,this.globalData,this)},de.prototype.createShape=function(e){return new Qt(e,this.globalData,this)},de.prototype.createText=function(e){return new ei(e,this.globalData,this)},de.prototype.createImage=function(e){return new En(e,this.globalData,this)},de.prototype.createSolid=function(e){return new rc(e,this.globalData,this)},de.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var p=ze();n.setAttribute("id",p),n.appendChild(l),this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")"),i.appendChild(n),this.layers=e.layers,this.elements=it(e.layers.length)},de.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},de.prototype.updateContainerSize=function(){},de.prototype.findIndexByInd=function(e){var i=0,n=this.layers.length;for(i=0;i<n;i+=1)if(this.layers[i].ind===e)return i;return-1},de.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var n=this.createItem(this.layers[e]);if(i[e]=n,Na()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(n);else{var p=i[l],h=p.getMatte(this.layers[e].tt);n.setMatte(h)}}}},de.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,n=this.elements.length;i<n;){if(this.elements[i]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,p=this.elements[l],h=p.getMatte(this.layers[i].tt);e.setMatte(h);break}i+=1}}},de.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},de.prototype.appendElementInPos=function(e,i){var n=e.getBaseElement();if(n){for(var l=0,p;l<i;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(p=this.elements[l].getBaseElement()),l+=1;p?this.layerElement.insertBefore(n,p):this.layerElement.appendChild(n)}},de.prototype.hide=function(){this.layerElement.style.display="none"},de.prototype.show=function(){this.layerElement.style.display="block"};function ri(){}I([Ni,ps,ms,Li,yn],ri),ri.prototype.initElement=function(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initTransform(e,i,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},ri.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var n,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=l-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))}},ri.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ri.prototype.setElements=function(e){this.elements=e},ri.prototype.getElements=function(){return this.elements},ri.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},ri.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function xn(e,i,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,n),this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}I([de,ri,bn],xn),xn.prototype.createComp=function(e){return new xn(e,this.globalData,this)};function ic(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var n="";if(i&&i.title){var l=Tt("title"),p=ze();l.setAttribute("id",p),l.textContent=i.title,this.svgElement.appendChild(l),n+=p}if(i&&i.description){var h=Tt("desc"),g=ze();h.setAttribute("id",g),h.textContent=i.description,this.svgElement.appendChild(h),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var A=Tt("defs");this.svgElement.appendChild(A);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:A,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return I([de],ic),ic.prototype.createComp=function(e){return new xn(e,this.globalData,this)},ry("svg",ic),wi.registerModifier("tm",Ir),wi.registerModifier("pb",hn),wi.registerModifier("rp",Fr),wi.registerModifier("rd",pn),wi.registerModifier("zz",un),wi.registerModifier("op",fn),Dt})});var qa=globalThis,Xa=qa.ShadowRoot&&(qa.ShadyCSS===void 0||qa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sc=Symbol(),Rm=new WeakMap,An=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==sc)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(Xa&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Rm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Rm.set(t,o))}return o}toString(){return this.cssText}},Pm=a=>new An(typeof a=="string"?a:a+"",void 0,sc),U=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((r,s,d)=>r+(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.")})(s)+a[d+1],a[0]);return new An(t,a,sc)},nc=(a,o)=>{if(Xa)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=qa.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,a.appendChild(r)}},Za=Xa?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Pm(t)})(a):a;var{is:tE,defineProperty:eE,getOwnPropertyDescriptor:rE,getOwnPropertyNames:iE,getOwnPropertySymbols:oE,getPrototypeOf:sE}=Object,$i=globalThis,Dm=$i.trustedTypes,nE=Dm?Dm.emptyScript:"",ac=$i.reactiveElementPolyfillSupport,Sn=(a,o)=>a,In={toAttribute(a,o){switch(o){case Boolean:a=a?nE: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}},Qa=(a,o)=>!tE(a,o),Fm={attribute:!0,type:String,converter:In,reflect:!1,hasChanged:Qa},$m,zm;($m=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(zm=$i.litPropertyMetadata)!=null||($i.litPropertyMetadata=new WeakMap);var ai=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=Fm){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&eE(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var c;let{get:s,set:d}=(c=rE(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return s==null?void 0:s.call(this)},set(f){let y=s==null?void 0:s.call(this);d.call(this,f),this.requestUpdate(o,y,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:Fm}static _$Ei(){if(this.hasOwnProperty(Sn("elementProperties")))return;let o=sE(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Sn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Sn("properties"))){let t=this.properties,r=[...iE(t),...oE(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift(Za(s))}else o!==void 0&&t.push(Za(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r: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,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return nc(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(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var d;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let c=(((d=r.converter)==null?void 0:d.toAttribute)!==void 0?r.converter:In).toAttribute(t,r.type);this._$Em=o,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(o,t){var d;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((d=c.converter)==null?void 0:d.fromAttribute)!==void 0?c.converter:In;this._$Em=s,this[s]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:Qa)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s: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 r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[c,f]of d)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),(s=this._$EO)==null||s.forEach(d=>{var c;return(c=d.hostUpdate)==null?void 0:c.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),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){}},Vm;ai.elementStyles=[],ai.shadowRootOptions={mode:"open"},ai[Sn("elementProperties")]=new Map,ai[Sn("finalized")]=new Map,ac==null||ac({ReactiveElement:ai}),((Vm=$i.reactiveElementVersions)!=null?Vm:$i.reactiveElementVersions=[]).push("2.0.4");var Cn=globalThis,Ja=Cn.trustedTypes,Bm=Ja?Ja.createPolicy("lit-html",{createHTML:a=>a}):void 0,cc="$lit$",li=`lit$${Math.random().toFixed(9).slice(2)}$`,hc="?"+li,aE=`<${hc}>`,Ao=document,wn=()=>Ao.createComment(""),kn=a=>a===null||typeof a!="object"&&typeof a!="function",pc=Array.isArray,jm=a=>pc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",lc=`[
3
- \f\r]`,_n=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Um=/-->/g,Hm=/>/g,To=RegExp(`>|${lc}(?:([^\\s"'>=/]+)(${lc}*=${lc}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Gm=/'/g,Km=/"/g,qm=/^(?:script|style|textarea|title)$/i,mc=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),C=mc(1),eS=mc(2),rS=mc(3),Ie=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Wm=new WeakMap,xo=Ao.createTreeWalker(Ao,129);function Xm(a,o){if(!pc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bm!==void 0?Bm.createHTML(o):o}var Zm=(a,o)=>{let t=a.length-1,r=[],s,d=o===2?"<svg>":o===3?"<math>":"",c=_n;for(let f=0;f<t;f++){let y=a[f],I,$,Y=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,$=c.exec(y),$!==null);)Q=c.lastIndex,c===_n?$[1]==="!--"?c=Um:$[1]!==void 0?c=Hm:$[2]!==void 0?(qm.test($[2])&&(s=RegExp("</"+$[2],"g")),c=To):$[3]!==void 0&&(c=To):c===To?$[0]===">"?(c=s!=null?s:_n,Y=-1):$[1]===void 0?Y=-2:(Y=c.lastIndex-$[2].length,I=$[1],c=$[3]===void 0?To:$[3]==='"'?Km:Gm):c===Km||c===Gm?c=To:c===Um||c===Hm?c=_n:(c=To,s=void 0);let Z=c===To&&a[f+1].startsWith("/>")?" ":"";d+=c===_n?y+aE:Y>=0?(r.push(I),y.slice(0,Y)+cc+y.slice(Y)+li+Z):y+li+(Y===-2?f:Z)}return[Xm(a,d+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},Nn=class a{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let d=0,c=0,f=o.length-1,y=this.parts,[I,$]=Zm(o,t);if(this.el=a.createElement(I,r),xo.currentNode=this.el.content,t===2||t===3){let Y=this.el.content.firstChild;Y.replaceWith(...Y.childNodes)}for(;(s=xo.nextNode())!==null&&y.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let Y of s.getAttributeNames())if(Y.endsWith(cc)){let Q=$[c++],Z=s.getAttribute(Y).split(li),it=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:d,name:it[2],strings:Z,ctor:it[1]==="."?el:it[1]==="?"?rl:it[1]==="@"?il:Io}),s.removeAttribute(Y)}else Y.startsWith(li)&&(y.push({type:6,index:d}),s.removeAttribute(Y));if(qm.test(s.tagName)){let Y=s.textContent.split(li),Q=Y.length-1;if(Q>0){s.textContent=Ja?Ja.emptyScript:"";for(let Z=0;Z<Q;Z++)s.append(Y[Z],wn()),xo.nextNode(),y.push({type:2,index:++d});s.append(Y[Q],wn())}}}else if(s.nodeType===8)if(s.data===hc)y.push({type:2,index:d});else{let Y=-1;for(;(Y=s.data.indexOf(li,Y+1))!==-1;)y.push({type:7,index:d}),Y+=li.length-1}d++}}static createElement(o,t){let r=Ao.createElement("template");return r.innerHTML=o,r}};function So(a,o,t=a,r){var c,f,y;if(o===Ie)return o;let s=r!==void 0?(c=t.o)==null?void 0:c[r]:t.l,d=kn(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((f=s==null?void 0:s._$AO)==null||f.call(s,!1),d===void 0?s=void 0:(s=new d(a),s._$AT(a,t,r)),r!==void 0?((y=t.o)!=null?y:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=So(a,s._$AS(a,o.values),s,r)),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 I;let{el:{content:t},parts:r}=this._$AD,s=((I=o==null?void 0:o.creationScope)!=null?I:Ao).importNode(t,!0);xo.currentNode=s;let d=xo.nextNode(),c=0,f=0,y=r[0];for(;y!==void 0;){if(c===y.index){let $;y.type===2?$=new fs(d,d.nextSibling,this,o):y.type===1?$=new y.ctor(d,y.name,y.strings,this,o):y.type===6&&($=new ol(d,this,o)),this._$AV.push($),y=r[++f]}c!==(y==null?void 0:y.index)&&(d=xo.nextNode(),c++)}return xo.currentNode=Ao,s}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},fs=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var d;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(d=s==null?void 0:s.isConnected)!=null?d:!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=So(this,o,t),kn(o)?o===j||o==null||o===""?(this._$AH!==j&&this._$AR(),this._$AH=j):o!==this._$AH&&o!==Ie&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):jm(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!==j&&kn(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ao.createTextNode(o)),this._$AH=o}$(o){var d;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=Nn.createElement(Xm(r.h,r.h[0]),this.options)),r);if(((d=this._$AH)==null?void 0:d._$AD)===s)this._$AH.p(t);else{let c=new tl(s,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=Wm.get(o.strings);return t===void 0&&Wm.set(o.strings,t=new Nn(o)),t}k(o){pc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let d of o)s===t.length?t.push(r=new a(this.O(wn()),this.O(wn()),this,this.options)):r=t[s],r._$AI(d),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Io=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,d){this.type=1,this._$AH=j,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=j}_$AI(o,t=this,r,s){let d=this.strings,c=!1;if(d===void 0)o=So(this,o,t,0),c=!kn(o)||o!==this._$AH&&o!==Ie,c&&(this._$AH=o);else{let f=o,y,I;for(o=d[0],y=0;y<d.length-1;y++)I=So(this,f[r+y],t,y),I===Ie&&(I=this._$AH[y]),c||(c=!kn(I)||I!==this._$AH[y]),I===j?o=j:o!==j&&(o+=(I!=null?I:"")+d[y+1]),this._$AH[y]=I}c&&!s&&this.j(o)}j(o){o===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},el=class extends Io{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===j?void 0:o}},rl=class extends Io{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==j)}},il=class extends Io{constructor(o,t,r,s,d){super(o,t,r,s,d),this.type=5}_$AI(o,t=this){var c;if((o=(c=So(this,o,t,0))!=null?c:j)===Ie)return;let r=this._$AH,s=o===j&&r!==j||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,d=o!==j&&(r===j||s);s&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},ol=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){So(this,o)}},Qm={M:cc,P:li,A:hc,C:1,L:Zm,R:tl,D:jm,V:So,I:fs,H:Io,N:rl,U:il,B:el,F:ol},dc=Cn.litHtmlPolyfillSupport,Ym;dc==null||dc(Nn,fs),((Ym=Cn.litHtmlVersions)!=null?Ym:Cn.litHtmlVersions=[]).push("3.2.0");var Jm=(a,o,t)=>{var d,c;let r=(d=t==null?void 0:t.renderBefore)!=null?d:o,s=r._$litPart$;if(s===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;r._$litPart$=s=new fs(o.insertBefore(wn(),f),f,void 0,t!=null?t:{})}return s._$AI(a),s};var zi=class extends ai{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(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=Jm(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 Ie}},tu;zi._$litElement$=!0,zi.finalized=!0,(tu=globalThis.litElementHydrateSupport)==null||tu.call(globalThis,{LitElement:zi});var uc=globalThis.litElementPolyfillSupport;uc==null||uc({LitElement:zi});var eu;((eu=globalThis.litElementVersions)!=null?eu:globalThis.litElementVersions=[]).push("4.1.0");var lE={attribute:!0,type:String,converter:In,reflect:!1,hasChanged:Qa},dE=(a=lE,o,t)=>{let{kind:r,metadata:s}=t,d=globalThis.litPropertyMetadata.get(s);if(d===void 0&&globalThis.litPropertyMetadata.set(s,d=new Map),d.set(t.name,a),r==="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(r==="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: "+r)};function u(a){return(o,t)=>typeof t=="object"?dE(a,o,t):((r,s,d)=>{let c=s.hasOwnProperty(d);return s.constructor.createProperty(d,c?{...r,wrapped:!0}:r),c?Object.getOwnPropertyDescriptor(s,d):void 0})(a,o,t)}function ut(a){return u({...a,state:!0,attribute:!1})}function ru(a){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,a)}}var Vr=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Jt(a,o){return(t,r,s)=>{let d=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 r=="object"?t:s!=null?s:(()=>{let y=Symbol();return{get(){return this[y]},set(I){this[y]=I}}})();return Vr(t,r,{get(){let y=c.call(this);return y===void 0&&(y=d(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return Vr(t,r,{get(){return d(this)}})}}var fc;function iu(a){return(o,t)=>Vr(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:fc!=null?fc:fc=document.createDocumentFragment()).querySelectorAll(a)}})}function Ft(a){return(o,t)=>{let{slot:r,selector:s}=a!=null?a:{},d="slot"+(r?`[name=${r}]`:":not([name])");return Vr(o,t,{get(){var y,I;let c=(y=this.renderRoot)==null?void 0:y.querySelector(d),f=(I=c==null?void 0:c.assignedElements(a))!=null?I:[];return s===void 0?f:f.filter($=>$.matches(s))}})}}function ou(a){return(o,t)=>{let{slot:r}=a!=null?a:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Vr(o,t,{get(){var c,f;let d=(c=this.renderRoot)==null?void 0:c.querySelector(s);return(f=d==null?void 0:d.assignedNodes(a))!=null?f:[]}})}}var cE={PREFIX:"mdc",SEPARATOR:"-"},hE={NAMESPACE:cE},vc=hE;var pE=a=>[vc.NAMESPACE.PREFIX,a].join(vc.NAMESPACE.SEPARATOR),V={constructTagName:pE};var J={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 su=V.constructTagName("buttonsimple"),_o={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},vs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ln={SIZE:_o[32],TYPE:vs.BUTTON,ROLE:J.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var di=V.constructTagName("button"),zt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Mn={40:40,32:32,28:28,24:24},pr={64:64,52:52,20:20,...Mn},Co={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},gs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ge={VARIANT:zt.PRIMARY,SIZE:Mn[32],COLOR:Co.DEFAULT,TYPE_INTERNAL:gs.ICON,TYPE:vs.BUTTON,INVERTED:!1};var sl=a=>{class o extends a{constructor(){super(...arguments);this.variant=Ge.VARIANT;this.color=Ge.COLOR;this.typeInternal=Ge.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values(zt).includes(s)?s:Ge.VARIANT)}setColor(s){!Object.values(Co).includes(s)||this.variant===zt.TERTIARY?this.setAttribute("color",`${Ge.COLOR}`):this.setAttribute("color",s)}setSize(s){let c=this.typeInternal===gs.ICON?Object.values(pr).includes(s)&&!(s===pr[20]&&this.variant!==zt.TERTIARY):Object.values(Mn).includes(s);this.setAttribute("size",c?`${s}`:`${Ge.SIZE}`)}inferButtonType(){var I,$,Y,Q,Z,it;let s=($=(I=this.shadowRoot)==null?void 0:I.querySelector("slot:not([name])"))==null?void 0:$.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,d=(Q=(Y=this.shadowRoot)==null?void 0:Y.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,c=this.prefixIcon||d&&d>0,f=(it=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:it.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,y=this.postfixIcon||f&&f>0;s&&(c||y)?(this.typeInternal=gs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(c||y)?(this.typeInternal=gs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=gs.PILL,this.setAttribute("data-btn-type","pill"))}}return m([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),m([u({type:String})],o.prototype,"variant",2),m([u({type:String})],o.prototype,"color",2),m([ut()],o.prototype,"typeInternal",2),o};var nu=U`
1
+ "use strict";(()=>{var jy=Object.create;var nc=Object.defineProperty;var Rm=Object.getOwnPropertyDescriptor;var qy=Object.getOwnPropertyNames;var Xy=Object.getPrototypeOf,Zy=Object.prototype.hasOwnProperty;var Qy=(a,o)=>()=>(o||a((o={exports:{}}).exports,o),o.exports);var Jy=(a,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of qy(o))!Zy.call(a,s)&&s!==t&&nc(a,s,{get:()=>o[s],enumerable:!(r=Rm(o,s))||r.enumerable});return a};var tE=(a,o,t)=>(t=a!=null?jy(Xy(a)):{},Jy(o||!a||!a.__esModule?nc(t,"default",{value:a,enumerable:!0}):t,a));var m=(a,o,t,r)=>{for(var s=r>1?void 0:r?Rm(o,t):o,d=a.length-1,c;d>=0;d--)(c=a[d])&&(s=(r?c(o,t,s):c(s))||s);return r&&s&&nc(o,t,s),s};var Gu=Qy((Bn,Al)=>{typeof navigator<"u"&&function(a,o){typeof Bn=="object"&&typeof Al<"u"?Al.exports=o():typeof define=="function"&&define.amd?define(o):(a=typeof globalThis<"u"?globalThis:a||self,a.lottie=o())}(Bn,function(){"use strict";var a="http://www.w3.org/2000/svg",o="",t=!1,r=-999999,s=function(i){t=!!i},d=function(){return t},c=function(i){o=i},f=function(){return o};function y(e){return document.createElement(e)}function I(e,i){var n,l=e.length,p;for(n=0;n<l;n+=1){p=e[n].prototype;for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(i.prototype[h]=p[h])}}function $(e,i){return Object.getOwnPropertyDescriptor(e,i)}function Y(e){function i(){}return i.prototype=e,i}var Q=function(){function e(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].pause()},resume:function(){var n,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].resume()},setRate:function(n){var l,p=this.audios.length;for(l=0;l<p;l+=1)this.audios[l].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,l=this.audios.length;for(n=0;n<l;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),Z=function(){function e(n,l){var p=0,h=[],g;switch(n){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(p=0;p<l;p+=1)h.push(g);return h}function i(n,l){return n==="float32"?new Float32Array(l):n==="int16"?new Int16Array(l):n==="uint8c"?new Uint8ClampedArray(l):e(n,l)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?i:e}();function it(e){return Array.apply(null,{length:e})}function lt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(n){return typeof n}:lt=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lt(e)}var dt=!0,gt=null,It=null,wt="",jt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Bt=!1,qt=Math.pow,re=Math.sqrt,ve=Math.floor,xr=Math.max,$e=Math.min,sr={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,n=e.length;for(i=0;i<n;i+=1)sr[e[i]]=Math[e[i]]})();function Ar(){return{}}sr.random=Math.random,sr.abs=function(e){var i=lt(e);if(i==="object"&&e.length){var n=it(e.length),l,p=e.length;for(l=0;l<p;l+=1)n[l]=Math.abs(e[l]);return n}return Math.abs(e)};var Sr=150,kt=Math.PI/180,Te=.5519;function nr(e){Bt=!!e}function ar(e){return Bt?Math.round(e):e}function lr(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function dr(e,i,n,l){this.type=e,this.currentTime=i,this.totalTime=n,this.direction=l<0?-1:1}function Na(e,i){this.type=e,this.direction=i<0?-1:1}function Bp(e,i,n,l){this.type=e,this.currentLoop=n,this.totalLoops=i,this.direction=l<0?-1:1}function Up(e,i,n){this.type=e,this.firstFrame=i,this.totalFrames=n}function Hp(e,i){this.type=e,this.target=i}function jb(e,i){this.type="renderFrameError",this.nativeError=e,this.currentTime=i}function qb(e){this.type="configError",this.nativeError=e}function W0(e,i){this.type=e,this.nativeError=i}var ze=function(){var e=0;return function(){return e+=1,wt+"__lottie_element_"+e}}();function Yd(e,i,n){var l,p,h,g,A,b,k,M;switch(g=Math.floor(e*6),A=e*6-g,b=n*(1-i),k=n*(1-A*i),M=n*(1-(1-A)*i),g%6){case 0:l=n,p=M,h=b;break;case 1:l=k,p=n,h=b;break;case 2:l=b,p=n,h=M;break;case 3:l=b,p=k,h=n;break;case 4:l=M,p=b,h=n;break;case 5:l=n,p=b,h=k;break;default:break}return[l,p,h]}function jd(e,i,n){var l=Math.max(e,i,n),p=Math.min(e,i,n),h=l-p,g,A=l===0?0:h/l,b=l/255;switch(l){case p:g=0;break;case e:g=i-n+h*(i<n?6:0),g/=6*h;break;case i:g=n-e+h*2,g/=6*h;break;case n:g=e-i+h*4,g/=6*h;break;default:break}return[g,A,b]}function Gp(e,i){var n=jd(e[0]*255,e[1]*255,e[2]*255);return n[1]+=i,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),Yd(n[0],n[1],n[2])}function Kp(e,i){var n=jd(e[0]*255,e[1]*255,e[2]*255);return n[2]+=i,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),Yd(n[0],n[1],n[2])}function Wp(e,i){var n=jd(e[0]*255,e[1]*255,e[2]*255);return n[0]+=i/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),Yd(n[0],n[1],n[2])}var Y0=function(){var e=[],i,n;for(i=0;i<256;i+=1)n=i.toString(16),e[i]=n.length===1?"0"+n:n;return function(l,p,h){return l<0&&(l=0),p<0&&(p=0),h<0&&(h=0),"#"+e[l]+e[p]+e[h]}}(),Xb=function(i){dt=!!i},Zb=function(){return dt},Qb=function(i){gt=i},La=function(){return gt},j0=function(i){It=i},Yp=function(){return It},Ma=function(i){Sr=i},nn=function(){return Sr},Jb=function(i){wt=i},q0=function(){return wt};function Tt(e){return document.createElementNS(a,e)}function Oa(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oa=function(n){return typeof n}:Oa=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Oa(e)}var an=function(){var e=1,i=[],n,l,p={onmessage:function(){},postMessage:function(O){n({data:O})}},h={postMessage:function(O){p.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&d()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),D=URL.createObjectURL(O);return new Worker(D)}return n=x,p}function A(){l||(l=g(function(O){function D(){function B(et,_){var P,v,E=et.length,K,z,at,vt;for(v=0;v<E;v+=1)if(P=et[v],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var Et=P.masksProperties;for(z=Et.length,K=0;K<z;K+=1)if(Et[K].pt.k.i)N(Et[K].pt.k);else for(vt=Et[K].pt.k.length,at=0;at<vt;at+=1)Et[K].pt.k[at].s&&N(Et[K].pt.k[at].s[0]),Et[K].pt.k[at].e&&N(Et[K].pt.k[at].e[0])}P.ty===0?(P.layers=T(P.refId,_),B(P.layers,_)):P.ty===4?S(P.shapes):P.ty===5&&xt(P)}}function L(et,_){if(et){var P=0,v=et.length;for(P=0;P<v;P+=1)et[P].t===1&&(et[P].data.layers=T(et[P].data.refId,_),B(et[P].data.layers,_))}}function w(et,_){for(var P=0,v=_.length;P<v;){if(_[P].id===et)return _[P];P+=1}return null}function T(et,_){var P=w(et,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function S(et){var _,P=et.length,v,E;for(_=P-1;_>=0;_-=1)if(et[_].ty==="sh")if(et[_].ks.k.i)N(et[_].ks.k);else for(E=et[_].ks.k.length,v=0;v<E;v+=1)et[_].ks.k[v].s&&N(et[_].ks.k[v].s[0]),et[_].ks.k[v].e&&N(et[_].ks.k[v].e[0]);else et[_].ty==="gr"&&S(et[_].it)}function N(et){var _,P=et.i.length;for(_=0;_<P;_+=1)et.i[_][0]+=et.v[_][0],et.i[_][1]+=et.v[_][1],et.o[_][0]+=et.v[_][0],et.o[_][1]+=et.v[_][1]}function F(et,_){var P=_?_.split("."):[100,100,100];return et[0]>P[0]?!0:P[0]>et[0]?!1:et[1]>P[1]?!0:P[1]>et[1]?!1:et[2]>P[2]?!0:P[2]>et[2]?!1:null}var H=function(){var et=[4,4,14];function _(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&_(v[E])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),W=function(){var et=[4,7,99];return function(_){if(_.chars&&!F(et,_.v)){var P,v=_.chars.length;for(P=0;P<v;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(S(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[P].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"})))}}}}(),rt=function(){var et=[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 P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===5&&_(v[E])}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),yt=function(){var et=[4,1,9];function _(v){var E,K=v.length,z,at;for(E=0;E<K;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(at=v[E].c.k.length,z=0;z<at;z+=1)v[E].c.k[z].s&&(v[E].c.k[z].s[0]/=255,v[E].c.k[z].s[1]/=255,v[E].c.k[z].s[2]/=255,v[E].c.k[z].s[3]/=255),v[E].c.k[z].e&&(v[E].c.k[z].e[0]/=255,v[E].c.k[z].e[1]/=255,v[E].c.k[z].e[2]/=255,v[E].c.k[z].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 P(v){var E,K=v.length;for(E=0;E<K;E+=1)v[E].ty===4&&_(v[E].shapes)}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}(),mt=function(){var et=[4,4,18];function _(v){var E,K=v.length,z,at;for(E=K-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(at=v[E].ks.k.length,z=0;z<at;z+=1)v[E].ks.k[z].s&&(v[E].ks.k[z].s[0].c=v[E].closed),v[E].ks.k[z].e&&(v[E].ks.k[z].e[0].c=v[E].closed);else v[E].ty==="gr"&&_(v[E].it)}function P(v){var E,K,z=v.length,at,vt,Et,Rt;for(K=0;K<z;K+=1){if(E=v[K],E.hasMask){var Pt=E.masksProperties;for(vt=Pt.length,at=0;at<vt;at+=1)if(Pt[at].pt.k.i)Pt[at].pt.k.c=Pt[at].cl;else for(Rt=Pt[at].pt.k.length,Et=0;Et<Rt;Et+=1)Pt[at].pt.k[Et].s&&(Pt[at].pt.k[Et].s[0].c=Pt[at].cl),Pt[at].pt.k[Et].e&&(Pt[at].pt.k[Et].e[0].c=Pt[at].cl)}E.ty===4&&_(E.shapes)}}return function(v){if(F(et,v.v)&&(P(v.layers),v.assets)){var E,K=v.assets.length;for(E=0;E<K;E+=1)v.assets[E].layers&&P(v.assets[E].layers)}}}();function st(et){et.__complete||(yt(et),H(et),W(et),rt(et),mt(et),B(et.layers,et.assets),L(et.chars,et.assets),et.__complete=!0)}function xt(et){et.t.a.length===0&&"m"in et.t.p}var ct={};return ct.completeData=st,ct.checkColors=yt,ct.checkChars=W,ct.checkPathProperties=rt,ct.checkShapes=mt,ct.completeLayers=B,ct}if(h.dataManager||(h.dataManager=D()),h.assetLoader||(h.assetLoader=function(){function B(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&Oa(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function L(w,T,S,N){var F,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)F=B(H),S(F);else try{F=B(H),S(F)}catch(W){N&&N(W)}};try{H.open(["G","E","T"].join(""),w,!0)}catch{H.open(["G","E","T"].join(""),T+"/"+w,!0)}H.send()}return{load:L}}()),O.data.type==="loadAnimation")h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.dataManager.completeData(B),h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;h.dataManager.completeData(R),h.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&h.assetLoader.load(O.data.path,O.data.fullPath,function(B){h.postMessage({id:O.data.id,payload:B,status:"success"})},function(){h.postMessage({id:O.data.id,status:"error"})})}),l.onmessage=function(x){var O=x.data,D=O.id,R=i[D];i[D]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){e+=1;var D="processId_"+e;return i[D]={onComplete:x,onError:O},D}function k(x,O,D){A();var R=b(O,D);l.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function M(x,O,D){A();var R=b(O,D);l.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,O,D){A();var R=b(O,D);l.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:k,loadData:M,completeAnimation:G}}(),ty=function(){var e=function(){var L=y("canvas");L.width=1,L.height=1;var w=L.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),L}();function i(){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 l(L,w,T){var S="";if(L.e)S=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),S=w+N}else S=T,S+=L.u?L.u:"",S+=L.p;return S}function p(L){var w=0,T=setInterval((function(){var S=L.getBBox();(S.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function h(L){var w=l(L,this.assetsPath,this.path),T=Tt("image");jt?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var S={img:T,assetData:L};return S}function g(L){var w=l(L,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){S.img=e,this._imageLoaded()}).bind(this),!1),T.src=w;var S={img:T,assetData:L};return S}function A(L){var w={assetData:L},T=l(L,this.assetsPath,this.path);return an.loadData(T,(function(S){w.img=S,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function b(L,w){this.imagesLoadedCb=w;var T,S=L.length;for(T=0;T<S;T+=1)L[T].layers||(!L[T].t||L[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(L[T]))):L[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(L[T]))))}function k(L){this.path=L||""}function M(L){this.assetsPath=L||""}function G(L){for(var w=0,T=this.images.length;w<T;){if(this.images[w].assetData===L)return this.images[w].img;w+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function D(){return this.totalFootages===this.loadedFootagesCount}function R(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function B(){this._imageLoaded=i.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=p.bind(this),this.createFootageData=A.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return B.prototype={loadAssets:b,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:D,destroy:x,getAsset:G,createImgData:g,createImageData:h,imageLoaded:i,footageLoaded:n,setCacheType:R},B}();function jp(){}jp.prototype={triggerEvent:function(i,n){if(this._cbs[i])for(var l=this._cbs[i],p=0;p<l.length;p+=1)l[p](n)},addEventListener:function(i,n){return this._cbs[i]||(this._cbs[i]=[]),this._cbs[i].push(n),(function(){this.removeEventListener(i,n)}).bind(this)},removeEventListener:function(i,n){if(!n)this._cbs[i]=null;else if(this._cbs[i]){for(var l=0,p=this._cbs[i].length;l<p;)this._cbs[i][l]===n&&(this._cbs[i].splice(l,1),l-=1,p-=1),l+=1;this._cbs[i].length||(this._cbs[i]=null)}}};var ey=function(){function e(i){for(var n=i.split(`\r
2
+ `),l={},p,h=0,g=0;g<n.length;g+=1)p=n[g].split(":"),p.length===2&&(l[p[0]]=p[1].trim(),h+=1);if(h===0)throw new Error;return l}return function(i){for(var n=[],l=0;l<i.length;l+=1){var p=i[l],h={time:p.tm,duration:p.dr};try{h.payload=JSON.parse(i[l].cm)}catch{try{h.payload=e(i[l].cm)}catch{h.payload={name:i[l].cm}}}n.push(h)}return n}}(),ry=function(){function e(i){this.compositions.push(i)}return function(){function i(n){for(var l=0,p=this.compositions.length;l<p;){if(this.compositions[l].data&&this.compositions[l].data.nm===n)return this.compositions[l].prepareFrame&&this.compositions[l].data.xt&&this.compositions[l].prepareFrame(this.currentFrame),this.compositions[l].compInterface;l+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=e,i}}(),ln={},iy=function(i,n){ln[i]=n};function oy(e){return ln[e]}function sy(){if(ln.canvas)return"canvas";for(var e in ln)if(ln[e])return e;return""}function dn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dn=function(n){return typeof n}:dn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dn(e)}var ft=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=ze(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Zb(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ry(),this.imagePreloader=new ty,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 dr("drawnFrame",0,0,0),this.expressionsPlugin=La()};I([jp],ft),ft.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var i="svg";e.animType?i=e.animType:e.renderer&&(i=e.renderer);var n=oy(i);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),an.loadAnimation(e.path,this.configAnimation,this.onSetupError))},ft.prototype.onSetupError=function(){this.trigger("data_failed")},ft.prototype.setupAnimation=function(e){an.completeAnimation(e,this.configAnimation)},ft.prototype.setData=function(e,i){i&&dn(i)!=="object"&&(i=JSON.parse(i));var n={wrapper:e,animationData:i},l=e.attributes;n.path=l.getNamedItem("data-animation-path")?l.getNamedItem("data-animation-path").value:l.getNamedItem("data-bm-path")?l.getNamedItem("data-bm-path").value:l.getNamedItem("bm-path")?l.getNamedItem("bm-path").value:"",n.animType=l.getNamedItem("data-anim-type")?l.getNamedItem("data-anim-type").value:l.getNamedItem("data-bm-type")?l.getNamedItem("data-bm-type").value:l.getNamedItem("bm-type")?l.getNamedItem("bm-type").value:l.getNamedItem("data-bm-renderer")?l.getNamedItem("data-bm-renderer").value:l.getNamedItem("bm-renderer")?l.getNamedItem("bm-renderer").value:sy()||"canvas";var p=l.getNamedItem("data-anim-loop")?l.getNamedItem("data-anim-loop").value:l.getNamedItem("data-bm-loop")?l.getNamedItem("data-bm-loop").value:l.getNamedItem("bm-loop")?l.getNamedItem("bm-loop").value:"";p==="false"?n.loop=!1:p==="true"?n.loop=!0:p!==""&&(n.loop=parseInt(p,10));var h=l.getNamedItem("data-anim-autoplay")?l.getNamedItem("data-anim-autoplay").value:l.getNamedItem("data-bm-autoplay")?l.getNamedItem("data-bm-autoplay").value:l.getNamedItem("bm-autoplay")?l.getNamedItem("bm-autoplay").value:!0;n.autoplay=h!=="false",n.name=l.getNamedItem("data-name")?l.getNamedItem("data-name").value:l.getNamedItem("data-bm-name")?l.getNamedItem("data-bm-name").value:l.getNamedItem("bm-name")?l.getNamedItem("bm-name").value:"";var g=l.getNamedItem("data-anim-prerender")?l.getNamedItem("data-anim-prerender").value:l.getNamedItem("data-bm-prerender")?l.getNamedItem("data-bm-prerender").value:l.getNamedItem("bm-prerender")?l.getNamedItem("bm-prerender").value:"";g==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},ft.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var i=this.animationData.layers,n,l=i.length,p=e.layers,h,g=p.length;for(h=0;h<g;h+=1)for(n=0;n<l;){if(i[n].id===p[h].id){i[n]=p[h];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(l=e.assets.length,n=0;n<l;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,an.completeAnimation(this.animationData,this.onSegmentComplete)},ft.prototype.onSegmentComplete=function(e){this.animationData=e;var i=La();i&&i.initExpressions(this),this.loadNextSegment()},ft.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=e.shift();this.timeCompleted=i.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,an.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},ft.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ft.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ft.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ft.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=ey(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(i){this.triggerConfigError(i)}},ft.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ft.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=La();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},ft.prototype.resize=function(e,i){var n=typeof e=="number"?e:void 0,l=typeof i=="number"?i:void 0;this.renderer.updateContainerSize(n,l)},ft.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},ft.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")},ft.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},ft.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},ft.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(e){for(var i,n=0;n<this.markers.length;n+=1)if(i=this.markers[n],i.payload&&i.payload.name===e)return i;return null},ft.prototype.goToAndStop=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var p=this.getMarkerData(e);p&&this.goToAndStop(p.time,!0)}else i?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},ft.prototype.goToAndPlay=function(e,i,n){if(!(n&&this.name!==n)){var l=Number(e);if(isNaN(l)){var p=this.getMarkerData(e);p&&(p.duration?this.playSegments([p.time,p.time+p.duration],!0):this.goToAndStop(p.time,!0))}else this.goToAndStop(l,i,n);this.play()}},ft.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var i=this.currentRawFrame+e*this.frameModifier,n=!1;i>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(i>this.totalFrames?i%this.totalFrames:0)||(n=!0,i=this.totalFrames-1):i>=this.totalFrames?(this.playCount+=1,this.checkSegments(i%this.totalFrames)||(this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(i):i<0?this.checkSegments(i%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,i=0)):this.setCurrentRawFrameValue(i),n&&(this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(e,i){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-i)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+i)),this.trigger("segmentStart")},ft.prototype.setSegment=function(e,i){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>i&&(n=i-e)),this.firstFrame=e,this.totalFrames=i-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(e,i){if(i&&(this.segments.length=0),dn(e[0])==="object"){var n,l=e.length;for(n=0;n<l;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&i&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},ft.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},ft.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},ft.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},ft.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},ft.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},ft.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},ft.prototype.setLoop=function(e){this.loop=e},ft.prototype.setVolume=function(e,i){i&&this.name!==i||this.audioController.setVolume(e)},ft.prototype.getVolume=function(){return this.audioController.getVolume()},ft.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},ft.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},ft.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ft.prototype.getPath=function(){return this.path},ft.prototype.getAssetsPath=function(e){var i="";if(e.e)i=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),i=this.assetsPath+n}else i=this.path,i+=e.u?e.u:"",i+=e.p;return i},ft.prototype.getAssetData=function(e){for(var i=0,n=this.assets.length;i<n;){if(e===this.assets[i].id)return this.assets[i];i+=1}return null},ft.prototype.hide=function(){this.renderer.hide()},ft.prototype.show=function(){this.renderer.show()},ft.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},ft.prototype.updateDocumentData=function(e,i,n){try{var l=this.renderer.getElementByPath(e);l.updateDocumentData(i,n)}catch{}},ft.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new dr(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new Bp(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new Na(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new Up(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new Hp(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new dr(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Bp(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new Na(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Up(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Hp(e,this))},ft.prototype.triggerRenderFrameError=function(e){var i=new jb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)},ft.prototype.triggerConfigError=function(e){var i=new qb(e,this.currentFrame);this.triggerEvent("error",i),this.onError&&this.onError.call(this,i)};var ie=function(){var e={},i=[],n=0,l=0,p=0,h=!0,g=!1;function A(_){for(var P=0,v=_.target;P<l;)i[P].animation===v&&(i.splice(P,1),P-=1,l-=1,v.isPaused||G()),P+=1}function b(_,P){if(!_)return null;for(var v=0;v<l;){if(i[v].elem===_&&i[v].elem!==null)return i[v].animation;v+=1}var E=new ft;return x(E,_),E.setData(_,P),E}function k(){var _,P=i.length,v=[];for(_=0;_<P;_+=1)v.push(i[_].animation);return v}function M(){p+=1,yt()}function G(){p-=1}function x(_,P){_.addEventListener("destroy",A),_.addEventListener("_active",M),_.addEventListener("_idle",G),i.push({elem:P,animation:_}),l+=1}function O(_){var P=new ft;return x(P,null),P.setParams(_),P}function D(_,P){var v;for(v=0;v<l;v+=1)i[v].animation.setSpeed(_,P)}function R(_,P){var v;for(v=0;v<l;v+=1)i[v].animation.setDirection(_,P)}function B(_){var P;for(P=0;P<l;P+=1)i[P].animation.play(_)}function L(_){var P=_-n,v;for(v=0;v<l;v+=1)i[v].animation.advanceTime(P);n=_,p&&!g?window.requestAnimationFrame(L):h=!0}function w(_){n=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<l;P+=1)i[P].animation.pause(_)}function S(_,P,v){var E;for(E=0;E<l;E+=1)i[E].animation.goToAndStop(_,P,v)}function N(_){var P;for(P=0;P<l;P+=1)i[P].animation.stop(_)}function F(_){var P;for(P=0;P<l;P+=1)i[P].animation.togglePause(_)}function H(_){var P;for(P=l-1;P>=0;P-=1)i[P].animation.destroy(_)}function W(_,P,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),K,z=E.length;for(K=0;K<z;K+=1)v&&E[K].setAttribute("data-bm-type",v),b(E[K],_);if(P&&z===0){v||(v="svg");var at=document.getElementsByTagName("body")[0];at.innerText="";var vt=y("div");vt.style.width="100%",vt.style.height="100%",vt.setAttribute("data-bm-type",v),at.appendChild(vt),b(vt,_)}}function rt(){var _;for(_=0;_<l;_+=1)i[_].animation.resize()}function yt(){!g&&p&&h&&(window.requestAnimationFrame(w),h=!1)}function mt(){g=!0}function st(){g=!1,yt()}function xt(_,P){var v;for(v=0;v<l;v+=1)i[v].animation.setVolume(_,P)}function ct(_){var P;for(P=0;P<l;P+=1)i[P].animation.mute(_)}function et(_){var P;for(P=0;P<l;P+=1)i[P].animation.unmute(_)}return e.registerAnimation=b,e.loadAnimation=O,e.setSpeed=D,e.setDirection=R,e.play=B,e.pause=T,e.stop=N,e.togglePause=F,e.searchAnimations=W,e.resize=rt,e.goToAndStop=S,e.destroy=H,e.freeze=mt,e.unfreeze=st,e.setVolume=xt,e.mute=ct,e.unmute=et,e.getRegisteredAnimations=k,e}(),cn=function(){var e={};e.getBezierEasing=n;var i={};function n(w,T,S,N,F){var H=F||("bez_"+w+"_"+T+"_"+S+"_"+N).replace(/\./g,"p");if(i[H])return i[H];var W=new L([w,T,S,N]);return i[H]=W,W}var l=4,p=.001,h=1e-7,g=10,A=11,b=1/(A-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function G(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,S){return((M(T,S)*w+G(T,S))*w+x(T))*w}function D(w,T,S){return 3*M(T,S)*w*w+2*G(T,S)*w+x(T)}function R(w,T,S,N,F){var H,W,rt=0;do W=T+(S-T)/2,H=O(W,N,F)-w,H>0?S=W:T=W;while(Math.abs(H)>h&&++rt<g);return W}function B(w,T,S,N){for(var F=0;F<l;++F){var H=D(T,S,N);if(H===0)return T;var W=O(T,S,N)-w;T-=W/H}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(A):new Array(A),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var S=this._p[0],N=this._p[1],F=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),S===N&&F===H?T:T===0?0:T===1?1:O(this._getTForX(T),N,H)},_precompute:function(){var T=this._p[0],S=this._p[1],N=this._p[2],F=this._p[3];this._precomputed=!0,(T!==S||N!==F)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],S=this._p[2],N=0;N<A;++N)this._mSampleValues[N]=O(N*b,T,S)},_getTForX:function(T){for(var S=this._p[0],N=this._p[2],F=this._mSampleValues,H=0,W=1,rt=A-1;W!==rt&&F[W]<=T;++W)H+=b;--W;var yt=(T-F[W])/(F[W+1]-F[W]),mt=H+yt*b,st=D(mt,S,N);return st>=p?B(T,mt,S,N):st===0?mt:R(T,H,H+b,S,N)}},e}(),qp=function(){function e(i){return i.concat(it(i.length))}return{double:e}}(),Ra=function(){return function(e,i,n){var l=0,p=e,h=it(p),g={newElement:A,release:b};function A(){var k;return l?(l-=1,k=h[l]):k=i(),k}function b(k){l===p&&(h=qp.double(h),p*=2),n&&n(k),h[l]=k,l+=1}return g}}(),Xp=function(){function e(){return{addedLength:0,percents:Z("float32",nn()),lengths:Z("float32",nn())}}return Ra(8,e)}(),Zp=function(){function e(){return{lengths:[],totalLength:0}}function i(n){var l,p=n.lengths.length;for(l=0;l<p;l+=1)Xp.release(n.lengths[l]);n.lengths.length=0}return Ra(8,e,i)}();function ny(){var e=Math;function i(x,O,D,R,B,L){var w=x*R+O*B+D*L-B*R-L*x-D*O;return w>-.001&&w<.001}function n(x,O,D,R,B,L,w,T,S){if(D===0&&L===0&&S===0)return i(x,O,R,B,w,T);var N=e.sqrt(e.pow(R-x,2)+e.pow(B-O,2)+e.pow(L-D,2)),F=e.sqrt(e.pow(w-x,2)+e.pow(T-O,2)+e.pow(S-D,2)),H=e.sqrt(e.pow(w-R,2)+e.pow(T-B,2)+e.pow(S-L,2)),W;return N>F?N>H?W=N-F-H:W=H-F-N:H>F?W=H-F-N:W=F-N-H,W>-1e-4&&W<1e-4}var l=function(){return function(x,O,D,R){var B=nn(),L,w,T,S,N,F=0,H,W=[],rt=[],yt=Xp.newElement();for(T=D.length,L=0;L<B;L+=1){for(N=L/(B-1),H=0,w=0;w<T;w+=1)S=qt(1-N,3)*x[w]+3*qt(1-N,2)*N*D[w]+3*(1-N)*qt(N,2)*R[w]+qt(N,3)*O[w],W[w]=S,rt[w]!==null&&(H+=qt(W[w]-rt[w],2)),rt[w]=W[w];H&&(H=re(H),F+=H),yt.percents[L]=N,yt.lengths[L]=F}return yt.addedLength=F,yt}}();function p(x){var O=Zp.newElement(),D=x.c,R=x.v,B=x.o,L=x.i,w,T=x._length,S=O.lengths,N=0;for(w=0;w<T-1;w+=1)S[w]=l(R[w],R[w+1],B[w],L[w+1]),N+=S[w].addedLength;return D&&T&&(S[w]=l(R[w],R[0],B[w],L[0]),N+=S[w].addedLength),O.totalLength=N,O}function h(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var A=function(){var x={};return function(O,D,R,B){var L=(O[0]+"_"+O[1]+"_"+D[0]+"_"+D[1]+"_"+R[0]+"_"+R[1]+"_"+B[0]+"_"+B[1]).replace(/\./g,"p");if(!x[L]){var w=nn(),T,S,N,F,H,W=0,rt,yt,mt=null;O.length===2&&(O[0]!==D[0]||O[1]!==D[1])&&i(O[0],O[1],D[0],D[1],O[0]+R[0],O[1]+R[1])&&i(O[0],O[1],D[0],D[1],D[0]+B[0],D[1]+B[1])&&(w=2);var st=new h(w);for(N=R.length,T=0;T<w;T+=1){for(yt=it(N),H=T/(w-1),rt=0,S=0;S<N;S+=1)F=qt(1-H,3)*O[S]+3*qt(1-H,2)*H*(O[S]+R[S])+3*(1-H)*qt(H,2)*(D[S]+B[S])+qt(H,3)*D[S],yt[S]=F,mt!==null&&(rt+=qt(yt[S]-mt[S],2));rt=re(rt),W+=rt,st.points[T]=new g(rt,yt),mt=yt}st.segmentLength=W,x[L]=st}return x[L]}}();function b(x,O){var D=O.percents,R=O.lengths,B=D.length,L=ve((B-1)*x),w=x*O.addedLength,T=0;if(L===B-1||L===0||w===R[L])return D[L];for(var S=R[L]>w?-1:1,N=!0;N;)if(R[L]<=w&&R[L+1]>w?(T=(w-R[L])/(R[L+1]-R[L]),N=!1):L+=S,L<0||L>=B-1){if(L===B-1)return D[L];N=!1}return D[L]+(D[L+1]-D[L])*T}function k(x,O,D,R,B,L){var w=b(B,L),T=1-w,S=e.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*D[0]+(w*w*T+T*w*w+w*T*w)*R[0]+w*w*w*O[0])*1e3)/1e3,N=e.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*D[1]+(w*w*T+T*w*w+w*T*w)*R[1]+w*w*w*O[1])*1e3)/1e3;return[S,N]}var M=Z("float32",8);function G(x,O,D,R,B,L,w){B<0?B=0:B>1&&(B=1);var T=b(B,w);L=L>1?1:L;var S=b(L,w),N,F=x.length,H=1-T,W=1-S,rt=H*H*H,yt=T*H*H*3,mt=T*T*H*3,st=T*T*T,xt=H*H*W,ct=T*H*W+H*T*W+H*H*S,et=T*T*W+H*T*S+T*H*S,_=T*T*S,P=H*W*W,v=T*W*W+H*S*W+H*W*S,E=T*S*W+H*S*S+T*W*S,K=T*S*S,z=W*W*W,at=S*W*W+W*S*W+W*W*S,vt=S*S*W+W*S*S+S*W*S,Et=S*S*S;for(N=0;N<F;N+=1)M[N*4]=e.round((rt*x[N]+yt*D[N]+mt*R[N]+st*O[N])*1e3)/1e3,M[N*4+1]=e.round((xt*x[N]+ct*D[N]+et*R[N]+_*O[N])*1e3)/1e3,M[N*4+2]=e.round((P*x[N]+v*D[N]+E*R[N]+K*O[N])*1e3)/1e3,M[N*4+3]=e.round((z*x[N]+at*D[N]+vt*R[N]+Et*O[N])*1e3)/1e3;return M}return{getSegmentsLength:p,getNewSegment:G,getPointInSegment:k,buildBezierData:A,pointOnLine2D:i,pointOnLine3D:n}}var Dr=ny(),fo=r,Qp=Math.abs;function Jp(e,i){var n=this.offsetTime,l;this.propType==="multidimensional"&&(l=Z("float32",this.pv.length));for(var p=i.lastIndex,h=p,g=this.keyframes.length-1,A=!0,b,k,M;A;){if(b=this.keyframes[h],k=this.keyframes[h+1],h===g-1&&e>=k.t-n){b.h&&(b=k),p=0;break}if(k.t-n>e){p=h;break}h<g-1?h+=1:(p=0,A=!1)}M=this.keyframesMetadata[h]||{};var G,x,O,D,R,B,L=k.t-n,w=b.t-n,T;if(b.to){M.bezierData||(M.bezierData=Dr.buildBezierData(b.s,k.s||b.e,b.to,b.ti));var S=M.bezierData;if(e>=L||e<w){var N=e>=L?S.points.length-1:0;for(x=S.points[N].point.length,G=0;G<x;G+=1)l[G]=S.points[N].point[G]}else{M.__fnct?B=M.__fnct:(B=cn.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,M.__fnct=B),O=B((e-w)/(L-w));var F=S.segmentLength*O,H,W=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastAddedLength:0;for(R=i.lastFrame<e&&i._lastKeyframeIndex===h?i._lastPoint:0,A=!0,D=S.points.length;A;){if(W+=S.points[R].partialLength,F===0||O===0||R===S.points.length-1){for(x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G];break}else if(F>=W&&F<W+S.points[R+1].partialLength){for(H=(F-W)/S.points[R+1].partialLength,x=S.points[R].point.length,G=0;G<x;G+=1)l[G]=S.points[R].point[G]+(S.points[R+1].point[G]-S.points[R].point[G])*H;break}R<D-1?R+=1:A=!1}i._lastPoint=R,i._lastAddedLength=W-S.points[R].partialLength,i._lastKeyframeIndex=h}}else{var rt,yt,mt,st,xt;if(g=b.s.length,T=k.s||b.e,this.sh&&b.h!==1)if(e>=L)l[0]=T[0],l[1]=T[1],l[2]=T[2];else if(e<=w)l[0]=b.s[0],l[1]=b.s[1],l[2]=b.s[2];else{var ct=tm(b.s),et=tm(T),_=(e-w)/(L-w);ly(l,ay(ct,et,_))}else for(h=0;h<g;h+=1)b.h!==1&&(e>=L?O=1:e<w?O=0:(b.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[h]?B=M.__fnct[h]:(rt=b.o.x[h]===void 0?b.o.x[0]:b.o.x[h],yt=b.o.y[h]===void 0?b.o.y[0]:b.o.y[h],mt=b.i.x[h]===void 0?b.i.x[0]:b.i.x[h],st=b.i.y[h]===void 0?b.i.y[0]:b.i.y[h],B=cn.getBezierEasing(rt,yt,mt,st).get,M.__fnct[h]=B)):M.__fnct?B=M.__fnct:(rt=b.o.x,yt=b.o.y,mt=b.i.x,st=b.i.y,B=cn.getBezierEasing(rt,yt,mt,st).get,b.keyframeMetadata=B),O=B((e-w)/(L-w)))),T=k.s||b.e,xt=b.h===1?b.s[h]:b.s[h]+(T[h]-b.s[h])*O,this.propType==="multidimensional"?l[h]=xt:l=xt}return i.lastIndex=p,l}function ay(e,i,n){var l=[],p=e[0],h=e[1],g=e[2],A=e[3],b=i[0],k=i[1],M=i[2],G=i[3],x,O,D,R,B;return O=p*b+h*k+g*M+A*G,O<0&&(O=-O,b=-b,k=-k,M=-M,G=-G),1-O>1e-6?(x=Math.acos(O),D=Math.sin(x),R=Math.sin((1-n)*x)/D,B=Math.sin(n*x)/D):(R=1-n,B=n),l[0]=R*p+B*b,l[1]=R*h+B*k,l[2]=R*g+B*M,l[3]=R*A+B*G,l}function ly(e,i){var n=i[0],l=i[1],p=i[2],h=i[3],g=Math.atan2(2*l*h-2*n*p,1-2*l*l-2*p*p),A=Math.asin(2*n*l+2*p*h),b=Math.atan2(2*n*h-2*l*p,1-2*n*n-2*p*p);e[0]=g/kt,e[1]=A/kt,e[2]=b/kt}function tm(e){var i=e[0]*kt,n=e[1]*kt,l=e[2]*kt,p=Math.cos(i/2),h=Math.cos(n/2),g=Math.cos(l/2),A=Math.sin(i/2),b=Math.sin(n/2),k=Math.sin(l/2),M=p*h*g-A*b*k,G=A*b*g+p*h*k,x=A*h*g+p*b*k,O=p*b*g-A*h*k;return[G,x,O,M]}function em(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==fo&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var l=this.interpolateValue(e,this._caching);this.pv=l}return this._caching.lastFrame=e,this.pv}function Pa(e){var i;if(this.propType==="unidimensional")i=e*this.mult,Qp(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,l=this.v.length;n<l;)i=e[n]*this.mult,Qp(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function Da(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,i=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<i;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Fa(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function dy(e,i,n,l){this.propType="unidimensional",this.mult=n||1,this.data=i,this.v=n?i.k*n:i.k,this.pv=i.k,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Da,this.setVValue=Pa,this.addEffect=Fa}function cy(e,i,n,l){this.propType="multidimensional",this.mult=n||1,this.data=i,this._mdf=!1,this.elem=e,this.container=l,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var p,h=i.k.length;for(this.v=Z("float32",h),this.pv=Z("float32",h),this.vel=Z("float32",h),p=0;p<h;p+=1)this.v[p]=i.k[p]*this.mult,this.pv[p]=i.k[p];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Da,this.setVValue=Pa,this.addEffect=Fa}function hy(e,i,n,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:fo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=fo,this.pv=fo,this._isFirstFrame=!0,this.getValue=Da,this.setVValue=Pa,this.interpolateValue=Jp,this.effectsSequence=[em.bind(this)],this.addEffect=Fa}function py(e,i,n,l){this.propType="multidimensional";var p,h=i.k.length,g,A,b,k;for(p=0;p<h-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(g=i.k[p].s,A=i.k[p+1].s,b=i.k[p].to,k=i.k[p].ti,(g.length===2&&!(g[0]===A[0]&&g[1]===A[1])&&Dr.pointOnLine2D(g[0],g[1],A[0],A[1],g[0]+b[0],g[1]+b[1])&&Dr.pointOnLine2D(g[0],g[1],A[0],A[1],A[0]+k[0],A[1]+k[1])||g.length===3&&!(g[0]===A[0]&&g[1]===A[1]&&g[2]===A[2])&&Dr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Dr.pointOnLine3D(g[0],g[1],g[2],A[0],A[1],A[2],A[0]+k[0],A[1]+k[1],A[2]+k[2]))&&(i.k[p].to=null,i.k[p].ti=null),g[0]===A[0]&&g[1]===A[1]&&b[0]===0&&b[1]===0&&k[0]===0&&k[1]===0&&(g.length===2||g[2]===A[2]&&b[2]===0&&k[2]===0)&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[em.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=Da,this.setVValue=Pa,this.interpolateValue=Jp,this.frameId=-1;var M=i.k[0].s.length;for(this.v=Z("float32",M),this.pv=Z("float32",M),p=0;p<M;p+=1)this.v[p]=fo,this.pv[p]=fo;this._caching={lastFrame:fo,lastIndex:0,value:Z("float32",M)},this.addEffect=Fa}var nt=function(){function e(n,l,p,h,g){l.sid&&(l=n.globalData.slotManager.getProp(l));var A;if(!l.k.length)A=new dy(n,l,h,g);else if(typeof l.k[0]=="number")A=new cy(n,l,h,g);else switch(p){case 0:A=new hy(n,l,h,g);break;case 1:A=new py(n,l,h,g);break;default:break}return A.effectsSequence.length&&g.addDynamicProperty(A),A}var i={getProp:e};return i}();function ge(){}ge.prototype={addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&(this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var vo=function(){function e(){return Z("float32",2)}return Ra(8,e)}();function ti(){this.c=!1,this._length=0,this._maxLength=8,this.v=it(this._maxLength),this.o=it(this._maxLength),this.i=it(this._maxLength)}ti.prototype.setPathData=function(e,i){this.c=e,this.setLength(i);for(var n=0;n<i;)this.v[n]=vo.newElement(),this.o[n]=vo.newElement(),this.i[n]=vo.newElement(),n+=1},ti.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ti.prototype.doubleArrayLength=function(){this.v=this.v.concat(it(this._maxLength)),this.i=this.i.concat(it(this._maxLength)),this.o=this.o.concat(it(this._maxLength)),this._maxLength*=2},ti.prototype.setXYAt=function(e,i,n,l,p){var h;switch(this._length=Math.max(this._length,l+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":h=this.v;break;case"i":h=this.i;break;case"o":h=this.o;break;default:h=[];break}(!h[l]||h[l]&&!p)&&(h[l]=vo.newElement()),h[l][0]=e,h[l][1]=i},ti.prototype.setTripleAt=function(e,i,n,l,p,h,g,A){this.setXYAt(e,i,"v",g,A),this.setXYAt(n,l,"o",g,A),this.setXYAt(p,h,"i",g,A)},ti.prototype.reverse=function(){var e=new ti;e.setPathData(this.c,this._length);var i=this.v,n=this.o,l=this.i,p=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],l[0][0],l[0][1],n[0][0],n[0][1],0,!1),p=1);var h=this._length-1,g=this._length,A;for(A=p;A<g;A+=1)e.setTripleAt(i[h][0],i[h][1],l[h][0],l[h][1],n[h][0],n[h][1],A,!1),h-=1;return e},ti.prototype.length=function(){return this._length};var xe=function(){function e(){return new ti}function i(p){var h=p._length,g;for(g=0;g<h;g+=1)vo.release(p.v[g]),vo.release(p.i[g]),vo.release(p.o[g]),p.v[g]=null,p.i[g]=null,p.o[g]=null;p._length=0,p.c=!1}function n(p){var h=l.newElement(),g,A=p._length===void 0?p.v.length:p._length;for(h.setLength(A),h.c=p.c,g=0;g<A;g+=1)h.setTripleAt(p.v[g][0],p.v[g][1],p.o[g][0],p.o[g][1],p.i[g][0],p.i[g][1],g);return h}var l=Ra(4,e,i);return l.clone=n,l}();function qd(){this._length=0,this._maxLength=4,this.shapes=it(this._maxLength)}qd.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(it(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},qd.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)xe.release(this.shapes[e]);this._length=0};var ds=function(){var e={newShapeCollection:p,release:h},i=0,n=4,l=it(n);function p(){var g;return i?(i-=1,g=l[i]):g=new qd,g}function h(g){var A,b=g._length;for(A=0;A<b;A+=1)xe.release(g.shapes[A]);g._length=0,i===n&&(l=qp.double(l),n*=2),l[i]=g,i+=1}return e}(),$a=function(){var e=-999999;function i(L,w,T){var S=T.lastIndex,N,F,H,W,rt,yt,mt,st,xt,ct=this.keyframes;if(L<ct[0].t-this.offsetTime)N=ct[0].s[0],H=!0,S=0;else if(L>=ct[ct.length-1].t-this.offsetTime)N=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],H=!0;else{for(var et=S,_=ct.length-1,P=!0,v,E,K;P&&(v=ct[et],E=ct[et+1],!(E.t-this.offsetTime>L));)et<_-1?et+=1:P=!1;if(K=this.keyframesMetadata[et]||{},H=v.h===1,S=et,!H){if(L>=E.t-this.offsetTime)st=1;else if(L<v.t-this.offsetTime)st=0;else{var z;K.__fnct?z=K.__fnct:(z=cn.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,K.__fnct=z),st=z((L-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}F=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(yt=w._length,mt=N.i[0].length,T.lastIndex=S,W=0;W<yt;W+=1)for(rt=0;rt<mt;rt+=1)xt=H?N.i[W][rt]:N.i[W][rt]+(F.i[W][rt]-N.i[W][rt])*st,w.i[W][rt]=xt,xt=H?N.o[W][rt]:N.o[W][rt]+(F.o[W][rt]-N.o[W][rt])*st,w.o[W][rt]=xt,xt=H?N.v[W][rt]:N.v[W][rt]+(F.v[W][rt]-N.v[W][rt])*st,w.v[W][rt]=xt}function n(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,S=this._caching.lastFrame;return S!==e&&(S<w&&L<w||S>T&&L>T)||(this._caching.lastIndex=S<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function l(){this.paths=this.localShapeCollection}function p(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,S=L._length;for(T=0;T<S;T+=1)if(L.v[T][0]!==w.v[T][0]||L.v[T][1]!==w.v[T][1]||L.o[T][0]!==w.o[T][0]||L.o[T][1]!==w.o[T][1]||L.i[T][0]!==w.i[T][0]||L.i[T][1]!==w.i[T][1])return!1;return!0}function h(L){p(this.v,L)||(this.v=xe.clone(L),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 L;this.kf?L=this.pv:this.data.ks?L=this.data.ks.k:L=this.data.pt.k;var w,T=this.effectsSequence.length;for(w=0;w<T;w+=1)L=this.effectsSequence[w](L);this.setVValue(L),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function A(L,w,T){this.propType="shape",this.comp=L.comp,this.container=L,this.elem=L,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var S=T===3?w.pt.k:w.ks.k;this.v=xe.clone(S),this.pv=xe.clone(this.v),this.localShapeCollection=ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=l,this.effectsSequence=[]}function b(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}A.prototype.interpolateShape=i,A.prototype.getValue=g,A.prototype.setVValue=h,A.prototype.addEffect=b;function k(L,w,T){this.propType="shape",this.comp=L.comp,this.elem=L,this.container=L,this.offsetTime=L.data.st,this.keyframes=T===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var S=this.keyframes[0].s[0].i.length;this.v=xe.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,S),this.pv=xe.clone(this.v),this.localShapeCollection=ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=l,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}k.prototype.getValue=g,k.prototype.interpolateShape=i,k.prototype.setVValue=h,k.prototype.addEffect=b;var M=function(){var L=Te;function w(T,S){this.v=xe.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ds.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=S.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=nt.getProp(T,S.p,1,0,this),this.s=nt.getProp(T,S.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:l,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var S=this.p.v[0],N=this.p.v[1],F=this.s.v[0]/2,H=this.s.v[1]/2,W=this.d!==3,rt=this.v;rt.v[0][0]=S,rt.v[0][1]=N-H,rt.v[1][0]=W?S+F:S-F,rt.v[1][1]=N,rt.v[2][0]=S,rt.v[2][1]=N+H,rt.v[3][0]=W?S-F:S+F,rt.v[3][1]=N,rt.i[0][0]=W?S-F*L:S+F*L,rt.i[0][1]=N-H,rt.i[1][0]=W?S+F:S-F,rt.i[1][1]=N-H*L,rt.i[2][0]=W?S+F*L:S-F*L,rt.i[2][1]=N+H,rt.i[3][0]=W?S-F:S+F,rt.i[3][1]=N+H*L,rt.o[0][0]=W?S+F*L:S-F*L,rt.o[0][1]=N-H,rt.o[1][0]=W?S+F:S-F,rt.o[1][1]=N+H*L,rt.o[2][0]=W?S-F*L:S+F*L,rt.o[2][1]=N+H,rt.o[3][0]=W?S-F:S+F,rt.o[3][1]=N-H*L}},I([ge],w),w}(),G=function(){function L(w,T){this.v=xe.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),T.sy===1?(this.ir=nt.getProp(w,T.ir,0,0,this),this.is=nt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=nt.getProp(w,T.pt,0,0,this),this.p=nt.getProp(w,T.p,1,0,this),this.r=nt.getProp(w,T.r,0,kt,this),this.or=nt.getProp(w,T.or,0,0,this),this.os=nt.getProp(w,T.os,0,.01,this),this.localShapeCollection=ds.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return L.prototype={reset:l,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,S=Math.PI*2/T,N=!0,F=this.or.v,H=this.ir.v,W=this.os.v,rt=this.is.v,yt=2*Math.PI*F/(T*2),mt=2*Math.PI*H/(T*2),st,xt,ct,et,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){xt=N?F:H,ct=N?W:rt,et=N?yt:mt;var v=xt*Math.cos(_),E=xt*Math.sin(_),K=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),z=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-K*et*ct*P,E-z*et*ct*P,v+K*et*ct*P,E+z*et*ct*P,st,!0),N=!N,_+=S*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),S=Math.PI*2/T,N=this.or.v,F=this.os.v,H=2*Math.PI*N/(T*4),W,rt=-Math.PI*.5,yt=this.data.d===3?-1:1;for(rt+=this.r.v,this.v._length=0,W=0;W<T;W+=1){var mt=N*Math.cos(rt),st=N*Math.sin(rt),xt=mt===0&&st===0?0:st/Math.sqrt(mt*mt+st*st),ct=mt===0&&st===0?0:-mt/Math.sqrt(mt*mt+st*st);mt+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(mt,st,mt-xt*H*F*yt,st-ct*H*F*yt,mt+xt*H*F*yt,st+ct*H*F*yt,W,!0),rt+=S*yt}this.paths.length=0,this.paths[0]=this.v}},I([ge],L),L}(),x=function(){function L(w,T){this.v=xe.newElement(),this.v.c=!0,this.localShapeCollection=ds.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(w),this.p=nt.getProp(w,T.p,1,0,this),this.s=nt.getProp(w,T.s,1,0,this),this.r=nt.getProp(w,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return L.prototype={convertRectToPath:function(){var T=this.p.v[0],S=this.p.v[1],N=this.s.v[0]/2,F=this.s.v[1]/2,H=$e(N,F,this.r.v),W=H*(1-Te);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,S-F+H,T+N,S-F+H,T+N,S-F+W,0,!0),this.v.setTripleAt(T+N,S+F-H,T+N,S+F-W,T+N,S+F-H,1,!0),H!==0?(this.v.setTripleAt(T+N-H,S+F,T+N-H,S+F,T+N-W,S+F,2,!0),this.v.setTripleAt(T-N+H,S+F,T-N+W,S+F,T-N+H,S+F,3,!0),this.v.setTripleAt(T-N,S+F-H,T-N,S+F-H,T-N,S+F-W,4,!0),this.v.setTripleAt(T-N,S-F+H,T-N,S-F+W,T-N,S-F+H,5,!0),this.v.setTripleAt(T-N+H,S-F,T-N+H,S-F,T-N+W,S-F,6,!0),this.v.setTripleAt(T+N-H,S-F,T+N-W,S-F,T+N-H,S-F,7,!0)):(this.v.setTripleAt(T-N,S+F,T-N+W,S+F,T-N,S+F,2),this.v.setTripleAt(T-N,S-F,T-N,S-F+W,T-N,S-F,3))):(this.v.setTripleAt(T+N,S-F+H,T+N,S-F+W,T+N,S-F+H,0,!0),H!==0?(this.v.setTripleAt(T+N-H,S-F,T+N-H,S-F,T+N-W,S-F,1,!0),this.v.setTripleAt(T-N+H,S-F,T-N+W,S-F,T-N+H,S-F,2,!0),this.v.setTripleAt(T-N,S-F+H,T-N,S-F+H,T-N,S-F+W,3,!0),this.v.setTripleAt(T-N,S+F-H,T-N,S+F-W,T-N,S+F-H,4,!0),this.v.setTripleAt(T-N+H,S+F,T-N+H,S+F,T-N+W,S+F,5,!0),this.v.setTripleAt(T+N-H,S+F,T+N-W,S+F,T+N-H,S+F,6,!0),this.v.setTripleAt(T+N,S+F-H,T+N,S+F-H,T+N,S+F-W,7,!0)):(this.v.setTripleAt(T-N,S-F,T-N+W,S-F,T-N,S-F,1,!0),this.v.setTripleAt(T-N,S+F,T-N,S+F-W,T-N,S+F,2,!0),this.v.setTripleAt(T+N,S+F,T+N-W,S+F,T+N,S+F,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:l},I([ge],L),L}();function O(L,w,T){var S;if(T===3||T===4){var N=T===3?w.pt:w.ks,F=N.k;F.length?S=new k(L,w,T):S=new A(L,w,T)}else T===5?S=new x(L,w):T===6?S=new M(L,w):T===7&&(S=new G(L,w));return S.k&&L.addDynamicProperty(S),S}function D(){return A}function R(){return k}var B={};return B.getShapeProp=O,B.getConstructorFunction=D,B.getKeyframedConstructorFunction=R,B}();var Ae=function(){var e=Math.cos,i=Math.sin,n=Math.tan,l=Math.round;function p(){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 h(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(1,0,0,0,0,E,-K,0,0,K,E,0,0,0,0,1)}function A(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,0,K,0,0,1,0,0,-K,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=e(v),K=i(v);return this._t(E,-K,0,0,K,E,0,0,0,0,1,0,0,0,0,1)}function k(v,E){return this._t(1,E,v,1,0,0)}function M(v,E){return this.shear(n(v),n(E))}function G(v,E){var K=e(E),z=i(E);return this._t(K,z,0,0,-z,K,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(K,-z,0,0,z,K,0,0,0,0,1,0,0,0,0,1)}function x(v,E,K){return!K&&K!==0&&(K=1),v===1&&E===1&&K===1?this:this._t(v,0,0,0,0,E,0,0,0,0,K,0,0,0,0,1)}function O(v,E,K,z,at,vt,Et,Rt,Pt,oe,Be,$r,Ue,be,Je,$t){return this.props[0]=v,this.props[1]=E,this.props[2]=K,this.props[3]=z,this.props[4]=at,this.props[5]=vt,this.props[6]=Et,this.props[7]=Rt,this.props[8]=Pt,this.props[9]=oe,this.props[10]=Be,this.props[11]=$r,this.props[12]=Ue,this.props[13]=be,this.props[14]=Je,this.props[15]=$t,this}function D(v,E,K){return K=K||0,v!==0||E!==0||K!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,K,1):this}function R(v,E,K,z,at,vt,Et,Rt,Pt,oe,Be,$r,Ue,be,Je,$t){var ht=this.props;if(v===1&&E===0&&K===0&&z===0&&at===0&&vt===1&&Et===0&&Rt===0&&Pt===0&&oe===0&&Be===1&&$r===0)return ht[12]=ht[12]*v+ht[15]*Ue,ht[13]=ht[13]*vt+ht[15]*be,ht[14]=ht[14]*Be+ht[15]*Je,ht[15]*=$t,this._identityCalculated=!1,this;var ii=ht[0],Ri=ht[1],oi=ht[2],zr=ht[3],si=ht[4],ni=ht[5],He=ht[6],Pi=ht[7],Di=ht[8],_r=ht[9],Fi=ht[10],Cr=ht[11],Eo=ht[12],Ya=ht[13],ja=ht[14],qa=ht[15];return ht[0]=ii*v+Ri*at+oi*Pt+zr*Ue,ht[1]=ii*E+Ri*vt+oi*oe+zr*be,ht[2]=ii*K+Ri*Et+oi*Be+zr*Je,ht[3]=ii*z+Ri*Rt+oi*$r+zr*$t,ht[4]=si*v+ni*at+He*Pt+Pi*Ue,ht[5]=si*E+ni*vt+He*oe+Pi*be,ht[6]=si*K+ni*Et+He*Be+Pi*Je,ht[7]=si*z+ni*Rt+He*$r+Pi*$t,ht[8]=Di*v+_r*at+Fi*Pt+Cr*Ue,ht[9]=Di*E+_r*vt+Fi*oe+Cr*be,ht[10]=Di*K+_r*Et+Fi*Be+Cr*Je,ht[11]=Di*z+_r*Rt+Fi*$r+Cr*$t,ht[12]=Eo*v+Ya*at+ja*Pt+qa*Ue,ht[13]=Eo*E+Ya*vt+ja*oe+qa*be,ht[14]=Eo*K+Ya*Et+ja*Be+qa*Je,ht[15]=Eo*z+Ya*Rt+ja*$r+qa*$t,this._identityCalculated=!1,this}function B(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 L(){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 w(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 S(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,K){return{x:v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}}function F(v,E,K){return v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12]}function H(v,E,K){return v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13]}function W(v,E,K){return v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]}function rt(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,K=-this.props[1]/v,z=-this.props[4]/v,at=this.props[0]/v,vt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,Et=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Rt=new Ae;return Rt.props[0]=E,Rt.props[1]=K,Rt.props[4]=z,Rt.props[5]=at,Rt.props[12]=vt,Rt.props[13]=Et,Rt}function yt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function mt(v){var E,K=v.length,z=[];for(E=0;E<K;E+=1)z[E]=yt(v[E]);return z}function st(v,E,K){var z=Z("float32",6);if(this.isIdentity())z[0]=v[0],z[1]=v[1],z[2]=E[0],z[3]=E[1],z[4]=K[0],z[5]=K[1];else{var at=this.props[0],vt=this.props[1],Et=this.props[4],Rt=this.props[5],Pt=this.props[12],oe=this.props[13];z[0]=v[0]*at+v[1]*Et+Pt,z[1]=v[0]*vt+v[1]*Rt+oe,z[2]=E[0]*at+E[1]*Et+Pt,z[3]=E[0]*vt+E[1]*Rt+oe,z[4]=K[0]*at+K[1]*Et+Pt,z[5]=K[0]*vt+K[1]*Rt+oe}return z}function xt(v,E,K){var z;return this.isIdentity()?z=[v,E,K]:z=[v*this.props[0]+E*this.props[4]+K*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+K*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+K*this.props[10]+this.props[14]],z}function ct(v,E){if(this.isIdentity())return v+","+E;var K=this.props;return Math.round((v*K[0]+E*K[4]+K[12])*100)/100+","+Math.round((v*K[1]+E*K[5]+K[13])*100)/100}function et(){for(var v=0,E=this.props,K="matrix3d(",z=1e4;v<16;)K+=l(E[v]*z)/z,K+=v===15?")":",",v+=1;return K}function _(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?l(v*E)/E:v}function P(){var v=this.props,E=_(v[0]),K=_(v[1]),z=_(v[4]),at=_(v[5]),vt=_(v[12]),Et=_(v[13]);return"matrix("+E+","+K+","+z+","+at+","+vt+","+Et+")"}return function(){this.reset=p,this.rotate=h,this.rotateX=g,this.rotateY=A,this.rotateZ=b,this.skew=M,this.skewFromAxis=G,this.shear=k,this.scale=x,this.setTransform=O,this.translate=D,this.transform=R,this.multiply=B,this.applyToPoint=N,this.applyToX=F,this.applyToY=H,this.applyToZ=W,this.applyToPointArray=xt,this.applyToTriplePoints=st,this.applyToPointStringified=ct,this.toCSS=et,this.to2dCSS=P,this.clone=T,this.cloneFromProps=S,this.equals=w,this.inversePoints=mt,this.inversePoint=yt,this.getInverseMatrix=rt,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function za(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?za=function(n){return typeof n}:za=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},za(e)}var Dt={},Va="__[STANDALONE]__",rm="__[ANIMATIONDATA]__",im="";function my(e){c(e)}function om(){Va===!0?ie.searchAnimations(rm,Va,im):ie.searchAnimations()}function uy(e){Xb(e)}function fy(e){Jb(e)}function vy(e){return Va===!0&&(e.animationData=JSON.parse(rm)),ie.loadAnimation(e)}function gy(e){if(typeof e=="string")switch(e){case"high":Ma(200);break;default:case"medium":Ma(50);break;case"low":Ma(10);break}else!isNaN(e)&&e>1&&Ma(e);nn()>=50?nr(!1):nr(!0)}function by(){return typeof navigator<"u"}function yy(e,i){e==="expressions"&&Qb(i)}function Ey(e){switch(e){case"propertyFactory":return nt;case"shapePropertyFactory":return $a;case"matrix":return Ae;default:return null}}Dt.play=ie.play,Dt.pause=ie.pause,Dt.setLocationHref=my,Dt.togglePause=ie.togglePause,Dt.setSpeed=ie.setSpeed,Dt.setDirection=ie.setDirection,Dt.stop=ie.stop,Dt.searchAnimations=om,Dt.registerAnimation=ie.registerAnimation,Dt.loadAnimation=vy,Dt.setSubframeRendering=uy,Dt.resize=ie.resize,Dt.goToAndStop=ie.goToAndStop,Dt.destroy=ie.destroy,Dt.setQuality=gy,Dt.inBrowser=by,Dt.installPlugin=yy,Dt.freeze=ie.freeze,Dt.unfreeze=ie.unfreeze,Dt.setVolume=ie.setVolume,Dt.mute=ie.mute,Dt.unmute=ie.unmute,Dt.getRegisteredAnimations=ie.getRegisteredAnimations,Dt.useWebWorker=s,Dt.setIDPrefix=fy,Dt.__getFactory=Ey,Dt.version="5.12.2";function Ty(){document.readyState==="complete"&&(clearInterval(Sy),om())}function xy(e){for(var i=sm.split("&"),n=0;n<i.length;n+=1){var l=i[n].split("=");if(decodeURIComponent(l[0])==e)return decodeURIComponent(l[1])}return null}var sm="";if(Va){var nm=document.getElementsByTagName("script"),Ay=nm.length-1,am=nm[Ay]||{src:""};sm=am.src?am.src.replace(/^[^\?]+\??/,""):"",im=xy("renderer")}var Sy=setInterval(Ty,100);try{!((typeof Bn>"u"?"undefined":za(Bn))==="object"&&typeof Al<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Dt)}catch{}var wi=function(){var e={},i={};e.registerModifier=n,e.getModifier=l;function n(p,h){i[p]||(i[p]=h)}function l(p,h,g){return new i[p](h,g)}return e}();function cr(){}cr.prototype.initModifierProperties=function(){},cr.prototype.addShapeToModifier=function(){},cr.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var i={shape:e.sh,data:e,localShapeCollection:ds.newShapeCollection()};this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated&&e.setAsAnimated()}},cr.prototype.init=function(e,i){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},cr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},I([ge],cr);function Ir(){}I([cr],Ir),Ir.prototype.initModifierProperties=function(e,i){this.s=nt.getProp(e,i.s,0,.01,this),this.e=nt.getProp(e,i.e,0,.01,this),this.o=nt.getProp(e,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ir.prototype.addShapeToModifier=function(e){e.pathsData=[]},Ir.prototype.calculateShapeEdges=function(e,i,n,l,p){var h=[];i<=1?h.push({s:e,e:i}):e>=1?h.push({s:e-1,e:i-1}):(h.push({s:e,e:1}),h.push({s:0,e:i-1}));var g=[],A,b=h.length,k;for(A=0;A<b;A+=1)if(k=h[A],!(k.e*p<l||k.s*p>l+n)){var M,G;k.s*p<=l?M=0:M=(k.s*p-l)/n,k.e*p>=l+n?G=1:G=(k.e*p-l)/n,g.push([M,G])}return g.length||g.push([0,0]),g},Ir.prototype.releasePathsData=function(e){var i,n=e.length;for(i=0;i<n;i+=1)Zp.release(e[i]);return e.length=0,e},Ir.prototype.processShapes=function(e){var i,n;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),this.s.v>1?i=1+l:this.s.v<0?i=0+l:i=this.s.v+l,this.e.v>1?n=1+l:this.e.v<0?n=0+l:n=this.e.v+l,i>n){var p=i;i=n,n=p}i=Math.round(i*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=i,this.eValue=n}else i=this.sValue,n=this.eValue;var h,g,A=this.shapes.length,b,k,M,G,x,O=0;if(n===i)for(g=0;g<A;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&&i===0||n===0&&i===1){if(this._mdf)for(g=0;g<A;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var D=[],R,B;for(g=0;g<A;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!e&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(h=R.shape.paths,k=h._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(M=this.releasePathsData(R.pathsData),b=0;b<k;b+=1)G=Dr.getSegmentsLength(h.shapes[b]),M.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=M}O+=x,R.shape._mdf=!0}var L=i,w=n,T=0,S;for(g=A-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(B=R.localShapeCollection,B.releaseShapes(),this.m===2&&A>1?(S=this.calculateShapeEdges(i,n,R.totalShapeLength,T,O),T+=R.totalShapeLength):S=[[L,w]],k=S.length,b=0;b<k;b+=1){L=S[b][0],w=S[b][1],D.length=0,w<=1?D.push({s:R.totalShapeLength*L,e:R.totalShapeLength*w}):L>=1?D.push({s:R.totalShapeLength*(L-1),e:R.totalShapeLength*(w-1)}):(D.push({s:R.totalShapeLength*L,e:R.totalShapeLength}),D.push({s:0,e:R.totalShapeLength*(w-1)}));var N=this.addShapes(R,D[0]);if(D[0].s!==D[0].e){if(D.length>1){var F=R.shape.paths.shapes[R.shape.paths._length-1];if(F.c){var H=N.pop();this.addPaths(N,B),N=this.addShapes(R,D[1],H)}else this.addPaths(N,B),N=this.addShapes(R,D[1])}this.addPaths(N,B)}}R.shape.paths=B}}},Ir.prototype.addPaths=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)i.addShape(e[n])},Ir.prototype.addSegment=function(e,i,n,l,p,h,g){p.setXYAt(i[0],i[1],"o",h),p.setXYAt(n[0],n[1],"i",h+1),g&&p.setXYAt(e[0],e[1],"v",h),p.setXYAt(l[0],l[1],"v",h+1)},Ir.prototype.addSegmentFromArray=function(e,i,n,l){i.setXYAt(e[1],e[5],"o",n),i.setXYAt(e[2],e[6],"i",n+1),l&&i.setXYAt(e[0],e[4],"v",n),i.setXYAt(e[3],e[7],"v",n+1)},Ir.prototype.addShapes=function(e,i,n){var l=e.pathsData,p=e.shape.paths.shapes,h,g=e.shape.paths._length,A,b,k=0,M,G,x,O,D=[],R,B=!0;for(n?(G=n._length,R=n._length):(n=xe.newElement(),G=0,R=0),D.push(n),h=0;h<g;h+=1){for(x=l[h].lengths,n.c=p[h].c,b=p[h].c?x.length:x.length+1,A=1;A<b;A+=1)if(M=x[A-1],k+M.addedLength<i.s)k+=M.addedLength,n.c=!1;else if(k>i.e){n.c=!1;break}else i.s<=k&&i.e>=k+M.addedLength?(this.addSegment(p[h].v[A-1],p[h].o[A-1],p[h].i[A],p[h].v[A],n,G,B),B=!1):(O=Dr.getNewSegment(p[h].v[A-1],p[h].v[A],p[h].o[A-1],p[h].i[A],(i.s-k)/M.addedLength,(i.e-k)/M.addedLength,x[A-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1),k+=M.addedLength,G+=1;if(p[h].c&&x.length){if(M=x[A-1],k<=i.e){var L=x[A-1].addedLength;i.s<=k&&i.e>=k+L?(this.addSegment(p[h].v[A-1],p[h].o[A-1],p[h].i[0],p[h].v[0],n,G,B),B=!1):(O=Dr.getNewSegment(p[h].v[A-1],p[h].v[0],p[h].o[A-1],p[h].i[0],(i.s-k)/L,(i.e-k)/L,x[A-1]),this.addSegmentFromArray(O,n,G,B),B=!1,n.c=!1)}else n.c=!1;k+=M.addedLength,G+=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)),k>i.e)break;h<g-1&&(n=xe.newElement(),B=!0,D.push(n),G=0)}return D};function hn(){}I([cr],hn),hn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},hn.prototype.processPath=function(e,i){var n=i/100,l=[0,0],p=e._length,h=0;for(h=0;h<p;h+=1)l[0]+=e.v[h][0],l[1]+=e.v[h][1];l[0]/=p,l[1]/=p;var g=xe.newElement();g.c=e.c;var A,b,k,M,G,x;for(h=0;h<p;h+=1)A=e.v[h][0]+(l[0]-e.v[h][0])*n,b=e.v[h][1]+(l[1]-e.v[h][1])*n,k=e.o[h][0]+(l[0]-e.o[h][0])*-n,M=e.o[h][1]+(l[1]-e.o[h][1])*-n,G=e.i[h][0]+(l[0]-e.i[h][0])*-n,x=e.i[h][1]+(l[1]-e.i[h][1])*-n,g.setTripleAt(A,b,k,M,G,x,h);return g},hn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,p,h,g=this.amount.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,h=A.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Xd=function(){var e=[0,0];function i(b){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,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 k;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 M,G;if(k=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(M=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/k,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/k,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(M=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/k,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/k,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){M=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(M[0]=x.getValueAtTime((x.keyframes[0].t+.01)/k,0),M[1]=O.getValueAtTime((O.keyframes[0].t+.01)/k,0),G[0]=x.getValueAtTime(x.keyframes[0].t/k,0),G[1]=O.getValueAtTime(O.keyframes[0].t/k,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(M[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/k,0),M[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/k,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),G[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),G[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else G=e,M=G;this.v.rotate(-Math.atan2(M[1]-G[1],M[0]-G[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 l(){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 p(){}function h(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,k,M){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Ae,this.pre=new Ae,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||b),k.p&&k.p.s?(this.px=nt.getProp(b,k.p.x,0,0,this),this.py=nt.getProp(b,k.p.y,0,0,this),k.p.z&&(this.pz=nt.getProp(b,k.p.z,0,0,this))):this.p=nt.getProp(b,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=nt.getProp(b,k.rx,0,kt,this),this.ry=nt.getProp(b,k.ry,0,kt,this),this.rz=nt.getProp(b,k.rz,0,kt,this),k.or.k[0].ti){var G,x=k.or.k.length;for(G=0;G<x;G+=1)k.or.k[G].to=null,k.or.k[G].ti=null}this.or=nt.getProp(b,k.or,1,kt,this),this.or.sh=!0}else this.r=nt.getProp(b,k.r||{k:0},0,kt,this);k.sk&&(this.sk=nt.getProp(b,k.sk,0,kt,this),this.sa=nt.getProp(b,k.sa,0,kt,this)),this.a=nt.getProp(b,k.a||{k:[0,0,0]},1,0,this),this.s=nt.getProp(b,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=nt.getProp(b,k.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:i,getValue:n,precalculateMatrix:l,autoOrient:p},I([ge],g),g.prototype.addDynamicProperty=h,g.prototype._addDynamicProperty=ge.prototype.addDynamicProperty;function A(b,k,M){return new g(b,k,M)}return{getTransformProperty:A}}();function Fr(){}I([cr],Fr),Fr.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.c=nt.getProp(e,i.c,0,null,this),this.o=nt.getProp(e,i.o,0,null,this),this.tr=Xd.getTransformProperty(e,i.tr,this),this.so=nt.getProp(e,i.tr.so,0,.01,this),this.eo=nt.getProp(e,i.tr.eo,0,.01,this),this.data=i,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ae,this.rMatrix=new Ae,this.sMatrix=new Ae,this.tMatrix=new Ae,this.matrix=new Ae},Fr.prototype.applyTransforms=function(e,i,n,l,p,h){var g=h?-1:1,A=l.s.v[0]+(1-l.s.v[0])*(1-p),b=l.s.v[1]+(1-l.s.v[1])*(1-p);e.translate(l.p.v[0]*g*p,l.p.v[1]*g*p,l.p.v[2]),i.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),i.rotate(-l.r.v*g*p),i.translate(l.a.v[0],l.a.v[1],l.a.v[2]),n.translate(-l.a.v[0],-l.a.v[1],l.a.v[2]),n.scale(h?1/A:A,h?1/b:b),n.translate(l.a.v[0],l.a.v[1],l.a.v[2])},Fr.prototype.init=function(e,i,n,l){for(this.elem=e,this.arr=i,this.pos=n,this.elemsData=l,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,i[n]);n>0;)n-=1,this._elements.unshift(i[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Fr.prototype.resetElements=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i]._processed=!1,e[i].ty==="gr"&&this.resetElements(e[i].it)},Fr.prototype.cloneElements=function(e){var i=JSON.parse(JSON.stringify(e));return this.resetElements(i),i},Fr.prototype.changeGroupRender=function(e,i){var n,l=e.length;for(n=0;n<l;n+=1)e[n]._render=i,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,i)},Fr.prototype.processShapes=function(e){var i,n,l,p,h,g=!1;if(this._mdf||e){var A=Math.ceil(this.c.v);if(this._groups.length<A){for(;this._groups.length<A;){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}h=0;var k;for(l=0;l<=this._groups.length-1;l+=1){if(k=h<A,this._groups[l]._render=k,this.changeGroupRender(this._groups[l].it,k),!k){var M=this.elemsData[l].it,G=M[M.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}h+=1}this._currentCopies=A;var x=this.o.v,O=x%1,D=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,B=this.rMatrix.props,L=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(x>0){for(;w<D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),w+=O)}else if(x<0){for(;w>D;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),w-=O)}l=this.data.m===1?0:this._currentCopies-1,p=this.data.m===1?1:-1,h=this._currentCopies;for(var T,S;h;){if(i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,S=n.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(l/(this._currentCopies-1)),w!==0){for((l!==0&&p===1||l!==this._currentCopies-1&&p===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14],B[15]),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[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<S;T+=1)n[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<S;T+=1)n[T]=this.matrix.props[T];w+=1,h-=1,l+=p}}else for(h=this._currentCopies,l=0,p=1;h;)i=this.elemsData[l].it,n=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,h-=1,l+=p;return g},Fr.prototype.addShape=function(){};function pn(){}I([cr],pn),pn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.rd=nt.getProp(e,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},pn.prototype.processPath=function(e,i){var n=xe.newElement();n.c=e.c;var l,p=e._length,h,g,A,b,k,M,G=0,x,O,D,R,B,L;for(l=0;l<p;l+=1)h=e.v[l],A=e.o[l],g=e.i[l],h[0]===A[0]&&h[1]===A[1]&&h[0]===g[0]&&h[1]===g[1]?(l===0||l===p-1)&&!e.c?(n.setTripleAt(h[0],h[1],A[0],A[1],g[0],g[1],G),G+=1):(l===0?b=e.v[p-1]:b=e.v[l-1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,B=h[0]+(b[0]-h[0])*M,x=B,L=h[1]-(h[1]-b[1])*M,O=L,D=x-(x-h[0])*Te,R=O-(O-h[1])*Te,n.setTripleAt(x,O,D,R,B,L,G),G+=1,l===p-1?b=e.v[0]:b=e.v[l+1],k=Math.sqrt(Math.pow(h[0]-b[0],2)+Math.pow(h[1]-b[1],2)),M=k?Math.min(k/2,i)/k:0,D=h[0]+(b[0]-h[0])*M,x=D,R=h[1]+(b[1]-h[1])*M,O=R,B=x-(x-h[0])*Te,L=O-(O-h[1])*Te,n.setTripleAt(x,O,D,R,B,L,G),G+=1):(n.setTripleAt(e.v[l][0],e.v[l][1],e.o[l][0],e.o[l][1],e.i[l][0],e.i[l][1],G),G+=1);return n},pn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,p,h,g=this.rd.v;if(g!==0){var A,b;for(n=0;n<l;n+=1){if(A=this.shapes[n],b=A.localShapeCollection,!(!A.shape._mdf&&!this._mdf&&!e))for(b.releaseShapes(),A.shape._mdf=!0,i=A.shape.paths.shapes,h=A.shape.paths._length,p=0;p<h;p+=1)b.addShape(this.processPath(i[p],g));A.shape.paths=A.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ba(e,i){return Math.abs(e-i)*1e5<=Math.min(Math.abs(e),Math.abs(i))}function Zd(e){return Math.abs(e)<=1e-5}function lm(e,i,n){return e*(1-n)+i*n}function ki(e,i,n){return[lm(e[0],i[0],n),lm(e[1],i[1],n)]}function Iy(e,i,n){if(e===0)return[];var l=i*i-4*e*n;if(l<0)return[];var p=-i/(2*e);if(l===0)return[p];var h=Math.sqrt(l)/(2*e);return[p-h,p+h]}function dm(e,i,n,l){return[-e+3*i-3*n+l,3*e-6*i+3*n,-3*e+3*i,e]}function cm(e){return new Xt(e,e,e,e,!1)}function Xt(e,i,n,l,p){p&&hs(e,i)&&(i=ki(e,l,1/3)),p&&hs(n,l)&&(n=ki(e,l,2/3));var h=dm(e[0],i[0],n[0],l[0]),g=dm(e[1],i[1],n[1],l[1]);this.a=[h[0],g[0]],this.b=[h[1],g[1]],this.c=[h[2],g[2]],this.d=[h[3],g[3]],this.points=[e,i,n,l]}Xt.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},Xt.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},Xt.prototype.tangentAngle=function(e){var i=this.derivative(e);return Math.atan2(i[1],i[0])},Xt.prototype.normalAngle=function(e){var i=this.derivative(e);return Math.atan2(i[0],i[1])},Xt.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Zd(e))return[];var i=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=i*i-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var l=Math.sqrt(n);return Zd(l)?l>0&&l<1?[i]:[]:[i-l,i+l].filter(function(p){return p>0&&p<1})},Xt.prototype.split=function(e){if(e<=0)return[cm(this.points[0]),this];if(e>=1)return[this,cm(this.points[this.points.length-1])];var i=ki(this.points[0],this.points[1],e),n=ki(this.points[1],this.points[2],e),l=ki(this.points[2],this.points[3],e),p=ki(i,n,e),h=ki(n,l,e),g=ki(p,h,e);return[new Xt(this.points[0],i,p,g,!0),new Xt(g,h,l,this.points[3],!0)]};function hm(e,i){var n=e.points[0][i],l=e.points[e.points.length-1][i];if(n>l){var p=l;l=n,n=p}for(var h=Iy(3*e.a[i],2*e.b[i],e.c[i]),g=0;g<h.length;g+=1)if(h[g]>0&&h[g]<1){var A=e.point(h[g])[i];A<n?n=A:A>l&&(l=A)}return{min:n,max:l}}Xt.prototype.bounds=function(){return{x:hm(this,0),y:hm(this,1)}},Xt.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function Ua(e,i,n){var l=e.boundingBox();return{cx:l.cx,cy:l.cy,width:l.width,height:l.height,bez:e,t:(i+n)/2,t1:i,t2:n}}function pm(e){var i=e.bez.split(.5);return[Ua(i[0],e.t1,e.t),Ua(i[1],e.t,e.t2)]}function _y(e,i){return Math.abs(e.cx-i.cx)*2<e.width+i.width&&Math.abs(e.cy-i.cy)*2<e.height+i.height}function mn(e,i,n,l,p,h){if(_y(e,i)){if(n>=h||e.width<=l&&e.height<=l&&i.width<=l&&i.height<=l){p.push([e.t,i.t]);return}var g=pm(e),A=pm(i);mn(g[0],A[0],n+1,l,p,h),mn(g[0],A[1],n+1,l,p,h),mn(g[1],A[0],n+1,l,p,h),mn(g[1],A[1],n+1,l,p,h)}}Xt.prototype.intersections=function(e,i,n){i===void 0&&(i=2),n===void 0&&(n=7);var l=[];return mn(Ua(this,0,1),Ua(e,0,1),0,i,l,n),l},Xt.shapeSegment=function(e,i){var n=(i+1)%e.length();return new Xt(e.v[i],e.o[i],e.i[n],e.v[n],!0)},Xt.shapeSegmentInverted=function(e,i){var n=(i+1)%e.length();return new Xt(e.v[n],e.i[n],e.o[i],e.v[i],!0)};function Qd(e,i){return[e[1]*i[2]-e[2]*i[1],e[2]*i[0]-e[0]*i[2],e[0]*i[1]-e[1]*i[0]]}function Ha(e,i,n,l){var p=[e[0],e[1],1],h=[i[0],i[1],1],g=[n[0],n[1],1],A=[l[0],l[1],1],b=Qd(Qd(p,h),Qd(g,A));return Zd(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function cs(e,i,n){return[e[0]+Math.cos(i)*n,e[1]-Math.sin(i)*n]}function Jd(e,i){return Math.hypot(e[0]-i[0],e[1]-i[1])}function hs(e,i){return Ba(e[0],i[0])&&Ba(e[1],i[1])}function un(){}I([cr],un),un.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amplitude=nt.getProp(e,i.s,0,null,this),this.frequency=nt.getProp(e,i.r,0,null,this),this.pointsType=nt.getProp(e,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function mm(e,i,n,l,p,h,g){var A=n-Math.PI/2,b=n+Math.PI/2,k=i[0]+Math.cos(n)*l*p,M=i[1]-Math.sin(n)*l*p;e.setTripleAt(k,M,k+Math.cos(A)*h,M-Math.sin(A)*h,k+Math.cos(b)*g,M-Math.sin(b)*g,e.length())}function Cy(e,i){var n=[i[0]-e[0],i[1]-e[1]],l=-Math.PI*.5,p=[Math.cos(l)*n[0]-Math.sin(l)*n[1],Math.sin(l)*n[0]+Math.cos(l)*n[1]];return p}function wy(e,i){var n=i===0?e.length()-1:i-1,l=(i+1)%e.length(),p=e.v[n],h=e.v[l],g=Cy(p,h);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function um(e,i,n,l,p,h,g){var A=wy(i,n),b=i.v[n%i._length],k=i.v[n===0?i._length-1:n-1],M=i.v[(n+1)%i._length],G=h===2?Math.sqrt(Math.pow(b[0]-k[0],2)+Math.pow(b[1]-k[1],2)):0,x=h===2?Math.sqrt(Math.pow(b[0]-M[0],2)+Math.pow(b[1]-M[1],2)):0;mm(e,i.v[n%i._length],A,g,l,x/((p+1)*2),G/((p+1)*2),h)}function ky(e,i,n,l,p,h){for(var g=0;g<l;g+=1){var A=(g+1)/(l+1),b=p===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,k=i.normalAngle(A),M=i.point(A);mm(e,M,k,h,n,b/((l+1)*2),b/((l+1)*2),p),h=-h}return h}un.prototype.processPath=function(e,i,n,l){var p=e._length,h=xe.newElement();if(h.c=e.c,e.c||(p-=1),p===0)return h;var g=-1,A=Xt.shapeSegment(e,0);um(h,e,0,i,n,l,g);for(var b=0;b<p;b+=1)g=ky(h,A,i,n,l,-g),b===p-1&&!e.c?A=null:A=Xt.shapeSegment(e,(b+1)%p),um(h,e,b+1,i,n,l,g);return h},un.prototype.processShapes=function(e){var i,n,l=this.shapes.length,p,h,g=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var k,M;for(n=0;n<l;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,A,b));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function tc(e,i,n){var l=Math.atan2(i[0]-e[0],i[1]-e[1]);return[cs(e,l,n),cs(i,l,n)]}function ps(e,i){var n,l,p,h,g,A,b;b=tc(e.points[0],e.points[1],i),n=b[0],l=b[1],b=tc(e.points[1],e.points[2],i),p=b[0],h=b[1],b=tc(e.points[2],e.points[3],i),g=b[0],A=b[1];var k=Ha(n,l,p,h);k===null&&(k=l);var M=Ha(g,A,p,h);return M===null&&(M=g),new Xt(n,k,M,A)}function fm(e,i,n,l,p){var h=i.points[3],g=n.points[0];if(l===3||hs(h,g))return h;if(l===2){var A=-i.tangentAngle(1),b=-n.tangentAngle(0)+Math.PI,k=Ha(h,cs(h,A+Math.PI/2,100),g,cs(g,A+Math.PI/2,100)),M=k?Jd(k,h):Jd(h,g)/2,G=cs(h,A,2*M*Te);return e.setXYAt(G[0],G[1],"o",e.length()-1),G=cs(g,b,2*M*Te),e.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],e.length()),g}var x=hs(h,i.points[2])?i.points[0]:i.points[2],O=hs(g,n.points[1])?n.points[3]:n.points[1],D=Ha(x,h,g,O);return D&&Jd(D,h)<p?(e.setTripleAt(D[0],D[1],D[0],D[1],D[0],D[1],e.length()),D):h}function vm(e,i){var n=e.intersections(i);return n.length&&Ba(n[0][0],1)&&n.shift(),n.length?n[0]:null}function gm(e,i){var n=e.slice(),l=i.slice(),p=vm(e[e.length-1],i[0]);return p&&(n[e.length-1]=e[e.length-1].split(p[0])[0],l[0]=i[0].split(p[1])[1]),e.length>1&&i.length>1&&(p=vm(e[0],i[i.length-1]),p)?[[e[0].split(p[0])[0]],[i[i.length-1].split(p[1])[1]]]:[n,l]}function Ny(e){for(var i,n=1;n<e.length;n+=1)i=gm(e[n-1],e[n]),e[n-1]=i[0],e[n]=i[1];return e.length>1&&(i=gm(e[e.length-1],e[0]),e[e.length-1]=i[0],e[0]=i[1]),e}function bm(e,i){var n=e.inflectionPoints(),l,p,h,g;if(n.length===0)return[ps(e,i)];if(n.length===1||Ba(n[1],1))return h=e.split(n[0]),l=h[0],p=h[1],[ps(l,i),ps(p,i)];h=e.split(n[0]),l=h[0];var A=(n[1]-n[0])/(1-n[0]);return h=h[1].split(A),g=h[0],p=h[1],[ps(l,i),ps(g,i),ps(p,i)]}function fn(){}I([cr],fn),fn.prototype.initModifierProperties=function(e,i){this.getValue=this.processKeys,this.amount=nt.getProp(e,i.a,0,null,this),this.miterLimit=nt.getProp(e,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},fn.prototype.processPath=function(e,i,n,l){var p=xe.newElement();p.c=e.c;var h=e.length();e.c||(h-=1);var g,A,b,k=[];for(g=0;g<h;g+=1)b=Xt.shapeSegment(e,g),k.push(bm(b,i));if(!e.c)for(g=h-1;g>=0;g-=1)b=Xt.shapeSegmentInverted(e,g),k.push(bm(b,i));k=Ny(k);var M=null,G=null;for(g=0;g<k.length;g+=1){var x=k[g];for(G&&(M=fm(p,G,x[0],n,l)),G=x[x.length-1],A=0;A<x.length;A+=1)b=x[A],M&&hs(b.points[0],M)?p.setXYAt(b.points[1][0],b.points[1][1],"o",p.length()-1):p.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],p.length()),p.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],p.length()),M=b.points[3]}return k.length&&fm(p,G,k[0][0],n,l),p},fn.prototype.processShapes=function(e){var i,n,l=this.shapes.length,p,h,g=this.amount.v,A=this.miterLimit.v,b=this.lineJoin;if(g!==0){var k,M;for(n=0;n<l;n+=1){if(k=this.shapes[n],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!e))for(M.releaseShapes(),k.shape._mdf=!0,i=k.shape.paths.shapes,h=k.shape.paths._length,p=0;p<h;p+=1)M.addShape(this.processPath(i[p],g,b,A));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ym(e){for(var i=e.fStyle?e.fStyle.split(" "):[],n="normal",l="normal",p=i.length,h,g=0;g<p;g+=1)switch(h=i[g].toLowerCase(),h){case"italic":l="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:l,weight:e.fWeight||n}}var go=function(){var e=5e3,i={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 l=127988,p=917631,h=917601,g=917626,A=65039,b=8205,k=127462,M=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var P=_.split(","),v,E=P.length,K=[];for(v=0;v<E;v+=1)P[v]!=="sans-serif"&&P[v]!=="monospace"&&K.push(P[v]);return K.join(",")}function O(_,P){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=P;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 K=E.offsetWidth;return E.style.fontFamily=x(_)+", "+P,{node:E,w:K,parent:v}}function D(){var _,P=this.fonts.length,v,E,K=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?K-=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?(K-=1,this.fonts[_].loaded=!0):(v=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,v.offsetWidth!==E&&(K-=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)));K!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(_,P){var v=document.body&&P?"svg":"canvas",E,K=ym(_);if(v==="svg"){var z=Tt("text");z.style.fontSize="100px",z.setAttribute("font-family",_.fFamily),z.setAttribute("font-style",K.style),z.setAttribute("font-weight",K.weight),z.textContent="1",_.fClass?(z.style.fontFamily="inherit",z.setAttribute("class",_.fClass)):z.style.fontFamily=_.fFamily,P.appendChild(z),E=z}else{var at=new OffscreenCanvas(500,500).getContext("2d");at.font=K.style+" "+K.weight+" 100px "+_.fFamily,E=at}function vt(Et){return v==="svg"?(E.textContent=Et,E.getComputedTextLength()):E.measureText(Et).width}return{measureText:vt}}function B(_,P){if(!_){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=_.list;return}if(!document.body){this.isLoaded=!0,_.list.forEach(function(Be){Be.helper=R(Be),Be.cache={}}),this.fonts=_.list;return}var v=_.list,E,K=v.length,z=K;for(E=0;E<K;E+=1){var at=!0,vt,Et;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,z-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(vt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),vt.length>0&&(at=!1),at){var Rt=y("style");Rt.setAttribute("f-forigin",v[E].fOrigin),Rt.setAttribute("f-origin",v[E].origin),Rt.setAttribute("f-family",v[E].fFamily),Rt.type="text/css",Rt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",P.appendChild(Rt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(vt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Et=0;Et<vt.length;Et+=1)vt[Et].href.indexOf(v[E].fPath)!==-1&&(at=!1);if(at){var Pt=y("link");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.type="text/css",Pt.rel="stylesheet",Pt.href=v[E].fPath,document.body.appendChild(Pt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(vt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Et=0;Et<vt.length;Et+=1)v[E].fPath===vt[Et].src&&(at=!1);if(at){var oe=y("link");oe.setAttribute("f-forigin",v[E].fOrigin),oe.setAttribute("f-origin",v[E].origin),oe.setAttribute("rel","stylesheet"),oe.setAttribute("href",v[E].fPath),P.appendChild(oe)}}v[E].helper=R(v[E],P),v[E].cache={},this.fonts.push(v[E])}z===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,v=_.length,E,K=this.chars.length,z;for(P=0;P<v;P+=1){for(E=0,z=!1;E<K;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(z=!0),E+=1;z||(this.chars.push(_[P]),K+=1)}}}function w(_,P,v){for(var E=0,K=this.chars.length;E<K;){if(this.chars[E].ch===_&&this.chars[E].style===P&&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: ",_,P,v)),i}function T(_,P,v){var E=this.getFontByName(P),K=_;if(!E.cache[K]){var z=E.helper;if(_===" "){var at=z.measureText("|"+_+"|"),vt=z.measureText("||");E.cache[K]=(at-vt)/100}else E.cache[K]=z.measureText(_)/100}return E.cache[K]*v}function S(_){for(var P=0,v=this.fonts.length;P<v;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,v=_.charCodeAt(0);if(v>=55296&&v<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(v-55296)*1024+E-56320+65536)}return P}function F(_,P){var v=_.toString(16)+P.toString(16);return G.indexOf(v)!==-1}function H(_){return _===b}function W(_){return _===A}function rt(_){var P=N(_);return P>=k&&P<=M}function yt(_){return rt(_.substr(0,2))&&rt(_.substr(2,2))}function mt(_){return n.indexOf(_)!==-1}function st(_,P){var v=N(_.substr(P,2));if(v!==l)return!1;var E=0;for(P+=2;E<5;){if(v=N(_.substr(P,2)),v<h||v>g)return!1;E+=1,P+=2}return N(_.substr(P,2))===p}function xt(){this.isLoaded=!0}var ct=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)};ct.isModifier=F,ct.isZeroWidthJoiner=H,ct.isFlagEmoji=yt,ct.isRegionalCode=rt,ct.isCombinedCharacter=mt,ct.isRegionalFlag=st,ct.isVariationSelector=W,ct.BLACK_FLAG_CODE_POINT=l;var et={addChars:L,addFonts:B,getCharData:w,getFontByName:S,measureText:T,checkLoadedFonts:D,setIsLoaded:xt};return ct.prototype=et,ct}();function Em(e){this.animationData=e}Em.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function Ly(e){return new Em(e)}function Ga(){}Ga.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(i){this.renderableComponents.indexOf(i)===-1&&this.renderableComponents.push(i)},removeRenderableComponent:function(i){this.renderableComponents.indexOf(i)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function(i){this.checkLayerLimits(i)},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(i){this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i?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 i,n=this.renderableComponents.length;for(i=0;i<n;i+=1)this.renderableComponents[i].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 ec=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return e[i]||""}}();function My(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Oy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Ry(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Py(e,i,n){this.p=nt.getProp(i,e.v,1,0,n)}function Dy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function Fy(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function $y(e,i,n){this.p=nt.getProp(i,e.v,0,0,n)}function zy(){this.p={}}function Tm(e,i){var n=e.ef||[];this.effectElements=[];var l,p=n.length,h;for(l=0;l<p;l+=1)h=new vn(n[l],i),this.effectElements.push(h)}function vn(e,i){this.init(e,i)}I([ge],vn),vn.prototype.getValue=vn.prototype.iterateDynamicProperties,vn.prototype.init=function(e,i){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(i);var n,l=this.data.ef.length,p,h=this.data.ef;for(n=0;n<l;n+=1){switch(p=null,h[n].ty){case 0:p=new My(h[n],i,this);break;case 1:p=new Oy(h[n],i,this);break;case 2:p=new Ry(h[n],i,this);break;case 3:p=new Py(h[n],i,this);break;case 4:case 7:p=new $y(h[n],i,this);break;case 10:p=new Dy(h[n],i,this);break;case 11:p=new Fy(h[n],i,this);break;case 5:p=new Tm(h[n],i,this);break;default:p=new zy(h[n],i,this);break}p&&this.effectElements.push(p)}};function Ni(){}Ni.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var i=0,n=this.data.masksProperties.length;i<n;){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function(){var i=Yp();if(i){var n=i("layer"),l=i("effects"),p=i("shape"),h=i("text"),g=i("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var A=l.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(A),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=p(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=h(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var i=ec(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=i},initBaseData:function(i,n,l){this.globalData=n,this.comp=l,this.data=i,this.layerId=ze(),this.data.sr||(this.data.sr=1),this.effectsManager=new Tm(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Li(){}Li.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(i,n){var l,p=this.dynamicProperties.length;for(l=0;l<p;l+=1)(n||this._isParent&&this.dynamicProperties[l].propType==="transform")&&(this.dynamicProperties[l].getValue(),this.dynamicProperties[l]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(i){this.dynamicProperties.indexOf(i)===-1&&this.dynamicProperties.push(i)}};function Mi(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(e,i,n)}Mi.prototype.prepareFrame=function(){},I([Ga,Ni,Li],Mi),Mi.prototype.getBaseElement=function(){return null},Mi.prototype.renderFrame=function(){},Mi.prototype.destroy=function(){},Mi.prototype.initExpressions=function(){var e=Yp();if(e){var i=e("footage");this.layerInterface=i(this)}},Mi.prototype.getFootageData=function(){return this.footageData};function Ve(e,i,n){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(e.refId),this.initBaseData(e,i,n),this._isPlaying=!1,this._canPlay=!1;var l=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(l),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=nt.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}Ve.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var i=this.tm.v;this._currentTime=i}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},I([Ga,Ni,Li],Ve),Ve.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))},Ve.prototype.show=function(){},Ve.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ve.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ve.prototype.resume=function(){this._canPlay=!0},Ve.prototype.setRate=function(e){this.audio.rate(e)},Ve.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},Ve.prototype.getBaseElement=function(){return null},Ve.prototype.destroy=function(){},Ve.prototype.sourceRectAtTime=function(){},Ve.prototype.initExpressions=function(){};function Se(){}Se.prototype.checkLayers=function(e){var i,n=this.layers.length,l;for(this.completeLayers=!0,i=n-1;i>=0;i-=1)this.elements[i]||(l=this.layers[i],l.ip-l.st<=e-this.layers[i].st&&l.op-l.st>e-this.layers[i].st&&this.buildItem(i)),this.completeLayers=this.elements[i]?this.completeLayers:!1;this.checkPendingElements()},Se.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},Se.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Se.prototype.createAudio=function(e){return new Ve(e,this.globalData,this)},Se.prototype.createFootage=function(e){return new Mi(e,this.globalData,this)},Se.prototype.buildAllItems=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.buildItem(e);this.checkPendingElements()},Se.prototype.includeLayers=function(e){this.completeLayers=!1;var i,n=e.length,l,p=this.layers.length;for(i=0;i<n;i+=1)for(l=0;l<p;){if(this.layers[l].id===e[i].id){this.layers[l]=e[i];break}l+=1}},Se.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},Se.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Se.prototype.buildElementParenting=function(e,i,n){for(var l=this.elements,p=this.layers,h=0,g=p.length;h<g;)p[h].ind==i&&(!l[h]||l[h]===!0?(this.buildItem(h),this.addPendingElement(e)):(n.push(l[h]),l[h].setAsParent(),p[h].parent!==void 0?this.buildElementParenting(e,p[h].parent,n):e.setHierarchy(n))),h+=1},Se.prototype.addPendingElement=function(e){this.pendingElements.push(e)},Se.prototype.searchExtraCompositions=function(e){var i,n=e.length;for(i=0;i<n;i+=1)if(e[i].xt){var l=this.createComp(e[i]);l.initExpressions(),this.globalData.projectInterface.registerComposition(l)}},Se.prototype.getElementById=function(e){var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.ind===e)return this.elements[i];return null},Se.prototype.getElementByPath=function(e){var i=e.shift(),n;if(typeof i=="number")n=this.elements[i];else{var l,p=this.elements.length;for(l=0;l<p;l+=1)if(this.elements[l].data.nm===i){n=this.elements[l];break}}return e.length===0?n:n.getElementByPath(e)},Se.prototype.setupGlobalData=function(e,i){this.globalData.fontManager=new go,this.globalData.slotManager=Ly(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var Vy={TRANSFORM_EFFECT:"transformEFfect"};function ms(){}ms.prototype={initTransform:function(){var i=new Ae;this.finalTransform={mProp:this.data.ks?Xd.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,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 i,n=this.finalTransform.mat,l=0,p=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;l<p;){if(this.hierarchy[l].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}l+=1}if(this.finalTransform._matMdf)for(i=this.finalTransform.mProp.v.props,n.cloneFromProps(i),l=0;l<p;l+=1)n.multiply(this.hierarchy[l].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 i=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;i<n;)this.localTransforms[i]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),i+=1;if(this.finalTransform._localMatMdf){var l=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(l),i=1;i<n;i+=1){var p=this.localTransforms[i].matrix;l.multiply(p)}l.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var h=this.finalTransform.localOpacity;for(i=0;i<n;i+=1)h*=this.localTransforms[i].opacity*.01;this.finalTransform.localOpacity=h}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(Vy.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new Ae;var n=0,l=i.length;for(n=0;n<l;n+=1)this.localTransforms.push(i[n])}}},globalToLocal:function(i){var n=[];n.push(this.finalTransform);for(var l=!0,p=this.comp;l;)p.finalTransform?(p.data.hasMask&&n.splice(0,0,p.finalTransform),p=p.comp):l=!1;var h,g=n.length,A;for(h=0;h<g;h+=1)A=n[h].mat.applyToPointArray(0,0,0),i=[i[0]-A[0],i[1]-A[1],0];return i},mHelper:new Ae};function bo(e,i,n){this.data=e,this.element=i,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var l=this.globalData.defs,p,h=this.masksProperties?this.masksProperties.length:0;this.viewData=it(h),this.solidPath="";var g,A=this.masksProperties,b=0,k=[],M,G,x=ze(),O,D,R,B,L="clipPath",w="clip-path";for(p=0;p<h;p+=1)if((A[p].mode!=="a"&&A[p].mode!=="n"||A[p].inv||A[p].o.k!==100||A[p].o.x)&&(L="mask",w="mask"),(A[p].mode==="s"||A[p].mode==="i")&&b===0?(O=Tt("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),k.push(O)):O=null,g=Tt("path"),A[p].mode==="n")this.viewData[p]={op:nt.getProp(this.element,A[p].o,0,.01,this.element),prop:$a.getShapeProp(this.element,A[p],3),elem:g,lastPath:""},l.appendChild(g);else{b+=1,g.setAttribute("fill",A[p].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(A[p].x.k!==0?(L="mask",w="mask",B=nt.getProp(this.element,A[p].x,0,null,this.element),T=ze(),D=Tt("filter"),D.setAttribute("id",T),R=Tt("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),D.appendChild(R),l.appendChild(D),g.setAttribute("stroke",A[p].mode==="s"?"#000000":"#ffffff")):(R=null,B=null),this.storedData[p]={elem:g,x:B,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},A[p].mode==="i"){G=k.length;var S=Tt("g");for(M=0;M<G;M+=1)S.appendChild(k[M]);var N=Tt("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),l.appendChild(N),S.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),k.length=0,k.push(S)}else k.push(g);A[p].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[p]={elem:g,lastPath:"",op:nt.getProp(this.element,A[p].o,0,.01,this.element),prop:$a.getShapeProp(this.element,A[p],3),invRect:O},this.viewData[p].prop.k||this.drawPath(A[p],this.viewData[p].prop.v,this.viewData[p])}for(this.maskElement=Tt(L),h=k.length,p=0;p<h;p+=1)this.maskElement.appendChild(k[p]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}bo.prototype.getMaskProperty=function(e){return this.viewData[e].prop},bo.prototype.renderFrame=function(e){var i=this.element.finalTransform.mat,n,l=this.masksProperties.length;for(n=0;n<l;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&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||e)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var p=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+")")),p.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))}},bo.prototype.getMaskelement=function(){return this.maskElement},bo.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},bo.prototype.drawPath=function(e,i,n){var l=" M"+i.v[0][0]+","+i.v[0][1],p,h;for(h=i._length,p=1;p<h;p+=1)l+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[p][0]+","+i.i[p][1]+" "+i.v[p][0]+","+i.v[p][1];if(i.c&&h>1&&(l+=" C"+i.o[p-1][0]+","+i.o[p-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1]),n.lastPath!==l){var g="";n.elem&&(i.c&&(g=e.inv?this.solidPath+l:l),n.elem.setAttribute("d",g)),n.lastPath=l}},bo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var gn=function(){var e={};e.createFilter=i,e.createAlphaToLuminanceFilter=n;function i(l,p){var h=Tt("filter");return h.setAttribute("id",l),p!==!0&&(h.setAttribute("filterUnits","objectBoundingBox"),h.setAttribute("x","0%"),h.setAttribute("y","0%"),h.setAttribute("width","100%"),h.setAttribute("height","100%")),h}function n(){var l=Tt("feColorMatrix");return l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),l}return e}(),xm=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),Ka={},Am="filter_result_";function rc(e){var i,n="SourceGraphic",l=e.data.ef?e.data.ef.length:0,p=ze(),h=gn.createFilter(p,!0),g=0;this.filters=[];var A;for(i=0;i<l;i+=1){A=null;var b=e.data.ef[i].ty;if(Ka[b]){var k=Ka[b].effect;A=new k(h,e.effectsManager.effectElements[i],e,Am+g,n),n=Am+g,Ka[b].countsAsEffect&&(g+=1)}A&&this.filters.push(A)}g&&(e.globalData.defs.appendChild(h),e.layerElement.setAttribute("filter","url("+f()+"#"+p+")")),this.filters.length&&e.addRenderableComponent(this)}rc.prototype.renderFrame=function(e){var i,n=this.filters.length;for(i=0;i<n;i+=1)this.filters[i].renderFrame(e)},rc.prototype.getEffects=function(e){var i,n=this.filters.length,l=[];for(i=0;i<n;i+=1)this.filters[i].type===e&&l.push(this.filters[i]);return l};function X0(e,i,n){Ka[e]={effect:i,countsAsEffect:n}}function bn(){}bn.prototype={initRendererElement:function(){this.layerElement=Tt("g")},createContainerElements:function(){this.matteElement=Tt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var n=Tt("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),i=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=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 l=Tt("clipPath"),p=Tt("path");p.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var h=ze();if(l.setAttribute("id",h),l.appendChild(p),this.globalData.defs.appendChild(l),this.checkMasks()){var g=Tt("g");g.setAttribute("clip-path","url("+f()+"#"+h+")"),g.appendChild(this.layerElement),this.transformedElement=g,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+h+")")}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 bo(this.data,this,this.globalData),this.renderableEffectsManager=new rc(this),this.searchEffectTransforms()},getMatte:function(i){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[i]){var n=this.layerId+"_"+i,l,p,h,g;if(i===1||i===3){var A=Tt("mask");A.setAttribute("id",n),A.setAttribute("mask-type",i===3?"luminance":"alpha"),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(h),this.globalData.defs.appendChild(A),!xm.maskType&&i===1&&(A.setAttribute("mask-type","luminance"),l=ze(),p=gn.createFilter(l),this.globalData.defs.appendChild(p),p.appendChild(gn.createAlphaToLuminanceFilter()),g=Tt("g"),g.appendChild(h),A.appendChild(g),g.setAttribute("filter","url("+f()+"#"+l+")"))}else if(i===2){var b=Tt("mask");b.setAttribute("id",n),b.setAttribute("mask-type","alpha");var k=Tt("g");b.appendChild(k),l=ze(),p=gn.createFilter(l);var M=Tt("feComponentTransfer");M.setAttribute("in","SourceGraphic"),p.appendChild(M);var G=Tt("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),M.appendChild(G),this.globalData.defs.appendChild(p);var x=Tt("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"),k.setAttribute("filter","url("+f()+"#"+l+")"),k.appendChild(x),h=Tt("use"),h.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(h),xm.maskType||(b.setAttribute("mask-type","luminance"),p.appendChild(gn.createAlphaToLuminanceFilter()),g=Tt("g"),k.appendChild(x),g.appendChild(this.layerElement),k.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[i]=n}return this.matteMasks[i]},setMatte:function(i){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+i+")")}};function us(){}us.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(i){this.hierarchy=i},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function yn(){}(function(){var e={initElement:function(n,l,p){this.initFrame(),this.initBaseData(n,l,p),this.initTransform(n,l,p),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()}};I([Ga,Y(e)],yn)})();function En(e,i,n){this.assetData=i.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=i.slotManager.getProp(this.assetData)),this.initElement(e,i,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}I([Ni,ms,bn,us,Li,yn],En),En.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=Tt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},En.prototype.sourceRectAtTime=function(){return this.sourceRect};function By(e,i){this.elem=e,this.pos=i}function Sm(){}Sm.prototype={addShapeToModifiers:function(i){var n,l=this.shapeModifiers.length;for(n=0;n<l;n+=1)this.shapeModifiers[n].addShape(i)},isShapeInAnimatedModifiers:function(i){for(var n=0,l=this.shapeModifiers.length;n<l;)if(this.shapeModifiers[n].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var i,n=this.shapes.length;for(i=0;i<n;i+=1)this.shapes[i].sh.reset();n=this.shapeModifiers.length;var l;for(i=n-1;i>=0&&(l=this.shapeModifiers[i].processShapes(this._isFirstFrame),!l);i-=1);}},searchProcessedElement:function(i){for(var n=this.processedElements,l=0,p=n.length;l<p;){if(n[l].elem===i)return n[l].pos;l+=1}return 0},addProcessedElement:function(i,n){for(var l=this.processedElements,p=l.length;p;)if(p-=1,l[p].elem===i){l[p].pos=n;return}l.push(new By(i,n))},prepareFrame:function(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var Im={1:"butt",2:"round",3:"square"},_m={1:"miter",2:"round",3:"bevel"};function Cm(e,i,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=i,this._isAnimated=!!n.k;for(var l=0,p=e.length;l<p;){if(e[l].mProps.dynamicProperties.length){this._isAnimated=!0;break}l+=1}}Cm.prototype.setAsAnimated=function(){this._isAnimated=!0};function wm(e,i){this.data=e,this.type=e.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=e.hd===!0,this.pElem=Tt("path"),this.msElem=null}wm.prototype.reset=function(){this.d="",this._mdf=!1};function Wa(e,i,n,l){this.elem=e,this.frameId=-1,this.dataProps=it(i.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=Z("float32",i.length?i.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(l);var p,h=i.length||0,g;for(p=0;p<h;p+=1)g=nt.getProp(e,i[p].v,0,0,this),this.k=g.k||this.k,this.dataProps[p]={n:i[p].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}Wa.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var i=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),i=0;i<n;i+=1)this.dataProps[i].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[i].p.v:this.dashArray[i]=this.dataProps[i].p.v:this.dashoffset[0]=this.dataProps[i].p.v}},I([ge],Wa);function km(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.w=nt.getProp(e,i.w,0,null,this),this.d=new Wa(e,i.d||{},"svg",this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}I([ge],km);function Nm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=nt.getProp(e,i.o,0,.01,this),this.c=nt.getProp(e,i.c,1,255,this),this.style=n}I([ge],Nm);function Lm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}I([ge],Lm);function Tn(e,i,n){this.data=i,this.c=Z("uint8c",i.p*4);var l=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=Z("float32",l),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=l,this.initDynamicPropertyContainer(n),this.prop=nt.getProp(e,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Tn.prototype.comparePoints=function(e,i){for(var n=0,l=this.o.length/2,p;n<l;){if(p=Math.abs(e[n*4]-e[i*4+n*2]),p>.01)return!1;n+=1}return!0},Tn.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,i=this.data.k.k.length;e<i;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Tn.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var i,n=this.data.p*4,l,p;for(i=0;i<n;i+=1)l=i%4===0?100:255,p=Math.round(this.prop.v[i]*l),this.c[i]!==p&&(this.c[i]=p,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,i=this.data.p*4;i<n;i+=1)l=i%2===0?100:1,p=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==p&&(this.o[i-this.data.p*4]=p,this._omdf=!e);this._mdf=!e}},I([ge],Tn);function fs(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,i,n)}fs.prototype.initGradientData=function(e,i,n){this.o=nt.getProp(e,i.o,0,.01,this),this.s=nt.getProp(e,i.s,1,null,this),this.e=nt.getProp(e,i.e,1,null,this),this.h=nt.getProp(e,i.h||{k:0},0,.01,this),this.a=nt.getProp(e,i.a||{k:0},0,kt,this),this.g=new Tn(e,i.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,i),this.setGradientOpacity(i,n),this._isAnimated=!!this._isAnimated},fs.prototype.setGradientData=function(e,i){var n=ze(),l=Tt(i.t===1?"linearGradient":"radialGradient");l.setAttribute("id",n),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse");var p=[],h,g,A;for(A=i.g.p*4,g=0;g<A;g+=4)h=Tt("stop"),l.appendChild(h),p.push(h);e.setAttribute(i.ty==="gf"?"fill":"stroke","url("+f()+"#"+n+")"),this.gf=l,this.cst=p},fs.prototype.setGradientOpacity=function(e,i){if(this.g._hasOpacity&&!this.g._collapsable){var n,l,p,h=Tt("mask"),g=Tt("path");h.appendChild(g);var A=ze(),b=ze();h.setAttribute("id",b);var k=Tt(e.t===1?"linearGradient":"radialGradient");k.setAttribute("id",A),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),p=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var M=this.stops;for(l=e.g.p*4;l<p;l+=2)n=Tt("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(n),M.push(n);g.setAttribute(e.ty==="gf"?"fill":"stroke","url("+f()+"#"+A+")"),e.ty==="gs"&&(g.setAttribute("stroke-linecap",Im[e.lc||2]),g.setAttribute("stroke-linejoin",_m[e.lj||2]),e.lj===1&&g.setAttribute("stroke-miterlimit",e.ml)),this.of=k,this.ms=h,this.ost=M,this.maskId=b,i.msElem=g}},I([ge],fs);function Mm(e,i,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=nt.getProp(e,i.w,0,null,this),this.d=new Wa(e,i.d||{},"svg",this),this.initGradientData(e,i,n),this._isAnimated=!!this._isAnimated}I([fs,ge],Mm);function Uy(){this.it=[],this.prevViewData=[],this.gr=Tt("g")}function Hy(e,i,n){this.transform={mProps:e,op:i,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Om=function(i,n,l,p){if(n===0)return"";var h=i.o,g=i.i,A=i.v,b,k=" M"+p.applyToPointStringified(A[0][0],A[0][1]);for(b=1;b<n;b+=1)k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[b][0],g[b][1])+" "+p.applyToPointStringified(A[b][0],A[b][1]);return l&&n&&(k+=" C"+p.applyToPointStringified(h[b-1][0],h[b-1][1])+" "+p.applyToPointStringified(g[0][0],g[0][1])+" "+p.applyToPointStringified(A[0][0],A[0][1]),k+="z"),k},Gy=function(){var e=new Ae,i=new Ae,n={createRenderFunction:l};function l(G){switch(G.ty){case"fl":return A;case"gf":return k;case"gs":return b;case"st":return M;case"sh":case"el":case"rc":case"sr":return g;case"tr":return p;case"no":return h;default:return null}}function p(G,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 h(){}function g(G,x,O){var D,R,B,L,w,T,S=x.styles.length,N=x.lvl,F,H,W,rt;for(T=0;T<S;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(H=i.reset(),W=N-x.styles[T].lvl,rt=x.transformers.length-1;!L&&W>0;)L=x.transformers[rt].mProps._mdf||L,W-=1,rt-=1;if(L)for(W=N-x.styles[T].lvl,rt=x.transformers.length-1;W>0;)H.multiply(x.transformers[rt].mProps.v),W-=1,rt-=1}else H=e;if(F=x.sh.paths,R=F._length,L){for(B="",D=0;D<R;D+=1)w=F.shapes[D],w&&w._length&&(B+=Om(w,w._length,w.c,H));x.caches[T]=B}else B=x.caches[T];x.styles[T].d+=G.hd===!0?"":B,x.styles[T]._mdf=L||x.styles[T]._mdf}}function A(G,x,O){var D=x.style;(x.c._mdf||O)&&D.pElem.setAttribute("fill","rgb("+ve(x.c.v[0])+","+ve(x.c.v[1])+","+ve(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){k(G,x,O),M(G,x,O)}function k(G,x,O){var D=x.gf,R=x.g._hasOpacity,B=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=G.t===1?"x1":"cx",S=T==="x1"?"y1":"cy";D.setAttribute(T,B[0]),D.setAttribute(S,B[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,B[0]),x.of.setAttribute(S,B[1]))}var N,F,H,W;if(x.g._cmdf||O){N=x.cst;var rt=x.g.c;for(H=N.length,F=0;F<H;F+=1)W=N[F],W.setAttribute("offset",rt[F*4]+"%"),W.setAttribute("stop-color","rgb("+rt[F*4+1]+","+rt[F*4+2]+","+rt[F*4+3]+")")}if(R&&(x.g._omdf||O)){var yt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,H=N.length,F=0;F<H;F+=1)W=N[F],x.g._collapsable||W.setAttribute("offset",yt[F*2]+"%"),W.setAttribute("stop-opacity",yt[F*2+1])}if(G.t===1)(x.e._mdf||O)&&(D.setAttribute("x2",L[0]),D.setAttribute("y2",L[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var mt;if((x.s._mdf||x.e._mdf||O)&&(mt=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)),D.setAttribute("r",mt),R&&!x.g._collapsable&&x.of.setAttribute("r",mt)),x.e._mdf||x.h._mdf||x.a._mdf||O){mt||(mt=Math.sqrt(Math.pow(B[0]-L[0],2)+Math.pow(B[1]-L[1],2)));var st=Math.atan2(L[1]-B[1],L[0]-B[0]),xt=x.h.v;xt>=1?xt=.99:xt<=-1&&(xt=-.99);var ct=mt*xt,et=Math.cos(st+x.a.v)*ct+B[0],_=Math.sin(st+x.a.v)*ct+B[1];D.setAttribute("fx",et),D.setAttribute("fy",_),R&&!x.g._collapsable&&(x.of.setAttribute("fx",et),x.of.setAttribute("fy",_))}}}function M(G,x,O){var D=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(D.pElem.setAttribute("stroke-dasharray",R.dashStr),D.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&D.pElem.setAttribute("stroke","rgb("+ve(x.c.v[0])+","+ve(x.c.v[1])+","+ve(x.c.v[2])+")"),(x.o._mdf||O)&&D.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(D.pElem.setAttribute("stroke-width",x.w.v),D.msElem&&D.msElem.setAttribute("stroke-width",x.w.v))}return n}();function Qt(e,i,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,i,n),this.prevViewData=[]}I([Ni,ms,bn,Sm,us,Li,yn],Qt),Qt.prototype.initSecondaryElement=function(){},Qt.prototype.identityMatrix=new Ae,Qt.prototype.buildExpressionInterface=function(){},Qt.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Qt.prototype.filterUniqueShapes=function(){var e,i=this.shapes.length,n,l,p=this.stylesList.length,h,g=[],A=!1;for(l=0;l<p;l+=1){for(h=this.stylesList[l],A=!1,g.length=0,e=0;e<i;e+=1)n=this.shapes[e],n.styles.indexOf(h)!==-1&&(g.push(n),A=n._isAnimated||A);g.length>1&&A&&this.setShapesAsAnimated(g)}},Qt.prototype.setShapesAsAnimated=function(e){var i,n=e.length;for(i=0;i<n;i+=1)e[i].setAsAnimated()},Qt.prototype.createStyleElement=function(e,i){var n,l=new wm(e,i),p=l.pElem;if(e.ty==="st")n=new km(this,e,l);else if(e.ty==="fl")n=new Nm(this,e,l);else if(e.ty==="gf"||e.ty==="gs"){var h=e.ty==="gf"?fs:Mm;n=new h(this,e,l),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),p.setAttribute("mask","url("+f()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new Lm(this,e,l));return(e.ty==="st"||e.ty==="gs")&&(p.setAttribute("stroke-linecap",Im[e.lc||2]),p.setAttribute("stroke-linejoin",_m[e.lj||2]),p.setAttribute("fill-opacity","0"),e.lj===1&&p.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&p.setAttribute("fill-rule","evenodd"),e.ln&&p.setAttribute("id",e.ln),e.cl&&p.setAttribute("class",e.cl),e.bm&&(p.style["mix-blend-mode"]=ec(e.bm)),this.stylesList.push(l),this.addToAnimatedContents(e,n),n},Qt.prototype.createGroupElement=function(e){var i=new Uy;return e.ln&&i.gr.setAttribute("id",e.ln),e.cl&&i.gr.setAttribute("class",e.cl),e.bm&&(i.gr.style["mix-blend-mode"]=ec(e.bm)),i},Qt.prototype.createTransformElement=function(e,i){var n=Xd.getTransformProperty(this,e,this),l=new Hy(n,n.o,i);return this.addToAnimatedContents(e,l),l},Qt.prototype.createShapeElement=function(e,i,n){var l=4;e.ty==="rc"?l=5:e.ty==="el"?l=6:e.ty==="sr"&&(l=7);var p=$a.getShapeProp(this,e,l,this),h=new Cm(i,n,p);return this.shapes.push(h),this.addShapeToModifiers(h),this.addToAnimatedContents(e,h),h},Qt.prototype.addToAnimatedContents=function(e,i){for(var n=0,l=this.animatedContents.length;n<l;){if(this.animatedContents[n].element===i)return;n+=1}this.animatedContents.push({fn:Gy.createRenderFunction(e),element:i,data:e})},Qt.prototype.setElementStyles=function(e){var i=e.styles,n,l=this.stylesList.length;for(n=0;n<l;n+=1)this.stylesList[n].closed||i.push(this.stylesList[n])},Qt.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,i=this.itemsData.length;for(e=0;e<i;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length,e=0;e<i;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},Qt.prototype.searchShapes=function(e,i,n,l,p,h,g){var A=[].concat(h),b,k=e.length-1,M,G,x=[],O=[],D,R,B;for(b=k;b>=0;b-=1){if(B=this.searchProcessedElement(e[b]),B?i[b]=n[B-1]:e[b]._render=g,e[b].ty==="fl"||e[b].ty==="st"||e[b].ty==="gf"||e[b].ty==="gs"||e[b].ty==="no")B?i[b].style.closed=!1:i[b]=this.createStyleElement(e[b],p),e[b]._render&&i[b].style.pElem.parentNode!==l&&l.appendChild(i[b].style.pElem),x.push(i[b].style);else if(e[b].ty==="gr"){if(!B)i[b]=this.createGroupElement(e[b]);else for(G=i[b].it.length,M=0;M<G;M+=1)i[b].prevViewData[M]=i[b].it[M];this.searchShapes(e[b].it,i[b].it,i[b].prevViewData,i[b].gr,p+1,A,g),e[b]._render&&i[b].gr.parentNode!==l&&l.appendChild(i[b].gr)}else e[b].ty==="tr"?(B||(i[b]=this.createTransformElement(e[b],l)),D=i[b].transform,A.push(D)):e[b].ty==="sh"||e[b].ty==="rc"||e[b].ty==="el"||e[b].ty==="sr"?(B||(i[b]=this.createShapeElement(e[b],A,p)),this.setElementStyles(i[b])):e[b].ty==="tm"||e[b].ty==="rd"||e[b].ty==="ms"||e[b].ty==="pb"||e[b].ty==="zz"||e[b].ty==="op"?(B?(R=i[b],R.closed=!1):(R=wi.getModifier(e[b].ty),R.init(this,e[b]),i[b]=R,this.shapeModifiers.push(R)),O.push(R)):e[b].ty==="rp"&&(B?(R=i[b],R.closed=!0):(R=wi.getModifier(e[b].ty),i[b]=R,R.init(this,e,b,i),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(e[b],b+1)}for(k=x.length,b=0;b<k;b+=1)x[b].closed=!0;for(k=O.length,b=0;b<k;b+=1)O[b].closed=!0},Qt.prototype.renderInnerContent=function(){this.renderModifiers();var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<i;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},Qt.prototype.renderShape=function(){var e,i=this.animatedContents.length,n;for(e=0;e<i;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},Qt.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ic(e,i,n,l,p,h){this.o=e,this.sw=i,this.sc=n,this.fc=l,this.m=p,this.p=h,this._mdf={o:!0,sw:!!i,sc:!!n,fc:!!l,m:!0,p:!0}}ic.prototype.update=function(e,i,n,l,p,h){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!==e&&(this.o=e,this._mdf.o=!0,g=!0),this.sw!==i&&(this.sw=i,this._mdf.sw=!0,g=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,g=!0),this.fc!==l&&(this.fc=l,this._mdf.fc=!0,g=!0),this.m!==p&&(this.m=p,this._mdf.m=!0,g=!0),h.length&&(this.p[0]!==h[0]||this.p[1]!==h[1]||this.p[4]!==h[4]||this.p[5]!==h[5]||this.p[12]!==h[12]||this.p[13]!==h[13])&&(this.p=h,this._mdf.p=!0,g=!0),g};function Ne(e,i){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid&&(i.d=e.globalData.slotManager.getProp(i.d)),this.data=i,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Ne.prototype.defaultBoxWidth=[0,0],Ne.prototype.copyData=function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);return e},Ne.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Ne.prototype.searchProperty=function(){return this.searchKeyframes()},Ne.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Ne.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},Ne.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var l,p=this.effectsSequence.length,h=e||this.data.d.k[this.keysIndex].s;for(l=0;l<p;l+=1)n!==this.keysIndex?h=this.effectsSequence[l](h,h.t):h=this.effectsSequence[l](this.currentData,h.t);i!==h&&this.setCurrentData(h),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Ne.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,i=this.elem.comp.renderedFrame,n=0,l=e.length;n<=l-1&&!(n===l-1||e[n+1].t>i);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Ne.prototype.buildFinalText=function(e){for(var i=[],n=0,l=e.length,p,h,g=!1,A=!1,b="";n<l;)g=A,A=!1,p=e.charCodeAt(n),b=e.charAt(n),go.isCombinedCharacter(p)?g=!0:p>=55296&&p<=56319?go.isRegionalFlag(e,n)?b=e.substr(n,14):(h=e.charCodeAt(n+1),h>=56320&&h<=57343&&(go.isModifier(p,h)?(b=e.substr(n,2),g=!0):go.isFlagEmoji(e.substr(n,4))?b=e.substr(n,4):b=e.substr(n,2))):p>56319?(h=e.charCodeAt(n+1),go.isVariationSelector(p)&&(g=!0)):go.isZeroWidthJoiner(p)&&(g=!0,A=!0),g?(i[i.length-1]+=b,g=!1):i.push(b),n+=b.length;return i},Ne.prototype.completeTextData=function(e){e.__complete=!0;var i=this.elem.globalData.fontManager,n=this.data,l=[],p,h,g,A=0,b,k=n.m.g,M=0,G=0,x=0,O=[],D=0,R=0,B,L,w=i.getFontByName(e.f),T,S=0,N=ym(w);e.fWeight=N.weight,e.fStyle=N.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),h=e.finalText.length,e.finalLineHeight=e.lh;var F=e.tr/1e3*e.finalSize,H;if(e.sz)for(var W=!0,rt=e.sz[0],yt=e.sz[1],mt,st;W;){st=this.buildFinalText(e.t),mt=0,D=0,h=st.length,F=e.tr/1e3*e.finalSize;var xt=-1;for(p=0;p<h;p+=1)H=st[p].charCodeAt(0),g=!1,st[p]===" "?xt=p:(H===13||H===3)&&(D=0,g=!0,mt+=e.finalLineHeight||e.finalSize*1.2),i.chars?(T=i.getCharData(st[p],w.fStyle,w.fFamily),S=g?0:T.w*e.finalSize/100):S=i.measureText(st[p],e.f,e.finalSize),D+S>rt&&st[p]!==" "?(xt===-1?h+=1:p=xt,mt+=e.finalLineHeight||e.finalSize*1.2,st.splice(p,xt===p?1:0,"\r"),xt=-1,D=0):(D+=S,D+=F);mt+=w.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&yt<mt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=st,h=e.finalText.length,W=!1)}D=-F,S=0;var ct=0,et;for(p=0;p<h;p+=1)if(g=!1,et=e.finalText[p],H=et.charCodeAt(0),H===13||H===3?(ct=0,O.push(D),R=D>R?D:R,D=-2*F,b="",g=!0,x+=1):b=et,i.chars?(T=i.getCharData(et,w.fStyle,i.getFontByName(e.f).fFamily),S=g?0:T.w*e.finalSize/100):S=i.measureText(b,e.f,e.finalSize),et===" "?ct+=S+F:(D+=S+F+ct,ct=0),l.push({l:S,an:S,add:M,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),k==2){if(M+=S,b===""||b===" "||p===h-1){for((b===""||b===" ")&&(M-=S);G<=p;)l[G].an=M,l[G].ind=A,l[G].extra=S,G+=1;A+=1,M=0}}else if(k==3){if(M+=S,b===""||p===h-1){for(b===""&&(M-=S);G<=p;)l[G].an=M,l[G].ind=A,l[G].extra=S,G+=1;M=0,A+=1}}else l[A].ind=A,l[A].extra=0,A+=1;if(e.l=l,R=D>R?D:R,O.push(D),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=R,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=O;var _=n.a,P,v;L=_.length;var E,K,z=[];for(B=0;B<L;B+=1){for(P=_[B],P.a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),K=0,E=P.s.b,p=0;p<h;p+=1)v=l[p],v.anIndexes[B]=K,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||p==h-1)||E==4&&(v.n||p==h-1))&&(P.s.rn===1&&z.push(K),K+=1);n.a[B].s.totalChars=K;var at=-1,vt;if(P.s.rn===1)for(p=0;p<h;p+=1)v=l[p],at!=v.anIndexes[B]&&(at=v.anIndexes[B],vt=z.splice(Math.floor(Math.random()*z.length),1)[0]),v.anIndexes[B]=vt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=w.ascent*e.finalSize/100},Ne.prototype.updateDocumentData=function(e,i){i=i===void 0?this.keysIndex:i;var n=this.copyData({},this.data.d.k[i].s);n=this.copyData(n,e),this.data.d.k[i].s=n,this.recalculate(i),this.setCurrentData(n),this.elem.addDynamicProperty(this)},Ne.prototype.recalculate=function(e){var i=this.data.d.k[e].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},Ne.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Ne.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Ky=function(){var e=Math.max,i=Math.min,n=Math.floor;function l(h,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=h,this.comp=h.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(h),this.s=nt.getProp(h,g.s||{k:0},0,0,this),"e"in g?this.e=nt.getProp(h,g.e,0,0,this):this.e={v:100},this.o=nt.getProp(h,g.o||{k:0},0,0,this),this.xe=nt.getProp(h,g.xe||{k:0},0,0,this),this.ne=nt.getProp(h,g.ne||{k:0},0,0,this),this.sm=nt.getProp(h,g.sm||{k:100},0,0,this),this.a=nt.getProp(h,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}l.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var A=0,b=0,k=1,M=1;this.ne.v>0?A=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var G=cn.getBezierEasing(A,b,k,M).get,x=0,O=this.finalS,D=this.finalE,R=this.data.sh;if(R===2)D===O?x=g>=D?1:0:x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===3)D===O?x=g>=D?0:1:x=1-e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x=G(x);else if(R===4)D===O?x=0:(x=e(0,i(.5/(D-O)+(g-O)/(D-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(D===O)x=0;else{var B=D-O;g=i(e(0,g+.5-O),D-O);var L=-B/2+g,w=B/2;x=Math.sqrt(1-L*L/(w*w))}x=G(x)}else R===6?(D===O?x=0:(g=i(e(0,g+.5-O),D-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(D-O)))/2),x=G(x)):(g>=n(O)&&(g-O<0?x=e(0,i(i(D,1)-(O-g),1)):x=e(0,i(D-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var S=.5-T*.5;x<S?x=0:(x=(x-S)/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 A=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/A,k=this.s.v/A+b,M=this.e.v/A+b;if(k>M){var G=k;k=M,M=G}this.finalS=k,this.finalE=M}},I([ge],l);function p(h,g,A){return new l(h,g,A)}return{getTextSelectorProp:p}}();function Wy(e,i,n){var l={propType:!1},p=nt.getProp,h=i.a;this.a={r:h.r?p(e,h.r,0,kt,n):l,rx:h.rx?p(e,h.rx,0,kt,n):l,ry:h.ry?p(e,h.ry,0,kt,n):l,sk:h.sk?p(e,h.sk,0,kt,n):l,sa:h.sa?p(e,h.sa,0,kt,n):l,s:h.s?p(e,h.s,1,.01,n):l,a:h.a?p(e,h.a,1,0,n):l,o:h.o?p(e,h.o,0,.01,n):l,p:h.p?p(e,h.p,1,0,n):l,sw:h.sw?p(e,h.sw,0,0,n):l,sc:h.sc?p(e,h.sc,1,0,n):l,fc:h.fc?p(e,h.fc,1,0,n):l,fh:h.fh?p(e,h.fh,0,0,n):l,fs:h.fs?p(e,h.fs,0,.01,n):l,fb:h.fb?p(e,h.fb,0,.01,n):l,t:h.t?p(e,h.t,0,0,n):l},this.s=Ky.getTextSelectorProp(e,i.s,n),this.s.t=i.s.t}function yo(e,i,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=i,this._elem=n,this._animatorsData=it(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}yo.prototype.searchProperties=function(){var e,i=this._textData.a.length,n,l=nt.getProp;for(e=0;e<i;e+=1)n=this._textData.a[e],this._animatorsData[e]=new Wy(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:l(this._elem,this._textData.p.a,0,0,this),f:l(this._elem,this._textData.p.f,0,0,this),l:l(this._elem,this._textData.p.l,0,0,this),r:l(this._elem,this._textData.p.r,0,0,this),p:l(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=l(this._elem,this._textData.m.a,1,0,this)},yo.prototype.getMeasures=function(e,i){if(this.lettersChangedFlag=i,!(!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,l=this._animatorsData,p=this._textData,h=this.mHelper,g=this._renderType,A=this.renderedLetters.length,b,k,M,G,x=e.l,O,D,R,B,L,w,T,S,N,F,H,W,rt,yt,mt;if(this._hasMaskedPath){if(mt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=mt.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var xt;for(W=0,M=0;M<G;M+=1)xt=Dr.buildBezierData(st.v[M],st.v[M+1],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[M+1][0]-st.v[M+1][0],st.i[M+1][1]-st.v[M+1][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),W+=xt.segmentLength;M=G,mt.v.c&&(xt=Dr.buildBezierData(st.v[M],st.v[0],[st.o[M][0]-st.v[M][0],st.o[M][1]-st.v[M][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=xt.segmentLength,O.segments.push(xt),W+=xt.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,D=this._pathData.f.v,T=0,w=1,B=0,L=!0,F=O.segments,D<0&&mt.v.c)for(O.tLength<Math.abs(D)&&(D=-Math.abs(D)%O.tLength),T=F.length-1,N=F[T].points,w=N.length-1;D<0;)D+=N[w].partialLength,w-=1,w<0&&(T-=1,N=F[T].points,w=N.length-1);N=F[T].points,S=N[w-1],R=N[w],H=R.partialLength}G=x.length,b=0,k=0;var ct=e.finalSize*1.2*.714,et=!0,_,P,v,E,K;E=l.length;var z,at=-1,vt,Et,Rt,Pt=D,oe=T,Be=w,$r=-1,Ue,be,Je,$t,ht,ii,Ri,oi,zr="",si=this.defaultPropsArray,ni;if(e.j===2||e.j===1){var He=0,Pi=0,Di=e.j===2?-.5:-1,_r=0,Fi=!0;for(M=0;M<G;M+=1)if(x[M].n){for(He&&(He+=Pi);_r<M;)x[_r].animatorJustifyOffset=He,_r+=1;He=0,Fi=!0}else{for(v=0;v<E;v+=1)_=l[v].a,_.t.propType&&(Fi&&e.j===2&&(Pi+=_.t.v*Di),P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?He+=_.t.v*z[0]*Di:He+=_.t.v*z*Di);Fi=!1}for(He&&(He+=Pi);_r<M;)x[_r].animatorJustifyOffset=He,_r+=1}for(M=0;M<G;M+=1){if(h.reset(),Ue=1,x[M].n)b=0,k+=e.yOffset,k+=et?1:0,D=Pt,et=!1,this._hasMaskedPath&&(T=oe,w=Be,N=F[T].points,S=N[w-1],R=N[w],H=R.partialLength,B=0),zr="",oi="",ii="",ni="",si=this.defaultPropsArray;else{if(this._hasMaskedPath){if($r!==x[M].line){switch(e.j){case 1:D+=W-e.lineWidths[x[M].line];break;case 2:D+=(W-e.lineWidths[x[M].line])/2;break;default:break}$r=x[M].line}at!==x[M].ind&&(x[at]&&(D+=x[at].extra),D+=x[M].an/2,at=x[M].ind),D+=n[0]*x[M].an*.005;var Cr=0;for(v=0;v<E;v+=1)_=l[v].a,_.p.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?Cr+=_.p.v[0]*z[0]:Cr+=_.p.v[0]*z),_.a.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?Cr+=_.a.v[0]*z[0]:Cr+=_.a.v[0]*z);for(L=!0,this._pathData.a.v&&(D=x[0].an*.5+(W-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*at/(G-1),D+=this._pathData.f.v);L;)B+H>=D+Cr||!N?(rt=(D+Cr-B)/R.partialLength,Et=S.point[0]+(R.point[0]-S.point[0])*rt,Rt=S.point[1]+(R.point[1]-S.point[1])*rt,h.translate(-n[0]*x[M].an*.005,-(n[1]*ct)*.01),L=!1):N&&(B+=R.partialLength,w+=1,w>=N.length&&(w=0,T+=1,F[T]?N=F[T].points:mt.v.c?(w=0,T=0,N=F[T].points):(B-=R.partialLength,N=null)),N&&(S=R,R=N[w],H=R.partialLength));vt=x[M].an/2-x[M].add,h.translate(-vt,0,0)}else vt=x[M].an/2-x[M].add,h.translate(-vt,0,0),h.translate(-n[0]*x[M].an*.005,-n[1]*ct*.01,0);for(v=0;v<E;v+=1)_=l[v].a,_.t.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),(b!==0||e.j!==0)&&(this._hasMaskedPath?z.length?D+=_.t.v*z[0]:D+=_.t.v*z:z.length?b+=_.t.v*z[0]:b+=_.t.v*z));for(e.strokeWidthAnim&&(Je=e.sw||0),e.strokeColorAnim&&(e.sc?be=[e.sc[0],e.sc[1],e.sc[2]]:be=[0,0,0]),e.fillColorAnim&&e.fc&&($t=[e.fc[0],e.fc[1],e.fc[2]]),v=0;v<E;v+=1)_=l[v].a,_.a.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?h.translate(-_.a.v[0]*z[0],-_.a.v[1]*z[1],_.a.v[2]*z[2]):h.translate(-_.a.v[0]*z,-_.a.v[1]*z,_.a.v[2]*z));for(v=0;v<E;v+=1)_=l[v].a,_.s.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),z.length?h.scale(1+(_.s.v[0]-1)*z[0],1+(_.s.v[1]-1)*z[1],1):h.scale(1+(_.s.v[0]-1)*z,1+(_.s.v[1]-1)*z,1));for(v=0;v<E;v+=1){if(_=l[v].a,P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),_.sk.propType&&(z.length?h.skewFromAxis(-_.sk.v*z[0],_.sa.v*z[1]):h.skewFromAxis(-_.sk.v*z,_.sa.v*z)),_.r.propType&&(z.length?h.rotateZ(-_.r.v*z[2]):h.rotateZ(-_.r.v*z)),_.ry.propType&&(z.length?h.rotateY(_.ry.v*z[1]):h.rotateY(_.ry.v*z)),_.rx.propType&&(z.length?h.rotateX(_.rx.v*z[0]):h.rotateX(_.rx.v*z)),_.o.propType&&(z.length?Ue+=(_.o.v*z[0]-Ue)*z[0]:Ue+=(_.o.v*z-Ue)*z),e.strokeWidthAnim&&_.sw.propType&&(z.length?Je+=_.sw.v*z[0]:Je+=_.sw.v*z),e.strokeColorAnim&&_.sc.propType)for(ht=0;ht<3;ht+=1)z.length?be[ht]+=(_.sc.v[ht]-be[ht])*z[0]:be[ht]+=(_.sc.v[ht]-be[ht])*z;if(e.fillColorAnim&&e.fc){if(_.fc.propType)for(ht=0;ht<3;ht+=1)z.length?$t[ht]+=(_.fc.v[ht]-$t[ht])*z[0]:$t[ht]+=(_.fc.v[ht]-$t[ht])*z;_.fh.propType&&(z.length?$t=Wp($t,_.fh.v*z[0]):$t=Wp($t,_.fh.v*z)),_.fs.propType&&(z.length?$t=Gp($t,_.fs.v*z[0]):$t=Gp($t,_.fs.v*z)),_.fb.propType&&(z.length?$t=Kp($t,_.fb.v*z[0]):$t=Kp($t,_.fb.v*z))}}for(v=0;v<E;v+=1)_=l[v].a,_.p.propType&&(P=l[v].s,z=P.getMult(x[M].anIndexes[v],p.a[v].s.totalChars),this._hasMaskedPath?z.length?h.translate(0,_.p.v[1]*z[0],-_.p.v[2]*z[1]):h.translate(0,_.p.v[1]*z,-_.p.v[2]*z):z.length?h.translate(_.p.v[0]*z[0],_.p.v[1]*z[1],-_.p.v[2]*z[2]):h.translate(_.p.v[0]*z,_.p.v[1]*z,-_.p.v[2]*z));if(e.strokeWidthAnim&&(ii=Je<0?0:Je),e.strokeColorAnim&&(Ri="rgb("+Math.round(be[0]*255)+","+Math.round(be[1]*255)+","+Math.round(be[2]*255)+")"),e.fillColorAnim&&e.fc&&(oi="rgb("+Math.round($t[0]*255)+","+Math.round($t[1]*255)+","+Math.round($t[2]*255)+")"),this._hasMaskedPath){if(h.translate(0,-e.ls),h.translate(0,n[1]*ct*.01+k,0),this._pathData.p.v){yt=(R.point[1]-S.point[1])/(R.point[0]-S.point[0]);var Eo=Math.atan(yt)*180/Math.PI;R.point[0]<S.point[0]&&(Eo+=180),h.rotate(-Eo*Math.PI/180)}h.translate(Et,Rt,0),D-=n[0]*x[M].an*.005,x[M+1]&&at!==x[M+1].ind&&(D+=x[M].an/2,D+=e.tr*.001*e.finalSize)}else{switch(h.translate(b,k,0),e.ps&&h.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line]),0,0);break;case 2:h.translate(x[M].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[x[M].line])/2,0,0);break;default:break}h.translate(0,-e.ls),h.translate(vt,0,0),h.translate(n[0]*x[M].an*.005,n[1]*ct*.01,0),b+=x[M].l+e.tr*.001*e.finalSize}g==="html"?zr=h.toCSS():g==="svg"?zr=h.to2dCSS():si=[h.props[0],h.props[1],h.props[2],h.props[3],h.props[4],h.props[5],h.props[6],h.props[7],h.props[8],h.props[9],h.props[10],h.props[11],h.props[12],h.props[13],h.props[14],h.props[15]],ni=Ue}A<=M?(K=new ic(ni,ii,Ri,oi,zr,si),this.renderedLetters.push(K),A+=1,this.lettersChangedFlag=!0):(K=this.renderedLetters[M],this.lettersChangedFlag=K.update(ni,ii,Ri,oi,zr,si)||this.lettersChangedFlag)}}},yo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},yo.prototype.mHelper=new Ae,yo.prototype.defaultPropsArray=[],I([ge],yo);function hr(){}hr.prototype.initElement=function(e,i,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,i,n),this.textProperty=new Ne(this,e.t,this.dynamicProperties),this.textAnimator=new yo(e.t,this.renderType,this),this.initTransform(e,i,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},hr.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},hr.prototype.createPathShape=function(e,i){var n,l=i.length,p,h="";for(n=0;n<l;n+=1)i[n].ty==="sh"&&(p=i[n].ks.k,h+=Om(p,p.i.length,!0,e));return h},hr.prototype.updateDocumentData=function(e,i){this.textProperty.updateDocumentData(e,i)},hr.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},hr.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},hr.prototype.applyTextPropertiesToMatrix=function(e,i,n,l,p){switch(e.ps&&i.translate(e.ps[0],e.ps[1]+e.ascent,0),i.translate(0,-e.ls,0),e.j){case 1:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:i.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break;default:break}i.translate(l,p,0)},hr.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},hr.prototype.emptyProp=new ic,hr.prototype.destroy=function(){},hr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Yy={shapes:[]};function ei(e,i,n){this.textSpans=[],this.renderType="svg",this.initElement(e,i,n)}I([Ni,ms,bn,us,Li,yn,hr],ei),ei.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Tt("text"))},ei.prototype.buildTextContents=function(e){for(var i=0,n=e.length,l=[],p="";i<n;)e[i]==="\r"||e[i]===""?(l.push(p),p=""):p+=e[i],i+=1;return l.push(p),l},ei.prototype.buildShapeData=function(e,i){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var l=n.it[n.it.length-1];l.s&&(l.s.k[0]=i,l.s.k[1]=i)}}return e},ei.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,i,n=this.textProperty.currentData;this.renderedLetters=it(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 l=this.globalData.fontManager.getFontByName(n.f);if(l.fClass)this.layerElement.setAttribute("class",l.fClass);else{this.layerElement.setAttribute("font-family",l.fFamily);var p=n.fWeight,h=n.fStyle;this.layerElement.setAttribute("font-style",h),this.layerElement.setAttribute("font-weight",p)}this.layerElement.setAttribute("aria-label",n.t);var g=n.l||[],A=!!this.globalData.fontManager.chars;i=g.length;var b,k=this.mHelper,M="",G=this.data.singleShape,x=0,O=0,D=!0,R=n.tr*.001*n.finalSize;if(G&&!A&&!n.sz){var B=this.textContainer,L="start";switch(n.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}B.setAttribute("text-anchor",L),B.setAttribute("letter-spacing",R);var w=this.buildTextContents(n.finalText);for(i=w.length,O=n.ps?n.ps[1]+n.ascent:0,e=0;e<i;e+=1)b=this.textSpans[e].span||Tt("tspan"),b.textContent=w[e],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",B.appendChild(b),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=b,O+=n.finalLineHeight;this.layerElement.appendChild(B)}else{var T=this.textSpans.length,S;for(e=0;e<i;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!A||!G||e===0){if(b=T>e?this.textSpans[e].span:Tt(A?"g":"text"),T<=e){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=b,A){var N=Tt("g");b.appendChild(N),this.textSpans[e].childSpan=N}this.textSpans[e].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(k.reset(),G&&(g[e].n&&(x=-R,O+=n.yOffset,O+=D?1:0,D=!1),this.applyTextPropertiesToMatrix(n,k,g[e].line,x,O),x+=g[e].l||0,x+=R),A){S=this.globalData.fontManager.getCharData(n.finalText[e],l.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var F;if(S.t===1)F=new xn(S.data,this.globalData,this);else{var H=Yy;S.data&&S.data.shapes&&(H=this.buildShapeData(S.data,n.finalSize)),F=new Qt(H,this.globalData,this)}if(this.textSpans[e].glyph){var W=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(W.layerElement),W.destroy()}this.textSpans[e].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[e].childSpan.appendChild(F.layerElement),S.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),b.textContent=g[e].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",M)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},ei.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},ei.prototype.getValue=function(){var e,i=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},ei.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,i,n=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;i=l.length;var p,h,g;for(e=0;e<i;e+=1)l[e].n||(p=n[e],h=this.textSpans[e].span,g=this.textSpans[e].glyph,g&&g.renderFrame(),p._mdf.m&&h.setAttribute("transform",p.m),p._mdf.o&&h.setAttribute("opacity",p.o),p._mdf.sw&&h.setAttribute("stroke-width",p.sw),p._mdf.sc&&h.setAttribute("stroke",p.sc),p._mdf.fc&&h.setAttribute("fill",p.fc))}};function oc(e,i,n){this.initElement(e,i,n)}I([En],oc),oc.prototype.createContent=function(){var e=Tt("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function Oi(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initFrame(),this.initTransform(e,i,n),this.initHierarchy()}Oi.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},Oi.prototype.renderFrame=function(){},Oi.prototype.getBaseElement=function(){return null},Oi.prototype.destroy=function(){},Oi.prototype.sourceRectAtTime=function(){},Oi.prototype.hide=function(){},I([Ni,ms,us,Li],Oi);function de(){}I([Se],de),de.prototype.createNull=function(e){return new Oi(e,this.globalData,this)},de.prototype.createShape=function(e){return new Qt(e,this.globalData,this)},de.prototype.createText=function(e){return new ei(e,this.globalData,this)},de.prototype.createImage=function(e){return new En(e,this.globalData,this)},de.prototype.createSolid=function(e){return new oc(e,this.globalData,this)},de.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(e,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=Tt("clipPath"),l=Tt("rect");l.setAttribute("width",e.w),l.setAttribute("height",e.h),l.setAttribute("x",0),l.setAttribute("y",0);var p=ze();n.setAttribute("id",p),n.appendChild(l),this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")"),i.appendChild(n),this.layers=e.layers,this.elements=it(e.layers.length)},de.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,i=this.layers?this.layers.length:0;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},de.prototype.updateContainerSize=function(){},de.prototype.findIndexByInd=function(e){var i=0,n=this.layers.length;for(i=0;i<n;i+=1)if(this.layers[i].ind===e)return i;return-1},de.prototype.buildItem=function(e){var i=this.elements;if(!(i[e]||this.layers[e].ty===99)){i[e]=!0;var n=this.createItem(this.layers[e]);if(i[e]=n,La()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var l="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(l===-1)return;if(!this.elements[l]||this.elements[l]===!0)this.buildItem(l),this.addPendingElement(n);else{var p=i[l],h=p.getMatte(this.layers[e].tt);n.setMatte(h)}}}},de.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var i=0,n=this.elements.length;i<n;){if(this.elements[i]===e){var l="tp"in e.data?this.findIndexByInd(e.data.tp):i-1,p=this.elements[l],h=p.getMatte(this.layers[i].tt);e.setMatte(h);break}i+=1}}},de.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf)for(i=0;i<n;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()}},de.prototype.appendElementInPos=function(e,i){var n=e.getBaseElement();if(n){for(var l=0,p;l<i;)this.elements[l]&&this.elements[l]!==!0&&this.elements[l].getBaseElement()&&(p=this.elements[l].getBaseElement()),l+=1;p?this.layerElement.insertBefore(n,p):this.layerElement.appendChild(n)}},de.prototype.hide=function(){this.layerElement.style.display="none"},de.prototype.show=function(){this.layerElement.style.display="block"};function ri(){}I([Ni,ms,us,Li,yn],ri),ri.prototype.initElement=function(e,i,n){this.initFrame(),this.initBaseData(e,i,n),this.initTransform(e,i,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!i.progressiveLoad)&&this.buildAllItems(),this.hide()},ri.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var n,l=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=l-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))}},ri.prototype.renderInnerContent=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ri.prototype.setElements=function(e){this.elements=e},ri.prototype.getElements=function(){return this.elements},ri.prototype.destroyElements=function(){var e,i=this.layers.length;for(e=0;e<i;e+=1)this.elements[e]&&this.elements[e].destroy()},ri.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function xn(e,i,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?it(this.layers.length):[],this.initElement(e,i,n),this.tm=e.tm?nt.getProp(this,e.tm,0,i.frameRate,this):{_placeholder:!0}}I([de,ri,bn],xn),xn.prototype.createComp=function(e){return new xn(e,this.globalData,this)};function sc(e,i){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=Tt("svg");var n="";if(i&&i.title){var l=Tt("title"),p=ze();l.setAttribute("id",p),l.textContent=i.title,this.svgElement.appendChild(l),n+=p}if(i&&i.description){var h=Tt("desc"),g=ze();h.setAttribute("id",g),h.textContent=i.description,this.svgElement.appendChild(h),n+=" "+g}n&&this.svgElement.setAttribute("aria-labelledby",n);var A=Tt("defs");this.svgElement.appendChild(A);var b=Tt("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:A,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return I([de],sc),sc.prototype.createComp=function(e){return new xn(e,this.globalData,this)},iy("svg",sc),wi.registerModifier("tm",Ir),wi.registerModifier("pb",hn),wi.registerModifier("rp",Fr),wi.registerModifier("rd",pn),wi.registerModifier("zz",un),wi.registerModifier("op",fn),Dt})});var Xa=globalThis,Za=Xa.ShadowRoot&&(Xa.ShadyCSS===void 0||Xa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ac=Symbol(),Pm=new WeakMap,An=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==ac)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(Za&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=Pm.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&Pm.set(t,o))}return o}toString(){return this.cssText}},Dm=a=>new An(typeof a=="string"?a:a+"",void 0,ac),U=(a,...o)=>{let t=a.length===1?a[0]:o.reduce((r,s,d)=>r+(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.")})(s)+a[d+1],a[0]);return new An(t,a,ac)},lc=(a,o)=>{if(Za)a.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),s=Xa.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=t.cssText,a.appendChild(r)}},Qa=Za?a=>a:a=>a instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return Dm(t)})(a):a;var{is:eE,defineProperty:rE,getOwnPropertyDescriptor:iE,getOwnPropertyNames:oE,getOwnPropertySymbols:sE,getPrototypeOf:nE}=Object,$i=globalThis,Fm=$i.trustedTypes,aE=Fm?Fm.emptyScript:"",dc=$i.reactiveElementPolyfillSupport,Sn=(a,o)=>a,In={toAttribute(a,o){switch(o){case Boolean:a=a?aE: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}},Ja=(a,o)=>!eE(a,o),$m={attribute:!0,type:String,converter:In,reflect:!1,hasChanged:Ja},zm,Vm;(zm=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Vm=$i.litPropertyMetadata)!=null||($i.litPropertyMetadata=new WeakMap);var ai=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=$m){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),s=this.getPropertyDescriptor(o,r,t);s!==void 0&&rE(this.prototype,o,s)}}static getPropertyDescriptor(o,t,r){var c;let{get:s,set:d}=(c=iE(this.prototype,o))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return s==null?void 0:s.call(this)},set(f){let y=s==null?void 0:s.call(this);d.call(this,f),this.requestUpdate(o,y,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:$m}static _$Ei(){if(this.hasOwnProperty(Sn("elementProperties")))return;let o=nE(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Sn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Sn("properties"))){let t=this.properties,r=[...oE(t),...sE(t)];for(let s of r)this.createProperty(s,t[s])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let s of r)t.unshift(Qa(s))}else o!==void 0&&t.push(Qa(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r: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,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((r=o.hostConnected)==null||r.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return lc(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(r=>{var s;return(s=r.hostConnected)==null?void 0:s.call(r)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$EC(o,t){var d;let r=this.constructor.elementProperties.get(o),s=this.constructor._$Eu(o,r);if(s!==void 0&&r.reflect===!0){let c=(((d=r.converter)==null?void 0:d.toAttribute)!==void 0?r.converter:In).toAttribute(t,r.type);this._$Em=o,c==null?this.removeAttribute(s):this.setAttribute(s,c),this._$Em=null}}_$AK(o,t){var d;let r=this.constructor,s=r._$Eh.get(o);if(s!==void 0&&this._$Em!==s){let c=r.getPropertyOptions(s),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((d=c.converter)==null?void 0:d.fromAttribute)!==void 0?c.converter:In;this._$Em=s,this[s]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(o,t,r){var s;if(o!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(o)),!((s=r.hasChanged)!=null?s:Ja)(this[o],t))return;this.P(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,r){var s;this._$AL.has(o)||this._$AL.set(o,t),r.reflect===!0&&this._$Em!==o&&((s=this._$Ej)!=null?s: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 r,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let d=this.constructor.elementProperties;if(d.size>0)for(let[c,f]of d)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),(s=this._$EO)==null||s.forEach(d=>{var c;return(c=d.hostUpdate)==null?void 0:c.call(d)}),this.update(t)):this._$EU()}catch(d){throw o=!1,this._$EU(),d}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)}),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){}},Bm;ai.elementStyles=[],ai.shadowRootOptions={mode:"open"},ai[Sn("elementProperties")]=new Map,ai[Sn("finalized")]=new Map,dc==null||dc({ReactiveElement:ai}),((Bm=$i.reactiveElementVersions)!=null?Bm:$i.reactiveElementVersions=[]).push("2.0.4");var Cn=globalThis,tl=Cn.trustedTypes,Um=tl?tl.createPolicy("lit-html",{createHTML:a=>a}):void 0,pc="$lit$",li=`lit$${Math.random().toFixed(9).slice(2)}$`,mc="?"+li,lE=`<${mc}>`,Ao=document,wn=()=>Ao.createComment(""),kn=a=>a===null||typeof a!="object"&&typeof a!="function",uc=Array.isArray,qm=a=>uc(a)||typeof(a==null?void 0:a[Symbol.iterator])=="function",cc=`[
3
+ \f\r]`,_n=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hm=/-->/g,Gm=/>/g,To=RegExp(`>|${cc}(?:([^\\s"'>=/]+)(${cc}*=${cc}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Km=/'/g,Wm=/"/g,Xm=/^(?:script|style|textarea|title)$/i,fc=a=>(o,...t)=>({_$litType$:a,strings:o,values:t}),C=fc(1),rS=fc(2),iS=fc(3),Ie=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Ym=new WeakMap,xo=Ao.createTreeWalker(Ao,129);function Zm(a,o){if(!uc(a)||!a.hasOwnProperty("raw"))throw Error("invalid template strings array");return Um!==void 0?Um.createHTML(o):o}var Qm=(a,o)=>{let t=a.length-1,r=[],s,d=o===2?"<svg>":o===3?"<math>":"",c=_n;for(let f=0;f<t;f++){let y=a[f],I,$,Y=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,$=c.exec(y),$!==null);)Q=c.lastIndex,c===_n?$[1]==="!--"?c=Hm:$[1]!==void 0?c=Gm:$[2]!==void 0?(Xm.test($[2])&&(s=RegExp("</"+$[2],"g")),c=To):$[3]!==void 0&&(c=To):c===To?$[0]===">"?(c=s!=null?s:_n,Y=-1):$[1]===void 0?Y=-2:(Y=c.lastIndex-$[2].length,I=$[1],c=$[3]===void 0?To:$[3]==='"'?Wm:Km):c===Wm||c===Km?c=To:c===Hm||c===Gm?c=_n:(c=To,s=void 0);let Z=c===To&&a[f+1].startsWith("/>")?" ":"";d+=c===_n?y+lE:Y>=0?(r.push(I),y.slice(0,Y)+pc+y.slice(Y)+li+Z):y+li+(Y===-2?f:Z)}return[Zm(a,d+(a[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},Nn=class a{constructor({strings:o,_$litType$:t},r){let s;this.parts=[];let d=0,c=0,f=o.length-1,y=this.parts,[I,$]=Qm(o,t);if(this.el=a.createElement(I,r),xo.currentNode=this.el.content,t===2||t===3){let Y=this.el.content.firstChild;Y.replaceWith(...Y.childNodes)}for(;(s=xo.nextNode())!==null&&y.length<f;){if(s.nodeType===1){if(s.hasAttributes())for(let Y of s.getAttributeNames())if(Y.endsWith(pc)){let Q=$[c++],Z=s.getAttribute(Y).split(li),it=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:d,name:it[2],strings:Z,ctor:it[1]==="."?rl:it[1]==="?"?il:it[1]==="@"?ol:Io}),s.removeAttribute(Y)}else Y.startsWith(li)&&(y.push({type:6,index:d}),s.removeAttribute(Y));if(Xm.test(s.tagName)){let Y=s.textContent.split(li),Q=Y.length-1;if(Q>0){s.textContent=tl?tl.emptyScript:"";for(let Z=0;Z<Q;Z++)s.append(Y[Z],wn()),xo.nextNode(),y.push({type:2,index:++d});s.append(Y[Q],wn())}}}else if(s.nodeType===8)if(s.data===mc)y.push({type:2,index:d});else{let Y=-1;for(;(Y=s.data.indexOf(li,Y+1))!==-1;)y.push({type:7,index:d}),Y+=li.length-1}d++}}static createElement(o,t){let r=Ao.createElement("template");return r.innerHTML=o,r}};function So(a,o,t=a,r){var c,f,y;if(o===Ie)return o;let s=r!==void 0?(c=t.o)==null?void 0:c[r]:t.l,d=kn(o)?void 0:o._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((f=s==null?void 0:s._$AO)==null||f.call(s,!1),d===void 0?s=void 0:(s=new d(a),s._$AT(a,t,r)),r!==void 0?((y=t.o)!=null?y:t.o=[])[r]=s:t.l=s),s!==void 0&&(o=So(a,s._$AS(a,o.values),s,r)),o}var el=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 I;let{el:{content:t},parts:r}=this._$AD,s=((I=o==null?void 0:o.creationScope)!=null?I:Ao).importNode(t,!0);xo.currentNode=s;let d=xo.nextNode(),c=0,f=0,y=r[0];for(;y!==void 0;){if(c===y.index){let $;y.type===2?$=new vs(d,d.nextSibling,this,o):y.type===1?$=new y.ctor(d,y.name,y.strings,this,o):y.type===6&&($=new sl(d,this,o)),this._$AV.push($),y=r[++f]}c!==(y==null?void 0:y.index)&&(d=xo.nextNode(),c++)}return xo.currentNode=Ao,s}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},vs=class a{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,r,s){var d;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=s,this.v=(d=s==null?void 0:s.isConnected)!=null?d:!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=So(this,o,t),kn(o)?o===j||o==null||o===""?(this._$AH!==j&&this._$AR(),this._$AH=j):o!==this._$AH&&o!==Ie&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):qm(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!==j&&kn(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ao.createTextNode(o)),this._$AH=o}$(o){var d;let{values:t,_$litType$:r}=o,s=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=Nn.createElement(Zm(r.h,r.h[0]),this.options)),r);if(((d=this._$AH)==null?void 0:d._$AD)===s)this._$AH.p(t);else{let c=new el(s,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(o){let t=Ym.get(o.strings);return t===void 0&&Ym.set(o.strings,t=new Nn(o)),t}k(o){uc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,s=0;for(let d of o)s===t.length?t.push(r=new a(this.O(wn()),this.O(wn()),this,this.options)):r=t[s],r._$AI(d),s++;s<t.length&&(this._$AR(r&&r._$AB.nextSibling,s),t.length=s)}_$AR(o=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);o&&o!==this._$AB;){let s=o.nextSibling;o.remove(),o=s}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Io=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,s,d){this.type=1,this._$AH=j,this._$AN=void 0,this.element=o,this.name=t,this._$AM=s,this.options=d,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=j}_$AI(o,t=this,r,s){let d=this.strings,c=!1;if(d===void 0)o=So(this,o,t,0),c=!kn(o)||o!==this._$AH&&o!==Ie,c&&(this._$AH=o);else{let f=o,y,I;for(o=d[0],y=0;y<d.length-1;y++)I=So(this,f[r+y],t,y),I===Ie&&(I=this._$AH[y]),c||(c=!kn(I)||I!==this._$AH[y]),I===j?o=j:o!==j&&(o+=(I!=null?I:"")+d[y+1]),this._$AH[y]=I}c&&!s&&this.j(o)}j(o){o===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},rl=class extends Io{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===j?void 0:o}},il=class extends Io{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==j)}},ol=class extends Io{constructor(o,t,r,s,d){super(o,t,r,s,d),this.type=5}_$AI(o,t=this){var c;if((o=(c=So(this,o,t,0))!=null?c:j)===Ie)return;let r=this._$AH,s=o===j&&r!==j||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,d=o!==j&&(r===j||s);s&&this.element.removeEventListener(this.name,this,r),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,o):this._$AH.handleEvent(o)}},sl=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){So(this,o)}},Jm={M:pc,P:li,A:mc,C:1,L:Qm,R:el,D:qm,V:So,I:vs,H:Io,N:il,U:ol,B:rl,F:sl},hc=Cn.litHtmlPolyfillSupport,jm;hc==null||hc(Nn,vs),((jm=Cn.litHtmlVersions)!=null?jm:Cn.litHtmlVersions=[]).push("3.2.0");var tu=(a,o,t)=>{var d,c;let r=(d=t==null?void 0:t.renderBefore)!=null?d:o,s=r._$litPart$;if(s===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;r._$litPart$=s=new vs(o.insertBefore(wn(),f),f,void 0,t!=null?t:{})}return s._$AI(a),s};var zi=class extends ai{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let o=super.createRenderRoot();return(r=(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=tu(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 Ie}},eu;zi._$litElement$=!0,zi.finalized=!0,(eu=globalThis.litElementHydrateSupport)==null||eu.call(globalThis,{LitElement:zi});var vc=globalThis.litElementPolyfillSupport;vc==null||vc({LitElement:zi});var ru;((ru=globalThis.litElementVersions)!=null?ru:globalThis.litElementVersions=[]).push("4.1.0");var dE={attribute:!0,type:String,converter:In,reflect:!1,hasChanged:Ja},cE=(a=dE,o,t)=>{let{kind:r,metadata:s}=t,d=globalThis.litPropertyMetadata.get(s);if(d===void 0&&globalThis.litPropertyMetadata.set(s,d=new Map),d.set(t.name,a),r==="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(r==="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: "+r)};function u(a){return(o,t)=>typeof t=="object"?cE(a,o,t):((r,s,d)=>{let c=s.hasOwnProperty(d);return s.constructor.createProperty(d,c?{...r,wrapped:!0}:r),c?Object.getOwnPropertyDescriptor(s,d):void 0})(a,o,t)}function ut(a){return u({...a,state:!0,attribute:!1})}function iu(a){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,a)}}var Vr=(a,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(a,o,t),t);function Jt(a,o){return(t,r,s)=>{let d=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 r=="object"?t:s!=null?s:(()=>{let y=Symbol();return{get(){return this[y]},set(I){this[y]=I}}})();return Vr(t,r,{get(){let y=c.call(this);return y===void 0&&(y=d(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return Vr(t,r,{get(){return d(this)}})}}var gc;function ou(a){return(o,t)=>Vr(o,t,{get(){var r;return((r=this.renderRoot)!=null?r:gc!=null?gc:gc=document.createDocumentFragment()).querySelectorAll(a)}})}function Ft(a){return(o,t)=>{let{slot:r,selector:s}=a!=null?a:{},d="slot"+(r?`[name=${r}]`:":not([name])");return Vr(o,t,{get(){var y,I;let c=(y=this.renderRoot)==null?void 0:y.querySelector(d),f=(I=c==null?void 0:c.assignedElements(a))!=null?I:[];return s===void 0?f:f.filter($=>$.matches(s))}})}}function su(a){return(o,t)=>{let{slot:r}=a!=null?a:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Vr(o,t,{get(){var c,f;let d=(c=this.renderRoot)==null?void 0:c.querySelector(s);return(f=d==null?void 0:d.assignedNodes(a))!=null?f:[]}})}}var hE={PREFIX:"mdc",SEPARATOR:"-"},pE={NAMESPACE:hE},bc=pE;var mE=a=>[bc.NAMESPACE.PREFIX,a].join(bc.NAMESPACE.SEPARATOR),V={constructTagName:mE};var J={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 nu=V.constructTagName("buttonsimple"),_o={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},gs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ln={SIZE:_o[32],TYPE:gs.BUTTON,ROLE:J.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var di=V.constructTagName("button"),zt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Mn={40:40,32:32,28:28,24:24},pr={64:64,52:52,20:20,...Mn},Co={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},bs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Ge={VARIANT:zt.PRIMARY,SIZE:Mn[32],COLOR:Co.DEFAULT,TYPE_INTERNAL:bs.ICON,TYPE:gs.BUTTON,INVERTED:!1};var nl=a=>{class o extends a{constructor(){super(...arguments);this.variant=Ge.VARIANT;this.color=Ge.COLOR;this.typeInternal=Ge.TYPE_INTERNAL}setVariant(s){this.setAttribute("variant",Object.values(zt).includes(s)?s:Ge.VARIANT)}setColor(s){!Object.values(Co).includes(s)||this.variant===zt.TERTIARY?this.setAttribute("color",`${Ge.COLOR}`):this.setAttribute("color",s)}setSize(s){let c=this.typeInternal===bs.ICON?Object.values(pr).includes(s)&&!(s===pr[20]&&this.variant!==zt.TERTIARY):Object.values(Mn).includes(s);this.setAttribute("size",c?`${s}`:`${Ge.SIZE}`)}inferButtonType(){var I,$,Y,Q,Z,it;let s=($=(I=this.shadowRoot)==null?void 0:I.querySelector("slot:not([name])"))==null?void 0:$.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,d=(Q=(Y=this.shadowRoot)==null?void 0:Y.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,c=this.prefixIcon||d&&d>0,f=(it=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:it.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,y=this.postfixIcon||f&&f>0;s&&(c||y)?(this.typeInternal=bs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!s&&(c||y)?(this.typeInternal=bs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=bs.PILL,this.setAttribute("data-btn-type","pill"))}}return m([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),m([u({type:String})],o.prototype,"variant",2),m([u({type:String})],o.prototype,"color",2),m([ut()],o.prototype,"typeInternal",2),o};var au=U`
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 nl=class extends zi{static register(o){customElements.get(o)||customElements.define(o,this)}};nl.styles=[nu];var au=nl;var q=au;var Vi=class extends Event{constructor(o,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=r!=null?r:!1}};var bs=class{constructor(o,t,r,s){var d;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=(d=c.subscribe)!=null?d:!1}else this.context=t,this.callback=r,this.subscribe=s!=null?s:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Vi(this.context,this.t,this.subscribe))}};var al=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let r=t||!Object.is(o,this.o);this.o=o,r&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:r}]of this.subscriptions)t(this.o,r)},o!==void 0&&(this.value=o)}addCallback(o,t,r){if(!r)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:s}=this.subscriptions.get(o);o(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var gc=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},ys=class extends al{constructor(o,t,r){var s,d;super(t.context!==void 0?t.initialValue:r),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[I,{consumerHost:$}]of this.subscriptions)y.has(I)||(y.add(I),$.dispatchEvent(new Vi(this.context,I,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(d=(s=this.host).addController)==null||d.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new gc(this.context))}};var mE=U`
14
+ `;var al=class extends zi{static register(o){customElements.get(o)||customElements.define(o,this)}};al.styles=[au];var lu=al;var X=lu;var Vi=class extends Event{constructor(o,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.callback=t,this.subscribe=r!=null?r:!1}};var ys=class{constructor(o,t,r,s){var d;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=(d=c.subscribe)!=null?d:!1}else this.context=t,this.callback=r,this.subscribe=s!=null?s:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Vi(this.context,this.t,this.subscribe))}};var ll=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let r=t||!Object.is(o,this.o);this.o=o,r&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:r}]of this.subscriptions)t(this.o,r)},o!==void 0&&(this.value=o)}addCallback(o,t,r){if(!r)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:s}=this.subscriptions.get(o);o(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var yc=class extends Event{constructor(o){super("context-provider",{bubbles:!0,composed:!0}),this.context=o}},Es=class extends ll{constructor(o,t,r){var s,d;super(t.context!==void 0?t.initialValue:r),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[I,{consumerHost:$}]of this.subscriptions)y.has(I)||(y.add(I),$.dispatchEvent(new Vi(this.context,I,!0)));c.stopPropagation()},this.host=o,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(d=(s=this.host).addController)==null||d.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new yc(this.context))}};var uE=U`
15
15
  :host {
16
16
  display: contents;
17
17
  }
18
- `,lu=mE;var ll=class extends q{constructor({context:o,initialValue:t}){super(),this.context=new ys(this,{context:o,initialValue:t})}render(){return this.updateContext(),C`<slot></slot>`}};ll.styles=[...q.styles,lu];var du=ll;var ce=du;var _e=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(s){super.firstUpdated(s),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return m([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Gt=a=>{class o extends a{}return m([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var Br=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return m([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var tr={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var uE=a=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:d}=a,c=(s||d)&&(f=>{d&&d.forEach(y=>{o.requestUpdate(y)}),s==null||s(f)});return new bs(o,{context:t,callback:c,subscribe:r!=null?r:!0})},fE={consume:uE},he=fE;var cu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),hu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),vE=a=>a.getClientRects().length===0,gE=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:r,offsetHeight:s}=a;return r+s+t+o===0},pu=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:r}=o;return t==="auto"||t==="scroll"||r==="auto"||r==="scroll"},bE=a=>gE(a)||vE(a),yE=a=>{let{display:o,opacity:t,visibility:r}=a.style;return o==="none"||t==="0"||r==="hidden"||r==="collapse"},EE=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},TE=a=>getComputedStyle(a).display==="contents",xE=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||yE(a)||!TE(a)&&(EE(a)||bE(a)),AE=a=>a.disabled,SE=a=>a.getAttribute("tabindex")!=="-1",IE=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),_E=(a,o)=>o.some(t=>a.matches(t));var Es=(a,o={})=>{var f,y;if(!a)return[];let t=new Set((f=o==null?void 0:o.excludedElements)!=null?f:[]),r=(y=o==null?void 0:o.includeSelectors)!=null?y:[],s=new Set,d=I=>!(I instanceof HTMLSlotElement)&&(xE(I)||AE(I))?"stop":_E(I,r)||SE(I)&&IE(I)?"focusable":"continue",c=I=>{if(t.has(I))return;I instanceof HTMLElement&&d(I)==="focusable"&&s.add(I);let $=[];I instanceof HTMLElement&&I.shadowRoot?$=Array.from(I.shadowRoot.children):I.children.length&&($=Array.from(I.children)),$.forEach(Y=>{let Q=Y,Z=d(Q);Z==="focusable"&&s.add(Q),Z!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(lt=>{lt instanceof HTMLElement&&c(lt)}):c(Q))})};return c(a),[...s]},On=(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},mu=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",bc=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?bc(o.host):a},uu=a=>{let o=[a],t=a;for(;t;){let r=t.getRootNode();if(r instanceof ShadowRoot)t=r.host,o.push(t);else break}return o};var ci=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)))}}};ci.stack=new Set,ci.currentKeydownListener=null;var dl=V.constructTagName("spatialnavigationprovider");var yc={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 CE=dl,Ec=CE;var fu=a=>{let{x:o,y:t,width:r,height:s,left:d,top:c,right:f,bottom:y}=a.getBoundingClientRect(),I=o+r/2,$=t+s/2;return{x:o,y:t,width:r,height:s,left:d,top:c,right:f,bottom:y,xMid:I,yMid:$}},wE=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),kE=(a,o)=>o==="horizontal"?a.height/2:a.width/2,NE=(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)),LE=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,ME=(a,o,t,r)=>{let s=o.xMid-a.xMid,d=o.yMid-a.yMid,c=Math.sqrt(s*s+d*d),f=wE(a,o,t)+kE(a,t)*r.orthogonalWeight[t],y=NE(a,o,t),I=LE(a,t,y)*r.alignWeight;return c+f-I-Math.sqrt(y)},vu=(a,o,t,r)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let s=fu(a),d=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let y=fu(f);if(t==="left"&&y.right>s.xMid||t==="right"&&y.left<s.xMid||t==="up"&&y.bottom>s.yMid||t==="down"&&y.top<s.yMid)return c;let I=ME(s,y,d,r);return c.push({candidate:f,distance:I}),c},[]).sort((c,f)=>c.distance-f.distance)};var wo=class extends UIEvent{constructor(o,t,r){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=r,this.relatedTarget=t}};var Rn=class extends ce{constructor(){super({context:Ec});this.navigationKeyMapping=yc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=yc.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 r=this.context.value.keyToActionMap[t.key],s=new wo("navbeforeprocess",this,r);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(s)),s.defaultPrevented)return;let d=!1;switch(r){case"up":d=this.focusNext(t,"up");break;case"down":d=this.focusNext(t,"down");break;case"left":d=this.focusNext(t,"left");break;case"right":d=this.focusNext(t,"right");break;case"enter":d=this.pressEnter();break;case"escape":d=this.goBack();break;default:}d?t.preventDefault():this.dispatchEvent(new wo("navnotarget",this,r))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let r=On();r&&this.setActiveElement(r)}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 Ec}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(([r,s])=>[s,r]))},this.context.updateObservers())}initActiveElement(t){let r=Es(this.root);this.findActiveElement(r,t)}findActiveElement(t,r){if(!r||!t.includes(r)){let s=t[0];s&&this.setActiveElementAndFocus(s)}}focusNext(t,r){let s=ci.getActiveTrap(),d=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===s||y===this.root||pu(y)){c.push(...Es(y,{excludedElements:d?[d]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let I=this.focusNextInFocusableAria(c,r);if(I||y===s||y===this.root)return I&&this.emitNavBeforeFocusEvent(I,r),!!I;d=y}return!1}emitNavBeforeFocusEvent(t,r){var s;if(t){let d=new wo("navbeforefocus",t,r);if((s=this.getActiveElement())==null||s.dispatchEvent(d),!d.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,r){var y,I;if(t.length===0)return;let s=this.getActiveElement(),d=On();if((!s||!t.includes(s)||s!==d)&&(d&&t.includes(d)?s=d:[s]=t,this.setActiveElement(s)),s!==On())return s;let c=`data-spatial-${r}`;if(d){let $=uu(d).find(Q=>Q.hasAttribute(c)),Y=$==null?void 0:$.getAttribute(c);if($&&Y){let Q=(y=$.getRootNode())==null?void 0:y.getElementById(Y);if(Q)return Q}}return(I=vu(s,t,r,this.distanceCalculationWeights)[0])==null?void 0:I.candidate}emitGoBackEvent(t){let r=new wo("navback",t,"escape");return this.dispatchEvent(r),r.defaultPrevented}setActiveElement(t){var r;t!==((r=this.activeElement)==null?void 0:r.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=On();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Es(this.root).find(s=>s.hasAttribute("data-spatial-go-back")),r=this.emitGoBackEvent(t);return t&&!r?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};m([u({attribute:!1})],Rn.prototype,"navigationKeyMapping",2),m([u({attribute:!1})],Rn.prototype,"distanceCalculationWeights",2);var Tc=Rn;Tc.register(dl);var gu=Tc;var X={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},OE={[tr.ARROW_UP]:X.UP,[tr.ARROW_DOWN]:X.DOWN,[tr.ARROW_LEFT]:X.LEFT,[tr.ARROW_RIGHT]:X.RIGHT,[tr.ENTER]:X.ENTER,[tr.SPACE]:X.SPACE,[tr.ESCAPE]:X.ESCAPE,[tr.TAB]:X.TAB,[tr.HOME]:X.HOME,[tr.END]:X.END},Kt={DEFAULT:"default",SPATIAL:"spatial"},Ct=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=he.consume({host:this,context:gu.Context})}getKeyboardNavMode(){var d;return((d=this.spatialNavigationContext)==null?void 0:d.value)?Kt.SPATIAL:Kt.DEFAULT}getActionForKeyEvent(s,d=!1){var y,I,$;let f=(($=(I=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:I.keyToActionMap)!=null?$:OE)[s.key];if(d){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===X.LEFT)return X.RIGHT;if(f===X.RIGHT)return X.LEFT}return f}isDirectionAction(s){return s===X.UP||s===X.DOWN||s===X.LEFT||s===X.RIGHT}}return o};var Lt=a=>{class o extends a{constructor(...s){super(...s);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=s=>{this.keyDownEventHandledFlag&&s.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var bt=U`
18
+ `,du=uE;var dl=class extends X{constructor({context:o,initialValue:t}){super(),this.context=new Es(this,{context:o,initialValue:t})}render(){return this.updateContext(),C`<slot></slot>`}};dl.styles=[...X.styles,du];var cu=dl;var ce=cu;var _e=a=>{class o extends a{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(s){super.firstUpdated(s),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return m([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Gt=a=>{class o extends a{}return m([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var Br=a=>{class o extends a{constructor(){super(...arguments);this.tabIndex=0}}return m([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var tr={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var fE=a=>{let{host:o,context:t,subscribe:r,callback:s,syncProperties:d}=a,c=(s||d)&&(f=>{d&&d.forEach(y=>{o.requestUpdate(y)}),s==null||s(f)});return new ys(o,{context:t,callback:c,subscribe:r!=null?r:!0})},vE={consume:fE},he=vE;var hu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),pu=(a,o)=>!!(a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),gE=a=>a.getClientRects().length===0,bE=a=>{let{width:o,height:t}=a.getBoundingClientRect(),{offsetWidth:r,offsetHeight:s}=a;return r+s+t+o===0},mu=a=>{if(!(a instanceof Element))return!1;let o=getComputedStyle(a),{overflowX:t,overflowY:r}=o;return t==="auto"||t==="scroll"||r==="auto"||r==="scroll"},yE=a=>bE(a)||gE(a),EE=a=>{let{display:o,opacity:t,visibility:r}=a.style;return o==="none"||t==="0"||r==="hidden"||r==="collapse"},TE=a=>{let o=getComputedStyle(a);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},xE=a=>getComputedStyle(a).display==="contents",AE=a=>a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||EE(a)||!xE(a)&&(TE(a)||yE(a)),SE=a=>a.disabled,IE=a=>a.getAttribute("tabindex")!=="-1",_E=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),CE=(a,o)=>o.some(t=>a.matches(t));var Ts=(a,o={})=>{var f,y;if(!a)return[];let t=new Set((f=o==null?void 0:o.excludedElements)!=null?f:[]),r=(y=o==null?void 0:o.includeSelectors)!=null?y:[],s=new Set,d=I=>!(I instanceof HTMLSlotElement)&&(AE(I)||SE(I))?"stop":CE(I,r)||IE(I)&&_E(I)?"focusable":"continue",c=I=>{if(t.has(I))return;I instanceof HTMLElement&&d(I)==="focusable"&&s.add(I);let $=[];I instanceof HTMLElement&&I.shadowRoot?$=Array.from(I.shadowRoot.children):I.children.length&&($=Array.from(I.children)),$.forEach(Y=>{let Q=Y,Z=d(Q);Z==="focusable"&&s.add(Q),Z!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(lt=>{lt instanceof HTMLElement&&c(lt)}):c(Q))})};return c(a),[...s]},On=(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},uu=a=>"isWidthOverflowing"in a&&typeof a.isWidthOverflowing=="function",Ec=a=>{let o=a.getRootNode();return o!==document&&o instanceof ShadowRoot?Ec(o.host):a},fu=a=>{let o=[a],t=a;for(;t;){let r=t.getRootNode();if(r instanceof ShadowRoot)t=r.host,o.push(t);else break}return o};var ci=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)))}}};ci.stack=new Set,ci.currentKeydownListener=null;var cl=V.constructTagName("spatialnavigationprovider");var Tc={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 wE=cl,xc=wE;var vu=a=>{let{x:o,y:t,width:r,height:s,left:d,top:c,right:f,bottom:y}=a.getBoundingClientRect(),I=o+r/2,$=t+s/2;return{x:o,y:t,width:r,height:s,left:d,top:c,right:f,bottom:y,xMid:I,yMid:$}},kE=(a,o,t)=>Math.abs(t==="horizontal"?o.yMid-a.yMid:o.xMid-a.xMid),NE=(a,o)=>o==="horizontal"?a.height/2:a.width/2,LE=(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)),ME=(a,o,t)=>o==="horizontal"?t/a.height:t/a.width,OE=(a,o,t,r)=>{let s=o.xMid-a.xMid,d=o.yMid-a.yMid,c=Math.sqrt(s*s+d*d),f=kE(a,o,t)+NE(a,t)*r.orthogonalWeight[t],y=LE(a,o,t),I=ME(a,t,y)*r.alignWeight;return c+f-I-Math.sqrt(y)},gu=(a,o,t,r)=>{if(!a||o.length===0)return[];if(o.length===1)return o[0]===a?[]:[{candidate:o[0],distance:0}];let s=vu(a),d=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((c,f)=>{if(f===a)return c;let y=vu(f);if(t==="left"&&y.right>s.xMid||t==="right"&&y.left<s.xMid||t==="up"&&y.bottom>s.yMid||t==="down"&&y.top<s.yMid)return c;let I=OE(s,y,d,r);return c.push({candidate:f,distance:I}),c},[]).sort((c,f)=>c.distance-f.distance)};var wo=class extends UIEvent{constructor(o,t,r){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=r,this.relatedTarget=t}};var Rn=class extends ce{constructor(){super({context:xc});this.navigationKeyMapping=Tc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Tc.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 r=this.context.value.keyToActionMap[t.key],s=new wo("navbeforeprocess",this,r);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(s)),s.defaultPrevented)return;let d=!1;switch(r){case"up":d=this.focusNext(t,"up");break;case"down":d=this.focusNext(t,"down");break;case"left":d=this.focusNext(t,"left");break;case"right":d=this.focusNext(t,"right");break;case"enter":d=this.pressEnter();break;case"escape":d=this.goBack();break;default:}d?t.preventDefault():this.dispatchEvent(new wo("navnotarget",this,r))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let r=On();r&&this.setActiveElement(r)}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 xc}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(([r,s])=>[s,r]))},this.context.updateObservers())}initActiveElement(t){let r=Ts(this.root);this.findActiveElement(r,t)}findActiveElement(t,r){if(!r||!t.includes(r)){let s=t[0];s&&this.setActiveElementAndFocus(s)}}focusNext(t,r){let s=ci.getActiveTrap(),d=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===s||y===this.root||mu(y)){c.push(...Ts(y,{excludedElements:d?[d]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let I=this.focusNextInFocusableAria(c,r);if(I||y===s||y===this.root)return I&&this.emitNavBeforeFocusEvent(I,r),!!I;d=y}return!1}emitNavBeforeFocusEvent(t,r){var s;if(t){let d=new wo("navbeforefocus",t,r);if((s=this.getActiveElement())==null||s.dispatchEvent(d),!d.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,r){var y,I;if(t.length===0)return;let s=this.getActiveElement(),d=On();if((!s||!t.includes(s)||s!==d)&&(d&&t.includes(d)?s=d:[s]=t,this.setActiveElement(s)),s!==On())return s;let c=`data-spatial-${r}`;if(d){let $=fu(d).find(Q=>Q.hasAttribute(c)),Y=$==null?void 0:$.getAttribute(c);if($&&Y){let Q=(y=$.getRootNode())==null?void 0:y.getElementById(Y);if(Q)return Q}}return(I=gu(s,t,r,this.distanceCalculationWeights)[0])==null?void 0:I.candidate}emitGoBackEvent(t){let r=new wo("navback",t,"escape");return this.dispatchEvent(r),r.defaultPrevented}setActiveElement(t){var r;t!==((r=this.activeElement)==null?void 0:r.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=On();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Ts(this.root).find(s=>s.hasAttribute("data-spatial-go-back")),r=this.emitGoBackEvent(t);return t&&!r?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};m([u({attribute:!1})],Rn.prototype,"navigationKeyMapping",2),m([u({attribute:!1})],Rn.prototype,"distanceCalculationWeights",2);var Ac=Rn;Ac.register(cl);var bu=Ac;var q={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},RE={[tr.ARROW_UP]:q.UP,[tr.ARROW_DOWN]:q.DOWN,[tr.ARROW_LEFT]:q.LEFT,[tr.ARROW_RIGHT]:q.RIGHT,[tr.ENTER]:q.ENTER,[tr.SPACE]:q.SPACE,[tr.ESCAPE]:q.ESCAPE,[tr.TAB]:q.TAB,[tr.HOME]:q.HOME,[tr.END]:q.END},Kt={DEFAULT:"default",SPATIAL:"spatial"},Ct=a=>{class o extends a{constructor(){super(...arguments);this.spatialNavigationContext=he.consume({host:this,context:bu.Context})}getKeyboardNavMode(){var d;return((d=this.spatialNavigationContext)==null?void 0:d.value)?Kt.SPATIAL:Kt.DEFAULT}getActionForKeyEvent(s,d=!1){var y,I,$;let f=(($=(I=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:I.keyToActionMap)!=null?$:RE)[s.key];if(d){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===q.LEFT)return q.RIGHT;if(f===q.RIGHT)return q.LEFT}return f}isDirectionAction(s){return s===q.UP||s===q.DOWN||s===q.LEFT||s===q.RIGHT}}return o};var Lt=a=>{class o extends a{constructor(...s){super(...s);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=s=>{this.keyDownEventHandledFlag&&s.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var bt=U`
19
19
  :host {
20
20
  align-items: center;
21
21
  display: flex;
@@ -78,7 +78,7 @@
78
78
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
79
79
  }
80
80
  }
81
- `];var RE=[bt,U`
81
+ `];var PE=[bt,U`
82
82
  :host {
83
83
  --mdc-button-height: unset;
84
84
  --mdc-button-background: transparent;
@@ -131,7 +131,7 @@
131
131
  :host([size='20']) {
132
132
  --mdc-button-height: 1.25rem;
133
133
  }
134
- `,...St()],bu=RE;var er=class extends Lt(Ct(_e(Br(Gt(q))))){constructor(){super();this.size=Ln.SIZE;this.role=Ln.ROLE;this.type=Ln.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Ln.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===vs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===vs.RESET&&this.form&&this.form.reset()}setActive(t,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(d=>d.trim().startsWith("aria-")).forEach(d=>{r===!0?t.setAttribute(d.trim(),"true"):r===!1?t.setAttribute(d.trim(),"false"):t.removeAttribute(d.trim())})}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,r){r?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===X.ENTER||r===X.SPACE)&&(this.classList.add("pressed"),r===X.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===X.ENTER||r===X.SPACE)&&(this.classList.remove("pressed"),r===X.SPACE&&this.triggerClickEvent())}render(){return C` <slot></slot> `}};er.formAssociated=!0,er.styles=[...q.styles,...bu],m([u({type:Boolean,reflect:!0})],er.prototype,"active",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],er.prototype,"softDisabled",2),m([u({type:Number,reflect:!0})],er.prototype,"size",2),m([u({type:String,reflect:!0})],er.prototype,"role",2),m([u({type:String,reflect:!0})],er.prototype,"ariaStateKey",2),m([u({reflect:!0})],er.prototype,"type",2),m([u({type:String,reflect:!0})],er.prototype,"name",2),m([u({type:String,reflect:!0})],er.prototype,"value",2);var pe=er;var cl=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let r=this.overflowElement;return r.scrollWidth>r.clientWidth}}return o};var PE=U`
134
+ `,...St()],yu=PE;var er=class extends Lt(Ct(_e(Br(Gt(X))))){constructor(){super();this.size=Ln.SIZE;this.role=Ln.ROLE;this.type=Ln.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Ln.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===gs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===gs.RESET&&this.form&&this.form.reset()}setActive(t,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(d=>d.trim().startsWith("aria-")).forEach(d=>{r===!0?t.setAttribute(d.trim(),"true"):r===!1?t.setAttribute(d.trim(),"false"):t.removeAttribute(d.trim())})}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,r){r?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),t.removeAttribute("aria-disabled"))}triggerClickEvent(){this.click()}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.add("pressed"),r===q.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.remove("pressed"),r===q.SPACE&&this.triggerClickEvent())}render(){return C` <slot></slot> `}};er.formAssociated=!0,er.styles=[...X.styles,...yu],m([u({type:Boolean,reflect:!0})],er.prototype,"active",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],er.prototype,"softDisabled",2),m([u({type:Number,reflect:!0})],er.prototype,"size",2),m([u({type:String,reflect:!0})],er.prototype,"role",2),m([u({type:String,reflect:!0})],er.prototype,"ariaStateKey",2),m([u({reflect:!0})],er.prototype,"type",2),m([u({type:String,reflect:!0})],er.prototype,"name",2),m([u({type:String,reflect:!0})],er.prototype,"value",2);var pe=er;var hl=a=>{class o extends a{get overflowElement(){return this}isWidthOverflowing(){let r=this.overflowElement;return r.scrollWidth>r.clientWidth}}return o};var DE=U`
135
135
  :host {
136
136
  --mdc-button-prefix-icon-size: 1rem;
137
137
  --mdc-button-postfix-icon-size: 1rem;
@@ -416,7 +416,7 @@
416
416
  :host::part(postfix-icon) {
417
417
  flex-shrink: 0;
418
418
  }
419
- `,yu=[PE];var ko=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(r=>!t.includes(r)).join("-")};var Ur=class extends cl(sl(pe)){constructor(){super(...arguments);this.size=Ge.SIZE;this.inverted=Ge.INVERTED;this.role=J.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${ko(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${ko(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return C`
419
+ `,Eu=[DE];var ko=a=>{let o=a.split("-"),t=["bold","filled","regular","light"];return o.filter(r=>!t.includes(r)).join("-")};var Ur=class extends hl(nl(pe)){constructor(){super(...arguments);this.size=Ge.SIZE;this.inverted=Ge.INVERTED;this.role=J.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${ko(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${ko(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return C`
420
420
  <slot name="prefix" part="prefix">
421
421
  ${this.prefixFilledIconName?C` <mdc-icon
422
422
  name="${this.prefixFilledIconName}"
@@ -432,7 +432,7 @@
432
432
  length-unit="rem"
433
433
  ></mdc-icon>`:""}
434
434
  </slot>
435
- `}};Ur.styles=[...pe.styles,...yu],m([Jt('slot[part="button-text"]')],Ur.prototype,"buttonTextPart",2),m([u({type:Number})],Ur.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Ur.prototype,"inverted",2),m([u({type:String,reflect:!0})],Ur.prototype,"role",2),m([ut()],Ur.prototype,"prefixFilledIconName",2),m([ut()],Ur.prototype,"postfixFilledIconName",2);var No=Ur;var hl=V.constructTagName("iconprovider"),Eu=["svg"],Tu=["em","rem","px","%"],DE={px:16,em:1,rem:1,"%":100},hi={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:DE.em,ICON_SET:"momentum-icons"};var pl=class{};pl.context=hl;var ml=pl;var Hr=class extends ce{constructor(){super({context:ml.context,initialValue:new ml});this.iconSet=hi.ICON_SET;this.fileExtension=hi.FILE_EXTENSION;this.lengthUnit=hi.LENGTH_UNIT;this.size=hi.SIZE}static get Context(){return ml.context}updateValuesInContext(){this.fileExtension&&Eu.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=hi.FILE_EXTENSION,this.context.value.fileExtension=hi.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&&Tu.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=hi.LENGTH_UNIT,this.context.value.lengthUnit=hi.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())}};m([u({type:String,attribute:"icon-set",reflect:!0})],Hr.prototype,"iconSet",2),m([u({type:String})],Hr.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Hr.prototype,"fileExtension",2),m([u({type:String,attribute:"length-unit",reflect:!0})],Hr.prototype,"lengthUnit",2),m([u({type:Number,reflect:!0})],Hr.prototype,"size",2),m([u({type:String,attribute:"cache-strategy"})],Hr.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Hr.prototype,"cacheName",2);var Pn=Hr;var FE=[bt,U`
435
+ `}};Ur.styles=[...pe.styles,...Eu],m([Jt('slot[part="button-text"]')],Ur.prototype,"buttonTextPart",2),m([u({type:Number})],Ur.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Ur.prototype,"inverted",2),m([u({type:String,reflect:!0})],Ur.prototype,"role",2),m([ut()],Ur.prototype,"prefixFilledIconName",2),m([ut()],Ur.prototype,"postfixFilledIconName",2);var No=Ur;var pl=V.constructTagName("iconprovider"),Tu=["svg"],xu=["em","rem","px","%"],FE={px:16,em:1,rem:1,"%":100},hi={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:FE.em,ICON_SET:"momentum-icons"};var ml=class{};ml.context=pl;var ul=ml;var Hr=class extends ce{constructor(){super({context:ul.context,initialValue:new ul});this.iconSet=hi.ICON_SET;this.fileExtension=hi.FILE_EXTENSION;this.lengthUnit=hi.LENGTH_UNIT;this.size=hi.SIZE}static get Context(){return ul.context}updateValuesInContext(){this.fileExtension&&Tu.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=hi.FILE_EXTENSION,this.context.value.fileExtension=hi.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&&xu.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=hi.LENGTH_UNIT,this.context.value.lengthUnit=hi.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())}};m([u({type:String,attribute:"icon-set",reflect:!0})],Hr.prototype,"iconSet",2),m([u({type:String})],Hr.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],Hr.prototype,"fileExtension",2),m([u({type:String,attribute:"length-unit",reflect:!0})],Hr.prototype,"lengthUnit",2),m([u({type:Number,reflect:!0})],Hr.prototype,"size",2),m([u({type:String,attribute:"cache-strategy"})],Hr.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],Hr.prototype,"cacheName",2);var Pn=Hr;var $E=[bt,U`
436
436
  :host {
437
437
  --mdc-icon-fill-color: currentColor;
438
438
  --mdc-icon-size: var(--computed-icon-size);
@@ -447,7 +447,7 @@
447
447
  width: 100%;
448
448
  fill: var(--mdc-icon-fill-color);
449
449
  }
450
- `,...St()],xu=FE;var Dn={},Au=async a=>(Dn[a]===void 0&&(Dn[a]=new Map),{async set(o,t){Dn[a].set(o.url,await t.text())},async get(o){return Dn[a].get(o.url)},async delete(o){Dn[a].delete(o.url)}}),Su=async a=>{let o=await caches.open(a);return{set:async(t,r)=>{await o.put(t,r)},get:async t=>{let r=await o.match(t);return r==null?void 0:r.text()},delete:async t=>{await o.delete(t)}}},ul=async(a,o)=>o==="in-memory-cache"?Au(a):Su(a);var Iu=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),_u=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let c=d(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?Iu(f).then(y=>y.text()):ul(s,r).then(y=>y.get(f).then(I=>I||Iu(f.clone()).then($=>{var Y;return $.status<400&&$.headers.has("content-type")?(Y=y.set)==null?void 0:Y.call(y,f,$.clone()).then(()=>$.text()):$.text()})).catch(I=>{throw new Error(`Error in caching the Icon ${o}, ${I}`)}))};var Cu=V.constructTagName("icon"),xc={NAME:void 0,SIZE:1};var rr=class extends q{constructor(){super();this.name=xc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=he.consume({host:this,context:Pn.Context});this.abortController=new AbortController}prepareIconElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:s,cacheName:d,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&s&&r&&this.name){let y=()=>{var I;return(I=this.abortController)==null||I.abort(),this.abortController=new AbortController,this.abortController.signal};return _u({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:y}).then(I=>{let $=this.prepareIconElement(I);this.handleIconLoadedSuccess($)}).catch(I=>{this.handleIconLoadedFailure(I)})}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 r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:xc.SIZE}updated(t){var r,s,d,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!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.lengthUnit,this.updateSize()),this.sizeFromContext!==((d=this.iconProviderContext.value)==null?void 0:d.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 C` ${this.iconData} `}};rr.styles=[...q.styles,...xu],m([ut()],rr.prototype,"iconData",2),m([ut()],rr.prototype,"lengthUnitFromContext",2),m([ut()],rr.prototype,"sizeFromContext",2),m([u({type:String,reflect:!0})],rr.prototype,"name",2),m([u({type:Number})],rr.prototype,"size",2),m([u({type:String,attribute:"length-unit"})],rr.prototype,"lengthUnit",2),m([u({type:String,attribute:"aria-label"})],rr.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],rr.prototype,"ariaLabelledby",2),m([ut()],rr.prototype,"abortController",2);var Ac=rr;Ac.register(Cu);var $E=Ac;No.register(di);var zE=No;var wu=U`
450
+ `,...St()],Au=$E;var Dn={},Su=async a=>(Dn[a]===void 0&&(Dn[a]=new Map),{async set(o,t){Dn[a].set(o.url,await t.text())},async get(o){return Dn[a].get(o.url)},async delete(o){Dn[a].delete(o.url)}}),Iu=async a=>{let o=await caches.open(a);return{set:async(t,r)=>{await o.put(t,r)},get:async t=>{let r=await o.match(t);return r==null?void 0:r.text()},delete:async t=>{await o.delete(t)}}},fl=async(a,o)=>o==="in-memory-cache"?Su(a):Iu(a);var _u=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the icon!");return o}),Cu=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let c=d(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?_u(f).then(y=>y.text()):fl(s,r).then(y=>y.get(f).then(I=>I||_u(f.clone()).then($=>{var Y;return $.status<400&&$.headers.has("content-type")?(Y=y.set)==null?void 0:Y.call(y,f,$.clone()).then(()=>$.text()):$.text()})).catch(I=>{throw new Error(`Error in caching the Icon ${o}, ${I}`)}))};var wu=V.constructTagName("icon"),Sc={NAME:void 0,SIZE:1};var rr=class extends X{constructor(){super();this.name=Sc.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=he.consume({host:this,context:Pn.Context});this.abortController=new AbortController}prepareIconElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:s,cacheName:d,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&s&&r&&this.name){let y=()=>{var I;return(I=this.abortController)==null||I.abort(),this.abortController=new AbortController,this.abortController.signal};return Cu({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:y}).then(I=>{let $=this.prepareIconElement(I);this.handleIconLoadedSuccess($)}).catch(I=>{this.handleIconLoadedFailure(I)})}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 r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:Sc.SIZE}updated(t){var r,s,d,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!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(s=this.iconProviderContext.value)==null?void 0:s.lengthUnit,this.updateSize()),this.sizeFromContext!==((d=this.iconProviderContext.value)==null?void 0:d.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 C` ${this.iconData} `}};rr.styles=[...X.styles,...Au],m([ut()],rr.prototype,"iconData",2),m([ut()],rr.prototype,"lengthUnitFromContext",2),m([ut()],rr.prototype,"sizeFromContext",2),m([u({type:String,reflect:!0})],rr.prototype,"name",2),m([u({type:Number})],rr.prototype,"size",2),m([u({type:String,attribute:"length-unit"})],rr.prototype,"lengthUnit",2),m([u({type:String,attribute:"aria-label"})],rr.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],rr.prototype,"ariaLabelledby",2),m([ut()],rr.prototype,"abortController",2);var Ic=rr;Ic.register(wu);var zE=Ic;No.register(di);var VE=No;var ku=U`
451
451
  :host::part(text) {
452
452
  font-size: unset;
453
453
  font-weight: unset;
@@ -690,14 +690,14 @@
690
690
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
691
691
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
692
692
  }
693
- `;var VE=[U`
693
+ `;var BE=[U`
694
694
  :host {
695
695
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
696
696
 
697
697
  display: block;
698
698
  font-family: var(--mdc-text-font-family);
699
699
  }
700
- `,wu],ku=VE;var Fn=V.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},ye={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Lo=class extends cl(q){constructor(){super(...arguments);this.type=ye.TYPE;this.tagname=ye.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return C`<h1 part=${ye.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return C`<h2 part=${ye.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return C`<h3 part=${ye.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return C`<h4 part=${ye.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return C`<h5 part=${ye.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return C`<h6 part=${ye.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return C`<div part=${ye.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return C`<span part=${ye.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return C`<small part=${ye.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return C`<p part=${ye.CSS_PART_TEXT}><slot></slot></p>`}}};Lo.styles=[...q.styles,...ku],m([Jt(`[part='${ye.CSS_PART_TEXT}']`)],Lo.prototype,"textPartElement",2),m([u({attribute:"type",reflect:!0,type:String})],Lo.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Lo.prototype,"tagname",2);var Sc=Lo;Sc.register(Fn);var BE=Sc;var tt=a=>a!=null?a:j;var Ee=[];for(let a=0;a<256;++a)Ee.push((a+256).toString(16).slice(1));function Nu(a,o=0){return(Ee[a[o+0]]+Ee[a[o+1]]+Ee[a[o+2]]+Ee[a[o+3]]+"-"+Ee[a[o+4]]+Ee[a[o+5]]+"-"+Ee[a[o+6]]+Ee[a[o+7]]+"-"+Ee[a[o+8]]+Ee[a[o+9]]+"-"+Ee[a[o+10]]+Ee[a[o+11]]+Ee[a[o+12]]+Ee[a[o+13]]+Ee[a[o+14]]+Ee[a[o+15]]).toLowerCase()}var Ic,UE=new Uint8Array(16);function _c(){if(!Ic){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ic=crypto.getRandomValues.bind(crypto)}return Ic(UE)}var HE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Cc={randomUUID:HE};function GE(a,o,t){var s,d,c;if(Cc.randomUUID&&!o&&!a)return Cc.randomUUID();a=a||{};let r=(c=(d=a.random)!=null?d:(s=a.rng)==null?void 0:s.call(a))!=null?c:_c();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=r[f];return o}return Nu(r)}var Ce=GE;var Lu=V.constructTagName("accordiongroup"),wc={SMALL:"small",LARGE:"large"},KE={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},$n={SIZE:wc.SMALL,VARIANT:KE.STACKED};var fl=V.constructTagName("accordionbutton"),zn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},WE={DEFAULT:"default",BORDERLESS:"borderless"},Gi={EXPANDED:!1,SIZE:wc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:WE.DEFAULT,ICON_NAME:zn.ARROW_UP};var YE=U`
700
+ `,ku],Nu=BE;var Fn=V.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},pt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},ye={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Lo=class extends hl(X){constructor(){super(...arguments);this.type=ye.TYPE;this.tagname=ye.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return C`<h1 part=${ye.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return C`<h2 part=${ye.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return C`<h3 part=${ye.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return C`<h4 part=${ye.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return C`<h5 part=${ye.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return C`<h6 part=${ye.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return C`<div part=${ye.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return C`<span part=${ye.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return C`<small part=${ye.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return C`<p part=${ye.CSS_PART_TEXT}><slot></slot></p>`}}};Lo.styles=[...X.styles,...Nu],m([Jt(`[part='${ye.CSS_PART_TEXT}']`)],Lo.prototype,"textPartElement",2),m([u({attribute:"type",reflect:!0,type:String})],Lo.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Lo.prototype,"tagname",2);var _c=Lo;_c.register(Fn);var UE=_c;var tt=a=>a!=null?a:j;var Ee=[];for(let a=0;a<256;++a)Ee.push((a+256).toString(16).slice(1));function Lu(a,o=0){return(Ee[a[o+0]]+Ee[a[o+1]]+Ee[a[o+2]]+Ee[a[o+3]]+"-"+Ee[a[o+4]]+Ee[a[o+5]]+"-"+Ee[a[o+6]]+Ee[a[o+7]]+"-"+Ee[a[o+8]]+Ee[a[o+9]]+"-"+Ee[a[o+10]]+Ee[a[o+11]]+Ee[a[o+12]]+Ee[a[o+13]]+Ee[a[o+14]]+Ee[a[o+15]]).toLowerCase()}var Cc,HE=new Uint8Array(16);function wc(){if(!Cc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Cc=crypto.getRandomValues.bind(crypto)}return Cc(HE)}var GE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),kc={randomUUID:GE};function KE(a,o,t){var s,d,c;if(kc.randomUUID&&!o&&!a)return kc.randomUUID();a=a||{};let r=(c=(d=a.random)!=null?d:(s=a.rng)==null?void 0:s.call(a))!=null?c:wc();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=r[f];return o}return Lu(r)}var Ce=KE;var Mu=V.constructTagName("accordiongroup"),Nc={SMALL:"small",LARGE:"large"},WE={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},$n={SIZE:Nc.SMALL,VARIANT:WE.STACKED};var vl=V.constructTagName("accordionbutton"),zn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},YE={DEFAULT:"default",BORDERLESS:"borderless"},Gi={EXPANDED:!1,SIZE:Nc.SMALL,DATA_ARIA_LEVEL:3,VARIANT:YE.DEFAULT,ICON_NAME:zn.ARROW_UP};var jE=U`
701
701
  :host {
702
702
  --mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
703
703
  --mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
@@ -814,7 +814,7 @@
814
814
  :host([variant='default']:not([expanded]))::part(header-section) {
815
815
  border-bottom: none;
816
816
  }
817
- `,Mu=[YE,...St(!0)];var Gr=class extends Lt(Ct(Gt(q))){constructor(){super(...arguments);this.size=Gi.SIZE;this.variant=Gi.VARIANT;this.dataAriaLevel=Gi.DATA_ARIA_LEVEL;this.expanded=Gi.EXPANDED;this.headSectionId=`head-section-${Ce()}`;this.bodySectionId=`body-section-${Ce()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===X.ENTER||r===X.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?C`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:j}renderHeadingText(){return this.headerText?C`<mdc-text
817
+ `,Ou=[jE,...St(!0)];var Gr=class extends Lt(Ct(Gt(X))){constructor(){super(...arguments);this.size=Gi.SIZE;this.variant=Gi.VARIANT;this.dataAriaLevel=Gi.DATA_ARIA_LEVEL;this.expanded=Gi.EXPANDED;this.headSectionId=`head-section-${Ce()}`;this.bodySectionId=`body-section-${Ce()}`}handleHeaderClick(){this.disabled||(this.expanded=!this.expanded,this.dispatchHeaderClickEvent())}click(){this.disabled||(super.click(),this.handleHeaderClick())}dispatchHeaderClickEvent(){let t=new CustomEvent("shown",{bubbles:!0,cancelable:!0,detail:{expanded:this.expanded}});this.dispatchEvent(t)}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?C`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:j}renderHeadingText(){return this.headerText?C`<mdc-text
818
818
  id="${this.headSectionId}"
819
819
  type="${ot.BODY_LARGE_REGULAR}"
820
820
  tagname=${pt.SPAN}
@@ -849,7 +849,7 @@
849
849
  role="${J.REGION}"
850
850
  >
851
851
  <slot></slot>
852
- </div>`:j}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=Gi.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=Gi.SIZE),t.has("variant")&&!this.variant&&(this.variant=Gi.VARIANT)}render(){return C` ${this.renderHeader()} ${this.renderBody()} `}};Gr.styles=[...q.styles,...Mu],m([u({type:String,reflect:!0})],Gr.prototype,"size",2),m([u({type:String,reflect:!0})],Gr.prototype,"variant",2),m([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Gr.prototype,"dataAriaLevel",2),m([u({type:Boolean,reflect:!0})],Gr.prototype,"expanded",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Gr.prototype,"headerText",2),m([u({type:String,attribute:"prefix-icon"})],Gr.prototype,"prefixIcon",2);var Ts=Gr;var jE=U`
852
+ </div>`:j}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=Gi.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=Gi.SIZE),t.has("variant")&&!this.variant&&(this.variant=Gi.VARIANT)}render(){return C` ${this.renderHeader()} ${this.renderBody()} `}};Gr.styles=[...X.styles,...Ou],m([u({type:String,reflect:!0})],Gr.prototype,"size",2),m([u({type:String,reflect:!0})],Gr.prototype,"variant",2),m([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Gr.prototype,"dataAriaLevel",2),m([u({type:Boolean,reflect:!0})],Gr.prototype,"expanded",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Gr.prototype,"headerText",2),m([u({type:String,attribute:"prefix-icon"})],Gr.prototype,"prefixIcon",2);var xs=Gr;var qE=U`
853
853
  :host::part(header-section) {
854
854
  display: flex;
855
855
  align-items: center;
@@ -863,7 +863,7 @@
863
863
  :host::part(trailing-header__button) {
864
864
  margin: 0.125rem;
865
865
  }
866
- `,Ou=[jE];var Ki=class extends Ts{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")})}renderHeader(){return C`
866
+ `,Ru=[qE];var Ki=class extends xs{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")})}renderHeader(){return C`
867
867
  <div part="header-section" @shown="${this.handleHeaderShownEvent}">
868
868
  <div part="leading-header">
869
869
  ${this.renderIcon(this.prefixIcon)}
@@ -885,7 +885,7 @@
885
885
  ></mdc-button>
886
886
  </div>
887
887
  </div>
888
- `}};Ki.styles=[...Ts.styles,...Ou],m([Ft({slot:"leading-controls"})],Ki.prototype,"leadingControlsSlot",2),m([Ft({slot:"trailing-controls"})],Ki.prototype,"trailingControlsSlot",2),m([u({type:String,attribute:"open-button-aria-label",reflect:!0})],Ki.prototype,"openButtonAriaLabel",2),m([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Ki.prototype,"closeButtonAriaLabel",2);var kc=Ki;var vl=V.constructTagName("accordion");kc.register(vl);var qE=kc;var XE=U`
888
+ `}};Ki.styles=[...xs.styles,...Ru],m([Ft({slot:"leading-controls"})],Ki.prototype,"leadingControlsSlot",2),m([Ft({slot:"trailing-controls"})],Ki.prototype,"trailingControlsSlot",2),m([u({type:String,attribute:"open-button-aria-label",reflect:!0})],Ki.prototype,"openButtonAriaLabel",2),m([u({type:String,attribute:"close-button-aria-label",reflect:!0})],Ki.prototype,"closeButtonAriaLabel",2);var Lc=Ki;var gl=V.constructTagName("accordion");Lc.register(gl);var XE=Lc;var ZE=U`
889
889
  :host {
890
890
  --mdc-accordiongroup-items-border-color: var(--mds-color-theme-outline-secondary-normal);
891
891
 
@@ -929,7 +929,7 @@
929
929
  :host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
930
930
  border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
931
931
  }
932
- `,Ru=[XE,...St()];var pi=class extends q{constructor(){super();this.size=$n.SIZE;this.variant=$n.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(r=>{r!==t.target&&r.hasAttribute("expanded")&&r.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,r){[...this.accordionItems].forEach(s=>{s.setAttribute(t,r)}),[...this.accordionButtonItems].forEach(s=>{s.setAttribute(t,r)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=$n.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=$n.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return C` <slot></slot> `}};pi.styles=[...q.styles,...Ru],m([u({type:String,reflect:!0})],pi.prototype,"size",2),m([u({type:String,reflect:!0})],pi.prototype,"variant",2),m([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],pi.prototype,"allowMultiple",2),m([Ft({selector:vl})],pi.prototype,"accordionItems",2),m([Ft({selector:fl})],pi.prototype,"accordionButtonItems",2);var Nc=pi;Nc.register(Lu);var ZE=Nc;Ts.register(fl);var QE=Ts;var te=a=>{class o extends a{}return m([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var JE=U`
932
+ `,Pu=[ZE,...St()];var pi=class extends X{constructor(){super();this.size=$n.SIZE;this.variant=$n.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(r=>{r!==t.target&&r.hasAttribute("expanded")&&r.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,r){[...this.accordionItems].forEach(s=>{s.setAttribute(t,r)}),[...this.accordionButtonItems].forEach(s=>{s.setAttribute(t,r)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=$n.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=$n.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return C` <slot></slot> `}};pi.styles=[...X.styles,...Pu],m([u({type:String,reflect:!0})],pi.prototype,"size",2),m([u({type:String,reflect:!0})],pi.prototype,"variant",2),m([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],pi.prototype,"allowMultiple",2),m([Ft({selector:gl})],pi.prototype,"accordionItems",2),m([Ft({selector:vl})],pi.prototype,"accordionButtonItems",2);var Mc=pi;Mc.register(Mu);var QE=Mc;xs.register(vl);var JE=xs;var te=a=>{class o extends a{}return m([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var tT=U`
933
933
  :host {
934
934
  height: 1.5rem;
935
935
  gap: 0.25rem;
@@ -1042,16 +1042,16 @@
1042
1042
  --mdc-chip-icon-color: ButtonText;
1043
1043
  }
1044
1044
  }
1045
- `,Pu=[bt,JE,...St()];var Du=V.constructTagName("alertchip"),Mo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},xs={VARIANT:Mo.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:_o[24],ROLE:J.BUTTON};var Fu=a=>({[Mo.ERROR]:"error-legacy-badge-filled",[Mo.INFORMATIONAL]:"info-badge-filled",[Mo.NEUTRAL]:"dnd-presence-badge-filled",[Mo.SUCCESS]:"check-circle-badge-filled",[Mo.WARNING]:"warning-badge-filled"})[a];var As=class extends te(pe){constructor(){super(...arguments);this.variant=xs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=xs.SIZE,this.role=xs.ROLE}render(){return C`
1046
- <mdc-icon part="icon" name="${this.iconName||Fu(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1047
- ${this.label?C`<mdc-text part="label" type="${xs.TEXT_TYPE}" tagname="${xs.TAG_NAME}"
1045
+ `,Du=[bt,tT,...St()];var Fu=V.constructTagName("alertchip"),Mo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},As={VARIANT:Mo.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:_o[24],ROLE:J.BUTTON};var $u=a=>({[Mo.ERROR]:"error-legacy-badge-filled",[Mo.INFORMATIONAL]:"info-badge-filled",[Mo.NEUTRAL]:"dnd-presence-badge-filled",[Mo.SUCCESS]:"check-circle-badge-filled",[Mo.WARNING]:"warning-badge-filled"})[a];var Ss=class extends te(pe){constructor(){super(...arguments);this.variant=As.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=As.SIZE,this.role=As.ROLE}render(){return C`
1046
+ <mdc-icon part="icon" name="${this.iconName||$u(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1047
+ ${this.label?C`<mdc-text part="label" type="${As.TEXT_TYPE}" tagname="${As.TAG_NAME}"
1048
1048
  >${this.label}</mdc-text
1049
1049
  >`:j}
1050
- `}};As.styles=[...q.styles,...Pu],m([u({type:String,reflect:!0})],As.prototype,"variant",2),m([u({type:String})],As.prototype,"label",2);var Lc=As;Lc.register(Du);var tT=Lc;var{I:eT}=Qm;var gl=a=>a.strings===void 0,$u=()=>document.createComment(""),Ss=(a,o,t)=>{var d;let r=a._$AA.parentNode,s=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=r.insertBefore($u(),s),f=r.insertBefore($u(),s);t=new eT(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,y=f!==a;if(y){let I;(d=t._$AQ)==null||d.call(t,a),t._$AM=a,t._$AP!==void 0&&(I=a._$AU)!==f._$AU&&t._$AP(I)}if(c!==s||y){let I=t._$AA;for(;I!==c;){let $=I.nextSibling;r.insertBefore(I,s),I=$}}}return t},Wi=(a,o,t=a)=>(a._$AI(o,t),a),rT={},bl=(a,o=rT)=>a._$AH=o,zu=a=>a._$AH,yl=a=>{var r;(r=a._$AP)==null||r.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let s=o.nextSibling;o.remove(),o=s}};var ir={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},mi=a=>(...o)=>({_$litDirective$:a,values:o}),Kr=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,r){this.t=o,this._$AM=t,this.i=r}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var Vn=(a,o)=>{var r;let t=a._$AN;if(t===void 0)return!1;for(let s of t)(r=s._$AO)==null||r.call(s,o,!1),Vn(s,o);return!0},El=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)},Vu=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),sT(o)}};function iT(a){this._$AN!==void 0?(El(this),this._$AM=a,Vu(this)):this._$AM=a}function oT(a,o=!1,t=0){let r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(o)if(Array.isArray(r))for(let d=t;d<r.length;d++)Vn(r[d],!1),El(r[d]);else r!=null&&(Vn(r,!1),El(r));else Vn(this,a)}var sT=a=>{var o,t;a.type==ir.CHILD&&((o=a._$AP)!=null||(a._$AP=oT),(t=a._$AQ)!=null||(a._$AQ=iT))},Tl=class extends Kr{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,r){super._$AT(o,t,r),Vu(this),this.isConnected=o._$AU}_$AO(o,t=!0){var r,s;o!==this.isConnected&&(this.isConnected=o,o?(r=this.reconnected)==null||r.call(this):(s=this.disconnected)==null||s.call(this)),t&&(Vn(this,o),El(this))}setValue(o){if(gl(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 Bu=()=>new Oc,Oc=class{},Mc=new WeakMap,Uu=mi(class extends Tl{render(a){return j}update(a,[o]){var r;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=(r=a.options)==null?void 0:r.host,this.rt(this.ct=a.element)),j}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,r=Mc.get(t);r===void 0&&(r=new WeakMap,Mc.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.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=Mc.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 Wu=Jy(Hu());var Rc={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 nT=[bt,U`
1050
+ `}};Ss.styles=[...X.styles,...Du],m([u({type:String,reflect:!0})],Ss.prototype,"variant",2),m([u({type:String})],Ss.prototype,"label",2);var Oc=Ss;Oc.register(Fu);var eT=Oc;var{I:rT}=Jm;var bl=a=>a.strings===void 0,zu=()=>document.createComment(""),Is=(a,o,t)=>{var d;let r=a._$AA.parentNode,s=o===void 0?a._$AB:o._$AA;if(t===void 0){let c=r.insertBefore(zu(),s),f=r.insertBefore(zu(),s);t=new rT(c,f,a,a.options)}else{let c=t._$AB.nextSibling,f=t._$AM,y=f!==a;if(y){let I;(d=t._$AQ)==null||d.call(t,a),t._$AM=a,t._$AP!==void 0&&(I=a._$AU)!==f._$AU&&t._$AP(I)}if(c!==s||y){let I=t._$AA;for(;I!==c;){let $=I.nextSibling;r.insertBefore(I,s),I=$}}}return t},Wi=(a,o,t=a)=>(a._$AI(o,t),a),iT={},yl=(a,o=iT)=>a._$AH=o,Vu=a=>a._$AH,El=a=>{var r;(r=a._$AP)==null||r.call(a,!1,!0);let o=a._$AA,t=a._$AB.nextSibling;for(;o!==t;){let s=o.nextSibling;o.remove(),o=s}};var ir={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},mi=a=>(...o)=>({_$litDirective$:a,values:o}),Kr=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,r){this.t=o,this._$AM=t,this.i=r}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var Vn=(a,o)=>{var r;let t=a._$AN;if(t===void 0)return!1;for(let s of t)(r=s._$AO)==null||r.call(s,o,!1),Vn(s,o);return!0},Tl=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)},Bu=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),nT(o)}};function oT(a){this._$AN!==void 0?(Tl(this),this._$AM=a,Bu(this)):this._$AM=a}function sT(a,o=!1,t=0){let r=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(o)if(Array.isArray(r))for(let d=t;d<r.length;d++)Vn(r[d],!1),Tl(r[d]);else r!=null&&(Vn(r,!1),Tl(r));else Vn(this,a)}var nT=a=>{var o,t;a.type==ir.CHILD&&((o=a._$AP)!=null||(a._$AP=sT),(t=a._$AQ)!=null||(a._$AQ=oT))},xl=class extends Kr{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,r){super._$AT(o,t,r),Bu(this),this.isConnected=o._$AU}_$AO(o,t=!0){var r,s;o!==this.isConnected&&(this.isConnected=o,o?(r=this.reconnected)==null||r.call(this):(s=this.disconnected)==null||s.call(this)),t&&(Vn(this,o),Tl(this))}setValue(o){if(bl(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 Uu=()=>new Pc,Pc=class{},Rc=new WeakMap,Hu=mi(class extends xl{render(a){return j}update(a,[o]){var r;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=(r=a.options)==null?void 0:r.host,this.rt(this.ct=a.element)),j}rt(a){var o;if(this.isConnected||(a=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,r=Rc.get(t);r===void 0&&(r=new WeakMap,Rc.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.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=Rc.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 Yu=tE(Gu());var Dc={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 aT=[bt,U`
1051
1051
  :host svg {
1052
1052
  display: block;
1053
1053
  }
1054
- `],Gu=nT;var Ku=V.constructTagName("animation"),Pc={AUTO_PLAY:!0,LOOP:"true"};var ui=class extends q{constructor(){super(...arguments);this.loop=Pc.LOOP;this.autoplay=Pc.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Bu();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=Wu.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 r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}getAnimationData(){this.name&&Rc[this.name]?import(`@momentum-design/animations/dist/lottie${Rc[this.name].replace(/^\.\/lottie/,"")}`).then(r=>this.onLoadSuccessHandler(r.default)).catch(r=>this.onLoadFailHandler(r)):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?J.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return C`<div aria-hidden="true" ${Uu(this.containerRef)}></div>`}};ui.styles=[...q.styles,...Gu],m([u({type:String,reflect:!0})],ui.prototype,"name",2),m([u({type:String,reflect:!0})],ui.prototype,"loop",2),m([u({type:Boolean,reflect:!0})],ui.prototype,"autoplay",2),m([u({type:String,attribute:"aria-label"})],ui.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],ui.prototype,"ariaLabelledby",2);var Dc=ui;Dc.register(Ku);var aT=Dc;var Al=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(s){this.isFocusTrapActivated=s}activateFocusTrap(){this.setIsFocusTrapActivated(!0),ci.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),ci.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Es(this.shadowRoot))}setInitialFocus(s=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[s]&&(this.focusTrapIndex=s,this.focusableElements[s].focus({preventScroll:!0}))}calculateNextIndex(s,d){let{length:c}=this.focusableElements;if(s===-1)return d>0?0:c-1;let f=s+d;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var d;let s=document.activeElement||document.body;for(;s instanceof HTMLElement&&((d=s.shadowRoot)!=null&&d.activeElement);)s=s.shadowRoot.activeElement;return s||document.body}findElement(s){return this.focusableElements.findIndex(d=>this.isEqualFocusNode(s,d))}isEqualFocusNode(s,d){return s.nodeType>=0?d.isEqualNode(s)&&d===s:!1}trapFocus(s){if(this.setFocusableElements(),this.focusableElements.length===0)return;let d=this.getDeepActiveElement(),c=this.findElement(d);s.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let y=this.focusableElements[this.focusTrapIndex];y.tagName!=="IFRAME"&&y&&(s.preventDefault(),y.focus())}handleTabKeydown(s){this.isFocusTrapActivated&&s.key==="Tab"&&this.trapFocus(s)}}return m([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var Sl=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 Il=V.constructTagName("link"),_l={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Cl={LARGE:1,MIDSIZE:.875,SMALL:.75},Yu={LINK_SIZE:_l.LARGE};var ju=V.constructTagName("card"),Fc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},lT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},me={VARIANT:Fc.BORDER,ORIENTATION:lT.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Il,BUTTON:di};var Is=a=>{class o extends a{updateFooterButtonColors(r){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(d=>{r===Fc.PROMOTIONAL?d.setAttribute("color",Co.PROMOTIONAL):d.setAttribute("color",Co.DEFAULT)})}handleFooterSlot(r,s){var c,f,y;let d=[];r===me.LINK&&((c=this.footerLink)!=null&&c.length)?d=this.footerLink:r===me.BUTTON&&s===zt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?d=this.footerButtonPrimary:r===me.BUTTON&&s===zt.SECONDARY&&((y=this.footerButtonSecondary)!=null&&y.length)&&(d=this.footerButtonSecondary);for(let I=1;I<d.length;I+=1)d[I].remove();d.forEach(I=>{I.matches(r)||I.remove(),s&&I.setAttribute("variant",s)})}renderFooter(){return C` <slot name="footer">
1054
+ `],Ku=aT;var Wu=V.constructTagName("animation"),Fc={AUTO_PLAY:!0,LOOP:"true"};var ui=class extends X{constructor(){super(...arguments);this.loop=Fc.LOOP;this.autoplay=Fc.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Uu();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=Yu.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 r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}getAnimationData(){this.name&&Dc[this.name]?import(`@momentum-design/animations/dist/lottie${Dc[this.name].replace(/^\.\/lottie/,"")}`).then(r=>this.onLoadSuccessHandler(r.default)).catch(r=>this.onLoadFailHandler(r)):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?J.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return C`<div aria-hidden="true" ${Hu(this.containerRef)}></div>`}};ui.styles=[...X.styles,...Ku],m([u({type:String,reflect:!0})],ui.prototype,"name",2),m([u({type:String,reflect:!0})],ui.prototype,"loop",2),m([u({type:Boolean,reflect:!0})],ui.prototype,"autoplay",2),m([u({type:String,attribute:"aria-label"})],ui.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],ui.prototype,"ariaLabelledby",2);var $c=ui;$c.register(Wu);var lT=$c;var Sl=a=>{class o extends a{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(s){this.isFocusTrapActivated=s}activateFocusTrap(){this.setIsFocusTrapActivated(!0),ci.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),ci.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=Ts(this.shadowRoot))}setInitialFocus(s=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[s]&&(this.focusTrapIndex=s,this.focusableElements[s].focus({preventScroll:!0}))}calculateNextIndex(s,d){let{length:c}=this.focusableElements;if(s===-1)return d>0?0:c-1;let f=s+d;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var d;let s=document.activeElement||document.body;for(;s instanceof HTMLElement&&((d=s.shadowRoot)!=null&&d.activeElement);)s=s.shadowRoot.activeElement;return s||document.body}findElement(s){return this.focusableElements.findIndex(d=>this.isEqualFocusNode(s,d))}isEqualFocusNode(s,d){return s.nodeType>=0?d.isEqualNode(s)&&d===s:!1}trapFocus(s){if(this.setFocusableElements(),this.focusableElements.length===0)return;let d=this.getDeepActiveElement(),c=this.findElement(d);s.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let y=this.focusableElements[this.focusTrapIndex];y.tagName!=="IFRAME"&&y&&(s.preventDefault(),y.focus())}handleTabKeydown(s){this.isFocusTrapActivated&&s.key==="Tab"&&this.trapFocus(s)}}return m([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],o.prototype,"shouldFocusTrapWrap",2),o};var Il=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 _l=V.constructTagName("link"),Cl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},wl={LARGE:1,MIDSIZE:.875,SMALL:.75},ju={LINK_SIZE:Cl.LARGE};var qu=V.constructTagName("card"),zc={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},dT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},me={VARIANT:zc.BORDER,ORIENTATION:dT.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:pt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:_l,BUTTON:di};var _s=a=>{class o extends a{updateFooterButtonColors(r){let s=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];s==null||s.forEach(d=>{r===zc.PROMOTIONAL?d.setAttribute("color",Co.PROMOTIONAL):d.setAttribute("color",Co.DEFAULT)})}handleFooterSlot(r,s){var c,f,y;let d=[];r===me.LINK&&((c=this.footerLink)!=null&&c.length)?d=this.footerLink:r===me.BUTTON&&s===zt.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?d=this.footerButtonPrimary:r===me.BUTTON&&s===zt.SECONDARY&&((y=this.footerButtonSecondary)!=null&&y.length)&&(d=this.footerButtonSecondary);for(let I=1;I<d.length;I+=1)d[I].remove();d.forEach(I=>{I.matches(r)||I.remove(),s&&I.setAttribute("variant",s)})}renderFooter(){return C` <slot name="footer">
1055
1055
  <div part="footer">
1056
1056
  <slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(me.LINK)}></slot>
1057
1057
  <slot
@@ -1063,7 +1063,7 @@
1063
1063
  @slotchange=${()=>this.handleFooterSlot(me.BUTTON,zt.PRIMARY)}
1064
1064
  ></slot>
1065
1065
  </div>
1066
- </slot>`}}return m([Ft({slot:"footer-link"})],o.prototype,"footerLink",2),m([Ft({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),m([Ft({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var Le=[],dT=1e3,cT=3,$c=-2,zc=-1,Yi=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return Le.length}pushHost(){var o,t;return this.has(this.host)?!1:(Le.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)){let t=Le.indexOf(o)-1;this.popUntil((r,s)=>r!==o&&r.triggerID===o.triggerID?"skip":s!==t)}}pop(){var t;let o=Le.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let r=Le.length-1;r>=0;r-=1){let s=Le[r],d=o(s,r);if(d===!1)break;d!=="skip"&&t.push(s)}return this.remove(t)}peek(){return Le.at(-1)}remove(o){var s,d;let t=o.filter(c=>Le.includes(c)),r=t.reduce((c,f)=>Math.min(c,Le.indexOf(f)),1/0);t.forEach(c=>{var f;Le.splice(Le.indexOf(c),1),(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=r;c<Le.length;c+=1)(d=(s=Le[c]).onComponentStackChanged)==null||d.call(s,"moved");return t}has(o){return Le.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return Le.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?dT+t*cT:-1}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var wl=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(s){var d;if(super.update(s),s.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+$c}`;let c=(d=this.triggerElementCache)==null?void 0:d.deref();c&&(c.style.zIndex=`${this.zIndex+zc}`)}}createBackdrop(s){let d=document.createElement("div");d.classList.add(`${s}-backdrop`);let c=document.createElement("style");c.textContent=`
1066
+ </slot>`}}return m([Ft({slot:"footer-link"})],o.prototype,"footerLink",2),m([Ft({slot:"footer-button-primary"})],o.prototype,"footerButtonPrimary",2),m([Ft({slot:"footer-button-secondary"})],o.prototype,"footerButtonSecondary",2),o};var Le=[],cT=1e3,hT=3,Vc=-2,Bc=-1,Yi=class{constructor(o){this.host=o,o.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return Le.length}pushHost(){var o,t;return this.has(this.host)?!1:(Le.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)){let t=Le.indexOf(o)-1;this.popUntil((r,s)=>r!==o&&r.triggerID===o.triggerID?"skip":s!==t)}}pop(){var t;let o=Le.pop();return(t=o==null?void 0:o.onComponentStackChanged)==null||t.call(o,"removed"),o}popUntil(o){let t=[];for(let r=Le.length-1;r>=0;r-=1){let s=Le[r],d=o(s,r);if(d===!1)break;d!=="skip"&&t.push(s)}return this.remove(t)}peek(){return Le.at(-1)}remove(o){var s,d;let t=o.filter(c=>Le.includes(c)),r=t.reduce((c,f)=>Math.min(c,Le.indexOf(f)),1/0);t.forEach(c=>{var f;Le.splice(Le.indexOf(c),1),(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=r;c<Le.length;c+=1)(d=(s=Le[c]).onComponentStackChanged)==null||d.call(s,"moved");return t}has(o){return Le.includes(o)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(o){return Le.indexOf(o)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(o){let t=this.getElementDepth(o);return t>=0?cT+t*hT:-1}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var kl=a=>{class o extends a{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(s){var d;if(super.update(s),s.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+Vc}`;let c=(d=this.triggerElementCache)==null?void 0:d.deref();c&&(c.style.zIndex=`${this.zIndex+Bc}`)}}createBackdrop(s){let d=document.createElement("div");d.classList.add(`${s}-backdrop`);let c=document.createElement("style");c.textContent=`
1067
1067
  .${s}-backdrop {
1068
1068
  position: fixed;
1069
1069
  top: 0;
@@ -1071,9 +1071,9 @@
1071
1071
  width: 100%;
1072
1072
  height: 100%;
1073
1073
  background: ${this.isBackdropInvisible?"transparent":"var(--mds-color-theme-common-overlays-secondary-normal)"};
1074
- z-index: ${this.zIndex+$c};
1074
+ z-index: ${this.zIndex+Vc};
1075
1075
  }
1076
- `,d.appendChild(c);let y=document.getElementById(this.backdropAppendTo)||this.parentElement;y==null||y.appendChild(d),this.backdropElement=d}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.triggerElementCache=new WeakRef(s),this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex+zc}`,["fixed","absolute"].includes(window.getComputedStyle(s).position)||(s.style.position="relative"))}moveElementBackAfterBackdropRemoval(s){!s||!this.elementOriginalStyle||(s.style.zIndex=this.elementOriginalStyle.zIndex,s.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var kl=V.constructTagName("responsivesettingsprovider"),wr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},qu=["float","dialog"],Xu=["unknown","mobile","desktop","tablet"];var Nl=class{constructor(o={}){this.media=wr.MEDIA;this.forceFullscreenDialog=wr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=wr.POPOVER_POSITIONING;Object.assign(this,o)}};Nl.context=kl;var Ll=Nl;var _s=class extends ce{constructor(){super({context:Ll.context,initialValue:new Ll({media:wr.MEDIA,popoverPositioning:wr.POPOVER_POSITIONING,forceFullscreenDialog:wr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=wr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=wr.POPOVER_POSITIONING;this.privateMedia=wr.MEDIA}static get Context(){return Ll.context}set popoverPositioning(t){qu.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){Xu.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,r,s;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((r=this.context.value)==null?void 0:r.popoverPositioning)!==this.privatePopoverPositioning||((s=this.context.value)==null?void 0:s.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};m([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],_s.prototype,"forceFullscreenDialog",2),m([u({type:String,attribute:"popover-positioning",reflect:!0})],_s.prototype,"popoverPositioning",1),m([u({type:String,attribute:"media",reflect:!0})],_s.prototype,"media",1);var Vc=_s;Vc.register(kl);var Bc=Vc;var Zu=V.constructTagName("dialog"),Uc={DEFAULT:"default",PROMOTIONAL:"promotional"},mr={VISIBLE:!1,Z_INDEX:1e3,ROLE:J.DIALOG,SIZE:"small",HEADER_TAG_NAME:pt.H2,DESCRIPTION_TAG_NAME:pt.P,CANCEL_ICON:"cancel-bold",VARIANT:Uc.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var ML=[J.DIALOG,J.ALERTDIALOG];var ji=class{static dispatchDialogEvent(o,t,r=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:r}))}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 hT=U`
1076
+ `,d.appendChild(c);let y=document.getElementById(this.backdropAppendTo)||this.parentElement;y==null||y.appendChild(d),this.backdropElement=d}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(s){s&&(this.triggerElementCache=new WeakRef(s),this.elementOriginalStyle={zIndex:s.style.zIndex,position:s.style.position},s.style.zIndex=`${this.zIndex+Bc}`,["fixed","absolute"].includes(window.getComputedStyle(s).position)||(s.style.position="relative"))}moveElementBackAfterBackdropRemoval(s){!s||!this.elementOriginalStyle||(s.style.zIndex=this.elementOriginalStyle.zIndex,s.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return o};var Nl=V.constructTagName("responsivesettingsprovider"),wr={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},Xu=["float","dialog"],Zu=["unknown","mobile","desktop","tablet"];var Ll=class{constructor(o={}){this.media=wr.MEDIA;this.forceFullscreenDialog=wr.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=wr.POPOVER_POSITIONING;Object.assign(this,o)}};Ll.context=Nl;var Ml=Ll;var Cs=class extends ce{constructor(){super({context:Ml.context,initialValue:new Ml({media:wr.MEDIA,popoverPositioning:wr.POPOVER_POSITIONING,forceFullscreenDialog:wr.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=wr.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=wr.POPOVER_POSITIONING;this.privateMedia=wr.MEDIA}static get Context(){return Ml.context}set popoverPositioning(t){Xu.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){Zu.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,r,s;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((r=this.context.value)==null?void 0:r.popoverPositioning)!==this.privatePopoverPositioning||((s=this.context.value)==null?void 0:s.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};m([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Cs.prototype,"forceFullscreenDialog",2),m([u({type:String,attribute:"popover-positioning",reflect:!0})],Cs.prototype,"popoverPositioning",1),m([u({type:String,attribute:"media",reflect:!0})],Cs.prototype,"media",1);var Uc=Cs;Uc.register(Nl);var Hc=Uc;var Qu=V.constructTagName("dialog"),Gc={DEFAULT:"default",PROMOTIONAL:"promotional"},mr={VISIBLE:!1,Z_INDEX:1e3,ROLE:J.DIALOG,SIZE:"small",HEADER_TAG_NAME:pt.H2,DESCRIPTION_TAG_NAME:pt.P,CANCEL_ICON:"cancel-bold",VARIANT:Gc.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var OL=[J.DIALOG,J.ALERTDIALOG];var ji=class{static dispatchDialogEvent(o,t,r=!0){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:r}))}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 pT=U`
1077
1077
  :host {
1078
1078
  --mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
1079
1079
  --mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -1224,7 +1224,7 @@
1224
1224
  mdc-text::part(text) {
1225
1225
  margin: 0;
1226
1226
  }
1227
- `,Qu=[hT];var Yt=class extends Lt(Ct(wl(Sl(Al(Is(q)))))){constructor(){super(...arguments);this.responsiveSettingsContext=he.consume({host:this,context:Bc.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new Yi(this);this.id="";this.visible=mr.VISIBLE;this.internalSize=mr.SIZE;this.variant=mr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=mr.HEADER_TAG_NAME;this.descriptionTagName=mr.DESCRIPTION_TAG_NAME;this.role=mr.ROLE;this.disableAriaHasPopup=mr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=mr.FOCUS_TRAP;this.hideBackdrop=mr.HIDE_BACKDROP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==X.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,r;return(r=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&r.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(r=this.deactivateFocusTrap)==null||r.call(this),this.focusBackToTrigger(),ji.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(),ji.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 r=t.get("visible");await this.isOpenUpdated(r,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=mr.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,r;this.disableAriaHasPopup||(r=this.triggerElement)==null||r.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(),ji.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,r){var s,d,c,f,y;t!==r&&(r&&!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&&((s=this.activateFocusTrap)==null||s.call(this)),(d=this.setInitialFocus)==null||d.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),ji.onShowDialog(this)):!r&&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(),ji.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?C` <div part="header-section">
1227
+ `,Ju=[pT];var Yt=class extends Lt(Ct(kl(Il(Sl(_s(X)))))){constructor(){super(...arguments);this.responsiveSettingsContext=he.consume({host:this,context:Hc.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new Yi(this);this.id="";this.visible=mr.VISIBLE;this.internalSize=mr.SIZE;this.variant=mr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=mr.HEADER_TAG_NAME;this.descriptionTagName=mr.DESCRIPTION_TAG_NAME;this.role=mr.ROLE;this.disableAriaHasPopup=mr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=mr.FOCUS_TRAP;this.hideBackdrop=mr.HIDE_BACKDROP;this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.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,r;return(r=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&r.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(r=this.deactivateFocusTrap)==null||r.call(this),this.focusBackToTrigger(),ji.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(),ji.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 r=t.get("visible");await this.isOpenUpdated(r,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=mr.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,r;this.disableAriaHasPopup||(r=this.triggerElement)==null||r.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(),ji.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,r){var s,d,c,f,y;t!==r&&(r&&!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&&((s=this.activateFocusTrap)==null||s.call(this)),(d=this.setInitialFocus)==null||d.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),ji.onShowDialog(this)):!r&&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(),ji.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?C` <div part="header-section">
1228
1228
  <div part="header">
1229
1229
  <slot name="header-prefix"></slot>
1230
1230
  <mdc-text
@@ -1255,7 +1255,7 @@
1255
1255
  @click="${this.closeDialog}"
1256
1256
  ></mdc-button>
1257
1257
  ${this.renderBody()} ${this.renderFooter()}
1258
- `}};Yt.styles=[...q.styles,...Qu],m([u({type:String,reflect:!0})],Yt.prototype,"id",2),m([u({type:String,reflect:!0})],Yt.prototype,"triggerID",2),m([u({type:Boolean,reflect:!0})],Yt.prototype,"visible",2),m([u({type:Number,reflect:!0,attribute:"z-index"})],Yt.prototype,"zIndex",1),m([u({type:String,reflect:!0})],Yt.prototype,"size",1),m([u({type:String,reflect:!0})],Yt.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Yt.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Yt.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Yt.prototype,"ariaLabelledby",2),m([u({type:String,reflect:!0,attribute:"aria-describedby"})],Yt.prototype,"ariaDescribedby",2),m([u({type:String,reflect:!0,attribute:"aria-description"})],Yt.prototype,"ariaDescription",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Yt.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"description-text"})],Yt.prototype,"descriptionText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Yt.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"description-tag-name"})],Yt.prototype,"descriptionTagName",2),m([u({type:String,reflect:!0})],Yt.prototype,"role",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Yt.prototype,"disableAriaHasPopup",2),m([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Yt.prototype,"focusTrap",2),m([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],Yt.prototype,"hideBackdrop",2);var Cs=Yt;var pT=U`
1258
+ `}};Yt.styles=[...X.styles,...Ju],m([u({type:String,reflect:!0})],Yt.prototype,"id",2),m([u({type:String,reflect:!0})],Yt.prototype,"triggerID",2),m([u({type:Boolean,reflect:!0})],Yt.prototype,"visible",2),m([u({type:Number,reflect:!0,attribute:"z-index"})],Yt.prototype,"zIndex",1),m([u({type:String,reflect:!0})],Yt.prototype,"size",1),m([u({type:String,reflect:!0})],Yt.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Yt.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Yt.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"aria-labelledby"})],Yt.prototype,"ariaLabelledby",2),m([u({type:String,reflect:!0,attribute:"aria-describedby"})],Yt.prototype,"ariaDescribedby",2),m([u({type:String,reflect:!0,attribute:"aria-description"})],Yt.prototype,"ariaDescription",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Yt.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"description-text"})],Yt.prototype,"descriptionText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Yt.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"description-tag-name"})],Yt.prototype,"descriptionTagName",2),m([u({type:String,reflect:!0})],Yt.prototype,"role",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],Yt.prototype,"disableAriaHasPopup",2),m([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],Yt.prototype,"focusTrap",2),m([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],Yt.prototype,"hideBackdrop",2);var ws=Yt;var mT=U`
1259
1259
  :host {
1260
1260
  --mdc-announcementdialog-illustration-background-color: var(--mds-color-theme-background-solid-secondary-normal);
1261
1261
 
@@ -1304,7 +1304,7 @@
1304
1304
  margin-inline-end: 0;
1305
1305
  }
1306
1306
  }
1307
- `,Ju=[pT];var tf=V.constructTagName("announcementdialog");var ef={SIZE:"medium"};var ws=class extends Cs{get size(){var o,t;return(t=(o=this.responsiveSettingsContext)==null?void 0:o.value)!=null&&t.forceFullscreenDialog?"fullscreen":this.internalSize}set size(o){this.internalSize=o}constructor(){super(),this.internalSize=ef.SIZE}connectedCallback(){super.connectedCallback(),this.variant=Uc.DEFAULT}renderHeader(){return C`${j}`}renderBody(){return C`
1307
+ `,tf=[mT];var ef=V.constructTagName("announcementdialog");var rf={SIZE:"medium"};var ks=class extends ws{get size(){var o,t;return(t=(o=this.responsiveSettingsContext)==null?void 0:o.value)!=null&&t.forceFullscreenDialog?"fullscreen":this.internalSize}set size(o){this.internalSize=o}constructor(){super(),this.internalSize=rf.SIZE}connectedCallback(){super.connectedCallback(),this.variant=Gc.DEFAULT}renderHeader(){return C`${j}`}renderBody(){return C`
1308
1308
  <div part="body">
1309
1309
  <div part="illustration-container">
1310
1310
  <slot name="illustration-container">
@@ -1324,7 +1324,7 @@
1324
1324
  </slot>
1325
1325
  </div>
1326
1326
  </div>
1327
- `}};ws.styles=[...Cs.styles,...Ju],m([u({type:String,reflect:!0})],ws.prototype,"illustration",2),m([u({type:String,reflect:!0})],ws.prototype,"size",1);var Hc=ws;var Ml=V.constructTagName("illustrationprovider"),rf=["svg"],Un={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var Ol=class{};Ol.context=Ml;var Rl=Ol;var qi=class extends ce{constructor(){super({context:Rl.context,initialValue:new Rl});this.illustrationSet=Un.ILLUSTRATION_SET;this.fileExtension=Un.FILE_EXTENSION}static get Context(){return Rl.context}updateValuesInContext(){this.fileExtension&&rf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Un.FILE_EXTENSION,this.context.value.fileExtension=Un.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())}};m([u({type:String,attribute:"illustration-set",reflect:!0})],qi.prototype,"illustrationSet",2),m([u({type:String})],qi.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],qi.prototype,"fileExtension",2),m([u({type:String,attribute:"cache-strategy"})],qi.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],qi.prototype,"cacheName",2);var Hn=qi;var mT=[bt,U`
1327
+ `}};ks.styles=[...ws.styles,...tf],m([u({type:String,reflect:!0})],ks.prototype,"illustration",2),m([u({type:String,reflect:!0})],ks.prototype,"size",1);var Kc=ks;var Ol=V.constructTagName("illustrationprovider"),of=["svg"],Un={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var Rl=class{};Rl.context=Ol;var Pl=Rl;var qi=class extends ce{constructor(){super({context:Pl.context,initialValue:new Pl});this.illustrationSet=Un.ILLUSTRATION_SET;this.fileExtension=Un.FILE_EXTENSION}static get Context(){return Pl.context}updateValuesInContext(){this.fileExtension&&of.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Un.FILE_EXTENSION,this.context.value.fileExtension=Un.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())}};m([u({type:String,attribute:"illustration-set",reflect:!0})],qi.prototype,"illustrationSet",2),m([u({type:String})],qi.prototype,"url",2),m([u({type:String,attribute:"file-extension",reflect:!0})],qi.prototype,"fileExtension",2),m([u({type:String,attribute:"cache-strategy"})],qi.prototype,"cacheStrategy",2),m([u({type:String,attribute:"cache-name"})],qi.prototype,"cacheName",2);var Hn=qi;var uT=[bt,U`
1328
1328
  :host {
1329
1329
  --mdc-illustration-size: auto;
1330
1330
  }
@@ -1332,7 +1332,7 @@
1332
1332
  height: var(--mdc-illustration-size);
1333
1333
  width: var(--mdc-illustration-size);
1334
1334
  }
1335
- `],of=mT;var sf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),nf=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let c=d(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?sf(f).then(y=>y.text()):ul(s,r).then(y=>y.get(f).then(I=>I||sf(f.clone()).then($=>{var Y;return $.status<400&&$.headers.has("content-type")?(Y=y.set)==null?void 0:Y.call(y,f,$.clone()).then(()=>$.text()):$.text()})).catch(I=>{throw new Error(`Error in caching the Illustration ${o}, ${I}`)}))};var af=V.constructTagName("illustration"),lf={NAME:void 0};var fi=class extends q{constructor(){super();this.name=lf.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=he.consume({host:this,context:Hn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","illustration"),r.setAttribute("aria-hidden","true"),r}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:r,url:s,cacheName:d,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&s&&r&&this.name){let y=()=>{var I;return(I=this.abortController)==null||I.abort(),this.abortController=new AbortController,this.abortController.signal};return nf({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:y}).then(I=>{let $=this.prepareIllustrationElement(I);this.handleIllustrationLoadedSuccess($)}).catch(I=>{this.handleIllustrationLoadedFailure(I)})}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 r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIllustrationLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(r=>{r.name!=="AbortError"&&this.onerror&&this.onerror(r)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?J.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return C` ${this.illustrationData} `}};fi.styles=[...q.styles,...of],m([ut()],fi.prototype,"illustrationData",2),m([u({type:String,reflect:!0})],fi.prototype,"name",2),m([u({type:String,attribute:"aria-label"})],fi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],fi.prototype,"ariaLabelledby",2),m([ut()],fi.prototype,"abortController",2);var Gc=fi;Gc.register(af);var uT=Gc;Hc.register(tf);var fT=Hc;var vT=U`
1335
+ `],sf=uT;var nf=async a=>fetch(a).then(o=>{if(!o.ok)throw new Error("There was a problem while fetching the illustration!");return o}),af=async({url:a,name:o,fileExtension:t,cacheStrategy:r,cacheName:s,renewSignal:d})=>{let c=d(),f=new Request(`${a}/${o}.${t}`,{signal:c});return!s||!r||!["in-memory-cache","web-cache-api"].includes(r)?nf(f).then(y=>y.text()):fl(s,r).then(y=>y.get(f).then(I=>I||nf(f.clone()).then($=>{var Y;return $.status<400&&$.headers.has("content-type")?(Y=y.set)==null?void 0:Y.call(y,f,$.clone()).then(()=>$.text()):$.text()})).catch(I=>{throw new Error(`Error in caching the Illustration ${o}, ${I}`)}))};var lf=V.constructTagName("illustration"),df={NAME:void 0};var fi=class extends X{constructor(){super();this.name=df.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=he.consume({host:this,context:Hn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let r=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","illustration"),r.setAttribute("aria-hidden","true"),r}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:r,url:s,cacheName:d,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&s&&r&&this.name){let y=()=>{var I;return(I=this.abortController)==null||I.abort(),this.abortController=new AbortController,this.abortController.signal};return af({url:s,name:this.name,fileExtension:r,cacheName:d,cacheStrategy:f,renewSignal:y}).then(I=>{let $=this.prepareIllustrationElement(I);this.handleIllustrationLoadedSuccess($)}).catch(I=>{this.handleIllustrationLoadedFailure(I)})}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 r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIllustrationLoadedFailure(t){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(r)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(r=>{r.name!=="AbortError"&&this.onerror&&this.onerror(r)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?J.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return C` ${this.illustrationData} `}};fi.styles=[...X.styles,...sf],m([ut()],fi.prototype,"illustrationData",2),m([u({type:String,reflect:!0})],fi.prototype,"name",2),m([u({type:String,attribute:"aria-label"})],fi.prototype,"ariaLabel",2),m([u({type:String,attribute:"aria-labelledby"})],fi.prototype,"ariaLabelledby",2),m([ut()],fi.prototype,"abortController",2);var Wc=fi;Wc.register(lf);var fT=Wc;Kc.register(ef);var vT=Kc;var gT=U`
1336
1336
  :host {
1337
1337
  --mdc-appheader-height: 4rem;
1338
1338
  }
@@ -1366,7 +1366,7 @@
1366
1366
  justify-content: flex-end;
1367
1367
  flex: 1;
1368
1368
  }
1369
- `,df=[vT];var Pl=class extends q{render(){return C`
1369
+ `,cf=[gT];var Dl=class extends X{render(){return C`
1370
1370
  <header part="container">
1371
1371
  <div part="leading-section">
1372
1372
  <slot name="leading"></slot>
@@ -1376,7 +1376,7 @@
1376
1376
  <slot name="trailing"></slot>
1377
1377
  </div>
1378
1378
  </header>
1379
- `}};Pl.styles=[...q.styles,...df];var Kc=Pl;var cf=V.constructTagName("appheader");Kc.register(cf);var gT=Kc;var hf=V.constructTagName("avatar"),Me={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Wc=99,bT="user-regular",Ut={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ks={TYPE:Me.PHOTO,SIZE:Ut[32],ICON_NAME:bT};var Dl=a=>{class o extends a{constructor(){super(...arguments);this.size=ks.SIZE;this.isTyping=!1}}return m([u({type:String})],o.prototype,"src",2),m([u({type:String})],o.prototype,"initials",2),m([u({type:String})],o.prototype,"presence",2),m([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),m([u({type:Number})],o.prototype,"counter",2),m([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var yT=[bt,U`
1379
+ `}};Dl.styles=[...X.styles,...cf];var Yc=Dl;var hf=V.constructTagName("appheader");Yc.register(hf);var bT=Yc;var pf=V.constructTagName("avatar"),Me={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},jc=99,yT="user-regular",Ut={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Ns={TYPE:Me.PHOTO,SIZE:Ut[32],ICON_NAME:yT};var Fl=a=>{class o extends a{constructor(){super(...arguments);this.size=Ns.SIZE;this.isTyping=!1}}return m([u({type:String})],o.prototype,"src",2),m([u({type:String})],o.prototype,"initials",2),m([u({type:String})],o.prototype,"presence",2),m([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),m([u({type:Number})],o.prototype,"counter",2),m([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var ET=[bt,U`
1380
1380
  :host {
1381
1381
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
1382
1382
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -1533,8 +1533,8 @@
1533
1533
  outline: 0.125rem solid;
1534
1534
  }
1535
1535
  }
1536
- `],pf=yT;var mf=V.constructTagName("presence"),we={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},ee={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Ns={TYPE:we.ACTIVE,SIZE:ee[32]};var uf=a=>({[Ut[124]]:ee[124],[Ut[88]]:ee[88],[Ut[72]]:ee[72],[Ut[64]]:ee[64],[Ut[48]]:ee[48],[Ut[32]]:ee[32],[Ut[24]]:ee[24]})[a]||ee[32],ff=a=>({[Ut[124]]:4.75,[Ut[88]]:3,[Ut[72]]:2.5,[Ut[64]]:2.25,[Ut[48]]:1.75,[Ut[32]]:1.25,[Ut[24]]:1})[a]||1.25,vf=a=>({[Ut[124]]:ot.HEADING_XLARGE_MEDIUM,[Ut[88]]:ot.HEADING_LARGE_MEDIUM,[Ut[72]]:ot.HEADING_MIDSIZE_MEDIUM,[Ut[64]]:ot.HEADING_SMALL_MEDIUM,[Ut[48]]:ot.HEADING_SMALL_MEDIUM,[Ut[32]]:ot.BODY_MIDSIZE_MEDIUM,[Ut[24]]:ot.BODY_SMALL_MEDIUM})[a]||ot.BODY_MIDSIZE_MEDIUM;var Gn=class extends Dl(te(q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Me.COUNTER&&(this.counter||this.counter===0)||this.isTyping?j:this.presence?C`
1537
- <mdc-presence part="presence" type="${this.presence}" size="${uf(this.size)}"></mdc-presence>
1536
+ `],mf=ET;var uf=V.constructTagName("presence"),we={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},ee={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Ls={TYPE:we.ACTIVE,SIZE:ee[32]};var ff=a=>({[Ut[124]]:ee[124],[Ut[88]]:ee[88],[Ut[72]]:ee[72],[Ut[64]]:ee[64],[Ut[48]]:ee[48],[Ut[32]]:ee[32],[Ut[24]]:ee[24]})[a]||ee[32],vf=a=>({[Ut[124]]:4.75,[Ut[88]]:3,[Ut[72]]:2.5,[Ut[64]]:2.25,[Ut[48]]:1.75,[Ut[32]]:1.25,[Ut[24]]:1})[a]||1.25,gf=a=>({[Ut[124]]:ot.HEADING_XLARGE_MEDIUM,[Ut[88]]:ot.HEADING_LARGE_MEDIUM,[Ut[72]]:ot.HEADING_MIDSIZE_MEDIUM,[Ut[64]]:ot.HEADING_SMALL_MEDIUM,[Ut[48]]:ot.HEADING_SMALL_MEDIUM,[Ut[32]]:ot.BODY_MIDSIZE_MEDIUM,[Ut[24]]:ot.BODY_SMALL_MEDIUM})[a]||ot.BODY_MIDSIZE_MEDIUM;var Gn=class extends Fl(te(X)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Me.COUNTER&&(this.counter||this.counter===0)||this.isTyping?j:this.presence?C`
1537
+ <mdc-presence part="presence" type="${this.presence}" size="${ff(this.size)}"></mdc-presence>
1538
1538
  `:j}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return C`
1539
1539
  <img
1540
1540
  part="photo"
@@ -1544,12 +1544,12 @@
1544
1544
  @load="${this.handleOnLoad}"
1545
1545
  @error="${this.handleOnError}"
1546
1546
  />
1547
- `}iconTemplate(){let t=this.iconName||ks.ICON_NAME;return C`
1548
- <mdc-icon name="${tt(t)}" length-unit="rem" size="${ff(this.size)}"></mdc-icon>
1549
- `}textTemplate(t){return C` <mdc-text type="${vf(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>Wc?`${Wc}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let r="";return t===Me.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),t===Me.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?Me.PHOTO:this.iconName?Me.ICON:this.initials?Me.TEXT:this.counter||this.counter===0?Me.COUNTER:Me.ICON}getTemplateBasedOnType(t){switch(t){case Me.PHOTO:return this.photoTemplate();case Me.TEXT:case Me.COUNTER:return this.generateTextContent(t);case Me.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?C`<div part="loading-wrapper"><div part="loader"></div></div>`:j}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?j:t===Me.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():j}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return C`
1547
+ `}iconTemplate(){let t=this.iconName||Ns.ICON_NAME;return C`
1548
+ <mdc-icon name="${tt(t)}" length-unit="rem" size="${vf(this.size)}"></mdc-icon>
1549
+ `}textTemplate(t){return C` <mdc-text type="${gf(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>jc?`${jc}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let r="";return t===Me.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),t===Me.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?Me.PHOTO:this.iconName?Me.ICON:this.initials?Me.TEXT:this.counter||this.counter===0?Me.COUNTER:Me.ICON}getTemplateBasedOnType(t){switch(t){case Me.PHOTO:return this.photoTemplate();case Me.TEXT:case Me.COUNTER:return this.generateTextContent(t);case Me.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?C`<div part="loading-wrapper"><div part="loader"></div></div>`:j}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?j:t===Me.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():j}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return C`
1550
1550
  ${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
1551
1551
  ${this.getPresenceTemplateBasedOnType(t)}
1552
- `}};Gn.styles=[...q.styles,...pf],m([ut()],Gn.prototype,"isPhotoLoaded",2);var Yc=Gn;var ET=[bt,U`
1552
+ `}};Gn.styles=[...X.styles,...mf],m([ut()],Gn.prototype,"isPhotoLoaded",2);var qc=Gn;var TT=[bt,U`
1553
1553
  :host {
1554
1554
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
1555
1555
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -1643,17 +1643,17 @@
1643
1643
  :host::part(mdc-presence-icon__scheduled) {
1644
1644
  color: var(--mdc-presence-scheduled-background-color);
1645
1645
  }
1646
- `],gf=ET;var bf=a=>{switch(a){case we.AWAY:return"recents-presence-badge-filled";case we.AWAY_CALLING:return"away-calling-presence-filled";case we.BUSY:return"busy-presence-bold";case we.DND:return"dnd-presence-badge-filled";case we.MEETING:return"camera-filled";case we.ON_CALL:return"handset-filled";case we.ON_DEVICE:return"generic-device-video-badge-filled";case we.ON_MOBILE:return"phone-badge-filled";case we.PAUSE:return"pause-badge-filled";case we.PTO:return"pto-presence-filled";case we.PRESENTING:return"share-screen-badge-filled";case we.QUIET:return"quiet-hours-presence-filled";case we.SCHEDULED:return"meetings-presence-badge-filled";case we.ACTIVE:default:return"active-presence-small-filled"}},yf=a=>({[ee[124]]:2.25,[ee[88]]:1.625,[ee[72]]:1.3125,[ee[64]]:1.1875,[ee[48]]:.875,[ee[32]]:.875,[ee[24]]:.875})[a]||.875;var Oo=class extends q{constructor(){super(...arguments);this.type=Ns.TYPE;this.size=Ns.SIZE;this.currentIconType=Ns.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(ee).includes(t)?`${t}`:Ns.SIZE.toString())}get icon(){let t=bf(this.type);return t==="active-presence-small-filled"&&(this.type=Ns.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return C`
1646
+ `],bf=TT;var yf=a=>{switch(a){case we.AWAY:return"recents-presence-badge-filled";case we.AWAY_CALLING:return"away-calling-presence-filled";case we.BUSY:return"busy-presence-bold";case we.DND:return"dnd-presence-badge-filled";case we.MEETING:return"camera-filled";case we.ON_CALL:return"handset-filled";case we.ON_DEVICE:return"generic-device-video-badge-filled";case we.ON_MOBILE:return"phone-badge-filled";case we.PAUSE:return"pause-badge-filled";case we.PTO:return"pto-presence-filled";case we.PRESENTING:return"share-screen-badge-filled";case we.QUIET:return"quiet-hours-presence-filled";case we.SCHEDULED:return"meetings-presence-badge-filled";case we.ACTIVE:default:return"active-presence-small-filled"}},Ef=a=>({[ee[124]]:2.25,[ee[88]]:1.625,[ee[72]]:1.3125,[ee[64]]:1.1875,[ee[48]]:.875,[ee[32]]:.875,[ee[24]]:.875})[a]||.875;var Oo=class extends X{constructor(){super(...arguments);this.type=Ls.TYPE;this.size=Ls.SIZE;this.currentIconType=Ls.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(ee).includes(t)?`${t}`:Ls.SIZE.toString())}get icon(){let t=yf(this.type);return t==="active-presence-small-filled"&&(this.type=Ls.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return C`
1647
1647
  <div part="presence-content">
1648
1648
  <mdc-icon
1649
1649
  part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
1650
1650
  name="${this.icon}"
1651
- size="${yf(this.size)}"
1651
+ size="${Ef(this.size)}"
1652
1652
  @load="${this.handleOnLoad}"
1653
1653
  @error="${this.handleOnError}"
1654
1654
  ></mdc-icon>
1655
1655
  </div>
1656
- `}};Oo.styles=[...q.styles,...gf],m([u({type:String,reflect:!0})],Oo.prototype,"type",2),m([u({type:Number,reflect:!0})],Oo.prototype,"size",2),m([ut()],Oo.prototype,"currentIconType",2);var jc=Oo;jc.register(mf);var TT=jc;Yc.register(hf);var xT=Yc;var AT=[bt,U`
1656
+ `}};Oo.styles=[...X.styles,...bf],m([u({type:String,reflect:!0})],Oo.prototype,"type",2),m([u({type:Number,reflect:!0})],Oo.prototype,"size",2),m([ut()],Oo.prototype,"currentIconType",2);var Xc=Oo;Xc.register(uf);var xT=Xc;qc.register(pf);var AT=qc;var ST=[bt,U`
1657
1657
  :host {
1658
1658
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
1659
1659
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
@@ -1692,7 +1692,7 @@
1692
1692
  --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
1693
1693
  --mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
1694
1694
  }
1695
- `,...St()],Ef=AT;var Kn=class extends Dl(te(pe)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=J.BUTTON,this.type=Ge.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ut).includes(t)?`${t}`:ks.SIZE.toString())}render(){return C`
1695
+ `,...St()],Tf=ST;var Kn=class extends Fl(te(pe)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=J.BUTTON,this.type=Ge.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ut).includes(t)?`${t}`:Ns.SIZE.toString())}render(){return C`
1696
1696
  <div part="overlay" aria-hidden="true"></div>
1697
1697
  <mdc-avatar
1698
1698
  exportparts="content, photo, presence, loading-wrapper, loader"
@@ -1704,7 +1704,7 @@
1704
1704
  size="${tt(this.size)}"
1705
1705
  src="${tt(this.src)}"
1706
1706
  ></mdc-avatar>
1707
- `}};Kn.styles=[...Ef],m([u({type:String,attribute:"aria-label"})],Kn.prototype,"ariaLabel",2);var qc=Kn;var Tf=V.constructTagName("avatarbutton");qc.register(Tf);var ST=qc;var xf=V.constructTagName("badge"),ur={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fl={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Xc={PRIMARY:"primary",SECONDARY:"secondary"},vi={TYPE:ur.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Xc.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var IT=[bt,U`
1707
+ `}};Kn.styles=[...Tf],m([u({type:String,attribute:"aria-label"})],Kn.prototype,"ariaLabel",2);var Zc=Kn;var xf=V.constructTagName("avatarbutton");Zc.register(xf);var IT=Zc;var Af=V.constructTagName("badge"),ur={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},$l={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Qc={PRIMARY:"primary",SECONDARY:"secondary"},vi={TYPE:ur.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Qc.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var _T=[bt,U`
1708
1708
  :host {
1709
1709
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1710
1710
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -1783,7 +1783,7 @@
1783
1783
  outline: none;
1784
1784
  }
1785
1785
  }
1786
- `],Af=IT;var Wr=class extends te(q){constructor(){super(...arguments);this.variant=vi.VARIANT;this.maxCounter=vi.MAX_COUNTER;this.overlay=vi.OVERLAY;this.ariaLabel=null}getCounterText(t,r){return r===void 0||typeof r!="number"||t===0?"":r>t?`${t}+`:t>vi.MAX_COUNTER_LIMIT||r>vi.MAX_COUNTER_LIMIT?`${vi.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(t){return C`
1786
+ `],Sf=_T;var Wr=class extends te(X){constructor(){super(...arguments);this.variant=vi.VARIANT;this.maxCounter=vi.MAX_COUNTER;this.overlay=vi.OVERLAY;this.ariaLabel=null}getCounterText(t,r){return r===void 0||typeof r!="number"||t===0?"":r>t?`${t}+`:t>vi.MAX_COUNTER_LIMIT||r>vi.MAX_COUNTER_LIMIT?`${vi.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(t){return C`
1787
1787
  <mdc-icon
1788
1788
  part="badge-icon ${this.overlay?"badge-overlay":""}"
1789
1789
  name="${tt(t)}"
@@ -1797,7 +1797,7 @@
1797
1797
  >
1798
1798
  ${this.getCounterText(this.maxCounter,this.counter)}
1799
1799
  </mdc-text>
1800
- `}setRoleByAriaLabel(){this.ariaLabel?this.role=J.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Xc).includes(this.variant)&&(this.variant=vi.VARIANT);let{iconName:t,type:r}=this;switch(r){case ur.ICON:return this.getBadgeIcon(t||"");case ur.COUNTER:return this.getBadgeCounterText();case ur.SUCCESS:return this.getBadgeIcon(Fl.SUCCESS_ICON_NAME);case ur.WARNING:return this.getBadgeIcon(Fl.WARNING_ICON_NAME);case ur.ERROR:return this.getBadgeIcon(Fl.ERROR_ICON_NAME);case ur.DOT:default:return this.type=ur.DOT,this.getBadgeDot()}}};Wr.styles=[...q.styles,...Af],m([u({type:String,reflect:!0})],Wr.prototype,"type",2),m([u({type:String,reflect:!0})],Wr.prototype,"variant",2),m([u({type:Number})],Wr.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],Wr.prototype,"maxCounter",2),m([u({type:Boolean})],Wr.prototype,"overlay",2),m([u({type:String,attribute:"aria-label"})],Wr.prototype,"ariaLabel",2);var Zc=Wr;Zc.register(xf);var _T=Zc;var CT=U`
1800
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role=J.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Qc).includes(this.variant)&&(this.variant=vi.VARIANT);let{iconName:t,type:r}=this;switch(r){case ur.ICON:return this.getBadgeIcon(t||"");case ur.COUNTER:return this.getBadgeCounterText();case ur.SUCCESS:return this.getBadgeIcon($l.SUCCESS_ICON_NAME);case ur.WARNING:return this.getBadgeIcon($l.WARNING_ICON_NAME);case ur.ERROR:return this.getBadgeIcon($l.ERROR_ICON_NAME);case ur.DOT:default:return this.type=ur.DOT,this.getBadgeDot()}}};Wr.styles=[...X.styles,...Sf],m([u({type:String,reflect:!0})],Wr.prototype,"type",2),m([u({type:String,reflect:!0})],Wr.prototype,"variant",2),m([u({type:Number})],Wr.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],Wr.prototype,"maxCounter",2),m([u({type:Boolean})],Wr.prototype,"overlay",2),m([u({type:String,attribute:"aria-label"})],Wr.prototype,"ariaLabel",2);var Jc=Wr;Jc.register(Af);var CT=Jc;var wT=U`
1801
1801
  :host {
1802
1802
  display: block;
1803
1803
  height: 100%;
@@ -1811,7 +1811,7 @@
1811
1811
  width: 100%;
1812
1812
  object-fit: contain;
1813
1813
  }
1814
- `,Sf=[CT];var Ro=class extends q{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let o=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(o),Promise.reject(o)}updated(o){super.updated(o),o.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),o.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(o,t,r){let c=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return c&&Object.entries(r).forEach(([f,y])=>{c.setAttribute(f,y)}),c||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([r,s])=>{o.setAttribute(r,s)}),o}handleBrandVisualLoadedSuccess(o){this.brandVisualData=this.injectTemplateAttributes(o,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(o){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:o}});this.dispatchEvent(t)}render(){return C` ${this.brandVisualData} `}};Ro.styles=[...q.styles,...Sf],m([ut()],Ro.prototype,"brandVisualData",2),m([u({type:String,reflect:!0})],Ro.prototype,"name",2),m([u({type:String,reflect:!0,attribute:"alt-text"})],Ro.prototype,"altText",2);var Qc=Ro;var If=V.constructTagName("brandvisual");Qc.register(If);var wT=Qc;var kT=U`
1814
+ `,If=[wT];var Ro=class extends X{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let o=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(o),Promise.reject(o)}updated(o){super.updated(o),o.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),o.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(o,t,r){let c=new DOMParser().parseFromString(o.strings[0],"text/html").querySelector(t);return c&&Object.entries(r).forEach(([f,y])=>{c.setAttribute(f,y)}),c||o}injectHtmlAttributes(o,t){return Object.entries(t).forEach(([r,s])=>{o.setAttribute(r,s)}),o}handleBrandVisualLoadedSuccess(o){this.brandVisualData=this.injectTemplateAttributes(o,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(o){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:o}});this.dispatchEvent(t)}render(){return C` ${this.brandVisualData} `}};Ro.styles=[...X.styles,...If],m([ut()],Ro.prototype,"brandVisualData",2),m([u({type:String,reflect:!0})],Ro.prototype,"name",2),m([u({type:String,reflect:!0,attribute:"alt-text"})],Ro.prototype,"altText",2);var th=Ro;var _f=V.constructTagName("brandvisual");th.register(_f);var kT=th;var NT=U`
1815
1815
  :host {
1816
1816
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
1817
1817
  --mdc-bullet-size: 0.25rem;
@@ -1831,7 +1831,7 @@
1831
1831
  :host([size='large']) {
1832
1832
  --mdc-bullet-size: 1rem;
1833
1833
  }
1834
- `,_f=[kT];var Cf=V.constructTagName("bullet"),wf={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Wn=class extends q{constructor(){super(...arguments);this.size=wf.SMALL}};Wn.styles=[...q.styles,..._f],m([u({type:String,reflect:!0})],Wn.prototype,"size",2);var Jc=Wn;Jc.register(Cf);var NT=Jc;var kf=V.constructTagName("buttongroup"),LT={40:40,32:32,28:28,24:24},MT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},OT={PRIMARY:"primary",SECONDARY:"secondary"},$l={SIZE:LT[28],VARIANT:OT.PRIMARY,ORIENTATION:MT.HORIZONTAL};var RT=U`
1834
+ `,Cf=[NT];var wf=V.constructTagName("bullet"),kf={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Wn=class extends X{constructor(){super(...arguments);this.size=kf.SMALL}};Wn.styles=[...X.styles,...Cf],m([u({type:String,reflect:!0})],Wn.prototype,"size",2);var eh=Wn;eh.register(wf);var LT=eh;var Nf=V.constructTagName("buttongroup"),MT={40:40,32:32,28:28,24:24},OT={HORIZONTAL:"horizontal",VERTICAL:"vertical"},RT={PRIMARY:"primary",SECONDARY:"secondary"},zl={SIZE:MT[28],VARIANT:RT.PRIMARY,ORIENTATION:OT.HORIZONTAL};var PT=U`
1835
1835
  :host {
1836
1836
  --mdc-buttongroup-border-radius: 1.25rem;
1837
1837
  --mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
@@ -1931,7 +1931,7 @@
1931
1931
  :host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
1932
1932
  width: 2.5rem;
1933
1933
  }
1934
- `,Nf=[bt,RT];var gi=class extends q{constructor(){super(...arguments);this.orientation=$l.ORIENTATION;this.variant=$l.VARIANT;this.size=$l.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return C`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};gi.styles=[...q.styles,...Nf],m([u({type:String,reflect:!0})],gi.prototype,"orientation",2),m([u({type:String,reflect:!0})],gi.prototype,"variant",2),m([u({type:Number,reflect:!0})],gi.prototype,"size",2),m([u({type:Boolean,reflect:!0})],gi.prototype,"compact",2),m([Ft({selector:"mdc-button"})],gi.prototype,"buttons",2);var th=gi;th.register(kf);var PT=th;var Wt=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return m([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Lf=V.constructTagName("linksimple"),Ls={INLINE:!1,INVERTED:!1};var DT=[bt,U`
1934
+ `,Lf=[bt,PT];var gi=class extends X{constructor(){super(...arguments);this.orientation=zl.ORIENTATION;this.variant=zl.VARIANT;this.size=zl.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return C`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};gi.styles=[...X.styles,...Lf],m([u({type:String,reflect:!0})],gi.prototype,"orientation",2),m([u({type:String,reflect:!0})],gi.prototype,"variant",2),m([u({type:Number,reflect:!0})],gi.prototype,"size",2),m([u({type:Boolean,reflect:!0})],gi.prototype,"compact",2),m([Ft({selector:"mdc-button"})],gi.prototype,"buttons",2);var rh=gi;rh.register(Nf);var DT=rh;var Wt=a=>{class o extends a{constructor(){super(...arguments);this.dataAriaLabel=null}}return m([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var Mf=V.constructTagName("linksimple"),Ms={INLINE:!1,INVERTED:!1};var FT=[bt,U`
1935
1935
  :host {
1936
1936
  --mdc-link-border-radius: 0.25rem;
1937
1937
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -2010,7 +2010,7 @@
2010
2010
  :host([inline])::part(anchor) {
2011
2011
  text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
2012
2012
  }
2013
- `,...St(!0)],Mf=DT;var Oe=class extends Wt(Gt(q)){constructor(){super(...arguments);this.inline=Ls.INLINE;this.inverted=Ls.INVERTED;this.target="_self"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleNavigation.bind(this)),this.addEventListener("keydown",this.handleNavigation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation.bind(this)),this.removeEventListener("keydown",this.handleNavigation.bind(this))}click(){var t,r,s,d;this.disabled||(d=(s=(r=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:r.call(t,"a"))==null?void 0:s.click)==null||d.call(s)}handleNavigation(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}setDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}renderAnchorContent(){return C`<slot></slot>`}render(){var t;return C`
2013
+ `,...St(!0)],Of=FT;var Oe=class extends Wt(Gt(X)){constructor(){super(...arguments);this.inline=Ms.INLINE;this.inverted=Ms.INVERTED;this.target="_self"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleNavigation.bind(this)),this.addEventListener("keydown",this.handleNavigation.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation.bind(this)),this.removeEventListener("keydown",this.handleNavigation.bind(this))}click(){var t,r,s,d;this.disabled||(d=(s=(r=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:r.call(t,"a"))==null?void 0:s.click)==null||d.call(s)}handleNavigation(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}setDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this.disabled)}renderAnchorContent(){return C`<slot></slot>`}render(){var t;return C`
2014
2014
  <a
2015
2015
  class="mdc-focus-ring"
2016
2016
  part="anchor"
@@ -2027,7 +2027,7 @@
2027
2027
  >
2028
2028
  ${this.renderAnchorContent()}
2029
2029
  </a>
2030
- `}};Oe.styles=[...q.styles,...Mf],Oe.shadowRootOptions={...q.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],Oe.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],Oe.prototype,"inverted",2),m([u({type:String,reflect:!0})],Oe.prototype,"href",2),m([u({type:String,reflect:!0})],Oe.prototype,"target",2),m([u({type:String,reflect:!0})],Oe.prototype,"rel",2),m([u({type:String,reflect:!0})],Oe.prototype,"download",2),m([u({type:String,reflect:!0})],Oe.prototype,"ping",2),m([u({type:String,reflect:!0})],Oe.prototype,"hreflang",2),m([u({type:String,reflect:!0})],Oe.prototype,"type",2),m([u({type:String,reflect:!0})],Oe.prototype,"referrerpolicy",2);var Yr=Oe;var FT=U`
2030
+ `}};Oe.styles=[...X.styles,...Of],Oe.shadowRootOptions={...X.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],Oe.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],Oe.prototype,"inverted",2),m([u({type:String,reflect:!0})],Oe.prototype,"href",2),m([u({type:String,reflect:!0})],Oe.prototype,"target",2),m([u({type:String,reflect:!0})],Oe.prototype,"rel",2),m([u({type:String,reflect:!0})],Oe.prototype,"download",2),m([u({type:String,reflect:!0})],Oe.prototype,"ping",2),m([u({type:String,reflect:!0})],Oe.prototype,"hreflang",2),m([u({type:String,reflect:!0})],Oe.prototype,"type",2),m([u({type:String,reflect:!0})],Oe.prototype,"referrerpolicy",2);var Yr=Oe;var $T=U`
2031
2031
  :host {
2032
2032
  border: unset;
2033
2033
  }
@@ -2081,11 +2081,11 @@
2081
2081
  :host([variant='secondary'][soft-disabled])::part(anchor) {
2082
2082
  border-color: var(--mdc-button-border-color);
2083
2083
  }
2084
- `,Of=[FT,...St(!0)];var Ms=class extends sl(Yr){constructor(){super(...arguments);this.size=Ge.SIZE}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}renderAnchorContent(){return C`
2084
+ `,Rf=[$T,...St(!0)];var Os=class extends nl(Yr){constructor(){super(...arguments);this.size=Ge.SIZE}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}update(t){super.update(t),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}renderAnchorContent(){return C`
2085
2085
  ${this.prefixIcon?C`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
2086
2086
  <slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
2087
2087
  ${this.postfixIcon?C`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
2088
- `}};Ms.styles=[...No.styles,...Of],m([u({type:Number,reflect:!0})],Ms.prototype,"size",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Ms.prototype,"softDisabled",2);var eh=Ms;var Rf=V.constructTagName("buttonlink");eh.register(Rf);var $T=eh;var zl=a=>{class o extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=me.VARIANT;this.orientation=me.ORIENTATION;this.titleTagName=me.TAGNAME;this.subtitleTagName=me.TAGNAME}renderImage(){return this.imageSrc?C`<div part="image-wrapper">
2088
+ `}};Os.styles=[...No.styles,...Rf],m([u({type:Number,reflect:!0})],Os.prototype,"size",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Os.prototype,"softDisabled",2);var ih=Os;var Pf=V.constructTagName("buttonlink");ih.register(Pf);var zT=ih;var Vl=a=>{class o extends a{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=me.VARIANT;this.orientation=me.ORIENTATION;this.titleTagName=me.TAGNAME;this.subtitleTagName=me.TAGNAME}renderImage(){return this.imageSrc?C`<div part="image-wrapper">
2089
2089
  <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
2090
2090
  </div>`:j}renderIcon(){return this.iconName?C`<mdc-icon
2091
2091
  part="icon"
@@ -2103,7 +2103,7 @@
2103
2103
  >${this.subtitle}</mdc-text
2104
2104
  >`:j}
2105
2105
  </slot>
2106
- </div>`}}return m([u({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),m([u({type:String,reflect:!0})],o.prototype,"subtitle",2),m([u({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),m([u({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),m([u({type:String,reflect:!0})],o.prototype,"variant",2),m([u({type:String,reflect:!0})],o.prototype,"orientation",2),m([u({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),m([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),m([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var zT=U`
2106
+ </div>`}}return m([u({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),m([u({type:String,reflect:!0})],o.prototype,"subtitle",2),m([u({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),m([u({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),m([u({type:String,reflect:!0})],o.prototype,"variant",2),m([u({type:String,reflect:!0})],o.prototype,"orientation",2),m([u({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),m([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),m([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var VT=U`
2107
2107
  :host {
2108
2108
  --mdc-card-width: 20rem;
2109
2109
  align-items: stretch;
@@ -2212,7 +2212,7 @@
2212
2212
  mdc-text::part(text) {
2213
2213
  margin: 0;
2214
2214
  }
2215
- `,Pf=[bt,zT];var Yn=class extends zl(Is(q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(r=>{r.matches(me.BUTTON)&&(r.setAttribute("variant",zt.TERTIARY),r.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return C`<div part="header">
2215
+ `,Df=[bt,VT];var Yn=class extends Vl(_s(X)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(r=>{r.matches(me.BUTTON)&&(r.setAttribute("variant",zt.TERTIARY),r.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return C`<div part="header">
2216
2216
  ${this.renderIcon()} ${this.renderTitle()}
2217
2217
  <div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
2218
2218
  </div>`}render(){return C`
@@ -2226,7 +2226,7 @@
2226
2226
  </div>
2227
2227
  ${this.renderFooter()}
2228
2228
  </div>
2229
- `}};Yn.styles=[...q.styles,...Pf],m([Ft({slot:"icon-button"})],Yn.prototype,"iconButtons",2);var kr=Yn;kr.register(ju);var VT=kr;var BT=U`
2229
+ `}};Yn.styles=[...X.styles,...Df],m([Ft({slot:"icon-button"})],Yn.prototype,"iconButtons",2);var kr=Yn;kr.register(qu);var BT=kr;var UT=U`
2230
2230
  :host {
2231
2231
  cursor: pointer;
2232
2232
  user-select: none;
@@ -2248,7 +2248,7 @@
2248
2248
  :host([disabled])::part(image) {
2249
2249
  opacity: 0.5;
2250
2250
  }
2251
- `,Df=[BT,...St()];var Vl=class extends zl(pe){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return C`
2251
+ `,Ff=[UT,...St()];var Bl=class extends Vl(pe){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return C`
2252
2252
  <slot name="image"> ${this.renderImage()} </slot>
2253
2253
  <div part="body">
2254
2254
  <div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
@@ -2256,7 +2256,7 @@
2256
2256
  <slot name="body"></slot>
2257
2257
  <slot name="after-body"></slot>
2258
2258
  </div>
2259
- `}};Vl.styles=[...kr.styles,...Df];var rh=Vl;var Ff=V.constructTagName("cardbutton");rh.register(Ff);var UT=rh;var $f=V.constructTagName("cardcheckbox"),ih={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Bl={CHECK:"check",CHECKBOX:"checkbox"},Ul={SELECTION_TYPE:Bl.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var HT=U`
2259
+ `}};Bl.styles=[...kr.styles,...Ff];var oh=Bl;var $f=V.constructTagName("cardbutton");oh.register($f);var HT=oh;var zf=V.constructTagName("cardcheckbox"),sh={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},Ul={CHECK:"check",CHECKBOX:"checkbox"},Hl={SELECTION_TYPE:Ul.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var GT=U`
2260
2260
  :host {
2261
2261
  cursor: pointer;
2262
2262
  user-select: none;
@@ -2313,12 +2313,12 @@
2313
2313
  :host([disabled])::part(check-icon) {
2314
2314
  color: var(--mds-color-theme-text-primary-disabled);
2315
2315
  }
2316
- `,zf=[HT,...St()];var Os=class extends Lt(Ct(Gt(Br(kr)))){constructor(){super();this.checked=!1;this.selectionType=Ul.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let r=this.getActionForKeyEvent(t);r===X.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),r===X.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===X.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?ih.CHECKED:ih.DEFAULT;switch(this.selectionType){case Bl.CHECK:return C`<mdc-icon
2316
+ `,Vf=[GT,...St()];var Rs=class extends Lt(Ct(Gt(Br(kr)))){constructor(){super();this.checked=!1;this.selectionType=Hl.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let r=this.getActionForKeyEvent(t);r===q.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),r===q.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===q.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?sh.CHECKED:sh.DEFAULT;switch(this.selectionType){case Ul.CHECK:return C`<mdc-icon
2317
2317
  part="check check-icon"
2318
- size="${Ul.ICON_SIZE}"
2319
- length-unit="${Ul.ICON_LENGTH_UNIT}"
2318
+ size="${Hl.ICON_SIZE}"
2319
+ length-unit="${Hl.ICON_LENGTH_UNIT}"
2320
2320
  name="${t}"
2321
- ></mdc-icon>`;case Bl.CHECKBOX:return C`<mdc-staticcheckbox
2321
+ ></mdc-icon>`;case Ul.CHECKBOX:return C`<mdc-staticcheckbox
2322
2322
  part="check"
2323
2323
  ?checked="${this.checked}"
2324
2324
  ?disabled="${this.disabled}"
@@ -2330,7 +2330,7 @@
2330
2330
  <slot name="body"></slot>
2331
2331
  <slot name="after-body"></slot>
2332
2332
  </div>
2333
- `}};Os.styles=[...kr.styles,...zf],m([u({type:Boolean,reflect:!0})],Os.prototype,"checked",2),m([u({type:String,attribute:"selection-type",reflect:!0})],Os.prototype,"selectionType",2);var oh=Os;var GT=[U`
2333
+ `}};Rs.styles=[...kr.styles,...Vf],m([u({type:Boolean,reflect:!0})],Rs.prototype,"checked",2),m([u({type:String,attribute:"selection-type",reflect:!0})],Rs.prototype,"selectionType",2);var nh=Rs;var KT=[U`
2334
2334
  :host {
2335
2335
  --mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-input-normal);
2336
2336
  --mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-normal);
@@ -2408,15 +2408,15 @@
2408
2408
  --mdc-staticcheckbox-icon-color: GrayText;
2409
2409
  }
2410
2410
  }
2411
- `],Vf=GT;var Bf=V.constructTagName("popover"),Nt={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"},Po={TONAL:"tonal",CONTRAST:"contrast"},sh={ABSOLUTE:"absolute",FIXED:"fixed"},KT={VIEWPORT:"viewport",DOCUMENT:"document"},At={PLACEMENT:Nt.BOTTOM,TRIGGER:Ke.CLICK,COLOR:Po.TONAL,STRATEGY:sh.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:KT.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:J.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},bi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Uf=V.constructTagName("formfieldwrapper"),Vt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ot={VALIDATION:Vt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Nt.TOP,TOGGLETIP_STRATEGY:sh.ABSOLUTE},jn={TAGNAME:pt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Hf=V.constructTagName("checkbox"),Hl={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Gf={ERROR:Vt.ERROR,DEFAULT:Vt.DEFAULT};var Kf=V.constructTagName("staticcheckbox");var Xi=class extends Gt(q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?C`
2411
+ `],Bf=KT;var Uf=V.constructTagName("popover"),Nt={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"},Po={TONAL:"tonal",CONTRAST:"contrast"},ah={ABSOLUTE:"absolute",FIXED:"fixed"},WT={VIEWPORT:"viewport",DOCUMENT:"document"},At={PLACEMENT:Nt.BOTTOM,TRIGGER:Ke.CLICK,COLOR:Po.TONAL,STRATEGY:ah.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:WT.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:J.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},bi={OPEN:"open",HOVER:"hover",CLOSE:"close"};var Hf=V.constructTagName("formfieldwrapper"),Vt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Ot={VALIDATION:Vt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Nt.TOP,TOGGLETIP_STRATEGY:ah.ABSOLUTE},jn={TAGNAME:pt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Gf=V.constructTagName("checkbox"),Gl={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},Kf={ERROR:Vt.ERROR,DEFAULT:Vt.DEFAULT};var Wf=V.constructTagName("staticcheckbox");var Xi=class extends Gt(X){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?C`
2412
2412
  <mdc-icon
2413
2413
  part="checkbox-icon"
2414
- name="${this.indeterminate?Hl.INDETERMINATE:Hl.CHECKED}"
2414
+ name="${this.indeterminate?Gl.INDETERMINATE:Gl.CHECKED}"
2415
2415
  size="1"
2416
2416
  length-unit="rem"
2417
2417
  ></mdc-icon>
2418
2418
  `:j;return C`<slot></slot>
2419
- <div part="icon-container">${t}</div>`}};Xi.styles=[...q.styles,...Vf],m([u({type:Boolean,reflect:!0})],Xi.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Xi.prototype,"indeterminate",2),m([u({type:Boolean,reflect:!0})],Xi.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xi.prototype,"softDisabled",2);var nh=Xi;nh.register(Kf);var WT=nh;oh.register($f);var YT=oh;var jT=U`
2419
+ <div part="icon-container">${t}</div>`}};Xi.styles=[...X.styles,...Bf],m([u({type:Boolean,reflect:!0})],Xi.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Xi.prototype,"indeterminate",2),m([u({type:Boolean,reflect:!0})],Xi.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xi.prototype,"softDisabled",2);var lh=Xi;lh.register(Wf);var YT=lh;nh.register(zf);var jT=nh;var qT=U`
2420
2420
  :host {
2421
2421
  cursor: pointer;
2422
2422
  user-select: none;
@@ -2469,7 +2469,7 @@
2469
2469
  :host([disabled])::part(image) {
2470
2470
  opacity: 0.5;
2471
2471
  }
2472
- `,Wf=[jT,...St()];var Rs=class extends Lt(Ct(Gt(Br(kr)))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(r=>{r.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){this.disabled||(super.click(),this.toggleChecked())}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,r){t[r].focus(),t[r].toggleChecked()}handleKeyDown(t){let r=this.getActionForKeyEvent(t);if(r===X.SPACE){t.preventDefault();return}if(this.disabled)return;let d=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),c=d.indexOf(this);if(r===X.DOWN||X.RIGHT===r){let f=(c+1)%d.length;this.updateCardRadio(d,f),this.keyDownEventHandled()}else if(r===X.UP||X.LEFT===r){let f=(c-1+d.length)%d.length;this.updateCardRadio(d,f),this.keyDownEventHandled()}r===X.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===X.SPACE&&this.toggleChecked()}renderHeader(){return C`<div part="header">
2472
+ `,Yf=[qT,...St()];var Ps=class extends Lt(Ct(Gt(Br(kr)))){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.toggleOnSpace.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(r=>{r.checked=!1}),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){this.disabled||(super.click(),this.toggleChecked())}setDisabled(t){this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(t,r){t[r].focus(),t[r].toggleChecked()}handleKeyDown(t){let r=this.getActionForKeyEvent(t);if(r===q.SPACE){t.preventDefault();return}if(this.disabled)return;let d=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),c=d.indexOf(this);if(r===q.DOWN||q.RIGHT===r){let f=(c+1)%d.length;this.updateCardRadio(d,f),this.keyDownEventHandled()}else if(r===q.UP||q.LEFT===r){let f=(c-1+d.length)%d.length;this.updateCardRadio(d,f),this.keyDownEventHandled()}r===q.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===q.SPACE&&this.toggleChecked()}renderHeader(){return C`<div part="header">
2473
2473
  ${this.renderIcon()} ${this.renderTitle()}
2474
2474
  <mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
2475
2475
  </div>`}render(){return C`
@@ -2480,7 +2480,7 @@
2480
2480
  <slot name="body"></slot>
2481
2481
  <slot name="after-body"></slot>
2482
2482
  </div>
2483
- `}};Rs.styles=[...kr.styles,...Wf],m([u({type:Boolean,reflect:!0})],Rs.prototype,"checked",2),m([u({type:String})],Rs.prototype,"name",2);var ah=Rs;var Gl=V.constructTagName("cardradio");var qT=[U`
2483
+ `}};Ps.styles=[...kr.styles,...Yf],m([u({type:Boolean,reflect:!0})],Ps.prototype,"checked",2),m([u({type:String})],Ps.prototype,"name",2);var dh=Ps;var Kl=V.constructTagName("cardradio");var XT=[U`
2484
2484
  :host {
2485
2485
  --mdc-staticradio-inner-circle-size: 0.375rem;
2486
2486
  --mdc-staticradio-outer-circle-size: 1rem;
@@ -2577,8 +2577,8 @@
2577
2577
  --mdc-staticradio-outer-circle-background-color: GrayText;
2578
2578
  }
2579
2579
  }
2580
- `],Yf=qT;var Do=class extends Gt(q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return C` <slot></slot>
2581
- <span part="radio-icon" class="radio-icon"></span>`}};Do.styles=[...q.styles,...Yf],m([u({type:Boolean,reflect:!0})],Do.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Do.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Do.prototype,"softDisabled",2);var lh=Do;var jf=V.constructTagName("staticradio");lh.register(jf);var XT=lh;ah.register(Gl);var ZT=ah;var jr=Math.min,Re=Math.max,Xn=Math.round,Zn=Math.floor,Nr=a=>({x:a,y:a}),QT={left:"right",right:"left",bottom:"top",top:"bottom"},JT={start:"end",end:"start"};function Wl(a,o,t){return Re(a,jr(o,t))}function Fo(a,o){return typeof a=="function"?a(o):a}function yi(a){return a.split("-")[0]}function $o(a){return a.split("-")[1]}function dh(a){return a==="x"?"y":"x"}function Yl(a){return a==="y"?"height":"width"}var tx=new Set(["top","bottom"]);function qr(a){return tx.has(yi(a))?"y":"x"}function jl(a){return dh(qr(a))}function Zf(a,o,t){t===void 0&&(t=!1);let r=$o(a),s=jl(a),d=Yl(s),c=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(c=qn(c)),[c,qn(c)]}function Qf(a){let o=qn(a);return[Kl(a),o,Kl(o)]}function Kl(a){return a.replace(/start|end/g,o=>JT[o])}var qf=["left","right"],Xf=["right","left"],ex=["top","bottom"],rx=["bottom","top"];function ix(a,o,t){switch(a){case"top":case"bottom":return t?o?Xf:qf:o?qf:Xf;case"left":case"right":return o?ex:rx;default:return[]}}function Jf(a,o,t,r){let s=$o(a),d=ix(yi(a),t==="start",r);return s&&(d=d.map(c=>c+"-"+s),o&&(d=d.concat(d.map(Kl)))),d}function qn(a){return a.replace(/left|right|bottom|top/g,o=>QT[o])}function ox(a){return{top:0,right:0,bottom:0,left:0,...a}}function ch(a){return typeof a!="number"?ox(a):{top:a,right:a,bottom:a,left:a}}function zo(a){let{x:o,y:t,width:r,height:s}=a;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function tv(a,o,t){let{reference:r,floating:s}=a,d=qr(o),c=jl(o),f=Yl(c),y=yi(o),I=d==="y",$=r.x+r.width/2-s.width/2,Y=r.y+r.height/2-s.height/2,Q=r[f]/2-s[f]/2,Z;switch(y){case"top":Z={x:$,y:r.y-s.height};break;case"bottom":Z={x:$,y:r.y+r.height};break;case"right":Z={x:r.x+r.width,y:Y};break;case"left":Z={x:r.x-s.width,y:Y};break;default:Z={x:r.x,y:r.y}}switch($o(o)){case"start":Z[c]-=Q*(t&&I?-1:1);break;case"end":Z[c]+=Q*(t&&I?-1:1);break}return Z}var ev=async(a,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:c}=t,f=d.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(o)),I=await c.getElementRects({reference:a,floating:o,strategy:s}),{x:$,y:Y}=tv(I,r,y),Q=r,Z={},it=0;for(let lt=0;lt<f.length;lt++){let{name:dt,fn:gt}=f[lt],{x:It,y:wt,data:jt,reset:Bt}=await gt({x:$,y:Y,initialPlacement:r,placement:Q,strategy:s,middlewareData:Z,rects:I,platform:c,elements:{reference:a,floating:o}});$=It!=null?It:$,Y=wt!=null?wt:Y,Z={...Z,[dt]:{...Z[dt],...jt}},Bt&&it<=50&&(it++,typeof Bt=="object"&&(Bt.placement&&(Q=Bt.placement),Bt.rects&&(I=Bt.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:s}):Bt.rects),{x:$,y:Y}=tv(I,Q,y)),lt=-1)}return{x:$,y:Y,placement:Q,strategy:s,middlewareData:Z}};async function ql(a,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:c,elements:f,strategy:y}=a,{boundary:I="clippingAncestors",rootBoundary:$="viewport",elementContext:Y="floating",altBoundary:Q=!1,padding:Z=0}=Fo(o,a),it=ch(Z),dt=f[Q?Y==="floating"?"reference":"floating":Y],gt=zo(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(dt)))==null||t?dt:dt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(f.floating)),boundary:I,rootBoundary:$,strategy:y})),It=Y==="floating"?{x:r,y:s,width:c.floating.width,height:c.floating.height}:c.reference,wt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(f.floating)),jt=await(d.isElement==null?void 0:d.isElement(wt))?await(d.getScale==null?void 0:d.getScale(wt))||{x:1,y:1}:{x:1,y:1},Bt=zo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:wt,strategy:y}):It);return{top:(gt.top-Bt.top+it.top)/jt.y,bottom:(Bt.bottom-gt.bottom+it.bottom)/jt.y,left:(gt.left-Bt.left+it.left)/jt.x,right:(Bt.right-gt.right+it.right)/jt.x}}var rv=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:c,elements:f,middlewareData:y}=o,{element:I,padding:$=0}=Fo(a,o)||{};if(I==null)return{};let Y=ch($),Q={x:t,y:r},Z=jl(s),it=Yl(Z),lt=await c.getDimensions(I),dt=Z==="y",gt=dt?"top":"left",It=dt?"bottom":"right",wt=dt?"clientHeight":"clientWidth",jt=d.reference[it]+d.reference[Z]-Q[Z]-d.floating[it],Bt=Q[Z]-d.reference[Z],qt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(I)),re=qt?qt[wt]:0;(!re||!await(c.isElement==null?void 0:c.isElement(qt)))&&(re=f.floating[wt]||d.floating[it]);let ve=jt/2-Bt/2,xr=re/2-lt[it]/2-1,$e=jr(Y[gt],xr),sr=jr(Y[It],xr),Ar=$e,Sr=re-lt[it]-sr,kt=re/2-lt[it]/2+ve,Te=Wl(Ar,kt,Sr),nr=!y.arrow&&$o(s)!=null&&kt!==Te&&d.reference[it]/2-(kt<Ar?$e:sr)-lt[it]/2<0,ar=nr?kt<Ar?kt-Ar:kt-Sr:0;return{[Z]:Q[Z]+ar,data:{[Z]:Te,centerOffset:kt-Te-ar,...nr&&{alignmentOffset:ar}},reset:nr}}});var iv=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:c,initialPlacement:f,platform:y,elements:I}=o,{mainAxis:$=!0,crossAxis:Y=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:lt=!0,...dt}=Fo(a,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=yi(s),It=qr(f),wt=yi(f)===f,jt=await(y.isRTL==null?void 0:y.isRTL(I.floating)),Bt=Q||(wt||!lt?[qn(f)]:Qf(f)),qt=it!=="none";!Q&&qt&&Bt.push(...Jf(f,lt,it,jt));let re=[f,...Bt],ve=await ql(o,dt),xr=[],$e=((r=d.flip)==null?void 0:r.overflows)||[];if($&&xr.push(ve[gt]),Y){let kt=Zf(s,c,jt);xr.push(ve[kt[0]],ve[kt[1]])}if($e=[...$e,{placement:s,overflows:xr}],!xr.every(kt=>kt<=0)){var sr,Ar;let kt=(((sr=d.flip)==null?void 0:sr.index)||0)+1,Te=re[kt];if(Te&&(!(Y==="alignment"?It!==qr(Te):!1)||$e.every(lr=>lr.overflows[0]>0&&qr(lr.placement)===It)))return{data:{index:kt,overflows:$e},reset:{placement:Te}};let nr=(Ar=$e.filter(ar=>ar.overflows[0]<=0).sort((ar,lr)=>ar.overflows[1]-lr.overflows[1])[0])==null?void 0:Ar.placement;if(!nr)switch(Z){case"bestFit":{var Sr;let ar=(Sr=$e.filter(lr=>{if(qt){let dr=qr(lr.placement);return dr===It||dr==="y"}return!0}).map(lr=>[lr.placement,lr.overflows.filter(dr=>dr>0).reduce((dr,ka)=>dr+ka,0)]).sort((lr,dr)=>lr[1]-dr[1])[0])==null?void 0:Sr[0];ar&&(nr=ar);break}case"initialPlacement":nr=f;break}if(s!==nr)return{reset:{placement:nr}}}return{}}}};var sx=new Set(["left","top"]);async function nx(a,o){let{placement:t,platform:r,elements:s}=a,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),c=yi(t),f=$o(t),y=qr(t)==="y",I=sx.has(c)?-1:1,$=d&&y?-1:1,Y=Fo(o,a),{mainAxis:Q,crossAxis:Z,alignmentAxis:it}=typeof Y=="number"?{mainAxis:Y,crossAxis:0,alignmentAxis:null}:{mainAxis:Y.mainAxis||0,crossAxis:Y.crossAxis||0,alignmentAxis:Y.alignmentAxis};return f&&typeof it=="number"&&(Z=f==="end"?it*-1:it),y?{x:Z*$,y:Q*I}:{x:Q*I,y:Z*$}}var ov=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,r;let{x:s,y:d,placement:c,middlewareData:f}=o,y=await nx(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:s+y.x,y:d+y.y,data:{...y,placement:c}}}}},sv=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:c=!1,limiter:f={fn:dt=>{let{x:gt,y:It}=dt;return{x:gt,y:It}}},...y}=Fo(a,o),I={x:t,y:r},$=await ql(o,y),Y=qr(yi(s)),Q=dh(Y),Z=I[Q],it=I[Y];if(d){let dt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",It=Z+$[dt],wt=Z-$[gt];Z=Wl(It,Z,wt)}if(c){let dt=Y==="y"?"top":"left",gt=Y==="y"?"bottom":"right",It=it+$[dt],wt=it-$[gt];it=Wl(It,it,wt)}let lt=f.fn({...o,[Q]:Z,[Y]:it});return{...lt,data:{x:lt.x-t,y:lt.y-r,enabled:{[Q]:d,[Y]:c}}}}}};var nv=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,r;let{placement:s,rects:d,platform:c,elements:f}=o,{apply:y=()=>{},...I}=Fo(a,o),$=await ql(o,I),Y=yi(s),Q=$o(s),Z=qr(s)==="y",{width:it,height:lt}=d.floating,dt,gt;Y==="top"||Y==="bottom"?(dt=Y,gt=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(gt=Y,dt=Q==="end"?"top":"bottom");let It=lt-$.top-$.bottom,wt=it-$.left-$.right,jt=jr(lt-$[dt],It),Bt=jr(it-$[gt],wt),qt=!o.middlewareData.shift,re=jt,ve=Bt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ve=wt),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(re=It),qt&&!Q){let $e=Re($.left,0),sr=Re($.right,0),Ar=Re($.top,0),Sr=Re($.bottom,0);Z?ve=it-2*($e!==0||sr!==0?$e+sr:Re($.left,$.right)):re=lt-2*(Ar!==0||Sr!==0?Ar+Sr:Re($.top,$.bottom))}await y({...o,availableWidth:ve,availableHeight:re});let xr=await c.getDimensions(f.floating);return it!==xr.width||lt!==xr.height?{reset:{rects:!0}}:{}}}};function Xl(){return typeof window<"u"}function Vo(a){return lv(a)?(a.nodeName||"").toLowerCase():"#document"}function We(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Lr(a){var o;return(o=(lv(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function lv(a){return Xl()?a instanceof Node||a instanceof We(a).Node:!1}function fr(a){return Xl()?a instanceof Element||a instanceof We(a).Element:!1}function Mr(a){return Xl()?a instanceof HTMLElement||a instanceof We(a).HTMLElement:!1}function av(a){return!Xl()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof We(a).ShadowRoot}var ax=new Set(["inline","contents"]);function Ds(a){let{overflow:o,overflowX:t,overflowY:r,display:s}=vr(a);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!ax.has(s)}var lx=new Set(["table","td","th"]);function dv(a){return lx.has(Vo(a))}var dx=[":popover-open",":modal"];function Qn(a){return dx.some(o=>{try{return a.matches(o)}catch{return!1}})}var cx=["transform","translate","scale","rotate","perspective"],hx=["transform","translate","scale","rotate","perspective","filter"],px=["paint","layout","strict","content"];function Zl(a){let o=Ql(),t=fr(a)?vr(a):a;return cx.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||hx.some(r=>(t.willChange||"").includes(r))||px.some(r=>(t.contain||"").includes(r))}function cv(a){let o=Ei(a);for(;Mr(o)&&!Bo(o);){if(Zl(o))return o;if(Qn(o))return null;o=Ei(o)}return null}function Ql(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var mx=new Set(["html","body","#document"]);function Bo(a){return mx.has(Vo(a))}function vr(a){return We(a).getComputedStyle(a)}function Jn(a){return fr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Ei(a){if(Vo(a)==="html")return a;let o=a.assignedSlot||a.parentNode||av(a)&&a.host||Lr(a);return av(o)?o.host:o}function hv(a){let o=Ei(a);return Bo(o)?a.ownerDocument?a.ownerDocument.body:a.body:Mr(o)&&Ds(o)?o:hv(o)}function Ps(a,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=hv(a),d=s===((r=a.ownerDocument)==null?void 0:r.body),c=We(s);if(d){let f=Jl(c);return o.concat(c,c.visualViewport||[],Ds(s)?s:[],f&&t?Ps(f):[])}return o.concat(s,Ps(s,[],t))}function Jl(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function uv(a){let o=vr(a),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=Mr(a),d=s?a.offsetWidth:t,c=s?a.offsetHeight:r,f=Xn(t)!==d||Xn(r)!==c;return f&&(t=d,r=c),{width:t,height:r,$:f}}function ph(a){return fr(a)?a:a.contextElement}function Fs(a){let o=ph(a);if(!Mr(o))return Nr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=uv(o),c=(d?Xn(t.width):t.width)/r,f=(d?Xn(t.height):t.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var ux=Nr(0);function fv(a){let o=We(a);return!Ql()||!o.visualViewport?ux:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function fx(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==We(a)?!1:o}function Uo(a,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=a.getBoundingClientRect(),d=ph(a),c=Nr(1);o&&(r?fr(r)&&(c=Fs(r)):c=Fs(a));let f=fx(d,t,r)?fv(d):Nr(0),y=(s.left+f.x)/c.x,I=(s.top+f.y)/c.y,$=s.width/c.x,Y=s.height/c.y;if(d){let Q=We(d),Z=r&&fr(r)?We(r):r,it=Q,lt=Jl(it);for(;lt&&r&&Z!==it;){let dt=Fs(lt),gt=lt.getBoundingClientRect(),It=vr(lt),wt=gt.left+(lt.clientLeft+parseFloat(It.paddingLeft))*dt.x,jt=gt.top+(lt.clientTop+parseFloat(It.paddingTop))*dt.y;y*=dt.x,I*=dt.y,$*=dt.x,Y*=dt.y,y+=wt,I+=jt,it=We(lt),lt=Jl(it)}}return zo({width:$,height:Y,x:y,y:I})}function mh(a,o){let t=Jn(a).scrollLeft;return o?o.left+t:Uo(Lr(a)).left+t}function vv(a,o,t){t===void 0&&(t=!1);let r=a.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:mh(a,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function vx(a){let{elements:o,rect:t,offsetParent:r,strategy:s}=a,d=s==="fixed",c=Lr(r),f=o?Qn(o.floating):!1;if(r===c||f&&d)return t;let y={scrollLeft:0,scrollTop:0},I=Nr(1),$=Nr(0),Y=Mr(r);if((Y||!Y&&!d)&&((Vo(r)!=="body"||Ds(c))&&(y=Jn(r)),Mr(r))){let Z=Uo(r);I=Fs(r),$.x=Z.x+r.clientLeft,$.y=Z.y+r.clientTop}let Q=c&&!Y&&!d?vv(c,y,!0):Nr(0);return{width:t.width*I.x,height:t.height*I.y,x:t.x*I.x-y.scrollLeft*I.x+$.x+Q.x,y:t.y*I.y-y.scrollTop*I.y+$.y+Q.y}}function gx(a){return Array.from(a.getClientRects())}function bx(a){let o=Lr(a),t=Jn(a),r=a.ownerDocument.body,s=Re(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=Re(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),c=-t.scrollLeft+mh(a),f=-t.scrollTop;return vr(r).direction==="rtl"&&(c+=Re(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:c,y:f}}function yx(a,o){let t=We(a),r=Lr(a),s=t.visualViewport,d=r.clientWidth,c=r.clientHeight,f=0,y=0;if(s){d=s.width,c=s.height;let I=Ql();(!I||I&&o==="fixed")&&(f=s.offsetLeft,y=s.offsetTop)}return{width:d,height:c,x:f,y}}var Ex=new Set(["absolute","fixed"]);function Tx(a,o){let t=Uo(a,!0,o==="fixed"),r=t.top+a.clientTop,s=t.left+a.clientLeft,d=Mr(a)?Fs(a):Nr(1),c=a.clientWidth*d.x,f=a.clientHeight*d.y,y=s*d.x,I=r*d.y;return{width:c,height:f,x:y,y:I}}function pv(a,o,t){let r;if(o==="viewport")r=yx(a,t);else if(o==="document")r=bx(Lr(a));else if(fr(o))r=Tx(o,t);else{let s=fv(a);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return zo(r)}function gv(a,o){let t=Ei(a);return t===o||!fr(t)||Bo(t)?!1:vr(t).position==="fixed"||gv(t,o)}function xx(a,o){let t=o.get(a);if(t)return t;let r=Ps(a,[],!1).filter(f=>fr(f)&&Vo(f)!=="body"),s=null,d=vr(a).position==="fixed",c=d?Ei(a):a;for(;fr(c)&&!Bo(c);){let f=vr(c),y=Zl(c);!y&&f.position==="fixed"&&(s=null),(d?!y&&!s:!y&&f.position==="static"&&!!s&&Ex.has(s.position)||Ds(c)&&!y&&gv(a,c))?r=r.filter($=>$!==c):s=f,c=Ei(c)}return o.set(a,r),r}function Ax(a){let{element:o,boundary:t,rootBoundary:r,strategy:s}=a,c=[...t==="clippingAncestors"?Qn(o)?[]:xx(o,this._c):[].concat(t),r],f=c[0],y=c.reduce((I,$)=>{let Y=pv(o,$,s);return I.top=Re(Y.top,I.top),I.right=jr(Y.right,I.right),I.bottom=jr(Y.bottom,I.bottom),I.left=Re(Y.left,I.left),I},pv(o,f,s));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Sx(a){let{width:o,height:t}=uv(a);return{width:o,height:t}}function Ix(a,o,t){let r=Mr(o),s=Lr(o),d=t==="fixed",c=Uo(a,!0,d,o),f={scrollLeft:0,scrollTop:0},y=Nr(0);function I(){y.x=mh(s)}if(r||!r&&!d)if((Vo(o)!=="body"||Ds(s))&&(f=Jn(o)),r){let Z=Uo(o,!0,d,o);y.x=Z.x+o.clientLeft,y.y=Z.y+o.clientTop}else s&&I();d&&!r&&s&&I();let $=s&&!r&&!d?vv(s,f):Nr(0),Y=c.left+f.scrollLeft-y.x-$.x,Q=c.top+f.scrollTop-y.y-$.y;return{x:Y,y:Q,width:c.width,height:c.height}}function hh(a){return vr(a).position==="static"}function mv(a,o){if(!Mr(a)||vr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Lr(a)===t&&(t=t.ownerDocument.body),t}function bv(a,o){let t=We(a);if(Qn(a))return t;if(!Mr(a)){let s=Ei(a);for(;s&&!Bo(s);){if(fr(s)&&!hh(s))return s;s=Ei(s)}return t}let r=mv(a,o);for(;r&&dv(r)&&hh(r);)r=mv(r,o);return r&&Bo(r)&&hh(r)&&!Zl(r)?t:r||cv(a)||t}var _x=async function(a){let o=this.getOffsetParent||bv,t=this.getDimensions,r=await t(a.floating);return{reference:Ix(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cx(a){return vr(a).direction==="rtl"}var wx={convertOffsetParentRelativeRectToViewportRelativeRect:vx,getDocumentElement:Lr,getClippingRect:Ax,getOffsetParent:bv,getElementRects:_x,getClientRects:gx,getDimensions:Sx,getScale:Fs,isElement:fr,isRTL:Cx};function yv(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function kx(a,o){let t=null,r,s=Lr(a);function d(){var f;clearTimeout(r),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),d();let I=a.getBoundingClientRect(),{left:$,top:Y,width:Q,height:Z}=I;if(f||o(),!Q||!Z)return;let it=Zn(Y),lt=Zn(s.clientWidth-($+Q)),dt=Zn(s.clientHeight-(Y+Z)),gt=Zn($),wt={rootMargin:-it+"px "+-lt+"px "+-dt+"px "+-gt+"px",threshold:Re(0,jr(1,y))||1},jt=!0;function Bt(qt){let re=qt[0].intersectionRatio;if(re!==y){if(!jt)return c();re?c(!1,re):r=setTimeout(()=>{c(!1,1e-7)},1e3)}re===1&&!yv(I,a.getBoundingClientRect())&&c(),jt=!1}try{t=new IntersectionObserver(Bt,{...wt,root:s.ownerDocument})}catch{t=new IntersectionObserver(Bt,wt)}t.observe(a)}return c(!0),d}function Ev(a,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=r,I=ph(a),$=s||d?[...I?Ps(I):[],...Ps(o)]:[];$.forEach(gt=>{s&&gt.addEventListener("scroll",t,{passive:!0}),d&&gt.addEventListener("resize",t)});let Y=I&&f?kx(I,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(gt=>{let[It]=gt;It&&It.target===I&&Z&&(Z.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var wt;(wt=Z)==null||wt.observe(o)})),t()}),I&&!y&&Z.observe(I),Z.observe(o));let it,lt=y?Uo(a):null;y&&dt();function dt(){let gt=Uo(a);lt&&!yv(lt,gt)&&t(),lt=gt,it=requestAnimationFrame(dt)}return t(),()=>{var gt;$.forEach(It=>{s&&It.removeEventListener("scroll",t),d&&It.removeEventListener("resize",t)}),Y==null||Y(),(gt=Z)==null||gt.disconnect(),Z=null,y&&cancelAnimationFrame(it)}}var Tv=ov;var xv=sv,Av=iv,Sv=nv;var Iv=rv;var _v=(a,o,t)=>{let r=new Map,s={platform:wx,...t},d={...s.platform,_c:r};return ev(a,o,{...s,platform:d})};var td=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,r,...s){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let d=window.setInterval(t,r,...s);return this.nameToIntervalId.set(o,d),d}clearInterval(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);r!==void 0&&clearInterval(r),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,r,...s){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let d=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},r,...s);return this.nameToTimeoutId.set(o,d),d}clearTimeout(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);r!==void 0&&window.clearTimeout(r),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var r;if(typeof t=="number"){let s=t;return[(r=[...o.entries()].find(([,c])=>c===t))==null?void 0:r[0],s]}return[t,o.get(t)]}};var Ti=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 Nx=U`
2580
+ `],jf=XT;var Do=class extends Gt(X){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return C` <slot></slot>
2581
+ <span part="radio-icon" class="radio-icon"></span>`}};Do.styles=[...X.styles,...jf],m([u({type:Boolean,reflect:!0})],Do.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Do.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Do.prototype,"softDisabled",2);var ch=Do;var qf=V.constructTagName("staticradio");ch.register(qf);var ZT=ch;dh.register(Kl);var QT=dh;var jr=Math.min,Re=Math.max,Xn=Math.round,Zn=Math.floor,Nr=a=>({x:a,y:a}),JT={left:"right",right:"left",bottom:"top",top:"bottom"},tx={start:"end",end:"start"};function Yl(a,o,t){return Re(a,jr(o,t))}function Fo(a,o){return typeof a=="function"?a(o):a}function yi(a){return a.split("-")[0]}function $o(a){return a.split("-")[1]}function hh(a){return a==="x"?"y":"x"}function jl(a){return a==="y"?"height":"width"}var ex=new Set(["top","bottom"]);function qr(a){return ex.has(yi(a))?"y":"x"}function ql(a){return hh(qr(a))}function Qf(a,o,t){t===void 0&&(t=!1);let r=$o(a),s=ql(a),d=jl(s),c=s==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(c=qn(c)),[c,qn(c)]}function Jf(a){let o=qn(a);return[Wl(a),o,Wl(o)]}function Wl(a){return a.replace(/start|end/g,o=>tx[o])}var Xf=["left","right"],Zf=["right","left"],rx=["top","bottom"],ix=["bottom","top"];function ox(a,o,t){switch(a){case"top":case"bottom":return t?o?Zf:Xf:o?Xf:Zf;case"left":case"right":return o?rx:ix;default:return[]}}function tv(a,o,t,r){let s=$o(a),d=ox(yi(a),t==="start",r);return s&&(d=d.map(c=>c+"-"+s),o&&(d=d.concat(d.map(Wl)))),d}function qn(a){return a.replace(/left|right|bottom|top/g,o=>JT[o])}function sx(a){return{top:0,right:0,bottom:0,left:0,...a}}function ph(a){return typeof a!="number"?sx(a):{top:a,right:a,bottom:a,left:a}}function zo(a){let{x:o,y:t,width:r,height:s}=a;return{width:r,height:s,top:t,left:o,right:o+r,bottom:t+s,x:o,y:t}}function ev(a,o,t){let{reference:r,floating:s}=a,d=qr(o),c=ql(o),f=jl(c),y=yi(o),I=d==="y",$=r.x+r.width/2-s.width/2,Y=r.y+r.height/2-s.height/2,Q=r[f]/2-s[f]/2,Z;switch(y){case"top":Z={x:$,y:r.y-s.height};break;case"bottom":Z={x:$,y:r.y+r.height};break;case"right":Z={x:r.x+r.width,y:Y};break;case"left":Z={x:r.x-s.width,y:Y};break;default:Z={x:r.x,y:r.y}}switch($o(o)){case"start":Z[c]-=Q*(t&&I?-1:1);break;case"end":Z[c]+=Q*(t&&I?-1:1);break}return Z}var rv=async(a,o,t)=>{let{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:c}=t,f=d.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(o)),I=await c.getElementRects({reference:a,floating:o,strategy:s}),{x:$,y:Y}=ev(I,r,y),Q=r,Z={},it=0;for(let lt=0;lt<f.length;lt++){let{name:dt,fn:gt}=f[lt],{x:It,y:wt,data:jt,reset:Bt}=await gt({x:$,y:Y,initialPlacement:r,placement:Q,strategy:s,middlewareData:Z,rects:I,platform:c,elements:{reference:a,floating:o}});$=It!=null?It:$,Y=wt!=null?wt:Y,Z={...Z,[dt]:{...Z[dt],...jt}},Bt&&it<=50&&(it++,typeof Bt=="object"&&(Bt.placement&&(Q=Bt.placement),Bt.rects&&(I=Bt.rects===!0?await c.getElementRects({reference:a,floating:o,strategy:s}):Bt.rects),{x:$,y:Y}=ev(I,Q,y)),lt=-1)}return{x:$,y:Y,placement:Q,strategy:s,middlewareData:Z}};async function Xl(a,o){var t;o===void 0&&(o={});let{x:r,y:s,platform:d,rects:c,elements:f,strategy:y}=a,{boundary:I="clippingAncestors",rootBoundary:$="viewport",elementContext:Y="floating",altBoundary:Q=!1,padding:Z=0}=Fo(o,a),it=ph(Z),dt=f[Q?Y==="floating"?"reference":"floating":Y],gt=zo(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(dt)))==null||t?dt:dt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(f.floating)),boundary:I,rootBoundary:$,strategy:y})),It=Y==="floating"?{x:r,y:s,width:c.floating.width,height:c.floating.height}:c.reference,wt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(f.floating)),jt=await(d.isElement==null?void 0:d.isElement(wt))?await(d.getScale==null?void 0:d.getScale(wt))||{x:1,y:1}:{x:1,y:1},Bt=zo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:wt,strategy:y}):It);return{top:(gt.top-Bt.top+it.top)/jt.y,bottom:(Bt.bottom-gt.bottom+it.bottom)/jt.y,left:(gt.left-Bt.left+it.left)/jt.x,right:(Bt.right-gt.right+it.right)/jt.x}}var iv=a=>({name:"arrow",options:a,async fn(o){let{x:t,y:r,placement:s,rects:d,platform:c,elements:f,middlewareData:y}=o,{element:I,padding:$=0}=Fo(a,o)||{};if(I==null)return{};let Y=ph($),Q={x:t,y:r},Z=ql(s),it=jl(Z),lt=await c.getDimensions(I),dt=Z==="y",gt=dt?"top":"left",It=dt?"bottom":"right",wt=dt?"clientHeight":"clientWidth",jt=d.reference[it]+d.reference[Z]-Q[Z]-d.floating[it],Bt=Q[Z]-d.reference[Z],qt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(I)),re=qt?qt[wt]:0;(!re||!await(c.isElement==null?void 0:c.isElement(qt)))&&(re=f.floating[wt]||d.floating[it]);let ve=jt/2-Bt/2,xr=re/2-lt[it]/2-1,$e=jr(Y[gt],xr),sr=jr(Y[It],xr),Ar=$e,Sr=re-lt[it]-sr,kt=re/2-lt[it]/2+ve,Te=Yl(Ar,kt,Sr),nr=!y.arrow&&$o(s)!=null&&kt!==Te&&d.reference[it]/2-(kt<Ar?$e:sr)-lt[it]/2<0,ar=nr?kt<Ar?kt-Ar:kt-Sr:0;return{[Z]:Q[Z]+ar,data:{[Z]:Te,centerOffset:kt-Te-ar,...nr&&{alignmentOffset:ar}},reset:nr}}});var ov=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(o){var t,r;let{placement:s,middlewareData:d,rects:c,initialPlacement:f,platform:y,elements:I}=o,{mainAxis:$=!0,crossAxis:Y=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:lt=!0,...dt}=Fo(a,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=yi(s),It=qr(f),wt=yi(f)===f,jt=await(y.isRTL==null?void 0:y.isRTL(I.floating)),Bt=Q||(wt||!lt?[qn(f)]:Jf(f)),qt=it!=="none";!Q&&qt&&Bt.push(...tv(f,lt,it,jt));let re=[f,...Bt],ve=await Xl(o,dt),xr=[],$e=((r=d.flip)==null?void 0:r.overflows)||[];if($&&xr.push(ve[gt]),Y){let kt=Qf(s,c,jt);xr.push(ve[kt[0]],ve[kt[1]])}if($e=[...$e,{placement:s,overflows:xr}],!xr.every(kt=>kt<=0)){var sr,Ar;let kt=(((sr=d.flip)==null?void 0:sr.index)||0)+1,Te=re[kt];if(Te&&(!(Y==="alignment"?It!==qr(Te):!1)||$e.every(lr=>lr.overflows[0]>0&&qr(lr.placement)===It)))return{data:{index:kt,overflows:$e},reset:{placement:Te}};let nr=(Ar=$e.filter(ar=>ar.overflows[0]<=0).sort((ar,lr)=>ar.overflows[1]-lr.overflows[1])[0])==null?void 0:Ar.placement;if(!nr)switch(Z){case"bestFit":{var Sr;let ar=(Sr=$e.filter(lr=>{if(qt){let dr=qr(lr.placement);return dr===It||dr==="y"}return!0}).map(lr=>[lr.placement,lr.overflows.filter(dr=>dr>0).reduce((dr,Na)=>dr+Na,0)]).sort((lr,dr)=>lr[1]-dr[1])[0])==null?void 0:Sr[0];ar&&(nr=ar);break}case"initialPlacement":nr=f;break}if(s!==nr)return{reset:{placement:nr}}}return{}}}};var nx=new Set(["left","top"]);async function ax(a,o){let{placement:t,platform:r,elements:s}=a,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),c=yi(t),f=$o(t),y=qr(t)==="y",I=nx.has(c)?-1:1,$=d&&y?-1:1,Y=Fo(o,a),{mainAxis:Q,crossAxis:Z,alignmentAxis:it}=typeof Y=="number"?{mainAxis:Y,crossAxis:0,alignmentAxis:null}:{mainAxis:Y.mainAxis||0,crossAxis:Y.crossAxis||0,alignmentAxis:Y.alignmentAxis};return f&&typeof it=="number"&&(Z=f==="end"?it*-1:it),y?{x:Z*$,y:Q*I}:{x:Q*I,y:Z*$}}var sv=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(o){var t,r;let{x:s,y:d,placement:c,middlewareData:f}=o,y=await ax(o,a);return c===((t=f.offset)==null?void 0:t.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:s+y.x,y:d+y.y,data:{...y,placement:c}}}}},nv=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(o){let{x:t,y:r,placement:s}=o,{mainAxis:d=!0,crossAxis:c=!1,limiter:f={fn:dt=>{let{x:gt,y:It}=dt;return{x:gt,y:It}}},...y}=Fo(a,o),I={x:t,y:r},$=await Xl(o,y),Y=qr(yi(s)),Q=hh(Y),Z=I[Q],it=I[Y];if(d){let dt=Q==="y"?"top":"left",gt=Q==="y"?"bottom":"right",It=Z+$[dt],wt=Z-$[gt];Z=Yl(It,Z,wt)}if(c){let dt=Y==="y"?"top":"left",gt=Y==="y"?"bottom":"right",It=it+$[dt],wt=it-$[gt];it=Yl(It,it,wt)}let lt=f.fn({...o,[Q]:Z,[Y]:it});return{...lt,data:{x:lt.x-t,y:lt.y-r,enabled:{[Q]:d,[Y]:c}}}}}};var av=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(o){var t,r;let{placement:s,rects:d,platform:c,elements:f}=o,{apply:y=()=>{},...I}=Fo(a,o),$=await Xl(o,I),Y=yi(s),Q=$o(s),Z=qr(s)==="y",{width:it,height:lt}=d.floating,dt,gt;Y==="top"||Y==="bottom"?(dt=Y,gt=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(gt=Y,dt=Q==="end"?"top":"bottom");let It=lt-$.top-$.bottom,wt=it-$.left-$.right,jt=jr(lt-$[dt],It),Bt=jr(it-$[gt],wt),qt=!o.middlewareData.shift,re=jt,ve=Bt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ve=wt),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(re=It),qt&&!Q){let $e=Re($.left,0),sr=Re($.right,0),Ar=Re($.top,0),Sr=Re($.bottom,0);Z?ve=it-2*($e!==0||sr!==0?$e+sr:Re($.left,$.right)):re=lt-2*(Ar!==0||Sr!==0?Ar+Sr:Re($.top,$.bottom))}await y({...o,availableWidth:ve,availableHeight:re});let xr=await c.getDimensions(f.floating);return it!==xr.width||lt!==xr.height?{reset:{rects:!0}}:{}}}};function Zl(){return typeof window<"u"}function Vo(a){return dv(a)?(a.nodeName||"").toLowerCase():"#document"}function We(a){var o;return(a==null||(o=a.ownerDocument)==null?void 0:o.defaultView)||window}function Lr(a){var o;return(o=(dv(a)?a.ownerDocument:a.document)||window.document)==null?void 0:o.documentElement}function dv(a){return Zl()?a instanceof Node||a instanceof We(a).Node:!1}function fr(a){return Zl()?a instanceof Element||a instanceof We(a).Element:!1}function Mr(a){return Zl()?a instanceof HTMLElement||a instanceof We(a).HTMLElement:!1}function lv(a){return!Zl()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof We(a).ShadowRoot}var lx=new Set(["inline","contents"]);function Fs(a){let{overflow:o,overflowX:t,overflowY:r,display:s}=vr(a);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&!lx.has(s)}var dx=new Set(["table","td","th"]);function cv(a){return dx.has(Vo(a))}var cx=[":popover-open",":modal"];function Qn(a){return cx.some(o=>{try{return a.matches(o)}catch{return!1}})}var hx=["transform","translate","scale","rotate","perspective"],px=["transform","translate","scale","rotate","perspective","filter"],mx=["paint","layout","strict","content"];function Ql(a){let o=Jl(),t=fr(a)?vr(a):a;return hx.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||px.some(r=>(t.willChange||"").includes(r))||mx.some(r=>(t.contain||"").includes(r))}function hv(a){let o=Ei(a);for(;Mr(o)&&!Bo(o);){if(Ql(o))return o;if(Qn(o))return null;o=Ei(o)}return null}function Jl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ux=new Set(["html","body","#document"]);function Bo(a){return ux.has(Vo(a))}function vr(a){return We(a).getComputedStyle(a)}function Jn(a){return fr(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Ei(a){if(Vo(a)==="html")return a;let o=a.assignedSlot||a.parentNode||lv(a)&&a.host||Lr(a);return lv(o)?o.host:o}function pv(a){let o=Ei(a);return Bo(o)?a.ownerDocument?a.ownerDocument.body:a.body:Mr(o)&&Fs(o)?o:pv(o)}function Ds(a,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let s=pv(a),d=s===((r=a.ownerDocument)==null?void 0:r.body),c=We(s);if(d){let f=td(c);return o.concat(c,c.visualViewport||[],Fs(s)?s:[],f&&t?Ds(f):[])}return o.concat(s,Ds(s,[],t))}function td(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function fv(a){let o=vr(a),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,s=Mr(a),d=s?a.offsetWidth:t,c=s?a.offsetHeight:r,f=Xn(t)!==d||Xn(r)!==c;return f&&(t=d,r=c),{width:t,height:r,$:f}}function uh(a){return fr(a)?a:a.contextElement}function $s(a){let o=uh(a);if(!Mr(o))return Nr(1);let t=o.getBoundingClientRect(),{width:r,height:s,$:d}=fv(o),c=(d?Xn(t.width):t.width)/r,f=(d?Xn(t.height):t.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var fx=Nr(0);function vv(a){let o=We(a);return!Jl()||!o.visualViewport?fx:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function vx(a,o,t){return o===void 0&&(o=!1),!t||o&&t!==We(a)?!1:o}function Uo(a,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let s=a.getBoundingClientRect(),d=uh(a),c=Nr(1);o&&(r?fr(r)&&(c=$s(r)):c=$s(a));let f=vx(d,t,r)?vv(d):Nr(0),y=(s.left+f.x)/c.x,I=(s.top+f.y)/c.y,$=s.width/c.x,Y=s.height/c.y;if(d){let Q=We(d),Z=r&&fr(r)?We(r):r,it=Q,lt=td(it);for(;lt&&r&&Z!==it;){let dt=$s(lt),gt=lt.getBoundingClientRect(),It=vr(lt),wt=gt.left+(lt.clientLeft+parseFloat(It.paddingLeft))*dt.x,jt=gt.top+(lt.clientTop+parseFloat(It.paddingTop))*dt.y;y*=dt.x,I*=dt.y,$*=dt.x,Y*=dt.y,y+=wt,I+=jt,it=We(lt),lt=td(it)}}return zo({width:$,height:Y,x:y,y:I})}function fh(a,o){let t=Jn(a).scrollLeft;return o?o.left+t:Uo(Lr(a)).left+t}function gv(a,o,t){t===void 0&&(t=!1);let r=a.getBoundingClientRect(),s=r.left+o.scrollLeft-(t?0:fh(a,r)),d=r.top+o.scrollTop;return{x:s,y:d}}function gx(a){let{elements:o,rect:t,offsetParent:r,strategy:s}=a,d=s==="fixed",c=Lr(r),f=o?Qn(o.floating):!1;if(r===c||f&&d)return t;let y={scrollLeft:0,scrollTop:0},I=Nr(1),$=Nr(0),Y=Mr(r);if((Y||!Y&&!d)&&((Vo(r)!=="body"||Fs(c))&&(y=Jn(r)),Mr(r))){let Z=Uo(r);I=$s(r),$.x=Z.x+r.clientLeft,$.y=Z.y+r.clientTop}let Q=c&&!Y&&!d?gv(c,y,!0):Nr(0);return{width:t.width*I.x,height:t.height*I.y,x:t.x*I.x-y.scrollLeft*I.x+$.x+Q.x,y:t.y*I.y-y.scrollTop*I.y+$.y+Q.y}}function bx(a){return Array.from(a.getClientRects())}function yx(a){let o=Lr(a),t=Jn(a),r=a.ownerDocument.body,s=Re(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),d=Re(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight),c=-t.scrollLeft+fh(a),f=-t.scrollTop;return vr(r).direction==="rtl"&&(c+=Re(o.clientWidth,r.clientWidth)-s),{width:s,height:d,x:c,y:f}}function Ex(a,o){let t=We(a),r=Lr(a),s=t.visualViewport,d=r.clientWidth,c=r.clientHeight,f=0,y=0;if(s){d=s.width,c=s.height;let I=Jl();(!I||I&&o==="fixed")&&(f=s.offsetLeft,y=s.offsetTop)}return{width:d,height:c,x:f,y}}var Tx=new Set(["absolute","fixed"]);function xx(a,o){let t=Uo(a,!0,o==="fixed"),r=t.top+a.clientTop,s=t.left+a.clientLeft,d=Mr(a)?$s(a):Nr(1),c=a.clientWidth*d.x,f=a.clientHeight*d.y,y=s*d.x,I=r*d.y;return{width:c,height:f,x:y,y:I}}function mv(a,o,t){let r;if(o==="viewport")r=Ex(a,t);else if(o==="document")r=yx(Lr(a));else if(fr(o))r=xx(o,t);else{let s=vv(a);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return zo(r)}function bv(a,o){let t=Ei(a);return t===o||!fr(t)||Bo(t)?!1:vr(t).position==="fixed"||bv(t,o)}function Ax(a,o){let t=o.get(a);if(t)return t;let r=Ds(a,[],!1).filter(f=>fr(f)&&Vo(f)!=="body"),s=null,d=vr(a).position==="fixed",c=d?Ei(a):a;for(;fr(c)&&!Bo(c);){let f=vr(c),y=Ql(c);!y&&f.position==="fixed"&&(s=null),(d?!y&&!s:!y&&f.position==="static"&&!!s&&Tx.has(s.position)||Fs(c)&&!y&&bv(a,c))?r=r.filter($=>$!==c):s=f,c=Ei(c)}return o.set(a,r),r}function Sx(a){let{element:o,boundary:t,rootBoundary:r,strategy:s}=a,c=[...t==="clippingAncestors"?Qn(o)?[]:Ax(o,this._c):[].concat(t),r],f=c[0],y=c.reduce((I,$)=>{let Y=mv(o,$,s);return I.top=Re(Y.top,I.top),I.right=jr(Y.right,I.right),I.bottom=jr(Y.bottom,I.bottom),I.left=Re(Y.left,I.left),I},mv(o,f,s));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Ix(a){let{width:o,height:t}=fv(a);return{width:o,height:t}}function _x(a,o,t){let r=Mr(o),s=Lr(o),d=t==="fixed",c=Uo(a,!0,d,o),f={scrollLeft:0,scrollTop:0},y=Nr(0);function I(){y.x=fh(s)}if(r||!r&&!d)if((Vo(o)!=="body"||Fs(s))&&(f=Jn(o)),r){let Z=Uo(o,!0,d,o);y.x=Z.x+o.clientLeft,y.y=Z.y+o.clientTop}else s&&I();d&&!r&&s&&I();let $=s&&!r&&!d?gv(s,f):Nr(0),Y=c.left+f.scrollLeft-y.x-$.x,Q=c.top+f.scrollTop-y.y-$.y;return{x:Y,y:Q,width:c.width,height:c.height}}function mh(a){return vr(a).position==="static"}function uv(a,o){if(!Mr(a)||vr(a).position==="fixed")return null;if(o)return o(a);let t=a.offsetParent;return Lr(a)===t&&(t=t.ownerDocument.body),t}function yv(a,o){let t=We(a);if(Qn(a))return t;if(!Mr(a)){let s=Ei(a);for(;s&&!Bo(s);){if(fr(s)&&!mh(s))return s;s=Ei(s)}return t}let r=uv(a,o);for(;r&&cv(r)&&mh(r);)r=uv(r,o);return r&&Bo(r)&&mh(r)&&!Ql(r)?t:r||hv(a)||t}var Cx=async function(a){let o=this.getOffsetParent||yv,t=this.getDimensions,r=await t(a.floating);return{reference:_x(a.reference,await o(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wx(a){return vr(a).direction==="rtl"}var kx={convertOffsetParentRelativeRectToViewportRelativeRect:gx,getDocumentElement:Lr,getClippingRect:Sx,getOffsetParent:yv,getElementRects:Cx,getClientRects:bx,getDimensions:Ix,getScale:$s,isElement:fr,isRTL:wx};function Ev(a,o){return a.x===o.x&&a.y===o.y&&a.width===o.width&&a.height===o.height}function Nx(a,o){let t=null,r,s=Lr(a);function d(){var f;clearTimeout(r),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),d();let I=a.getBoundingClientRect(),{left:$,top:Y,width:Q,height:Z}=I;if(f||o(),!Q||!Z)return;let it=Zn(Y),lt=Zn(s.clientWidth-($+Q)),dt=Zn(s.clientHeight-(Y+Z)),gt=Zn($),wt={rootMargin:-it+"px "+-lt+"px "+-dt+"px "+-gt+"px",threshold:Re(0,jr(1,y))||1},jt=!0;function Bt(qt){let re=qt[0].intersectionRatio;if(re!==y){if(!jt)return c();re?c(!1,re):r=setTimeout(()=>{c(!1,1e-7)},1e3)}re===1&&!Ev(I,a.getBoundingClientRect())&&c(),jt=!1}try{t=new IntersectionObserver(Bt,{...wt,root:s.ownerDocument})}catch{t=new IntersectionObserver(Bt,wt)}t.observe(a)}return c(!0),d}function Tv(a,o,t,r){r===void 0&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=r,I=uh(a),$=s||d?[...I?Ds(I):[],...Ds(o)]:[];$.forEach(gt=>{s&&gt.addEventListener("scroll",t,{passive:!0}),d&&gt.addEventListener("resize",t)});let Y=I&&f?Nx(I,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(gt=>{let[It]=gt;It&&It.target===I&&Z&&(Z.unobserve(o),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var wt;(wt=Z)==null||wt.observe(o)})),t()}),I&&!y&&Z.observe(I),Z.observe(o));let it,lt=y?Uo(a):null;y&&dt();function dt(){let gt=Uo(a);lt&&!Ev(lt,gt)&&t(),lt=gt,it=requestAnimationFrame(dt)}return t(),()=>{var gt;$.forEach(It=>{s&&It.removeEventListener("scroll",t),d&&It.removeEventListener("resize",t)}),Y==null||Y(),(gt=Z)==null||gt.disconnect(),Z=null,y&&cancelAnimationFrame(it)}}var xv=sv;var Av=nv,Sv=ov,Iv=av;var _v=iv;var Cv=(a,o,t)=>{let r=new Map,s={platform:kx,...t},d={...s.platform,_c:r};return rv(a,o,{...s,platform:d})};var ed=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,r,...s){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let d=window.setInterval(t,r,...s);return this.nameToIntervalId.set(o,d),d}clearInterval(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);r!==void 0&&clearInterval(r),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,r,...s){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let d=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(o)},r,...s);return this.nameToTimeoutId.set(o,d),d}clearTimeout(o){let[t,r]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);r!==void 0&&window.clearTimeout(r),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var r;if(typeof t=="number"){let s=t;return[(r=[...o.entries()].find(([,c])=>c===t))==null?void 0:r[0],s]}return[t,o.get(t)]}};var Ti=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 Lx=U`
2582
2582
  :host {
2583
2583
  --mdc-popover-arrow-border-radius: 0.1875rem;
2584
2584
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2700,7 +2700,7 @@
2700
2700
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2701
2701
  border-bottom-left-radius: 100%;
2702
2702
  }
2703
- `,Cv=[Nx];var rd=V.constructTagName("popoverportal"),ed=class extends q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var id=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(r=>{let s=parseInt(r,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${r}`);return s});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 r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset+1}px)`,s=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=r,t.style.bottom=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${s}px`,t.style.width=r,t.style.right=`calc(-1.5 * (${r}))`;break;case"right":t.style.height=`${s}px`,t.style.width=r,t.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:t.style.height=r,t.style.top=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&!Array.from(r.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(rd),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),r.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,r;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=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateAriaModal(){this.popover.role===J.DIALOG||this.popover.role===J.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,r;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(r=this.popover.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var $;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:d,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),y=($=this.popover.arrowElement.offsetParent)==null?void 0:$.getBoundingClientRect();if(!this.arrowPixelChange){let Y=y!=null&&y[s]?12-Math.abs(f[s]-y[s]):0;Math.round(Y)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let I=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:c!=null?`${c}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-I}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Lt(Ct(wl(Sl(Al(q))))){constructor(){super();this.depthManager=new Yi(this);this.id="";this.triggerID="";this.trigger=At.TRIGGER;this.placement=At.PLACEMENT;this.color=At.COLOR;this.visible=At.VISIBLE;this.offset=At.OFFSET;this.boundary=At.BOUNDARY;this.boundaryRoot=At.BOUNDARY_ROOT;this.focusTrap=At.FOCUS_TRAP;this.preventScroll=At.PREVENT_SCROLL;this.showArrow=At.ARROW;this.closeButton=At.CLOSE_BUTTON;this.interactive=At.INTERACTIVE;this.delay=At.DELAY;this.hideOnEscape=At.HIDE_ON_ESCAPE;this.propagateEventOnEscape=At.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=At.HIDE_ON_BLUR;this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=At.FOCUS_BACK;this.backdrop=At.BACKDROP;this.isBackdropInvisible=At.IS_BACKDROP_INVISIBLE;this.disableFlip=At.DISABLE_FLIP;this.size=At.SIZE;this.closeButtonAriaLabel=null;this.strategy=At.STRATEGY;this.role=At.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=At.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=At.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=At.ANIMATION_FRAME;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new td(this);this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(c=>Object.values(Ke).includes(c)).length>0?this.trigger:At.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};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 r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&(this.hide(),Ti.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==X.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ti.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:r}=t;this.contains(r)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var r,s,d,c;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(c=(d=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:d.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(bi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(bi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(bi.HOVER),this.timers.clearTimeout(bi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(bi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(bi.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let r=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,d=[xv({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],c=this.offset;if(this.disableFlip||d.push(Av({boundary:r,rootBoundary:s})),this.size){let f=I=>{this.style.setProperty("--mdc-popover-internal-available-height",`${I}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');d.push(Sv({boundary:r,rootBoundary:s,apply({availableHeight:I}){y&&(Object.assign(y.style,{maxHeight:`${I}px`,overflowY:"auto"}),f(I))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight,y=Math.sqrt(2*f**2)/2;c+=y,d.push(Iv({element:this.arrowElement,padding:12}))}d.push(Tv(c)),this.floatingUICleanupFunction=Ev(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:I,y:$,middlewareData:Y,placement:Q}=await _v(f,this,{placement:y,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(I,$),Y.arrow&&this.arrowElement&&this.utils.updateArrowStyle(Y.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new id(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(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Ti.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(r=this.floatingUICleanupFunction)==null||r.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Ti.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Nt).includes(this.placement)?this.placement:At.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Po).includes(this.color)?this.color:At.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,r){var d,c;let{triggerElement:s}=this;t===r||!s||(r&&!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(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.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;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(y=this.setInitialFocus)==null||y.call(this))},0),Ti.onShowPopover(this)):(this.depthManager.popHost(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.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&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ti.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(bi.OPEN,t,this.openDelay):(this.timers.clearTimeout(bi.OPEN),t())}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Nt.LEFT:return Nt.RIGHT;case Nt.LEFT_START:return Nt.RIGHT_START;case Nt.LEFT_END:return Nt.RIGHT_END;case Nt.RIGHT:return Nt.LEFT;case Nt.RIGHT_START:return Nt.LEFT_START;case Nt.RIGHT_END:return Nt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,C`
2703
+ `,wv=[Lx];var id=V.constructTagName("popoverportal"),rd=class extends X{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var od=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(r=>{let s=parseInt(r,10);if(Number.isNaN(s)||s<0)throw new Error(`Invalid delay value: ${r}`);return s});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 r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset+1}px)`,s=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=r,t.style.bottom=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${s}px`,t.style.width=r,t.style.right=`calc(-1.5 * (${r}))`;break;case"right":t.style.height=`${s}px`,t.style.width=r,t.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:t.style.height=r,t.style.top=`calc(-1 * (${r}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&!Array.from(r.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),r.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,r;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=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateAriaModal(){this.popover.role===J.DIALOG||this.popover.role===J.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,r;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(r=this.popover.triggerElement)==null||r.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var $;if(!this.popover.arrowElement)return;let r=t.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:d,y:c}=o,f=this.popover.arrowElement.getBoundingClientRect(),y=($=this.popover.arrowElement.offsetParent)==null?void 0:$.getBoundingClientRect();if(!this.arrowPixelChange){let Y=y!=null&&y[s]?12-Math.abs(f[s]-y[s]):0;Math.round(Y)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let I=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:c!=null?`${c}px`:"",[s]:`${-this.popover.arrowElement.offsetHeight/2-I}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var _t=class extends Lt(Ct(kl(Il(Sl(X))))){constructor(){super();this.depthManager=new Yi(this);this.id="";this.triggerID="";this.trigger=At.TRIGGER;this.placement=At.PLACEMENT;this.color=At.COLOR;this.visible=At.VISIBLE;this.offset=At.OFFSET;this.boundary=At.BOUNDARY;this.boundaryRoot=At.BOUNDARY_ROOT;this.focusTrap=At.FOCUS_TRAP;this.preventScroll=At.PREVENT_SCROLL;this.showArrow=At.ARROW;this.closeButton=At.CLOSE_BUTTON;this.interactive=At.INTERACTIVE;this.delay=At.DELAY;this.hideOnEscape=At.HIDE_ON_ESCAPE;this.propagateEventOnEscape=At.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=At.HIDE_ON_BLUR;this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=At.FOCUS_BACK;this.backdrop=At.BACKDROP;this.isBackdropInvisible=At.IS_BACKDROP_INVISIBLE;this.disableFlip=At.DISABLE_FLIP;this.size=At.SIZE;this.closeButtonAriaLabel=null;this.strategy=At.STRATEGY;this.role=At.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=At.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=At.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=At.ANIMATION_FRAME;this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new ed(this);this.parseTrigger=()=>{var d;let s=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(c=>Object.values(Ke).includes(c)).length>0?this.trigger:At.TRIGGER;s==="mouseenter"&&(this.interactive?s="mouseenter click":s="mouseenter focusin"),this.trigger=s};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 r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&(this.hide(),Ti.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Ti.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:r}=t;this.contains(r)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var r,s,d,c;this.isEventFromTrigger(t)&&((r=this.triggerElement)!=null&&r.matches(":focus-visible")||(c=(d=(s=this.triggerElement)==null?void 0:s.shadowRoot)==null?void 0:d.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(bi.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(bi.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(bi.HOVER),this.timers.clearTimeout(bi.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(bi.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(bi.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let r=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),s=this.boundaryRoot,d=[Av({boundary:r,rootBoundary:s,padding:this.boundaryPadding})],c=this.offset;if(this.disableFlip||d.push(Sv({boundary:r,rootBoundary:s})),this.size){let f=I=>{this.style.setProperty("--mdc-popover-internal-available-height",`${I}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');d.push(Iv({boundary:r,rootBoundary:s,apply({availableHeight:I}){y&&(Object.assign(y.style,{maxHeight:`${I}px`,overflowY:"auto"}),f(I))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight,y=Math.sqrt(2*f**2)/2;c+=y,d.push(_v({element:this.arrowElement,padding:12}))}d.push(xv(c)),this.floatingUICleanupFunction=Tv(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:I,y:$,middlewareData:Y,placement:Q}=await Cv(f,this,{placement:y,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(I,$),Y.arrow&&this.arrowElement&&this.utils.updateArrowStyle(Y.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new od(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(r=>r!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),Ti.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,r;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(r=this.floatingUICleanupFunction)==null||r.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),Ti.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let r=t.get("visible")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Nt).includes(this.placement)?this.placement:At.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Po).includes(this.color)?this.color:At.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,r){var d,c;let{triggerElement:s}=this;t===r||!s||(r&&!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(s)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.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;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(y=this.setInitialFocus)==null||y.call(this))},0),Ti.onShowPopover(this)):(this.depthManager.popHost(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(s),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(s.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&&(s==null||s.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Ti.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(bi.OPEN,t,this.openDelay):(this.timers.clearTimeout(bi.OPEN),t())}isEventFromTrigger(t){var r;return this.triggerID?t.composed?t.composedPath().some(s=>(s==null?void 0:s.id)===this.triggerID):((r=t.target)==null?void 0:r.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Nt.LEFT:return Nt.RIGHT;case Nt.LEFT_START:return Nt.RIGHT_START;case Nt.LEFT_END:return Nt.RIGHT_END;case Nt.RIGHT:return Nt.LEFT;case Nt.RIGHT_START:return Nt.LEFT_START;case Nt.RIGHT_END:return Nt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,C`
2704
2704
  <div part="popover-hover-bridge"></div>
2705
2705
  ${this.closeButton?C` <mdc-button
2706
2706
  part="popover-close"
@@ -2714,7 +2714,7 @@
2714
2714
  <div part="popover-content">
2715
2715
  <slot></slot>
2716
2716
  </div>
2717
- `}};_t.styles=[...q.styles,...Cv],m([u({type:String,reflect:!0})],_t.prototype,"id",2),m([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),m([u({type:String,reflect:!0})],_t.prototype,"trigger",2),m([u({type:String,reflect:!0})],_t.prototype,"placement",2),m([u({type:String,reflect:!0})],_t.prototype,"color",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),m([u({type:Number,reflect:!0})],_t.prototype,"offset",2),m([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),m([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),m([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),m([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),m([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),m([u({type:String,reflect:!0})],_t.prototype,"delay",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),m([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),m([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),m([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),m([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),m([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),m([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0})],_t.prototype,"strategy",2),m([u({type:String,reflect:!0})],_t.prototype,"role",2),m([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),m([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),m([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),m([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2);var Ye=_t;var wv=V.constructTagName("toggletip"),Ho={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Nt.TOP,CLICK:Ke.CLICK,SHOW_ARROW:!0};var Lx=U`
2717
+ `}};_t.styles=[...X.styles,...wv],m([u({type:String,reflect:!0})],_t.prototype,"id",2),m([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),m([u({type:String,reflect:!0})],_t.prototype,"trigger",2),m([u({type:String,reflect:!0})],_t.prototype,"placement",2),m([u({type:String,reflect:!0})],_t.prototype,"color",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),m([u({type:Number,reflect:!0})],_t.prototype,"offset",2),m([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),m([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),m([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),m([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),m([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),m([u({type:String,reflect:!0})],_t.prototype,"delay",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),m([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),m([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),m([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),m([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),m([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),m([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),m([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),m([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0})],_t.prototype,"strategy",2),m([u({type:String,reflect:!0})],_t.prototype,"role",2),m([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),m([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),m([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),m([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2);var Ye=_t;var kv=V.constructTagName("toggletip"),Ho={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Nt.TOP,CLICK:Ke.CLICK,SHOW_ARROW:!0};var Mx=U`
2718
2718
  :host {
2719
2719
  --mdc-toggletip-max-width: 400px;
2720
2720
  --mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
@@ -2744,7 +2744,7 @@
2744
2744
  :host([close-button]:dir(rtl))::part(popover-content) {
2745
2745
  margin-left: 2rem;
2746
2746
  }
2747
- `,kv=[Lx];var Zi=class extends Ye{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=Ho.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:Ho.CLOSE_BUTTON,this.closeButtonAriaLabel=Ho.CLOSE_BUTTON_ARIA_LABEL,this.trigger=Ho.CLICK,this.showArrow=Ho.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,r;return((r=(t=this.defaultSlotNodes)==null?void 0:t.map(s=>s.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(Nt).includes(this.placement)||(this.placement=Ho.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return C`
2747
+ `,Nv=[Mx];var Zi=class extends Ye{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=Ho.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:Ho.CLOSE_BUTTON,this.closeButtonAriaLabel=Ho.CLOSE_BUTTON_ARIA_LABEL,this.trigger=Ho.CLICK,this.showArrow=Ho.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,r;return((r=(t=this.defaultSlotNodes)==null?void 0:t.map(s=>s.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(Nt).includes(this.placement)||(this.placement=Ho.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return C`
2748
2748
  ${super.render()}
2749
2749
  <mdc-screenreaderannouncer
2750
2750
  identity="${tt(this.screenreaderAnnouncerIdentity)}"
@@ -2752,12 +2752,12 @@
2752
2752
  delay="300"
2753
2753
  >
2754
2754
  </mdc-screenreaderannouncer>
2755
- `}};Zi.styles=[...Ye.styles,...kv],m([ou()],Zi.prototype,"defaultSlotNodes",2),m([ut()],Zi.prototype,"currentAnnouncement",2),m([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Zi.prototype,"screenreaderAnnouncerIdentity",2),m([u({type:String,reflect:!0})],Zi.prototype,"placement",2);var uh=Zi;function od(a,o=500){let t,r=(...s)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...s)},o)};return r.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},r}var Nv=V.constructTagName("screenreaderannouncer"),Mx={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Go={ARIA_LIVE:Mx.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var Ox=[U`
2755
+ `}};Zi.styles=[...Ye.styles,...Nv],m([su()],Zi.prototype,"defaultSlotNodes",2),m([ut()],Zi.prototype,"currentAnnouncement",2),m([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Zi.prototype,"screenreaderAnnouncerIdentity",2),m([u({type:String,reflect:!0})],Zi.prototype,"placement",2);var vh=Zi;function sd(a,o=500){let t,r=(...s)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,a(...s)},o)};return r.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},r}var Lv=V.constructTagName("screenreaderannouncer"),Ox={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Go={ARIA_LIVE:Ox.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var Rx=[U`
2756
2756
  :host {
2757
2757
  display: none;
2758
2758
  visibility: hidden;
2759
2759
  }
2760
- `],Lv=Ox;var Xr=class extends q{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Go.ARIA_LIVE;this.delay=Go.DELAY;this.timeout=Go.TIMEOUT;this.debounceTime=Go.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(t,r,s,d){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${Ce()}`,y=document.createElement("div");y.setAttribute("id",f),y.setAttribute("aria-live",d),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(y);let I=window.setTimeout(()=>{let $=document.createElement("p");$.textContent=t,y.appendChild($),this.ariaLiveAnnouncementIds.push(f);let Y=window.setTimeout(()=>{y.remove()},s);this.timeOutIds.push(Y)},r);this.timeOutIds.push(I)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var r;(r=this.getElementByIdAcrossShadowRoot(t))==null||r.remove()})}getElementByIdAcrossShadowRoot(t){var d;let r=document.getElementById(t);if(r)return r;let s=this.findModalAncestor();return((d=s==null?void 0:s.shadowRoot)==null?void 0:d.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let r=document.createElement("style");r.textContent=`
2760
+ `],Mv=Rx;var Xr=class extends X{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=Go.ARIA_LIVE;this.delay=Go.DELAY;this.timeout=Go.TIMEOUT;this.debounceTime=Go.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(t,r,s,d){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${Ce()}`,y=document.createElement("div");y.setAttribute("id",f),y.setAttribute("aria-live",d),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(y);let I=window.setTimeout(()=>{let $=document.createElement("p");$.textContent=t,y.appendChild($),this.ariaLiveAnnouncementIds.push(f);let Y=window.setTimeout(()=>{y.remove()},s);this.timeOutIds.push(Y)},r);this.timeOutIds.push(I)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var r;(r=this.getElementByIdAcrossShadowRoot(t))==null||r.remove()})}getElementByIdAcrossShadowRoot(t){var d;let r=document.getElementById(t);if(r)return r;let s=this.findModalAncestor();return((d=s==null?void 0:s.shadowRoot)==null?void 0:d.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let r=document.createElement("style");r.textContent=`
2761
2761
  .mdc-screenreaderannouncer__visually-hidden {
2762
2762
  clip: rect(0 0 0 0);
2763
2763
  clip-path: inset(50%);
@@ -2767,7 +2767,7 @@
2767
2767
  white-space: nowrap;
2768
2768
  width: 1px;
2769
2769
  }
2770
- `,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=od(()=>{this.announcement&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Go.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var r;t.has("identity")&&this.identity.length===0&&(this.identity=Go.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};Xr.styles=[...q.styles,...Lv],m([u({type:String,reflect:!0})],Xr.prototype,"announcement",2),m([u({type:String,reflect:!0})],Xr.prototype,"identity",2),m([u({type:String,reflect:!0,attribute:"data-aria-live"})],Xr.prototype,"dataAriaLive",2),m([u({type:Number,reflect:!0})],Xr.prototype,"delay",2),m([u({type:Number,reflect:!0})],Xr.prototype,"timeout",2),m([u({type:Number,reflect:!0,attribute:"debounce-time"})],Xr.prototype,"debounceTime",2);var fh=Xr;fh.register(Nv);var Rx=fh;uh.register(wv);var Px=uh;var ke=a=>{class o extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,m([u({reflect:!0,type:String})],o.prototype,"name",2),m([u({reflect:!0,type:String})],o.prototype,"value",2),m([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),m([Jt("input")],o.prototype,"inputElement",2),o};var Dx=U`
2770
+ `,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=sd(()=>{this.announcement&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Go.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var r;t.has("identity")&&this.identity.length===0&&(this.identity=Go.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};Xr.styles=[...X.styles,...Mv],m([u({type:String,reflect:!0})],Xr.prototype,"announcement",2),m([u({type:String,reflect:!0})],Xr.prototype,"identity",2),m([u({type:String,reflect:!0,attribute:"data-aria-live"})],Xr.prototype,"dataAriaLive",2),m([u({type:Number,reflect:!0})],Xr.prototype,"delay",2),m([u({type:Number,reflect:!0})],Xr.prototype,"timeout",2),m([u({type:Number,reflect:!0,attribute:"debounce-time"})],Xr.prototype,"debounceTime",2);var gh=Xr;gh.register(Lv);var Px=gh;vh.register(kv);var Dx=vh;var ke=a=>{class o extends a{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,m([u({reflect:!0,type:String})],o.prototype,"name",2),m([u({reflect:!0,type:String})],o.prototype,"value",2),m([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),m([Jt("input")],o.prototype,"inputElement",2),o};var Fx=U`
2771
2771
  :host {
2772
2772
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
2773
2773
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
@@ -2845,13 +2845,13 @@
2845
2845
  pointer-events: none;
2846
2846
  cursor: default;
2847
2847
  }
2848
- `,Mv=[bt,Dx];var Ov=a=>({[Vt.ERROR]:"error-legacy-badge-filled",[Vt.WARNING]:"warning-badge-filled",[Vt.SUCCESS]:"check-circle-badge-filled",[Vt.PRIORITY]:"priority-badge-filled",[Vt.DEFAULT]:""})[a]||"";var je=class extends Gt(q){constructor(){super(...arguments);this.inputId=`mdc-el-${Ce()}`;this.required=!1;this.helpTextType=Ot.VALIDATION;this.toggletipPlacement=Ot.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Ot.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?C`<label for="${this.inputId}" id="${Ot.HEADING_ID}" part="label">${this.label}</label>`:C` <mdc-text
2848
+ `,Ov=[bt,Fx];var Rv=a=>({[Vt.ERROR]:"error-legacy-badge-filled",[Vt.WARNING]:"warning-badge-filled",[Vt.SUCCESS]:"check-circle-badge-filled",[Vt.PRIORITY]:"priority-badge-filled",[Vt.DEFAULT]:""})[a]||"";var je=class extends Gt(X){constructor(){super(...arguments);this.inputId=`mdc-el-${Ce()}`;this.required=!1;this.helpTextType=Ot.VALIDATION;this.toggletipPlacement=Ot.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Ot.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?C`<label for="${this.inputId}" id="${Ot.HEADING_ID}" part="label">${this.label}</label>`:C` <mdc-text
2849
2849
  id="${Ot.HEADING_ID}"
2850
2850
  tagname="${jn.TAGNAME}"
2851
2851
  type="${jn.HEADER_TYPE}"
2852
2852
  part="label"
2853
2853
  >${this.label}</mdc-text
2854
- >`:j}renderHelpTextIcon(){if(!this.helpText)return j;let t=Ov(this.helpTextType||Ot.VALIDATION);return t&&!this.disabled?C`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:j}renderHelpText(){return this.helpText?C`
2854
+ >`:j}renderHelpTextIcon(){if(!this.helpText)return j;let t=Rv(this.helpTextType||Ot.VALIDATION);return t&&!this.disabled?C`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:j}renderHelpText(){return this.helpText?C`
2855
2855
  <mdc-text
2856
2856
  id="${Ot.HELPER_TEXT_ID}"
2857
2857
  part="help-text"
@@ -2887,7 +2887,7 @@
2887
2887
  </div>`}renderHelperText(){return this.helpText?C`<div part="help-text-container">
2888
2888
  <slot name="help-icon">${this.renderHelpTextIcon()}</slot>
2889
2889
  <slot name="help-text">${this.renderHelpText()}</slot>
2890
- </div>`:j}};je.styles=[...q.styles,...Mv],m([u({reflect:!0,type:String})],je.prototype,"label",2),m([u({type:Boolean,reflect:!0,attribute:"required"})],je.prototype,"required",2),m([u({reflect:!0,attribute:"help-text-type"})],je.prototype,"helpTextType",2),m([u({type:String,reflect:!0,attribute:"help-text"})],je.prototype,"helpText",2),m([u({type:String,reflect:!0,attribute:"toggletip-text"})],je.prototype,"toggletipText",2),m([u({type:String,reflect:!0,attribute:"toggletip-placement"})],je.prototype,"toggletipPlacement",2),m([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],je.prototype,"toggletipStrategy",2),m([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],je.prototype,"infoIconAriaLabel",2),m([u({type:Boolean,reflect:!0})],je.prototype,"readonly",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],je.prototype,"softDisabled",2);var se=je;var Fx=[U`
2890
+ </div>`:j}};je.styles=[...X.styles,...Ov],m([u({reflect:!0,type:String})],je.prototype,"label",2),m([u({type:Boolean,reflect:!0,attribute:"required"})],je.prototype,"required",2),m([u({reflect:!0,attribute:"help-text-type"})],je.prototype,"helpTextType",2),m([u({type:String,reflect:!0,attribute:"help-text"})],je.prototype,"helpText",2),m([u({type:String,reflect:!0,attribute:"toggletip-text"})],je.prototype,"toggletipText",2),m([u({type:String,reflect:!0,attribute:"toggletip-placement"})],je.prototype,"toggletipPlacement",2),m([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],je.prototype,"toggletipStrategy",2),m([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],je.prototype,"infoIconAriaLabel",2),m([u({type:Boolean,reflect:!0})],je.prototype,"readonly",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],je.prototype,"softDisabled",2);var se=je;var $x=[U`
2891
2891
  :host {
2892
2892
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
2893
2893
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -2957,7 +2957,7 @@
2957
2957
  :host([soft-disabled]) {
2958
2958
  pointer-events: none;
2959
2959
  }
2960
- `,...St(!0)],Rv=Fx;var Qi=class extends Lt(Ct(_e(ke(Wt(se))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=Gf.DEFAULT;this.renderLabelAndHelperText=()=>this.label?C`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}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 s;let r=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===Kt.DEFAULT&&((this.readonly||this.softDisabled)&&r===X.SPACE&&t.preventDefault(),r===X.ENTER&&((s=this.form)==null||s.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===Kt.SPATIAL&&!(this.readonly||this.softDisabled)&&r===X.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return C`
2960
+ `,...St(!0)],Pv=$x;var Qi=class extends Lt(Ct(_e(ke(Wt(se))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=Kf.DEFAULT;this.renderLabelAndHelperText=()=>this.label?C`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}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 s;let r=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===Kt.DEFAULT&&((this.readonly||this.softDisabled)&&r===q.SPACE&&t.preventDefault(),r===q.ENTER&&((s=this.form)==null||s.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===Kt.SPATIAL&&!(this.readonly||this.softDisabled)&&r===q.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return C`
2961
2961
  <mdc-staticcheckbox
2962
2962
  part="static-checkbox"
2963
2963
  class="mdc-focus-ring"
@@ -2987,7 +2987,7 @@
2987
2987
  />
2988
2988
  </mdc-staticcheckbox>
2989
2989
  ${this.renderLabelAndHelperText()}
2990
- `}};Qi.styles=[...se.styles,...Rv],Qi.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],Qi.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Qi.prototype,"indeterminate",2),m([u({type:String,reflect:!0,attribute:"help-text-type"})],Qi.prototype,"helpTextType",2);var vh=Qi;vh.register(Hf);var $x=vh;var Pv=V.constructTagName("staticchip"),gh={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},sd={COLOR:gh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var zx=U`
2990
+ `}};Qi.styles=[...se.styles,...Pv],Qi.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],Qi.prototype,"checked",2),m([u({type:Boolean,reflect:!0})],Qi.prototype,"indeterminate",2),m([u({type:String,reflect:!0,attribute:"help-text-type"})],Qi.prototype,"helpTextType",2);var bh=Qi;bh.register(Gf);var zx=bh;var Dv=V.constructTagName("staticchip"),yh={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},nd={COLOR:yh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN};var Vx=U`
2991
2991
  :host {
2992
2992
  height: 1.5rem;
2993
2993
  gap: 0.25rem;
@@ -3059,12 +3059,12 @@
3059
3059
  --mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
3060
3060
  --mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
3061
3061
  }
3062
- `,Dv=[bt,zx];var $s=class extends te(q){constructor(){super(...arguments);this.color=sd.COLOR}renderIcon(){return this.iconName?C` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return C`
3062
+ `,Fv=[bt,Vx];var zs=class extends te(X){constructor(){super(...arguments);this.color=nd.COLOR}renderIcon(){return this.iconName?C` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return C`
3063
3063
  ${this.renderIcon()}
3064
- ${this.label?C`<mdc-text part="label" type="${sd.TEXT_TYPE}" tagname="${sd.TAG_NAME}"
3064
+ ${this.label?C`<mdc-text part="label" type="${nd.TEXT_TYPE}" tagname="${nd.TAG_NAME}"
3065
3065
  >${this.label}</mdc-text
3066
3066
  >`:j}
3067
- `}};$s.styles=[...q.styles,...Dv],m([u({type:String,reflect:!0})],$s.prototype,"color",2),m([u({type:String})],$s.prototype,"label",2);var ta=$s;var Fv=V.constructTagName("chip"),zs={COLOR:gh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:_o[24],ROLE:J.BUTTON};var Vx=U`
3067
+ `}};zs.styles=[...X.styles,...Fv],m([u({type:String,reflect:!0})],zs.prototype,"color",2),m([u({type:String})],zs.prototype,"label",2);var ta=zs;var $v=V.constructTagName("chip"),Vs={COLOR:yh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:_o[24],ROLE:J.BUTTON};var Bx=U`
3068
3068
  :host {
3069
3069
  cursor: pointer;
3070
3070
  height: 1.5rem;
@@ -3158,12 +3158,12 @@
3158
3158
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3159
3159
  cursor: auto;
3160
3160
  }
3161
- `,$v=[bt,Vx,...St()];var Vs=class extends te(pe){constructor(){super(...arguments);this.color=zs.COLOR}connectedCallback(){super.connectedCallback(),this.role=zs.ROLE,this.size=zs.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?C` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return C`
3161
+ `,zv=[bt,Bx,...St()];var Bs=class extends te(pe){constructor(){super(...arguments);this.color=Vs.COLOR}connectedCallback(){super.connectedCallback(),this.role=Vs.ROLE,this.size=Vs.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?C` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:j}render(){return C`
3162
3162
  ${this.renderIcon()}
3163
- ${this.label?C`<mdc-text part="label" type="${zs.TEXT_TYPE}" tagname="${zs.TAG_NAME}"
3163
+ ${this.label?C`<mdc-text part="label" type="${Vs.TEXT_TYPE}" tagname="${Vs.TAG_NAME}"
3164
3164
  >${this.label}</mdc-text
3165
3165
  >`:j}
3166
- `}};Vs.styles=[...ta.styles,...$v],m([u({type:String,reflect:!0})],Vs.prototype,"color",2),m([u({type:String})],Vs.prototype,"label",2);var Bs=Vs;Bs.register(Fv);var Bx=Bs;var zv=V.constructTagName("coachmark"),Ko={COLOR:Po.CONTRAST,TRIGGER:Ke.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Wo=class extends Ye{constructor(){super(...arguments);this.trigger=Ko.TRIGGER;this.showArrow=Ko.ARROW;this.closeButton=Ko.CLOSE_BUTTON;this.disableAriaExpanded=Ko.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Ko.COLOR,this.showArrow=Ko.ARROW}};m([u({type:String,reflect:!0})],Wo.prototype,"trigger",2),m([u({type:Boolean,attribute:"show-arrow"})],Wo.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],Wo.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Wo.prototype,"disableAriaExpanded",2);var bh=Wo;bh.register(zv);var Ux=bh;var nd=V.constructTagName("controltypeprovider"),ad={CONTROL_TYPE:"uncontrolled"},ld=["controlled","uncontrolled"];var Hx=nd,yh=Hx;var dd=class extends ce{constructor(){super({context:yh});this.innerControlType=ad.CONTROL_TYPE}static get Context(){return yh}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())}};m([u({type:String,attribute:"control-type",reflect:!0})],dd.prototype,"controlType",1);var Eh=dd;Eh.register(nd);var Th=Eh;Cs.register(Zu);var Gx=Cs;var ea=V.constructTagName("divider"),Yo={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ra={SOLID:"solid",GRADIENT:"gradient"},gr={POSITIVE:"positive",NEGATIVE:"negative"},ia={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},jo={ORIENTATION:Yo.HORIZONTAL,VARIANT:ra.SOLID,ARROW_DIRECTION:gr.NEGATIVE,BUTTON_DIRECTION:gr.NEGATIVE};var Kx=[bt,U`
3166
+ `}};Bs.styles=[...ta.styles,...zv],m([u({type:String,reflect:!0})],Bs.prototype,"color",2),m([u({type:String})],Bs.prototype,"label",2);var Us=Bs;Us.register($v);var Ux=Us;var Vv=V.constructTagName("coachmark"),Ko={COLOR:Po.CONTRAST,TRIGGER:Ke.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Wo=class extends Ye{constructor(){super(...arguments);this.trigger=Ko.TRIGGER;this.showArrow=Ko.ARROW;this.closeButton=Ko.CLOSE_BUTTON;this.disableAriaExpanded=Ko.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Ko.COLOR,this.showArrow=Ko.ARROW}};m([u({type:String,reflect:!0})],Wo.prototype,"trigger",2),m([u({type:Boolean,attribute:"show-arrow"})],Wo.prototype,"showArrow",2),m([u({type:Boolean,reflect:!0,attribute:"close-button"})],Wo.prototype,"closeButton",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Wo.prototype,"disableAriaExpanded",2);var Eh=Wo;Eh.register(Vv);var Hx=Eh;var ad=V.constructTagName("controltypeprovider"),ld={CONTROL_TYPE:"uncontrolled"},dd=["controlled","uncontrolled"];var Gx=ad,Th=Gx;var cd=class extends ce{constructor(){super({context:Th});this.innerControlType=ld.CONTROL_TYPE}static get Context(){return Th}set controlType(t){dd.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};m([u({type:String,attribute:"control-type",reflect:!0})],cd.prototype,"controlType",1);var xh=cd;xh.register(ad);var Ah=xh;ws.register(Qu);var Kx=ws;var ea=V.constructTagName("divider"),Yo={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ra={SOLID:"solid",GRADIENT:"gradient"},gr={POSITIVE:"positive",NEGATIVE:"negative"},ia={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},jo={ORIENTATION:Yo.HORIZONTAL,VARIANT:ra.SOLID,ARROW_DIRECTION:gr.NEGATIVE,BUTTON_DIRECTION:gr.NEGATIVE};var Wx=[bt,U`
3167
3167
  :host {
3168
3168
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
3169
3169
  --mdc-divider-width: 0.0625rem;
@@ -3364,11 +3364,11 @@
3364
3364
  :host([data-hidden]) {
3365
3365
  display: none;
3366
3366
  }
3367
- `],Vv=Kx;var Ji=class extends q{constructor(){super(...arguments);this.orientation=jo.ORIENTATION;this.variant=jo.VARIANT;this.arrowDirection=jo.ARROW_DIRECTION;this.buttonPosition=jo.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(ra).includes(t)?t:jo.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(Yo).includes(t)?t:jo.ORIENTATION)}ensureValidDirections(){let t=this.orientation===Yo.HORIZONTAL?gr.NEGATIVE:gr.POSITIVE;Object.values(gr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(gr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let r=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",r)}}getArrowIcon(){let t=this.orientation===Yo.HORIZONTAL,r=this.arrowDirection===gr.POSITIVE;return t?r?ia.UP:ia.DOWN:r?ia.RIGHT:ia.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"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(r.length>1)return;let s=r.some(f=>f.tagName===Fn.toUpperCase()),d=r.some(f=>f.tagName===di.toUpperCase());s&&!d?this.setAttribute("data-type","mdc-text-divider"):!s&&d&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return C`
3367
+ `],Bv=Wx;var Ji=class extends X{constructor(){super(...arguments);this.orientation=jo.ORIENTATION;this.variant=jo.VARIANT;this.arrowDirection=jo.ARROW_DIRECTION;this.buttonPosition=jo.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(ra).includes(t)?t:jo.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(Yo).includes(t)?t:jo.ORIENTATION)}ensureValidDirections(){let t=this.orientation===Yo.HORIZONTAL?gr.NEGATIVE:gr.POSITIVE;Object.values(gr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(gr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let r=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",r)}}getArrowIcon(){let t=this.orientation===Yo.HORIZONTAL,r=this.arrowDirection===gr.POSITIVE;return t?r?ia.UP:ia.DOWN:r?ia.RIGHT:ia.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"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(r.length>1)return;let s=r.some(f=>f.tagName===Fn.toUpperCase()),d=r.some(f=>f.tagName===di.toUpperCase());s&&!d?this.setAttribute("data-type","mdc-text-divider"):!s&&d&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return C`
3368
3368
  <div></div>
3369
3369
  <slot @slotchange=${this.inferDividerType}></slot>
3370
3370
  <div></div>
3371
- `}};Ji.styles=[...q.styles,...Vv],m([u({type:String,reflect:!0})],Ji.prototype,"orientation",2),m([u({type:String,reflect:!0})],Ji.prototype,"variant",2),m([u({type:String,attribute:"arrow-direction",reflect:!0})],Ji.prototype,"arrowDirection",2),m([u({type:String,attribute:"button-position",reflect:!0})],Ji.prototype,"buttonPosition",2);var xh=Ji;xh.register(ea);var Wx=xh;var Yx=U`
3371
+ `}};Ji.styles=[...X.styles,...Bv],m([u({type:String,reflect:!0})],Ji.prototype,"orientation",2),m([u({type:String,reflect:!0})],Ji.prototype,"variant",2),m([u({type:String,attribute:"arrow-direction",reflect:!0})],Ji.prototype,"arrowDirection",2),m([u({type:String,attribute:"button-position",reflect:!0})],Ji.prototype,"buttonPosition",2);var Sh=Ji;Sh.register(ea);var Yx=Sh;var jx=U`
3372
3372
  :host([selected]) {
3373
3373
  border: 2px solid;
3374
3374
  --mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
@@ -3390,7 +3390,7 @@
3390
3390
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3391
3391
  cursor: auto;
3392
3392
  }
3393
- `,Bv=[Yx];var Uv=V.constructTagName("filterchip"),Ah={ICON_NAME:"check-bold",COLOR:"default"};var oa=class extends Bs{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ah.COLOR}setSelected(t){t?(this.iconName=Ah.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};oa.styles=[...Bs.styles,...Bv],m([u({type:Boolean,reflect:!0})],oa.prototype,"selected",2);var Sh=oa;Sh.register(Uv);var jx=Sh;var qx=U`
3393
+ `,Uv=[jx];var Hv=V.constructTagName("filterchip"),Ih={ICON_NAME:"check-bold",COLOR:"default"};var oa=class extends Us{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ih.COLOR}setSelected(t){t?(this.iconName=Ih.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};oa.styles=[...Us.styles,...Uv],m([u({type:Boolean,reflect:!0})],oa.prototype,"selected",2);var _h=oa;_h.register(Hv);var qx=_h;var Xx=U`
3394
3394
  :host::part(container) {
3395
3395
  display: flex;
3396
3396
  flex-direction: column;
@@ -3402,7 +3402,7 @@
3402
3402
  flex-direction: column;
3403
3403
  gap: 0.25rem;
3404
3404
  }
3405
- `,Hv=[qx];var cd=class extends Wt(se){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0}render(){var t;return C`
3405
+ `,Gv=[Xx];var hd=class extends Wt(se){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0}render(){var t;return C`
3406
3406
  <div
3407
3407
  part="container"
3408
3408
  role="${this.isRadio?J.RADIOGROUP:J.GROUP}"
@@ -3413,7 +3413,7 @@
3413
3413
  <div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
3414
3414
  <slot></slot>
3415
3415
  </div>
3416
- `}};cd.styles=[...se.styles,...Hv];var Ih=cd;var Gv=V.constructTagName("formfieldgroup");Ih.register(Gv);var hd=Ih;Pn.register(hl);var Xx=Pn;Hn.register(Ml);var Zx=Hn;var qo=mi(class extends Kr{constructor(a){if(super(a),a.type!==ir.PROPERTY&&a.type!==ir.ATTRIBUTE&&a.type!==ir.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!gl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===Ie||o===j)return o;let t=a.element,r=a.name;if(a.type===ir.PROPERTY){if(o===t[r])return Ie}else if(a.type===ir.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return Ie}else if(a.type===ir.ATTRIBUTE&&t.getAttribute(r)===o+"")return Ie;return bl(a),o}});se.register(Uf);var or=se;var Kv=V.constructTagName("input"),pd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Us={OFF:"off",ON:"on"},to={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Wv={MAX_LENGTH:10,VALIDATION:Vt.ERROR},xi={VALIDATION:Vt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:zt.TERTIARY,CLEAR_BUTTON_SIZE:pr[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:Us.OFF,INPUT_TYPE:to.TEXT};var Qx=[U`
3416
+ `}};hd.styles=[...se.styles,...Gv];var Ch=hd;var Kv=V.constructTagName("formfieldgroup");Ch.register(Kv);var pd=Ch;Pn.register(pl);var Zx=Pn;Hn.register(Ol);var Qx=Hn;var qo=mi(class extends Kr{constructor(a){if(super(a),a.type!==ir.PROPERTY&&a.type!==ir.ATTRIBUTE&&a.type!==ir.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!bl(a))throw Error("`live` bindings can only contain a single expression")}render(a){return a}update(a,[o]){if(o===Ie||o===j)return o;let t=a.element,r=a.name;if(a.type===ir.PROPERTY){if(o===t[r])return Ie}else if(a.type===ir.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return Ie}else if(a.type===ir.ATTRIBUTE&&t.getAttribute(r)===o+"")return Ie;return yl(a),o}});se.register(Hf);var or=se;var Wv=V.constructTagName("input"),md={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Hs={OFF:"off",ON:"on"},to={PASSWORD:"password",TEXT:"text",SEARCH:"search"},Yv={MAX_LENGTH:10,VALIDATION:Vt.ERROR},xi={VALIDATION:Vt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:zt.TERTIARY,CLEAR_BUTTON_SIZE:pr[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:Hs.OFF,INPUT_TYPE:to.TEXT};var Jx=[U`
3417
3417
  :host {
3418
3418
  --mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
3419
3419
  --mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
@@ -3533,7 +3533,7 @@
3533
3533
  opacity: 0;
3534
3534
  pointer-events: none;
3535
3535
  }
3536
- `,...St(!0)],Yv=Qx;var ue=class extends Ct(_e(ke(Wt(or)))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=pd.OFF;this.autocomplete=Us.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,r,s){super.attributeChangedCallback(t,r,s),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(d=>{this.onerror&&this.onerror(d)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}handleKeyDown(t){var r;this.getActionForKeyEvent(t)===X.ENTER&&this.getKeyboardNavMode()===Kt.DEFAULT&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?C`
3536
+ `,...St(!0)],jv=Jx;var ue=class extends Ct(_e(ke(Wt(or)))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=md.OFF;this.autocomplete=Hs.OFF;this.clearAriaLabel="";this.dataAriaDescribedby=null}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(t=>{this.onerror&&this.onerror(t)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.value="",this.inputElement.value="",this.setInputValidity(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t}attributeChangedCallback(t,r,s){super.attributeChangedCallback(t,r,s),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(d=>{this.onerror&&this.onerror(d)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}handleKeyDown(t){var r;this.getActionForKeyEvent(t)===q.ENTER&&this.getKeyboardNavMode()===Kt.DEFAULT&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?C`
3537
3537
  <mdc-icon
3538
3538
  part="leading-icon"
3539
3539
  name=${this.leadingIcon}
@@ -3548,7 +3548,7 @@
3548
3548
  type="${xi.PREFIX_TEXT_TYPE}"
3549
3549
  aria-hidden="true"
3550
3550
  >
3551
- ${this.prefixText.slice(0,Wv.MAX_LENGTH)}
3551
+ ${this.prefixText.slice(0,Yv.MAX_LENGTH)}
3552
3552
  </mdc-text>
3553
3553
  `:j}clearInputText(){var t;this.value="",(t=this.inputElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0}))}renderTrailingButton(t=!1){let r=t||this.value&&this.trailingButton;return r?C`
3554
3554
  <mdc-button
@@ -3596,7 +3596,7 @@
3596
3596
  <slot name="trailing-button">${this.renderTrailingButton()}</slot>
3597
3597
  </div>
3598
3598
  ${this.helpText?this.renderHelperText():j}
3599
- `}};ue.styles=[...or.styles,...Yv],m([u({type:String})],ue.prototype,"placeholder",2),m([u({type:String,attribute:"prefix-text"})],ue.prototype,"prefixText",2),m([u({type:String,attribute:"leading-icon"})],ue.prototype,"leadingIcon",2),m([u({type:Boolean,attribute:"trailing-button"})],ue.prototype,"trailingButton",2),m([u({type:Number})],ue.prototype,"maxlength",2),m([u({type:Number})],ue.prototype,"minlength",2),m([u({type:String})],ue.prototype,"autocapitalize",2),m([u({type:String})],ue.prototype,"autocomplete",2),m([u({type:String})],ue.prototype,"dirname",2),m([u({type:String})],ue.prototype,"pattern",2),m([u({type:String})],ue.prototype,"list",2),m([u({type:Number})],ue.prototype,"size",2),m([u({type:String,attribute:"clear-aria-label"})],ue.prototype,"clearAriaLabel",2),m([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],ue.prototype,"dataAriaDescribedby",2);var Or=ue;Or.register(Kv);var Jx=Or;var tA=U`
3599
+ `}};ue.styles=[...or.styles,...jv],m([u({type:String})],ue.prototype,"placeholder",2),m([u({type:String,attribute:"prefix-text"})],ue.prototype,"prefixText",2),m([u({type:String,attribute:"leading-icon"})],ue.prototype,"leadingIcon",2),m([u({type:Boolean,attribute:"trailing-button"})],ue.prototype,"trailingButton",2),m([u({type:Number})],ue.prototype,"maxlength",2),m([u({type:Number})],ue.prototype,"minlength",2),m([u({type:String})],ue.prototype,"autocapitalize",2),m([u({type:String})],ue.prototype,"autocomplete",2),m([u({type:String})],ue.prototype,"dirname",2),m([u({type:String})],ue.prototype,"pattern",2),m([u({type:String})],ue.prototype,"list",2),m([u({type:Number})],ue.prototype,"size",2),m([u({type:String,attribute:"clear-aria-label"})],ue.prototype,"clearAriaLabel",2),m([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],ue.prototype,"dataAriaDescribedby",2);var Or=ue;Or.register(Wv);var tA=Or;var eA=U`
3600
3600
  :host {
3601
3601
  height: 1.5rem;
3602
3602
  gap: 0.25rem;
@@ -3632,13 +3632,13 @@
3632
3632
  width: 1.25rem;
3633
3633
  height: 1.25rem;
3634
3634
  }
3635
- `,jv=[bt,tA];var md=V.constructTagName("inputchip"),ud={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var Xo=class extends te(Gt(q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return C`
3635
+ `,qv=[bt,eA];var ud=V.constructTagName("inputchip"),fd={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var Xo=class extends te(Gt(X)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return C`
3636
3636
  <slot name="prefix">
3637
3637
  ${this.iconName?C`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:j}
3638
3638
  </slot>
3639
3639
  `}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return C`
3640
3640
  ${this.renderPrefix()}
3641
- ${this.label?C`<mdc-text part="label" type="${ud.TEXT_TYPE}" tagname="${ud.TAG_NAME}"
3641
+ ${this.label?C`<mdc-text part="label" type="${fd.TEXT_TYPE}" tagname="${fd.TAG_NAME}"
3642
3642
  >${this.label}</mdc-text
3643
3643
  >`:j}
3644
3644
  <mdc-button
@@ -3646,11 +3646,11 @@
3646
3646
  variant="tertiary"
3647
3647
  part="close-icon"
3648
3648
  aria-label="${this.clearAriaLabel}"
3649
- prefix-icon="${ud.CLOSE_ICON}"
3649
+ prefix-icon="${fd.CLOSE_ICON}"
3650
3650
  size="20"
3651
3651
  @click="${this.handleClose}"
3652
3652
  ></mdc-button>
3653
- `}};Xo.styles=[...q.styles,...jv],m([u({type:String})],Xo.prototype,"label",2),m([u({type:Boolean})],Xo.prototype,"error",2),m([u({type:String,attribute:"clear-aria-label"})],Xo.prototype,"clearAriaLabel",2);var _h=Xo;_h.register(md);var eA=_h;var rA=U`
3653
+ `}};Xo.styles=[...X.styles,...qv],m([u({type:String})],Xo.prototype,"label",2),m([u({type:Boolean})],Xo.prototype,"error",2),m([u({type:String,attribute:"clear-aria-label"})],Xo.prototype,"clearAriaLabel",2);var wh=Xo;wh.register(ud);var rA=wh;var iA=U`
3654
3654
  :host([icon-name])::part(text) {
3655
3655
  margin-inline-end: 0.25rem;
3656
3656
  }
@@ -3721,7 +3721,7 @@
3721
3721
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
3722
3722
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
3723
3723
  }
3724
- `,qv=[rA];var sa=class extends te(Yr){constructor(){super(...arguments);this.size=Yu.LINK_SIZE}getIconSize(){switch(this.size){case _l.SMALL:return Cl.SMALL;case _l.MIDSIZE:return Cl.MIDSIZE;default:return Cl.LARGE}}renderAnchorContent(){return C`<span part="text"><slot></slot></span>${this.iconName?C`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:j}`}};sa.styles=[...Yr.styles,...qv],m([u({type:String,reflect:!0})],sa.prototype,"size",2);var Ch=sa;Ch.register(Il);var iA=Ch;var Xv=V.constructTagName("linkbutton"),Hs={12:12,14:14,16:16},Gs={SIZE:Hs[16],ROLE:J.BUTTON,INLINE:Ls.INLINE,INVERTED:Ls.INVERTED};var Zv=a=>{switch(a){case Hs[12]:return .75;case Hs[14]:return .875;default:return 1}};var oA=U`
3724
+ `,Xv=[iA];var sa=class extends te(Yr){constructor(){super(...arguments);this.size=ju.LINK_SIZE}getIconSize(){switch(this.size){case Cl.SMALL:return wl.SMALL;case Cl.MIDSIZE:return wl.MIDSIZE;default:return wl.LARGE}}renderAnchorContent(){return C`<span part="text"><slot></slot></span>${this.iconName?C`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:j}`}};sa.styles=[...Yr.styles,...Xv],m([u({type:String,reflect:!0})],sa.prototype,"size",2);var kh=sa;kh.register(_l);var oA=kh;var Zv=V.constructTagName("linkbutton"),Gs={12:12,14:14,16:16},Ks={SIZE:Gs[16],ROLE:J.BUTTON,INLINE:Ms.INLINE,INVERTED:Ms.INVERTED};var Qv=a=>{switch(a){case Gs[12]:return .75;case Gs[14]:return .875;default:return 1}};var sA=U`
3725
3725
  :host {
3726
3726
  gap: 0.25rem;
3727
3727
  cursor: pointer;
@@ -3820,10 +3820,10 @@
3820
3820
  color: var(--mdc-link-color-disabled);
3821
3821
  pointer-events: none;
3822
3822
  }
3823
- `,Qv=[oA,...St()];var Zo=class extends te(pe){constructor(){super(...arguments);this.size=Gs.SIZE;this.inline=Gs.INLINE;this.inverted=Gs.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Gs.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Hs).includes(t)?`${t}`:Gs.SIZE.toString())}render(){return C`
3823
+ `,Jv=[sA,...St()];var Zo=class extends te(pe){constructor(){super(...arguments);this.size=Ks.SIZE;this.inline=Ks.INLINE;this.inverted=Ks.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Ks.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Gs).includes(t)?`${t}`:Ks.SIZE.toString())}render(){return C`
3824
3824
  <slot></slot>
3825
- ${this.iconName?C` <mdc-icon name=${this.iconName} size=${Zv(this.size)} length-unit="rem"></mdc-icon> `:j}
3826
- `}};Zo.styles=[...Yr.styles,...Qv],m([u({type:Number,reflect:!0})],Zo.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Zo.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],Zo.prototype,"inverted",2);var wh=Zo;wh.register(Xv);var sA=wh;Yr.register(Lf);var nA=Yr;var Ht={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Ks=a=>{class o extends Lt(Ct(a)){constructor(...s){super(...s);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.handleItemCreation=s=>{var f;let{target:d}=s,c=s instanceof CustomEvent&&((f=s.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&d instanceof q&&c&&d.setAttribute("tabindex","0")};this.handleNavigationClick=s=>{let d=s.target,c=this.getCurrentIndex(d);if(c!==-1){let f=!(this.navItems.at(c)!==d&&document.activeElement===s.target);this.resetTabIndexAndSetFocus(c,void 0,f,!1)}};this.handleNavBeforeFocus=s=>{let d=bc(s.relatedTarget);if(this!==d&&!this.contains(document.activeElement)&&this.contains(d)){s.preventDefault();let c=this.navItems.find(y=>y.contains(d)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Ht.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(s){super.firstUpdated(s),this.setInitialFocus()}setInitialFocus(){let s=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(s,void 0,!1)}handleNavigationKeyDown(s){let d=this.getActionForKeyEvent(s,!0),c=new Set([X.DOWN,X.UP,X.HOME,X.END]);if(!d||!c.has(d))return;let f=s.target,y=this.getCurrentIndex(f);if(y===-1)return;this.resetTabIndexes(y);let I=!1;switch(d){case X.HOME:{I=this.resetTabIndexAndSetFocus(0,y);break}case X.END:{I=this.resetTabIndexAndSetFocus(this.navItems.length-1,y);break}case X.DOWN:{let $=this.shouldLoop()?0:y,Y=y+1===this.navItems.length?$:y+1;I=this.resetTabIndexAndSetFocus(Y,y);break}case X.UP:{let $=this.shouldLoop()?this.navItems.length-1:y,Y=y-1===-1?$:y-1;I=this.resetTabIndexAndSetFocus(Y,y);break}default:break}I&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(s.stopPropagation(),s.preventDefault()))}getCurrentIndex(s){return s?this.navItems.findIndex(d=>d===s||!!(d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(s,d=!0){var c;if(this.navItems.length>0){this.navItems.forEach(I=>I.setAttribute("tabindex","-1"));let f=this.navItems.at(s)?s:0,y=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);y&&(y.setAttribute("tabindex","0"),d&&y.focus())}}resetTabIndexAndSetFocus(s,d,c=!0,f=!0){var $;let{navItems:y}=this;if(y.length===0)return!1;let I=($=y.at(s))!=null?$:y.find(Boolean);return s===d&&I&&I.getAttribute("tabindex")==="0"?!1:(d===void 0?y.forEach(Y=>Y.setAttribute("tabindex","-1")):y.at(d)&&y.at(d).setAttribute("tabindex","-1"),I.setAttribute("tabindex","0"),c&&(I.focus({preventScroll:!0}),f&&I.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===Kt.SPATIAL?!1:this.loop!=="false"}}return o};var fd=V.constructTagName("listitem"),na={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Jv={VARIANT:na.FULL_WIDTH};var aA=a=>!!a,Zr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||aA,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Ht.CREATED,this.itemCreationHandler),this.host.addEventListener(Ht.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Ht.CREATED,this.itemCreationHandler),this.host.removeEventListener(Ht.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||!cu(this.cache.at(-1),o))return-1;let t=0,r=this.cache.length-1;for(;t<=r;){let s=Math.floor((t+r)/2);hu(this.cache[s],o)?t=s+1:r=s-1}return t}addItem(o,t=void 0){var s;let r=o;if(this.isValidItem(r)&&!this.cache.includes(r)){let d=t===void 0?this.getIndexToInsertInCache(r):t;this.onStoreUpdate&&((s=this.onStoreUpdate)==null||s.call(this,r,"added",d===-1?this.cache.length:d,this.cache.slice())),d===-1?this.cache.push(r):d>=0&&this.cache.splice(d,0,r)}}delete(o){var r;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((r=this.onStoreUpdate)==null||r.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 eo=a=>{class o extends a{constructor(...s){super(...s);this.handleItemCreation=s=>{let d=s.target;d&&d.addEventListener(Ht.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===Ht.DESTROYED&&(s.target.removeEventListener(Ht.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(Ht.CREATED,this.handleItemCreation)}}return o};var lA=U`
3825
+ ${this.iconName?C` <mdc-icon name=${this.iconName} size=${Qv(this.size)} length-unit="rem"></mdc-icon> `:j}
3826
+ `}};Zo.styles=[...Yr.styles,...Jv],m([u({type:Number,reflect:!0})],Zo.prototype,"size",2),m([u({type:Boolean,reflect:!0})],Zo.prototype,"inline",2),m([u({type:Boolean,reflect:!0})],Zo.prototype,"inverted",2);var Nh=Zo;Nh.register(Zv);var nA=Nh;Yr.register(Mf);var aA=Yr;var Ht={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Ws=a=>{class o extends Lt(Ct(a)){constructor(...s){super(...s);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=s=>{var f;let{target:d}=s,c=s instanceof CustomEvent&&((f=s.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&d instanceof X&&c&&d.setAttribute("tabindex","0")};this.handleNavigationClick=s=>{let d=s.target,c=this.getCurrentIndex(d);if(c!==-1){let f=!(this.navItems.at(c)!==d&&document.activeElement===s.target);this.resetTabIndexAndSetFocus(c,void 0,f,!1)}};this.handleNavBeforeFocus=s=>{let d=Ec(s.relatedTarget);if(this!==d&&!this.contains(document.activeElement)&&this.contains(d)){s.preventDefault();let c=this.navItems.find(y=>y.contains(d)),f=this.getCurrentIndex(c);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Ht.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(s){super.firstUpdated(s),this.setInitialFocus()}setInitialFocus(){let s=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(s,void 0,!1)}handleNavigationKeyDown(s){let d=this.getActionForKeyEvent(s,!0),c=this.orientation==="vertical",f=new Set(c?[q.DOWN,q.UP,q.HOME,q.END]:[q.LEFT,q.RIGHT,q.HOME,q.END]);if(!d||!f.has(d))return;let y=s.target,I=this.getCurrentIndex(y);if(I===-1)return;this.resetTabIndexes(I);let $=!1;switch(d){case q.HOME:{$=this.resetTabIndexAndSetFocus(0,I);break}case q.END:{$=this.resetTabIndexAndSetFocus(this.navItems.length-1,I);break}case q.DOWN:case q.RIGHT:{let Y=this.shouldLoop()?0:I,Q=I+1===this.navItems.length?Y:I+1;$=this.resetTabIndexAndSetFocus(Q,I);break}case q.UP:case q.LEFT:{let Y=this.shouldLoop()?this.navItems.length-1:I,Q=I-1===-1?Y:I-1;$=this.resetTabIndexAndSetFocus(Q,I);break}default:break}$&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(s.stopPropagation(),s.preventDefault()))}getCurrentIndex(s){return s?this.navItems.findIndex(d=>d===s||!!(d.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(s,d=!0){var c;if(this.navItems.length>0){this.navItems.forEach(I=>I.setAttribute("tabindex","-1"));let f=this.navItems.at(s)?s:0,y=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);y&&(y.setAttribute("tabindex","0"),d&&y.focus())}}resetTabIndexAndSetFocus(s,d,c=!0,f=!0){var $;let{navItems:y}=this;if(y.length===0)return!1;let I=($=y.at(s))!=null?$:y.find(Boolean);return s===d&&I&&I.getAttribute("tabindex")==="0"?!1:(d===void 0?y.forEach(Y=>Y.setAttribute("tabindex","-1")):y.at(d)&&y.at(d).setAttribute("tabindex","-1"),I.setAttribute("tabindex","0"),c&&(I.focus({preventScroll:!0}),f&&I.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===Kt.SPATIAL?!1:this.loop!=="false"}}return o};var vd=V.constructTagName("listitem"),na={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},tg={VARIANT:na.FULL_WIDTH};var lA=a=>!!a,Zr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||lA,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Ht.CREATED,this.itemCreationHandler),this.host.addEventListener(Ht.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Ht.CREATED,this.itemCreationHandler),this.host.removeEventListener(Ht.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||!hu(this.cache.at(-1),o))return-1;let t=0,r=this.cache.length-1;for(;t<=r;){let s=Math.floor((t+r)/2);pu(this.cache[s],o)?t=s+1:r=s-1}return t}addItem(o,t=void 0){var s;let r=o;if(this.isValidItem(r)&&!this.cache.includes(r)){let d=t===void 0?this.getIndexToInsertInCache(r):t;this.onStoreUpdate&&((s=this.onStoreUpdate)==null||s.call(this,r,"added",d===-1?this.cache.length:d,this.cache.slice())),d===-1?this.cache.push(r):d>=0&&this.cache.splice(d,0,r)}}delete(o){var r;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((r=this.onStoreUpdate)==null||r.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 eo=a=>{class o extends a{constructor(...s){super(...s);this.handleItemCreation=s=>{let d=s.target;d&&d.addEventListener(Ht.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=s=>{s.stopImmediatePropagation(),s.target&&s.type===Ht.DESTROYED&&(s.target.removeEventListener(Ht.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(s.type,{bubbles:s.bubbles,composed:s.composed,detail:{originalTarget:s.target}})))};this.addEventListener(Ht.CREATED,this.handleItemCreation)}}return o};var dA=U`
3827
3827
  :host {
3828
3828
  display: flex;
3829
3829
  flex-direction: column;
@@ -3831,6 +3831,11 @@
3831
3831
  scroll-padding-bottom: 0.25rem;
3832
3832
  }
3833
3833
 
3834
+ :host([orientation='horizontal']) {
3835
+ scroll-padding-left: 0.25rem;
3836
+ scroll-padding-right: 0.25rem;
3837
+ }
3838
+
3834
3839
  :host::part(container) {
3835
3840
  display: flex;
3836
3841
  flex-direction: column;
@@ -3838,11 +3843,17 @@
3838
3843
  scroll-padding-top: 0.25rem;
3839
3844
  scroll-padding-bottom: 0.25rem;
3840
3845
  }
3841
- `,tg=[lA];var eg=V.constructTagName("list");var kh={LOOP:"true",INITIAL_FOCUS:0};var Ws=class extends Ks(eo(q)){constructor(){super();this.loop=kh.LOOP;this.initialFocus=kh.INITIAL_FOCUS;this.focusWithin=!1;this.handleModifiedEvent=t=>{let r=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(r);break;case"disabled":this.itemsStore.delete(r);break;default:break}};this.addEventListener(Ht.MODIFIED,this.handleModifiedEvent),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Zr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=J.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,r,s){if(r==="added")t.tabIndex=-1;else if(r==="removed"&&t.tabIndex===0){let d=s+1;d>=this.navItems.length&&(d=s-1),this.resetTabIndexes(d,this.focusWithin)}}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${fd}:not([disabled])`)}render(){return C`
3846
+
3847
+ :host([orientation='horizontal'])::part(container) {
3848
+ flex-direction: row;
3849
+ scroll-padding-left: 0.25rem;
3850
+ scroll-padding-right: 0.25rem;
3851
+ }
3852
+ `,eg=[dA];var rg=V.constructTagName("list");var aa={VERTICAL:"vertical",HORIZONTAL:"horizontal"},gd={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:aa.VERTICAL};var Qo=class extends Ws(eo(X)){constructor(){super();this.loop=gd.LOOP;this.initialFocus=gd.INITIAL_FOCUS;this.orientation=gd.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let r=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(r);break;case"disabled":this.itemsStore.delete(r);break;default:break}};this.addEventListener(Ht.MODIFIED,this.handleModifiedEvent),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Zr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=J.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,r,s){if(r==="added")t.tabIndex=-1;else if(r==="removed"&&t.tabIndex===0){let d=s+1;d>=this.navItems.length&&(d=s-1),this.resetTabIndexes(d,this.focusWithin)}}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${vd}:not([disabled])`)}render(){return C`
3842
3853
  <slot name="list-header"></slot>
3843
3854
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
3844
3855
  <slot part="container" role="presentation"></slot>
3845
- `}};Ws.styles=[...q.styles,...tg],m([u({type:String,reflect:!0})],Ws.prototype,"loop",2),m([u({type:Number,reflect:!0,attribute:"initial-focus"})],Ws.prototype,"initialFocus",2);var Ys=Ws;Ys.register(eg);var Nh=Ys;var dA=U`
3856
+ `}};Qo.styles=[...X.styles,...eg],m([u({type:String,reflect:!0})],Qo.prototype,"loop",2),m([u({type:Number,reflect:!0,attribute:"initial-focus"})],Qo.prototype,"initialFocus",2),m([u({type:String,reflect:!0})],Qo.prototype,"orientation",2);var Ys=Qo;Ys.register(rg);var Lh=Ys;var cA=U`
3846
3857
  :host {
3847
3858
  --mdc-listheader-padding: 0.5rem 0.75rem;
3848
3859
  --mdc-listheader-gap: 0.5rem;
@@ -3869,7 +3880,7 @@
3869
3880
  :host::part(postfix-icon) {
3870
3881
  flex-shrink: 0;
3871
3882
  }
3872
- `,rg=[dA];var ro=class extends q{constructor(){super(...arguments);this.disabled=!1}render(){return C`
3883
+ `,ig=[cA];var ro=class extends X{constructor(){super(...arguments);this.disabled=!1}render(){return C`
3873
3884
  ${this.prefixIcon?C`<mdc-icon
3874
3885
  part="prefix-icon"
3875
3886
  name="${this.prefixIcon}"
@@ -3888,7 +3899,7 @@
3888
3899
  size="1"
3889
3900
  length-unit="rem"
3890
3901
  ></mdc-icon>`:j}
3891
- `}};ro.styles=[...q.styles,...rg],m([u({type:String,attribute:"prefix-icon"})],ro.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon"})],ro.prototype,"postfixIcon",2),m([u({type:String,attribute:"header-text"})],ro.prototype,"headerText",2),m([u({type:Boolean,reflect:!0})],ro.prototype,"disabled",2);var Lh=ro;var ig=V.constructTagName("listheader");Lh.register(ig);var cA=Lh;var og=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Ht.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Ht.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Ht.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}dispatchModifiedEvent(r){this.dispatchEvent(new CustomEvent(Ht.MODIFIED,{detail:{change:r,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var aa=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 hA=U`
3902
+ `}};ro.styles=[...X.styles,...ig],m([u({type:String,attribute:"prefix-icon"})],ro.prototype,"prefixIcon",2),m([u({type:String,attribute:"postfix-icon"})],ro.prototype,"postfixIcon",2),m([u({type:String,attribute:"header-text"})],ro.prototype,"headerText",2),m([u({type:Boolean,reflect:!0})],ro.prototype,"disabled",2);var Mh=ro;var og=V.constructTagName("listheader");Mh.register(og);var hA=Mh;var sg=a=>{class o extends a{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Ht.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Ht.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Ht.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}dispatchModifiedEvent(r){this.dispatchEvent(new CustomEvent(Ht.MODIFIED,{detail:{change:r,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var la=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 pA=U`
3892
3903
  :host {
3893
3904
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
3894
3905
  --mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
@@ -4001,11 +4012,11 @@
4001
4012
  flex-direction: row;
4002
4013
  flex-shrink: 0;
4003
4014
  }
4004
- `,sg=[hA,...St()];var Pe=class extends Lt(Ct(Gt(Br(og(q))))){constructor(){super();this.variant=Jv.VARIANT;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||J.LISTITEM}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let r=this.getActionForKeyEvent(t);!t.defaultPrevented&&(r===X.ENTER||r===X.SPACE)&&(this.isEventFromInsideListItem(t)||(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)))}isEventFromInsideListItem(t){let r=t.target;return r!==this&&document.activeElement===r&&this.contains(r)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let r=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(r)}getText(t,r,s){return C`
4015
+ `,ng=[pA,...St()];var Pe=class extends Lt(Ct(Gt(Br(sg(X))))){constructor(){super();this.variant=tg.VARIANT;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||J.LISTITEM}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let r=this.getActionForKeyEvent(t);!t.defaultPrevented&&(r===q.ENTER||r===q.SPACE)&&(this.isEventFromInsideListItem(t)||(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)))}isEventFromInsideListItem(t){let r=t.target;return r!==this&&document.activeElement===r&&this.contains(r)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let r=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(r)}getText(t,r,s){return C`
4005
4016
  <slot name="${t}">
4006
4017
  ${s?C`<mdc-text part="${t}" type="${r}" tagname="${pt.SPAN}">${s}</mdc-text>`:j}
4007
4018
  </slot>
4008
- `}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{t?(r.setAttribute("disabled",""),aa.onDisableListItem(this)):(r.removeAttribute("disabled"),aa.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.dispatchModifiedEvent(this.disabled?"disabled":"enabled")),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled),t.has("dataIndex")&&(this.ariaPosInSet=`${this.dataIndex!==void 0?this.dataIndex+1:""}`)}renderTrailingControls(){return C`<slot
4019
+ `}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{t?(r.setAttribute("disabled",""),la.onDisableListItem(this)):(r.removeAttribute("disabled"),la.onEnableListItem(this))}),this.setAttribute("aria-disabled",`${t}`)}update(t){super.update(t),t.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled),this.dispatchModifiedEvent(this.disabled?"disabled":"enabled")),t.has("softDisabled")&&this.disableSlottedChildren(this.softDisabled),t.has("dataIndex")&&(this.ariaPosInSet=`${this.dataIndex!==void 0?this.dataIndex+1:""}`)}renderTrailingControls(){return C`<slot
4009
4020
  name="trailing-controls"
4010
4021
  @click=${this.stopEventPropagation}
4011
4022
  @keyup=${this.stopEventPropagation}
@@ -4015,7 +4026,7 @@
4015
4026
  @click=${this.stopEventPropagation}
4016
4027
  @keyup=${this.stopEventPropagation}
4017
4028
  @keydown=${this.stopEventPropagation}
4018
- ></slot>`}stopEventPropagation(t){if(t instanceof KeyboardEvent){let r=this.getActionForKeyEvent(t);(r===X.ENTER||r===X.SPACE)&&t.stopPropagation()}else t instanceof MouseEvent&&t.stopPropagation()}click(){this.triggerClickEvent(new Event("click"))}render(){return C`
4029
+ ></slot>`}stopEventPropagation(t){if(t instanceof KeyboardEvent){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&t.stopPropagation()}else t instanceof MouseEvent&&t.stopPropagation()}click(){this.triggerClickEvent(new Event("click"))}render(){return C`
4019
4030
  <slot name="content">
4020
4031
  <div part="leading">
4021
4032
  ${this.renderLeadingControls()}
@@ -4033,7 +4044,7 @@
4033
4044
  ${this.renderTrailingControls()}
4034
4045
  </div>
4035
4046
  </slot>
4036
- `}};Pe.styles=[...q.styles,...sg],m([Ft({slot:"leading-controls"})],Pe.prototype,"leadingControlsSlot",2),m([Ft({slot:"trailing-controls"})],Pe.prototype,"trailingControlsSlot",2),m([u({type:String,reflect:!0})],Pe.prototype,"variant",2),m([u({type:String,reflect:!0})],Pe.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"secondary-label"})],Pe.prototype,"secondaryLabel",2),m([u({type:String,reflect:!0,attribute:"tertiary-label"})],Pe.prototype,"tertiaryLabel",2),m([u({type:String,reflect:!0,attribute:"side-header-text"})],Pe.prototype,"sideHeaderText",2),m([u({type:String,reflect:!0,attribute:"subline-text"})],Pe.prototype,"sublineText",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Pe.prototype,"softDisabled",2),m([u({type:Number,reflect:!0,attribute:"data-index"})],Pe.prototype,"dataIndex",2),m([u({type:Boolean,reflect:!0,attribute:"active"})],Pe.prototype,"active",2);var Ai=Pe;Ai.register(fd);var pA=Ai;var mA=U`
4047
+ `}};Pe.styles=[...X.styles,...ng],m([Ft({slot:"leading-controls"})],Pe.prototype,"leadingControlsSlot",2),m([Ft({slot:"trailing-controls"})],Pe.prototype,"trailingControlsSlot",2),m([u({type:String,reflect:!0})],Pe.prototype,"variant",2),m([u({type:String,reflect:!0})],Pe.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"secondary-label"})],Pe.prototype,"secondaryLabel",2),m([u({type:String,reflect:!0,attribute:"tertiary-label"})],Pe.prototype,"tertiaryLabel",2),m([u({type:String,reflect:!0,attribute:"side-header-text"})],Pe.prototype,"sideHeaderText",2),m([u({type:String,reflect:!0,attribute:"subline-text"})],Pe.prototype,"sublineText",2),m([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Pe.prototype,"softDisabled",2),m([u({type:Number,reflect:!0,attribute:"data-index"})],Pe.prototype,"dataIndex",2),m([u({type:Boolean,reflect:!0,attribute:"active"})],Pe.prototype,"active",2);var Ai=Pe;Ai.register(vd);var mA=Ai;var uA=U`
4037
4048
  :host {
4038
4049
  --mdc-marker-width: 0.25rem;
4039
4050
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -4058,7 +4069,7 @@
4058
4069
  var(--mdc-marker-striped-background-color) 0.375rem
4059
4070
  );
4060
4071
  }
4061
- `,ng=[mA];var ag=V.constructTagName("marker"),lg={SOLID:"solid",STRIPED:"striped"};var la=class extends q{constructor(){super(...arguments);this.variant=lg.SOLID}};la.styles=[...q.styles,...ng],m([u({type:String,reflect:!0})],la.prototype,"variant",2);var Mh=la;Mh.register(ag);var uA=Mh;var ne=V.constructTagName("menupopover"),Oh={PLACEMENT:Nt.BOTTOM_START,ORIENTATION:"vertical"};var Si=V.constructTagName("menusection"),dg={DIVIDER_VARIANT:"solid"};var io=V.constructTagName("sidenavigation"),qe={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},vd={VARIANT:qe.FLEXIBLE};var da=V.constructTagName("menubar"),cg={ORIENTATION:"vertical"};var fA=U`
4072
+ `,ag=[uA];var lg=V.constructTagName("marker"),dg={SOLID:"solid",STRIPED:"striped"};var da=class extends X{constructor(){super(...arguments);this.variant=dg.SOLID}};da.styles=[...X.styles,...ag],m([u({type:String,reflect:!0})],da.prototype,"variant",2);var Oh=da;Oh.register(lg);var fA=Oh;var ne=V.constructTagName("menupopover"),Rh={PLACEMENT:Nt.BOTTOM_START,ORIENTATION:"vertical"};var Si=V.constructTagName("menusection"),cg={DIVIDER_VARIANT:"solid"};var io=V.constructTagName("sidenavigation"),qe={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},bd={VARIANT:qe.FLEXIBLE};var ca=V.constructTagName("menubar"),hg={ORIENTATION:"vertical"};var vA=U`
4062
4073
  :host {
4063
4074
  display: flex;
4064
4075
  }
@@ -4070,7 +4081,7 @@
4070
4081
  :host([aria-orientation='vertical']) {
4071
4082
  flex-direction: column;
4072
4083
  }
4073
- `,hg=[fA];var ca=class extends Lt(Ct(q)){constructor(){super();this.depthManager=new Yi(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(r=>r===this)){let r=t.target;if(!r||!this.isTopLevelMenuItem(r))return;let s=this.menuItems.filter(c=>c!==r);this.getVisibleSubMenusOfItems(s).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=J.MENUBAR,this.ariaOrientation=cg.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(r=>{r.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"),r=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],s=[],d=y=>{y.role===J.MENUITEM&&!y.hasAttribute("disabled")?s.push(y):y.tagName.toLowerCase()===Si&&Array.from(y.children).forEach(d)};return r.forEach(d),s}getVisibleSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{var f;let d=s.getAttribute("id");if(!d)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${ne}[triggerid="${d}"]`);c&&c.visible&&r.push(c)}),r}getAllPopovers(){var d,c;if(!this.menuItems.length)return[];let t=(c=(d=this.menuItems[0])==null?void 0:d.closest(io))!=null?c:this;if(!t)return[];let r=[],s=f=>{f.querySelectorAll(`${ne}`).forEach(y=>{r.push(y)}),f.querySelectorAll("slot").forEach(y=>{y.assignedElements({flatten:!0}).forEach(s)})};return s(t),r}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((r,s)=>{let d=s===0?"0":"-1";r==null||r.setAttribute("tabindex",d)})}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t||r===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(r=>r.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(d=>d.getAttribute("id")===t))return;let s=this.getSubmenu(t);s&&s.show()}updatePopoverPlacement(){let t=Nt.RIGHT_START;this.getAllPopovers().forEach(r=>{r.setAttribute("placement",t)})}updateTabIndexAndFocus(t,r,s){var d,c;s<0||r<0||(r!==s&&((d=t[r])==null||d.setAttribute("tabindex","-1"),(c=t[s])==null||c.setAttribute("tabindex","0")),t[s]&&(t[s].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,r,s=!1){var y;let{length:d}=this.menuItems;if(d===0)return;let c=t;if(this.getKeyboardNavMode()===Kt.DEFAULT?c=r==="prev"?(t-1+d)%d:(t+1)%d:c=r==="prev"?Math.max(0,t-1):Math.min(t+1,d-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),s)){let I=(y=this.menuItems[c])==null?void 0:y.getAttribute("id");this.getSubmenu(I)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(I),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let r=t.parentElement;if(!r||t.role!==J.MENUITEM)return!1;let s=r.tagName.toLowerCase(),d=(c=r.parentElement)==null?void 0:c.tagName.toLowerCase();return s===da||s===io||s===Si&&(d===da||d===io)}isNestedMenuItem(t){return!!t.closest(ne)&&t.role===J.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(r=>this.contains(r));await Promise.all(t.map(r=>r.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===J.MENUITEM){let s=t.closest(ne),d=s==null?void 0:s.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===d);if(c){this.isTopLevelMenuItem(c)&&(s==null||s.hide()),await(s==null?void 0:s.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 r=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),r>=0&&this.navigateToMenuItem(r,"next",!0)}}getParentMenuItemIndex(t){let r=t.parentElement;for(;r;){if(r.tagName.toLowerCase()===ne){let s=r.getAttribute("triggerid"),d=this.menuItems.find(c=>c.getAttribute("id")===s);if(d)return this.isTopLevelMenuItem(d)?this.menuItems.findIndex(c=>c===d):this.getParentMenuItemIndex(d)}r=r.parentElement}return-1}async handleKeyDown(t){let r=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case X.HOME:this.updateTabIndexAndFocus(this.menuItems,r,0);break;case X.END:this.updateTabIndexAndFocus(this.menuItems,r,this.menuItems.length-1);break;case X.LEFT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnLeft(d);break}case X.RIGHT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnRight(d);break}case X.UP:{this.navigateToMenuItem(r,"prev"),t.preventDefault();break}case X.DOWN:{this.navigateToMenuItem(r,"next"),t.preventDefault();break}default:break}}render(){return C`<slot></slot>`}};ca.styles=[...q.styles,...hg],m([Ft({selector:"mdc-menusection",flatten:!0})],ca.prototype,"menusections",2);var Rh=ca;Rh.register(da);var vA=Rh;var ha=V.constructTagName("menuitem"),pa={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Ph={POSITIVE:"positive",NEGATIVE:"negative"},Dh={LEADING:"leading",TRAILING:"trailing"};var gA=U`
4084
+ `,pg=[vA];var ha=class extends Lt(Ct(X)){constructor(){super();this.depthManager=new Yi(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(r=>r===this)){let r=t.target;if(!r||!this.isTopLevelMenuItem(r))return;let s=this.menuItems.filter(c=>c!==r);this.getVisibleSubMenusOfItems(s).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=J.MENUBAR,this.ariaOrientation=hg.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(r=>{r.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"),r=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],s=[],d=y=>{y.role===J.MENUITEM&&!y.hasAttribute("disabled")?s.push(y):y.tagName.toLowerCase()===Si&&Array.from(y.children).forEach(d)};return r.forEach(d),s}getVisibleSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{var f;let d=s.getAttribute("id");if(!d)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${ne}[triggerid="${d}"]`);c&&c.visible&&r.push(c)}),r}getAllPopovers(){var d,c;if(!this.menuItems.length)return[];let t=(c=(d=this.menuItems[0])==null?void 0:d.closest(io))!=null?c:this;if(!t)return[];let r=[],s=f=>{f.querySelectorAll(`${ne}`).forEach(y=>{r.push(y)}),f.querySelectorAll("slot").forEach(y=>{y.assignedElements({flatten:!0}).forEach(s)})};return s(t),r}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((r,s)=>{let d=s===0?"0":"-1";r==null||r.setAttribute("tabindex",d)})}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t||r===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(r=>r.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(d=>d.getAttribute("id")===t))return;let s=this.getSubmenu(t);s&&s.show()}updatePopoverPlacement(){let t=Nt.RIGHT_START;this.getAllPopovers().forEach(r=>{r.setAttribute("placement",t)})}updateTabIndexAndFocus(t,r,s){var d,c;s<0||r<0||(r!==s&&((d=t[r])==null||d.setAttribute("tabindex","-1"),(c=t[s])==null||c.setAttribute("tabindex","0")),t[s]&&(t[s].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,r,s=!1){var y;let{length:d}=this.menuItems;if(d===0)return;let c=t;if(this.getKeyboardNavMode()===Kt.DEFAULT?c=r==="prev"?(t-1+d)%d:(t+1)%d:c=r==="prev"?Math.max(0,t-1):Math.min(t+1,d-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),s)){let I=(y=this.menuItems[c])==null?void 0:y.getAttribute("id");this.getSubmenu(I)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(I),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let r=t.parentElement;if(!r||t.role!==J.MENUITEM)return!1;let s=r.tagName.toLowerCase(),d=(c=r.parentElement)==null?void 0:c.tagName.toLowerCase();return s===ca||s===io||s===Si&&(d===ca||d===io)}isNestedMenuItem(t){return!!t.closest(ne)&&t.role===J.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(r=>this.contains(r));await Promise.all(t.map(r=>r.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===J.MENUITEM){let s=t.closest(ne),d=s==null?void 0:s.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===d);if(c){this.isTopLevelMenuItem(c)&&(s==null||s.hide()),await(s==null?void 0:s.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 r=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),r>=0&&this.navigateToMenuItem(r,"next",!0)}}getParentMenuItemIndex(t){let r=t.parentElement;for(;r;){if(r.tagName.toLowerCase()===ne){let s=r.getAttribute("triggerid"),d=this.menuItems.find(c=>c.getAttribute("id")===s);if(d)return this.isTopLevelMenuItem(d)?this.menuItems.findIndex(c=>c===d):this.getParentMenuItemIndex(d)}r=r.parentElement}return-1}async handleKeyDown(t){let r=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case q.HOME:this.updateTabIndexAndFocus(this.menuItems,r,0);break;case q.END:this.updateTabIndexAndFocus(this.menuItems,r,this.menuItems.length-1);break;case q.LEFT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnLeft(d);break}case q.RIGHT:{let d=r>=0?this.menuItems[r]:t.target;await this.crossMenubarNavigationOnRight(d);break}case q.UP:{this.navigateToMenuItem(r,"prev"),t.preventDefault();break}case q.DOWN:{this.navigateToMenuItem(r,"next"),t.preventDefault();break}default:break}}render(){return C`<slot></slot>`}};ha.styles=[...X.styles,...pg],m([Ft({selector:"mdc-menusection",flatten:!0})],ha.prototype,"menusections",2);var Ph=ha;Ph.register(ca);var gA=Ph;var pa=V.constructTagName("menuitem"),ma={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Dh={POSITIVE:"positive",NEGATIVE:"negative"},Fh={LEADING:"leading",TRAILING:"trailing"};var bA=U`
4074
4085
  :host(:dir(rtl))::part(trailing-arrow),
4075
4086
  :host(:dir(rtl))::part(leading-arrow) {
4076
4087
  transform: rotate(180deg);
@@ -4079,23 +4090,23 @@
4079
4090
  :host::part(leading-arrow) {
4080
4091
  --mdc-icon-size: 1rem;
4081
4092
  }
4082
- `,pg=[gA];var oo=class extends Ai{constructor(){super(),this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(o){this.getActionForKeyEvent(o)===X.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===X.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEM,this.variant=na.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Ph.NEGATIVE?pa.LEFT:pa.RIGHT;return C`
4093
+ `,mg=[bA];var oo=class extends Ai{constructor(){super(),this.addEventListener("keyup",this.handleKeyUp.bind(this))}handleKeyDown(o){this.getActionForKeyEvent(o)===q.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===q.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEM,this.variant=na.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Dh.NEGATIVE?ma.LEFT:ma.RIGHT;return C`
4083
4094
  <slot
4084
4095
  name="trailing-controls"
4085
4096
  @click=${this.stopEventPropagation}
4086
4097
  @keyup=${this.stopEventPropagation}
4087
4098
  @keydown=${this.stopEventPropagation}
4088
4099
  ></slot>
4089
- ${this.arrowPosition===Dh.TRAILING?C`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:j}
4090
- `}renderLeadingControls(){let o=this.arrowDirection===Ph.POSITIVE?pa.RIGHT:pa.LEFT;return C`
4100
+ ${this.arrowPosition===Fh.TRAILING?C`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:j}
4101
+ `}renderLeadingControls(){let o=this.arrowDirection===Dh.POSITIVE?ma.RIGHT:ma.LEFT;return C`
4091
4102
  <slot
4092
4103
  name="leading-controls"
4093
4104
  @click=${this.stopEventPropagation}
4094
4105
  @keyup=${this.stopEventPropagation}
4095
4106
  @keydown=${this.stopEventPropagation}
4096
4107
  ></slot>
4097
- ${this.arrowPosition===Dh.LEADING?C`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:j}
4098
- `}};oo.styles=[...Ai.styles,...pg],m([u({type:String,reflect:!0,attribute:"arrow-position"})],oo.prototype,"arrowPosition",2),m([u({type:String,reflect:!0,attribute:"arrow-direction"})],oo.prototype,"arrowDirection",2),m([u({type:String,reflect:!0})],oo.prototype,"name",2),m([u({type:String,reflect:!0})],oo.prototype,"value",2);var br=oo;br.register(ha);var bA=br;var mg=V.constructTagName("statictoggle"),yA={DEFAULT:"default",COMPACT:"compact"},Fh={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},ug={compact:.75,default:1.25},fg={SIZE:yA.DEFAULT};var EA=[U`
4108
+ ${this.arrowPosition===Fh.LEADING?C`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:j}
4109
+ `}};oo.styles=[...Ai.styles,...mg],m([u({type:String,reflect:!0,attribute:"arrow-position"})],oo.prototype,"arrowPosition",2),m([u({type:String,reflect:!0,attribute:"arrow-direction"})],oo.prototype,"arrowDirection",2),m([u({type:String,reflect:!0})],oo.prototype,"name",2),m([u({type:String,reflect:!0})],oo.prototype,"value",2);var br=oo;br.register(pa);var yA=br;var ug=V.constructTagName("statictoggle"),EA={DEFAULT:"default",COMPACT:"compact"},$h={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},fg={compact:.75,default:1.25},vg={SIZE:EA.DEFAULT};var TA=[U`
4099
4110
  :host {
4100
4111
  --mdc-statictoggle-width: 3rem;
4101
4112
  --mdc-statictoggle-height: 1.5rem;
@@ -4190,17 +4201,17 @@
4190
4201
  border: 1px solid GrayText;
4191
4202
  }
4192
4203
  }
4193
- `],vg=EA;var so=class extends Gt(q){constructor(){super(...arguments);this.checked=!1;this.size=fg.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return C`
4204
+ `],gg=TA;var so=class extends Gt(X){constructor(){super(...arguments);this.checked=!1;this.size=vg.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return C`
4194
4205
  <slot></slot>
4195
4206
  <div part="slider">
4196
4207
  <mdc-icon
4197
- name="${this.checked?Fh.CHECKED:Fh.UNCHECKED}"
4208
+ name="${this.checked?$h.CHECKED:$h.UNCHECKED}"
4198
4209
  part="toggle-icon"
4199
4210
  length-unit="rem"
4200
- size="${ug[this.size]}"
4211
+ size="${fg[this.size]}"
4201
4212
  ></mdc-icon>
4202
4213
  </div>
4203
- `}};so.styles=[...q.styles,...vg],m([u({type:Boolean,reflect:!0})],so.prototype,"checked",2),m([u({type:String,reflect:!0})],so.prototype,"size",2),m([u({type:Boolean,reflect:!0})],so.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],so.prototype,"softDisabled",2);var $h=so;$h.register(mg);var TA=$h;var ma=V.constructTagName("tooltip"),yr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},De={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:Nt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:yr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var xA=U`
4214
+ `}};so.styles=[...X.styles,...gg],m([u({type:Boolean,reflect:!0})],so.prototype,"checked",2),m([u({type:String,reflect:!0})],so.prototype,"size",2),m([u({type:Boolean,reflect:!0})],so.prototype,"readonly",2),m([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],so.prototype,"softDisabled",2);var zh=so;zh.register(ug);var xA=zh;var ua=V.constructTagName("tooltip"),yr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},De={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:Nt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:yr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var AA=U`
4204
4215
  :host {
4205
4216
  --mdc-tooltip-max-width: 400px;
4206
4217
  --mdc-tooltip-padding: 0.75rem;
@@ -4224,29 +4235,29 @@
4224
4235
  :host([color='contrast'])::part(popover-content) {
4225
4236
  color: var(--mdc-tooltip-text-color-contrast);
4226
4237
  }
4227
- `,gg=[xA];var js=class extends Ye{constructor(){super(...arguments);this.tooltipType=De.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=De.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=J.TOOLTIP,this.ariaHidden=De.ARIA_HIDDEN,this.backdrop=De.BACKDROP,this.delay=this.delay||De.DELAY,this.disableAriaExpanded=De.DISABLE_ARIA_EXPANDED,this.hideOnBlur=De.HIDE_ON_BLUR,this.hideOnEscape=De.HIDE_ON_ESCAPE,this.offset=this.offset||De.OFFSET,this.placement=this.placement||De.PLACEMENT,this.trigger=De.TRIGGER,this.closeButton=At.CLOSE_BUTTON,this.disableFlip=At.DISABLE_FLIP,this.focusBackToTrigger=At.FOCUS_BACK,this.focusTrap=At.FOCUS_TRAP,this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE,this.interactive=At.INTERACTIVE,this.preventScroll=At.PREVENT_SCROLL,this.size=At.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(yr).includes(t)?t:De.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Ce()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case yr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case yr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Nt).includes(this.placement)||(this.placement=De.PLACEMENT)}onTooltipTypeUpdated(t){let r=t.get("tooltipType");if(Object.values(yr).includes(this.tooltipType)||this.setTooltipType(De.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case yr.DESCRIPTION:r===yr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case yr.LABEL:r===yr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:r===yr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):r===yr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,r){let{triggerElement:s}=this;t===r||!s||(r||this.depthManager.remove([this]),await super.isOpenUpdated(t,r))}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&&mu(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};js.styles=[...Ye.styles,...gg],m([u({type:String,attribute:"tooltip-type",reflect:!0})],js.prototype,"tooltipType",2),m([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],js.prototype,"onlyShowWhenTriggerOverflows",2);var zh=js;zh.register(ma);var AA=zh;var no=mi(class extends Kr{constructor(a){var o;if(super(a),a.type!==ir.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 r,s;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(d=>d!=="")));for(let d in o)o[d]&&!((r=this.nt)!=null&&r.has(d))&&this.st.add(d);return this.render(o)}let t=a.element.classList;for(let d of this.st)d in o||(t.remove(d),this.st.delete(d));for(let d in o){let c=!!o[d];c===this.st.has(d)||(s=this.nt)!=null&&s.has(d)||(c?(t.add(d),this.st.add(d)):(t.remove(d),this.st.delete(d)))}return Ie}});var bg=V.constructTagName("toggle"),ua={DEFAULT:"default",COMPACT:"compact"};var Vh={SIZE:ua.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var ao=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=he.consume({host:this,context:Th.Context})}willUpdate(){this.controlType&&ld.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=ad.CONTROL_TYPE)}}return m([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var gd=V.constructTagName("menuitemcheckbox"),fa={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},yg={INDICATOR:fa.CHECKBOX};var SA=U`
4238
+ `,bg=[AA];var js=class extends Ye{constructor(){super(...arguments);this.tooltipType=De.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=De.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=J.TOOLTIP,this.ariaHidden=De.ARIA_HIDDEN,this.backdrop=De.BACKDROP,this.delay=this.delay||De.DELAY,this.disableAriaExpanded=De.DISABLE_ARIA_EXPANDED,this.hideOnBlur=De.HIDE_ON_BLUR,this.hideOnEscape=De.HIDE_ON_ESCAPE,this.offset=this.offset||De.OFFSET,this.placement=this.placement||De.PLACEMENT,this.trigger=De.TRIGGER,this.closeButton=At.CLOSE_BUTTON,this.disableFlip=At.DISABLE_FLIP,this.focusBackToTrigger=At.FOCUS_BACK,this.focusTrap=At.FOCUS_TRAP,this.hideOnOutsideClick=At.HIDE_ON_CLICK_OUTSIDE,this.interactive=At.INTERACTIVE,this.preventScroll=At.PREVENT_SCROLL,this.size=At.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(yr).includes(t)?t:De.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Ce()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case yr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case yr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Nt).includes(this.placement)||(this.placement=De.PLACEMENT)}onTooltipTypeUpdated(t){let r=t.get("tooltipType");if(Object.values(yr).includes(this.tooltipType)||this.setTooltipType(De.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case yr.DESCRIPTION:r===yr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case yr.LABEL:r===yr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:r===yr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):r===yr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,r){let{triggerElement:s}=this;t===r||!s||(r||this.depthManager.remove([this]),await super.isOpenUpdated(t,r))}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&&uu(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};js.styles=[...Ye.styles,...bg],m([u({type:String,attribute:"tooltip-type",reflect:!0})],js.prototype,"tooltipType",2),m([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],js.prototype,"onlyShowWhenTriggerOverflows",2);var Vh=js;Vh.register(ua);var SA=Vh;var no=mi(class extends Kr{constructor(a){var o;if(super(a),a.type!==ir.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 r,s;if(this.st===void 0){this.st=new Set,a.strings!==void 0&&(this.nt=new Set(a.strings.join(" ").split(/\s/).filter(d=>d!=="")));for(let d in o)o[d]&&!((r=this.nt)!=null&&r.has(d))&&this.st.add(d);return this.render(o)}let t=a.element.classList;for(let d of this.st)d in o||(t.remove(d),this.st.delete(d));for(let d in o){let c=!!o[d];c===this.st.has(d)||(s=this.nt)!=null&&s.has(d)||(c?(t.add(d),this.st.add(d)):(t.remove(d),this.st.delete(d)))}return Ie}});var yg=V.constructTagName("toggle"),fa={DEFAULT:"default",COMPACT:"compact"};var Bh={SIZE:fa.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var ao=a=>{class o extends a{constructor(){super(...arguments);this.controlTypeProviderContext=he.consume({host:this,context:Ah.Context})}willUpdate(){this.controlType&&dd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=ld.CONTROL_TYPE)}}return m([u({type:String,attribute:"control-type",reflect:!0})],o.prototype,"controlType",2),o};var yd=V.constructTagName("menuitemcheckbox"),va={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Eg={INDICATOR:va.CHECKBOX};var IA=U`
4228
4239
  :host::part(checkmark-icon) {
4229
4240
  --mdc-icon-fill-color: currentColor;
4230
4241
  }
4231
4242
  :host .hidden-checkmark {
4232
4243
  visibility: hidden;
4233
4244
  }
4234
- `,Eg=[SA];var qs=class extends ao(br){constructor(){super();this.checked=!1;this.indicator=yg.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.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===fa.CHECKBOX?C`
4245
+ `,Tg=[IA];var qs=class extends ao(br){constructor(){super();this.checked=!1;this.indicator=Eg.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.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===va.CHECKBOX?C`
4235
4246
  <mdc-staticcheckbox
4236
4247
  slot="leading-controls"
4237
4248
  ?checked="${this.checked}"
4238
4249
  ?disabled="${this.disabled}"
4239
4250
  ?soft-disabled="${this.softDisabled}"
4240
4251
  ></mdc-staticcheckbox>
4241
- `:j}staticToggle(){return this.indicator===fa.TOGGLE?C`
4252
+ `:j}staticToggle(){return this.indicator===va.TOGGLE?C`
4242
4253
  <mdc-statictoggle
4243
4254
  slot="trailing-controls"
4244
4255
  ?checked="${this.checked}"
4245
4256
  ?disabled="${this.disabled}"
4246
4257
  ?soft-disabled="${this.softDisabled}"
4247
- size="${ua.COMPACT}"
4258
+ size="${fa.COMPACT}"
4248
4259
  ></mdc-statictoggle>
4249
- `:j}getCheckmarkIcon(){return this.indicator===fa.CHECKMARK?C`
4260
+ `:j}getCheckmarkIcon(){return this.indicator===va.CHECKMARK?C`
4250
4261
  <mdc-icon
4251
4262
  slot="trailing-controls"
4252
4263
  name="check-bold"
@@ -4273,21 +4284,21 @@
4273
4284
  ${this.staticToggle()} ${this.getCheckmarkIcon()}
4274
4285
  </div>
4275
4286
  </slot>
4276
- `}};qs.styles=[...br.styles,...Eg],m([u({type:Boolean,reflect:!0})],qs.prototype,"checked",2),m([u({type:String,reflect:!0})],qs.prototype,"indicator",2);var Bh=qs;Bh.register(gd);var IA=Bh;var bd=V.constructTagName("menuitemradio"),yd={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},Tg={INDICATOR:yd.RADIO};var _A=U`
4287
+ `}};qs.styles=[...br.styles,...Tg],m([u({type:Boolean,reflect:!0})],qs.prototype,"checked",2),m([u({type:String,reflect:!0})],qs.prototype,"indicator",2);var Uh=qs;Uh.register(yd);var _A=Uh;var Ed=V.constructTagName("menuitemradio"),Td={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},xg={INDICATOR:Td.RADIO};var CA=U`
4277
4288
  :host::part(checkmark-icon) {
4278
4289
  --mdc-icon-fill-color: currentColor;
4279
4290
  }
4280
4291
  :host .hidden-checkmark {
4281
4292
  visibility: hidden;
4282
4293
  }
4283
- `,xg=[_A];var Xs=class extends ao(br){constructor(){super();this.checked=!1;this.indicator=Tg.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Si}, ${ne}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(r=>{r!==this&&r.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===yd.RADIO?C`
4294
+ `,Ag=[CA];var Xs=class extends ao(br){constructor(){super();this.checked=!1;this.indicator=xg.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${Si}, ${ne}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(r=>{r!==this&&r.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===Td.RADIO?C`
4284
4295
  <mdc-staticradio
4285
4296
  slot="leading-controls"
4286
4297
  ?checked="${this.checked}"
4287
4298
  ?disabled="${this.disabled}"
4288
4299
  ?soft-disabled="${this.softDisabled}"
4289
4300
  ></mdc-staticradio>
4290
- `:j}renderCheckmarkIcon(){return this.indicator===yd.CHECKMARK?C`
4301
+ `:j}renderCheckmarkIcon(){return this.indicator===Td.CHECKMARK?C`
4291
4302
  <mdc-icon
4292
4303
  slot="trailing-controls"
4293
4304
  name="check-bold"
@@ -4314,7 +4325,7 @@
4314
4325
  ${this.renderCheckmarkIcon()}
4315
4326
  </div>
4316
4327
  </slot>
4317
- `}};Xs.styles=[...br.styles,...xg],m([u({type:Boolean,reflect:!0})],Xs.prototype,"checked",2),m([u({type:String,reflect:!0})],Xs.prototype,"indicator",2);var Uh=Xs;Uh.register(bd);var CA=Uh;var lo=V.constructTagName("navmenuitem"),Ag={DOT:ur.DOT,COUNTER:ur.COUNTER},Sg={RIGHT_ARROW:"arrow-right-bold"},Hh={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:_o[24],VARIANT:qe.FLEXIBLE,CANNOT_ACTIVATE:!1};var wA=U`
4328
+ `}};Xs.styles=[...br.styles,...Ag],m([u({type:Boolean,reflect:!0})],Xs.prototype,"checked",2),m([u({type:String,reflect:!0})],Xs.prototype,"indicator",2);var Hh=Xs;Hh.register(Ed);var wA=Hh;var lo=V.constructTagName("navmenuitem"),Sg={DOT:ur.DOT,COUNTER:ur.COUNTER},Ig={RIGHT_ARROW:"arrow-right-bold"},Gh={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:_o[24],VARIANT:qe.FLEXIBLE,CANNOT_ACTIVATE:!1};var kA=U`
4318
4329
  :host::part(popover-content) {
4319
4330
  padding: 0.75rem 0.5rem;
4320
4331
  }
@@ -4322,7 +4333,7 @@
4322
4333
  ::slotted(mdc-divider) {
4323
4334
  margin-block: 0.25rem;
4324
4335
  }
4325
- `,Ig=[wA];var va=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===J.MENUITEM||o===J.MENUITEMCHECKBOX||o===J.MENUITEMRADIO},Gh=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===ne};var ga=class extends Ye{constructor(){super();this.placement=Oh.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var r;(r=this.triggerElement)!=null&&r.hasAttribute("soft-disabled")||(t.composedPath().find(s=>s.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let r=t.target;va(r)&&(t.stopImmediatePropagation(),r.addEventListener("destroyed",this.handleItemChangeEvent),r.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(r=>r.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let r=!1;this.collectMenuItems();let s=t.target,d=this.getCurrentIndex(s);if(d===-1)return;switch(this.resetTabIndexes(d),this.getActionForKeyEvent(t,!0)){case X.HOME:{this.resetTabIndexAndSetFocus(0,d),r=!0;break}case X.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,d),r=!0;break}case X.DOWN:{let f=d+1===this.menuItems.length?0:d+1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case X.UP:{let f=d-1===-1?this.menuItems.length-1:d-1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case X.RIGHT:{let f=this.getSubMenuPopoverOfTarget(s);f&&(f.show(),r=!0);break}case X.LEFT:{Gh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,d),r=!0);break}case X.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,d),r=!0);break}case X.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}case X.SPACE:{r=!0;break}default:break}r&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let r=!1,s=t.target;switch(this.getActionForKeyEvent(t)){case X.SPACE:{!s.matches(`${bd}, ${gd}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0));break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,d;let r=t.getAttribute("id");return r?(d=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:d.call(s,`${ne}[triggerid="${r}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=r.map(d=>d.tagName.toLowerCase()===Si?Array.from(d.children).filter(c=>va(c)):va(d)?d:[]).flat().filter(d=>!!d&&!d.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(d=>this.getSubMenuPopoverOfTarget(d))}getOpenSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.visible&&r.push(d)}),r}connectedCallback(){super.connectedCallback(),this.role=J.MENU,this.ariaOrientation=Oh.ORIENTATION,this.backdrop=!1,this.color=Po.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,r){return t===r||!this.triggerElement?Promise.resolve():(r&&(this.backdrop=![ha,lo].includes(this.triggerElement.tagName.toLowerCase())),r===!1&&this.menuItemsWithSubMenus.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,r))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(r=>r.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t)}resetTabIndexAndSetFocus(t,r){t!==r&&(this.menuItems[r].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(r=>r!==t&&Gh(r))}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(d=>d!==t);this.getOpenSubMenusOfItems(r).forEach(d=>{d.hide()})}fireMenuItemAction(t){t.matches(ha)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(!(!va(r)||!t.isTrusted||r.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}};ga.styles=[...Ye.styles,...Ig],m([u({type:String,reflect:!0})],ga.prototype,"placement",2);var Kh=ga;Kh.register(ne);var kA=Kh;var Ed=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var s,d;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((d=(s=o==null?void 0:o.parentElement)==null?void 0:s.children)!=null?d:[]).some(c=>c!==o&&c.tagName.toLowerCase()===ne&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(ne);if(!s)break;let d=s.getAttribute("triggerid");if(!d)break;let c=document.getElementById(d);if(c&&c.tagName.toLowerCase()===lo)t.push(c),r=c;else break}return t}setCurrentActiveNavMenuItem(o){var d;let t=((d=this.currentActiveNavMenuItem)==null?void 0:d.navId)===(o==null?void 0:o.navId),r=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||r||(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","")})}};Ed.context=io;var Td=Ed;var NA=U`
4336
+ `,_g=[kA];var ga=a=>{var t;if(!a)return!1;let o=(t=a.getAttribute("role"))==null?void 0:t.toLowerCase();return o===J.MENUITEM||o===J.MENUITEMCHECKBOX||o===J.MENUITEMRADIO},Kh=a=>{var o;return((o=a==null?void 0:a.tagName)==null?void 0:o.toLowerCase())===ne};var ba=class extends Ye{constructor(){super();this.placement=Rh.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let r=t.composedPath(),s=this.contains(t.target)||r.includes(this.triggerElement)||r.includes(this),d=this.backdropElement?r.includes(this.backdropElement):!1;(!s||d)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var r;(r=this.triggerElement)!=null&&r.hasAttribute("soft-disabled")||(t.composedPath().find(s=>s.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let r=t.target;ga(r)&&(t.stopImmediatePropagation(),r.addEventListener("destroyed",this.handleItemChangeEvent),r.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(r=>r.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let r=!1;this.collectMenuItems();let s=t.target,d=this.getCurrentIndex(s);if(d===-1)return;switch(this.resetTabIndexes(d),this.getActionForKeyEvent(t,!0)){case q.HOME:{this.resetTabIndexAndSetFocus(0,d),r=!0;break}case q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,d),r=!0;break}case q.DOWN:{let f=d+1===this.menuItems.length?0:d+1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case q.UP:{let f=d-1===-1?this.menuItems.length-1:d-1;this.resetTabIndexAndSetFocus(f,d),r=!0;break}case q.RIGHT:{let f=this.getSubMenuPopoverOfTarget(s);f&&(f.show(),r=!0);break}case q.LEFT:{Kh(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,d),r=!0);break}case q.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,d),r=!0);break}case q.ENTER:{!this.getSubMenuPopoverOfTarget(s)&&!s.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0);break}case q.SPACE:{r=!0;break}default:break}r&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let r=!1,s=t.target;switch(this.getActionForKeyEvent(t)){case q.SPACE:{!s.matches(`${Ed}, ${yd}`)&&!s.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(s)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(s),r=!0));break}default:break}r&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var s,d;let r=t.getAttribute("id");return r?(d=(s=this.parentElement)==null?void 0:s.querySelector)==null?void 0:d.call(s,`${ne}[triggerid="${r}"]`):null}collectMenuItems(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=r.map(d=>d.tagName.toLowerCase()===Si?Array.from(d.children).filter(c=>ga(c)):ga(d)?d:[]).flat().filter(d=>!!d&&!d.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(d=>this.getSubMenuPopoverOfTarget(d))}getOpenSubMenusOfItems(t){let r=[];return!t||t.length===0||t.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.visible&&r.push(d)}),r}connectedCallback(){super.connectedCallback(),this.role=J.MENU,this.ariaOrientation=Rh.ORIENTATION,this.backdrop=!1,this.color=Po.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,r){return t===r||!this.triggerElement?Promise.resolve():(r&&(this.backdrop=![pa,lo].includes(this.triggerElement.tagName.toLowerCase())),r===!1&&this.menuItemsWithSubMenus.forEach(s=>{let d=this.getSubMenuPopoverOfTarget(s);d&&d.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,r))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(r=>r.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(r=>r===t)}resetTabIndexAndSetFocus(t,r){t!==r&&(this.menuItems[r].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(r=>r!==t&&Kh(r))}closeOtherSubMenusOnSameLevel(t){let r=this.menuItemsWithSubMenus.filter(d=>d!==t);this.getOpenSubMenusOfItems(r).forEach(d=>{d.hide()})}fireMenuItemAction(t){t.matches(pa)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let r=t.target;if(!(!ga(r)||!t.isTrusted||r.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(r)){this.closeOtherSubMenusOnSameLevel(r);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(r)}}};ba.styles=[...Ye.styles,..._g],m([u({type:String,reflect:!0})],ba.prototype,"placement",2);var Wh=ba;Wh.register(ne);var NA=Wh;var xd=class{constructor(o,t){this.variant=o,this.expanded=t}hasSiblingWithTriggerId(o){var s,d;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((d=(s=o==null?void 0:o.parentElement)==null?void 0:s.children)!=null?d:[]).some(c=>c!==o&&c.tagName.toLowerCase()===ne&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(o){if(!o)return[];let t=[],r=o;for(;r;){let s=r==null?void 0:r.closest(ne);if(!s)break;let d=s.getAttribute("triggerid");if(!d)break;let c=document.getElementById(d);if(c&&c.tagName.toLowerCase()===lo)t.push(c),r=c;else break}return t}setCurrentActiveNavMenuItem(o){var d;let t=((d=this.currentActiveNavMenuItem)==null?void 0:d.navId)===(o==null?void 0:o.navId),r=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||(o==null?void 0:o.softDisabled);if(t||r||(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","")})}};xd.context=io;var Ad=xd;var LA=U`
4326
4337
  :host {
4327
4338
  --mdc-sidenavigation-expanded-width: 14.5rem;
4328
4339
  --mdc-sidenavigation-expanded-left-padding: 1rem;
@@ -4460,7 +4471,7 @@
4460
4471
  :host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
4461
4472
  opacity: 1;
4462
4473
  }
4463
- `,_g=[NA];var Ii=class extends ce{constructor(){super({context:Td.context,initialValue:new Td(vd.VARIANT,!0)});this.variant=vd.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(r=>r===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===qe.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 r;if((r=this.context)!=null&&r.value){let s=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(s)}};this.findNav=(t,r)=>t.find(s=>s.navId===r);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.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 Td.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case qe.FIXED_EXPANDED:this.expanded=!0;break;case qe.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===qe.FLEXIBLE||this.variant===qe.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(`${lo}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(qe).includes(t)?t:vd.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===qe.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===tr.SPACE&&t.preventDefault()}render(){var t;return this.variant===qe.HIDDEN?C``:C`
4474
+ `,Cg=[LA];var Ii=class extends ce{constructor(){super({context:Ad.context,initialValue:new Ad(bd.VARIANT,!0)});this.variant=bd.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(r=>r===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===qe.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 r;if((r=this.context)!=null&&r.value){let s=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(s)}};this.findNav=(t,r)=>t.find(s=>s.navId===r);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=J.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 Ad.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case qe.FIXED_EXPANDED:this.expanded=!0;break;case qe.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===qe.FLEXIBLE||this.variant===qe.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(`${lo}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(qe).includes(t)?t:bd.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===qe.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===tr.SPACE&&t.preventDefault()}render(){var t;return this.variant===qe.HIDDEN?C``:C`
4464
4475
  <div part="side-navigation-container" id="side-nav-container">
4465
4476
  <div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
4466
4477
  <slot name="scrollable-section">
@@ -4504,7 +4515,7 @@
4504
4515
  aria-controls="side-nav-container"
4505
4516
  ></mdc-button>
4506
4517
  </mdc-divider>`:j}
4507
- `}};Ii.styles=[...q.styles,..._g],m([u({type:String,reflect:!0})],Ii.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"footer-text"})],Ii.prototype,"footerText",2),m([u({type:Boolean,reflect:!0,attribute:"expanded"})],Ii.prototype,"expanded",2),m([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Ii.prototype,"grabberBtnAriaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Ii.prototype,"hideFixedSectionDivider",2);var Qo=Ii;var LA=U`
4518
+ `}};Ii.styles=[...X.styles,...Cg],m([u({type:String,reflect:!0})],Ii.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"footer-text"})],Ii.prototype,"footerText",2),m([u({type:Boolean,reflect:!0,attribute:"expanded"})],Ii.prototype,"expanded",2),m([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Ii.prototype,"grabberBtnAriaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Ii.prototype,"hideFixedSectionDivider",2);var Jo=Ii;var MA=U`
4508
4519
  :host {
4509
4520
  --mdc-menusection-divider-margin-block: 0.25rem;
4510
4521
  --mdc-menusection-gap: 0rem;
@@ -4525,7 +4536,7 @@
4525
4536
  :host::part(align-header) {
4526
4537
  --mdc-listheader-padding: var(--mdc-menusection-header-padding);
4527
4538
  }
4528
- `,Cg=[LA];var Qr=class extends q{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=dg.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=he.consume({host:this,context:Qo.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",J.GROUP)}update(t){var d;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let r=(d=this.sideNavigationContext)==null?void 0:d.value;if(!r)return;let{expanded:s}=r;this.hideHeaderText=!s}renderHeader(){var t,r;return this.headerText?C` <mdc-listheader
4539
+ `,wg=[MA];var Qr=class extends X{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=cg.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=he.consume({host:this,context:Jo.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",J.GROUP)}update(t){var d;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let r=(d=this.sideNavigationContext)==null?void 0:d.value;if(!r)return;let{expanded:s}=r;this.hideHeaderText=!s}renderHeader(){var t,r;return this.headerText?C` <mdc-listheader
4529
4540
  part="header ${(r=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&r.expanded?"align-header":""}"
4530
4541
  header-text="${this.headerText}"
4531
4542
  prefix-icon="${tt(this.prefixIcon)}"
@@ -4534,7 +4545,7 @@
4534
4545
  ${this.hideHeaderText?null:this.renderHeader()}
4535
4546
  <slot part="container"></slot>
4536
4547
  ${this.showDivider?C`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
4537
- `}};Qr.styles=[...q.styles,...Cg],m([u({type:String,reflect:!0,attribute:"aria-label"})],Qr.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Qr.prototype,"headerText",2),m([u({type:String,attribute:"prefix-icon"})],Qr.prototype,"prefixIcon",2),m([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Qr.prototype,"showDivider",2),m([u({type:String,reflect:!0,attribute:"divider-variant"})],Qr.prototype,"dividerVariant",2),m([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Qr.prototype,"hideHeaderText",2);var Wh=Qr;Wh.register(Si);var MA=Wh;var OA=[bt,U`
4548
+ `}};Qr.styles=[...X.styles,...wg],m([u({type:String,reflect:!0,attribute:"aria-label"})],Qr.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Qr.prototype,"headerText",2),m([u({type:String,attribute:"prefix-icon"})],Qr.prototype,"prefixIcon",2),m([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Qr.prototype,"showDivider",2),m([u({type:String,reflect:!0,attribute:"divider-variant"})],Qr.prototype,"dividerVariant",2),m([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Qr.prototype,"hideHeaderText",2);var Yh=Qr;Yh.register(Si);var OA=Yh;var RA=[bt,U`
4538
4549
  :host {
4539
4550
  --mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
4540
4551
  --mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
@@ -4725,7 +4736,7 @@
4725
4736
  background-color: ButtonText;
4726
4737
  }
4727
4738
  }
4728
- `,...St()],wg=OA;var Zt=class extends br{constructor(){super();this.cannotActivate=Hh.CANNOT_ACTIVATE;this.maxCounter=Hh.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=he.consume({host:this,context:Qo.Context});this.emitNavMenuItemActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(r)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var s;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let r=(s=this.sideNavigationContext)==null?void 0:s.value;r&&(this.showLabel=this.isNested()?!0:r.expanded)}renderDynamicTooltip(){var r;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Ce()}`);let t=document.createElement(ma);t.id=`mdc-navmenuitem-tooltip-${Ce()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((r=this.tooltipBoundaryPadding)==null?void 0:r.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${ma}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ne)return!0;t=t.parentElement}return!1}handleClickEvent(){this.disabled||this.cannotActivate||this.emitNavMenuItemActiveChange(this.active)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${ko(this.iconName)}-filled`}renderBadge(t){return Object.values(Ag).includes(this.badgeType)?C`
4739
+ `,...St()],kg=RA;var Zt=class extends br{constructor(){super();this.cannotActivate=Gh.CANNOT_ACTIVATE;this.maxCounter=Gh.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=he.consume({host:this,context:Jo.Context});this.emitNavMenuItemActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(r)};this.addEventListener("click",this.handleClickEvent.bind(this))}connectedCallback(){super.connectedCallback(),this.variant=void 0,!this.navId&&this.onerror&&this.onerror("[mdc-navmenuitem] navId is required and was not provided."),this.toggleAttribute("in-menupopover",this.isNested())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var s;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let r=(s=this.sideNavigationContext)==null?void 0:s.value;r&&(this.showLabel=this.isNested()?!0:r.expanded)}renderDynamicTooltip(){var r;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Ce()}`);let t=document.createElement(ua);t.id=`mdc-navmenuitem-tooltip-${Ce()}`,t.textContent=this.hasActiveChild?this.isActiveParentTooltipText:this.tooltipText,t.setAttribute("triggerid",this.id),t.setAttribute("show-arrow",""),t.setAttribute("placement",this.tooltipPlacement),this.tooltipType&&t.setAttribute("tooltip-type",this.tooltipType),t.setAttribute("boundary-padding",((r=this.tooltipBoundaryPadding)==null?void 0:r.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${ua}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ne)return!0;t=t.parentElement}return!1}handleClickEvent(){this.disabled||this.cannotActivate||this.emitNavMenuItemActiveChange(this.active)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${ko(this.iconName)}-filled`}renderBadge(t){return Object.values(Sg).includes(this.badgeType)?C`
4729
4740
  <mdc-badge
4730
4741
  part="${t?"":"badge"}"
4731
4742
  type="${tt(this.badgeType)}"
@@ -4755,8 +4766,8 @@
4755
4766
  </mdc-text>
4756
4767
  ${this.renderBadge(this.showLabel)}
4757
4768
  `:j}
4758
- ${t!=null&&t.hasSiblingWithTriggerId(this)?C` <mdc-icon name=${Sg.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:j}
4759
- `}};Zt.styles=[...br.styles,...wg],m([u({type:Boolean,reflect:!0})],Zt.prototype,"active",2),m([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],Zt.prototype,"cannotActivate",2),m([u({type:String,attribute:"icon-name",reflect:!0})],Zt.prototype,"iconName",2),m([u({type:String,reflect:!0,attribute:"badge-type"})],Zt.prototype,"badgeType",2),m([u({type:Number,reflect:!0})],Zt.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],Zt.prototype,"maxCounter",2),m([u({type:String,reflect:!0,attribute:"nav-id"})],Zt.prototype,"navId",2),m([u({type:Boolean,reflect:!0,attribute:"show-label"})],Zt.prototype,"showLabel",2),m([u({type:String,attribute:"aria-label"})],Zt.prototype,"ariaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],Zt.prototype,"disableAriaCurrent",2),m([u({type:String,reflect:!0,attribute:"tooltip-text"})],Zt.prototype,"tooltipText",2),m([u({type:String,reflect:!0,attribute:"tooltip-placement"})],Zt.prototype,"tooltipPlacement",2),m([u({type:String,reflect:!0,attribute:"tooltip-type"})],Zt.prototype,"tooltipType",2),m([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],Zt.prototype,"tooltipAppearance",2),m([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],Zt.prototype,"tooltipBoundaryPadding",2),m([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],Zt.prototype,"isActiveParentTooltipText",2),m([ut()],Zt.prototype,"hasActiveChild",2);var Yh=Zt;Yh.register(lo);var RA=Yh;var kg="check-bold",Er=V.constructTagName("option");var ba=V.constructTagName("optgroup"),jh="header-id";var PA=U`
4769
+ ${t!=null&&t.hasSiblingWithTriggerId(this)?C` <mdc-icon name=${Ig.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:j}
4770
+ `}};Zt.styles=[...br.styles,...kg],m([u({type:Boolean,reflect:!0})],Zt.prototype,"active",2),m([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],Zt.prototype,"cannotActivate",2),m([u({type:String,attribute:"icon-name",reflect:!0})],Zt.prototype,"iconName",2),m([u({type:String,reflect:!0,attribute:"badge-type"})],Zt.prototype,"badgeType",2),m([u({type:Number,reflect:!0})],Zt.prototype,"counter",2),m([u({type:Number,attribute:"max-counter",reflect:!0})],Zt.prototype,"maxCounter",2),m([u({type:String,reflect:!0,attribute:"nav-id"})],Zt.prototype,"navId",2),m([u({type:Boolean,reflect:!0,attribute:"show-label"})],Zt.prototype,"showLabel",2),m([u({type:String,attribute:"aria-label"})],Zt.prototype,"ariaLabel",2),m([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],Zt.prototype,"disableAriaCurrent",2),m([u({type:String,reflect:!0,attribute:"tooltip-text"})],Zt.prototype,"tooltipText",2),m([u({type:String,reflect:!0,attribute:"tooltip-placement"})],Zt.prototype,"tooltipPlacement",2),m([u({type:String,reflect:!0,attribute:"tooltip-type"})],Zt.prototype,"tooltipType",2),m([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],Zt.prototype,"tooltipAppearance",2),m([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],Zt.prototype,"tooltipBoundaryPadding",2),m([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],Zt.prototype,"isActiveParentTooltipText",2),m([ut()],Zt.prototype,"hasActiveChild",2);var jh=Zt;jh.register(lo);var PA=jh;var Ng="check-bold",Er=V.constructTagName("option");var ya=V.constructTagName("optgroup"),qh="header-id";var DA=U`
4760
4771
  :host {
4761
4772
  --mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
4762
4773
  }
@@ -4772,9 +4783,9 @@
4772
4783
  :host([data-hidden]) {
4773
4784
  display: none;
4774
4785
  }
4775
- `,Ng=[PA];var Zs=class extends Wt(Gt(q)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let o=this.label?C`
4786
+ `,Lg=[DA];var Zs=class extends Wt(Gt(X)){setDisabledForAllOptions(){this.options.forEach(o=>{this.disabled?o.setAttribute("disabled",""):o.removeAttribute("disabled")})}updated(o){super.updated(o),o.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let o=this.label?C`
4776
4787
  <mdc-text
4777
- id="${jh}"
4788
+ id="${qh}"
4778
4789
  part="header-text"
4779
4790
  type="${ot.BODY_MIDSIZE_BOLD}"
4780
4791
  tagname="${pt.SPAN}"
@@ -4783,13 +4794,13 @@
4783
4794
  `:j;return C`
4784
4795
  <div
4785
4796
  role="${J.GROUP}"
4786
- aria-labelledby="${this.label?jh:""}"
4797
+ aria-labelledby="${this.label?qh:""}"
4787
4798
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
4788
4799
  >
4789
4800
  ${o}
4790
4801
  <slot role="${J.PRESENTATION}"></slot>
4791
4802
  </div>
4792
- `}};Zs.styles=[...q.styles,...Ng],m([u({type:String,reflect:!0})],Zs.prototype,"label",2),m([Ft({selector:Er})],Zs.prototype,"options",2);var qh=Zs;qh.register(ba);var DA=qh;var FA=[Ui,U`
4803
+ `}};Zs.styles=[...X.styles,...Lg],m([u({type:String,reflect:!0})],Zs.prototype,"label",2),m([Ft({selector:Er})],Zs.prototype,"options",2);var Xh=Zs;Xh.register(ya);var FA=Xh;var $A=[Ui,U`
4793
4804
  :host {
4794
4805
  --mdc-listitem-column-gap: 0.75rem;
4795
4806
  --mdc-option-icon-width: 1rem;
@@ -4818,7 +4829,7 @@
4818
4829
  :host([data-hidden]) {
4819
4830
  display: none;
4820
4831
  }
4821
- `],Lg=FA;var Jo=class extends ke(Ai){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=J.OPTION,this.variant=na.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,r){return C` <mdc-icon length-unit="rem" slot="${t}" name="${r}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",kg):j;return C`
4832
+ `],Mg=$A;var ts=class extends ke(Ai){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=J.OPTION,this.variant=na.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,r){return C` <mdc-icon length-unit="rem" slot="${t}" name="${r}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Ng):j;return C`
4822
4833
  <div part="leading">
4823
4834
  <slot name="leading-controls">
4824
4835
  ${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):j}
@@ -4829,7 +4840,7 @@
4829
4840
  </div>
4830
4841
  </div>
4831
4842
  <div part="trailing">${t}</div>
4832
- `}};Jo.styles=[...Ai.styles,...Lg],m([u({type:Boolean,reflect:!0})],Jo.prototype,"selected",2),m([u({type:String,reflect:!0,attribute:"prefix-icon"})],Jo.prototype,"prefixIcon",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Jo.prototype,"ariaLabel",2);var Xh=Jo;Xh.register(Er);var $A=Xh;var Zh={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Mg=V.constructTagName("password");var co=class extends Or{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.helpTextType=Ot.VALIDATION;this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let r=t||this.value;return r?C`
4843
+ `}};ts.styles=[...Ai.styles,...Mg],m([u({type:Boolean,reflect:!0})],ts.prototype,"selected",2),m([u({type:String,reflect:!0,attribute:"prefix-icon"})],ts.prototype,"prefixIcon",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],ts.prototype,"ariaLabel",2);var Zh=ts;Zh.register(Er);var zA=Zh;var Qh={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Og=V.constructTagName("password");var co=class extends Or{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.helpTextType=Ot.VALIDATION;this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let r=t||this.value;return r?C`
4833
4844
  <mdc-button
4834
4845
  part="trailing-button"
4835
4846
  class="own-focus-ring ${r?"":"hidden"}"
@@ -4838,9 +4849,9 @@
4838
4849
  size="${Ot.ICON_SIZE}"
4839
4850
  @click=${this.toggleShowPassword}
4840
4851
  aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
4841
- prefix-icon=${this.showPassword?Zh.HIDE_BOLD:Zh.SHOW_BOLD}
4852
+ prefix-icon=${this.showPassword?Qh.HIDE_BOLD:Qh.SHOW_BOLD}
4842
4853
  ></mdc-button>
4843
- `:j}renderInputElement(t,r){let s=this.showPassword?to.TEXT:to.PASSWORD;return super.renderInputElement(s,r)}};co.styles=[...Or.styles],m([u({type:String,attribute:"show-button-aria-label",reflect:!0})],co.prototype,"showButtonAriaLabel",2),m([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],co.prototype,"hideButtonAriaLabel",2),m([u({type:String,attribute:"help-text-type"})],co.prototype,"helpTextType",2),m([ut()],co.prototype,"showPassword",2);var Qh=co;Qh.register(Mg);var zA=Qh;Ye.register(Bf);ed.register(rd);var VA=Ye;var xd=V.constructTagName("progressbar"),Ad={DEFAULT:"default",INLINE:"inline"},Og={VARIANT:Ad.DEFAULT,VALIDATION:Vt.DEFAULT};var BA=[bt,U`
4854
+ `:j}renderInputElement(t,r){let s=this.showPassword?to.TEXT:to.PASSWORD;return super.renderInputElement(s,r)}};co.styles=[...Or.styles],m([u({type:String,attribute:"show-button-aria-label",reflect:!0})],co.prototype,"showButtonAriaLabel",2),m([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],co.prototype,"hideButtonAriaLabel",2),m([u({type:String,attribute:"help-text-type"})],co.prototype,"helpTextType",2),m([ut()],co.prototype,"showPassword",2);var Jh=co;Jh.register(Og);var VA=Jh;Ye.register(Uf);rd.register(id);var BA=Ye;var Sd=V.constructTagName("progressbar"),Id={DEFAULT:"default",INLINE:"inline"},Rg={VARIANT:Id.DEFAULT,VALIDATION:Vt.DEFAULT};var UA=[bt,U`
4844
4855
  :host {
4845
4856
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
4846
4857
  --mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
@@ -4913,7 +4924,7 @@
4913
4924
  border: var(--mdc-progressbar-border);
4914
4925
  }
4915
4926
  }
4916
- `],Rg=BA;var ts=class extends Wt(or){constructor(){super(...arguments);this.variant=Og.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var d;let t=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,s=this.error?"100":`${this.clampedValue}`;return C`
4927
+ `],Pg=UA;var es=class extends Wt(or){constructor(){super(...arguments);this.variant=Rg.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var d;let t=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,s=this.error?"100":`${this.clampedValue}`;return C`
4917
4928
  <div
4918
4929
  part="progress-container ${r?"gap":""}"
4919
4930
  role="${J.PROGRESSBAR}"
@@ -4925,15 +4936,15 @@
4925
4936
  <div part="progress-bar ${t}" style="width: ${s}%"></div>
4926
4937
  <div part="remaining"></div>
4927
4938
  </div>
4928
- `}}connectedCallback(){super.connectedCallback(),this.id=`${xd}-${Ce()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=Vt.ERROR:this.clampedValue===100?this.helpTextType=Vt.SUCCESS:this.helpTextType=Vt.DEFAULT,this.helpTextType}render(){let t=this.variant===Ad.INLINE;return C`
4939
+ `}}connectedCallback(){super.connectedCallback(),this.id=`${Sd}-${Ce()}`,this.disabled=void 0,this.toggletipText=void 0,this.toggletipPlacement=void 0}get clampedValue(){let t=Number(this.value);return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}getValidationVariant(){return this.error?this.helpTextType=Vt.ERROR:this.clampedValue===100?this.helpTextType=Vt.SUCCESS:this.helpTextType=Vt.DEFAULT,this.helpTextType}render(){let t=this.variant===Id.INLINE;return C`
4929
4940
  ${t?C`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:C`
4930
4941
  <div part="label-container">
4931
4942
  ${this.renderLabelElement()}
4932
- ${this.variant===Ad.DEFAULT&&this.label?C`<span part="percentage">${this.clampedValue}%</span>`:""}
4943
+ ${this.variant===Id.DEFAULT&&this.label?C`<span part="percentage">${this.clampedValue}%</span>`:""}
4933
4944
  </div>
4934
4945
  ${this.renderProgressbar()} ${this.renderHelperText()}
4935
4946
  `}
4936
- `}};ts.styles=[...or.styles,...Rg],m([u({type:String,reflect:!0})],ts.prototype,"variant",2),m([u({type:String,reflect:!0})],ts.prototype,"value",2),m([u({type:Boolean,attribute:"error"})],ts.prototype,"error",2);var ya=ts;ya.register(xd);var UA=ya;var Pg=V.constructTagName("progressspinner"),ae={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Jh={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var tp=a=>{if(a===0)return 0;let o=a/100*ae.CIRCUMFERENCE-ae.GAP_SIZE;return Math.max(o,.1*a)},Dg=a=>{let o=ae.CIRCUMFERENCE-tp(a)-2*ae.GAP_SIZE;return a===0?ae.CIRCUMFERENCE:o<0?0:o},Fg=a=>a===0?0:ae.GAP_SIZE*.5,$g=(a,o)=>{let t=o+ae.GAP_SIZE*1.5;return a===0?0:t};var HA=U`
4947
+ `}};es.styles=[...or.styles,...Pg],m([u({type:String,reflect:!0})],es.prototype,"variant",2),m([u({type:String,reflect:!0})],es.prototype,"value",2),m([u({type:Boolean,attribute:"error"})],es.prototype,"error",2);var Ea=es;Ea.register(Sd);var HA=Ea;var Dg=V.constructTagName("progressspinner"),ae={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},tp={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var ep=a=>{if(a===0)return 0;let o=a/100*ae.CIRCUMFERENCE-ae.GAP_SIZE;return Math.max(o,.1*a)},Fg=a=>{let o=ae.CIRCUMFERENCE-ep(a)-2*ae.GAP_SIZE;return a===0?ae.CIRCUMFERENCE:o<0?0:o},$g=a=>a===0?0:ae.GAP_SIZE*.5,zg=(a,o)=>{let t=o+ae.GAP_SIZE*1.5;return a===0?0:t};var GA=U`
4937
4948
  :host {
4938
4949
  --mdc-spinner-size: 3rem;
4939
4950
  --mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
@@ -4980,7 +4991,7 @@
4980
4991
  color: var(--mdc-progress-error-color);
4981
4992
  margin: calc(1 / 6 * var(--mdc-spinner-size));
4982
4993
  }
4983
- `,zg=[HA];var Sd=class extends ya{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var d;let o=tp(this.clampedValue),t=Dg(this.clampedValue),r=Fg(this.clampedValue),s=$g(this.clampedValue,o);return C`
4994
+ `,Vg=[GA];var _d=class extends Ea{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var d;let o=ep(this.clampedValue),t=Fg(this.clampedValue),r=$g(this.clampedValue),s=zg(this.clampedValue,o);return C`
4984
4995
  <div
4985
4996
  part="spinner-container ${this.variant}"
4986
4997
  role="${J.PROGRESSBAR}"
@@ -5014,7 +5025,7 @@
5014
5025
  <mdc-icon
5015
5026
  part="error-icon"
5016
5027
  aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
5017
- name="${Jh.ERROR_LEGACY_FILLED}"
5028
+ name="${tp.ERROR_LEGACY_FILLED}"
5018
5029
  size="${ae.ERROR_ICON_SIZE}"
5019
5030
  length-unit="${ae.ICON_LENGTH_UNIT}"
5020
5031
  ></mdc-icon>
@@ -5022,11 +5033,11 @@
5022
5033
  <mdc-icon
5023
5034
  part="success-icon"
5024
5035
  aria-label="${(o=this.dataAriaLabel)!=null?o:""}"
5025
- name="${Jh.CHECK_CIRCLE_BOLD}"
5036
+ name="${tp.CHECK_CIRCLE_BOLD}"
5026
5037
  size="${ae.SUCCESS_ICON_SIZE}"
5027
5038
  length-unit="${ae.ICON_LENGTH_UNIT}"
5028
5039
  ></mdc-icon>
5029
- `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():C` ${this.renderProgressSpinner()}`}};Sd.styles=[...q.styles,...zg];var ep=Sd;ep.register(Pg);var GA=ep;var KA=[bt,U`
5040
+ `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():C` ${this.renderProgressSpinner()}`}};_d.styles=[...X.styles,...Vg];var rp=_d;rp.register(Dg);var KA=rp;var WA=[bt,U`
5030
5041
  :host {
5031
5042
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
5032
5043
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -5084,7 +5095,7 @@
5084
5095
  :host([soft-disabled]) {
5085
5096
  pointer-events: none;
5086
5097
  }
5087
- `,...St(!0)],Vg=KA;var Ea=class extends Lt(Ct(_e(ke(Wt(se))))){constructor(){super(...arguments);this.checked=!1;this.renderLabelAndHelperText=()=>this.label?C`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.updateTabIndex(),this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,r){this.updateComplete.then(()=>{t.forEach(s=>{s.setComponentValidity(r)})}).catch(s=>{this.onerror&&this.onerror(s)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let s=r.some(f=>f.required),d=!!r.find(f=>f.checked),c=s&&!d;this.setGroupValidity(r,!c)}this.internals.setFormValue(t)}handleChange(){var s;if(this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(d=>{var f;let c=(f=d.shadowRoot)==null?void 0:f.querySelector("input");c&&(d.checked=!1,c.checked=!1)}),this.checked=!0;let r=(s=this.shadowRoot)==null?void 0:s.querySelector("input");r&&(r.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){super.click(),this.handleChange()}updateRadio(t,r){var s,d;(d=(s=t[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||d.focus(),t[r].handleChange()}handleKeyDown(t){var f;if(this.disabled)return;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===X.SPACE&&t.preventDefault();let d=this.getAllRadiosWithinSameGroup().filter(y=>!y.disabled),c=d.indexOf(this);if(this.getKeyboardNavMode()!==Kt.DEFAULT){r===X.ENTER&&(this.updateRadio(d,c),this.keyDownEventHandled()),this.getAllRadiosWithinSameGroup().forEach(I=>{var Y;let $=(Y=I.shadowRoot)==null?void 0:Y.querySelector("input");$&&($.tabIndex=0)});return}if(r===X.DOWN||r===X.RIGHT){let y=(c+1)%d.length;this.updateRadio(d,y)}else if(r===X.UP||r===X.LEFT){let y=(c-1+d.length)%d.length;this.updateRadio(d,y)}else r===X.SPACE&&this.updateRadio(d,c);this.updateTabIndex(),r===X.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),r=t.find(d=>d.checked),s=t.find(d=>!d.disabled);t.forEach(d=>{var f;let c=(f=d.shadowRoot)==null?void 0:f.querySelector("input");c&&(c.tabIndex=-1,(d===r||!r&&d===s)&&(c.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return C`
5098
+ `,...St(!0)],Bg=WA;var Ta=class extends Lt(Ct(_e(ke(Wt(se))))){constructor(){super(...arguments);this.checked=!1;this.renderLabelAndHelperText=()=>this.label?C`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.updateTabIndex(),this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,r){this.updateComplete.then(()=>{t.forEach(s=>{s.setComponentValidity(r)})}).catch(s=>{this.onerror&&this.onerror(s)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let s=r.some(f=>f.required),d=!!r.find(f=>f.checked),c=s&&!d;this.setGroupValidity(r,!c)}this.internals.setFormValue(t)}handleChange(){var s;if(this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(d=>{var f;let c=(f=d.shadowRoot)==null?void 0:f.querySelector("input");c&&(d.checked=!1,c.checked=!1)}),this.checked=!0;let r=(s=this.shadowRoot)==null?void 0:s.querySelector("input");r&&(r.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}click(){super.click(),this.handleChange()}updateRadio(t,r){var s,d;(d=(s=t[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||d.focus(),t[r].handleChange()}handleKeyDown(t){var f;if(this.disabled)return;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===q.SPACE&&t.preventDefault();let d=this.getAllRadiosWithinSameGroup().filter(y=>!y.disabled),c=d.indexOf(this);if(this.getKeyboardNavMode()!==Kt.DEFAULT){r===q.ENTER&&(this.updateRadio(d,c),this.keyDownEventHandled()),this.getAllRadiosWithinSameGroup().forEach(I=>{var Y;let $=(Y=I.shadowRoot)==null?void 0:Y.querySelector("input");$&&($.tabIndex=0)});return}if(r===q.DOWN||r===q.RIGHT){let y=(c+1)%d.length;this.updateRadio(d,y)}else if(r===q.UP||r===q.LEFT){let y=(c-1+d.length)%d.length;this.updateRadio(d,y)}else r===q.SPACE&&this.updateRadio(d,c);this.updateTabIndex(),r===q.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),r=t.find(d=>d.checked),s=t.find(d=>!d.disabled);t.forEach(d=>{var f;let c=(f=d.shadowRoot)==null?void 0:f.querySelector("input");c&&(c.tabIndex=-1,(d===r||!r&&d===s)&&(c.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return C`
5088
5099
  <mdc-staticradio
5089
5100
  class="mdc-focus-ring"
5090
5101
  ?checked="${this.checked}"
@@ -5113,7 +5124,7 @@
5113
5124
  />
5114
5125
  </mdc-staticradio>
5115
5126
  ${this.renderLabelAndHelperText()}
5116
- `}};Ea.styles=[...se.styles,...Vg],m([u({type:Boolean,reflect:!0})],Ea.prototype,"checked",2);var rp=Ea;var Id=V.constructTagName("radio");rp.register(Id);var WA=rp;var Ta=class extends hd{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,r,s,d,c;(c=(d=(s=(r=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(f=>f.assignedElements({flatten:!0})))==null?void 0:s.filter(f=>f.tagName.toLowerCase()===Id||f.tagName.toLowerCase()===Gl))==null?void 0:d.filter(f=>!f.hasAttribute("name")))==null||c.forEach(f=>{f.setAttribute("name",this.name),this.required&&f.setAttribute("required",this.required.toString())})}};Ta.styles=[...hd.styles],m([u({type:String})],Ta.prototype,"name",2);var ip=Ta;var Bg=V.constructTagName("radiogroup");ip.register(Bg);var YA=ip;var jA=U`
5127
+ `}};Ta.styles=[...se.styles,...Bg],m([u({type:Boolean,reflect:!0})],Ta.prototype,"checked",2);var ip=Ta;var Cd=V.constructTagName("radio");ip.register(Cd);var YA=ip;var xa=class extends pd{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t,r,s,d,c;(c=(d=(s=(r=Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(f=>f.assignedElements({flatten:!0})))==null?void 0:s.filter(f=>f.tagName.toLowerCase()===Cd||f.tagName.toLowerCase()===Kl))==null?void 0:d.filter(f=>!f.hasAttribute("name")))==null||c.forEach(f=>{f.setAttribute("name",this.name),this.required&&f.setAttribute("required",this.required.toString())})}};xa.styles=[...pd.styles],m([u({type:String})],xa.prototype,"name",2);var op=xa;var Ug=V.constructTagName("radiogroup");op.register(Ug);var jA=op;var qA=U`
5117
5128
  :host::part(filters-container) {
5118
5129
  display: flex;
5119
5130
  gap: 0.25rem;
@@ -5143,7 +5154,7 @@
5143
5154
  position: relative;
5144
5155
  scrollbar-width: none;
5145
5156
  }
5146
- `,Ug=[jA];var Hg=V.constructTagName("searchfield"),xa={TYPE:to.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:md};var es=class extends Lt(Or){constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1;this.handleFilterContainerClick=()=>{this.inputElement.focus()};this.handleFilterContainerKeyDown=t=>{this.getActionForKeyEvent(t)===X.ENTER&&(this.handleFilterContainerClick(),this.keyDownEventHandled())};this.handleFilterContainerKeyUp=t=>{this.getActionForKeyEvent(t)===X.SPACE&&this.handleFilterContainerClick()}}handleKeyDown(t){super.handleKeyDown(t),this.getActionForKeyEvent(t)===X.ESCAPE&&(this.clearInputText(),this.keyDownEventHandled())}connectedCallback(){super.connectedCallback(),this.leadingIcon=xa.ICON,this.trailingButton=xa.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(xa.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(t){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1},super.firstUpdated(t)}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return C`
5157
+ `,Hg=[qA];var Gg=V.constructTagName("searchfield"),Aa={TYPE:to.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:ud};var rs=class extends Lt(Or){constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1;this.handleFilterContainerClick=()=>{this.inputElement.focus()};this.handleFilterContainerKeyDown=t=>{this.getActionForKeyEvent(t)===q.ENTER&&(this.handleFilterContainerClick(),this.keyDownEventHandled())};this.handleFilterContainerKeyUp=t=>{this.getActionForKeyEvent(t)===q.SPACE&&this.handleFilterContainerClick()}}handleKeyDown(t){super.handleKeyDown(t),this.getActionForKeyEvent(t)===q.ESCAPE&&(this.clearInputText(),this.keyDownEventHandled())}connectedCallback(){super.connectedCallback(),this.leadingIcon=Aa.ICON,this.trailingButton=Aa.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(Aa.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(t){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1},super.firstUpdated(t)}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return C`
5147
5158
  ${this.renderLabelElement()}
5148
5159
  <div
5149
5160
  class="${no({"mdc-focus-ring":this.isInputFocused})}"
@@ -5159,11 +5170,11 @@
5159
5170
  >
5160
5171
  <slot name="filters" @slotchange=${this.renderInputChips}></slot>
5161
5172
  </div>
5162
- ${this.renderInputElement(xa.TYPE,this.hasInputChips)}
5173
+ ${this.renderInputElement(Aa.TYPE,this.hasInputChips)}
5163
5174
  </div>
5164
5175
  ${this.renderTrailingButton(this.hasInputChips)}
5165
5176
  </div>
5166
- `}};es.styles=[...Or.styles,...Ug],m([Ft({slot:"filters"})],es.prototype,"inputChips",2),m([ut()],es.prototype,"isInputFocused",2),m([ut()],es.prototype,"hasInputChips",2);var Qs=es;Qs.register(Hg);var qA=Qs;var XA=U`
5177
+ `}};rs.styles=[...Or.styles,...Hg],m([Ft({slot:"filters"})],rs.prototype,"inputChips",2),m([ut()],rs.prototype,"isInputFocused",2),m([ut()],rs.prototype,"hasInputChips",2);var Qs=rs;Qs.register(Gg);var XA=Qs;var ZA=U`
5167
5178
  :host {
5168
5179
  --mdc-searchpopover-width: 100%;
5169
5180
  --mdc-searchpopover-popover-width: var(--mdc-searchpopover-width);
@@ -5183,7 +5194,7 @@
5183
5194
  min-width: auto;
5184
5195
  padding: 0.75rem 0.5rem;
5185
5196
  }
5186
- `,Gg=[XA];var Kg=V.constructTagName("searchpopover"),op={TYPE:to.TEXT,DISPLAY_POPOVER:!1},sp="searchpopover-container-triggerid",_d="searchpopover-popoverid";var ho=class extends Qs{constructor(){super(...arguments);this.displayPopover=op.DISPLAY_POPOVER;this.placement=Nt.BOTTOM_START;this.popoverZIndex=void 0}renderInputElement(){var r,s;let t=this.hasInputChips?"":this.placeholder;return C`<input
5197
+ `,Kg=[ZA];var Wg=V.constructTagName("searchpopover"),sp={TYPE:to.TEXT,DISPLAY_POPOVER:!1},np="searchpopover-container-triggerid",wd="searchpopover-popoverid";var ho=class extends Qs{constructor(){super(...arguments);this.displayPopover=sp.DISPLAY_POPOVER;this.placement=Nt.BOTTOM_START;this.popoverZIndex=void 0}renderInputElement(){var r,s;let t=this.hasInputChips?"":this.placeholder;return C`<input
5187
5198
  aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
5188
5199
  part="input-text"
5189
5200
  id="${this.inputId}"
@@ -5192,10 +5203,10 @@
5192
5203
  ?disabled="${this.disabled}"
5193
5204
  ?readonly="${this.readonly}"
5194
5205
  ?required="${this.required}"
5195
- type="${op.TYPE}"
5206
+ type="${sp.TYPE}"
5196
5207
  aria-expanded="${this.displayPopover?"true":"false"}"
5197
- aria-controls="${_d}"
5198
- aria-owns="${_d}"
5208
+ aria-controls="${wd}"
5209
+ aria-owns="${wd}"
5199
5210
  aria-haspopup="${J.DIALOG}"
5200
5211
  aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:(s=this.dataAriaDescribedby)!=null?s:"")}"
5201
5212
  aria-invalid="${this.helpTextType==="error"?"true":"false"}"
@@ -5217,7 +5228,7 @@
5217
5228
  <div
5218
5229
  class="${no({"mdc-focus-ring":this.isInputFocused})}"
5219
5230
  part="input-container"
5220
- id="${sp}"
5231
+ id="${np}"
5221
5232
  >
5222
5233
  ${this.renderLeadingIcon()}
5223
5234
  <div part="scrollable-container" tabindex="-1">
@@ -5234,8 +5245,8 @@
5234
5245
  ${this.renderTrailingButton(this.hasInputChips)}
5235
5246
  </div>
5236
5247
  <mdc-popover
5237
- triggerID="${sp}"
5238
- id="${_d}"
5248
+ triggerID="${np}"
5249
+ id="${wd}"
5239
5250
  trigger="manual"
5240
5251
  interactive
5241
5252
  ?visible=${this.displayPopover}
@@ -5251,7 +5262,7 @@
5251
5262
  >
5252
5263
  <slot></slot>
5253
5264
  </mdc-popover>
5254
- `}};ho.styles=[...Qs.styles,...Gg],m([u({type:Boolean,reflect:!0,attribute:"display-popover"})],ho.prototype,"displayPopover",2),m([u({type:String,reflect:!0})],ho.prototype,"placement",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ho.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"popover-aria-label"})],ho.prototype,"popoverAriaLabel",2);var np=ho;np.register(Kg);var ZA=np;var Wg=V.constructTagName("select"),ap={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Cd="select-base-triggerid",Yg="select-listbox",jg={DISABLE_FLIP:!1};var QA=U`
5265
+ `}};ho.styles=[...Qs.styles,...Kg],m([u({type:Boolean,reflect:!0,attribute:"display-popover"})],ho.prototype,"displayPopover",2),m([u({type:String,reflect:!0})],ho.prototype,"placement",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ho.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"popover-aria-label"})],ho.prototype,"popoverAriaLabel",2);var ap=ho;ap.register(Wg);var QA=ap;var Yg=V.constructTagName("select"),lp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},kd="select-base-triggerid",jg="select-listbox",qg={DISABLE_FLIP:!1};var JA=U`
5255
5266
  :host {
5256
5267
  --mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
5257
5268
  --mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
@@ -5360,18 +5371,18 @@
5360
5371
  :host([soft-disabled])::part(base-text) {
5361
5372
  --mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
5362
5373
  }
5363
- `,qg=[QA,...St(!0)];var Xe=class extends Ks(Ct(eo(_e(ke(Wt(se)))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=jg.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,r,s,d)=>{switch(r){case"added":t.setAttribute("tabindex",s===0&&d.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(s);break;case"removed":{if(s===-1||d.length===0)return;let c=s+1;if(c>=d.length&&(c=s-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=s===0?d[c]:d[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Er}:not([disabled])`);this.addEventListener(Ht.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Zr(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,r,s){var d;if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&s!==((d=this.selectedOption)==null?void 0:d.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),y=this.navItems.find($=>$.value===s),I=null;if(y)I=y;else if(this.placeholder)I=null;else if(f)I=f;else if(c)I=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(I)}).catch($=>{this.onerror&&this.onerror($)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let r=t.target,s=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{s&&s!==this.selectedOption?this.setSelectedOption(s):this.setSelectedOption(r);break}case"unselected":{s?this.setSelectedOption(s):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(r);break}case"disabled":{this.itemsStore.delete(r);break}default:break}}async firstUpdated(t){await this.updateComplete;let r=this.getFirstSelectedOption();if(r)this.initialSelectedOption=r,this.setSelectedOption(r);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let s=this.getFirstOption();this.setSelectedOption(s),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 r=t.target;r&&r.tagName===Er.toUpperCase()&&!r.hasAttribute("disabled")&&!r.hasAttribute("soft-disabled")&&(this.setSelectedOption(r),r.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var r,s,d;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(s=(r=this.selectedOption)==null?void 0:r.value)!=null?s:"",this.internals.setFormValue(this.value),(d=this.inputElement)==null||d.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(r=>{r!==t&&r.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,r;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()}formResetCallback(){var r;let t=this.initialSelectedOption||null;((r=this.selectedOption)==null?void 0:r.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var s;let r=this.navItems.find(d=>d.value===t||d.label===t);((s=this.selectedOption)==null?void 0:s.value)!==(r==null?void 0:r.value)&&(this.setSelectedOption(r||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=od(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var r;return(r=this.debounceSearch)==null||r.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,r){return t.filter(s=>{var d;return(d=s.getAttribute("label"))==null?void 0:d.toLowerCase().startsWith(r.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let r=this.navItems.findIndex(f=>f.tabIndex===0)+1,s=[...this.navItems.slice(r),...this.navItems.slice(0,r)],d=this.filterOptionsBySearchKey(s,t),c=null;if(d.length)[c]=d;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[r],y=this.filterOptionsBySearchKey(s,t[0]),I=y.filter($=>$===f);c=I.length?I[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 r=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===Kt.DEFAULT)switch(r){case X.DOWN:case X.UP:case X.ENTER:case X.SPACE:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case X.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case X.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 r===X.ENTER&&(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 r=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(r)}handleKeydownPopover(t){this.getKeyboardNavMode()===Kt.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,r,s,d,c,f;return C`
5374
+ `,Xg=[JA,...St(!0)];var Xe=class extends Ws(Ct(eo(_e(ke(Wt(se)))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=qg.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,r,s,d)=>{switch(r){case"added":t.setAttribute("tabindex",s===0&&d.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(s);break;case"removed":{if(s===-1||d.length===0)return;let c=s+1;if(c>=d.length&&(c=s-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=s===0?d[c]:d[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Er}:not([disabled])`);this.addEventListener(Ht.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Zr(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,r,s){var d;if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&s!==((d=this.selectedOption)==null?void 0:d.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),y=this.navItems.find($=>$.value===s),I=null;if(y)I=y;else if(this.placeholder)I=null;else if(f)I=f;else if(c)I=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(I)}).catch($=>{this.onerror&&this.onerror($)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let r=t.target,s=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{s&&s!==this.selectedOption?this.setSelectedOption(s):this.setSelectedOption(r);break}case"unselected":{s?this.setSelectedOption(s):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(r);break}case"disabled":{this.itemsStore.delete(r);break}default:break}}async firstUpdated(t){await this.updateComplete;let r=this.getFirstSelectedOption();if(r)this.initialSelectedOption=r,this.setSelectedOption(r);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let s=this.getFirstOption();this.setSelectedOption(s),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 r=t.target;r&&r.tagName===Er.toUpperCase()&&!r.hasAttribute("disabled")&&!r.hasAttribute("soft-disabled")&&(this.setSelectedOption(r),r.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var r,s,d;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(s=(r=this.selectedOption)==null?void 0:r.value)!=null?s:"",this.internals.setFormValue(this.value),(d=this.inputElement)==null||d.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(r=>{r!==t&&r.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,r;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()}formResetCallback(){var r;let t=this.initialSelectedOption||null;((r=this.selectedOption)==null?void 0:r.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var s;let r=this.navItems.find(d=>d.value===t||d.label===t);((s=this.selectedOption)==null?void 0:s.value)!==(r==null?void 0:r.value)&&(this.setSelectedOption(r||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=sd(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var r;return(r=this.debounceSearch)==null||r.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,r){return t.filter(s=>{var d;return(d=s.getAttribute("label"))==null?void 0:d.toLowerCase().startsWith(r.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let r=this.navItems.findIndex(f=>f.tabIndex===0)+1,s=[...this.navItems.slice(r),...this.navItems.slice(0,r)],d=this.filterOptionsBySearchKey(s,t),c=null;if(d.length)[c]=d;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[r],y=this.filterOptionsBySearchKey(s,t[0]),I=y.filter($=>$===f);c=I.length?I[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 r=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===Kt.DEFAULT)switch(r){case q.DOWN:case q.UP:case q.ENTER:case q.SPACE:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case q.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case q.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 r===q.ENTER&&(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 r=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(r)}handleKeydownPopover(t){this.getKeyboardNavMode()===Kt.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,r,s,d,c,f;return C`
5364
5375
  ${this.renderLabel()}
5365
5376
  <div part="container">
5366
5377
  <div
5367
- id="${Cd}"
5378
+ id="${kd}"
5368
5379
  part="base-container"
5369
5380
  @click="${this.handleClickCombobox}"
5370
5381
  @keydown="${this.handleKeydownCombobox}"
5371
5382
  tabindex="${this.disabled?"-1":"0"}"
5372
5383
  class="${this.disabled?"":"mdc-focus-ring"}"
5373
5384
  role="${J.COMBOBOX}"
5374
- aria-controls="${Yg}"
5385
+ aria-controls="${jg}"
5375
5386
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
5376
5387
  aria-labelledby="${this.label?Ot.HEADING_ID:""}"
5377
5388
  aria-expanded="${this.displayPopover?"true":"false"}"
@@ -5398,7 +5409,7 @@
5398
5409
  <mdc-icon
5399
5410
  size="1"
5400
5411
  length-unit="rem"
5401
- name="${this.displayPopover?ap.ARROW_UP:ap.ARROW_DOWN}"
5412
+ name="${this.displayPopover?lp.ARROW_UP:lp.ARROW_DOWN}"
5402
5413
  ></mdc-icon>
5403
5414
  </div>
5404
5415
  </div>
@@ -5418,7 +5429,7 @@
5418
5429
  />
5419
5430
  <mdc-popover
5420
5431
  trigger="${Ke.MANUAL}"
5421
- triggerid="${Cd}"
5432
+ triggerid="${kd}"
5422
5433
  interactive
5423
5434
  ?visible="${this.displayPopover}"
5424
5435
  role=""
@@ -5443,7 +5454,7 @@
5443
5454
  </mdc-popover>
5444
5455
  </div>
5445
5456
  ${this.renderHelperText()}
5446
- `}};Xe.styles=[...se.styles,...qg],m([u({type:String})],Xe.prototype,"placeholder",2),m([u({type:String,reflect:!0})],Xe.prototype,"placement",2),m([u({type:String,reflect:!0,attribute:"boundary"})],Xe.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"strategy"})],Xe.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Xe.prototype,"popoverZIndex",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Xe.prototype,"disableFlip",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Xe.prototype,"backdropAppendTo",2),m([Jt(`[id="${Cd}"]`)],Xe.prototype,"visualCombobox",2),m([ut()],Xe.prototype,"selectedOption",2),m([ut()],Xe.prototype,"displayPopover",2);var lp=Xe;lp.register(Wg);var JA=lp;var dp=class extends q{connectedCallback(){super.connectedCallback(),this.role=J.LISTBOX}createRenderRoot(){return this}},cp=dp;var wd=V.constructTagName("selectlistbox");cp.register(wd);var t0=cp;Qo.register(io);var e0=Qo;var Xg=V.constructTagName("skeleton"),Zg={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Qg={VARIANT:Zg.RECTANGULAR};var r0=U`
5457
+ `}};Xe.styles=[...se.styles,...Xg],m([u({type:String})],Xe.prototype,"placeholder",2),m([u({type:String,reflect:!0})],Xe.prototype,"placement",2),m([u({type:String,reflect:!0,attribute:"boundary"})],Xe.prototype,"boundary",2),m([u({type:String,reflect:!0,attribute:"strategy"})],Xe.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Xe.prototype,"popoverZIndex",2),m([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Xe.prototype,"disableFlip",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Xe.prototype,"backdropAppendTo",2),m([Jt(`[id="${kd}"]`)],Xe.prototype,"visualCombobox",2),m([ut()],Xe.prototype,"selectedOption",2),m([ut()],Xe.prototype,"displayPopover",2);var dp=Xe;dp.register(Yg);var t0=dp;var cp=class extends X{connectedCallback(){super.connectedCallback(),this.role=J.LISTBOX}createRenderRoot(){return this}},hp=cp;var Nd=V.constructTagName("selectlistbox");hp.register(Nd);var e0=hp;Jo.register(io);var r0=Jo;var Zg=V.constructTagName("skeleton"),Qg={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Jg={VARIANT:Qg.RECTANGULAR};var i0=U`
5447
5458
  :host {
5448
5459
  --mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
5449
5460
  --mdc-skeleton-height: 100%;
@@ -5480,7 +5491,7 @@
5480
5491
  ::slotted(*) {
5481
5492
  visibility: hidden;
5482
5493
  }
5483
- `,Jg=r0;var Aa=class extends q{constructor(){super(...arguments);this.variant=Qg.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var r;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return C`<slot @slotchange=${this.checkSlotContent}></slot>`}};Aa.styles=[...q.styles,Jg],m([u({type:String,reflect:!0})],Aa.prototype,"variant",2);var hp=Aa;hp.register(Xg);var i0=hp;var o0=[bt,U`
5494
+ `,tb=i0;var Sa=class extends X{constructor(){super(...arguments);this.variant=Jg.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var r;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return C`<slot @slotchange=${this.checkSlotContent}></slot>`}};Sa.styles=[...X.styles,tb],m([u({type:String,reflect:!0})],Sa.prototype,"variant",2);var pp=Sa;pp.register(Zg);var o0=pp;var s0=[bt,U`
5484
5495
  :host {
5485
5496
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
5486
5497
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -5544,11 +5555,11 @@
5544
5555
  stroke-dashoffset: -292;
5545
5556
  }
5546
5557
  }
5547
- `],tb=o0;var eb=V.constructTagName("spinner"),s0={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},n0={STANDALONE:"standalone",BUTTON:"button"},kd={VARIANT:n0.STANDALONE,SIZE:s0.MIDSIZE,INVERTED:!1};var po=class extends q{constructor(){super(...arguments);this.inverted=kd.INVERTED;this.size=kd.SIZE;this.ariaLabel=null;this.variant=kd.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?J.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return C`
5558
+ `],eb=s0;var rb=V.constructTagName("spinner"),n0={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},a0={STANDALONE:"standalone",BUTTON:"button"},Ld={VARIANT:a0.STANDALONE,SIZE:n0.MIDSIZE,INVERTED:!1};var po=class extends X{constructor(){super(...arguments);this.inverted=Ld.INVERTED;this.size=Ld.SIZE;this.ariaLabel=null;this.variant=Ld.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?J.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return C`
5548
5559
  <svg part="container" viewBox="0 0 100 100">
5549
5560
  <circle part="circle" cx="50" cy="50" r="46"></circle>
5550
5561
  </svg>
5551
- `}};po.styles=[...q.styles,...tb],m([u({type:Boolean,reflect:!0})],po.prototype,"inverted",2),m([u({type:String,reflect:!0})],po.prototype,"size",2),m([u({type:String,attribute:"aria-label"})],po.prototype,"ariaLabel",2),m([u({type:String,reflect:!0})],po.prototype,"variant",2);var pp=po;pp.register(eb);var a0=pp;ta.register(Pv);var l0=ta;var d0={COMPLETE:"complete",INCOMPLETE:"incomplete"},mp={VERTICAL:"vertical",HORIZONTAL:"horizontal"},up={STATUS:d0.INCOMPLETE,ORIENTATION:mp.HORIZONTAL},rb=V.constructTagName("stepperconnector");var ib=V.constructTagName("stepperitem"),fp={INLINE:"inline",STACKED:"stacked"},_i={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Nd={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},vp={VARIANT:fp.INLINE,STATUS:_i.NOT_STARTED};var Ld=V.constructTagName("stepper"),Sa={ORIENTATION:mp.HORIZONTAL,VARIANT:fp.INLINE};var Md=class{constructor(o,t){this.orientation=o,this.variant=t}};Md.context=Ld;var Od=Md;var c0=U`
5562
+ `}};po.styles=[...X.styles,...eb],m([u({type:Boolean,reflect:!0})],po.prototype,"inverted",2),m([u({type:String,reflect:!0})],po.prototype,"size",2),m([u({type:String,attribute:"aria-label"})],po.prototype,"ariaLabel",2),m([u({type:String,reflect:!0})],po.prototype,"variant",2);var mp=po;mp.register(rb);var l0=mp;ta.register(Dv);var d0=ta;var c0={COMPLETE:"complete",INCOMPLETE:"incomplete"},up={VERTICAL:"vertical",HORIZONTAL:"horizontal"},fp={STATUS:c0.INCOMPLETE,ORIENTATION:up.HORIZONTAL},ib=V.constructTagName("stepperconnector");var ob=V.constructTagName("stepperitem"),vp={INLINE:"inline",STACKED:"stacked"},_i={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},Md={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},gp={VARIANT:vp.INLINE,STATUS:_i.NOT_STARTED};var Od=V.constructTagName("stepper"),Ia={ORIENTATION:up.HORIZONTAL,VARIANT:vp.INLINE};var Rd=class{constructor(o,t){this.orientation=o,this.variant=t}};Rd.context=Od;var Pd=Rd;var h0=U`
5552
5563
  :host {
5553
5564
  gap: 0.5rem;
5554
5565
  }
@@ -5585,7 +5596,7 @@
5585
5596
  padding-top: 0.9375rem;
5586
5597
  margin: 0 -3rem;
5587
5598
  }
5588
- `,ob=[bt,c0];var Js=class extends ce{constructor(){super({context:Od.context,initialValue:new Od(Sa.ORIENTATION,Sa.VARIANT)});this.orientation=Sa.ORIENTATION;this.variant=Sa.VARIANT}connectedCallback(){super.connectedCallback(),this.role=J.LIST}static get Context(){return Od.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return C` <slot></slot> `}};Js.styles=[...q.styles,...ob],m([u({type:String,reflect:!0})],Js.prototype,"orientation",2),m([u({type:String,reflect:!0})],Js.prototype,"variant",2);var rs=Js;rs.register(Ld);var h0=rs;var p0=U`
5599
+ `,sb=[bt,h0];var Js=class extends ce{constructor(){super({context:Pd.context,initialValue:new Pd(Ia.ORIENTATION,Ia.VARIANT)});this.orientation=Ia.ORIENTATION;this.variant=Ia.VARIANT}connectedCallback(){super.connectedCallback(),this.role=J.LIST}static get Context(){return Pd.context}updated(t){(t.has("orientation")||t.has("variant"))&&this.updateContext()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.orientation!==this.orientation)&&(this.context.value.variant=this.variant,this.context.value.orientation=this.orientation,this.context.updateObservers())}render(){return C` <slot></slot> `}};Js.styles=[...X.styles,...sb],m([u({type:String,reflect:!0})],Js.prototype,"orientation",2),m([u({type:String,reflect:!0})],Js.prototype,"variant",2);var is=Js;is.register(Od);var p0=is;var m0=U`
5589
5600
  :host {
5590
5601
  --mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
5591
5602
  --mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
@@ -5620,7 +5631,7 @@
5620
5631
  border-left: 1px solid var(--mdc-stepperconnector-complete-background);
5621
5632
  }
5622
5633
  }
5623
- `,sb=[p0];var tn=class extends q{constructor(){super(...arguments);this.status=up.STATUS;this.orientation=up.ORIENTATION;this.stepperContext=he.consume({host:this,context:rs.Context})}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.orientation||(this.orientation=r.orientation)}render(){return C` <div part="connector"></div> `}};tn.styles=[...q.styles,...sb],m([u({type:String,reflect:!0})],tn.prototype,"status",2),m([u({type:String,reflect:!0})],tn.prototype,"orientation",2);var gp=tn;gp.register(rb);var m0=gp;var u0=U`
5634
+ `,nb=[m0];var tn=class extends X{constructor(){super(...arguments);this.status=fp.STATUS;this.orientation=fp.ORIENTATION;this.stepperContext=he.consume({host:this,context:is.Context})}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.orientation||(this.orientation=r.orientation)}render(){return C` <div part="connector"></div> `}};tn.styles=[...X.styles,...nb],m([u({type:String,reflect:!0})],tn.prototype,"status",2),m([u({type:String,reflect:!0})],tn.prototype,"orientation",2);var bp=tn;bp.register(ib);var u0=bp;var f0=U`
5624
5635
  :host {
5625
5636
  gap: 0.5rem;
5626
5637
  border-radius: 0.25rem;
@@ -5776,7 +5787,7 @@
5776
5787
  :host([status='error-incomplete']:active) {
5777
5788
  --mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
5778
5789
  }
5779
- `,nb=[bt,u0,...St()];var Ci=class extends Lt(Ct(Br(q))){constructor(){super();this.variant=vp.VARIANT;this.status=vp.STATUS;this.label="";this.stepperContext=he.consume({host:this,context:rs.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.variant||(this.variant=r.variant)}connectedCallback(){super.connectedCallback(),this.role=J.LISTITEM}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===X.ENTER||r===X.SPACE)&&(this.classList.add("pressed"),r===X.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 r=this.getActionForKeyEvent(t);(r===X.ENTER||r===X.SPACE)&&(this.classList.remove("pressed"),r===X.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===_i.COMPLETED?C`<mdc-icon part="status-icon" name=${Nd.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===_i.ERROR_CURRENT||this.status===_i.CURRENT?C`<mdc-icon part="status-icon" name=${Nd.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===_i.NOT_STARTED||this.status===_i.ERROR_INCOMPLETE)?C`<mdc-text part="step-number" tagname=${pt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
5790
+ `,ab=[bt,f0,...St()];var Ci=class extends Lt(Ct(Br(X))){constructor(){super();this.variant=gp.VARIANT;this.status=gp.STATUS;this.label="";this.stepperContext=he.consume({host:this,context:is.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var s;super.updated(t);let r=(s=this.stepperContext)==null?void 0:s.value;!r||!r.variant||(this.variant=r.variant)}connectedCallback(){super.connectedCallback(),this.role=J.LISTITEM}handleKeyDown(t){let r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.add("pressed"),r===q.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 r=this.getActionForKeyEvent(t);(r===q.ENTER||r===q.SPACE)&&(this.classList.remove("pressed"),r===q.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===_i.COMPLETED?C`<mdc-icon part="status-icon" name=${Md.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===_i.ERROR_CURRENT||this.status===_i.CURRENT?C`<mdc-icon part="status-icon" name=${Md.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===_i.NOT_STARTED||this.status===_i.ERROR_INCOMPLETE)?C`<mdc-text part="step-number" tagname=${pt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
5780
5791
  >${this.stepNumber}</mdc-text
5781
5792
  >`:j}renderHelpText(){if(!this.helpText)return j;let t=C`<mdc-text
5782
5793
  part="help-text"
@@ -5784,7 +5795,7 @@
5784
5795
  type=${ot.BODY_MIDSIZE_REGULAR}
5785
5796
  >${this.helpText}</mdc-text
5786
5797
  >`;return this.status===_i.ERROR_INCOMPLETE||this.status===_i.ERROR_CURRENT?C`<div part="help-text-container">
5787
- <mdc-icon part="help-icon" name=${Nd.ERROR} length-unit="rem" size="1"></mdc-icon>
5798
+ <mdc-icon part="help-icon" name=${Md.ERROR} length-unit="rem" size="1"></mdc-icon>
5788
5799
  ${t}
5789
5800
  </div>`:t}render(){return C` <div part="status-container">${this.renderStatusIcon()}</div>
5790
5801
  <div part="label-container">
@@ -5792,7 +5803,7 @@
5792
5803
  >${this.label}</mdc-text
5793
5804
  >`:j}
5794
5805
  ${this.renderHelpText()}
5795
- </div>`}};Ci.styles=[...q.styles,...nb],m([u({type:String,reflect:!0})],Ci.prototype,"variant",2),m([u({type:String,reflect:!0})],Ci.prototype,"status",2),m([u({type:String,reflect:!0})],Ci.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"help-text"})],Ci.prototype,"helpText",2),m([u({type:Number,reflect:!0,attribute:"step-number"})],Ci.prototype,"stepNumber",2);var bp=Ci;bp.register(ib);var f0=bp;var ab=V.constructTagName("tab"),yp={GLASS:"glass",LINE:"line",PILL:"pill"},Rd={VARIANT:yp.PILL,ACTIVE:!1};var v0=[bt,U`
5806
+ </div>`}};Ci.styles=[...X.styles,...ab],m([u({type:String,reflect:!0})],Ci.prototype,"variant",2),m([u({type:String,reflect:!0})],Ci.prototype,"status",2),m([u({type:String,reflect:!0})],Ci.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"help-text"})],Ci.prototype,"helpText",2),m([u({type:Number,reflect:!0,attribute:"step-number"})],Ci.prototype,"stepNumber",2);var yp=Ci;yp.register(ob);var v0=yp;var lb=V.constructTagName("tab"),Ep={GLASS:"glass",LINE:"line",PILL:"pill"},Dd={VARIANT:Ep.PILL,ACTIVE:!1};var g0=[bt,U`
5796
5807
  :host {
5797
5808
  --mdc-tab-content-gap: 0.5rem;
5798
5809
  --mdc-tab-height: 2rem;
@@ -5994,7 +6005,7 @@
5994
6005
  --mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
5995
6006
  --mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
5996
6007
  }
5997
- `,...St()],lb=v0;var mo=class extends te(pe){constructor(){super(...arguments);this.active=Rd.ACTIVE;this.variant=Rd.VARIANT;this.handleTabActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role=J.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${ko(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(yp).includes(t)?t:Rd.VARIANT)}setActive(t,r){super.setActive(t,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return C`
6008
+ `,...St()],db=g0;var mo=class extends te(pe){constructor(){super(...arguments);this.active=Dd.ACTIVE;this.variant=Dd.VARIANT;this.handleTabActiveChange=t=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role=J.TAB,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(t){this.iconName&&(t?(this.prevIconName=this.iconName,this.iconName=`${ko(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(t){this.setAttribute("variant",Object.values(Ep).includes(t)?t:Dd.VARIANT)}setActive(t,r){super.setActive(t,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return C`
5998
6009
  <div part="container">
5999
6010
  <slot name="prefix">
6000
6011
  ${this.iconName?C` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:j}
@@ -6010,7 +6021,7 @@
6010
6021
  <slot name="chip"></slot>
6011
6022
  </div>
6012
6023
  <div part="indicator"></div>
6013
- `}};mo.styles=[...pe.styles,...lb],m([u({type:Boolean,reflect:!0})],mo.prototype,"active",2),m([u({type:String,reflect:!0})],mo.prototype,"text",2),m([u({type:String,reflect:!0})],mo.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"tab-id"})],mo.prototype,"tabId",2);var Tr=mo;Tr.register(ab);var g0=Tr;var b0=[Ui,U`
6024
+ `}};mo.styles=[...pe.styles,...db],m([u({type:Boolean,reflect:!0})],mo.prototype,"active",2),m([u({type:String,reflect:!0})],mo.prototype,"text",2),m([u({type:String,reflect:!0})],mo.prototype,"variant",2),m([u({type:String,reflect:!0,attribute:"tab-id"})],mo.prototype,"tabId",2);var Tr=mo;Tr.register(lb);var b0=Tr;var y0=[Ui,U`
6014
6025
  :host {
6015
6026
  --mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
6016
6027
  --mdc-tablist-gap: 0.5rem;
@@ -6040,7 +6051,7 @@
6040
6051
  :host mdc-button[prefix-icon='arrow-right-regular'] {
6041
6052
  margin-left: var(--mdc-tablist-arrow-button-margin);
6042
6053
  }
6043
- `],db=[...b0];var cb=V.constructTagName("tablist"),en={FORWARD:"forward",BACKWARD:"backward"};var Pd=a=>a[0],Ep=a=>a[a.length-1],hb=(a,o,t)=>{let r=a.findIndex(d=>o===d)-1,s=t?(r+a.length)%a.length:Math.max(0,r);return a[s]},pb=(a,o,t)=>{let r=a.findIndex(d=>o===d)+1,s=t?r%a.length:Math.min(r,a.length-1);return a[s]},mb=(a,o)=>a.find(t=>t.tabId===o),Tp=a=>a.find(o=>o.active);var Rr=class extends Lt(Ct(q)){constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("activechange",this.handleNestedTabActiveChange)}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}async firstUpdated(){var s,d,c;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.tabs.map(f=>f.tabId);new Set(t).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(s=Pd(this.tabs))==null?void 0:s.tabId),(d=this.tabsContainer)==null||d.addEventListener("focusin",this.handleFocus.bind(this)),(c=this.tabsContainer)==null||c.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus),(r=this.tabsContainer)==null||r.removeEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=mb(this.tabs,this.activeTabId);if(!(r instanceof Tr))return;this.setActiveTab(r),t.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}fireTabChangeEvent(t){let r=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(r)}async handleFocus(t){if(t.relatedTarget instanceof Tr||!(t.target instanceof Tr))return;let r=Tp(this.tabs||[]);r instanceof Tr&&await this.focusTab(r)}handleMousedown(t){t.target instanceof Tr&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let r=t.target;r instanceof Tr&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)}resetTabIndexAndSetNewTabIndex(t){var r;(r=this.tabs)==null||r.forEach(s=>{s.setAttribute("tabindex",s===t?"0":"-1")})}setActiveTab(t){var r;(r=this.tabs)==null||r.forEach(s=>{s===t?s.setAttribute("active",""):s.removeAttribute("active")})}async focusTab(t){return t instanceof Tr?(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility(),!0):!1}async handleKeydown(t){let r=t.target;if(!(r instanceof Tr)||!this.tabs)return;let s=this.getActionForKeyEvent(t,!0),d=this.getKeyboardNavMode()===Kt.DEFAULT,c=hb(this.tabs,r,d),f=pb(this.tabs,r,d),y=Pd(this.tabs),I=Ep(this.tabs),$=!1;switch(s){case X.LEFT:t.preventDefault(),$=c!==r&&await this.focusTab(c);break;case X.RIGHT:t.preventDefault(),$=f!==r&&await this.focusTab(f);break;case X.HOME:$=await this.focusTab(y);break;case X.END:$=await this.focusTab(I);break;default:}$&&this.keyDownEventHandled()}shouldShowArrowButton(t){return t===en.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=Tp(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())}async handleArrowButtonVisibility(){var Y,Q,Z;if(!this.tabs||!this.tabsContainer)return;let t=!1;((Y=this.shadowRoot)==null?void 0:Y.activeElement)instanceof No&&(t=!0);let r=Pd(this.tabs),s=Ep(this.tabs),d=r.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=s.getBoundingClientRect().right,y=(Z=this.tabsContainer)==null?void 0:Z.getBoundingClientRect().right,I=r.getBoundingClientRect().right,$=s.getBoundingClientRect().left;if(!this.isRtl()){d<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>y?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}I>y?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,$<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()}async scrollTabs(t){var d;let r=this.isRtl()?-1:1,s=this.isRtl()?1:-1;(d=this.tabsContainer)==null||d.scrollBy({left:this.tabsContainer.clientWidth*(t===en.FORWARD?r:s),behavior:"instant"}),await this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",s=d=>C` ${this.shouldShowArrowButton(d)?C`<mdc-button
6054
+ `],cb=[...y0];var hb=V.constructTagName("tablist"),en={FORWARD:"forward",BACKWARD:"backward"};var Fd=a=>a[0],Tp=a=>a[a.length-1],pb=(a,o,t)=>{let r=a.findIndex(d=>o===d)-1,s=t?(r+a.length)%a.length:Math.max(0,r);return a[s]},mb=(a,o,t)=>{let r=a.findIndex(d=>o===d)+1,s=t?r%a.length:Math.min(r,a.length-1);return a[s]},ub=(a,o)=>a.find(t=>t.tabId===o),xp=a=>a.find(o=>o.active);var Rr=class extends Lt(Ct(X)){constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("activechange",this.handleNestedTabActiveChange)}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}async firstUpdated(){var s,d,c;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.tabs.map(f=>f.tabId);new Set(t).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(s=Fd(this.tabs))==null?void 0:s.tabId),(d=this.tabsContainer)==null||d.addEventListener("focusin",this.handleFocus.bind(this)),(c=this.tabsContainer)==null||c.addEventListener("mousedown",this.handleMousedown.bind(this))}disconnectedCallback(){var t,r;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus),(r=this.tabsContainer)==null||r.removeEventListener("mousedown",this.handleMousedown)}async update(t){if(super.update(t),t.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=ub(this.tabs,this.activeTabId);if(!(r instanceof Tr))return;this.setActiveTab(r),t.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}fireTabChangeEvent(t){let r=new CustomEvent("change",{detail:{tabId:t.tabId}});this.dispatchEvent(r)}async handleFocus(t){if(t.relatedTarget instanceof Tr||!(t.target instanceof Tr))return;let r=xp(this.tabs||[]);r instanceof Tr&&await this.focusTab(r)}handleMousedown(t){t.target instanceof Tr&&t.preventDefault()}async handleNestedTabActiveChange(t){t.stopPropagation();let r=t.target;r instanceof Tr&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)}resetTabIndexAndSetNewTabIndex(t){var r;(r=this.tabs)==null||r.forEach(s=>{s.setAttribute("tabindex",s===t?"0":"-1")})}setActiveTab(t){var r;(r=this.tabs)==null||r.forEach(s=>{s===t?s.setAttribute("active",""):s.removeAttribute("active")})}async focusTab(t){return t instanceof Tr?(t!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(t),t.focus()),await this.handleArrowButtonVisibility(),!0):!1}async handleKeydown(t){let r=t.target;if(!(r instanceof Tr)||!this.tabs)return;let s=this.getActionForKeyEvent(t,!0),d=this.getKeyboardNavMode()===Kt.DEFAULT,c=pb(this.tabs,r,d),f=mb(this.tabs,r,d),y=Fd(this.tabs),I=Tp(this.tabs),$=!1;switch(s){case q.LEFT:t.preventDefault(),$=c!==r&&await this.focusTab(c);break;case q.RIGHT:t.preventDefault(),$=f!==r&&await this.focusTab(f);break;case q.HOME:$=await this.focusTab(y);break;case q.END:$=await this.focusTab(I);break;default:}$&&this.keyDownEventHandled()}shouldShowArrowButton(t){return t===en.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}async switchFocus(){var t,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=xp(this.tabs||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())}async handleArrowButtonVisibility(){var Y,Q,Z;if(!this.tabs||!this.tabsContainer)return;let t=!1;((Y=this.shadowRoot)==null?void 0:Y.activeElement)instanceof No&&(t=!0);let r=Fd(this.tabs),s=Tp(this.tabs),d=r.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=s.getBoundingClientRect().right,y=(Z=this.tabsContainer)==null?void 0:Z.getBoundingClientRect().right,I=r.getBoundingClientRect().right,$=s.getBoundingClientRect().left;if(!this.isRtl()){d<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>y?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus();return}I>y?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,$<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&await this.switchFocus()}async scrollTabs(t){var d;let r=this.isRtl()?-1:1,s=this.isRtl()?1:-1;(d=this.tabsContainer)==null||d.scrollBy({left:this.tabsContainer.clientWidth*(t===en.FORWARD?r:s),behavior:"instant"}),await this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",s=d=>C` ${this.shouldShowArrowButton(d)?C`<mdc-button
6044
6055
  variant="tertiary"
6045
6056
  prefix-icon="arrow-${d===en.FORWARD?t:r}-regular"
6046
6057
  aria-label="Scroll tabs ${d===en.FORWARD?t:r}"
@@ -6049,7 +6060,7 @@
6049
6060
  <div part="container" role="${J.TABLIST}" tabindex="-1" aria-label="${tt(this.dataAriaLabel)}">
6050
6061
  <slot></slot>
6051
6062
  </div>
6052
- ${s(en.FORWARD)}`}};Rr.styles=[...q.styles,...db],m([u({type:String,attribute:"active-tab-id",reflect:!0})],Rr.prototype,"activeTabId",2),m([u({type:String,attribute:"data-aria-label"})],Rr.prototype,"dataAriaLabel",2),m([Jt('[part="container"]')],Rr.prototype,"tabsContainer",2),m([Jt("mdc-button:not(:focus-visible)")],Rr.prototype,"notFocusedArrowButton",2),m([Ft({selector:"mdc-tab"})],Rr.prototype,"tabs",2),m([ut()],Rr.prototype,"showForwardArrowButton",2),m([ut()],Rr.prototype,"showBackwardArrowButton",2);var xp=Rr;xp.register(cb);var y0=xp;var ub=V.constructTagName("textarea"),Ap={HARD:"hard",SOFT:"soft"},fb={OFF:"off",ON:"on"},Ia={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Ap.SOFT};var E0=[U`
6063
+ ${s(en.FORWARD)}`}};Rr.styles=[...X.styles,...cb],m([u({type:String,attribute:"active-tab-id",reflect:!0})],Rr.prototype,"activeTabId",2),m([u({type:String,attribute:"data-aria-label"})],Rr.prototype,"dataAriaLabel",2),m([Jt('[part="container"]')],Rr.prototype,"tabsContainer",2),m([Jt("mdc-button:not(:focus-visible)")],Rr.prototype,"notFocusedArrowButton",2),m([Ft({selector:"mdc-tab"})],Rr.prototype,"tabs",2),m([ut()],Rr.prototype,"showForwardArrowButton",2),m([ut()],Rr.prototype,"showBackwardArrowButton",2);var Ap=Rr;Ap.register(hb);var E0=Ap;var fb=V.constructTagName("textarea"),Sp={HARD:"hard",SOFT:"soft"},vb={OFF:"off",ON:"on"},_a={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Sp.SOFT};var T0=[U`
6053
6064
  :host {
6054
6065
  --mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
6055
6066
  --mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
@@ -6174,11 +6185,11 @@
6174
6185
  :host([disabled])::part(resize-button) {
6175
6186
  cursor: default;
6176
6187
  }
6177
- `,...St(!0)],vb=E0;var le=class extends Lt(Ct(_e(ke(Wt(or))))){constructor(){super(...arguments);this.rows=Ia.ROWS;this.wrap=Ap.SOFT;this.autocapitalize=pd.OFF;this.autocomplete=fb.OFF;this.resizable=!1;this.characterLimitExceedingFired=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let r=t.currentTarget;r&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||Ia.ROWS,r.setPointerCapture(t.pointerId),r.addEventListener("pointermove",this.handlePointerMove),r.addEventListener("pointerup",this.handlePointerUp),r.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let r=t.clientY-this.resizeStartY,s=parseFloat(window.getComputedStyle(this.textarea).lineHeight),d=Math.round(r/s);this.rows=Math.max(1,this.resizeStartRows+d)};this.handlePointerUp=t=>{let r=t.currentTarget;r&&(t.type==="pointerup"&&r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),r.removeEventListener("pointermove",this.handlePointerMove),r.removeEventListener("pointerup",this.handlePointerUp),r.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Vt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceMaxLengthWarning()}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceMaxLengthWarning()}announceMaxLengthWarning(){this.ariaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.ariaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.ariaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}onChange(t){this.updateValue();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?C`
6178
- <mdc-text part="character-counter" tagname="span" type=${Ia.CHARACTER_COUNTER_TYPE}>
6188
+ `,...St(!0)],gb=T0;var le=class extends Lt(Ct(_e(ke(Wt(or))))){constructor(){super(...arguments);this.rows=_a.ROWS;this.wrap=Sp.SOFT;this.autocapitalize=md.OFF;this.autocomplete=vb.OFF;this.resizable=!1;this.characterLimitExceedingFired=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let r=t.currentTarget;r&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||_a.ROWS,r.setPointerCapture(t.pointerId),r.addEventListener("pointermove",this.handlePointerMove),r.addEventListener("pointerup",this.handlePointerUp),r.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let r=t.clientY-this.resizeStartY,s=parseFloat(window.getComputedStyle(this.textarea).lineHeight),d=Math.round(r/s);this.rows=Math.max(1,this.resizeStartRows+d)};this.handlePointerUp=t=>{let r=t.currentTarget;r&&(t.type==="pointerup"&&r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),r.removeEventListener("pointermove",this.handlePointerMove),r.removeEventListener("pointerup",this.handlePointerUp),r.removeEventListener("lostpointercapture",this.handlePointerUp))}}get textarea(){return this.inputElement}connectedCallback(){var t;super.connectedCallback(),this.value=((t=this.textContent)==null?void 0:t.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setTextareaValidity(){this.required&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===Vt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceMaxLengthWarning()}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceMaxLengthWarning()}announceMaxLengthWarning(){this.ariaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.ariaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.ariaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}onChange(t){this.updateValue();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?C`
6189
+ <mdc-text part="character-counter" tagname="span" type=${_a.CHARACTER_COUNTER_TYPE}>
6179
6190
  ${this.value.length}/${this.maxCharacterLimit}
6180
6191
  </mdc-text>
6181
- `:j}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?j:C` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let r=this.rows||Ia.ROWS,s,d=this.getActionForKeyEvent(t);d===X.UP?(s=Math.max(1,r-1),s!==r&&this.keyDownEventHandled()):d===X.DOWN&&(s=r+1,this.keyDownEventHandled()),s!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=s)}render(){var t,r;return C`
6192
+ `:j}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?j:C` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let r=this.rows||_a.ROWS,s,d=this.getActionForKeyEvent(t);d===q.UP?(s=Math.max(1,r-1),s!==r&&this.keyDownEventHandled()):d===q.DOWN&&(s=r+1,this.keyDownEventHandled()),s!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=s)}render(){var t,r;return C`
6182
6193
  ${this.renderLabel()}
6183
6194
  <div class="mdc-focus-ring" part="textarea-container">
6184
6195
  <textarea
@@ -6225,7 +6236,7 @@
6225
6236
  `:j}
6226
6237
  </div>
6227
6238
  ${this.renderTextareaFooter()}
6228
- `}};le.styles=[...or.styles,...vb],m([u({type:String})],le.prototype,"placeholder",2),m([u({type:Number,reflect:!0})],le.prototype,"rows",2),m([u({type:Number})],le.prototype,"cols",2),m([u({type:String})],le.prototype,"wrap",2),m([u({type:String})],le.prototype,"autocapitalize",2),m([u({type:String})],le.prototype,"autocomplete",2),m([u({type:String})],le.prototype,"dirname",2),m([u({type:Number})],le.prototype,"maxlength",2),m([u({type:Number})],le.prototype,"minlength",2),m([u({type:Number,attribute:"max-character-limit"})],le.prototype,"maxCharacterLimit",2),m([u({type:String,attribute:"character-limit-announcement"})],le.prototype,"characterLimitAnnouncement",2),m([u({type:Boolean,reflect:!0})],le.prototype,"resizable",2),m([u({type:String,attribute:"resize-button-aria-label"})],le.prototype,"resizeButtonAriaLabel",2),m([Jt("textarea")],le.prototype,"inputElement",2),m([ut()],le.prototype,"ariaLiveAnnouncer",2);var Sp=le;Sp.register(ub);var T0=Sp;var x0=[U`
6239
+ `}};le.styles=[...or.styles,...gb],m([u({type:String})],le.prototype,"placeholder",2),m([u({type:Number,reflect:!0})],le.prototype,"rows",2),m([u({type:Number})],le.prototype,"cols",2),m([u({type:String})],le.prototype,"wrap",2),m([u({type:String})],le.prototype,"autocapitalize",2),m([u({type:String})],le.prototype,"autocomplete",2),m([u({type:String})],le.prototype,"dirname",2),m([u({type:Number})],le.prototype,"maxlength",2),m([u({type:Number})],le.prototype,"minlength",2),m([u({type:Number,attribute:"max-character-limit"})],le.prototype,"maxCharacterLimit",2),m([u({type:String,attribute:"character-limit-announcement"})],le.prototype,"characterLimitAnnouncement",2),m([u({type:Boolean,reflect:!0})],le.prototype,"resizable",2),m([u({type:String,attribute:"resize-button-aria-label"})],le.prototype,"resizeButtonAriaLabel",2),m([Jt("textarea")],le.prototype,"inputElement",2),m([ut()],le.prototype,"ariaLiveAnnouncer",2);var Ip=le;Ip.register(fb);var x0=Ip;var A0=[U`
6229
6240
  :host {
6230
6241
  display: block;
6231
6242
  position: relative;
@@ -6239,7 +6250,7 @@
6239
6250
  :host::part(typewriter-hidden) {
6240
6251
  display: none;
6241
6252
  }
6242
- `],gb=x0;var bb=V.constructTagName("typewriter"),is={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},Jr={TYPE:ye.TYPE,TEXT_ELEMENT_TAGNAME:ye.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 Pr=class extends q{constructor(){super(...arguments);this.type=Jr.TYPE;this.tagname=Jr.TEXT_ELEMENT_TAGNAME;this.speed=Jr.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,r){let s=window.setTimeout(()=>{this.pendingTimeouts.delete(s),t()},r);return this.pendingTimeouts.add(s),s}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,r,s){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:r,instant:s}),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(),r=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=r),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Jr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=r),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Jr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return is.SLOW;case"fast":return is.FAST;case"very-slow":return is.VERY_SLOW;case"very-fast":return is.VERY_FAST;case"normal":return is.NORMAL;default:{let r=parseInt(t,10);return Number.isNaN(r)?is.NORMAL:Math.max(10,r)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");if(!t)return;let r=t.assignedNodes().filter(d=>d.nodeType===Node.TEXT_NODE||d.nodeType===Node.ELEMENT_NODE).map(d=>d.textContent||"").join("");r!==this.previousTextContent&&(this.displayedText===""||!r.includes(this.displayedText)?(this.originalText=r,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=r,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=r,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 r=()=>{if(this.currentIndex<this.originalText.length){let s=this.originalText[this.currentIndex],d=this.displayedText+s;d!==this.displayedText&&(this.displayedText=d,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(r,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(Jr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(r,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return C`
6253
+ `],bb=A0;var yb=V.constructTagName("typewriter"),os={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},Jr={TYPE:ye.TYPE,TEXT_ELEMENT_TAGNAME:ye.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 Pr=class extends X{constructor(){super(...arguments);this.type=Jr.TYPE;this.tagname=Jr.TEXT_ELEMENT_TAGNAME;this.speed=Jr.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,r){let s=window.setTimeout(()=>{this.pendingTimeouts.delete(s),t()},r);return this.pendingTimeouts.add(s),s}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,r,s){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:r,instant:s}),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(),r=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=r),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Jr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=r),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(Jr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return os.SLOW;case"fast":return os.FAST;case"very-slow":return os.VERY_SLOW;case"very-fast":return os.VERY_FAST;case"normal":return os.NORMAL;default:{let r=parseInt(t,10);return Number.isNaN(r)?os.NORMAL:Math.max(10,r)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot");if(!t)return;let r=t.assignedNodes().filter(d=>d.nodeType===Node.TEXT_NODE||d.nodeType===Node.ELEMENT_NODE).map(d=>d.textContent||"").join("");r!==this.previousTextContent&&(this.displayedText===""||!r.includes(this.displayedText)?(this.originalText=r,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=r,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=r,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 r=()=>{if(this.currentIndex<this.originalText.length){let s=this.originalText[this.currentIndex],d=this.displayedText+s;d!==this.displayedText&&(this.displayedText=d,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(r,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(Jr.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(r,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return C`
6243
6254
  <div part="${Jr.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
6244
6255
  <mdc-text
6245
6256
  part="${Jr.CSS_PART_TEXT}"
@@ -6250,7 +6261,7 @@
6250
6261
  >
6251
6262
  <slot @slotchange=${this.handleSlotChange} part="${Jr.CSS_PART_HIDDEN}"></slot>
6252
6263
  </div>
6253
- `}};Pr.styles=[...q.styles,...gb],m([u({attribute:"type",reflect:!0,type:String})],Pr.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Pr.prototype,"tagname",2),m([u({attribute:"speed",reflect:!0})],Pr.prototype,"speed",2),m([u({attribute:"max-queue-size",type:Number,reflect:!0})],Pr.prototype,"maxQueueSize",2),m([ut()],Pr.prototype,"displayedText",2),m([ut()],Pr.prototype,"originalText",2),m([ut()],Pr.prototype,"typingComplete",2);var Ip=Pr;Ip.register(bb);var A0=Ip;var Dd=V.constructTagName("themeprovider"),_p={THEMECLASS:"mds-theme-stable-darkWebex"};var Fd=class{constructor(o){this.themeclass=o}};Fd.context=Dd;var $d=Fd;var S0=U`
6264
+ `}};Pr.styles=[...X.styles,...bb],m([u({attribute:"type",reflect:!0,type:String})],Pr.prototype,"type",2),m([u({attribute:"tagname",reflect:!0,type:String})],Pr.prototype,"tagname",2),m([u({attribute:"speed",reflect:!0})],Pr.prototype,"speed",2),m([u({attribute:"max-queue-size",type:Number,reflect:!0})],Pr.prototype,"maxQueueSize",2),m([ut()],Pr.prototype,"displayedText",2),m([ut()],Pr.prototype,"originalText",2),m([ut()],Pr.prototype,"typingComplete",2);var _p=Pr;_p.register(yb);var S0=_p;var $d=V.constructTagName("themeprovider"),Cp={THEMECLASS:"mds-theme-stable-darkWebex"};var zd=class{constructor(o){this.themeclass=o}};zd.context=$d;var Vd=zd;var I0=U`
6254
6265
  :host {
6255
6266
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
6256
6267
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -6277,7 +6288,7 @@
6277
6288
  * {
6278
6289
  scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
6279
6290
  }
6280
- `,yb=[S0];var rn=class extends ce{constructor(){super({context:$d.context,initialValue:new $d(_p.THEMECLASS)});this.themeclass=_p.THEMECLASS}static get Context(){return $d.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(" "))}};rn.styles=[...ce.styles,...yb],m([ut()],rn.prototype,"currentThemeClass",2),m([u({type:String})],rn.prototype,"themeclass",2);var Cp=rn;Cp.register(Dd);var I0=Cp;var Eb=V.constructTagName("toast"),_a={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},zd={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Ze={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:pr[20],BUTTON:di,PRIMARY_BUTTON:zt.PRIMARY,SECONDARY_BUTTON:zt.SECONDARY,TERTIARY_BUTTON:zt.TERTIARY,VARIANT:_a.CUSTOM};var Tb=a=>{switch(a){case _a.SUCCESS:return zd.SUCCESS_ICON_NAME;case _a.WARNING:return zd.WARNING_ICON_NAME;case _a.ERROR:return zd.ERROR_ICON_NAME;default:return null}};var _0=U`
6291
+ `,Eb=[I0];var rn=class extends ce{constructor(){super({context:Vd.context,initialValue:new Vd(Cp.THEMECLASS)});this.themeclass=Cp.THEMECLASS}static get Context(){return Vd.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(" "))}};rn.styles=[...ce.styles,...Eb],m([ut()],rn.prototype,"currentThemeClass",2),m([u({type:String})],rn.prototype,"themeclass",2);var wp=rn;wp.register($d);var _0=wp;var Tb=V.constructTagName("toast"),Ca={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Bd={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Ze={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:pr[20],BUTTON:di,PRIMARY_BUTTON:zt.PRIMARY,SECONDARY_BUTTON:zt.SECONDARY,TERTIARY_BUTTON:zt.TERTIARY,VARIANT:Ca.CUSTOM};var xb=a=>{switch(a){case Ca.SUCCESS:return Bd.SUCCESS_ICON_NAME;case Ca.WARNING:return Bd.WARNING_ICON_NAME;case Ca.ERROR:return Bd.ERROR_ICON_NAME;default:return null}};var C0=U`
6281
6292
  :host {
6282
6293
  --mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
6283
6294
  --mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
@@ -6362,7 +6373,7 @@
6362
6373
  mdc-text::part(text) {
6363
6374
  margin: 0;
6364
6375
  }
6365
- `,xb=[_0];var Fe=class extends Is(q){constructor(){super(...arguments);this.variant=Ze.VARIANT;this.headerTagName=Ze.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,r;this.hasDetailedSlot=(r=(t=this.detailedElements)==null?void 0:t.some(s=>{var d;return(d=s.textContent)==null?void 0:d.trim()}))!=null?r:!1}updateFooterButtonsPresence(){var t,r,s,d;this.hasFooterButtons=((r=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?r:0)>0||((d=(s=this.footerButtonSecondary)==null?void 0:s.length)!=null?d:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?C`
6376
+ `,Ab=[C0];var Fe=class extends _s(X){constructor(){super(...arguments);this.variant=Ze.VARIANT;this.headerTagName=Ze.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,r;this.hasDetailedSlot=(r=(t=this.detailedElements)==null?void 0:t.some(s=>{var d;return(d=s.textContent)==null?void 0:d.trim()}))!=null?r:!1}updateFooterButtonsPresence(){var t,r,s,d;this.hasFooterButtons=((r=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?r:0)>0||((d=(s=this.footerButtonSecondary)==null?void 0:s.length)!=null?d:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?C`
6366
6377
  <mdc-icon name="${t}" size="${Ze.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
6367
6378
  `:j}shouldRenderToggleButton(){return this.hasDetailedSlot&&this.showMoreText&&this.showLessText}renderToggleDetailButton(){return this.shouldRenderToggleButton()?C`
6368
6379
  <mdc-button
@@ -6391,7 +6402,7 @@
6391
6402
  </div>
6392
6403
  </slot>`}render(){var t;return C`
6393
6404
  <div part="content-container">
6394
- ${this.variant===Ze.VARIANT?C`<slot name="content-prefix"></slot>`:C`${this.renderIcon((t=Tb(this.variant))!=null?t:"")}`}
6405
+ ${this.variant===Ze.VARIANT?C`<slot name="content-prefix"></slot>`:C`${this.renderIcon((t=xb(this.variant))!=null?t:"")}`}
6395
6406
  <div part="toast-content">
6396
6407
  ${this.renderHeader()}
6397
6408
  <slot name="toast-body-normal"></slot>
@@ -6409,7 +6420,7 @@
6409
6420
  ></mdc-button>
6410
6421
  </div>
6411
6422
  ${this.renderFooter()}
6412
- `}};Fe.styles=[...q.styles,...xb],m([u({type:String,reflect:!0})],Fe.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Fe.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Fe.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Fe.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Fe.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"show-more-text"})],Fe.prototype,"showMoreText",2),m([u({type:String,reflect:!0,attribute:"show-less-text"})],Fe.prototype,"showLessText",2),m([ut()],Fe.prototype,"isDetailVisible",2),m([ut()],Fe.prototype,"hasDetailedSlot",2),m([Ft({slot:"toast-body-detailed",flatten:!0})],Fe.prototype,"detailedElements",2),m([ut()],Fe.prototype,"hasFooterButtons",2);var wp=Fe;wp.register(Eb);var C0=wp;var w0=[bt,U`
6423
+ `}};Fe.styles=[...X.styles,...Ab],m([u({type:String,reflect:!0})],Fe.prototype,"variant",2),m([u({type:String,attribute:"close-button-aria-label"})],Fe.prototype,"closeButtonAriaLabel",2),m([u({type:String,reflect:!0,attribute:"header-text"})],Fe.prototype,"headerText",2),m([u({type:String,reflect:!0,attribute:"header-tag-name"})],Fe.prototype,"headerTagName",2),m([u({type:String,reflect:!0,attribute:"aria-label"})],Fe.prototype,"ariaLabel",2),m([u({type:String,reflect:!0,attribute:"show-more-text"})],Fe.prototype,"showMoreText",2),m([u({type:String,reflect:!0,attribute:"show-less-text"})],Fe.prototype,"showLessText",2),m([ut()],Fe.prototype,"isDetailVisible",2),m([ut()],Fe.prototype,"hasDetailedSlot",2),m([Ft({slot:"toast-body-detailed",flatten:!0})],Fe.prototype,"detailedElements",2),m([ut()],Fe.prototype,"hasFooterButtons",2);var kp=Fe;kp.register(Tb);var w0=kp;var k0=[bt,U`
6413
6424
  :host {
6414
6425
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
6415
6426
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -6487,7 +6498,7 @@
6487
6498
  :host([soft-disabled]) {
6488
6499
  pointer-events: none;
6489
6500
  }
6490
- `,...St(!0)],Ab=w0;var os=class extends Ct(ao(_e(ke(Wt(or))))){constructor(){super(...arguments);this.checked=!1;this.size=Vh.SIZE;this.renderLabelAndHelperText=()=>this.label?C`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}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 s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===X.SPACE&&t.preventDefault(),r===X.ENTER&&this.getKeyboardNavMode()===Kt.DEFAULT&&((s=this.form)==null||s.requestSubmit())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ua).includes(t)?t:Vh.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return C`
6501
+ `,...St(!0)],Sb=k0;var ss=class extends Ct(ao(_e(ke(Wt(or))))){constructor(){super(...arguments);this.checked=!1;this.size=Bh.SIZE;this.renderLabelAndHelperText=()=>this.label?C`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}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 s;let r=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&r===q.SPACE&&t.preventDefault(),r===q.ENTER&&this.getKeyboardNavMode()===Kt.DEFAULT&&((s=this.form)==null||s.requestSubmit())}handleChange(t){this.toggleState();let r=t.constructor;this.dispatchEvent(new r(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(fa).includes(t)?t:Bh.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return C`
6491
6502
  <mdc-statictoggle
6492
6503
  ?checked="${this.checked}"
6493
6504
  ?disabled="${this.disabled}"
@@ -6517,10 +6528,10 @@
6517
6528
  />
6518
6529
  </mdc-statictoggle>
6519
6530
  ${this.renderLabelAndHelperText()}
6520
- `}};os.styles=[...or.styles,...Ab],os.shadowRootOptions={...or.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],os.prototype,"checked",2),m([u({type:String,reflect:!0})],os.prototype,"size",2);var kp=os;kp.register(bg);var k0=kp;function ss(a,o,t){var c;let r=(c=t.initialDeps)!=null?c:[],s;function d(){var f,y,I,$;let Y;t.key&&((f=t.debug)!=null&&f.call(t))&&(Y=Date.now());let Q=a();if(!(Q.length!==r.length||Q.some((lt,dt)=>r[dt]!==lt)))return s;r=Q;let it;if(t.key&&((y=t.debug)!=null&&y.call(t))&&(it=Date.now()),s=o(...Q),t.key&&((I=t.debug)!=null&&I.call(t))){let lt=Math.round((Date.now()-Y)*100)/100,dt=Math.round((Date.now()-it)*100)/100,gt=dt/16,It=(wt,jt)=>{for(wt=String(wt);wt.length<jt;)wt=" "+wt;return wt};console.info(`%c\u23F1 ${It(dt,5)} /${It(lt,5)} ms`,`
6531
+ `}};ss.styles=[...or.styles,...Sb],ss.shadowRootOptions={...or.shadowRootOptions,delegatesFocus:!0},m([u({type:Boolean,reflect:!0})],ss.prototype,"checked",2),m([u({type:String,reflect:!0})],ss.prototype,"size",2);var Np=ss;Np.register(yg);var N0=Np;function ns(a,o,t){var c;let r=(c=t.initialDeps)!=null?c:[],s;function d(){var f,y,I,$;let Y;t.key&&((f=t.debug)!=null&&f.call(t))&&(Y=Date.now());let Q=a();if(!(Q.length!==r.length||Q.some((lt,dt)=>r[dt]!==lt)))return s;r=Q;let it;if(t.key&&((y=t.debug)!=null&&y.call(t))&&(it=Date.now()),s=o(...Q),t.key&&((I=t.debug)!=null&&I.call(t))){let lt=Math.round((Date.now()-Y)*100)/100,dt=Math.round((Date.now()-it)*100)/100,gt=dt/16,It=(wt,jt)=>{for(wt=String(wt);wt.length<jt;)wt=" "+wt;return wt};console.info(`%c\u23F1 ${It(dt,5)} /${It(lt,5)} ms`,`
6521
6532
  font-size: .6rem;
6522
6533
  font-weight: bold;
6523
- color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,s),s}return d.updateDeps=f=>{r=f},d}function Np(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var Sb=(a,o)=>Math.abs(a-o)<1.01,Ib=(a,o,t)=>{let r;return function(...s){a.clearTimeout(r),r=a.setTimeout(()=>o.apply(this,s),t)}};var _b=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},N0=a=>a,Lp=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},kb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=c=>{let{width:f,height:y}=c;o({width:Math.round(f),height:Math.round(y)})};if(s(_b(t)),!r.ResizeObserver)return()=>{};let d=new r.ResizeObserver(c=>{let f=()=>{let y=c[0];if(y!=null&&y.borderBoxSize){let I=y.borderBoxSize[0];if(I){s({width:I.inlineSize,height:I.blockSize});return}}s(_b(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},Cb={passive:!0};var wb=typeof window>"u"?!0:"onscrollend"in window,Nb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=0,d=a.options.useScrollendEvent&&wb?()=>{}:Ib(r,()=>{o(s,!1)},a.options.isScrollingResetDelay),c=$=>()=>{let{horizontal:Y,isRtl:Q}=a.options;s=Y?t.scrollLeft*(Q&&-1||1):t.scrollTop,d(),o(s,$)},f=c(!0),y=c(!1);y(),t.addEventListener("scroll",f,Cb);let I=a.options.useScrollendEvent&&wb;return I&&t.addEventListener("scrollend",y,Cb),()=>{t.removeEventListener("scroll",f),I&&t.removeEventListener("scrollend",y)}};var L0=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Lb=(a,{adjustments:o=0,behavior:t},r)=>{var s,d;let c=a+o;(d=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||d.call(s,{[r.options.horizontal?"left":"top"]:c,behavior:t})},Vd=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(d=>{let c=()=>{this._measureElement(d.target,d)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),t=null},observe:s=>{var d;return(d=r())==null?void 0:d.observe(s,{box:"border-box"})},unobserve:s=>{var d;return(d=r())==null?void 0:d.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,s])=>{typeof s>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:N0,rangeExtractor:Lp,onChange:()=>{},measureElement:L0,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var r,s;(s=(r=this.options).onChange)==null||s.call(r,this,t)},this.maybeNotify=ss(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var s;var t;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(t=this.scrollElement)==null?void 0:t.window)!=null?s:null,this.elementsCache.forEach(d=>{this.observer.observe(d)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,d=>{this.scrollRect=d,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(d,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<d?"forward":"backward":null,this.scrollOffset=d,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,r)=>{let s=new Map,d=new Map;for(let c=r-1;c>=0;c--){let f=t[c];if(s.has(f.lane))continue;let y=d.get(f.lane);if(y==null||f.end>y.end?d.set(f.lane,f):f.end<y.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return d.size===this.options.lanes?Array.from(d.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=ss(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,s,d,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:c}),{key:!1}),this.getMeasurements=ss(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach($=>{this.itemSizeCache.set($.key,$.size)}));let y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let I=this.measurementsCache.slice(0,y);for(let $=y;$<t;$++){let Y=d($),Q=this.options.lanes===1?I[$-1]:this.getFurthestMeasurement(I,$),Z=Q?Q.end+this.options.gap:r+s,it=f.get(Y),lt=typeof it=="number"?it:this.options.estimateSize($),dt=Z+lt,gt=Q?Q.lane:$%this.options.lanes;I[$]={index:$,start:Z,size:lt,end:dt,key:Y,lane:gt}}return this.measurementsCache=I,I},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ss(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,d)=>this.range=t.length>0&&r>0?M0({measurements:t,outerSize:r,scrollOffset:s,lanes:d}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ss(()=>{let t=null,r=null,s=this.calculateRange();return s&&(t=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,s,d,c)=>d===null||c===null?[]:t({startIndex:d,endIndex:c,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let r=this.options.indexAttribute,s=t.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{let s=this.indexFromElement(t),d=this.measurementsCache[s];if(!d)return;let c=d.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var f;let s=this.measurementsCache[t];if(!s)return;let d=(f=this.itemSizeCache.get(s.key))!=null?f:s.size,c=r-d;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,s)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=ss(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let d=0,c=t.length;d<c;d++){let f=t[d],y=r[f];s.push(y)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return Np(r[Mb(0,r.length-1,s=>Np(r[s]).start,t)])},this.getOffsetForAlignment=(t,r,s=0)=>{let d=this.getSize(),c=this.getScrollOffset();r==="auto"&&(r=t>=c+d?"end":"start"),r==="center"?t+=(s-d)/2:r==="end"&&(t-=d);let f=this.getTotalSize()+this.options.scrollMargin-d;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let s=this.measurementsCache[t];if(!s)return;let d=this.getSize(),c=this.getScrollOffset();if(r==="auto")if(s.end>=c+d-this.options.scrollPaddingEnd)r="end";else if(s.start<=c+this.options.scrollPaddingStart)r="start";else return[c,r];let f=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,r,s.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:r="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let d=0,c=10,f=I=>{if(!this.targetWindow)return;let $=this.getOffsetForIndex(t,I);if(!$){console.warn("Failed to get offset for index:",t);return}let[Y,Q]=$;this._scrollToOffset(Y,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{let Z=this.getScrollOffset(),it=this.getOffsetForIndex(t,Q);if(!it){console.warn("Failed to get offset for index:",t);return}Sb(it[0],Z)||y(Q)})},y=I=>{this.targetWindow&&(d++,d<c?this.targetWindow.requestAnimationFrame(()=>f(I)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var d;var t;let r=this.getMeasurements(),s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(d=(t=r[r.length-1])==null?void 0:t.end)!=null?d:0;else{let c=Array(this.options.lanes).fill(null),f=r.length-1;for(;f>=0&&c.some(y=>y===null);){let y=r[f];c[y.lane]===null&&(c[y.lane]=y.end),f--}s=Math.max(...c.filter(y=>y!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Mb=(a,o,t,r)=>{for(;a<=o;){let s=(a+o)/2|0,d=t(s);if(d<r)a=s+1;else if(d>r)o=s-1;else return s}return a>0?a-1:0};function M0({measurements:a,outerSize:o,scrollOffset:t,lanes:r}){let s=a.length-1,d=y=>a[y].start;if(a.length<=r)return{startIndex:0,endIndex:s};let c=Mb(0,s,d,t),f=c;if(r===1)for(;f<s&&a[f].end<t+o;)f++;else if(r>1){let y=Array(r).fill(0);for(;f<s&&y.some($=>$<t+o);){let $=a[f];y[$.lane]=$.end,f++}let I=Array(r).fill(t+o);for(;c>=0&&I.some($=>$>=t);){let $=a[c];I[$.lane]=$.start,c--}c=Math.max(0,c-c%r),f=Math.min(s,f+(r-1-f%r))}return{startIndex:c,endIndex:f}}var Mp=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let r={...t,onChange:(s,d)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,s,d)}};this.virtualizer=new Vd(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Bd=class extends Mp{constructor(o,t){super(o,{observeElementRect:kb,observeElementOffset:Nb,scrollToFn:Lb,...t})}};var O0={includeEnd:!1},Ud=class{constructor(o,t,r={}){let s={...O0,...r};this.start=o,this.end=t,this.includeEnd=s.includeEnd}includes(o){let{start:t,end:r,includeEnd:s}=this,d=Math.min(t,r),c=Math.max(t,r);return s?o>=d&&o<=c:o>=d&&o<c}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:r,end:s}=this,d=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=d;return d+=t,(r?f>s:f>=s)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Hd=class{constructor(o,t,r){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=r}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((r,s,d)=>o.call(t,r,this.getIndex(r),d))}forEach(o,t){this.items.forEach((r,s,d)=>{o.call(t,r,this.getIndex(r),d)})}findIndex(o,t){let r=this.items.find((s,d,c)=>o.call(t,s,this.getIndex(s),c));return r?this.getIndex(r):-1}find(o,t){return this.items.find((r,s,d)=>o.call(t,r,this.getIndex(r),d))}};var R0=[U`
6534
+ color: hsl(${Math.max(0,Math.min(120-120*gt,120))}deg 100% 31%);`,t==null?void 0:t.key)}return($=t==null?void 0:t.onChange)==null||$.call(t,s),s}return d.updateDeps=f=>{r=f},d}function Lp(a,o){if(a===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return a}var Ib=(a,o)=>Math.abs(a-o)<1.01,_b=(a,o,t)=>{let r;return function(...s){a.clearTimeout(r),r=a.setTimeout(()=>o.apply(this,s),t)}};var Cb=a=>{let{offsetWidth:o,offsetHeight:t}=a;return{width:o,height:t}},L0=a=>a,Mp=a=>{let o=Math.max(a.startIndex-a.overscan,0),t=Math.min(a.endIndex+a.overscan,a.count-1),r=[];for(let s=o;s<=t;s++)r.push(s);return r},Nb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=c=>{let{width:f,height:y}=c;o({width:Math.round(f),height:Math.round(y)})};if(s(Cb(t)),!r.ResizeObserver)return()=>{};let d=new r.ResizeObserver(c=>{let f=()=>{let y=c[0];if(y!=null&&y.borderBoxSize){let I=y.borderBoxSize[0];if(I){s({width:I.inlineSize,height:I.blockSize});return}}s(Cb(t))};a.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return d.observe(t,{box:"border-box"}),()=>{d.unobserve(t)}},wb={passive:!0};var kb=typeof window>"u"?!0:"onscrollend"in window,Lb=(a,o)=>{let t=a.scrollElement;if(!t)return;let r=a.targetWindow;if(!r)return;let s=0,d=a.options.useScrollendEvent&&kb?()=>{}:_b(r,()=>{o(s,!1)},a.options.isScrollingResetDelay),c=$=>()=>{let{horizontal:Y,isRtl:Q}=a.options;s=Y?t.scrollLeft*(Q&&-1||1):t.scrollTop,d(),o(s,$)},f=c(!0),y=c(!1);y(),t.addEventListener("scroll",f,wb);let I=a.options.useScrollendEvent&&kb;return I&&t.addEventListener("scrollend",y,wb),()=>{t.removeEventListener("scroll",f),I&&t.removeEventListener("scrollend",y)}};var M0=(a,o,t)=>{if(o!=null&&o.borderBoxSize){let r=o.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return a[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Mb=(a,{adjustments:o=0,behavior:t},r)=>{var s,d;let c=a+o;(d=(s=r.scrollElement)==null?void 0:s.scrollTo)==null||d.call(s,{[r.options.horizontal?"left":"top"]:c,behavior:t})},Ud=class{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null,r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(d=>{let c=()=>{this._measureElement(d.target,d)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var s;(s=r())==null||s.disconnect(),t=null},observe:s=>{var d;return(d=r())==null?void 0:d.observe(s,{box:"border-box"})},unobserve:s=>{var d;return(d=r())==null?void 0:d.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,s])=>{typeof s>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:L0,rangeExtractor:Mp,onChange:()=>{},measureElement:M0,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var r,s;(s=(r=this.options).onChange)==null||s.call(r,this,t)},this.maybeNotify=ns(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var s;var t;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(t=this.scrollElement)==null?void 0:t.window)!=null?s:null,this.elementsCache.forEach(d=>{this.observer.observe(d)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,d=>{this.scrollRect=d,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(d,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<d?"forward":"backward":null,this.scrollOffset=d,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,r)=>{let s=new Map,d=new Map;for(let c=r-1;c>=0;c--){let f=t[c];if(s.has(f.lane))continue;let y=d.get(f.lane);if(y==null||f.end>y.end?d.set(f.lane,f):f.end<y.end&&s.set(f.lane,!0),s.size===this.options.lanes)break}return d.size===this.options.lanes?Array.from(d.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=ns(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,s,d,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:c}),{key:!1}),this.getMeasurements=ns(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:s,getItemKey:d,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach($=>{this.itemSizeCache.set($.key,$.size)}));let y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let I=this.measurementsCache.slice(0,y);for(let $=y;$<t;$++){let Y=d($),Q=this.options.lanes===1?I[$-1]:this.getFurthestMeasurement(I,$),Z=Q?Q.end+this.options.gap:r+s,it=f.get(Y),lt=typeof it=="number"?it:this.options.estimateSize($),dt=Z+lt,gt=Q?Q.lane:$%this.options.lanes;I[$]={index:$,start:Z,size:lt,end:dt,key:Y,lane:gt}}return this.measurementsCache=I,I},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ns(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,r,s,d)=>this.range=t.length>0&&r>0?O0({measurements:t,outerSize:r,scrollOffset:s,lanes:d}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ns(()=>{let t=null,r=null,s=this.calculateRange();return s&&(t=s.startIndex,r=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,r]},(t,r,s,d,c)=>d===null||c===null?[]:t({startIndex:d,endIndex:c,overscan:r,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let r=this.options.indexAttribute,s=t.getAttribute(r);return s?parseInt(s,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{let s=this.indexFromElement(t),d=this.measurementsCache[s];if(!d)return;let c=d.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(s,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{var f;let s=this.measurementsCache[t];if(!s)return;let d=(f=this.itemSizeCache.get(s.key))!=null?f:s.size,c=r-d;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,s)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(s))});return}this._measureElement(t,void 0)},this.getVirtualItems=ns(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,r)=>{let s=[];for(let d=0,c=t.length;d<c;d++){let f=t[d],y=r[f];s.push(y)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let r=this.getMeasurements();if(r.length!==0)return Lp(r[Ob(0,r.length-1,s=>Lp(r[s]).start,t)])},this.getOffsetForAlignment=(t,r,s=0)=>{let d=this.getSize(),c=this.getScrollOffset();r==="auto"&&(r=t>=c+d?"end":"start"),r==="center"?t+=(s-d)/2:r==="end"&&(t-=d);let f=this.getTotalSize()+this.options.scrollMargin-d;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let s=this.measurementsCache[t];if(!s)return;let d=this.getSize(),c=this.getScrollOffset();if(r==="auto")if(s.end>=c+d-this.options.scrollPaddingEnd)r="end";else if(s.start<=c+this.options.scrollPaddingStart)r="start";else return[c,r];let f=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,r,s.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:r="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:r="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t=Math.max(0,Math.min(t,this.options.count-1));let d=0,c=10,f=I=>{if(!this.targetWindow)return;let $=this.getOffsetForIndex(t,I);if(!$){console.warn("Failed to get offset for index:",t);return}let[Y,Q]=$;this._scrollToOffset(Y,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{let Z=this.getScrollOffset(),it=this.getOffsetForIndex(t,Q);if(!it){console.warn("Failed to get offset for index:",t);return}Ib(it[0],Z)||y(Q)})},y=I=>{this.targetWindow&&(d++,d<c?this.targetWindow.requestAnimationFrame(()=>f(I)):console.warn(`Failed to scroll to index ${t} after ${c} attempts.`))};f(r)},this.scrollBy=(t,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var d;var t;let r=this.getMeasurements(),s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(d=(t=r[r.length-1])==null?void 0:t.end)!=null?d:0;else{let c=Array(this.options.lanes).fill(null),f=r.length-1;for(;f>=0&&c.some(y=>y===null);){let y=r[f];c[y.lane]===null&&(c[y.lane]=y.end),f--}s=Math.max(...c.filter(y=>y!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},Ob=(a,o,t,r)=>{for(;a<=o;){let s=(a+o)/2|0,d=t(s);if(d<r)a=s+1;else if(d>r)o=s-1;else return s}return a>0?a-1:0};function O0({measurements:a,outerSize:o,scrollOffset:t,lanes:r}){let s=a.length-1,d=y=>a[y].start;if(a.length<=r)return{startIndex:0,endIndex:s};let c=Ob(0,s,d,t),f=c;if(r===1)for(;f<s&&a[f].end<t+o;)f++;else if(r>1){let y=Array(r).fill(0);for(;f<s&&y.some($=>$<t+o);){let $=a[f];y[$.lane]=$.end,f++}let I=Array(r).fill(t+o);for(;c>=0&&I.some($=>$>=t);){let $=a[c];I[$.lane]=$.start,c--}c=Math.max(0,c-c%r),f=Math.min(s,f+(r-1-f%r))}return{startIndex:c,endIndex:f}}var Op=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let r={...t,onChange:(s,d)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,s,d)}};this.virtualizer=new Ud(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Hd=class extends Op{constructor(o,t){super(o,{observeElementRect:Nb,observeElementOffset:Lb,scrollToFn:Mb,...t})}};var R0={includeEnd:!1},Gd=class{constructor(o,t,r={}){let s={...R0,...r};this.start=o,this.end=t,this.includeEnd=s.includeEnd}includes(o){let{start:t,end:r,includeEnd:s}=this,d=Math.min(t,r),c=Math.max(t,r);return s?o>=d&&o<=c:o>=d&&o<c}iter(o=1){if(o<=0)throw new Error("Step must be a positive non-zero number");let t=o*(this.start<=this.end?1:-1),{includeEnd:r,end:s}=this,d=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=d;return d+=t,(r?f>s:f>=s)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var Kd=class{constructor(o,t,r){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=r}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((r,s,d)=>o.call(t,r,this.getIndex(r),d))}forEach(o,t){this.items.forEach((r,s,d)=>{o.call(t,r,this.getIndex(r),d)})}findIndex(o,t){let r=this.items.find((s,d,c)=>o.call(t,s,this.getIndex(s),c));return r?this.getIndex(r):-1}find(o,t){return this.items.find((r,s,d)=>o.call(t,r,this.getIndex(r),d))}};var P0=[U`
6524
6535
  :host {
6525
6536
  height: 100%;
6526
6537
  }
@@ -6550,7 +6561,7 @@
6550
6561
  ::slotted(mdc-listitem) {
6551
6562
  position: relative;
6552
6563
  }
6553
- `],Ob=R0;var Rb=V.constructTagName("virtualizedlist"),rJ=V.constructTagName("virtualizedwrapper"),Ca={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var Qe=class extends Wt(Ys){constructor(){super();this.virtualizerProps=Ca.VIRTUALIZER_PROPS;this.loop=Ca.LOOP;this.scrollAnchoring=Ca.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Ca.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 r,s;this.observeSizeChanges&&this.navItems.find(d=>d===t.target)!==void 0&&((s=(r=this.virtualizer)==null?void 0:r.measureElement)==null||s.call(r,t.target))};this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Ht.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?r:[]}get navItems(){var t,r,s,d;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(d=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?d:"data-index";this.virtualizedNavItems=new Hd(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,r;return(r=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?r:0}connectedCallback(){this.virtualizerController=new Bd(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("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(r=>{var s,d;this.observeSizeChanges&&((d=(s=this.virtualizer)==null?void 0:s.measureElement)==null||d.call(s,r))}),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 d,c;let{virtualizer:r}=this;if(!r)return;let s=r.measurementsCache.slice();if(r.setOptions({...r.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&s.length>0){let f=Math.abs(this.virtualizerProps.count-((d=t==null?void 0:t.count)!=null?d:0)),y=this.selectedIndex,I=this.firstKey,$=new Ud(y-f,y+f,{includeEnd:!0}),Y=(c=Array.from($).find(Z=>r.options.getItemKey(Z)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(Y),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&y!==this.selectedIndex||!this.focusWithin&&this.firstKey!==I){let Z=r.measurementsCache[this.selectedIndex].end-s[y].end;this.scrollRef.scrollTop+=Z}}}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 r,s,d,c,f;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(d=this.virtualizer)==null?void 0:d.getVirtualItems)==null?void 0:c.call(d))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var y,I,$,Y;let{navItems:r,virtualizerProps:s,virtualizer:d}=this,c=(I=(y=s.rangeExtractor)==null?void 0:y.call(s,t))!=null?I:Lp(t);return this.hiddenIndexes.forEach(Q=>{let Z=r.at(Q);Z&&(Z.removeAttribute("data-virtualized-hidden"),Z.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(Y=($=this.virtualizer)==null?void 0:$.options.getItemKey(this.firstIndex))!=null?Y:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var Z;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((Z=d==null?void 0:d.options.count)!=null?Z:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,Z)=>Q-Z),c}updateHiddenItemsPosition(t){let{navItems:r,virtualizerProps:s,virtualizer:d}=this;if(!d||s.count===0)return;let{measurementsCache:c}=d;this.hiddenIndexes.forEach(f=>{let y=r.at(f);if(y){let I=Math.max(t.startIndex-t.overscan,0),$=c[I],Y=c[f];y.setAttribute("data-virtualized-hidden","true"),y.style.setProperty("--mdc-virtualizedlist-hidden-top",`${Y.start-$.start}px`)}})}isElementSelected(t){var r;return((r=this.virtualizer)==null?void 0:r.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:r,getItemKey:s}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(r-1,t)),this.selectedKey=s(t)}}onElementStoreUpdate(t,r){if(r==="added"){let s=this.isElementSelected(t);t.tabIndex=s?0:-1,this.setAriaSetSize(t)}else r==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,r){this.syncUI(),await this.updateComplete,this.requestUpdate(),!r&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(s=>s()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let r=t.target;this.atBottom==="re-evaluate"||r.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=r.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&r>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=r-s<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var s,d,c,f;switch(this.getActionForKeyEvent(t)){case X.HOME:{(d=(s=this.virtualizer)==null?void 0:s.scrollToIndex)==null||d.call(s,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case X.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 X.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,r=!0){super.resetTabIndexes(t,r),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,r,s=!0,d=s){if(this.navItems.find(y=>{var I;return((I=this.virtualizer)==null?void 0:I.indexFromElement(y))===t})===void 0)return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,r,s,d),this.setSelectedIndex(t)}),!0;let f=super.resetTabIndexAndSetFocus(t,r,s,d);return this.setSelectedIndex(t),f}setAriaSetSize(t){var r,s;t.setAttribute("aria-setsize",`${(s=(r=this.virtualizer)==null?void 0:r.options.count)!=null?s:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=r-t-s),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,r){var s,d;(d=(s=this.virtualizer).scrollToIndex)==null||d.call(s,t,r),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var d;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),r=(d=t==null?void 0:t.start)!=null?d:0;window.getComputedStyle(this);let s=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(s=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${s+r}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 C`
6564
+ `],Rb=P0;var Pb=V.constructTagName("virtualizedlist"),iJ=V.constructTagName("virtualizedwrapper"),wa={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:a=>a},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var Qe=class extends Wt(Ys){constructor(){super();this.virtualizerProps=wa.VIRTUALIZER_PROPS;this.loop=wa.LOOP;this.scrollAnchoring=wa.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=wa.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 r,s;this.observeSizeChanges&&this.navItems.find(d=>d===t.target)!==void 0&&((s=(r=this.virtualizer)==null?void 0:r.measureElement)==null||s.call(r,t.target))};this.orientation=aa.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Ht.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,r;return(r=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?r:[]}get navItems(){var t,r,s,d;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(d=(s=(r=this.virtualizer)==null?void 0:r.options)==null?void 0:s.indexAttribute)!=null?d:"data-index";this.virtualizedNavItems=new Kd(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,r;return(r=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?r:0}connectedCallback(){this.virtualizerController=new Hd(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!==aa.VERTICAL&&(this.orientation=aa.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(r=>{var s,d;this.observeSizeChanges&&((d=(s=this.virtualizer)==null?void 0:s.measureElement)==null||d.call(s,r))}),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 d,c;let{virtualizer:r}=this;if(!r)return;let s=r.measurementsCache.slice();if(r.setOptions({...r.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&s.length>0){let f=Math.abs(this.virtualizerProps.count-((d=t==null?void 0:t.count)!=null?d:0)),y=this.selectedIndex,I=this.firstKey,$=new Gd(y-f,y+f,{includeEnd:!0}),Y=(c=Array.from($).find(Z=>r.options.getItemKey(Z)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(Y),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&y!==this.selectedIndex||!this.focusWithin&&this.firstKey!==I){let Z=r.measurementsCache[this.selectedIndex].end-s[y].end;this.scrollRef.scrollTop+=Z}}}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 r,s,d,c,f;(s=(r=this.virtualizerProps).onChange)==null||s.call(r,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(d=this.virtualizer)==null?void 0:d.getVirtualItems)==null?void 0:c.call(d))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var y,I,$,Y;let{navItems:r,virtualizerProps:s,virtualizer:d}=this,c=(I=(y=s.rangeExtractor)==null?void 0:y.call(s,t))!=null?I:Mp(t);return this.hiddenIndexes.forEach(Q=>{let Z=r.at(Q);Z&&(Z.removeAttribute("data-virtualized-hidden"),Z.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(Y=($=this.virtualizer)==null?void 0:$.options.getItemKey(this.firstIndex))!=null?Y:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var Z;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((Z=d==null?void 0:d.options.count)!=null?Z:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,Z)=>Q-Z),c}updateHiddenItemsPosition(t){let{navItems:r,virtualizerProps:s,virtualizer:d}=this;if(!d||s.count===0)return;let{measurementsCache:c}=d;this.hiddenIndexes.forEach(f=>{let y=r.at(f);if(y){let I=Math.max(t.startIndex-t.overscan,0),$=c[I],Y=c[f];y.setAttribute("data-virtualized-hidden","true"),y.style.setProperty("--mdc-virtualizedlist-hidden-top",`${Y.start-$.start}px`)}})}isElementSelected(t){var r;return((r=this.virtualizer)==null?void 0:r.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:r,getItemKey:s}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(r-1,t)),this.selectedKey=s(t)}}onElementStoreUpdate(t,r){if(r==="added"){let s=this.isElementSelected(t);t.tabIndex=s?0:-1,this.setAriaSetSize(t)}else r==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,r){this.syncUI(),await this.updateComplete,this.requestUpdate(),!r&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(s=>s()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let r=t.target;this.atBottom==="re-evaluate"||r.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=r.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&r>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=r-s<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var s,d,c,f;switch(this.getActionForKeyEvent(t)){case q.HOME:{(d=(s=this.virtualizer)==null?void 0:s.scrollToIndex)==null||d.call(s,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case q.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 q.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,r=!0){super.resetTabIndexes(t,r),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,r,s=!0,d=s){if(this.navItems.find(y=>{var I;return((I=this.virtualizer)==null?void 0:I.indexFromElement(y))===t})===void 0)return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,r,s,d),this.setSelectedIndex(t)}),!0;let f=super.resetTabIndexAndSetFocus(t,r,s,d);return this.setSelectedIndex(t),f}setAriaSetSize(t){var r,s;t.setAttribute("aria-setsize",`${(s=(r=this.virtualizer)==null?void 0:r.options.count)!=null?s:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:r,scrollTop:s}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=r-t-s),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,r){var s,d;(d=(s=this.virtualizer).scrollToIndex)==null||d.call(s,t,r),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var d;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),r=(d=t==null?void 0:t.start)!=null?d:0;window.getComputedStyle(this);let s=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(s=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${s+r}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 C`
6554
6565
  <slot name="list-header"></slot>
6555
6566
  <div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
6556
6567
  <div part="wrapper">
@@ -6559,7 +6570,7 @@
6559
6570
  </div>
6560
6571
  </div>
6561
6572
  </div>
6562
- `}};Qe.styles=[...Ys.styles,...Ob],m([u({type:Object})],Qe.prototype,"virtualizerProps",2),m([u({type:String,reflect:!0})],Qe.prototype,"loop",2),m([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],Qe.prototype,"scrollAnchoring",2),m([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],Qe.prototype,"observeSizeChanges",2),m([u({type:Boolean,reflect:!0,attribute:"revert-list"})],Qe.prototype,"revertList",2),m([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],Qe.prototype,"atBottomThreshold",2),m([Jt('[part="scroll"]',!0)],Qe.prototype,"scrollRef",2),m([Jt('[part="wrapper"]',!0)],Qe.prototype,"wrapperRef",2),m([Jt('[part="container"]',!0)],Qe.prototype,"containerRef",2),m([ru({passive:!0})],Qe.prototype,"onScrollHandler",1);var Op=Qe;Op.register(Rb);var P0=Op;pe.register(su);var Pb=V.constructTagName("combobox"),Rp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Db="list";var Pp="combobox-trigger-id";var on=class{static dispatchComboboxEvent(o,t,r,s=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:r==null?void 0:r.value,label:r==null?void 0:r.label},composed:!0,bubbles:s}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var D0=U`
6573
+ `}};Qe.styles=[...Ys.styles,...Rb],m([u({type:Object})],Qe.prototype,"virtualizerProps",2),m([u({type:String,reflect:!0})],Qe.prototype,"loop",2),m([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],Qe.prototype,"scrollAnchoring",2),m([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],Qe.prototype,"observeSizeChanges",2),m([u({type:Boolean,reflect:!0,attribute:"revert-list"})],Qe.prototype,"revertList",2),m([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],Qe.prototype,"atBottomThreshold",2),m([Jt('[part="scroll"]',!0)],Qe.prototype,"scrollRef",2),m([Jt('[part="wrapper"]',!0)],Qe.prototype,"wrapperRef",2),m([Jt('[part="container"]',!0)],Qe.prototype,"containerRef",2),m([iu({passive:!0})],Qe.prototype,"onScrollHandler",1);var Rp=Qe;Rp.register(Pb);var D0=Rp;pe.register(nu);var Db=V.constructTagName("combobox"),Pp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Fb="list";var Dp="combobox-trigger-id";var on=class{static dispatchComboboxEvent(o,t,r,s=!0){o.dispatchEvent(new CustomEvent(t,{detail:{value:r==null?void 0:r.value,label:r==null?void 0:r.label},composed:!0,bubbles:s}))}static onInputCombobox(o,t){this.dispatchComboboxEvent(o,"input",t)}static onChangeCombobox(o,t){this.dispatchComboboxEvent(o,"change",t)}};var F0=U`
6563
6574
  :host {
6564
6575
  --mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
6565
6576
  --mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
@@ -6664,7 +6675,7 @@
6664
6675
  --mdc-icon-fill-color: ButtonText;
6665
6676
  }
6666
6677
  }
6667
- `,Fb=[D0];var fe=class extends Lt(Ct(eo(_e(ke(Wt(ao(se))))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=At.Z_INDEX;this.isOpen=!1;this.filteredValue="";this.forceValueUpdate=!1;this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,r,s,d)=>{switch(r){case"added":t.setAttribute("tabindex",s===0&&d.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(I=>I===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")return;let r=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;r&&r.value!==this.value&&this.setSelectedValue(r,!1);break}case"unselected":{r&&this.setSelectedValue(r,!1);break}default:break}};this.addEventListener(Ht.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Zr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(Er)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}toggleDropdown(){this.isOpen=!this.isOpen}compareOptionWithValue(t,r){return(t.getAttribute("label")||"").toLowerCase().startsWith(r==null?void 0:r.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(r=>this.compareOptionWithValue(r,t))}setSelectedValue(t,r=!0){if(this.controlType==="controlled"&&!this.forceValueUpdate){on.onChangeCombobox(this,t);return}this.forceValueUpdate=!1,this.filteredValue=(t==null?void 0:t.getAttribute("label"))||"",this.value=(t==null?void 0:t.getAttribute("value"))||"",this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.setInputValidity(),this.resetHelpText(),r&&(on.onInputCombobox(this,t),on.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=Vt.DEFAULT)}attributeChangedCallback(t,r,s){if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&this.navItems.length&&this.controlType!=="controlled"){let d=this.getFirstSelectedOption(),c=this.navItems.find(y=>y.value===s),f=null;if(c)f=c;else if(this.placeholder)f=null;else if(d)f=d;else return;this.updateComplete.then(()=>{this.setSelectedValue(f)}).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 r=this.getFirstSelectedOption();r&&this.controlType!=="controlled"?(this.initialSelectedOption=r,this.setSelectedValue(r)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.navItems.forEach(s=>{s.setAttribute("tabindex","-1")})}updateValueBasedSelection(){this.forceValueUpdate=!0;let t=this.navItems.find(r=>r.value===this.value);t&&this.setSelectedValue(t)}updated(t){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)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,r;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var r;let t=this.initialSelectedOption||null;this.setSelectedValue(t),this.controlType!=="controlled"&&(this.filteredValue=(r=t==null?void 0:t.label)!=null?r:""),this.setInputValidity()}formStateRestoreCallback(t){let r=this.navItems.find(s=>s.value===t||s.label===t);this.setSelectedValue(r||null)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(r=>{r.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,r){t!==void 0&&(r?t.setAttribute("data-focused",""):t.removeAttribute("data-focused"),t.setAttribute("aria-selected",r.toString()))}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),r=t.findIndex(s=>s.hasAttribute("data-focused"));if(r!==-1){this.setSelectedValue(t[r]),this.closePopover();return}r===-1&&this.filteredValue!==""&&this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=Vt.ERROR),this.setInputValidity()}updateFocusAndScrollIntoView(t,r,s){var d;this.updateOptionAttributes(t[r],!1),this.updateOptionAttributes(t[s],!0),(d=t[s])==null||d.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let r=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),s=r.findIndex(c=>c.hasAttribute("data-focused")),d=this.getKeyboardNavMode()===Kt.SPATIAL;switch(this.getActionForKeyEvent(t)){case X.DOWN:{if(!d)this.openPopover();else if(!this.isOpen)break;let c=r.length-1===s?0:s+1;this.updateFocusAndScrollIntoView(r,s,c),t.preventDefault(),this.keyDownEventHandled();break}case X.UP:{if(!d)this.openPopover();else if(!this.isOpen)break;let c=s===-1||s===0?r.length-1:s-1;this.updateFocusAndScrollIntoView(r,s,c),t.preventDefault(),this.keyDownEventHandled();break}case X.ENTER:{if(d&&!this.isOpen)this.openPopover();else{if(s===-1)return;this.setSelectedValue(r[s]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case X.ESCAPE:{s!==-1&&this.updateOptionAttributes(r[s],!1),r.length&&this.shouldDisplayPopover(r.length)?this.closePopover():(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case X.TAB:{this.closePopover(),this.keyDownEventHandled();break}case X.HOME:case X.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){this.navItems.forEach(t=>{this.compareOptionWithValue(t,this.filteredValue)?(t.removeAttribute("data-hidden"),this.showOptionGroupAndDivider(t)):(t.setAttribute("data-hidden",""),this.hideOptionGroupAndDivider(t))})}hideOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(ba)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length===0&&(t.parentElement.setAttribute("data-hidden",""),(d=t.parentElement.nextElementSibling)!=null&&d.matches(ea)&&t.parentElement.nextElementSibling.setAttribute("data-hidden",""))}showOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(ba)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length>0&&(t.parentElement.removeAttribute("data-hidden"),(d=t.parentElement.nextElementSibling)!=null&&d.matches(ea)&&t.parentElement.nextElementSibling.removeAttribute("data-hidden"))}handleInputChange(t){var r;this.controlType!=="controlled"&&(this.filteredValue=t.target.value),this.resetSelectedValue(),this.resetFocusedOption(),this.updateHiddenOptions(),(r=this.getFirstSelectedOption())==null||r.removeAttribute("selected"),this.isOpen===!1&&this.openPopover()}handleOptionsClick(t){var s;let r=(s=t.target.closest(Er))!=null?s:null;r&&!r.hasAttribute("disabled")&&(this.setSelectedValue(r),this.closePopover(),this.updateComplete.then(()=>this.handleNativeInputFocus()).catch(this.handleUpdateError))}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t?this.isOpen:!!this.noResultText}renderNativeInput(){return C`
6678
+ `,$b=[F0];var fe=class extends Lt(Ct(eo(_e(ke(Wt(ao(se))))))){constructor(){super();this.placement=Nt.BOTTOM_START;this.boundary=At.BOUNDARY;this.strategy=At.STRATEGY;this.popoverZIndex=At.Z_INDEX;this.isOpen=!1;this.filteredValue="";this.forceValueUpdate=!1;this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,r,s,d)=>{switch(r){case"added":t.setAttribute("tabindex",s===0&&d.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(I=>I===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")return;let r=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;r&&r.value!==this.value&&this.setSelectedValue(r,!1);break}case"unselected":{r&&this.setSelectedValue(r,!1);break}default:break}};this.addEventListener(Ht.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Zr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(Er)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}toggleDropdown(){this.isOpen=!this.isOpen}compareOptionWithValue(t,r){return(t.getAttribute("label")||"").toLowerCase().startsWith(r==null?void 0:r.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(r=>this.compareOptionWithValue(r,t))}setSelectedValue(t,r=!0){if(this.controlType==="controlled"&&!this.forceValueUpdate){on.onChangeCombobox(this,t);return}this.forceValueUpdate=!1,this.filteredValue=(t==null?void 0:t.getAttribute("label"))||"",this.value=(t==null?void 0:t.getAttribute("value"))||"",this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.setInputValidity(),this.resetHelpText(),r&&(on.onInputCombobox(this,t),on.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=Vt.DEFAULT)}attributeChangedCallback(t,r,s){if(super.attributeChangedCallback(t,r,s),t==="value"&&s!==""&&s!==r&&this.navItems.length&&this.controlType!=="controlled"){let d=this.getFirstSelectedOption(),c=this.navItems.find(y=>y.value===s),f=null;if(c)f=c;else if(this.placeholder)f=null;else if(d)f=d;else return;this.updateComplete.then(()=>{this.setSelectedValue(f)}).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 r=this.getFirstSelectedOption();r&&this.controlType!=="controlled"?(this.initialSelectedOption=r,this.setSelectedValue(r)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.navItems.forEach(s=>{s.setAttribute("tabindex","-1")})}updateValueBasedSelection(){this.forceValueUpdate=!0;let t=this.navItems.find(r=>r.value===this.value);t&&this.setSelectedValue(t)}updated(t){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)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,r;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(r=this.inputElement)==null||r.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var r;let t=this.initialSelectedOption||null;this.setSelectedValue(t),this.controlType!=="controlled"&&(this.filteredValue=(r=t==null?void 0:t.label)!=null?r:""),this.setInputValidity()}formStateRestoreCallback(t){let r=this.navItems.find(s=>s.value===t||s.label===t);this.setSelectedValue(r||null)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(r=>{r.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,r){t!==void 0&&(r?t.setAttribute("data-focused",""):t.removeAttribute("data-focused"),t.setAttribute("aria-selected",r.toString()))}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),r=t.findIndex(s=>s.hasAttribute("data-focused"));if(r!==-1){this.setSelectedValue(t[r]),this.closePopover();return}r===-1&&this.filteredValue!==""&&this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=Vt.ERROR),this.setInputValidity()}updateFocusAndScrollIntoView(t,r,s){var d;this.updateOptionAttributes(t[r],!1),this.updateOptionAttributes(t[s],!0),(d=t[s])==null||d.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let r=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),s=r.findIndex(c=>c.hasAttribute("data-focused")),d=this.getKeyboardNavMode()===Kt.SPATIAL;switch(this.getActionForKeyEvent(t)){case q.DOWN:{if(!d)this.openPopover();else if(!this.isOpen)break;let c=r.length-1===s?0:s+1;this.updateFocusAndScrollIntoView(r,s,c),t.preventDefault(),this.keyDownEventHandled();break}case q.UP:{if(!d)this.openPopover();else if(!this.isOpen)break;let c=s===-1||s===0?r.length-1:s-1;this.updateFocusAndScrollIntoView(r,s,c),t.preventDefault(),this.keyDownEventHandled();break}case q.ENTER:{if(d&&!this.isOpen)this.openPopover();else{if(s===-1)return;this.setSelectedValue(r[s]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case q.ESCAPE:{s!==-1&&this.updateOptionAttributes(r[s],!1),r.length&&this.shouldDisplayPopover(r.length)?this.closePopover():(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case q.TAB:{this.closePopover(),this.keyDownEventHandled();break}case q.HOME:case q.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){this.navItems.forEach(t=>{this.compareOptionWithValue(t,this.filteredValue)?(t.removeAttribute("data-hidden"),this.showOptionGroupAndDivider(t)):(t.setAttribute("data-hidden",""),this.hideOptionGroupAndDivider(t))})}hideOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(ya)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length===0&&(t.parentElement.setAttribute("data-hidden",""),(d=t.parentElement.nextElementSibling)!=null&&d.matches(ea)&&t.parentElement.nextElementSibling.setAttribute("data-hidden",""))}showOptionGroupAndDivider(t){var r,s,d;(r=t.parentElement)!=null&&r.matches(ya)&&((s=Array.from(t.parentElement.children))==null?void 0:s.filter(f=>!f.hasAttribute("data-hidden"))).length>0&&(t.parentElement.removeAttribute("data-hidden"),(d=t.parentElement.nextElementSibling)!=null&&d.matches(ea)&&t.parentElement.nextElementSibling.removeAttribute("data-hidden"))}handleInputChange(t){var r;this.controlType!=="controlled"&&(this.filteredValue=t.target.value),this.resetSelectedValue(),this.resetFocusedOption(),this.updateHiddenOptions(),(r=this.getFirstSelectedOption())==null||r.removeAttribute("selected"),this.isOpen===!1&&this.openPopover()}handleOptionsClick(t){var s;let r=(s=t.target.closest(Er))!=null?s:null;r&&!r.hasAttribute("disabled")&&(this.setSelectedValue(r),this.closePopover(),this.updateComplete.then(()=>this.handleNativeInputFocus()).catch(this.handleUpdateError))}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t?this.isOpen:!!this.noResultText}renderNativeInput(){return C`
6668
6679
  <input
6669
6680
  id="${this.inputId}"
6670
6681
  name="${this.name}"
@@ -6676,7 +6687,7 @@
6676
6687
  ?required=${this.required}
6677
6688
  ?disabled=${this.disabled}
6678
6689
  ?readonly=${this.readonly}
6679
- autocomplete="${Us.OFF}"
6690
+ autocomplete="${Hs.OFF}"
6680
6691
  @focus=${this.handleNativeInputFocus}
6681
6692
  @invalid=${this.setInputValidity}
6682
6693
  />
@@ -6686,7 +6697,7 @@
6686
6697
  slot="input"
6687
6698
  ?disabled="${this.disabled}"
6688
6699
  .value="${qo(this.filteredValue)}"
6689
- autocomplete="${Us.OFF}"
6700
+ autocomplete="${Hs.OFF}"
6690
6701
  part="input-text"
6691
6702
  placeholder="${tt(this.placeholder)}"
6692
6703
  role="${J.COMBOBOX}"
@@ -6695,7 +6706,7 @@
6695
6706
  @input=${this.handleInputChange}
6696
6707
  @keydown=${this.handleInputKeydown}
6697
6708
  @blur="${this.handleBlurChange}"
6698
- aria-autocomplete="${Db}"
6709
+ aria-autocomplete="${Fb}"
6699
6710
  aria-describedby="${tt(this.helpText?Ot.HELPER_TEXT_ID:"")}"
6700
6711
  aria-disabled="${this.disabled?"true":"false"}"
6701
6712
  aria-expanded="${this.isOpen?"true":"false"}"
@@ -6708,7 +6719,7 @@
6708
6719
  />
6709
6720
  `}renderNoResultsText(t){return t===0&&this.noResultText?C`<mdc-listitem part="no-result-text" tabindex="-1" role="" label="${this.noResultText}"></mdc-listitem>`:j}render(){var r;let t=this.getVisibleOptions(this.filteredValue);return C`
6710
6721
  ${this.renderLabel()}
6711
- <div part="combobox-base" id="${Pp}">
6722
+ <div part="combobox-base" id="${Dp}">
6712
6723
  ${this.renderNativeInput()}
6713
6724
  <mdc-input
6714
6725
  @click="${()=>this.toggleDropdown()}"
@@ -6728,7 +6739,7 @@
6728
6739
  >
6729
6740
  <mdc-icon
6730
6741
  part="combobox-button-icon"
6731
- name="${this.shouldDisplayPopover(t.length)?Rp.ARROW_UP:Rp.ARROW_DOWN}"
6742
+ name="${this.shouldDisplayPopover(t.length)?Pp.ARROW_UP:Pp.ARROW_DOWN}"
6732
6743
  size="1"
6733
6744
  length-unit="rem"
6734
6745
  ></mdc-icon>
@@ -6750,7 +6761,7 @@
6750
6761
  size
6751
6762
  strategy="${tt(this.strategy)}"
6752
6763
  trigger="${Ke.MANUAL}"
6753
- triggerid="${Pp}"
6764
+ triggerid="${Dp}"
6754
6765
  z-index="${tt(this.popoverZIndex)}"
6755
6766
  >
6756
6767
  ${this.renderNoResultsText(t.length)}
@@ -6758,7 +6769,7 @@
6758
6769
  </mdc-popover>
6759
6770
  </div>
6760
6771
  ${this.renderHelperText()}
6761
- `}};fe.styles=[...Or.styles,...se.styles,...Fb],m([u({type:String})],fe.prototype,"placeholder",2),m([u({type:String,reflect:!0})],fe.prototype,"placement",2),m([u({type:String,attribute:"no-result-text",reflect:!0})],fe.prototype,"noResultText",2),m([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],fe.prototype,"invalidCustomValueText",2),m([u({type:String,reflect:!0})],fe.prototype,"boundary",2),m([u({type:String,reflect:!0})],fe.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],fe.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],fe.prototype,"backdropAppendTo",2),m([Jt(`[role="${J.COMBOBOX}"]`)],fe.prototype,"visualCombobox",2),m([Jt('[part="combobox-button"]')],fe.prototype,"dropDownButton",2),m([Ft({selector:wd})],fe.prototype,"slottedListboxes",2),m([ut()],fe.prototype,"isOpen",2),m([ut()],fe.prototype,"filteredValue",2),m([ut()],fe.prototype,"forceValueUpdate",2);var Dp=fe;Dp.register(Pb);var F0=Dp;var $b=(a,o,t)=>{let r=new Map;for(let s=o;s<=t;s++)r.set(a[s],s);return r},zb=mi(class extends Kr{constructor(a){if(super(a),a.type!==ir.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let r;t===void 0?t=o:o!==void 0&&(r=o);let s=[],d=[],c=0;for(let f of a)s[c]=r?r(f,c):c,d[c]=t(f,c),c++;return{values:d,keys:s}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,r]){var lt;let s=zu(a),{values:d,keys:c}=this.dt(o,t,r);if(!Array.isArray(s))return this.ut=c,d;let f=(lt=this.ut)!=null?lt:this.ut=[],y=[],I,$,Y=0,Q=s.length-1,Z=0,it=d.length-1;for(;Y<=Q&&Z<=it;)if(s[Y]===null)Y++;else if(s[Q]===null)Q--;else if(f[Y]===c[Z])y[Z]=Wi(s[Y],d[Z]),Y++,Z++;else if(f[Q]===c[it])y[it]=Wi(s[Q],d[it]),Q--,it--;else if(f[Y]===c[it])y[it]=Wi(s[Y],d[it]),Ss(a,y[it+1],s[Y]),Y++,it--;else if(f[Q]===c[Z])y[Z]=Wi(s[Q],d[Z]),Ss(a,s[Y],s[Q]),Q--,Z++;else if(I===void 0&&(I=$b(c,Z,it),$=$b(f,Y,Q)),I.has(f[Y]))if(I.has(f[Q])){let dt=$.get(c[Z]),gt=dt!==void 0?s[dt]:null;if(gt===null){let It=Ss(a,s[Y]);Wi(It,d[Z]),y[Z]=It}else y[Z]=Wi(gt,d[Z]),Ss(a,s[Y],gt),s[dt]=null;Z++}else yl(s[Q]),Q--;else yl(s[Y]),Y++;for(;Z<=it;){let dt=Ss(a,y[it+1]);Wi(dt,d[Z]),y[Z++]=dt}for(;Y<=Q;){let dt=s[Y++];dt!==null&&yl(dt)}return this.ut=c,bl(a,y),Ie}});var Vb=V.constructTagName("slider"),$0={START:"start",END:"end",UNDEFINED:void 0},uo={MIN:0,MAX:100,STEP:1,STATE:$0.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var z0=U`
6772
+ `}};fe.styles=[...Or.styles,...se.styles,...$b],m([u({type:String})],fe.prototype,"placeholder",2),m([u({type:String,reflect:!0})],fe.prototype,"placement",2),m([u({type:String,attribute:"no-result-text",reflect:!0})],fe.prototype,"noResultText",2),m([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],fe.prototype,"invalidCustomValueText",2),m([u({type:String,reflect:!0})],fe.prototype,"boundary",2),m([u({type:String,reflect:!0})],fe.prototype,"strategy",2),m([u({type:Number,reflect:!0,attribute:"popover-z-index"})],fe.prototype,"popoverZIndex",2),m([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],fe.prototype,"backdropAppendTo",2),m([Jt(`[role="${J.COMBOBOX}"]`)],fe.prototype,"visualCombobox",2),m([Jt('[part="combobox-button"]')],fe.prototype,"dropDownButton",2),m([Ft({selector:Nd})],fe.prototype,"slottedListboxes",2),m([ut()],fe.prototype,"isOpen",2),m([ut()],fe.prototype,"filteredValue",2),m([ut()],fe.prototype,"forceValueUpdate",2);var Fp=fe;Fp.register(Db);var $0=Fp;var zb=(a,o,t)=>{let r=new Map;for(let s=o;s<=t;s++)r.set(a[s],s);return r},Vb=mi(class extends Kr{constructor(a){if(super(a),a.type!==ir.CHILD)throw Error("repeat() can only be used in text expressions")}dt(a,o,t){let r;t===void 0?t=o:o!==void 0&&(r=o);let s=[],d=[],c=0;for(let f of a)s[c]=r?r(f,c):c,d[c]=t(f,c),c++;return{values:d,keys:s}}render(a,o,t){return this.dt(a,o,t).values}update(a,[o,t,r]){var lt;let s=Vu(a),{values:d,keys:c}=this.dt(o,t,r);if(!Array.isArray(s))return this.ut=c,d;let f=(lt=this.ut)!=null?lt:this.ut=[],y=[],I,$,Y=0,Q=s.length-1,Z=0,it=d.length-1;for(;Y<=Q&&Z<=it;)if(s[Y]===null)Y++;else if(s[Q]===null)Q--;else if(f[Y]===c[Z])y[Z]=Wi(s[Y],d[Z]),Y++,Z++;else if(f[Q]===c[it])y[it]=Wi(s[Q],d[it]),Q--,it--;else if(f[Y]===c[it])y[it]=Wi(s[Y],d[it]),Is(a,y[it+1],s[Y]),Y++,it--;else if(f[Q]===c[Z])y[Z]=Wi(s[Q],d[Z]),Is(a,s[Y],s[Q]),Q--,Z++;else if(I===void 0&&(I=zb(c,Z,it),$=zb(f,Y,Q)),I.has(f[Y]))if(I.has(f[Q])){let dt=$.get(c[Z]),gt=dt!==void 0?s[dt]:null;if(gt===null){let It=Is(a,s[Y]);Wi(It,d[Z]),y[Z]=It}else y[Z]=Wi(gt,d[Z]),Is(a,s[Y],gt),s[dt]=null;Z++}else El(s[Q]),Q--;else El(s[Y]),Y++;for(;Z<=it;){let dt=Is(a,y[it+1]);Wi(dt,d[Z]),y[Z++]=dt}for(;Y<=Q;){let dt=s[Y++];dt!==null&&El(dt)}return this.ut=c,yl(a,y),Ie}});var Bb=V.constructTagName("slider"),z0={START:"start",END:"end",UNDEFINED:void 0},uo={MIN:0,MAX:100,STEP:1,STATE:z0.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var V0=U`
6762
6773
  :host {
6763
6774
  width: 100%;
6764
6775
  --mdc-slider-tooltip-left: 0;
@@ -6980,7 +6991,7 @@
6980
6991
  border: 1px solid;
6981
6992
  }
6982
6993
  }
6983
- `,Bb=[Ui,z0];var Mt=class extends Lt(Ct(q)){constructor(){super();this.thumbFocused=uo.STATE;this.thumbHovered=uo.STATE;this.range=!1;this.min=uo.MIN;this.max=uo.MAX;this.step=uo.STEP;this.spatialNavEditMode=!1;this.addEventListener("keydown",this.handleKeyEvent.bind(this)),this.addEventListener("mousedown",this.preventChange.bind(this))}updated(t){super.updated(t),(t.has("value")||t.has("step")||t.has("min")||t.has("max")||t.has("disabled")||t.has("softDisabled")||t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.updateTrackStyling(),t.has("softDisabled")&&this.setSoftDisabled(),(t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.initializeRangeSlider()}preventChange(t){this.softDisabled&&(t.preventDefault(),t.stopPropagation())}handleKeyEvent(t){var s;let r=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===Kt.SPATIAL){if(this.softDisabled)return;let d=(s=this.shadowRoot)==null?void 0:s.activeElement,c=(d==null?void 0:d.tagName)==="INPUT";if(t.preventDefault(),!c){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&r===X.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((r===X.ENTER||r===X.ESCAPE||r===X.UP||r===X.DOWN)&&(this.spatialNavEditMode=!1,(r===X.ENTER||r===X.ESCAPE)&&this.keyDownEventHandled()),r===X.LEFT&&(d==null||d.stepDown(),this.keyDownEventHandled(),this.handleInput(d)),r===X.RIGHT&&(d==null||d.stepUp(),this.keyDownEventHandled(),this.handleInput(d)))}else this.softDisabled&&r!==X.TAB&&(t.preventDefault(),t.stopPropagation())}setSoftDisabled(){this.inputElements.forEach(t=>{let r=t;this.softDisabled?r.setAttribute("aria-disabled","true"):r.removeAttribute("aria-disabled")})}initializeRangeSlider(){this.valueStart===void 0&&(this.valueStart=this.min),this.valueEnd===void 0&&(this.valueEnd=this.max),this.inputElements.forEach(this.handleInput,this)}handleInput(t){let r=Array.from(this.inputElements);if(!r.includes(t))return;if(r.length===1){this.value=Number(t.value);return}let s=r.indexOf(t),d=r[s];if(s===0){if(!this.valueEnd)return;let c=Number(d.value);c>this.valueEnd?(d.value=String(this.valueEnd),this.valueStart=this.valueEnd):c>=this.min&&c<this.valueEnd?this.valueStart=c:c<this.min&&(d.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let c=Number(d.value);c<this.valueStart?(d.value=String(this.valueStart),this.valueEnd=this.valueStart):c<=this.max&&c>this.valueStart?this.valueEnd=c:c>this.max&&(d.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,r){return typeof t=="string"&&t.length>0?C`<mdc-icon
6994
+ `,Ub=[Ui,V0];var Mt=class extends Lt(Ct(X)){constructor(){super();this.thumbFocused=uo.STATE;this.thumbHovered=uo.STATE;this.range=!1;this.min=uo.MIN;this.max=uo.MAX;this.step=uo.STEP;this.spatialNavEditMode=!1;this.addEventListener("keydown",this.handleKeyEvent.bind(this)),this.addEventListener("mousedown",this.preventChange.bind(this))}updated(t){super.updated(t),(t.has("value")||t.has("step")||t.has("min")||t.has("max")||t.has("disabled")||t.has("softDisabled")||t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.updateTrackStyling(),t.has("softDisabled")&&this.setSoftDisabled(),(t.has("range")||t.has("valueStart")||t.has("valueEnd"))&&this.initializeRangeSlider()}preventChange(t){this.softDisabled&&(t.preventDefault(),t.stopPropagation())}handleKeyEvent(t){var s;let r=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===Kt.SPATIAL){if(this.softDisabled)return;let d=(s=this.shadowRoot)==null?void 0:s.activeElement,c=(d==null?void 0:d.tagName)==="INPUT";if(t.preventDefault(),!c){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&r===q.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((r===q.ENTER||r===q.ESCAPE||r===q.UP||r===q.DOWN)&&(this.spatialNavEditMode=!1,(r===q.ENTER||r===q.ESCAPE)&&this.keyDownEventHandled()),r===q.LEFT&&(d==null||d.stepDown(),this.keyDownEventHandled(),this.handleInput(d)),r===q.RIGHT&&(d==null||d.stepUp(),this.keyDownEventHandled(),this.handleInput(d)))}else this.softDisabled&&r!==q.TAB&&(t.preventDefault(),t.stopPropagation())}setSoftDisabled(){this.inputElements.forEach(t=>{let r=t;this.softDisabled?r.setAttribute("aria-disabled","true"):r.removeAttribute("aria-disabled")})}initializeRangeSlider(){this.valueStart===void 0&&(this.valueStart=this.min),this.valueEnd===void 0&&(this.valueEnd=this.max),this.inputElements.forEach(this.handleInput,this)}handleInput(t){let r=Array.from(this.inputElements);if(!r.includes(t))return;if(r.length===1){this.value=Number(t.value);return}let s=r.indexOf(t),d=r[s];if(s===0){if(!this.valueEnd)return;let c=Number(d.value);c>this.valueEnd?(d.value=String(this.valueEnd),this.valueStart=this.valueEnd):c>=this.min&&c<this.valueEnd?this.valueStart=c:c<this.min&&(d.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let c=Number(d.value);c<this.valueStart?(d.value=String(this.valueStart),this.valueEnd=this.valueStart):c<=this.max&&c>this.valueStart?this.valueEnd=c:c>this.max&&(d.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,r){return typeof t=="string"&&t.length>0?C`<mdc-icon
6984
6995
  name="${t}"
6985
6996
  part="${r}"
6986
6997
  length-unit="${uo.ICON_LENGTH_UNIT}"
@@ -6996,7 +7007,7 @@
6996
7007
  ${r} ${y}%,
6997
7008
  ${r} 100%
6998
7009
  )`}else{if(!this.inputElements[0])return;let s=Number(this.inputElements[0].value),d=Number(this.inputElements[0].max)||1,c=Math.max(0,Math.min(100,(s-this.min)/(d-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${c}%, ${r} ${c}%)`}}onInput(t){let r=t.target;this.handleInput(r)}onChange(t){let r=t.target;this.value=Number(r.value),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value}}))}onChangeStart(t){let r=t.target;this.valueStart=Number(r.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueStart:this.valueStart,valueEnd:this.valueEnd}}))}onChangeEnd(t){let r=t.target;this.valueEnd=Number(r.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueEnd:this.valueEnd,valueStart:this.valueStart}}))}getTickStyles(t){if(this.max===this.min)return"";let r=(t-this.min)/(this.max-this.min),s=[];if(this.inputElements[0]){let c=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);s.push(c)}if(this.range&&this.inputElements[1]){let c=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);s.push(c)}return s.includes(r)?"display:none;":`--mdc-slider-tick-left:${r};`}renderTicks(){let t=[];if(this.step&&this.step>1)for(let r=this.min;r<=this.max;r+=this.step)t.push(r);return this.step>1?C` <div part="slider-ticks">
6999
- ${zb(t,r=>r,r=>C`<span part="slider-tick" style=${this.getTickStyles(r)}></span>`)}
7010
+ ${Vb(t,r=>r,r=>C`<span part="slider-tick" style=${this.getTickStyles(r)}></span>`)}
7000
7011
  </div>`:j}render(){var t,r,s,d,c,f,y,I,$,Y,Q,Z,it,lt,dt,gt,It;return C`
7001
7012
  ${this.label?C`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
7002
7013
  <div part="slider-track">
@@ -7087,7 +7098,7 @@
7087
7098
  ${this.labelStart?C`<span part="slider-label-start">${this.labelStart}</span>`:null}
7088
7099
  ${this.labelEnd?C`<span part="slider-label-end">${this.labelEnd}</span>`:null}
7089
7100
  </div>
7090
- `}};Mt.styles=[...q.styles,...Bb],m([ut()],Mt.prototype,"thumbFocused",2),m([ut()],Mt.prototype,"thumbHovered",2),m([u({reflect:!0,type:Boolean})],Mt.prototype,"range",2),m([u({reflect:!0,type:Number})],Mt.prototype,"min",2),m([u({reflect:!0,type:Number})],Mt.prototype,"max",2),m([u({reflect:!0,type:Boolean})],Mt.prototype,"disabled",2),m([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Mt.prototype,"softDisabled",2),m([u({reflect:!0,type:String,attribute:"leading-icon"})],Mt.prototype,"leadingIcon",2),m([u({reflect:!0,type:String,attribute:"trailing-icon"})],Mt.prototype,"trailingIcon",2),m([u({reflect:!0,type:Number})],Mt.prototype,"value",2),m([u({reflect:!0,type:Number,attribute:"value-start"})],Mt.prototype,"valueStart",2),m([u({reflect:!0,type:Number,attribute:"value-end"})],Mt.prototype,"valueEnd",2),m([u({reflect:!0,type:Number})],Mt.prototype,"step",2),m([u({reflect:!0,type:String})],Mt.prototype,"label",2),m([u({reflect:!0,type:String,attribute:"label-start"})],Mt.prototype,"labelStart",2),m([u({reflect:!0,type:String,attribute:"label-end"})],Mt.prototype,"labelEnd",2),m([u({reflect:!0,type:String,attribute:"value-label"})],Mt.prototype,"valueLabel",2),m([u({reflect:!0,type:String,attribute:"value-label-start"})],Mt.prototype,"valueLabelStart",2),m([u({reflect:!0,type:String,attribute:"value-label-end"})],Mt.prototype,"valueLabelEnd",2),m([u({reflect:!0,type:String})],Mt.prototype,"name",2),m([u({reflect:!0,type:String,attribute:"name-start"})],Mt.prototype,"nameStart",2),m([u({reflect:!0,type:String,attribute:"name-end"})],Mt.prototype,"nameEnd",2),m([u({reflect:!0,type:String,attribute:"data-aria-label"})],Mt.prototype,"dataAriaLabel",2),m([u({reflect:!0,type:String,attribute:"start-aria-label"})],Mt.prototype,"startAriaLabel",2),m([u({reflect:!0,type:String,attribute:"end-aria-label"})],Mt.prototype,"endAriaLabel",2),m([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Mt.prototype,"dataAriaValuetext",2),m([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Mt.prototype,"startAriaValuetext",2),m([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Mt.prototype,"endAriaValueText",2),m([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Mt.prototype,"hideTooltip",2),m([iu('input[type="range"]')],Mt.prototype,"inputElements",2);var Fp=Mt;Fp.register(Vb);var V0=Fp;var B0=U`
7101
+ `}};Mt.styles=[...X.styles,...Ub],m([ut()],Mt.prototype,"thumbFocused",2),m([ut()],Mt.prototype,"thumbHovered",2),m([u({reflect:!0,type:Boolean})],Mt.prototype,"range",2),m([u({reflect:!0,type:Number})],Mt.prototype,"min",2),m([u({reflect:!0,type:Number})],Mt.prototype,"max",2),m([u({reflect:!0,type:Boolean})],Mt.prototype,"disabled",2),m([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Mt.prototype,"softDisabled",2),m([u({reflect:!0,type:String,attribute:"leading-icon"})],Mt.prototype,"leadingIcon",2),m([u({reflect:!0,type:String,attribute:"trailing-icon"})],Mt.prototype,"trailingIcon",2),m([u({reflect:!0,type:Number})],Mt.prototype,"value",2),m([u({reflect:!0,type:Number,attribute:"value-start"})],Mt.prototype,"valueStart",2),m([u({reflect:!0,type:Number,attribute:"value-end"})],Mt.prototype,"valueEnd",2),m([u({reflect:!0,type:Number})],Mt.prototype,"step",2),m([u({reflect:!0,type:String})],Mt.prototype,"label",2),m([u({reflect:!0,type:String,attribute:"label-start"})],Mt.prototype,"labelStart",2),m([u({reflect:!0,type:String,attribute:"label-end"})],Mt.prototype,"labelEnd",2),m([u({reflect:!0,type:String,attribute:"value-label"})],Mt.prototype,"valueLabel",2),m([u({reflect:!0,type:String,attribute:"value-label-start"})],Mt.prototype,"valueLabelStart",2),m([u({reflect:!0,type:String,attribute:"value-label-end"})],Mt.prototype,"valueLabelEnd",2),m([u({reflect:!0,type:String})],Mt.prototype,"name",2),m([u({reflect:!0,type:String,attribute:"name-start"})],Mt.prototype,"nameStart",2),m([u({reflect:!0,type:String,attribute:"name-end"})],Mt.prototype,"nameEnd",2),m([u({reflect:!0,type:String,attribute:"data-aria-label"})],Mt.prototype,"dataAriaLabel",2),m([u({reflect:!0,type:String,attribute:"start-aria-label"})],Mt.prototype,"startAriaLabel",2),m([u({reflect:!0,type:String,attribute:"end-aria-label"})],Mt.prototype,"endAriaLabel",2),m([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Mt.prototype,"dataAriaValuetext",2),m([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Mt.prototype,"startAriaValuetext",2),m([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Mt.prototype,"endAriaValueText",2),m([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Mt.prototype,"hideTooltip",2),m([ou('input[type="range"]')],Mt.prototype,"inputElements",2);var $p=Mt;$p.register(Bb);var B0=$p;var U0=U`
7091
7102
  :host {
7092
7103
  --mdc-listbox-max-height: auto;
7093
7104
 
@@ -7104,7 +7115,7 @@
7104
7115
  ::slotted(mdc-option) {
7105
7116
  width: 100%;
7106
7117
  }
7107
- `,Ub=[B0];var ns=class extends Ks(eo(q)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Zr(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=J.LISTBOX}handleModifiedEvent(t){let r=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(r);break;case"disabled":this.itemsStore.delete(r);break;case"selected":this.setSelectedOption(r,!1,!1);break;case"unselected":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(`${Er}:not([disabled])`)}handleClick(t){let r=t.target;this.isValidItem(r)&&this.setSelectedOption(r)}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}updated(t){if(t.has("value")){let r=this.itemsStore.items.find(s=>s.value===this.value);r?this.setSelectedOption(r,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,r=!0,s=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(s&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,r&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(r=>r.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.selectedOption&&this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){return C`<slot part="container"></slot>`}};ns.styles=[...Nh.styles,...Ub],m([u({type:String,reflect:!0})],ns.prototype,"name",2),m([u({type:String,reflect:!0})],ns.prototype,"value",2),m([ut()],ns.prototype,"selectedOption",2);var $p=ns;var Hb=V.constructTagName("listbox");$p.register(Hb);var U0=$p;var Gb=V.constructTagName("banner"),sn={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},wa={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Gd={VARIANT:sn.CUSTOM,PREFIX_ICON_SIZE:1.25};var H0=U`
7118
+ `,Hb=[U0];var as=class extends Ws(eo(X)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Zr(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=J.LISTBOX}handleModifiedEvent(t){let r=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(r);break;case"disabled":this.itemsStore.delete(r);break;case"selected":this.setSelectedOption(r,!1,!1);break;case"unselected":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(`${Er}:not([disabled])`)}handleClick(t){let r=t.target;this.isValidItem(r)&&this.setSelectedOption(r)}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}updated(t){if(t.has("value")){let r=this.itemsStore.items.find(s=>s.value===this.value);r?this.setSelectedOption(r,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,r=!0,s=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(s&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,r&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(r=>r.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.selectedOption&&this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){return C`<slot part="container"></slot>`}};as.styles=[...Lh.styles,...Hb],m([u({type:String,reflect:!0})],as.prototype,"name",2),m([u({type:String,reflect:!0})],as.prototype,"value",2),m([ut()],as.prototype,"selectedOption",2);var zp=as;var Gb=V.constructTagName("listbox");zp.register(Gb);var H0=zp;var Kb=V.constructTagName("banner"),sn={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},ka={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Wd={VARIANT:sn.CUSTOM,PREFIX_ICON_SIZE:1.25};var G0=U`
7108
7119
  :host {
7109
7120
  --mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
7110
7121
  --mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
@@ -7187,8 +7198,8 @@
7187
7198
  gap: var(--mdc-banner-gap);
7188
7199
  flex-wrap: wrap;
7189
7200
  }
7190
- `,Kb=[H0];var Wb=a=>{switch(a){case sn.INFORMATIONAL:return wa.INFORMATIONAL_ICON_NAME;case sn.SUCCESS:return wa.SUCCESS_ICON_NAME;case sn.WARNING:return wa.WARNING_ICON_NAME;case sn.ERROR:return wa.ERROR_ICON_NAME;default:return null}};var as=class extends q{constructor(){super(...arguments);this.variant=Gd.VARIANT}renderIcon(t){return t?C`
7191
- <mdc-icon name="${t}" size="${Gd.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
7201
+ `,Wb=[G0];var Yb=a=>{switch(a){case sn.INFORMATIONAL:return ka.INFORMATIONAL_ICON_NAME;case sn.SUCCESS:return ka.SUCCESS_ICON_NAME;case sn.WARNING:return ka.WARNING_ICON_NAME;case sn.ERROR:return ka.ERROR_ICON_NAME;default:return null}};var ls=class extends X{constructor(){super(...arguments);this.variant=Wd.VARIANT}renderIcon(t){return t?C`
7202
+ <mdc-icon name="${t}" size="${Wd.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
7192
7203
  `:j}getTextLabel(){return this.label?C`
7193
7204
  <mdc-text
7194
7205
  part="leading-label"
@@ -7206,7 +7217,7 @@
7206
7217
  <slot name="content">
7207
7218
  <div part="leading">
7208
7219
  <slot name="leading-icon">
7209
- ${this.variant!==Gd.VARIANT?this.renderIcon(Wb(this.variant)):j}
7220
+ ${this.variant!==Wd.VARIANT?this.renderIcon(Yb(this.variant)):j}
7210
7221
  </slot>
7211
7222
  <slot name="leading-text">
7212
7223
  <div part="leading-text">${this.getTextLabel()}</div>
@@ -7216,7 +7227,7 @@
7216
7227
  <slot name="trailing-actions"></slot>
7217
7228
  </div>
7218
7229
  </slot>
7219
- `}};as.styles=[...q.styles,...Kb],m([u({type:String,reflect:!0})],as.prototype,"variant",2),m([u({type:String,reflect:!0})],as.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"secondary-label"})],as.prototype,"secondaryLabel",2);var zp=as;zp.register(Gb);var G0=zp;})();
7230
+ `}};ls.styles=[...X.styles,...Wb],m([u({type:String,reflect:!0})],ls.prototype,"variant",2),m([u({type:String,reflect:!0})],ls.prototype,"label",2),m([u({type:String,reflect:!0,attribute:"secondary-label"})],ls.prototype,"secondaryLabel",2);var Vp=ls;Vp.register(Kb);var K0=Vp;})();
7220
7231
  /*! Bundled license information:
7221
7232
 
7222
7233
  lottie-web/build/player/lottie_light.js: