@momentum-design/components 0.141.1 → 0.141.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- "use strict";(()=>{var ix=Object.create;var mh=Object.defineProperty;var pf=Object.getOwnPropertyDescriptor;var ox=Object.getOwnPropertyNames;var sx=Object.getPrototypeOf,ax=Object.prototype.hasOwnProperty;var nx=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var lx=(n,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of ox(o))!ax.call(n,i)&&i!==t&&mh(n,i,{get:()=>o[i],enumerable:!(e=pf(o,i))||e.enumerable});return n};var dx=(n,o,t)=>(t=n!=null?ix(sx(n)):{},lx(o||!n||!n.__esModule?mh(t,"default",{value:n,enumerable:!0}):t,n));var h=(n,o,t,e)=>{for(var i=e>1?void 0:e?pf(o,t):o,a=n.length-1,d;a>=0;a--)(d=n[a])&&(i=(e?d(o,t,i):d(i))||i);return e&&i&&mh(o,t,i),i};var xv=nx((Tn,ld)=>{typeof navigator<"u"&&function(n,o){typeof Tn=="object"&&typeof ld<"u"?ld.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(Tn,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},a=function(){return t},d=function(s){o=s},f=function(){return o};function v(r){return document.createElement(r)}function S(r,s){var l,c=r.length,m;for(l=0;l<c;l+=1){m=r[l].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function R(r,s){return Object.getOwnPropertyDescriptor(r,s)}function U(r){function s(){}return s.prototype=r,s}var J=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(l){this.audios.push(l)},pause:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].pause()},resume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].resume()},setRate:function(l){var c,m=this.audios.length;for(c=0;c<m;c+=1)this.audios[c].setRate(l)},createAudio:function(l){return this.audioFactory?this.audioFactory(l):window.Howl?new window.Howl({src:[l]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(l){this.audioFactory=l},setVolume:function(l){this._volume=l,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),j=function(){function r(l,c){var m=0,p=[],b;switch(l){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<c;m+=1)p.push(b);return p}function s(l,c){return l==="float32"?new Float32Array(c):l==="int16"?new Int16Array(c):l==="uint8c"?new Uint8ClampedArray(c):r(l,c)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function Z(r){return Array.apply(null,{length:r})}function rt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rt=function(l){return typeof l}:rt=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},rt(r)}var st=!0,ht=null,bt=null,yt="",It=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Gt=Math.pow,Pt=Math.sqrt,ne=Math.floor,Ge=Math.max,qt=Math.min,xe={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,l=r.length;for(s=0;s<l;s+=1)xe[r[s]]=Math[r[s]]})();function Ae(){return{}}xe.random=Math.random,xe.abs=function(r){var s=rt(r);if(s==="object"&&r.length){var l=Z(r.length),c,m=r.length;for(c=0;c<m;c+=1)l[c]=Math.abs(r[c]);return l}return Math.abs(r)};var Se=150,Nt=Math.PI/180,se=.5519;function Ke(r){Rt=!!r}function Je(r){return Rt?Math.round(r):r}function tr(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function _r(r,s,l,c){this.type=r,this.currentTime=s,this.totalTime=l,this.direction=c<0?-1:1}function ul(r,s){this.type=r,this.direction=s<0?-1:1}function bu(r,s,l,c){this.type=r,this.currentLoop=l,this.totalLoops=s,this.direction=c<0?-1:1}function yu(r,s,l){this.type=r,this.firstFrame=s,this.totalFrames=l}function Eu(r,s){this.type=r,this.target=s}function iT(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function oT(r){this.type="configError",this.nativeError=r}function EC(r,s){this.type=r,this.nativeError=s}var er=function(){var r=0;return function(){return r+=1,yt+"__lottie_element_"+r}}();function th(r,s,l){var c,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=l*(1-s),k=l*(1-I*s),M=l*(1-(1-I)*s),b%6){case 0:c=l,m=M,p=y;break;case 1:c=k,m=l,p=y;break;case 2:c=y,m=l,p=M;break;case 3:c=y,m=k,p=l;break;case 4:c=M,m=y,p=l;break;case 5:c=l,m=y,p=k;break;default:break}return[c,m,p]}function eh(r,s,l){var c=Math.max(r,s,l),m=Math.min(r,s,l),p=c-m,b,I=c===0?0:p/c,y=c/255;switch(c){case m:b=0;break;case r:b=s-l+p*(s<l?6:0),b/=6*p;break;case s:b=l-r+p*2,b/=6*p;break;case l:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function Tu(r,s){var l=eh(r[0]*255,r[1]*255,r[2]*255);return l[1]+=s,l[1]>1?l[1]=1:l[1]<=0&&(l[1]=0),th(l[0],l[1],l[2])}function xu(r,s){var l=eh(r[0]*255,r[1]*255,r[2]*255);return l[2]+=s,l[2]>1?l[2]=1:l[2]<0&&(l[2]=0),th(l[0],l[1],l[2])}function Au(r,s){var l=eh(r[0]*255,r[1]*255,r[2]*255);return l[0]+=s/360,l[0]>1?l[0]-=1:l[0]<0&&(l[0]+=1),th(l[0],l[1],l[2])}var TC=function(){var r=[],s,l;for(s=0;s<256;s+=1)l=s.toString(16),r[s]=l.length===1?"0"+l:l;return function(c,m,p){return c<0&&(c=0),m<0&&(m=0),p<0&&(p=0),"#"+r[c]+r[m]+r[p]}}(),sT=function(s){st=!!s},aT=function(){return st},nT=function(s){ht=s},fl=function(){return ht},xC=function(s){bt=s},Su=function(){return bt},vl=function(s){Se=s},$a=function(){return Se},lT=function(s){yt=s},AC=function(){return yt};function Ct(r){return document.createElementNS(n,r)}function gl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gl=function(l){return typeof l}:gl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},gl(r)}var Va=function(){var r=1,s=[],l,c,m={onmessage:function(){},postMessage:function(O){l({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(x){if(window.Worker&&window.Blob&&a()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return l=x,m}function I(){c||(c=b(function(O){function F(){function G(it,_){var P,g,E=it.length,q,B,ct,gt;for(g=0;g<E;g+=1)if(P=it[g],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var St=P.masksProperties;for(B=St.length,q=0;q<B;q+=1)if(St[q].pt.k.i)N(St[q].pt.k);else for(gt=St[q].pt.k.length,ct=0;ct<gt;ct+=1)St[q].pt.k[ct].s&&N(St[q].pt.k[ct].s[0]),St[q].pt.k[ct].e&&N(St[q].pt.k[ct].e[0])}P.ty===0?(P.layers=T(P.refId,_),G(P.layers,_)):P.ty===4?C(P.shapes):P.ty===5&&_t(P)}}function L(it,_){if(it){var P=0,g=it.length;for(P=0;P<g;P+=1)it[P].t===1&&(it[P].data.layers=T(it[P].data.refId,_),G(it[P].data.layers,_))}}function w(it,_){for(var P=0,g=_.length;P<g;){if(_[P].id===it)return _[P];P+=1}return null}function T(it,_){var P=w(it,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function C(it){var _,P=it.length,g,E;for(_=P-1;_>=0;_-=1)if(it[_].ty==="sh")if(it[_].ks.k.i)N(it[_].ks.k);else for(E=it[_].ks.k.length,g=0;g<E;g+=1)it[_].ks.k[g].s&&N(it[_].ks.k[g].s[0]),it[_].ks.k[g].e&&N(it[_].ks.k[g].e[0]);else it[_].ty==="gr"&&C(it[_].it)}function N(it){var _,P=it.i.length;for(_=0;_<P;_+=1)it.i[_][0]+=it.v[_][0],it.i[_][1]+=it.v[_][1],it.o[_][0]+=it.v[_][0],it.o[_][1]+=it.v[_][1]}function V(it,_){var P=_?_.split("."):[100,100,100];return it[0]>P[0]?!0:P[0]>it[0]?!1:it[1]>P[1]?!0:P[1]>it[1]?!1:it[2]>P[2]?!0:P[2]>it[2]?!1:null}var W=function(){var it=[4,4,14];function _(g){var E=g.t.d;g.t.d={k:[{s:E,t:0}]}}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),X=function(){var it=[4,7,99];return function(_){if(_.chars&&!V(it,_.v)){var P,g=_.chars.length;for(P=0;P<g;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[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"})))}}}}(),ot=function(){var it=[5,7,15];function _(g){var E=g.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(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),At=function(){var it=[4,1,9];function _(g){var E,q=g.length,B,ct;for(E=0;E<q;E+=1)if(g[E].ty==="gr")_(g[E].it);else if(g[E].ty==="fl"||g[E].ty==="st")if(g[E].c.k&&g[E].c.k[0].i)for(ct=g[E].c.k.length,B=0;B<ct;B+=1)g[E].c.k[B].s&&(g[E].c.k[B].s[0]/=255,g[E].c.k[B].s[1]/=255,g[E].c.k[B].s[2]/=255,g[E].c.k[B].s[3]/=255),g[E].c.k[B].e&&(g[E].c.k[B].e[0]/=255,g[E].c.k[B].e[1]/=255,g[E].c.k[B].e[2]/=255,g[E].c.k[B].e[3]/=255);else g[E].c.k[0]/=255,g[E].c.k[1]/=255,g[E].c.k[2]/=255,g[E].c.k[3]/=255}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===4&&_(g[E].shapes)}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),ft=function(){var it=[4,4,18];function _(g){var E,q=g.length,B,ct;for(E=q-1;E>=0;E-=1)if(g[E].ty==="sh")if(g[E].ks.k.i)g[E].ks.k.c=g[E].closed;else for(ct=g[E].ks.k.length,B=0;B<ct;B+=1)g[E].ks.k[B].s&&(g[E].ks.k[B].s[0].c=g[E].closed),g[E].ks.k[B].e&&(g[E].ks.k[B].e[0].c=g[E].closed);else g[E].ty==="gr"&&_(g[E].it)}function P(g){var E,q,B=g.length,ct,gt,St,Bt;for(q=0;q<B;q+=1){if(E=g[q],E.hasMask){var Ut=E.masksProperties;for(gt=Ut.length,ct=0;ct<gt;ct+=1)if(Ut[ct].pt.k.i)Ut[ct].pt.k.c=Ut[ct].cl;else for(Bt=Ut[ct].pt.k.length,St=0;St<Bt;St+=1)Ut[ct].pt.k[St].s&&(Ut[ct].pt.k[St].s[0].c=Ut[ct].cl),Ut[ct].pt.k[St].e&&(Ut[ct].pt.k[St].e[0].c=Ut[ct].cl)}E.ty===4&&_(E.shapes)}}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}();function nt(it){it.__complete||(At(it),W(it),X(it),ot(it),ft(it),G(it.layers,it.assets),L(it.chars,it.assets),it.__complete=!0)}function _t(it){it.t.a.length===0&&"m"in it.t.p}var mt={};return mt.completeData=nt,mt.checkColors=At,mt.checkChars=X,mt.checkPathProperties=ot,mt.checkShapes=ft,mt.completeLayers=G,mt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function G(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&gl(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,C,N){var V,W=new XMLHttpRequest;try{W.responseType="json"}catch{}W.onreadystatechange=function(){if(W.readyState===4)if(W.status===200)V=G(W),C(V);else try{V=G(W),C(V)}catch(X){N&&N(X)}};try{W.open(["G","E","T"].join(""),w,!0)}catch{W.open(["G","E","T"].join(""),T+"/"+w,!0)}W.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.dataManager.completeData(G),p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var D=O.data.animation;p.dataManager.completeData(D),p.postMessage({id:O.data.id,payload:D,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(G){p.postMessage({id:O.data.id,payload:G,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),c.onmessage=function(x){var O=x.data,F=O.id,D=s[F];s[F]=null,O.status==="success"?D.onComplete(O.payload):D.onError&&D.onError()})}function y(x,O){r+=1;var F="processId_"+r;return s[F]={onComplete:x,onError:O},F}function k(x,O,F){I();var D=y(O,F);c.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function M(x,O,F){I();var D=y(O,F);c.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function Y(x,O,F){I();var D=y(O,F);c.postMessage({type:"complete",animation:x,id:D})}return{loadAnimation:k,loadData:M,completeAnimation:Y}}(),dT=function(){var r=function(){var L=v("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 s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function c(L,w,T){var C="";if(L.e)C=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=w+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var w=0,T=setInterval((function(){var C=L.getBBox();(C.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(L){var w=c(L,this.assetsPath,this.path),T=Ct("image");It?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=c(L,this.assetsPath,this.path),T=v("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var C={img:T,assetData:L};return C}function I(L){var w={assetData:L},T=c(L,this.assetsPath,this.path);return Va.loadData(T,(function(C){w.img=C,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function y(L,w){this.imagesLoadedCb=w;var T,C=L.length;for(T=0;T<C;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 Y(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 F(){return this.totalFootages===this.loadedFootagesCount}function D(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function G(){this._imageLoaded=s.bind(this),this._footageLoaded=l.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return G.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:x,getAsset:Y,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:l,setCacheType:D},G}();function Iu(){}Iu.prototype={triggerEvent:function(s,l){if(this._cbs[s])for(var c=this._cbs[s],m=0;m<c.length;m+=1)c[m](l)},addEventListener:function(s,l){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(l),(function(){this.removeEventListener(s,l)}).bind(this)},removeEventListener:function(s,l){if(!l)this._cbs[s]=null;else if(this._cbs[s]){for(var c=0,m=this._cbs[s].length;c<m;)this._cbs[s][c]===l&&(this._cbs[s].splice(c,1),c-=1,m-=1),c+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var cT=function(){function r(s){for(var l=s.split(`\r
2
- `),c={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(c[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return c}return function(s){for(var l=[],c=0;c<s.length;c+=1){var m=s[c],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[c].cm)}catch{try{p.payload=r(s[c].cm)}catch{p.payload={name:s[c].cm}}}l.push(p)}return l}}(),hT=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var c=0,m=this.compositions.length;c<m;){if(this.compositions[c].data&&this.compositions[c].data.nm===l)return this.compositions[c].prepareFrame&&this.compositions[c].data.xt&&this.compositions[c].prepareFrame(this.currentFrame),this.compositions[c].compInterface;c+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),za={},pT=function(s,l){za[s]=l};function mT(r){return za[r]}function uT(){if(za.canvas)return"canvas";for(var r in za)if(za[r])return r;return""}function Ba(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ba=function(l){return typeof l}:Ba=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Ba(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=er(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=aT(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=hT(),this.imagePreloader=new dT,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new _r("drawnFrame",0,0,0),this.expressionsPlugin=fl()};S([Iu],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=mT(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Va.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Va.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Ba(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},c=r.attributes;l.path=c.getNamedItem("data-animation-path")?c.getNamedItem("data-animation-path").value:c.getNamedItem("data-bm-path")?c.getNamedItem("data-bm-path").value:c.getNamedItem("bm-path")?c.getNamedItem("bm-path").value:"",l.animType=c.getNamedItem("data-anim-type")?c.getNamedItem("data-anim-type").value:c.getNamedItem("data-bm-type")?c.getNamedItem("data-bm-type").value:c.getNamedItem("bm-type")?c.getNamedItem("bm-type").value:c.getNamedItem("data-bm-renderer")?c.getNamedItem("data-bm-renderer").value:c.getNamedItem("bm-renderer")?c.getNamedItem("bm-renderer").value:uT()||"canvas";var m=c.getNamedItem("data-anim-loop")?c.getNamedItem("data-anim-loop").value:c.getNamedItem("data-bm-loop")?c.getNamedItem("data-bm-loop").value:c.getNamedItem("bm-loop")?c.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=c.getNamedItem("data-anim-autoplay")?c.getNamedItem("data-anim-autoplay").value:c.getNamedItem("data-bm-autoplay")?c.getNamedItem("data-bm-autoplay").value:c.getNamedItem("bm-autoplay")?c.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=c.getNamedItem("data-name")?c.getNamedItem("data-name").value:c.getNamedItem("data-bm-name")?c.getNamedItem("data-bm-name").value:c.getNamedItem("bm-name")?c.getNamedItem("bm-name").value:"";var b=c.getNamedItem("data-anim-prerender")?c.getNamedItem("data-anim-prerender").value:c.getNamedItem("data-bm-prerender")?c.getNamedItem("data-bm-prerender").value:c.getNamedItem("bm-prerender")?c.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,c=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<c;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(c=r.assets.length,l=0;l<c;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,Va.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=fl();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Va.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=cT(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=fl();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,c=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,c)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(c,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Ba(r[0])==="object"){var l,c=r.length;for(l=0;l<c;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var c=this.renderer.getElementByPath(r);c.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new _r(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new bu(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new ul(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new yu(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Eu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new _r(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new bu(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new ul(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new yu(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Eu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new iT(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new oT(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var be=function(){var r={},s=[],l=0,c=0,m=0,p=!0,b=!1;function I(_){for(var P=0,g=_.target;P<c;)s[P].animation===g&&(s.splice(P,1),P-=1,c-=1,g.isPaused||Y()),P+=1}function y(_,P){if(!_)return null;for(var g=0;g<c;){if(s[g].elem===_&&s[g].elem!==null)return s[g].animation;g+=1}var E=new vt;return x(E,_),E.setData(_,P),E}function k(){var _,P=s.length,g=[];for(_=0;_<P;_+=1)g.push(s[_].animation);return g}function M(){m+=1,At()}function Y(){m-=1}function x(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",Y),s.push({elem:P,animation:_}),c+=1}function O(_){var P=new vt;return x(P,null),P.setParams(_),P}function F(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setSpeed(_,P)}function D(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setDirection(_,P)}function G(_){var P;for(P=0;P<c;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,g;for(g=0;g<c;g+=1)s[g].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<c;P+=1)s[P].animation.pause(_)}function C(_,P,g){var E;for(E=0;E<c;E+=1)s[E].animation.goToAndStop(_,P,g)}function N(_){var P;for(P=0;P<c;P+=1)s[P].animation.stop(_)}function V(_){var P;for(P=0;P<c;P+=1)s[P].animation.togglePause(_)}function W(_){var P;for(P=c-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,g){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),q,B=E.length;for(q=0;q<B;q+=1)g&&E[q].setAttribute("data-bm-type",g),y(E[q],_);if(P&&B===0){g||(g="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=v("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",g),ct.appendChild(gt),y(gt,_)}}function ot(){var _;for(_=0;_<c;_+=1)s[_].animation.resize()}function At(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,At()}function _t(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<c;P+=1)s[P].animation.mute(_)}function it(_){var P;for(P=0;P<c;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=G,r.pause=T,r.stop=N,r.togglePause=V,r.searchAnimations=X,r.resize=ot,r.goToAndStop=C,r.destroy=W,r.freeze=ft,r.unfreeze=nt,r.setVolume=_t,r.mute=mt,r.unmute=it,r.getRegisteredAnimations=k,r}(),Ua=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,V){var W=V||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[W])return s[W];var X=new L([w,T,C,N]);return s[W]=X,X}var c=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function Y(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,C){return((M(T,C)*w+Y(T,C))*w+x(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*Y(T,C)*w+x(T)}function D(w,T,C,N,V){var W,X,ot=0;do X=T+(C-T)/2,W=O(X,N,V)-w,W>0?C=X:T=X;while(Math.abs(W)>p&&++ot<b);return X}function G(w,T,C,N){for(var V=0;V<c;++V){var W=F(T,C,N);if(W===0)return T;var X=O(T,C,N)-w;T-=X/W}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],V=this._p[2],W=this._p[3];return this._precomputed||this._precompute(),C===N&&V===W?T:T===0?0:T===1?1:O(this._getTForX(T),N,W)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],V=this._p[3];this._precomputed=!0,(T!==C||N!==V)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],V=this._mSampleValues,W=0,X=1,ot=I-1;X!==ot&&V[X]<=T;++X)W+=y;--X;var At=(T-V[X])/(V[X+1]-V[X]),ft=W+At*y,nt=F(ft,C,N);return nt>=m?G(T,ft,C,N):nt===0?ft:D(T,W,W+y,C,N)}},r}(),Cu=function(){function r(s){return s.concat(Z(s.length))}return{double:r}}(),bl=function(){return function(r,s,l){var c=0,m=r,p=Z(m),b={newElement:I,release:y};function I(){var k;return c?(c-=1,k=p[c]):k=s(),k}function y(k){c===m&&(p=Cu.double(p),m*=2),l&&l(k),p[c]=k,c+=1}return b}}(),_u=function(){function r(){return{addedLength:0,percents:j("float32",$a()),lengths:j("float32",$a())}}return bl(8,r)}(),wu=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var c,m=l.lengths.length;for(c=0;c<m;c+=1)_u.release(l.lengths[c]);l.lengths.length=0}return bl(8,r,s)}();function fT(){var r=Math;function s(x,O,F,D,G,L){var w=x*D+O*G+F*L-G*D-L*x-F*O;return w>-.001&&w<.001}function l(x,O,F,D,G,L,w,T,C){if(F===0&&L===0&&C===0)return s(x,O,D,G,w,T);var N=r.sqrt(r.pow(D-x,2)+r.pow(G-O,2)+r.pow(L-F,2)),V=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(C-F,2)),W=r.sqrt(r.pow(w-D,2)+r.pow(T-G,2)+r.pow(C-L,2)),X;return N>V?N>W?X=N-V-W:X=W-V-N:W>V?X=W-V-N:X=V-N-W,X>-1e-4&&X<1e-4}var c=function(){return function(x,O,F,D){var G=$a(),L,w,T,C,N,V=0,W,X=[],ot=[],At=_u.newElement();for(T=F.length,L=0;L<G;L+=1){for(N=L/(G-1),W=0,w=0;w<T;w+=1)C=Gt(1-N,3)*x[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,ot[w]!==null&&(W+=Gt(X[w]-ot[w],2)),ot[w]=X[w];W&&(W=Pt(W),V+=W),At.percents[L]=N,At.lengths[L]=V}return At.addedLength=V,At}}();function m(x){var O=wu.newElement(),F=x.c,D=x.v,G=x.o,L=x.i,w,T=x._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=c(D[w],D[w+1],G[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=c(D[w],D[0],G[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function b(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,D,G){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+G[0]+"_"+G[1]).replace(/\./g,"p");if(!x[L]){var w=$a(),T,C,N,V,W,X=0,ot,At,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+G[0],F[1]+G[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(At=Z(N),W=T/(w-1),ot=0,C=0;C<N;C+=1)V=Gt(1-W,3)*O[C]+3*Gt(1-W,2)*W*(O[C]+D[C])+3*(1-W)*Gt(W,2)*(F[C]+G[C])+Gt(W,3)*F[C],At[C]=V,ft!==null&&(ot+=Gt(At[C]-ft[C],2));ot=Pt(ot),X+=ot,nt.points[T]=new b(ot,At),ft=At}nt.segmentLength=X,x[L]=nt}return x[L]}}();function y(x,O){var F=O.percents,D=O.lengths,G=F.length,L=ne((G-1)*x),w=x*O.addedLength,T=0;if(L===G-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=G-1){if(L===G-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(x,O,F,D,G,L){var w=y(G,L),T=1-w,C=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=j("float32",8);function Y(x,O,F,D,G,L,w){G<0?G=0:G>1&&(G=1);var T=y(G,w);L=L>1?1:L;var C=y(L,w),N,V=x.length,W=1-T,X=1-C,ot=W*W*W,At=T*W*W*3,ft=T*T*W*3,nt=T*T*T,_t=W*W*X,mt=T*W*X+W*T*X+W*W*C,it=T*T*X+W*T*C+T*W*C,_=T*T*C,P=W*X*X,g=T*X*X+W*C*X+W*X*C,E=T*C*X+W*C*C+T*X*C,q=T*C*C,B=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,St=C*C*C;for(N=0;N<V;N+=1)M[N*4]=r.round((ot*x[N]+At*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((_t*x[N]+mt*F[N]+it*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*x[N]+g*F[N]+E*D[N]+q*O[N])*1e3)/1e3,M[N*4+3]=r.round((B*x[N]+ct*F[N]+gt*D[N]+St*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:Y,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var ti=fT(),Bo=e,ku=Math.abs;function Nu(r,s){var l=this.offsetTime,c;this.propType==="multidimensional"&&(c=j("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var Y,x,O,F,D,G,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=ti.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[N].point[Y]}else{M.__fnct?G=M.__fnct:(G=Ua.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=G),O=G((r-w)/(L-w));var V=C.segmentLength*O,W,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,V===0||O===0||D===C.points.length-1){for(x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y];break}else if(V>=X&&V<X+C.points[D+1].partialLength){for(W=(V-X)/C.points[D+1].partialLength,x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y]+(C.points[D+1].point[Y]-C.points[D].point[Y])*W;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var ot,At,ft,nt,_t;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)c[0]=T[0],c[1]=T[1],c[2]=T[2];else if(r<=w)c[0]=y.s[0],c[1]=y.s[1],c[2]=y.s[2];else{var mt=Lu(y.s),it=Lu(T),_=(r-w)/(L-w);gT(c,vT(mt,it,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?G=M.__fnct[p]:(ot=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],At=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],G=Ua.getBezierEasing(ot,At,ft,nt).get,M.__fnct[p]=G)):M.__fnct?G=M.__fnct:(ot=y.o.x,At=y.o.y,ft=y.i.x,nt=y.i.y,G=Ua.getBezierEasing(ot,At,ft,nt).get,y.keyframeMetadata=G),O=G((r-w)/(L-w)))),T=k.s||y.e,_t=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?c[p]=_t:c=_t}return s.lastIndex=m,c}function vT(r,s,l){var c=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],Y=s[3],x,O,F,D,G;return O=m*y+p*k+b*M+I*Y,O<0&&(O=-O,y=-y,k=-k,M=-M,Y=-Y),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),D=Math.sin((1-l)*x)/F,G=Math.sin(l*x)/F):(D=1-l,G=l),c[0]=D*m+G*y,c[1]=D*p+G*k,c[2]=D*b+G*M,c[3]=D*I+G*Y,c}function gT(r,s){var l=s[0],c=s[1],m=s[2],p=s[3],b=Math.atan2(2*c*p-2*l*m,1-2*c*c-2*m*m),I=Math.asin(2*l*c+2*m*p),y=Math.atan2(2*l*p-2*c*m,1-2*l*l-2*m*m);r[0]=b/Nt,r[1]=I/Nt,r[2]=y/Nt}function Lu(r){var s=r[0]*Nt,l=r[1]*Nt,c=r[2]*Nt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(c/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(c/2),M=m*p*b-I*y*k,Y=I*y*b+m*p*k,x=I*p*b+m*y*k,O=m*y*b-I*p*k;return[Y,x,O,M]}function Mu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Bo&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var c=this.interpolateValue(r,this._caching);this.pv=c}return this._caching.lastFrame=r,this.pv}function yl(r){var s;if(this.propType==="unidimensional")s=r*this.mult,ku(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,c=this.v.length;l<c;)s=r[l]*this.mult,ku(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function El(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Tl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function bT(r,s,l,c){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=El,this.setVValue=yl,this.addEffect=Tl}function yT(r,s,l,c){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=j("float32",p),this.pv=j("float32",p),this.vel=j("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=El,this.setVValue=yl,this.addEffect=Tl}function ET(r,s,l,c){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Bo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.v=Bo,this.pv=Bo,this._isFirstFrame=!0,this.getValue=El,this.setVValue=yl,this.interpolateValue=Nu,this.effectsSequence=[Mu.bind(this)],this.addEffect=Tl}function TT(r,s,l,c){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&ti.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&ti.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&ti.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&ti.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[Mu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.getValue=El,this.setVValue=yl,this.interpolateValue=Nu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=j("float32",M),this.pv=j("float32",M),m=0;m<M;m+=1)this.v[m]=Bo,this.pv[m]=Bo;this._caching={lastFrame:Bo,lastIndex:0,value:j("float32",M)},this.addEffect=Tl}var dt=function(){function r(l,c,m,p,b){c.sid&&(c=l.globalData.slotManager.getProp(c));var I;if(!c.k.length)I=new bT(l,c,p,b);else if(typeof c.k[0]=="number")I=new yT(l,c,p,b);else switch(m){case 0:I=new ET(l,c,p,b);break;case 1:I=new TT(l,c,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Uo=function(){function r(){return j("float32",2)}return bl(8,r)}();function _i(){this.c=!1,this._length=0,this._maxLength=8,this.v=Z(this._maxLength),this.o=Z(this._maxLength),this.i=Z(this._maxLength)}_i.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=Uo.newElement(),this.o[l]=Uo.newElement(),this.i[l]=Uo.newElement(),l+=1},_i.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},_i.prototype.doubleArrayLength=function(){this.v=this.v.concat(Z(this._maxLength)),this.i=this.i.concat(Z(this._maxLength)),this.o=this.o.concat(Z(this._maxLength)),this._maxLength*=2},_i.prototype.setXYAt=function(r,s,l,c,m){var p;switch(this._length=Math.max(this._length,c+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[c]||p[c]&&!m)&&(p[c]=Uo.newElement()),p[c][0]=r,p[c][1]=s},_i.prototype.setTripleAt=function(r,s,l,c,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,c,"o",b,I),this.setXYAt(m,p,"i",b,I)},_i.prototype.reverse=function(){var r=new _i;r.setPathData(this.c,this._length);var s=this.v,l=this.o,c=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],c[0][0],c[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],c[p][0],c[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},_i.prototype.length=function(){return this._length};var De=function(){function r(){return new _i}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)Uo.release(m.v[b]),Uo.release(m.i[b]),Uo.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=c.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var c=bl(4,r,s);return c.clone=l,c}();function rh(){this._length=0,this._maxLength=4,this.shapes=Z(this._maxLength)}rh.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Z(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},rh.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ds=function(){var r={newShapeCollection:m,release:p},s=0,l=4,c=Z(l);function m(){var b;return s?(s-=1,b=c[s]):b=new rh,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(c=Cu.double(c),l*=2),c[s]=b,s+=1}return r}(),xl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,V,W,X,ot,At,ft,nt,_t,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],W=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],W=!0;else{for(var it=C,_=mt.length-1,P=!0,g,E,q;P&&(g=mt[it],E=mt[it+1],!(E.t-this.offsetTime>L));)it<_-1?it+=1:P=!1;if(q=this.keyframesMetadata[it]||{},W=g.h===1,C=it,!W){if(L>=E.t-this.offsetTime)nt=1;else if(L<g.t-this.offsetTime)nt=0;else{var B;q.__fnct?B=q.__fnct:(B=Ua.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,q.__fnct=B),nt=B((L-(g.t-this.offsetTime))/(E.t-this.offsetTime-(g.t-this.offsetTime)))}V=E.s?E.s[0]:g.e[0]}N=g.s[0]}for(At=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<At;X+=1)for(ot=0;ot<ft;ot+=1)_t=W?N.i[X][ot]:N.i[X][ot]+(V.i[X][ot]-N.i[X][ot])*nt,w.i[X][ot]=_t,_t=W?N.o[X][ot]:N.o[X][ot]+(V.o[X][ot]-N.o[X][ot])*nt,w.o[X][ot]=_t,_t=W?N.v[X][ot]:N.v[X][ot]+(V.v[X][ot]-N.v[X][ot])*nt,w.v[X][ot]=_t}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function c(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;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 p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){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 I(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 C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=c,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;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 C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=c,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=se;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=dt.getProp(T,C.p,1,0,this),this.s=dt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],V=this.s.v[0]/2,W=this.s.v[1]/2,X=this.d!==3,ot=this.v;ot.v[0][0]=C,ot.v[0][1]=N-W,ot.v[1][0]=X?C+V:C-V,ot.v[1][1]=N,ot.v[2][0]=C,ot.v[2][1]=N+W,ot.v[3][0]=X?C-V:C+V,ot.v[3][1]=N,ot.i[0][0]=X?C-V*L:C+V*L,ot.i[0][1]=N-W,ot.i[1][0]=X?C+V:C-V,ot.i[1][1]=N-W*L,ot.i[2][0]=X?C+V*L:C-V*L,ot.i[2][1]=N+W,ot.i[3][0]=X?C-V:C+V,ot.i[3][1]=N+W*L,ot.o[0][0]=X?C+V*L:C-V*L,ot.o[0][1]=N-W,ot.o[1][0]=X?C+V:C-V,ot.o[1][1]=N+W*L,ot.o[2][0]=X?C-V*L:C+V*L,ot.o[2][1]=N+W,ot.o[3][0]=X?C-V:C+V,ot.o[3][1]=N-W*L}},S([Ne],w),w}(),Y=function(){function L(w,T){this.v=De.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=dt.getProp(w,T.ir,0,0,this),this.is=dt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=dt.getProp(w,T.pt,0,0,this),this.p=dt.getProp(w,T.p,1,0,this),this.r=dt.getProp(w,T.r,0,Nt,this),this.or=dt.getProp(w,T.or,0,0,this),this.os=dt.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:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,V=this.or.v,W=this.ir.v,X=this.os.v,ot=this.is.v,At=2*Math.PI*V/(T*2),ft=2*Math.PI*W/(T*2),nt,_t,mt,it,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){_t=N?V:W,mt=N?X:ot,it=N?At:ft;var g=_t*Math.cos(_),E=_t*Math.sin(_),q=g===0&&E===0?0:E/Math.sqrt(g*g+E*E),B=g===0&&E===0?0:-g/Math.sqrt(g*g+E*E);g+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(g,E,g-q*it*mt*P,E-B*it*mt*P,g+q*it*mt*P,E+B*it*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,V=this.os.v,W=2*Math.PI*N/(T*4),X,ot=-Math.PI*.5,At=this.data.d===3?-1:1;for(ot+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(ot),nt=N*Math.sin(ot),_t=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-_t*W*V*At,nt-mt*W*V*At,ft+_t*W*V*At,nt+mt*W*V*At,X,!0),ot+=C*At}this.paths.length=0,this.paths[0]=this.v}},S([Ne],L),L}(),x=function(){function L(w,T){this.v=De.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=dt.getProp(w,T.p,1,0,this),this.s=dt.getProp(w,T.s,1,0,this),this.r=dt.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],C=this.p.v[1],N=this.s.v[0]/2,V=this.s.v[1]/2,W=qt(N,V,this.r.v),X=W*(1-se);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-V+W,T+N,C-V+W,T+N,C-V+X,0,!0),this.v.setTripleAt(T+N,C+V-W,T+N,C+V-X,T+N,C+V-W,1,!0),W!==0?(this.v.setTripleAt(T+N-W,C+V,T+N-W,C+V,T+N-X,C+V,2,!0),this.v.setTripleAt(T-N+W,C+V,T-N+X,C+V,T-N+W,C+V,3,!0),this.v.setTripleAt(T-N,C+V-W,T-N,C+V-W,T-N,C+V-X,4,!0),this.v.setTripleAt(T-N,C-V+W,T-N,C-V+X,T-N,C-V+W,5,!0),this.v.setTripleAt(T-N+W,C-V,T-N+W,C-V,T-N+X,C-V,6,!0),this.v.setTripleAt(T+N-W,C-V,T+N-X,C-V,T+N-W,C-V,7,!0)):(this.v.setTripleAt(T-N,C+V,T-N+X,C+V,T-N,C+V,2),this.v.setTripleAt(T-N,C-V,T-N,C-V+X,T-N,C-V,3))):(this.v.setTripleAt(T+N,C-V+W,T+N,C-V+X,T+N,C-V+W,0,!0),W!==0?(this.v.setTripleAt(T+N-W,C-V,T+N-W,C-V,T+N-X,C-V,1,!0),this.v.setTripleAt(T-N+W,C-V,T-N+X,C-V,T-N+W,C-V,2,!0),this.v.setTripleAt(T-N,C-V+W,T-N,C-V+W,T-N,C-V+X,3,!0),this.v.setTripleAt(T-N,C+V-W,T-N,C+V-X,T-N,C+V-W,4,!0),this.v.setTripleAt(T-N+W,C+V,T-N+W,C+V,T-N+X,C+V,5,!0),this.v.setTripleAt(T+N-W,C+V,T+N-X,C+V,T+N-W,C+V,6,!0),this.v.setTripleAt(T+N,C+V-W,T+N,C+V-W,T+N,C+V-X,7,!0)):(this.v.setTripleAt(T-N,C-V,T-N+X,C-V,T-N,C-V,1,!0),this.v.setTripleAt(T-N,C+V,T-N,C+V-X,T-N,C+V,2,!0),this.v.setTripleAt(T+N,C+V,T+N-X,C+V,T+N,C+V,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:c},S([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,V=N.k;V.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new x(L,w):T===6?C=new M(L,w):T===7&&(C=new Y(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var G={};return G.getShapeProp=O,G.getConstructorFunction=F,G.getKeyframedConstructorFunction=D,G}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,c=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function b(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(1,0,0,0,0,E,-q,0,0,q,E,0,0,0,0,1)}function I(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,0,q,0,0,1,0,0,-q,0,E,0,0,0,0,1)}function y(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function k(g,E){return this._t(1,E,g,1,0,0)}function M(g,E){return this.shear(l(g),l(E))}function Y(g,E){var q=r(E),B=s(E);return this._t(q,B,0,0,-B,q,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(g),1,0,0,0,0,1,0,0,0,0,1)._t(q,-B,0,0,B,q,0,0,0,0,1,0,0,0,0,1)}function x(g,E,q){return!q&&q!==0&&(q=1),g===1&&E===1&&q===1?this:this._t(g,0,0,0,0,E,0,0,0,0,q,0,0,0,0,1)}function O(g,E,q,B,ct,gt,St,Bt,Ut,ye,ir,ri,or,Le,yr,Yt){return this.props[0]=g,this.props[1]=E,this.props[2]=q,this.props[3]=B,this.props[4]=ct,this.props[5]=gt,this.props[6]=St,this.props[7]=Bt,this.props[8]=Ut,this.props[9]=ye,this.props[10]=ir,this.props[11]=ri,this.props[12]=or,this.props[13]=Le,this.props[14]=yr,this.props[15]=Yt,this}function F(g,E,q){return q=q||0,g!==0||E!==0||q!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,g,E,q,1):this}function D(g,E,q,B,ct,gt,St,Bt,Ut,ye,ir,ri,or,Le,yr,Yt){var ut=this.props;if(g===1&&E===0&&q===0&&B===0&&ct===0&&gt===1&&St===0&&Bt===0&&Ut===0&&ye===0&&ir===1&&ri===0)return ut[12]=ut[12]*g+ut[15]*or,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*ir+ut[15]*yr,ut[15]*=Yt,this._identityCalculated=!1,this;var Ni=ut[0],lo=ut[1],Li=ut[2],ii=ut[3],Mi=ut[4],Oi=ut[5],sr=ut[6],co=ut[7],ho=ut[8],zr=ut[9],po=ut[10],Br=ut[11],Wo=ut[12],Ll=ut[13],Ml=ut[14],Ol=ut[15];return ut[0]=Ni*g+lo*ct+Li*Ut+ii*or,ut[1]=Ni*E+lo*gt+Li*ye+ii*Le,ut[2]=Ni*q+lo*St+Li*ir+ii*yr,ut[3]=Ni*B+lo*Bt+Li*ri+ii*Yt,ut[4]=Mi*g+Oi*ct+sr*Ut+co*or,ut[5]=Mi*E+Oi*gt+sr*ye+co*Le,ut[6]=Mi*q+Oi*St+sr*ir+co*yr,ut[7]=Mi*B+Oi*Bt+sr*ri+co*Yt,ut[8]=ho*g+zr*ct+po*Ut+Br*or,ut[9]=ho*E+zr*gt+po*ye+Br*Le,ut[10]=ho*q+zr*St+po*ir+Br*yr,ut[11]=ho*B+zr*Bt+po*ri+Br*Yt,ut[12]=Wo*g+Ll*ct+Ml*Ut+Ol*or,ut[13]=Wo*E+Ll*gt+Ml*ye+Ol*Le,ut[14]=Wo*q+Ll*St+Ml*ir+Ol*yr,ut[15]=Wo*B+Ll*Bt+Ml*ri+Ol*Yt,this._identityCalculated=!1,this}function G(g){var E=g.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(g){for(var E=0;E<16;){if(g.props[E]!==this.props[E])return!1;E+=1}return!0}function T(g){var E;for(E=0;E<16;E+=1)g.props[E]=this.props[E];return g}function C(g){var E;for(E=0;E<16;E+=1)this.props[E]=g[E]}function N(g,E,q){return{x:g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],y:g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],z:g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}}function V(g,E,q){return g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12]}function W(g,E,q){return g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13]}function X(g,E,q){return g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}function ot(){var g=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/g,q=-this.props[1]/g,B=-this.props[4]/g,ct=this.props[0]/g,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/g,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/g,Bt=new Pe;return Bt.props[0]=E,Bt.props[1]=q,Bt.props[4]=B,Bt.props[5]=ct,Bt.props[12]=gt,Bt.props[13]=St,Bt}function At(g){var E=this.getInverseMatrix();return E.applyToPointArray(g[0],g[1],g[2]||0)}function ft(g){var E,q=g.length,B=[];for(E=0;E<q;E+=1)B[E]=At(g[E]);return B}function nt(g,E,q){var B=j("float32",6);if(this.isIdentity())B[0]=g[0],B[1]=g[1],B[2]=E[0],B[3]=E[1],B[4]=q[0],B[5]=q[1];else{var ct=this.props[0],gt=this.props[1],St=this.props[4],Bt=this.props[5],Ut=this.props[12],ye=this.props[13];B[0]=g[0]*ct+g[1]*St+Ut,B[1]=g[0]*gt+g[1]*Bt+ye,B[2]=E[0]*ct+E[1]*St+Ut,B[3]=E[0]*gt+E[1]*Bt+ye,B[4]=q[0]*ct+q[1]*St+Ut,B[5]=q[0]*gt+q[1]*Bt+ye}return B}function _t(g,E,q){var B;return this.isIdentity()?B=[g,E,q]:B=[g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]],B}function mt(g,E){if(this.isIdentity())return g+","+E;var q=this.props;return Math.round((g*q[0]+E*q[4]+q[12])*100)/100+","+Math.round((g*q[1]+E*q[5]+q[13])*100)/100}function it(){for(var g=0,E=this.props,q="matrix3d(",B=1e4;g<16;)q+=c(E[g]*B)/B,q+=g===15?")":",",g+=1;return q}function _(g){var E=1e4;return g<1e-6&&g>0||g>-1e-6&&g<0?c(g*E)/E:g}function P(){var g=this.props,E=_(g[0]),q=_(g[1]),B=_(g[4]),ct=_(g[5]),gt=_(g[12]),St=_(g[13]);return"matrix("+E+","+q+","+B+","+ct+","+gt+","+St+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=Y,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=G,this.applyToPoint=N,this.applyToX=V,this.applyToY=W,this.applyToZ=X,this.applyToPointArray=_t,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=it,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=At,this.getInverseMatrix=ot,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=j("float32",16),this.reset()}}();function Al(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Al=function(l){return typeof l}:Al=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Al(r)}var Wt={},Sl="__[STANDALONE]__",Ou="__[ANIMATIONDATA]__",Ru="";function xT(r){d(r)}function Du(){Sl===!0?be.searchAnimations(Ou,Sl,Ru):be.searchAnimations()}function AT(r){sT(r)}function ST(r){lT(r)}function IT(r){return Sl===!0&&(r.animationData=JSON.parse(Ou)),be.loadAnimation(r)}function CT(r){if(typeof r=="string")switch(r){case"high":vl(200);break;default:case"medium":vl(50);break;case"low":vl(10);break}else!isNaN(r)&&r>1&&vl(r);$a()>=50?Ke(!1):Ke(!0)}function _T(){return typeof navigator<"u"}function wT(r,s){r==="expressions"&&nT(s)}function kT(r){switch(r){case"propertyFactory":return dt;case"shapePropertyFactory":return xl;case"matrix":return Pe;default:return null}}Wt.play=be.play,Wt.pause=be.pause,Wt.setLocationHref=xT,Wt.togglePause=be.togglePause,Wt.setSpeed=be.setSpeed,Wt.setDirection=be.setDirection,Wt.stop=be.stop,Wt.searchAnimations=Du,Wt.registerAnimation=be.registerAnimation,Wt.loadAnimation=IT,Wt.setSubframeRendering=AT,Wt.resize=be.resize,Wt.goToAndStop=be.goToAndStop,Wt.destroy=be.destroy,Wt.setQuality=CT,Wt.inBrowser=_T,Wt.installPlugin=wT,Wt.freeze=be.freeze,Wt.unfreeze=be.unfreeze,Wt.setVolume=be.setVolume,Wt.mute=be.mute,Wt.unmute=be.unmute,Wt.getRegisteredAnimations=be.getRegisteredAnimations,Wt.useWebWorker=i,Wt.setIDPrefix=ST,Wt.__getFactory=kT,Wt.version="5.12.2";function NT(){document.readyState==="complete"&&(clearInterval(OT),Du())}function LT(r){for(var s=Pu.split("&"),l=0;l<s.length;l+=1){var c=s[l].split("=");if(decodeURIComponent(c[0])==r)return decodeURIComponent(c[1])}return null}var Pu="";if(Sl){var Fu=document.getElementsByTagName("script"),MT=Fu.length-1,$u=Fu[MT]||{src:""};Pu=$u.src?$u.src.replace(/^[^\?]+\??/,""):"",Ru=LT("renderer")}var OT=setInterval(NT,100);try{!((typeof Tn>"u"?"undefined":Al(Tn))==="object"&&typeof ld<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Wt)}catch{}var ro=function(){var r={},s={};r.registerModifier=l,r.getModifier=c;function l(m,p){s[m]||(s[m]=p)}function c(m,p,b){return new s[m](p,b)}return r}();function wr(){}wr.prototype.initModifierProperties=function(){},wr.prototype.addShapeToModifier=function(){},wr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ds.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},wr.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},wr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},S([Ne],wr);function Vr(){}S([wr],Vr),Vr.prototype.initModifierProperties=function(r,s){this.s=dt.getProp(r,s.s,0,.01,this),this.e=dt.getProp(r,s.e,0,.01,this),this.o=dt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Vr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Vr.prototype.calculateShapeEdges=function(r,s,l,c,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<c||k.s*m>c+l)){var M,Y;k.s*m<=c?M=0:M=(k.s*m-c)/l,k.e*m>=c+l?Y=1:Y=(k.e*m-c)/l,b.push([M,Y])}return b.length||b.push([0,0]),b},Vr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)wu.release(r[s]);return r.length=0,r},Vr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var c=this.o.v%360/360;if(c<0&&(c+=1),this.s.v>1?s=1+c:this.s.v<0?s=0+c:s=this.s.v+c,this.e.v>1?l=1+c:this.e.v<0?l=0+c:l=this.e.v+c,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,Y,x,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,G;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,x=0,!D.shape._mdf&&D.pathsData.length)x=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)Y=ti.getSegmentsLength(p.shapes[y]),M.push(Y),x+=Y.totalLength;D.totalShapeLength=x,D.pathsData=M}O+=x,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(G=D.localShapeCollection,G.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var V=D.shape.paths.shapes[D.shape.paths._length-1];if(V.c){var W=N.pop();this.addPaths(N,G),N=this.addShapes(D,F[1],W)}else this.addPaths(N,G),N=this.addShapes(D,F[1])}this.addPaths(N,G)}}D.shape.paths=G}}},Vr.prototype.addPaths=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)s.addShape(r[l])},Vr.prototype.addSegment=function(r,s,l,c,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(c[0],c[1],"v",p+1)},Vr.prototype.addSegmentFromArray=function(r,s,l,c){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),c&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Vr.prototype.addShapes=function(r,s,l){var c=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,Y,x,O,F=[],D,G=!0;for(l?(Y=l._length,D=l._length):(l=De.newElement(),Y=0,D=0),F.push(l),p=0;p<b;p+=1){for(x=c[p].lengths,l.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,Y,G),G=!1):(O=ti.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,l,Y,G),G=!1,l.c=!1),k+=M.addedLength,Y+=1;if(m[p].c&&x.length){if(M=x[I-1],k<=s.e){var L=x[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,Y,G),G=!1):(O=ti.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,x[I-1]),this.addSegmentFromArray(O,l,Y,G),G=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,Y+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),G=!0,F.push(l),Y=0)}return F};function Ha(){}S([wr],Ha),Ha.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=dt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ha.prototype.processPath=function(r,s){var l=s/100,c=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)c[0]+=r.v[p][0],c[1]+=r.v[p][1];c[0]/=m,c[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,Y,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(c[0]-r.v[p][0])*l,y=r.v[p][1]+(c[1]-r.v[p][1])*l,k=r.o[p][0]+(c[0]-r.o[p][0])*-l,M=r.o[p][1]+(c[1]-r.o[p][1])*-l,Y=r.i[p][0]+(c[0]-r.i[p][0])*-l,x=r.i[p][1]+(c[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,Y,x,p);return b},Ha.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var ih=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.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?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){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,Y;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),Y=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),Y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,Y=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=[],Y=[];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),Y[0]=x.getValueAtTime(x.keyframes[0].t/k,0),Y[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),Y[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),Y[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],Y[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),Y[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else Y=r,M=Y;this.v.rotate(-Math.atan2(M[1]-Y[1],M[0]-Y[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 c(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=dt.getProp(y,k.p.x,0,0,this),this.py=dt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=dt.getProp(y,k.p.z,0,0,this))):this.p=dt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=dt.getProp(y,k.rx,0,Nt,this),this.ry=dt.getProp(y,k.ry,0,Nt,this),this.rz=dt.getProp(y,k.rz,0,Nt,this),k.or.k[0].ti){var Y,x=k.or.k.length;for(Y=0;Y<x;Y+=1)k.or.k[Y].to=null,k.or.k[Y].ti=null}this.or=dt.getProp(y,k.or,1,Nt,this),this.or.sh=!0}else this.r=dt.getProp(y,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=dt.getProp(y,k.sk,0,Nt,this),this.sa=dt.getProp(y,k.sa,0,Nt,this)),this.a=dt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=dt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=dt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:c,autoOrient:m},S([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function ei(){}S([wr],ei),ei.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=dt.getProp(r,s.c,0,null,this),this.o=dt.getProp(r,s.o,0,null,this),this.tr=ih.getTransformProperty(r,s.tr,this),this.so=dt.getProp(r,s.tr.so,0,.01,this),this.eo=dt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},ei.prototype.applyTransforms=function(r,s,l,c,m,p){var b=p?-1:1,I=c.s.v[0]+(1-c.s.v[0])*(1-m),y=c.s.v[1]+(1-c.s.v[1])*(1-m);r.translate(c.p.v[0]*b*m,c.p.v[1]*b*m,c.p.v[2]),s.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),s.rotate(-c.r.v*b*m),s.translate(c.a.v[0],c.a.v[1],c.a.v[2]),l.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(c.a.v[0],c.a.v[1],c.a.v[2])},ei.prototype.init=function(r,s,l,c){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=c,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ei.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},ei.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},ei.prototype.changeGroupRender=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},ei.prototype.processShapes=function(r){var s,l,c,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.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,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(c=0;c<=this._groups.length-1;c+=1){if(k=p<I,this._groups[c]._render=k,this.changeGroupRender(this._groups[c].it,k),!k){var M=this.elemsData[c].it,Y=M[M.length-1];Y.transform.op.v!==0?(Y.transform.op._mdf=!0,Y.transform.op.v=0):Y.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),D=this.pMatrix.props,G=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<F;)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>F;)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)}c=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(c/(this._currentCopies-1)),w!==0){for((c!==0&&m===1||c!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[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(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,c+=m}}else for(p=this._currentCopies,c=0,m=1;p;)s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,c+=m;return b},ei.prototype.addShape=function(){};function Ga(){}S([wr],Ga),Ga.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=dt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ga.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var c,m=r._length,p,b,I,y,k,M,Y=0,x,O,F,D,G,L;for(c=0;c<m;c+=1)p=r.v[c],I=r.o[c],b=r.i[c],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(c===0||c===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],Y),Y+=1):(c===0?y=r.v[m-1]:y=r.v[c-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,G=p[0]+(y[0]-p[0])*M,x=G,L=p[1]-(p[1]-y[1])*M,O=L,F=x-(x-p[0])*se,D=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,G,L,Y),Y+=1,c===m-1?y=r.v[0]:y=r.v[c+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,F=p[0]+(y[0]-p[0])*M,x=F,D=p[1]+(y[1]-p[1])*M,O=D,G=x-(x-p[0])*se,L=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,G,L,Y),Y+=1):(l.setTripleAt(r.v[c][0],r.v[c][1],r.o[c][0],r.o[c][1],r.i[c][0],r.i[c][1],Y),Y+=1);return l},Ga.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Il(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function oh(r){return Math.abs(r)<=1e-5}function Vu(r,s,l){return r*(1-l)+s*l}function io(r,s,l){return[Vu(r[0],s[0],l),Vu(r[1],s[1],l)]}function RT(r,s,l){if(r===0)return[];var c=s*s-4*r*l;if(c<0)return[];var m=-s/(2*r);if(c===0)return[m];var p=Math.sqrt(c)/(2*r);return[m-p,m+p]}function zu(r,s,l,c){return[-r+3*s-3*l+c,3*r-6*s+3*l,-3*r+3*s,r]}function Bu(r){return new de(r,r,r,r,!1)}function de(r,s,l,c,m){m&&Fs(r,s)&&(s=io(r,c,1/3)),m&&Fs(l,c)&&(l=io(r,c,2/3));var p=zu(r[0],s[0],l[0],c[0]),b=zu(r[1],s[1],l[1],c[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,c]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(oh(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var c=Math.sqrt(l);return oh(c)?c>0&&c<1?[s]:[]:[s-c,s+c].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[Bu(this.points[0]),this];if(r>=1)return[this,Bu(this.points[this.points.length-1])];var s=io(this.points[0],this.points[1],r),l=io(this.points[1],this.points[2],r),c=io(this.points[2],this.points[3],r),m=io(s,l,r),p=io(l,c,r),b=io(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,c,this.points[3],!0)]};function Uu(r,s){var l=r.points[0][s],c=r.points[r.points.length-1][s];if(l>c){var m=c;c=l,l=m}for(var p=RT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>c&&(c=I)}return{min:l,max:c}}de.prototype.bounds=function(){return{x:Uu(this,0),y:Uu(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function Cl(r,s,l){var c=r.boundingBox();return{cx:c.cx,cy:c.cy,width:c.width,height:c.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Hu(r){var s=r.bez.split(.5);return[Cl(s[0],r.t1,r.t),Cl(s[1],r.t,r.t2)]}function DT(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Ka(r,s,l,c,m,p){if(DT(r,s)){if(l>=p||r.width<=c&&r.height<=c&&s.width<=c&&s.height<=c){m.push([r.t,s.t]);return}var b=Hu(r),I=Hu(s);Ka(b[0],I[0],l+1,c,m,p),Ka(b[0],I[1],l+1,c,m,p),Ka(b[1],I[0],l+1,c,m,p),Ka(b[1],I[1],l+1,c,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var c=[];return Ka(Cl(this,0,1),Cl(r,0,1),0,s,c,l),c},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function sh(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function _l(r,s,l,c){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[c[0],c[1],1],y=sh(sh(m,p),sh(b,I));return oh(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Ps(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function ah(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Fs(r,s){return Il(r[0],s[0])&&Il(r[1],s[1])}function Wa(){}S([wr],Wa),Wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=dt.getProp(r,s.s,0,null,this),this.frequency=dt.getProp(r,s.r,0,null,this),this.pointsType=dt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Gu(r,s,l,c,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*c*m,M=s[1]-Math.sin(l)*c*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function PT(r,s){var l=[s[0]-r[0],s[1]-r[1]],c=-Math.PI*.5,m=[Math.cos(c)*l[0]-Math.sin(c)*l[1],Math.sin(c)*l[0]+Math.cos(c)*l[1]];return m}function FT(r,s){var l=s===0?r.length()-1:s-1,c=(s+1)%r.length(),m=r.v[l],p=r.v[c],b=PT(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Ku(r,s,l,c,m,p,b){var I=FT(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],Y=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Gu(r,s.v[l%s._length],I,b,c,x/((m+1)*2),Y/((m+1)*2),p)}function $T(r,s,l,c,m,p){for(var b=0;b<c;b+=1){var I=(b+1)/(c+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);Gu(r,M,k,p,l,y/((c+1)*2),y/((c+1)*2),m),p=-p}return p}Wa.prototype.processPath=function(r,s,l,c){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Ku(p,r,0,s,l,c,b);for(var y=0;y<m;y+=1)b=$T(p,I,s,l,c,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Ku(p,r,y+1,s,l,c,b);return p},Wa.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nh(r,s,l){var c=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Ps(r,c,l),Ps(s,c,l)]}function $s(r,s){var l,c,m,p,b,I,y;y=nh(r.points[0],r.points[1],s),l=y[0],c=y[1],y=nh(r.points[1],r.points[2],s),m=y[0],p=y[1],y=nh(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=_l(l,c,m,p);k===null&&(k=c);var M=_l(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function Wu(r,s,l,c,m){var p=s.points[3],b=l.points[0];if(c===3||Fs(p,b))return p;if(c===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=_l(p,Ps(p,I+Math.PI/2,100),b,Ps(b,I+Math.PI/2,100)),M=k?ah(k,p):ah(p,b)/2,Y=Ps(p,I,2*M*se);return r.setXYAt(Y[0],Y[1],"o",r.length()-1),Y=Ps(b,y,2*M*se),r.setTripleAt(b[0],b[1],b[0],b[1],Y[0],Y[1],r.length()),b}var x=Fs(p,s.points[2])?s.points[0]:s.points[2],O=Fs(b,l.points[1])?l.points[3]:l.points[1],F=_l(x,p,b,O);return F&&ah(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function Yu(r,s){var l=r.intersections(s);return l.length&&Il(l[0][0],1)&&l.shift(),l.length?l[0]:null}function ju(r,s){var l=r.slice(),c=s.slice(),m=Yu(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],c[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Yu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,c]}function VT(r){for(var s,l=1;l<r.length;l+=1)s=ju(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=ju(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function qu(r,s){var l=r.inflectionPoints(),c,m,p,b;if(l.length===0)return[$s(r,s)];if(l.length===1||Il(l[1],1))return p=r.split(l[0]),c=p[0],m=p[1],[$s(c,s),$s(m,s)];p=r.split(l[0]),c=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[$s(c,s),$s(b,s),$s(m,s)]}function Ya(){}S([wr],Ya),Ya.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=dt.getProp(r,s.a,0,null,this),this.miterLimit=dt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ya.prototype.processPath=function(r,s,l,c){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(qu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(qu(y,s));k=VT(k);var M=null,Y=null;for(b=0;b<k.length;b+=1){var x=k[b];for(Y&&(M=Wu(m,Y,x[0],l,c)),Y=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&Fs(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&Wu(m,Y,k[0][0],l,c),m},Ya.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Xu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",c="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":c="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:c,weight:r.fWeight||l}}var Ho=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.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 c=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,Y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var P=_.split(","),g,E=P.length,q=[];for(g=0;g<E;g+=1)P[g]!=="sans-serif"&&P[g]!=="monospace"&&q.push(P[g]);return q.join(",")}function O(_,P){var g=v("span");g.setAttribute("aria-hidden",!0),g.style.fontFamily=P;var E=v("span");E.innerText="giItT1WQy@!-/#",g.style.position="absolute",g.style.left="-10000px",g.style.top="-10000px",g.style.fontSize="300px",g.style.fontVariant="normal",g.style.fontStyle="normal",g.style.fontWeight="normal",g.style.letterSpacing="0",g.appendChild(E),document.body.appendChild(g);var q=E.offsetWidth;return E.style.fontFamily=x(_)+", "+P,{node:E,w:q,parent:g}}function F(){var _,P=this.fonts.length,g,E,q=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?q-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(g=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,g.offsetWidth!==E?(q-=1,this.fonts[_].loaded=!0):(g=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,g.offsetWidth!==E&&(q-=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)));q!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var g=document.body&&P?"svg":"canvas",E,q=Xu(_);if(g==="svg"){var B=Ct("text");B.style.fontSize="100px",B.setAttribute("font-family",_.fFamily),B.setAttribute("font-style",q.style),B.setAttribute("font-weight",q.weight),B.textContent="1",_.fClass?(B.style.fontFamily="inherit",B.setAttribute("class",_.fClass)):B.style.fontFamily=_.fFamily,P.appendChild(B),E=B}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=q.style+" "+q.weight+" 100px "+_.fFamily,E=ct}function gt(St){return g==="svg"?(E.textContent=St,E.getComputedTextLength()):E.measureText(St).width}return{measureText:gt}}function G(_,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(ir){ir.helper=D(ir),ir.cache={}}),this.fonts=_.list;return}var g=_.list,E,q=g.length,B=q;for(E=0;E<q;E+=1){var ct=!0,gt,St;if(g[E].loaded=!1,g[E].monoCase=O(g[E].fFamily,"monospace"),g[E].sansCase=O(g[E].fFamily,"sans-serif"),!g[E].fPath)g[E].loaded=!0,B-=1;else if(g[E].fOrigin==="p"||g[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+g[E].fFamily+'"], style[f-origin="3"][f-family="'+g[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Bt=v("style");Bt.setAttribute("f-forigin",g[E].fOrigin),Bt.setAttribute("f-origin",g[E].origin),Bt.setAttribute("f-family",g[E].fFamily),Bt.type="text/css",Bt.innerText="@font-face {font-family: "+g[E].fFamily+"; font-style: normal; src: url('"+g[E].fPath+"');}",P.appendChild(Bt)}}else if(g[E].fOrigin==="g"||g[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),St=0;St<gt.length;St+=1)gt[St].href.indexOf(g[E].fPath)!==-1&&(ct=!1);if(ct){var Ut=v("link");Ut.setAttribute("f-forigin",g[E].fOrigin),Ut.setAttribute("f-origin",g[E].origin),Ut.type="text/css",Ut.rel="stylesheet",Ut.href=g[E].fPath,document.body.appendChild(Ut)}}else if(g[E].fOrigin==="t"||g[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),St=0;St<gt.length;St+=1)g[E].fPath===gt[St].src&&(ct=!1);if(ct){var ye=v("link");ye.setAttribute("f-forigin",g[E].fOrigin),ye.setAttribute("f-origin",g[E].origin),ye.setAttribute("rel","stylesheet"),ye.setAttribute("href",g[E].fPath),P.appendChild(ye)}}g[E].helper=D(g[E],P),g[E].cache={},this.fonts.push(g[E])}B===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,g=_.length,E,q=this.chars.length,B;for(P=0;P<g;P+=1){for(E=0,B=!1;E<q;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(B=!0),E+=1;B||(this.chars.push(_[P]),q+=1)}}}function w(_,P,g){for(var E=0,q=this.chars.length;E<q;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===g)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,g)),s}function T(_,P,g){var E=this.getFontByName(P),q=_;if(!E.cache[q]){var B=E.helper;if(_===" "){var ct=B.measureText("|"+_+"|"),gt=B.measureText("||");E.cache[q]=(ct-gt)/100}else E.cache[q]=B.measureText(_)/100}return E.cache[q]*g}function C(_){for(var P=0,g=this.fonts.length;P<g;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,g=_.charCodeAt(0);if(g>=55296&&g<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(g-55296)*1024+E-56320+65536)}return P}function V(_,P){var g=_.toString(16)+P.toString(16);return Y.indexOf(g)!==-1}function W(_){return _===y}function X(_){return _===I}function ot(_){var P=N(_);return P>=k&&P<=M}function At(_){return ot(_.substr(0,2))&&ot(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var g=N(_.substr(P,2));if(g!==c)return!1;var E=0;for(P+=2;E<5;){if(g=N(_.substr(P,2)),g<p||g>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function _t(){this.isLoaded=!0}var mt=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)};mt.isModifier=V,mt.isZeroWidthJoiner=W,mt.isFlagEmoji=At,mt.isRegionalCode=ot,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=c;var it={addChars:L,addFonts:G,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:_t};return mt.prototype=it,mt}();function Zu(r){this.animationData=r}Zu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function zT(r){return new Zu(r)}function wl(){}wl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var lh=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function BT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function UT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function HT(r,s,l){this.p=dt.getProp(s,r.v,1,0,l)}function GT(r,s,l){this.p=dt.getProp(s,r.v,1,0,l)}function KT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function WT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function YT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function jT(){this.p={}}function Qu(r,s){var l=r.ef||[];this.effectElements=[];var c,m=l.length,p;for(c=0;c<m;c+=1)p=new ja(l[c],s),this.effectElements.push(p)}function ja(r,s){this.init(r,s)}S([Ne],ja),ja.prototype.getValue=ja.prototype.iterateDynamicProperties,ja.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,c=this.data.ef.length,m,p=this.data.ef;for(l=0;l<c;l+=1){switch(m=null,p[l].ty){case 0:m=new BT(p[l],s,this);break;case 1:m=new UT(p[l],s,this);break;case 2:m=new HT(p[l],s,this);break;case 3:m=new GT(p[l],s,this);break;case 4:case 7:m=new YT(p[l],s,this);break;case 10:m=new KT(p[l],s,this);break;case 11:m=new WT(p[l],s,this);break;case 5:m=new Qu(p[l],s,this);break;default:m=new jT(p[l],s,this);break}m&&this.effectElements.push(m)}};function oo(){}oo.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Su();if(s){var l=s("layer"),c=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=c.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=lh(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,c){this.globalData=l,this.comp=c,this.data=s,this.layerId=er(),this.data.sr||(this.data.sr=1),this.effectsManager=new Qu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function so(){}so.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var c,m=this.dynamicProperties.length;for(c=0;c<m;c+=1)(l||this._isParent&&this.dynamicProperties[c].propType==="transform")&&(this.dynamicProperties[c].getValue(),this.dynamicProperties[c]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ao(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}ao.prototype.prepareFrame=function(){},S([wl,oo,so],ao),ao.prototype.getBaseElement=function(){return null},ao.prototype.renderFrame=function(){},ao.prototype.destroy=function(){},ao.prototype.initExpressions=function(){var r=Su();if(r){var s=r("footage");this.layerInterface=s(this)}},ao.prototype.getFootageData=function(){return this.footageData};function rr(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var c=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(c),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?dt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=dt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}rr.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},S([wl,oo,so],rr),rr.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))},rr.prototype.show=function(){},rr.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},rr.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},rr.prototype.resume=function(){this._canPlay=!0},rr.prototype.setRate=function(r){this.audio.rate(r)},rr.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},rr.prototype.getBaseElement=function(){return null},rr.prototype.destroy=function(){},rr.prototype.sourceRectAtTime=function(){},rr.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,c;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(c=this.layers[s],c.ip-c.st<=r-this.layers[s].st&&c.op-c.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new rr(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new ao(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,c,m=this.layers.length;for(s=0;s<l;s+=1)for(c=0;c<m;){if(this.layers[c].id===r[s].id){this.layers[c]=r[s];break}c+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var c=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!c[p]||c[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(c[p]),c[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var c=this.createComp(r[s]);c.initExpressions(),this.globalData.projectInterface.registerComposition(c)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var c,m=this.elements.length;for(c=0;c<m;c+=1)if(this.elements[c].data.nm===s){l=this.elements[c];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Ho,this.globalData.slotManager=zT(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var qT={TRANSFORM_EFFECT:"transformEFfect"};function Vs(){}Vs.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?ih.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,c=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;c<m;){if(this.hierarchy[c].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}c+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),c=0;c<m;c+=1)l.multiply(this.hierarchy[c].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var c=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(c),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;c.multiply(m)}c.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(qT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,c=s.length;for(l=0;l<c;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var c=!0,m=this.comp;c;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):c=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Go(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var c=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Z(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,Y,x=er(),O,F,D,G,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=Ct("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,b=Ct("path"),I[m].mode==="n")this.viewData[m]={op:dt.getProp(this.element,I[m].o,0,.01,this.element),prop:xl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},c.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",G=dt.getProp(this.element,I[m].x,0,null,this.element),T=er(),F=Ct("filter"),F.setAttribute("id",T),D=Ct("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),c.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,G=null),this.storedData[m]={elem:b,x:G,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){Y=k.length;var C=Ct("g");for(M=0;M<Y;M+=1)C.appendChild(k[M]);var N=Ct("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(b),c.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:dt.getProp(this.element,I[m].o,0,.01,this.element),prop:xl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=Ct(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),c.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Go.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Go.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,c=this.masksProperties.length;for(l=0;l<c;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},Go.prototype.getMaskelement=function(){return this.maskElement},Go.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Go.prototype.drawPath=function(r,s,l){var c=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==c){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+c:c),l.elem.setAttribute("d",b)),l.lastPath=c}},Go.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var qa=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(c,m){var p=Ct("filter");return p.setAttribute("id",c),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var c=Ct("feColorMatrix");return c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),c}return r}(),Ju=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),kl={},tf="filter_result_";function dh(r){var s,l="SourceGraphic",c=r.data.ef?r.data.ef.length:0,m=er(),p=qa.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<c;s+=1){I=null;var y=r.data.ef[s].ty;if(kl[y]){var k=kl[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,tf+b,l),l=tf+b,kl[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}dh.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},dh.prototype.getEffects=function(r){var s,l=this.filters.length,c=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&c.push(this.filters[s]);return c};function SC(r,s,l){kl[r]={effect:s,countsAsEffect:l}}function Xa(){}Xa.prototype={initRendererElement:function(){this.layerElement=Ct("g")},createContainerElements:function(){this.matteElement=Ct("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=Ct("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var c=Ct("clipPath"),m=Ct("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=er();if(c.setAttribute("id",p),c.appendChild(m),this.globalData.defs.appendChild(c),this.checkMasks()){var b=Ct("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Go(this.data,this,this.globalData),this.renderableEffectsManager=new dh(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,c,m,p,b;if(s===1||s===3){var I=Ct("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Ju.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),c=er(),m=qa.createFilter(c),this.globalData.defs.appendChild(m),m.appendChild(qa.createAlphaToLuminanceFilter()),b=Ct("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+c+")"))}else if(s===2){var y=Ct("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=Ct("g");y.appendChild(k),c=er(),m=qa.createFilter(c);var M=Ct("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var Y=Ct("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),M.appendChild(Y),this.globalData.defs.appendChild(m);var x=Ct("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()+"#"+c+")"),k.appendChild(x),p=Ct("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Ju.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(qa.createAlphaToLuminanceFilter()),b=Ct("g"),k.appendChild(x),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function zs(){}zs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Za(){}(function(){var r={initElement:function(l,c,m){this.initFrame(),this.initBaseData(l,c,m),this.initTransform(l,c,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.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(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};S([wl,U(r)],Za)})();function Qa(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}S([oo,Vs,Xa,zs,so,Za],Qa),Qa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=Ct("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Qa.prototype.sourceRectAtTime=function(){return this.sourceRect};function XT(r,s){this.elem=r,this.pos=s}function ef(){}ef.prototype={addShapeToModifiers:function(s){var l,c=this.shapeModifiers.length;for(l=0;l<c;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,c=this.shapeModifiers.length;l<c;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var c;for(s=l-1;s>=0&&(c=this.shapeModifiers[s].processShapes(this._isFirstFrame),!c);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,c=0,m=l.length;c<m;){if(l[c].elem===s)return l[c].pos;c+=1}return 0},addProcessedElement:function(s,l){for(var c=this.processedElements,m=c.length;m;)if(m-=1,c[m].elem===s){c[m].pos=l;return}c.push(new XT(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var rf={1:"butt",2:"round",3:"square"},of={1:"miter",2:"round",3:"bevel"};function sf(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var c=0,m=r.length;c<m;){if(r[c].mProps.dynamicProperties.length){this._isAnimated=!0;break}c+=1}}sf.prototype.setAsAnimated=function(){this._isAnimated=!0};function af(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=Ct("path"),this.msElem=null}af.prototype.reset=function(){this.d="",this._mdf=!1};function Nl(r,s,l,c){this.elem=r,this.frameId=-1,this.dataProps=Z(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=j("float32",s.length?s.length-1:0),this.dashoffset=j("float32",1),this.initDynamicPropertyContainer(c);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=dt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}Nl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},S([Ne],Nl);function nf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(r,s.o,0,.01,this),this.w=dt.getProp(r,s.w,0,null,this),this.d=new Nl(r,s.d||{},"svg",this),this.c=dt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}S([Ne],nf);function lf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(r,s.o,0,.01,this),this.c=dt.getProp(r,s.c,1,255,this),this.style=l}S([Ne],lf);function df(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}S([Ne],df);function Ja(r,s,l){this.data=s,this.c=j("uint8c",s.p*4);var c=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=j("float32",c),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=c,this.initDynamicPropertyContainer(l),this.prop=dt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ja.prototype.comparePoints=function(r,s){for(var l=0,c=this.o.length/2,m;l<c;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},Ja.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ja.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,c,m;for(s=0;s<l;s+=1)c=s%4===0?100:255,m=Math.round(this.prop.v[s]*c),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)c=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},S([Ne],Ja);function Bs(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}Bs.prototype.initGradientData=function(r,s,l){this.o=dt.getProp(r,s.o,0,.01,this),this.s=dt.getProp(r,s.s,1,null,this),this.e=dt.getProp(r,s.e,1,null,this),this.h=dt.getProp(r,s.h||{k:0},0,.01,this),this.a=dt.getProp(r,s.a||{k:0},0,Nt,this),this.g=new Ja(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},Bs.prototype.setGradientData=function(r,s){var l=er(),c=Ct(s.t===1?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=Ct("stop"),c.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=c,this.cst=m},Bs.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,c,m,p=Ct("mask"),b=Ct("path");p.appendChild(b);var I=er(),y=er();p.setAttribute("id",y);var k=Ct(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(c=r.g.p*4;c<m;c+=2)l=Ct("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",rf[r.lc||2]),b.setAttribute("stroke-linejoin",of[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},S([Ne],Bs);function cf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=dt.getProp(r,s.w,0,null,this),this.d=new Nl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}S([Bs,Ne],cf);function ZT(){this.it=[],this.prevViewData=[],this.gr=Ct("g")}function QT(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var hf=function(s,l,c,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return c&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},JT=function(){var r=new Pe,s=new Pe,l={createRenderFunction:c};function c(Y){switch(Y.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(Y,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function b(Y,x,O){var F,D,G,L,w,T,C=x.styles.length,N=x.lvl,V,W,X,ot;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(W=s.reset(),X=N-x.styles[T].lvl,ot=x.transformers.length-1;!L&&X>0;)L=x.transformers[ot].mProps._mdf||L,X-=1,ot-=1;if(L)for(X=N-x.styles[T].lvl,ot=x.transformers.length-1;X>0;)W.multiply(x.transformers[ot].mProps.v),X-=1,ot-=1}else W=r;if(V=x.sh.paths,D=V._length,L){for(G="",F=0;F<D;F+=1)w=V.shapes[F],w&&w._length&&(G+=hf(w,w._length,w.c,W));x.caches[T]=G}else G=x.caches[T];x.styles[T].d+=Y.hd===!0?"":G,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(Y,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function y(Y,x,O){k(Y,x,O),M(Y,x,O)}function k(Y,x,O){var F=x.gf,D=x.g._hasOpacity,G=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=Y.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=Y.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,G[0]),F.setAttribute(C,G[1]),D&&!x.g._collapsable&&(x.of.setAttribute(T,G[0]),x.of.setAttribute(C,G[1]))}var N,V,W,X;if(x.g._cmdf||O){N=x.cst;var ot=x.g.c;for(W=N.length,V=0;V<W;V+=1)X=N[V],X.setAttribute("offset",ot[V*4]+"%"),X.setAttribute("stop-color","rgb("+ot[V*4+1]+","+ot[V*4+2]+","+ot[V*4+3]+")")}if(D&&(x.g._omdf||O)){var At=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,W=N.length,V=0;V<W;V+=1)X=N[V],x.g._collapsable||X.setAttribute("offset",At[V*2]+"%"),X.setAttribute("stop-opacity",At[V*2+1])}if(Y.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ft;if((x.s._mdf||x.e._mdf||O)&&(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)),F.setAttribute("r",ft),D&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(G[0]-L[0],2)+Math.pow(G[1]-L[1],2)));var nt=Math.atan2(L[1]-G[1],L[0]-G[0]),_t=x.h.v;_t>=1?_t=.99:_t<=-1&&(_t=-.99);var mt=ft*_t,it=Math.cos(nt+x.a.v)*mt+G[0],_=Math.sin(nt+x.a.v)*mt+G[1];F.setAttribute("fx",it),F.setAttribute("fy",_),D&&!x.g._collapsable&&(x.of.setAttribute("fx",it),x.of.setAttribute("fy",_))}}}function M(Y,x,O){var F=x.style,D=x.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return l}();function he(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}S([oo,Vs,Xa,ef,zs,so,Za],he),he.prototype.initSecondaryElement=function(){},he.prototype.identityMatrix=new Pe,he.prototype.buildExpressionInterface=function(){},he.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},he.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,c,m=this.stylesList.length,p,b=[],I=!1;for(c=0;c<m;c+=1){for(p=this.stylesList[c],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},he.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},he.prototype.createStyleElement=function(r,s){var l,c=new af(r,s),m=c.pElem;if(r.ty==="st")l=new nf(this,r,c);else if(r.ty==="fl")l=new lf(this,r,c);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Bs:cf;l=new p(this,r,c),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new df(this,r,c));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",rf[r.lc||2]),m.setAttribute("stroke-linejoin",of[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=lh(r.bm)),this.stylesList.push(c),this.addToAnimatedContents(r,l),l},he.prototype.createGroupElement=function(r){var s=new ZT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=lh(r.bm)),s},he.prototype.createTransformElement=function(r,s){var l=ih.getTransformProperty(this,r,this),c=new QT(l,l.o,s);return this.addToAnimatedContents(r,c),c},he.prototype.createShapeElement=function(r,s,l){var c=4;r.ty==="rc"?c=5:r.ty==="el"?c=6:r.ty==="sr"&&(c=7);var m=xl.getShapeProp(this,r,c,this),p=new sf(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},he.prototype.addToAnimatedContents=function(r,s){for(var l=0,c=this.animatedContents.length;l<c;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:JT.createRenderFunction(r),element:s,data:r})},he.prototype.setElementStyles=function(r){var s=r.styles,l,c=this.stylesList.length;for(l=0;l<c;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},he.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},he.prototype.searchShapes=function(r,s,l,c,m,p,b){var I=[].concat(p),y,k=r.length-1,M,Y,x=[],O=[],F,D,G;for(y=k;y>=0;y-=1){if(G=this.searchProcessedElement(r[y]),G?s[y]=l[G-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")G?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==c&&c.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!G)s[y]=this.createGroupElement(r[y]);else for(Y=s[y].it.length,M=0;M<Y;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==c&&c.appendChild(s[y].gr)}else r[y].ty==="tr"?(G||(s[y]=this.createTransformElement(r[y],c)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(G||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(G?(D=s[y],D.closed=!1):(D=ro.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(G?(D=s[y],D.closed=!0):(D=ro.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=x.length,y=0;y<k;y+=1)x[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},he.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},he.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},he.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ch(r,s,l,c,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=c,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!c,m:!0,p:!0}}ch.prototype.update=function(r,s,l,c,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==c&&(this.fc=c,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var c,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(c=0;c<m;c+=1)l!==this.keysIndex?p=this.effectsSequence[c](p,p.t):p=this.effectsSequence[c](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,c=r.length;l<=c-1&&!(l===c-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,c=r.length,m,p,b=!1,I=!1,y="";l<c;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),Ho.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?Ho.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&(Ho.isModifier(m,p)?(y=r.substr(l,2),b=!0):Ho.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),Ho.isVariationSelector(m)&&(b=!0)):Ho.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,c=[],m,p,b,I=0,y,k=l.m.g,M=0,Y=0,x=0,O=[],F=0,D=0,G,L,w=s.getFontByName(r.f),T,C=0,N=Xu(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var V=r.tr/1e3*r.finalSize,W;if(r.sz)for(var X=!0,ot=r.sz[0],At=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,V=r.tr/1e3*r.finalSize;var _t=-1;for(m=0;m<p;m+=1)W=nt[m].charCodeAt(0),b=!1,nt[m]===" "?_t=m:(W===13||W===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>ot&&nt[m]!==" "?(_t===-1?p+=1:m=_t,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,_t===m?1:0,"\r"),_t=-1,F=0):(F+=C,F+=V);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&At<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-V,C=0;var mt=0,it;for(m=0;m<p;m+=1)if(b=!1,it=r.finalText[m],W=it.charCodeAt(0),W===13||W===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*V,y="",b=!0,x+=1):y=it,s.chars?(T=s.getCharData(it,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),it===" "?mt+=C+V:(F+=C+V+mt,mt=0),c.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;M=0,I+=1}}else c[I].ind=I,c[I].extra=0,I+=1;if(r.l=c,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,g;L=_.length;var E,q,B=[];for(G=0;G<L;G+=1){for(P=_[G],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),q=0,E=P.s.b,m=0;m<p;m+=1)g=c[m],g.anIndexes[G]=q,(E==1&&g.val!==""||E==2&&g.val!==""&&g.val!==" "||E==3&&(g.n||g.val==" "||m==p-1)||E==4&&(g.n||m==p-1))&&(P.s.rn===1&&B.push(q),q+=1);l.a[G].s.totalChars=q;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)g=c[m],ct!=g.anIndexes[G]&&(ct=g.anIndexes[G],gt=B.splice(Math.floor(Math.random()*B.length),1)[0]),g.anIndexes[G]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var tx=function(){var r=Math.max,s=Math.min,l=Math.floor;function c(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=dt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=dt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=dt.getProp(p,b.o||{k:0},0,0,this),this.xe=dt.getProp(p,b.xe||{k:0},0,0,this),this.ne=dt.getProp(p,b.ne||{k:0},0,0,this),this.sm=dt.getProp(p,b.sm||{k:100},0,0,this),this.a=dt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}c.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var Y=Ua.getBezierEasing(I,y,k,M).get,x=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?x=b>=F?1:0:x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===3)F===O?x=b>=F?0:1:x=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===4)F===O?x=0:(x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=Y(x);else if(D===5){if(F===O)x=0;else{var G=F-O;b=s(r(0,b+.5-O),F-O);var L=-G/2+b,w=G/2;x=Math.sqrt(1-L*L/(w*w))}x=Y(x)}else D===6?(F===O?x=0:(b=s(r(0,b+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),x=Y(x)):(b>=l(O)&&(b-O<0?x=r(0,s(s(F,1)-(O-b),1)):x=r(0,s(F-b,1))),x=Y(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var Y=k;k=M,M=Y}this.finalS=k,this.finalE=M}},S([Ne],c);function m(p,b,I){return new c(p,b,I)}return{getTextSelectorProp:m}}();function ex(r,s,l){var c={propType:!1},m=dt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,Nt,l):c,rx:p.rx?m(r,p.rx,0,Nt,l):c,ry:p.ry?m(r,p.ry,0,Nt,l):c,sk:p.sk?m(r,p.sk,0,Nt,l):c,sa:p.sa?m(r,p.sa,0,Nt,l):c,s:p.s?m(r,p.s,1,.01,l):c,a:p.a?m(r,p.a,1,0,l):c,o:p.o?m(r,p.o,0,.01,l):c,p:p.p?m(r,p.p,1,0,l):c,sw:p.sw?m(r,p.sw,0,0,l):c,sc:p.sc?m(r,p.sc,1,0,l):c,fc:p.fc?m(r,p.fc,1,0,l):c,fh:p.fh?m(r,p.fh,0,0,l):c,fs:p.fs?m(r,p.fs,0,.01,l):c,fb:p.fb?m(r,p.fb,0,.01,l):c,t:p.t?m(r,p.t,0,0,l):c},this.s=tx.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function Ko(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Z(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}Ko.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,c=dt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new ex(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:c(this._elem,this._textData.p.a,0,0,this),f:c(this._elem,this._textData.p.f,0,0,this),l:c(this._elem,this._textData.p.l,0,0,this),r:c(this._elem,this._textData.p.r,0,0,this),p:c(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=c(this._elem,this._textData.m.a,1,0,this)},Ko.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,c=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,Y,x=r.l,O,F,D,G,L,w,T,C,N,V,W,X,ot,At,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},Y=nt._length-1;var _t;for(X=0,M=0;M<Y;M+=1)_t=ti.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength;M=Y,ft.v.c&&(_t=ti.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=_t.segmentLength,O.segments.push(_t),X+=_t.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,G=0,L=!0,V=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=V.length-1,N=V[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=V[T].points,w=N.length-1);N=V[T].points,C=N[w-1],D=N[w],W=D.partialLength}Y=x.length,y=0,k=0;var mt=r.finalSize*1.2*.714,it=!0,_,P,g,E,q;E=c.length;var B,ct=-1,gt,St,Bt,Ut=F,ye=T,ir=w,ri=-1,or,Le,yr,Yt,ut,Ni,lo,Li,ii="",Mi=this.defaultPropsArray,Oi;if(r.j===2||r.j===1){var sr=0,co=0,ho=r.j===2?-.5:-1,zr=0,po=!0;for(M=0;M<Y;M+=1)if(x[M].n){for(sr&&(sr+=co);zr<M;)x[zr].animatorJustifyOffset=sr,zr+=1;sr=0,po=!0}else{for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(po&&r.j===2&&(co+=_.t.v*ho),P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?sr+=_.t.v*B[0]*ho:sr+=_.t.v*B*ho);po=!1}for(sr&&(sr+=co);zr<M;)x[zr].animatorJustifyOffset=sr,zr+=1}for(M=0;M<Y;M+=1){if(p.reset(),or=1,x[M].n)y=0,k+=r.yOffset,k+=it?1:0,F=Ut,it=!1,this._hasMaskedPath&&(T=ye,w=ir,N=V[T].points,C=N[w-1],D=N[w],W=D.partialLength,G=0),ii="",Li="",Ni="",Oi="",Mi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ri!==x[M].line){switch(r.j){case 1:F+=X-r.lineWidths[x[M].line];break;case 2:F+=(X-r.lineWidths[x[M].line])/2;break;default:break}ri=x[M].line}ct!==x[M].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[M].an/2,ct=x[M].ind),F+=l[0]*x[M].an*.005;var Br=0;for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Br+=_.p.v[0]*B[0]:Br+=_.p.v[0]*B),_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Br+=_.a.v[0]*B[0]:Br+=_.a.v[0]*B);for(L=!0,this._pathData.a.v&&(F=x[0].an*.5+(X-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(Y-1),F+=this._pathData.f.v);L;)G+W>=F+Br||!N?(ot=(F+Br-G)/D.partialLength,St=C.point[0]+(D.point[0]-C.point[0])*ot,Bt=C.point[1]+(D.point[1]-C.point[1])*ot,p.translate(-l[0]*x[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(G+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,V[T]?N=V[T].points:ft.v.c?(w=0,T=0,N=V[T].points):(G-=D.partialLength,N=null)),N&&(C=D,D=N[w],W=D.partialLength));gt=x[M].an/2-x[M].add,p.translate(-gt,0,0)}else gt=x[M].an/2-x[M].add,p.translate(-gt,0,0),p.translate(-l[0]*x[M].an*.005,-l[1]*mt*.01,0);for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?B.length?F+=_.t.v*B[0]:F+=_.t.v*B:B.length?y+=_.t.v*B[0]:y+=_.t.v*B));for(r.strokeWidthAnim&&(yr=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Yt=[r.fc[0],r.fc[1],r.fc[2]]),g=0;g<E;g+=1)_=c[g].a,_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.translate(-_.a.v[0]*B[0],-_.a.v[1]*B[1],_.a.v[2]*B[2]):p.translate(-_.a.v[0]*B,-_.a.v[1]*B,_.a.v[2]*B));for(g=0;g<E;g+=1)_=c[g].a,_.s.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.scale(1+(_.s.v[0]-1)*B[0],1+(_.s.v[1]-1)*B[1],1):p.scale(1+(_.s.v[0]-1)*B,1+(_.s.v[1]-1)*B,1));for(g=0;g<E;g+=1){if(_=c[g].a,P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),_.sk.propType&&(B.length?p.skewFromAxis(-_.sk.v*B[0],_.sa.v*B[1]):p.skewFromAxis(-_.sk.v*B,_.sa.v*B)),_.r.propType&&(B.length?p.rotateZ(-_.r.v*B[2]):p.rotateZ(-_.r.v*B)),_.ry.propType&&(B.length?p.rotateY(_.ry.v*B[1]):p.rotateY(_.ry.v*B)),_.rx.propType&&(B.length?p.rotateX(_.rx.v*B[0]):p.rotateX(_.rx.v*B)),_.o.propType&&(B.length?or+=(_.o.v*B[0]-or)*B[0]:or+=(_.o.v*B-or)*B),r.strokeWidthAnim&&_.sw.propType&&(B.length?yr+=_.sw.v*B[0]:yr+=_.sw.v*B),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)B.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*B[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*B;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)B.length?Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B[0]:Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B;_.fh.propType&&(B.length?Yt=Au(Yt,_.fh.v*B[0]):Yt=Au(Yt,_.fh.v*B)),_.fs.propType&&(B.length?Yt=Tu(Yt,_.fs.v*B[0]):Yt=Tu(Yt,_.fs.v*B)),_.fb.propType&&(B.length?Yt=xu(Yt,_.fb.v*B[0]):Yt=xu(Yt,_.fb.v*B))}}for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),this._hasMaskedPath?B.length?p.translate(0,_.p.v[1]*B[0],-_.p.v[2]*B[1]):p.translate(0,_.p.v[1]*B,-_.p.v[2]*B):B.length?p.translate(_.p.v[0]*B[0],_.p.v[1]*B[1],-_.p.v[2]*B[2]):p.translate(_.p.v[0]*B,_.p.v[1]*B,-_.p.v[2]*B));if(r.strokeWidthAnim&&(Ni=yr<0?0:yr),r.strokeColorAnim&&(lo="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Li="rgb("+Math.round(Yt[0]*255)+","+Math.round(Yt[1]*255)+","+Math.round(Yt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,l[1]*mt*.01+k,0),this._pathData.p.v){At=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Wo=Math.atan(At)*180/Math.PI;D.point[0]<C.point[0]&&(Wo+=180),p.rotate(-Wo*Math.PI/180)}p.translate(St,Bt,0),F-=l[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(F+=x[M].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line]),0,0);break;case 2:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*x[M].an*.005,l[1]*mt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}b==="html"?ii=p.toCSS():b==="svg"?ii=p.to2dCSS():Mi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Oi=or}I<=M?(q=new ch(Oi,Ni,lo,Li,ii,Mi),this.renderedLetters.push(q),I+=1,this.lettersChangedFlag=!0):(q=this.renderedLetters[M],this.lettersChangedFlag=q.update(Oi,Ni,lo,Li,ii,Mi)||this.lettersChangedFlag)}}},Ko.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Ko.prototype.mHelper=new Pe,Ko.prototype.defaultPropsArray=[],S([Ne],Ko);function kr(){}kr.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new Ko(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},kr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},kr.prototype.createPathShape=function(r,s){var l,c=s.length,m,p="";for(l=0;l<c;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=hf(m,m.i.length,!0,r));return p},kr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},kr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},kr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},kr.prototype.applyTextPropertiesToMatrix=function(r,s,l,c,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(c,m,0)},kr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},kr.prototype.emptyProp=new ch,kr.prototype.destroy=function(){},kr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var rx={shapes:[]};function wi(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}S([oo,Vs,Xa,zs,so,Za,kr],wi),wi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Ct("text"))},wi.prototype.buildTextContents=function(r){for(var s=0,l=r.length,c=[],m="";s<l;)r[s]==="\r"||r[s]===""?(c.push(m),m=""):m+=r[s],s+=1;return c.push(m),c},wi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var c=l.it[l.it.length-1];c.s&&(c.s.k[0]=s,c.s.k[1]=s)}}return r},wi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Z(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var c=this.globalData.fontManager.getFontByName(l.f);if(c.fClass)this.layerElement.setAttribute("class",c.fClass);else{this.layerElement.setAttribute("font-family",c.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",Y=this.data.singleShape,x=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(Y&&!I&&!l.sz){var G=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}G.setAttribute("text-anchor",L),G.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||Ct("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",G.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(G)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!Y||r===0){if(y=T>r?this.textSpans[r].span:Ct(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=Ct("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),Y&&(b[r].n&&(x=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,x,O),x+=b[r].l||0,x+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],c.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var V;if(C.t===1)V=new tn(C.data,this.globalData,this);else{var W=rx;C.data&&C.data.shapes&&(W=this.buildShapeData(C.data,l.finalSize)),V=new he(W,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=V,V._debug=!0,V.prepareFrame(0),V.renderFrame(),this.textSpans[r].childSpan.appendChild(V.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else Y&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},wi.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},wi.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},wi.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;s=c.length;var m,p,b;for(r=0;r<s;r+=1)c[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function hh(r,s,l){this.initElement(r,s,l)}S([Qa],hh),hh.prototype.createContent=function(){var r=Ct("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function no(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}no.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},no.prototype.renderFrame=function(){},no.prototype.getBaseElement=function(){return null},no.prototype.destroy=function(){},no.prototype.sourceRectAtTime=function(){},no.prototype.hide=function(){},S([oo,Vs,zs,so],no);function Ie(){}S([Fe],Ie),Ie.prototype.createNull=function(r){return new no(r,this.globalData,this)},Ie.prototype.createShape=function(r){return new he(r,this.globalData,this)},Ie.prototype.createText=function(r){return new wi(r,this.globalData,this)},Ie.prototype.createImage=function(r){return new Qa(r,this.globalData,this)},Ie.prototype.createSolid=function(r){return new hh(r,this.globalData,this)},Ie.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=Ct("clipPath"),c=Ct("rect");c.setAttribute("width",r.w),c.setAttribute("height",r.h),c.setAttribute("x",0),c.setAttribute("y",0);var m=er();l.setAttribute("id",m),l.appendChild(c),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Z(r.layers.length)},Ie.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ie.prototype.updateContainerSize=function(){},Ie.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ie.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,fl()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var c="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(c===-1)return;if(!this.elements[c]||this.elements[c]===!0)this.buildItem(c),this.addPendingElement(l);else{var m=s[c],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ie.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var c="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[c],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ie.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ie.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var c=0,m;c<s;)this.elements[c]&&this.elements[c]!==!0&&this.elements[c].getBaseElement()&&(m=this.elements[c].getBaseElement()),c+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ie.prototype.hide=function(){this.layerElement.style.display="none"},Ie.prototype.show=function(){this.layerElement.style.display="block"};function ki(){}S([oo,Vs,zs,so,Za],ki),ki.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},ki.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,c=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=c-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},ki.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},ki.prototype.setElements=function(r){this.elements=r},ki.prototype.getElements=function(){return this.elements},ki.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},ki.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function tn(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Z(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?dt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}S([Ie,ki,Xa],tn),tn.prototype.createComp=function(r){return new tn(r,this.globalData,this)};function ph(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=Ct("svg");var l="";if(s&&s.title){var c=Ct("title"),m=er();c.setAttribute("id",m),c.textContent=s.title,this.svgElement.appendChild(c),l+=m}if(s&&s.description){var p=Ct("desc"),b=er();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=Ct("defs");this.svgElement.appendChild(I);var y=Ct("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return S([Ie],ph),ph.prototype.createComp=function(r){return new tn(r,this.globalData,this)},pT("svg",ph),ro.registerModifier("tm",Vr),ro.registerModifier("pb",Ha),ro.registerModifier("rp",ei),ro.registerModifier("rd",Ga),ro.registerModifier("zz",Wa),ro.registerModifier("op",Ya),Wt})});var Rl=globalThis,Dl=Rl.ShadowRoot&&(Rl.ShadyCSS===void 0||Rl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,uh=Symbol(),mf=new WeakMap,en=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==uh)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(Dl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=mf.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&mf.set(t,o))}return o}toString(){return this.cssText}},uf=n=>new en(typeof n=="string"?n:n+"",void 0,uh),z=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,i,a)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[a+1],n[0]);return new en(t,n,uh)},fh=(n,o)=>{if(Dl)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=Rl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,n.appendChild(e)}},Pl=Dl?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return uf(t)})(n):n;var{is:cx,defineProperty:hx,getOwnPropertyDescriptor:px,getOwnPropertyNames:mx,getOwnPropertySymbols:ux,getPrototypeOf:fx}=Object,mo=globalThis,ff=mo.trustedTypes,vx=ff?ff.emptyScript:"",vh=mo.reactiveElementPolyfillSupport,rn=(n,o)=>n,on={toAttribute(n,o){switch(o){case Boolean:n=n?vx:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Fl=(n,o)=>!cx(n,o),vf={attribute:!0,type:String,converter:on,reflect:!1,hasChanged:Fl},gf,bf;(gf=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(bf=mo.litPropertyMetadata)!=null||(mo.litPropertyMetadata=new WeakMap);var Ri=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=vf){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&hx(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var d;let{get:i,set:a}=(d=px(this.prototype,o))!=null?d:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let v=i==null?void 0:i.call(this);a.call(this,f),this.requestUpdate(o,v,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:vf}static _$Ei(){if(this.hasOwnProperty(rn("elementProperties")))return;let o=fx(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(rn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rn("properties"))){let t=this.properties,e=[...mx(t),...ux(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(Pl(i))}else o!==void 0&&t.push(Pl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return fh(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var a;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let d=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:on).toAttribute(t,e.type);this._$Em=o,d==null?this.removeAttribute(i):this.setAttribute(i,d),this._$Em=null}}_$AK(o,t){var a;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let d=e.getPropertyOptions(i),f=typeof d.converter=="function"?{fromAttribute:d.converter}:((a=d.converter)==null?void 0:a.fromAttribute)!==void 0?d.converter:on;this._$Em=i,this[i]=f.fromAttribute(t,d.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:Fl)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[d,f]of a)f.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(a=>{var d;return(d=a.hostUpdate)==null?void 0:d.call(a)}),this.update(t)):this._$EU()}catch(a){throw o=!1,this._$EU(),a}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},yf;Ri.elementStyles=[],Ri.shadowRootOptions={mode:"open"},Ri[rn("elementProperties")]=new Map,Ri[rn("finalized")]=new Map,vh==null||vh({ReactiveElement:Ri}),((yf=mo.reactiveElementVersions)!=null?yf:mo.reactiveElementVersions=[]).push("2.0.4");var an=globalThis,$l=an.trustedTypes,Ef=$l?$l.createPolicy("lit-html",{createHTML:n=>n}):void 0,yh="$lit$",Di=`lit$${Math.random().toFixed(9).slice(2)}$`,Eh="?"+Di,gx=`<${Eh}>`,qo=document,nn=()=>qo.createComment(""),ln=n=>n===null||typeof n!="object"&&typeof n!="function",Th=Array.isArray,_f=n=>Th(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",gh=`[
1
+ "use strict";(()=>{var ix=Object.create;var mh=Object.defineProperty;var pf=Object.getOwnPropertyDescriptor;var ox=Object.getOwnPropertyNames;var sx=Object.getPrototypeOf,ax=Object.prototype.hasOwnProperty;var nx=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var lx=(n,o,t,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of ox(o))!ax.call(n,i)&&i!==t&&mh(n,i,{get:()=>o[i],enumerable:!(e=pf(o,i))||e.enumerable});return n};var dx=(n,o,t)=>(t=n!=null?ix(sx(n)):{},lx(o||!n||!n.__esModule?mh(t,"default",{value:n,enumerable:!0}):t,n));var h=(n,o,t,e)=>{for(var i=e>1?void 0:e?pf(o,t):o,a=n.length-1,d;a>=0;a--)(d=n[a])&&(i=(e?d(o,t,i):d(i))||i);return e&&i&&mh(o,t,i),i};var xv=nx((Tn,ld)=>{typeof navigator<"u"&&function(n,o){typeof Tn=="object"&&typeof ld<"u"?ld.exports=o():typeof define=="function"&&define.amd?define(o):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=o())}(Tn,function(){"use strict";var n="http://www.w3.org/2000/svg",o="",t=!1,e=-999999,i=function(s){t=!!s},a=function(){return t},d=function(s){o=s},f=function(){return o};function v(r){return document.createElement(r)}function S(r,s){var l,c=r.length,m;for(l=0;l<c;l+=1){m=r[l].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function R(r,s){return Object.getOwnPropertyDescriptor(r,s)}function U(r){function s(){}return s.prototype=r,s}var J=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(l){this.audios.push(l)},pause:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].pause()},resume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].resume()},setRate:function(l){var c,m=this.audios.length;for(c=0;c<m;c+=1)this.audios[c].setRate(l)},createAudio:function(l){return this.audioFactory?this.audioFactory(l):window.Howl?new window.Howl({src:[l]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(l){this.audioFactory=l},setVolume:function(l){this._volume=l,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var l,c=this.audios.length;for(l=0;l<c;l+=1)this.audios[l].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),j=function(){function r(l,c){var m=0,p=[],b;switch(l){case"int16":case"uint8c":b=1;break;default:b=1.1;break}for(m=0;m<c;m+=1)p.push(b);return p}function s(l,c){return l==="float32"?new Float32Array(c):l==="int16"?new Int16Array(c):l==="uint8c"?new Uint8ClampedArray(c):r(l,c)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function Z(r){return Array.apply(null,{length:r})}function rt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rt=function(l){return typeof l}:rt=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},rt(r)}var st=!0,ht=null,bt=null,yt="",Ct=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Rt=!1,Gt=Math.pow,Pt=Math.sqrt,ne=Math.floor,Ge=Math.max,qt=Math.min,xe={};(function(){var r=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,l=r.length;for(s=0;s<l;s+=1)xe[r[s]]=Math[r[s]]})();function Ae(){return{}}xe.random=Math.random,xe.abs=function(r){var s=rt(r);if(s==="object"&&r.length){var l=Z(r.length),c,m=r.length;for(c=0;c<m;c+=1)l[c]=Math.abs(r[c]);return l}return Math.abs(r)};var Se=150,Nt=Math.PI/180,se=.5519;function Ke(r){Rt=!!r}function Je(r){return Rt?Math.round(r):r}function tr(r){r.style.position="absolute",r.style.top=0,r.style.left=0,r.style.display="block",r.style.transformOrigin="0 0",r.style.webkitTransformOrigin="0 0",r.style.backfaceVisibility="visible",r.style.webkitBackfaceVisibility="visible",r.style.transformStyle="preserve-3d",r.style.webkitTransformStyle="preserve-3d",r.style.mozTransformStyle="preserve-3d"}function _r(r,s,l,c){this.type=r,this.currentTime=s,this.totalTime=l,this.direction=c<0?-1:1}function ul(r,s){this.type=r,this.direction=s<0?-1:1}function bu(r,s,l,c){this.type=r,this.currentLoop=l,this.totalLoops=s,this.direction=c<0?-1:1}function yu(r,s,l){this.type=r,this.firstFrame=s,this.totalFrames=l}function Eu(r,s){this.type=r,this.target=s}function iT(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function oT(r){this.type="configError",this.nativeError=r}function EC(r,s){this.type=r,this.nativeError=s}var er=function(){var r=0;return function(){return r+=1,yt+"__lottie_element_"+r}}();function th(r,s,l){var c,m,p,b,I,y,k,M;switch(b=Math.floor(r*6),I=r*6-b,y=l*(1-s),k=l*(1-I*s),M=l*(1-(1-I)*s),b%6){case 0:c=l,m=M,p=y;break;case 1:c=k,m=l,p=y;break;case 2:c=y,m=l,p=M;break;case 3:c=y,m=k,p=l;break;case 4:c=M,m=y,p=l;break;case 5:c=l,m=y,p=k;break;default:break}return[c,m,p]}function eh(r,s,l){var c=Math.max(r,s,l),m=Math.min(r,s,l),p=c-m,b,I=c===0?0:p/c,y=c/255;switch(c){case m:b=0;break;case r:b=s-l+p*(s<l?6:0),b/=6*p;break;case s:b=l-r+p*2,b/=6*p;break;case l:b=r-s+p*4,b/=6*p;break;default:break}return[b,I,y]}function Tu(r,s){var l=eh(r[0]*255,r[1]*255,r[2]*255);return l[1]+=s,l[1]>1?l[1]=1:l[1]<=0&&(l[1]=0),th(l[0],l[1],l[2])}function xu(r,s){var l=eh(r[0]*255,r[1]*255,r[2]*255);return l[2]+=s,l[2]>1?l[2]=1:l[2]<0&&(l[2]=0),th(l[0],l[1],l[2])}function Au(r,s){var l=eh(r[0]*255,r[1]*255,r[2]*255);return l[0]+=s/360,l[0]>1?l[0]-=1:l[0]<0&&(l[0]+=1),th(l[0],l[1],l[2])}var TC=function(){var r=[],s,l;for(s=0;s<256;s+=1)l=s.toString(16),r[s]=l.length===1?"0"+l:l;return function(c,m,p){return c<0&&(c=0),m<0&&(m=0),p<0&&(p=0),"#"+r[c]+r[m]+r[p]}}(),sT=function(s){st=!!s},aT=function(){return st},nT=function(s){ht=s},fl=function(){return ht},xC=function(s){bt=s},Su=function(){return bt},vl=function(s){Se=s},$a=function(){return Se},lT=function(s){yt=s},AC=function(){return yt};function _t(r){return document.createElementNS(n,r)}function gl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gl=function(l){return typeof l}:gl=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},gl(r)}var Va=function(){var r=1,s=[],l,c,m={onmessage:function(){},postMessage:function(O){l({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function b(x){if(window.Worker&&window.Blob&&a()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),F=URL.createObjectURL(O);return new Worker(F)}return l=x,m}function I(){c||(c=b(function(O){function F(){function K(it,_){var P,g,E=it.length,q,B,ct,gt;for(g=0;g<E;g+=1)if(P=it[g],"ks"in P&&!P.completed){if(P.completed=!0,P.hasMask){var It=P.masksProperties;for(B=It.length,q=0;q<B;q+=1)if(It[q].pt.k.i)N(It[q].pt.k);else for(gt=It[q].pt.k.length,ct=0;ct<gt;ct+=1)It[q].pt.k[ct].s&&N(It[q].pt.k[ct].s[0]),It[q].pt.k[ct].e&&N(It[q].pt.k[ct].e[0])}P.ty===0?(P.layers=T(P.refId,_),K(P.layers,_)):P.ty===4?C(P.shapes):P.ty===5&&wt(P)}}function L(it,_){if(it){var P=0,g=it.length;for(P=0;P<g;P+=1)it[P].t===1&&(it[P].data.layers=T(it[P].data.refId,_),K(it[P].data.layers,_))}}function w(it,_){for(var P=0,g=_.length;P<g;){if(_[P].id===it)return _[P];P+=1}return null}function T(it,_){var P=w(it,_);return P?P.layers.__used?JSON.parse(JSON.stringify(P.layers)):(P.layers.__used=!0,P.layers):null}function C(it){var _,P=it.length,g,E;for(_=P-1;_>=0;_-=1)if(it[_].ty==="sh")if(it[_].ks.k.i)N(it[_].ks.k);else for(E=it[_].ks.k.length,g=0;g<E;g+=1)it[_].ks.k[g].s&&N(it[_].ks.k[g].s[0]),it[_].ks.k[g].e&&N(it[_].ks.k[g].e[0]);else it[_].ty==="gr"&&C(it[_].it)}function N(it){var _,P=it.i.length;for(_=0;_<P;_+=1)it.i[_][0]+=it.v[_][0],it.i[_][1]+=it.v[_][1],it.o[_][0]+=it.v[_][0],it.o[_][1]+=it.v[_][1]}function V(it,_){var P=_?_.split("."):[100,100,100];return it[0]>P[0]?!0:P[0]>it[0]?!1:it[1]>P[1]?!0:P[1]>it[1]?!1:it[2]>P[2]?!0:P[2]>it[2]?!1:null}var W=function(){var it=[4,4,14];function _(g){var E=g.t.d;g.t.d={k:[{s:E,t:0}]}}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),X=function(){var it=[4,7,99];return function(_){if(_.chars&&!V(it,_.v)){var P,g=_.chars.length;for(P=0;P<g;P+=1){var E=_.chars[P];E.data&&E.data.shapes&&(C(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},_.chars[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"})))}}}}(),ot=function(){var it=[5,7,15];function _(g){var E=g.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(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===5&&_(g[E])}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),St=function(){var it=[4,1,9];function _(g){var E,q=g.length,B,ct;for(E=0;E<q;E+=1)if(g[E].ty==="gr")_(g[E].it);else if(g[E].ty==="fl"||g[E].ty==="st")if(g[E].c.k&&g[E].c.k[0].i)for(ct=g[E].c.k.length,B=0;B<ct;B+=1)g[E].c.k[B].s&&(g[E].c.k[B].s[0]/=255,g[E].c.k[B].s[1]/=255,g[E].c.k[B].s[2]/=255,g[E].c.k[B].s[3]/=255),g[E].c.k[B].e&&(g[E].c.k[B].e[0]/=255,g[E].c.k[B].e[1]/=255,g[E].c.k[B].e[2]/=255,g[E].c.k[B].e[3]/=255);else g[E].c.k[0]/=255,g[E].c.k[1]/=255,g[E].c.k[2]/=255,g[E].c.k[3]/=255}function P(g){var E,q=g.length;for(E=0;E<q;E+=1)g[E].ty===4&&_(g[E].shapes)}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}(),ft=function(){var it=[4,4,18];function _(g){var E,q=g.length,B,ct;for(E=q-1;E>=0;E-=1)if(g[E].ty==="sh")if(g[E].ks.k.i)g[E].ks.k.c=g[E].closed;else for(ct=g[E].ks.k.length,B=0;B<ct;B+=1)g[E].ks.k[B].s&&(g[E].ks.k[B].s[0].c=g[E].closed),g[E].ks.k[B].e&&(g[E].ks.k[B].e[0].c=g[E].closed);else g[E].ty==="gr"&&_(g[E].it)}function P(g){var E,q,B=g.length,ct,gt,It,Bt;for(q=0;q<B;q+=1){if(E=g[q],E.hasMask){var Ut=E.masksProperties;for(gt=Ut.length,ct=0;ct<gt;ct+=1)if(Ut[ct].pt.k.i)Ut[ct].pt.k.c=Ut[ct].cl;else for(Bt=Ut[ct].pt.k.length,It=0;It<Bt;It+=1)Ut[ct].pt.k[It].s&&(Ut[ct].pt.k[It].s[0].c=Ut[ct].cl),Ut[ct].pt.k[It].e&&(Ut[ct].pt.k[It].e[0].c=Ut[ct].cl)}E.ty===4&&_(E.shapes)}}return function(g){if(V(it,g.v)&&(P(g.layers),g.assets)){var E,q=g.assets.length;for(E=0;E<q;E+=1)g.assets[E].layers&&P(g.assets[E].layers)}}}();function nt(it){it.__complete||(St(it),W(it),X(it),ot(it),ft(it),K(it.layers,it.assets),L(it.chars,it.assets),it.__complete=!0)}function wt(it){it.t.a.length===0&&"m"in it.t.p}var mt={};return mt.completeData=nt,mt.checkColors=St,mt.checkChars=X,mt.checkPathProperties=ot,mt.checkShapes=ft,mt.completeLayers=K,mt}if(p.dataManager||(p.dataManager=F()),p.assetLoader||(p.assetLoader=function(){function K(w){var T=w.getResponseHeader("content-type");return T&&w.responseType==="json"&&T.indexOf("json")!==-1||w.response&&gl(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,C,N){var V,W=new XMLHttpRequest;try{W.responseType="json"}catch{}W.onreadystatechange=function(){if(W.readyState===4)if(W.status===200)V=K(W),C(V);else try{V=K(W),C(V)}catch(X){N&&N(X)}};try{W.open(["G","E","T"].join(""),w,!0)}catch{W.open(["G","E","T"].join(""),T+"/"+w,!0)}W.send()}return{load:L}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(K){p.dataManager.completeData(K),p.postMessage({id:O.data.id,payload:K,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var D=O.data.animation;p.dataManager.completeData(D),p.postMessage({id:O.data.id,payload:D,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(K){p.postMessage({id:O.data.id,payload:K,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),c.onmessage=function(x){var O=x.data,F=O.id,D=s[F];s[F]=null,O.status==="success"?D.onComplete(O.payload):D.onError&&D.onError()})}function y(x,O){r+=1;var F="processId_"+r;return s[F]={onComplete:x,onError:O},F}function k(x,O,F){I();var D=y(O,F);c.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function M(x,O,F){I();var D=y(O,F);c.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:D})}function Y(x,O,F){I();var D=y(O,F);c.postMessage({type:"complete",animation:x,id:D})}return{loadAnimation:k,loadData:M,completeAnimation:Y}}(),dT=function(){var r=function(){var L=v("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 s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function l(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function c(L,w,T){var C="";if(L.e)C=L.p;else if(w){var N=L.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),C=w+N}else C=T,C+=L.u?L.u:"",C+=L.p;return C}function m(L){var w=0,T=setInterval((function(){var C=L.getBBox();(C.width||w>500)&&(this._imageLoaded(),clearInterval(T)),w+=1}).bind(this),50)}function p(L){var w=c(L,this.assetsPath,this.path),T=_t("image");Ct?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var C={img:T,assetData:L};return C}function b(L){var w=c(L,this.assetsPath,this.path),T=v("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){C.img=r,this._imageLoaded()}).bind(this),!1),T.src=w;var C={img:T,assetData:L};return C}function I(L){var w={assetData:L},T=c(L,this.assetsPath,this.path);return Va.loadData(T,(function(C){w.img=C,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function y(L,w){this.imagesLoadedCb=w;var T,C=L.length;for(T=0;T<C;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 Y(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 F(){return this.totalFootages===this.loadedFootagesCount}function D(L,w){L==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function K(){this._imageLoaded=s.bind(this),this._footageLoaded=l.bind(this),this.testImageLoaded=m.bind(this),this.createFootageData=I.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return K.prototype={loadAssets:y,setAssetsPath:M,setPath:k,loadedImages:O,loadedFootages:F,destroy:x,getAsset:Y,createImgData:b,createImageData:p,imageLoaded:s,footageLoaded:l,setCacheType:D},K}();function Iu(){}Iu.prototype={triggerEvent:function(s,l){if(this._cbs[s])for(var c=this._cbs[s],m=0;m<c.length;m+=1)c[m](l)},addEventListener:function(s,l){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(l),(function(){this.removeEventListener(s,l)}).bind(this)},removeEventListener:function(s,l){if(!l)this._cbs[s]=null;else if(this._cbs[s]){for(var c=0,m=this._cbs[s].length;c<m;)this._cbs[s][c]===l&&(this._cbs[s].splice(c,1),c-=1,m-=1),c+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var cT=function(){function r(s){for(var l=s.split(`\r
2
+ `),c={},m,p=0,b=0;b<l.length;b+=1)m=l[b].split(":"),m.length===2&&(c[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return c}return function(s){for(var l=[],c=0;c<s.length;c+=1){var m=s[c],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[c].cm)}catch{try{p.payload=r(s[c].cm)}catch{p.payload={name:s[c].cm}}}l.push(p)}return l}}(),hT=function(){function r(s){this.compositions.push(s)}return function(){function s(l){for(var c=0,m=this.compositions.length;c<m;){if(this.compositions[c].data&&this.compositions[c].data.nm===l)return this.compositions[c].prepareFrame&&this.compositions[c].data.xt&&this.compositions[c].prepareFrame(this.currentFrame),this.compositions[c].compInterface;c+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),za={},pT=function(s,l){za[s]=l};function mT(r){return za[r]}function uT(){if(za.canvas)return"canvas";for(var r in za)if(za[r])return r;return""}function Ba(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ba=function(l){return typeof l}:Ba=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Ba(r)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=er(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=aT(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=hT(),this.imagePreloader=new dT,this.audioController=J(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new _r("drawnFrame",0,0,0),this.expressionsPlugin=fl()};S([Iu],vt),vt.prototype.setParams=function(r){(r.wrapper||r.container)&&(this.wrapper=r.wrapper||r.container);var s="svg";r.animType?s=r.animType:r.renderer&&(s=r.renderer);var l=mT(s);this.renderer=new l(this,r.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,r.loop===""||r.loop===null||r.loop===void 0||r.loop===!0?this.loop=!0:r.loop===!1?this.loop=!1:this.loop=parseInt(r.loop,10),this.autoplay="autoplay"in r?r.autoplay:!0,this.name=r.name?r.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(r,"autoloadSegments")?r.autoloadSegments:!0,this.assetsPath=r.assetsPath,this.initialSegment=r.initialSegment,r.audioFactory&&this.audioController.setAudioFactory(r.audioFactory),r.animationData?this.setupAnimation(r.animationData):r.path&&(r.path.lastIndexOf("\\")!==-1?this.path=r.path.substr(0,r.path.lastIndexOf("\\")+1):this.path=r.path.substr(0,r.path.lastIndexOf("/")+1),this.fileName=r.path.substr(r.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Va.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Va.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Ba(s)!=="object"&&(s=JSON.parse(s));var l={wrapper:r,animationData:s},c=r.attributes;l.path=c.getNamedItem("data-animation-path")?c.getNamedItem("data-animation-path").value:c.getNamedItem("data-bm-path")?c.getNamedItem("data-bm-path").value:c.getNamedItem("bm-path")?c.getNamedItem("bm-path").value:"",l.animType=c.getNamedItem("data-anim-type")?c.getNamedItem("data-anim-type").value:c.getNamedItem("data-bm-type")?c.getNamedItem("data-bm-type").value:c.getNamedItem("bm-type")?c.getNamedItem("bm-type").value:c.getNamedItem("data-bm-renderer")?c.getNamedItem("data-bm-renderer").value:c.getNamedItem("bm-renderer")?c.getNamedItem("bm-renderer").value:uT()||"canvas";var m=c.getNamedItem("data-anim-loop")?c.getNamedItem("data-anim-loop").value:c.getNamedItem("data-bm-loop")?c.getNamedItem("data-bm-loop").value:c.getNamedItem("bm-loop")?c.getNamedItem("bm-loop").value:"";m==="false"?l.loop=!1:m==="true"?l.loop=!0:m!==""&&(l.loop=parseInt(m,10));var p=c.getNamedItem("data-anim-autoplay")?c.getNamedItem("data-anim-autoplay").value:c.getNamedItem("data-bm-autoplay")?c.getNamedItem("data-bm-autoplay").value:c.getNamedItem("bm-autoplay")?c.getNamedItem("bm-autoplay").value:!0;l.autoplay=p!=="false",l.name=c.getNamedItem("data-name")?c.getNamedItem("data-name").value:c.getNamedItem("data-bm-name")?c.getNamedItem("data-bm-name").value:c.getNamedItem("bm-name")?c.getNamedItem("bm-name").value:"";var b=c.getNamedItem("data-anim-prerender")?c.getNamedItem("data-anim-prerender").value:c.getNamedItem("data-bm-prerender")?c.getNamedItem("data-bm-prerender").value:c.getNamedItem("bm-prerender")?c.getNamedItem("bm-prerender").value:"";b==="false"&&(l.prerender=!1),l.path?this.setParams(l):this.trigger("destroy")},vt.prototype.includeLayers=function(r){r.op>this.animationData.op&&(this.animationData.op=r.op,this.totalFrames=Math.floor(r.op-this.animationData.ip));var s=this.animationData.layers,l,c=s.length,m=r.layers,p,b=m.length;for(p=0;p<b;p+=1)for(l=0;l<c;){if(s[l].id===m[p].id){s[l]=m[p];break}l+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(c=r.assets.length,l=0;l<c;l+=1)this.animationData.assets.push(r.assets[l]);this.animationData.__complete=!1,Va.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=fl();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var l=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Va.loadData(l,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var r=this.animationData.segments;r||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(r){if(this.renderer)try{this.animationData=r,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(r),r.assets||(r.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(r.assets),this.markers=cT(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=fl();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var l=typeof r=="number"?r:void 0,c=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(l,c)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,l=0;l<this.markers.length;l+=1)if(s=this.markers[l],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,l){if(!(l&&this.name!==l)){var c=Number(r);if(isNaN(c)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(c,s,l);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,l=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(l=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(l=!0,s=0)):this.setCurrentRawFrameValue(s),l&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(r,s){this.playCount=0,r[1]<r[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=r[0]-r[1],this.timeCompleted=this.totalFrames,this.firstFrame=r[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):r[1]>r[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=r[1]-r[0],this.timeCompleted=this.totalFrames,this.firstFrame=r[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},vt.prototype.setSegment=function(r,s){var l=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?l=r:this.currentRawFrame+this.firstFrame>s&&(l=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,l!==-1&&this.goToAndStop(l,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Ba(r[0])==="object"){var l,c=r.length;for(l=0;l<c;l+=1)this.segments.push(r[l])}else this.segments.push(r);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(r){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),r&&this.checkSegments(0)},vt.prototype.checkSegments=function(r){return this.segments.length?(this.adjustSegment(this.segments.shift(),r),!0):!1},vt.prototype.destroy=function(r){r&&this.name!==r||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(r){this.currentRawFrame=r,this.gotoFrame()},vt.prototype.setSpeed=function(r){this.playSpeed=r,this.updaFrameModifier()},vt.prototype.setDirection=function(r){this.playDirection=r<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(r){this.loop=r},vt.prototype.setVolume=function(r,s){s&&this.name!==s||this.audioController.setVolume(r)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(r){r&&this.name!==r||this.audioController.mute()},vt.prototype.unmute=function(r){r&&this.name!==r||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(r){var s="";if(r.e)s=r.p;else if(this.assetsPath){var l=r.p;l.indexOf("images/")!==-1&&(l=l.split("/")[1]),s=this.assetsPath+l}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,l=this.assets.length;s<l;){if(r===this.assets[s].id)return this.assets[s];s+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(r){return r?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(r,s,l){try{var c=this.renderer.getElementByPath(r);c.updateDocumentData(s,l)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new _r(r,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(r,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(r,new bu(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new ul(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new yu(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Eu(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new _r(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new bu(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new ul(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new yu(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Eu(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new iT(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new oT(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var be=function(){var r={},s=[],l=0,c=0,m=0,p=!0,b=!1;function I(_){for(var P=0,g=_.target;P<c;)s[P].animation===g&&(s.splice(P,1),P-=1,c-=1,g.isPaused||Y()),P+=1}function y(_,P){if(!_)return null;for(var g=0;g<c;){if(s[g].elem===_&&s[g].elem!==null)return s[g].animation;g+=1}var E=new vt;return x(E,_),E.setData(_,P),E}function k(){var _,P=s.length,g=[];for(_=0;_<P;_+=1)g.push(s[_].animation);return g}function M(){m+=1,St()}function Y(){m-=1}function x(_,P){_.addEventListener("destroy",I),_.addEventListener("_active",M),_.addEventListener("_idle",Y),s.push({elem:P,animation:_}),c+=1}function O(_){var P=new vt;return x(P,null),P.setParams(_),P}function F(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setSpeed(_,P)}function D(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setDirection(_,P)}function K(_){var P;for(P=0;P<c;P+=1)s[P].animation.play(_)}function L(_){var P=_-l,g;for(g=0;g<c;g+=1)s[g].animation.advanceTime(P);l=_,m&&!b?window.requestAnimationFrame(L):p=!0}function w(_){l=_,window.requestAnimationFrame(L)}function T(_){var P;for(P=0;P<c;P+=1)s[P].animation.pause(_)}function C(_,P,g){var E;for(E=0;E<c;E+=1)s[E].animation.goToAndStop(_,P,g)}function N(_){var P;for(P=0;P<c;P+=1)s[P].animation.stop(_)}function V(_){var P;for(P=0;P<c;P+=1)s[P].animation.togglePause(_)}function W(_){var P;for(P=c-1;P>=0;P-=1)s[P].animation.destroy(_)}function X(_,P,g){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),q,B=E.length;for(q=0;q<B;q+=1)g&&E[q].setAttribute("data-bm-type",g),y(E[q],_);if(P&&B===0){g||(g="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=v("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",g),ct.appendChild(gt),y(gt,_)}}function ot(){var _;for(_=0;_<c;_+=1)s[_].animation.resize()}function St(){!b&&m&&p&&(window.requestAnimationFrame(w),p=!1)}function ft(){b=!0}function nt(){b=!1,St()}function wt(_,P){var g;for(g=0;g<c;g+=1)s[g].animation.setVolume(_,P)}function mt(_){var P;for(P=0;P<c;P+=1)s[P].animation.mute(_)}function it(_){var P;for(P=0;P<c;P+=1)s[P].animation.unmute(_)}return r.registerAnimation=y,r.loadAnimation=O,r.setSpeed=F,r.setDirection=D,r.play=K,r.pause=T,r.stop=N,r.togglePause=V,r.searchAnimations=X,r.resize=ot,r.goToAndStop=C,r.destroy=W,r.freeze=ft,r.unfreeze=nt,r.setVolume=wt,r.mute=mt,r.unmute=it,r.getRegisteredAnimations=k,r}(),Ua=function(){var r={};r.getBezierEasing=l;var s={};function l(w,T,C,N,V){var W=V||("bez_"+w+"_"+T+"_"+C+"_"+N).replace(/\./g,"p");if(s[W])return s[W];var X=new L([w,T,C,N]);return s[W]=X,X}var c=4,m=.001,p=1e-7,b=10,I=11,y=1/(I-1),k=typeof Float32Array=="function";function M(w,T){return 1-3*T+3*w}function Y(w,T){return 3*T-6*w}function x(w){return 3*w}function O(w,T,C){return((M(T,C)*w+Y(T,C))*w+x(T))*w}function F(w,T,C){return 3*M(T,C)*w*w+2*Y(T,C)*w+x(T)}function D(w,T,C,N,V){var W,X,ot=0;do X=T+(C-T)/2,W=O(X,N,V)-w,W>0?C=X:T=X;while(Math.abs(W)>p&&++ot<b);return X}function K(w,T,C,N){for(var V=0;V<c;++V){var W=F(T,C,N);if(W===0)return T;var X=O(T,C,N)-w;T-=X/W}return T}function L(w){this._p=w,this._mSampleValues=k?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return L.prototype={get:function(T){var C=this._p[0],N=this._p[1],V=this._p[2],W=this._p[3];return this._precomputed||this._precompute(),C===N&&V===W?T:T===0?0:T===1?1:O(this._getTForX(T),N,W)},_precompute:function(){var T=this._p[0],C=this._p[1],N=this._p[2],V=this._p[3];this._precomputed=!0,(T!==C||N!==V)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],C=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*y,T,C)},_getTForX:function(T){for(var C=this._p[0],N=this._p[2],V=this._mSampleValues,W=0,X=1,ot=I-1;X!==ot&&V[X]<=T;++X)W+=y;--X;var St=(T-V[X])/(V[X+1]-V[X]),ft=W+St*y,nt=F(ft,C,N);return nt>=m?K(T,ft,C,N):nt===0?ft:D(T,W,W+y,C,N)}},r}(),Cu=function(){function r(s){return s.concat(Z(s.length))}return{double:r}}(),bl=function(){return function(r,s,l){var c=0,m=r,p=Z(m),b={newElement:I,release:y};function I(){var k;return c?(c-=1,k=p[c]):k=s(),k}function y(k){c===m&&(p=Cu.double(p),m*=2),l&&l(k),p[c]=k,c+=1}return b}}(),_u=function(){function r(){return{addedLength:0,percents:j("float32",$a()),lengths:j("float32",$a())}}return bl(8,r)}(),wu=function(){function r(){return{lengths:[],totalLength:0}}function s(l){var c,m=l.lengths.length;for(c=0;c<m;c+=1)_u.release(l.lengths[c]);l.lengths.length=0}return bl(8,r,s)}();function fT(){var r=Math;function s(x,O,F,D,K,L){var w=x*D+O*K+F*L-K*D-L*x-F*O;return w>-.001&&w<.001}function l(x,O,F,D,K,L,w,T,C){if(F===0&&L===0&&C===0)return s(x,O,D,K,w,T);var N=r.sqrt(r.pow(D-x,2)+r.pow(K-O,2)+r.pow(L-F,2)),V=r.sqrt(r.pow(w-x,2)+r.pow(T-O,2)+r.pow(C-F,2)),W=r.sqrt(r.pow(w-D,2)+r.pow(T-K,2)+r.pow(C-L,2)),X;return N>V?N>W?X=N-V-W:X=W-V-N:W>V?X=W-V-N:X=V-N-W,X>-1e-4&&X<1e-4}var c=function(){return function(x,O,F,D){var K=$a(),L,w,T,C,N,V=0,W,X=[],ot=[],St=_u.newElement();for(T=F.length,L=0;L<K;L+=1){for(N=L/(K-1),W=0,w=0;w<T;w+=1)C=Gt(1-N,3)*x[w]+3*Gt(1-N,2)*N*F[w]+3*(1-N)*Gt(N,2)*D[w]+Gt(N,3)*O[w],X[w]=C,ot[w]!==null&&(W+=Gt(X[w]-ot[w],2)),ot[w]=X[w];W&&(W=Pt(W),V+=W),St.percents[L]=N,St.lengths[L]=V}return St.addedLength=V,St}}();function m(x){var O=wu.newElement(),F=x.c,D=x.v,K=x.o,L=x.i,w,T=x._length,C=O.lengths,N=0;for(w=0;w<T-1;w+=1)C[w]=c(D[w],D[w+1],K[w],L[w+1]),N+=C[w].addedLength;return F&&T&&(C[w]=c(D[w],D[0],K[w],L[0]),N+=C[w].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function b(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,F,D,K){var L=(O[0]+"_"+O[1]+"_"+F[0]+"_"+F[1]+"_"+D[0]+"_"+D[1]+"_"+K[0]+"_"+K[1]).replace(/\./g,"p");if(!x[L]){var w=$a(),T,C,N,V,W,X=0,ot,St,ft=null;O.length===2&&(O[0]!==F[0]||O[1]!==F[1])&&s(O[0],O[1],F[0],F[1],O[0]+D[0],O[1]+D[1])&&s(O[0],O[1],F[0],F[1],F[0]+K[0],F[1]+K[1])&&(w=2);var nt=new p(w);for(N=D.length,T=0;T<w;T+=1){for(St=Z(N),W=T/(w-1),ot=0,C=0;C<N;C+=1)V=Gt(1-W,3)*O[C]+3*Gt(1-W,2)*W*(O[C]+D[C])+3*(1-W)*Gt(W,2)*(F[C]+K[C])+Gt(W,3)*F[C],St[C]=V,ft!==null&&(ot+=Gt(St[C]-ft[C],2));ot=Pt(ot),X+=ot,nt.points[T]=new b(ot,St),ft=St}nt.segmentLength=X,x[L]=nt}return x[L]}}();function y(x,O){var F=O.percents,D=O.lengths,K=F.length,L=ne((K-1)*x),w=x*O.addedLength,T=0;if(L===K-1||L===0||w===D[L])return F[L];for(var C=D[L]>w?-1:1,N=!0;N;)if(D[L]<=w&&D[L+1]>w?(T=(w-D[L])/(D[L+1]-D[L]),N=!1):L+=C,L<0||L>=K-1){if(L===K-1)return F[L];N=!1}return F[L]+(F[L+1]-F[L])*T}function k(x,O,F,D,K,L){var w=y(K,L),T=1-w,C=r.round((T*T*T*x[0]+(w*T*T+T*w*T+T*T*w)*F[0]+(w*w*T+T*w*w+w*T*w)*D[0]+w*w*w*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(w*T*T+T*w*T+T*T*w)*F[1]+(w*w*T+T*w*w+w*T*w)*D[1]+w*w*w*O[1])*1e3)/1e3;return[C,N]}var M=j("float32",8);function Y(x,O,F,D,K,L,w){K<0?K=0:K>1&&(K=1);var T=y(K,w);L=L>1?1:L;var C=y(L,w),N,V=x.length,W=1-T,X=1-C,ot=W*W*W,St=T*W*W*3,ft=T*T*W*3,nt=T*T*T,wt=W*W*X,mt=T*W*X+W*T*X+W*W*C,it=T*T*X+W*T*C+T*W*C,_=T*T*C,P=W*X*X,g=T*X*X+W*C*X+W*X*C,E=T*C*X+W*C*C+T*X*C,q=T*C*C,B=X*X*X,ct=C*X*X+X*C*X+X*X*C,gt=C*C*X+X*C*C+C*X*C,It=C*C*C;for(N=0;N<V;N+=1)M[N*4]=r.round((ot*x[N]+St*F[N]+ft*D[N]+nt*O[N])*1e3)/1e3,M[N*4+1]=r.round((wt*x[N]+mt*F[N]+it*D[N]+_*O[N])*1e3)/1e3,M[N*4+2]=r.round((P*x[N]+g*F[N]+E*D[N]+q*O[N])*1e3)/1e3,M[N*4+3]=r.round((B*x[N]+ct*F[N]+gt*D[N]+It*O[N])*1e3)/1e3;return M}return{getSegmentsLength:m,getNewSegment:Y,getPointInSegment:k,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:l}}var ti=fT(),Bo=e,ku=Math.abs;function Nu(r,s){var l=this.offsetTime,c;this.propType==="multidimensional"&&(c=j("float32",this.pv.length));for(var m=s.lastIndex,p=m,b=this.keyframes.length-1,I=!0,y,k,M;I;){if(y=this.keyframes[p],k=this.keyframes[p+1],p===b-1&&r>=k.t-l){y.h&&(y=k),m=0;break}if(k.t-l>r){m=p;break}p<b-1?p+=1:(m=0,I=!1)}M=this.keyframesMetadata[p]||{};var Y,x,O,F,D,K,L=k.t-l,w=y.t-l,T;if(y.to){M.bezierData||(M.bezierData=ti.buildBezierData(y.s,k.s||y.e,y.to,y.ti));var C=M.bezierData;if(r>=L||r<w){var N=r>=L?C.points.length-1:0;for(x=C.points[N].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[N].point[Y]}else{M.__fnct?K=M.__fnct:(K=Ua.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y,y.n).get,M.__fnct=K),O=K((r-w)/(L-w));var V=C.segmentLength*O,W,X=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(D=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,F=C.points.length;I;){if(X+=C.points[D].partialLength,V===0||O===0||D===C.points.length-1){for(x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y];break}else if(V>=X&&V<X+C.points[D+1].partialLength){for(W=(V-X)/C.points[D+1].partialLength,x=C.points[D].point.length,Y=0;Y<x;Y+=1)c[Y]=C.points[D].point[Y]+(C.points[D+1].point[Y]-C.points[D].point[Y])*W;break}D<F-1?D+=1:I=!1}s._lastPoint=D,s._lastAddedLength=X-C.points[D].partialLength,s._lastKeyframeIndex=p}}else{var ot,St,ft,nt,wt;if(b=y.s.length,T=k.s||y.e,this.sh&&y.h!==1)if(r>=L)c[0]=T[0],c[1]=T[1],c[2]=T[2];else if(r<=w)c[0]=y.s[0],c[1]=y.s[1],c[2]=y.s[2];else{var mt=Lu(y.s),it=Lu(T),_=(r-w)/(L-w);gT(c,vT(mt,it,_))}else for(p=0;p<b;p+=1)y.h!==1&&(r>=L?O=1:r<w?O=0:(y.o.x.constructor===Array?(M.__fnct||(M.__fnct=[]),M.__fnct[p]?K=M.__fnct[p]:(ot=y.o.x[p]===void 0?y.o.x[0]:y.o.x[p],St=y.o.y[p]===void 0?y.o.y[0]:y.o.y[p],ft=y.i.x[p]===void 0?y.i.x[0]:y.i.x[p],nt=y.i.y[p]===void 0?y.i.y[0]:y.i.y[p],K=Ua.getBezierEasing(ot,St,ft,nt).get,M.__fnct[p]=K)):M.__fnct?K=M.__fnct:(ot=y.o.x,St=y.o.y,ft=y.i.x,nt=y.i.y,K=Ua.getBezierEasing(ot,St,ft,nt).get,y.keyframeMetadata=K),O=K((r-w)/(L-w)))),T=k.s||y.e,wt=y.h===1?y.s[p]:y.s[p]+(T[p]-y.s[p])*O,this.propType==="multidimensional"?c[p]=wt:c=wt}return s.lastIndex=m,c}function vT(r,s,l){var c=[],m=r[0],p=r[1],b=r[2],I=r[3],y=s[0],k=s[1],M=s[2],Y=s[3],x,O,F,D,K;return O=m*y+p*k+b*M+I*Y,O<0&&(O=-O,y=-y,k=-k,M=-M,Y=-Y),1-O>1e-6?(x=Math.acos(O),F=Math.sin(x),D=Math.sin((1-l)*x)/F,K=Math.sin(l*x)/F):(D=1-l,K=l),c[0]=D*m+K*y,c[1]=D*p+K*k,c[2]=D*b+K*M,c[3]=D*I+K*Y,c}function gT(r,s){var l=s[0],c=s[1],m=s[2],p=s[3],b=Math.atan2(2*c*p-2*l*m,1-2*c*c-2*m*m),I=Math.asin(2*l*c+2*m*p),y=Math.atan2(2*l*p-2*c*m,1-2*l*l-2*m*m);r[0]=b/Nt,r[1]=I/Nt,r[2]=y/Nt}function Lu(r){var s=r[0]*Nt,l=r[1]*Nt,c=r[2]*Nt,m=Math.cos(s/2),p=Math.cos(l/2),b=Math.cos(c/2),I=Math.sin(s/2),y=Math.sin(l/2),k=Math.sin(c/2),M=m*p*b-I*y*k,Y=I*y*b+m*p*k,x=I*p*b+m*y*k,O=m*y*b-I*p*k;return[Y,x,O,M]}function Mu(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,l=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==Bo&&(this._caching.lastFrame>=l&&r>=l||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var c=this.interpolateValue(r,this._caching);this.pv=c}return this._caching.lastFrame=r,this.pv}function yl(r){var s;if(this.propType==="unidimensional")s=r*this.mult,ku(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var l=0,c=this.v.length;l<c;)s=r[l]*this.mult,ku(this.v[l]-s)>1e-5&&(this.v[l]=s,this._mdf=!0),l+=1}function El(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,l=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)l=this.effectsSequence[r](l);this.setVValue(l),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Tl(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function bT(r,s,l,c){this.propType="unidimensional",this.mult=l||1,this.data=s,this.v=l?s.k*l:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=El,this.setVValue=yl,this.addEffect=Tl}function yT(r,s,l,c){this.propType="multidimensional",this.mult=l||1,this.data=s,this._mdf=!1,this.elem=r,this.container=c,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=j("float32",p),this.pv=j("float32",p),this.vel=j("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=El,this.setVValue=yl,this.addEffect=Tl}function ET(r,s,l,c){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:Bo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.v=Bo,this.pv=Bo,this._isFirstFrame=!0,this.getValue=El,this.setVValue=yl,this.interpolateValue=Nu,this.effectsSequence=[Mu.bind(this)],this.addEffect=Tl}function TT(r,s,l,c){this.propType="multidimensional";var m,p=s.k.length,b,I,y,k;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(b=s.k[m].s,I=s.k[m+1].s,y=s.k[m].to,k=s.k[m].ti,(b.length===2&&!(b[0]===I[0]&&b[1]===I[1])&&ti.pointOnLine2D(b[0],b[1],I[0],I[1],b[0]+y[0],b[1]+y[1])&&ti.pointOnLine2D(b[0],b[1],I[0],I[1],I[0]+k[0],I[1]+k[1])||b.length===3&&!(b[0]===I[0]&&b[1]===I[1]&&b[2]===I[2])&&ti.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],b[0]+y[0],b[1]+y[1],b[2]+y[2])&&ti.pointOnLine3D(b[0],b[1],b[2],I[0],I[1],I[2],I[0]+k[0],I[1]+k[1],I[2]+k[2]))&&(s.k[m].to=null,s.k[m].ti=null),b[0]===I[0]&&b[1]===I[1]&&y[0]===0&&y[1]===0&&k[0]===0&&k[1]===0&&(b.length===2||b[2]===I[2]&&y[2]===0&&k[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[Mu.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=r,this.container=c,this.comp=r.comp,this.getValue=El,this.setVValue=yl,this.interpolateValue=Nu,this.frameId=-1;var M=s.k[0].s.length;for(this.v=j("float32",M),this.pv=j("float32",M),m=0;m<M;m+=1)this.v[m]=Bo,this.pv[m]=Bo;this._caching={lastFrame:Bo,lastIndex:0,value:j("float32",M)},this.addEffect=Tl}var dt=function(){function r(l,c,m,p,b){c.sid&&(c=l.globalData.slotManager.getProp(c));var I;if(!c.k.length)I=new bT(l,c,p,b);else if(typeof c.k[0]=="number")I=new yT(l,c,p,b);else switch(m){case 0:I=new ET(l,c,p,b);break;case 1:I=new TT(l,c,p,b);break;default:break}return I.effectsSequence.length&&b.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ne(){}Ne.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,l=this.dynamicProperties.length;for(s=0;s<l;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Uo=function(){function r(){return j("float32",2)}return bl(8,r)}();function _i(){this.c=!1,this._length=0,this._maxLength=8,this.v=Z(this._maxLength),this.o=Z(this._maxLength),this.i=Z(this._maxLength)}_i.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var l=0;l<s;)this.v[l]=Uo.newElement(),this.o[l]=Uo.newElement(),this.i[l]=Uo.newElement(),l+=1},_i.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},_i.prototype.doubleArrayLength=function(){this.v=this.v.concat(Z(this._maxLength)),this.i=this.i.concat(Z(this._maxLength)),this.o=this.o.concat(Z(this._maxLength)),this._maxLength*=2},_i.prototype.setXYAt=function(r,s,l,c,m){var p;switch(this._length=Math.max(this._length,c+1),this._length>=this._maxLength&&this.doubleArrayLength(),l){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[c]||p[c]&&!m)&&(p[c]=Uo.newElement()),p[c][0]=r,p[c][1]=s},_i.prototype.setTripleAt=function(r,s,l,c,m,p,b,I){this.setXYAt(r,s,"v",b,I),this.setXYAt(l,c,"o",b,I),this.setXYAt(m,p,"i",b,I)},_i.prototype.reverse=function(){var r=new _i;r.setPathData(this.c,this._length);var s=this.v,l=this.o,c=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],c[0][0],c[0][1],l[0][0],l[0][1],0,!1),m=1);var p=this._length-1,b=this._length,I;for(I=m;I<b;I+=1)r.setTripleAt(s[p][0],s[p][1],c[p][0],c[p][1],l[p][0],l[p][1],I,!1),p-=1;return r},_i.prototype.length=function(){return this._length};var De=function(){function r(){return new _i}function s(m){var p=m._length,b;for(b=0;b<p;b+=1)Uo.release(m.v[b]),Uo.release(m.i[b]),Uo.release(m.o[b]),m.v[b]=null,m.i[b]=null,m.o[b]=null;m._length=0,m.c=!1}function l(m){var p=c.newElement(),b,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,b=0;b<I;b+=1)p.setTripleAt(m.v[b][0],m.v[b][1],m.o[b][0],m.o[b][1],m.i[b][0],m.i[b][1],b);return p}var c=bl(4,r,s);return c.clone=l,c}();function rh(){this._length=0,this._maxLength=4,this.shapes=Z(this._maxLength)}rh.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Z(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},rh.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)De.release(this.shapes[r]);this._length=0};var Ds=function(){var r={newShapeCollection:m,release:p},s=0,l=4,c=Z(l);function m(){var b;return s?(s-=1,b=c[s]):b=new rh,b}function p(b){var I,y=b._length;for(I=0;I<y;I+=1)De.release(b.shapes[I]);b._length=0,s===l&&(c=Cu.double(c),l*=2),c[s]=b,s+=1}return r}(),xl=function(){var r=-999999;function s(L,w,T){var C=T.lastIndex,N,V,W,X,ot,St,ft,nt,wt,mt=this.keyframes;if(L<mt[0].t-this.offsetTime)N=mt[0].s[0],W=!0,C=0;else if(L>=mt[mt.length-1].t-this.offsetTime)N=mt[mt.length-1].s?mt[mt.length-1].s[0]:mt[mt.length-2].e[0],W=!0;else{for(var it=C,_=mt.length-1,P=!0,g,E,q;P&&(g=mt[it],E=mt[it+1],!(E.t-this.offsetTime>L));)it<_-1?it+=1:P=!1;if(q=this.keyframesMetadata[it]||{},W=g.h===1,C=it,!W){if(L>=E.t-this.offsetTime)nt=1;else if(L<g.t-this.offsetTime)nt=0;else{var B;q.__fnct?B=q.__fnct:(B=Ua.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,q.__fnct=B),nt=B((L-(g.t-this.offsetTime))/(E.t-this.offsetTime-(g.t-this.offsetTime)))}V=E.s?E.s[0]:g.e[0]}N=g.s[0]}for(St=w._length,ft=N.i[0].length,T.lastIndex=C,X=0;X<St;X+=1)for(ot=0;ot<ft;ot+=1)wt=W?N.i[X][ot]:N.i[X][ot]+(V.i[X][ot]-N.i[X][ot])*nt,w.i[X][ot]=wt,wt=W?N.o[X][ot]:N.o[X][ot]+(V.o[X][ot]-N.o[X][ot])*nt,w.o[X][ot]=wt,wt=W?N.v[X][ot]:N.v[X][ot]+(V.v[X][ot]-N.v[X][ot])*nt,w.v[X][ot]=wt}function l(){var L=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,C=this._caching.lastFrame;return C!==r&&(C<w&&L<w||C>T&&L>T)||(this._caching.lastIndex=C<L?this._caching.lastIndex:0,this.interpolateShape(L,this.pv,this._caching)),this._caching.lastFrame=L,this.pv}function c(){this.paths=this.localShapeCollection}function m(L,w){if(L._length!==w._length||L.c!==w.c)return!1;var T,C=L._length;for(T=0;T<C;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 p(L){m(this.v,L)||(this.v=De.clone(L),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function b(){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 I(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 C=T===3?w.pt.k:w.ks.k;this.v=De.clone(C),this.pv=De.clone(this.v),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=c,this.effectsSequence=[]}function y(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=b,I.prototype.setVValue=p,I.prototype.addEffect=y;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 C=this.keyframes[0].s[0].i.length;this.v=De.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,C),this.pv=De.clone(this.v),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=c,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[l.bind(this)]}k.prototype.getValue=b,k.prototype.interpolateShape=s,k.prototype.setVValue=p,k.prototype.addEffect=y;var M=function(){var L=se;function w(T,C){this.v=De.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ds.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=C.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=dt.getProp(T,C.p,1,0,this),this.s=dt.getProp(T,C.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var C=this.p.v[0],N=this.p.v[1],V=this.s.v[0]/2,W=this.s.v[1]/2,X=this.d!==3,ot=this.v;ot.v[0][0]=C,ot.v[0][1]=N-W,ot.v[1][0]=X?C+V:C-V,ot.v[1][1]=N,ot.v[2][0]=C,ot.v[2][1]=N+W,ot.v[3][0]=X?C-V:C+V,ot.v[3][1]=N,ot.i[0][0]=X?C-V*L:C+V*L,ot.i[0][1]=N-W,ot.i[1][0]=X?C+V:C-V,ot.i[1][1]=N-W*L,ot.i[2][0]=X?C+V*L:C-V*L,ot.i[2][1]=N+W,ot.i[3][0]=X?C-V:C+V,ot.i[3][1]=N+W*L,ot.o[0][0]=X?C+V*L:C-V*L,ot.o[0][1]=N-W,ot.o[1][0]=X?C+V:C-V,ot.o[1][1]=N+W*L,ot.o[2][0]=X?C-V*L:C+V*L,ot.o[2][1]=N+W,ot.o[3][0]=X?C-V:C+V,ot.o[3][1]=N-W*L}},S([Ne],w),w}(),Y=function(){function L(w,T){this.v=De.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=dt.getProp(w,T.ir,0,0,this),this.is=dt.getProp(w,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=dt.getProp(w,T.pt,0,0,this),this.p=dt.getProp(w,T.p,1,0,this),this.r=dt.getProp(w,T.r,0,Nt,this),this.or=dt.getProp(w,T.or,0,0,this),this.os=dt.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:c,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,C=Math.PI*2/T,N=!0,V=this.or.v,W=this.ir.v,X=this.os.v,ot=this.is.v,St=2*Math.PI*V/(T*2),ft=2*Math.PI*W/(T*2),nt,wt,mt,it,_=-Math.PI/2;_+=this.r.v;var P=this.data.d===3?-1:1;for(this.v._length=0,nt=0;nt<T;nt+=1){wt=N?V:W,mt=N?X:ot,it=N?St:ft;var g=wt*Math.cos(_),E=wt*Math.sin(_),q=g===0&&E===0?0:E/Math.sqrt(g*g+E*E),B=g===0&&E===0?0:-g/Math.sqrt(g*g+E*E);g+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(g,E,g-q*it*mt*P,E-B*it*mt*P,g+q*it*mt*P,E+B*it*mt*P,nt,!0),N=!N,_+=C*P}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),C=Math.PI*2/T,N=this.or.v,V=this.os.v,W=2*Math.PI*N/(T*4),X,ot=-Math.PI*.5,St=this.data.d===3?-1:1;for(ot+=this.r.v,this.v._length=0,X=0;X<T;X+=1){var ft=N*Math.cos(ot),nt=N*Math.sin(ot),wt=ft===0&&nt===0?0:nt/Math.sqrt(ft*ft+nt*nt),mt=ft===0&&nt===0?0:-ft/Math.sqrt(ft*ft+nt*nt);ft+=+this.p.v[0],nt+=+this.p.v[1],this.v.setTripleAt(ft,nt,ft-wt*W*V*St,nt-mt*W*V*St,ft+wt*W*V*St,nt+mt*W*V*St,X,!0),ot+=C*St}this.paths.length=0,this.paths[0]=this.v}},S([Ne],L),L}(),x=function(){function L(w,T){this.v=De.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=dt.getProp(w,T.p,1,0,this),this.s=dt.getProp(w,T.s,1,0,this),this.r=dt.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],C=this.p.v[1],N=this.s.v[0]/2,V=this.s.v[1]/2,W=qt(N,V,this.r.v),X=W*(1-se);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,C-V+W,T+N,C-V+W,T+N,C-V+X,0,!0),this.v.setTripleAt(T+N,C+V-W,T+N,C+V-X,T+N,C+V-W,1,!0),W!==0?(this.v.setTripleAt(T+N-W,C+V,T+N-W,C+V,T+N-X,C+V,2,!0),this.v.setTripleAt(T-N+W,C+V,T-N+X,C+V,T-N+W,C+V,3,!0),this.v.setTripleAt(T-N,C+V-W,T-N,C+V-W,T-N,C+V-X,4,!0),this.v.setTripleAt(T-N,C-V+W,T-N,C-V+X,T-N,C-V+W,5,!0),this.v.setTripleAt(T-N+W,C-V,T-N+W,C-V,T-N+X,C-V,6,!0),this.v.setTripleAt(T+N-W,C-V,T+N-X,C-V,T+N-W,C-V,7,!0)):(this.v.setTripleAt(T-N,C+V,T-N+X,C+V,T-N,C+V,2),this.v.setTripleAt(T-N,C-V,T-N,C-V+X,T-N,C-V,3))):(this.v.setTripleAt(T+N,C-V+W,T+N,C-V+X,T+N,C-V+W,0,!0),W!==0?(this.v.setTripleAt(T+N-W,C-V,T+N-W,C-V,T+N-X,C-V,1,!0),this.v.setTripleAt(T-N+W,C-V,T-N+X,C-V,T-N+W,C-V,2,!0),this.v.setTripleAt(T-N,C-V+W,T-N,C-V+W,T-N,C-V+X,3,!0),this.v.setTripleAt(T-N,C+V-W,T-N,C+V-X,T-N,C+V-W,4,!0),this.v.setTripleAt(T-N+W,C+V,T-N+W,C+V,T-N+X,C+V,5,!0),this.v.setTripleAt(T+N-W,C+V,T+N-X,C+V,T+N-W,C+V,6,!0),this.v.setTripleAt(T+N,C+V-W,T+N,C+V-W,T+N,C+V-X,7,!0)):(this.v.setTripleAt(T-N,C-V,T-N+X,C-V,T-N,C-V,1,!0),this.v.setTripleAt(T-N,C+V,T-N,C+V-X,T-N,C+V,2,!0),this.v.setTripleAt(T+N,C+V,T+N-X,C+V,T+N,C+V,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:c},S([Ne],L),L}();function O(L,w,T){var C;if(T===3||T===4){var N=T===3?w.pt:w.ks,V=N.k;V.length?C=new k(L,w,T):C=new I(L,w,T)}else T===5?C=new x(L,w):T===6?C=new M(L,w):T===7&&(C=new Y(L,w));return C.k&&L.addDynamicProperty(C),C}function F(){return I}function D(){return k}var K={};return K.getShapeProp=O,K.getConstructorFunction=F,K.getKeyframedConstructorFunction=D,K}();var Pe=function(){var r=Math.cos,s=Math.sin,l=Math.tan,c=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function b(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(1,0,0,0,0,E,-q,0,0,q,E,0,0,0,0,1)}function I(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,0,q,0,0,1,0,0,-q,0,E,0,0,0,0,1)}function y(g){if(g===0)return this;var E=r(g),q=s(g);return this._t(E,-q,0,0,q,E,0,0,0,0,1,0,0,0,0,1)}function k(g,E){return this._t(1,E,g,1,0,0)}function M(g,E){return this.shear(l(g),l(E))}function Y(g,E){var q=r(E),B=s(E);return this._t(q,B,0,0,-B,q,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,l(g),1,0,0,0,0,1,0,0,0,0,1)._t(q,-B,0,0,B,q,0,0,0,0,1,0,0,0,0,1)}function x(g,E,q){return!q&&q!==0&&(q=1),g===1&&E===1&&q===1?this:this._t(g,0,0,0,0,E,0,0,0,0,q,0,0,0,0,1)}function O(g,E,q,B,ct,gt,It,Bt,Ut,ye,ir,ri,or,Le,yr,Yt){return this.props[0]=g,this.props[1]=E,this.props[2]=q,this.props[3]=B,this.props[4]=ct,this.props[5]=gt,this.props[6]=It,this.props[7]=Bt,this.props[8]=Ut,this.props[9]=ye,this.props[10]=ir,this.props[11]=ri,this.props[12]=or,this.props[13]=Le,this.props[14]=yr,this.props[15]=Yt,this}function F(g,E,q){return q=q||0,g!==0||E!==0||q!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,g,E,q,1):this}function D(g,E,q,B,ct,gt,It,Bt,Ut,ye,ir,ri,or,Le,yr,Yt){var ut=this.props;if(g===1&&E===0&&q===0&&B===0&&ct===0&&gt===1&&It===0&&Bt===0&&Ut===0&&ye===0&&ir===1&&ri===0)return ut[12]=ut[12]*g+ut[15]*or,ut[13]=ut[13]*gt+ut[15]*Le,ut[14]=ut[14]*ir+ut[15]*yr,ut[15]*=Yt,this._identityCalculated=!1,this;var Ni=ut[0],lo=ut[1],Li=ut[2],ii=ut[3],Mi=ut[4],Oi=ut[5],sr=ut[6],co=ut[7],ho=ut[8],zr=ut[9],po=ut[10],Br=ut[11],Wo=ut[12],Ll=ut[13],Ml=ut[14],Ol=ut[15];return ut[0]=Ni*g+lo*ct+Li*Ut+ii*or,ut[1]=Ni*E+lo*gt+Li*ye+ii*Le,ut[2]=Ni*q+lo*It+Li*ir+ii*yr,ut[3]=Ni*B+lo*Bt+Li*ri+ii*Yt,ut[4]=Mi*g+Oi*ct+sr*Ut+co*or,ut[5]=Mi*E+Oi*gt+sr*ye+co*Le,ut[6]=Mi*q+Oi*It+sr*ir+co*yr,ut[7]=Mi*B+Oi*Bt+sr*ri+co*Yt,ut[8]=ho*g+zr*ct+po*Ut+Br*or,ut[9]=ho*E+zr*gt+po*ye+Br*Le,ut[10]=ho*q+zr*It+po*ir+Br*yr,ut[11]=ho*B+zr*Bt+po*ri+Br*Yt,ut[12]=Wo*g+Ll*ct+Ml*Ut+Ol*or,ut[13]=Wo*E+Ll*gt+Ml*ye+Ol*Le,ut[14]=Wo*q+Ll*It+Ml*ir+Ol*yr,ut[15]=Wo*B+Ll*Bt+Ml*ri+Ol*Yt,this._identityCalculated=!1,this}function K(g){var E=g.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(g){for(var E=0;E<16;){if(g.props[E]!==this.props[E])return!1;E+=1}return!0}function T(g){var E;for(E=0;E<16;E+=1)g.props[E]=this.props[E];return g}function C(g){var E;for(E=0;E<16;E+=1)this.props[E]=g[E]}function N(g,E,q){return{x:g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],y:g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],z:g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}}function V(g,E,q){return g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12]}function W(g,E,q){return g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13]}function X(g,E,q){return g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]}function ot(){var g=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/g,q=-this.props[1]/g,B=-this.props[4]/g,ct=this.props[0]/g,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/g,It=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/g,Bt=new Pe;return Bt.props[0]=E,Bt.props[1]=q,Bt.props[4]=B,Bt.props[5]=ct,Bt.props[12]=gt,Bt.props[13]=It,Bt}function St(g){var E=this.getInverseMatrix();return E.applyToPointArray(g[0],g[1],g[2]||0)}function ft(g){var E,q=g.length,B=[];for(E=0;E<q;E+=1)B[E]=St(g[E]);return B}function nt(g,E,q){var B=j("float32",6);if(this.isIdentity())B[0]=g[0],B[1]=g[1],B[2]=E[0],B[3]=E[1],B[4]=q[0],B[5]=q[1];else{var ct=this.props[0],gt=this.props[1],It=this.props[4],Bt=this.props[5],Ut=this.props[12],ye=this.props[13];B[0]=g[0]*ct+g[1]*It+Ut,B[1]=g[0]*gt+g[1]*Bt+ye,B[2]=E[0]*ct+E[1]*It+Ut,B[3]=E[0]*gt+E[1]*Bt+ye,B[4]=q[0]*ct+q[1]*It+Ut,B[5]=q[0]*gt+q[1]*Bt+ye}return B}function wt(g,E,q){var B;return this.isIdentity()?B=[g,E,q]:B=[g*this.props[0]+E*this.props[4]+q*this.props[8]+this.props[12],g*this.props[1]+E*this.props[5]+q*this.props[9]+this.props[13],g*this.props[2]+E*this.props[6]+q*this.props[10]+this.props[14]],B}function mt(g,E){if(this.isIdentity())return g+","+E;var q=this.props;return Math.round((g*q[0]+E*q[4]+q[12])*100)/100+","+Math.round((g*q[1]+E*q[5]+q[13])*100)/100}function it(){for(var g=0,E=this.props,q="matrix3d(",B=1e4;g<16;)q+=c(E[g]*B)/B,q+=g===15?")":",",g+=1;return q}function _(g){var E=1e4;return g<1e-6&&g>0||g>-1e-6&&g<0?c(g*E)/E:g}function P(){var g=this.props,E=_(g[0]),q=_(g[1]),B=_(g[4]),ct=_(g[5]),gt=_(g[12]),It=_(g[13]);return"matrix("+E+","+q+","+B+","+ct+","+gt+","+It+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=b,this.rotateY=I,this.rotateZ=y,this.skew=M,this.skewFromAxis=Y,this.shear=k,this.scale=x,this.setTransform=O,this.translate=F,this.transform=D,this.multiply=K,this.applyToPoint=N,this.applyToX=V,this.applyToY=W,this.applyToZ=X,this.applyToPointArray=wt,this.applyToTriplePoints=nt,this.applyToPointStringified=mt,this.toCSS=it,this.to2dCSS=P,this.clone=T,this.cloneFromProps=C,this.equals=w,this.inversePoints=ft,this.inversePoint=St,this.getInverseMatrix=ot,this._t=this.transform,this.isIdentity=L,this._identity=!0,this._identityCalculated=!1,this.props=j("float32",16),this.reset()}}();function Al(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Al=function(l){return typeof l}:Al=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Al(r)}var Wt={},Sl="__[STANDALONE]__",Ou="__[ANIMATIONDATA]__",Ru="";function xT(r){d(r)}function Du(){Sl===!0?be.searchAnimations(Ou,Sl,Ru):be.searchAnimations()}function AT(r){sT(r)}function ST(r){lT(r)}function IT(r){return Sl===!0&&(r.animationData=JSON.parse(Ou)),be.loadAnimation(r)}function CT(r){if(typeof r=="string")switch(r){case"high":vl(200);break;default:case"medium":vl(50);break;case"low":vl(10);break}else!isNaN(r)&&r>1&&vl(r);$a()>=50?Ke(!1):Ke(!0)}function _T(){return typeof navigator<"u"}function wT(r,s){r==="expressions"&&nT(s)}function kT(r){switch(r){case"propertyFactory":return dt;case"shapePropertyFactory":return xl;case"matrix":return Pe;default:return null}}Wt.play=be.play,Wt.pause=be.pause,Wt.setLocationHref=xT,Wt.togglePause=be.togglePause,Wt.setSpeed=be.setSpeed,Wt.setDirection=be.setDirection,Wt.stop=be.stop,Wt.searchAnimations=Du,Wt.registerAnimation=be.registerAnimation,Wt.loadAnimation=IT,Wt.setSubframeRendering=AT,Wt.resize=be.resize,Wt.goToAndStop=be.goToAndStop,Wt.destroy=be.destroy,Wt.setQuality=CT,Wt.inBrowser=_T,Wt.installPlugin=wT,Wt.freeze=be.freeze,Wt.unfreeze=be.unfreeze,Wt.setVolume=be.setVolume,Wt.mute=be.mute,Wt.unmute=be.unmute,Wt.getRegisteredAnimations=be.getRegisteredAnimations,Wt.useWebWorker=i,Wt.setIDPrefix=ST,Wt.__getFactory=kT,Wt.version="5.12.2";function NT(){document.readyState==="complete"&&(clearInterval(OT),Du())}function LT(r){for(var s=Pu.split("&"),l=0;l<s.length;l+=1){var c=s[l].split("=");if(decodeURIComponent(c[0])==r)return decodeURIComponent(c[1])}return null}var Pu="";if(Sl){var Fu=document.getElementsByTagName("script"),MT=Fu.length-1,$u=Fu[MT]||{src:""};Pu=$u.src?$u.src.replace(/^[^\?]+\??/,""):"",Ru=LT("renderer")}var OT=setInterval(NT,100);try{!((typeof Tn>"u"?"undefined":Al(Tn))==="object"&&typeof ld<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Wt)}catch{}var ro=function(){var r={},s={};r.registerModifier=l,r.getModifier=c;function l(m,p){s[m]||(s[m]=p)}function c(m,p,b){return new s[m](p,b)}return r}();function wr(){}wr.prototype.initModifierProperties=function(){},wr.prototype.addShapeToModifier=function(){},wr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:Ds.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},wr.prototype.init=function(r,s){this.shapes=[],this.elem=r,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s),this.frameId=e,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},wr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},S([Ne],wr);function Vr(){}S([wr],Vr),Vr.prototype.initModifierProperties=function(r,s){this.s=dt.getProp(r,s.s,0,.01,this),this.e=dt.getProp(r,s.e,0,.01,this),this.o=dt.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Vr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Vr.prototype.calculateShapeEdges=function(r,s,l,c,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var b=[],I,y=p.length,k;for(I=0;I<y;I+=1)if(k=p[I],!(k.e*m<c||k.s*m>c+l)){var M,Y;k.s*m<=c?M=0:M=(k.s*m-c)/l,k.e*m>=c+l?Y=1:Y=(k.e*m-c)/l,b.push([M,Y])}return b.length||b.push([0,0]),b},Vr.prototype.releasePathsData=function(r){var s,l=r.length;for(s=0;s<l;s+=1)wu.release(r[s]);return r.length=0,r},Vr.prototype.processShapes=function(r){var s,l;if(this._mdf||r){var c=this.o.v%360/360;if(c<0&&(c+=1),this.s.v>1?s=1+c:this.s.v<0?s=0+c:s=this.s.v+c,this.e.v>1?l=1+c:this.e.v<0?l=0+c:l=this.e.v+c,s>l){var m=s;s=l,l=m}s=Math.round(s*1e4)*1e-4,l=Math.round(l*1e4)*1e-4,this.sValue=s,this.eValue=l}else s=this.sValue,l=this.eValue;var p,b,I=this.shapes.length,y,k,M,Y,x,O=0;if(l===s)for(b=0;b<I;b+=1)this.shapes[b].localShapeCollection.releaseShapes(),this.shapes[b].shape._mdf=!0,this.shapes[b].shape.paths=this.shapes[b].localShapeCollection,this._mdf&&(this.shapes[b].pathsData.length=0);else if(l===1&&s===0||l===0&&s===1){if(this._mdf)for(b=0;b<I;b+=1)this.shapes[b].pathsData.length=0,this.shapes[b].shape._mdf=!0}else{var F=[],D,K;for(b=0;b<I;b+=1)if(D=this.shapes[b],!D.shape._mdf&&!this._mdf&&!r&&this.m!==2)D.shape.paths=D.localShapeCollection;else{if(p=D.shape.paths,k=p._length,x=0,!D.shape._mdf&&D.pathsData.length)x=D.totalShapeLength;else{for(M=this.releasePathsData(D.pathsData),y=0;y<k;y+=1)Y=ti.getSegmentsLength(p.shapes[y]),M.push(Y),x+=Y.totalLength;D.totalShapeLength=x,D.pathsData=M}O+=x,D.shape._mdf=!0}var L=s,w=l,T=0,C;for(b=I-1;b>=0;b-=1)if(D=this.shapes[b],D.shape._mdf){for(K=D.localShapeCollection,K.releaseShapes(),this.m===2&&I>1?(C=this.calculateShapeEdges(s,l,D.totalShapeLength,T,O),T+=D.totalShapeLength):C=[[L,w]],k=C.length,y=0;y<k;y+=1){L=C[y][0],w=C[y][1],F.length=0,w<=1?F.push({s:D.totalShapeLength*L,e:D.totalShapeLength*w}):L>=1?F.push({s:D.totalShapeLength*(L-1),e:D.totalShapeLength*(w-1)}):(F.push({s:D.totalShapeLength*L,e:D.totalShapeLength}),F.push({s:0,e:D.totalShapeLength*(w-1)}));var N=this.addShapes(D,F[0]);if(F[0].s!==F[0].e){if(F.length>1){var V=D.shape.paths.shapes[D.shape.paths._length-1];if(V.c){var W=N.pop();this.addPaths(N,K),N=this.addShapes(D,F[1],W)}else this.addPaths(N,K),N=this.addShapes(D,F[1])}this.addPaths(N,K)}}D.shape.paths=K}}},Vr.prototype.addPaths=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)s.addShape(r[l])},Vr.prototype.addSegment=function(r,s,l,c,m,p,b){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(l[0],l[1],"i",p+1),b&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(c[0],c[1],"v",p+1)},Vr.prototype.addSegmentFromArray=function(r,s,l,c){s.setXYAt(r[1],r[5],"o",l),s.setXYAt(r[2],r[6],"i",l+1),c&&s.setXYAt(r[0],r[4],"v",l),s.setXYAt(r[3],r[7],"v",l+1)},Vr.prototype.addShapes=function(r,s,l){var c=r.pathsData,m=r.shape.paths.shapes,p,b=r.shape.paths._length,I,y,k=0,M,Y,x,O,F=[],D,K=!0;for(l?(Y=l._length,D=l._length):(l=De.newElement(),Y=0,D=0),F.push(l),p=0;p<b;p+=1){for(x=c[p].lengths,l.c=m[p].c,y=m[p].c?x.length:x.length+1,I=1;I<y;I+=1)if(M=x[I-1],k+M.addedLength<s.s)k+=M.addedLength,l.c=!1;else if(k>s.e){l.c=!1;break}else s.s<=k&&s.e>=k+M.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],l,Y,K),K=!1):(O=ti.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-k)/M.addedLength,(s.e-k)/M.addedLength,x[I-1]),this.addSegmentFromArray(O,l,Y,K),K=!1,l.c=!1),k+=M.addedLength,Y+=1;if(m[p].c&&x.length){if(M=x[I-1],k<=s.e){var L=x[I-1].addedLength;s.s<=k&&s.e>=k+L?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],l,Y,K),K=!1):(O=ti.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-k)/L,(s.e-k)/L,x[I-1]),this.addSegmentFromArray(O,l,Y,K),K=!1,l.c=!1)}else l.c=!1;k+=M.addedLength,Y+=1}if(l._length&&(l.setXYAt(l.v[D][0],l.v[D][1],"i",D),l.setXYAt(l.v[l._length-1][0],l.v[l._length-1][1],"o",l._length-1)),k>s.e)break;p<b-1&&(l=De.newElement(),K=!0,F.push(l),Y=0)}return F};function Ha(){}S([wr],Ha),Ha.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=dt.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ha.prototype.processPath=function(r,s){var l=s/100,c=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)c[0]+=r.v[p][0],c[1]+=r.v[p][1];c[0]/=m,c[1]/=m;var b=De.newElement();b.c=r.c;var I,y,k,M,Y,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(c[0]-r.v[p][0])*l,y=r.v[p][1]+(c[1]-r.v[p][1])*l,k=r.o[p][0]+(c[0]-r.o[p][0])*-l,M=r.o[p][1]+(c[1]-r.o[p][1])*-l,Y=r.i[p][0]+(c[0]-r.i[p][0])*-l,x=r.i[p][1]+(c[1]-r.i[p][1])*-l,b.setTripleAt(I,y,k,M,Y,x,p);return b},Ha.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var ih=function(){var r=[0,0];function s(y){var k=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||k,this.a&&y.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&y.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&y.skewFromAxis(-this.sk.v,this.sa.v),this.r?y.rotate(-this.r.v):y.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?y.translate(this.px.v,this.py.v,-this.pz.v):y.translate(this.px.v,this.py.v,0):y.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function l(y){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||y){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,Y;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),Y=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),Y=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/k,0)):(M=this.p.pv,Y=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=[],Y=[];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),Y[0]=x.getValueAtTime(x.keyframes[0].t/k,0),Y[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),Y[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/k,0),Y[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/k,0)):(M=[x.pv,O.pv],Y[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/k,x.offsetTime),Y[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/k,O.offsetTime))}else Y=r,M=Y;this.v.rotate(-Math.atan2(M[1]-Y[1],M[0]-Y[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 c(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(y){this._addDynamicProperty(y),this.elem.addDynamicProperty(y),this._isDirty=!0}function b(y,k,M){if(this.elem=y,this.frameId=-1,this.propType="transform",this.data=k,this.v=new Pe,this.pre=new Pe,this.appliedTransformations=0,this.initDynamicPropertyContainer(M||y),k.p&&k.p.s?(this.px=dt.getProp(y,k.p.x,0,0,this),this.py=dt.getProp(y,k.p.y,0,0,this),k.p.z&&(this.pz=dt.getProp(y,k.p.z,0,0,this))):this.p=dt.getProp(y,k.p||{k:[0,0,0]},1,0,this),k.rx){if(this.rx=dt.getProp(y,k.rx,0,Nt,this),this.ry=dt.getProp(y,k.ry,0,Nt,this),this.rz=dt.getProp(y,k.rz,0,Nt,this),k.or.k[0].ti){var Y,x=k.or.k.length;for(Y=0;Y<x;Y+=1)k.or.k[Y].to=null,k.or.k[Y].ti=null}this.or=dt.getProp(y,k.or,1,Nt,this),this.or.sh=!0}else this.r=dt.getProp(y,k.r||{k:0},0,Nt,this);k.sk&&(this.sk=dt.getProp(y,k.sk,0,Nt,this),this.sa=dt.getProp(y,k.sa,0,Nt,this)),this.a=dt.getProp(y,k.a||{k:[0,0,0]},1,0,this),this.s=dt.getProp(y,k.s||{k:[100,100,100]},1,.01,this),k.o?this.o=dt.getProp(y,k.o,0,.01,y):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}b.prototype={applyToMatrix:s,getValue:l,precalculateMatrix:c,autoOrient:m},S([Ne],b),b.prototype.addDynamicProperty=p,b.prototype._addDynamicProperty=Ne.prototype.addDynamicProperty;function I(y,k,M){return new b(y,k,M)}return{getTransformProperty:I}}();function ei(){}S([wr],ei),ei.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=dt.getProp(r,s.c,0,null,this),this.o=dt.getProp(r,s.o,0,null,this),this.tr=ih.getTransformProperty(r,s.tr,this),this.so=dt.getProp(r,s.tr.so,0,.01,this),this.eo=dt.getProp(r,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Pe,this.rMatrix=new Pe,this.sMatrix=new Pe,this.tMatrix=new Pe,this.matrix=new Pe},ei.prototype.applyTransforms=function(r,s,l,c,m,p){var b=p?-1:1,I=c.s.v[0]+(1-c.s.v[0])*(1-m),y=c.s.v[1]+(1-c.s.v[1])*(1-m);r.translate(c.p.v[0]*b*m,c.p.v[1]*b*m,c.p.v[2]),s.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),s.rotate(-c.r.v*b*m),s.translate(c.a.v[0],c.a.v[1],c.a.v[2]),l.translate(-c.a.v[0],-c.a.v[1],c.a.v[2]),l.scale(p?1/I:I,p?1/y:y),l.translate(c.a.v[0],c.a.v[1],c.a.v[2])},ei.prototype.init=function(r,s,l,c){for(this.elem=r,this.arr=s,this.pos=l,this.elemsData=c,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[l]);l>0;)l-=1,this._elements.unshift(s[l]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ei.prototype.resetElements=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},ei.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},ei.prototype.changeGroupRender=function(r,s){var l,c=r.length;for(l=0;l<c;l+=1)r[l]._render=s,r[l].ty==="gr"&&this.changeGroupRender(r[l].it,s)},ei.prototype.processShapes=function(r){var s,l,c,m,p,b=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var y={it:this.cloneElements(this._elements),ty:"gr"};y.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,y),this._groups.splice(0,0,y),this._currentCopies+=1}this.elem.reloadShapes(),b=!0}p=0;var k;for(c=0;c<=this._groups.length-1;c+=1){if(k=p<I,this._groups[c]._render=k,this.changeGroupRender(this._groups[c].it,k),!k){var M=this.elemsData[c].it,Y=M[M.length-1];Y.transform.op.v!==0?(Y.transform.op._mdf=!0,Y.transform.op.v=0):Y.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,F=x>0?Math.floor(x):Math.ceil(x),D=this.pMatrix.props,K=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<F;)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>F;)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)}c=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,C;p;){if(s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,C=l.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(c/(this._currentCopies-1)),w!==0){for((c!==0&&m===1||c!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(K[0],K[1],K[2],K[3],K[4],K[5],K[6],K[7],K[8],K[9],K[10],K[11],K[12],K[13],K[14],K[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(D[0],D[1],D[2],D[3],D[4],D[5],D[6],D[7],D[8],D[9],D[10],D[11],D[12],D[13],D[14],D[15]),T=0;T<C;T+=1)l[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<C;T+=1)l[T]=this.matrix.props[T];w+=1,p-=1,c+=m}}else for(p=this._currentCopies,c=0,m=1;p;)s=this.elemsData[c].it,l=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,c+=m;return b},ei.prototype.addShape=function(){};function Ga(){}S([wr],Ga),Ga.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=dt.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ga.prototype.processPath=function(r,s){var l=De.newElement();l.c=r.c;var c,m=r._length,p,b,I,y,k,M,Y=0,x,O,F,D,K,L;for(c=0;c<m;c+=1)p=r.v[c],I=r.o[c],b=r.i[c],p[0]===I[0]&&p[1]===I[1]&&p[0]===b[0]&&p[1]===b[1]?(c===0||c===m-1)&&!r.c?(l.setTripleAt(p[0],p[1],I[0],I[1],b[0],b[1],Y),Y+=1):(c===0?y=r.v[m-1]:y=r.v[c-1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,K=p[0]+(y[0]-p[0])*M,x=K,L=p[1]-(p[1]-y[1])*M,O=L,F=x-(x-p[0])*se,D=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,K,L,Y),Y+=1,c===m-1?y=r.v[0]:y=r.v[c+1],k=Math.sqrt(Math.pow(p[0]-y[0],2)+Math.pow(p[1]-y[1],2)),M=k?Math.min(k/2,s)/k:0,F=p[0]+(y[0]-p[0])*M,x=F,D=p[1]+(y[1]-p[1])*M,O=D,K=x-(x-p[0])*se,L=O-(O-p[1])*se,l.setTripleAt(x,O,F,D,K,L,Y),Y+=1):(l.setTripleAt(r.v[c][0],r.v[c][1],r.o[c][0],r.o[c][1],r.i[c][0],r.i[c][1],Y),Y+=1);return l},Ga.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.rd.v;if(b!==0){var I,y;for(l=0;l<c;l+=1){if(I=this.shapes[l],y=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(y.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)y.addShape(this.processPath(s[m],b));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Il(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function oh(r){return Math.abs(r)<=1e-5}function Vu(r,s,l){return r*(1-l)+s*l}function io(r,s,l){return[Vu(r[0],s[0],l),Vu(r[1],s[1],l)]}function RT(r,s,l){if(r===0)return[];var c=s*s-4*r*l;if(c<0)return[];var m=-s/(2*r);if(c===0)return[m];var p=Math.sqrt(c)/(2*r);return[m-p,m+p]}function zu(r,s,l,c){return[-r+3*s-3*l+c,3*r-6*s+3*l,-3*r+3*s,r]}function Bu(r){return new de(r,r,r,r,!1)}function de(r,s,l,c,m){m&&Fs(r,s)&&(s=io(r,c,1/3)),m&&Fs(l,c)&&(l=io(r,c,2/3));var p=zu(r[0],s[0],l[0],c[0]),b=zu(r[1],s[1],l[1],c[1]);this.a=[p[0],b[0]],this.b=[p[1],b[1]],this.c=[p[2],b[2]],this.d=[p[3],b[3]],this.points=[r,s,l,c]}de.prototype.point=function(r){return[((this.a[0]*r+this.b[0])*r+this.c[0])*r+this.d[0],((this.a[1]*r+this.b[1])*r+this.c[1])*r+this.d[1]]},de.prototype.derivative=function(r){return[(3*r*this.a[0]+2*this.b[0])*r+this.c[0],(3*r*this.a[1]+2*this.b[1])*r+this.c[1]]},de.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},de.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},de.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(oh(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,l=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(l<0)return[];var c=Math.sqrt(l);return oh(c)?c>0&&c<1?[s]:[]:[s-c,s+c].filter(function(m){return m>0&&m<1})},de.prototype.split=function(r){if(r<=0)return[Bu(this.points[0]),this];if(r>=1)return[this,Bu(this.points[this.points.length-1])];var s=io(this.points[0],this.points[1],r),l=io(this.points[1],this.points[2],r),c=io(this.points[2],this.points[3],r),m=io(s,l,r),p=io(l,c,r),b=io(m,p,r);return[new de(this.points[0],s,m,b,!0),new de(b,p,c,this.points[3],!0)]};function Uu(r,s){var l=r.points[0][s],c=r.points[r.points.length-1][s];if(l>c){var m=c;c=l,l=m}for(var p=RT(3*r.a[s],2*r.b[s],r.c[s]),b=0;b<p.length;b+=1)if(p[b]>0&&p[b]<1){var I=r.point(p[b])[s];I<l?l=I:I>c&&(c=I)}return{min:l,max:c}}de.prototype.bounds=function(){return{x:Uu(this,0),y:Uu(this,1)}},de.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function Cl(r,s,l){var c=r.boundingBox();return{cx:c.cx,cy:c.cy,width:c.width,height:c.height,bez:r,t:(s+l)/2,t1:s,t2:l}}function Hu(r){var s=r.bez.split(.5);return[Cl(s[0],r.t1,r.t),Cl(s[1],r.t,r.t2)]}function DT(r,s){return Math.abs(r.cx-s.cx)*2<r.width+s.width&&Math.abs(r.cy-s.cy)*2<r.height+s.height}function Ka(r,s,l,c,m,p){if(DT(r,s)){if(l>=p||r.width<=c&&r.height<=c&&s.width<=c&&s.height<=c){m.push([r.t,s.t]);return}var b=Hu(r),I=Hu(s);Ka(b[0],I[0],l+1,c,m,p),Ka(b[0],I[1],l+1,c,m,p),Ka(b[1],I[0],l+1,c,m,p),Ka(b[1],I[1],l+1,c,m,p)}}de.prototype.intersections=function(r,s,l){s===void 0&&(s=2),l===void 0&&(l=7);var c=[];return Ka(Cl(this,0,1),Cl(r,0,1),0,s,c,l),c},de.shapeSegment=function(r,s){var l=(s+1)%r.length();return new de(r.v[s],r.o[s],r.i[l],r.v[l],!0)},de.shapeSegmentInverted=function(r,s){var l=(s+1)%r.length();return new de(r.v[l],r.i[l],r.o[s],r.v[s],!0)};function sh(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function _l(r,s,l,c){var m=[r[0],r[1],1],p=[s[0],s[1],1],b=[l[0],l[1],1],I=[c[0],c[1],1],y=sh(sh(m,p),sh(b,I));return oh(y[2])?null:[y[0]/y[2],y[1]/y[2]]}function Ps(r,s,l){return[r[0]+Math.cos(s)*l,r[1]-Math.sin(s)*l]}function ah(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function Fs(r,s){return Il(r[0],s[0])&&Il(r[1],s[1])}function Wa(){}S([wr],Wa),Wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=dt.getProp(r,s.s,0,null,this),this.frequency=dt.getProp(r,s.r,0,null,this),this.pointsType=dt.getProp(r,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Gu(r,s,l,c,m,p,b){var I=l-Math.PI/2,y=l+Math.PI/2,k=s[0]+Math.cos(l)*c*m,M=s[1]-Math.sin(l)*c*m;r.setTripleAt(k,M,k+Math.cos(I)*p,M-Math.sin(I)*p,k+Math.cos(y)*b,M-Math.sin(y)*b,r.length())}function PT(r,s){var l=[s[0]-r[0],s[1]-r[1]],c=-Math.PI*.5,m=[Math.cos(c)*l[0]-Math.sin(c)*l[1],Math.sin(c)*l[0]+Math.cos(c)*l[1]];return m}function FT(r,s){var l=s===0?r.length()-1:s-1,c=(s+1)%r.length(),m=r.v[l],p=r.v[c],b=PT(m,p);return Math.atan2(0,1)-Math.atan2(b[1],b[0])}function Ku(r,s,l,c,m,p,b){var I=FT(s,l),y=s.v[l%s._length],k=s.v[l===0?s._length-1:l-1],M=s.v[(l+1)%s._length],Y=p===2?Math.sqrt(Math.pow(y[0]-k[0],2)+Math.pow(y[1]-k[1],2)):0,x=p===2?Math.sqrt(Math.pow(y[0]-M[0],2)+Math.pow(y[1]-M[1],2)):0;Gu(r,s.v[l%s._length],I,b,c,x/((m+1)*2),Y/((m+1)*2),p)}function $T(r,s,l,c,m,p){for(var b=0;b<c;b+=1){var I=(b+1)/(c+1),y=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,k=s.normalAngle(I),M=s.point(I);Gu(r,M,k,p,l,y/((c+1)*2),y/((c+1)*2),m),p=-p}return p}Wa.prototype.processPath=function(r,s,l,c){var m=r._length,p=De.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var b=-1,I=de.shapeSegment(r,0);Ku(p,r,0,s,l,c,b);for(var y=0;y<m;y+=1)b=$T(p,I,s,l,c,-b),y===m-1&&!r.c?I=null:I=de.shapeSegment(r,(y+1)%m),Ku(p,r,y+1,s,l,c,b);return p},Wa.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),y=this.pointsType.v;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,I,y));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nh(r,s,l){var c=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Ps(r,c,l),Ps(s,c,l)]}function $s(r,s){var l,c,m,p,b,I,y;y=nh(r.points[0],r.points[1],s),l=y[0],c=y[1],y=nh(r.points[1],r.points[2],s),m=y[0],p=y[1],y=nh(r.points[2],r.points[3],s),b=y[0],I=y[1];var k=_l(l,c,m,p);k===null&&(k=c);var M=_l(b,I,m,p);return M===null&&(M=b),new de(l,k,M,I)}function Wu(r,s,l,c,m){var p=s.points[3],b=l.points[0];if(c===3||Fs(p,b))return p;if(c===2){var I=-s.tangentAngle(1),y=-l.tangentAngle(0)+Math.PI,k=_l(p,Ps(p,I+Math.PI/2,100),b,Ps(b,I+Math.PI/2,100)),M=k?ah(k,p):ah(p,b)/2,Y=Ps(p,I,2*M*se);return r.setXYAt(Y[0],Y[1],"o",r.length()-1),Y=Ps(b,y,2*M*se),r.setTripleAt(b[0],b[1],b[0],b[1],Y[0],Y[1],r.length()),b}var x=Fs(p,s.points[2])?s.points[0]:s.points[2],O=Fs(b,l.points[1])?l.points[3]:l.points[1],F=_l(x,p,b,O);return F&&ah(F,p)<m?(r.setTripleAt(F[0],F[1],F[0],F[1],F[0],F[1],r.length()),F):p}function Yu(r,s){var l=r.intersections(s);return l.length&&Il(l[0][0],1)&&l.shift(),l.length?l[0]:null}function ju(r,s){var l=r.slice(),c=s.slice(),m=Yu(r[r.length-1],s[0]);return m&&(l[r.length-1]=r[r.length-1].split(m[0])[0],c[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=Yu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[l,c]}function VT(r){for(var s,l=1;l<r.length;l+=1)s=ju(r[l-1],r[l]),r[l-1]=s[0],r[l]=s[1];return r.length>1&&(s=ju(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function qu(r,s){var l=r.inflectionPoints(),c,m,p,b;if(l.length===0)return[$s(r,s)];if(l.length===1||Il(l[1],1))return p=r.split(l[0]),c=p[0],m=p[1],[$s(c,s),$s(m,s)];p=r.split(l[0]),c=p[0];var I=(l[1]-l[0])/(1-l[0]);return p=p[1].split(I),b=p[0],m=p[1],[$s(c,s),$s(b,s),$s(m,s)]}function Ya(){}S([wr],Ya),Ya.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=dt.getProp(r,s.a,0,null,this),this.miterLimit=dt.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Ya.prototype.processPath=function(r,s,l,c){var m=De.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var b,I,y,k=[];for(b=0;b<p;b+=1)y=de.shapeSegment(r,b),k.push(qu(y,s));if(!r.c)for(b=p-1;b>=0;b-=1)y=de.shapeSegmentInverted(r,b),k.push(qu(y,s));k=VT(k);var M=null,Y=null;for(b=0;b<k.length;b+=1){var x=k[b];for(Y&&(M=Wu(m,Y,x[0],l,c)),Y=x[x.length-1],I=0;I<x.length;I+=1)y=x[I],M&&Fs(y.points[0],M)?m.setXYAt(y.points[1][0],y.points[1][1],"o",m.length()-1):m.setTripleAt(y.points[0][0],y.points[0][1],y.points[1][0],y.points[1][1],y.points[0][0],y.points[0][1],m.length()),m.setTripleAt(y.points[3][0],y.points[3][1],y.points[3][0],y.points[3][1],y.points[2][0],y.points[2][1],m.length()),M=y.points[3]}return k.length&&Wu(m,Y,k[0][0],l,c),m},Ya.prototype.processShapes=function(r){var s,l,c=this.shapes.length,m,p,b=this.amount.v,I=this.miterLimit.v,y=this.lineJoin;if(b!==0){var k,M;for(l=0;l<c;l+=1){if(k=this.shapes[l],M=k.localShapeCollection,!(!k.shape._mdf&&!this._mdf&&!r))for(M.releaseShapes(),k.shape._mdf=!0,s=k.shape.paths.shapes,p=k.shape.paths._length,m=0;m<p;m+=1)M.addShape(this.processPath(s[m],b,y,I));k.shape.paths=k.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Xu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],l="normal",c="normal",m=s.length,p,b=0;b<m;b+=1)switch(p=s[b].toLowerCase(),p){case"italic":c="italic";break;case"bold":l="700";break;case"black":l="900";break;case"medium":l="500";break;case"regular":case"normal":l="400";break;case"light":case"thin":l="200";break;default:break}return{style:c,weight:r.fWeight||l}}var Ho=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},l=[];l=l.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 c=127988,m=917631,p=917601,b=917626,I=65039,y=8205,k=127462,M=127487,Y=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(_){var P=_.split(","),g,E=P.length,q=[];for(g=0;g<E;g+=1)P[g]!=="sans-serif"&&P[g]!=="monospace"&&q.push(P[g]);return q.join(",")}function O(_,P){var g=v("span");g.setAttribute("aria-hidden",!0),g.style.fontFamily=P;var E=v("span");E.innerText="giItT1WQy@!-/#",g.style.position="absolute",g.style.left="-10000px",g.style.top="-10000px",g.style.fontSize="300px",g.style.fontVariant="normal",g.style.fontStyle="normal",g.style.fontWeight="normal",g.style.letterSpacing="0",g.appendChild(E),document.body.appendChild(g);var q=E.offsetWidth;return E.style.fontFamily=x(_)+", "+P,{node:E,w:q,parent:g}}function F(){var _,P=this.fonts.length,g,E,q=P;for(_=0;_<P;_+=1)this.fonts[_].loaded?q-=1:this.fonts[_].fOrigin==="n"||this.fonts[_].origin===0?this.fonts[_].loaded=!0:(g=this.fonts[_].monoCase.node,E=this.fonts[_].monoCase.w,g.offsetWidth!==E?(q-=1,this.fonts[_].loaded=!0):(g=this.fonts[_].sansCase.node,E=this.fonts[_].sansCase.w,g.offsetWidth!==E&&(q-=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)));q!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function D(_,P){var g=document.body&&P?"svg":"canvas",E,q=Xu(_);if(g==="svg"){var B=_t("text");B.style.fontSize="100px",B.setAttribute("font-family",_.fFamily),B.setAttribute("font-style",q.style),B.setAttribute("font-weight",q.weight),B.textContent="1",_.fClass?(B.style.fontFamily="inherit",B.setAttribute("class",_.fClass)):B.style.fontFamily=_.fFamily,P.appendChild(B),E=B}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=q.style+" "+q.weight+" 100px "+_.fFamily,E=ct}function gt(It){return g==="svg"?(E.textContent=It,E.getComputedTextLength()):E.measureText(It).width}return{measureText:gt}}function K(_,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(ir){ir.helper=D(ir),ir.cache={}}),this.fonts=_.list;return}var g=_.list,E,q=g.length,B=q;for(E=0;E<q;E+=1){var ct=!0,gt,It;if(g[E].loaded=!1,g[E].monoCase=O(g[E].fFamily,"monospace"),g[E].sansCase=O(g[E].fFamily,"sans-serif"),!g[E].fPath)g[E].loaded=!0,B-=1;else if(g[E].fOrigin==="p"||g[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+g[E].fFamily+'"], style[f-origin="3"][f-family="'+g[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Bt=v("style");Bt.setAttribute("f-forigin",g[E].fOrigin),Bt.setAttribute("f-origin",g[E].origin),Bt.setAttribute("f-family",g[E].fFamily),Bt.type="text/css",Bt.innerText="@font-face {font-family: "+g[E].fFamily+"; font-style: normal; src: url('"+g[E].fPath+"');}",P.appendChild(Bt)}}else if(g[E].fOrigin==="g"||g[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),It=0;It<gt.length;It+=1)gt[It].href.indexOf(g[E].fPath)!==-1&&(ct=!1);if(ct){var Ut=v("link");Ut.setAttribute("f-forigin",g[E].fOrigin),Ut.setAttribute("f-origin",g[E].origin),Ut.type="text/css",Ut.rel="stylesheet",Ut.href=g[E].fPath,document.body.appendChild(Ut)}}else if(g[E].fOrigin==="t"||g[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),It=0;It<gt.length;It+=1)g[E].fPath===gt[It].src&&(ct=!1);if(ct){var ye=v("link");ye.setAttribute("f-forigin",g[E].fOrigin),ye.setAttribute("f-origin",g[E].origin),ye.setAttribute("rel","stylesheet"),ye.setAttribute("href",g[E].fPath),P.appendChild(ye)}}g[E].helper=D(g[E],P),g[E].cache={},this.fonts.push(g[E])}B===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function L(_){if(_){this.chars||(this.chars=[]);var P,g=_.length,E,q=this.chars.length,B;for(P=0;P<g;P+=1){for(E=0,B=!1;E<q;)this.chars[E].style===_[P].style&&this.chars[E].fFamily===_[P].fFamily&&this.chars[E].ch===_[P].ch&&(B=!0),E+=1;B||(this.chars.push(_[P]),q+=1)}}}function w(_,P,g){for(var E=0,q=this.chars.length;E<q;){if(this.chars[E].ch===_&&this.chars[E].style===P&&this.chars[E].fFamily===g)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,g)),s}function T(_,P,g){var E=this.getFontByName(P),q=_;if(!E.cache[q]){var B=E.helper;if(_===" "){var ct=B.measureText("|"+_+"|"),gt=B.measureText("||");E.cache[q]=(ct-gt)/100}else E.cache[q]=B.measureText(_)/100}return E.cache[q]*g}function C(_){for(var P=0,g=this.fonts.length;P<g;){if(this.fonts[P].fName===_)return this.fonts[P];P+=1}return this.fonts[0]}function N(_){var P=0,g=_.charCodeAt(0);if(g>=55296&&g<=56319){var E=_.charCodeAt(1);E>=56320&&E<=57343&&(P=(g-55296)*1024+E-56320+65536)}return P}function V(_,P){var g=_.toString(16)+P.toString(16);return Y.indexOf(g)!==-1}function W(_){return _===y}function X(_){return _===I}function ot(_){var P=N(_);return P>=k&&P<=M}function St(_){return ot(_.substr(0,2))&&ot(_.substr(2,2))}function ft(_){return l.indexOf(_)!==-1}function nt(_,P){var g=N(_.substr(P,2));if(g!==c)return!1;var E=0;for(P+=2;E<5;){if(g=N(_.substr(P,2)),g<p||g>b)return!1;E+=1,P+=2}return N(_.substr(P,2))===m}function wt(){this.isLoaded=!0}var mt=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)};mt.isModifier=V,mt.isZeroWidthJoiner=W,mt.isFlagEmoji=St,mt.isRegionalCode=ot,mt.isCombinedCharacter=ft,mt.isRegionalFlag=nt,mt.isVariationSelector=X,mt.BLACK_FLAG_CODE_POINT=c;var it={addChars:L,addFonts:K,getCharData:w,getFontByName:C,measureText:T,checkLoadedFonts:F,setIsLoaded:wt};return mt.prototype=it,mt}();function Zu(r){this.animationData=r}Zu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function zT(r){return new Zu(r)}function wl(){}wl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,l=this.renderableComponents.length;for(s=0;s<l;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var lh=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function BT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function UT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function HT(r,s,l){this.p=dt.getProp(s,r.v,1,0,l)}function GT(r,s,l){this.p=dt.getProp(s,r.v,1,0,l)}function KT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function WT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function YT(r,s,l){this.p=dt.getProp(s,r.v,0,0,l)}function jT(){this.p={}}function Qu(r,s){var l=r.ef||[];this.effectElements=[];var c,m=l.length,p;for(c=0;c<m;c+=1)p=new ja(l[c],s),this.effectElements.push(p)}function ja(r,s){this.init(r,s)}S([Ne],ja),ja.prototype.getValue=ja.prototype.iterateDynamicProperties,ja.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var l,c=this.data.ef.length,m,p=this.data.ef;for(l=0;l<c;l+=1){switch(m=null,p[l].ty){case 0:m=new BT(p[l],s,this);break;case 1:m=new UT(p[l],s,this);break;case 2:m=new HT(p[l],s,this);break;case 3:m=new GT(p[l],s,this);break;case 4:case 7:m=new YT(p[l],s,this);break;case 10:m=new KT(p[l],s,this);break;case 11:m=new WT(p[l],s,this);break;case 5:m=new Qu(p[l],s,this);break;default:m=new jT(p[l],s,this);break}m&&this.effectElements.push(m)}};function oo(){}oo.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,l=this.data.masksProperties.length;s<l;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Su();if(s){var l=s("layer"),c=s("effects"),m=s("shape"),p=s("text"),b=s("comp");this.layerInterface=l(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=c.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=b(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=lh(this.data.bm),l=this.baseElement||this.layerElement;l.style["mix-blend-mode"]=s},initBaseData:function(s,l,c){this.globalData=l,this.comp=c,this.data=s,this.layerId=er(),this.data.sr||(this.data.sr=1),this.effectsManager=new Qu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function so(){}so.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,l){var c,m=this.dynamicProperties.length;for(c=0;c<m;c+=1)(l||this._isParent&&this.dynamicProperties[c].propType==="transform")&&(this.dynamicProperties[c].getValue(),this.dynamicProperties[c]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ao(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,l)}ao.prototype.prepareFrame=function(){},S([wl,oo,so],ao),ao.prototype.getBaseElement=function(){return null},ao.prototype.renderFrame=function(){},ao.prototype.destroy=function(){},ao.prototype.initExpressions=function(){var r=Su();if(r){var s=r("footage");this.layerInterface=s(this)}},ao.prototype.getFootageData=function(){return this.footageData};function rr(r,s,l){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,l),this._isPlaying=!1,this._canPlay=!1;var c=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(c),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?dt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=dt.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}rr.prototype.prepareFrame=function(r){if(this.prepareRenderableFrame(r,!0),this.prepareProperties(r,!0),this.tm._placeholder)this._currentTime=r/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var l=this._volume*this._volumeMultiplier;this._previousVolume!==l&&(this._previousVolume=l,this.audio.volume(l))},S([wl,oo,so],rr),rr.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))},rr.prototype.show=function(){},rr.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},rr.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},rr.prototype.resume=function(){this._canPlay=!0},rr.prototype.setRate=function(r){this.audio.rate(r)},rr.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},rr.prototype.getBaseElement=function(){return null},rr.prototype.destroy=function(){},rr.prototype.sourceRectAtTime=function(){},rr.prototype.initExpressions=function(){};function Fe(){}Fe.prototype.checkLayers=function(r){var s,l=this.layers.length,c;for(this.completeLayers=!0,s=l-1;s>=0;s-=1)this.elements[s]||(c=this.layers[s],c.ip-c.st<=r-this.layers[s].st&&c.op-c.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Fe.prototype.createItem=function(r){switch(r.ty){case 2:return this.createImage(r);case 0:return this.createComp(r);case 1:return this.createSolid(r);case 3:return this.createNull(r);case 4:return this.createShape(r);case 5:return this.createText(r);case 6:return this.createAudio(r);case 13:return this.createCamera(r);case 15:return this.createFootage(r);default:return this.createNull(r)}},Fe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Fe.prototype.createAudio=function(r){return new rr(r,this.globalData,this)},Fe.prototype.createFootage=function(r){return new ao(r,this.globalData,this)},Fe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Fe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,l=r.length,c,m=this.layers.length;for(s=0;s<l;s+=1)for(c=0;c<m;){if(this.layers[c].id===r[s].id){this.layers[c]=r[s];break}c+=1}},Fe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Fe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Fe.prototype.buildElementParenting=function(r,s,l){for(var c=this.elements,m=this.layers,p=0,b=m.length;p<b;)m[p].ind==s&&(!c[p]||c[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(l.push(c[p]),c[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,l):r.setHierarchy(l))),p+=1},Fe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Fe.prototype.searchExtraCompositions=function(r){var s,l=r.length;for(s=0;s<l;s+=1)if(r[s].xt){var c=this.createComp(r[s]);c.initExpressions(),this.globalData.projectInterface.registerComposition(c)}},Fe.prototype.getElementById=function(r){var s,l=this.elements.length;for(s=0;s<l;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Fe.prototype.getElementByPath=function(r){var s=r.shift(),l;if(typeof s=="number")l=this.elements[s];else{var c,m=this.elements.length;for(c=0;c<m;c+=1)if(this.elements[c].data.nm===s){l=this.elements[c];break}}return r.length===0?l:l.getElementByPath(r)},Fe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Ho,this.globalData.slotManager=zT(r),this.globalData.fontManager.addChars(r.chars),this.globalData.fontManager.addFonts(r.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=r.fr,this.globalData.nm=r.nm,this.globalData.compSize={w:r.w,h:r.h}};var qT={TRANSFORM_EFFECT:"transformEFfect"};function Vs(){}Vs.prototype={initTransform:function(){var s=new Pe;this.finalTransform={mProp:this.data.ks?ih.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,l=this.finalTransform.mat,c=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;c<m;){if(this.hierarchy[c].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}c+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,l.cloneFromProps(s),c=0;c<m;c+=1)l.multiply(this.hierarchy[c].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,l=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<l;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var c=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(c),s=1;s<l;s+=1){var m=this.localTransforms[s].matrix;c.multiply(m)}c.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<l;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(qT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Pe;var l=0,c=s.length;for(l=0;l<c;l+=1)this.localTransforms.push(s[l])}}},globalToLocal:function(s){var l=[];l.push(this.finalTransform);for(var c=!0,m=this.comp;c;)m.finalTransform?(m.data.hasMask&&l.splice(0,0,m.finalTransform),m=m.comp):c=!1;var p,b=l.length,I;for(p=0;p<b;p+=1)I=l[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Pe};function Go(r,s,l){this.data=r,this.element=s,this.globalData=l,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var c=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=Z(p),this.solidPath="";var b,I=this.masksProperties,y=0,k=[],M,Y,x=er(),O,F,D,K,L="clipPath",w="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(L="mask",w="mask"),(I[m].mode==="s"||I[m].mode==="i")&&y===0?(O=_t("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,b=_t("path"),I[m].mode==="n")this.viewData[m]={op:dt.getProp(this.element,I[m].o,0,.01,this.element),prop:xl.getShapeProp(this.element,I[m],3),elem:b,lastPath:""},c.appendChild(b);else{y+=1,b.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),b.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(L="mask",w="mask",K=dt.getProp(this.element,I[m].x,0,null,this.element),T=er(),F=_t("filter"),F.setAttribute("id",T),D=_t("feMorphology"),D.setAttribute("operator","erode"),D.setAttribute("in","SourceGraphic"),D.setAttribute("radius","0"),F.appendChild(D),c.appendChild(F),b.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(D=null,K=null),this.storedData[m]={elem:b,x:K,expan:D,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){Y=k.length;var C=_t("g");for(M=0;M<Y;M+=1)C.appendChild(k[M]);var N=_t("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+y),N.appendChild(b),c.appendChild(N),C.setAttribute("mask","url("+f()+"#"+x+"_"+y+")"),k.length=0,k.push(C)}else k.push(b);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:b,lastPath:"",op:dt.getProp(this.element,I[m].o,0,.01,this.element),prop:xl.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=_t(L),p=k.length,m=0;m<p;m+=1)this.maskElement.appendChild(k[m]);y>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(w,"url("+f()+"#"+x+")"),c.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Go.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Go.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,l,c=this.masksProperties.length;for(l=0;l<c;l+=1)if((this.viewData[l].prop._mdf||r)&&this.drawPath(this.masksProperties[l],this.viewData[l].prop.v,this.viewData[l]),(this.viewData[l].op._mdf||r)&&this.viewData[l].elem.setAttribute("fill-opacity",this.viewData[l].op.v),this.masksProperties[l].mode!=="n"&&(this.viewData[l].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[l].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[l].x&&(this.storedData[l].x._mdf||r))){var m=this.storedData[l].expan;this.storedData[l].x.v<0?(this.storedData[l].lastOperator!=="erode"&&(this.storedData[l].lastOperator="erode",this.storedData[l].elem.setAttribute("filter","url("+f()+"#"+this.storedData[l].filterId+")")),m.setAttribute("radius",-this.storedData[l].x.v)):(this.storedData[l].lastOperator!=="dilate"&&(this.storedData[l].lastOperator="dilate",this.storedData[l].elem.setAttribute("filter",null)),this.storedData[l].elem.setAttribute("stroke-width",this.storedData[l].x.v*2))}},Go.prototype.getMaskelement=function(){return this.maskElement},Go.prototype.createLayerSolidPath=function(){var r="M0,0 ";return r+=" h"+this.globalData.compSize.w,r+=" v"+this.globalData.compSize.h,r+=" h-"+this.globalData.compSize.w,r+=" v-"+this.globalData.compSize.h+" ",r},Go.prototype.drawPath=function(r,s,l){var c=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(c+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),l.lastPath!==c){var b="";l.elem&&(s.c&&(b=r.inv?this.solidPath+c:c),l.elem.setAttribute("d",b)),l.lastPath=c}},Go.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var qa=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=l;function s(c,m){var p=_t("filter");return p.setAttribute("id",c),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function l(){var c=_t("feColorMatrix");return c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),c}return r}(),Ju=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),kl={},tf="filter_result_";function dh(r){var s,l="SourceGraphic",c=r.data.ef?r.data.ef.length:0,m=er(),p=qa.createFilter(m,!0),b=0;this.filters=[];var I;for(s=0;s<c;s+=1){I=null;var y=r.data.ef[s].ty;if(kl[y]){var k=kl[y].effect;I=new k(p,r.effectsManager.effectElements[s],r,tf+b,l),l=tf+b,kl[y].countsAsEffect&&(b+=1)}I&&this.filters.push(I)}b&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}dh.prototype.renderFrame=function(r){var s,l=this.filters.length;for(s=0;s<l;s+=1)this.filters[s].renderFrame(r)},dh.prototype.getEffects=function(r){var s,l=this.filters.length,c=[];for(s=0;s<l;s+=1)this.filters[s].type===r&&c.push(this.filters[s]);return c};function SC(r,s,l){kl[r]={effect:s,countsAsEffect:l}}function Xa(){}Xa.prototype={initRendererElement:function(){this.layerElement=_t("g")},createContainerElements:function(){this.matteElement=_t("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var l=_t("g");l.setAttribute("id",this.layerId),l.appendChild(this.layerElement),s=l,this.globalData.defs.appendChild(l)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var c=_t("clipPath"),m=_t("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=er();if(c.setAttribute("id",p),c.appendChild(m),this.globalData.defs.appendChild(c),this.checkMasks()){var b=_t("g");b.setAttribute("clip-path","url("+f()+"#"+p+")"),b.appendChild(this.layerElement),this.transformedElement=b,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Go(this.data,this,this.globalData),this.renderableEffectsManager=new dh(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var l=this.layerId+"_"+s,c,m,p,b;if(s===1||s===3){var I=_t("mask");I.setAttribute("id",l),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=_t("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!Ju.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),c=er(),m=qa.createFilter(c),this.globalData.defs.appendChild(m),m.appendChild(qa.createAlphaToLuminanceFilter()),b=_t("g"),b.appendChild(p),I.appendChild(b),b.setAttribute("filter","url("+f()+"#"+c+")"))}else if(s===2){var y=_t("mask");y.setAttribute("id",l),y.setAttribute("mask-type","alpha");var k=_t("g");y.appendChild(k),c=er(),m=qa.createFilter(c);var M=_t("feComponentTransfer");M.setAttribute("in","SourceGraphic"),m.appendChild(M);var Y=_t("feFuncA");Y.setAttribute("type","table"),Y.setAttribute("tableValues","1.0 0.0"),M.appendChild(Y),this.globalData.defs.appendChild(m);var x=_t("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()+"#"+c+")"),k.appendChild(x),p=_t("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(p),Ju.maskType||(y.setAttribute("mask-type","luminance"),m.appendChild(qa.createAlphaToLuminanceFilter()),b=_t("g"),k.appendChild(x),b.appendChild(this.layerElement),k.appendChild(b)),this.globalData.defs.appendChild(y)}this.matteMasks[s]=l}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function zs(){}zs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Za(){}(function(){var r={initElement:function(l,c,m){this.initFrame(),this.initBaseData(l,c,m),this.initTransform(l,c,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var l=this.baseElement||this.layerElement;l.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var l=this.baseElement||this.layerElement;l.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(l){this._mdf=!1,this.prepareRenderableFrame(l),this.prepareProperties(l,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};S([wl,U(r)],Za)})();function Qa(r,s,l){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,l),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}S([oo,Vs,Xa,zs,so,Za],Qa),Qa.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=_t("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Qa.prototype.sourceRectAtTime=function(){return this.sourceRect};function XT(r,s){this.elem=r,this.pos=s}function ef(){}ef.prototype={addShapeToModifiers:function(s){var l,c=this.shapeModifiers.length;for(l=0;l<c;l+=1)this.shapeModifiers[l].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var l=0,c=this.shapeModifiers.length;l<c;)if(this.shapeModifiers[l].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,l=this.shapes.length;for(s=0;s<l;s+=1)this.shapes[s].sh.reset();l=this.shapeModifiers.length;var c;for(s=l-1;s>=0&&(c=this.shapeModifiers[s].processShapes(this._isFirstFrame),!c);s-=1);}},searchProcessedElement:function(s){for(var l=this.processedElements,c=0,m=l.length;c<m;){if(l[c].elem===s)return l[c].pos;c+=1}return 0},addProcessedElement:function(s,l){for(var c=this.processedElements,m=c.length;m;)if(m-=1,c[m].elem===s){c[m].pos=l;return}c.push(new XT(s,l))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var rf={1:"butt",2:"round",3:"square"},of={1:"miter",2:"round",3:"bevel"};function sf(r,s,l){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=l,this.lvl=s,this._isAnimated=!!l.k;for(var c=0,m=r.length;c<m;){if(r[c].mProps.dynamicProperties.length){this._isAnimated=!0;break}c+=1}}sf.prototype.setAsAnimated=function(){this._isAnimated=!0};function af(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=_t("path"),this.msElem=null}af.prototype.reset=function(){this.d="",this._mdf=!1};function Nl(r,s,l,c){this.elem=r,this.frameId=-1,this.dataProps=Z(s.length),this.renderer=l,this.k=!1,this.dashStr="",this.dashArray=j("float32",s.length?s.length-1:0),this.dashoffset=j("float32",1),this.initDynamicPropertyContainer(c);var m,p=s.length||0,b;for(m=0;m<p;m+=1)b=dt.getProp(r,s[m].v,0,0,this),this.k=b.k||this.k,this.dataProps[m]={n:s[m].n,p:b};this.k||this.getValue(!0),this._isAnimated=this.k}Nl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,l=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<l;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},S([Ne],Nl);function nf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(r,s.o,0,.01,this),this.w=dt.getProp(r,s.w,0,null,this),this.d=new Nl(r,s.d||{},"svg",this),this.c=dt.getProp(r,s.c,1,255,this),this.style=l,this._isAnimated=!!this._isAnimated}S([Ne],nf);function lf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(r,s.o,0,.01,this),this.c=dt.getProp(r,s.c,1,255,this),this.style=l}S([Ne],lf);function df(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=l}S([Ne],df);function Ja(r,s,l){this.data=s,this.c=j("uint8c",s.p*4);var c=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=j("float32",c),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=c,this.initDynamicPropertyContainer(l),this.prop=dt.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Ja.prototype.comparePoints=function(r,s){for(var l=0,c=this.o.length/2,m;l<c;){if(m=Math.abs(r[l*4]-r[s*4+l*2]),m>.01)return!1;l+=1}return!0},Ja.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var r=0,s=this.data.k.k.length;r<s;){if(!this.comparePoints(this.data.k.k[r].s,this.data.p))return!1;r+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ja.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,l=this.data.p*4,c,m;for(s=0;s<l;s+=1)c=s%4===0?100:255,m=Math.round(this.prop.v[s]*c),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(l=this.prop.v.length,s=this.data.p*4;s<l;s+=1)c=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},S([Ne],Ja);function Bs(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,l)}Bs.prototype.initGradientData=function(r,s,l){this.o=dt.getProp(r,s.o,0,.01,this),this.s=dt.getProp(r,s.s,1,null,this),this.e=dt.getProp(r,s.e,1,null,this),this.h=dt.getProp(r,s.h||{k:0},0,.01,this),this.a=dt.getProp(r,s.a||{k:0},0,Nt,this),this.g=new Ja(r,s.g,this),this.style=l,this.stops=[],this.setGradientData(l.pElem,s),this.setGradientOpacity(s,l),this._isAnimated=!!this._isAnimated},Bs.prototype.setGradientData=function(r,s){var l=er(),c=_t(s.t===1?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,b,I;for(I=s.g.p*4,b=0;b<I;b+=4)p=_t("stop"),c.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+l+")"),this.gf=c,this.cst=m},Bs.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var l,c,m,p=_t("mask"),b=_t("path");p.appendChild(b);var I=er(),y=er();p.setAttribute("id",y);var k=_t(r.t===1?"linearGradient":"radialGradient");k.setAttribute("id",I),k.setAttribute("spreadMethod","pad"),k.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var M=this.stops;for(c=r.g.p*4;c<m;c+=2)l=_t("stop"),l.setAttribute("stop-color","rgb(255,255,255)"),k.appendChild(l),M.push(l);b.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(b.setAttribute("stroke-linecap",rf[r.lc||2]),b.setAttribute("stroke-linejoin",of[r.lj||2]),r.lj===1&&b.setAttribute("stroke-miterlimit",r.ml)),this.of=k,this.ms=p,this.ost=M,this.maskId=y,s.msElem=b}},S([Ne],Bs);function cf(r,s,l){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=dt.getProp(r,s.w,0,null,this),this.d=new Nl(r,s.d||{},"svg",this),this.initGradientData(r,s,l),this._isAnimated=!!this._isAnimated}S([Bs,Ne],cf);function ZT(){this.it=[],this.prevViewData=[],this.gr=_t("g")}function QT(r,s,l){this.transform={mProps:r,op:s,container:l},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var hf=function(s,l,c,m){if(l===0)return"";var p=s.o,b=s.i,I=s.v,y,k=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(y=1;y<l;y+=1)k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[y][0],b[y][1])+" "+m.applyToPointStringified(I[y][0],I[y][1]);return c&&l&&(k+=" C"+m.applyToPointStringified(p[y-1][0],p[y-1][1])+" "+m.applyToPointStringified(b[0][0],b[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),k+="z"),k},JT=function(){var r=new Pe,s=new Pe,l={createRenderFunction:c};function c(Y){switch(Y.ty){case"fl":return I;case"gf":return k;case"gs":return y;case"st":return M;case"sh":case"el":case"rc":case"sr":return b;case"tr":return m;case"no":return p;default:return null}}function m(Y,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function b(Y,x,O){var F,D,K,L,w,T,C=x.styles.length,N=x.lvl,V,W,X,ot;for(T=0;T<C;T+=1){if(L=x.sh._mdf||O,x.styles[T].lvl<N){for(W=s.reset(),X=N-x.styles[T].lvl,ot=x.transformers.length-1;!L&&X>0;)L=x.transformers[ot].mProps._mdf||L,X-=1,ot-=1;if(L)for(X=N-x.styles[T].lvl,ot=x.transformers.length-1;X>0;)W.multiply(x.transformers[ot].mProps.v),X-=1,ot-=1}else W=r;if(V=x.sh.paths,D=V._length,L){for(K="",F=0;F<D;F+=1)w=V.shapes[F],w&&w._length&&(K+=hf(w,w._length,w.c,W));x.caches[T]=K}else K=x.caches[T];x.styles[T].d+=Y.hd===!0?"":K,x.styles[T]._mdf=L||x.styles[T]._mdf}}function I(Y,x,O){var F=x.style;(x.c._mdf||O)&&F.pElem.setAttribute("fill","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("fill-opacity",x.o.v)}function y(Y,x,O){k(Y,x,O),M(Y,x,O)}function k(Y,x,O){var F=x.gf,D=x.g._hasOpacity,K=x.s.v,L=x.e.v;if(x.o._mdf||O){var w=Y.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(w,x.o.v)}if(x.s._mdf||O){var T=Y.t===1?"x1":"cx",C=T==="x1"?"y1":"cy";F.setAttribute(T,K[0]),F.setAttribute(C,K[1]),D&&!x.g._collapsable&&(x.of.setAttribute(T,K[0]),x.of.setAttribute(C,K[1]))}var N,V,W,X;if(x.g._cmdf||O){N=x.cst;var ot=x.g.c;for(W=N.length,V=0;V<W;V+=1)X=N[V],X.setAttribute("offset",ot[V*4]+"%"),X.setAttribute("stop-color","rgb("+ot[V*4+1]+","+ot[V*4+2]+","+ot[V*4+3]+")")}if(D&&(x.g._omdf||O)){var St=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,W=N.length,V=0;V<W;V+=1)X=N[V],x.g._collapsable||X.setAttribute("offset",St[V*2]+"%"),X.setAttribute("stop-opacity",St[V*2+1])}if(Y.t===1)(x.e._mdf||O)&&(F.setAttribute("x2",L[0]),F.setAttribute("y2",L[1]),D&&!x.g._collapsable&&(x.of.setAttribute("x2",L[0]),x.of.setAttribute("y2",L[1])));else{var ft;if((x.s._mdf||x.e._mdf||O)&&(ft=Math.sqrt(Math.pow(K[0]-L[0],2)+Math.pow(K[1]-L[1],2)),F.setAttribute("r",ft),D&&!x.g._collapsable&&x.of.setAttribute("r",ft)),x.e._mdf||x.h._mdf||x.a._mdf||O){ft||(ft=Math.sqrt(Math.pow(K[0]-L[0],2)+Math.pow(K[1]-L[1],2)));var nt=Math.atan2(L[1]-K[1],L[0]-K[0]),wt=x.h.v;wt>=1?wt=.99:wt<=-1&&(wt=-.99);var mt=ft*wt,it=Math.cos(nt+x.a.v)*mt+K[0],_=Math.sin(nt+x.a.v)*mt+K[1];F.setAttribute("fx",it),F.setAttribute("fy",_),D&&!x.g._collapsable&&(x.of.setAttribute("fx",it),x.of.setAttribute("fy",_))}}}function M(Y,x,O){var F=x.style,D=x.d;D&&(D._mdf||O)&&D.dashStr&&(F.pElem.setAttribute("stroke-dasharray",D.dashStr),F.pElem.setAttribute("stroke-dashoffset",D.dashoffset[0])),x.c&&(x.c._mdf||O)&&F.pElem.setAttribute("stroke","rgb("+ne(x.c.v[0])+","+ne(x.c.v[1])+","+ne(x.c.v[2])+")"),(x.o._mdf||O)&&F.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(F.pElem.setAttribute("stroke-width",x.w.v),F.msElem&&F.msElem.setAttribute("stroke-width",x.w.v))}return l}();function he(r,s,l){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,l),this.prevViewData=[]}S([oo,Vs,Xa,ef,zs,so,Za],he),he.prototype.initSecondaryElement=function(){},he.prototype.identityMatrix=new Pe,he.prototype.buildExpressionInterface=function(){},he.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},he.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,l,c,m=this.stylesList.length,p,b=[],I=!1;for(c=0;c<m;c+=1){for(p=this.stylesList[c],I=!1,b.length=0,r=0;r<s;r+=1)l=this.shapes[r],l.styles.indexOf(p)!==-1&&(b.push(l),I=l._isAnimated||I);b.length>1&&I&&this.setShapesAsAnimated(b)}},he.prototype.setShapesAsAnimated=function(r){var s,l=r.length;for(s=0;s<l;s+=1)r[s].setAsAnimated()},he.prototype.createStyleElement=function(r,s){var l,c=new af(r,s),m=c.pElem;if(r.ty==="st")l=new nf(this,r,c);else if(r.ty==="fl")l=new lf(this,r,c);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Bs:cf;l=new p(this,r,c),this.globalData.defs.appendChild(l.gf),l.maskId&&(this.globalData.defs.appendChild(l.ms),this.globalData.defs.appendChild(l.of),m.setAttribute("mask","url("+f()+"#"+l.maskId+")"))}else r.ty==="no"&&(l=new df(this,r,c));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",rf[r.lc||2]),m.setAttribute("stroke-linejoin",of[r.lj||2]),m.setAttribute("fill-opacity","0"),r.lj===1&&m.setAttribute("stroke-miterlimit",r.ml)),r.r===2&&m.setAttribute("fill-rule","evenodd"),r.ln&&m.setAttribute("id",r.ln),r.cl&&m.setAttribute("class",r.cl),r.bm&&(m.style["mix-blend-mode"]=lh(r.bm)),this.stylesList.push(c),this.addToAnimatedContents(r,l),l},he.prototype.createGroupElement=function(r){var s=new ZT;return r.ln&&s.gr.setAttribute("id",r.ln),r.cl&&s.gr.setAttribute("class",r.cl),r.bm&&(s.gr.style["mix-blend-mode"]=lh(r.bm)),s},he.prototype.createTransformElement=function(r,s){var l=ih.getTransformProperty(this,r,this),c=new QT(l,l.o,s);return this.addToAnimatedContents(r,c),c},he.prototype.createShapeElement=function(r,s,l){var c=4;r.ty==="rc"?c=5:r.ty==="el"?c=6:r.ty==="sr"&&(c=7);var m=xl.getShapeProp(this,r,c,this),p=new sf(s,l,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},he.prototype.addToAnimatedContents=function(r,s){for(var l=0,c=this.animatedContents.length;l<c;){if(this.animatedContents[l].element===s)return;l+=1}this.animatedContents.push({fn:JT.createRenderFunction(r),element:s,data:r})},he.prototype.setElementStyles=function(r){var s=r.styles,l,c=this.stylesList.length;for(l=0;l<c;l+=1)this.stylesList[l].closed||s.push(this.stylesList[l])},he.prototype.reloadShapes=function(){this._isFirstFrame=!0;var r,s=this.itemsData.length;for(r=0;r<s;r+=1)this.prevViewData[r]=this.itemsData[r];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,r=0;r<s;r+=1)this.dynamicProperties[r].getValue();this.renderModifiers()},he.prototype.searchShapes=function(r,s,l,c,m,p,b){var I=[].concat(p),y,k=r.length-1,M,Y,x=[],O=[],F,D,K;for(y=k;y>=0;y-=1){if(K=this.searchProcessedElement(r[y]),K?s[y]=l[K-1]:r[y]._render=b,r[y].ty==="fl"||r[y].ty==="st"||r[y].ty==="gf"||r[y].ty==="gs"||r[y].ty==="no")K?s[y].style.closed=!1:s[y]=this.createStyleElement(r[y],m),r[y]._render&&s[y].style.pElem.parentNode!==c&&c.appendChild(s[y].style.pElem),x.push(s[y].style);else if(r[y].ty==="gr"){if(!K)s[y]=this.createGroupElement(r[y]);else for(Y=s[y].it.length,M=0;M<Y;M+=1)s[y].prevViewData[M]=s[y].it[M];this.searchShapes(r[y].it,s[y].it,s[y].prevViewData,s[y].gr,m+1,I,b),r[y]._render&&s[y].gr.parentNode!==c&&c.appendChild(s[y].gr)}else r[y].ty==="tr"?(K||(s[y]=this.createTransformElement(r[y],c)),F=s[y].transform,I.push(F)):r[y].ty==="sh"||r[y].ty==="rc"||r[y].ty==="el"||r[y].ty==="sr"?(K||(s[y]=this.createShapeElement(r[y],I,m)),this.setElementStyles(s[y])):r[y].ty==="tm"||r[y].ty==="rd"||r[y].ty==="ms"||r[y].ty==="pb"||r[y].ty==="zz"||r[y].ty==="op"?(K?(D=s[y],D.closed=!1):(D=ro.getModifier(r[y].ty),D.init(this,r[y]),s[y]=D,this.shapeModifiers.push(D)),O.push(D)):r[y].ty==="rp"&&(K?(D=s[y],D.closed=!0):(D=ro.getModifier(r[y].ty),s[y]=D,D.init(this,r,y,s),this.shapeModifiers.push(D),b=!1),O.push(D));this.addProcessedElement(r[y],y+1)}for(k=x.length,y=0;y<k;y+=1)x[y].closed=!0;for(k=O.length,y=0;y<k;y+=1)O[y].closed=!0},he.prototype.renderInnerContent=function(){this.renderModifiers();var r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].reset();for(this.renderShape(),r=0;r<s;r+=1)(this.stylesList[r]._mdf||this._isFirstFrame)&&(this.stylesList[r].msElem&&(this.stylesList[r].msElem.setAttribute("d",this.stylesList[r].d),this.stylesList[r].d="M0 0"+this.stylesList[r].d),this.stylesList[r].pElem.setAttribute("d",this.stylesList[r].d||"M0 0"))},he.prototype.renderShape=function(){var r,s=this.animatedContents.length,l;for(r=0;r<s;r+=1)l=this.animatedContents[r],(this._isFirstFrame||l.element._isAnimated)&&l.data!==!0&&l.fn(l.data,l.element,this._isFirstFrame)},he.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ch(r,s,l,c,m,p){this.o=r,this.sw=s,this.sc=l,this.fc=c,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!l,fc:!!c,m:!0,p:!0}}ch.prototype.update=function(r,s,l,c,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var b=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,b=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,b=!0),this.sc!==l&&(this.sc=l,this._mdf.sc=!0,b=!0),this.fc!==c&&(this.fc=c,this._mdf.fc=!0,b=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,b=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,b=!0),b};function We(r,s){this._frameId=e,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=r.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=r,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}We.prototype.defaultBoxWidth=[0,0],We.prototype.copyData=function(r,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r[l]=s[l]);return r},We.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},We.prototype.searchProperty=function(){return this.searchKeyframes()},We.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},We.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},We.prototype.getValue=function(r){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!r)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,l=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var c,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(c=0;c<m;c+=1)l!==this.keysIndex?p=this.effectsSequence[c](p,p.t):p=this.effectsSequence[c](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},We.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,l=0,c=r.length;l<=c-1&&!(l===c-1||r[l+1].t>s);)l+=1;return this.keysIndex!==l&&(this.keysIndex=l),this.data.d.k[this.keysIndex].s},We.prototype.buildFinalText=function(r){for(var s=[],l=0,c=r.length,m,p,b=!1,I=!1,y="";l<c;)b=I,I=!1,m=r.charCodeAt(l),y=r.charAt(l),Ho.isCombinedCharacter(m)?b=!0:m>=55296&&m<=56319?Ho.isRegionalFlag(r,l)?y=r.substr(l,14):(p=r.charCodeAt(l+1),p>=56320&&p<=57343&&(Ho.isModifier(m,p)?(y=r.substr(l,2),b=!0):Ho.isFlagEmoji(r.substr(l,4))?y=r.substr(l,4):y=r.substr(l,2))):m>56319?(p=r.charCodeAt(l+1),Ho.isVariationSelector(m)&&(b=!0)):Ho.isZeroWidthJoiner(m)&&(b=!0,I=!0),b?(s[s.length-1]+=y,b=!1):s.push(y),l+=y.length;return s},We.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,l=this.data,c=[],m,p,b,I=0,y,k=l.m.g,M=0,Y=0,x=0,O=[],F=0,D=0,K,L,w=s.getFontByName(r.f),T,C=0,N=Xu(w);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var V=r.tr/1e3*r.finalSize,W;if(r.sz)for(var X=!0,ot=r.sz[0],St=r.sz[1],ft,nt;X;){nt=this.buildFinalText(r.t),ft=0,F=0,p=nt.length,V=r.tr/1e3*r.finalSize;var wt=-1;for(m=0;m<p;m+=1)W=nt[m].charCodeAt(0),b=!1,nt[m]===" "?wt=m:(W===13||W===3)&&(F=0,b=!0,ft+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(nt[m],w.fStyle,w.fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(nt[m],r.f,r.finalSize),F+C>ot&&nt[m]!==" "?(wt===-1?p+=1:m=wt,ft+=r.finalLineHeight||r.finalSize*1.2,nt.splice(m,wt===m?1:0,"\r"),wt=-1,F=0):(F+=C,F+=V);ft+=w.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&St<ft?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=nt,p=r.finalText.length,X=!1)}F=-V,C=0;var mt=0,it;for(m=0;m<p;m+=1)if(b=!1,it=r.finalText[m],W=it.charCodeAt(0),W===13||W===3?(mt=0,O.push(F),D=F>D?F:D,F=-2*V,y="",b=!0,x+=1):y=it,s.chars?(T=s.getCharData(it,w.fStyle,s.getFontByName(r.f).fFamily),C=b?0:T.w*r.finalSize/100):C=s.measureText(y,r.f,r.finalSize),it===" "?mt+=C+V:(F+=C+V+mt,mt=0),c.push({l:C,an:C,add:M,n:b,anIndexes:[],val:y,line:x,animatorJustifyOffset:0}),k==2){if(M+=C,y===""||y===" "||m===p-1){for((y===""||y===" ")&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;I+=1,M=0}}else if(k==3){if(M+=C,y===""||m===p-1){for(y===""&&(M-=C);Y<=m;)c[Y].an=M,c[Y].ind=I,c[Y].extra=C,Y+=1;M=0,I+=1}}else c[I].ind=I,c[I].extra=0,I+=1;if(r.l=c,D=F>D?F:D,O.push(F),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=D,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var _=l.a,P,g;L=_.length;var E,q,B=[];for(K=0;K<L;K+=1){for(P=_[K],P.a.sc&&(r.strokeColorAnim=!0),P.a.sw&&(r.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(r.fillColorAnim=!0),q=0,E=P.s.b,m=0;m<p;m+=1)g=c[m],g.anIndexes[K]=q,(E==1&&g.val!==""||E==2&&g.val!==""&&g.val!==" "||E==3&&(g.n||g.val==" "||m==p-1)||E==4&&(g.n||m==p-1))&&(P.s.rn===1&&B.push(q),q+=1);l.a[K].s.totalChars=q;var ct=-1,gt;if(P.s.rn===1)for(m=0;m<p;m+=1)g=c[m],ct!=g.anIndexes[K]&&(ct=g.anIndexes[K],gt=B.splice(Math.floor(Math.random()*B.length),1)[0]),g.anIndexes[K]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=w.ascent*r.finalSize/100},We.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var l=this.copyData({},this.data.d.k[s].s);l=this.copyData(l,r),this.data.d.k[s].s=l,this.recalculate(s),this.setCurrentData(l),this.elem.addDynamicProperty(this)},We.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},We.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},We.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var tx=function(){var r=Math.max,s=Math.min,l=Math.floor;function c(p,b){this._currentTextLength=-1,this.k=!1,this.data=b,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=dt.getProp(p,b.s||{k:0},0,0,this),"e"in b?this.e=dt.getProp(p,b.e,0,0,this):this.e={v:100},this.o=dt.getProp(p,b.o||{k:0},0,0,this),this.xe=dt.getProp(p,b.xe||{k:0},0,0,this),this.ne=dt.getProp(p,b.ne||{k:0},0,0,this),this.sm=dt.getProp(p,b.sm||{k:100},0,0,this),this.a=dt.getProp(p,b.a,0,.01,this),this.dynamicProperties.length||this.getValue()}c.prototype={getMult:function(b){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,y=0,k=1,M=1;this.ne.v>0?I=this.ne.v/100:y=-this.ne.v/100,this.xe.v>0?k=1-this.xe.v/100:M=1+this.xe.v/100;var Y=Ua.getBezierEasing(I,y,k,M).get,x=0,O=this.finalS,F=this.finalE,D=this.data.sh;if(D===2)F===O?x=b>=F?1:0:x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===3)F===O?x=b>=F?0:1:x=1-r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x=Y(x);else if(D===4)F===O?x=0:(x=r(0,s(.5/(F-O)+(b-O)/(F-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=Y(x);else if(D===5){if(F===O)x=0;else{var K=F-O;b=s(r(0,b+.5-O),F-O);var L=-K/2+b,w=K/2;x=Math.sqrt(1-L*L/(w*w))}x=Y(x)}else D===6?(F===O?x=0:(b=s(r(0,b+.5-O),F-O),x=(1+Math.cos(Math.PI+Math.PI*2*b/(F-O)))/2),x=Y(x)):(b>=l(O)&&(b-O<0?x=r(0,s(s(F,1)-(O-b),1)):x=r(0,s(F-b,1))),x=Y(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var C=.5-T*.5;x<C?x=0:(x=(x-C)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(b){this.iterateDynamicProperties(),this._mdf=b||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,b&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,y=this.o.v/I,k=this.s.v/I+y,M=this.e.v/I+y;if(k>M){var Y=k;k=M,M=Y}this.finalS=k,this.finalE=M}},S([Ne],c);function m(p,b,I){return new c(p,b,I)}return{getTextSelectorProp:m}}();function ex(r,s,l){var c={propType:!1},m=dt.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,Nt,l):c,rx:p.rx?m(r,p.rx,0,Nt,l):c,ry:p.ry?m(r,p.ry,0,Nt,l):c,sk:p.sk?m(r,p.sk,0,Nt,l):c,sa:p.sa?m(r,p.sa,0,Nt,l):c,s:p.s?m(r,p.s,1,.01,l):c,a:p.a?m(r,p.a,1,0,l):c,o:p.o?m(r,p.o,0,.01,l):c,p:p.p?m(r,p.p,1,0,l):c,sw:p.sw?m(r,p.sw,0,0,l):c,sc:p.sc?m(r,p.sc,1,0,l):c,fc:p.fc?m(r,p.fc,1,0,l):c,fh:p.fh?m(r,p.fh,0,0,l):c,fs:p.fs?m(r,p.fs,0,.01,l):c,fb:p.fb?m(r,p.fb,0,.01,l):c,t:p.t?m(r,p.t,0,0,l):c},this.s=tx.getTextSelectorProp(r,s.s,l),this.s.t=s.s.t}function Ko(r,s,l){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=l,this._animatorsData=Z(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(l)}Ko.prototype.searchProperties=function(){var r,s=this._textData.a.length,l,c=dt.getProp;for(r=0;r<s;r+=1)l=this._textData.a[r],this._animatorsData[r]=new ex(this._elem,l,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:c(this._elem,this._textData.p.a,0,0,this),f:c(this._elem,this._textData.p.f,0,0,this),l:c(this._elem,this._textData.p.l,0,0,this),r:c(this._elem,this._textData.p.r,0,0,this),p:c(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=c(this._elem,this._textData.m.a,1,0,this)},Ko.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var l=this._moreOptions.alignment.v,c=this._animatorsData,m=this._textData,p=this.mHelper,b=this._renderType,I=this.renderedLetters.length,y,k,M,Y,x=r.l,O,F,D,K,L,w,T,C,N,V,W,X,ot,St,ft;if(this._hasMaskedPath){if(ft=this._pathData.m,!this._pathData.n||this._pathData._mdf){var nt=ft.v;this._pathData.r.v&&(nt=nt.reverse()),O={tLength:0,segments:[]},Y=nt._length-1;var wt;for(X=0,M=0;M<Y;M+=1)wt=ti.buildBezierData(nt.v[M],nt.v[M+1],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[M+1][0]-nt.v[M+1][0],nt.i[M+1][1]-nt.v[M+1][1]]),O.tLength+=wt.segmentLength,O.segments.push(wt),X+=wt.segmentLength;M=Y,ft.v.c&&(wt=ti.buildBezierData(nt.v[M],nt.v[0],[nt.o[M][0]-nt.v[M][0],nt.o[M][1]-nt.v[M][1]],[nt.i[0][0]-nt.v[0][0],nt.i[0][1]-nt.v[0][1]]),O.tLength+=wt.segmentLength,O.segments.push(wt),X+=wt.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,F=this._pathData.f.v,T=0,w=1,K=0,L=!0,V=O.segments,F<0&&ft.v.c)for(O.tLength<Math.abs(F)&&(F=-Math.abs(F)%O.tLength),T=V.length-1,N=V[T].points,w=N.length-1;F<0;)F+=N[w].partialLength,w-=1,w<0&&(T-=1,N=V[T].points,w=N.length-1);N=V[T].points,C=N[w-1],D=N[w],W=D.partialLength}Y=x.length,y=0,k=0;var mt=r.finalSize*1.2*.714,it=!0,_,P,g,E,q;E=c.length;var B,ct=-1,gt,It,Bt,Ut=F,ye=T,ir=w,ri=-1,or,Le,yr,Yt,ut,Ni,lo,Li,ii="",Mi=this.defaultPropsArray,Oi;if(r.j===2||r.j===1){var sr=0,co=0,ho=r.j===2?-.5:-1,zr=0,po=!0;for(M=0;M<Y;M+=1)if(x[M].n){for(sr&&(sr+=co);zr<M;)x[zr].animatorJustifyOffset=sr,zr+=1;sr=0,po=!0}else{for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(po&&r.j===2&&(co+=_.t.v*ho),P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?sr+=_.t.v*B[0]*ho:sr+=_.t.v*B*ho);po=!1}for(sr&&(sr+=co);zr<M;)x[zr].animatorJustifyOffset=sr,zr+=1}for(M=0;M<Y;M+=1){if(p.reset(),or=1,x[M].n)y=0,k+=r.yOffset,k+=it?1:0,F=Ut,it=!1,this._hasMaskedPath&&(T=ye,w=ir,N=V[T].points,C=N[w-1],D=N[w],W=D.partialLength,K=0),ii="",Li="",Ni="",Oi="",Mi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ri!==x[M].line){switch(r.j){case 1:F+=X-r.lineWidths[x[M].line];break;case 2:F+=(X-r.lineWidths[x[M].line])/2;break;default:break}ri=x[M].line}ct!==x[M].ind&&(x[ct]&&(F+=x[ct].extra),F+=x[M].an/2,ct=x[M].ind),F+=l[0]*x[M].an*.005;var Br=0;for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Br+=_.p.v[0]*B[0]:Br+=_.p.v[0]*B),_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?Br+=_.a.v[0]*B[0]:Br+=_.a.v[0]*B);for(L=!0,this._pathData.a.v&&(F=x[0].an*.5+(X-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(Y-1),F+=this._pathData.f.v);L;)K+W>=F+Br||!N?(ot=(F+Br-K)/D.partialLength,It=C.point[0]+(D.point[0]-C.point[0])*ot,Bt=C.point[1]+(D.point[1]-C.point[1])*ot,p.translate(-l[0]*x[M].an*.005,-(l[1]*mt)*.01),L=!1):N&&(K+=D.partialLength,w+=1,w>=N.length&&(w=0,T+=1,V[T]?N=V[T].points:ft.v.c?(w=0,T=0,N=V[T].points):(K-=D.partialLength,N=null)),N&&(C=D,D=N[w],W=D.partialLength));gt=x[M].an/2-x[M].add,p.translate(-gt,0,0)}else gt=x[M].an/2-x[M].add,p.translate(-gt,0,0),p.translate(-l[0]*x[M].an*.005,-l[1]*mt*.01,0);for(g=0;g<E;g+=1)_=c[g].a,_.t.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),(y!==0||r.j!==0)&&(this._hasMaskedPath?B.length?F+=_.t.v*B[0]:F+=_.t.v*B:B.length?y+=_.t.v*B[0]:y+=_.t.v*B));for(r.strokeWidthAnim&&(yr=r.sw||0),r.strokeColorAnim&&(r.sc?Le=[r.sc[0],r.sc[1],r.sc[2]]:Le=[0,0,0]),r.fillColorAnim&&r.fc&&(Yt=[r.fc[0],r.fc[1],r.fc[2]]),g=0;g<E;g+=1)_=c[g].a,_.a.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.translate(-_.a.v[0]*B[0],-_.a.v[1]*B[1],_.a.v[2]*B[2]):p.translate(-_.a.v[0]*B,-_.a.v[1]*B,_.a.v[2]*B));for(g=0;g<E;g+=1)_=c[g].a,_.s.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),B.length?p.scale(1+(_.s.v[0]-1)*B[0],1+(_.s.v[1]-1)*B[1],1):p.scale(1+(_.s.v[0]-1)*B,1+(_.s.v[1]-1)*B,1));for(g=0;g<E;g+=1){if(_=c[g].a,P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),_.sk.propType&&(B.length?p.skewFromAxis(-_.sk.v*B[0],_.sa.v*B[1]):p.skewFromAxis(-_.sk.v*B,_.sa.v*B)),_.r.propType&&(B.length?p.rotateZ(-_.r.v*B[2]):p.rotateZ(-_.r.v*B)),_.ry.propType&&(B.length?p.rotateY(_.ry.v*B[1]):p.rotateY(_.ry.v*B)),_.rx.propType&&(B.length?p.rotateX(_.rx.v*B[0]):p.rotateX(_.rx.v*B)),_.o.propType&&(B.length?or+=(_.o.v*B[0]-or)*B[0]:or+=(_.o.v*B-or)*B),r.strokeWidthAnim&&_.sw.propType&&(B.length?yr+=_.sw.v*B[0]:yr+=_.sw.v*B),r.strokeColorAnim&&_.sc.propType)for(ut=0;ut<3;ut+=1)B.length?Le[ut]+=(_.sc.v[ut]-Le[ut])*B[0]:Le[ut]+=(_.sc.v[ut]-Le[ut])*B;if(r.fillColorAnim&&r.fc){if(_.fc.propType)for(ut=0;ut<3;ut+=1)B.length?Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B[0]:Yt[ut]+=(_.fc.v[ut]-Yt[ut])*B;_.fh.propType&&(B.length?Yt=Au(Yt,_.fh.v*B[0]):Yt=Au(Yt,_.fh.v*B)),_.fs.propType&&(B.length?Yt=Tu(Yt,_.fs.v*B[0]):Yt=Tu(Yt,_.fs.v*B)),_.fb.propType&&(B.length?Yt=xu(Yt,_.fb.v*B[0]):Yt=xu(Yt,_.fb.v*B))}}for(g=0;g<E;g+=1)_=c[g].a,_.p.propType&&(P=c[g].s,B=P.getMult(x[M].anIndexes[g],m.a[g].s.totalChars),this._hasMaskedPath?B.length?p.translate(0,_.p.v[1]*B[0],-_.p.v[2]*B[1]):p.translate(0,_.p.v[1]*B,-_.p.v[2]*B):B.length?p.translate(_.p.v[0]*B[0],_.p.v[1]*B[1],-_.p.v[2]*B[2]):p.translate(_.p.v[0]*B,_.p.v[1]*B,-_.p.v[2]*B));if(r.strokeWidthAnim&&(Ni=yr<0?0:yr),r.strokeColorAnim&&(lo="rgb("+Math.round(Le[0]*255)+","+Math.round(Le[1]*255)+","+Math.round(Le[2]*255)+")"),r.fillColorAnim&&r.fc&&(Li="rgb("+Math.round(Yt[0]*255)+","+Math.round(Yt[1]*255)+","+Math.round(Yt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,l[1]*mt*.01+k,0),this._pathData.p.v){St=(D.point[1]-C.point[1])/(D.point[0]-C.point[0]);var Wo=Math.atan(St)*180/Math.PI;D.point[0]<C.point[0]&&(Wo+=180),p.rotate(-Wo*Math.PI/180)}p.translate(It,Bt,0),F-=l[0]*x[M].an*.005,x[M+1]&&ct!==x[M+1].ind&&(F+=x[M].an/2,F+=r.tr*.001*r.finalSize)}else{switch(p.translate(y,k,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line]),0,0);break;case 2:p.translate(x[M].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[M].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(l[0]*x[M].an*.005,l[1]*mt*.01,0),y+=x[M].l+r.tr*.001*r.finalSize}b==="html"?ii=p.toCSS():b==="svg"?ii=p.to2dCSS():Mi=[p.props[0],p.props[1],p.props[2],p.props[3],p.props[4],p.props[5],p.props[6],p.props[7],p.props[8],p.props[9],p.props[10],p.props[11],p.props[12],p.props[13],p.props[14],p.props[15]],Oi=or}I<=M?(q=new ch(Oi,Ni,lo,Li,ii,Mi),this.renderedLetters.push(q),I+=1,this.lettersChangedFlag=!0):(q=this.renderedLetters[M],this.lettersChangedFlag=q.update(Oi,Ni,lo,Li,ii,Mi)||this.lettersChangedFlag)}}},Ko.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Ko.prototype.mHelper=new Pe,Ko.prototype.defaultPropsArray=[],S([Ne],Ko);function kr(){}kr.prototype.initElement=function(r,s,l){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,l),this.textProperty=new We(this,r.t,this.dynamicProperties),this.textAnimator=new Ko(r.t,this.renderType,this),this.initTransform(r,s,l),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},kr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},kr.prototype.createPathShape=function(r,s){var l,c=s.length,m,p="";for(l=0;l<c;l+=1)s[l].ty==="sh"&&(m=s[l].ks.k,p+=hf(m,m.i.length,!0,r));return p},kr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},kr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},kr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},kr.prototype.applyTextPropertiesToMatrix=function(r,s,l,c,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[l])/2,0,0);break;default:break}s.translate(c,m,0)},kr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},kr.prototype.emptyProp=new ch,kr.prototype.destroy=function(){},kr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var rx={shapes:[]};function wi(r,s,l){this.textSpans=[],this.renderType="svg",this.initElement(r,s,l)}S([oo,Vs,Xa,zs,so,Za,kr],wi),wi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=_t("text"))},wi.prototype.buildTextContents=function(r){for(var s=0,l=r.length,c=[],m="";s<l;)r[s]==="\r"||r[s]===""?(c.push(m),m=""):m+=r[s],s+=1;return c.push(m),c},wi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var l=r.shapes[0];if(l.it){var c=l.it[l.it.length-1];c.s&&(c.s.k[0]=s,c.s.k[1]=s)}}return r},wi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,l=this.textProperty.currentData;this.renderedLetters=Z(l?l.l.length:0),l.fc?this.layerElement.setAttribute("fill",this.buildColor(l.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),l.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(l.sc)),this.layerElement.setAttribute("stroke-width",l.sw)),this.layerElement.setAttribute("font-size",l.finalSize);var c=this.globalData.fontManager.getFontByName(l.f);if(c.fClass)this.layerElement.setAttribute("class",c.fClass);else{this.layerElement.setAttribute("font-family",c.fFamily);var m=l.fWeight,p=l.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",l.t);var b=l.l||[],I=!!this.globalData.fontManager.chars;s=b.length;var y,k=this.mHelper,M="",Y=this.data.singleShape,x=0,O=0,F=!0,D=l.tr*.001*l.finalSize;if(Y&&!I&&!l.sz){var K=this.textContainer,L="start";switch(l.j){case 1:L="end";break;case 2:L="middle";break;default:L="start";break}K.setAttribute("text-anchor",L),K.setAttribute("letter-spacing",D);var w=this.buildTextContents(l.finalText);for(s=w.length,O=l.ps?l.ps[1]+l.ascent:0,r=0;r<s;r+=1)y=this.textSpans[r].span||_t("tspan"),y.textContent=w[r],y.setAttribute("x",0),y.setAttribute("y",O),y.style.display="inherit",K.appendChild(y),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=y,O+=l.finalLineHeight;this.layerElement.appendChild(K)}else{var T=this.textSpans.length,C;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!Y||r===0){if(y=T>r?this.textSpans[r].span:_t(I?"g":"text"),T<=r){if(y.setAttribute("stroke-linecap","butt"),y.setAttribute("stroke-linejoin","round"),y.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=y,I){var N=_t("g");y.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=y,this.layerElement.appendChild(y)}y.style.display="inherit"}if(k.reset(),Y&&(b[r].n&&(x=-D,O+=l.yOffset,O+=F?1:0,F=!1),this.applyTextPropertiesToMatrix(l,k,b[r].line,x,O),x+=b[r].l||0,x+=D),I){C=this.globalData.fontManager.getCharData(l.finalText[r],c.fStyle,this.globalData.fontManager.getFontByName(l.f).fFamily);var V;if(C.t===1)V=new tn(C.data,this.globalData,this);else{var W=rx;C.data&&C.data.shapes&&(W=this.buildShapeData(C.data,l.finalSize)),V=new he(W,this.globalData,this)}if(this.textSpans[r].glyph){var X=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(X.layerElement),X.destroy()}this.textSpans[r].glyph=V,V._debug=!0,V.prepareFrame(0),V.renderFrame(),this.textSpans[r].childSpan.appendChild(V.layerElement),C.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+l.finalSize/100+","+l.finalSize/100+")")}else Y&&y.setAttribute("transform","translate("+k.props[12]+","+k.props[13]+")"),y.textContent=b[r].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Y&&y&&y.setAttribute("d",M)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},wi.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var r=this.layerElement.getBBox();this.bbox={top:r.y,left:r.x,width:r.width,height:r.height}}return this.bbox},wi.prototype.getValue=function(){var r,s=this.textSpans.length,l;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)l=this.textSpans[r].glyph,l&&(l.prepareFrame(this.comp.renderedFrame-this.data.st),l._mdf&&(this._mdf=!0))},wi.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var r,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;s=c.length;var m,p,b;for(r=0;r<s;r+=1)c[r].n||(m=l[r],p=this.textSpans[r].span,b=this.textSpans[r].glyph,b&&b.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function hh(r,s,l){this.initElement(r,s,l)}S([Qa],hh),hh.prototype.createContent=function(){var r=_t("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function no(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initFrame(),this.initTransform(r,s,l),this.initHierarchy()}no.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},no.prototype.renderFrame=function(){},no.prototype.getBaseElement=function(){return null},no.prototype.destroy=function(){},no.prototype.sourceRectAtTime=function(){},no.prototype.hide=function(){},S([oo,Vs,zs,so],no);function Ie(){}S([Fe],Ie),Ie.prototype.createNull=function(r){return new no(r,this.globalData,this)},Ie.prototype.createShape=function(r){return new he(r,this.globalData,this)},Ie.prototype.createText=function(r){return new wi(r,this.globalData,this)},Ie.prototype.createImage=function(r){return new Qa(r,this.globalData,this)},Ie.prototype.createSolid=function(r){return new hh(r,this.globalData,this)},Ie.prototype.configAnimation=function(r){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+r.w+" "+r.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",r.w),this.svgElement.setAttribute("height",r.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(r,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=r;var l=_t("clipPath"),c=_t("rect");c.setAttribute("width",r.w),c.setAttribute("height",r.h),c.setAttribute("x",0),c.setAttribute("y",0);var m=er();l.setAttribute("id",m),l.appendChild(c),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(l),this.layers=r.layers,this.elements=Z(r.layers.length)},Ie.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var r,s=this.layers?this.layers.length:0;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy&&this.elements[r].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ie.prototype.updateContainerSize=function(){},Ie.prototype.findIndexByInd=function(r){var s=0,l=this.layers.length;for(s=0;s<l;s+=1)if(this.layers[s].ind===r)return s;return-1},Ie.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var l=this.createItem(this.layers[r]);if(s[r]=l,fl()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(l),l.initExpressions()),this.appendElementInPos(l,r),this.layers[r].tt){var c="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(c===-1)return;if(!this.elements[c]||this.elements[c]===!0)this.buildItem(c),this.addPendingElement(l);else{var m=s[c],p=m.getMatte(this.layers[r].tt);l.setMatte(p)}}}},Ie.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,l=this.elements.length;s<l;){if(this.elements[s]===r){var c="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[c],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ie.prototype.renderFrame=function(r){if(!(this.renderedFrame===r||this.destroyed)){r===null?r=this.renderedFrame:this.renderedFrame=r,this.globalData.frameNum=r,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=r,this.globalData._mdf=!1;var s,l=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=l-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(r-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<l;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ie.prototype.appendElementInPos=function(r,s){var l=r.getBaseElement();if(l){for(var c=0,m;c<s;)this.elements[c]&&this.elements[c]!==!0&&this.elements[c].getBaseElement()&&(m=this.elements[c].getBaseElement()),c+=1;m?this.layerElement.insertBefore(l,m):this.layerElement.appendChild(l)}},Ie.prototype.hide=function(){this.layerElement.style.display="none"},Ie.prototype.show=function(){this.layerElement.style.display="block"};function ki(){}S([oo,Vs,zs,so,Za],ki),ki.prototype.initElement=function(r,s,l){this.initFrame(),this.initBaseData(r,s,l),this.initTransform(r,s,l),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},ki.prototype.prepareFrame=function(r){if(this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=r/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var l,c=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),l=c-1;l>=0;l-=1)(this.completeLayers||this.elements[l])&&(this.elements[l].prepareFrame(this.renderedFrame-this.layers[l].st),this.elements[l]._mdf&&(this._mdf=!0))}},ki.prototype.renderInnerContent=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},ki.prototype.setElements=function(r){this.elements=r},ki.prototype.getElements=function(){return this.elements},ki.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},ki.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function tn(r,s,l){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Z(this.layers.length):[],this.initElement(r,s,l),this.tm=r.tm?dt.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}S([Ie,ki,Xa],tn),tn.prototype.createComp=function(r){return new tn(r,this.globalData,this)};function ph(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=_t("svg");var l="";if(s&&s.title){var c=_t("title"),m=er();c.setAttribute("id",m),c.textContent=s.title,this.svgElement.appendChild(c),l+=m}if(s&&s.description){var p=_t("desc"),b=er();p.setAttribute("id",b),p.textContent=s.description,this.svgElement.appendChild(p),l+=" "+b}l&&this.svgElement.setAttribute("aria-labelledby",l);var I=_t("defs");this.svgElement.appendChild(I);var y=_t("g");this.svgElement.appendChild(y),this.layerElement=y,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return S([Ie],ph),ph.prototype.createComp=function(r){return new tn(r,this.globalData,this)},pT("svg",ph),ro.registerModifier("tm",Vr),ro.registerModifier("pb",Ha),ro.registerModifier("rp",ei),ro.registerModifier("rd",Ga),ro.registerModifier("zz",Wa),ro.registerModifier("op",Ya),Wt})});var Rl=globalThis,Dl=Rl.ShadowRoot&&(Rl.ShadyCSS===void 0||Rl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,uh=Symbol(),mf=new WeakMap,en=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==uh)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(Dl&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=mf.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&mf.set(t,o))}return o}toString(){return this.cssText}},uf=n=>new en(typeof n=="string"?n:n+"",void 0,uh),z=(n,...o)=>{let t=n.length===1?n[0]:o.reduce((e,i,a)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+n[a+1],n[0]);return new en(t,n,uh)},fh=(n,o)=>{if(Dl)n.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),i=Rl.litNonce;i!==void 0&&e.setAttribute("nonce",i),e.textContent=t.cssText,n.appendChild(e)}},Pl=Dl?n=>n:n=>n instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return uf(t)})(n):n;var{is:cx,defineProperty:hx,getOwnPropertyDescriptor:px,getOwnPropertyNames:mx,getOwnPropertySymbols:ux,getPrototypeOf:fx}=Object,mo=globalThis,ff=mo.trustedTypes,vx=ff?ff.emptyScript:"",vh=mo.reactiveElementPolyfillSupport,rn=(n,o)=>n,on={toAttribute(n,o){switch(o){case Boolean:n=n?vx:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,o){let t=n;switch(o){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Fl=(n,o)=>!cx(n,o),vf={attribute:!0,type:String,converter:on,reflect:!1,hasChanged:Fl},gf,bf;(gf=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(bf=mo.litPropertyMetadata)!=null||(mo.litPropertyMetadata=new WeakMap);var Ri=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=vf){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),i=this.getPropertyDescriptor(o,e,t);i!==void 0&&hx(this.prototype,o,i)}}static getPropertyDescriptor(o,t,e){var d;let{get:i,set:a}=(d=px(this.prototype,o))!=null?d:{get(){return this[t]},set(f){this[t]=f}};return{get(){return i==null?void 0:i.call(this)},set(f){let v=i==null?void 0:i.call(this);a.call(this,f),this.requestUpdate(o,v,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){var t;return(t=this.elementProperties.get(o))!=null?t:vf}static _$Ei(){if(this.hasOwnProperty(rn("elementProperties")))return;let o=fx(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(rn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rn("properties"))){let t=this.properties,e=[...mx(t),...ux(t)];for(let i of e)this.createProperty(i,t[i])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let i=this._$Eu(t,e);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let i of e)t.unshift(Pl(i))}else o!==void 0&&t.push(Pl(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var o;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(o=this.constructor.l)==null||o.forEach(t=>t(this))}addController(o){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&((e=o.hostConnected)==null||e.call(o))}removeController(o){var t;(t=this._$EO)==null||t.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){var t;let o=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return fh(o,this.constructor.elementStyles),o}connectedCallback(){var o,t;(o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(o){}disconnectedCallback(){var o;(o=this._$EO)==null||o.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$EC(o,t){var a;let e=this.constructor.elementProperties.get(o),i=this.constructor._$Eu(o,e);if(i!==void 0&&e.reflect===!0){let d=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:on).toAttribute(t,e.type);this._$Em=o,d==null?this.removeAttribute(i):this.setAttribute(i,d),this._$Em=null}}_$AK(o,t){var a;let e=this.constructor,i=e._$Eh.get(o);if(i!==void 0&&this._$Em!==i){let d=e.getPropertyOptions(i),f=typeof d.converter=="function"?{fromAttribute:d.converter}:((a=d.converter)==null?void 0:a.fromAttribute)!==void 0?d.converter:on;this._$Em=i,this[i]=f.fromAttribute(t,d.type),this._$Em=null}}requestUpdate(o,t,e){var i;if(o!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(o)),!((i=e.hasChanged)!=null?i:Fl)(this[o],t))return;this.P(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(o,t,e){var i;this._$AL.has(o)||this._$AL.set(o,t),e.reflect===!0&&this._$Em!==o&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(o)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[d,f]of this._$Ep)this[d]=f;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[d,f]of a)f.wrapped!==!0||this._$AL.has(d)||this[d]===void 0||this.P(d,this[d],f)}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(a=>{var d;return(d=a.hostUpdate)==null?void 0:d.call(a)}),this.update(t)):this._$EU()}catch(a){throw o=!1,this._$EU(),a}o&&this._$AE(t)}willUpdate(o){}_$AE(o){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostUpdated)==null?void 0:i.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(o){}firstUpdated(o){}},yf;Ri.elementStyles=[],Ri.shadowRootOptions={mode:"open"},Ri[rn("elementProperties")]=new Map,Ri[rn("finalized")]=new Map,vh==null||vh({ReactiveElement:Ri}),((yf=mo.reactiveElementVersions)!=null?yf:mo.reactiveElementVersions=[]).push("2.0.4");var an=globalThis,$l=an.trustedTypes,Ef=$l?$l.createPolicy("lit-html",{createHTML:n=>n}):void 0,yh="$lit$",Di=`lit$${Math.random().toFixed(9).slice(2)}$`,Eh="?"+Di,gx=`<${Eh}>`,qo=document,nn=()=>qo.createComment(""),ln=n=>n===null||typeof n!="object"&&typeof n!="function",Th=Array.isArray,_f=n=>Th(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",gh=`[
3
3
  \f\r]`,sn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Tf=/-->/g,xf=/>/g,Yo=RegExp(`>|${gh}(?:([^\\s"'>=/]+)(${gh}*=${gh}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Af=/'/g,Sf=/"/g,wf=/^(?:script|style|textarea|title)$/i,xh=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),A=xh(1),NC=xh(2),LC=xh(3),$e=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),If=new WeakMap,jo=qo.createTreeWalker(qo,129);function kf(n,o){if(!Th(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ef!==void 0?Ef.createHTML(o):o}var Nf=(n,o)=>{let t=n.length-1,e=[],i,a=o===2?"<svg>":o===3?"<math>":"",d=sn;for(let f=0;f<t;f++){let v=n[f],S,R,U=-1,J=0;for(;J<v.length&&(d.lastIndex=J,R=d.exec(v),R!==null);)J=d.lastIndex,d===sn?R[1]==="!--"?d=Tf:R[1]!==void 0?d=xf:R[2]!==void 0?(wf.test(R[2])&&(i=RegExp("</"+R[2],"g")),d=Yo):R[3]!==void 0&&(d=Yo):d===Yo?R[0]===">"?(d=i!=null?i:sn,U=-1):R[1]===void 0?U=-2:(U=d.lastIndex-R[2].length,S=R[1],d=R[3]===void 0?Yo:R[3]==='"'?Sf:Af):d===Sf||d===Af?d=Yo:d===Tf||d===xf?d=sn:(d=Yo,i=void 0);let j=d===Yo&&n[f+1].startsWith("/>")?" ":"";a+=d===sn?v+gx:U>=0?(e.push(S),v.slice(0,U)+yh+v.slice(U)+Di+j):v+Di+(U===-2?f:j)}return[kf(n,a+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},dn=class n{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let a=0,d=0,f=o.length-1,v=this.parts,[S,R]=Nf(o,t);if(this.el=n.createElement(S,e),jo.currentNode=this.el.content,t===2||t===3){let U=this.el.content.firstChild;U.replaceWith(...U.childNodes)}for(;(i=jo.nextNode())!==null&&v.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let U of i.getAttributeNames())if(U.endsWith(yh)){let J=R[d++],j=i.getAttribute(U).split(Di),Z=/([.?@])?(.*)/.exec(J);v.push({type:1,index:a,name:Z[2],strings:j,ctor:Z[1]==="."?zl:Z[1]==="?"?Bl:Z[1]==="@"?Ul:Zo}),i.removeAttribute(U)}else U.startsWith(Di)&&(v.push({type:6,index:a}),i.removeAttribute(U));if(wf.test(i.tagName)){let U=i.textContent.split(Di),J=U.length-1;if(J>0){i.textContent=$l?$l.emptyScript:"";for(let j=0;j<J;j++)i.append(U[j],nn()),jo.nextNode(),v.push({type:2,index:++a});i.append(U[J],nn())}}}else if(i.nodeType===8)if(i.data===Eh)v.push({type:2,index:a});else{let U=-1;for(;(U=i.data.indexOf(Di,U+1))!==-1;)v.push({type:7,index:a}),U+=Di.length-1}a++}}static createElement(o,t){let e=qo.createElement("template");return e.innerHTML=o,e}};function Xo(n,o,t=n,e){var d,f,v;if(o===$e)return o;let i=e!==void 0?(d=t.o)==null?void 0:d[e]:t.l,a=ln(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),a===void 0?i=void 0:(i=new a(n),i._$AT(n,t,e)),e!==void 0?((v=t.o)!=null?v:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Xo(n,i._$AS(n,o.values),i,e)),o}var Vl=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 S;let{el:{content:t},parts:e}=this._$AD,i=((S=o==null?void 0:o.creationScope)!=null?S:qo).importNode(t,!0);jo.currentNode=i;let a=jo.nextNode(),d=0,f=0,v=e[0];for(;v!==void 0;){if(d===v.index){let R;v.type===2?R=new Us(a,a.nextSibling,this,o):v.type===1?R=new v.ctor(a,v.name,v.strings,this,o):v.type===6&&(R=new Hl(a,this,o)),this._$AV.push(R),v=e[++f]}d!==(v==null?void 0:v.index)&&(a=jo.nextNode(),d++)}return jo.currentNode=qo,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Us=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var a;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(a=i==null?void 0:i.isConnected)!=null?a:!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=Xo(this,o,t),ln(o)?o===H||o==null||o===""?(this._$AH!==H&&this._$AR(),this._$AH=H):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):_f(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!==H&&ln(this._$AH)?this._$AA.nextSibling.data=o:this.T(qo.createTextNode(o)),this._$AH=o}$(o){var a;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=dn.createElement(kf(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(t);else{let d=new Vl(i,this),f=d.u(this.options);d.p(t),this.T(f),this._$AH=d}}_$AC(o){let t=If.get(o.strings);return t===void 0&&If.set(o.strings,t=new dn(o)),t}k(o){Th(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let a of o)i===t.length?t.push(e=new n(this.O(nn()),this.O(nn()),this,this.options)):e=t[i],e._$AI(a),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Zo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=H}_$AI(o,t=this,e,i){let a=this.strings,d=!1;if(a===void 0)o=Xo(this,o,t,0),d=!ln(o)||o!==this._$AH&&o!==$e,d&&(this._$AH=o);else{let f=o,v,S;for(o=a[0],v=0;v<a.length-1;v++)S=Xo(this,f[e+v],t,v),S===$e&&(S=this._$AH[v]),d||(d=!ln(S)||S!==this._$AH[v]),S===H?o=H:o!==H&&(o+=(S!=null?S:"")+a[v+1]),this._$AH[v]=S}d&&!i&&this.j(o)}j(o){o===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},zl=class extends Zo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===H?void 0:o}},Bl=class extends Zo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==H)}},Ul=class extends Zo{constructor(o,t,e,i,a){super(o,t,e,i,a),this.type=5}_$AI(o,t=this){var d;if((o=(d=Xo(this,o,t,0))!=null?d:H)===$e)return;let e=this._$AH,i=o===H&&e!==H||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,a=o!==H&&(e===H||i);i&&this.element.removeEventListener(this.name,this,e),a&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Hl=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Xo(this,o)}},Lf={M:yh,P:Di,A:Eh,C:1,L:Nf,R:Vl,D:_f,V:Xo,I:Us,H:Zo,N:Bl,U:Ul,B:zl,F:Hl},bh=an.litHtmlPolyfillSupport,Cf;bh==null||bh(dn,Us),((Cf=an.litHtmlVersions)!=null?Cf:an.litHtmlVersions=[]).push("3.2.0");var Mf=(n,o,t)=>{var a,d;let e=(a=t==null?void 0:t.renderBefore)!=null?a:o,i=e._$litPart$;if(i===void 0){let f=(d=t==null?void 0:t.renderBefore)!=null?d:null;e._$litPart$=i=new Us(o.insertBefore(nn(),f),f,void 0,t!=null?t:{})}return i._$AI(n),i};var uo=class extends Ri{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Mf(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},Of;uo._$litElement$=!0,uo.finalized=!0,(Of=globalThis.litElementHydrateSupport)==null||Of.call(globalThis,{LitElement:uo});var Ah=globalThis.litElementPolyfillSupport;Ah==null||Ah({LitElement:uo});var Rf;((Rf=globalThis.litElementVersions)!=null?Rf:globalThis.litElementVersions=[]).push("4.1.0");var bx={attribute:!0,type:String,converter:on,reflect:!1,hasChanged:Fl},yx=(n=bx,o,t)=>{let{kind:e,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,n),e==="accessor"){let{name:d}=t;return{set(f){let v=o.get.call(this);o.set.call(this,f),this.requestUpdate(d,v,n)},init(f){return f!==void 0&&this.P(d,void 0,n),f}}}if(e==="setter"){let{name:d}=t;return function(f){let v=this[d];o.call(this,f),this.requestUpdate(d,v,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?yx(n,o,t):((e,i,a)=>{let d=i.hasOwnProperty(a);return i.constructor.createProperty(a,d?{...e,wrapped:!0}:e),d?Object.getOwnPropertyDescriptor(i,a):void 0})(n,o,t)}function lt(n){return u({...n,state:!0,attribute:!1})}function Df(n){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,n)}}var oi=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function Ht(n,o){return(t,e,i)=>{let a=d=>{var f,v;return(v=(f=d.renderRoot)==null?void 0:f.querySelector(n))!=null?v:null};if(o){let{get:d,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let v=Symbol();return{get(){return this[v]},set(S){this[v]=S}}})();return oi(t,e,{get(){let v=d.call(this);return v===void 0&&(v=a(this),(v!==null||this.hasUpdated)&&f.call(this,v)),v}})}return oi(t,e,{get(){return a(this)}})}}var Sh;function Pf(n){return(o,t)=>oi(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:Sh!=null?Sh:Sh=document.createDocumentFragment()).querySelectorAll(n)}})}function Xt(n){return(o,t)=>{let{slot:e,selector:i}=n!=null?n:{},a="slot"+(e?`[name=${e}]`:":not([name])");return oi(o,t,{get(){var v,S;let d=(v=this.renderRoot)==null?void 0:v.querySelector(a),f=(S=d==null?void 0:d.assignedElements(n))!=null?S:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function Ff(n){return(o,t)=>{let{slot:e}=n!=null?n:{},i="slot"+(e?`[name=${e}]`:":not([name])");return oi(o,t,{get(){var d,f;let a=(d=this.renderRoot)==null?void 0:d.querySelector(i);return(f=a==null?void 0:a.assignedNodes(n))!=null?f:[]}})}}var Ex={PREFIX:"mdc",SEPARATOR:"-"},Tx={NAMESPACE:Ex},Ih=Tx;var xx=n=>[Ih.NAMESPACE.PREFIX,n].join(Ih.NAMESPACE.SEPARATOR),$={constructTagName:xx};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var $f=$.constructTagName("buttonsimple"),Qo={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},Hs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},cn={SIZE:Qo[32],TYPE:Hs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Pi=$.constructTagName("button"),Ft={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},hn={40:40,32:32,28:28,24:24},ar={64:64,52:52,20:20,...hn},Ye={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",OVERLAY:"overlay",DEFAULT:"default"},Gs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Vf={POSITIVE:Ye.POSITIVE,NEGATIVE:Ye.NEGATIVE,ACCENT:Ye.ACCENT,PROMOTIONAL:Ye.PROMOTIONAL,DEFAULT:Ye.DEFAULT},zf={DEFAULT:Ye.DEFAULT,ACCENT:Ye.ACCENT,NEGATIVE:Ye.NEGATIVE};var nr={VARIANT:Ft.PRIMARY,SIZE:hn[32],COLOR:Ye.DEFAULT,TYPE_INTERNAL:Gs.ICON,TYPE:Hs.BUTTON,INVERTED:!1};var Gl=n=>{class o extends n{constructor(){super(...arguments);this.variant=nr.VARIANT;this.color=nr.COLOR;this.typeInternal=nr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Ft).includes(i)?i:nr.VARIANT)}setColor(i){let a=Object.values(Ye).includes(i),d=this.variant===Ft.PRIMARY&&!Object.values(Vf).includes(i),f=this.variant===Ft.TERTIARY&&!Object.values(zf).includes(i);!a||d||f?this.setAttribute("color",`${nr.COLOR}`):this.setAttribute("color",i)}setSize(i){let d=this.typeInternal===Gs.ICON?Object.values(ar).includes(i)&&!(i===ar[20]&&this.variant!==Ft.TERTIARY):Object.values(hn).includes(i);this.setAttribute("size",d?`${i}`:`${nr.SIZE}`)}inferButtonType(){var S,R,U,J,j,Z;let i=(R=(S=this.shadowRoot)==null?void 0:S.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,a=(J=(U=this.shadowRoot)==null?void 0:U.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,d=this.prefixIcon||a&&a>0,f=(Z=(j=this.shadowRoot)==null?void 0:j.querySelector('slot[name="postfix"]'))==null?void 0:Z.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,v=this.postfixIcon||f&&f>0;i&&(d||v)?(this.typeInternal=Gs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(d||v)?(this.typeInternal=Gs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Gs.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([lt()],o.prototype,"typeInternal",2),o};var Bf=z`
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Af=/'/g,Sf=/"/g,wf=/^(?:script|style|textarea|title)$/i,xh=n=>(o,...t)=>({_$litType$:n,strings:o,values:t}),A=xh(1),NC=xh(2),LC=xh(3),$e=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),If=new WeakMap,jo=qo.createTreeWalker(qo,129);function kf(n,o){if(!Th(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ef!==void 0?Ef.createHTML(o):o}var Nf=(n,o)=>{let t=n.length-1,e=[],i,a=o===2?"<svg>":o===3?"<math>":"",d=sn;for(let f=0;f<t;f++){let v=n[f],S,R,U=-1,J=0;for(;J<v.length&&(d.lastIndex=J,R=d.exec(v),R!==null);)J=d.lastIndex,d===sn?R[1]==="!--"?d=Tf:R[1]!==void 0?d=xf:R[2]!==void 0?(wf.test(R[2])&&(i=RegExp("</"+R[2],"g")),d=Yo):R[3]!==void 0&&(d=Yo):d===Yo?R[0]===">"?(d=i!=null?i:sn,U=-1):R[1]===void 0?U=-2:(U=d.lastIndex-R[2].length,S=R[1],d=R[3]===void 0?Yo:R[3]==='"'?Sf:Af):d===Sf||d===Af?d=Yo:d===Tf||d===xf?d=sn:(d=Yo,i=void 0);let j=d===Yo&&n[f+1].startsWith("/>")?" ":"";a+=d===sn?v+gx:U>=0?(e.push(S),v.slice(0,U)+yh+v.slice(U)+Di+j):v+Di+(U===-2?f:j)}return[kf(n,a+(n[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},dn=class n{constructor({strings:o,_$litType$:t},e){let i;this.parts=[];let a=0,d=0,f=o.length-1,v=this.parts,[S,R]=Nf(o,t);if(this.el=n.createElement(S,e),jo.currentNode=this.el.content,t===2||t===3){let U=this.el.content.firstChild;U.replaceWith(...U.childNodes)}for(;(i=jo.nextNode())!==null&&v.length<f;){if(i.nodeType===1){if(i.hasAttributes())for(let U of i.getAttributeNames())if(U.endsWith(yh)){let J=R[d++],j=i.getAttribute(U).split(Di),Z=/([.?@])?(.*)/.exec(J);v.push({type:1,index:a,name:Z[2],strings:j,ctor:Z[1]==="."?zl:Z[1]==="?"?Bl:Z[1]==="@"?Ul:Zo}),i.removeAttribute(U)}else U.startsWith(Di)&&(v.push({type:6,index:a}),i.removeAttribute(U));if(wf.test(i.tagName)){let U=i.textContent.split(Di),J=U.length-1;if(J>0){i.textContent=$l?$l.emptyScript:"";for(let j=0;j<J;j++)i.append(U[j],nn()),jo.nextNode(),v.push({type:2,index:++a});i.append(U[J],nn())}}}else if(i.nodeType===8)if(i.data===Eh)v.push({type:2,index:a});else{let U=-1;for(;(U=i.data.indexOf(Di,U+1))!==-1;)v.push({type:7,index:a}),U+=Di.length-1}a++}}static createElement(o,t){let e=qo.createElement("template");return e.innerHTML=o,e}};function Xo(n,o,t=n,e){var d,f,v;if(o===$e)return o;let i=e!==void 0?(d=t.o)==null?void 0:d[e]:t.l,a=ln(o)?void 0:o._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((f=i==null?void 0:i._$AO)==null||f.call(i,!1),a===void 0?i=void 0:(i=new a(n),i._$AT(n,t,e)),e!==void 0?((v=t.o)!=null?v:t.o=[])[e]=i:t.l=i),i!==void 0&&(o=Xo(n,i._$AS(n,o.values),i,e)),o}var Vl=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 S;let{el:{content:t},parts:e}=this._$AD,i=((S=o==null?void 0:o.creationScope)!=null?S:qo).importNode(t,!0);jo.currentNode=i;let a=jo.nextNode(),d=0,f=0,v=e[0];for(;v!==void 0;){if(d===v.index){let R;v.type===2?R=new Us(a,a.nextSibling,this,o):v.type===1?R=new v.ctor(a,v.name,v.strings,this,o):v.type===6&&(R=new Hl(a,this,o)),this._$AV.push(R),v=e[++f]}d!==(v==null?void 0:v.index)&&(a=jo.nextNode(),d++)}return jo.currentNode=qo,i}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Us=class n{get _$AU(){var o,t;return(t=(o=this._$AM)==null?void 0:o._$AU)!=null?t:this.v}constructor(o,t,e,i){var a;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=i,this.v=(a=i==null?void 0:i.isConnected)!=null?a:!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=Xo(this,o,t),ln(o)?o===G||o==null||o===""?(this._$AH!==G&&this._$AR(),this._$AH=G):o!==this._$AH&&o!==$e&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):_f(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!==G&&ln(this._$AH)?this._$AA.nextSibling.data=o:this.T(qo.createTextNode(o)),this._$AH=o}$(o){var a;let{values:t,_$litType$:e}=o,i=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=dn.createElement(kf(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(t);else{let d=new Vl(i,this),f=d.u(this.options);d.p(t),this.T(f),this._$AH=d}}_$AC(o){let t=If.get(o.strings);return t===void 0&&If.set(o.strings,t=new dn(o)),t}k(o){Th(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,i=0;for(let a of o)i===t.length?t.push(e=new n(this.O(nn()),this.O(nn()),this,this.options)):e=t[i],e._$AI(a),i++;i<t.length&&(this._$AR(e&&e._$AB.nextSibling,i),t.length=i)}_$AR(o=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){var t;this._$AM===void 0&&(this.v=o,(t=this._$AP)==null||t.call(this,o))}},Zo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,i,a){this.type=1,this._$AH=G,this._$AN=void 0,this.element=o,this.name=t,this._$AM=i,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=G}_$AI(o,t=this,e,i){let a=this.strings,d=!1;if(a===void 0)o=Xo(this,o,t,0),d=!ln(o)||o!==this._$AH&&o!==$e,d&&(this._$AH=o);else{let f=o,v,S;for(o=a[0],v=0;v<a.length-1;v++)S=Xo(this,f[e+v],t,v),S===$e&&(S=this._$AH[v]),d||(d=!ln(S)||S!==this._$AH[v]),S===G?o=G:o!==G&&(o+=(S!=null?S:"")+a[v+1]),this._$AH[v]=S}d&&!i&&this.j(o)}j(o){o===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o!=null?o:"")}},zl=class extends Zo{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===G?void 0:o}},Bl=class extends Zo{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==G)}},Ul=class extends Zo{constructor(o,t,e,i,a){super(o,t,e,i,a),this.type=5}_$AI(o,t=this){var d;if((o=(d=Xo(this,o,t,0))!=null?d:G)===$e)return;let e=this._$AH,i=o===G&&e!==G||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,a=o!==G&&(e===G||i);i&&this.element.removeEventListener(this.name,this,e),a&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,o):this._$AH.handleEvent(o)}},Hl=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){Xo(this,o)}},Lf={M:yh,P:Di,A:Eh,C:1,L:Nf,R:Vl,D:_f,V:Xo,I:Us,H:Zo,N:Bl,U:Ul,B:zl,F:Hl},bh=an.litHtmlPolyfillSupport,Cf;bh==null||bh(dn,Us),((Cf=an.litHtmlVersions)!=null?Cf:an.litHtmlVersions=[]).push("3.2.0");var Mf=(n,o,t)=>{var a,d;let e=(a=t==null?void 0:t.renderBefore)!=null?a:o,i=e._$litPart$;if(i===void 0){let f=(d=t==null?void 0:t.renderBefore)!=null?d:null;e._$litPart$=i=new Us(o.insertBefore(nn(),f),f,void 0,t!=null?t:{})}return i._$AI(n),i};var uo=class extends Ri{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this.o=Mf(t,this.renderRoot,this.renderOptions)}connectedCallback(){var o;super.connectedCallback(),(o=this.o)==null||o.setConnected(!0)}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.o)==null||o.setConnected(!1)}render(){return $e}},Of;uo._$litElement$=!0,uo.finalized=!0,(Of=globalThis.litElementHydrateSupport)==null||Of.call(globalThis,{LitElement:uo});var Ah=globalThis.litElementPolyfillSupport;Ah==null||Ah({LitElement:uo});var Rf;((Rf=globalThis.litElementVersions)!=null?Rf:globalThis.litElementVersions=[]).push("4.1.0");var bx={attribute:!0,type:String,converter:on,reflect:!1,hasChanged:Fl},yx=(n=bx,o,t)=>{let{kind:e,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,n),e==="accessor"){let{name:d}=t;return{set(f){let v=o.get.call(this);o.set.call(this,f),this.requestUpdate(d,v,n)},init(f){return f!==void 0&&this.P(d,void 0,n),f}}}if(e==="setter"){let{name:d}=t;return function(f){let v=this[d];o.call(this,f),this.requestUpdate(d,v,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(o,t)=>typeof t=="object"?yx(n,o,t):((e,i,a)=>{let d=i.hasOwnProperty(a);return i.constructor.createProperty(a,d?{...e,wrapped:!0}:e),d?Object.getOwnPropertyDescriptor(i,a):void 0})(n,o,t)}function lt(n){return u({...n,state:!0,attribute:!1})}function Df(n){return(o,t)=>{let e=typeof o=="function"?o:o[t];Object.assign(e,n)}}var oi=(n,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(n,o,t),t);function Ht(n,o){return(t,e,i)=>{let a=d=>{var f,v;return(v=(f=d.renderRoot)==null?void 0:f.querySelector(n))!=null?v:null};if(o){let{get:d,set:f}=typeof e=="object"?t:i!=null?i:(()=>{let v=Symbol();return{get(){return this[v]},set(S){this[v]=S}}})();return oi(t,e,{get(){let v=d.call(this);return v===void 0&&(v=a(this),(v!==null||this.hasUpdated)&&f.call(this,v)),v}})}return oi(t,e,{get(){return a(this)}})}}var Sh;function Pf(n){return(o,t)=>oi(o,t,{get(){var e;return((e=this.renderRoot)!=null?e:Sh!=null?Sh:Sh=document.createDocumentFragment()).querySelectorAll(n)}})}function Xt(n){return(o,t)=>{let{slot:e,selector:i}=n!=null?n:{},a="slot"+(e?`[name=${e}]`:":not([name])");return oi(o,t,{get(){var v,S;let d=(v=this.renderRoot)==null?void 0:v.querySelector(a),f=(S=d==null?void 0:d.assignedElements(n))!=null?S:[];return i===void 0?f:f.filter(R=>R.matches(i))}})}}function Ff(n){return(o,t)=>{let{slot:e}=n!=null?n:{},i="slot"+(e?`[name=${e}]`:":not([name])");return oi(o,t,{get(){var d,f;let a=(d=this.renderRoot)==null?void 0:d.querySelector(i);return(f=a==null?void 0:a.assignedNodes(n))!=null?f:[]}})}}var Ex={PREFIX:"mdc",SEPARATOR:"-"},Tx={NAMESPACE:Ex},Ih=Tx;var xx=n=>[Ih.NAMESPACE.PREFIX,n].join(Ih.NAMESPACE.SEPARATOR),$={constructTagName:xx};var et={ALERTDIALOG:"alertdialog",BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",GROUP:"group",HEADING:"heading",IMG:"img",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",SWITCH:"switch",TAB:"tab",TABLIST:"tablist",TOOLTIP:"tooltip"};var $f=$.constructTagName("buttonsimple"),Qo={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},Hs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},cn={SIZE:Qo[32],TYPE:Hs.BUTTON,ROLE:et.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Pi=$.constructTagName("button"),Ft={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},hn={40:40,32:32,28:28,24:24},ar={64:64,52:52,20:20,...hn},Ye={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",OVERLAY:"overlay",DEFAULT:"default"},Gs={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},Vf={POSITIVE:Ye.POSITIVE,NEGATIVE:Ye.NEGATIVE,ACCENT:Ye.ACCENT,PROMOTIONAL:Ye.PROMOTIONAL,DEFAULT:Ye.DEFAULT},zf={DEFAULT:Ye.DEFAULT,ACCENT:Ye.ACCENT,NEGATIVE:Ye.NEGATIVE};var nr={VARIANT:Ft.PRIMARY,SIZE:hn[32],COLOR:Ye.DEFAULT,TYPE_INTERNAL:Gs.ICON,TYPE:Hs.BUTTON,INVERTED:!1};var Gl=n=>{class o extends n{constructor(){super(...arguments);this.variant=nr.VARIANT;this.color=nr.COLOR;this.typeInternal=nr.TYPE_INTERNAL}setVariant(i){this.setAttribute("variant",Object.values(Ft).includes(i)?i:nr.VARIANT)}setColor(i){let a=Object.values(Ye).includes(i),d=this.variant===Ft.PRIMARY&&!Object.values(Vf).includes(i),f=this.variant===Ft.TERTIARY&&!Object.values(zf).includes(i);!a||d||f?this.setAttribute("color",`${nr.COLOR}`):this.setAttribute("color",i)}setSize(i){let d=this.typeInternal===Gs.ICON?Object.values(ar).includes(i)&&!(i===ar[20]&&this.variant!==Ft.TERTIARY):Object.values(hn).includes(i);this.setAttribute("size",d?`${i}`:`${nr.SIZE}`)}inferButtonType(){var S,R,U,J,j,Z;let i=(R=(S=this.shadowRoot)==null?void 0:S.querySelector("slot:not([name])"))==null?void 0:R.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,a=(J=(U=this.shadowRoot)==null?void 0:U.querySelector('slot[name="prefix"]'))==null?void 0:J.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,d=this.prefixIcon||a&&a>0,f=(Z=(j=this.shadowRoot)==null?void 0:j.querySelector('slot[name="postfix"]'))==null?void 0:Z.assignedNodes().filter(rt=>{var st;return rt.nodeType!==Node.TEXT_NODE||((st=rt.textContent)==null?void 0:st.trim())}).length,v=this.postfixIcon||f&&f>0;i&&(d||v)?(this.typeInternal=Gs.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!i&&(d||v)?(this.typeInternal=Gs.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Gs.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],o.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],o.prototype,"postfixIcon",2),h([u({type:String})],o.prototype,"variant",2),h([u({type:String})],o.prototype,"color",2),h([lt()],o.prototype,"typeInternal",2),o};var Bf=z`
5
5
  :host {
6
6
  box-sizing: border-box;
7
7
  }
@@ -15,7 +15,7 @@
15
15
  :host {
16
16
  display: contents;
17
17
  }
18
- `,Hf=Ax;var Yl=class extends Q{constructor({context:o,initialValue:t}){super(),this.context=new Ws(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),A`<slot></slot>`}};Yl.styles=[...Q.styles,Hf];var Gf=Yl;var pe=Gf;var Ve=n=>{class o extends n{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Zt=n=>{class o extends n{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var si=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var wt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var Sx=n=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:a}=n,d=(i||a)&&(f=>{a&&a.forEach(v=>{o.requestUpdate(v)}),i==null||i(f)});return new Ks(o,{context:t,callback:d,subscribe:e!=null?e:!0})},Ix={consume:Sx},me=Ix;var Wf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Yf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),Cx=n=>n.getClientRects().length===0,_x=n=>{let{width:o,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=n;return e+i+t+o===0},_h=n=>{if(!(n instanceof Element))return null;let o=getComputedStyle(n),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",a=e==="auto"||e==="scroll";return i&&a?"both":i?"horizontal":a?"vertical":null},wx=n=>_x(n)||Cx(n),kx=n=>{let{display:o,opacity:t,visibility:e}=n.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},Nx=n=>{let o=getComputedStyle(n);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},Lx=n=>getComputedStyle(n).display==="contents",Mx=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||kx(n)||!Lx(n)&&(Nx(n)||wx(n)),Ox=n=>n.disabled,Rx=n=>n.getAttribute("tabindex")!=="-1",Dx=n=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1),Kf=(n,o)=>o.some(t=>n.matches(t));var Jo=(n,o={})=>{var R,U,J,j;if(!n)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(U=o==null?void 0:o.includeSelectors)!=null?U:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],a=(j=o==null?void 0:o.stopAtNonTabbable)!=null?j:!1,d=new Set([]),f=Z=>{var rt;if(t.has(n)||Kf(Z,i)||Mx(Z)||Ox(Z))return"stop";if(a&&!(Z instanceof HTMLSlotElement)&&Z.getAttribute("tabindex")==="-1"){let st=Z.getRootNode();if(!(st instanceof ShadowRoot&&st.delegatesFocus))return"stop"}return(rt=Z.shadowRoot)!=null&&rt.delegatesFocus?"continue":Kf(Z,e)||Rx(Z)&&Dx(Z)?"focusable":"continue"},v=o.customFocusableCheck?Z=>o.customFocusableCheck(Z,f(Z)):f,S=Z=>{if(Z instanceof HTMLElement){let st=v(Z);if(st==="focusable"&&d.add(Z),st==="stop")return}let rt=[];Z instanceof HTMLSlotElement?rt=Z.assignedElements({flatten:!0}):Z instanceof HTMLElement&&Z.shadowRoot?rt=Array.from(Z.shadowRoot.children):Z.children.length&&(rt=Array.from(Z.children)),rt.forEach(S)};return S(n),[...d]},pn=(n=document)=>{var t;let o=n instanceof Document?n.activeElement:n;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},jl=n=>n&&"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",wh=n=>{let o=n.getRootNode();return o!==document&&o instanceof ShadowRoot?wh(o.host):n},jf=n=>{let o=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var $i=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),this.currentKeydownListener=null)}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)))}}};$i.stack=new Set,$i.currentKeydownListener=null;var ql=$.constructTagName("spatialnavigationprovider");var ai={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},kh={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 Px=ql,Nh=Px;var qf=n=>{let{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v}=n.getBoundingClientRect(),S=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v,xMid:S,yMid:R}},Fx=(n,o,t)=>Math.abs(t==="horizontal"?o.yMid-n.yMid:o.xMid-n.xMid),$x=(n,o)=>o==="horizontal"?n.height/2:n.width/2,Vx=(n,o,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,o.bottom)-Math.max(n.top,o.top)):Math.max(0,Math.min(n.right,o.right)-Math.max(n.left,o.left)),zx=(n,o,t)=>o==="horizontal"?t/n.height:t/n.width,Bx=(n,o,t,e)=>{let i=o.xMid-n.xMid,a=o.yMid-n.yMid,d=Math.sqrt(i*i+a*a),f=Fx(n,o,t)+$x(n,t)*e.orthogonalWeight[t],v=Vx(n,o,t),S=zx(n,t,v)*e.alignWeight;return d+f-S-Math.sqrt(v)},Xf=(n,o,t,e)=>{if(!n||o.length===0)return[];if(o.length===1)return o[0]===n?[]:[{candidate:o[0],distance:0}];let i=qf(n),a=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((d,f)=>{if(f===n)return d;let v=f.closest(`[${ai.SCROLL_PARENT}]`),S=v&&!v.contains(n)?v:f,R=qf(S);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return d;let U=Bx(i,R,a,e);return d.push({candidate:f,distance:U}),d},[]).sort((d,f)=>d.distance-f.distance)};var ts=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var mn=class extends pe{constructor(){super({context:Nh});this.navigationKeyMapping=kh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=kh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,a=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,a)!==void 0&&(e=!0,this.focusNext(t,a)),i.parentElement&&!i.hasAttribute(ai.NO_SCROLL)){let f=(d=i.closest(`[${ai.SCROLL_PARENT}]`))!=null?d:i.parentElement,v=_h(f);if(v){let S=i.getBoundingClientRect(),R=f.getBoundingClientRect();(v==="vertical"||v==="both")&&(a==="up"&&S.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),a==="down"&&S.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(v==="horizontal"||v==="both")&&(a==="right"&&S.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),a==="left"&&S.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new ts("navbeforeprocess",this,e);if(t.target&&((d=t.composedPath()[0]||t.target)==null||d.dispatchEvent(i)),i.defaultPrevented)return;let a=!1;switch(e){case"up":a=this.focusNext(t,"up");break;case"down":a=this.focusNext(t,"down");break;case"left":a=this.focusNext(t,"left");break;case"right":a=this.focusNext(t,"right");break;case"enter":a=this.pressEnter();break;case"escape":a=this.goBack();break;default:}a?t.preventDefault():this.dispatchEvent(new ts("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=pn();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return Nh}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=Jo(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=$i.getActiveTrap(),a=null,d=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let v of f)if(v===i||v===this.root||_h(v)){d.push(...Jo(v,{excludedElements:a?[a]:void 0,includeSelectors:[`[${ai.FOCUSABLE}]`],excludeSelectors:[`[${ai.EXCLUDE}]`]}));let S=this.focusNextInFocusableAria(d,e);if(S||v===i||v===this.root)return S&&this.emitNavBeforeFocusEvent(S,e),!!S;a=v}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let a=new ts("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(a),!a.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var a;let i=`data-spatial-${e}`;return(a=t==null?void 0:t.getAttribute(i))!=null?a:void 0}focusNextInFocusableAria(t,e){var v,S;let i=this.getActiveElement(),a=pn(),d=t;if((!i||!d.includes(i)||i!==a)&&(a&&d.includes(a)?i=a:[i]=d,this.setActiveElement(i)),a){let R=`data-spatial-${e}`,U=jf(a).find(j=>j.hasAttribute(R)),J=U==null?void 0:U.getAttribute(R);if(U&&J){let j=U.getRootNode(),Z=(v=j==null?void 0:j.getElementById(J))!=null?v:j==null?void 0:j.querySelector(J);if(Z){let rt=Jo(Z,{includeSelectors:[`[${ai.FOCUSABLE}]`],excludeSelectors:[`[${ai.EXCLUDE}]`]});if(rt.includes(Z))return Z;if(rt.length>0)d=rt;else return Z}}}return i!==pn()?i:t.length===0||(S=Xf(i,d,e,this.distanceCalculationWeights)[0])==null?void 0:S.candidate}emitGoBackEvent(t){let e=new ts("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=pn();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Jo(this.root).find(i=>i.hasAttribute(ai.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],mn.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],mn.prototype,"distanceCalculationWeights",2);var Lh=mn;Lh.register(ql);var Zf=Lh;var K={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},Ux={[wt.ARROW_UP]:K.UP,[wt.ARROW_DOWN]:K.DOWN,[wt.ARROW_LEFT]:K.LEFT,[wt.ARROW_RIGHT]:K.RIGHT,[wt.ENTER]:K.ENTER,[wt.SPACE]:K.SPACE,[wt.ESCAPE]:K.ESCAPE,[wt.TAB]:K.TAB,[wt.HOME]:K.HOME,[wt.END]:K.END,[wt.BACKSPACE]:K.BACKSPACE},re={DEFAULT:"default",SPATIAL:"spatial"},Lt=n=>{class o extends n{constructor(){super(...arguments);this.spatialNavigationContext=me.consume({host:this,context:Zf.Context})}getKeyboardNavMode(){var a;return((a=this.spatialNavigationContext)==null?void 0:a.value)?re.SPATIAL:re.DEFAULT}getActionForKeyEvent(i,a=!1){var v,S,R;let f=((R=(S=(v=this.spatialNavigationContext)==null?void 0:v.value)==null?void 0:S.keyToActionMap)!=null?R:Ux)[i.key];if(a){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===K.LEFT)return K.RIGHT;if(f===K.RIGHT)return K.LEFT}return f}isDirectionAction(i){return i===K.UP||i===K.DOWN||i===K.LEFT||i===K.RIGHT}}return o};var Ot=n=>{class o extends n{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var Tt=z`
18
+ `,Hf=Ax;var Yl=class extends Q{constructor({context:o,initialValue:t}){super(),this.context=new Ws(this,{context:o,initialValue:t})}updateContext(){throw new Error("Not implemented")}render(){return this.updateContext(),A`<slot></slot>`}};Yl.styles=[...Q.styles,Hf];var Gf=Yl;var pe=Gf;var Ve=n=>{class o extends n{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(i){super.firstUpdated(i),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],o.prototype,"autoFocusOnMount",2),o};var Zt=n=>{class o extends n{}return h([u({reflect:!0,type:Boolean})],o.prototype,"disabled",2),o};var si=n=>{class o extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],o.prototype,"tabIndex",2),o};var Tt={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab",DELETE:"Delete"};var Sx=n=>{let{host:o,context:t,subscribe:e,callback:i,syncProperties:a}=n,d=(i||a)&&(f=>{a&&a.forEach(v=>{o.requestUpdate(v)}),i==null||i(f)});return new Ks(o,{context:t,callback:d,subscribe:e!=null?e:!0})},Ix={consume:Sx},me=Ix;var Wf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING),Yf=(n,o)=>!!(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING),Cx=n=>n.getClientRects().length===0,_x=n=>{let{width:o,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:i}=n;return e+i+t+o===0},_h=n=>{if(!(n instanceof Element))return null;let o=getComputedStyle(n),{overflowX:t,overflowY:e}=o,i=t==="auto"||t==="scroll",a=e==="auto"||e==="scroll";return i&&a?"both":i?"horizontal":a?"vertical":null},wx=n=>_x(n)||Cx(n),kx=n=>{let{display:o,opacity:t,visibility:e}=n.style;return o==="none"||t==="0"||e==="hidden"||e==="collapse"},Nx=n=>{let o=getComputedStyle(n);return o.visibility==="hidden"||o.height==="0"||o.display==="none"},Lx=n=>getComputedStyle(n).display==="contents",Mx=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||kx(n)||!Lx(n)&&(Nx(n)||wx(n)),Ox=n=>n.disabled,Rx=n=>n.getAttribute("tabindex")!=="-1",Dx=n=>!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(n.tagName)||n instanceof HTMLAnchorElement&&n.hasAttribute("href")||n instanceof HTMLInputElement&&n.type!=="hidden"||(n instanceof HTMLAudioElement||n instanceof HTMLVideoElement)&&n.hasAttribute("controls")||(n instanceof HTMLImageElement||n instanceof HTMLObjectElement)&&n.hasAttribute("usemap")||n.hasAttribute("tabindex")&&n.tabIndex>-1),Kf=(n,o)=>o.some(t=>n.matches(t));var Jo=(n,o={})=>{var R,U,J,j;if(!n)return[];let t=new Set((R=o==null?void 0:o.excludedElements)!=null?R:[]),e=(U=o==null?void 0:o.includeSelectors)!=null?U:[],i=(J=o==null?void 0:o.excludeSelectors)!=null?J:[],a=(j=o==null?void 0:o.stopAtNonTabbable)!=null?j:!1,d=new Set([]),f=Z=>{var rt;if(t.has(n)||Kf(Z,i)||Mx(Z)||Ox(Z))return"stop";if(a&&!(Z instanceof HTMLSlotElement)&&Z.getAttribute("tabindex")==="-1"){let st=Z.getRootNode();if(!(st instanceof ShadowRoot&&st.delegatesFocus))return"stop"}return(rt=Z.shadowRoot)!=null&&rt.delegatesFocus?"continue":Kf(Z,e)||Rx(Z)&&Dx(Z)?"focusable":"continue"},v=o.customFocusableCheck?Z=>o.customFocusableCheck(Z,f(Z)):f,S=Z=>{if(Z instanceof HTMLElement){let st=v(Z);if(st==="focusable"&&d.add(Z),st==="stop")return}let rt=[];Z instanceof HTMLSlotElement?rt=Z.assignedElements({flatten:!0}):Z instanceof HTMLElement&&Z.shadowRoot?rt=Array.from(Z.shadowRoot.children):Z.children.length&&(rt=Array.from(Z.children)),rt.forEach(S)};return S(n),[...d]},pn=(n=document)=>{var t;let o=n instanceof Document?n.activeElement:n;for(;(t=o==null?void 0:o.shadowRoot)!=null&&t.activeElement;)o=o.shadowRoot.activeElement;return o},jl=n=>n&&"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",wh=n=>{let o=n.getRootNode();return o!==document&&o instanceof ShadowRoot?wh(o.host):n},jf=n=>{let o=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,o.push(t);else break}return o};var $i=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),this.currentKeydownListener=null)}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)))}}};$i.stack=new Set,$i.currentKeydownListener=null;var ql=$.constructTagName("spatialnavigationprovider");var ai={DIRECTION_LEFT:"data-spatial-left",DIRECTION_RIGHT:"data-spatial-right",DIRECTION_UP:"data-spatial-up",DIRECTION_DOWN:"data-spatial-down",GO_BACK:"data-spatial-go-back",FOCUSABLE:"data-spatial-focusable",EXCLUDE:"data-spatial-exclude",NO_SCROLL:"data-spatial-noscroll",SCROLL_PARENT:"data-spatial-scroll-parent"},kh={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 Px=ql,Nh=Px;var qf=n=>{let{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v}=n.getBoundingClientRect(),S=o+e/2,R=t+i/2;return{x:o,y:t,width:e,height:i,left:a,top:d,right:f,bottom:v,xMid:S,yMid:R}},Fx=(n,o,t)=>Math.abs(t==="horizontal"?o.yMid-n.yMid:o.xMid-n.xMid),$x=(n,o)=>o==="horizontal"?n.height/2:n.width/2,Vx=(n,o,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,o.bottom)-Math.max(n.top,o.top)):Math.max(0,Math.min(n.right,o.right)-Math.max(n.left,o.left)),zx=(n,o,t)=>o==="horizontal"?t/n.height:t/n.width,Bx=(n,o,t,e)=>{let i=o.xMid-n.xMid,a=o.yMid-n.yMid,d=Math.sqrt(i*i+a*a),f=Fx(n,o,t)+$x(n,t)*e.orthogonalWeight[t],v=Vx(n,o,t),S=zx(n,t,v)*e.alignWeight;return d+f-S-Math.sqrt(v)},Xf=(n,o,t,e)=>{if(!n||o.length===0)return[];if(o.length===1)return o[0]===n?[]:[{candidate:o[0],distance:0}];let i=qf(n),a=t==="left"||t==="right"?"horizontal":"vertical";return o.reduce((d,f)=>{if(f===n)return d;let v=f.closest(`[${ai.SCROLL_PARENT}]`),S=v&&!v.contains(n)?v:f,R=qf(S);if(t==="left"&&R.right>i.xMid||t==="right"&&R.left<i.xMid||t==="up"&&R.bottom>i.yMid||t==="down"&&R.top<i.yMid)return d;let U=Bx(i,R,a,e);return d.push({candidate:f,distance:U}),d},[]).sort((d,f)=>d.distance-f.distance)};var ts=class extends UIEvent{constructor(o,t,e){super(o,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var mn=class extends pe{constructor(){super({context:Nh});this.navigationKeyMapping=kh.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=kh.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDownCapture=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=!1,i=t.target,a=this.context.value.keyToActionMap[t.key];if(this.isDirectionKey(t.key)&&this.getElementSelectorForDirectionAttr(i,a)!==void 0&&(e=!0,this.focusNext(t,a)),i.parentElement&&!i.hasAttribute(ai.NO_SCROLL)){let f=(d=i.closest(`[${ai.SCROLL_PARENT}]`))!=null?d:i.parentElement,v=_h(f);if(v){let S=i.getBoundingClientRect(),R=f.getBoundingClientRect();(v==="vertical"||v==="both")&&(a==="up"&&S.top<R.top&&f.scrollTop>0&&(f.scrollTo({top:f.scrollTop-R.height/2,behavior:"auto"}),e=!0),a==="down"&&S.bottom>R.bottom&&f.scrollTop+R.height<f.scrollHeight&&(f.scrollTo({top:f.scrollTop+R.height/2,behavior:"auto"}),e=!0)),(v==="horizontal"||v==="both")&&(a==="right"&&S.left<R.left&&f.scrollLeft>0&&(f.scrollTo({left:f.scrollLeft-R.width/2,behavior:"auto"}),e=!0),a==="left"&&S.right>R.right&&f.scrollLeft+R.width<f.scrollWidth&&(f.scrollTo({left:f.scrollLeft+R.width/2,behavior:"auto"}),e=!0))}}e&&(t.preventDefault(),t.stopImmediatePropagation())};this.handleKeyDown=t=>{var d;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.isNavigationKey(t.key))return;let e=this.context.value.keyToActionMap[t.key],i=new ts("navbeforeprocess",this,e);if(t.target&&((d=t.composedPath()[0]||t.target)==null||d.dispatchEvent(i)),i.defaultPrevented)return;let a=!1;switch(e){case"up":a=this.focusNext(t,"up");break;case"down":a=this.focusNext(t,"down");break;case"left":a=this.focusNext(t,"left");break;case"right":a=this.focusNext(t,"right");break;case"enter":a=this.pressEnter();break;case"escape":a=this.goBack();break;default:}a?t.preventDefault():this.dispatchEvent(new ts("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=pn();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}isNavigationKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape].includes(t)}isDirectionKey(t){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right].includes(t)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDownCapture,{capture:!0}),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return Nh}updateContext(){let{actionToKeyMap:t}=this.context.value||{};(!t||t.left!==this.navigationKeyMapping.left||t.right!==this.navigationKeyMapping.right||t.up!==this.navigationKeyMapping.up||t.down!==this.navigationKeyMapping.down||t.enter!==this.navigationKeyMapping.enter||t.escape!==this.navigationKeyMapping.escape)&&(this.context.value={actionToKeyMap:{...this.navigationKeyMapping},keyToActionMap:Object.fromEntries(Object.entries(this.navigationKeyMapping).map(([e,i])=>[i,e]))},this.context.updateObservers())}initActiveElement(t){let e=Jo(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let i=t[0];i&&this.setActiveElementAndFocus(i)}}focusNext(t,e){let i=$i.getActiveTrap(),a=null,d=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let v of f)if(v===i||v===this.root||_h(v)){d.push(...Jo(v,{excludedElements:a?[a]:void 0,includeSelectors:[`[${ai.FOCUSABLE}]`],excludeSelectors:[`[${ai.EXCLUDE}]`]}));let S=this.focusNextInFocusableAria(d,e);if(S||v===i||v===this.root)return S&&this.emitNavBeforeFocusEvent(S,e),!!S;a=v}return!1}emitNavBeforeFocusEvent(t,e){var i;if(t){let a=new ts("navbeforefocus",t,e);if((i=this.getActiveElement())==null||i.dispatchEvent(a),!a.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}getElementSelectorForDirectionAttr(t,e){var a;let i=`data-spatial-${e}`;return(a=t==null?void 0:t.getAttribute(i))!=null?a:void 0}focusNextInFocusableAria(t,e){var v,S;let i=this.getActiveElement(),a=pn(),d=t;if((!i||!d.includes(i)||i!==a)&&(a&&d.includes(a)?i=a:[i]=d,this.setActiveElement(i)),a){let R=`data-spatial-${e}`,U=jf(a).find(j=>j.hasAttribute(R)),J=U==null?void 0:U.getAttribute(R);if(U&&J){let j=U.getRootNode(),Z=(v=j==null?void 0:j.getElementById(J))!=null?v:j==null?void 0:j.querySelector(J);if(Z){let rt=Jo(Z,{includeSelectors:[`[${ai.FOCUSABLE}]`],excludeSelectors:[`[${ai.EXCLUDE}]`]});if(rt.includes(Z))return Z;if(rt.length>0)d=rt;else return Z}}}return i!==pn()?i:t.length===0||(S=Xf(i,d,e,this.distanceCalculationWeights)[0])==null?void 0:S.candidate}emitGoBackEvent(t){let e=new ts("navback",t,"escape");return this.dispatchEvent(e),e.defaultPrevented}setActiveElement(t){var e;t!==((e=this.activeElement)==null?void 0:e.deref())&&(this.activeElementObserver.disconnect(),t?(this.activeElement=new WeakRef(t),t.parentNode&&this.activeElementObserver.observe(t.parentNode,{childList:!0})):this.activeElement=void 0)}setActiveElementAndFocus(t){this.setActiveElement(t),queueMicrotask(()=>t.focus())}getActiveElement(){var t;return(t=this.activeElement)==null?void 0:t.deref()}pressEnter(){let t=pn();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=Jo(this.root).find(i=>i.hasAttribute(ai.GO_BACK));if(!this.emitGoBackEvent(t)){if(t)return t.click(),!0;if(window.history.length>this.initialHistoryLength)return window.history.back(),!0}return!1}};h([u({attribute:!1})],mn.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],mn.prototype,"distanceCalculationWeights",2);var Lh=mn;Lh.register(ql);var Zf=Lh;var H={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end",BACKSPACE:"backspace"},Ux={[Tt.ARROW_UP]:H.UP,[Tt.ARROW_DOWN]:H.DOWN,[Tt.ARROW_LEFT]:H.LEFT,[Tt.ARROW_RIGHT]:H.RIGHT,[Tt.ENTER]:H.ENTER,[Tt.SPACE]:H.SPACE,[Tt.ESCAPE]:H.ESCAPE,[Tt.TAB]:H.TAB,[Tt.HOME]:H.HOME,[Tt.END]:H.END,[Tt.BACKSPACE]:H.BACKSPACE},re={DEFAULT:"default",SPATIAL:"spatial"},Lt=n=>{class o extends n{constructor(){super(...arguments);this.spatialNavigationContext=me.consume({host:this,context:Zf.Context})}getKeyboardNavMode(){var a;return((a=this.spatialNavigationContext)==null?void 0:a.value)?re.SPATIAL:re.DEFAULT}getActionForKeyEvent(i,a=!1){var v,S,R;let f=((R=(S=(v=this.spatialNavigationContext)==null?void 0:v.value)==null?void 0:S.keyToActionMap)!=null?R:Ux)[i.key];if(a){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===H.LEFT)return H.RIGHT;if(f===H.RIGHT)return H.LEFT}return f}isDirectionAction(i){return i===H.UP||i===H.DOWN||i===H.LEFT||i===H.RIGHT}}return o};var Ot=n=>{class o extends n{constructor(...i){super(...i);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=i=>{this.keyDownEventHandledFlag&&i.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return o};var xt=z`
19
19
  :host {
20
20
  align-items: center;
21
21
  display: flex;
@@ -39,7 +39,7 @@
39
39
  `,Hr=z`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
40
40
  0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
41
41
  0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
42
- `,xt=(n=!1,o="focus-on-child")=>n&&o==="focus-on-child"?[Ur,z`
42
+ `,At=(n=!1,o="focus-on-child")=>n&&o==="focus-on-child"?[Ur,z`
43
43
  .mdc-focus-ring:focus-visible {
44
44
  outline: none;
45
45
  }
@@ -96,7 +96,7 @@
96
96
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
97
97
  }
98
98
  }
99
- `];var Hx=[Tt,z`
99
+ `];var Hx=[xt,z`
100
100
  :host {
101
101
  --mdc-button-height: unset;
102
102
  --mdc-button-background: transparent;
@@ -149,7 +149,7 @@
149
149
  :host([size='20']) {
150
150
  --mdc-button-height: 1.25rem;
151
151
  }
152
- `,...xt()],Qf=Hx;var Er=class extends Ot(Lt(Ve(si(Zt(Q))))){constructor(){super();this.size=cn.SIZE;this.role=cn.ROLE;this.type=cn.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||cn.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Hs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Hs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{e===!0?t.setAttribute(a.trim(),"true"):e===!1?t.setAttribute(a.trim(),"false"):t.removeAttribute(a.trim())})}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,e){e?(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 e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.add("pressed"),e===K.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===K.ENTER||e===K.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===K.SPACE&&i&&this.triggerClickEvent()}}render(){return A` <slot></slot> `}};Er.formAssociated=!0,Er.styles=[...Q.styles,...Qf],h([u({type:Boolean,reflect:!0})],Er.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Er.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],Er.prototype,"size",2),h([u({type:String,reflect:!0})],Er.prototype,"role",2),h([u({type:String,reflect:!0})],Er.prototype,"ariaStateKey",2),h([u({reflect:!0})],Er.prototype,"type",2),h([u({type:String,reflect:!0})],Er.prototype,"name",2),h([u({type:String,reflect:!0})],Er.prototype,"value",2);var Ee=Er;var Xl=n=>{class o extends n{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}isHeightOverflowing(){return this.scrollHeight>this.clientHeight}}return o};var Gx=z`
152
+ `,...At()],Qf=Hx;var Er=class extends Ot(Lt(Ve(si(Zt(Q))))){constructor(){super();this.size=cn.SIZE;this.role=cn.ROLE;this.type=cn.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||cn.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Hs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Hs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{e===!0?t.setAttribute(a.trim(),"true"):e===!1?t.setAttribute(a.trim(),"false"):t.removeAttribute(a.trim())})}setSoftDisabled(t,e){e?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")}setDisabled(t,e){e?(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 e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.classList.add("pressed"),e===H.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===H.ENTER||e===H.SPACE){let i=this.classList.contains("pressed");this.classList.remove("pressed"),e===H.SPACE&&i&&this.triggerClickEvent()}}render(){return A` <slot></slot> `}};Er.formAssociated=!0,Er.styles=[...Q.styles,...Qf],h([u({type:Boolean,reflect:!0})],Er.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Er.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],Er.prototype,"size",2),h([u({type:String,reflect:!0})],Er.prototype,"role",2),h([u({type:String,reflect:!0})],Er.prototype,"ariaStateKey",2),h([u({reflect:!0})],Er.prototype,"type",2),h([u({type:String,reflect:!0})],Er.prototype,"name",2),h([u({type:String,reflect:!0})],Er.prototype,"value",2);var Ee=Er;var Xl=n=>{class o extends n{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}isHeightOverflowing(){return this.scrollHeight>this.clientHeight}}return o};var Gx=z`
153
153
  :host {
154
154
  --mdc-button-prefix-icon-size: 1rem;
155
155
  --mdc-button-postfix-icon-size: 1rem;
@@ -492,7 +492,7 @@
492
492
  length-unit="rem"
493
493
  ></mdc-icon>`:""}
494
494
  </slot>
495
- `}};ni.styles=[...Ee.styles,...Jf],h([Ht('slot[part="button-text"]')],ni.prototype,"buttonTextPart",2),h([u({type:Number})],ni.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ni.prototype,"inverted",2),h([u({type:String,reflect:!0})],ni.prototype,"role",2),h([lt()],ni.prototype,"prefixFilledIconName",2),h([lt()],ni.prototype,"postfixFilledIconName",2);var vo=ni;var un={},tv=async n=>(un[n]===void 0&&(un[n]=new Map),{async set(o,t){un[n].set(o.url,await t.text())},async get(o){return un[n].get(o.url)},async delete(o){un[n].delete(o.url)}}),ev=async n=>{let o=await caches.open(n);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},rv=async(n,o)=>o==="in-memory-cache"?tv(n):ev(n);var iv=async(n,o)=>fetch(n).then(t=>{if(!t.ok)throw new Error(`There was a problem while fetching the ${o}!`);return t}),Mh=new Map,Ys=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a,assetType:d})=>{let f=a(),v=`${n}/${o}.${t}`,S=`${d}:${v}`,R=new Request(v,{signal:f});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?iv(R,d).then(U=>U.text()):rv(i,e).then(U=>U.get(R).then(J=>{if(J)return J;let j=Mh.get(S);if(j)return j;let Z=iv(new Request(v),d).then(rt=>{var st;return rt.status<400&&rt.headers.has("content-type")?(st=U.set)==null?void 0:st.call(U,R,rt.clone()).then(()=>rt.text()):rt.text()}).finally(()=>{Mh.delete(S)});return Mh.set(S,Z),Z}).catch(J=>{throw new Error(`Error in caching the ${d} ${o}, ${J}`)}))};var Zl=$.constructTagName("iconprovider"),ov=["svg"],sv=["em","rem","px","%"],Kx={px:16,em:1,rem:1,"%":100},Vi={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Kx.em,ICON_SET:"momentum-icons"};var Ql=class{};Ql.context=Zl;var Jl=Ql;var li=class extends pe{constructor(){super({context:Jl.context,initialValue:new Jl});this.iconSet=Vi.ICON_SET;this.fileExtension=Vi.FILE_EXTENSION;this.lengthUnit=Vi.LENGTH_UNIT;this.size=Vi.SIZE}static get Context(){return Jl.context}updateValuesInContext(){this.fileExtension&&ov.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Vi.FILE_EXTENSION,this.context.value.fileExtension=Vi.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&&sv.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Vi.LENGTH_UNIT,this.context.value.lengthUnit=Vi.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],li.prototype,"iconSet",2),h([u({type:String})],li.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],li.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],li.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],li.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],li.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],li.prototype,"cacheName",2);var fn=li;var Wx=[Tt,z`
495
+ `}};ni.styles=[...Ee.styles,...Jf],h([Ht('slot[part="button-text"]')],ni.prototype,"buttonTextPart",2),h([u({type:Number})],ni.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ni.prototype,"inverted",2),h([u({type:String,reflect:!0})],ni.prototype,"role",2),h([lt()],ni.prototype,"prefixFilledIconName",2),h([lt()],ni.prototype,"postfixFilledIconName",2);var vo=ni;var un={},tv=async n=>(un[n]===void 0&&(un[n]=new Map),{async set(o,t){un[n].set(o.url,await t.text())},async get(o){return un[n].get(o.url)},async delete(o){un[n].delete(o.url)}}),ev=async n=>{let o=await caches.open(n);return{set:async(t,e)=>{await o.put(t,e)},get:async t=>{let e=await o.match(t);return e==null?void 0:e.text()},delete:async t=>{await o.delete(t)}}},rv=async(n,o)=>o==="in-memory-cache"?tv(n):ev(n);var iv=async(n,o)=>fetch(n).then(t=>{if(!t.ok)throw new Error(`There was a problem while fetching the ${o}!`);return t}),Mh=new Map,Ys=async({url:n,name:o,fileExtension:t,cacheStrategy:e,cacheName:i,renewSignal:a,assetType:d})=>{let f=a(),v=`${n}/${o}.${t}`,S=`${d}:${v}`,R=new Request(v,{signal:f});return!i||!e||!["in-memory-cache","web-cache-api"].includes(e)?iv(R,d).then(U=>U.text()):rv(i,e).then(U=>U.get(R).then(J=>{if(J)return J;let j=Mh.get(S);if(j)return j;let Z=iv(new Request(v),d).then(rt=>{var st;return rt.status<400&&rt.headers.has("content-type")?(st=U.set)==null?void 0:st.call(U,R,rt.clone()).then(()=>rt.text()):rt.text()}).finally(()=>{Mh.delete(S)});return Mh.set(S,Z),Z}).catch(J=>{throw new Error(`Error in caching the ${d} ${o}, ${J}`)}))};var Zl=$.constructTagName("iconprovider"),ov=["svg"],sv=["em","rem","px","%"],Kx={px:16,em:1,rem:1,"%":100},Vi={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Kx.em,ICON_SET:"momentum-icons"};var Ql=class{};Ql.context=Zl;var Jl=Ql;var li=class extends pe{constructor(){super({context:Jl.context,initialValue:new Jl});this.iconSet=Vi.ICON_SET;this.fileExtension=Vi.FILE_EXTENSION;this.lengthUnit=Vi.LENGTH_UNIT;this.size=Vi.SIZE}static get Context(){return Jl.context}updateValuesInContext(){this.fileExtension&&ov.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Vi.FILE_EXTENSION,this.context.value.fileExtension=Vi.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&&sv.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Vi.LENGTH_UNIT,this.context.value.lengthUnit=Vi.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"icon-set",reflect:!0})],li.prototype,"iconSet",2),h([u({type:String})],li.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],li.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],li.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],li.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],li.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],li.prototype,"cacheName",2);var fn=li;var Wx=[xt,z`
496
496
  :host {
497
497
  --mdc-icon-fill-color: currentColor;
498
498
  --mdc-icon-size: var(--computed-icon-size);
@@ -507,7 +507,7 @@
507
507
  width: 100%;
508
508
  fill: var(--mdc-icon-fill-color);
509
509
  }
510
- `,...xt()],av=Wx;var nv=$.constructTagName("icon"),Oh={NAME:void 0,SIZE:1};var Tr=class extends Q{constructor(){super();this.name=Oh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=me.consume({host:this,context:fn.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:a,iconSet:d,cacheStrategy:f}=this.iconProviderContext.value;if(d==="custom-icons"&&i&&e&&this.name){let v=()=>{var S;return(S=this.abortController)==null||S.abort(),this.abortController=new AbortController,this.abortController.signal};return Ys({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v,assetType:"icon"}).then(S=>{let R=this.prepareIconElement(S);this.handleIconLoadedSuccess(R)}).catch(S=>{this.handleIconLoadedFailure(S)})}if(d==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(v=>{this.handleIconLoadedSuccess(v.default())}).catch(v=>{this.handleIconLoadedFailure(v)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:Oh.SIZE}updated(t){var e,i,a,d;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(d=this.iconProviderContext.value)==null?void 0:d.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return A` ${this.iconData} `}};Tr.styles=[...Q.styles,...av],h([lt()],Tr.prototype,"iconData",2),h([lt()],Tr.prototype,"lengthUnitFromContext",2),h([lt()],Tr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],Tr.prototype,"name",2),h([u({type:Number})],Tr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],Tr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],Tr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Tr.prototype,"ariaLabelledby",2),h([lt()],Tr.prototype,"abortController",2);var Rh=Tr;Rh.register(nv);var Yx=Rh;vo.register(Pi);var jx=vo;var lv=z`
510
+ `,...At()],av=Wx;var nv=$.constructTagName("icon"),Oh={NAME:void 0,SIZE:1};var Tr=class extends Q{constructor(){super();this.name=Oh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=me.consume({host:this,context:fn.Context});this.abortController=new AbortController}prepareIconElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","icon"),e.setAttribute("aria-hidden","true"),e}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:e,url:i,cacheName:a,iconSet:d,cacheStrategy:f}=this.iconProviderContext.value;if(d==="custom-icons"&&i&&e&&this.name){let v=()=>{var S;return(S=this.abortController)==null||S.abort(),this.abortController=new AbortController,this.abortController.signal};return Ys({url:i,name:this.name,fileExtension:e,cacheName:a,cacheStrategy:f,renewSignal:v,assetType:"icon"}).then(S=>{let R=this.prepareIconElement(S);this.handleIconLoadedSuccess(R)}).catch(S=>{this.handleIconLoadedFailure(S)})}if(d==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(v=>{this.handleIconLoadedSuccess(v.default())}).catch(v=>{this.handleIconLoadedFailure(v)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:Oh.SIZE}updated(t){var e,i,a,d;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(d=this.iconProviderContext.value)==null?void 0:d.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return A` ${this.iconData} `}};Tr.styles=[...Q.styles,...av],h([lt()],Tr.prototype,"iconData",2),h([lt()],Tr.prototype,"lengthUnitFromContext",2),h([lt()],Tr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],Tr.prototype,"name",2),h([u({type:Number})],Tr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],Tr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],Tr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Tr.prototype,"ariaLabelledby",2),h([lt()],Tr.prototype,"abortController",2);var Rh=Tr;Rh.register(nv);var Yx=Rh;vo.register(Pi);var jx=vo;var lv=z`
511
511
  :host::part(text) {
512
512
  font-size: unset;
513
513
  font-weight: unset;
@@ -757,7 +757,7 @@
757
757
  display: block;
758
758
  font-family: var(--mdc-text-font-family);
759
759
  }
760
- `,lv],dv=qx;var vn=$.constructTagName("text"),at={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"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var rs=class extends Xl(Q){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return A`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return A`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return A`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return A`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return A`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return A`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return A`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return A`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return A`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return A`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};rs.styles=[...Q.styles,...dv],h([Ht(`[part='${Me.CSS_PART_TEXT}']`)],rs.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],rs.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],rs.prototype,"tagname",2);var Dh=rs;Dh.register(vn);var Xx=Dh;var tt=n=>n!=null?n:H;var Oe=[];for(let n=0;n<256;++n)Oe.push((n+256).toString(16).slice(1));function cv(n,o=0){return(Oe[n[o+0]]+Oe[n[o+1]]+Oe[n[o+2]]+Oe[n[o+3]]+"-"+Oe[n[o+4]]+Oe[n[o+5]]+"-"+Oe[n[o+6]]+Oe[n[o+7]]+"-"+Oe[n[o+8]]+Oe[n[o+9]]+"-"+Oe[n[o+10]]+Oe[n[o+11]]+Oe[n[o+12]]+Oe[n[o+13]]+Oe[n[o+14]]+Oe[n[o+15]]).toLowerCase()}var Ph,Zx=new Uint8Array(16);function Fh(){if(!Ph){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ph=crypto.getRandomValues.bind(crypto)}return Ph(Zx)}var Qx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$h={randomUUID:Qx};function Jx(n,o,t){var i,a,d;if($h.randomUUID&&!o&&!n)return $h.randomUUID();n=n||{};let e=(d=(a=n.random)!=null?a:(i=n.rng)==null?void 0:i.call(n))!=null?d:Fh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[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]=e[f];return o}return cv(e)}var ze=Jx;var hv=$.constructTagName("accordiongroup"),Vh={SMALL:"small",LARGE:"large"},tA={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},gn={SIZE:Vh.SMALL,VARIANT:tA.STACKED};var td=$.constructTagName("accordionbutton"),bn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},eA={DEFAULT:"default",BORDERLESS:"borderless"},yn={LEADING:"leading",TRAILING:"trailing"},di={EXPANDED:!1,SIZE:Vh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:eA.DEFAULT,ICON_NAME:bn.ARROW_UP,TOGGLE_POSITION:yn.TRAILING};var rA=z`
760
+ `,lv],dv=qx;var vn=$.constructTagName("text"),at={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"},Me={TYPE:at.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:pt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var rs=class extends Xl(Q){constructor(){super(...arguments);this.type=Me.TYPE;this.tagname=Me.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[pt.SPAN,pt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case pt.H1:return A`<h1 part=${Me.CSS_PART_TEXT}><slot></slot></h1>`;case pt.H2:return A`<h2 part=${Me.CSS_PART_TEXT}><slot></slot></h2>`;case pt.H3:return A`<h3 part=${Me.CSS_PART_TEXT}><slot></slot></h3>`;case pt.H4:return A`<h4 part=${Me.CSS_PART_TEXT}><slot></slot></h4>`;case pt.H5:return A`<h5 part=${Me.CSS_PART_TEXT}><slot></slot></h5>`;case pt.H6:return A`<h6 part=${Me.CSS_PART_TEXT}><slot></slot></h6>`;case pt.DIV:return A`<div part=${Me.CSS_PART_TEXT}><slot></slot></div>`;case pt.SPAN:return A`<span part=${Me.CSS_PART_TEXT}><slot></slot></span>`;case pt.SMALL:return A`<small part=${Me.CSS_PART_TEXT}><slot></slot></small>`;case pt.P:default:return A`<p part=${Me.CSS_PART_TEXT}><slot></slot></p>`}}};rs.styles=[...Q.styles,...dv],h([Ht(`[part='${Me.CSS_PART_TEXT}']`)],rs.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],rs.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],rs.prototype,"tagname",2);var Dh=rs;Dh.register(vn);var Xx=Dh;var tt=n=>n!=null?n:G;var Oe=[];for(let n=0;n<256;++n)Oe.push((n+256).toString(16).slice(1));function cv(n,o=0){return(Oe[n[o+0]]+Oe[n[o+1]]+Oe[n[o+2]]+Oe[n[o+3]]+"-"+Oe[n[o+4]]+Oe[n[o+5]]+"-"+Oe[n[o+6]]+Oe[n[o+7]]+"-"+Oe[n[o+8]]+Oe[n[o+9]]+"-"+Oe[n[o+10]]+Oe[n[o+11]]+Oe[n[o+12]]+Oe[n[o+13]]+Oe[n[o+14]]+Oe[n[o+15]]).toLowerCase()}var Ph,Zx=new Uint8Array(16);function Fh(){if(!Ph){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ph=crypto.getRandomValues.bind(crypto)}return Ph(Zx)}var Qx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$h={randomUUID:Qx};function Jx(n,o,t){var i,a,d;if($h.randomUUID&&!o&&!n)return $h.randomUUID();n=n||{};let e=(d=(a=n.random)!=null?a:(i=n.rng)==null?void 0:i.call(n))!=null?d:Fh();if(e.length<16)throw new Error("Random bytes length must be >= 16");if(e[6]=e[6]&15|64,e[8]=e[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]=e[f];return o}return cv(e)}var ze=Jx;var hv=$.constructTagName("accordiongroup"),Vh={SMALL:"small",LARGE:"large"},tA={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},gn={SIZE:Vh.SMALL,VARIANT:tA.STACKED};var td=$.constructTagName("accordionbutton"),bn={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},eA={DEFAULT:"default",BORDERLESS:"borderless"},yn={LEADING:"leading",TRAILING:"trailing"},di={EXPANDED:!1,SIZE:Vh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:eA.DEFAULT,ICON_NAME:bn.ARROW_UP,TOGGLE_POSITION:yn.TRAILING};var rA=z`
761
761
  :host {
762
762
  --mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
763
763
  --mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
@@ -874,13 +874,13 @@
874
874
  :host([variant='default']:not([expanded]))::part(header-section) {
875
875
  border-bottom: none;
876
876
  }
877
- `,pv=[rA,...xt(!0)];var Gr=class extends Ot(Lt(Zt(Q))){constructor(){super(...arguments);this.size=di.SIZE;this.variant=di.VARIANT;this.dataAriaLevel=di.DATA_ARIA_LEVEL;this.expanded=di.EXPANDED;this.togglePosition=di.TOGGLE_POSITION;this.headSectionId=`head-section-${ze()}`;this.bodySectionId=`body-section-${ze()}`}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 e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?A`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:H}renderHeadingText(){return this.headerText?A`<mdc-text
877
+ `,pv=[rA,...At(!0)];var Gr=class extends Ot(Lt(Zt(Q))){constructor(){super(...arguments);this.size=di.SIZE;this.variant=di.VARIANT;this.dataAriaLevel=di.DATA_ARIA_LEVEL;this.expanded=di.EXPANDED;this.togglePosition=di.TOGGLE_POSITION;this.headSectionId=`head-section-${ze()}`;this.bodySectionId=`body-section-${ze()}`}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 e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?A`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:G}renderHeadingText(){return this.headerText?A`<mdc-text
878
878
  id="${this.headSectionId}"
879
879
  type="${at.BODY_LARGE_REGULAR}"
880
880
  tagname=${pt.SPAN}
881
881
  part="leading-header-text"
882
882
  >${this.headerText}</mdc-text
883
- >`:H}renderToggleIcon(){return A`<div part="toggle-icon">${this.renderIcon(this.getArrowIconName())}</div>`}renderHeader(){let t=this.togglePosition===yn.LEADING;return A`
883
+ >`:G}renderToggleIcon(){return A`<div part="toggle-icon">${this.renderIcon(this.getArrowIconName())}</div>`}renderHeader(){let t=this.togglePosition===yn.LEADING;return A`
884
884
  <div
885
885
  part="header-section"
886
886
  class="mdc-focus-ring"
@@ -897,20 +897,20 @@
897
897
  aria-controls="${this.bodySectionId}"
898
898
  >
899
899
  <div part="leading-header">
900
- ${t?this.renderToggleIcon():H} ${this.renderIcon(this.prefixIcon)}
900
+ ${t?this.renderToggleIcon():G} ${this.renderIcon(this.prefixIcon)}
901
901
  ${this.renderHeadingText()}
902
902
  </div>
903
- ${t?H:A`<div part="trailing-header">${this.renderToggleIcon()}</div>`}
903
+ ${t?G:A`<div part="trailing-header">${this.renderToggleIcon()}</div>`}
904
904
  </div>
905
905
  </div>
906
- `}getArrowIconName(){return this.disabled?bn.ARROW_DOWN:this.expanded?bn.ARROW_UP:bn.ARROW_DOWN}renderBody(){return this.disabled?H:this.expanded?A`<div
906
+ `}getArrowIconName(){return this.disabled?bn.ARROW_DOWN:this.expanded?bn.ARROW_UP:bn.ARROW_DOWN}renderBody(){return this.disabled?G:this.expanded?A`<div
907
907
  id="${this.bodySectionId}"
908
908
  aria-labelledby="${this.headSectionId}"
909
909
  part="body-section"
910
910
  role="${et.REGION}"
911
911
  >
912
912
  <slot></slot>
913
- </div>`:H}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=di.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=di.SIZE),t.has("variant")&&!this.variant&&(this.variant=di.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=di.TOGGLE_POSITION)}render(){return A` ${this.renderHeader()} ${this.renderBody()} `}};Gr.styles=[...Q.styles,...pv],h([u({type:String,reflect:!0})],Gr.prototype,"size",2),h([u({type:String,reflect:!0})],Gr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Gr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],Gr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Gr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Gr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],Gr.prototype,"togglePosition",2);var js=Gr;var iA=z`
913
+ </div>`:G}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=di.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=di.SIZE),t.has("variant")&&!this.variant&&(this.variant=di.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=di.TOGGLE_POSITION)}render(){return A` ${this.renderHeader()} ${this.renderBody()} `}};Gr.styles=[...Q.styles,...pv],h([u({type:String,reflect:!0})],Gr.prototype,"size",2),h([u({type:String,reflect:!0})],Gr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Gr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],Gr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Gr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Gr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],Gr.prototype,"togglePosition",2);var js=Gr;var iA=z`
914
914
  :host::part(header-section) {
915
915
  display: flex;
916
916
  align-items: center;
@@ -939,7 +939,7 @@
939
939
  `}renderHeader(){let o=this.togglePosition===yn.LEADING;return A`
940
940
  <div part="header-section" @shown="${this.handleHeaderShownEvent}">
941
941
  <div part="leading-header">
942
- ${o?this.renderToggleButton():H} ${this.renderIcon(this.prefixIcon)}
942
+ ${o?this.renderToggleButton():G} ${this.renderIcon(this.prefixIcon)}
943
943
  <div role="${et.HEADING}" aria-level="${this.dataAriaLevel}">
944
944
  <slot name="leading-header-text">${this.renderHeadingText()}</slot>
945
945
  </div>
@@ -947,7 +947,7 @@
947
947
  </div>
948
948
  <div part="trailing-header">
949
949
  <slot name="trailing-controls"></slot>
950
- ${o?H:this.renderToggleButton()}
950
+ ${o?G:this.renderToggleButton()}
951
951
  </div>
952
952
  </div>
953
953
  `}};go.styles=[...js.styles,...mv],h([Xt({slot:"leading-controls"})],go.prototype,"leadingControlsSlot",2),h([Xt({slot:"trailing-controls"})],go.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],go.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],go.prototype,"closeButtonAriaLabel",2);var zh=go;var ed=$.constructTagName("accordion");zh.register(ed);var oA=zh;var sA=z`
@@ -994,7 +994,7 @@
994
994
  :host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
995
995
  border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
996
996
  }
997
- `,uv=[sA,...xt()];var zi=class extends Q{constructor(){super();this.size=gn.SIZE;this.variant=gn.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=gn.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=gn.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return A` <slot></slot> `}};zi.styles=[...Q.styles,...uv],h([u({type:String,reflect:!0})],zi.prototype,"size",2),h([u({type:String,reflect:!0})],zi.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],zi.prototype,"allowMultiple",2),h([Xt({selector:ed})],zi.prototype,"accordionItems",2),h([Xt({selector:td})],zi.prototype,"accordionButtonItems",2);var Bh=zi;Bh.register(hv);var aA=Bh;js.register(td);var nA=js;var ue=n=>{class o extends n{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var lA=z`
997
+ `,uv=[sA,...At()];var zi=class extends Q{constructor(){super();this.size=gn.SIZE;this.variant=gn.VARIANT;this.allowMultiple=!1;this.addEventListener("shown",this.handleAccordionExpanded)}handleAccordionExpanded(t){this.allowMultiple||[...this.accordionItems,...this.accordionButtonItems].forEach(e=>{e!==t.target&&e.hasAttribute("expanded")&&e.toggleAttribute("expanded")})}setChildrenAccordionAttributes(t,e){[...this.accordionItems].forEach(i=>{i.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(i=>{i.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=gn.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=gn.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return A` <slot></slot> `}};zi.styles=[...Q.styles,...uv],h([u({type:String,reflect:!0})],zi.prototype,"size",2),h([u({type:String,reflect:!0})],zi.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],zi.prototype,"allowMultiple",2),h([Xt({selector:ed})],zi.prototype,"accordionItems",2),h([Xt({selector:td})],zi.prototype,"accordionButtonItems",2);var Bh=zi;Bh.register(hv);var aA=Bh;js.register(td);var nA=js;var ue=n=>{class o extends n{}return h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var lA=z`
998
998
  :host {
999
999
  height: 1.5rem;
1000
1000
  gap: 0.25rem;
@@ -1107,12 +1107,12 @@
1107
1107
  --mdc-chip-icon-color: ButtonText;
1108
1108
  }
1109
1109
  }
1110
- `,fv=[Tt,lA,...xt()];var rd=$.constructTagName("alertchip"),is={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},qs={VARIANT:is.NEUTRAL,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Qo[24],ROLE:et.BUTTON};var vv=n=>({[is.ERROR]:"error-legacy-badge-filled",[is.INFORMATIONAL]:"info-badge-filled",[is.NEUTRAL]:"dnd-presence-badge-filled",[is.SUCCESS]:"check-circle-badge-filled",[is.WARNING]:"warning-badge-filled"})[n];var Xs=class extends ue(Ee){constructor(){super(...arguments);this.variant=qs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=qs.SIZE,this.role=qs.ROLE}render(){return A`
1110
+ `,fv=[xt,lA,...At()];var rd=$.constructTagName("alertchip"),is={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},qs={VARIANT:is.NEUTRAL,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Qo[24],ROLE:et.BUTTON};var vv=n=>({[is.ERROR]:"error-legacy-badge-filled",[is.INFORMATIONAL]:"info-badge-filled",[is.NEUTRAL]:"dnd-presence-badge-filled",[is.SUCCESS]:"check-circle-badge-filled",[is.WARNING]:"warning-badge-filled"})[n];var Xs=class extends ue(Ee){constructor(){super(...arguments);this.variant=qs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=qs.SIZE,this.role=qs.ROLE}render(){return A`
1111
1111
  <mdc-icon part="icon" name="${this.iconName||vv(this.variant)}" length-unit="rem" size="1"></mdc-icon>
1112
1112
  ${this.label?A`<mdc-text part="label" type="${qs.TEXT_TYPE}" tagname="${qs.TAG_NAME}"
1113
1113
  >${this.label}</mdc-text
1114
- >`:H}
1115
- `}};Xs.styles=[...Q.styles,...fv],h([u({type:String,reflect:!0})],Xs.prototype,"variant",2),h([u({type:String})],Xs.prototype,"label",2);var Uh=Xs;Uh.register(rd);var dA=Uh;var{I:cA}=Lf;var id=n=>n.strings===void 0,gv=()=>document.createComment(""),Zs=(n,o,t)=>{var a;let e=n._$AA.parentNode,i=o===void 0?n._$AB:o._$AA;if(t===void 0){let d=e.insertBefore(gv(),i),f=e.insertBefore(gv(),i);t=new cA(d,f,n,n.options)}else{let d=t._$AB.nextSibling,f=t._$AM,v=f!==n;if(v){let S;(a=t._$AQ)==null||a.call(t,n),t._$AM=n,t._$AP!==void 0&&(S=n._$AU)!==f._$AU&&t._$AP(S)}if(d!==i||v){let S=t._$AA;for(;S!==d;){let R=S.nextSibling;e.insertBefore(S,i),S=R}}}return t},bo=(n,o,t=n)=>(n._$AI(o,t),n),hA={},od=(n,o=hA)=>n._$AH=o,bv=n=>n._$AH,sd=n=>{var e;(e=n._$AP)==null||e.call(n,!1,!0);let o=n._$AA,t=n._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var xr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Bi=n=>(...o)=>({_$litDirective$:n,values:o}),ci=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var En=(n,o)=>{var e;let t=n._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),En(i,o);return!0},ad=n=>{let o,t;do{if((o=n._$AM)===void 0)break;t=o._$AN,t.delete(n),n=o}while((t==null?void 0:t.size)===0)},yv=n=>{for(let o;o=n._$AM;n=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(n))break;t.add(n),uA(o)}};function pA(n){this._$AN!==void 0?(ad(this),this._$AM=n,yv(this)):this._$AM=n}function mA(n,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let a=t;a<e.length;a++)En(e[a],!1),ad(e[a]);else e!=null&&(En(e,!1),ad(e));else En(this,n)}var uA=n=>{var o,t;n.type==xr.CHILD&&((o=n._$AP)!=null||(n._$AP=mA),(t=n._$AQ)!=null||(n._$AQ=pA))},nd=class extends ci{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),yv(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(En(this,o),ad(this))}setValue(o){if(id(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 Ev=()=>new Gh,Gh=class{},Hh=new WeakMap,Tv=Bi(class extends nd{render(n){return H}update(n,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=n.options)==null?void 0:e.host,this.rt(this.ct=n.element)),H}rt(n){var o;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=Hh.get(t);e===void 0&&(e=new WeakMap,Hh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,o,t;return typeof this.Y=="function"?(o=Hh.get((n=this.ht)!=null?n: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 Iv=dx(xv());var Kh={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 fA=[Tt,z`
1114
+ >`:G}
1115
+ `}};Xs.styles=[...Q.styles,...fv],h([u({type:String,reflect:!0})],Xs.prototype,"variant",2),h([u({type:String})],Xs.prototype,"label",2);var Uh=Xs;Uh.register(rd);var dA=Uh;var{I:cA}=Lf;var id=n=>n.strings===void 0,gv=()=>document.createComment(""),Zs=(n,o,t)=>{var a;let e=n._$AA.parentNode,i=o===void 0?n._$AB:o._$AA;if(t===void 0){let d=e.insertBefore(gv(),i),f=e.insertBefore(gv(),i);t=new cA(d,f,n,n.options)}else{let d=t._$AB.nextSibling,f=t._$AM,v=f!==n;if(v){let S;(a=t._$AQ)==null||a.call(t,n),t._$AM=n,t._$AP!==void 0&&(S=n._$AU)!==f._$AU&&t._$AP(S)}if(d!==i||v){let S=t._$AA;for(;S!==d;){let R=S.nextSibling;e.insertBefore(S,i),S=R}}}return t},bo=(n,o,t=n)=>(n._$AI(o,t),n),hA={},od=(n,o=hA)=>n._$AH=o,bv=n=>n._$AH,sd=n=>{var e;(e=n._$AP)==null||e.call(n,!1,!0);let o=n._$AA,t=n._$AB.nextSibling;for(;o!==t;){let i=o.nextSibling;o.remove(),o=i}};var xr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Bi=n=>(...o)=>({_$litDirective$:n,values:o}),ci=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this.t=o,this._$AM=t,this.i=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var En=(n,o)=>{var e;let t=n._$AN;if(t===void 0)return!1;for(let i of t)(e=i._$AO)==null||e.call(i,o,!1),En(i,o);return!0},ad=n=>{let o,t;do{if((o=n._$AM)===void 0)break;t=o._$AN,t.delete(n),n=o}while((t==null?void 0:t.size)===0)},yv=n=>{for(let o;o=n._$AM;n=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(n))break;t.add(n),uA(o)}};function pA(n){this._$AN!==void 0?(ad(this),this._$AM=n,yv(this)):this._$AM=n}function mA(n,o=!1,t=0){let e=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(o)if(Array.isArray(e))for(let a=t;a<e.length;a++)En(e[a],!1),ad(e[a]);else e!=null&&(En(e,!1),ad(e));else En(this,n)}var uA=n=>{var o,t;n.type==xr.CHILD&&((o=n._$AP)!=null||(n._$AP=mA),(t=n._$AQ)!=null||(n._$AQ=pA))},nd=class extends ci{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,e){super._$AT(o,t,e),yv(this),this.isConnected=o._$AU}_$AO(o,t=!0){var e,i;o!==this.isConnected&&(this.isConnected=o,o?(e=this.reconnected)==null||e.call(this):(i=this.disconnected)==null||i.call(this)),t&&(En(this,o),ad(this))}setValue(o){if(id(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 Ev=()=>new Gh,Gh=class{},Hh=new WeakMap,Tv=Bi(class extends nd{render(n){return G}update(n,[o]){var e;let t=o!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=o,this.ht=(e=n.options)==null?void 0:e.host,this.rt(this.ct=n.element)),G}rt(n){var o;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(o=this.ht)!=null?o:globalThis,e=Hh.get(t);e===void 0&&(e=new WeakMap,Hh.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,o,t;return typeof this.Y=="function"?(o=Hh.get((n=this.ht)!=null?n: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 Iv=dx(xv());var Kh={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 fA=[xt,z`
1116
1116
  :host svg {
1117
1117
  display: block;
1118
1118
  }
@@ -1291,7 +1291,7 @@
1291
1291
  mdc-text::part(text) {
1292
1292
  margin: 0;
1293
1293
  }
1294
- `,Mv=[yA];var ie=class extends Ot(Lt(md(dd(Qs(Js(Q)))))){constructor(){super(...arguments);this.responsiveSettingsContext=me.consume({host:this,context:Qh.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new yo(this);this.id="";this.visible=Nr.VISIBLE;this.internalSize=Nr.SIZE;this.variant=Nr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=Nr.HEADER_TAG_NAME;this.descriptionTagName=Nr.DESCRIPTION_TAG_NAME;this.role=Nr.ROLE;this.disableAriaHasPopup=Nr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=Nr.FOCUS_TRAP;this.hideBackdrop=Nr.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==K.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,e;return(e=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&e.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(e=this.deactivateFocusTrap)==null||e.call(this),this.focusBackToTrigger(),Eo.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(),Eo.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerID")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.setupAriaHasPopup()),t.has("visible")){let e=t.get("visible");await this.isOpenUpdated(e,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=Nr.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,e;this.disableAriaHasPopup||(e=this.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerID&&this.setAttribute("aria-labelledby",this.triggerID)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerID&&this.setAttribute("aria-describedby",this.triggerID))}closeDialog(){this.depthManager.popHost(),Eo.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var i,a,d,f,v;t!==e&&(e&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((i=this.activateFocusTrap)==null||i.call(this)),(a=this.setInitialFocus)==null||a.call(this),(d=this.triggerElement)==null||d.setAttribute("aria-expanded","true"),Eo.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(v=this.deactivateFocusTrap)==null||v.call(this),this.focusBackToTrigger(),Eo.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?A` <div part="header-section">
1294
+ `,Mv=[yA];var ie=class extends Ot(Lt(md(dd(Qs(Js(Q)))))){constructor(){super(...arguments);this.responsiveSettingsContext=me.consume({host:this,context:Qh.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new yo(this);this.id="";this.visible=Nr.VISIBLE;this.internalSize=Nr.SIZE;this.variant=Nr.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=Nr.HEADER_TAG_NAME;this.descriptionTagName=Nr.DESCRIPTION_TAG_NAME;this.role=Nr.ROLE;this.disableAriaHasPopup=Nr.DISABLE_ARIA_HAS_POPUP;this.focusTrap=Nr.FOCUS_TRAP;this.hideBackdrop=Nr.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==H.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,e;return(e=(t=this.responsiveSettingsContext)==null?void 0:t.value)!=null&&e.forceFullscreenDialog?"fullscreen":this.internalSize}set size(t){this.internalSize=t}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapeKeydown.bind(this))}disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeEventListener("keydown",this.onEscapeKeydown),this.removeBackdrop(),(t=this.triggerElement)==null||t.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(e=this.deactivateFocusTrap)==null||e.call(this),this.focusBackToTrigger(),Eo.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(),Eo.onCreatedDialog(this)}async updated(t){if(super.updated(t),t.has("triggerID")&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),this.setupAriaHasPopup()),t.has("visible")){let e=t.get("visible");await this.isOpenUpdated(e,this.visible)}t.has("zIndex")&&(this.zIndex===null&&(this.zIndex=Nr.Z_INDEX),this.applyZIndex()),t.has("variant")&&this.updateFooterButtonColors(this.variant),(t.has("ariaLabel")||t.has("ariaLabelledby")||t.has("ariaDescribedby")||t.has("ariaDescription")||t.has("headerText")||t.has("descriptionText"))&&this.setupAriaLabelledDescribedBy(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap()}setupAriaHasPopup(){var t,e;this.disableAriaHasPopup||(e=this.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||"dialog")}setupAriaLabelledDescribedBy(){!this.ariaLabelledby&&!this.ariaLabel&&(this.headerText?this.setAttribute("aria-label",this.headerText):this.triggerID&&this.setAttribute("aria-labelledby",this.triggerID)),!this.ariaDescribedby&&!this.ariaDescription&&(this.descriptionText?this.setAttribute("aria-description",this.descriptionText):this.triggerID&&this.setAttribute("aria-describedby",this.triggerID))}closeDialog(){this.depthManager.popHost(),Eo.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var i,a,d,f,v;t!==e&&(e&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((i=this.activateFocusTrap)==null||i.call(this)),(a=this.setInitialFocus)==null||a.call(this),(d=this.triggerElement)==null||d.setAttribute("aria-expanded","true"),Eo.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(v=this.deactivateFocusTrap)==null||v.call(this),this.focusBackToTrigger(),Eo.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?A` <div part="header-section">
1295
1295
  <div part="header">
1296
1296
  <slot name="header-prefix"></slot>
1297
1297
  <mdc-text
@@ -1308,8 +1308,8 @@
1308
1308
  type="${at.BODY_MIDSIZE_REGULAR}"
1309
1309
  >
1310
1310
  ${this.descriptionText}
1311
- </mdc-text>`:H}
1312
- </div>`:H}renderBody(){return A` <div part="body">
1311
+ </mdc-text>`:G}
1312
+ </div>`:G}renderBody(){return A` <div part="body">
1313
1313
  <slot name="dialog-body"></slot>
1314
1314
  </div>`}render(){return A`
1315
1315
  ${this.renderHeader()}
@@ -1371,7 +1371,7 @@
1371
1371
  margin-inline-end: 0;
1372
1372
  }
1373
1373
  }
1374
- `,Ov=[EA];var Rv=$.constructTagName("announcementdialog");var Dv={SIZE:"medium"};var ra=class extends ea{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=Dv.SIZE}connectedCallback(){super.connectedCallback(),this.variant=Jh.DEFAULT}renderHeader(){return A`${H}`}renderBody(){return A`
1374
+ `,Ov=[EA];var Rv=$.constructTagName("announcementdialog");var Dv={SIZE:"medium"};var ra=class extends ea{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=Dv.SIZE}connectedCallback(){super.connectedCallback(),this.variant=Jh.DEFAULT}renderHeader(){return A`${G}`}renderBody(){return A`
1375
1375
  <div part="body">
1376
1376
  <div part="illustration-container">
1377
1377
  <slot name="illustration-container">
@@ -1391,7 +1391,7 @@
1391
1391
  </slot>
1392
1392
  </div>
1393
1393
  </div>
1394
- `}};ra.styles=[...ea.styles,...Ov],h([u({type:String,reflect:!0})],ra.prototype,"illustration",2),h([u({type:String,reflect:!0})],ra.prototype,"size",1);var tp=ra;var gd=$.constructTagName("illustrationprovider"),Pv=["svg"],xn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var bd=class{};bd.context=gd;var yd=bd;var To=class extends pe{constructor(){super({context:yd.context,initialValue:new yd});this.illustrationSet=xn.ILLUSTRATION_SET;this.fileExtension=xn.FILE_EXTENSION}static get Context(){return yd.context}updateValuesInContext(){this.fileExtension&&Pv.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=xn.FILE_EXTENSION,this.context.value.fileExtension=xn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"illustration-set",reflect:!0})],To.prototype,"illustrationSet",2),h([u({type:String})],To.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],To.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],To.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],To.prototype,"cacheName",2);var An=To;var TA=[Tt,z`
1394
+ `}};ra.styles=[...ea.styles,...Ov],h([u({type:String,reflect:!0})],ra.prototype,"illustration",2),h([u({type:String,reflect:!0})],ra.prototype,"size",1);var tp=ra;var gd=$.constructTagName("illustrationprovider"),Pv=["svg"],xn={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var bd=class{};bd.context=gd;var yd=bd;var To=class extends pe{constructor(){super({context:yd.context,initialValue:new yd});this.illustrationSet=xn.ILLUSTRATION_SET;this.fileExtension=xn.FILE_EXTENSION}static get Context(){return yd.context}updateValuesInContext(){this.fileExtension&&Pv.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=xn.FILE_EXTENSION,this.context.value.fileExtension=xn.FILE_EXTENSION),this.context.value.illustrationSet=this.illustrationSet,this.context.value.url=this.url,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.illustrationSet!==this.illustrationSet||this.context.value.url!==this.url||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};h([u({type:String,attribute:"illustration-set",reflect:!0})],To.prototype,"illustrationSet",2),h([u({type:String})],To.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],To.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],To.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],To.prototype,"cacheName",2);var An=To;var TA=[xt,z`
1395
1395
  :host {
1396
1396
  --mdc-illustration-size: auto;
1397
1397
  }
@@ -1443,7 +1443,7 @@
1443
1443
  <slot name="trailing"></slot>
1444
1444
  </div>
1445
1445
  </header>
1446
- `}};Ed.styles=[...Q.styles,...zv];var rp=Ed;var Bv=$.constructTagName("appheader");rp.register(Bv);var IA=rp;var Uv=$.constructTagName("avatar"),qe={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ip=99,CA="user-regular",Jt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ia={TYPE:qe.PHOTO,SIZE:Jt[32],ICON_NAME:CA};var Td=n=>{class o extends n{constructor(){super(...arguments);this.size=ia.SIZE;this.isTyping=!1}}return h([u({type:String})],o.prototype,"src",2),h([u({type:String})],o.prototype,"initials",2),h([u({type:String})],o.prototype,"presence",2),h([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),h([u({type:Number})],o.prototype,"counter",2),h([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var _A=[Tt,z`
1446
+ `}};Ed.styles=[...Q.styles,...zv];var rp=Ed;var Bv=$.constructTagName("appheader");rp.register(Bv);var IA=rp;var Uv=$.constructTagName("avatar"),qe={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ip=99,CA="user-regular",Jt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},ia={TYPE:qe.PHOTO,SIZE:Jt[32],ICON_NAME:CA};var Td=n=>{class o extends n{constructor(){super(...arguments);this.size=ia.SIZE;this.isTyping=!1}}return h([u({type:String})],o.prototype,"src",2),h([u({type:String})],o.prototype,"initials",2),h([u({type:String})],o.prototype,"presence",2),h([u({type:Number,reflect:!0,attribute:"size"})],o.prototype,"size",2),h([u({type:Number})],o.prototype,"counter",2),h([u({type:Boolean,attribute:"is-typing"})],o.prototype,"isTyping",2),o};var _A=[xt,z`
1447
1447
  :host {
1448
1448
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
1449
1449
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -1600,9 +1600,9 @@
1600
1600
  outline: 0.125rem solid;
1601
1601
  }
1602
1602
  }
1603
- `],Hv=_A;var Gv=$.constructTagName("presence"),Be={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"},fe={24:24,32:32,48:48,64:64,72:72,88:88,124:124},oa={TYPE:Be.ACTIVE,SIZE:fe[32]};var Kv=n=>({[Jt[124]]:fe[124],[Jt[88]]:fe[88],[Jt[72]]:fe[72],[Jt[64]]:fe[64],[Jt[48]]:fe[48],[Jt[32]]:fe[32],[Jt[24]]:fe[24]})[n]||fe[32],Wv=n=>({[Jt[124]]:4.75,[Jt[88]]:3,[Jt[72]]:2.5,[Jt[64]]:2.25,[Jt[48]]:1.75,[Jt[32]]:1.25,[Jt[24]]:1})[n]||1.25,Yv=n=>({[Jt[124]]:at.HEADING_XLARGE_MEDIUM,[Jt[88]]:at.HEADING_LARGE_MEDIUM,[Jt[72]]:at.HEADING_MIDSIZE_MEDIUM,[Jt[64]]:at.HEADING_SMALL_MEDIUM,[Jt[48]]:at.HEADING_SMALL_MEDIUM,[Jt[32]]:at.BODY_MIDSIZE_MEDIUM,[Jt[24]]:at.BODY_SMALL_MEDIUM})[n]||at.BODY_MIDSIZE_MEDIUM;var Sn=class extends Td(ue(Q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===qe.COUNTER&&(this.counter||this.counter===0)||this.isTyping?H:this.presence?A`
1603
+ `],Hv=_A;var Gv=$.constructTagName("presence"),Be={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"},fe={24:24,32:32,48:48,64:64,72:72,88:88,124:124},oa={TYPE:Be.ACTIVE,SIZE:fe[32]};var Kv=n=>({[Jt[124]]:fe[124],[Jt[88]]:fe[88],[Jt[72]]:fe[72],[Jt[64]]:fe[64],[Jt[48]]:fe[48],[Jt[32]]:fe[32],[Jt[24]]:fe[24]})[n]||fe[32],Wv=n=>({[Jt[124]]:4.75,[Jt[88]]:3,[Jt[72]]:2.5,[Jt[64]]:2.25,[Jt[48]]:1.75,[Jt[32]]:1.25,[Jt[24]]:1})[n]||1.25,Yv=n=>({[Jt[124]]:at.HEADING_XLARGE_MEDIUM,[Jt[88]]:at.HEADING_LARGE_MEDIUM,[Jt[72]]:at.HEADING_MIDSIZE_MEDIUM,[Jt[64]]:at.HEADING_SMALL_MEDIUM,[Jt[48]]:at.HEADING_SMALL_MEDIUM,[Jt[32]]:at.BODY_MIDSIZE_MEDIUM,[Jt[24]]:at.BODY_SMALL_MEDIUM})[n]||at.BODY_MIDSIZE_MEDIUM;var Sn=class extends Td(ue(Q)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===qe.COUNTER&&(this.counter||this.counter===0)||this.isTyping?G:this.presence?A`
1604
1604
  <mdc-presence part="presence" type="${this.presence}" size="${Kv(this.size)}"></mdc-presence>
1605
- `:H}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 A`
1605
+ `:G}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 A`
1606
1606
  <img
1607
1607
  part="photo"
1608
1608
  src="${tt(this.src)}"
@@ -1613,10 +1613,10 @@
1613
1613
  />
1614
1614
  `}iconTemplate(){let t=this.iconName||ia.ICON_NAME;return A`
1615
1615
  <mdc-icon name="${tt(t)}" length-unit="rem" size="${Wv(this.size)}"></mdc-icon>
1616
- `}textTemplate(t){return A` <mdc-text type="${Yv(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>ip?`${ip}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let e="";return t===qe.TEXT&&this.initials&&(e=this.generateInitialsText(this.initials)),t===qe.COUNTER&&(this.counter||this.counter===0)&&(e=this.generateCounterText(this.counter)),this.textTemplate(e)}getTypeBasedOnInputs(){return this.src?qe.PHOTO:this.iconName?qe.ICON:this.initials?qe.TEXT:this.counter||this.counter===0?qe.COUNTER:qe.ICON}getTemplateBasedOnType(t){switch(t){case qe.PHOTO:return this.photoTemplate();case qe.TEXT:case qe.COUNTER:return this.generateTextContent(t);case qe.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?A`<div part="loading-wrapper"><div part="loader"></div></div>`:H}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?H:t===qe.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():H}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return A`
1616
+ `}textTemplate(t){return A` <mdc-text type="${Yv(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>ip?`${ip}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let e="";return t===qe.TEXT&&this.initials&&(e=this.generateInitialsText(this.initials)),t===qe.COUNTER&&(this.counter||this.counter===0)&&(e=this.generateCounterText(this.counter)),this.textTemplate(e)}getTypeBasedOnInputs(){return this.src?qe.PHOTO:this.iconName?qe.ICON:this.initials?qe.TEXT:this.counter||this.counter===0?qe.COUNTER:qe.ICON}getTemplateBasedOnType(t){switch(t){case qe.PHOTO:return this.photoTemplate();case qe.TEXT:case qe.COUNTER:return this.generateTextContent(t);case qe.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?A`<div part="loading-wrapper"><div part="loader"></div></div>`:G}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?G:t===qe.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():G}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return A`
1617
1617
  ${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
1618
1618
  ${this.getPresenceTemplateBasedOnType(t)}
1619
- `}};Sn.styles=[...Q.styles,...Hv],h([lt()],Sn.prototype,"isPhotoLoaded",2);var op=Sn;var wA=[Tt,z`
1619
+ `}};Sn.styles=[...Q.styles,...Hv],h([lt()],Sn.prototype,"isPhotoLoaded",2);var op=Sn;var wA=[xt,z`
1620
1620
  :host {
1621
1621
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
1622
1622
  --mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
@@ -1720,7 +1720,7 @@
1720
1720
  @error="${this.handleOnError}"
1721
1721
  ></mdc-icon>
1722
1722
  </div>
1723
- `}};os.styles=[...Q.styles,...jv],h([u({type:String,reflect:!0})],os.prototype,"type",2),h([u({type:Number,reflect:!0})],os.prototype,"size",2),h([lt()],os.prototype,"currentIconType",2);var sp=os;sp.register(Gv);var kA=sp;op.register(Uv);var NA=op;var LA=[Tt,z`
1723
+ `}};os.styles=[...Q.styles,...jv],h([u({type:String,reflect:!0})],os.prototype,"type",2),h([u({type:Number,reflect:!0})],os.prototype,"size",2),h([lt()],os.prototype,"currentIconType",2);var sp=os;sp.register(Gv);var kA=sp;op.register(Uv);var NA=op;var LA=[xt,z`
1724
1724
  :host {
1725
1725
  --mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
1726
1726
  --mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
@@ -1759,7 +1759,7 @@
1759
1759
  --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
1760
1760
  --mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
1761
1761
  }
1762
- `,...xt()],Zv=LA;var In=class extends Td(ue(Ee)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=et.BUTTON,this.type=nr.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Jt).includes(t)?`${t}`:ia.SIZE.toString())}render(){return A`
1762
+ `,...At()],Zv=LA;var In=class extends Td(ue(Ee)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=et.BUTTON,this.type=nr.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Jt).includes(t)?`${t}`:ia.SIZE.toString())}render(){return A`
1763
1763
  <div part="overlay" aria-hidden="true"></div>
1764
1764
  <mdc-avatar
1765
1765
  exportparts="content, photo, presence, loading-wrapper, loader"
@@ -1771,7 +1771,7 @@
1771
1771
  size="${tt(this.size)}"
1772
1772
  src="${tt(this.src)}"
1773
1773
  ></mdc-avatar>
1774
- `}};In.styles=[...Zv],h([u({type:String,attribute:"aria-label"})],In.prototype,"ariaLabel",2);var ap=In;var Qv=$.constructTagName("avatarbutton");ap.register(Qv);var MA=ap;var Jv=$.constructTagName("badge"),Lr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},xd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},np={PRIMARY:"primary",SECONDARY:"secondary"},Hi={TYPE:Lr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:np.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var OA=[Tt,z`
1774
+ `}};In.styles=[...Zv],h([u({type:String,attribute:"aria-label"})],In.prototype,"ariaLabel",2);var ap=In;var Qv=$.constructTagName("avatarbutton");ap.register(Qv);var MA=ap;var Jv=$.constructTagName("badge"),Lr={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},xd={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},np={PRIMARY:"primary",SECONDARY:"secondary"},Hi={TYPE:Lr.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:np.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var OA=[xt,z`
1775
1775
  :host {
1776
1776
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
1777
1777
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -1998,7 +1998,7 @@
1998
1998
  :host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
1999
1999
  width: 2.5rem;
2000
2000
  }
2001
- `,lg=[Tt,HA];var Gi=class extends Q{constructor(){super(...arguments);this.orientation=Cd.ORIENTATION;this.variant=Cd.VARIANT;this.size=Cd.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 A`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Gi.styles=[...Q.styles,...lg],h([u({type:String,reflect:!0})],Gi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Gi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Gi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Gi.prototype,"compact",2),h([Xt({selector:"mdc-button"})],Gi.prototype,"buttons",2);var hp=Gi;hp.register(ng);var GA=hp;var oe=n=>{class o extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var dg=$.constructTagName("linksimple"),sa={INLINE:!1,INVERTED:!1};var KA=[Tt,z`
2001
+ `,lg=[xt,HA];var Gi=class extends Q{constructor(){super(...arguments);this.orientation=Cd.ORIENTATION;this.variant=Cd.VARIANT;this.size=Cd.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 A`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};Gi.styles=[...Q.styles,...lg],h([u({type:String,reflect:!0})],Gi.prototype,"orientation",2),h([u({type:String,reflect:!0})],Gi.prototype,"variant",2),h([u({type:Number,reflect:!0})],Gi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Gi.prototype,"compact",2),h([Xt({selector:"mdc-button"})],Gi.prototype,"buttons",2);var hp=Gi;hp.register(ng);var GA=hp;var oe=n=>{class o extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],o.prototype,"dataAriaLabel",2),o};var dg=$.constructTagName("linksimple"),sa={INLINE:!1,INVERTED:!1};var KA=[xt,z`
2002
2002
  :host {
2003
2003
  --mdc-link-border-radius: 0.25rem;
2004
2004
  --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
@@ -2077,7 +2077,7 @@
2077
2077
  :host([inline])::part(anchor) {
2078
2078
  text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
2079
2079
  }
2080
- `,...xt(!0)],cg=KA;var Xe=class extends oe(Zt(Q)){constructor(){super(...arguments);this.inline=sa.INLINE;this.inverted=sa.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,e,i,a;this.disabled||(a=(i=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:i.click)==null||a.call(i)}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 A`<slot></slot>`}render(){var t;return A`
2080
+ `,...At(!0)],cg=KA;var Xe=class extends oe(Zt(Q)){constructor(){super(...arguments);this.inline=sa.INLINE;this.inverted=sa.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,e,i,a;this.disabled||(a=(i=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:i.click)==null||a.call(i)}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 A`<slot></slot>`}render(){var t;return A`
2081
2081
  <a
2082
2082
  class="mdc-focus-ring"
2083
2083
  part="anchor"
@@ -2148,27 +2148,27 @@
2148
2148
  :host([variant='secondary'][soft-disabled])::part(anchor) {
2149
2149
  border-color: var(--mdc-button-border-color);
2150
2150
  }
2151
- `,hg=[WA,...xt(!0)];var aa=class extends Gl(mi){constructor(){super(...arguments);this.size=nr.SIZE}setSoftDisabled(t,e){e?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.setColor(this.color),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 A`
2151
+ `,hg=[WA,...At(!0)];var aa=class extends Gl(mi){constructor(){super(...arguments);this.size=nr.SIZE}setSoftDisabled(t,e){e?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.setColor(this.color),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 A`
2152
2152
  ${this.prefixIcon?A`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
2153
2153
  <slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
2154
2154
  ${this.postfixIcon?A`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
2155
2155
  `}};aa.styles=[...vo.styles,...hg],h([u({type:Number,reflect:!0})],aa.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],aa.prototype,"softDisabled",2);var pp=aa;var pg=$.constructTagName("buttonlink");pp.register(pg);var YA=pp;var _d=n=>{class o extends n{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Ce.VARIANT;this.orientation=Ce.ORIENTATION;this.titleTagName=Ce.TAGNAME;this.subtitleTagName=Ce.TAGNAME}renderImage(){return this.imageSrc?A`<div part="image-wrapper">
2156
2156
  <img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
2157
- </div>`:H}renderIcon(){return this.iconName?A`<mdc-icon
2157
+ </div>`:G}renderIcon(){return this.iconName?A`<mdc-icon
2158
2158
  part="icon"
2159
2159
  size="${Ce.ICON_SIZE}"
2160
2160
  length-unit="${Ce.ICON_LENGTH_UNIT}"
2161
2161
  name="${this.iconName}"
2162
- ></mdc-icon>`:H}renderTitle(){return A`<div part="title-container">
2162
+ ></mdc-icon>`:G}renderTitle(){return A`<div part="title-container">
2163
2163
  <slot name="title">
2164
2164
  ${this.cardTitle?A`<mdc-text part="title" type="${Ce.TITLE_TYPE}" tagname="${this.titleTagName}"
2165
2165
  >${this.cardTitle}</mdc-text
2166
- >`:H}
2166
+ >`:G}
2167
2167
  </slot>
2168
2168
  <slot name="subtitle">
2169
2169
  ${this.subtitle?A`<mdc-text part="subtitle" type="${Ce.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
2170
2170
  >${this.subtitle}</mdc-text
2171
- >`:H}
2171
+ >`:G}
2172
2172
  </slot>
2173
2173
  </div>`}}return h([u({type:String,attribute:"card-title",reflect:!0})],o.prototype,"cardTitle",2),h([u({type:String,reflect:!0})],o.prototype,"subtitle",2),h([u({type:String,attribute:"image-src",reflect:!0})],o.prototype,"imageSrc",2),h([u({type:String,attribute:"image-alt",reflect:!0})],o.prototype,"imageAlt",2),h([u({type:String,reflect:!0})],o.prototype,"variant",2),h([u({type:String,reflect:!0})],o.prototype,"orientation",2),h([u({type:String,attribute:"title-tag-name",reflect:!0})],o.prototype,"titleTagName",2),h([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],o.prototype,"subtitleTagName",2),h([u({type:String,attribute:"icon-name",reflect:!0})],o.prototype,"iconName",2),o};var jA=z`
2174
2174
  :host {
@@ -2278,7 +2278,7 @@
2278
2278
  mdc-text::part(text) {
2279
2279
  margin: 0;
2280
2280
  }
2281
- `,mg=[Tt,jA];var kn=class extends _d(Js(Q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",Ft.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return A`<div part="header">
2281
+ `,mg=[xt,jA];var kn=class extends _d(Js(Q)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ce.BUTTON)&&(e.setAttribute("variant",Ft.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return A`<div part="header">
2282
2282
  ${this.renderIcon()} ${this.renderTitle()}
2283
2283
  <div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
2284
2284
  </div>`}render(){return A`
@@ -2314,7 +2314,7 @@
2314
2314
  :host([disabled])::part(image) {
2315
2315
  opacity: 0.5;
2316
2316
  }
2317
- `,ug=[XA,...xt()];var wd=class extends _d(Ee){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return A`
2317
+ `,ug=[XA,...At()];var wd=class extends _d(Ee){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return A`
2318
2318
  <slot name="image"> ${this.renderImage()} </slot>
2319
2319
  <div part="body">
2320
2320
  <div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
@@ -2379,7 +2379,7 @@
2379
2379
  :host([disabled])::part(check-icon) {
2380
2380
  color: var(--mds-color-theme-text-primary-disabled);
2381
2381
  }
2382
- `,gg=[QA,...xt()];var na=class extends Ot(Lt(Zt(si(Wr)))){constructor(){super();this.checked=!1;this.selectionType=Nd.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=et.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 e=this.getActionForKeyEvent(t);e===K.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===K.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?up.CHECKED:up.DEFAULT;switch(this.selectionType){case kd.CHECK:return A`<mdc-icon
2382
+ `,gg=[QA,...At()];var na=class extends Ot(Lt(Zt(si(Wr)))){constructor(){super();this.checked=!1;this.selectionType=Nd.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=et.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 e=this.getActionForKeyEvent(t);e===H.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===H.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===H.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?up.CHECKED:up.DEFAULT;switch(this.selectionType){case kd.CHECK:return A`<mdc-icon
2383
2383
  part="check check-icon"
2384
2384
  size="${Nd.ICON_SIZE}"
2385
2385
  length-unit="${Nd.ICON_LENGTH_UNIT}"
@@ -2388,7 +2388,7 @@
2388
2388
  part="check"
2389
2389
  ?checked="${this.checked}"
2390
2390
  ?disabled="${this.disabled}"
2391
- ></mdc-staticcheckbox>`;default:return H}}renderHeader(){return A`<div part="header">${this.renderIcon()} ${this.renderTitle()} ${this.renderSelection()}</div>`}click(){this.disabled||super.click()}render(){return A`
2391
+ ></mdc-staticcheckbox>`;default:return G}}renderHeader(){return A`<div part="header">${this.renderIcon()} ${this.renderTitle()} ${this.renderSelection()}</div>`}click(){this.disabled||super.click()}render(){return A`
2392
2392
  ${this.renderImage()}
2393
2393
  <div part="body">
2394
2394
  ${this.renderHeader()}
@@ -2481,7 +2481,7 @@
2481
2481
  size="1"
2482
2482
  length-unit="rem"
2483
2483
  ></mdc-icon>
2484
- `:H;return A`<slot></slot>
2484
+ `:G;return A`<slot></slot>
2485
2485
  <div part="icon-container">${t}</div>`}};Io.styles=[...Q.styles,...bg],h([u({type:Boolean,reflect:!0})],Io.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Io.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],Io.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Io.prototype,"softDisabled",2);var gp=Io;gp.register(Ag);var eS=gp;fp.register(vg);var rS=fp;var iS=z`
2486
2486
  :host {
2487
2487
  cursor: pointer;
@@ -2535,7 +2535,7 @@
2535
2535
  :host([disabled])::part(image) {
2536
2536
  opacity: 0.5;
2537
2537
  }
2538
- `,Sg=[iS,...xt()];var la=class extends Ot(Lt(Zt(si(Wr)))){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=et.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(e=>{e.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,e){t[e].focus(),t[e].toggleChecked()}handleKeyDown(t){let e=this.getActionForKeyEvent(t);if(e===K.SPACE){t.preventDefault();return}if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),d=a.indexOf(this);if(e===K.DOWN||K.RIGHT===e){let f=(d+1)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}else if(e===K.UP||K.LEFT===e){let f=(d-1+a.length)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}e===K.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===K.SPACE&&this.toggleChecked()}renderHeader(){return A`<div part="header">
2538
+ `,Sg=[iS,...At()];var la=class extends Ot(Lt(Zt(si(Wr)))){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=et.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled||this.checked)return;this.getAllCardsWithinSameGroup().forEach(e=>{e.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,e){t[e].focus(),t[e].toggleChecked()}handleKeyDown(t){let e=this.getActionForKeyEvent(t);if(e===H.SPACE){t.preventDefault();return}if(this.disabled)return;let a=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),d=a.indexOf(this);if(e===H.DOWN||H.RIGHT===e){let f=(d+1)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}else if(e===H.UP||H.LEFT===e){let f=(d-1+a.length)%a.length;this.updateCardRadio(a,f),this.keyDownEventHandled()}e===H.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===H.SPACE&&this.toggleChecked()}renderHeader(){return A`<div part="header">
2539
2539
  ${this.renderIcon()} ${this.renderTitle()}
2540
2540
  <mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
2541
2541
  </div>`}render(){return A`
@@ -2644,7 +2644,7 @@
2644
2644
  }
2645
2645
  }
2646
2646
  `],Ig=oS;var ns=class extends Zt(Q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return A` <slot></slot>
2647
- <span part="radio-icon" class="radio-icon"></span>`}};ns.styles=[...Q.styles,...Ig],h([u({type:Boolean,reflect:!0})],ns.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],ns.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ns.prototype,"softDisabled",2);var yp=ns;var Cg=$.constructTagName("staticradio");yp.register(Cg);var sS=yp;bp.register(Rd);var aS=bp;var Ar=Math.min,we=Math.max,On=Math.round,Rn=Math.floor,Yr=n=>({x:n,y:n}),nS={left:"right",right:"left",bottom:"top",top:"bottom"},lS={start:"end",end:"start"};function Pd(n,o,t){return we(n,Ar(o,t))}function Co(n,o){return typeof n=="function"?n(o):n}function jr(n){return n.split("-")[0]}function ls(n){return n.split("-")[1]}function Ep(n){return n==="x"?"y":"x"}function Fd(n){return n==="y"?"height":"width"}var dS=new Set(["top","bottom"]);function qr(n){return dS.has(jr(n))?"y":"x"}function $d(n){return Ep(qr(n))}function kg(n,o,t){t===void 0&&(t=!1);let e=ls(n),i=$d(n),a=Fd(i),d=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(d=Mn(d)),[d,Mn(d)]}function Ng(n){let o=Mn(n);return[Dd(n),o,Dd(o)]}function Dd(n){return n.replace(/start|end/g,o=>lS[o])}var _g=["left","right"],wg=["right","left"],cS=["top","bottom"],hS=["bottom","top"];function pS(n,o,t){switch(n){case"top":case"bottom":return t?o?wg:_g:o?_g:wg;case"left":case"right":return o?cS:hS;default:return[]}}function Lg(n,o,t,e){let i=ls(n),a=pS(jr(n),t==="start",e);return i&&(a=a.map(d=>d+"-"+i),o&&(a=a.concat(a.map(Dd)))),a}function Mn(n){return n.replace(/left|right|bottom|top/g,o=>nS[o])}function mS(n){return{top:0,right:0,bottom:0,left:0,...n}}function Vd(n){return typeof n!="number"?mS(n):{top:n,right:n,bottom:n,left:n}}function Wi(n){let{x:o,y:t,width:e,height:i}=n;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function Mg(n,o,t){let{reference:e,floating:i}=n,a=qr(o),d=$d(o),f=Fd(d),v=jr(o),S=a==="y",R=e.x+e.width/2-i.width/2,U=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,j;switch(v){case"top":j={x:R,y:e.y-i.height};break;case"bottom":j={x:R,y:e.y+e.height};break;case"right":j={x:e.x+e.width,y:U};break;case"left":j={x:e.x-i.width,y:U};break;default:j={x:e.x,y:e.y}}switch(ls(o)){case"start":j[d]-=J*(t&&S?-1:1);break;case"end":j[d]+=J*(t&&S?-1:1);break}return j}var Og=async(n,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:a=[],platform:d}=t,f=a.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(o)),S=await d.getElementRects({reference:n,floating:o,strategy:i}),{x:R,y:U}=Mg(S,e,v),J=e,j={},Z=0;for(let rt=0;rt<f.length;rt++){let{name:st,fn:ht}=f[rt],{x:bt,y:yt,data:It,reset:Rt}=await ht({x:R,y:U,initialPlacement:e,placement:J,strategy:i,middlewareData:j,rects:S,platform:d,elements:{reference:n,floating:o}});R=bt!=null?bt:R,U=yt!=null?yt:U,j={...j,[st]:{...j[st],...It}},Rt&&Z<=50&&(Z++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(S=Rt.rects===!0?await d.getElementRects({reference:n,floating:o,strategy:i}):Rt.rects),{x:R,y:U}=Mg(S,J,v)),rt=-1)}return{x:R,y:U,placement:J,strategy:i,middlewareData:j}};async function zd(n,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:a,rects:d,elements:f,strategy:v}=n,{boundary:S="clippingAncestors",rootBoundary:R="viewport",elementContext:U="floating",altBoundary:J=!1,padding:j=0}=Co(o,n),Z=Vd(j),st=f[J?U==="floating"?"reference":"floating":U],ht=Wi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(st)))==null||t?st:st.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(f.floating)),boundary:S,rootBoundary:R,strategy:v})),bt=U==="floating"?{x:e,y:i,width:d.floating.width,height:d.floating.height}:d.reference,yt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f.floating)),It=await(a.isElement==null?void 0:a.isElement(yt))?await(a.getScale==null?void 0:a.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=Wi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:v}):bt);return{top:(ht.top-Rt.top+Z.top)/It.y,bottom:(Rt.bottom-ht.bottom+Z.bottom)/It.y,left:(ht.left-Rt.left+Z.left)/It.x,right:(Rt.right-ht.right+Z.right)/It.x}}var Rg=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:e,placement:i,rects:a,platform:d,elements:f,middlewareData:v}=o,{element:S,padding:R=0}=Co(n,o)||{};if(S==null)return{};let U=Vd(R),J={x:t,y:e},j=$d(i),Z=Fd(j),rt=await d.getDimensions(S),st=j==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",It=a.reference[Z]+a.reference[j]-J[j]-a.floating[Z],Rt=J[j]-a.reference[j],Gt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(S)),Pt=Gt?Gt[yt]:0;(!Pt||!await(d.isElement==null?void 0:d.isElement(Gt)))&&(Pt=f.floating[yt]||a.floating[Z]);let ne=It/2-Rt/2,Ge=Pt/2-rt[Z]/2-1,qt=Ar(U[ht],Ge),xe=Ar(U[bt],Ge),Ae=qt,Se=Pt-rt[Z]-xe,Nt=Pt/2-rt[Z]/2+ne,se=Pd(Ae,Nt,Se),Ke=!v.arrow&&ls(i)!=null&&Nt!==se&&a.reference[Z]/2-(Nt<Ae?qt:xe)-rt[Z]/2<0,Je=Ke?Nt<Ae?Nt-Ae:Nt-Se:0;return{[j]:J[j]+Je,data:{[j]:se,centerOffset:Nt-se-Je,...Ke&&{alignmentOffset:Je}},reset:Ke}}});var Dg=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:i,middlewareData:a,rects:d,initialPlacement:f,platform:v,elements:S}=o,{mainAxis:R=!0,crossAxis:U=!0,fallbackPlacements:J,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:rt=!0,...st}=Co(n,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let ht=jr(i),bt=qr(f),yt=jr(f)===f,It=await(v.isRTL==null?void 0:v.isRTL(S.floating)),Rt=J||(yt||!rt?[Mn(f)]:Ng(f)),Gt=Z!=="none";!J&&Gt&&Rt.push(...Lg(f,rt,Z,It));let Pt=[f,...Rt],ne=await zd(o,st),Ge=[],qt=((e=a.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),U){let Nt=kg(i,d,It);Ge.push(ne[Nt[0]],ne[Nt[1]])}if(qt=[...qt,{placement:i,overflows:Ge}],!Ge.every(Nt=>Nt<=0)){var xe,Ae;let Nt=(((xe=a.flip)==null?void 0:xe.index)||0)+1,se=Pt[Nt];if(se&&(!(U==="alignment"?bt!==qr(se):!1)||qt.every(tr=>tr.overflows[0]>0&&qr(tr.placement)===bt)))return{data:{index:Nt,overflows:qt},reset:{placement:se}};let Ke=(Ae=qt.filter(Je=>Je.overflows[0]<=0).sort((Je,tr)=>Je.overflows[1]-tr.overflows[1])[0])==null?void 0:Ae.placement;if(!Ke)switch(j){case"bestFit":{var Se;let Je=(Se=qt.filter(tr=>{if(Gt){let _r=qr(tr.placement);return _r===bt||_r==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(_r=>_r>0).reduce((_r,ul)=>_r+ul,0)]).sort((tr,_r)=>tr[1]-_r[1])[0])==null?void 0:Se[0];Je&&(Ke=Je);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function Pg(n){let o=Ar(...n.map(a=>a.left)),t=Ar(...n.map(a=>a.top)),e=we(...n.map(a=>a.right)),i=we(...n.map(a=>a.bottom));return{x:o,y:t,width:e-o,height:i-t}}function uS(n){let o=n.slice().sort((i,a)=>i.y-a.y),t=[],e=null;for(let i=0;i<o.length;i++){let a=o[i];!e||a.y-e.y>e.height/2?t.push([a]):t[t.length-1].push(a),e=a}return t.map(i=>Wi(Pg(i)))}var Fg=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(o){let{placement:t,elements:e,rects:i,platform:a,strategy:d}=o,{padding:f=2,x:v,y:S}=Co(n,o),R=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(e.reference))||[]),U=uS(R),J=Wi(Pg(R)),j=Vd(f);function Z(){if(U.length===2&&U[0].left>U[1].right&&v!=null&&S!=null)return U.find(st=>v>st.left-j.left&&v<st.right+j.right&&S>st.top-j.top&&S<st.bottom+j.bottom)||J;if(U.length>=2){if(qr(t)==="y"){let qt=U[0],xe=U[U.length-1],Ae=jr(t)==="top",Se=qt.top,Nt=xe.bottom,se=Ae?qt.left:xe.left,Ke=Ae?qt.right:xe.right,Je=Ke-se,tr=Nt-Se;return{top:Se,bottom:Nt,left:se,right:Ke,width:Je,height:tr,x:se,y:Se}}let st=jr(t)==="left",ht=we(...U.map(qt=>qt.right)),bt=Ar(...U.map(qt=>qt.left)),yt=U.filter(qt=>st?qt.left===bt:qt.right===ht),It=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-It;return{top:It,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:It}}return J}let rt=await a.getElementRects({reference:{getBoundingClientRect:Z},floating:e.floating,strategy:d});return i.reference.x!==rt.reference.x||i.reference.y!==rt.reference.y||i.reference.width!==rt.reference.width||i.reference.height!==rt.reference.height?{reset:{rects:rt}}:{}}}},fS=new Set(["left","top"]);async function vS(n,o){let{placement:t,platform:e,elements:i}=n,a=await(e.isRTL==null?void 0:e.isRTL(i.floating)),d=jr(t),f=ls(t),v=qr(t)==="y",S=fS.has(d)?-1:1,R=a&&v?-1:1,U=Co(o,n),{mainAxis:J,crossAxis:j,alignmentAxis:Z}=typeof U=="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};return f&&typeof Z=="number"&&(j=f==="end"?Z*-1:Z),v?{x:j*R,y:J*S}:{x:J*S,y:j*R}}var $g=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:i,y:a,placement:d,middlewareData:f}=o,v=await vS(o,n);return d===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+v.x,y:a+v.y,data:{...v,placement:d}}}}},Vg=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:a=!0,crossAxis:d=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...v}=Co(n,o),S={x:t,y:e},R=await zd(o,v),U=qr(jr(i)),J=Ep(U),j=S[J],Z=S[U];if(a){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=j+R[st],yt=j-R[ht];j=Pd(bt,j,yt)}if(d){let st=U==="y"?"top":"left",ht=U==="y"?"bottom":"right",bt=Z+R[st],yt=Z-R[ht];Z=Pd(bt,Z,yt)}let rt=f.fn({...o,[J]:j,[U]:Z});return{...rt,data:{x:rt.x-t,y:rt.y-e,enabled:{[J]:a,[U]:d}}}}}};var zg=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:i,rects:a,platform:d,elements:f}=o,{apply:v=()=>{},...S}=Co(n,o),R=await zd(o,S),U=jr(i),J=ls(i),j=qr(i)==="y",{width:Z,height:rt}=a.floating,st,ht;U==="top"||U==="bottom"?(st=U,ht=J===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=U,st=J==="end"?"top":"bottom");let bt=rt-R.top-R.bottom,yt=Z-R.left-R.right,It=Ar(rt-R[st],bt),Rt=Ar(Z-R[ht],yt),Gt=!o.middlewareData.shift,Pt=It,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let qt=we(R.left,0),xe=we(R.right,0),Ae=we(R.top,0),Se=we(R.bottom,0);j?ne=Z-2*(qt!==0||xe!==0?qt+xe:we(R.left,R.right)):Pt=rt-2*(Ae!==0||Se!==0?Ae+Se:we(R.top,R.bottom))}await v({...o,availableWidth:ne,availableHeight:Pt});let Ge=await d.getDimensions(f.floating);return Z!==Ge.width||rt!==Ge.height?{reset:{rects:!0}}:{}}}};function Bd(){return typeof window<"u"}function ds(n){return Ug(n)?(n.nodeName||"").toLowerCase():"#document"}function lr(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Xr(n){var o;return(o=(Ug(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Ug(n){return Bd()?n instanceof Node||n instanceof lr(n).Node:!1}function Mr(n){return Bd()?n instanceof Element||n instanceof lr(n).Element:!1}function Zr(n){return Bd()?n instanceof HTMLElement||n instanceof lr(n).HTMLElement:!1}function Bg(n){return!Bd()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof lr(n).ShadowRoot}var gS=new Set(["inline","contents"]);function ca(n){let{overflow:o,overflowX:t,overflowY:e,display:i}=Or(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!gS.has(i)}var bS=new Set(["table","td","th"]);function Hg(n){return bS.has(ds(n))}var yS=[":popover-open",":modal"];function Dn(n){return yS.some(o=>{try{return n.matches(o)}catch{return!1}})}var ES=["transform","translate","scale","rotate","perspective"],TS=["transform","translate","scale","rotate","perspective","filter"],xS=["paint","layout","strict","content"];function Ud(n){let o=Hd(),t=Mr(n)?Or(n):n;return ES.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||TS.some(e=>(t.willChange||"").includes(e))||xS.some(e=>(t.contain||"").includes(e))}function Gg(n){let o=Yi(n);for(;Zr(o)&&!cs(o);){if(Ud(o))return o;if(Dn(o))return null;o=Yi(o)}return null}function Hd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var AS=new Set(["html","body","#document"]);function cs(n){return AS.has(ds(n))}function Or(n){return lr(n).getComputedStyle(n)}function Pn(n){return Mr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Yi(n){if(ds(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Bg(n)&&n.host||Xr(n);return Bg(o)?o.host:o}function Kg(n){let o=Yi(n);return cs(o)?n.ownerDocument?n.ownerDocument.body:n.body:Zr(o)&&ca(o)?o:Kg(o)}function da(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Kg(n),a=i===((e=n.ownerDocument)==null?void 0:e.body),d=lr(i);if(a){let f=Gd(d);return o.concat(d,d.visualViewport||[],ca(i)?i:[],f&&t?da(f):[])}return o.concat(i,da(i,[],t))}function Gd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function jg(n){let o=Or(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Zr(n),a=i?n.offsetWidth:t,d=i?n.offsetHeight:e,f=On(t)!==a||On(e)!==d;return f&&(t=a,e=d),{width:t,height:e,$:f}}function xp(n){return Mr(n)?n:n.contextElement}function ha(n){let o=xp(n);if(!Zr(o))return Yr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:a}=jg(o),d=(a?On(t.width):t.width)/e,f=(a?On(t.height):t.height)/i;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}var SS=Yr(0);function qg(n){let o=lr(n);return!Hd()||!o.visualViewport?SS:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function IS(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==lr(n)?!1:o}function hs(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=xp(n),d=Yr(1);o&&(e?Mr(e)&&(d=ha(e)):d=ha(n));let f=IS(a,t,e)?qg(a):Yr(0),v=(i.left+f.x)/d.x,S=(i.top+f.y)/d.y,R=i.width/d.x,U=i.height/d.y;if(a){let J=lr(a),j=e&&Mr(e)?lr(e):e,Z=J,rt=Gd(Z);for(;rt&&e&&j!==Z;){let st=ha(rt),ht=rt.getBoundingClientRect(),bt=Or(rt),yt=ht.left+(rt.clientLeft+parseFloat(bt.paddingLeft))*st.x,It=ht.top+(rt.clientTop+parseFloat(bt.paddingTop))*st.y;v*=st.x,S*=st.y,R*=st.x,U*=st.y,v+=yt,S+=It,Z=lr(rt),rt=Gd(Z)}}return Wi({width:R,height:U,x:v,y:S})}function Ap(n,o){let t=Pn(n).scrollLeft;return o?o.left+t:hs(Xr(n)).left+t}function Xg(n,o,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:Ap(n,e)),a=e.top+o.scrollTop;return{x:i,y:a}}function CS(n){let{elements:o,rect:t,offsetParent:e,strategy:i}=n,a=i==="fixed",d=Xr(e),f=o?Dn(o.floating):!1;if(e===d||f&&a)return t;let v={scrollLeft:0,scrollTop:0},S=Yr(1),R=Yr(0),U=Zr(e);if((U||!U&&!a)&&((ds(e)!=="body"||ca(d))&&(v=Pn(e)),Zr(e))){let j=hs(e);S=ha(e),R.x=j.x+e.clientLeft,R.y=j.y+e.clientTop}let J=d&&!U&&!a?Xg(d,v,!0):Yr(0);return{width:t.width*S.x,height:t.height*S.y,x:t.x*S.x-v.scrollLeft*S.x+R.x+J.x,y:t.y*S.y-v.scrollTop*S.y+R.y+J.y}}function _S(n){return Array.from(n.getClientRects())}function wS(n){let o=Xr(n),t=Pn(n),e=n.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),a=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ap(n),f=-t.scrollTop;return Or(e).direction==="rtl"&&(d+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:a,x:d,y:f}}function kS(n,o){let t=lr(n),e=Xr(n),i=t.visualViewport,a=e.clientWidth,d=e.clientHeight,f=0,v=0;if(i){a=i.width,d=i.height;let S=Hd();(!S||S&&o==="fixed")&&(f=i.offsetLeft,v=i.offsetTop)}return{width:a,height:d,x:f,y:v}}var NS=new Set(["absolute","fixed"]);function LS(n,o){let t=hs(n,!0,o==="fixed"),e=t.top+n.clientTop,i=t.left+n.clientLeft,a=Zr(n)?ha(n):Yr(1),d=n.clientWidth*a.x,f=n.clientHeight*a.y,v=i*a.x,S=e*a.y;return{width:d,height:f,x:v,y:S}}function Wg(n,o,t){let e;if(o==="viewport")e=kS(n,t);else if(o==="document")e=wS(Xr(n));else if(Mr(o))e=LS(o,t);else{let i=qg(n);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Wi(e)}function Zg(n,o){let t=Yi(n);return t===o||!Mr(t)||cs(t)?!1:Or(t).position==="fixed"||Zg(t,o)}function MS(n,o){let t=o.get(n);if(t)return t;let e=da(n,[],!1).filter(f=>Mr(f)&&ds(f)!=="body"),i=null,a=Or(n).position==="fixed",d=a?Yi(n):n;for(;Mr(d)&&!cs(d);){let f=Or(d),v=Ud(d);!v&&f.position==="fixed"&&(i=null),(a?!v&&!i:!v&&f.position==="static"&&!!i&&NS.has(i.position)||ca(d)&&!v&&Zg(n,d))?e=e.filter(R=>R!==d):i=f,d=Yi(d)}return o.set(n,e),e}function OS(n){let{element:o,boundary:t,rootBoundary:e,strategy:i}=n,d=[...t==="clippingAncestors"?Dn(o)?[]:MS(o,this._c):[].concat(t),e],f=d[0],v=d.reduce((S,R)=>{let U=Wg(o,R,i);return S.top=we(U.top,S.top),S.right=Ar(U.right,S.right),S.bottom=Ar(U.bottom,S.bottom),S.left=we(U.left,S.left),S},Wg(o,f,i));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function RS(n){let{width:o,height:t}=jg(n);return{width:o,height:t}}function DS(n,o,t){let e=Zr(o),i=Xr(o),a=t==="fixed",d=hs(n,!0,a,o),f={scrollLeft:0,scrollTop:0},v=Yr(0);function S(){v.x=Ap(i)}if(e||!e&&!a)if((ds(o)!=="body"||ca(i))&&(f=Pn(o)),e){let j=hs(o,!0,a,o);v.x=j.x+o.clientLeft,v.y=j.y+o.clientTop}else i&&S();a&&!e&&i&&S();let R=i&&!e&&!a?Xg(i,f):Yr(0),U=d.left+f.scrollLeft-v.x-R.x,J=d.top+f.scrollTop-v.y-R.y;return{x:U,y:J,width:d.width,height:d.height}}function Tp(n){return Or(n).position==="static"}function Yg(n,o){if(!Zr(n)||Or(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Xr(n)===t&&(t=t.ownerDocument.body),t}function Qg(n,o){let t=lr(n);if(Dn(n))return t;if(!Zr(n)){let i=Yi(n);for(;i&&!cs(i);){if(Mr(i)&&!Tp(i))return i;i=Yi(i)}return t}let e=Yg(n,o);for(;e&&Hg(e)&&Tp(e);)e=Yg(e,o);return e&&cs(e)&&Tp(e)&&!Ud(e)?t:e||Gg(n)||t}var PS=async function(n){let o=this.getOffsetParent||Qg,t=this.getDimensions,e=await t(n.floating);return{reference:DS(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function FS(n){return Or(n).direction==="rtl"}var $S={convertOffsetParentRelativeRectToViewportRelativeRect:CS,getDocumentElement:Xr,getClippingRect:OS,getOffsetParent:Qg,getElementRects:PS,getClientRects:_S,getDimensions:RS,getScale:ha,isElement:Mr,isRTL:FS};function Jg(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function VS(n,o){let t=null,e,i=Xr(n);function a(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function d(f,v){f===void 0&&(f=!1),v===void 0&&(v=1),a();let S=n.getBoundingClientRect(),{left:R,top:U,width:J,height:j}=S;if(f||o(),!J||!j)return;let Z=Rn(U),rt=Rn(i.clientWidth-(R+J)),st=Rn(i.clientHeight-(U+j)),ht=Rn(R),yt={rootMargin:-Z+"px "+-rt+"px "+-st+"px "+-ht+"px",threshold:we(0,Ar(1,v))||1},It=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==v){if(!It)return d();Pt?d(!1,Pt):e=setTimeout(()=>{d(!1,1e-7)},1e3)}Pt===1&&!Jg(S,n.getBoundingClientRect())&&d(),It=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(n)}return d(!0),a}function tb(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:v=!1}=e,S=xp(n),R=i||a?[...S?da(S):[],...da(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),a&&ht.addEventListener("resize",t)});let U=S&&f?VS(S,t):null,J=-1,j=null;d&&(j=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===S&&j&&(j.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=j)==null||yt.observe(o)})),t()}),S&&!v&&j.observe(S),j.observe(o));let Z,rt=v?hs(n):null;v&&st();function st(){let ht=hs(n);rt&&!Jg(rt,ht)&&t(),rt=ht,Z=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),a&&bt.removeEventListener("resize",t)}),U==null||U(),(ht=j)==null||ht.disconnect(),j=null,v&&cancelAnimationFrame(Z)}}var eb=$g;var rb=Vg,ib=Dg,ob=zg;var sb=Rg,ab=Fg;var nb=(n,o,t)=>{let e=new Map,i={platform:$S,...t},a={...i.platform,_c:e};return Og(n,o,{...i,platform:a})};var Kd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let a=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,a),a}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let a=window.setTimeout((...d)=>{t(...d),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,a),a}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,d])=>d===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var ji=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 zS=z`
2647
+ <span part="radio-icon" class="radio-icon"></span>`}};ns.styles=[...Q.styles,...Ig],h([u({type:Boolean,reflect:!0})],ns.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],ns.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],ns.prototype,"softDisabled",2);var yp=ns;var Cg=$.constructTagName("staticradio");yp.register(Cg);var sS=yp;bp.register(Rd);var aS=bp;var Ar=Math.min,we=Math.max,On=Math.round,Rn=Math.floor,Yr=n=>({x:n,y:n}),nS={left:"right",right:"left",bottom:"top",top:"bottom"},lS={start:"end",end:"start"};function Pd(n,o,t){return we(n,Ar(o,t))}function Co(n,o){return typeof n=="function"?n(o):n}function jr(n){return n.split("-")[0]}function ls(n){return n.split("-")[1]}function Ep(n){return n==="x"?"y":"x"}function Fd(n){return n==="y"?"height":"width"}var dS=new Set(["top","bottom"]);function qr(n){return dS.has(jr(n))?"y":"x"}function $d(n){return Ep(qr(n))}function kg(n,o,t){t===void 0&&(t=!1);let e=ls(n),i=$d(n),a=Fd(i),d=i==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(d=Mn(d)),[d,Mn(d)]}function Ng(n){let o=Mn(n);return[Dd(n),o,Dd(o)]}function Dd(n){return n.replace(/start|end/g,o=>lS[o])}var _g=["left","right"],wg=["right","left"],cS=["top","bottom"],hS=["bottom","top"];function pS(n,o,t){switch(n){case"top":case"bottom":return t?o?wg:_g:o?_g:wg;case"left":case"right":return o?cS:hS;default:return[]}}function Lg(n,o,t,e){let i=ls(n),a=pS(jr(n),t==="start",e);return i&&(a=a.map(d=>d+"-"+i),o&&(a=a.concat(a.map(Dd)))),a}function Mn(n){return n.replace(/left|right|bottom|top/g,o=>nS[o])}function mS(n){return{top:0,right:0,bottom:0,left:0,...n}}function Vd(n){return typeof n!="number"?mS(n):{top:n,right:n,bottom:n,left:n}}function Wi(n){let{x:o,y:t,width:e,height:i}=n;return{width:e,height:i,top:t,left:o,right:o+e,bottom:t+i,x:o,y:t}}function Mg(n,o,t){let{reference:e,floating:i}=n,a=qr(o),d=$d(o),f=Fd(d),v=jr(o),S=a==="y",R=e.x+e.width/2-i.width/2,U=e.y+e.height/2-i.height/2,J=e[f]/2-i[f]/2,j;switch(v){case"top":j={x:R,y:e.y-i.height};break;case"bottom":j={x:R,y:e.y+e.height};break;case"right":j={x:e.x+e.width,y:U};break;case"left":j={x:e.x-i.width,y:U};break;default:j={x:e.x,y:e.y}}switch(ls(o)){case"start":j[d]-=J*(t&&S?-1:1);break;case"end":j[d]+=J*(t&&S?-1:1);break}return j}var Og=async(n,o,t)=>{let{placement:e="bottom",strategy:i="absolute",middleware:a=[],platform:d}=t,f=a.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(o)),S=await d.getElementRects({reference:n,floating:o,strategy:i}),{x:R,y:U}=Mg(S,e,v),J=e,j={},Z=0;for(let rt=0;rt<f.length;rt++){let{name:st,fn:ht}=f[rt],{x:bt,y:yt,data:Ct,reset:Rt}=await ht({x:R,y:U,initialPlacement:e,placement:J,strategy:i,middlewareData:j,rects:S,platform:d,elements:{reference:n,floating:o}});R=bt!=null?bt:R,U=yt!=null?yt:U,j={...j,[st]:{...j[st],...Ct}},Rt&&Z<=50&&(Z++,typeof Rt=="object"&&(Rt.placement&&(J=Rt.placement),Rt.rects&&(S=Rt.rects===!0?await d.getElementRects({reference:n,floating:o,strategy:i}):Rt.rects),{x:R,y:U}=Mg(S,J,v)),rt=-1)}return{x:R,y:U,placement:J,strategy:i,middlewareData:j}};async function zd(n,o){var t;o===void 0&&(o={});let{x:e,y:i,platform:a,rects:d,elements:f,strategy:v}=n,{boundary:S="clippingAncestors",rootBoundary:R="viewport",elementContext:U="floating",altBoundary:J=!1,padding:j=0}=Co(o,n),Z=Vd(j),st=f[J?U==="floating"?"reference":"floating":U],ht=Wi(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(st)))==null||t?st:st.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(f.floating)),boundary:S,rootBoundary:R,strategy:v})),bt=U==="floating"?{x:e,y:i,width:d.floating.width,height:d.floating.height}:d.reference,yt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f.floating)),Ct=await(a.isElement==null?void 0:a.isElement(yt))?await(a.getScale==null?void 0:a.getScale(yt))||{x:1,y:1}:{x:1,y:1},Rt=Wi(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:bt,offsetParent:yt,strategy:v}):bt);return{top:(ht.top-Rt.top+Z.top)/Ct.y,bottom:(Rt.bottom-ht.bottom+Z.bottom)/Ct.y,left:(ht.left-Rt.left+Z.left)/Ct.x,right:(Rt.right-ht.right+Z.right)/Ct.x}}var Rg=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:e,placement:i,rects:a,platform:d,elements:f,middlewareData:v}=o,{element:S,padding:R=0}=Co(n,o)||{};if(S==null)return{};let U=Vd(R),J={x:t,y:e},j=$d(i),Z=Fd(j),rt=await d.getDimensions(S),st=j==="y",ht=st?"top":"left",bt=st?"bottom":"right",yt=st?"clientHeight":"clientWidth",Ct=a.reference[Z]+a.reference[j]-J[j]-a.floating[Z],Rt=J[j]-a.reference[j],Gt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(S)),Pt=Gt?Gt[yt]:0;(!Pt||!await(d.isElement==null?void 0:d.isElement(Gt)))&&(Pt=f.floating[yt]||a.floating[Z]);let ne=Ct/2-Rt/2,Ge=Pt/2-rt[Z]/2-1,qt=Ar(U[ht],Ge),xe=Ar(U[bt],Ge),Ae=qt,Se=Pt-rt[Z]-xe,Nt=Pt/2-rt[Z]/2+ne,se=Pd(Ae,Nt,Se),Ke=!v.arrow&&ls(i)!=null&&Nt!==se&&a.reference[Z]/2-(Nt<Ae?qt:xe)-rt[Z]/2<0,Je=Ke?Nt<Ae?Nt-Ae:Nt-Se:0;return{[j]:J[j]+Je,data:{[j]:se,centerOffset:Nt-se-Je,...Ke&&{alignmentOffset:Je}},reset:Ke}}});var Dg=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,e;let{placement:i,middlewareData:a,rects:d,initialPlacement:f,platform:v,elements:S}=o,{mainAxis:R=!0,crossAxis:U=!0,fallbackPlacements:J,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:Z="none",flipAlignment:rt=!0,...st}=Co(n,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let ht=jr(i),bt=qr(f),yt=jr(f)===f,Ct=await(v.isRTL==null?void 0:v.isRTL(S.floating)),Rt=J||(yt||!rt?[Mn(f)]:Ng(f)),Gt=Z!=="none";!J&&Gt&&Rt.push(...Lg(f,rt,Z,Ct));let Pt=[f,...Rt],ne=await zd(o,st),Ge=[],qt=((e=a.flip)==null?void 0:e.overflows)||[];if(R&&Ge.push(ne[ht]),U){let Nt=kg(i,d,Ct);Ge.push(ne[Nt[0]],ne[Nt[1]])}if(qt=[...qt,{placement:i,overflows:Ge}],!Ge.every(Nt=>Nt<=0)){var xe,Ae;let Nt=(((xe=a.flip)==null?void 0:xe.index)||0)+1,se=Pt[Nt];if(se&&(!(U==="alignment"?bt!==qr(se):!1)||qt.every(tr=>tr.overflows[0]>0&&qr(tr.placement)===bt)))return{data:{index:Nt,overflows:qt},reset:{placement:se}};let Ke=(Ae=qt.filter(Je=>Je.overflows[0]<=0).sort((Je,tr)=>Je.overflows[1]-tr.overflows[1])[0])==null?void 0:Ae.placement;if(!Ke)switch(j){case"bestFit":{var Se;let Je=(Se=qt.filter(tr=>{if(Gt){let _r=qr(tr.placement);return _r===bt||_r==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(_r=>_r>0).reduce((_r,ul)=>_r+ul,0)]).sort((tr,_r)=>tr[1]-_r[1])[0])==null?void 0:Se[0];Je&&(Ke=Je);break}case"initialPlacement":Ke=f;break}if(i!==Ke)return{reset:{placement:Ke}}}return{}}}};function Pg(n){let o=Ar(...n.map(a=>a.left)),t=Ar(...n.map(a=>a.top)),e=we(...n.map(a=>a.right)),i=we(...n.map(a=>a.bottom));return{x:o,y:t,width:e-o,height:i-t}}function uS(n){let o=n.slice().sort((i,a)=>i.y-a.y),t=[],e=null;for(let i=0;i<o.length;i++){let a=o[i];!e||a.y-e.y>e.height/2?t.push([a]):t[t.length-1].push(a),e=a}return t.map(i=>Wi(Pg(i)))}var Fg=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(o){let{placement:t,elements:e,rects:i,platform:a,strategy:d}=o,{padding:f=2,x:v,y:S}=Co(n,o),R=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(e.reference))||[]),U=uS(R),J=Wi(Pg(R)),j=Vd(f);function Z(){if(U.length===2&&U[0].left>U[1].right&&v!=null&&S!=null)return U.find(st=>v>st.left-j.left&&v<st.right+j.right&&S>st.top-j.top&&S<st.bottom+j.bottom)||J;if(U.length>=2){if(qr(t)==="y"){let qt=U[0],xe=U[U.length-1],Ae=jr(t)==="top",Se=qt.top,Nt=xe.bottom,se=Ae?qt.left:xe.left,Ke=Ae?qt.right:xe.right,Je=Ke-se,tr=Nt-Se;return{top:Se,bottom:Nt,left:se,right:Ke,width:Je,height:tr,x:se,y:Se}}let st=jr(t)==="left",ht=we(...U.map(qt=>qt.right)),bt=Ar(...U.map(qt=>qt.left)),yt=U.filter(qt=>st?qt.left===bt:qt.right===ht),Ct=yt[0].top,Rt=yt[yt.length-1].bottom,Gt=bt,Pt=ht,ne=Pt-Gt,Ge=Rt-Ct;return{top:Ct,bottom:Rt,left:Gt,right:Pt,width:ne,height:Ge,x:Gt,y:Ct}}return J}let rt=await a.getElementRects({reference:{getBoundingClientRect:Z},floating:e.floating,strategy:d});return i.reference.x!==rt.reference.x||i.reference.y!==rt.reference.y||i.reference.width!==rt.reference.width||i.reference.height!==rt.reference.height?{reset:{rects:rt}}:{}}}},fS=new Set(["left","top"]);async function vS(n,o){let{placement:t,platform:e,elements:i}=n,a=await(e.isRTL==null?void 0:e.isRTL(i.floating)),d=jr(t),f=ls(t),v=qr(t)==="y",S=fS.has(d)?-1:1,R=a&&v?-1:1,U=Co(o,n),{mainAxis:J,crossAxis:j,alignmentAxis:Z}=typeof U=="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};return f&&typeof Z=="number"&&(j=f==="end"?Z*-1:Z),v?{x:j*R,y:J*S}:{x:J*S,y:j*R}}var $g=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,e;let{x:i,y:a,placement:d,middlewareData:f}=o,v=await vS(o,n);return d===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:i+v.x,y:a+v.y,data:{...v,placement:d}}}}},Vg=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:e,placement:i}=o,{mainAxis:a=!0,crossAxis:d=!1,limiter:f={fn:st=>{let{x:ht,y:bt}=st;return{x:ht,y:bt}}},...v}=Co(n,o),S={x:t,y:e},R=await zd(o,v),U=qr(jr(i)),J=Ep(U),j=S[J],Z=S[U];if(a){let st=J==="y"?"top":"left",ht=J==="y"?"bottom":"right",bt=j+R[st],yt=j-R[ht];j=Pd(bt,j,yt)}if(d){let st=U==="y"?"top":"left",ht=U==="y"?"bottom":"right",bt=Z+R[st],yt=Z-R[ht];Z=Pd(bt,Z,yt)}let rt=f.fn({...o,[J]:j,[U]:Z});return{...rt,data:{x:rt.x-t,y:rt.y-e,enabled:{[J]:a,[U]:d}}}}}};var zg=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,e;let{placement:i,rects:a,platform:d,elements:f}=o,{apply:v=()=>{},...S}=Co(n,o),R=await zd(o,S),U=jr(i),J=ls(i),j=qr(i)==="y",{width:Z,height:rt}=a.floating,st,ht;U==="top"||U==="bottom"?(st=U,ht=J===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(ht=U,st=J==="end"?"top":"bottom");let bt=rt-R.top-R.bottom,yt=Z-R.left-R.right,Ct=Ar(rt-R[st],bt),Rt=Ar(Z-R[ht],yt),Gt=!o.middlewareData.shift,Pt=Ct,ne=Rt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=yt),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Pt=bt),Gt&&!J){let qt=we(R.left,0),xe=we(R.right,0),Ae=we(R.top,0),Se=we(R.bottom,0);j?ne=Z-2*(qt!==0||xe!==0?qt+xe:we(R.left,R.right)):Pt=rt-2*(Ae!==0||Se!==0?Ae+Se:we(R.top,R.bottom))}await v({...o,availableWidth:ne,availableHeight:Pt});let Ge=await d.getDimensions(f.floating);return Z!==Ge.width||rt!==Ge.height?{reset:{rects:!0}}:{}}}};function Bd(){return typeof window<"u"}function ds(n){return Ug(n)?(n.nodeName||"").toLowerCase():"#document"}function lr(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function Xr(n){var o;return(o=(Ug(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function Ug(n){return Bd()?n instanceof Node||n instanceof lr(n).Node:!1}function Mr(n){return Bd()?n instanceof Element||n instanceof lr(n).Element:!1}function Zr(n){return Bd()?n instanceof HTMLElement||n instanceof lr(n).HTMLElement:!1}function Bg(n){return!Bd()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof lr(n).ShadowRoot}var gS=new Set(["inline","contents"]);function ca(n){let{overflow:o,overflowX:t,overflowY:e,display:i}=Or(n);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!gS.has(i)}var bS=new Set(["table","td","th"]);function Hg(n){return bS.has(ds(n))}var yS=[":popover-open",":modal"];function Dn(n){return yS.some(o=>{try{return n.matches(o)}catch{return!1}})}var ES=["transform","translate","scale","rotate","perspective"],TS=["transform","translate","scale","rotate","perspective","filter"],xS=["paint","layout","strict","content"];function Ud(n){let o=Hd(),t=Mr(n)?Or(n):n;return ES.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||TS.some(e=>(t.willChange||"").includes(e))||xS.some(e=>(t.contain||"").includes(e))}function Gg(n){let o=Yi(n);for(;Zr(o)&&!cs(o);){if(Ud(o))return o;if(Dn(o))return null;o=Yi(o)}return null}function Hd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var AS=new Set(["html","body","#document"]);function cs(n){return AS.has(ds(n))}function Or(n){return lr(n).getComputedStyle(n)}function Pn(n){return Mr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Yi(n){if(ds(n)==="html")return n;let o=n.assignedSlot||n.parentNode||Bg(n)&&n.host||Xr(n);return Bg(o)?o.host:o}function Kg(n){let o=Yi(n);return cs(o)?n.ownerDocument?n.ownerDocument.body:n.body:Zr(o)&&ca(o)?o:Kg(o)}function da(n,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let i=Kg(n),a=i===((e=n.ownerDocument)==null?void 0:e.body),d=lr(i);if(a){let f=Gd(d);return o.concat(d,d.visualViewport||[],ca(i)?i:[],f&&t?da(f):[])}return o.concat(i,da(i,[],t))}function Gd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function jg(n){let o=Or(n),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,i=Zr(n),a=i?n.offsetWidth:t,d=i?n.offsetHeight:e,f=On(t)!==a||On(e)!==d;return f&&(t=a,e=d),{width:t,height:e,$:f}}function xp(n){return Mr(n)?n:n.contextElement}function ha(n){let o=xp(n);if(!Zr(o))return Yr(1);let t=o.getBoundingClientRect(),{width:e,height:i,$:a}=jg(o),d=(a?On(t.width):t.width)/e,f=(a?On(t.height):t.height)/i;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}var SS=Yr(0);function qg(n){let o=lr(n);return!Hd()||!o.visualViewport?SS:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function IS(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==lr(n)?!1:o}function hs(n,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=xp(n),d=Yr(1);o&&(e?Mr(e)&&(d=ha(e)):d=ha(n));let f=IS(a,t,e)?qg(a):Yr(0),v=(i.left+f.x)/d.x,S=(i.top+f.y)/d.y,R=i.width/d.x,U=i.height/d.y;if(a){let J=lr(a),j=e&&Mr(e)?lr(e):e,Z=J,rt=Gd(Z);for(;rt&&e&&j!==Z;){let st=ha(rt),ht=rt.getBoundingClientRect(),bt=Or(rt),yt=ht.left+(rt.clientLeft+parseFloat(bt.paddingLeft))*st.x,Ct=ht.top+(rt.clientTop+parseFloat(bt.paddingTop))*st.y;v*=st.x,S*=st.y,R*=st.x,U*=st.y,v+=yt,S+=Ct,Z=lr(rt),rt=Gd(Z)}}return Wi({width:R,height:U,x:v,y:S})}function Ap(n,o){let t=Pn(n).scrollLeft;return o?o.left+t:hs(Xr(n)).left+t}function Xg(n,o,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),i=e.left+o.scrollLeft-(t?0:Ap(n,e)),a=e.top+o.scrollTop;return{x:i,y:a}}function CS(n){let{elements:o,rect:t,offsetParent:e,strategy:i}=n,a=i==="fixed",d=Xr(e),f=o?Dn(o.floating):!1;if(e===d||f&&a)return t;let v={scrollLeft:0,scrollTop:0},S=Yr(1),R=Yr(0),U=Zr(e);if((U||!U&&!a)&&((ds(e)!=="body"||ca(d))&&(v=Pn(e)),Zr(e))){let j=hs(e);S=ha(e),R.x=j.x+e.clientLeft,R.y=j.y+e.clientTop}let J=d&&!U&&!a?Xg(d,v,!0):Yr(0);return{width:t.width*S.x,height:t.height*S.y,x:t.x*S.x-v.scrollLeft*S.x+R.x+J.x,y:t.y*S.y-v.scrollTop*S.y+R.y+J.y}}function _S(n){return Array.from(n.getClientRects())}function wS(n){let o=Xr(n),t=Pn(n),e=n.ownerDocument.body,i=we(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),a=we(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ap(n),f=-t.scrollTop;return Or(e).direction==="rtl"&&(d+=we(o.clientWidth,e.clientWidth)-i),{width:i,height:a,x:d,y:f}}function kS(n,o){let t=lr(n),e=Xr(n),i=t.visualViewport,a=e.clientWidth,d=e.clientHeight,f=0,v=0;if(i){a=i.width,d=i.height;let S=Hd();(!S||S&&o==="fixed")&&(f=i.offsetLeft,v=i.offsetTop)}return{width:a,height:d,x:f,y:v}}var NS=new Set(["absolute","fixed"]);function LS(n,o){let t=hs(n,!0,o==="fixed"),e=t.top+n.clientTop,i=t.left+n.clientLeft,a=Zr(n)?ha(n):Yr(1),d=n.clientWidth*a.x,f=n.clientHeight*a.y,v=i*a.x,S=e*a.y;return{width:d,height:f,x:v,y:S}}function Wg(n,o,t){let e;if(o==="viewport")e=kS(n,t);else if(o==="document")e=wS(Xr(n));else if(Mr(o))e=LS(o,t);else{let i=qg(n);e={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return Wi(e)}function Zg(n,o){let t=Yi(n);return t===o||!Mr(t)||cs(t)?!1:Or(t).position==="fixed"||Zg(t,o)}function MS(n,o){let t=o.get(n);if(t)return t;let e=da(n,[],!1).filter(f=>Mr(f)&&ds(f)!=="body"),i=null,a=Or(n).position==="fixed",d=a?Yi(n):n;for(;Mr(d)&&!cs(d);){let f=Or(d),v=Ud(d);!v&&f.position==="fixed"&&(i=null),(a?!v&&!i:!v&&f.position==="static"&&!!i&&NS.has(i.position)||ca(d)&&!v&&Zg(n,d))?e=e.filter(R=>R!==d):i=f,d=Yi(d)}return o.set(n,e),e}function OS(n){let{element:o,boundary:t,rootBoundary:e,strategy:i}=n,d=[...t==="clippingAncestors"?Dn(o)?[]:MS(o,this._c):[].concat(t),e],f=d[0],v=d.reduce((S,R)=>{let U=Wg(o,R,i);return S.top=we(U.top,S.top),S.right=Ar(U.right,S.right),S.bottom=Ar(U.bottom,S.bottom),S.left=we(U.left,S.left),S},Wg(o,f,i));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function RS(n){let{width:o,height:t}=jg(n);return{width:o,height:t}}function DS(n,o,t){let e=Zr(o),i=Xr(o),a=t==="fixed",d=hs(n,!0,a,o),f={scrollLeft:0,scrollTop:0},v=Yr(0);function S(){v.x=Ap(i)}if(e||!e&&!a)if((ds(o)!=="body"||ca(i))&&(f=Pn(o)),e){let j=hs(o,!0,a,o);v.x=j.x+o.clientLeft,v.y=j.y+o.clientTop}else i&&S();a&&!e&&i&&S();let R=i&&!e&&!a?Xg(i,f):Yr(0),U=d.left+f.scrollLeft-v.x-R.x,J=d.top+f.scrollTop-v.y-R.y;return{x:U,y:J,width:d.width,height:d.height}}function Tp(n){return Or(n).position==="static"}function Yg(n,o){if(!Zr(n)||Or(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return Xr(n)===t&&(t=t.ownerDocument.body),t}function Qg(n,o){let t=lr(n);if(Dn(n))return t;if(!Zr(n)){let i=Yi(n);for(;i&&!cs(i);){if(Mr(i)&&!Tp(i))return i;i=Yi(i)}return t}let e=Yg(n,o);for(;e&&Hg(e)&&Tp(e);)e=Yg(e,o);return e&&cs(e)&&Tp(e)&&!Ud(e)?t:e||Gg(n)||t}var PS=async function(n){let o=this.getOffsetParent||Qg,t=this.getDimensions,e=await t(n.floating);return{reference:DS(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function FS(n){return Or(n).direction==="rtl"}var $S={convertOffsetParentRelativeRectToViewportRelativeRect:CS,getDocumentElement:Xr,getClippingRect:OS,getOffsetParent:Qg,getElementRects:PS,getClientRects:_S,getDimensions:RS,getScale:ha,isElement:Mr,isRTL:FS};function Jg(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function VS(n,o){let t=null,e,i=Xr(n);function a(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function d(f,v){f===void 0&&(f=!1),v===void 0&&(v=1),a();let S=n.getBoundingClientRect(),{left:R,top:U,width:J,height:j}=S;if(f||o(),!J||!j)return;let Z=Rn(U),rt=Rn(i.clientWidth-(R+J)),st=Rn(i.clientHeight-(U+j)),ht=Rn(R),yt={rootMargin:-Z+"px "+-rt+"px "+-st+"px "+-ht+"px",threshold:we(0,Ar(1,v))||1},Ct=!0;function Rt(Gt){let Pt=Gt[0].intersectionRatio;if(Pt!==v){if(!Ct)return d();Pt?d(!1,Pt):e=setTimeout(()=>{d(!1,1e-7)},1e3)}Pt===1&&!Jg(S,n.getBoundingClientRect())&&d(),Ct=!1}try{t=new IntersectionObserver(Rt,{...yt,root:i.ownerDocument})}catch{t=new IntersectionObserver(Rt,yt)}t.observe(n)}return d(!0),a}function tb(n,o,t,e){e===void 0&&(e={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:v=!1}=e,S=xp(n),R=i||a?[...S?da(S):[],...da(o)]:[];R.forEach(ht=>{i&&ht.addEventListener("scroll",t,{passive:!0}),a&&ht.addEventListener("resize",t)});let U=S&&f?VS(S,t):null,J=-1,j=null;d&&(j=new ResizeObserver(ht=>{let[bt]=ht;bt&&bt.target===S&&j&&(j.unobserve(o),cancelAnimationFrame(J),J=requestAnimationFrame(()=>{var yt;(yt=j)==null||yt.observe(o)})),t()}),S&&!v&&j.observe(S),j.observe(o));let Z,rt=v?hs(n):null;v&&st();function st(){let ht=hs(n);rt&&!Jg(rt,ht)&&t(),rt=ht,Z=requestAnimationFrame(st)}return t(),()=>{var ht;R.forEach(bt=>{i&&bt.removeEventListener("scroll",t),a&&bt.removeEventListener("resize",t)}),U==null||U(),(ht=j)==null||ht.disconnect(),j=null,v&&cancelAnimationFrame(Z)}}var eb=$g;var rb=Vg,ib=Dg,ob=zg;var sb=Rg,ab=Fg;var nb=(n,o,t)=>{let e=new Map,i={platform:$S,...t},a={...i.platform,_c:e};return Og(n,o,{...i,platform:a})};var Kd=class{constructor(o){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;o.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(o,t,e,...i){this.nameToIntervalId.has(o)&&clearInterval(this.nameToIntervalId.get(o));let a=window.setInterval(t,e,...i);return this.nameToIntervalId.set(o,a),a}clearInterval(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,o);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(o,t,e,...i){this.nameToTimeoutId.has(o)&&clearTimeout(this.nameToTimeoutId.get(o));let a=window.setTimeout((...d)=>{t(...d),this.nameToTimeoutId.delete(o)},e,...i);return this.nameToTimeoutId.set(o,a),a}clearTimeout(o){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,o);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(o,t){var e;if(typeof t=="number"){let i=t;return[(e=[...o.entries()].find(([,d])=>d===t))==null?void 0:e[0],i]}return[t,o.get(t)]}};var ji=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 zS=z`
2648
2648
  :host {
2649
2649
  --mdc-popover-arrow-border-radius: 0.1875rem;
2650
2650
  --mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
@@ -2768,7 +2768,7 @@
2768
2768
  border-top-right-radius: var(--mdc-popover-arrow-border-radius);
2769
2769
  border-bottom-left-radius: 100%;
2770
2770
  }
2771
- `,lb=[zS];var Yd=$.constructTagName("popoverportal"),Wd=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 jd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),a=e.getBoundingClientRect(),d=0;if(!a)return;let f=this.popover.offsetHeight||0,v=this.popover.offsetWidth||0,S=o.split("-")[0];switch(S==="top"||S==="bottom"?d=Math.max(0,Math.max(i.top-a.bottom,a.top-i.bottom)):(S==="left"||S==="right")&&(d=Math.max(0,Math.max(a.left-i.right,i.left-a.right))),d+=1,S){case"top":t.style.height=`${d}px`,t.style.bottom=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.right=`calc(-1.5 * (${d}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.left=`calc(-0.5 * (${d}px))`;break;case"bottom":default:t.style.height=`${d}px`,t.style.top=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Yd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:a,y:d}=o,f=this.popover.arrowElement.getBoundingClientRect(),v=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let U=v!=null&&v[i]?12-Math.abs(f[i]-v[i]):0;Math.round(U)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let S=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-S}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var kt=class extends Ot(Lt(md(dd(Qs(Q))))){constructor(){super();this.depthManager=new yo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Kd(this);this.parseTrigger=()=>{var a;let i=(((a=this.trigger)==null?void 0:a.split(" "))||[]).filter(d=>Object.values(_e).includes(d)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}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("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.hide(),ji.onClickOutside(this),a&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==K.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),ji.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?e===i||!!(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,a,d;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(d=(a=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:a.querySelector(".mdc-focus-ring"))!=null&&d.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ki.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ki.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ki.HOVER),this.timers.clearTimeout(Ki.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ki.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ki.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,a=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;a=Math.sqrt(2*f**2)/2}let d=[];if(this.inline&&d.push(ab()),d.push(eb(typeof this.offset=="number"?this.offset+a:this.offset)),d.push(rb({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||d.push(ib({boundary:e,rootBoundary:i})),this.size){let f=S=>{this.style.setProperty("--mdc-popover-internal-available-height",`${S}px`)},v=this.renderRoot.querySelector('[part="popover-content"]');d.push(ob({boundary:e,rootBoundary:i,apply({availableHeight:S}){v&&(Object.assign(v.style,{maxHeight:`${S}px`,overflowY:"auto"}),f(S))},padding:50}))}this.showArrow&&this.arrowElement&&d.push(sb({element:this.arrowElement,padding:12})),this.floatingUICleanupFunction=tb(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let v=this.adjustPlacementForRtl(this.placement),{x:S,y:R,middlewareData:U,placement:J}=await nb(f,this,{placement:v,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(S,R),U.arrow&&this.arrowElement&&this.utils.updateArrowStyle(U.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new jd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),ji.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),ji.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(ss).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var a,d;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,v,S;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(S=this.setInitialFocus)==null||S.call(this,(v=this.elementIndexToReceiveFocus)!=null?v:0))},0),ji.onShowPopover(this)):(this.depthManager.popHost(),(a=this.floatingUICleanupFunction)==null||a.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(d=this.deactivateFocusTrap)==null||d.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),ji.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ki.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ki.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,A`
2771
+ `,lb=[zS];var Yd=$.constructTagName("popoverportal"),Wd=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 jd=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(e=>{let i=parseInt(e,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${e}`);return i});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let e=this.popover.triggerElement;if(t&&e){let i=this.popover.getBoundingClientRect(),a=e.getBoundingClientRect(),d=0;if(!a)return;let f=this.popover.offsetHeight||0,v=this.popover.offsetWidth||0,S=o.split("-")[0];switch(S==="top"||S==="bottom"?d=Math.max(0,Math.max(i.top-a.bottom,a.top-i.bottom)):(S==="left"||S==="right")&&(d=Math.max(0,Math.max(a.left-i.right,i.left-a.right))),d+=1,S){case"top":t.style.height=`${d}px`,t.style.bottom=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.right=`calc(-1.5 * (${d}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${d}px`,t.style.left=`calc(-0.5 * (${d}px))`;break;case"bottom":default:t.style.height=`${d}px`,t.style.top=`calc(-1 * (${d}px))`,t.style.left="50%",t.style.width=`${v}px`;break}}}setupAppendTo(){var o,t;if(this.popover.appendTo){let e=document.getElementById(this.popover.appendTo);e&&!Array.from(e.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement(Yd),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,e;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(e=this.popover.triggerElement)==null||e.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var R;if(!this.popover.arrowElement)return;let e=t.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:a,y:d}=o,f=this.popover.arrowElement.getBoundingClientRect(),v=(R=this.popover.arrowElement.offsetParent)==null?void 0:R.getBoundingClientRect();if(!this.arrowPixelChange){let U=v!=null&&v[i]?12-Math.abs(f[i]-v[i]):0;Math.round(U)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let S=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-S}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var kt=class extends Ot(Lt(md(dd(Qs(Q))))){constructor(){super();this.depthManager=new yo(this);this.id="";this.triggerID="";this.trigger=Et.TRIGGER;this.placement=Et.PLACEMENT;this.color=Et.COLOR;this.visible=Et.VISIBLE;this.offset=Et.OFFSET;this.boundary=Et.BOUNDARY;this.boundaryRoot=Et.BOUNDARY_ROOT;this.focusTrap=Et.FOCUS_TRAP;this.preventScroll=Et.PREVENT_SCROLL;this.showArrow=Et.ARROW;this.closeButton=Et.CLOSE_BUTTON;this.interactive=Et.INTERACTIVE;this.delay=Et.DELAY;this.hideOnEscape=Et.HIDE_ON_ESCAPE;this.propagateEventOnEscape=Et.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=Et.HIDE_ON_BLUR;this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=Et.FOCUS_BACK;this.backdrop=Et.BACKDROP;this.isBackdropInvisible=Et.IS_BACKDROP_INVISIBLE;this.disableFlip=Et.DISABLE_FLIP;this.size=Et.SIZE;this.closeButtonAriaLabel=null;this.strategy=Et.STRATEGY;this.role=Et.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=Et.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=Et.KEEP_CONNECTED_TOOLTIP_OPEN;this.animationFrame=Et.ANIMATION_FRAME;this.inline=Et.INLINE;this.elementIndexToReceiveFocus=null;this.stackGroupName="";this.arrowElement=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.timers=new Kd(this);this.parseTrigger=()=>{var a;let i=(((a=this.trigger)==null?void 0:a.split(" "))||[]).filter(d=>Object.values(_e).includes(d)).length>0?this.trigger:Et.TRIGGER;i==="mouseenter"&&(this.interactive?i="mouseenter click":i="mouseenter focusin"),this.trigger=i};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),document.addEventListener("mouseover",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseout",this.handleMouseLeave,{capture:!0})}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("mouseover",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseout",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.hide(),ji.onClickOutside(this),a&&t.stopPropagation())};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==H.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),ji.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.isHoverWithinTrigger=t=>{let{triggerElement:e}=this,{relatedTarget:i}=t;return e&&i instanceof Element?e===i||!!(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY):!1};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!0,this.show()))};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHoverWithinTrigger(t)||(this.isHovered=!1,this.startCloseDelay()))};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,i,a,d;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(d=(a=(i=this.triggerElement)==null?void 0:i.shadowRoot)==null?void 0:a.querySelector(".mdc-focus-ring"))!=null&&d.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ki.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ki.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ki.HOVER),this.timers.clearTimeout(Ki.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ki.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ki.CLOSE),t())};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let e=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),i=this.boundaryRoot,a=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;a=Math.sqrt(2*f**2)/2}let d=[];if(this.inline&&d.push(ab()),d.push(eb(typeof this.offset=="number"?this.offset+a:this.offset)),d.push(rb({boundary:e,rootBoundary:i,padding:this.boundaryPadding})),this.disableFlip||d.push(ib({boundary:e,rootBoundary:i})),this.size){let f=S=>{this.style.setProperty("--mdc-popover-internal-available-height",`${S}px`)},v=this.renderRoot.querySelector('[part="popover-content"]');d.push(ob({boundary:e,rootBoundary:i,apply({availableHeight:S}){v&&(Object.assign(v.style,{maxHeight:`${S}px`,overflowY:"auto"}),f(S))},padding:50}))}this.showArrow&&this.arrowElement&&d.push(sb({element:this.arrowElement,padding:12})),this.floatingUICleanupFunction=tb(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let v=this.adjustPlacementForRtl(this.placement),{x:S,y:R,middlewareData:U,placement:J}=await nb(f,this,{placement:v,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(S,R),U.arrow&&this.arrowElement&&this.utils.updateArrowStyle(U.arrow,J),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(J)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new jd(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(e=>e!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),ji.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,e;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(e=this.floatingUICleanupFunction)==null||e.call(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),ji.onDestroyedPopover(this)}async updated(t){if(super.updated(t),t.has("visible")){let e=t.get("visible")||!1;await this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(Mt).includes(this.placement)?this.placement:Et.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(ss).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo&&this.isConnected?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var a,d;let{triggerElement:i}=this;t===e||!i||(e&&!this.shouldSuppressOpening?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(i)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,v,S;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(S=this.setInitialFocus)==null||S.call(this,(v=this.elementIndexToReceiveFocus)!=null?v:0))},0),ji.onShowPopover(this)):(this.depthManager.popHost(),(a=this.floatingUICleanupFunction)==null||a.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(i),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(i.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(d=this.deactivateFocusTrap)==null||d.call(this),this.focusBackToTrigger&&(i==null||i.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),ji.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ki.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ki.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(i=>(i==null?void 0:i.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,A`
2772
2772
  <div part="popover-hover-bridge"></div>
2773
2773
  ${this.closeButton?A` <mdc-button
2774
2774
  part="popover-close"
@@ -2777,8 +2777,8 @@
2777
2777
  size="20"
2778
2778
  aria-label=${tt(this.closeButtonAriaLabel)||""}
2779
2779
  @click="${this.hide}"
2780
- ></mdc-button>`:H}
2781
- ${this.showArrow?A`<div class="popover-arrow" part="popover-arrow"></div>`:H}
2780
+ ></mdc-button>`:G}
2781
+ ${this.showArrow?A`<div class="popover-arrow" part="popover-arrow"></div>`:G}
2782
2782
  <div part="popover-content">
2783
2783
  <slot></slot>
2784
2784
  </div>
@@ -2929,13 +2929,13 @@
2929
2929
  pointer-events: none;
2930
2930
  cursor: default;
2931
2931
  }
2932
- `,mb=[Tt,WS];var ub=n=>Md[n]||"";var cr=class extends Zt(Q){constructor(){super(...arguments);this.inputId=`mdc-el-${ze()}`;this.required=!1;this.helpTextType=Kt.VALIDATION;this.toggletipPlacement=Kt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Kt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?A`<label for="${this.inputId}" id="${Kt.HEADING_ID}" part="label">${this.label}</label>`:A` <mdc-text
2932
+ `,mb=[xt,WS];var ub=n=>Md[n]||"";var cr=class extends Zt(Q){constructor(){super(...arguments);this.inputId=`mdc-el-${ze()}`;this.required=!1;this.helpTextType=Kt.VALIDATION;this.toggletipPlacement=Kt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Kt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}preventSoftDisabledInput(t){this.softDisabled&&t.preventDefault()}preventSoftDisabledChange(t,e){if(!this.softDisabled)return!1;let i=t.currentTarget;return i.value=e,t.stopImmediatePropagation(),!0}renderLabelElement(){return this.label?this.shouldRenderLabel?A`<label for="${this.inputId}" id="${Kt.HEADING_ID}" part="label">${this.label}</label>`:A` <mdc-text
2933
2933
  id="${Kt.HEADING_ID}"
2934
2934
  tagname="${Ln.TAGNAME}"
2935
2935
  type="${Ln.HEADER_TYPE}"
2936
2936
  part="label"
2937
2937
  >${this.label}</mdc-text
2938
- >`:H}renderHelpTextIcon(){if(!this.helpText)return H;let t=ub(this.helpTextType||Kt.VALIDATION);return t&&!this.disabled?A`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:H}renderHelpText(){return this.helpText?A`
2938
+ >`:G}renderHelpTextIcon(){if(!this.helpText)return G;let t=ub(this.helpTextType||Kt.VALIDATION);return t&&!this.disabled?A`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${t}></mdc-icon>`:G}renderHelpText(){return this.helpText?A`
2939
2939
  <mdc-text
2940
2940
  id="${Kt.HELPER_TEXT_ID}"
2941
2941
  part="help-text"
@@ -2944,9 +2944,9 @@
2944
2944
  >
2945
2945
  ${this.helpText}
2946
2946
  </mdc-text>
2947
- `:H}renderLabel(){if(!this.label)return H;let t=`toggletip-trigger-${ze()}`,e=this.disabled||this.softDisabled;return A`<div part="label-text">
2947
+ `:G}renderLabel(){if(!this.label)return G;let t=`toggletip-trigger-${ze()}`,e=this.disabled||this.softDisabled;return A`<div part="label-text">
2948
2948
  <slot name="label">${this.renderLabelElement()}</slot>
2949
- ${this.required?A`<span part="required-indicator">*</span>`:H}
2949
+ ${this.required?A`<span part="required-indicator">*</span>`:G}
2950
2950
  <slot name="toggletip">
2951
2951
  ${this.toggletipText?A` <mdc-button
2952
2952
  part="info-icon-btn"
@@ -2966,7 +2966,7 @@
2966
2966
  strategy="${this.toggletipStrategy}"
2967
2967
  show-arrow
2968
2968
  >${this.toggletipText}</mdc-toggletip
2969
- >`:H}
2969
+ >`:G}
2970
2970
  </slot>
2971
2971
  </div>`}renderHelperText(){return this.helpText?A`<mdc-statusmessage
2972
2972
  part="help-text-container"
@@ -2975,7 +2975,7 @@
2975
2975
  >
2976
2976
  <slot name="help-icon" slot="icon">${this.renderHelpTextIcon()}</slot>
2977
2977
  <slot name="help-text">${this.renderHelpText()}</slot>
2978
- </mdc-statusmessage>`:H}};cr.styles=[...Q.styles,...mb],h([u({reflect:!0,type:String})],cr.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],cr.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],cr.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],cr.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],cr.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],cr.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],cr.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],cr.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],cr.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],cr.prototype,"softDisabled",2);var ee=cr;var Qt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Xd=n=>{class o extends n{dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Qt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var YS=[z`
2978
+ </mdc-statusmessage>`:G}};cr.styles=[...Q.styles,...mb],h([u({reflect:!0,type:String})],cr.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],cr.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],cr.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],cr.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],cr.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],cr.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],cr.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],cr.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],cr.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],cr.prototype,"softDisabled",2);var ee=cr;var Qt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var Xd=n=>{class o extends n{dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Qt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return o};var YS=[z`
2979
2979
  :host {
2980
2980
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
2981
2981
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -3061,7 +3061,7 @@
3061
3061
  :host([soft-disabled]) {
3062
3062
  pointer-events: none;
3063
3063
  }
3064
- `,...xt(!0)],fb=YS;var fi=class extends Ot(Lt(Ve(ve(oe(Xd(ee)))))){constructor(){super(...arguments);this.tabIndex=0;this.checked=!1;this.indeterminate=!1;this.hasLeadingVisual=!1;this.helpTextType=xg.DEFAULT;this.renderLabelAndHelperText=()=>this.label?A`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:H}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(){return!this.disabled&&!this.softDisabled&&!this.readonly?(this.checked=!this.checked,this.indeterminate=!1,!0):!1}click(){super.click(),this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&((this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault(),e===K.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===re.SPATIAL&&!(this.readonly||this.softDisabled)&&e===K.ENTER&&(this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleLeadingVisualClick(){this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleLeadingVisualSlotChange(t){let e=t.currentTarget;this.hasLeadingVisual=e.assignedElements({flatten:!0}).length>0}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked")),(t.has("checked")||t.has("disabled")||t.has("indeterminate")||t.has("readonly")||t.has("softDisabled"))&&this.dispatchModifiedEvent("state")}render(){var t;return A`
3064
+ `,...At(!0)],fb=YS;var fi=class extends Ot(Lt(Ve(ve(oe(Xd(ee)))))){constructor(){super(...arguments);this.tabIndex=0;this.checked=!1;this.indeterminate=!1;this.hasLeadingVisual=!1;this.helpTextType=xg.DEFAULT;this.renderLabelAndHelperText=()=>this.label?A`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:G}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(){return!this.disabled&&!this.softDisabled&&!this.readonly?(this.checked=!this.checked,this.indeterminate=!1,!0):!1}click(){super.click(),this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);if(this.softDisabled&&e===H.ENTER){t.preventDefault();return}this.getKeyboardNavMode()===re.DEFAULT&&((this.readonly||this.softDisabled)&&e===H.SPACE&&t.preventDefault(),e===H.ENTER&&((i=this.form)==null||i.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===re.SPATIAL&&!(this.readonly||this.softDisabled)&&e===H.ENTER&&(this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleLeadingVisualClick(){this.toggleState()&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}handleLeadingVisualSlotChange(t){let e=t.currentTarget;this.hasLeadingVisual=e.assignedElements({flatten:!0}).length>0}update(t){super.update(t),t.has("checked")&&(this.setFormValue(),this.checked?this.internals.states.add("checked"):this.internals.states.delete("checked")),(t.has("checked")||t.has("disabled")||t.has("indeterminate")||t.has("readonly")||t.has("softDisabled"))&&this.dispatchModifiedEvent("state")}render(){var t;return A`
3065
3065
  <mdc-staticcheckbox
3066
3066
  part="static-checkbox"
3067
3067
  class="mdc-focus-ring"
@@ -3083,6 +3083,7 @@
3083
3083
  aria-checked="${this.indeterminate?"mixed":this.checked}"
3084
3084
  .indeterminate="${this.indeterminate}"
3085
3085
  .disabled="${this.disabled}"
3086
+ aria-disabled="${this.disabled||this.softDisabled}"
3086
3087
  ?readonly="${this.readonly}"
3087
3088
  aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
3088
3089
  tabindex="${this.disabled?-1:this.tabIndex}"
@@ -3180,15 +3181,15 @@
3180
3181
  --mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
3181
3182
  --mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
3182
3183
  }
3183
- `,gb=[Tt,qS];var pa=class extends ue(Q){constructor(){super(...arguments);this.color=Zd.COLOR}renderPrefix(){return A`
3184
+ `,gb=[xt,qS];var pa=class extends ue(Q){constructor(){super(...arguments);this.color=Zd.COLOR}renderPrefix(){return A`
3184
3185
  <slot name="prefix">
3185
- ${this.iconName?A`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:H}
3186
+ ${this.iconName?A`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:G}
3186
3187
  </slot>
3187
3188
  `}render(){return A`
3188
3189
  ${this.renderPrefix()}
3189
3190
  ${this.label?A`<mdc-text part="label" type="${Zd.TEXT_TYPE}" tagname="${Zd.TAG_NAME}"
3190
3191
  >${this.label}</mdc-text
3191
- >`:H}
3192
+ >`:G}
3192
3193
  `}};pa.styles=[...Q.styles,...gb],h([u({type:String,reflect:!0})],pa.prototype,"color",2),h([u({type:String})],pa.prototype,"label",2);var $n=pa;var Qd=$.constructTagName("chip"),ma={COLOR:_p.DEFAULT,TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,SIZE:Qo[24],ROLE:et.BUTTON};var XS=z`
3193
3194
  :host {
3194
3195
  cursor: pointer;
@@ -3283,11 +3284,11 @@
3283
3284
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
3284
3285
  cursor: auto;
3285
3286
  }
3286
- `,bb=[Tt,XS,...xt()];var ua=class extends ue(Ee){constructor(){super(...arguments);this.color=ma.COLOR}connectedCallback(){super.connectedCallback(),this.role=ma.ROLE,this.size=ma.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?A` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:H}render(){return A`
3287
+ `,bb=[xt,XS,...At()];var ua=class extends ue(Ee){constructor(){super(...arguments);this.color=ma.COLOR}connectedCallback(){super.connectedCallback(),this.role=ma.ROLE,this.size=ma.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?A` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:G}render(){return A`
3287
3288
  ${this.renderIcon()}
3288
3289
  ${this.label?A`<mdc-text part="label" type="${ma.TEXT_TYPE}" tagname="${ma.TAG_NAME}"
3289
3290
  >${this.label}</mdc-text
3290
- >`:H}
3291
+ >`:G}
3291
3292
  `}};ua.styles=[...$n.styles,...bb],h([u({type:String,reflect:!0})],ua.prototype,"color",2),h([u({type:String})],ua.prototype,"label",2);var fa=ua;fa.register(Qd);var ZS=fa;var yb=$.constructTagName("coachmark"),us={COLOR:ss.CONTRAST,TRIGGER:_e.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var fs=class extends dr{constructor(){super(...arguments);this.trigger=us.TRIGGER;this.showArrow=us.ARROW;this.closeButton=us.CLOSE_BUTTON;this.disableAriaExpanded=us.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=us.COLOR,this.showArrow=us.ARROW}};h([u({type:String,reflect:!0})],fs.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],fs.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],fs.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],fs.prototype,"disableAriaExpanded",2);var wp=fs;wp.register(yb);var QS=wp;var Jd=$.constructTagName("controltypeprovider"),tc={CONTROL_TYPE:"uncontrolled"},ec=["controlled","uncontrolled"];var JS=Jd,kp=JS;var rc=class extends pe{constructor(){super({context:kp});this.innerControlType=tc.CONTROL_TYPE}static get Context(){return kp}set controlType(t){ec.includes(t)&&(this.innerControlType=t)}get controlType(){return this.innerControlType}updateContext(){this.context.value!==this.controlType&&(this.context.value=this.controlType,this.context.updateObservers())}};h([u({type:String,attribute:"control-type",reflect:!0})],rc.prototype,"controlType",1);var Np=rc;Np.register(Jd);var Lp=Np;var Qr=Bi(class extends ci{constructor(n){var o;if(super(n),n.type!==xr.ATTRIBUTE||n.name!=="class"||((o=n.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(n){return" "+Object.keys(n).filter(o=>n[o]).join(" ")+" "}update(n,[o]){var e,i;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in o)o[a]&&!((e=this.nt)!=null&&e.has(a))&&this.st.add(a);return this.render(o)}let t=n.element.classList;for(let a of this.st)a in o||(t.remove(a),this.st.delete(a));for(let a in o){let d=!!o[a];d===this.st.has(a)||(i=this.nt)!=null&&i.has(a)||(d?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return $e}});function Sr(n){let o=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),e=String(n.getDate()).padStart(2,"0");return`${o}-${t}-${e}`}function Vt(n){if(!n||!/^\d{4}-\d{2}-\d{2}$/.test(n))return null;let o=n.split("-"),t=parseInt(o[0],10),e=parseInt(o[1],10),i=parseInt(o[2],10),a=new Date(t,e-1,i);return a.getFullYear()!==t||a.getMonth()!==e-1||a.getDate()!==i?null:a}function vi(n,o,t=1){return new Date(n,o-1,t)}function vs(){let n=new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate())}function Ir(n,o){let t=new Date(n);return t.setDate(t.getDate()+o),t}function oc(n,o){let t=n.getMonth()+o,e=new Date(n.getFullYear(),t,1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function Mp(n,o){let t=n.getFullYear()+o,e=new Date(t,n.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),i)),e}function sc(n,o){return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()&&n.getDate()===o.getDate()}function gi(n,o){return n.getTime()<o.getTime()}function wo(n,o){return n.getTime()>o.getTime()}function ac(n,o){return n.getTime()<=o.getTime()}function Eb(n){return new Date(n.getFullYear(),n.getMonth(),1)}function Op(n){return new Date(n.getFullYear(),n.getMonth()+1,0)}function nc(n,o){return new Date(n,o,0).getDate()}function Tb(n){let o=n.getDay();return o===0?7:o}function Vn(n,o=1){let t=n.getDay(),a=((t===0?7:t)-(o===7?7:o)+7)%7;return Ir(n,-a)}function xb(n,o="narrow"){let t=new Intl.DateTimeFormat(n,{weekday:o}),e=new Date(2026,0,5),i=[];for(let a=0;a<7;a+=1)i.push(t.format(Ir(e,a)));return i}function gs(n){var i,a;try{let d=new Intl.Locale(n),f=(a=d.weekInfo)!=null?a:(i=d.getWeekInfo)==null?void 0:i.call(d);if(f!=null&&f.firstDay)return f.firstDay}catch{}let o=["en","ja","ko","zh","pt-BR"],t=n.split("-")[0].toLowerCase(),e=n.toLowerCase();return o.includes(t)||o.includes(e)?7:1}function Ab(n,o,t){let e=vi(n,o,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function Sb(n,o){let t=Vt(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"full"}).format(t):""}function ic(n,o){let t=Vt(n);return t?new Intl.DateTimeFormat(o,{dateStyle:"medium"}).format(t):""}function Ib(n,o,t){let e=Vt(n),i=Vt(o);if(!e||!i)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,i)}catch{return`${ic(n,t)} \u2013 ${ic(o,t)}`}}function lc(n){let t=new Intl.DateTimeFormat(n,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],i="/";for(let a of t)a.type==="month"&&!e.includes("month")&&e.push("month"),a.type==="day"&&!e.includes("day")&&e.push("day"),a.type==="year"&&!e.includes("year")&&e.push("year"),a.type==="literal"&&a.value.trim()&&(i=a.value.trim());return e.length!==3?{order:["month","day","year"],separator:i}:{order:e,separator:i}}var Cb=$.constructTagName("calendar"),jt={SINGLE:"single",WEEK:"week",RANGE:"range"},Rp={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},_b=6,Dp=7,Pp={SELECTION_MODE:jt.SINGLE,LOCALE:"en-US"};var t0=z`
3292
3293
  :host {
3293
3294
  --mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
@@ -3492,7 +3493,7 @@
3492
3493
  .calendar-today-button mdc-button {
3493
3494
  width: auto;
3494
3495
  }
3495
- `,wb=[Ur,t0];function kb(n){let o=xb(n,"narrow"),t=gs(n),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Nb(n,o,t,e,i,a,d,f){let v=vi(n,o,1),S=vs(),R=gs(t),U=Tb(v),J;R===7?J=U===7?0:U:(J=U-R,J<0&&(J+=7));let j=Ir(v,-J),Z=d?Vt(d):void 0,rt=f?Vt(f):void 0,st=i?Vt(i):void 0,ht=a?Vt(a):void 0,bt=new Set(e),yt=[];for(let It=0;It<_b;It+=1){let Rt=[];for(let Gt=0;Gt<Dp;Gt+=1){let Pt=Ir(j,It*Dp+Gt),ne=Sr(Pt),Ge=Pt.getMonth()+1===o&&Pt.getFullYear()===n,qt=sc(Pt,S),xe=bt.has(ne),Ae=!1;Z&&gi(Pt,Z)&&(Ae=!0),rt&&wo(Pt,rt)&&(Ae=!0);let Se=!1,Nt=!1,se=!1;st&&ht&&(Nt=sc(Pt,st),se=sc(Pt,ht),Se=ac(st,Pt)&&ac(Pt,ht)),Rt.push({date:ne,day:Pt.getDate(),isCurrentMonth:Ge,isToday:qt,isSelected:xe,isInRange:Se,isRangeStart:Nt,isRangeEnd:se,isDisabled:Ae})}yt.push({days:Rt})}return yt}function dc(n,o){let t=Vt(n);if(!t)return{start:"",end:""};let e=Vn(t,gs(o)),i=Ir(e,6);return{start:Sr(e),end:Sr(i)}}function Fp(n,o,t){return Ab(n,o,t)}function Lb(n,o){let t=Vt(n),e=Vt(o);if(!t||!e)return[];let i=[],a=t;for(;ac(a,e);)i.push(Sr(a)),a=Ir(a,1);return i}function Mb(n,o){return ic(n,o)}function zn(n,o,t){return Ib(n,o,t)}var ce=class extends Ot(Lt(Q)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=Pp.SELECTION_MODE;this.locale=Pp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start";this.hoveredDate=""}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start",this.hoveredDate=""),t.has("value")&&this.value){let e=Vt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let d=Vt(this.value);if(d){this.displayMonth=d.getMonth()+1,this.displayYear=d.getFullYear(),this.focusedDate=this.value;return}}let t=vs(),e=this.min?Vt(this.min):void 0,i=this.max?Vt(this.max):void 0,a=t;e&&gi(t,e)?a=e:i&&wo(t,i)&&(a=i),this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear(),this.focusedDate=Sr(a)}cancelRangeSelection(t,e){this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||(this.value=t,this.endValue=e,this.rangeSelectionPhase="start",this.hoveredDate="",this.gridHasFocus=!1,this.initializeDisplay())}get calendarGrid(){let t=this.getSelectedDates(),{start:e,end:i}=this.getDisplayedRange();return Nb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===jt.WEEK||this.selectionMode===jt.RANGE)&&this.value&&this.endValue?Lb(this.value,this.endValue):[this.value]:[]}get previewEndDate(){return this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||!this.value?"":this.hoveredDate&&!this.isDateDisabled(this.hoveredDate)?this.hoveredDate:this.gridHasFocus&&this.focusedDate&&!this.isDateDisabled(this.focusedDate)?this.focusedDate:""}get isPreviewingRange(){return!!this.previewEndDate}getDisplayedRange(){if(this.selectionMode!==jt.WEEK&&this.selectionMode!==jt.RANGE)return{};let t=this.previewEndDate;if(this.selectionMode===jt.RANGE&&this.value&&t){let e=Vt(this.value),i=Vt(t);return e&&i&&gi(i,e)?{start:t,end:this.value}:{start:this.value,end:t}}return{start:this.value||void 0,end:this.endValue||void 0}}canNavigatePrev(){if(!this.min)return!0;let t=vi(this.displayYear,this.displayMonth,1),e=Vt(this.min);return e?wo(t,Eb(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=Op(vi(this.displayYear,this.displayMonth,1)),e=Vt(this.max);return e?gi(t,Op(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=oc(vi(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=Sr(vi(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}handleDayPointerEnter(t){if(this.rangeSelectionPhase!=="end"||this.selectionMode!==jt.RANGE||t.isDisabled){this.hoveredDate="";return}this.hoveredDate=t.date}selectDate(t){switch(this.selectionMode){case jt.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case jt.WEEK:{let{start:e,end:i}=dc(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case jt.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t,this.hoveredDate="";else{let e=Vt(this.value),i=Vt(t);e&&i&&gi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.hoveredDate="",this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Vt(this.focusedDate):vs();if(!e)return;let i=this.getActionForKeyEvent(t),a;switch(i){case K.LEFT:t.preventDefault(),a=Ir(e,-1);break;case K.RIGHT:t.preventDefault(),a=Ir(e,1);break;case K.UP:t.preventDefault(),a=Ir(e,-7);break;case K.DOWN:t.preventDefault(),a=Ir(e,7);break;case K.HOME:{t.preventDefault();let d=gs(this.locale);a=Vn(e,d);break}case K.END:{t.preventDefault();let d=gs(this.locale);a=Ir(Vn(e,d),6);break}case K.ENTER:case K.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===wt.PAGE_UP){t.preventDefault(),a=t.shiftKey?Mp(e,-1):oc(e,-1);break}if(t.key===wt.PAGE_DOWN){t.preventDefault(),a=t.shiftKey?Mp(e,1):oc(e,1);break}return}if(this.keyDownEventHandled(),a){let d=Sr(a);if(this.isDateDisabled(d))return;this.hoveredDate="",this.focusedDate=d,(a.getMonth()+1!==this.displayMonth||a.getFullYear()!==this.displayYear)&&(this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear()),this.updateComplete.then(()=>{var v;let f=(v=this.shadowRoot)==null?void 0:v.querySelector(`[data-date="${d}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===jt.WEEK&&this.value&&this.endValue?`Calendar, ${zn(this.value,this.endValue,this.locale)}`:`Calendar, ${Fp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=Fp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return A`
3496
+ `,wb=[Ur,t0];function kb(n){let o=xb(n,"narrow"),t=gs(n),e=t===7?6:t-1;return e===0?o:[...o.slice(e),...o.slice(0,e)]}function Nb(n,o,t,e,i,a,d,f){let v=vi(n,o,1),S=vs(),R=gs(t),U=Tb(v),J;R===7?J=U===7?0:U:(J=U-R,J<0&&(J+=7));let j=Ir(v,-J),Z=d?Vt(d):void 0,rt=f?Vt(f):void 0,st=i?Vt(i):void 0,ht=a?Vt(a):void 0,bt=new Set(e),yt=[];for(let Ct=0;Ct<_b;Ct+=1){let Rt=[];for(let Gt=0;Gt<Dp;Gt+=1){let Pt=Ir(j,Ct*Dp+Gt),ne=Sr(Pt),Ge=Pt.getMonth()+1===o&&Pt.getFullYear()===n,qt=sc(Pt,S),xe=bt.has(ne),Ae=!1;Z&&gi(Pt,Z)&&(Ae=!0),rt&&wo(Pt,rt)&&(Ae=!0);let Se=!1,Nt=!1,se=!1;st&&ht&&(Nt=sc(Pt,st),se=sc(Pt,ht),Se=ac(st,Pt)&&ac(Pt,ht)),Rt.push({date:ne,day:Pt.getDate(),isCurrentMonth:Ge,isToday:qt,isSelected:xe,isInRange:Se,isRangeStart:Nt,isRangeEnd:se,isDisabled:Ae})}yt.push({days:Rt})}return yt}function dc(n,o){let t=Vt(n);if(!t)return{start:"",end:""};let e=Vn(t,gs(o)),i=Ir(e,6);return{start:Sr(e),end:Sr(i)}}function Fp(n,o,t){return Ab(n,o,t)}function Lb(n,o){let t=Vt(n),e=Vt(o);if(!t||!e)return[];let i=[],a=t;for(;ac(a,e);)i.push(Sr(a)),a=Ir(a,1);return i}function Mb(n,o){return ic(n,o)}function zn(n,o,t){return Ib(n,o,t)}var ce=class extends Ot(Lt(Q)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=Pp.SELECTION_MODE;this.locale=Pp.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start";this.hoveredDate=""}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start",this.hoveredDate=""),t.has("value")&&this.value){let e=Vt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let d=Vt(this.value);if(d){this.displayMonth=d.getMonth()+1,this.displayYear=d.getFullYear(),this.focusedDate=this.value;return}}let t=vs(),e=this.min?Vt(this.min):void 0,i=this.max?Vt(this.max):void 0,a=t;e&&gi(t,e)?a=e:i&&wo(t,i)&&(a=i),this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear(),this.focusedDate=Sr(a)}cancelRangeSelection(t,e){this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||(this.value=t,this.endValue=e,this.rangeSelectionPhase="start",this.hoveredDate="",this.gridHasFocus=!1,this.initializeDisplay())}get calendarGrid(){let t=this.getSelectedDates(),{start:e,end:i}=this.getDisplayedRange();return Nb(this.displayYear,this.displayMonth,this.locale,t,e,i,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===jt.WEEK||this.selectionMode===jt.RANGE)&&this.value&&this.endValue?Lb(this.value,this.endValue):[this.value]:[]}get previewEndDate(){return this.selectionMode!==jt.RANGE||this.rangeSelectionPhase!=="end"||!this.value?"":this.hoveredDate&&!this.isDateDisabled(this.hoveredDate)?this.hoveredDate:this.gridHasFocus&&this.focusedDate&&!this.isDateDisabled(this.focusedDate)?this.focusedDate:""}get isPreviewingRange(){return!!this.previewEndDate}getDisplayedRange(){if(this.selectionMode!==jt.WEEK&&this.selectionMode!==jt.RANGE)return{};let t=this.previewEndDate;if(this.selectionMode===jt.RANGE&&this.value&&t){let e=Vt(this.value),i=Vt(t);return e&&i&&gi(i,e)?{start:t,end:this.value}:{start:this.value,end:t}}return{start:this.value||void 0,end:this.endValue||void 0}}canNavigatePrev(){if(!this.min)return!0;let t=vi(this.displayYear,this.displayMonth,1),e=Vt(this.min);return e?wo(t,Eb(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=Op(vi(this.displayYear,this.displayMonth,1)),e=Vt(this.max);return e?gi(t,Op(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=oc(vi(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=Sr(vi(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}handleDayPointerEnter(t){if(this.rangeSelectionPhase!=="end"||this.selectionMode!==jt.RANGE||t.isDisabled){this.hoveredDate="";return}this.hoveredDate=t.date}selectDate(t){switch(this.selectionMode){case jt.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case jt.WEEK:{let{start:e,end:i}=dc(t,this.locale);this.value=e,this.endValue=i,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:i},bubbles:!0,composed:!0}));break}case jt.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t,this.hoveredDate="";else{let e=Vt(this.value),i=Vt(t);e&&i&&gi(i,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.hoveredDate="",this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Vt(this.focusedDate):vs();if(!e)return;let i=this.getActionForKeyEvent(t),a;switch(i){case H.LEFT:t.preventDefault(),a=Ir(e,-1);break;case H.RIGHT:t.preventDefault(),a=Ir(e,1);break;case H.UP:t.preventDefault(),a=Ir(e,-7);break;case H.DOWN:t.preventDefault(),a=Ir(e,7);break;case H.HOME:{t.preventDefault();let d=gs(this.locale);a=Vn(e,d);break}case H.END:{t.preventDefault();let d=gs(this.locale);a=Ir(Vn(e,d),6);break}case H.ENTER:case H.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===Tt.PAGE_UP){t.preventDefault(),a=t.shiftKey?Mp(e,-1):oc(e,-1);break}if(t.key===Tt.PAGE_DOWN){t.preventDefault(),a=t.shiftKey?Mp(e,1):oc(e,1);break}return}if(this.keyDownEventHandled(),a){let d=Sr(a);if(this.isDateDisabled(d))return;this.hoveredDate="",this.focusedDate=d,(a.getMonth()+1!==this.displayMonth||a.getFullYear()!==this.displayYear)&&(this.displayMonth=a.getMonth()+1,this.displayYear=a.getFullYear()),this.updateComplete.then(()=>{var v;let f=(v=this.shadowRoot)==null?void 0:v.querySelector(`[data-date="${d}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===jt.WEEK&&this.value&&this.endValue?`Calendar, ${zn(this.value,this.endValue,this.locale)}`:`Calendar, ${Fp(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=Fp(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),i=!this.canNavigateNext();return A`
3496
3497
  <div class="calendar-header">
3497
3498
  <mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
3498
3499
  <div class="calendar-header-nav">
@@ -3522,8 +3523,8 @@
3522
3523
  tabindex="${f}"
3523
3524
  data-date="${t.date}"
3524
3525
  aria-selected="${v?"true":"false"}"
3525
- aria-disabled="${t.isDisabled?"true":H}"
3526
- aria-current="${t.isToday?"date":H}"
3526
+ aria-disabled="${t.isDisabled?"true":G}"
3527
+ aria-current="${t.isToday?"date":G}"
3527
3528
  aria-label="${Sb(t.date,this.locale)}"
3528
3529
  @click="${()=>this.handleDayClick(t)}"
3529
3530
  >
@@ -3545,7 +3546,7 @@
3545
3546
  </div>
3546
3547
  ${t.map(i=>A` <div class="calendar-row" role="row">${i.days.map(a=>this.renderDay(a))}</div> `)}
3547
3548
  </div>
3548
- `}isDateDisabled(t){let e=Vt(t);if(!e)return!0;let i=this.min?Vt(this.min):void 0,a=this.max?Vt(this.max):void 0;return!!(i&&gi(e,i)||a&&wo(e,a))}isTodayDisabled(){return this.isDateDisabled(Sr(vs()))}handleTodayClick(){let t=vs(),e=Sr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return H;let t=this.isTodayDisabled();return A`
3549
+ `}isDateDisabled(t){let e=Vt(t);if(!e)return!0;let i=this.min?Vt(this.min):void 0,a=this.max?Vt(this.max):void 0;return!!(i&&gi(e,i)||a&&wo(e,a))}isTodayDisabled(){return this.isDateDisabled(Sr(vs()))}handleTodayClick(){let t=vs(),e=Sr(t);this.displayMonth=t.getMonth()+1,this.displayYear=t.getFullYear(),this.selectDate(e)}renderTodayButton(){if(!this.showTodayButton)return G;let t=this.isTodayDisabled();return A`
3549
3550
  <div class="calendar-today-button">
3550
3551
  <mdc-button
3551
3552
  variant="${Ft.TERTIARY}"
@@ -3734,7 +3735,7 @@
3734
3735
  --mdc-datepicker-text-color: var(--mds-color-theme-text-primary-disabled);
3735
3736
  color: var(--mds-color-theme-text-primary-disabled);
3736
3737
  }
3737
- `,Rb=[i0,...xt(!0)];function Hn(n){return lc(n).order}function Db(n){return lc(n).separator}function Pb(n){if(!n)return null;let o=Vt(n);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function Fb(n,o,t){let e=parseInt(n,10),i=parseInt(o,10),a=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(a)||e<1||e>12||i<1||i>31||a<1)return"";let d=nc(a,e);if(i>d)return"";let f=vi(a,e,i);return Sr(f)}function $b(n,o=!1){let{order:t,separator:e}=lc(n),i={month:"mm",day:"dd",year:"yyyy"},a=t.map(d=>i[d]).join(` ${e} `);return o?`${a} - ${a}`:a}function Vb(n,o,t){switch(n){case"month":return 12;case"day":return o&&t?nc(t,o):o?nc(2e3,o):31;case"year":return 9999;default:return 0}}function zb(n){switch(n){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var zt=class extends ve(oe(ee)){constructor(){super(...arguments);this.variant=cc.VARIANT;this.value="";this.selectionMode=jt.SINGLE;this.locale=cc.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=cc.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(t=this.value){let e=Pb(t);e?(this.internalMonth=e.month,this.internalDay=e.day,this.internalYear=e.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return Fb(this.internalMonth,this.internalDay,this.internalYear)}getParsedMin(){var t;return this.min&&(t=Vt(this.min))!=null?t:void 0}getParsedMax(){var t;return this.max&&(t=Vt(this.max))!=null?t:void 0}clampValueToRange(t){var d,f;let e=Vt(t);if(!e)return t;let i=this.getParsedMin(),a=this.getParsedMax();return i&&gi(e,i)?(d=this.min)!=null?d:t:a&&wo(e,a)&&(f=this.max)!=null?f:t}getFieldRange(t){let e=parseInt(this.internalMonth,10)||void 0,i=parseInt(this.internalYear,10)||void 0,a=zb(t),d=Vb(t,e,i),f=a,v=d,S=this.getParsedMin(),R=this.getParsedMax();return t==="year"?(S&&(f=Math.max(f,S.getFullYear())),R&&(v=Math.min(v,R.getFullYear()))):t==="month"&&i?(S&&i===S.getFullYear()&&(f=Math.max(f,S.getMonth()+1)),R&&i===R.getFullYear()&&(v=Math.min(v,R.getMonth()+1))):t==="day"&&e&&i&&(S&&i===S.getFullYear()&&e===S.getMonth()+1&&(f=Math.max(f,S.getDate())),R&&i===R.getFullYear()&&e===R.getMonth()+1&&(v=Math.min(v,R.getDate()))),f>v?{min:a,max:d,isMinConstrained:!1,isMaxConstrained:!1}:{min:f,max:v,isMinConstrained:f!==a,isMaxConstrained:v!==d}}getNextSpinbuttonValue(t,e,i){return i?t<e.min?e.min:t>=e.max?e.isMaxConstrained?e.max:e.min:t+1:t>e.max?e.max:t<=e.min?e.isMinConstrained?e.min:e.max:t-1}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){let t=this.internalToValue();if(t){let e=this.clampValueToRange(t);if(e!==t&&this.parseValueToInternal(e),e===this.value)return;this.value=e,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){if(!(this.disabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.flushPendingInput(),this.displayPopover=!0}}handleSelectTriggerClick(){if(!(this.disabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.displayPopover=!0}}handleSelectKeydown(t){this.disabled||this.readonly||(t.key===wt.ENTER||t.key===wt.SPACE||t.key===wt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}closePopover(t=!1){var e;this.effectiveSelectionMode===jt.RANGE&&((e=this.calendar)==null||e.cancelRangeSelection(this.value,this.endValue)),this.displayPopover=!1,t&&this.focusBackToTrigger()}handleDateSelected(t){let{detail:e}=t,i=this.effectiveSelectionMode;i===jt.WEEK||i===jt.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let a=i===jt.RANGE&&this.value&&this.endValue;(i!==jt.RANGE||a)&&this.closePopover(!0)}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,a=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=a;break;case"day":this.internalDay=a;break;case"year":this.internalYear=a;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let i=this.getFieldRange(e),a=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case wt.ARROW_UP:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!0);this.setFieldValue(e,d),this.commitValue();break}case wt.ARROW_DOWN:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!1);this.setFieldValue(e,d),this.commitValue();break}case wt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case wt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case wt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,i.min,i.max)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let d=e==="year"?4:2;if(this.pendingDigits.length>=d){let f=parseInt(this.pendingDigits,10);f>a&&(f=a),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),v=Math.floor(a/10);if(f>v){let S=f;S>a&&(S=a),S<i&&(S=i),this.setFieldValue(e,S),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let S=f;S<i&&(S=i),this.setFieldValue(e,S),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Hn(this.locale),i=e.indexOf(t);if(i<e.length-1){let a=e[i+1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Hn(this.locale),i=e.indexOf(t);if(i>0){let a=e[i-1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Hn(this.locale),a=this.getSpinbuttonInput(i[0]);a==null||a.focus(),a==null||a.select()}}handleBaseKeydown(t){t.key===wt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===Bn.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Un);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===jt.WEEK?jt.WEEK:this.variant===Bn.DEFAULT?jt.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===jt.WEEK){let{start:t,end:e}=dc(this.value,this.locale);return zn(t,e,this.locale)}return this.effectiveSelectionMode===jt.RANGE&&this.endValue?zn(this.value,this.endValue,this.locale):Mb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=this.getFieldRange(t),a={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},d={month:"mm",day:"dd",year:"yyyy"};return A`
3738
+ `,Rb=[i0,...At(!0)];function Hn(n){return lc(n).order}function Db(n){return lc(n).separator}function Pb(n){if(!n)return null;let o=Vt(n);return o?{month:String(o.getMonth()+1).padStart(2,"0"),day:String(o.getDate()).padStart(2,"0"),year:String(o.getFullYear()).padStart(4,"0")}:null}function Fb(n,o,t){let e=parseInt(n,10),i=parseInt(o,10),a=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(i)||Number.isNaN(a)||e<1||e>12||i<1||i>31||a<1)return"";let d=nc(a,e);if(i>d)return"";let f=vi(a,e,i);return Sr(f)}function $b(n,o=!1){let{order:t,separator:e}=lc(n),i={month:"mm",day:"dd",year:"yyyy"},a=t.map(d=>i[d]).join(` ${e} `);return o?`${a} - ${a}`:a}function Vb(n,o,t){switch(n){case"month":return 12;case"day":return o&&t?nc(t,o):o?nc(2e3,o):31;case"year":return 9999;default:return 0}}function zb(n){switch(n){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var zt=class extends ve(oe(ee)){constructor(){super(...arguments);this.variant=cc.VARIANT;this.value="";this.selectionMode=jt.SINGLE;this.locale=cc.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=cc.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.localeRangeStartSelectedLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.closePopover(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits="",this.parseValueToInternal()),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(t=this.value){let e=Pb(t);e?(this.internalMonth=e.month,this.internalDay=e.day,this.internalYear=e.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return Fb(this.internalMonth,this.internalDay,this.internalYear)}getParsedMin(){var t;return this.min&&(t=Vt(this.min))!=null?t:void 0}getParsedMax(){var t;return this.max&&(t=Vt(this.max))!=null?t:void 0}clampValueToRange(t){var d,f;let e=Vt(t);if(!e)return t;let i=this.getParsedMin(),a=this.getParsedMax();return i&&gi(e,i)?(d=this.min)!=null?d:t:a&&wo(e,a)&&(f=this.max)!=null?f:t}getFieldRange(t){let e=parseInt(this.internalMonth,10)||void 0,i=parseInt(this.internalYear,10)||void 0,a=zb(t),d=Vb(t,e,i),f=a,v=d,S=this.getParsedMin(),R=this.getParsedMax();return t==="year"?(S&&(f=Math.max(f,S.getFullYear())),R&&(v=Math.min(v,R.getFullYear()))):t==="month"&&i?(S&&i===S.getFullYear()&&(f=Math.max(f,S.getMonth()+1)),R&&i===R.getFullYear()&&(v=Math.min(v,R.getMonth()+1))):t==="day"&&e&&i&&(S&&i===S.getFullYear()&&e===S.getMonth()+1&&(f=Math.max(f,S.getDate())),R&&i===R.getFullYear()&&e===R.getMonth()+1&&(v=Math.min(v,R.getDate()))),f>v?{min:a,max:d,isMinConstrained:!1,isMaxConstrained:!1}:{min:f,max:v,isMinConstrained:f!==a,isMaxConstrained:v!==d}}getNextSpinbuttonValue(t,e,i){return i?t<e.min?e.min:t>=e.max?e.isMaxConstrained?e.max:e.min:t+1:t>e.max?e.max:t<=e.min?e.isMinConstrained?e.min:e.max:t-1}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){if(this.disabled||this.softDisabled||this.readonly)return;let t=this.internalToValue();if(t){let e=this.clampValueToRange(t);if(e!==t&&this.parseValueToInternal(e),e===this.value)return;this.value=e,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){if(!(this.disabled||this.softDisabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.flushPendingInput(),this.displayPopover=!0}}handleSelectTriggerClick(){if(!(this.disabled||this.softDisabled||this.readonly)){if(this.displayPopover){this.closePopover();return}this.displayPopover=!0}}handleSelectKeydown(t){this.disabled||this.softDisabled||this.readonly||(t.key===Tt.ENTER||t.key===Tt.SPACE||t.key===Tt.ARROW_DOWN)&&(t.preventDefault(),this.displayPopover=!0)}focusCalendarGrid(){setTimeout(()=>{var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("mdc-calendar");if(t!=null&&t.shadowRoot){let i=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');i==null||i.focus()}},0)}closePopover(t=!1){var e;this.effectiveSelectionMode===jt.RANGE&&((e=this.calendar)==null||e.cancelRangeSelection(this.value,this.endValue)),this.displayPopover=!1,t&&this.focusBackToTrigger()}handleDateSelected(t){if(this.disabled||this.softDisabled||this.readonly)return;let{detail:e}=t,i=this.effectiveSelectionMode;i===jt.WEEK||i===jt.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let a=i===jt.RANGE&&this.value&&this.endValue;(i!==jt.RANGE||a)&&this.closePopover(!0)}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let i=t==="year"?4:2,a=String(e).padStart(i,"0");switch(t){case"month":this.internalMonth=a;break;case"day":this.internalDay=a;break;case"year":this.internalYear=a;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.disabled||this.softDisabled||this.readonly){(t.key===Tt.ARROW_UP||t.key===Tt.ARROW_DOWN)&&t.preventDefault();return}let i=this.getFieldRange(e),a=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case Tt.ARROW_UP:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!0);this.setFieldValue(e,d),this.commitValue();break}case Tt.ARROW_DOWN:{t.preventDefault();let d=this.getNextSpinbuttonValue(a,i,!1);this.setFieldValue(e,d),this.commitValue();break}case Tt.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case Tt.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case Tt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,i.min,i.max)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let d=e==="year"?4:2;if(this.pendingDigits.length>=d){let f=parseInt(this.pendingDigits,10);f>a&&(f=a),f<i&&(f=i),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),v=Math.floor(a/10);if(f>v){let S=f;S>a&&(S=a),S<i&&(S=i),this.setFieldValue(e,S),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let S=f;S<i&&(S=i),this.setFieldValue(e,S),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Hn(this.locale),i=e.indexOf(t);if(i<e.length-1){let a=e[i+1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Hn(this.locale),i=e.indexOf(t);if(i>0){let a=e[i-1];this.updateComplete.then(()=>{let d=this.getSpinbuttonInput(a);d==null||d.focus(),d==null||d.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let i=Hn(this.locale),a=this.getSpinbuttonInput(i[0]);a==null||a.focus(),a==null||a.select()}}handleBaseKeydown(t){t.key===Tt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===Bn.INPUT){let i=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');i==null||i.focus()}else{let i=(e=this.shadowRoot)==null?void 0:e.getElementById(Un);i==null||i.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===jt.WEEK?jt.WEEK:this.variant===Bn.DEFAULT?jt.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===jt.WEEK){let{start:t,end:e}=dc(this.value,this.locale);return zn(t,e,this.locale)}return this.effectiveSelectionMode===jt.RANGE&&this.endValue?zn(this.value,this.endValue,this.locale):Mb(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),i=this.getFieldRange(t),a={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},d={month:"mm",day:"dd",year:"yyyy"};return A`
3738
3739
  <input
3739
3740
  id="${t}-spinbutton"
3740
3741
  part="spinbutton spinbutton-${t}"
@@ -3749,6 +3750,9 @@
3749
3750
  autocomplete="off"
3750
3751
  ?disabled="${this.disabled}"
3751
3752
  ?readonly="${this.readonly}"
3753
+ aria-disabled="${this.disabled||this.softDisabled}"
3754
+ @beforeinput="${this.preventSoftDisabledInput}"
3755
+ @input="${f=>this.preventSoftDisabledChange(f,e)}"
3752
3756
  tabindex="${this.disabled?"-1":"0"}"
3753
3757
  @keydown="${f=>this.handleSpinbuttonKeydown(f,t)}"
3754
3758
  @focus="${this.handleSpinbuttonFocus}"
@@ -3764,7 +3768,7 @@
3764
3768
  <div part="spinbutton-group">
3765
3769
  ${t.map((i,a)=>A`
3766
3770
  ${this.renderSpinbutton(i)}
3767
- ${a<t.length-1?A`<span part="separator">${e}</span>`:H}
3771
+ ${a<t.length-1?A`<span part="separator">${e}</span>`:G}
3768
3772
  `)}
3769
3773
  </div>
3770
3774
  <mdc-button
@@ -3774,8 +3778,10 @@
3774
3778
  prefix-icon="${Vp}"
3775
3779
  aria-label="${this.localeCalendarLabel}"
3776
3780
  aria-expanded="${this.displayPopover?"true":"false"}"
3781
+ aria-disabled="${this.disabled||this.softDisabled}"
3777
3782
  aria-haspopup="dialog"
3778
3783
  ?disabled="${this.disabled}"
3784
+ ?soft-disabled="${this.softDisabled}"
3779
3785
  size="20"
3780
3786
  @click="${this.handleCalendarButtonClick}"
3781
3787
  ></mdc-button>
@@ -3787,6 +3793,7 @@
3787
3793
  class="mdc-focus-ring"
3788
3794
  role="combobox"
3789
3795
  aria-expanded="${this.displayPopover?"true":"false"}"
3796
+ aria-disabled="${this.disabled||this.softDisabled}"
3790
3797
  aria-haspopup="dialog"
3791
3798
  aria-label="${this.localeCalendarLabel}"
3792
3799
  tabindex="${this.disabled?"-1":"0"}"
@@ -3849,8 +3856,8 @@
3849
3856
  />
3850
3857
  ${this.renderPopover()}
3851
3858
  </div>
3852
- ${this.helpText?this.renderHelperText():H}
3853
- `}};zt.styles=[...ee.styles,...Rb],h([u({type:String,reflect:!0})],zt.prototype,"variant",2),h([u({type:String,reflect:!0})],zt.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],zt.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],zt.prototype,"locale",2),h([u({type:String,reflect:!0})],zt.prototype,"min",2),h([u({type:String,reflect:!0})],zt.prototype,"max",2),h([u({type:String,reflect:!0})],zt.prototype,"placement",2),h([u({type:String,reflect:!0})],zt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],zt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],zt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],zt.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],zt.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],zt.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],zt.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],zt.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],zt.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],zt.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],zt.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],zt.prototype,"localeNextMonthLabel",2),h([u({type:String,attribute:"locale-range-start-selected-label"})],zt.prototype,"localeRangeStartSelectedLabel",2),h([Ht("#month-spinbutton")],zt.prototype,"monthInput",2),h([Ht("#day-spinbutton")],zt.prototype,"dayInput",2),h([Ht("#year-spinbutton")],zt.prototype,"yearInput",2),h([Ht("mdc-calendar")],zt.prototype,"calendar",2),h([lt()],zt.prototype,"displayPopover",2),h([lt()],zt.prototype,"internalMonth",2),h([lt()],zt.prototype,"internalDay",2),h([lt()],zt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],zt.prototype,"endValue",2);var zp=zt;zp.register(Ob);var o0=zp;ea.register(Lv);var s0=ea;var Gn=$.constructTagName("divider"),bs={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Kn={SOLID:"solid",GRADIENT:"gradient"},Rr={POSITIVE:"positive",NEGATIVE:"negative"},Wn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},ys={ORIENTATION:bs.HORIZONTAL,VARIANT:Kn.SOLID,ARROW_DIRECTION:Rr.NEGATIVE,BUTTON_DIRECTION:Rr.NEGATIVE};var a0=[Tt,z`
3859
+ ${this.helpText?this.renderHelperText():G}
3860
+ `}};zt.styles=[...ee.styles,...Rb],h([u({type:String,reflect:!0})],zt.prototype,"variant",2),h([u({type:String,reflect:!0})],zt.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],zt.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],zt.prototype,"locale",2),h([u({type:String,reflect:!0})],zt.prototype,"min",2),h([u({type:String,reflect:!0})],zt.prototype,"max",2),h([u({type:String,reflect:!0})],zt.prototype,"placement",2),h([u({type:String,reflect:!0})],zt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],zt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],zt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],zt.prototype,"backdropAppendTo",2),h([u({type:String,attribute:"locale-month-label"})],zt.prototype,"localeMonthLabel",2),h([u({type:String,attribute:"locale-day-label"})],zt.prototype,"localeDayLabel",2),h([u({type:String,attribute:"locale-year-label"})],zt.prototype,"localeYearLabel",2),h([u({type:String,attribute:"locale-calendar-label"})],zt.prototype,"localeCalendarLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],zt.prototype,"localeSpinbuttonDescription",2),h([u({type:String,attribute:"locale-today-label"})],zt.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],zt.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],zt.prototype,"localeNextMonthLabel",2),h([u({type:String,attribute:"locale-range-start-selected-label"})],zt.prototype,"localeRangeStartSelectedLabel",2),h([Ht("#month-spinbutton")],zt.prototype,"monthInput",2),h([Ht("#day-spinbutton")],zt.prototype,"dayInput",2),h([Ht("#year-spinbutton")],zt.prototype,"yearInput",2),h([Ht("mdc-calendar")],zt.prototype,"calendar",2),h([lt()],zt.prototype,"displayPopover",2),h([lt()],zt.prototype,"internalMonth",2),h([lt()],zt.prototype,"internalDay",2),h([lt()],zt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],zt.prototype,"endValue",2);var zp=zt;zp.register(Ob);var o0=zp;ea.register(Lv);var s0=ea;var Gn=$.constructTagName("divider"),bs={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Kn={SOLID:"solid",GRADIENT:"gradient"},Rr={POSITIVE:"positive",NEGATIVE:"negative"},Wn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},ys={ORIENTATION:bs.HORIZONTAL,VARIANT:Kn.SOLID,ARROW_DIRECTION:Rr.NEGATIVE,BUTTON_DIRECTION:Rr.NEGATIVE};var a0=[xt,z`
3854
3861
  :host {
3855
3862
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
3856
3863
  --mdc-divider-width: 0.0625rem;
@@ -4090,9 +4097,9 @@
4090
4097
  gap: 0.25rem;
4091
4098
  }
4092
4099
  `,Gb=[c0];var hc=class extends ee{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?et.RADIOGROUP:et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.hasAttribute("aria-label")||this.setAttribute("aria-label",this.label||"")}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||""),t.has("helpText")&&!this.ariaDescription&&(this.ariaDescription=this.helpText||"")}render(){return A`
4093
- ${this.label||this.helpText?A`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`:H}
4100
+ ${this.label||this.helpText?A`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`:G}
4094
4101
  <slot></slot>
4095
- `}};hc.styles=[...ee.styles,...Gb];var va=hc;var Kb=$.constructTagName("formfieldgroup");va.register(Kb);var pc=va;fn.register(Zl);var h0=fn;An.register(gd);var p0=An;var Es=Bi(class extends ci{constructor(n){if(super(n),n.type!==xr.PROPERTY&&n.type!==xr.ATTRIBUTE&&n.type!==xr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!id(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===$e||o===H)return o;let t=n.element,e=n.name;if(n.type===xr.PROPERTY){if(o===t[e])return $e}else if(n.type===xr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(n.type===xr.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return od(n),o}});var m0=z`
4102
+ `}};hc.styles=[...ee.styles,...Gb];var va=hc;var Kb=$.constructTagName("formfieldgroup");va.register(Kb);var pc=va;fn.register(Zl);var h0=fn;An.register(gd);var p0=An;var Es=Bi(class extends ci{constructor(n){if(super(n),n.type!==xr.PROPERTY&&n.type!==xr.ATTRIBUTE&&n.type!==xr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!id(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[o]){if(o===$e||o===G)return o;let t=n.element,e=n.name;if(n.type===xr.PROPERTY){if(o===t[e])return $e}else if(n.type===xr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return $e}else if(n.type===xr.ATTRIBUTE&&t.getAttribute(e)===o+"")return $e;return od(n),o}});var m0=z`
4096
4103
  :host {
4097
4104
  --mdc-statusmessage-color: var(--mds-color-theme-text-secondary-normal);
4098
4105
  --mdc-statusmessage-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
@@ -4153,9 +4160,9 @@
4153
4160
  font-weight: inherit;
4154
4161
  line-height: inherit;
4155
4162
  }
4156
- `,Wb=[m0];var ga=class extends Q{constructor(){super(...arguments);this.severity=Nn.SEVERITY}renderIcon(){let t=Md[this.severity||Nn.SEVERITY];return t?A`<mdc-icon part="icon" name="${t}"></mdc-icon>`:H}renderMessage(){return this.message?A`
4163
+ `,Wb=[m0];var ga=class extends Q{constructor(){super(...arguments);this.severity=Nn.SEVERITY}renderIcon(){let t=Md[this.severity||Nn.SEVERITY];return t?A`<mdc-icon part="icon" name="${t}"></mdc-icon>`:G}renderMessage(){return this.message?A`
4157
4164
  <mdc-text part="text" tagname="${Nn.TEXT_TAGNAME}" type="${Nn.TEXT_TYPE}">${this.message}</mdc-text>
4158
- `:H}render(){return A`
4165
+ `:G}render(){return A`
4159
4166
  <div part="container">
4160
4167
  <slot name="icon" part="icon">${this.renderIcon()}</slot>
4161
4168
  <slot part="text">${this.renderMessage()}</slot>
@@ -4164,7 +4171,7 @@
4164
4171
  <mdc-text part="character-counter" tagname="span" type="body-midsize-regular">
4165
4172
  ${this.value.length}/${this.maxCharacterLimit}
4166
4173
  </mdc-text>
4167
- `:H}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([lt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var Yb=$.constructTagName("input"),uc={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ba={OFF:"off",ON:"on"},jb={NONE:"none",TEXT:"text",DECIMAL:"decimal",NUMERIC:"numeric",TEL:"tel",SEARCH:"search",EMAIL:"email",URL:"url"},bi={PASSWORD:"password",TEXT:"text",SEARCH:"search",NUMBER:"number"},qb={MAX_LENGTH:10,VALIDATION:te.ERROR},yi={HEADING_ID:Kt.HEADING_ID,VALIDATION:te.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ft.TERTIARY,CLEAR_BUTTON_SIZE:ar[20],PREFIX_TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:ba.OFF,INPUT_TYPE:bi.TEXT};var f0=[z`
4174
+ `:G}}return h([u({type:Number,attribute:"max-character-limit"})],o.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],o.prototype,"characterLimitAnnouncement",2),h([lt()],o.prototype,"characterLimitAriaLiveAnnouncer",2),o};var Yb=$.constructTagName("input"),uc={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},ba={OFF:"off",ON:"on"},jb={NONE:"none",TEXT:"text",DECIMAL:"decimal",NUMERIC:"numeric",TEL:"tel",SEARCH:"search",EMAIL:"email",URL:"url"},bi={PASSWORD:"password",TEXT:"text",SEARCH:"search",NUMBER:"number"},qb={MAX_LENGTH:10,VALIDATION:te.ERROR},yi={HEADING_ID:Kt.HEADING_ID,VALIDATION:te.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ft.TERTIARY,CLEAR_BUTTON_SIZE:ar[20],PREFIX_TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:pt.SPAN,AUTO_COMPLETE:ba.OFF,INPUT_TYPE:bi.TEXT};var f0=[z`
4168
4175
  :host {
4169
4176
  --mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
4170
4177
  --mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
@@ -4305,7 +4312,7 @@
4305
4312
  :host([disabled])::part(character-counter) {
4306
4313
  color: var(--mds-color-theme-text-primary-disabled);
4307
4314
  }
4308
- `,...xt(!0)],Xb=f0;var ge=class extends mc(Lt(Ve(ve(oe(hr))))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=uc.OFF;this.autocomplete=ba.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,e,i){super.attributeChangedCallback(t,e,i),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===te.ERROR&&this.helpText&&this.inputElement.setCustomValidity(this.helpText),this.setValidity()}updated(t){super.updated(t),t.has("value")&&this.handleCharacterOverflowStateChange(),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value),this.announceCharacterLimitWarning()}onInput(t){if(this.updateValue(),this.setInputValidity(),this.checkValidity(),!t.composed){let e=t.constructor;this.dispatchEvent(new e(t.type,t))}}onChange(t){this.updateValue(),this.setInputValidity();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleKeyDown(t){var e;this.getActionForKeyEvent(t)===K.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?A`
4315
+ `,...At(!0)],Xb=f0;var ge=class extends mc(Lt(Ve(ve(oe(hr))))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=uc.OFF;this.autocomplete=ba.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,e,i){super.attributeChangedCallback(t,e,i),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===te.ERROR&&this.helpText&&this.inputElement.setCustomValidity(this.helpText),this.setValidity()}updated(t){super.updated(t),t.has("value")&&this.handleCharacterOverflowStateChange(),t.has("helpText")&&this.announceCharacterLimitWarning()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value),this.announceCharacterLimitWarning()}onInput(t){if(!this.preventSoftDisabledChange(t,this.value)&&(this.updateValue(),this.setInputValidity(),this.checkValidity(),!t.composed)){let e=t.constructor;this.dispatchEvent(new e(t.type,t))}}onChange(t){if(this.preventSoftDisabledChange(t,this.value))return;this.updateValue(),this.setInputValidity();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleKeyDown(t){var e;if(this.softDisabled){this.getActionForKeyEvent(t)===H.ENTER&&t.preventDefault();return}this.getActionForKeyEvent(t)===H.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?A`
4309
4316
  <mdc-icon
4310
4317
  part="leading-icon"
4311
4318
  name=${this.leadingIcon}
@@ -4313,7 +4320,7 @@
4313
4320
  length-unit="${yi.ICON_SIZE_UNIT}"
4314
4321
  >
4315
4322
  </mdc-icon>
4316
- `:H}renderPrefixText(){return this.prefixText?A`
4323
+ `:G}renderPrefixText(){return this.prefixText?A`
4317
4324
  <mdc-text
4318
4325
  part="prefix-text"
4319
4326
  tagname="${yi.PREFIX_TEXT_TAG}"
@@ -4322,7 +4329,7 @@
4322
4329
  >
4323
4330
  ${this.prefixText.slice(0,qb.MAX_LENGTH)}
4324
4331
  </mdc-text>
4325
- `:H}clearInputText(){var t;this.value="",(t=this.inputElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0}))}renderTrailingButton(t=!1){let e=t||this.value&&this.trailingButton;return e?A`
4332
+ `:G}clearInputText(){var t;this.disabled||this.softDisabled||this.readonly||(this.value="",(t=this.inputElement)==null||t.focus(),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})))}renderTrailingButton(t=!1){let e=t||this.value&&this.trailingButton;return e?A`
4326
4333
  <mdc-button
4327
4334
  part="trailing-button"
4328
4335
  class="own-focus-ring ${e?"":"hidden"}"
@@ -4331,9 +4338,10 @@
4331
4338
  size="${yi.CLEAR_BUTTON_SIZE}"
4332
4339
  aria-label="${this.clearAriaLabel}"
4333
4340
  @click=${this.clearInputText}
4334
- ?disabled=${this.disabled||this.readonly||!e}
4341
+ ?disabled=${this.disabled||this.softDisabled||this.readonly||!e}
4342
+ ?soft-disabled=${this.softDisabled}
4335
4343
  ></mdc-button>
4336
- `:H}renderInputElement(t,e=!1){var a,d;let i=e?"":this.placeholder;return A`<input
4344
+ `:G}renderInputElement(t,e=!1){var a,d;let i=e?"":this.placeholder;return A`<input
4337
4345
  aria-label="${(a=this.dataAriaLabel)!=null?a:""}"
4338
4346
  part="input-text"
4339
4347
  id="${this.inputId}"
@@ -4341,6 +4349,7 @@
4341
4349
  .value="${Es(this.value)}"
4342
4350
  ?disabled="${this.disabled}"
4343
4351
  ?readonly="${this.readonly}"
4352
+ aria-disabled="${this.disabled||this.softDisabled}"
4344
4353
  ?required="${this.required}"
4345
4354
  type="${t}"
4346
4355
  aria-labelledby="${tt(this.label?yi.HEADING_ID:void 0)}"
@@ -4356,10 +4365,11 @@
4356
4365
  pattern=${tt(this.pattern)}
4357
4366
  list=${tt(this.list)}
4358
4367
  size=${tt(this.size)}
4368
+ @beforeinput=${this.preventSoftDisabledInput}
4359
4369
  @input=${this.onInput}
4360
4370
  @change=${this.onChange}
4361
4371
  @keydown=${this.handleKeyDown}
4362
- />`}renderInputFooter(){return!this.helpText&&!this.maxCharacterLimit?H:A` <div part="input-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}render(){return A`
4372
+ />`}renderInputFooter(){return!this.helpText&&!this.maxCharacterLimit?G:A` <div part="input-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}render(){return A`
4363
4373
  ${this.renderLabel()}
4364
4374
  <div class="mdc-focus-ring" part="input-container">
4365
4375
  <slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
@@ -4412,15 +4422,15 @@
4412
4422
  width: 1.25rem;
4413
4423
  height: 1.25rem;
4414
4424
  }
4415
- `,Zb=[Tt,g0];var ya=$.constructTagName("inputchip"),fc={TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var Ts=class extends ue(Zt(Q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return A`
4425
+ `,Zb=[xt,g0];var ya=$.constructTagName("inputchip"),fc={TEXT_TYPE:at.BODY_MIDSIZE_REGULAR,TAG_NAME:pt.SPAN,CLOSE_ICON:"cancel-bold"};var Ts=class extends ue(Zt(Q)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return A`
4416
4426
  <slot name="prefix">
4417
- ${this.iconName?A`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:H}
4427
+ ${this.iconName?A`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:G}
4418
4428
  </slot>
4419
4429
  `}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return A`
4420
4430
  ${this.renderPrefix()}
4421
4431
  ${this.label?A`<mdc-text part="label" type="${fc.TEXT_TYPE}" tagname="${fc.TAG_NAME}"
4422
4432
  >${this.label}</mdc-text
4423
- >`:H}
4433
+ >`:G}
4424
4434
  <mdc-button
4425
4435
  ?disabled="${this.disabled}"
4426
4436
  variant="tertiary"
@@ -4501,7 +4511,7 @@
4501
4511
  text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
4502
4512
  text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
4503
4513
  }
4504
- `,Qb=[y0];var jn=class extends ue(mi){constructor(){super(...arguments);this.size=Cv.LINK_SIZE}getIconSize(){switch(this.size){case hd.SMALL:return pd.SMALL;case hd.MIDSIZE:return pd.MIDSIZE;default:return pd.LARGE}}renderAnchorContent(){return A`<span part="text"><slot></slot></span>${this.iconName?A`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:H}`}};jn.styles=[...mi.styles,...Qb],h([u({type:String,reflect:!0})],jn.prototype,"size",2);var Wp=jn;Wp.register(cd);var E0=Wp;var Jb=$.constructTagName("linkbutton"),Ea={12:12,14:14,16:16},Ta={SIZE:Ea[16],ROLE:et.BUTTON,INLINE:sa.INLINE,INVERTED:sa.INVERTED};var ty=n=>{switch(n){case Ea[12]:return .75;case Ea[14]:return .875;default:return 1}};var T0=z`
4514
+ `,Qb=[y0];var jn=class extends ue(mi){constructor(){super(...arguments);this.size=Cv.LINK_SIZE}getIconSize(){switch(this.size){case hd.SMALL:return pd.SMALL;case hd.MIDSIZE:return pd.MIDSIZE;default:return pd.LARGE}}renderAnchorContent(){return A`<span part="text"><slot></slot></span>${this.iconName?A`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:G}`}};jn.styles=[...mi.styles,...Qb],h([u({type:String,reflect:!0})],jn.prototype,"size",2);var Wp=jn;Wp.register(cd);var E0=Wp;var Jb=$.constructTagName("linkbutton"),Ea={12:12,14:14,16:16},Ta={SIZE:Ea[16],ROLE:et.BUTTON,INLINE:sa.INLINE,INVERTED:sa.INVERTED};var ty=n=>{switch(n){case Ea[12]:return .75;case Ea[14]:return .875;default:return 1}};var T0=z`
4505
4515
  :host {
4506
4516
  gap: 0.25rem;
4507
4517
  cursor: pointer;
@@ -4600,10 +4610,10 @@
4600
4610
  color: var(--mdc-link-color-disabled);
4601
4611
  pointer-events: none;
4602
4612
  }
4603
- `,ey=[T0,...xt()];var xs=class extends ue(Ee){constructor(){super(...arguments);this.size=Ta.SIZE;this.inline=Ta.INLINE;this.inverted=Ta.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Ta.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ea).includes(t)?`${t}`:Ta.SIZE.toString())}render(){return A`
4613
+ `,ey=[T0,...At()];var xs=class extends ue(Ee){constructor(){super(...arguments);this.size=Ta.SIZE;this.inline=Ta.INLINE;this.inverted=Ta.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=Ta.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Ea).includes(t)?`${t}`:Ta.SIZE.toString())}render(){return A`
4604
4614
  <slot></slot>
4605
- ${this.iconName?A` <mdc-icon name=${this.iconName} size=${ty(this.size)} length-unit="rem"></mdc-icon> `:H}
4606
- `}};xs.styles=[...mi.styles,...ey],h([u({type:Number,reflect:!0})],xs.prototype,"size",2),h([u({type:Boolean,reflect:!0})],xs.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],xs.prototype,"inverted",2);var Yp=xs;Yp.register(Jb);var x0=Yp;mi.register(dg);var A0=mi;var Ei=n=>{class o extends Ot(Lt(n)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:a}=i,d=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&a instanceof Q&&d&&a.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let a=i.target,d=this.getCurrentIndex(a);if(d!==-1){let f=document.activeElement===a,v=document.activeElement&&document.activeElement.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,S=!(this.navItems.at(d)!==a&&(f||v));this.resetTabIndexAndSetFocus(d,void 0,S,!1)}};this.handleNavBeforeFocus=i=>{let a=wh(i.relatedTarget);if(this!==a&&!this.contains(document.activeElement)&&this.contains(a)){i.preventDefault();let d=this.navItems.find(v=>v.contains(a)),f=this.getCurrentIndex(d);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Qt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let a=this.getActionForKeyEvent(i,!0),d=this.orientation==="vertical",f=new Set(d?[K.DOWN,K.UP,K.HOME,K.END]:[K.LEFT,K.RIGHT,K.HOME,K.END]);if(!a||!f.has(a))return;let v=i.target,S=this.getCurrentIndex(v);if(S===-1)return;this.resetTabIndexes(S);let R=!1;switch(a){case K.HOME:{R=this.resetTabIndexAndSetFocus(0,S);break}case K.END:{R=this.resetTabIndexAndSetFocus(this.navItems.length-1,S);break}case K.DOWN:case K.RIGHT:{let U=this.shouldLoop()?0:S,J=S+1===this.navItems.length?U:S+1;R=this.resetTabIndexAndSetFocus(J,S);break}case K.UP:case K.LEFT:{let U=this.shouldLoop()?this.navItems.length-1:S,J=S-1===-1?U:S-1;R=this.resetTabIndexAndSetFocus(J,S);break}default:break}R&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(a=>a===i||!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,a=!0){var d;if(this.navItems.length>0){this.navItems.forEach(S=>S.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,v=(d=this.navItems.at(f))!=null?d:this.navItems.find(Boolean);v&&(v.setAttribute("tabindex","0"),a&&v.focus())}}resetTabIndexAndSetFocus(i,a,d=!0,f=!0){var R;let{navItems:v}=this;if(v.length===0)return!1;let S=(R=v.at(i))!=null?R:v.find(Boolean);return i===0&&a===0&&v.length===1||i===a&&S&&S.getAttribute("tabindex")==="0"?!1:(a===void 0?v.forEach(U=>U.setAttribute("tabindex","-1")):v.at(a)&&v.at(a).setAttribute("tabindex","-1"),S.setAttribute("tabindex","0"),d&&(S.focus({preventScroll:!0}),f&&S.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===re.SPATIAL?!1:this.loop!=="false"}}return o};var vc=$.constructTagName("listitem"),qn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},ry={VARIANT:qn.FULL_WIDTH};var S0=n=>!!n,Dr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||S0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Qt.CREATED,this.itemCreationHandler),this.host.addEventListener(Qt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Qt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Qt.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||!Wf(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);Yf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let a=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",a===-1?this.cache.length:a,this.cache.slice())),a===-1?this.cache.push(e):a>=0&&this.cache.splice(a,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var Ti=n=>{class o extends n{constructor(...i){super(...i);this.handleItemCreation=i=>{let a=i.target;a&&a.addEventListener(Qt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Qt.DESTROYED&&(i.target.removeEventListener(Qt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Qt.CREATED,this.handleItemCreation)}}return o};var I0=z`
4615
+ ${this.iconName?A` <mdc-icon name=${this.iconName} size=${ty(this.size)} length-unit="rem"></mdc-icon> `:G}
4616
+ `}};xs.styles=[...mi.styles,...ey],h([u({type:Number,reflect:!0})],xs.prototype,"size",2),h([u({type:Boolean,reflect:!0})],xs.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],xs.prototype,"inverted",2);var Yp=xs;Yp.register(Jb);var x0=Yp;mi.register(dg);var A0=mi;var Ei=n=>{class o extends Ot(Lt(n)){constructor(...i){super(...i);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=i=>{var f;let{target:a}=i,d=i instanceof CustomEvent&&((f=i.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&a instanceof Q&&d&&a.setAttribute("tabindex","0")};this.handleNavigationClick=i=>{let a=i.target,d=this.getCurrentIndex(a);if(d!==-1){let f=document.activeElement===a,v=document.activeElement&&document.activeElement.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,S=!(this.navItems.at(d)!==a&&(f||v));this.resetTabIndexAndSetFocus(d,void 0,S,!1)}};this.handleNavBeforeFocus=i=>{let a=wh(i.relatedTarget);if(this!==a&&!this.contains(document.activeElement)&&this.contains(a)){i.preventDefault();let d=this.navItems.find(v=>v.contains(a)),f=this.getCurrentIndex(d);if(f===-1)return;this.resetTabIndexes(f)}};this.addEventListener(Qt.CREATED,this.handleItemCreation),this.addEventListener("keydown",this.handleNavigationKeyDown.bind(this)),this.addEventListener("click",this.handleNavigationClick)}connectedCallback(){super.connectedCallback(),document.addEventListener("navbeforefocus",this.handleNavBeforeFocus)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("navbeforefocus",this.handleNavBeforeFocus)}async firstUpdated(i){super.firstUpdated(i),this.setInitialFocus()}setInitialFocus(){let i=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(i,void 0,!1)}handleNavigationKeyDown(i){let a=this.getActionForKeyEvent(i,!0),d=this.orientation==="vertical",f=new Set(d?[H.DOWN,H.UP,H.HOME,H.END]:[H.LEFT,H.RIGHT,H.HOME,H.END]);if(!a||!f.has(a))return;let v=i.target,S=this.getCurrentIndex(v);if(S===-1)return;this.resetTabIndexes(S);let R=!1;switch(a){case H.HOME:{R=this.resetTabIndexAndSetFocus(0,S);break}case H.END:{R=this.resetTabIndexAndSetFocus(this.navItems.length-1,S);break}case H.DOWN:case H.RIGHT:{let U=this.shouldLoop()?0:S,J=S+1===this.navItems.length?U:S+1;R=this.resetTabIndexAndSetFocus(J,S);break}case H.UP:case H.LEFT:{let U=this.shouldLoop()?this.navItems.length-1:S,J=S-1===-1?U:S-1;R=this.resetTabIndexAndSetFocus(J,S);break}default:break}R&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(i.stopPropagation(),i.preventDefault()))}getCurrentIndex(i){return i?this.navItems.findIndex(a=>a===i||!!(a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(i,a=!0){var d;if(this.navItems.length>0){this.navItems.forEach(S=>S.setAttribute("tabindex","-1"));let f=this.navItems.at(i)?i:0,v=(d=this.navItems.at(f))!=null?d:this.navItems.find(Boolean);v&&(v.setAttribute("tabindex","0"),a&&v.focus())}}resetTabIndexAndSetFocus(i,a,d=!0,f=!0){var R;let{navItems:v}=this;if(v.length===0)return!1;let S=(R=v.at(i))!=null?R:v.find(Boolean);return i===0&&a===0&&v.length===1||i===a&&S&&S.getAttribute("tabindex")==="0"?!1:(a===void 0?v.forEach(U=>U.setAttribute("tabindex","-1")):v.at(a)&&v.at(a).setAttribute("tabindex","-1"),S.setAttribute("tabindex","0"),d&&(S.focus({preventScroll:!0}),f&&S.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===re.SPATIAL?!1:this.loop!=="false"}}return o};var vc=$.constructTagName("listitem"),qn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},ry={VARIANT:qn.FULL_WIDTH};var S0=n=>!!n,Dr=class{constructor(o,t){this.cache=[];this.itemCreationHandler=o=>{o.stopPropagation(),this.addItem(o.target,void 0)};this.itemDestroyHandler=o=>{o.stopPropagation(),this.delete(o.detail.originalTarget)};this.host=o,o.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||S0,this.onStoreUpdate=t==null?void 0:t.onStoreUpdate}get items(){return this.cache}hostConnected(){this.host.addEventListener(Qt.CREATED,this.itemCreationHandler),this.host.addEventListener(Qt.DESTROYED,this.itemDestroyHandler)}hostDisconnected(){this.host.removeEventListener(Qt.CREATED,this.itemCreationHandler),this.host.removeEventListener(Qt.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||!Wf(this.cache.at(-1),o))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let i=Math.floor((t+e)/2);Yf(this.cache[i],o)?t=i+1:e=i-1}return t}addItem(o,t=void 0){var i;let e=o;if(this.isValidItem(e)&&!this.cache.includes(e)){let a=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((i=this.onStoreUpdate)==null||i.call(this,e,"added",a===-1?this.cache.length:a,this.cache.slice())),a===-1?this.cache.push(e):a>=0&&this.cache.splice(a,0,e)}}delete(o){var e;let t=this.cache.indexOf(o);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,o,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(o){this.cache.length=0,o&&this.cache.push(...o)}};var Ti=n=>{class o extends n{constructor(...i){super(...i);this.handleItemCreation=i=>{let a=i.target;a&&a.addEventListener(Qt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=i=>{i.stopImmediatePropagation(),i.target&&i.type===Qt.DESTROYED&&(i.target.removeEventListener(Qt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(i.type,{bubbles:i.bubbles,composed:i.composed,detail:{originalTarget:i.target}})))};this.addEventListener(Qt.CREATED,this.handleItemCreation)}}return o};var I0=z`
4607
4617
  :host {
4608
4618
  display: flex;
4609
4619
  flex-direction: column;
@@ -4629,7 +4639,7 @@
4629
4639
  scroll-padding-left: 0.25rem;
4630
4640
  scroll-padding-right: 0.25rem;
4631
4641
  }
4632
- `,iy=[I0];var oy=$.constructTagName("list");var Xn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},gc={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Xn.VERTICAL};var As=class extends Ei(Ti(Q)){constructor(){super();this.loop=gc.LOOP;this.initialFocus=gc.INITIAL_FOCUS;this.orientation=gc.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===K.SPACE&&this.navItems.find(i=>i===t.target)&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${vc}:not([disabled])`)}render(){return A`
4642
+ `,iy=[I0];var oy=$.constructTagName("list");var Xn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},gc={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:Xn.VERTICAL};var As=class extends Ei(Ti(Q)){constructor(){super();this.loop=gc.LOOP;this.initialFocus=gc.INITIAL_FOCUS;this.orientation=gc.ORIENTATION;this.focusWithin=!1;this.handleModifiedEvent=t=>{let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=et.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,i){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let a=i+1;a>=this.navItems.length&&(a=i-1),this.resetTabIndexes(a,this.focusWithin)}}handleKeyDown(t){this.getActionForKeyEvent(t)===H.SPACE&&this.navItems.find(i=>i===t.target)&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${vc}:not([disabled])`)}render(){return A`
4633
4643
  <slot name="list-header"></slot>
4634
4644
  <!-- make the container slot role presentation to keep it ignored in a11y tree -->
4635
4645
  <slot part="container" role="presentation"></slot>
@@ -4667,10 +4677,10 @@
4667
4677
  aria-hidden="true"
4668
4678
  size="1"
4669
4679
  length-unit="rem"
4670
- ></mdc-icon>`:H}
4680
+ ></mdc-icon>`:G}
4671
4681
  ${this.headerText?A`<mdc-text part="header-text" type="body-midsize-bold" tagname="span" aria-hidden="true"
4672
4682
  >${this.headerText}</mdc-text
4673
- >`:H}
4683
+ >`:G}
4674
4684
  <slot></slot>
4675
4685
  ${this.postfixIcon?A`<mdc-icon
4676
4686
  part="postfix-icon"
@@ -4678,7 +4688,7 @@
4678
4688
  aria-hidden="true"
4679
4689
  size="1"
4680
4690
  length-unit="rem"
4681
- ></mdc-icon>`:H}
4691
+ ></mdc-icon>`:G}
4682
4692
  `}};No.styles=[...Q.styles,...sy],h([u({type:String,attribute:"prefix-icon"})],No.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],No.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],No.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],No.prototype,"disabled",2);var qp=No;var ay=$.constructTagName("listheader");qp.register(ay);var _0=qp;var bc=n=>{class o extends Xd(n){connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent(Qt.CREATED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}})),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent(Qt.FIRST_UPDATE_COMPLETED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))})}disconnectedCallback(){super.disconnectedCallback(),this.dispatchEvent(new CustomEvent(Qt.DESTROYED,{bubbles:!0,composed:!0,detail:{lifecycle:!0}}))}}return o};var Zn=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 w0=z`
4683
4693
  :host {
4684
4694
  --mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
@@ -4792,9 +4802,9 @@
4792
4802
  flex-direction: row;
4793
4803
  flex-shrink: 0;
4794
4804
  }
4795
- `,ny=[w0,...xt()];var Ze=class extends Ot(Lt(Zt(si(bc(Q))))){constructor(){super();this.variant=ry.VARIANT;this.wasSpacePressed=!1;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||et.LISTITEM}handleBlur(){this.wasSpacePressed=!1}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);this.isEventFromInsideListItem(t)||(!t.defaultPrevented&&e===K.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===K.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===K.SPACE&&(!this.isEventFromInsideListItem(t)&&!t.defaultPrevented&&this.wasSpacePressed&&(t.preventDefault(),this.triggerClickEvent(t)),this.wasSpacePressed=!1)}isEventFromInsideListItem(t){let e=t.target;return e!==this&&document.activeElement===e&&this.contains(e)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}getText(t,e,i){return A`
4805
+ `,ny=[w0,...At()];var Ze=class extends Ot(Lt(Zt(si(bc(Q))))){constructor(){super();this.variant=ry.VARIANT;this.wasSpacePressed=!1;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||et.LISTITEM}handleBlur(){this.wasSpacePressed=!1}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);this.isEventFromInsideListItem(t)||(!t.defaultPrevented&&e===H.ENTER?(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)):e===H.SPACE&&(this.wasSpacePressed=!0))}handleKeyUp(t){this.getActionForKeyEvent(t)===H.SPACE&&(!this.isEventFromInsideListItem(t)&&!t.defaultPrevented&&this.wasSpacePressed&&(t.preventDefault(),this.triggerClickEvent(t)),this.wasSpacePressed=!1)}isEventFromInsideListItem(t){let e=t.target;return e!==this&&document.activeElement===e&&this.contains(e)}triggerClickEvent(t){if(this.isEventFromInsideListItem(t))return;let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}getText(t,e,i){return A`
4796
4806
  <slot name="${t}">
4797
- ${i?A`<mdc-text part="${t}" type="${e}" tagname="${pt.SPAN}">${i}</mdc-text>`:H}
4807
+ ${i?A`<mdc-text part="${t}" type="${e}" tagname="${pt.SPAN}">${i}</mdc-text>`:G}
4798
4808
  </slot>
4799
4809
  `}disableSlottedChildren(t=!1){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(e=>{t?(e.setAttribute("disabled",""),Zn.onDisableListItem(this)):(e.removeAttribute("disabled"),Zn.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 A`<slot
4800
4810
  name="trailing-controls"
@@ -4806,7 +4816,7 @@
4806
4816
  @click=${this.stopEventPropagation}
4807
4817
  @keyup=${this.stopEventPropagation}
4808
4818
  @keydown=${this.stopEventPropagation}
4809
- ></slot>`}stopEventPropagation(t){if(t instanceof KeyboardEvent){let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&t.stopPropagation()}else t instanceof MouseEvent&&t.stopPropagation()}click(){this.triggerClickEvent(new Event("click"))}render(){return A`
4819
+ ></slot>`}stopEventPropagation(t){if(t instanceof KeyboardEvent){let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&t.stopPropagation()}else t instanceof MouseEvent&&t.stopPropagation()}click(){this.triggerClickEvent(new Event("click"))}render(){return A`
4810
4820
  <slot name="content">
4811
4821
  <div part="leading">
4812
4822
  ${this.renderLeadingControls()}
@@ -4861,7 +4871,7 @@
4861
4871
  :host([aria-orientation='vertical']) {
4862
4872
  flex-direction: column;
4863
4873
  }
4864
- `,my=[M0];var tl=class extends Ot(Lt(Q)){constructor(){super();this.depthManager=new yo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(d=>d!==e);this.getVisibleSubMenusOfItems(i).forEach(d=>{d.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=py.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var d,f;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],a=v=>{v.role===et.MENUITEM&&!v.hasAttribute("disabled")?i.push(v):v.tagName.toLowerCase()===Zi&&Array.from(v.children).forEach(a)};return e.forEach(a),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let a=i.getAttribute("id");if(!a)return;let d=(f=document.querySelector)==null?void 0:f.call(document,`${ae}[triggerid="${a}"]`);d&&d.visible&&e.push(d)}),e}getAllPopovers(){var a,d;if(!this.menuItems.length)return[];let t=(d=(a=this.menuItems[0])==null?void 0:a.closest(Lo))!=null?d:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${ae}`).forEach(v=>{e.push(v)}),f.querySelectorAll("slot").forEach(v=>{v.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let a=i===0?"0":"-1";e==null||e.setAttribute("tabindex",a)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(a=>a.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var a,d;i<0||e<0||(e!==i&&((a=t[e])==null||a.setAttribute("tabindex","-1"),(d=t[i])==null||d.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var v;let{length:a}=this.menuItems;if(a===0)return;let d=t;if(this.getKeyboardNavMode()===re.DEFAULT?d=e==="prev"?(t-1+a)%a:(t+1)%a:d=e==="prev"?Math.max(0,t-1):Math.min(t+1,a-1),d!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,d),i)){let S=(v=this.menuItems[d])==null?void 0:v.getAttribute("id");this.getSubmenu(S)&&!this.menuItems[d].hasAttribute("soft-disabled")&&(this.showSubmenu(S),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var d;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),a=(d=e.parentElement)==null?void 0:d.tagName.toLowerCase();return i===Jn||i===Lo||i===Zi&&(a===Jn||a===Lo)}isNestedMenuItem(t){return!!t.closest(ae)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.getAllPopovers(),e=this.depthManager.popUntil(i=>t.includes(i));await Promise.all(e.map(i=>i.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(ae),a=i==null?void 0:i.getAttribute("triggerid"),d=this.menuItems.find(f=>f.getAttribute("id")===a);if(d){this.isTopLevelMenuItem(d)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(d);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ae){let i=e.getAttribute("triggerid"),a=this.menuItems.find(d=>d.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(d=>d===a):this.getParentMenuItemIndex(a)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case K.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case K.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case K.LEFT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(a);break}case K.RIGHT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(a);break}case K.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case K.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return A`<slot></slot>`}};tl.styles=[...Q.styles,...my],h([Xt({selector:"mdc-menusection",flatten:!0})],tl.prototype,"menusections",2);var Qp=tl;Qp.register(Jn);var O0=Qp;var el=$.constructTagName("menuitem"),rl={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Jp={POSITIVE:"positive",NEGATIVE:"negative"},tm={LEADING:"leading",TRAILING:"trailing"};var R0=z`
4874
+ `,my=[M0];var tl=class extends Ot(Lt(Q)){constructor(){super();this.depthManager=new yo(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let i=this.menuItems.filter(d=>d!==e);this.getVisibleSubMenusOfItems(i).forEach(d=>{d.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=et.MENUBAR,this.ariaOrientation=py.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var d,f;let t=(d=this.shadowRoot)==null?void 0:d.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],i=[],a=v=>{v.role===et.MENUITEM&&!v.hasAttribute("disabled")?i.push(v):v.tagName.toLowerCase()===Zi&&Array.from(v.children).forEach(a)};return e.forEach(a),i}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{var f;let a=i.getAttribute("id");if(!a)return;let d=(f=document.querySelector)==null?void 0:f.call(document,`${ae}[triggerid="${a}"]`);d&&d.visible&&e.push(d)}),e}getAllPopovers(){var a,d;if(!this.menuItems.length)return[];let t=(d=(a=this.menuItems[0])==null?void 0:a.closest(Lo))!=null?d:this;if(!t)return[];let e=[],i=f=>{f.querySelectorAll(`${ae}`).forEach(v=>{e.push(v)}),f.querySelectorAll("slot").forEach(v=>{v.assignedElements({flatten:!0}).forEach(i)})};return i(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,i)=>{let a=i===0?"0":"-1";e==null||e.setAttribute("tabindex",a)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(a=>a.getAttribute("id")===t))return;let i=this.getSubmenu(t);i&&i.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,i){var a,d;i<0||e<0||(e!==i&&((a=t[e])==null||a.setAttribute("tabindex","-1"),(d=t[i])==null||d.setAttribute("tabindex","0")),t[i]&&(t[i].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,i=!1){var v;let{length:a}=this.menuItems;if(a===0)return;let d=t;if(this.getKeyboardNavMode()===re.DEFAULT?d=e==="prev"?(t-1+a)%a:(t+1)%a:d=e==="prev"?Math.max(0,t-1):Math.min(t+1,a-1),d!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,d),i)){let S=(v=this.menuItems[d])==null?void 0:v.getAttribute("id");this.getSubmenu(S)&&!this.menuItems[d].hasAttribute("soft-disabled")&&(this.showSubmenu(S),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var d;let e=t.parentElement;if(!e||t.role!==et.MENUITEM)return!1;let i=e.tagName.toLowerCase(),a=(d=e.parentElement)==null?void 0:d.tagName.toLowerCase();return i===Jn||i===Lo||i===Zi&&(a===Jn||a===Lo)}isNestedMenuItem(t){return!!t.closest(ae)&&t.role===et.MENUITEM}async closeAllMenuPopovers(){let t=this.getAllPopovers(),e=this.depthManager.popUntil(i=>t.includes(i));await Promise.all(e.map(i=>i.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===et.MENUITEM){let i=t.closest(ae),a=i==null?void 0:i.getAttribute("triggerid"),d=this.menuItems.find(f=>f.getAttribute("id")===a);if(d){this.isTopLevelMenuItem(d)&&(i==null||i.hide()),await(i==null?void 0:i.updateComplete);let f=this.getCurrentIndex(d);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ae){let i=e.getAttribute("triggerid"),a=this.menuItems.find(d=>d.getAttribute("id")===i);if(a)return this.isTopLevelMenuItem(a)?this.menuItems.findIndex(d=>d===a):this.getParentMenuItemIndex(a)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case H.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case H.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case H.LEFT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(a);break}case H.RIGHT:{let a=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(a);break}case H.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case H.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return A`<slot></slot>`}};tl.styles=[...Q.styles,...my],h([Xt({selector:"mdc-menusection",flatten:!0})],tl.prototype,"menusections",2);var Qp=tl;Qp.register(Jn);var O0=Qp;var el=$.constructTagName("menuitem"),rl={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Jp={POSITIVE:"positive",NEGATIVE:"negative"},tm={LEADING:"leading",TRAILING:"trailing"};var R0=z`
4865
4875
  :host(:dir(rtl))::part(trailing-arrow),
4866
4876
  :host(:dir(rtl))::part(leading-arrow) {
4867
4877
  transform: rotate(180deg);
@@ -4870,14 +4880,14 @@
4870
4880
  :host::part(leading-arrow) {
4871
4881
  --mdc-icon-size: 1rem;
4872
4882
  }
4873
- `,uy=[R0];var Oo=class extends Xi{handleKeyDown(o){this.getActionForKeyEvent(o)===K.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===K.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=qn.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Jp.NEGATIVE?rl.LEFT:rl.RIGHT;return A`
4883
+ `,uy=[R0];var Oo=class extends Xi{handleKeyDown(o){this.getActionForKeyEvent(o)===H.ENTER&&(this.triggerClickEvent(o),o.preventDefault(),this.keyDownEventHandled())}handleKeyUp(o){this.getActionForKeyEvent(o)===H.SPACE&&(this.triggerClickEvent(o),o.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=et.MENUITEM,this.variant=qn.INSET_RECTANGLE}renderTrailingControls(){let o=this.arrowDirection===Jp.NEGATIVE?rl.LEFT:rl.RIGHT;return A`
4874
4884
  <slot
4875
4885
  name="trailing-controls"
4876
4886
  @click=${this.stopEventPropagation}
4877
4887
  @keyup=${this.stopEventPropagation}
4878
4888
  @keydown=${this.stopEventPropagation}
4879
4889
  ></slot>
4880
- ${this.arrowPosition===tm.TRAILING?A`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:H}
4890
+ ${this.arrowPosition===tm.TRAILING?A`<mdc-icon name="${o}" length-unit="rem" part="trailing-arrow"></mdc-icon>`:G}
4881
4891
  `}renderLeadingControls(){let o=this.arrowDirection===Jp.POSITIVE?rl.RIGHT:rl.LEFT;return A`
4882
4892
  <slot
4883
4893
  name="leading-controls"
@@ -4885,7 +4895,7 @@
4885
4895
  @keyup=${this.stopEventPropagation}
4886
4896
  @keydown=${this.stopEventPropagation}
4887
4897
  ></slot>
4888
- ${this.arrowPosition===tm.LEADING?A`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:H}
4898
+ ${this.arrowPosition===tm.LEADING?A`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:G}
4889
4899
  `}};Oo.styles=[...Xi.styles,...uy],h([u({type:String,reflect:!0,attribute:"arrow-position"})],Oo.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],Oo.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],Oo.prototype,"name",2),h([u({type:String,reflect:!0})],Oo.prototype,"value",2);var Pr=Oo;Pr.register(el);var D0=Pr;var fy=$.constructTagName("statictoggle"),P0={DEFAULT:"default",COMPACT:"compact"},em={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},vy={compact:.75,default:1.25},gy={SIZE:P0.DEFAULT};var F0=[z`
4890
4900
  :host {
4891
4901
  --mdc-statictoggle-width: 3rem;
@@ -5029,7 +5039,7 @@
5029
5039
  ?disabled="${this.disabled}"
5030
5040
  ?soft-disabled="${this.softDisabled}"
5031
5041
  ></mdc-staticcheckbox>
5032
- `:H}staticToggle(){return this.indicator===sl.TOGGLE?A`
5042
+ `:G}staticToggle(){return this.indicator===sl.TOGGLE?A`
5033
5043
  <mdc-statictoggle
5034
5044
  slot="trailing-controls"
5035
5045
  ?checked="${this.checked}"
@@ -5037,14 +5047,14 @@
5037
5047
  ?soft-disabled="${this.softDisabled}"
5038
5048
  size="${ol.COMPACT}"
5039
5049
  ></mdc-statictoggle>
5040
- `:H}getCheckmarkIcon(){return this.indicator===sl.CHECKMARK?A`
5050
+ `:G}getCheckmarkIcon(){return this.indicator===sl.CHECKMARK?A`
5041
5051
  <mdc-icon
5042
5052
  slot="trailing-controls"
5043
5053
  name="check-bold"
5044
5054
  part="checkmark-icon"
5045
5055
  class=${Qr({"hidden-checkmark":!this.checked})}
5046
5056
  ></mdc-icon>
5047
- `:H}render(){return A`
5057
+ `:G}render(){return A`
5048
5058
  <slot name="content">
5049
5059
  <div part="leading">
5050
5060
  ${this.staticCheckbox()}
@@ -5078,14 +5088,14 @@
5078
5088
  ?disabled="${this.disabled}"
5079
5089
  ?soft-disabled="${this.softDisabled}"
5080
5090
  ></mdc-staticradio>
5081
- `:H}renderCheckmarkIcon(){return this.indicator===Tc.CHECKMARK?A`
5091
+ `:G}renderCheckmarkIcon(){return this.indicator===Tc.CHECKMARK?A`
5082
5092
  <mdc-icon
5083
5093
  slot="trailing-controls"
5084
5094
  name="check-bold"
5085
5095
  part="checkmark-icon"
5086
5096
  class=${Qr({"hidden-checkmark":!this.checked})}
5087
5097
  ></mdc-icon>
5088
- `:H}render(){return A`
5098
+ `:G}render(){return A`
5089
5099
  <slot name="content">
5090
5100
  <div part="leading">
5091
5101
  ${this.renderStaticRadio()}
@@ -5114,7 +5124,7 @@
5114
5124
  ::slotted(mdc-divider) {
5115
5125
  margin-block: 0.25rem;
5116
5126
  }
5117
- `,Cy=[K0];var al=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},dm=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===ae};var nl=class extends dr{constructor(){super();this.placement=Zp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.closeAllMenuPopovers(),a&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e,i;(e=this.triggerElement)!=null&&e.hasAttribute("disabled")||(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||(t.composedPath().find(a=>a.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;al(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,a=this.getCurrentIndex(i);if(a===-1)return;switch(this.resetTabIndexes(a),this.getActionForKeyEvent(t,!0)){case K.HOME:{this.resetTabIndexAndSetFocus(0,a),e=!0;break}case K.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,a),e=!0;break}case K.DOWN:{let f=a+1===this.menuItems.length?0:a+1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case K.UP:{let f=a-1===-1?this.menuItems.length-1:a-1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case K.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&!i.hasAttribute("soft-disabled")&&(f.show(),e=!0);break}case K.LEFT:{dm(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,a),e=!0);break}case K.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,a),e=!0);break}case K.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case K.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case K.SPACE:{!i.matches(`${Ec}, ${yc}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,a;let e=t.getAttribute("id");return e?(a=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:a.call(i,`${ae}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(a=>a.tagName.toLowerCase()===Zi?Array.from(a.children).filter(d=>al(d)):al(a)?a:[]).flat().filter(a=>!!a&&!a.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(a=>this.getSubMenuPopoverOfTarget(a))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.visible&&e.push(a)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Zp.ORIENTATION,this.backdrop=!1,this.color=ss.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![el,ur].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&dm(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(a=>a!==t);this.getOpenSubMenusOfItems(e).forEach(a=>{a.hide()})}fireMenuItemAction(t){t.matches(el)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!al(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};nl.styles=[...dr.styles,...Cy],h([u({type:String,reflect:!0})],nl.prototype,"placement",2);var cm=nl;cm.register(ae);var W0=cm;var xc=class{constructor(o,t,e){this.variant=o,this.expanded=t,this.submenuType=e}get isDropdownSubmenuType(){return this.submenuType===Mo.DROPDOWN}hasSiblingWithTriggerId(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.tagName.toLowerCase()===ae&&d.getAttribute("triggerid")===t):!1}isDropDownParent(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.matches(`div[data-trigger="${t}"]`)):!1}getParentNavMenuItems(o){var i;if(!o)return[];let t=[],e=o;for(;e;){let a=null,d=e==null?void 0:e.closest(ae);if(d)a=this.getTriggerElement(d,"triggerid");else{let f=(i=e==null?void 0:e.parentElement)==null?void 0:i.closest("div[data-trigger]");f&&(a=this.getTriggerElement(f,"data-trigger"))}if(a&&a.tagName.toLowerCase()===ur)t.push(a),e=a;else break}return t}getTriggerElement(o,t){let e=o.getAttribute(t);return e?document.getElementById(e):null}setCurrentActiveNavMenuItem(o){var a;let t=((a=this.currentActiveNavMenuItem)==null?void 0:a.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||this.isDropdownSubmenuType&&this.expanded&&this.isDropDownParent(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(d=>{d.hasActiveChild=!0,d.setAttribute("active","")})}};xc.context=Lo;var Ac=xc;var Y0=z`
5127
+ `,Cy=[K0];var al=n=>{var t;if(!n)return!1;let o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return o===et.MENUITEM||o===et.MENUITEMCHECKBOX||o===et.MENUITEMRADIO},dm=n=>{var o;return((o=n==null?void 0:n.tagName)==null?void 0:o.toLowerCase())===ae};var nl=class extends dr{constructor(){super();this.placement=Zp.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),i=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),a=this.backdropElement?e.includes(this.backdropElement):!1;(!i||a)&&(this.closeAllMenuPopovers(),a&&t.stopPropagation())};this.togglePopoverVisible=t=>{var e,i;(e=this.triggerElement)!=null&&e.hasAttribute("disabled")||(i=this.triggerElement)!=null&&i.hasAttribute("soft-disabled")||(t.composedPath().find(a=>a.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;al(e)&&(t.stopImmediatePropagation(),e.addEventListener("destroyed",this.handleItemChangeEvent),e.addEventListener("disabled",this.handleItemChangeEvent))};this.handleItemChangeEvent=t=>{t.stopImmediatePropagation(),t.target&&t.type==="destroyed"&&(t.target.removeEventListener("destroyed",this.handleItemChangeEvent),t.target.removeEventListener("disabled",this.handleItemChangeEvent)),this.resetMenuNavigation()};this.resetMenuNavigation=()=>{this.collectMenuItems(),this.menuItems.find(e=>e.getAttribute("tabindex")==="0")||this.resetTabIndexes(0)};this.handleKeyDown=t=>{let e=!1;this.collectMenuItems();let i=t.target,a=this.getCurrentIndex(i);if(a===-1)return;switch(this.resetTabIndexes(a),this.getActionForKeyEvent(t,!0)){case H.HOME:{this.resetTabIndexAndSetFocus(0,a),e=!0;break}case H.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,a),e=!0;break}case H.DOWN:{let f=a+1===this.menuItems.length?0:a+1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case H.UP:{let f=a-1===-1?this.menuItems.length-1:a-1;this.resetTabIndexAndSetFocus(f,a),e=!0;break}case H.RIGHT:{let f=this.getSubMenuPopoverOfTarget(i);f&&!i.hasAttribute("soft-disabled")&&(f.show(),e=!0);break}case H.LEFT:{dm(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,a),e=!0);break}case H.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,a),e=!0);break}case H.ENTER:{!this.getSubMenuPopoverOfTarget(i)&&!i.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0);break}case H.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,i=t.target;switch(this.getActionForKeyEvent(t)){case H.SPACE:{!i.matches(`${Ec}, ${yc}`)&&!i.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(i)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(i),e=!0));break}default:break}e&&(t.stopPropagation(),t.preventDefault())};this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("keyup",this.handleKeyUp),this.addEventListener("created",this.handleItemCreation)}getSubMenuPopoverOfTarget(t){var i,a;let e=t.getAttribute("id");return e?(a=(i=this.parentElement)==null?void 0:i.querySelector)==null?void 0:a.call(i,`${ae}[triggerid="${e}"]`):null}collectMenuItems(){var i;let t=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(a=>a.tagName.toLowerCase()===Zi?Array.from(a.children).filter(d=>al(d)):al(a)?a:[]).flat().filter(a=>!!a&&!a.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(a=>this.getSubMenuPopoverOfTarget(a))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.visible&&e.push(a)}),e}connectedCallback(){super.connectedCallback(),this.role=et.MENU,this.ariaOrientation=Zp.ORIENTATION,this.backdrop=!1,this.color=ss.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![el,ur].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(i=>{let a=this.getSubMenuPopoverOfTarget(i);a&&a.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus({preventScroll:!0}),this.menuItems[t].scrollIntoView({block:"nearest"}))}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&dm(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(a=>a!==t);this.getOpenSubMenusOfItems(e).forEach(a=>{a.hide()})}fireMenuItemAction(t){t.matches(el)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!al(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};nl.styles=[...dr.styles,...Cy],h([u({type:String,reflect:!0})],nl.prototype,"placement",2);var cm=nl;cm.register(ae);var W0=cm;var xc=class{constructor(o,t,e){this.variant=o,this.expanded=t,this.submenuType=e}get isDropdownSubmenuType(){return this.submenuType===Mo.DROPDOWN}hasSiblingWithTriggerId(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.tagName.toLowerCase()===ae&&d.getAttribute("triggerid")===t):!1}isDropDownParent(o){var i,a;let t=o==null?void 0:o.getAttribute("id");return t?Array.from((a=(i=o==null?void 0:o.parentElement)==null?void 0:i.children)!=null?a:[]).some(d=>d!==o&&d.matches(`div[data-trigger="${t}"]`)):!1}getParentNavMenuItems(o){var i;if(!o)return[];let t=[],e=o;for(;e;){let a=null,d=e==null?void 0:e.closest(ae);if(d)a=this.getTriggerElement(d,"triggerid");else{let f=(i=e==null?void 0:e.parentElement)==null?void 0:i.closest("div[data-trigger]");f&&(a=this.getTriggerElement(f,"data-trigger"))}if(a&&a.tagName.toLowerCase()===ur)t.push(a),e=a;else break}return t}getTriggerElement(o,t){let e=o.getAttribute(t);return e?document.getElementById(e):null}setCurrentActiveNavMenuItem(o){var a;let t=((a=this.currentActiveNavMenuItem)==null?void 0:a.navId)===(o==null?void 0:o.navId),e=(o==null?void 0:o.cannotActivate)||this.hasSiblingWithTriggerId(o)||this.isDropdownSubmenuType&&this.expanded&&this.isDropDownParent(o)||(o==null?void 0:o.softDisabled);if(t||e||(this.currentActiveNavMenuItem&&(this.currentActiveNavMenuItem.removeAttribute("aria-current"),this.currentActiveNavMenuItem.removeAttribute("active"),this.getParentNavMenuItems(this.currentActiveNavMenuItem).forEach(f=>{f.hasActiveChild=!1,f.removeAttribute("active")})),!o))return;this.currentActiveNavMenuItem=o,o!=null&&o.disableAriaCurrent||o.setAttribute("aria-current","page"),o.setAttribute("active",""),this.getParentNavMenuItems(o).forEach(d=>{d.hasActiveChild=!0,d.setAttribute("active","")})}};xc.context=Lo;var Ac=xc;var Y0=z`
5118
5128
  :host {
5119
5129
  --mdc-sidenavigation-expanded-width: 14.5rem;
5120
5130
  --mdc-sidenavigation-expanded-left-padding: 1rem;
@@ -5252,7 +5262,7 @@
5252
5262
  :host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
5253
5263
  opacity: 1;
5254
5264
  }
5255
- `,_y=[Y0];var hm=class extends pe{},wy=hm;var Ai=class extends Lt(wy){constructor(){super({context:Ac.context,initialValue:new Ac(xa.VARIANT,!0,xa.SUBMENU_TYPE)});this.variant=xa.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.submenuType=xa.SUBMENU_TYPE;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===mr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this)),this.addEventListener("keydown",this.handleDropdownKeyDown.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return Ac.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case mr.FIXED_EXPANDED:this.expanded=!0;break;case mr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded")||t.has("submenuType"))&&this.updateContext(),(t.has("expanded")||t.has("submenuType"))&&((!this.expanded||this.submenuType!==Mo.DROPDOWN)&&this.closeAllDropdowns(),this.submenuType===Mo.DROPDOWN?this.expanded?this.convertFlyoutsToDropdowns():this.convertDropdownsToFlyouts():this.convertFlyoutsToDropdowns())}firstUpdated(t){super.firstUpdated(t),(this.variant===mr.FLEXIBLE||this.variant===mr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext()),this.hideAllDropdownContainers(),this.submenuType===Mo.DROPDOWN&&!this.expanded&&this.convertDropdownsToFlyouts()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.submenuType!==this.submenuType)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.submenuType=this.submenuType,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${ur}:not([disabled])`))}closeAllDropdowns(){this.navMenuItems.filter(t=>this.context.value.isDropDownParent(t)).forEach(t=>t.closeDropdown()),this.hideAllDropdownContainers()}hideAllDropdownContainers(){this.querySelectorAll("div[data-trigger]").forEach(e=>{Object.assign(e.style,{display:"none",flexDirection:"column",gap:"0.25rem"})})}convertDropdownsToFlyouts(){this.querySelectorAll("div[data-trigger]").forEach(e=>{var f;let i=e.getAttribute("data-trigger");if(!i||((f=e.parentElement)==null?void 0:f.querySelector(`${ae}[triggerid="${CSS.escape(i)}"][data-dynamic-popover]`)))return;let d=document.createElement(ae);for(d.setAttribute("triggerid",i),d.setAttribute("data-dynamic-popover",""),d.setAttribute("placement","right-start");e.firstChild;)d.appendChild(e.firstChild);e.after(d),Object.assign(e.style,{display:"none"})})}convertFlyoutsToDropdowns(){this.querySelectorAll(`${ae}[data-dynamic-popover]`).forEach(e=>{let i=e.getAttribute("triggerid");if(!i)return;let a=this.querySelector(`div[data-trigger="${CSS.escape(i)}"]`);if(a){for(;e.firstChild;)a.appendChild(e.firstChild);e.remove()}})}handleDropdownKeyDown(t){var J,j;if(this.submenuType!==Mo.DROPDOWN||!this.expanded)return;let e=t.target;if(!(e.tagName.toLowerCase()===ur))return;let a=e,d=this.getActionForKeyEvent(t);if(d===K.ESCAPE){let Z=e.closest("div[data-trigger]");if(!Z)return;let rt=Z.getAttribute("data-trigger");if(!rt)return;let st=this.querySelector(`${ur}#${CSS.escape(rt)}`);st&&(st.closeDropdown(),st.focus(),t.stopPropagation());return}let f=this.context.value,v=a.hasAttribute("in-dropdown-container"),S=a.getAttribute("aria-expanded")==="true",R=Z=>{var rt,st;return(st=(rt=Z.parentElement)==null?void 0:rt.querySelector(`div[data-trigger="${Z.id}"]`))!=null?st:null},U=Z=>Z==null?void 0:Z.querySelector(`${ur}:not([disabled])`);if(v){let Z=e.closest("div[data-trigger]");if(!Z)return;let rt=Array.from(Z.querySelectorAll(`${ur}:not([disabled])`)),st=rt.indexOf(a);if(st===-1)return;switch(d){case K.DOWN:{let ht=st+1<rt.length?st+1:0;rt[ht].focus(),t.preventDefault();break}case K.UP:{let ht=st>0?st-1:rt.length-1;rt[ht].focus(),t.preventDefault();break}case K.RIGHT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt!==-1&&yt+1<ht.length){let It=ht[yt+1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(J=U(Rt))==null||J.focus()}}break}case K.LEFT:{let ht=this.navMenuItems.filter(It=>!It.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(It=>It.id===bt);if(yt>0){let It=ht[yt-1];if(It.focus(),f.isDropDownParent(It)){It.openDropdown();let Rt=R(It);(j=U(Rt))==null||j.focus()}}break}default:t.preventDefault()}}if(d===K.RIGHT){let Z=R(a);if(Z){S||a.openDropdown();let rt=U(Z);rt&&(rt.focus(),t.preventDefault())}}}setVariant(t){this.setAttribute("variant",Object.values(mr).includes(t)?t:xa.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===mr.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){this.getActionForKeyEvent(t)===K.SPACE&&t.preventDefault()}render(){var t;return this.variant===mr.HIDDEN?A``:A`
5265
+ `,_y=[Y0];var hm=class extends pe{},wy=hm;var Ai=class extends Lt(wy){constructor(){super({context:Ac.context,initialValue:new Ac(xa.VARIANT,!0,xa.SUBMENU_TYPE)});this.variant=xa.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.submenuType=xa.SUBMENU_TYPE;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===mr.FLEXIBLE_ON_HOVER&&(this.addEventListener("mouseenter",this.handleMouseEnter),this.addEventListener("mouseleave",this.handleMouseLeave),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut))};this.removeFlexibleOnHoverListeners=()=>{this.removeEventListener("mouseenter",this.handleMouseEnter),this.removeEventListener("mouseleave",this.handleMouseLeave),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut)};this.handleNestedNavMenuItemActiveChange=t=>{var e;if((e=this.context)!=null&&e.value){let i=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(i)}};this.findNav=(t,e)=>t.find(i=>i.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this)),this.addEventListener("keydown",this.handleDropdownKeyDown.bind(this))}connectedCallback(){super.connectedCallback(),this.role=et.NAVIGATION,this.setupFlexibleOnHoverListeners()}disconnectedCallback(){super.disconnectedCallback(),this.removeFlexibleOnHoverListeners()}showGrabberButton(){this.toggleAttribute("data-grabber-visible",!0)}hideGrabberButton(){this.toggleAttribute("data-grabber-visible",!1)}static get Context(){return Ac.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case mr.FIXED_EXPANDED:this.expanded=!0;break;case mr.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded")||t.has("submenuType"))&&this.updateContext(),(t.has("expanded")||t.has("submenuType"))&&((!this.expanded||this.submenuType!==Mo.DROPDOWN)&&this.closeAllDropdowns(),this.submenuType===Mo.DROPDOWN?this.expanded?this.convertFlyoutsToDropdowns():this.convertDropdownsToFlyouts():this.convertFlyoutsToDropdowns())}firstUpdated(t){super.firstUpdated(t),(this.variant===mr.FLEXIBLE||this.variant===mr.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext()),this.hideAllDropdownContainers(),this.submenuType===Mo.DROPDOWN&&!this.expanded&&this.convertDropdownsToFlyouts()}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded||this.context.value.submenuType!==this.submenuType)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.value.submenuType=this.submenuType,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${ur}:not([disabled])`))}closeAllDropdowns(){this.navMenuItems.filter(t=>this.context.value.isDropDownParent(t)).forEach(t=>t.closeDropdown()),this.hideAllDropdownContainers()}hideAllDropdownContainers(){this.querySelectorAll("div[data-trigger]").forEach(e=>{Object.assign(e.style,{display:"none",flexDirection:"column",gap:"0.25rem"})})}convertDropdownsToFlyouts(){this.querySelectorAll("div[data-trigger]").forEach(e=>{var f;let i=e.getAttribute("data-trigger");if(!i||((f=e.parentElement)==null?void 0:f.querySelector(`${ae}[triggerid="${CSS.escape(i)}"][data-dynamic-popover]`)))return;let d=document.createElement(ae);for(d.setAttribute("triggerid",i),d.setAttribute("data-dynamic-popover",""),d.setAttribute("placement","right-start");e.firstChild;)d.appendChild(e.firstChild);e.after(d),Object.assign(e.style,{display:"none"})})}convertFlyoutsToDropdowns(){this.querySelectorAll(`${ae}[data-dynamic-popover]`).forEach(e=>{let i=e.getAttribute("triggerid");if(!i)return;let a=this.querySelector(`div[data-trigger="${CSS.escape(i)}"]`);if(a){for(;e.firstChild;)a.appendChild(e.firstChild);e.remove()}})}handleDropdownKeyDown(t){var J,j;if(this.submenuType!==Mo.DROPDOWN||!this.expanded)return;let e=t.target;if(!(e.tagName.toLowerCase()===ur))return;let a=e,d=this.getActionForKeyEvent(t);if(d===H.ESCAPE){let Z=e.closest("div[data-trigger]");if(!Z)return;let rt=Z.getAttribute("data-trigger");if(!rt)return;let st=this.querySelector(`${ur}#${CSS.escape(rt)}`);st&&(st.closeDropdown(),st.focus(),t.stopPropagation());return}let f=this.context.value,v=a.hasAttribute("in-dropdown-container"),S=a.getAttribute("aria-expanded")==="true",R=Z=>{var rt,st;return(st=(rt=Z.parentElement)==null?void 0:rt.querySelector(`div[data-trigger="${Z.id}"]`))!=null?st:null},U=Z=>Z==null?void 0:Z.querySelector(`${ur}:not([disabled])`);if(v){let Z=e.closest("div[data-trigger]");if(!Z)return;let rt=Array.from(Z.querySelectorAll(`${ur}:not([disabled])`)),st=rt.indexOf(a);if(st===-1)return;switch(d){case H.DOWN:{let ht=st+1<rt.length?st+1:0;rt[ht].focus(),t.preventDefault();break}case H.UP:{let ht=st>0?st-1:rt.length-1;rt[ht].focus(),t.preventDefault();break}case H.RIGHT:{let ht=this.navMenuItems.filter(Ct=>!Ct.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(Ct=>Ct.id===bt);if(yt!==-1&&yt+1<ht.length){let Ct=ht[yt+1];if(Ct.focus(),f.isDropDownParent(Ct)){Ct.openDropdown();let Rt=R(Ct);(J=U(Rt))==null||J.focus()}}break}case H.LEFT:{let ht=this.navMenuItems.filter(Ct=>!Ct.hasAttribute("in-dropdown-container")),bt=Z.getAttribute("data-trigger"),yt=ht.findIndex(Ct=>Ct.id===bt);if(yt>0){let Ct=ht[yt-1];if(Ct.focus(),f.isDropDownParent(Ct)){Ct.openDropdown();let Rt=R(Ct);(j=U(Rt))==null||j.focus()}}break}default:t.preventDefault()}}if(d===H.RIGHT){let Z=R(a);if(Z){S||a.openDropdown();let rt=U(Z);rt&&(rt.focus(),t.preventDefault())}}}setVariant(t){this.setAttribute("variant",Object.values(mr).includes(t)?t:xa.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===mr.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){this.getActionForKeyEvent(t)===H.SPACE&&t.preventDefault()}render(){var t;return this.variant===mr.HIDDEN?A``:A`
5256
5266
  <div part="side-navigation-container" id="side-nav-container">
5257
5267
  <div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
5258
5268
  <slot name="scrollable-section">
@@ -5261,7 +5271,7 @@
5261
5271
  </mdc-menubar>
5262
5272
  </slot>
5263
5273
  </div>
5264
- ${this.hideFixedSectionDivider?H:A`<mdc-divider variant="gradient" part="separator"></mdc-divider>`}
5274
+ ${this.hideFixedSectionDivider?G:A`<mdc-divider variant="gradient" part="separator"></mdc-divider>`}
5265
5275
  <div part="fixed-section">
5266
5276
  <slot name="fixed-section">
5267
5277
  <mdc-menubar part="fixed-menubar">
@@ -5276,9 +5286,9 @@
5276
5286
  tagname=${pt.SPAN}
5277
5287
  part="footer-text"
5278
5288
  >${this.footerText}</mdc-text
5279
- >`:H}
5289
+ >`:G}
5280
5290
  </div>
5281
- `:H}
5291
+ `:G}
5282
5292
  </div>
5283
5293
  </div>
5284
5294
  ${this.variant===mr.FLEXIBLE||this.variant===mr.FLEXIBLE_ON_HOVER?A`<mdc-divider
@@ -5295,7 +5305,7 @@
5295
5305
  aria-expanded="${!!this.expanded}"
5296
5306
  aria-controls="side-nav-container"
5297
5307
  ></mdc-button>
5298
- </mdc-divider>`:H}
5308
+ </mdc-divider>`:G}
5299
5309
  `}};Ai.styles=[...Q.styles,..._y],h([u({type:String,reflect:!0})],Ai.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],Ai.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],Ai.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Ai.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Ai.prototype,"hideFixedSectionDivider",2),h([u({type:String,reflect:!0,attribute:"submenu-type"})],Ai.prototype,"submenuType",2);var Ss=Ai;var j0=z`
5300
5310
  :host {
5301
5311
  --mdc-menusection-divider-margin-block: 0.25rem;
@@ -5326,7 +5336,7 @@
5326
5336
  ${this.hideHeaderText?null:this.renderHeader()}
5327
5337
  <slot part="container"></slot>
5328
5338
  ${this.showDivider?A`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
5329
- `}};Si.styles=[...Q.styles,...ky],h([u({type:String,reflect:!0,attribute:"aria-label"})],Si.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Si.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Si.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Si.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],Si.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Si.prototype,"hideHeaderText",2);var pm=Si;pm.register(Zi);var q0=pm;var X0=[Tt,z`
5339
+ `}};Si.styles=[...Q.styles,...ky],h([u({type:String,reflect:!0,attribute:"aria-label"})],Si.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Si.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Si.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],Si.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],Si.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Si.prototype,"hideHeaderText",2);var pm=Si;pm.register(Zi);var q0=pm;var X0=[xt,z`
5330
5340
  :host {
5331
5341
  --mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
5332
5342
  --mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
@@ -5528,7 +5538,7 @@
5528
5538
  background-color: ButtonText;
5529
5539
  }
5530
5540
  }
5531
- `,...xt()],Ny=X0;var le=class extends Pr{constructor(){super();this.cannotActivate=lm.CANNOT_ACTIVATE;this.maxCounter=lm.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.dropdownOpen=!1;this.sideNavigationContext=me.consume({host:this,context:Ss.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};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()),this.toggleAttribute("in-dropdown-container",this.isInsideDropdownContainer())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var i;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild")||t.has("dropdownOpen"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(i=this.sideNavigationContext)==null?void 0:i.value;e&&(this.showLabel=this.isNested()||this.isInsideDropdownContainer()?!0:e.expanded,!e.expanded&&this.dropdownOpen&&this.closeDropdown(),!e.isDropdownSubmenuType&&this.dropdownOpen&&this.closeDropdown(),e.isDropdownSubmenuType&&this.hasActiveChild&&e.isDropDownParent(this)&&(e.expanded&&this.dropdownOpen?(this.removeAttribute("active"),this.active=!1):(this.setAttribute("active",""),this.active=!0)))}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.disabled||this.dropdownOpen||this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${ze()}`);let t=document.createElement(il);t.id=`mdc-navmenuitem-tooltip-${ze()}`,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",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${il}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ae)return!0;t=t.parentElement}return!1}isInsideDropdownContainer(){let t=this.parentElement;for(;t;){if(t.matches("div[data-trigger]"))return!0;t=t.parentElement}return!1}handleClickEvent(){var e;if(this.disabled||this.cannotActivate||this.softDisabled)return;let t=(e=this.sideNavigationContext)==null?void 0:e.value;if(t!=null&&t.isDropdownSubmenuType&&(t!=null&&t.expanded)&&(t!=null&&t.isDropDownParent(this))){if(this.toggleDropdown(),this.dropdownOpen){let i=this.getDropdownContainer(),a=i==null?void 0:i.querySelector(ur);a==null||a.focus()}return}this.emitNavMenuItemActiveChange(this.active)}toggleDropdown(){let t=this.getDropdownContainer();t&&(this.dropdownOpen=!this.dropdownOpen,t.style.display=this.dropdownOpen?"flex":"none",this.dropdownOpen?this.setAttribute("aria-expanded","true"):this.removeAttribute("aria-expanded"))}openDropdown(){if(this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="flex"),this.dropdownOpen=!0,this.setAttribute("aria-expanded","true")}closeDropdown(){if(!this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="none"),this.dropdownOpen=!1,this.removeAttribute("aria-expanded")}getDropdownContainer(){var t;return this.id?(t=this.parentElement)==null?void 0:t.querySelector(`div[data-trigger="${this.id}"]`):null}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${es(this.iconName)}-filled`}renderBadge(t){return Object.values(Iy).includes(this.badgeType)?A`
5541
+ `,...At()],Ny=X0;var le=class extends Pr{constructor(){super();this.cannotActivate=lm.CANNOT_ACTIVATE;this.maxCounter=lm.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.dropdownOpen=!1;this.sideNavigationContext=me.consume({host:this,context:Ss.Context});this.emitNavMenuItemActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{navId:this.navId,active:t},bubbles:!0});this.dispatchEvent(e)};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()),this.toggleAttribute("in-dropdown-container",this.isInsideDropdownContainer())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var i;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild")||t.has("dropdownOpen"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(i=this.sideNavigationContext)==null?void 0:i.value;e&&(this.showLabel=this.isNested()||this.isInsideDropdownContainer()?!0:e.expanded,!e.expanded&&this.dropdownOpen&&this.closeDropdown(),!e.isDropdownSubmenuType&&this.dropdownOpen&&this.closeDropdown(),e.isDropdownSubmenuType&&this.hasActiveChild&&e.isDropDownParent(this)&&(e.expanded&&this.dropdownOpen?(this.removeAttribute("active"),this.active=!1):(this.setAttribute("active",""),this.active=!0)))}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.disabled||this.dropdownOpen||this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${ze()}`);let t=document.createElement(il);t.id=`mdc-navmenuitem-tooltip-${ze()}`,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",((e=this.tooltipBoundaryPadding)==null?void 0:e.toString())||"0"),this.hasAttribute("slot")&&t.setAttribute("slot",this.getAttribute("slot")||""),this.after(t)}removeTooltip(){let t=document.querySelector(`${il}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ae)return!0;t=t.parentElement}return!1}isInsideDropdownContainer(){let t=this.parentElement;for(;t;){if(t.matches("div[data-trigger]"))return!0;t=t.parentElement}return!1}handleClickEvent(){var e;if(this.disabled||this.cannotActivate||this.softDisabled)return;let t=(e=this.sideNavigationContext)==null?void 0:e.value;if(t!=null&&t.isDropdownSubmenuType&&(t!=null&&t.expanded)&&(t!=null&&t.isDropDownParent(this))){if(this.toggleDropdown(),this.dropdownOpen){let i=this.getDropdownContainer(),a=i==null?void 0:i.querySelector(ur);a==null||a.focus()}return}this.emitNavMenuItemActiveChange(this.active)}toggleDropdown(){let t=this.getDropdownContainer();t&&(this.dropdownOpen=!this.dropdownOpen,t.style.display=this.dropdownOpen?"flex":"none",this.dropdownOpen?this.setAttribute("aria-expanded","true"):this.removeAttribute("aria-expanded"))}openDropdown(){if(this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="flex"),this.dropdownOpen=!0,this.setAttribute("aria-expanded","true")}closeDropdown(){if(!this.dropdownOpen)return;let t=this.getDropdownContainer();t&&(t.style.display="none"),this.dropdownOpen=!1,this.removeAttribute("aria-expanded")}getDropdownContainer(){var t;return this.id?(t=this.parentElement)==null?void 0:t.querySelector(`div[data-trigger="${this.id}"]`):null}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${es(this.iconName)}-filled`}renderBadge(t){return Object.values(Iy).includes(this.badgeType)?A`
5532
5542
  <mdc-badge
5533
5543
  part="${t?"":"badge"}"
5534
5544
  type="${tt(this.badgeType)}"
@@ -5537,21 +5547,21 @@
5537
5547
  aria-hidden="true"
5538
5548
  >
5539
5549
  </mdc-badge>
5540
- `:H}render(){var d;let t=(d=this.sideNavigationContext)==null?void 0:d.value,e=(t==null?void 0:t.isDropdownSubmenuType)&&(t==null?void 0:t.expanded),i=t==null?void 0:t.isDropDownParent(this),a=t==null?void 0:t.hasSiblingWithTriggerId(this);return A`
5550
+ `:G}render(){var d;let t=(d=this.sideNavigationContext)==null?void 0:d.value,e=(t==null?void 0:t.isDropdownSubmenuType)&&(t==null?void 0:t.expanded),i=t==null?void 0:t.isDropDownParent(this),a=t==null?void 0:t.hasSiblingWithTriggerId(this);return A`
5541
5551
  <div part="icon-container">
5542
5552
  ${this.iconName?A`<mdc-icon
5543
5553
  name="${this.iconName}"
5544
5554
  size="1.5"
5545
5555
  length-unit="rem"
5546
5556
  part="regular-icon"
5547
- ></mdc-icon>`:H}
5557
+ ></mdc-icon>`:G}
5548
5558
  ${!this.cannotActivate&&this.iconName?A`<mdc-icon
5549
5559
  name="${this.getFilledIconName()}"
5550
5560
  size="1.5"
5551
5561
  length-unit="rem"
5552
5562
  part="filled-icon"
5553
- ></mdc-icon>`:H}
5554
- ${this.showLabel?H:this.renderBadge(this.showLabel)}
5563
+ ></mdc-icon>`:G}
5564
+ ${this.showLabel?G:this.renderBadge(this.showLabel)}
5555
5565
  </div>
5556
5566
  ${this.showLabel?A`
5557
5567
  <mdc-text
@@ -5562,15 +5572,15 @@
5562
5572
  ${this.label}
5563
5573
  </mdc-text>
5564
5574
  ${this.renderBadge(this.showLabel)}
5565
- `:H}
5575
+ `:G}
5566
5576
  ${e&&i?A` <mdc-icon
5567
5577
  name=${nm.DOWN_ARROW}
5568
5578
  length-unit="rem"
5569
5579
  part="trailing-arrow-dropdown"
5570
5580
  class="${this.dropdownOpen?"arrow-rotated":""}"
5571
5581
  >
5572
- </mdc-icon>`:H}
5573
- ${a?A` <mdc-icon name=${nm.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:H}
5582
+ </mdc-icon>`:G}
5583
+ ${a?A` <mdc-icon name=${nm.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:G}
5574
5584
  `}};le.styles=[...Pr.styles,...Ny],h([u({type:Boolean,reflect:!0})],le.prototype,"active",2),h([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],le.prototype,"cannotActivate",2),h([u({type:String,attribute:"icon-name",reflect:!0})],le.prototype,"iconName",2),h([u({type:String,reflect:!0,attribute:"badge-type"})],le.prototype,"badgeType",2),h([u({type:Number,reflect:!0})],le.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],le.prototype,"maxCounter",2),h([u({type:String,reflect:!0,attribute:"nav-id"})],le.prototype,"navId",2),h([u({type:Boolean,reflect:!0,attribute:"show-label"})],le.prototype,"showLabel",2),h([u({type:String,attribute:"aria-label"})],le.prototype,"ariaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],le.prototype,"disableAriaCurrent",2),h([u({type:String,reflect:!0,attribute:"tooltip-text"})],le.prototype,"tooltipText",2),h([u({type:String,reflect:!0,attribute:"tooltip-placement"})],le.prototype,"tooltipPlacement",2),h([u({type:String,reflect:!0,attribute:"tooltip-type"})],le.prototype,"tooltipType",2),h([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],le.prototype,"tooltipAppearance",2),h([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],le.prototype,"tooltipBoundaryPadding",2),h([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],le.prototype,"isActiveParentTooltipText",2),h([lt()],le.prototype,"hasActiveChild",2),h([lt()],le.prototype,"dropdownOpen",2);var mm=le;mm.register(ur);var Z0=mm;function um(n,o,t){let e=n;return o!==void 0&&(e=Math.max(e,o)),t!==void 0&&(e=Math.min(e,t)),e}var Ly=$.constructTagName("numberinput"),fm={NONE:"none",AUTO:"auto"},fr={STEP:1,STEP_ANY:"any",CLAMP:fm.NONE,INCREMENT_ICON:"plus-bold",DECREMENT_ICON:"minus-bold",SPINNER_BUTTON_VARIANT:Ft.TERTIARY,SPINNER_BUTTON_SIZE:ar[20]};var Q0=[z`
5575
5585
  /* Hide native number spin buttons; the custom spinner buttons replace them. The input is
5576
5586
  fallback content inside this shadow root, so it is targeted directly rather than
@@ -5593,7 +5603,7 @@
5593
5603
  align-items: center;
5594
5604
  gap: 0.375rem;
5595
5605
  }
5596
- `],My=Q0;var $r=class extends pr{constructor(){super(...arguments);this.inputmode=jb.NUMERIC;this.step=fr.STEP;this.hideSpinnerButtons=!1;this.incrementAriaLabel="";this.decrementAriaLabel="";this.clamp=fr.CLAMP;this.handleBeforeInput=t=>{var i,a,d;let e=(d=(a=t.data)!=null?a:(i=t.dataTransfer)==null?void 0:i.getData("text"))!=null?d:"";e!==""&&(/^[\d.-]*$/.test(e)||t.preventDefault())};this.handleIncrement=()=>this.stepBy("increment");this.handleDecrement=()=>this.stepBy("decrement")}firstUpdated(t){var e;super.firstUpdated(t),this.syncNumberConstraints(),(e=this.inputElement)==null||e.addEventListener("beforeinput",this.handleBeforeInput)}updated(t){super.updated(t),(t.has("min")||t.has("max")||t.has("step"))&&this.syncNumberConstraints()}syncNumberConstraints(){if(!this.inputElement)return;let t=this.inputElement;this.min===void 0?t.removeAttribute("min"):t.min=String(this.min),this.max===void 0?t.removeAttribute("max"):t.max=String(this.max),t.step=this.step===fr.STEP_ANY?fr.STEP_ANY:String(this.step),this.setInputValidity()}handleKeyDown(t){let e=t.key===wt.ARROW_UP||t.key===wt.ARROW_DOWN;if(this.step===fr.STEP_ANY&&e&&!this.disabled&&!this.readonly){t.preventDefault(),this.stepBy(t.key===wt.ARROW_UP?"increment":"decrement");return}super.handleKeyDown(t)}onChange(t){this.clamp===fm.AUTO&&this.clampInputToRange()&&this.inputElement.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),super.onChange(t)}clampInputToRange(){let t=this.inputElement,{valueAsNumber:e}=t;if(t.value===""||Number.isNaN(e))return!1;let i=um(e,this.min,this.max);return i!==e?(t.valueAsNumber=i,!0):!1}stepBy(t){var a;let e=this.inputElement,i=e.value;if(this.step===fr.STEP_ANY){let d=t==="increment"?1:-1,f=Number.isNaN(e.valueAsNumber)?0:e.valueAsNumber,v=((a=String(f).split(".")[1])!=null?a:"").length,S=Number((f+d).toFixed(v));e.valueAsNumber=um(S,this.min,this.max)}else t==="increment"?e.stepUp():e.stepDown();e.value!==i&&this.syncValueFromInputElement()}syncValueFromInputElement(){this.inputElement.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}renderSpinnerButton(t){let e=t==="increment";return A`
5606
+ `],My=Q0;var $r=class extends pr{constructor(){super(...arguments);this.inputmode=jb.NUMERIC;this.step=fr.STEP;this.hideSpinnerButtons=!1;this.incrementAriaLabel="";this.decrementAriaLabel="";this.clamp=fr.CLAMP;this.handleBeforeInput=t=>{var i,a,d;let e=(d=(a=t.data)!=null?a:(i=t.dataTransfer)==null?void 0:i.getData("text"))!=null?d:"";e!==""&&(/^[\d.-]*$/.test(e)||t.preventDefault())};this.handleIncrement=()=>this.stepBy("increment");this.handleDecrement=()=>this.stepBy("decrement")}firstUpdated(t){var e;super.firstUpdated(t),this.syncNumberConstraints(),(e=this.inputElement)==null||e.addEventListener("beforeinput",this.handleBeforeInput)}updated(t){super.updated(t),(t.has("min")||t.has("max")||t.has("step"))&&this.syncNumberConstraints()}syncNumberConstraints(){if(!this.inputElement)return;let t=this.inputElement;this.min===void 0?t.removeAttribute("min"):t.min=String(this.min),this.max===void 0?t.removeAttribute("max"):t.max=String(this.max),t.step=this.step===fr.STEP_ANY?fr.STEP_ANY:String(this.step),this.setInputValidity()}handleKeyDown(t){let e=t.key===Tt.ARROW_UP||t.key===Tt.ARROW_DOWN;if(this.softDisabled){e&&t.preventDefault(),super.handleKeyDown(t);return}if(this.step===fr.STEP_ANY&&e&&!this.disabled&&!this.readonly){t.preventDefault(),this.stepBy(t.key===Tt.ARROW_UP?"increment":"decrement");return}super.handleKeyDown(t)}onChange(t){this.preventSoftDisabledChange(t,this.value)||(this.clamp===fm.AUTO&&this.clampInputToRange()&&this.inputElement.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),super.onChange(t))}clampInputToRange(){let t=this.inputElement,{valueAsNumber:e}=t;if(t.value===""||Number.isNaN(e))return!1;let i=um(e,this.min,this.max);return i!==e?(t.valueAsNumber=i,!0):!1}stepBy(t){var a;if(this.disabled||this.softDisabled||this.readonly)return;let e=this.inputElement,i=e.value;if(this.step===fr.STEP_ANY){let d=t==="increment"?1:-1,f=Number.isNaN(e.valueAsNumber)?0:e.valueAsNumber,v=((a=String(f).split(".")[1])!=null?a:"").length,S=Number((f+d).toFixed(v));e.valueAsNumber=um(S,this.min,this.max)}else t==="increment"?e.stepUp():e.stepDown();e.value!==i&&this.syncValueFromInputElement()}syncValueFromInputElement(){this.inputElement.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}renderSpinnerButton(t){let e=t==="increment";return A`
5597
5607
  <mdc-button
5598
5608
  part="spinner-button"
5599
5609
  class="own-focus-ring"
@@ -5602,6 +5612,7 @@
5602
5612
  prefix-icon="${e?fr.INCREMENT_ICON:fr.DECREMENT_ICON}"
5603
5613
  aria-label="${e?this.incrementAriaLabel:this.decrementAriaLabel}"
5604
5614
  ?disabled=${this.disabled||this.readonly}
5615
+ ?soft-disabled=${this.softDisabled}
5605
5616
  @click=${e?this.handleIncrement:this.handleDecrement}
5606
5617
  tabindex="-1"
5607
5618
  ></mdc-button>
@@ -5633,7 +5644,7 @@
5633
5644
  tagname="${pt.SPAN}"
5634
5645
  >${this.label}</mdc-text
5635
5646
  >
5636
- `:H;return A`
5647
+ `:G;return A`
5637
5648
  <div
5638
5649
  role="${et.GROUP}"
5639
5650
  aria-labelledby="${this.label?gm:""}"
@@ -5671,10 +5682,10 @@
5671
5682
  :host([data-hidden]) {
5672
5683
  display: none;
5673
5684
  }
5674
- `],Dy=rI;var Is=class extends ve(Xi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=qn.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return A` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Oy):H;return A`
5685
+ `],Dy=rI;var Is=class extends ve(Xi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=et.OPTION,this.variant=qn.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return A` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Oy):G;return A`
5675
5686
  <div part="leading">
5676
5687
  <slot name="leading-controls">
5677
- ${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):H}
5688
+ ${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):G}
5678
5689
  </slot>
5679
5690
  <div part="leading-text">
5680
5691
  ${this.getText("leading-text-primary-label",at.BODY_MIDSIZE_REGULAR,this.label)}
@@ -5686,18 +5697,19 @@
5686
5697
  input::-ms-reveal {
5687
5698
  display: none;
5688
5699
  }
5689
- `],Fy=oI;var Cs=class extends pr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.showPassword=!this.showPassword}renderTrailingButton(t=!1){let e=t||this.value;return e?A`
5700
+ `],Fy=oI;var Cs=class extends pr{constructor(){super(...arguments);this.showButtonAriaLabel="";this.hideButtonAriaLabel="";this.showPassword=!1}connectedCallback(){super.connectedCallback(),this.trailingButton=!0}toggleShowPassword(){this.disabled||this.softDisabled||this.readonly||(this.showPassword=!this.showPassword)}renderTrailingButton(t=!1){let e=t||this.value;return e?A`
5690
5701
  <mdc-button
5691
5702
  part="trailing-button"
5692
5703
  class="own-focus-ring ${e?"":"hidden"}"
5693
5704
  variant=${Ft.TERTIARY}
5694
5705
  ?disabled=${this.disabled||this.readonly||!e}
5706
+ ?soft-disabled=${this.softDisabled}
5695
5707
  size="${Kt.ICON_SIZE}"
5696
5708
  @click=${this.toggleShowPassword}
5697
5709
  aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
5698
5710
  prefix-icon=${this.showPassword?Em.HIDE_BOLD:Em.SHOW_BOLD}
5699
5711
  ></mdc-button>
5700
- `:H}renderInputElement(t,e){let i=this.showPassword?bi.TEXT:bi.PASSWORD;return super.renderInputElement(i,e)}};Cs.styles=[...pr.styles,...Fy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],Cs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],Cs.prototype,"hideButtonAriaLabel",2),h([lt()],Cs.prototype,"showPassword",2);var Tm=Cs;Tm.register(Py);var sI=Tm;var Ic=$.constructTagName("progressbar"),Cc={DEFAULT:"default",INLINE:"inline"},$y={VARIANT:Cc.DEFAULT,VALIDATION:te.DEFAULT};var aI=[Tt,z`
5712
+ `:G}renderInputElement(t,e){let i=this.showPassword?bi.TEXT:bi.PASSWORD;return super.renderInputElement(i,e)}};Cs.styles=[...pr.styles,...Fy],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],Cs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],Cs.prototype,"hideButtonAriaLabel",2),h([lt()],Cs.prototype,"showPassword",2);var Tm=Cs;Tm.register(Py);var sI=Tm;var Ic=$.constructTagName("progressbar"),Cc={DEFAULT:"default",INLINE:"inline"},$y={VARIANT:Cc.DEFAULT,VALIDATION:te.DEFAULT};var aI=[xt,z`
5701
5713
  :host {
5702
5714
  --mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
5703
5715
  --mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
@@ -5883,7 +5895,7 @@
5883
5895
  size="${Te.SUCCESS_ICON_SIZE}"
5884
5896
  length-unit="${Te.ICON_LENGTH_UNIT}"
5885
5897
  ></mdc-icon>
5886
- `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():A` ${this.renderProgressSpinner()}`}};_c.styles=[...Q.styles,...Gy];var Sm=_c;Sm.register(zy);var dI=Sm;var cI=[Tt,z`
5898
+ `}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():A` ${this.renderProgressSpinner()}`}};_c.styles=[...Q.styles,...Gy];var Sm=_c;Sm.register(zy);var dI=Sm;var cI=[xt,z`
5887
5899
  :host {
5888
5900
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
5889
5901
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -5944,7 +5956,7 @@
5944
5956
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
5945
5957
  }
5946
5958
  }
5947
- `,...xt(!0,"parent-to-child")],Ky=cI;var dl=class extends Ot(Lt(Ve(ve(ee)))){constructor(){super();this.checked=!1;this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.role=et.RADIO,this.shouldRenderLabel=!1,this.helpTextType=void 0,this.toggletipPlacement=void 0,this.toggletipStrategy=void 0,this.updateAriaLabel()}firstUpdated(t){this.updateTabIndex(),this.autoFocusOnMount&&(this.elementToAutoFocus=this),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){let t=this.getRootNode();return Array.from(t.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(e=>{e.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(e=>{this.onerror&&this.onerror(e)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&this.setValidity(),this.updateTabIndex()}setGroupValidity(t,e){this.updateComplete.then(()=>{t.forEach(i=>i.setComponentValidity(e))}).catch(i=>{var a;return(a=this.onerror)==null?void 0:a.call(this,i)})}setActualFormValue(){let t=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(t,!0),this.internals.setFormValue(this.value||"on");else{let e=t.some(d=>d.required),i=t.some(d=>d.checked),a=e&&!i;this.setGroupValidity(t,!a),this.internals.setFormValue(null)}}handleChange(t=!1){if(this.checked||this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(i=>{i.checked=!1}),this.checked=!0,t&&super.click(),this.emitCheckedChangeEvent()}click(){this.handleChange(!0)}updateRadio(t,e){let i=t[e];i.focus(),i.handleChange()}handleClick(){this.handleChange()}emitCheckedChangeEvent(){this.checked&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){var f;if(this.disabled)return;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault();let a=this.getAllRadiosWithinSameGroup().filter(v=>!v.disabled),d=a.indexOf(this);if(this.getKeyboardNavMode()===re.SPATIAL){e===K.ENTER&&(this.updateRadio(a,d),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===K.DOWN||e===K.RIGHT){let v=(d+1)%a.length;this.updateRadio(a,v)}else if(e===K.UP||e===K.LEFT){let v=(d-1+a.length)%a.length;this.updateRadio(a,v)}else e===K.SPACE&&this.updateRadio(a,d);this.updateTabIndex(),e===K.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===re.SPATIAL,e=this.getAllRadiosWithinSameGroup(),i=e.find(d=>d.checked),a=e.find(d=>!d.disabled);e.forEach(d=>{d.tabIndex=-1,(t||d===i||!i&&d===a)&&(d.tabIndex=0)})}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked.toString(),this.setActualFormValue()),t.has("label")&&this.updateAriaLabel()}updateAriaLabel(){!this.ariaLabel&&this.ariaLabel!==this.label&&(this.ariaLabel=this.label||"")}setValidity(){this.required&&!this.checked&&this.validationMessage&&this.internals.setValidity({valueMissing:!0,customError:!0},this.validationMessage,this),this.internals.setValidity({})}handleIndicatorSlotChange(t){let i=t.target.assignedNodes({flatten:!0}).filter(a=>a.nodeType===Node.ELEMENT_NODE);this.classList.toggle("mdc-focus-ring",i.length>0)}render(){return A`
5959
+ `,...At(!0,"parent-to-child")],Ky=cI;var dl=class extends Ot(Lt(Ve(ve(ee)))){constructor(){super();this.checked=!1;this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.role=et.RADIO,this.shouldRenderLabel=!1,this.helpTextType=void 0,this.toggletipPlacement=void 0,this.toggletipStrategy=void 0,this.updateAriaLabel()}firstUpdated(t){this.updateTabIndex(),this.autoFocusOnMount&&(this.elementToAutoFocus=this),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){let t=this.getRootNode();return Array.from(t.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(e=>{e.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(e=>{this.onerror&&this.onerror(e)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&this.setValidity(),this.updateTabIndex()}setGroupValidity(t,e){this.updateComplete.then(()=>{t.forEach(i=>i.setComponentValidity(e))}).catch(i=>{var a;return(a=this.onerror)==null?void 0:a.call(this,i)})}setActualFormValue(){let t=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(t,!0),this.internals.setFormValue(this.value||"on");else{let e=t.some(d=>d.required),i=t.some(d=>d.checked),a=e&&!i;this.setGroupValidity(t,!a),this.internals.setFormValue(null)}}handleChange(t=!1){if(this.checked||this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(i=>{i.checked=!1}),this.checked=!0,t&&super.click(),this.emitCheckedChangeEvent()}click(){this.handleChange(!0)}updateRadio(t,e){let i=t[e];i.focus(),i.handleChange()}handleClick(){this.handleChange()}emitCheckedChangeEvent(){this.checked&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){var f;if(this.disabled)return;let e=this.getActionForKeyEvent(t);if(this.softDisabled&&e===H.ENTER){t.preventDefault();return}(this.readonly||this.softDisabled)&&e===H.SPACE&&t.preventDefault();let a=this.getAllRadiosWithinSameGroup().filter(v=>!v.disabled),d=a.indexOf(this);if(this.getKeyboardNavMode()===re.SPATIAL){e===H.ENTER&&(this.updateRadio(a,d),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===H.DOWN||e===H.RIGHT){let v=(d+1)%a.length;this.updateRadio(a,v)}else if(e===H.UP||e===H.LEFT){let v=(d-1+a.length)%a.length;this.updateRadio(a,v)}else e===H.SPACE&&this.updateRadio(a,d);this.updateTabIndex(),e===H.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===re.SPATIAL,e=this.getAllRadiosWithinSameGroup(),i=e.find(d=>d.checked),a=e.find(d=>!d.disabled);e.forEach(d=>{d.tabIndex=-1,(t||d===i||!i&&d===a)&&(d.tabIndex=0)})}update(t){super.update(t),(t.has("disabled")||t.has("softDisabled"))&&(this.ariaDisabled=String(this.disabled||this.softDisabled)),t.has("checked")&&(this.ariaChecked=this.checked.toString(),this.setActualFormValue()),t.has("label")&&this.updateAriaLabel()}updateAriaLabel(){!this.ariaLabel&&this.ariaLabel!==this.label&&(this.ariaLabel=this.label||"")}setValidity(){this.required&&!this.checked&&this.validationMessage&&this.internals.setValidity({valueMissing:!0,customError:!0},this.validationMessage,this),this.internals.setValidity({})}handleIndicatorSlotChange(t){let i=t.target.assignedNodes({flatten:!0}).filter(a=>a.nodeType===Node.ELEMENT_NODE);this.classList.toggle("mdc-focus-ring",i.length>0)}render(){return A`
5948
5960
  <slot name="indicator" @slotchange=${this.handleIndicatorSlotChange}>
5949
5961
  <mdc-staticradio
5950
5962
  part="radio-indicator"
@@ -6000,7 +6012,7 @@
6000
6012
  slot[name='filters']::slotted(:first-child) {
6001
6013
  margin-left: 0.25rem;
6002
6014
  }
6003
- `,Yy=[uI];var jy=$.constructTagName("searchfield"),kc={TYPE:bi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var fI=[Qd,ya,rd],qy=fI.join(", ");var ws=class extends xi(Ot(pr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===K.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===K.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===K.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===K.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===K.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,a=i.value.length;i.setSelectionRange(a,a),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var d,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),a=i&&(f=(d=this.chips)==null?void 0:d.indexOf(i))!=null?f:-1;a>=0&&(this.focusedChipIndex=a,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var d;super.handleKeyDown(t);let e=this.getActionForKeyEvent(t);if(e===K.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((d=this.chips)!=null&&d.length))return;let i=this.inputElement,a=i.selectionStart===0&&i.selectionEnd===0;if(e===K.BACKSPACE&&a){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===K.LEFT&&a){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===K.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}focus(t){var e;(e=this.inputElement)==null||e.focus(t)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=kc.ICON,this.trailingButton=kc.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(qy)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove()}clearInputText(){var e;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(ya)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,a,d;if((i=this.chips)!=null&&i.includes(t))return t;let e=(a=t.getRootNode())==null?void 0:a.host;return e&&((d=this.chips)!=null&&d.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),a=t.getBoundingClientRect();a.left<i.left?e.scrollLeft-=i.left-a.left:a.right>i.right&&(e.scrollLeft+=a.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let a=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,a)}render(){return A`
6015
+ `,Yy=[uI];var jy=$.constructTagName("searchfield"),kc={TYPE:bi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var fI=[Qd,ya,rd],qy=fI.join(", ");var ws=class extends xi(Ot(pr)){constructor(){super(...arguments);this.isInputFocused=!1;this.hasChips=!1;this.focusedChipIndex=-1;this.navigatingToInput=!1;this.chipsWithListeners=new WeakMap;this.handleChipKeyDown=t=>{if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(t.key==="Backspace"||t.key==="Delete"){t.preventDefault(),this.removeChipAtIndex(this.focusedChipIndex);return}if(e===H.LEFT){t.preventDefault(),this.focusedChipIndex>0&&this.focusChipAtIndex(this.focusedChipIndex-1);return}if(e===H.RIGHT){t.preventDefault(),this.chips&&this.focusedChipIndex<this.chips.length-1?this.focusChipAtIndex(this.focusedChipIndex+1):this.focusInputField();return}if(e===H.ESCAPE){t.preventDefault(),this.clearInputText(),this.keyDownEventHandled();return}if(e===H.HOME){t.preventDefault(),this.focusChipAtIndex(0);return}if(e===H.END){t.preventDefault(),this.focusInputField();let i=this.inputElement,a=i.value.length;i.setSelectionRange(a,a),this.scrollContainerToEnd();return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.focusInputField()};this.handleChipFocus=t=>{var d,f;let e=t.currentTarget,i=this.getChipForFocusTarget(e),a=i&&(f=(d=this.chips)==null?void 0:d.indexOf(i))!=null?f:-1;a>=0&&(this.focusedChipIndex=a,this.isInputFocused=!0)};this.handleFilterContainerClick=()=>{this.inputElement.focus()}}handleKeyDown(t){var d;if(super.handleKeyDown(t),this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(e===H.ESCAPE){this.clearInputText(),this.keyDownEventHandled();return}if(!this.hasChips||!((d=this.chips)!=null&&d.length))return;let i=this.inputElement,a=i.selectionStart===0&&i.selectionEnd===0;if(e===H.BACKSPACE&&a){t.preventDefault(),this.removeChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}if(e===H.LEFT&&a){t.preventDefault(),this.focusChipAtIndex(this.chips.length-1),this.keyDownEventHandled();return}e===H.HOME&&(t.preventDefault(),this.focusChipAtIndex(0),this.keyDownEventHandled())}focus(t){var e;(e=this.inputElement)==null||e.focus(t)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.chips)==null||t.forEach(e=>this.removeChipListeners(e))}connectedCallback(){super.connectedCallback(),this.leadingIcon=kc.ICON,this.trailingButton=kc.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderChips(){var t;this.hasChips=!!((t=this.chips)!=null&&t.length),this.chips&&this.chips.forEach(e=>{if(!e.matches(qy)){this.removeChip(e);return}if(e.setAttribute("tabindex","-1"),!this.chipsWithListeners.has(e)){let i=this.getFocusTargetForChip(e);i.addEventListener("keydown",this.handleChipKeyDown),i.addEventListener("focus",this.handleChipFocus),this.chipsWithListeners.set(e,i)}}),this.focusedChipIndex=-1}firstUpdated(t){this.inputElement.onfocus=()=>{if(this.isInputFocused=!0,this.focusedChipIndex=-1,this.resetChipTabIndices(),!this.navigatingToInput&&this.hasChips){let e=this.scrollContainer;e&&(e.scrollLeft=0)}this.navigatingToInput=!1},this.inputElement.onblur=()=>{requestAnimationFrame(()=>{this.focusedChipIndex<0&&(this.isInputFocused=!1)})},super.firstUpdated(t)}removeChip(t){this.disabled||this.softDisabled||this.readonly||(this.dispatchEvent(new CustomEvent("chipRemove",{detail:{chip:t},bubbles:!0,composed:!0})),this.controlType!=="controlled"&&t.remove())}clearInputText(){var e;if(this.disabled||this.softDisabled||this.readonly)return;super.clearInputText(),[...(e=this.chips)!=null?e:[]].forEach(i=>{this.removeChip(i)})}removeChipListeners(t){let e=this.chipsWithListeners.get(t);e&&(e.removeEventListener("keydown",this.handleChipKeyDown),e.removeEventListener("focus",this.handleChipFocus),this.chipsWithListeners.delete(t))}focusChipAtIndex(t){if(!this.chips||t<0||t>=this.chips.length)return;this.focusedChipIndex=t,this.resetChipTabIndices();let e=this.chips[t],i=this.getFocusTargetForChip(e);i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),this.scrollChipIntoView(e),this.isInputFocused=!1}focusInputField(){this.focusedChipIndex=-1,this.resetChipTabIndices(),this.navigatingToInput=!0,this.inputElement.focus({preventScroll:!0})}removeChipAtIndex(t){if(this.disabled||this.softDisabled||this.readonly||!this.chips||t<0||t>=this.chips.length)return;let e=this.chips[t];this.removeChipListeners(e),this.removeChip(e),requestAnimationFrame(()=>{if(this.chips&&this.chips.length>0){let i=Math.min(t,this.chips.length-1);this.focusChipAtIndex(i)}else this.focusInputField()})}resetChipTabIndices(){var t;(t=this.chips)==null||t.forEach(e=>{this.getFocusTargetForChip(e).setAttribute("tabindex","-1")})}getFocusTargetForChip(t){var e;if(t.matches(ya)){let i=(e=t.shadowRoot)==null?void 0:e.querySelector('[part="close-icon"]');if(i)return i}return t}getChipForFocusTarget(t){var i,a,d;if((i=this.chips)!=null&&i.includes(t))return t;let e=(a=t.getRootNode())==null?void 0:a.host;return e&&((d=this.chips)!=null&&d.includes(e))?e:null}get scrollContainer(){var t,e;return(e=(t=this.shadowRoot)==null?void 0:t.querySelector('[part="searchfield-container"]'))!=null?e:null}scrollChipIntoView(t){let e=this.scrollContainer;if(!e)return;if(this.chips&&this.chips.indexOf(t)===0){e.scrollLeft=0;return}let i=e.getBoundingClientRect(),a=t.getBoundingClientRect();a.left<i.left?e.scrollLeft-=i.left-a.left:a.right>i.right&&(e.scrollLeft+=a.right-i.right)}scrollContainerToEnd(){let t=this.scrollContainer,e=this.inputElement;if(!t||!e)return;let a=e.offsetLeft+e.offsetWidth-t.clientWidth;t.scrollLeft=Math.max(0,a)}render(){return A`
6004
6016
  ${this.renderLabelElement()}
6005
6017
  <div
6006
6018
  class="${Qr({"mdc-focus-ring":this.isInputFocused})}"
@@ -6220,7 +6232,7 @@
6220
6232
  :host([soft-disabled])::part(base-text) {
6221
6233
  --mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
6222
6234
  }
6223
- `,eE=[yI,...xt(!0)];var vr=class extends Ei(Lt(Ti(Ve(ve(oe(ee)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=tE.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||a.length===0)return;let d=i+1;if(d>=a.length&&(d=i-1),d===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(d),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?a[d]:a[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Cr}:not([disabled])`);this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var a;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((a=this.selectedOption)==null?void 0:a.value)&&this.navItems.length){let d=this.getFirstSelectedOption(),f=this.getFirstOption(),v=this.navItems.find(R=>R.value===i),S=null;if(v)S=v;else if(this.placeholder)S=null;else if(f)S=f;else if(d)S=d;else return;this.updateComplete.then(()=>{this.setSelectedOption(S)}).catch(R=>{this.onerror&&this.onerror(R)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===Cr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,a;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(a=this.inputElement)==null||a.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(a=>a.value===t||a.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=qd(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var a;return(a=i.getAttribute("label"))==null?void 0:a.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],a=this.filterOptionsBySearchKey(i,t),d=null;if(a.length)[d]=a;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],v=this.filterOptionsBySearchKey(i,t[0]),S=v.filter(R=>R===f);d=S.length?S[0]:v[0]}this.navItems.indexOf(d)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(d))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.DEFAULT)switch(e){case K.DOWN:case K.UP:case K.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case K.SPACE:t.preventDefault(),t.stopPropagation();break;case K.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case K.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===K.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&e===K.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===re.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,a,d,f;return A`
6235
+ `,eE=[yI,...At(!0)];var vr=class extends Ei(Lt(Ti(Ve(ve(oe(ee)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=tE.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(i);break;case"removed":{if(i===-1||a.length===0)return;let d=i+1;if(d>=a.length&&(d=i-1),d===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(d),t.hasAttribute("selected")){let f=null;this.placeholder||(f=i===0?a[d]:a[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Cr}:not([disabled])`);this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}connectedCallback(){super.connectedCallback(),this.loop="false",this.initialFocus=0,this.setupDebounceSearch()}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.debounceSearch)==null||t.cancel(),window.cancelAnimationFrame(this.animationFrameId)}get navItems(){return this.itemsStore.items}attributeChangedCallback(t,e,i){var a;if(super.attributeChangedCallback(t,e,i),t==="value"&&i!==""&&i!==e&&i!==((a=this.selectedOption)==null?void 0:a.value)&&this.navItems.length){let d=this.getFirstSelectedOption(),f=this.getFirstOption(),v=this.navItems.find(R=>R.value===i),S=null;if(v)S=v;else if(this.placeholder)S=null;else if(f)S=f;else if(d)S=d;else return;this.updateComplete.then(()=>{this.setSelectedOption(S)}).catch(R=>{this.onerror&&this.onerror(R)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,i=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{i&&i!==this.selectedOption?this.setSelectedOption(i):this.setSelectedOption(e);break}case"unselected":{i?this.setSelectedOption(i):this.setSelectedOption(this.placeholder?null:this.getFirstOption());break}case"enabled":{this.itemsStore.add(e);break}case"disabled":{this.itemsStore.delete(e);break}default:break}}async firstUpdated(t){await this.updateComplete;let e=this.getFirstSelectedOption();if(e)this.initialSelectedOption=e,this.setSelectedOption(e);else if(this.placeholder)this.placeholder&&this.setInputValidity();else{let i=this.getFirstOption();this.setSelectedOption(i),this.fireEvents()}this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}updated(t){super.updated(t),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}handleOptionsClick(t){let e=t.target;e&&e.tagName===Cr.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,i,a;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(i=(e=this.selectedOption)==null?void 0:e.value)!=null?i:"",this.internals.setFormValue(this.value),(a=this.inputElement)==null||a.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var i;let e=this.navItems.find(a=>a.value===t||a.label===t);((i=this.selectedOption)==null?void 0:i.value)!==(e==null?void 0:e.value)&&(this.setSelectedOption(e||null),this.fireEvents())}dispatchChange(t){this.dispatchEvent(new CustomEvent("change",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}dispatchInput(t){this.dispatchEvent(new CustomEvent("input",{detail:{value:t==null?void 0:t.value,label:t==null?void 0:t.label},composed:!0,bubbles:!0}))}handleClickCombobox(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}setupDebounceSearch(){this.debounceSearch=qd(()=>{this.searchString=""},this.debounceTime)}debounceSearchKey(t){var e;return(e=this.debounceSearch)==null||e.call(this),this.searchString+=t,this.searchString}filterOptionsBySearchKey(t,e){return t.filter(i=>{var a;return(a=i.getAttribute("label"))==null?void 0:a.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,i=[...this.navItems.slice(e),...this.navItems.slice(0,e)],a=this.filterOptionsBySearchKey(i,t),d=null;if(a.length)[d]=a;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],v=this.filterOptionsBySearchKey(i,t[0]),S=v.filter(R=>R===f);d=S.length?S[0]:v[0]}this.navItems.indexOf(d)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(d))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.DEFAULT)switch(e){case H.DOWN:case H.UP:case H.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case H.SPACE:t.preventDefault(),t.stopPropagation();break;case H.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case H.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===H.ENTER&&(this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}handleKeyupCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===re.DEFAULT&&e===H.SPACE&&(this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation())}resetTabIndexAndSetFocusAfterUpdate(t){this.displayPopover&&(this.animationFrameId=window.requestAnimationFrame(()=>{this.resetTabIndexAndSetFocus(t)}))}handleNativeInputFocus(){this.visualCombobox.focus()}handleSelectedOptionByKeyInput(t){let e=this.debounceSearchKey(t);this.handleSelectedOptionBasedOnFilter(e)}handleKeydownPopover(t){this.getKeyboardNavMode()===re.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,i,a,d,f;return A`
6224
6236
  ${this.renderLabel()}
6225
6237
  <div part="container">
6226
6238
  <div
@@ -6247,7 +6259,7 @@
6247
6259
  size="1"
6248
6260
  name="${(i=this.selectedOption)==null?void 0:i.prefixIcon}"
6249
6261
  part="selected-icon"
6250
- ></mdc-icon>`:H}
6262
+ ></mdc-icon>`:G}
6251
6263
  <mdc-text
6252
6264
  part="base-text ${(a=this.selectedOption)!=null&&a.label?"selected":""}"
6253
6265
  type="${at.BODY_MIDSIZE_REGULAR}"
@@ -6306,9 +6318,11 @@
6306
6318
  ${this.renderHelperText()}
6307
6319
  `}};vr.styles=[...ee.styles,...eE],h([u({type:String})],vr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],vr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],vr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],vr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],vr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],vr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],vr.prototype,"backdropAppendTo",2),h([Ht(`[id="${Lc}"]`)],vr.prototype,"visualCombobox",2),h([lt()],vr.prototype,"selectedOption",2),h([lt()],vr.prototype,"displayPopover",2);var Lm=vr;Lm.register(Qy);var EI=Lm;var Mm=class extends Q{connectedCallback(){super.connectedCallback(),this.role=et.LISTBOX}createRenderRoot(){return this}},Om=Mm;var Mc=$.constructTagName("selectlistbox");Om.register(Mc);var TI=Om;Ss.register(Lo);var xI=Ss;var rE=$.constructTagName("skeleton"),iE={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},Rm={MOTION:!1,VARIANT:iE.RECTANGULAR};var AI=z`
6308
6320
  :host {
6321
+ --mdc-skeleton-animation-delay: 0s;
6309
6322
  --mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
6310
6323
  --mdc-skeleton-height: 100%;
6311
6324
  --mdc-skeleton-width: 100%;
6325
+ position: relative;
6312
6326
  display: block;
6313
6327
  overflow: hidden;
6314
6328
  background-color: var(--mdc-skeleton-background-color);
@@ -6316,32 +6330,38 @@
6316
6330
  width: var(--mdc-skeleton-width);
6317
6331
  }
6318
6332
 
6319
- :host([motion]) {
6333
+ :host([motion])::before {
6334
+ content: '';
6335
+ position: absolute;
6336
+ top: 0;
6337
+ left: 0;
6338
+ width: 200%;
6339
+ height: 100%;
6340
+ pointer-events: none;
6320
6341
  background-image: linear-gradient(
6321
6342
  90deg,
6322
6343
  var(--mds-color-theme-background-skeleton-shimmer-0) 0%,
6323
6344
  var(--mds-color-theme-background-skeleton-shimmer-1) 50%,
6324
6345
  var(--mds-color-theme-background-skeleton-shimmer-2) 100%
6325
6346
  );
6326
- background-repeat: no-repeat;
6327
- background-size: 200% 100%;
6328
6347
  animation: skeleton-shimmer 2s linear infinite;
6348
+ animation-delay: var(--mdc-skeleton-animation-delay);
6329
6349
  }
6330
6350
 
6331
6351
  @media (prefers-reduced-motion: reduce) {
6332
- :host([motion]) {
6352
+ :host([motion])::before {
6333
6353
  animation: none;
6334
- background-position: 50% 0;
6354
+ transform: translateX(-25%);
6335
6355
  }
6336
6356
  }
6337
6357
 
6338
6358
  @keyframes skeleton-shimmer {
6339
6359
  0% {
6340
- background-position: 200% 0;
6360
+ transform: translateX(-100%);
6341
6361
  }
6342
6362
 
6343
6363
  100% {
6344
- background-position: -200% 0;
6364
+ transform: translateX(100%);
6345
6365
  }
6346
6366
  }
6347
6367
 
@@ -6370,7 +6390,7 @@
6370
6390
  ::slotted(*) {
6371
6391
  visibility: hidden;
6372
6392
  }
6373
- `,oE=AI;var wa=class extends Q{constructor(){super(...arguments);this.motion=Rm.MOTION;this.variant=Rm.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return A`<slot @slotchange=${this.checkSlotContent}></slot>`}};wa.styles=[...Q.styles,oE],h([u({type:Boolean,reflect:!0})],wa.prototype,"motion",2),h([u({type:String,reflect:!0})],wa.prototype,"variant",2);var Dm=wa;Dm.register(rE);var SI=Dm;var II=[Tt,z`
6393
+ `,oE=AI;var wa=class extends Q{constructor(){super(...arguments);this.motion=Rm.MOTION;this.variant=Rm.VARIANT}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}firstUpdated(t){super.firstUpdated(t),this.checkSlotContent()}checkSlotContent(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot");t&&(t.assignedNodes().length>0?this.setAttribute("has-content",""):this.removeAttribute("has-content"))}render(){return A`<slot @slotchange=${this.checkSlotContent}></slot>`}};wa.styles=[...Q.styles,oE],h([u({type:Boolean,reflect:!0})],wa.prototype,"motion",2),h([u({type:String,reflect:!0})],wa.prototype,"variant",2);var Dm=wa;Dm.register(rE);var SI=Dm;var II=[xt,z`
6374
6394
  :host {
6375
6395
  --mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
6376
6396
  --mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
@@ -6487,7 +6507,7 @@
6487
6507
  flex-shrink: 1;
6488
6508
  min-inline-size: 6rem;
6489
6509
  }
6490
- `,dE=[Tt,LI];var ka=class extends pe{constructor(){super({context:Fc.context,initialValue:new Fc(hl.ORIENTATION,hl.VARIANT)});this.orientation=hl.ORIENTATION;this.variant=hl.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return Fc.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 A` <slot></slot> `}};ka.styles=[...Q.styles,...dE],h([u({type:String,reflect:!0})],ka.prototype,"orientation",2),h([u({type:String,reflect:!0})],ka.prototype,"variant",2);var ks=ka;ks.register(Dc);var MI=ks;var OI=z`
6510
+ `,dE=[xt,LI];var ka=class extends pe{constructor(){super({context:Fc.context,initialValue:new Fc(hl.ORIENTATION,hl.VARIANT)});this.orientation=hl.ORIENTATION;this.variant=hl.VARIANT}connectedCallback(){super.connectedCallback(),this.role=et.LIST}static get Context(){return Fc.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 A` <slot></slot> `}};ka.styles=[...Q.styles,...dE],h([u({type:String,reflect:!0})],ka.prototype,"orientation",2),h([u({type:String,reflect:!0})],ka.prototype,"variant",2);var ks=ka;ks.register(Dc);var MI=ks;var OI=z`
6491
6511
  :host {
6492
6512
  --mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
6493
6513
  --mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
@@ -6724,9 +6744,9 @@
6724
6744
  :host([disabled][status='completed'])::part(status-icon) {
6725
6745
  --mdc-icon-fill-color: var(--mds-color-theme-inverted-text-primary-disabled);
6726
6746
  }
6727
- `,hE=[Tt,DI,...xt()];var Ji=class extends Ot(Lt(si(Zt(Q)))){constructor(){super();this.variant=zm.VARIANT;this.status=zm.STATUS;this.label="";this.stepperContext=me.consume({host:this,context:ks.Context});this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.variant&&this.variant!==e.variant&&(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}handleKeyDown(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.add("pressed"),e===K.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===K.ENTER||e===K.SPACE)&&(this.classList.remove("pressed"),e===K.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Qi.COMPLETED?A`<mdc-icon part="status-icon" name=${Rc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Qi.ERROR_CURRENT||this.status===Qi.CURRENT?A`<mdc-icon part="status-icon" name=${Rc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Qi.NOT_STARTED||this.status===Qi.ERROR_INCOMPLETE)?A`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6747
+ `,hE=[xt,DI,...At()];var Ji=class extends Ot(Lt(si(Zt(Q)))){constructor(){super();this.variant=zm.VARIANT;this.status=zm.STATUS;this.label="";this.stepperContext=me.consume({host:this,context:ks.Context});this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}willUpdate(t){var i;super.willUpdate(t);let e=(i=this.stepperContext)==null?void 0:i.value;e!=null&&e.variant&&this.variant!==e.variant&&(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=et.LISTITEM}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}handleKeyDown(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.classList.add("pressed"),e===H.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){if(this.disabled)return;let e=this.getActionForKeyEvent(t);(e===H.ENTER||e===H.SPACE)&&(this.classList.remove("pressed"),e===H.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===Qi.COMPLETED?A`<mdc-icon part="status-icon" name=${Rc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===Qi.ERROR_CURRENT||this.status===Qi.CURRENT?A`<mdc-icon part="status-icon" name=${Rc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===Qi.NOT_STARTED||this.status===Qi.ERROR_INCOMPLETE)?A`<mdc-text part="step-number" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6728
6748
  >${this.stepNumber}</mdc-text
6729
- >`:H}renderHelpText(){if(!this.helpText)return H;let t=A`<mdc-text
6749
+ >`:G}renderHelpText(){if(!this.helpText)return G;let t=A`<mdc-text
6730
6750
  part="help-text"
6731
6751
  tagname=${pt.SPAN}
6732
6752
  type=${at.BODY_MIDSIZE_REGULAR}
@@ -6738,9 +6758,9 @@
6738
6758
  <div part="label-container">
6739
6759
  ${this.label?A`<mdc-text part="label" tagname=${pt.SPAN} type=${at.BODY_MIDSIZE_REGULAR}
6740
6760
  >${this.label}</mdc-text
6741
- >`:H}
6761
+ >`:G}
6742
6762
  ${this.renderHelpText()}
6743
- </div>`}};Ji.styles=[...Q.styles,...hE],h([u({type:String,reflect:!0})],Ji.prototype,"variant",2),h([u({type:String,reflect:!0})],Ji.prototype,"status",2),h([u({type:String,reflect:!0})],Ji.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],Ji.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],Ji.prototype,"stepNumber",2);var Um=Ji;Um.register(lE);var PI=Um;var La=$.constructTagName("tab"),Hm={GLASS:"glass",LINE:"line",PILL:"pill"},Gm={32:32,28:28},Ma={VARIANT:Hm.PILL,ACTIVE:!1,SIZE:Gm[32]};var FI=[Tt,z`
6763
+ </div>`}};Ji.styles=[...Q.styles,...hE],h([u({type:String,reflect:!0})],Ji.prototype,"variant",2),h([u({type:String,reflect:!0})],Ji.prototype,"status",2),h([u({type:String,reflect:!0})],Ji.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],Ji.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],Ji.prototype,"stepNumber",2);var Um=Ji;Um.register(lE);var PI=Um;var La=$.constructTagName("tab"),Hm={GLASS:"glass",LINE:"line",PILL:"pill"},Gm={32:32,28:28},Ma={VARIANT:Hm.PILL,ACTIVE:!1,SIZE:Gm[32]};var FI=[xt,z`
6744
6764
  :host {
6745
6765
  --mdc-tab-content-gap: 0.5rem;
6746
6766
  --mdc-tab-height: 2rem;
@@ -6974,7 +6994,7 @@
6974
6994
  --mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
6975
6995
  --mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
6976
6996
  }
6977
- `,...xt()],pE=FI;var to=class extends ue(bc(Ee)){constructor(){super(...arguments);this.active=Ma.ACTIVE;this.variant=Ma.VARIANT;this.size=Ma.SIZE;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(Hm).includes(t)?t:Ma.VARIANT)}setSize(t){this.setAttribute("size",Object.values(Gm).includes(t)?`${t}`:Ma.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${es(this.iconName)}-filled`:void 0}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("size")&&this.setSize(this.size),t.has("variant")&&this.setVariant(this.variant)}render(){return A`
6997
+ `,...At()],pE=FI;var to=class extends ue(bc(Ee)){constructor(){super(...arguments);this.active=Ma.ACTIVE;this.variant=Ma.VARIANT;this.size=Ma.SIZE;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=et.TAB,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}setVariant(t){this.setAttribute("variant",Object.values(Hm).includes(t)?t:Ma.VARIANT)}setSize(t){this.setAttribute("size",Object.values(Gm).includes(t)?`${t}`:Ma.SIZE.toString())}getFilledIconName(){return this.iconName?this.iconName.endsWith("-filled")?this.iconName:`${es(this.iconName)}-filled`:void 0}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("size")&&this.setSize(this.size),t.has("variant")&&this.setVariant(this.variant)}render(){return A`
6978
6998
  <div part="container">
6979
6999
  <div part="leading">
6980
7000
  <slot name="prefix">
@@ -6993,7 +7013,7 @@
6993
7013
  part="filled-icon"
6994
7014
  ></mdc-icon>
6995
7015
  </div>
6996
- `:H}
7016
+ `:G}
6997
7017
  </slot>
6998
7018
  ${this.text?A` <mdc-text
6999
7019
  type=${this.active?at.BODY_MIDSIZE_BOLD:at.BODY_MIDSIZE_MEDIUM}
@@ -7001,7 +7021,7 @@
7001
7021
  data-text=${this.text}
7002
7022
  part="text"
7003
7023
  >${this.text}</mdc-text
7004
- >`:H}
7024
+ >`:G}
7005
7025
  </div>
7006
7026
  <slot name="postfix"></slot>
7007
7027
  </div>
@@ -7041,7 +7061,7 @@
7041
7061
  prefix-icon="arrow-${a===Oa.FORWARD?t:e}-regular"
7042
7062
  aria-label="Scroll tabs ${a===Oa.FORWARD?t:e}"
7043
7063
  @click="${()=>this.scrollTabs(a)}"
7044
- ></mdc-button>`:H}`;return A` ${i("backward")}
7064
+ ></mdc-button>`:G}`;return A` ${i("backward")}
7045
7065
  <div part="container" role="${et.TABLIST}" tabindex="-1" aria-label="${tt(this.dataAriaLabel)}">
7046
7066
  <slot></slot>
7047
7067
  </div>
@@ -7170,7 +7190,7 @@
7170
7190
  :host([disabled])::part(resize-button) {
7171
7191
  cursor: default;
7172
7192
  }
7173
- `,...xt(!0)],yE=zI;var Ue=class extends mc(Ot(Lt(Ve(ve(oe(hr)))))){constructor(){super(...arguments);this.rows=Bc.ROWS;this.wrap=Ym.SOFT;this.autocapitalize=uc.OFF;this.autocomplete=bE.OFF;this.resizable=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.readonly)return;let e=t.currentTarget;e&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||Bc.ROWS,e.setPointerCapture(t.pointerId),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(!this.textarea)return;let e=t.clientY-this.resizeStartY,i=parseFloat(window.getComputedStyle(this.textarea).lineHeight),a=Math.round(e/i);this.rows=Math.max(1,this.resizeStartRows+a)};this.handlePointerUp=t=>{let e=t.currentTarget;e&&(t.type==="pointerup"&&e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerup",this.handlePointerUp),e.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(e=>{this.onerror&&this.onerror(e)})}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===te.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.announceCharacterLimitWarning()}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceCharacterLimitWarning()}onChange(t){this.updateValue();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?H:A` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.readonly)return;let e=this.rows||Bc.ROWS,i,a=this.getActionForKeyEvent(t);a===K.UP?(i=Math.max(1,e-1),i!==e&&this.keyDownEventHandled()):a===K.DOWN&&(i=e+1,this.keyDownEventHandled()),i!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=i)}render(){var t,e;return A`
7193
+ `,...At(!0)],yE=zI;var Ue=class extends mc(Ot(Lt(Ve(ve(oe(hr)))))){constructor(){super(...arguments);this.rows=Bc.ROWS;this.wrap=Ym.SOFT;this.autocapitalize=uc.OFF;this.autocomplete=bE.OFF;this.resizable=!1;this.resizeStartY=0;this.resizeStartRows=0;this.handlePointerDown=t=>{if(this.disabled||this.softDisabled||this.readonly)return;let e=t.currentTarget;e&&(t.preventDefault(),this.resizeStartY=t.clientY,this.resizeStartRows=this.rows||Bc.ROWS,e.setPointerCapture(t.pointerId),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("lostpointercapture",this.handlePointerUp))};this.handlePointerMove=t=>{if(this.disabled||this.softDisabled||this.readonly||!this.textarea)return;let e=t.clientY-this.resizeStartY,i=parseFloat(window.getComputedStyle(this.textarea).lineHeight),a=Math.round(e/i);this.rows=Math.max(1,this.resizeStartRows+a)};this.handlePointerUp=t=>{let e=t.currentTarget;e&&(t.type==="pointerup"&&e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerup",this.handlePointerUp),e.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(e=>{this.onerror&&this.onerror(e)})}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===te.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.announceCharacterLimitWarning()}updateValue(t){this.preventSoftDisabledChange(t,this.value)||(this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceCharacterLimitWarning())}onChange(t){if(this.preventSoftDisabledChange(t,this.value))return;this.updateValue(t);let e=t.constructor;this.dispatchEvent(new e(t.type,t))}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?G:A` <div part="textarea-footer">${this.renderHelperText()} ${this.renderCharacterCounter()}</div> `}handleResizeKeyDown(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.rows||Bc.ROWS,i,a=this.getActionForKeyEvent(t);a===H.UP?(i=Math.max(1,e-1),i!==e&&this.keyDownEventHandled()):a===H.DOWN&&(i=e+1,this.keyDownEventHandled()),i!==void 0&&(t.preventDefault(),t.stopPropagation(),this.rows=i)}render(){var t,e;return A`
7174
7194
  ${this.renderLabel()}
7175
7195
  <div class="mdc-focus-ring" part="textarea-container">
7176
7196
  <textarea
@@ -7181,6 +7201,7 @@
7181
7201
  .value="${this.value}"
7182
7202
  ?disabled="${this.disabled}"
7183
7203
  ?readonly="${this.readonly}"
7204
+ aria-disabled="${this.disabled||this.softDisabled}"
7184
7205
  ?required="${this.required}"
7185
7206
  placeholder=${tt(this.placeholder)}
7186
7207
  rows=${tt(this.rows)}
@@ -7191,6 +7212,7 @@
7191
7212
  minlength=${tt(this.minlength)}
7192
7213
  maxlength=${tt(this.maxlength)}
7193
7214
  dirname=${tt(this.dirname)}
7215
+ @beforeinput=${this.preventSoftDisabledInput}
7194
7216
  @input=${this.updateValue}
7195
7217
  @change=${this.onChange}
7196
7218
  aria-describedby="${tt(this.helpText?Kt.HELPER_TEXT_ID:"")}"
@@ -7210,11 +7232,12 @@
7210
7232
  size="24"
7211
7233
  prefix-icon="resize-corner-regular"
7212
7234
  aria-label=${(e=this.resizeButtonAriaLabel)!=null?e:""}
7213
- ?disabled="${this.disabled||this.readonly}"
7235
+ ?disabled="${this.disabled||this.softDisabled||this.readonly}"
7236
+ ?soft-disabled="${this.softDisabled}"
7214
7237
  @keydown=${this.handleResizeKeyDown}
7215
7238
  @pointerdown=${this.handlePointerDown}
7216
7239
  ></mdc-button>
7217
- `:H}
7240
+ `:G}
7218
7241
  </div>
7219
7242
  ${this.renderTextareaFooter()}
7220
7243
  `}};Ue.styles=[...hr.styles,...yE],h([u({type:String})],Ue.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],Ue.prototype,"rows",2),h([u({type:Number})],Ue.prototype,"cols",2),h([u({type:String})],Ue.prototype,"wrap",2),h([u({type:String})],Ue.prototype,"autocapitalize",2),h([u({type:String})],Ue.prototype,"autocomplete",2),h([u({type:String})],Ue.prototype,"dirname",2),h([u({type:Number})],Ue.prototype,"maxlength",2),h([u({type:Number})],Ue.prototype,"minlength",2),h([u({type:Boolean,reflect:!0})],Ue.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],Ue.prototype,"resizeButtonAriaLabel",2),h([Ht("textarea")],Ue.prototype,"inputElement",2);var jm=Ue;jm.register(gE);var BI=jm;var EE=$.constructTagName("timepicker"),qm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Fo={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},Xm="timepicker-triggerid",Zm="timepicker-listbox",He={TIME_FORMAT:Fo.TWELVE_HOUR,INTERVAL:30,MIN_HOUR_12:1,MAX_HOUR_12:12,MIN_HOUR_24:0,MAX_HOUR_24:23,MIN_MINUTE:0,MAX_MINUTE:59,DISABLE_FLIP:!1};var UI=z`
@@ -7404,7 +7427,7 @@
7404
7427
  --mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
7405
7428
  color: var(--mds-color-theme-text-primary-disabled);
7406
7429
  }
7407
- `,TE=[UI,...xt(!0)];var Dt=class extends ve(oe(ee)){constructor(){super(...arguments);this.timeFormat=He.TIME_FORMAT;this.interval=He.INTERVAL;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=He.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1)}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){this.focusedOptionIndex=this.getMenuItemFocusIndex(),this.updateComplete.then(()=>{window.requestAnimationFrame(()=>{this.focusCurrentMenuItem()})}).catch(()=>{})}getMenuItemFocusIndex(){let t=this.getTimeOptions(),e=this.internalToValue(),i=t.findIndex(a=>a.value===e);return i>=0?i:0}focusCurrentMenuItem(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector(`#${Zm}`);if(!t)return;let i=t.querySelectorAll("mdc-option")[this.focusedOptionIndex];i&&(i.focus({preventScroll:!0}),i.scrollIntoView({block:"nearest"}))}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let e=parseInt(t[1],10),i=parseInt(t[2],10);e<0||e>23||i<0||i>59||(this.internalMinutes=String(i).padStart(2,"0"),this.timeFormat===Fo.TWELVE_HOUR?e===0?(this.internalPeriod="AM",this.internalHours="12"):e<12?(this.internalPeriod="AM",this.internalHours=String(e).padStart(2,"0")):e===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(e-12).padStart(2,"0")):this.internalHours=String(e).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===Fo.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],e=Math.max(1,Math.min(this.interval,60));for(let i=0;i<24*60;i+=e){let a=Math.floor(i/60),d=i%60,f=`${String(a).padStart(2,"0")}:${String(d).padStart(2,"0")}`,v;if(this.timeFormat===Fo.TWELVE_HOUR){let U=a<12?this.localeAmLabel:this.localePmLabel,J=a%12;J===0&&(J=12);let j=String(d).padStart(2,"0");v=`${J}:${j} ${U}`}else v=f;let S=!this.min||f>=this.min,R=!this.max||f<=this.max;S&&R&&t.push({label:v,value:f})}return t}handleOptionClick(t){var e;this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(e=this.dropdownButton)==null||e.focus()}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleBaseContainerClick(t){var i,a,d;if(this.disabled||this.softDisabled||this.readonly)return;let e=t.target;if(e.getAttribute("role")!=="spinbutton"){if(e.getAttribute("part")==="base-container"||e.getAttribute("part")==="spinbutton-group"){this.displayPopover=!this.displayPopover,(i=this.dropdownButton)==null||i.focus(),t.stopPropagation();return}(a=this.hoursInput)==null||a.focus(),(d=this.hoursInput)==null||d.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===wt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var a;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case wt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case wt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case wt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case wt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(a=this.dropdownButton)==null||a.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,i;switch(t.key){case wt.ARROW_UP:case wt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case wt.TAB:break;case wt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let a=this.localeAmLabel.charAt(0).toLowerCase(),d=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===a?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===d&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var S,R,U,J,j,Z;let i=this.timeFormat===Fo.TWELVE_HOUR,a,d;e==="hours"?(a=i?He.MIN_HOUR_12:He.MIN_HOUR_24,d=i?He.MAX_HOUR_12:He.MAX_HOUR_24):(a=He.MIN_MINUTE,d=He.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,v=f?parseInt(f,10):a;switch(t.key){case wt.ARROW_UP:{t.preventDefault(),v=v>=d?a:v+1,this.setSpinbuttonValue(e,v),this.commitValue();break}case wt.ARROW_DOWN:{t.preventDefault(),v=v<=a?d:v-1,this.setSpinbuttonValue(e,v),this.commitValue();break}case wt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((S=this.minutesInput)==null||S.focus(),(R=this.minutesInput)==null||R.select()):i&&((U=this.periodInput)==null||U.focus(),(J=this.periodInput)==null||J.select());break}case wt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((j=this.hoursInput)==null||j.focus(),(Z=this.hoursInput)==null||Z.select());break}case wt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,a,d)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let d=parseInt(this.pendingDigits,10);d>a&&(d=a),d<i&&(d=i),this.setSpinbuttonValue(e,d),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let d=parseInt(this.pendingDigits,10),f=Math.floor(a/10);if(d>f){let v=d;v>a&&(v=a),v<i&&(v=i),this.setSpinbuttonValue(e,v),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,d),this.pendingDigitTimeout=setTimeout(()=>{let v=d;v<i&&(v=i),this.setSpinbuttonValue(e,v),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let i=String(e).padStart(2,"0");t==="hours"?this.internalHours=i:this.internalMinutes=i,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,i;(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select()}).catch(()=>{}):this.timeFormat===Fo.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,i;(e=this.periodInput)==null||e.focus(),(i=this.periodInput)==null||i.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),e=this.internalToValue();return t.map(i=>A`
7430
+ `,TE=[UI,...At(!0)];var Dt=class extends ve(oe(ee)){constructor(){super(...arguments);this.timeFormat=He.TIME_FORMAT;this.interval=He.INTERVAL;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=He.DISABLE_FLIP;this.localeHoursLabel="";this.localeMinutesLabel="";this.localePeriodLabel="";this.localeHoursPlaceholder="";this.localeMinutesPlaceholder="";this.localePeriodPlaceholder="";this.localeAmLabel="";this.localePmLabel="";this.localeShowTimePickerLabel="";this.localeTimeOptionsLabel="";this.localeSpinbuttonDescription="";this.displayPopover=!1;this.internalHours="";this.internalMinutes="";this.internalPeriod="AM";this.focusedOptionIndex=-1;this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover&&(this.parseValueToInternal(),this.syncFormValue()),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&(this.displayPopover=!1,this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits="",this.parseValueToInternal())}updated(t){super.updated(t),t.has("displayPopover")&&this.displayPopover&&this.focusMenuItemOnOpen()}focusMenuItemOnOpen(){this.focusedOptionIndex=this.getMenuItemFocusIndex(),this.updateComplete.then(()=>{window.requestAnimationFrame(()=>{this.focusCurrentMenuItem()})}).catch(()=>{})}getMenuItemFocusIndex(){let t=this.getTimeOptions(),e=this.internalToValue(),i=t.findIndex(a=>a.value===e);return i>=0?i:0}focusCurrentMenuItem(){var a;let t=(a=this.shadowRoot)==null?void 0:a.querySelector(`#${Zm}`);if(!t)return;let i=t.querySelectorAll("mdc-option")[this.focusedOptionIndex];i&&(i.focus({preventScroll:!0}),i.scrollIntoView({block:"nearest"}))}formResetCallback(){this.value="",this.internalHours="",this.internalMinutes="",this.internalPeriod="AM",this.syncFormValue(),this.requestUpdate()}formStateRestoreCallback(t){this.value=t,this.parseValueToInternal()}parseValueToInternal(){if(!this.value){this.internalHours="",this.internalMinutes="",this.internalPeriod="AM";return}let t=this.value.match(/^(\d{1,2}):(\d{2})$/);if(!t)return;let e=parseInt(t[1],10),i=parseInt(t[2],10);e<0||e>23||i<0||i>59||(this.internalMinutes=String(i).padStart(2,"0"),this.timeFormat===Fo.TWELVE_HOUR?e===0?(this.internalPeriod="AM",this.internalHours="12"):e<12?(this.internalPeriod="AM",this.internalHours=String(e).padStart(2,"0")):e===12?(this.internalPeriod="PM",this.internalHours="12"):(this.internalPeriod="PM",this.internalHours=String(e-12).padStart(2,"0")):this.internalHours=String(e).padStart(2,"0"))}internalToValue(){if(!this.internalHours||!this.internalMinutes)return"";let t=parseInt(this.internalHours,10);return this.timeFormat===Fo.TWELVE_HOUR&&(this.internalPeriod==="AM"?t=t===12?0:t:t=t===12?12:t+12),`${String(t).padStart(2,"0")}:${this.internalMinutes}`}syncFormValue(){let t=this.internalToValue();this.internals.setFormValue(t||this.value)}commitValue(){if(this.disabled||this.softDisabled||this.readonly)return;let t=this.internalToValue();t&&t!==this.value&&(this.value=t,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})))}getTimeOptions(){let t=[],e=Math.max(1,Math.min(this.interval,60));for(let i=0;i<24*60;i+=e){let a=Math.floor(i/60),d=i%60,f=`${String(a).padStart(2,"0")}:${String(d).padStart(2,"0")}`,v;if(this.timeFormat===Fo.TWELVE_HOUR){let U=a<12?this.localeAmLabel:this.localePmLabel,J=a%12;J===0&&(J=12);let j=String(d).padStart(2,"0");v=`${J}:${j} ${U}`}else v=f;let S=!this.min||f>=this.min,R=!this.max||f<=this.max;S&&R&&t.push({label:v,value:f})}return t}handleOptionClick(t){var e;this.disabled||this.softDisabled||this.readonly||(this.value=t,this.parseValueToInternal(),this.displayPopover=!1,this.syncFormValue(),this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},composed:!0,bubbles:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},composed:!0,bubbles:!0})),(e=this.dropdownButton)==null||e.focus())}handleDropdownClick(t){this.disabled||this.softDisabled||this.readonly||(this.displayPopover=!this.displayPopover,t.stopPropagation())}handleBaseContainerClick(t){var i,a,d;if(this.disabled||this.softDisabled||this.readonly)return;let e=t.target;if(e.getAttribute("role")!=="spinbutton"){if(e.getAttribute("part")==="base-container"||e.getAttribute("part")==="spinbutton-group"){this.displayPopover=!this.displayPopover,(i=this.dropdownButton)==null||i.focus(),t.stopPropagation();return}(a=this.hoursInput)==null||a.focus(),(d=this.hoursInput)==null||d.select()}}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===Tt.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var a;let e=this.getTimeOptions(),i=e.length;if(i!==0)switch(t.key){case Tt.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%i,this.focusCurrentMenuItem();break}case Tt.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+i)%i,this.focusCurrentMenuItem();break}case Tt.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<i&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case Tt.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(a=this.dropdownButton)==null||a.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,i;if(this.disabled||this.softDisabled||this.readonly){(t.key===Tt.ARROW_UP||t.key===Tt.ARROW_DOWN)&&t.preventDefault();return}switch(t.key){case Tt.ARROW_UP:case Tt.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case Tt.TAB:break;case Tt.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select();break;default:{t.preventDefault();let a=this.localeAmLabel.charAt(0).toLowerCase(),d=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===a?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===d&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var S,R,U,J,j,Z;if(this.disabled||this.softDisabled||this.readonly){(t.key===Tt.ARROW_UP||t.key===Tt.ARROW_DOWN)&&t.preventDefault();return}let i=this.timeFormat===Fo.TWELVE_HOUR,a,d;e==="hours"?(a=i?He.MIN_HOUR_12:He.MIN_HOUR_24,d=i?He.MAX_HOUR_12:He.MAX_HOUR_24):(a=He.MIN_MINUTE,d=He.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,v=f?parseInt(f,10):a;switch(t.key){case Tt.ARROW_UP:{t.preventDefault(),v=v>=d?a:v+1,this.setSpinbuttonValue(e,v),this.commitValue();break}case Tt.ARROW_DOWN:{t.preventDefault(),v=v<=a?d:v-1,this.setSpinbuttonValue(e,v),this.commitValue();break}case Tt.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((S=this.minutesInput)==null||S.focus(),(R=this.minutesInput)==null||R.select()):i&&((U=this.periodInput)==null||U.focus(),(J=this.periodInput)==null||J.select());break}case Tt.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((j=this.hoursInput)==null||j.focus(),(Z=this.hoursInput)==null||Z.select());break}case Tt.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,a,d)):t.preventDefault();break}}}handleDigitInput(t,e,i,a){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let d=parseInt(this.pendingDigits,10);d>a&&(d=a),d<i&&(d=i),this.setSpinbuttonValue(e,d),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let d=parseInt(this.pendingDigits,10),f=Math.floor(a/10);if(d>f){let v=d;v>a&&(v=a),v<i&&(v=i),this.setSpinbuttonValue(e,v),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,d),this.pendingDigitTimeout=setTimeout(()=>{let v=d;v<i&&(v=i),this.setSpinbuttonValue(e,v),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let i=String(e).padStart(2,"0");t==="hours"?this.internalHours=i:this.internalMinutes=i,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,i;(e=this.minutesInput)==null||e.focus(),(i=this.minutesInput)==null||i.select()}).catch(()=>{}):this.timeFormat===Fo.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,i;(e=this.periodInput)==null||e.focus(),(i=this.periodInput)==null||i.select()}).catch(()=>{})}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}get displayPeriod(){return this.internalPeriod==="AM"?this.localeAmLabel:this.localePmLabel}get hoursPlaceholder(){return this.localeHoursPlaceholder}get minutesPlaceholder(){return this.localeMinutesPlaceholder}get periodPlaceholder(){return this.localePeriodPlaceholder}renderTimeOptions(){let t=this.getTimeOptions(),e=this.internalToValue();return t.map(i=>A`
7408
7431
  <mdc-option
7409
7432
  label="${this.optionLabelFormatter?this.optionLabelFormatter(i.label,i.value):i.label}"
7410
7433
  ?selected="${i.value===e}"
@@ -7421,7 +7444,7 @@
7421
7444
  @click="${this.handleBaseContainerClick}"
7422
7445
  @keydown="${this.handleBaseKeydown}"
7423
7446
  >
7424
- ${this.prefixIcon?A`<mdc-icon part="leading-icon" name="${this.prefixIcon}" size="1"></mdc-icon>`:H}
7447
+ ${this.prefixIcon?A`<mdc-icon part="leading-icon" name="${this.prefixIcon}" size="1"></mdc-icon>`:G}
7425
7448
  <div part="spinbutton-group">
7426
7449
  <input
7427
7450
  id="hours-spinbutton"
@@ -7436,7 +7459,10 @@
7436
7459
  placeholder="${this.hoursPlaceholder}"
7437
7460
  ?disabled="${this.disabled}"
7438
7461
  ?readonly="${this.readonly}"
7462
+ aria-disabled="${this.disabled||this.softDisabled}"
7463
+ @beforeinput="${this.preventSoftDisabledInput}"
7439
7464
  tabindex="${this.disabled?"-1":"0"}"
7465
+ @input="${a=>this.preventSoftDisabledChange(a,this.internalHours)}"
7440
7466
  @keydown="${this.handleHoursKeydown}"
7441
7467
  @focus="${this.handleSpinbuttonFocus}"
7442
7468
  />
@@ -7454,7 +7480,10 @@
7454
7480
  placeholder="${this.minutesPlaceholder}"
7455
7481
  ?disabled="${this.disabled}"
7456
7482
  ?readonly="${this.readonly}"
7483
+ aria-disabled="${this.disabled||this.softDisabled}"
7484
+ @beforeinput="${this.preventSoftDisabledInput}"
7457
7485
  tabindex="${this.disabled?"-1":"0"}"
7486
+ @input="${a=>this.preventSoftDisabledChange(a,this.internalMinutes)}"
7458
7487
  @keydown="${this.handleMinutesKeydown}"
7459
7488
  @focus="${this.handleSpinbuttonFocus}"
7460
7489
  />
@@ -7470,11 +7499,14 @@
7470
7499
  placeholder="${this.periodPlaceholder}"
7471
7500
  ?disabled="${this.disabled}"
7472
7501
  ?readonly="${this.readonly}"
7502
+ aria-disabled="${this.disabled||this.softDisabled}"
7503
+ @beforeinput="${this.preventSoftDisabledInput}"
7473
7504
  tabindex="${this.disabled?"-1":"0"}"
7505
+ @input="${a=>this.preventSoftDisabledChange(a,this.displayPeriod||"")}"
7474
7506
  @keydown="${this.handlePeriodKeydown}"
7475
7507
  @focus="${this.handleSpinbuttonFocus}"
7476
7508
  />
7477
- `:H}
7509
+ `:G}
7478
7510
  </div>
7479
7511
  <mdc-button
7480
7512
  part="icon-container"
@@ -7485,6 +7517,7 @@
7485
7517
  aria-expanded="${this.displayPopover?"true":"false"}"
7486
7518
  aria-haspopup="true"
7487
7519
  ?disabled="${this.disabled}"
7520
+ ?soft-disabled="${this.softDisabled}"
7488
7521
  size="20"
7489
7522
  @click="${this.handleDropdownClick}"
7490
7523
  ></mdc-button>
@@ -7534,7 +7567,7 @@
7534
7567
  </mdc-selectlistbox>
7535
7568
  </mdc-popover>
7536
7569
  </div>
7537
- ${this.helpText?this.renderHelperText():H}
7570
+ ${this.helpText?this.renderHelperText():G}
7538
7571
  `}};Dt.styles=[...ee.styles,...TE],h([u({type:String,reflect:!0,attribute:"time-format"})],Dt.prototype,"timeFormat",2),h([u({type:Number,reflect:!0})],Dt.prototype,"interval",2),h([u({type:String,reflect:!0})],Dt.prototype,"placement",2),h([u({type:String,reflect:!0})],Dt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Dt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Dt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Dt.prototype,"backdropAppendTo",2),h([u({type:String,reflect:!0})],Dt.prototype,"min",2),h([u({type:String,reflect:!0})],Dt.prototype,"max",2),h([u({type:String,attribute:"locale-hours-label"})],Dt.prototype,"localeHoursLabel",2),h([u({type:String,attribute:"locale-minutes-label"})],Dt.prototype,"localeMinutesLabel",2),h([u({type:String,attribute:"locale-period-label"})],Dt.prototype,"localePeriodLabel",2),h([u({type:String,attribute:"locale-hours-placeholder"})],Dt.prototype,"localeHoursPlaceholder",2),h([u({type:String,attribute:"locale-minutes-placeholder"})],Dt.prototype,"localeMinutesPlaceholder",2),h([u({type:String,attribute:"locale-period-placeholder"})],Dt.prototype,"localePeriodPlaceholder",2),h([u({type:String,attribute:"locale-am-label"})],Dt.prototype,"localeAmLabel",2),h([u({type:String,attribute:"locale-pm-label"})],Dt.prototype,"localePmLabel",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],Dt.prototype,"prefixIcon",2),h([u({attribute:!1})],Dt.prototype,"optionLabelFormatter",2),h([u({type:String,attribute:"locale-show-time-picker-label"})],Dt.prototype,"localeShowTimePickerLabel",2),h([u({type:String,attribute:"locale-time-options-label"})],Dt.prototype,"localeTimeOptionsLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Dt.prototype,"localeSpinbuttonDescription",2),h([Ht('mdc-button[part="icon-container"]')],Dt.prototype,"dropdownButton",2),h([Ht("#hours-spinbutton")],Dt.prototype,"hoursInput",2),h([Ht("#minutes-spinbutton")],Dt.prototype,"minutesInput",2),h([Ht("#period-spinbutton")],Dt.prototype,"periodInput",2),h([lt()],Dt.prototype,"displayPopover",2),h([lt()],Dt.prototype,"internalHours",2),h([lt()],Dt.prototype,"internalMinutes",2),h([lt()],Dt.prototype,"internalPeriod",2),h([lt()],Dt.prototype,"focusedOptionIndex",2);var Qm=Dt;Qm.register(EE);var HI=Qm;var GI=[z`
7539
7572
  :host {
7540
7573
  display: block;
@@ -7677,7 +7710,7 @@
7677
7710
  }
7678
7711
  `,_E=[jI];var Re=class extends Js(Q){constructor(){super(...arguments);this.variant=gr.VARIANT;this.headerTagName=gr.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasOverflowingHeaderText=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}updateDataExpanded(){this.isDetailVisible||!this.canRenderToggleButton()?this.setAttribute("data-expanded","true"):this.removeAttribute("data-expanded")}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible,this.updateDataExpanded()}updateDetailedSlotPresence(){var t,e;this.hasDetailedSlot=(e=(t=this.detailedElements)==null?void 0:t.some(i=>{var a;return(a=i.textContent)==null?void 0:a.trim()}))!=null?e:!1}updateFooterButtonsPresence(){var t,e,i,a;this.hasFooterButtons=((e=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?e:0)>0||((a=(i=this.footerButtonSecondary)==null?void 0:i.length)!=null?a:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}async firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence(),this.updateDataExpanded()}async updated(t){(t.has("showMoreText")||t.has("showLessText"))&&this.updateDataExpanded(),t.has("headerText")&&(await this.updateComplete,jl(this.headerTextElement)&&(this.hasOverflowingHeaderText=this.headerTextElement.isHeightOverflowing()))}renderIcon(t){return t?A`
7679
7712
  <mdc-icon name="${t}" size="${gr.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
7680
- `:H}canRenderToggleButton(){return!!(this.showMoreText&&this.showLessText)}shouldRenderToggleButton(){return this.canRenderToggleButton()&&(this.hasDetailedSlot||this.hasOverflowingHeaderText)}renderToggleDetailButton(){return this.shouldRenderToggleButton()?A`
7713
+ `:G}canRenderToggleButton(){return!!(this.showMoreText&&this.showLessText)}shouldRenderToggleButton(){return this.canRenderToggleButton()&&(this.hasDetailedSlot||this.hasOverflowingHeaderText)}renderToggleDetailButton(){return this.shouldRenderToggleButton()?A`
7681
7714
  <mdc-button
7682
7715
  variant="tertiary"
7683
7716
  part="footer-button-toggle"
@@ -7686,11 +7719,11 @@
7686
7719
  >
7687
7720
  ${this.isDetailVisible?this.showLessText:this.showMoreText}
7688
7721
  </mdc-button>
7689
- `:H}renderHeader(){return this.headerText?A`
7722
+ `:G}renderHeader(){return this.headerText?A`
7690
7723
  <mdc-text part="toast-header" tagname="${this.headerTagName}" type="${at.BODY_LARGE_BOLD}">
7691
7724
  ${this.headerText}
7692
7725
  </mdc-text>
7693
- `:H}handleFooterSlot(t,e){super.handleFooterSlot(t,e),this.updateFooterButtonsPresence()}renderFooter(){return this.updateFooterButtonsPresence(),A` <slot name="footer">
7726
+ `:G}handleFooterSlot(t,e){super.handleFooterSlot(t,e),this.updateFooterButtonsPresence()}renderFooter(){return this.updateFooterButtonsPresence(),A` <slot name="footer">
7694
7727
  <div part="footer ${this.hasFooterButtons}">
7695
7728
  ${this.renderToggleDetailButton()}
7696
7729
  <slot
@@ -7722,7 +7755,7 @@
7722
7755
  ></mdc-button>
7723
7756
  </div>
7724
7757
  ${this.renderFooter()}
7725
- `}};Re.styles=[...Q.styles,..._E],h([Ht("[part='toast-header']")],Re.prototype,"headerTextElement",2),h([u({type:String,reflect:!0})],Re.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Re.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Re.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Re.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Re.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Re.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Re.prototype,"showLessText",2),h([lt()],Re.prototype,"isDetailVisible",2),h([lt()],Re.prototype,"hasDetailedSlot",2),h([lt()],Re.prototype,"hasOverflowingHeaderText",2),h([Xt({slot:"toast-body-detailed",flatten:!0})],Re.prototype,"detailedElements",2),h([lt()],Re.prototype,"hasFooterButtons",2);var ru=Re;ru.register(IE);var qI=ru;var XI=[Tt,z`
7758
+ `}};Re.styles=[...Q.styles,..._E],h([Ht("[part='toast-header']")],Re.prototype,"headerTextElement",2),h([u({type:String,reflect:!0})],Re.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Re.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Re.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Re.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Re.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Re.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Re.prototype,"showLessText",2),h([lt()],Re.prototype,"isDetailVisible",2),h([lt()],Re.prototype,"hasDetailedSlot",2),h([lt()],Re.prototype,"hasOverflowingHeaderText",2),h([Xt({slot:"toast-body-detailed",flatten:!0})],Re.prototype,"detailedElements",2),h([lt()],Re.prototype,"hasFooterButtons",2);var ru=Re;ru.register(IE);var qI=ru;var XI=[xt,z`
7726
7759
  :host {
7727
7760
  --mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
7728
7761
  --mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
@@ -7800,7 +7833,7 @@
7800
7833
  :host([soft-disabled]) {
7801
7834
  pointer-events: none;
7802
7835
  }
7803
- `,...xt(!0)],wE=XI;var Ls=class extends Lt(xi(Ve(ve(oe(hr))))){constructor(){super(...arguments);this.checked=!1;this.size=om.SIZE;this.renderLabelAndHelperText=()=>this.label?A`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:H}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===K.SPACE&&t.preventDefault(),e===K.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ol).includes(t)?t:om.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return A`
7836
+ `,...At(!0)],wE=XI;var Ls=class extends Lt(xi(Ve(ve(oe(hr))))){constructor(){super(...arguments);this.checked=!1;this.size=om.SIZE;this.renderLabelAndHelperText=()=>this.label?A`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:G}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&this.controlType!=="controlled"&&(this.checked=!this.checked)}click(){super.click(),this.toggleState()}handleKeyDown(t){var i;let e=this.getActionForKeyEvent(t);if(this.softDisabled&&e===H.ENTER){t.preventDefault();return}(this.readonly||this.softDisabled)&&e===H.SPACE&&t.preventDefault(),e===H.ENTER&&this.getKeyboardNavMode()===re.DEFAULT&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(ol).includes(t)?t:om.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return A`
7804
7837
  <mdc-statictoggle
7805
7838
  ?checked="${this.checked}"
7806
7839
  ?disabled="${this.disabled}"
@@ -7820,6 +7853,7 @@
7820
7853
  value="${tt(this.value)}"
7821
7854
  .checked="${this.checked}"
7822
7855
  aria-checked="${this.checked}"
7856
+ aria-disabled="${this.disabled||this.softDisabled}"
7823
7857
  .disabled="${this.disabled}"
7824
7858
  ?readonly="${this.readonly}"
7825
7859
  aria-describedby="${tt(this.helpText?Kt.HELPER_TEXT_ID:"")}"
@@ -7830,7 +7864,7 @@
7830
7864
  />
7831
7865
  </mdc-statictoggle>
7832
7866
  ${this.renderLabelAndHelperText()}
7833
- `}};Ls.styles=[...hr.styles,...wE],Ls.shadowRootOptions={...hr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],Ls.prototype,"checked",2),h([u({type:String,reflect:!0})],Ls.prototype,"size",2);var iu=Ls;iu.register(Ey);var ZI=iu;function Ms(n,o,t){var d;let e=(d=t.initialDeps)!=null?d:[],i;function a(){var f,v,S,R;let U;t.key&&((f=t.debug)!=null&&f.call(t))&&(U=Date.now());let J=n();if(!(J.length!==e.length||J.some((rt,st)=>e[st]!==rt)))return i;e=J;let Z;if(t.key&&((v=t.debug)!=null&&v.call(t))&&(Z=Date.now()),i=o(...J),t.key&&((S=t.debug)!=null&&S.call(t))){let rt=Math.round((Date.now()-U)*100)/100,st=Math.round((Date.now()-Z)*100)/100,ht=st/16,bt=(yt,It)=>{for(yt=String(yt);yt.length<It;)yt=" "+yt;return yt};console.info(`%c\u23F1 ${bt(st,5)} /${bt(rt,5)} ms`,`
7867
+ `}};Ls.styles=[...hr.styles,...wE],Ls.shadowRootOptions={...hr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],Ls.prototype,"checked",2),h([u({type:String,reflect:!0})],Ls.prototype,"size",2);var iu=Ls;iu.register(Ey);var ZI=iu;function Ms(n,o,t){var d;let e=(d=t.initialDeps)!=null?d:[],i;function a(){var f,v,S,R;let U;t.key&&((f=t.debug)!=null&&f.call(t))&&(U=Date.now());let J=n();if(!(J.length!==e.length||J.some((rt,st)=>e[st]!==rt)))return i;e=J;let Z;if(t.key&&((v=t.debug)!=null&&v.call(t))&&(Z=Date.now()),i=o(...J),t.key&&((S=t.debug)!=null&&S.call(t))){let rt=Math.round((Date.now()-U)*100)/100,st=Math.round((Date.now()-Z)*100)/100,ht=st/16,bt=(yt,Ct)=>{for(yt=String(yt);yt.length<Ct;)yt=" "+yt;return yt};console.info(`%c\u23F1 ${bt(st,5)} /${bt(rt,5)} ms`,`
7834
7868
  font-size: .6rem;
7835
7869
  font-weight: bold;
7836
7870
  color: hsl(${Math.max(0,Math.min(120-120*ht,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(R=t==null?void 0:t.onChange)==null||R.call(t,i),i}return a.updateDeps=f=>{e=f},a}function ou(n,o){if(n===void 0)throw new Error(`Unexpected undefined${o?`: ${o}`:""}`);return n}var kE=(n,o)=>Math.abs(n-o)<1.01,NE=(n,o,t)=>{let e;return function(...i){n.clearTimeout(e),e=n.setTimeout(()=>o.apply(this,i),t)}};var LE=n=>{let{offsetWidth:o,offsetHeight:t}=n;return{width:o,height:t}},QI=n=>n,su=n=>{let o=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),e=[];for(let i=o;i<=t;i++)e.push(i);return e},RE=(n,o)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let i=d=>{let{width:f,height:v}=d;o({width:Math.round(f),height:Math.round(v)})};if(i(LE(t)),!e.ResizeObserver)return()=>{};let a=new e.ResizeObserver(d=>{let f=()=>{let v=d[0];if(v!=null&&v.borderBoxSize){let S=v.borderBoxSize[0];if(S){i({width:S.inlineSize,height:S.blockSize});return}}i(LE(t))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return a.observe(t,{box:"border-box"}),()=>{a.unobserve(t)}},ME={passive:!0};var OE=typeof window>"u"?!0:"onscrollend"in window,DE=(n,o)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let i=0,a=n.options.useScrollendEvent&&OE?()=>{}:NE(e,()=>{o(i,!1)},n.options.isScrollingResetDelay),d=R=>()=>{let{horizontal:U,isRtl:J}=n.options;i=U?t.scrollLeft*(J&&-1||1):t.scrollTop,a(),o(i,R)},f=d(!0),v=d(!1);v(),t.addEventListener("scroll",f,ME);let S=n.options.useScrollendEvent&&OE;return S&&t.addEventListener("scrollend",v,ME),()=>{t.removeEventListener("scroll",f),S&&t.removeEventListener("scrollend",v)}};var JI=(n,o,t)=>{if(o!=null&&o.borderBoxSize){let e=o.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return n[t.options.horizontal?"offsetWidth":"offsetHeight"]};var PE=(n,{adjustments:o=0,behavior:t},e)=>{var i,a;let d=n+o;(a=(i=e.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[e.options.horizontal?"left":"top"]:d,behavior:t})},Wc=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,e=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{let d=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var i;(i=e())==null||i.disconnect(),t=null},observe:i=>{var a;return(a=e())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=e())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,i])=>{typeof i>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:QI,rangeExtractor:su,onChange:()=>{},measureElement:JI,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 e,i;(i=(e=this.options).onChange)==null||i.call(e,this,t)},this.maybeNotify=Ms(()=>(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 i;var t;let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(t=this.scrollElement)==null?void 0:t.window)!=null?i:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,d)=>{this.scrollAdjustments=0,this.scrollDirection=d?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=d,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,e)=>{let i=new Map,a=new Map;for(let d=e-1;d>=0;d--){let f=t[d];if(i.has(f.lane))continue;let v=a.get(f.lane);if(v==null||f.end>v.end?a.set(f.lane,f):f.end<v.end&&i.set(f.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((d,f)=>d.end===f.end?d.index-f.index:d.end-f.end)[0]:void 0},this.getMeasurementOptions=Ms(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,i,a,d)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:i,getItemKey:a,enabled:d}),{key:!1}),this.getMeasurements=Ms(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:i,getItemKey:a,enabled:d},f)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(R=>{this.itemSizeCache.set(R.key,R.size)}));let v=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let S=this.measurementsCache.slice(0,v);for(let R=v;R<t;R++){let U=a(R),J=this.options.lanes===1?S[R-1]:this.getFurthestMeasurement(S,R),j=J?J.end+this.options.gap:e+i,Z=f.get(U),rt=typeof Z=="number"?Z:this.options.estimateSize(R),st=j+rt,ht=J?J.lane:R%this.options.lanes;S[R]={index:R,start:j,size:rt,end:st,key:U,lane:ht}}return this.measurementsCache=S,S},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ms(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,i,a)=>this.range=t.length>0&&e>0?tC({measurements:t,outerSize:e,scrollOffset:i,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ms(()=>{let t=null,e=null,i=this.calculateRange();return i&&(t=i.startIndex,e=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,i,a,d)=>a===null||d===null?[]:t({startIndex:a,endIndex:d,overscan:e,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,i=t.getAttribute(e);return i?parseInt(i,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let i=this.indexFromElement(t),a=this.measurementsCache[i];if(!a)return;let d=a.key,f=this.elementsCache.get(d);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(d,t)),t.isConnected&&this.resizeItem(i,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let i=this.measurementsCache[t];if(!i)return;let a=(f=this.itemSizeCache.get(i.key))!=null?f:i.size,d=e-a;d!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,d,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,i)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(i))});return}this._measureElement(t,void 0)},this.getVirtualItems=Ms(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let i=[];for(let a=0,d=t.length;a<d;a++){let f=t[a],v=e[f];i.push(v)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return ou(e[FE(0,e.length-1,i=>ou(e[i]).start,t)])},this.getOffsetForAlignment=(t,e,i=0)=>{let a=this.getSize(),d=this.getScrollOffset();e==="auto"&&(e=t>=d+a?"end":"start"),e==="center"?t+=(i-a)/2:e==="end"&&(t-=a);let f=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(f,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let i=this.measurementsCache[t];if(!i)return;let a=this.getSize(),d=this.getScrollOffset();if(e==="auto")if(i.end>=d+a-this.options.scrollPaddingEnd)e="end";else if(i.start<=d+this.options.scrollPaddingStart)e="start";else return[d,e];let f=e==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,i.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,e),{adjustments:void 0,behavior:i})},this.scrollToIndex=(t,{align:e="auto",behavior:i}={})=>{i==="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 a=0,d=10,f=S=>{if(!this.targetWindow)return;let R=this.getOffsetForIndex(t,S);if(!R){console.warn("Failed to get offset for index:",t);return}let[U,J]=R;this._scrollToOffset(U,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{let j=this.getScrollOffset(),Z=this.getOffsetForIndex(t,J);if(!Z){console.warn("Failed to get offset for index:",t);return}kE(Z[0],j)||v(J)})},v=S=>{this.targetWindow&&(a++,a<d?this.targetWindow.requestAnimationFrame(()=>f(S)):console.warn(`Failed to scroll to index ${t} after ${d} attempts.`))};f(e)},this.scrollBy=(t,{behavior:e}={})=>{e==="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:e})},this.getTotalSize=()=>{var a;var t;let e=this.getMeasurements(),i;if(e.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=(a=(t=e[e.length-1])==null?void 0:t.end)!=null?a:0;else{let d=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&d.some(v=>v===null);){let v=e[f];d[v.lane]===null&&(d[v.lane]=v.end),f--}i=Math.max(...d.filter(v=>v!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(o)}},FE=(n,o,t,e)=>{for(;n<=o;){let i=(n+o)/2|0,a=t(i);if(a<e)n=i+1;else if(a>e)o=i-1;else return i}return n>0?n-1:0};function tC({measurements:n,outerSize:o,scrollOffset:t,lanes:e}){let i=n.length-1,a=v=>n[v].start;if(n.length<=e)return{startIndex:0,endIndex:i};let d=FE(0,i,a,t),f=d;if(e===1)for(;f<i&&n[f].end<t+o;)f++;else if(e>1){let v=Array(e).fill(0);for(;f<i&&v.some(R=>R<t+o);){let R=n[f];v[R.lane]=R.end,f++}let S=Array(e).fill(t+o);for(;d>=0&&S.some(R=>R>=t);){let R=n[d];S[R.lane]=R.start,d--}d=Math.max(0,d-d%e),f=Math.min(i,f+(e-1-f%e))}return{startIndex:d,endIndex:f}}var au=class{constructor(o,t){this.cleanup=()=>{},(this.host=o).addController(this);let e={...t,onChange:(i,a)=>{var d;this.host.updateComplete.then(()=>this.host.requestUpdate()),(d=t.onChange)==null||d.call(t,i,a)}};this.virtualizer=new Wc(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Yc=class extends au{constructor(o,t){super(o,{observeElementRect:RE,observeElementOffset:DE,scrollToFn:PE,...t})}};var eC={includeEnd:!1},jc=class{constructor(o,t,e={}){let i={...eC,...e};this.start=o,this.end=t,this.includeEnd=i.includeEnd}includes(o){let{start:t,end:e,includeEnd:i}=this,a=Math.min(t,e),d=Math.max(t,e);return i?o>=a&&o<=d:o>=a&&o<d}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:e,end:i}=this,a=this.start,d=!1;return{next:()=>{if(d)return{value:void 0,done:!0};let f=a;return a+=t,(e?f>i:f>=i)?(d=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var qc=class{constructor(o,t,e){this.getIndex=()=>0;this.items=o,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(o){return this.items.find(t=>this.getIndex(t)===o)}map(o,t){return this.items.map((e,i,a)=>o.call(t,e,this.getIndex(e),a))}forEach(o,t){this.items.forEach((e,i,a)=>{o.call(t,e,this.getIndex(e),a)})}findIndex(o,t){let e=this.items.find((i,a,d)=>o.call(t,i,this.getIndex(i),d));return e?this.getIndex(e):-1}find(o,t){return this.items.find((e,i,a)=>o.call(t,e,this.getIndex(e),a))}};var rC=[z`
@@ -7863,7 +7897,7 @@
7863
7897
  ::slotted(mdc-listitem) {
7864
7898
  position: relative;
7865
7899
  }
7866
- `],$E=rC;var VE=$.constructTagName("virtualizedlist"),tst=$.constructTagName("virtualizedwrapper"),Da={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var br=class extends oe(qi){constructor(){super();this.virtualizerProps=Da.VIRTUALIZER_PROPS;this.loop=Da.LOOP;this.scrollAnchoring=Da.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Da.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(a=>a===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Xn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Qt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:Da.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,a;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let d=(a=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?a:"data-index";this.virtualizedNavItems=new qc(super.navItems,f=>Number(f.getAttribute(d)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Yc(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!==Xn.VERTICAL&&(this.orientation=Xn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,a;this.observeSizeChanges&&((a=(i=this.virtualizer)==null?void 0:i.measureElement)==null||a.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var a,d;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((a=t==null?void 0:t.count)!=null?a:0)),v=this.selectedIndex,S=this.firstKey,R=new jc(v-f,v+f,{includeEnd:!0}),U=(d=Array.from(R).find(j=>e.options.getItemKey(j)===this.selectedKey))!=null?d:this.selectedIndex;if(this.setSelectedIndex(U),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&v!==this.selectedIndex||!this.focusWithin&&this.firstKey!==S){let j=e.measurementsCache[this.selectedIndex].end-i[v].end;this.scrollRef.scrollTop+=j}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,a,d,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(d=(a=this.virtualizer)==null?void 0:a.getVirtualItems)==null?void 0:d.call(a))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var v,S,R,U;let{navItems:e,virtualizerProps:i,virtualizer:a}=this,d=(S=(v=i.rangeExtractor)==null?void 0:v.call(i,t))!=null?S:su(t);return this.hiddenIndexes.forEach(J=>{let j=e.at(J);j&&(j.removeAttribute("data-virtualized-hidden"),j.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(U=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?U:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var j;d.includes(J)||(J<t.startIndex&&J>=0&&(d.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((j=a==null?void 0:a.options.count)!=null?j:0)&&(d.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),d.sort((J,j)=>J-j),d}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:a}=this;if(!a||i.count===0)return;let{measurementsCache:d}=a;this.hiddenIndexes.forEach(f=>{let v=e.at(f);if(v){let S=Math.max(t.startIndex-t.overscan,0),R=d[S],U=d[f];v.setAttribute("data-virtualized-hidden","true"),v.style.setProperty("--mdc-virtualizedlist-hidden-top",`${U.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let a=this.isElementSelected(t);if(t.tabIndex=a?0:-1,!a&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let d=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);d!==void 0&&this.setSelectedIndex(d)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,a,d,f;switch(this.getActionForKeyEvent(t)){case K.HOME:{(a=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||a.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case K.END:{let v=this.virtualizerProps.count-1;(f=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||f.call(d,v,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(v));break}case K.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let a=t;a>=0&&a<i;a+=e)if(this.isItemNavigable(a))return a;return null}resetTabIndexAndSetFocus(t,e,i=!0,a=i){if(this.navItems.find(v=>{var S;return((S=this.virtualizer)==null?void 0:S.indexFromElement(v))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let v=t>=e?1:-1,S=this.findNextNavigableIndex(t+v,v);return S!==null?this.resetTabIndexAndSetFocus(S,e,i,a):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,a),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,a);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,a;(a=(i=this.virtualizer).scrollToIndex)==null||a.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var a;let t=this.virtualItems.find(({index:d})=>!this.hiddenIndexes.includes(d)),e=(a=t==null?void 0:t.start)!=null?a:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return A`
7900
+ `],$E=rC;var VE=$.constructTagName("virtualizedlist"),tst=$.constructTagName("virtualizedwrapper"),Da={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n,isItemNavigable:()=>!0},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var br=class extends oe(qi){constructor(){super();this.virtualizerProps=Da.VIRTUALIZER_PROPS;this.loop=Da.LOOP;this.scrollAnchoring=Da.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=Da.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,i;this.observeSizeChanges&&this.navItems.find(a=>a===t.target)!==void 0&&((i=(e=this.virtualizer)==null?void 0:e.measureElement)==null||i.call(e,t.target))};this.orientation=Xn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Qt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get isItemNavigable(){var t;return(t=this.virtualizerProps.isItemNavigable)!=null?t:Da.VIRTUALIZER_PROPS.isItemNavigable}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,i,a;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let d=(a=(i=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:i.indexAttribute)!=null?a:"data-index";this.virtualizedNavItems=new qc(super.navItems,f=>Number(f.getAttribute(d)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Yc(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!==Xn.VERTICAL&&(this.orientation=Xn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var i,a;this.observeSizeChanges&&((a=(i=this.virtualizer)==null?void 0:i.measureElement)==null||a.call(i,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var a,d;let{virtualizer:e}=this;if(!e)return;let i=e.measurementsCache.slice();if(e.setOptions({...e.options,...this.virtualizerProps}),this.virtualizerProps.count!==(t==null?void 0:t.count)&&(this.emitChangeEvent(),this.syncUI()),this.scrollAnchoring&&i.length>0){let f=Math.abs(this.virtualizerProps.count-((a=t==null?void 0:t.count)!=null?a:0)),v=this.selectedIndex,S=this.firstKey,R=new jc(v-f,v+f,{includeEnd:!0}),U=(d=Array.from(R).find(j=>e.options.getItemKey(j)===this.selectedKey))!=null?d:this.selectedIndex;if(this.setSelectedIndex(U),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&v!==this.selectedIndex||!this.focusWithin&&this.firstKey!==S){let j=e.measurementsCache[this.selectedIndex].end-i[v].end;this.scrollRef.scrollTop+=j}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,i,a,d,f;(i=(e=this.virtualizerProps).onChange)==null||i.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(d=(a=this.virtualizer)==null?void 0:a.getVirtualItems)==null?void 0:d.call(a))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var v,S,R,U;let{navItems:e,virtualizerProps:i,virtualizer:a}=this,d=(S=(v=i.rangeExtractor)==null?void 0:v.call(i,t))!=null?S:su(t);return this.hiddenIndexes.forEach(J=>{let j=e.at(J);j&&(j.removeAttribute("data-virtualized-hidden"),j.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(U=(R=this.virtualizer)==null?void 0:R.options.getItemKey(this.firstIndex))!=null?U:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(J=>{var j;d.includes(J)||(J<t.startIndex&&J>=0&&(d.unshift(J),this.hiddenIndexes.push(J)),J>t.endIndex&&J<((j=a==null?void 0:a.options.count)!=null?j:0)&&(d.push(J),this.hiddenIndexes.push(J)))}),this.updateHiddenItemsPosition(t),d.sort((J,j)=>J-j),d}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:i,virtualizer:a}=this;if(!a||i.count===0)return;let{measurementsCache:d}=a;this.hiddenIndexes.forEach(f=>{let v=e.at(f);if(v){let S=Math.max(t.startIndex-t.overscan,0),R=d[S],U=d[f];v.setAttribute("data-virtualized-hidden","true"),v.style.setProperty("--mdc-virtualizedlist-hidden-top",`${U.start-R.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:i}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=i(t)}}onElementStoreUpdate(t,e){var i;if(e==="added"){let a=this.isElementSelected(t);if(t.tabIndex=a?0:-1,!a&&super.navItems.length===0&&!this.isItemNavigable(this.selectedIndex)){t.tabIndex=0;let d=(i=this.virtualizer)==null?void 0:i.indexFromElement(t);d!==void 0&&this.setSelectedIndex(d)}this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(i=>i()),this.endOfScrollQueue.length=0),this.checkAtBottom(),this.emitChangeEvent()}onScrollHandler(t){let e=t.target;this.atBottom==="re-evaluate"||e.scrollTop<this.lastScrollPosition?this.atBottom="no":this.checkAtBottom(),this.lastScrollPosition=e.scrollTop}checkAtBottom(){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-i<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var i,a,d,f;switch(this.getActionForKeyEvent(t)){case H.HOME:{(a=(i=this.virtualizer)==null?void 0:i.scrollToIndex)==null||a.call(i,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case H.END:{let v=this.virtualizerProps.count-1;(f=(d=this.virtualizer)==null?void 0:d.scrollToIndex)==null||f.call(d,v,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(v));break}case H.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}findNextNavigableIndex(t,e){let{count:i}=this.virtualizerProps;for(let a=t;a>=0&&a<i;a+=e)if(this.isItemNavigable(a))return a;return null}resetTabIndexAndSetFocus(t,e,i=!0,a=i){if(this.navItems.find(v=>{var S;return((S=this.virtualizer)==null?void 0:S.indexFromElement(v))===t})===void 0){if(!this.isItemNavigable(t)&&e!==void 0){let v=t>=e?1:-1,S=this.findNextNavigableIndex(t+v,v);return S!==null?this.resetTabIndexAndSetFocus(S,e,i,a):!1}return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,i,a),this.setSelectedIndex(t)}),!0}let f=super.resetTabIndexAndSetFocus(t,e,i,a);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,i;t.setAttribute("aria-setsize",`${(i=(e=this.virtualizer)==null?void 0:e.options.count)!=null?i:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:i}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-i),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var i,a;(a=(i=this.virtualizer).scrollToIndex)==null||a.call(i,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var a;let t=this.virtualItems.find(({index:d})=>!this.hiddenIndexes.includes(d)),e=(a=t==null?void 0:t.start)!=null?a:0;window.getComputedStyle(this);let i=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(i=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${i+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return A`
7867
7901
  <slot name="list-header"></slot>
7868
7902
  <div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
7869
7903
  <div part="wrapper">
@@ -7981,7 +8015,7 @@
7981
8015
  --mdc-icon-fill-color: ButtonText;
7982
8016
  }
7983
8017
  }
7984
- `,UE=[sC];var ke=class extends Ot(Lt(Ti(Ve(ve(oe(xi(ee))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.filter=du.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(d=>d.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let d=t;if(d&&(!this.isValidItem(d)||d.tabIndex!==0))return;let f=this.navItems.findIndex(S=>S===d);if(f===-1)return;let v=f+1;v>=this.navItems.length&&(v=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(Cr)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===du.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let a=(t==null?void 0:t.getAttribute("label"))||"",d=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===d&&this.filteredValue===a)){if(this.controlType==="controlled"&&!i){e&&($o.onInputCombobox(this,t),$o.onChangeCombobox(this,t));return}this.filteredValue=a,this.value=d,this.lastCommittedValue=d,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&($o.onInputCombobox(this,t),$o.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=te.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let a=null;if(i!==""){let d=this.getFirstSelectedOption(),f=this.navItems.find(v=>v.value===i);if(f)a=f;else if(d)a=d;else if(this.placeholder)a=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(a,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,a;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(a=this.visualCombobox)==null||a.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(a=>a.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(a=>(a.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let a=this.navItems.find(d=>d.value===this.lastCommittedValue);this.setSelectedValue(a)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=te.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var a;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(a=t[i])==null||a.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),i=e.findIndex(d=>d.hasAttribute("data-focused")),a=this.getKeyboardNavMode()===re.SPATIAL;switch(this.getActionForKeyEvent(t)){case K.DOWN:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case K.UP:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case K.ENTER:{if(a&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case K.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case K.TAB:{this.closePopover(),this.keyDownEventHandled();break}case K.HOME:case K.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let a=this.matchesFilter(i,this.filteredValue);a?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let d=i.parentElement;if(d&&d.matches(Sc)){let v=d;e.add(v),a&&t.set(v,((f=t.get(v))!=null?f:0)+1)}}),e.forEach(i=>{var f;let a=((f=t.get(i))!=null?f:0)>0,d=i.nextElementSibling;a?(i.removeAttribute("data-hidden"),d&&d.matches(Gn)&&d.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),d&&d.matches(Gn)&&d.setAttribute("data-hidden",""))})}handleInputChange(t){var e;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),$o.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var i;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(Cr))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return A`
8018
+ `,UE=[sC];var ke=class extends Ot(Lt(Ti(Ve(ve(oe(xi(ee))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.filter=du.MATCH_STARTS_WITH;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,i,a)=>{switch(e){case"added":t.setAttribute("tabindex",i===0&&a.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(d=>d.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let d=t;if(d&&(!this.isValidItem(d)||d.tabIndex!==0))return;let f=this.navItems.findIndex(S=>S===d);if(f===-1)return;let v=f+1;v>=this.navItems.length&&(v=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Dr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}get listboxId(){return`${this.inputId}-listbox`}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(Cr)}openPopover(){this.disabled||this.softDisabled||this.readonly||(this.isOpen=!0)}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}matchesFilter(t,e){return typeof this.filter=="function"?this.filter(t,e):this.filter===du.NONE?!0:this.compareOptionWithValue(t,e)}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.matchesFilter(e,t))}focusComboboxBase(){this.disabled||this.updateComplete.then(()=>{var t;(t=this.visualCombobox)==null||t.focus({preventScroll:!0})}).catch(this.handleUpdateError)}handleTriggerClick(){this.disabled||this.softDisabled||this.readonly||(this.isOpen=!this.isOpen,this.focusComboboxBase())}setSelectedValue(t,e=!0,i=!1){let a=(t==null?void 0:t.getAttribute("label"))||"",d=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===d&&this.filteredValue===a)){if(this.controlType==="controlled"&&!i){e&&($o.onInputCombobox(this,t),$o.onChangeCombobox(this,t));return}this.filteredValue=a,this.value=d,this.lastCommittedValue=d,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!i&&t&&($o.onInputCombobox(this,t),$o.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=te.DEFAULT)}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),t==="value"&&this.navItems.length&&!(e===null&&i==="")){let a=null;if(i!==""){let d=this.getFirstSelectedOption(),f=this.navItems.find(v=>v.value===i);if(f)a=f;else if(d)a=d;else if(this.placeholder)a=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(a,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(i=>{i.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){var i,a;super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes));let e=(i=this.slottedListboxes)==null?void 0:i[0];e&&(e.id=this.listboxId,e.setAttribute("aria-label",this.label||this.dataAriaLabel||""),(a=this.visualCombobox)==null||a.setAttribute("aria-controls",this.listboxId)),(t.has("disabled")||t.has("softDisabled")||t.has("readonly"))&&(this.disabled||this.softDisabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,e;!this.value&&this.required?(this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){var e;let t=this.initialSelectedOption||null;this.setSelectedValue(t,!1,!0),this.controlType!=="controlled"&&(this.filteredValue=(e=t==null?void 0:t.label)!=null?e:""),this.setInputValidity()}formStateRestoreCallback(t){let e=this.navItems.find(i=>i.value===t||i.label===t);this.setSelectedValue(e||null,!1,!0)}handleNativeInputFocus(){this.visualCombobox.focus()}resetFocusedOption(){this.navItems.filter(t=>t.hasAttribute("data-focused")).forEach(t=>this.updateOptionAttributes(t,!1))}updateSelectedOption(t){this.navItems.forEach(e=>{e.removeAttribute("selected")}),t==null||t.setAttribute("selected","")}updateOptionAttributes(t,e){t!==void 0&&(e?(t.setAttribute("data-focused",""),this.openTooltipIfExists(t)):(t.removeAttribute("data-focused"),this.closeTooltipIfExists(t)),t.setAttribute("aria-selected",e.toString()))}openTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);i==null||i.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let i=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);i&&i.removeAttribute("visible")}handleBlurChange(){if(this.disabled||this.softDisabled||this.readonly)return;let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(a=>a.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let i=this.navItems.find(a=>(a.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(i){this.setSelectedValue(i),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let a=this.navItems.find(d=>d.value===this.lastCommittedValue);this.setSelectedValue(a)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=te.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,i){var a;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[i],!0),(a=t[i])==null||a.scrollIntoView({block:"nearest"})}handleInputKeydown(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getVisibleOptions(this.filteredValue).filter(d=>!d.hasAttribute("disabled")),i=e.findIndex(d=>d.hasAttribute("data-focused")),a=this.getKeyboardNavMode()===re.SPATIAL;switch(this.getActionForKeyEvent(t)){case H.DOWN:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=e.length-1===i?0:i+1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case H.UP:{if(!a)this.openPopover();else if(!this.isOpen)break;let d=i===-1||i===0?e.length-1:i-1;this.updateFocusAndScrollIntoView(e,i,d),t.preventDefault(),this.keyDownEventHandled();break}case H.ENTER:{if(a&&!this.isOpen)this.openPopover();else{if(i===-1)return;this.setSelectedValue(e[i]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case H.ESCAPE:{i!==-1&&this.updateOptionAttributes(e[i],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case H.TAB:{this.closePopover(),this.keyDownEventHandled();break}case H.HOME:case H.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(i=>{var f;let a=this.matchesFilter(i,this.filteredValue);a?i.removeAttribute("data-hidden"):i.setAttribute("data-hidden","");let d=i.parentElement;if(d&&d.matches(Sc)){let v=d;e.add(v),a&&t.set(v,((f=t.get(v))!=null?f:0)+1)}}),e.forEach(i=>{var f;let a=((f=t.get(i))!=null?f:0)>0,d=i.nextElementSibling;a?(i.removeAttribute("data-hidden"),d&&d.matches(Gn)&&d.removeAttribute("data-hidden")):(i.setAttribute("data-hidden",""),d&&d.matches(Gn)&&d.setAttribute("data-hidden",""))})}handleInputChange(t){var e;this.preventSoftDisabledChange(t,this.filteredValue)||(t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),$o.onInputCombobox(this,{value:this.filteredValue}))}handleOptionsClick(t){var i;if(this.disabled||this.softDisabled||this.readonly)return;t.preventDefault(),t.stopPropagation();let e=(i=t.target.closest(Cr))!=null?i:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.softDisabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return A`
7985
8019
  <input
7986
8020
  id="${this.inputId}"
7987
8021
  name="${this.name}"
@@ -8010,13 +8044,14 @@
8010
8044
  role="${et.COMBOBOX}"
8011
8045
  ?readonly="${this.readonly}"
8012
8046
  ?required="${this.required}"
8047
+ @beforeinput=${this.preventSoftDisabledInput}
8013
8048
  @input=${this.handleInputChange}
8014
8049
  @keydown=${this.handleInputKeydown}
8015
8050
  @blur="${this.handleBlurChange}"
8016
8051
  aria-autocomplete="${BE}"
8017
8052
  aria-controls=""
8018
8053
  aria-describedby="${tt(this.helpText?Kt.HELPER_TEXT_ID:"")}"
8019
- aria-disabled="${this.disabled?"true":"false"}"
8054
+ aria-disabled="${this.disabled||this.softDisabled}"
8020
8055
  aria-expanded="${this.isOpen?"true":"false"}"
8021
8056
  aria-haspopup="${et.LISTBOX}"
8022
8057
  aria-invalid="${this.helpTextType===te.ERROR?"true":"false"}"
@@ -8025,7 +8060,7 @@
8025
8060
  aria-readonly="${this.readonly?"true":"false"}"
8026
8061
  aria-required="${this.required?"true":"false"}"
8027
8062
  />
8028
- `}renderNoResultsText(t){return t===0&&this.noResultText?A`<mdc-listitem part="no-result-text" tabindex="-1" role="" label="${this.noResultText}"></mdc-listitem>`:H}render(){var e;let t=this.getVisibleOptions(this.filteredValue);return A`
8063
+ `}renderNoResultsText(t){return t===0&&this.noResultText?A`<mdc-listitem part="no-result-text" tabindex="-1" role="" label="${this.noResultText}"></mdc-listitem>`:G}render(){var e;let t=this.getVisibleOptions(this.filteredValue);return A`
8029
8064
  ${this.renderLabel()}
8030
8065
  <div part="combobox-base" id="${cu}">
8031
8066
  ${this.renderNativeInput()}
@@ -8033,6 +8068,7 @@
8033
8068
  @click="${this.handleTriggerClick}"
8034
8069
  ?disabled="${this.disabled}"
8035
8070
  ?readonly="${this.readonly}"
8071
+ ?soft-disabled="${this.softDisabled}"
8036
8072
  help-text-type="${this.helpTextType}"
8037
8073
  >
8038
8074
  ${this.renderBaseInput()}
@@ -8040,6 +8076,7 @@
8040
8076
  <mdc-buttonsimple
8041
8077
  @click="${this.handleTriggerClick}"
8042
8078
  part="combobox-button"
8079
+ ?soft-disabled="${this.softDisabled}"
8043
8080
  ?disabled="${this.disabled}"
8044
8081
  tabindex="-1"
8045
8082
  aria-expanded="${this.isOpen?"true":"false"}"
@@ -8299,12 +8336,12 @@
8299
8336
  border: 1px solid;
8300
8337
  }
8301
8338
  }
8302
- `,WE=[Ur,lC];var $t=class extends Ot(Lt(Q)){constructor(){super();this.thumbFocused=Vo.STATE;this.thumbHovered=Vo.STATE;this.range=!1;this.min=Vo.MIN;this.max=Vo.MAX;this.step=Vo.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 i;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===re.SPATIAL){if(this.softDisabled)return;let a=(i=this.shadowRoot)==null?void 0:i.activeElement,d=(a==null?void 0:a.tagName)==="INPUT";if(t.preventDefault(),!d){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&e===K.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((e===K.ENTER||e===K.ESCAPE||e===K.UP||e===K.DOWN)&&(this.spatialNavEditMode=!1,(e===K.ENTER||e===K.ESCAPE)&&this.keyDownEventHandled()),e===K.LEFT&&(a==null||a.stepDown(),this.keyDownEventHandled(),this.handleInput(a)),e===K.RIGHT&&(a==null||a.stepUp(),this.keyDownEventHandled(),this.handleInput(a)))}else this.softDisabled&&e!==K.TAB&&(t.preventDefault(),t.stopPropagation())}setSoftDisabled(){this.inputElements.forEach(t=>{let e=t;this.softDisabled?e.setAttribute("aria-disabled","true"):e.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 e=Array.from(this.inputElements);if(!e.includes(t))return;if(e.length===1){this.value=Number(t.value);return}let i=e.indexOf(t),a=e[i];if(i===0){if(!this.valueEnd)return;let d=Number(a.value);d>this.valueEnd?(a.value=String(this.valueEnd),this.valueStart=this.valueEnd):d>=this.min&&d<this.valueEnd?this.valueStart=d:d<this.min&&(a.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let d=Number(a.value);d<this.valueStart?(a.value=String(this.valueStart),this.valueEnd=this.valueStart):d<=this.max&&d>this.valueStart?this.valueEnd=d:d>this.max&&(a.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,e){return typeof t=="string"&&t.length>0?A`<mdc-icon
8339
+ `,WE=[Ur,lC];var $t=class extends Ot(Lt(Q)){constructor(){super();this.thumbFocused=Vo.STATE;this.thumbHovered=Vo.STATE;this.range=!1;this.min=Vo.MIN;this.max=Vo.MAX;this.step=Vo.STEP;this.spatialNavEditMode=!1;this.addEventListener("keydown",this.handleKeyEvent.bind(this)),this.addEventListener("mousedown",this.preventChange.bind(this)),this.addEventListener("pointerdown",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("range")||t.has("valueStart")||t.has("valueEnd"))&&this.initializeRangeSlider()}preventChange(t){this.softDisabled&&(t.preventDefault(),t.stopPropagation())}handleKeyEvent(t){var i;let e=this.getActionForKeyEvent(t);if(this.softDisabled){e!==H.TAB&&(t.preventDefault(),t.stopPropagation());return}if(this.getKeyboardNavMode()===re.SPATIAL){let a=(i=this.shadowRoot)==null?void 0:i.activeElement,d=(a==null?void 0:a.tagName)==="INPUT";if(t.preventDefault(),!d){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&e===H.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((e===H.ENTER||e===H.ESCAPE||e===H.UP||e===H.DOWN)&&(this.spatialNavEditMode=!1,(e===H.ENTER||e===H.ESCAPE)&&this.keyDownEventHandled()),e===H.LEFT&&(a==null||a.stepDown(),this.keyDownEventHandled(),this.handleInput(a)),e===H.RIGHT&&(a==null||a.stepUp(),this.keyDownEventHandled(),this.handleInput(a)))}}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 e=Array.from(this.inputElements);if(!e.includes(t))return;if(e.length===1){this.value=Number(t.value);return}let i=e.indexOf(t),a=e[i];if(i===0){if(!this.valueEnd)return;let d=Number(a.value);d>this.valueEnd?(a.value=String(this.valueEnd),this.valueStart=this.valueEnd):d>=this.min&&d<this.valueEnd?this.valueStart=d:d<this.min&&(a.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let d=Number(a.value);d<this.valueStart?(a.value=String(this.valueStart),this.valueEnd=this.valueStart):d<=this.max&&d>this.valueStart?this.valueEnd=d:d>this.max&&(a.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,e){return typeof t=="string"&&t.length>0?A`<mdc-icon
8303
8340
  name="${t}"
8304
8341
  part="${e}"
8305
8342
  length-unit="${Vo.ICON_LENGTH_UNIT}"
8306
8343
  size="${Vo.ICON_SIZE}"
8307
- ></mdc-icon>`:null}tooltipTemplate(t,e){let[i,a]=this.inputElements,d=e==="end"?a:i,f=Number(d==null?void 0:d.value);if(typeof f!="number"||Number.isNaN(f)||this.max===this.min||this.disabled||this.hideTooltip)return H;let v=(f-this.min)/(this.max-this.min);return A`<div part="slider-tooltip" aria-hidden="true" style="--mdc-slider-tooltip-left: ${v}">
8344
+ ></mdc-icon>`:null}tooltipTemplate(t,e){let[i,a]=this.inputElements,d=e==="end"?a:i,f=Number(d==null?void 0:d.value);if(typeof f!="number"||Number.isNaN(f)||this.max===this.min||this.disabled||this.hideTooltip)return G;let v=(f-this.min)/(this.max-this.min);return A`<div part="slider-tooltip" aria-hidden="true" style="--mdc-slider-tooltip-left: ${v}">
8308
8345
  ${t||f}
8309
8346
  </div> `}updateTrackStyling(){let t="var(--mdc-slider-progress-color)",e="var(--mdc-slider-track-color)";if((this.disabled||this.softDisabled)&&(t="var(--mds-color-theme-control-active-disabled)",e="var(--mds-color-theme-control-inactive-disabled)"),this.range){if(!this.inputElements[1])return;let i=Number(this.inputElements[0].value),a=Number(this.inputElements[1].value),d=Number(this.inputElements[0].max)||1,f=Math.max(0,Math.min(100,(i-this.min)/(d-this.min)*100)),v=Math.max(0,Math.min(100,(a-this.min)/(d-this.min)*100));this.inputElements[1].style.background=`linear-gradient(
8310
8347
  to right,
@@ -8314,9 +8351,9 @@
8314
8351
  ${t} ${v}%,
8315
8352
  ${e} ${v}%,
8316
8353
  ${e} 100%
8317
- )`}else{if(!this.inputElements[0])return;let i=Number(this.inputElements[0].value),a=Number(this.inputElements[0].max)||1,d=Math.max(0,Math.min(100,(i-this.min)/(a-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${d}%, ${e} ${d}%)`}}onInput(t){let e=t.target;this.handleInput(e)}onChange(t){let e=t.target;this.value=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value}}))}onChangeStart(t){let e=t.target;this.valueStart=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueStart:this.valueStart,valueEnd:this.valueEnd}}))}onChangeEnd(t){let e=t.target;this.valueEnd=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueEnd:this.valueEnd,valueStart:this.valueStart}}))}getTickStyles(t){if(this.max===this.min)return"";let e=(t-this.min)/(this.max-this.min),i=[];if(this.inputElements[0]){let d=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);i.push(d)}if(this.range&&this.inputElements[1]){let d=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);i.push(d)}return i.includes(e)?"display:none;":`--mdc-slider-tick-left:${e};`}renderTicks(){let t=[];if(this.step&&this.step>1)for(let e=this.min;e<=this.max;e+=this.step)t.push(e);return this.step>1?A` <div part="slider-ticks">
8354
+ )`}else{if(!this.inputElements[0])return;let i=Number(this.inputElements[0].value),a=Number(this.inputElements[0].max)||1,d=Math.max(0,Math.min(100,(i-this.min)/(a-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${d}%, ${e} ${d}%)`}}preventSoftDisabledChange(t){var a,d,f;if(!this.softDisabled)return!1;let e=t.currentTarget,i=(a=this.value)!=null?a:this.min;return this.range&&(i=e.id==="start-slider"?(d=this.valueStart)!=null?d:this.min:(f=this.valueEnd)!=null?f:this.max),e.value=String(i),t.stopImmediatePropagation(),!0}onInput(t){if(this.preventSoftDisabledChange(t))return;let e=t.target;this.handleInput(e)}onChange(t){if(this.preventSoftDisabledChange(t))return;let e=t.target;this.value=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value}}))}onChangeStart(t){if(this.preventSoftDisabledChange(t))return;let e=t.target;this.valueStart=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueStart:this.valueStart,valueEnd:this.valueEnd}}))}onChangeEnd(t){if(this.preventSoftDisabledChange(t))return;let e=t.target;this.valueEnd=Number(e.value),this.dispatchEvent(new CustomEvent("change",{detail:{valueEnd:this.valueEnd,valueStart:this.valueStart}}))}getTickStyles(t){if(this.max===this.min)return"";let e=(t-this.min)/(this.max-this.min),i=[];if(this.inputElements[0]){let d=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);i.push(d)}if(this.range&&this.inputElements[1]){let d=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);i.push(d)}return i.includes(e)?"display:none;":`--mdc-slider-tick-left:${e};`}renderTicks(){let t=[];if(this.step&&this.step>1)for(let e=this.min;e<=this.max;e+=this.step)t.push(e);return this.step>1?A` <div part="slider-ticks">
8318
8355
  ${GE(t,e=>e,e=>A`<span part="slider-tick" style=${this.getTickStyles(e)}></span>`)}
8319
- </div>`:H}render(){var t,e,i,a,d,f,v,S,R,U,J,j,Z,rt,st,ht,bt;return A`
8356
+ </div>`:G}render(){var t,e,i,a,d,f,v,S,R,U,J,j,Z,rt,st,ht,bt;return A`
8320
8357
  ${this.label?A`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
8321
8358
  <div part="slider-track">
8322
8359
  ${this.iconTemplate(this.leadingIcon,"leading-icon")}
@@ -8332,6 +8369,7 @@
8332
8369
  step="${(t=this.step)!=null?t:1}"
8333
8370
  .value="${String((e=this.valueStart)!=null?e:this.min)}"
8334
8371
  ?disabled="${this.disabled}"
8372
+ aria-disabled="${this.disabled||this.softDisabled||!1}"
8335
8373
  name="${(i=this.nameStart)!=null?i:""}"
8336
8374
  aria-valuemin="${this.min}"
8337
8375
  aria-valuemax="${this.max}"
@@ -8347,7 +8385,7 @@
8347
8385
  @mouseleave=${()=>{this.thumbHovered=void 0}}
8348
8386
  data-spatial-right="end-slider"
8349
8387
  />
8350
- ${this.thumbFocused==="start"||this.thumbHovered==="start"?this.tooltipTemplate(this.valueLabelStart):H}
8388
+ ${this.thumbFocused==="start"||this.thumbHovered==="start"?this.tooltipTemplate(this.valueLabelStart):G}
8351
8389
  <input
8352
8390
  id="end-slider"
8353
8391
  part="end-slider"
@@ -8357,6 +8395,7 @@
8357
8395
  step="${(d=this.step)!=null?d:1}"
8358
8396
  .value="${String((f=this.valueEnd)!=null?f:this.max)}"
8359
8397
  ?disabled="${this.disabled}"
8398
+ aria-disabled="${this.disabled||this.softDisabled||!1}"
8360
8399
  name="${(v=this.nameEnd)!=null?v:""}"
8361
8400
  aria-valuemin="${this.min}"
8362
8401
  aria-valuemax="${this.max}"
@@ -8372,7 +8411,7 @@
8372
8411
  @mouseleave=${()=>{this.thumbHovered=void 0}}
8373
8412
  data-spatial-left="start-slider"
8374
8413
  />
8375
- ${this.thumbFocused==="end"||this.thumbHovered==="end"?this.tooltipTemplate(this.valueLabelEnd,this.thumbFocused||this.thumbHovered):H}
8414
+ ${this.thumbFocused==="end"||this.thumbHovered==="end"?this.tooltipTemplate(this.valueLabelEnd,this.thumbFocused||this.thumbHovered):G}
8376
8415
  `:A`
8377
8416
  <input
8378
8417
  id="single-slider"
@@ -8383,6 +8422,7 @@
8383
8422
  step="${(R=this.step)!=null?R:1}"
8384
8423
  .value="${String((U=this.value)!=null?U:this.min)}"
8385
8424
  ?disabled="${this.disabled}"
8425
+ aria-disabled="${this.disabled||this.softDisabled||!1}"
8386
8426
  name="${(J=this.name)!=null?J:""}"
8387
8427
  aria-valuemin="${this.min}"
8388
8428
  aria-valuemax="${this.max}"
@@ -8397,7 +8437,7 @@
8397
8437
  @mouseenter=${()=>{this.disabled||(this.thumbHovered="start")}}
8398
8438
  @mouseleave=${()=>{this.thumbHovered=void 0}}
8399
8439
  />
8400
- ${this.thumbFocused==="start"||this.thumbHovered==="start"?this.tooltipTemplate(this.valueLabel):H}
8440
+ ${this.thumbFocused==="start"||this.thumbHovered==="start"?this.tooltipTemplate(this.valueLabel):G}
8401
8441
  `}
8402
8442
  </div>
8403
8443
  ${this.iconTemplate(this.trailingIcon,"trailing-icon")}
@@ -8508,7 +8548,7 @@
8508
8548
  }
8509
8549
  `,XE=[pC];var ZE=n=>{switch(n){case Pa.INFORMATIONAL:return ml.INFORMATIONAL_ICON_NAME;case Pa.SUCCESS:return ml.SUCCESS_ICON_NAME;case Pa.WARNING:return ml.WARNING_ICON_NAME;case Pa.ERROR:return ml.ERROR_ICON_NAME;default:return null}};var Os=class extends Q{constructor(){super(...arguments);this.variant=Xc.VARIANT}renderIcon(t){return t?A`
8510
8550
  <mdc-icon name="${t}" size="${Xc.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
8511
- `:H}getTextLabel(){return this.label?A`
8551
+ `:G}getTextLabel(){return this.label?A`
8512
8552
  <mdc-text
8513
8553
  part="leading-label"
8514
8554
  type="${this.secondaryLabel?at.BODY_MIDSIZE_BOLD:at.BODY_MIDSIZE_MEDIUM}"
@@ -8520,12 +8560,12 @@
8520
8560
  type="${at.BODY_MIDSIZE_REGULAR}"
8521
8561
  tagname="${pt.SPAN}"
8522
8562
  >${this.secondaryLabel}</mdc-text
8523
- >`:H}
8524
- `:H}render(){return A`
8563
+ >`:G}
8564
+ `:G}render(){return A`
8525
8565
  <slot name="content">
8526
8566
  <div part="leading">
8527
8567
  <slot name="leading-icon">
8528
- ${this.variant!==Xc.VARIANT?this.renderIcon(ZE(this.variant)):H}
8568
+ ${this.variant!==Xc.VARIANT?this.renderIcon(ZE(this.variant)):G}
8529
8569
  </slot>
8530
8570
  <slot name="leading-text">
8531
8571
  <div part="leading-text">${this.getTextLabel()}</div>
@@ -8586,7 +8626,7 @@
8586
8626
  padding-inline-start: var(--mdc-checkboxtree-indent, 1.5rem);
8587
8627
  }
8588
8628
  `,rT=[bC];var Jc=class extends Ei(va){constructor(){super();this.loop="false";this.pendingSynchronization=!1;this.handleSlotChange=()=>{this.rootTree.synchronizeTree()};this.handleCheckboxModified=t=>{this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(as)||this.scheduleSynchronizeTree()};this.handleCheckboxChange=t=>{if(this.isNested||!(t.target instanceof HTMLElement)||!t.target.matches(as))return;let e=t.target,i=this.getChildTree(e);i&&this.setDescendantState(i,e.checked),this.synchronizeParentStates()};this.addEventListener("change",this.handleCheckboxChange),this.addEventListener("modified",this.handleCheckboxModified)}connectedCallback(){var e;let t=this.getAttribute("aria-label");super.connectedCallback(),this.generatedAriaLabel===void 0&&t===null&&(this.generatedAriaLabel=(e=this.label)!=null?e:""),this.synchronizeContext(),this.isNested||this.synchronizeTree()}get parentTree(){var t,e;return(e=(t=this.parentElement)==null?void 0:t.closest(Fa))!=null?e:null}get rootTree(){var t,e;return(e=(t=this.parentTree)==null?void 0:t.rootTree)!=null?e:this}get isNested(){return this.parentTree!==null}get navItems(){return this.isNested?[]:this.getCheckboxes().filter(t=>!t.disabled)}setInitialFocus(){this.isNested||this.synchronizeTabIndexes()}getCheckboxes(){return Array.from(this.querySelectorAll(as))}scheduleSynchronizeTree(){this.pendingSynchronization||(this.pendingSynchronization=!0,queueMicrotask(()=>{this.pendingSynchronization=!1,this.synchronizeTree()}))}getChildTree(t){let e=t.nextElementSibling;return e!=null&&e.matches(Fa)?e:null}getParentCheckbox(t){let e=t.previousElementSibling;return e!=null&&e.matches(as)?e:null}setDescendantState(t,e){t.getCheckboxes().forEach(i=>{if(i.disabled||i.readonly||i.softDisabled)return;let a=i;a.checked=e,a.indeterminate=!1})}synchronizeTree(){this.isNested||!this.isConnected||(this.synchronizeParentStates(),this.synchronizeTabIndexes())}synchronizeParentStates(){Array.from(this.querySelectorAll(Fa)).reverse().forEach(e=>{let i=this.getParentCheckbox(e),a=e.getCheckboxes();if(!i||a.length===0)return;let d=a.every(v=>v.checked&&!v.indeterminate),f=a.some(v=>v.checked||v.indeterminate);i.checked=d,i.indeterminate=!d&&f})}synchronizeTabIndexes(){var f;let t=this.getCheckboxes(),e=t.filter(v=>!v.disabled),i=e.find(v=>v.matches(":focus-within")),a=e.find(v=>v.getAttribute("tabindex")==="0"),d=(f=i!=null?i:a)!=null?f:e[0];t.forEach(v=>{v.setAttribute("tabindex",v===d?"0":"-1")})}synchronizeContext(){var t;if(this.isNested){this.removeAttribute("aria-description"),this.removeAttribute("aria-invalid"),this.removeAttribute("aria-label"),this.removeAttribute("role");return}this.role=et.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.helpTextType===te.ERROR?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}update(t){var i;let e=this.getAttribute("aria-label");super.update(t),!this.isNested&&(e===null||e===this.generatedAriaLabel)&&(this.generatedAriaLabel=(i=this.label)!=null?i:"",this.setAttribute("aria-label",this.generatedAriaLabel))}updated(t){super.updated(t),this.synchronizeContext()}render(){return A`
8589
- ${this.isNested?H:A`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`}
8629
+ ${this.isNested?G:A`<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>`}
8590
8630
  <slot @slotchange=${this.handleSlotChange}></slot>
8591
8631
  `}};Jc.styles=[...va.styles,...rT];var gu=Jc;gu.register(Fa);var yC=gu;})();
8592
8632
  /*! Bundled license information: