@momentum-design/components 0.133.6 → 0.133.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +171 -167
- package/dist/browser/index.js.map +4 -4
- package/dist/components/password/password.component.js +2 -1
- package/dist/components/password/password.styles.d.ts +2 -0
- package/dist/components/password/password.styles.js +9 -0
- package/dist/components/tablist/tablist.component.js +3 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(()=>{var dT=Object.create;var $c=Object.defineProperty;var ku=Object.getOwnPropertyDescriptor;var cT=Object.getOwnPropertyNames;var hT=Object.getPrototypeOf,pT=Object.prototype.hasOwnProperty;var mT=(n,i)=>()=>(i||n((i={exports:{}}).exports,i),i.exports);var uT=(n,i,t,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let o of cT(i))!pT.call(n,o)&&o!==t&&$c(n,o,{get:()=>i[o],enumerable:!(e=ku(i,o))||e.enumerable});return n};var fT=(n,i,t)=>(t=n!=null?dT(hT(n)):{},uT(i||!n||!n.__esModule?$c(t,"default",{value:n,enumerable:!0}):t,n));var h=(n,i,t,e)=>{for(var o=e>1?void 0:e?ku(i,t):i,l=n.length-1,c;l>=0;l--)(c=n[l])&&(o=(e?c(i,t,o):c(o))||o);return e&&o&&$c(i,t,o),o};var Vf=mT((rn,Hl)=>{typeof navigator<"u"&&function(n,i){typeof rn=="object"&&typeof Hl<"u"?Hl.exports=i():typeof define=="function"&&define.amd?define(i):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=i())}(rn,function(){"use strict";var n="http://www.w3.org/2000/svg",i="",t=!1,e=-999999,o=function(s){t=!!s},l=function(){return t},c=function(s){i=s},f=function(){return i};function y(r){return document.createElement(r)}function A(r,s){var a,d=r.length,m;for(a=0;a<d;a+=1){m=r[a].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function F(r,s){return Object.getOwnPropertyDescriptor(r,s)}function W(r){function s(){}return s.prototype=r,s}var Q=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(a){this.audios.push(a)},pause:function(){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].pause()},resume:function(){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].resume()},setRate:function(a){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(a)},createAudio:function(a){return this.audioFactory?this.audioFactory(a):window.Howl?new window.Howl({src:[a]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(a){this.audioFactory=a},setVolume:function(a){this._volume=a,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),Z=function(){function r(a,d){var m=0,p=[],g;switch(a){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(m=0;m<d;m+=1)p.push(g);return p}function s(a,d){return a==="float32"?new Float32Array(d):a==="int16"?new Int16Array(d):a==="uint8c"?new Uint8ClampedArray(d):r(a,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function et(r){return Array.apply(null,{length:r})}function lt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(a){return typeof a}:lt=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},lt(r)}var dt=!0,ft=null,It=null,kt="",jt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ht=!1,qt=Math.pow,Ft=Math.sqrt,ae=Math.floor,cr=Math.max,Ne=Math.min,je={};(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,a=r.length;for(s=0;s<a;s+=1)je[r[s]]=Math[r[s]]})();function Ve(){return{}}je.random=Math.random,je.abs=function(r){var s=lt(r);if(s==="object"&&r.length){var a=et(r.length),d,m=r.length;for(d=0;d<m;d+=1)a[d]=Math.abs(r[d]);return a}return Math.abs(r)};var qe=150,Nt=Math.PI/180,he=.5519;function gr(r){Ht=!!r}function br(r){return Ht?Math.round(r):r}function yr(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 Er(r,s,a,d){this.type=r,this.currentTime=s,this.totalTime=a,this.direction=d<0?-1:1}function Xn(r,s){this.type=r,this.direction=s<0?-1:1}function Dm(r,s,a,d){this.type=r,this.currentLoop=a,this.totalLoops=s,this.direction=d<0?-1:1}function Pm(r,s,a){this.type=r,this.firstFrame=s,this.totalFrames=a}function Fm(r,s){this.type=r,this.target=s}function dE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function cE(r){this.type="configError",this.nativeError=r}function fI(r,s){this.type=r,this.nativeError=s}var Xe=function(){var r=0;return function(){return r+=1,kt+"__lottie_element_"+r}}();function Ic(r,s,a){var d,m,p,g,I,b,w,L;switch(g=Math.floor(r*6),I=r*6-g,b=a*(1-s),w=a*(1-I*s),L=a*(1-(1-I)*s),g%6){case 0:d=a,m=L,p=b;break;case 1:d=w,m=a,p=b;break;case 2:d=b,m=a,p=L;break;case 3:d=b,m=w,p=a;break;case 4:d=L,m=b,p=a;break;case 5:d=a,m=b,p=w;break;default:break}return[d,m,p]}function _c(r,s,a){var d=Math.max(r,s,a),m=Math.min(r,s,a),p=d-m,g,I=d===0?0:p/d,b=d/255;switch(d){case m:g=0;break;case r:g=s-a+p*(s<a?6:0),g/=6*p;break;case s:g=a-r+p*2,g/=6*p;break;case a:g=r-s+p*4,g/=6*p;break;default:break}return[g,I,b]}function $m(r,s){var a=_c(r[0]*255,r[1]*255,r[2]*255);return a[1]+=s,a[1]>1?a[1]=1:a[1]<=0&&(a[1]=0),Ic(a[0],a[1],a[2])}function Vm(r,s){var a=_c(r[0]*255,r[1]*255,r[2]*255);return a[2]+=s,a[2]>1?a[2]=1:a[2]<0&&(a[2]=0),Ic(a[0],a[1],a[2])}function zm(r,s){var a=_c(r[0]*255,r[1]*255,r[2]*255);return a[0]+=s/360,a[0]>1?a[0]-=1:a[0]<0&&(a[0]+=1),Ic(a[0],a[1],a[2])}var vI=function(){var r=[],s,a;for(s=0;s<256;s+=1)a=s.toString(16),r[s]=a.length===1?"0"+a:a;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),hE=function(s){dt=!!s},pE=function(){return dt},mE=function(s){ft=s},Zn=function(){return ft},gI=function(s){It=s},Bm=function(){return It},Qn=function(s){qe=s},Ea=function(){return qe},uE=function(s){kt=s},bI=function(){return kt};function At(r){return document.createElementNS(n,r)}function Jn(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jn=function(a){return typeof a}:Jn=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Jn(r)}var Ta=function(){var r=1,s=[],a,d,m={onmessage:function(){},postMessage:function(O){a({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),P=URL.createObjectURL(O);return new Worker(P)}return a=x,m}function I(){d||(d=g(function(O){function P(){function U(rt,C){var D,v,E=rt.length,Y,V,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var xt=D.masksProperties;for(V=xt.length,Y=0;Y<V;Y+=1)if(xt[Y].pt.k.i)N(xt[Y].pt.k);else for(gt=xt[Y].pt.k.length,ct=0;ct<gt;ct+=1)xt[Y].pt.k[ct].s&&N(xt[Y].pt.k[ct].s[0]),xt[Y].pt.k[ct].e&&N(xt[Y].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,C),U(D.layers,C)):D.ty===4?_(D.shapes):D.ty===5&&St(D)}}function M(rt,C){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,C),U(rt[D].data.layers,C))}}function k(rt,C){for(var D=0,v=C.length;D<v;){if(C[D].id===rt)return C[D];D+=1}return null}function T(rt,C){var D=k(rt,C);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function _(rt){var C,D=rt.length,v,E;for(C=D-1;C>=0;C-=1)if(rt[C].ty==="sh")if(rt[C].ks.k.i)N(rt[C].ks.k);else for(E=rt[C].ks.k.length,v=0;v<E;v+=1)rt[C].ks.k[v].s&&N(rt[C].ks.k[v].s[0]),rt[C].ks.k[v].e&&N(rt[C].ks.k[v].e[0]);else rt[C].ty==="gr"&&_(rt[C].it)}function N(rt){var C,D=rt.i.length;for(C=0;C<D;C+=1)rt.i[C][0]+=rt.v[C][0],rt.i[C][1]+=rt.v[C][1],rt.o[C][0]+=rt.v[C][0],rt.o[C][1]+=rt.v[C][1]}function $(rt,C){var D=C?C.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var H=function(){var rt=[4,4,14];function C(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),j=function(){var rt=[4,7,99];return function(C){if(C.chars&&!$(rt,C.v)){var D,v=C.chars.length;for(D=0;D<v;D+=1){var E=C.chars[D];E.data&&E.data.shapes&&(_(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}},C.chars[D].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function C(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),Tt=function(){var rt=[4,1,9];function C(v){var E,Y=v.length,V,ct;for(E=0;E<Y;E+=1)if(v[E].ty==="gr")C(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,V=0;V<ct;V+=1)v[E].c.k[V].s&&(v[E].c.k[V].s[0]/=255,v[E].c.k[V].s[1]/=255,v[E].c.k[V].s[2]/=255,v[E].c.k[V].s[3]/=255),v[E].c.k[V].e&&(v[E].c.k[V].e[0]/=255,v[E].c.k[V].e[1]/=255,v[E].c.k[V].e[2]/=255,v[E].c.k[V].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===4&&C(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ut=function(){var rt=[4,4,18];function C(v){var E,Y=v.length,V,ct;for(E=Y-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,V=0;V<ct;V+=1)v[E].ks.k[V].s&&(v[E].ks.k[V].s[0].c=v[E].closed),v[E].ks.k[V].e&&(v[E].ks.k[V].e[0].c=v[E].closed);else v[E].ty==="gr"&&C(v[E].it)}function D(v){var E,Y,V=v.length,ct,gt,xt,Dt;for(Y=0;Y<V;Y+=1){if(E=v[Y],E.hasMask){var Pt=E.masksProperties;for(gt=Pt.length,ct=0;ct<gt;ct+=1)if(Pt[ct].pt.k.i)Pt[ct].pt.k.c=Pt[ct].cl;else for(Dt=Pt[ct].pt.k.length,xt=0;xt<Dt;xt+=1)Pt[ct].pt.k[xt].s&&(Pt[ct].pt.k[xt].s[0].c=Pt[ct].cl),Pt[ct].pt.k[xt].e&&(Pt[ct].pt.k[xt].e[0].c=Pt[ct].cl)}E.ty===4&&C(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function st(rt){rt.__complete||(Tt(rt),H(rt),j(rt),it(rt),ut(rt),U(rt.layers,rt.assets),M(rt.chars,rt.assets),rt.__complete=!0)}function St(rt){rt.t.a.length===0&&"m"in rt.t.p}var ht={};return ht.completeData=st,ht.checkColors=Tt,ht.checkChars=j,ht.checkPathProperties=it,ht.checkShapes=ut,ht.completeLayers=U,ht}if(p.dataManager||(p.dataManager=P()),p.assetLoader||(p.assetLoader=function(){function U(k){var T=k.getResponseHeader("content-type");return T&&k.responseType==="json"&&T.indexOf("json")!==-1||k.response&&Jn(k.response)==="object"?k.response:k.response&&typeof k.response=="string"?JSON.parse(k.response):k.responseText?JSON.parse(k.responseText):null}function M(k,T,_,N){var $,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)$=U(H),_($);else try{$=U(H),_($)}catch(j){N&&N(j)}};try{H.open(["G","E","T"].join(""),k,!0)}catch{H.open(["G","E","T"].join(""),T+"/"+k,!0)}H.send()}return{load:M}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.dataManager.completeData(U),p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,P=O.id,R=s[P];s[P]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){r+=1;var P="processId_"+r;return s[P]={onComplete:x,onError:O},P}function w(x,O,P){I();var R=b(O,P);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function L(x,O,P){I();var R=b(O,P);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,O,P){I();var R=b(O,P);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:L,completeAnimation:G}}(),fE=function(){var r=function(){var M=y("canvas");M.width=1,M.height=1;var k=M.getContext("2d");return k.fillStyle="rgba(0,0,0,0)",k.fillRect(0,0,1,1),M}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(M,k,T){var _="";if(M.e)_=M.p;else if(k){var N=M.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),_=k+N}else _=T,_+=M.u?M.u:"",_+=M.p;return _}function m(M){var k=0,T=setInterval((function(){var _=M.getBBox();(_.width||k>500)&&(this._imageLoaded(),clearInterval(T)),k+=1}).bind(this),50)}function p(M){var k=d(M,this.assetsPath,this.path),T=At("image");jt?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",k),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var _={img:T,assetData:M};return _}function g(M){var k=d(M,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.src=k;var _={img:T,assetData:M};return _}function I(M){var k={assetData:M},T=d(M,this.assetsPath,this.path);return Ta.loadData(T,(function(_){k.img=_,this._footageLoaded()}).bind(this),(function(){k.img={},this._footageLoaded()}).bind(this)),k}function b(M,k){this.imagesLoadedCb=k;var T,_=M.length;for(T=0;T<_;T+=1)M[T].layers||(!M[T].t||M[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(M[T]))):M[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(M[T]))))}function w(M){this.path=M||""}function L(M){this.assetsPath=M||""}function G(M){for(var k=0,T=this.images.length;k<T;){if(this.images[k].assetData===M)return this.images[k].img;k+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function R(M,k){M==="svg"?(this._elementHelper=k,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=s.bind(this),this._footageLoaded=a.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 U.prototype={loadAssets:b,setAssetsPath:L,setPath:w,loadedImages:O,loadedFootages:P,destroy:x,getAsset:G,createImgData:g,createImageData:p,imageLoaded:s,footageLoaded:a,setCacheType:R},U}();function Um(){}Um.prototype={triggerEvent:function(s,a){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](a)},addEventListener:function(s,a){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(a),(function(){this.removeEventListener(s,a)}).bind(this)},removeEventListener:function(s,a){if(!a)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===a&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var vE=function(){function r(s){for(var a=s.split(`\r
|
|
2
|
-
`),d={},m,p=0,g=0;g<a.length;g+=1)m=a[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var a=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}a.push(p)}return a}}(),gE=function(){function r(s){this.compositions.push(s)}return function(){function s(a){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===a)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),xa={},bE=function(s,a){xa[s]=a};function yE(r){return xa[r]}function EE(){if(xa.canvas)return"canvas";for(var r in xa)if(xa[r])return r;return""}function Aa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Aa=function(a){return typeof a}:Aa=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Aa(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=Xe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=pE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=gE(),this.imagePreloader=new fE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Er("drawnFrame",0,0,0),this.expressionsPlugin=Zn()};A([Um],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 a=yE(s);this.renderer=new a(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")),Ta.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Ta.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Aa(s)!=="object"&&(s=JSON.parse(s));var a={wrapper:r,animationData:s},d=r.attributes;a.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",a.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:EE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?a.loop=!1:m==="true"?a.loop=!0:m!==""&&(a.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;a.autoplay=p!=="false",a.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(a.prerender=!1),a.path?this.setParams(a):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,a,d=s.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(a=0;a<d;){if(s[a].id===m[p].id){s[a]=m[p];break}a+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,a=0;a<d;a+=1)this.animationData.assets.push(r.assets[a]);this.animationData.__complete=!1,Ta.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Zn();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ta.loadData(a,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=vE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=Zn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var a=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(a,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,a=0;a<this.markers.length;a+=1)if(s=this.markers[a],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,a){if(!(a&&this.name!==a)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,a){if(!(a&&this.name!==a)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,a);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,a=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(a=!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):(a=!0,s=0)):this.setCurrentRawFrameValue(s),a&&(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 a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?a=r:this.currentRawFrame+this.firstFrame>s&&(a=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,a!==-1&&this.goToAndStop(a,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Aa(r[0])==="object"){var a,d=r.length;for(a=0;a<d;a+=1)this.segments.push(r[a])}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 a=r.p;a.indexOf("images/")!==-1&&(a=a.split("/")[1]),s=this.assetsPath+a}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,a=this.assets.length;s<a;){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,a){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,a)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Er(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 Dm(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Xn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Pm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Fm(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Er(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Dm(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Xn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Pm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Fm(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new dE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new cE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var pe=function(){var r={},s=[],a=0,d=0,m=0,p=!0,g=!1;function I(C){for(var D=0,v=C.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||G()),D+=1}function b(C,D){if(!C)return null;for(var v=0;v<d;){if(s[v].elem===C&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,C),E.setData(C,D),E}function w(){var C,D=s.length,v=[];for(C=0;C<D;C+=1)v.push(s[C].animation);return v}function L(){m+=1,Tt()}function G(){m-=1}function x(C,D){C.addEventListener("destroy",I),C.addEventListener("_active",L),C.addEventListener("_idle",G),s.push({elem:D,animation:C}),d+=1}function O(C){var D=new vt;return x(D,null),D.setParams(C),D}function P(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(C,D)}function R(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(C,D)}function U(C){var D;for(D=0;D<d;D+=1)s[D].animation.play(C)}function M(C){var D=C-a,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);a=C,m&&!g?window.requestAnimationFrame(M):p=!0}function k(C){a=C,window.requestAnimationFrame(M)}function T(C){var D;for(D=0;D<d;D+=1)s[D].animation.pause(C)}function _(C,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(C,D,v)}function N(C){var D;for(D=0;D<d;D+=1)s[D].animation.stop(C)}function $(C){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(C)}function H(C){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(C)}function j(C,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,V=E.length;for(Y=0;Y<V;Y+=1)v&&E[Y].setAttribute("data-bm-type",v),b(E[Y],C);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=y("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),b(gt,C)}}function it(){var C;for(C=0;C<d;C+=1)s[C].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(k),p=!1)}function ut(){g=!0}function st(){g=!1,Tt()}function St(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(C,D)}function ht(C){var D;for(D=0;D<d;D+=1)s[D].animation.mute(C)}function rt(C){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(C)}return r.registerAnimation=b,r.loadAnimation=O,r.setSpeed=P,r.setDirection=R,r.play=U,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=j,r.resize=it,r.goToAndStop=_,r.destroy=H,r.freeze=ut,r.unfreeze=st,r.setVolume=St,r.mute=ht,r.unmute=rt,r.getRegisteredAnimations=w,r}(),Sa=function(){var r={};r.getBezierEasing=a;var s={};function a(k,T,_,N,$){var H=$||("bez_"+k+"_"+T+"_"+_+"_"+N).replace(/\./g,"p");if(s[H])return s[H];var j=new M([k,T,_,N]);return s[H]=j,j}var d=4,m=.001,p=1e-7,g=10,I=11,b=1/(I-1),w=typeof Float32Array=="function";function L(k,T){return 1-3*T+3*k}function G(k,T){return 3*T-6*k}function x(k){return 3*k}function O(k,T,_){return((L(T,_)*k+G(T,_))*k+x(T))*k}function P(k,T,_){return 3*L(T,_)*k*k+2*G(T,_)*k+x(T)}function R(k,T,_,N,$){var H,j,it=0;do j=T+(_-T)/2,H=O(j,N,$)-k,H>0?_=j:T=j;while(Math.abs(H)>p&&++it<g);return j}function U(k,T,_,N){for(var $=0;$<d;++$){var H=P(T,_,N);if(H===0)return T;var j=O(T,_,N)-k;T-=j/H}return T}function M(k){this._p=k,this._mSampleValues=w?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return M.prototype={get:function(T){var _=this._p[0],N=this._p[1],$=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),_===N&&$===H?T:T===0?0:T===1?1:O(this._getTForX(T),N,H)},_precompute:function(){var T=this._p[0],_=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==_||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],_=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*b,T,_)},_getTForX:function(T){for(var _=this._p[0],N=this._p[2],$=this._mSampleValues,H=0,j=1,it=I-1;j!==it&&$[j]<=T;++j)H+=b;--j;var Tt=(T-$[j])/($[j+1]-$[j]),ut=H+Tt*b,st=P(ut,_,N);return st>=m?U(T,ut,_,N):st===0?ut:R(T,H,H+b,_,N)}},r}(),Hm=function(){function r(s){return s.concat(et(s.length))}return{double:r}}(),tl=function(){return function(r,s,a){var d=0,m=r,p=et(m),g={newElement:I,release:b};function I(){var w;return d?(d-=1,w=p[d]):w=s(),w}function b(w){d===m&&(p=Hm.double(p),m*=2),a&&a(w),p[d]=w,d+=1}return g}}(),Gm=function(){function r(){return{addedLength:0,percents:Z("float32",Ea()),lengths:Z("float32",Ea())}}return tl(8,r)}(),Km=function(){function r(){return{lengths:[],totalLength:0}}function s(a){var d,m=a.lengths.length;for(d=0;d<m;d+=1)Gm.release(a.lengths[d]);a.lengths.length=0}return tl(8,r,s)}();function TE(){var r=Math;function s(x,O,P,R,U,M){var k=x*R+O*U+P*M-U*R-M*x-P*O;return k>-.001&&k<.001}function a(x,O,P,R,U,M,k,T,_){if(P===0&&M===0&&_===0)return s(x,O,R,U,k,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(U-O,2)+r.pow(M-P,2)),$=r.sqrt(r.pow(k-x,2)+r.pow(T-O,2)+r.pow(_-P,2)),H=r.sqrt(r.pow(k-R,2)+r.pow(T-U,2)+r.pow(_-M,2)),j;return N>$?N>H?j=N-$-H:j=H-$-N:H>$?j=H-$-N:j=$-N-H,j>-1e-4&&j<1e-4}var d=function(){return function(x,O,P,R){var U=Ea(),M,k,T,_,N,$=0,H,j=[],it=[],Tt=Gm.newElement();for(T=P.length,M=0;M<U;M+=1){for(N=M/(U-1),H=0,k=0;k<T;k+=1)_=qt(1-N,3)*x[k]+3*qt(1-N,2)*N*P[k]+3*(1-N)*qt(N,2)*R[k]+qt(N,3)*O[k],j[k]=_,it[k]!==null&&(H+=qt(j[k]-it[k],2)),it[k]=j[k];H&&(H=Ft(H),$+=H),Tt.percents[M]=N,Tt.lengths[M]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=Km.newElement(),P=x.c,R=x.v,U=x.o,M=x.i,k,T=x._length,_=O.lengths,N=0;for(k=0;k<T-1;k+=1)_[k]=d(R[k],R[k+1],U[k],M[k+1]),N+=_[k].addedLength;return P&&T&&(_[k]=d(R[k],R[0],U[k],M[0]),N+=_[k].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,P,R,U){var M=(O[0]+"_"+O[1]+"_"+P[0]+"_"+P[1]+"_"+R[0]+"_"+R[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!x[M]){var k=Ea(),T,_,N,$,H,j=0,it,Tt,ut=null;O.length===2&&(O[0]!==P[0]||O[1]!==P[1])&&s(O[0],O[1],P[0],P[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],P[0],P[1],P[0]+U[0],P[1]+U[1])&&(k=2);var st=new p(k);for(N=R.length,T=0;T<k;T+=1){for(Tt=et(N),H=T/(k-1),it=0,_=0;_<N;_+=1)$=qt(1-H,3)*O[_]+3*qt(1-H,2)*H*(O[_]+R[_])+3*(1-H)*qt(H,2)*(P[_]+U[_])+qt(H,3)*P[_],Tt[_]=$,ut!==null&&(it+=qt(Tt[_]-ut[_],2));it=Ft(it),j+=it,st.points[T]=new g(it,Tt),ut=Tt}st.segmentLength=j,x[M]=st}return x[M]}}();function b(x,O){var P=O.percents,R=O.lengths,U=P.length,M=ae((U-1)*x),k=x*O.addedLength,T=0;if(M===U-1||M===0||k===R[M])return P[M];for(var _=R[M]>k?-1:1,N=!0;N;)if(R[M]<=k&&R[M+1]>k?(T=(k-R[M])/(R[M+1]-R[M]),N=!1):M+=_,M<0||M>=U-1){if(M===U-1)return P[M];N=!1}return P[M]+(P[M+1]-P[M])*T}function w(x,O,P,R,U,M){var k=b(U,M),T=1-k,_=r.round((T*T*T*x[0]+(k*T*T+T*k*T+T*T*k)*P[0]+(k*k*T+T*k*k+k*T*k)*R[0]+k*k*k*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(k*T*T+T*k*T+T*T*k)*P[1]+(k*k*T+T*k*k+k*T*k)*R[1]+k*k*k*O[1])*1e3)/1e3;return[_,N]}var L=Z("float32",8);function G(x,O,P,R,U,M,k){U<0?U=0:U>1&&(U=1);var T=b(U,k);M=M>1?1:M;var _=b(M,k),N,$=x.length,H=1-T,j=1-_,it=H*H*H,Tt=T*H*H*3,ut=T*T*H*3,st=T*T*T,St=H*H*j,ht=T*H*j+H*T*j+H*H*_,rt=T*T*j+H*T*_+T*H*_,C=T*T*_,D=H*j*j,v=T*j*j+H*_*j+H*j*_,E=T*_*j+H*_*_+T*j*_,Y=T*_*_,V=j*j*j,ct=_*j*j+j*_*j+j*j*_,gt=_*_*j+j*_*_+_*j*_,xt=_*_*_;for(N=0;N<$;N+=1)L[N*4]=r.round((it*x[N]+Tt*P[N]+ut*R[N]+st*O[N])*1e3)/1e3,L[N*4+1]=r.round((St*x[N]+ht*P[N]+rt*R[N]+C*O[N])*1e3)/1e3,L[N*4+2]=r.round((D*x[N]+v*P[N]+E*R[N]+Y*O[N])*1e3)/1e3,L[N*4+3]=r.round((V*x[N]+ct*P[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return L}return{getSegmentsLength:m,getNewSegment:G,getPointInSegment:w,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:a}}var Wr=TE(),wo=e,Wm=Math.abs;function Ym(r,s){var a=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var m=s.lastIndex,p=m,g=this.keyframes.length-1,I=!0,b,w,L;I;){if(b=this.keyframes[p],w=this.keyframes[p+1],p===g-1&&r>=w.t-a){b.h&&(b=w),m=0;break}if(w.t-a>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}L=this.keyframesMetadata[p]||{};var G,x,O,P,R,U,M=w.t-a,k=b.t-a,T;if(b.to){L.bezierData||(L.bezierData=Wr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var _=L.bezierData;if(r>=M||r<k){var N=r>=M?_.points.length-1:0;for(x=_.points[N].point.length,G=0;G<x;G+=1)d[G]=_.points[N].point[G]}else{L.__fnct?U=L.__fnct:(U=Sa.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,L.__fnct=U),O=U((r-k)/(M-k));var $=_.segmentLength*O,H,j=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,P=_.points.length;I;){if(j+=_.points[R].partialLength,$===0||O===0||R===_.points.length-1){for(x=_.points[R].point.length,G=0;G<x;G+=1)d[G]=_.points[R].point[G];break}else if($>=j&&$<j+_.points[R+1].partialLength){for(H=($-j)/_.points[R+1].partialLength,x=_.points[R].point.length,G=0;G<x;G+=1)d[G]=_.points[R].point[G]+(_.points[R+1].point[G]-_.points[R].point[G])*H;break}R<P-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=j-_.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,Tt,ut,st,St;if(g=b.s.length,T=w.s||b.e,this.sh&&b.h!==1)if(r>=M)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=k)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ht=jm(b.s),rt=jm(T),C=(r-k)/(M-k);AE(d,xE(ht,rt,C))}else for(p=0;p<g;p+=1)b.h!==1&&(r>=M?O=1:r<k?O=0:(b.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[p]?U=L.__fnct[p]:(it=b.o.x[p]===void 0?b.o.x[0]:b.o.x[p],Tt=b.o.y[p]===void 0?b.o.y[0]:b.o.y[p],ut=b.i.x[p]===void 0?b.i.x[0]:b.i.x[p],st=b.i.y[p]===void 0?b.i.y[0]:b.i.y[p],U=Sa.getBezierEasing(it,Tt,ut,st).get,L.__fnct[p]=U)):L.__fnct?U=L.__fnct:(it=b.o.x,Tt=b.o.y,ut=b.i.x,st=b.i.y,U=Sa.getBezierEasing(it,Tt,ut,st).get,b.keyframeMetadata=U),O=U((r-k)/(M-k)))),T=w.s||b.e,St=b.h===1?b.s[p]:b.s[p]+(T[p]-b.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return s.lastIndex=m,d}function xE(r,s,a){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],b=s[0],w=s[1],L=s[2],G=s[3],x,O,P,R,U;return O=m*b+p*w+g*L+I*G,O<0&&(O=-O,b=-b,w=-w,L=-L,G=-G),1-O>1e-6?(x=Math.acos(O),P=Math.sin(x),R=Math.sin((1-a)*x)/P,U=Math.sin(a*x)/P):(R=1-a,U=a),d[0]=R*m+U*b,d[1]=R*p+U*w,d[2]=R*g+U*L,d[3]=R*I+U*G,d}function AE(r,s){var a=s[0],d=s[1],m=s[2],p=s[3],g=Math.atan2(2*d*p-2*a*m,1-2*d*d-2*m*m),I=Math.asin(2*a*d+2*m*p),b=Math.atan2(2*a*p-2*d*m,1-2*a*a-2*m*m);r[0]=g/Nt,r[1]=I/Nt,r[2]=b/Nt}function jm(r){var s=r[0]*Nt,a=r[1]*Nt,d=r[2]*Nt,m=Math.cos(s/2),p=Math.cos(a/2),g=Math.cos(d/2),I=Math.sin(s/2),b=Math.sin(a/2),w=Math.sin(d/2),L=m*p*g-I*b*w,G=I*b*g+m*p*w,x=I*p*g+m*b*w,O=m*b*g-I*p*w;return[G,x,O,L]}function qm(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==wo&&(this._caching.lastFrame>=a&&r>=a||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function el(r){var s;if(this.propType==="unidimensional")s=r*this.mult,Wm(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var a=0,d=this.v.length;a<d;)s=r[a]*this.mult,Wm(this.v[a]-s)>1e-5&&(this.v[a]=s,this._mdf=!0),a+=1}function rl(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)a=this.effectsSequence[r](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function il(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function SE(r,s,a,d){this.propType="unidimensional",this.mult=a||1,this.data=s,this.v=a?s.k*a:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.addEffect=il}function IE(r,s,a,d){this.propType="multidimensional",this.mult=a||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=Z("float32",p),this.pv=Z("float32",p),this.vel=Z("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=rl,this.setVValue=el,this.addEffect=il}function _E(r,s,a,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:wo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=a||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=wo,this.pv=wo,this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.interpolateValue=Ym,this.effectsSequence=[qm.bind(this)],this.addEffect=il}function CE(r,s,a,d){this.propType="multidimensional";var m,p=s.k.length,g,I,b,w;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(g=s.k[m].s,I=s.k[m+1].s,b=s.k[m].to,w=s.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&Wr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+b[0],g[1]+b[1])&&Wr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+w[0],I[1]+w[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&Wr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Wr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+w[0],I[1]+w[1],I[2]+w[2]))&&(s.k[m].to=null,s.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===I[2]&&b[2]===0&&w[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[qm.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=rl,this.setVValue=el,this.interpolateValue=Ym,this.frameId=-1;var L=s.k[0].s.length;for(this.v=Z("float32",L),this.pv=Z("float32",L),m=0;m<L;m+=1)this.v[m]=wo,this.pv[m]=wo;this._caching={lastFrame:wo,lastIndex:0,value:Z("float32",L)},this.addEffect=il}var at=function(){function r(a,d,m,p,g){d.sid&&(d=a.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new SE(a,d,p,g);else if(typeof d.k[0]=="number")I=new IE(a,d,p,g);else switch(m){case 0:I=new _E(a,d,p,g);break;case 1:I=new CE(a,d,p,g);break;default:break}return I.effectsSequence.length&&g.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ie(){}Ie.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,a=this.dynamicProperties.length;for(s=0;s<a;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 No=function(){function r(){return Z("float32",2)}return tl(8,r)}();function pi(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}pi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var a=0;a<s;)this.v[a]=No.newElement(),this.o[a]=No.newElement(),this.i[a]=No.newElement(),a+=1},pi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},pi.prototype.doubleArrayLength=function(){this.v=this.v.concat(et(this._maxLength)),this.i=this.i.concat(et(this._maxLength)),this.o=this.o.concat(et(this._maxLength)),this._maxLength*=2},pi.prototype.setXYAt=function(r,s,a,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),a){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=No.newElement()),p[d][0]=r,p[d][1]=s},pi.prototype.setTripleAt=function(r,s,a,d,m,p,g,I){this.setXYAt(r,s,"v",g,I),this.setXYAt(a,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},pi.prototype.reverse=function(){var r=new pi;r.setPathData(this.c,this._length);var s=this.v,a=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],a[0][0],a[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],a[p][0],a[p][1],I,!1),p-=1;return r},pi.prototype.length=function(){return this._length};var Me=function(){function r(){return new pi}function s(m){var p=m._length,g;for(g=0;g<p;g+=1)No.release(m.v[g]),No.release(m.i[g]),No.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function a(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=tl(4,r,s);return d.clone=a,d}();function Cc(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}Cc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(et(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Cc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)Me.release(this.shapes[r]);this._length=0};var _s=function(){var r={newShapeCollection:m,release:p},s=0,a=4,d=et(a);function m(){var g;return s?(s-=1,g=d[s]):g=new Cc,g}function p(g){var I,b=g._length;for(I=0;I<b;I+=1)Me.release(g.shapes[I]);g._length=0,s===a&&(d=Hm.double(d),a*=2),d[s]=g,s+=1}return r}(),ol=function(){var r=-999999;function s(M,k,T){var _=T.lastIndex,N,$,H,j,it,Tt,ut,st,St,ht=this.keyframes;if(M<ht[0].t-this.offsetTime)N=ht[0].s[0],H=!0,_=0;else if(M>=ht[ht.length-1].t-this.offsetTime)N=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],H=!0;else{for(var rt=_,C=ht.length-1,D=!0,v,E,Y;D&&(v=ht[rt],E=ht[rt+1],!(E.t-this.offsetTime>M));)rt<C-1?rt+=1:D=!1;if(Y=this.keyframesMetadata[rt]||{},H=v.h===1,_=rt,!H){if(M>=E.t-this.offsetTime)st=1;else if(M<v.t-this.offsetTime)st=0;else{var V;Y.__fnct?V=Y.__fnct:(V=Sa.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,Y.__fnct=V),st=V((M-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=k._length,ut=N.i[0].length,T.lastIndex=_,j=0;j<Tt;j+=1)for(it=0;it<ut;it+=1)St=H?N.i[j][it]:N.i[j][it]+($.i[j][it]-N.i[j][it])*st,k.i[j][it]=St,St=H?N.o[j][it]:N.o[j][it]+($.o[j][it]-N.o[j][it])*st,k.o[j][it]=St,St=H?N.v[j][it]:N.v[j][it]+($.v[j][it]-N.v[j][it])*st,k.v[j][it]=St}function a(){var M=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,_=this._caching.lastFrame;return _!==r&&(_<k&&M<k||_>T&&M>T)||(this._caching.lastIndex=_<M?this._caching.lastIndex:0,this.interpolateShape(M,this.pv,this._caching)),this._caching.lastFrame=M,this.pv}function d(){this.paths=this.localShapeCollection}function m(M,k){if(M._length!==k._length||M.c!==k.c)return!1;var T,_=M._length;for(T=0;T<_;T+=1)if(M.v[T][0]!==k.v[T][0]||M.v[T][1]!==k.v[T][1]||M.o[T][0]!==k.o[T][0]||M.o[T][1]!==k.o[T][1]||M.i[T][0]!==k.i[T][0]||M.i[T][1]!==k.i[T][1])return!1;return!0}function p(M){m(this.v,M)||(this.v=Me.clone(M),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var M;this.kf?M=this.pv:this.data.ks?M=this.data.ks.k:M=this.data.pt.k;var k,T=this.effectsSequence.length;for(k=0;k<T;k+=1)M=this.effectsSequence[k](M);this.setVValue(M),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(M,k,T){this.propType="shape",this.comp=M.comp,this.container=M,this.elem=M,this.data=k,this.k=!1,this.kf=!1,this._mdf=!1;var _=T===3?k.pt.k:k.ks.k;this.v=Me.clone(_),this.pv=Me.clone(this.v),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(M){this.effectsSequence.push(M),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=b;function w(M,k,T){this.propType="shape",this.comp=M.comp,this.elem=M,this.container=M,this.offsetTime=M.data.st,this.keyframes=T===3?k.pt.k:k.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var _=this.keyframes[0].s[0].i.length;this.v=Me.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,_),this.pv=Me.clone(this.v),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[a.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=s,w.prototype.setVValue=p,w.prototype.addEffect=b;var L=function(){var M=he;function k(T,_){this.v=Me.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=_.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=at.getProp(T,_.p,1,0,this),this.s=at.getProp(T,_.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return k.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var _=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,H=this.s.v[1]/2,j=this.d!==3,it=this.v;it.v[0][0]=_,it.v[0][1]=N-H,it.v[1][0]=j?_+$:_-$,it.v[1][1]=N,it.v[2][0]=_,it.v[2][1]=N+H,it.v[3][0]=j?_-$:_+$,it.v[3][1]=N,it.i[0][0]=j?_-$*M:_+$*M,it.i[0][1]=N-H,it.i[1][0]=j?_+$:_-$,it.i[1][1]=N-H*M,it.i[2][0]=j?_+$*M:_-$*M,it.i[2][1]=N+H,it.i[3][0]=j?_-$:_+$,it.i[3][1]=N+H*M,it.o[0][0]=j?_+$*M:_-$*M,it.o[0][1]=N-H,it.o[1][0]=j?_+$:_-$,it.o[1][1]=N+H*M,it.o[2][0]=j?_-$*M:_+$*M,it.o[2][1]=N+H,it.o[3][0]=j?_-$:_+$,it.o[3][1]=N-H*M}},A([Ie],k),k}(),G=function(){function M(k,T){this.v=Me.newElement(),this.v.setPathData(!0,0),this.elem=k,this.comp=k.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),T.sy===1?(this.ir=at.getProp(k,T.ir,0,0,this),this.is=at.getProp(k,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(k,T.pt,0,0,this),this.p=at.getProp(k,T.p,1,0,this),this.r=at.getProp(k,T.r,0,Nt,this),this.or=at.getProp(k,T.or,0,0,this),this.os=at.getProp(k,T.os,0,.01,this),this.localShapeCollection=_s.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return M.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,_=Math.PI*2/T,N=!0,$=this.or.v,H=this.ir.v,j=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ut=2*Math.PI*H/(T*2),st,St,ht,rt,C=-Math.PI/2;C+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){St=N?$:H,ht=N?j:it,rt=N?Tt:ut;var v=St*Math.cos(C),E=St*Math.sin(C),Y=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-Y*rt*ht*D,E-V*rt*ht*D,v+Y*rt*ht*D,E+V*rt*ht*D,st,!0),N=!N,C+=_*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),_=Math.PI*2/T,N=this.or.v,$=this.os.v,H=2*Math.PI*N/(T*4),j,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,j=0;j<T;j+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),St=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ht=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-St*H*$*Tt,st-ht*H*$*Tt,ut+St*H*$*Tt,st+ht*H*$*Tt,j,!0),it+=_*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Ie],M),M}(),x=function(){function M(k,T){this.v=Me.newElement(),this.v.c=!0,this.localShapeCollection=_s.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=k,this.comp=k.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),this.p=at.getProp(k,T.p,1,0,this),this.s=at.getProp(k,T.s,1,0,this),this.r=at.getProp(k,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return M.prototype={convertRectToPath:function(){var T=this.p.v[0],_=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,H=Ne(N,$,this.r.v),j=H*(1-he);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,_-$+H,T+N,_-$+H,T+N,_-$+j,0,!0),this.v.setTripleAt(T+N,_+$-H,T+N,_+$-j,T+N,_+$-H,1,!0),H!==0?(this.v.setTripleAt(T+N-H,_+$,T+N-H,_+$,T+N-j,_+$,2,!0),this.v.setTripleAt(T-N+H,_+$,T-N+j,_+$,T-N+H,_+$,3,!0),this.v.setTripleAt(T-N,_+$-H,T-N,_+$-H,T-N,_+$-j,4,!0),this.v.setTripleAt(T-N,_-$+H,T-N,_-$+j,T-N,_-$+H,5,!0),this.v.setTripleAt(T-N+H,_-$,T-N+H,_-$,T-N+j,_-$,6,!0),this.v.setTripleAt(T+N-H,_-$,T+N-j,_-$,T+N-H,_-$,7,!0)):(this.v.setTripleAt(T-N,_+$,T-N+j,_+$,T-N,_+$,2),this.v.setTripleAt(T-N,_-$,T-N,_-$+j,T-N,_-$,3))):(this.v.setTripleAt(T+N,_-$+H,T+N,_-$+j,T+N,_-$+H,0,!0),H!==0?(this.v.setTripleAt(T+N-H,_-$,T+N-H,_-$,T+N-j,_-$,1,!0),this.v.setTripleAt(T-N+H,_-$,T-N+j,_-$,T-N+H,_-$,2,!0),this.v.setTripleAt(T-N,_-$+H,T-N,_-$+H,T-N,_-$+j,3,!0),this.v.setTripleAt(T-N,_+$-H,T-N,_+$-j,T-N,_+$-H,4,!0),this.v.setTripleAt(T-N+H,_+$,T-N+H,_+$,T-N+j,_+$,5,!0),this.v.setTripleAt(T+N-H,_+$,T+N-j,_+$,T+N-H,_+$,6,!0),this.v.setTripleAt(T+N,_+$-H,T+N,_+$-H,T+N,_+$-j,7,!0)):(this.v.setTripleAt(T-N,_-$,T-N+j,_-$,T-N,_-$,1,!0),this.v.setTripleAt(T-N,_+$,T-N,_+$-j,T-N,_+$,2,!0),this.v.setTripleAt(T+N,_+$,T+N-j,_+$,T+N,_+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Ie],M),M}();function O(M,k,T){var _;if(T===3||T===4){var N=T===3?k.pt:k.ks,$=N.k;$.length?_=new w(M,k,T):_=new I(M,k,T)}else T===5?_=new x(M,k):T===6?_=new L(M,k):T===7&&(_=new G(M,k));return _.k&&M.addDynamicProperty(_),_}function P(){return I}function R(){return w}var U={};return U.getShapeProp=O,U.getConstructorFunction=P,U.getKeyframedConstructorFunction=R,U}();var Le=function(){var r=Math.cos,s=Math.sin,a=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(1,0,0,0,0,E,-Y,0,0,Y,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,0,Y,0,0,1,0,0,-Y,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function w(v,E){return this._t(1,E,v,1,0,0)}function L(v,E){return this.shear(a(v),a(E))}function G(v,E){var Y=r(E),V=s(E);return this._t(Y,V,0,0,-V,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(v),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-V,0,0,V,Y,0,0,0,0,1,0,0,0,0,1)}function x(v,E,Y){return!Y&&Y!==0&&(Y=1),v===1&&E===1&&Y===1?this:this._t(v,0,0,0,0,E,0,0,0,0,Y,0,0,0,0,1)}function O(v,E,Y,V,ct,gt,xt,Dt,Pt,me,Qe,jr,Je,_e,hr,Gt){return this.props[0]=v,this.props[1]=E,this.props[2]=Y,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Dt,this.props[8]=Pt,this.props[9]=me,this.props[10]=Qe,this.props[11]=jr,this.props[12]=Je,this.props[13]=_e,this.props[14]=hr,this.props[15]=Gt,this}function P(v,E,Y){return Y=Y||0,v!==0||E!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,Y,1):this}function R(v,E,Y,V,ct,gt,xt,Dt,Pt,me,Qe,jr,Je,_e,hr,Gt){var pt=this.props;if(v===1&&E===0&&Y===0&&V===0&&ct===0&>===1&&xt===0&&Dt===0&&Pt===0&&me===0&&Qe===1&&jr===0)return pt[12]=pt[12]*v+pt[15]*Je,pt[13]=pt[13]*gt+pt[15]*_e,pt[14]=pt[14]*Qe+pt[15]*hr,pt[15]*=Gt,this._identityCalculated=!1,this;var fi=pt[0],Xi=pt[1],vi=pt[2],qr=pt[3],gi=pt[4],bi=pt[5],tr=pt[6],Zi=pt[7],Qi=pt[8],Dr=pt[9],Ji=pt[10],Pr=pt[11],Ro=pt[12],ml=pt[13],ul=pt[14],fl=pt[15];return pt[0]=fi*v+Xi*ct+vi*Pt+qr*Je,pt[1]=fi*E+Xi*gt+vi*me+qr*_e,pt[2]=fi*Y+Xi*xt+vi*Qe+qr*hr,pt[3]=fi*V+Xi*Dt+vi*jr+qr*Gt,pt[4]=gi*v+bi*ct+tr*Pt+Zi*Je,pt[5]=gi*E+bi*gt+tr*me+Zi*_e,pt[6]=gi*Y+bi*xt+tr*Qe+Zi*hr,pt[7]=gi*V+bi*Dt+tr*jr+Zi*Gt,pt[8]=Qi*v+Dr*ct+Ji*Pt+Pr*Je,pt[9]=Qi*E+Dr*gt+Ji*me+Pr*_e,pt[10]=Qi*Y+Dr*xt+Ji*Qe+Pr*hr,pt[11]=Qi*V+Dr*Dt+Ji*jr+Pr*Gt,pt[12]=Ro*v+ml*ct+ul*Pt+fl*Je,pt[13]=Ro*E+ml*gt+ul*me+fl*_e,pt[14]=Ro*Y+ml*xt+ul*Qe+fl*hr,pt[15]=Ro*V+ml*Dt+ul*jr+fl*Gt,this._identityCalculated=!1,this}function U(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function M(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function k(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function _(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,Y){return{x:v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}}function $(v,E,Y){return v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12]}function H(v,E,Y){return v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13]}function j(v,E,Y){return v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,Y=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Dt=new Le;return Dt.props[0]=E,Dt.props[1]=Y,Dt.props[4]=V,Dt.props[5]=ct,Dt.props[12]=gt,Dt.props[13]=xt,Dt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,Y=v.length,V=[];for(E=0;E<Y;E+=1)V[E]=Tt(v[E]);return V}function st(v,E,Y){var V=Z("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=Y[0],V[5]=Y[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Dt=this.props[5],Pt=this.props[12],me=this.props[13];V[0]=v[0]*ct+v[1]*xt+Pt,V[1]=v[0]*gt+v[1]*Dt+me,V[2]=E[0]*ct+E[1]*xt+Pt,V[3]=E[0]*gt+E[1]*Dt+me,V[4]=Y[0]*ct+Y[1]*xt+Pt,V[5]=Y[0]*gt+Y[1]*Dt+me}return V}function St(v,E,Y){var V;return this.isIdentity()?V=[v,E,Y]:V=[v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]],V}function ht(v,E){if(this.isIdentity())return v+","+E;var Y=this.props;return Math.round((v*Y[0]+E*Y[4]+Y[12])*100)/100+","+Math.round((v*Y[1]+E*Y[5]+Y[13])*100)/100}function rt(){for(var v=0,E=this.props,Y="matrix3d(",V=1e4;v<16;)Y+=d(E[v]*V)/V,Y+=v===15?")":",",v+=1;return Y}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=C(v[0]),Y=C(v[1]),V=C(v[4]),ct=C(v[5]),gt=C(v[12]),xt=C(v[13]);return"matrix("+E+","+Y+","+V+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=b,this.skew=L,this.skewFromAxis=G,this.shear=w,this.scale=x,this.setTransform=O,this.translate=P,this.transform=R,this.multiply=U,this.applyToPoint=N,this.applyToX=$,this.applyToY=H,this.applyToZ=j,this.applyToPointArray=St,this.applyToTriplePoints=st,this.applyToPointStringified=ht,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=_,this.equals=k,this.inversePoints=ut,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=M,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function sl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(a){return typeof a}:sl=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},sl(r)}var Bt={},al="__[STANDALONE]__",Xm="__[ANIMATIONDATA]__",Zm="";function kE(r){c(r)}function Qm(){al===!0?pe.searchAnimations(Xm,al,Zm):pe.searchAnimations()}function wE(r){hE(r)}function NE(r){uE(r)}function ME(r){return al===!0&&(r.animationData=JSON.parse(Xm)),pe.loadAnimation(r)}function LE(r){if(typeof r=="string")switch(r){case"high":Qn(200);break;default:case"medium":Qn(50);break;case"low":Qn(10);break}else!isNaN(r)&&r>1&&Qn(r);Ea()>=50?gr(!1):gr(!0)}function OE(){return typeof navigator<"u"}function RE(r,s){r==="expressions"&&mE(s)}function DE(r){switch(r){case"propertyFactory":return at;case"shapePropertyFactory":return ol;case"matrix":return Le;default:return null}}Bt.play=pe.play,Bt.pause=pe.pause,Bt.setLocationHref=kE,Bt.togglePause=pe.togglePause,Bt.setSpeed=pe.setSpeed,Bt.setDirection=pe.setDirection,Bt.stop=pe.stop,Bt.searchAnimations=Qm,Bt.registerAnimation=pe.registerAnimation,Bt.loadAnimation=ME,Bt.setSubframeRendering=wE,Bt.resize=pe.resize,Bt.goToAndStop=pe.goToAndStop,Bt.destroy=pe.destroy,Bt.setQuality=LE,Bt.inBrowser=OE,Bt.installPlugin=RE,Bt.freeze=pe.freeze,Bt.unfreeze=pe.unfreeze,Bt.setVolume=pe.setVolume,Bt.mute=pe.mute,Bt.unmute=pe.unmute,Bt.getRegisteredAnimations=pe.getRegisteredAnimations,Bt.useWebWorker=o,Bt.setIDPrefix=NE,Bt.__getFactory=DE,Bt.version="5.12.2";function PE(){document.readyState==="complete"&&(clearInterval(VE),Qm())}function FE(r){for(var s=Jm.split("&"),a=0;a<s.length;a+=1){var d=s[a].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var Jm="";if(al){var tu=document.getElementsByTagName("script"),$E=tu.length-1,eu=tu[$E]||{src:""};Jm=eu.src?eu.src.replace(/^[^\?]+\??/,""):"",Zm=FE("renderer")}var VE=setInterval(PE,100);try{!((typeof rn>"u"?"undefined":sl(rn))==="object"&&typeof Hl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Bt)}catch{}var Gi=function(){var r={},s={};r.registerModifier=a,r.getModifier=d;function a(m,p){s[m]||(s[m]=p)}function d(m,p,g){return new s[m](p,g)}return r}();function Tr(){}Tr.prototype.initModifierProperties=function(){},Tr.prototype.addShapeToModifier=function(){},Tr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:_s.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Tr.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)},Tr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ie],Tr);function Rr(){}A([Tr],Rr),Rr.prototype.initModifierProperties=function(r,s){this.s=at.getProp(r,s.s,0,.01,this),this.e=at.getProp(r,s.e,0,.01,this),this.o=at.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Rr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Rr.prototype.calculateShapeEdges=function(r,s,a,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var g=[],I,b=p.length,w;for(I=0;I<b;I+=1)if(w=p[I],!(w.e*m<d||w.s*m>d+a)){var L,G;w.s*m<=d?L=0:L=(w.s*m-d)/a,w.e*m>=d+a?G=1:G=(w.e*m-d)/a,g.push([L,G])}return g.length||g.push([0,0]),g},Rr.prototype.releasePathsData=function(r){var s,a=r.length;for(s=0;s<a;s+=1)Km.release(r[s]);return r.length=0,r},Rr.prototype.processShapes=function(r){var s,a;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?a=1+d:this.e.v<0?a=0+d:a=this.e.v+d,s>a){var m=s;s=a,a=m}s=Math.round(s*1e4)*1e-4,a=Math.round(a*1e4)*1e-4,this.sValue=s,this.eValue=a}else s=this.sValue,a=this.eValue;var p,g,I=this.shapes.length,b,w,L,G,x,O=0;if(a===s)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(a===1&&s===0||a===0&&s===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var P=[],R,U;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,w=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(L=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)G=Wr.getSegmentsLength(p.shapes[b]),L.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=L}O+=x,R.shape._mdf=!0}var M=s,k=a,T=0,_;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(U=R.localShapeCollection,U.releaseShapes(),this.m===2&&I>1?(_=this.calculateShapeEdges(s,a,R.totalShapeLength,T,O),T+=R.totalShapeLength):_=[[M,k]],w=_.length,b=0;b<w;b+=1){M=_[b][0],k=_[b][1],P.length=0,k<=1?P.push({s:R.totalShapeLength*M,e:R.totalShapeLength*k}):M>=1?P.push({s:R.totalShapeLength*(M-1),e:R.totalShapeLength*(k-1)}):(P.push({s:R.totalShapeLength*M,e:R.totalShapeLength}),P.push({s:0,e:R.totalShapeLength*(k-1)}));var N=this.addShapes(R,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var H=N.pop();this.addPaths(N,U),N=this.addShapes(R,P[1],H)}else this.addPaths(N,U),N=this.addShapes(R,P[1])}this.addPaths(N,U)}}R.shape.paths=U}}},Rr.prototype.addPaths=function(r,s){var a,d=r.length;for(a=0;a<d;a+=1)s.addShape(r[a])},Rr.prototype.addSegment=function(r,s,a,d,m,p,g){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(a[0],a[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Rr.prototype.addSegmentFromArray=function(r,s,a,d){s.setXYAt(r[1],r[5],"o",a),s.setXYAt(r[2],r[6],"i",a+1),d&&s.setXYAt(r[0],r[4],"v",a),s.setXYAt(r[3],r[7],"v",a+1)},Rr.prototype.addShapes=function(r,s,a){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,b,w=0,L,G,x,O,P=[],R,U=!0;for(a?(G=a._length,R=a._length):(a=Me.newElement(),G=0,R=0),P.push(a),p=0;p<g;p+=1){for(x=d[p].lengths,a.c=m[p].c,b=m[p].c?x.length:x.length+1,I=1;I<b;I+=1)if(L=x[I-1],w+L.addedLength<s.s)w+=L.addedLength,a.c=!1;else if(w>s.e){a.c=!1;break}else s.s<=w&&s.e>=w+L.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],a,G,U),U=!1):(O=Wr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-w)/L.addedLength,(s.e-w)/L.addedLength,x[I-1]),this.addSegmentFromArray(O,a,G,U),U=!1,a.c=!1),w+=L.addedLength,G+=1;if(m[p].c&&x.length){if(L=x[I-1],w<=s.e){var M=x[I-1].addedLength;s.s<=w&&s.e>=w+M?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],a,G,U),U=!1):(O=Wr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-w)/M,(s.e-w)/M,x[I-1]),this.addSegmentFromArray(O,a,G,U),U=!1,a.c=!1)}else a.c=!1;w+=L.addedLength,G+=1}if(a._length&&(a.setXYAt(a.v[R][0],a.v[R][1],"i",R),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),w>s.e)break;p<g-1&&(a=Me.newElement(),U=!0,P.push(a),G=0)}return P};function Ia(){}A([Tr],Ia),Ia.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=at.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ia.prototype.processPath=function(r,s){var a=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=Me.newElement();g.c=r.c;var I,b,w,L,G,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*a,b=r.v[p][1]+(d[1]-r.v[p][1])*a,w=r.o[p][0]+(d[0]-r.o[p][0])*-a,L=r.o[p][1]+(d[1]-r.o[p][1])*-a,G=r.i[p][0]+(d[0]-r.i[p][0])*-a,x=r.i[p][1]+(d[1]-r.i[p][1])*-a,g.setTripleAt(I,b,w,L,G,x,p);return g},Ia.prototype.processShapes=function(r){var s,a,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,b;for(a=0;a<d;a+=1){if(I=this.shapes[a],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var kc=function(){var r=[0,0];function s(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var w;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var L,G;if(w=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/w,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/w,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/w,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(L=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(L[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),L[1]=O.getValueAtTime((O.keyframes[0].t+.01)/w,0),G[0]=x.getValueAtTime(x.keyframes[0].t/w,0),G[1]=O.getValueAtTime(O.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(L[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),L[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/w,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),G[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/w,0)):(L=[x.pv,O.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),G[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/w,O.offsetTime))}else G=r,L=G;this.v.rotate(-Math.atan2(L[1]-G[1],L[0]-G[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,L){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new Le,this.pre=new Le,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||b),w.p&&w.p.s?(this.px=at.getProp(b,w.p.x,0,0,this),this.py=at.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=at.getProp(b,w.p.z,0,0,this))):this.p=at.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=at.getProp(b,w.rx,0,Nt,this),this.ry=at.getProp(b,w.ry,0,Nt,this),this.rz=at.getProp(b,w.rz,0,Nt,this),w.or.k[0].ti){var G,x=w.or.k.length;for(G=0;G<x;G+=1)w.or.k[G].to=null,w.or.k[G].ti=null}this.or=at.getProp(b,w.or,1,Nt,this),this.or.sh=!0}else this.r=at.getProp(b,w.r||{k:0},0,Nt,this);w.sk&&(this.sk=at.getProp(b,w.sk,0,Nt,this),this.sa=at.getProp(b,w.sa,0,Nt,this)),this.a=at.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=at.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:a,precalculateMatrix:d,autoOrient:m},A([Ie],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Ie.prototype.addDynamicProperty;function I(b,w,L){return new g(b,w,L)}return{getTransformProperty:I}}();function Yr(){}A([Tr],Yr),Yr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=at.getProp(r,s.c,0,null,this),this.o=at.getProp(r,s.o,0,null,this),this.tr=kc.getTransformProperty(r,s.tr,this),this.so=at.getProp(r,s.tr.so,0,.01,this),this.eo=at.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 Le,this.rMatrix=new Le,this.sMatrix=new Le,this.tMatrix=new Le,this.matrix=new Le},Yr.prototype.applyTransforms=function(r,s,a,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),b=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*g*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),a.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),a.scale(p?1/I:I,p?1/b:b),a.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Yr.prototype.init=function(r,s,a,d){for(this.elem=r,this.arr=s,this.pos=a,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[a]);a>0;)a-=1,this._elements.unshift(s[a]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Yr.prototype.resetElements=function(r){var s,a=r.length;for(s=0;s<a;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Yr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Yr.prototype.changeGroupRender=function(r,s){var a,d=r.length;for(a=0;a<d;a+=1)r[a]._render=s,r[a].ty==="gr"&&this.changeGroupRender(r[a].it,s)},Yr.prototype.processShapes=function(r){var s,a,d,m,p,g=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}p=0;var w;for(d=0;d<=this._groups.length-1;d+=1){if(w=p<I,this._groups[d]._render=w,this.changeGroupRender(this._groups[d].it,w),!w){var L=this.elemsData[d].it,G=L[L.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,P=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,U=this.rMatrix.props,M=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var k=0;if(x>0){for(;k<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),k+=O)}else if(x<0){for(;k>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),k-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,_;p;){if(s=this.elemsData[d].it,a=s[s.length-1].transform.mProps.v.props,_=a.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),k!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<_;T+=1)a[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<_;T+=1)a[T]=this.matrix.props[T];k+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,a=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return g},Yr.prototype.addShape=function(){};function _a(){}A([Tr],_a),_a.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=at.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},_a.prototype.processPath=function(r,s){var a=Me.newElement();a.c=r.c;var d,m=r._length,p,g,I,b,w,L,G=0,x,O,P,R,U,M;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(a.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],G),G+=1):(d===0?b=r.v[m-1]:b=r.v[d-1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,U=p[0]+(b[0]-p[0])*L,x=U,M=p[1]-(p[1]-b[1])*L,O=M,P=x-(x-p[0])*he,R=O-(O-p[1])*he,a.setTripleAt(x,O,P,R,U,M,G),G+=1,d===m-1?b=r.v[0]:b=r.v[d+1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,P=p[0]+(b[0]-p[0])*L,x=P,R=p[1]+(b[1]-p[1])*L,O=R,U=x-(x-p[0])*he,M=O-(O-p[1])*he,a.setTripleAt(x,O,P,R,U,M,G),G+=1):(a.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],G),G+=1);return a},_a.prototype.processShapes=function(r){var s,a,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,b;for(a=0;a<d;a+=1){if(I=this.shapes[a],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function wc(r){return Math.abs(r)<=1e-5}function ru(r,s,a){return r*(1-a)+s*a}function Ki(r,s,a){return[ru(r[0],s[0],a),ru(r[1],s[1],a)]}function zE(r,s,a){if(r===0)return[];var d=s*s-4*r*a;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function iu(r,s,a,d){return[-r+3*s-3*a+d,3*r-6*s+3*a,-3*r+3*s,r]}function ou(r){return new oe(r,r,r,r,!1)}function oe(r,s,a,d,m){m&&ks(r,s)&&(s=Ki(r,d,1/3)),m&&ks(a,d)&&(a=Ki(r,d,2/3));var p=iu(r[0],s[0],a[0],d[0]),g=iu(r[1],s[1],a[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,s,a,d]}oe.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]]},oe.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]]},oe.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},oe.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},oe.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(wc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,a=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(a<0)return[];var d=Math.sqrt(a);return wc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},oe.prototype.split=function(r){if(r<=0)return[ou(this.points[0]),this];if(r>=1)return[this,ou(this.points[this.points.length-1])];var s=Ki(this.points[0],this.points[1],r),a=Ki(this.points[1],this.points[2],r),d=Ki(this.points[2],this.points[3],r),m=Ki(s,a,r),p=Ki(a,d,r),g=Ki(m,p,r);return[new oe(this.points[0],s,m,g,!0),new oe(g,p,d,this.points[3],!0)]};function su(r,s){var a=r.points[0][s],d=r.points[r.points.length-1][s];if(a>d){var m=d;d=a,a=m}for(var p=zE(3*r.a[s],2*r.b[s],r.c[s]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[s];I<a?a=I:I>d&&(d=I)}return{min:a,max:d}}oe.prototype.bounds=function(){return{x:su(this,0),y:su(this,1)}},oe.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function ll(r,s,a){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+a)/2,t1:s,t2:a}}function au(r){var s=r.bez.split(.5);return[ll(s[0],r.t1,r.t),ll(s[1],r.t,r.t2)]}function BE(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 Ca(r,s,a,d,m,p){if(BE(r,s)){if(a>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var g=au(r),I=au(s);Ca(g[0],I[0],a+1,d,m,p),Ca(g[0],I[1],a+1,d,m,p),Ca(g[1],I[0],a+1,d,m,p),Ca(g[1],I[1],a+1,d,m,p)}}oe.prototype.intersections=function(r,s,a){s===void 0&&(s=2),a===void 0&&(a=7);var d=[];return Ca(ll(this,0,1),ll(r,0,1),0,s,d,a),d},oe.shapeSegment=function(r,s){var a=(s+1)%r.length();return new oe(r.v[s],r.o[s],r.i[a],r.v[a],!0)},oe.shapeSegmentInverted=function(r,s){var a=(s+1)%r.length();return new oe(r.v[a],r.i[a],r.o[s],r.v[s],!0)};function Nc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function dl(r,s,a,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],g=[a[0],a[1],1],I=[d[0],d[1],1],b=Nc(Nc(m,p),Nc(g,I));return wc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function Cs(r,s,a){return[r[0]+Math.cos(s)*a,r[1]-Math.sin(s)*a]}function Mc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ks(r,s){return nl(r[0],s[0])&&nl(r[1],s[1])}function ka(){}A([Tr],ka),ka.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=at.getProp(r,s.s,0,null,this),this.frequency=at.getProp(r,s.r,0,null,this),this.pointsType=at.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 nu(r,s,a,d,m,p,g){var I=a-Math.PI/2,b=a+Math.PI/2,w=s[0]+Math.cos(a)*d*m,L=s[1]-Math.sin(a)*d*m;r.setTripleAt(w,L,w+Math.cos(I)*p,L-Math.sin(I)*p,w+Math.cos(b)*g,L-Math.sin(b)*g,r.length())}function UE(r,s){var a=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*a[0]-Math.sin(d)*a[1],Math.sin(d)*a[0]+Math.cos(d)*a[1]];return m}function HE(r,s){var a=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[a],p=r.v[d],g=UE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function lu(r,s,a,d,m,p,g){var I=HE(s,a),b=s.v[a%s._length],w=s.v[a===0?s._length-1:a-1],L=s.v[(a+1)%s._length],G=p===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=p===2?Math.sqrt(Math.pow(b[0]-L[0],2)+Math.pow(b[1]-L[1],2)):0;nu(r,s.v[a%s._length],I,g,d,x/((m+1)*2),G/((m+1)*2),p)}function GE(r,s,a,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+1),b=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,w=s.normalAngle(I),L=s.point(I);nu(r,L,w,p,a,b/((d+1)*2),b/((d+1)*2),m),p=-p}return p}ka.prototype.processPath=function(r,s,a,d){var m=r._length,p=Me.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=oe.shapeSegment(r,0);lu(p,r,0,s,a,d,g);for(var b=0;b<m;b+=1)g=GE(p,I,s,a,d,-g),b===m-1&&!r.c?I=null:I=oe.shapeSegment(r,(b+1)%m),lu(p,r,b+1,s,a,d,g);return p},ka.prototype.processShapes=function(r){var s,a,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,L;for(a=0;a<d;a+=1){if(w=this.shapes[a],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,I,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Lc(r,s,a){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Cs(r,d,a),Cs(s,d,a)]}function ws(r,s){var a,d,m,p,g,I,b;b=Lc(r.points[0],r.points[1],s),a=b[0],d=b[1],b=Lc(r.points[1],r.points[2],s),m=b[0],p=b[1],b=Lc(r.points[2],r.points[3],s),g=b[0],I=b[1];var w=dl(a,d,m,p);w===null&&(w=d);var L=dl(g,I,m,p);return L===null&&(L=g),new oe(a,w,L,I)}function du(r,s,a,d,m){var p=s.points[3],g=a.points[0];if(d===3||ks(p,g))return p;if(d===2){var I=-s.tangentAngle(1),b=-a.tangentAngle(0)+Math.PI,w=dl(p,Cs(p,I+Math.PI/2,100),g,Cs(g,I+Math.PI/2,100)),L=w?Mc(w,p):Mc(p,g)/2,G=Cs(p,I,2*L*he);return r.setXYAt(G[0],G[1],"o",r.length()-1),G=Cs(g,b,2*L*he),r.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],r.length()),g}var x=ks(p,s.points[2])?s.points[0]:s.points[2],O=ks(g,a.points[1])?a.points[3]:a.points[1],P=dl(x,p,g,O);return P&&Mc(P,p)<m?(r.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],r.length()),P):p}function cu(r,s){var a=r.intersections(s);return a.length&&nl(a[0][0],1)&&a.shift(),a.length?a[0]:null}function hu(r,s){var a=r.slice(),d=s.slice(),m=cu(r[r.length-1],s[0]);return m&&(a[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=cu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[a,d]}function KE(r){for(var s,a=1;a<r.length;a+=1)s=hu(r[a-1],r[a]),r[a-1]=s[0],r[a]=s[1];return r.length>1&&(s=hu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function pu(r,s){var a=r.inflectionPoints(),d,m,p,g;if(a.length===0)return[ws(r,s)];if(a.length===1||nl(a[1],1))return p=r.split(a[0]),d=p[0],m=p[1],[ws(d,s),ws(m,s)];p=r.split(a[0]),d=p[0];var I=(a[1]-a[0])/(1-a[0]);return p=p[1].split(I),g=p[0],m=p[1],[ws(d,s),ws(g,s),ws(m,s)]}function wa(){}A([Tr],wa),wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=at.getProp(r,s.a,0,null,this),this.miterLimit=at.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},wa.prototype.processPath=function(r,s,a,d){var m=Me.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,b,w=[];for(g=0;g<p;g+=1)b=oe.shapeSegment(r,g),w.push(pu(b,s));if(!r.c)for(g=p-1;g>=0;g-=1)b=oe.shapeSegmentInverted(r,g),w.push(pu(b,s));w=KE(w);var L=null,G=null;for(g=0;g<w.length;g+=1){var x=w[g];for(G&&(L=du(m,G,x[0],a,d)),G=x[x.length-1],I=0;I<x.length;I+=1)b=x[I],L&&ks(b.points[0],L)?m.setXYAt(b.points[1][0],b.points[1][1],"o",m.length()-1):m.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],m.length()),m.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],m.length()),L=b.points[3]}return w.length&&du(m,G,w[0][0],a,d),m},wa.prototype.processShapes=function(r){var s,a,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,L;for(a=0;a<d;a+=1){if(w=this.shapes[a],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,b,I));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function mu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],a="normal",d="normal",m=s.length,p,g=0;g<m;g+=1)switch(p=s[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:d,weight:r.fWeight||a}}var Mo=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,g=917626,I=65039,b=8205,w=127462,L=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var D=C.split(","),v,E=D.length,Y=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&Y.push(D[v]);return Y.join(",")}function O(C,D){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var Y=E.offsetWidth;return E.style.fontFamily=x(C)+", "+D,{node:E,w:Y,parent:v}}function P(){var C,D=this.fonts.length,v,E,Y=D;for(C=0;C<D;C+=1)this.fonts[C].loaded?Y-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(Y-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(Y-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));Y!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,D){var v=document.body&&D?"svg":"canvas",E,Y=mu(C);if(v==="svg"){var V=At("text");V.style.fontSize="100px",V.setAttribute("font-family",C.fFamily),V.setAttribute("font-style",Y.style),V.setAttribute("font-weight",Y.weight),V.textContent="1",C.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",C.fClass)):V.style.fontFamily=C.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=Y.style+" "+Y.weight+" 100px "+C.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function U(C,D){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(Qe){Qe.helper=R(Qe),Qe.cache={}}),this.fonts=C.list;return}var v=C.list,E,Y=v.length,V=Y;for(E=0;E<Y;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Dt=y("style");Dt.setAttribute("f-forigin",v[E].fOrigin),Dt.setAttribute("f-origin",v[E].origin),Dt.setAttribute("f-family",v[E].fFamily),Dt.type="text/css",Dt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Dt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Pt=y("link");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.type="text/css",Pt.rel="stylesheet",Pt.href=v[E].fPath,document.body.appendChild(Pt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var me=y("link");me.setAttribute("f-forigin",v[E].fOrigin),me.setAttribute("f-origin",v[E].origin),me.setAttribute("rel","stylesheet"),me.setAttribute("href",v[E].fPath),D.appendChild(me)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function M(C){if(C){this.chars||(this.chars=[]);var D,v=C.length,E,Y=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<Y;)this.chars[E].style===C[D].style&&this.chars[E].fFamily===C[D].fFamily&&this.chars[E].ch===C[D].ch&&(V=!0),E+=1;V||(this.chars.push(C[D]),Y+=1)}}}function k(C,D,v){for(var E=0,Y=this.chars.length;E<Y;){if(this.chars[E].ch===C&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,D,v)),s}function T(C,D,v){var E=this.getFontByName(D),Y=C;if(!E.cache[Y]){var V=E.helper;if(C===" "){var ct=V.measureText("|"+C+"|"),gt=V.measureText("||");E.cache[Y]=(ct-gt)/100}else E.cache[Y]=V.measureText(C)/100}return E.cache[Y]*v}function _(C){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===C)return this.fonts[D];D+=1}return this.fonts[0]}function N(C){var D=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(C,D){var v=C.toString(16)+D.toString(16);return G.indexOf(v)!==-1}function H(C){return C===b}function j(C){return C===I}function it(C){var D=N(C);return D>=w&&D<=L}function Tt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return a.indexOf(C)!==-1}function st(C,D){var v=N(C.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(C.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(C.substr(D,2))===m}function St(){this.isLoaded=!0}var ht=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ht.isModifier=$,ht.isZeroWidthJoiner=H,ht.isFlagEmoji=Tt,ht.isRegionalCode=it,ht.isCombinedCharacter=ut,ht.isRegionalFlag=st,ht.isVariationSelector=j,ht.BLACK_FLAG_CODE_POINT=d;var rt={addChars:M,addFonts:U,getCharData:k,getFontByName:_,measureText:T,checkLoadedFonts:P,setIsLoaded:St};return ht.prototype=rt,ht}();function uu(r){this.animationData=r}uu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function WE(r){return new uu(r)}function cl(){}cl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,a=this.renderableComponents.length;for(s=0;s<a;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 Oc=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 YE(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function jE(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function qE(r,s,a){this.p=at.getProp(s,r.v,1,0,a)}function XE(r,s,a){this.p=at.getProp(s,r.v,1,0,a)}function ZE(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function QE(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function JE(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function tT(){this.p={}}function fu(r,s){var a=r.ef||[];this.effectElements=[];var d,m=a.length,p;for(d=0;d<m;d+=1)p=new Na(a[d],s),this.effectElements.push(p)}function Na(r,s){this.init(r,s)}A([Ie],Na),Na.prototype.getValue=Na.prototype.iterateDynamicProperties,Na.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var a,d=this.data.ef.length,m,p=this.data.ef;for(a=0;a<d;a+=1){switch(m=null,p[a].ty){case 0:m=new YE(p[a],s,this);break;case 1:m=new jE(p[a],s,this);break;case 2:m=new qE(p[a],s,this);break;case 3:m=new XE(p[a],s,this);break;case 4:case 7:m=new JE(p[a],s,this);break;case 10:m=new ZE(p[a],s,this);break;case 11:m=new QE(p[a],s,this);break;case 5:m=new fu(p[a],s,this);break;default:m=new tT(p[a],s,this);break}m&&this.effectElements.push(m)}};function Wi(){}Wi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,a=this.data.masksProperties.length;s<a;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Bm();if(s){var a=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),g=s("comp");this.layerInterface=a(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=Oc(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=s},initBaseData:function(s,a,d){this.globalData=a,this.comp=d,this.data=s,this.layerId=Xe(),this.data.sr||(this.data.sr=1),this.effectsManager=new fu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Yi(){}Yi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,a){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(a||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ji(r,s,a){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,a)}ji.prototype.prepareFrame=function(){},A([cl,Wi,Yi],ji),ji.prototype.getBaseElement=function(){return null},ji.prototype.renderFrame=function(){},ji.prototype.destroy=function(){},ji.prototype.initExpressions=function(){var r=Bm();if(r){var s=r("footage");this.layerInterface=s(this)}},ji.prototype.getFootageData=function(){return this.footageData};function Ze(r,s,a){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,a),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?at.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}Ze.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 a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},A([cl,Wi,Yi],Ze),Ze.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))},Ze.prototype.show=function(){},Ze.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ze.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ze.prototype.resume=function(){this._canPlay=!0},Ze.prototype.setRate=function(r){this.audio.rate(r)},Ze.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},Ze.prototype.getBaseElement=function(){return null},Ze.prototype.destroy=function(){},Ze.prototype.sourceRectAtTime=function(){},Ze.prototype.initExpressions=function(){};function Oe(){}Oe.prototype.checkLayers=function(r){var s,a=this.layers.length,d;for(this.completeLayers=!0,s=a-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Oe.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)}},Oe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Oe.prototype.createAudio=function(r){return new Ze(r,this.globalData,this)},Oe.prototype.createFootage=function(r){return new ji(r,this.globalData,this)},Oe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Oe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,a=r.length,d,m=this.layers.length;for(s=0;s<a;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Oe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Oe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Oe.prototype.buildElementParenting=function(r,s,a){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(a.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,a):r.setHierarchy(a))),p+=1},Oe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Oe.prototype.searchExtraCompositions=function(r){var s,a=r.length;for(s=0;s<a;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Oe.prototype.getElementById=function(r){var s,a=this.elements.length;for(s=0;s<a;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Oe.prototype.getElementByPath=function(r){var s=r.shift(),a;if(typeof s=="number")a=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){a=this.elements[d];break}}return r.length===0?a:a.getElementByPath(r)},Oe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Mo,this.globalData.slotManager=WE(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 eT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new Le;this.finalTransform={mProp:this.data.ks?kc.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,a=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,a.cloneFromProps(s),d=0;d<m;d+=1)a.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<a;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<a;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<a;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(eT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Le;var a=0,d=s.length;for(a=0;a<d;a+=1)this.localTransforms.push(s[a])}}},globalToLocal:function(s){var a=[];a.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&a.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=a.length,I;for(p=0;p<g;p+=1)I=a[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Le};function Lo(r,s,a){this.data=r,this.element=s,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=et(p),this.solidPath="";var g,I=this.masksProperties,b=0,w=[],L,G,x=Xe(),O,P,R,U,M="clipPath",k="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(M="mask",k="mask"),(I[m].mode==="s"||I[m].mode==="i")&&b===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),w.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:at.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(M="mask",k="mask",U=at.getProp(this.element,I[m].x,0,null,this.element),T=Xe(),P=At("filter"),P.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),P.appendChild(R),d.appendChild(P),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,U=null),this.storedData[m]={elem:g,x:U,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){G=w.length;var _=At("g");for(L=0;L<G;L+=1)_.appendChild(w[L]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),_.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),w.length=0,w.push(_)}else w.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:at.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=At(M),p=w.length,m=0;m<p;m+=1)this.maskElement.appendChild(w[m]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(k,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Lo.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Lo.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,a,d=this.masksProperties.length;for(a=0;a<d;a+=1)if((this.viewData[a].prop._mdf||r)&&this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]),(this.viewData[a].op._mdf||r)&&this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v),this.masksProperties[a].mode!=="n"&&(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[a].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[a].x&&(this.storedData[a].x._mdf||r))){var m=this.storedData[a].expan;this.storedData[a].x.v<0?(this.storedData[a].lastOperator!=="erode"&&(this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+f()+"#"+this.storedData[a].filterId+")")),m.setAttribute("radius",-this.storedData[a].x.v)):(this.storedData[a].lastOperator!=="dilate"&&(this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null)),this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2))}},Lo.prototype.getMaskelement=function(){return this.maskElement},Lo.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},Lo.prototype.drawPath=function(r,s,a){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),a.lastPath!==d){var g="";a.elem&&(s.c&&(g=r.inv?this.solidPath+d:d),a.elem.setAttribute("d",g)),a.lastPath=d}},Lo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ma=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=a;function s(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function a(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),vu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),hl={},gu="filter_result_";function Rc(r){var s,a="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=Xe(),p=Ma.createFilter(m,!0),g=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var b=r.data.ef[s].ty;if(hl[b]){var w=hl[b].effect;I=new w(p,r.effectsManager.effectElements[s],r,gu+g,a),a=gu+g,hl[b].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}Rc.prototype.renderFrame=function(r){var s,a=this.filters.length;for(s=0;s<a;s+=1)this.filters[s].renderFrame(r)},Rc.prototype.getEffects=function(r){var s,a=this.filters.length,d=[];for(s=0;s<a;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function yI(r,s,a){hl[r]={effect:s,countsAsEffect:a}}function La(){}La.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var a=At("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),s=a,this.globalData.defs.appendChild(a)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=At("clipPath"),m=At("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=Xe();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Lo(this.data,this,this.globalData),this.renderableEffectsManager=new Rc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var a=this.layerId+"_"+s,d,m,p,g;if(s===1||s===3){var I=At("mask");I.setAttribute("id",a),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!vu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=Xe(),m=Ma.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Ma.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var b=At("mask");b.setAttribute("id",a),b.setAttribute("mask-type","alpha");var w=At("g");b.appendChild(w),d=Xe(),m=Ma.createFilter(d);var L=At("feComponentTransfer");L.setAttribute("in","SourceGraphic"),m.appendChild(L);var G=At("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),L.appendChild(G),this.globalData.defs.appendChild(m);var x=At("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),w.setAttribute("filter","url("+f()+"#"+d+")"),w.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(p),vu.maskType||(b.setAttribute("mask-type","luminance"),m.appendChild(Ma.createAlphaToLuminanceFilter()),g=At("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[s]=a}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ms(){}Ms.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Oa(){}(function(){var r={initElement:function(a,d,m){this.initFrame(),this.initBaseData(a,d,m),this.initTransform(a,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.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(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([cl,W(r)],Oa)})();function Ra(r,s,a){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Wi,Ns,La,Ms,Yi,Oa],Ra),Ra.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Ra.prototype.sourceRectAtTime=function(){return this.sourceRect};function rT(r,s){this.elem=r,this.pos=s}function bu(){}bu.prototype={addShapeToModifiers:function(s){var a,d=this.shapeModifiers.length;for(a=0;a<d;a+=1)this.shapeModifiers[a].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var a=0,d=this.shapeModifiers.length;a<d;)if(this.shapeModifiers[a].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,a=this.shapes.length;for(s=0;s<a;s+=1)this.shapes[s].sh.reset();a=this.shapeModifiers.length;var d;for(s=a-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var a=this.processedElements,d=0,m=a.length;d<m;){if(a[d].elem===s)return a[d].pos;d+=1}return 0},addProcessedElement:function(s,a){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=a;return}d.push(new rT(s,a))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var yu={1:"butt",2:"round",3:"square"},Eu={1:"miter",2:"round",3:"bevel"};function Tu(r,s,a){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=a,this.lvl=s,this._isAnimated=!!a.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Tu.prototype.setAsAnimated=function(){this._isAnimated=!0};function xu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}xu.prototype.reset=function(){this.d="",this._mdf=!1};function pl(r,s,a,d){this.elem=r,this.frameId=-1,this.dataProps=et(s.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=Z("float32",s.length?s.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,g;for(m=0;m<p;m+=1)g=at.getProp(r,s[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:s[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}pl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,a=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<a;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Ie],pl);function Au(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(r,s.o,0,.01,this),this.w=at.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.c=at.getProp(r,s.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}A([Ie],Au);function Su(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(r,s.o,0,.01,this),this.c=at.getProp(r,s.c,1,255,this),this.style=a}A([Ie],Su);function Iu(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=a}A([Ie],Iu);function Da(r,s,a){this.data=s,this.c=Z("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=Z("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(a),this.prop=at.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Da.prototype.comparePoints=function(r,s){for(var a=0,d=this.o.length/2,m;a<d;){if(m=Math.abs(r[a*4]-r[s*4+a*2]),m>.01)return!1;a+=1}return!0},Da.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},Da.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,a=this.data.p*4,d,m;for(s=0;s<a;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(a=this.prop.v.length,s=this.data.p*4;s<a;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Ie],Da);function Ls(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,a)}Ls.prototype.initGradientData=function(r,s,a){this.o=at.getProp(r,s.o,0,.01,this),this.s=at.getProp(r,s.s,1,null,this),this.e=at.getProp(r,s.e,1,null,this),this.h=at.getProp(r,s.h||{k:0},0,.01,this),this.a=at.getProp(r,s.a||{k:0},0,Nt,this),this.g=new Da(r,s.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,s),this.setGradientOpacity(s,a),this._isAnimated=!!this._isAnimated},Ls.prototype.setGradientData=function(r,s){var a=Xe(),d=At(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",a),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=s.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+a+")"),this.gf=d,this.cst=m},Ls.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var a,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=Xe(),b=Xe();p.setAttribute("id",b);var w=At(r.t===1?"linearGradient":"radialGradient");w.setAttribute("id",I),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var L=this.stops;for(d=r.g.p*4;d<m;d+=2)a=At("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(a),L.push(a);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",yu[r.lc||2]),g.setAttribute("stroke-linejoin",Eu[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=w,this.ms=p,this.ost=L,this.maskId=b,s.msElem=g}},A([Ie],Ls);function _u(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.initGradientData(r,s,a),this._isAnimated=!!this._isAnimated}A([Ls,Ie],_u);function iT(){this.it=[],this.prevViewData=[],this.gr=At("g")}function oT(r,s,a){this.transform={mProps:r,op:s,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Cu=function(s,a,d,m){if(a===0)return"";var p=s.o,g=s.i,I=s.v,b,w=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(b=1;b<a;b+=1)w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[b][0],g[b][1])+" "+m.applyToPointStringified(I[b][0],I[b][1]);return d&&a&&(w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),w+="z"),w},sT=function(){var r=new Le,s=new Le,a={createRenderFunction:d};function d(G){switch(G.ty){case"fl":return I;case"gf":return w;case"gs":return b;case"st":return L;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(G,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function g(G,x,O){var P,R,U,M,k,T,_=x.styles.length,N=x.lvl,$,H,j,it;for(T=0;T<_;T+=1){if(M=x.sh._mdf||O,x.styles[T].lvl<N){for(H=s.reset(),j=N-x.styles[T].lvl,it=x.transformers.length-1;!M&&j>0;)M=x.transformers[it].mProps._mdf||M,j-=1,it-=1;if(M)for(j=N-x.styles[T].lvl,it=x.transformers.length-1;j>0;)H.multiply(x.transformers[it].mProps.v),j-=1,it-=1}else H=r;if($=x.sh.paths,R=$._length,M){for(U="",P=0;P<R;P+=1)k=$.shapes[P],k&&k._length&&(U+=Cu(k,k._length,k.c,H));x.caches[T]=U}else U=x.caches[T];x.styles[T].d+=G.hd===!0?"":U,x.styles[T]._mdf=M||x.styles[T]._mdf}}function I(G,x,O){var P=x.style;(x.c._mdf||O)&&P.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){w(G,x,O),L(G,x,O)}function w(G,x,O){var P=x.gf,R=x.g._hasOpacity,U=x.s.v,M=x.e.v;if(x.o._mdf||O){var k=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(k,x.o.v)}if(x.s._mdf||O){var T=G.t===1?"x1":"cx",_=T==="x1"?"y1":"cy";P.setAttribute(T,U[0]),P.setAttribute(_,U[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,U[0]),x.of.setAttribute(_,U[1]))}var N,$,H,j;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(H=N.length,$=0;$<H;$+=1)j=N[$],j.setAttribute("offset",it[$*4]+"%"),j.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,H=N.length,$=0;$<H;$+=1)j=N[$],x.g._collapsable||j.setAttribute("offset",Tt[$*2]+"%"),j.setAttribute("stop-opacity",Tt[$*2+1])}if(G.t===1)(x.e._mdf||O)&&(P.setAttribute("x2",M[0]),P.setAttribute("y2",M[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",M[0]),x.of.setAttribute("y2",M[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(U[0]-M[0],2)+Math.pow(U[1]-M[1],2)),P.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(U[0]-M[0],2)+Math.pow(U[1]-M[1],2)));var st=Math.atan2(M[1]-U[1],M[0]-U[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var ht=ut*St,rt=Math.cos(st+x.a.v)*ht+U[0],C=Math.sin(st+x.a.v)*ht+U[1];P.setAttribute("fx",rt),P.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function L(G,x,O){var P=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(P.pElem.setAttribute("stroke-dasharray",R.dashStr),P.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&P.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(P.pElem.setAttribute("stroke-width",x.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",x.w.v))}return a}();function ne(r,s,a){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,a),this.prevViewData=[]}A([Wi,Ns,La,bu,Ms,Yi,Oa],ne),ne.prototype.initSecondaryElement=function(){},ne.prototype.identityMatrix=new Le,ne.prototype.buildExpressionInterface=function(){},ne.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ne.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,a,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<s;r+=1)a=this.shapes[r],a.styles.indexOf(p)!==-1&&(g.push(a),I=a._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},ne.prototype.setShapesAsAnimated=function(r){var s,a=r.length;for(s=0;s<a;s+=1)r[s].setAsAnimated()},ne.prototype.createStyleElement=function(r,s){var a,d=new xu(r,s),m=d.pElem;if(r.ty==="st")a=new Au(this,r,d);else if(r.ty==="fl")a=new Su(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ls:_u;a=new p(this,r,d),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),m.setAttribute("mask","url("+f()+"#"+a.maskId+")"))}else r.ty==="no"&&(a=new Iu(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",yu[r.lc||2]),m.setAttribute("stroke-linejoin",Eu[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"]=Oc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,a),a},ne.prototype.createGroupElement=function(r){var s=new iT;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"]=Oc(r.bm)),s},ne.prototype.createTransformElement=function(r,s){var a=kc.getTransformProperty(this,r,this),d=new oT(a,a.o,s);return this.addToAnimatedContents(r,d),d},ne.prototype.createShapeElement=function(r,s,a){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=ol.getShapeProp(this,r,d,this),p=new Tu(s,a,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},ne.prototype.addToAnimatedContents=function(r,s){for(var a=0,d=this.animatedContents.length;a<d;){if(this.animatedContents[a].element===s)return;a+=1}this.animatedContents.push({fn:sT.createRenderFunction(r),element:s,data:r})},ne.prototype.setElementStyles=function(r){var s=r.styles,a,d=this.stylesList.length;for(a=0;a<d;a+=1)this.stylesList[a].closed||s.push(this.stylesList[a])},ne.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()},ne.prototype.searchShapes=function(r,s,a,d,m,p,g){var I=[].concat(p),b,w=r.length-1,L,G,x=[],O=[],P,R,U;for(b=w;b>=0;b-=1){if(U=this.searchProcessedElement(r[b]),U?s[b]=a[U-1]:r[b]._render=g,r[b].ty==="fl"||r[b].ty==="st"||r[b].ty==="gf"||r[b].ty==="gs"||r[b].ty==="no")U?s[b].style.closed=!1:s[b]=this.createStyleElement(r[b],m),r[b]._render&&s[b].style.pElem.parentNode!==d&&d.appendChild(s[b].style.pElem),x.push(s[b].style);else if(r[b].ty==="gr"){if(!U)s[b]=this.createGroupElement(r[b]);else for(G=s[b].it.length,L=0;L<G;L+=1)s[b].prevViewData[L]=s[b].it[L];this.searchShapes(r[b].it,s[b].it,s[b].prevViewData,s[b].gr,m+1,I,g),r[b]._render&&s[b].gr.parentNode!==d&&d.appendChild(s[b].gr)}else r[b].ty==="tr"?(U||(s[b]=this.createTransformElement(r[b],d)),P=s[b].transform,I.push(P)):r[b].ty==="sh"||r[b].ty==="rc"||r[b].ty==="el"||r[b].ty==="sr"?(U||(s[b]=this.createShapeElement(r[b],I,m)),this.setElementStyles(s[b])):r[b].ty==="tm"||r[b].ty==="rd"||r[b].ty==="ms"||r[b].ty==="pb"||r[b].ty==="zz"||r[b].ty==="op"?(U?(R=s[b],R.closed=!1):(R=Gi.getModifier(r[b].ty),R.init(this,r[b]),s[b]=R,this.shapeModifiers.push(R)),O.push(R)):r[b].ty==="rp"&&(U?(R=s[b],R.closed=!0):(R=Gi.getModifier(r[b].ty),s[b]=R,R.init(this,r,b,s),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=O.length,b=0;b<w;b+=1)O[b].closed=!0},ne.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"))},ne.prototype.renderShape=function(){var r,s=this.animatedContents.length,a;for(r=0;r<s;r+=1)a=this.animatedContents[r],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0&&a.fn(a.data,a.element,this._isFirstFrame)},ne.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Dc(r,s,a,d,m,p){this.o=r,this.sw=s,this.sc=a,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!a,fc:!!d,m:!0,p:!0}}Dc.prototype.update=function(r,s,a,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==a&&(this.sc=a,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,g=!0),g};function ze(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)}ze.prototype.defaultBoxWidth=[0,0],ze.prototype.copyData=function(r,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a]);return r},ze.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},ze.prototype.searchProperty=function(){return this.searchKeyframes()},ze.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ze.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},ze.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,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)a!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},ze.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,a=0,d=r.length;a<=d-1&&!(a===d-1||r[a+1].t>s);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},ze.prototype.buildFinalText=function(r){for(var s=[],a=0,d=r.length,m,p,g=!1,I=!1,b="";a<d;)g=I,I=!1,m=r.charCodeAt(a),b=r.charAt(a),Mo.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?Mo.isRegionalFlag(r,a)?b=r.substr(a,14):(p=r.charCodeAt(a+1),p>=56320&&p<=57343&&(Mo.isModifier(m,p)?(b=r.substr(a,2),g=!0):Mo.isFlagEmoji(r.substr(a,4))?b=r.substr(a,4):b=r.substr(a,2))):m>56319?(p=r.charCodeAt(a+1),Mo.isVariationSelector(m)&&(g=!0)):Mo.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(s[s.length-1]+=b,g=!1):s.push(b),a+=b.length;return s},ze.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,a=this.data,d=[],m,p,g,I=0,b,w=a.m.g,L=0,G=0,x=0,O=[],P=0,R=0,U,M,k=s.getFontByName(r.f),T,_=0,N=mu(k);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,H;if(r.sz)for(var j=!0,it=r.sz[0],Tt=r.sz[1],ut,st;j;){st=this.buildFinalText(r.t),ut=0,P=0,p=st.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)H=st[m].charCodeAt(0),g=!1,st[m]===" "?St=m:(H===13||H===3)&&(P=0,g=!0,ut+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(st[m],k.fStyle,k.fFamily),_=g?0:T.w*r.finalSize/100):_=s.measureText(st[m],r.f,r.finalSize),P+_>it&&st[m]!==" "?(St===-1?p+=1:m=St,ut+=r.finalLineHeight||r.finalSize*1.2,st.splice(m,St===m?1:0,"\r"),St=-1,P=0):(P+=_,P+=$);ut+=k.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ut?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=st,p=r.finalText.length,j=!1)}P=-$,_=0;var ht=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],H=rt.charCodeAt(0),H===13||H===3?(ht=0,O.push(P),R=P>R?P:R,P=-2*$,b="",g=!0,x+=1):b=rt,s.chars?(T=s.getCharData(rt,k.fStyle,s.getFontByName(r.f).fFamily),_=g?0:T.w*r.finalSize/100):_=s.measureText(b,r.f,r.finalSize),rt===" "?ht+=_+$:(P+=_+$+ht,ht=0),d.push({l:_,an:_,add:L,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(L+=_,b===""||b===" "||m===p-1){for((b===""||b===" ")&&(L-=_);G<=m;)d[G].an=L,d[G].ind=I,d[G].extra=_,G+=1;I+=1,L=0}}else if(w==3){if(L+=_,b===""||m===p-1){for(b===""&&(L-=_);G<=m;)d[G].an=L,d[G].ind=I,d[G].extra=_,G+=1;L=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=P>R?P:R,O.push(P),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var C=a.a,D,v;M=C.length;var E,Y,V=[];for(U=0;U<M;U+=1){for(D=C[U],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),Y=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[U]=Y,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(Y),Y+=1);a.a[U].s.totalChars=Y;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[U]&&(ct=v.anIndexes[U],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[U]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=k.ascent*r.finalSize/100},ze.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var a=this.copyData({},this.data.d.k[s].s);a=this.copyData(a,r),this.data.d.k[s].s=a,this.recalculate(s),this.setCurrentData(a),this.elem.addDynamicProperty(this)},ze.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},ze.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},ze.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var aT=function(){var r=Math.max,s=Math.min,a=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=at.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=at.getProp(p,g.e,0,0,this):this.e={v:100},this.o=at.getProp(p,g.o||{k:0},0,0,this),this.xe=at.getProp(p,g.xe||{k:0},0,0,this),this.ne=at.getProp(p,g.ne||{k:0},0,0,this),this.sm=at.getProp(p,g.sm||{k:100},0,0,this),this.a=at.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,b=0,w=1,L=1;this.ne.v>0?I=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:L=1+this.xe.v/100;var G=Sa.getBezierEasing(I,b,w,L).get,x=0,O=this.finalS,P=this.finalE,R=this.data.sh;if(R===2)P===O?x=g>=P?1:0:x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=G(x);else if(R===3)P===O?x=g>=P?0:1:x=1-r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=G(x);else if(R===4)P===O?x=0:(x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(P===O)x=0;else{var U=P-O;g=s(r(0,g+.5-O),P-O);var M=-U/2+g,k=U/2;x=Math.sqrt(1-M*M/(k*k))}x=G(x)}else R===6?(P===O?x=0:(g=s(r(0,g+.5-O),P-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(P-O)))/2),x=G(x)):(g>=a(O)&&(g-O<0?x=r(0,s(s(P,1)-(O-g),1)):x=r(0,s(P-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var _=.5-T*.5;x<_?x=0:(x=(x-_)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/I,w=this.s.v/I+b,L=this.e.v/I+b;if(w>L){var G=w;w=L,L=G}this.finalS=w,this.finalE=L}},A([Ie],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function nT(r,s,a){var d={propType:!1},m=at.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,Nt,a):d,rx:p.rx?m(r,p.rx,0,Nt,a):d,ry:p.ry?m(r,p.ry,0,Nt,a):d,sk:p.sk?m(r,p.sk,0,Nt,a):d,sa:p.sa?m(r,p.sa,0,Nt,a):d,s:p.s?m(r,p.s,1,.01,a):d,a:p.a?m(r,p.a,1,0,a):d,o:p.o?m(r,p.o,0,.01,a):d,p:p.p?m(r,p.p,1,0,a):d,sw:p.sw?m(r,p.sw,0,0,a):d,sc:p.sc?m(r,p.sc,1,0,a):d,fc:p.fc?m(r,p.fc,1,0,a):d,fh:p.fh?m(r,p.fh,0,0,a):d,fs:p.fs?m(r,p.fs,0,.01,a):d,fb:p.fb?m(r,p.fb,0,.01,a):d,t:p.t?m(r,p.t,0,0,a):d},this.s=aT.getTextSelectorProp(r,s.s,a),this.s.t=s.s.t}function Oo(r,s,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=a,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}Oo.prototype.searchProperties=function(){var r,s=this._textData.a.length,a,d=at.getProp;for(r=0;r<s;r+=1)a=this._textData.a[r],this._animatorsData[r]=new nT(this._elem,a,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},Oo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,b,w,L,G,x=r.l,O,P,R,U,M,k,T,_,N,$,H,j,it,Tt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var St;for(j=0,L=0;L<G;L+=1)St=Wr.buildBezierData(st.v[L],st.v[L+1],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[L+1][0]-st.v[L+1][0],st.i[L+1][1]-st.v[L+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),j+=St.segmentLength;L=G,ut.v.c&&(St=Wr.buildBezierData(st.v[L],st.v[0],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),j+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,P=this._pathData.f.v,T=0,k=1,U=0,M=!0,$=O.segments,P<0&&ut.v.c)for(O.tLength<Math.abs(P)&&(P=-Math.abs(P)%O.tLength),T=$.length-1,N=$[T].points,k=N.length-1;P<0;)P+=N[k].partialLength,k-=1,k<0&&(T-=1,N=$[T].points,k=N.length-1);N=$[T].points,_=N[k-1],R=N[k],H=R.partialLength}G=x.length,b=0,w=0;var ht=r.finalSize*1.2*.714,rt=!0,C,D,v,E,Y;E=d.length;var V,ct=-1,gt,xt,Dt,Pt=P,me=T,Qe=k,jr=-1,Je,_e,hr,Gt,pt,fi,Xi,vi,qr="",gi=this.defaultPropsArray,bi;if(r.j===2||r.j===1){var tr=0,Zi=0,Qi=r.j===2?-.5:-1,Dr=0,Ji=!0;for(L=0;L<G;L+=1)if(x[L].n){for(tr&&(tr+=Zi);Dr<L;)x[Dr].animatorJustifyOffset=tr,Dr+=1;tr=0,Ji=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(Ji&&r.j===2&&(Zi+=C.t.v*Qi),D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?tr+=C.t.v*V[0]*Qi:tr+=C.t.v*V*Qi);Ji=!1}for(tr&&(tr+=Zi);Dr<L;)x[Dr].animatorJustifyOffset=tr,Dr+=1}for(L=0;L<G;L+=1){if(p.reset(),Je=1,x[L].n)b=0,w+=r.yOffset,w+=rt?1:0,P=Pt,rt=!1,this._hasMaskedPath&&(T=me,k=Qe,N=$[T].points,_=N[k-1],R=N[k],H=R.partialLength,U=0),qr="",vi="",fi="",bi="",gi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(jr!==x[L].line){switch(r.j){case 1:P+=j-r.lineWidths[x[L].line];break;case 2:P+=(j-r.lineWidths[x[L].line])/2;break;default:break}jr=x[L].line}ct!==x[L].ind&&(x[ct]&&(P+=x[ct].extra),P+=x[L].an/2,ct=x[L].ind),P+=a[0]*x[L].an*.005;var Pr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=C.p.v[0]*V[0]:Pr+=C.p.v[0]*V),C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=C.a.v[0]*V[0]:Pr+=C.a.v[0]*V);for(M=!0,this._pathData.a.v&&(P=x[0].an*.5+(j-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(G-1),P+=this._pathData.f.v);M;)U+H>=P+Pr||!N?(it=(P+Pr-U)/R.partialLength,xt=_.point[0]+(R.point[0]-_.point[0])*it,Dt=_.point[1]+(R.point[1]-_.point[1])*it,p.translate(-a[0]*x[L].an*.005,-(a[1]*ht)*.01),M=!1):N&&(U+=R.partialLength,k+=1,k>=N.length&&(k=0,T+=1,$[T]?N=$[T].points:ut.v.c?(k=0,T=0,N=$[T].points):(U-=R.partialLength,N=null)),N&&(_=R,R=N[k],H=R.partialLength));gt=x[L].an/2-x[L].add,p.translate(-gt,0,0)}else gt=x[L].an/2-x[L].add,p.translate(-gt,0,0),p.translate(-a[0]*x[L].an*.005,-a[1]*ht*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),(b!==0||r.j!==0)&&(this._hasMaskedPath?V.length?P+=C.t.v*V[0]:P+=C.t.v*V:V.length?b+=C.t.v*V[0]:b+=C.t.v*V));for(r.strokeWidthAnim&&(hr=r.sw||0),r.strokeColorAnim&&(r.sc?_e=[r.sc[0],r.sc[1],r.sc[2]]:_e=[0,0,0]),r.fillColorAnim&&r.fc&&(Gt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-C.a.v[0]*V[0],-C.a.v[1]*V[1],C.a.v[2]*V[2]):p.translate(-C.a.v[0]*V,-C.a.v[1]*V,C.a.v[2]*V));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(C.s.v[0]-1)*V[0],1+(C.s.v[1]-1)*V[1],1):p.scale(1+(C.s.v[0]-1)*V,1+(C.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(C=d[v].a,D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),C.sk.propType&&(V.length?p.skewFromAxis(-C.sk.v*V[0],C.sa.v*V[1]):p.skewFromAxis(-C.sk.v*V,C.sa.v*V)),C.r.propType&&(V.length?p.rotateZ(-C.r.v*V[2]):p.rotateZ(-C.r.v*V)),C.ry.propType&&(V.length?p.rotateY(C.ry.v*V[1]):p.rotateY(C.ry.v*V)),C.rx.propType&&(V.length?p.rotateX(C.rx.v*V[0]):p.rotateX(C.rx.v*V)),C.o.propType&&(V.length?Je+=(C.o.v*V[0]-Je)*V[0]:Je+=(C.o.v*V-Je)*V),r.strokeWidthAnim&&C.sw.propType&&(V.length?hr+=C.sw.v*V[0]:hr+=C.sw.v*V),r.strokeColorAnim&&C.sc.propType)for(pt=0;pt<3;pt+=1)V.length?_e[pt]+=(C.sc.v[pt]-_e[pt])*V[0]:_e[pt]+=(C.sc.v[pt]-_e[pt])*V;if(r.fillColorAnim&&r.fc){if(C.fc.propType)for(pt=0;pt<3;pt+=1)V.length?Gt[pt]+=(C.fc.v[pt]-Gt[pt])*V[0]:Gt[pt]+=(C.fc.v[pt]-Gt[pt])*V;C.fh.propType&&(V.length?Gt=zm(Gt,C.fh.v*V[0]):Gt=zm(Gt,C.fh.v*V)),C.fs.propType&&(V.length?Gt=$m(Gt,C.fs.v*V[0]):Gt=$m(Gt,C.fs.v*V)),C.fb.propType&&(V.length?Gt=Vm(Gt,C.fb.v*V[0]):Gt=Vm(Gt,C.fb.v*V))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,C.p.v[1]*V[0],-C.p.v[2]*V[1]):p.translate(0,C.p.v[1]*V,-C.p.v[2]*V):V.length?p.translate(C.p.v[0]*V[0],C.p.v[1]*V[1],-C.p.v[2]*V[2]):p.translate(C.p.v[0]*V,C.p.v[1]*V,-C.p.v[2]*V));if(r.strokeWidthAnim&&(fi=hr<0?0:hr),r.strokeColorAnim&&(Xi="rgb("+Math.round(_e[0]*255)+","+Math.round(_e[1]*255)+","+Math.round(_e[2]*255)+")"),r.fillColorAnim&&r.fc&&(vi="rgb("+Math.round(Gt[0]*255)+","+Math.round(Gt[1]*255)+","+Math.round(Gt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,a[1]*ht*.01+w,0),this._pathData.p.v){Tt=(R.point[1]-_.point[1])/(R.point[0]-_.point[0]);var Ro=Math.atan(Tt)*180/Math.PI;R.point[0]<_.point[0]&&(Ro+=180),p.rotate(-Ro*Math.PI/180)}p.translate(xt,Dt,0),P-=a[0]*x[L].an*.005,x[L+1]&&ct!==x[L+1].ind&&(P+=x[L].an/2,P+=r.tr*.001*r.finalSize)}else{switch(p.translate(b,w,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line]),0,0);break;case 2:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(a[0]*x[L].an*.005,a[1]*ht*.01,0),b+=x[L].l+r.tr*.001*r.finalSize}g==="html"?qr=p.toCSS():g==="svg"?qr=p.to2dCSS():gi=[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]],bi=Je}I<=L?(Y=new Dc(bi,fi,Xi,vi,qr,gi),this.renderedLetters.push(Y),I+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[L],this.lettersChangedFlag=Y.update(bi,fi,Xi,vi,qr,gi)||this.lettersChangedFlag)}}},Oo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Oo.prototype.mHelper=new Le,Oo.prototype.defaultPropsArray=[],A([Ie],Oo);function xr(){}xr.prototype.initElement=function(r,s,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,a),this.textProperty=new ze(this,r.t,this.dynamicProperties),this.textAnimator=new Oo(r.t,this.renderType,this),this.initTransform(r,s,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},xr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},xr.prototype.createPathShape=function(r,s){var a,d=s.length,m,p="";for(a=0;a<d;a+=1)s[a].ty==="sh"&&(m=s[a].ks.k,p+=Cu(m,m.i.length,!0,r));return p},xr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},xr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},xr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},xr.prototype.applyTextPropertiesToMatrix=function(r,s,a,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[a]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[a])/2,0,0);break;default:break}s.translate(d,m,0)},xr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},xr.prototype.emptyProp=new Dc,xr.prototype.destroy=function(){},xr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var lT={shapes:[]};function mi(r,s,a){this.textSpans=[],this.renderType="svg",this.initElement(r,s,a)}A([Wi,Ns,La,Ms,Yi,Oa,xr],mi),mi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},mi.prototype.buildTextContents=function(r){for(var s=0,a=r.length,d=[],m="";s<a;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},mi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var a=r.shapes[0];if(a.it){var d=a.it[a.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},mi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,a=this.textProperty.currentData;this.renderedLetters=et(a?a.l.length:0),a.fc?this.layerElement.setAttribute("fill",this.buildColor(a.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var d=this.globalData.fontManager.getFontByName(a.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=a.fWeight,p=a.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",a.t);var g=a.l||[],I=!!this.globalData.fontManager.chars;s=g.length;var b,w=this.mHelper,L="",G=this.data.singleShape,x=0,O=0,P=!0,R=a.tr*.001*a.finalSize;if(G&&!I&&!a.sz){var U=this.textContainer,M="start";switch(a.j){case 1:M="end";break;case 2:M="middle";break;default:M="start";break}U.setAttribute("text-anchor",M),U.setAttribute("letter-spacing",R);var k=this.buildTextContents(a.finalText);for(s=k.length,O=a.ps?a.ps[1]+a.ascent:0,r=0;r<s;r+=1)b=this.textSpans[r].span||At("tspan"),b.textContent=k[r],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",U.appendChild(b),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=b,O+=a.finalLineHeight;this.layerElement.appendChild(U)}else{var T=this.textSpans.length,_;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!G||r===0){if(b=T>r?this.textSpans[r].span:At(I?"g":"text"),T<=r){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=b,I){var N=At("g");b.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),G&&(g[r].n&&(x=-R,O+=a.yOffset,O+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(a,w,g[r].line,x,O),x+=g[r].l||0,x+=R),I){_=this.globalData.fontManager.getCharData(a.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var $;if(_.t===1)$=new Pa(_.data,this.globalData,this);else{var H=lT;_.data&&_.data.shapes&&(H=this.buildShapeData(_.data,a.finalSize)),$=new ne(H,this.globalData,this)}if(this.textSpans[r].glyph){var j=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(j.layerElement),j.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),_.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[r].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",L)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},mi.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},mi.prototype.getValue=function(){var r,s=this.textSpans.length,a;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)a=this.textSpans[r].glyph,a&&(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf&&(this._mdf=!0))},mi.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,a=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,g;for(r=0;r<s;r+=1)d[r].n||(m=a[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Pc(r,s,a){this.initElement(r,s,a)}A([Ra],Pc),Pc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function qi(r,s,a){this.initFrame(),this.initBaseData(r,s,a),this.initFrame(),this.initTransform(r,s,a),this.initHierarchy()}qi.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},qi.prototype.renderFrame=function(){},qi.prototype.getBaseElement=function(){return null},qi.prototype.destroy=function(){},qi.prototype.sourceRectAtTime=function(){},qi.prototype.hide=function(){},A([Wi,Ns,Ms,Yi],qi);function Ee(){}A([Oe],Ee),Ee.prototype.createNull=function(r){return new qi(r,this.globalData,this)},Ee.prototype.createShape=function(r){return new ne(r,this.globalData,this)},Ee.prototype.createText=function(r){return new mi(r,this.globalData,this)},Ee.prototype.createImage=function(r){return new Ra(r,this.globalData,this)},Ee.prototype.createSolid=function(r){return new Pc(r,this.globalData,this)},Ee.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 a=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=Xe();a.setAttribute("id",m),a.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(a),this.layers=r.layers,this.elements=et(r.layers.length)},Ee.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},Ee.prototype.updateContainerSize=function(){},Ee.prototype.findIndexByInd=function(r){var s=0,a=this.layers.length;for(s=0;s<a;s+=1)if(this.layers[s].ind===r)return s;return-1},Ee.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var a=this.createItem(this.layers[r]);if(s[r]=a,Zn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(a);else{var m=s[d],p=m.getMatte(this.layers[r].tt);a.setMatte(p)}}}},Ee.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,a=this.elements.length;s<a;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ee.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,a=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=a-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<a;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ee.prototype.appendElementInPos=function(r,s){var a=r.getBaseElement();if(a){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(a,m):this.layerElement.appendChild(a)}},Ee.prototype.hide=function(){this.layerElement.style.display="none"},Ee.prototype.show=function(){this.layerElement.style.display="block"};function ui(){}A([Wi,Ns,Ms,Yi,Oa],ui),ui.prototype.initElement=function(r,s,a){this.initFrame(),this.initBaseData(r,s,a),this.initTransform(r,s,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},ui.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 a,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=d-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},ui.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()},ui.prototype.setElements=function(r){this.elements=r},ui.prototype.getElements=function(){return this.elements},ui.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},ui.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Pa(r,s,a){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(r,s,a),this.tm=r.tm?at.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Ee,ui,La],Pa),Pa.prototype.createComp=function(r){return new Pa(r,this.globalData,this)};function Fc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var a="";if(s&&s.title){var d=At("title"),m=Xe();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),a+=m}if(s&&s.description){var p=At("desc"),g=Xe();p.setAttribute("id",g),p.textContent=s.description,this.svgElement.appendChild(p),a+=" "+g}a&&this.svgElement.setAttribute("aria-labelledby",a);var I=At("defs");this.svgElement.appendChild(I);var b=At("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Ee],Fc),Fc.prototype.createComp=function(r){return new Pa(r,this.globalData,this)},bE("svg",Fc),Gi.registerModifier("tm",Rr),Gi.registerModifier("pb",Ia),Gi.registerModifier("rp",Yr),Gi.registerModifier("rd",_a),Gi.registerModifier("zz",ka),Gi.registerModifier("op",wa),Bt})});var vl=globalThis,gl=vl.ShadowRoot&&(vl.ShadyCSS===void 0||vl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vc=Symbol(),wu=new WeakMap,Fa=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==Vc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(gl&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=wu.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&wu.set(t,i))}return i}toString(){return this.cssText}},Nu=n=>new Fa(typeof n=="string"?n:n+"",void 0,Vc),B=(n,...i)=>{let t=n.length===1?n[0]:i.reduce((e,o,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[l+1],n[0]);return new Fa(t,n,Vc)},zc=(n,i)=>{if(gl)n.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),o=vl.litNonce;o!==void 0&&e.setAttribute("nonce",o),e.textContent=t.cssText,n.appendChild(e)}},bl=gl?n=>n:n=>n instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Nu(t)})(n):n;var{is:vT,defineProperty:gT,getOwnPropertyDescriptor:bT,getOwnPropertyNames:yT,getOwnPropertySymbols:ET,getPrototypeOf:TT}=Object,to=globalThis,Mu=to.trustedTypes,xT=Mu?Mu.emptyScript:"",Bc=to.reactiveElementPolyfillSupport,$a=(n,i)=>n,Va={toAttribute(n,i){switch(i){case Boolean:n=n?xT:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,i){let t=n;switch(i){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}},yl=(n,i)=>!vT(n,i),Lu={attribute:!0,type:String,converter:Va,reflect:!1,hasChanged:yl},Ou,Ru;(Ou=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ru=to.litPropertyMetadata)!=null||(to.litPropertyMetadata=new WeakMap);var yi=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Lu){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),o=this.getPropertyDescriptor(i,e,t);o!==void 0&&gT(this.prototype,i,o)}}static getPropertyDescriptor(i,t,e){var c;let{get:o,set:l}=(c=bT(this.prototype,i))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return o==null?void 0:o.call(this)},set(f){let y=o==null?void 0:o.call(this);l.call(this,f),this.requestUpdate(i,y,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Lu}static _$Ei(){if(this.hasOwnProperty($a("elementProperties")))return;let i=TT(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty($a("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($a("properties"))){let t=this.properties,e=[...yT(t),...ET(t)];for(let o of e)this.createProperty(o,t[o])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,o]of t)this.elementProperties.set(e,o)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let o=this._$Eu(t,e);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let o of e)t.unshift(bl(o))}else i!==void 0&&t.push(bl(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return zc(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostConnected)==null?void 0:o.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var l;let e=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,e);if(o!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:Va).toAttribute(t,e.type);this._$Em=i,c==null?this.removeAttribute(o):this.setAttribute(o,c),this._$Em=null}}_$AK(i,t){var l;let e=this.constructor,o=e._$Eh.get(i);if(o!==void 0&&this._$Em!==o){let c=e.getPropertyOptions(o),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:Va;this._$Em=o,this[o]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(i,t,e){var o;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((o=e.hasChanged)!=null?o:yl)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var o;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw i=!1,this._$EU(),l}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostUpdated)==null?void 0:o.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},Du;yi.elementStyles=[],yi.shadowRootOptions={mode:"open"},yi[$a("elementProperties")]=new Map,yi[$a("finalized")]=new Map,Bc==null||Bc({ReactiveElement:yi}),((Du=to.reactiveElementVersions)!=null?Du:to.reactiveElementVersions=[]).push("2.0.4");var Ba=globalThis,El=Ba.trustedTypes,Pu=El?El.createPolicy("lit-html",{createHTML:n=>n}):void 0,Gc="$lit$",Ei=`lit$${Math.random().toFixed(9).slice(2)}$`,Kc="?"+Ei,AT=`<${Kc}>`,Fo=document,Ua=()=>Fo.createComment(""),Ha=n=>n===null||typeof n!="object"&&typeof n!="function",Wc=Array.isArray,Hu=n=>Wc(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Uc=`[
|
|
1
|
+
"use strict";(()=>{var cT=Object.create;var $c=Object.defineProperty;var ku=Object.getOwnPropertyDescriptor;var hT=Object.getOwnPropertyNames;var pT=Object.getPrototypeOf,mT=Object.prototype.hasOwnProperty;var uT=(n,i)=>()=>(i||n((i={exports:{}}).exports,i),i.exports);var fT=(n,i,t,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let o of hT(i))!mT.call(n,o)&&o!==t&&$c(n,o,{get:()=>i[o],enumerable:!(e=ku(i,o))||e.enumerable});return n};var vT=(n,i,t)=>(t=n!=null?cT(pT(n)):{},fT(i||!n||!n.__esModule?$c(t,"default",{value:n,enumerable:!0}):t,n));var h=(n,i,t,e)=>{for(var o=e>1?void 0:e?ku(i,t):i,l=n.length-1,c;l>=0;l--)(c=n[l])&&(o=(e?c(i,t,o):c(o))||o);return e&&o&&$c(i,t,o),o};var Vf=uT((rn,Hl)=>{typeof navigator<"u"&&function(n,i){typeof rn=="object"&&typeof Hl<"u"?Hl.exports=i():typeof define=="function"&&define.amd?define(i):(n=typeof globalThis<"u"?globalThis:n||self,n.lottie=i())}(rn,function(){"use strict";var n="http://www.w3.org/2000/svg",i="",t=!1,e=-999999,o=function(s){t=!!s},l=function(){return t},c=function(s){i=s},f=function(){return i};function y(r){return document.createElement(r)}function A(r,s){var a,d=r.length,m;for(a=0;a<d;a+=1){m=r[a].prototype;for(var p in m)Object.prototype.hasOwnProperty.call(m,p)&&(s.prototype[p]=m[p])}}function F(r,s){return Object.getOwnPropertyDescriptor(r,s)}function W(r){function s(){}return s.prototype=r,s}var Q=function(){function r(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return r.prototype={addAudio:function(a){this.audios.push(a)},pause:function(){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].pause()},resume:function(){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].resume()},setRate:function(a){var d,m=this.audios.length;for(d=0;d<m;d+=1)this.audios[d].setRate(a)},createAudio:function(a){return this.audioFactory?this.audioFactory(a):window.Howl?new window.Howl({src:[a]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(a){this.audioFactory=a},setVolume:function(a){this._volume=a,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var a,d=this.audios.length;for(a=0;a<d;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new r}}(),Z=function(){function r(a,d){var m=0,p=[],g;switch(a){case"int16":case"uint8c":g=1;break;default:g=1.1;break}for(m=0;m<d;m+=1)p.push(g);return p}function s(a,d){return a==="float32"?new Float32Array(d):a==="int16"?new Int16Array(d):a==="uint8c"?new Uint8ClampedArray(d):r(a,d)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:r}();function et(r){return Array.apply(null,{length:r})}function lt(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lt=function(a){return typeof a}:lt=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},lt(r)}var dt=!0,ft=null,It=null,kt="",jt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ht=!1,qt=Math.pow,Ft=Math.sqrt,ae=Math.floor,cr=Math.max,Ne=Math.min,je={};(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,a=r.length;for(s=0;s<a;s+=1)je[r[s]]=Math[r[s]]})();function Ve(){return{}}je.random=Math.random,je.abs=function(r){var s=lt(r);if(s==="object"&&r.length){var a=et(r.length),d,m=r.length;for(d=0;d<m;d+=1)a[d]=Math.abs(r[d]);return a}return Math.abs(r)};var qe=150,Nt=Math.PI/180,he=.5519;function gr(r){Ht=!!r}function br(r){return Ht?Math.round(r):r}function yr(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 Er(r,s,a,d){this.type=r,this.currentTime=s,this.totalTime=a,this.direction=d<0?-1:1}function Xn(r,s){this.type=r,this.direction=s<0?-1:1}function Dm(r,s,a,d){this.type=r,this.currentLoop=a,this.totalLoops=s,this.direction=d<0?-1:1}function Pm(r,s,a){this.type=r,this.firstFrame=s,this.totalFrames=a}function Fm(r,s){this.type=r,this.target=s}function cE(r,s){this.type="renderFrameError",this.nativeError=r,this.currentTime=s}function hE(r){this.type="configError",this.nativeError=r}function gI(r,s){this.type=r,this.nativeError=s}var Xe=function(){var r=0;return function(){return r+=1,kt+"__lottie_element_"+r}}();function Ic(r,s,a){var d,m,p,g,I,b,w,L;switch(g=Math.floor(r*6),I=r*6-g,b=a*(1-s),w=a*(1-I*s),L=a*(1-(1-I)*s),g%6){case 0:d=a,m=L,p=b;break;case 1:d=w,m=a,p=b;break;case 2:d=b,m=a,p=L;break;case 3:d=b,m=w,p=a;break;case 4:d=L,m=b,p=a;break;case 5:d=a,m=b,p=w;break;default:break}return[d,m,p]}function _c(r,s,a){var d=Math.max(r,s,a),m=Math.min(r,s,a),p=d-m,g,I=d===0?0:p/d,b=d/255;switch(d){case m:g=0;break;case r:g=s-a+p*(s<a?6:0),g/=6*p;break;case s:g=a-r+p*2,g/=6*p;break;case a:g=r-s+p*4,g/=6*p;break;default:break}return[g,I,b]}function $m(r,s){var a=_c(r[0]*255,r[1]*255,r[2]*255);return a[1]+=s,a[1]>1?a[1]=1:a[1]<=0&&(a[1]=0),Ic(a[0],a[1],a[2])}function Vm(r,s){var a=_c(r[0]*255,r[1]*255,r[2]*255);return a[2]+=s,a[2]>1?a[2]=1:a[2]<0&&(a[2]=0),Ic(a[0],a[1],a[2])}function zm(r,s){var a=_c(r[0]*255,r[1]*255,r[2]*255);return a[0]+=s/360,a[0]>1?a[0]-=1:a[0]<0&&(a[0]+=1),Ic(a[0],a[1],a[2])}var bI=function(){var r=[],s,a;for(s=0;s<256;s+=1)a=s.toString(16),r[s]=a.length===1?"0"+a:a;return function(d,m,p){return d<0&&(d=0),m<0&&(m=0),p<0&&(p=0),"#"+r[d]+r[m]+r[p]}}(),pE=function(s){dt=!!s},mE=function(){return dt},uE=function(s){ft=s},Zn=function(){return ft},yI=function(s){It=s},Bm=function(){return It},Qn=function(s){qe=s},Ea=function(){return qe},fE=function(s){kt=s},EI=function(){return kt};function At(r){return document.createElementNS(n,r)}function Jn(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jn=function(a){return typeof a}:Jn=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Jn(r)}var Ta=function(){var r=1,s=[],a,d,m={onmessage:function(){},postMessage:function(O){a({data:O})}},p={postMessage:function(O){m.onmessage({data:O})}};function g(x){if(window.Worker&&window.Blob&&l()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",x.toString()],{type:"text/javascript"}),P=URL.createObjectURL(O);return new Worker(P)}return a=x,m}function I(){d||(d=g(function(O){function P(){function U(rt,C){var D,v,E=rt.length,Y,V,ct,gt;for(v=0;v<E;v+=1)if(D=rt[v],"ks"in D&&!D.completed){if(D.completed=!0,D.hasMask){var xt=D.masksProperties;for(V=xt.length,Y=0;Y<V;Y+=1)if(xt[Y].pt.k.i)N(xt[Y].pt.k);else for(gt=xt[Y].pt.k.length,ct=0;ct<gt;ct+=1)xt[Y].pt.k[ct].s&&N(xt[Y].pt.k[ct].s[0]),xt[Y].pt.k[ct].e&&N(xt[Y].pt.k[ct].e[0])}D.ty===0?(D.layers=T(D.refId,C),U(D.layers,C)):D.ty===4?_(D.shapes):D.ty===5&&St(D)}}function M(rt,C){if(rt){var D=0,v=rt.length;for(D=0;D<v;D+=1)rt[D].t===1&&(rt[D].data.layers=T(rt[D].data.refId,C),U(rt[D].data.layers,C))}}function k(rt,C){for(var D=0,v=C.length;D<v;){if(C[D].id===rt)return C[D];D+=1}return null}function T(rt,C){var D=k(rt,C);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function _(rt){var C,D=rt.length,v,E;for(C=D-1;C>=0;C-=1)if(rt[C].ty==="sh")if(rt[C].ks.k.i)N(rt[C].ks.k);else for(E=rt[C].ks.k.length,v=0;v<E;v+=1)rt[C].ks.k[v].s&&N(rt[C].ks.k[v].s[0]),rt[C].ks.k[v].e&&N(rt[C].ks.k[v].e[0]);else rt[C].ty==="gr"&&_(rt[C].it)}function N(rt){var C,D=rt.i.length;for(C=0;C<D;C+=1)rt.i[C][0]+=rt.v[C][0],rt.i[C][1]+=rt.v[C][1],rt.o[C][0]+=rt.v[C][0],rt.o[C][1]+=rt.v[C][1]}function $(rt,C){var D=C?C.split("."):[100,100,100];return rt[0]>D[0]?!0:D[0]>rt[0]?!1:rt[1]>D[1]?!0:D[1]>rt[1]?!1:rt[2]>D[2]?!0:D[2]>rt[2]?!1:null}var H=function(){var rt=[4,4,14];function C(v){var E=v.t.d;v.t.d={k:[{s:E,t:0}]}}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),j=function(){var rt=[4,7,99];return function(C){if(C.chars&&!$(rt,C.v)){var D,v=C.chars.length;for(D=0;D<v;D+=1){var E=C.chars[D];E.data&&E.data.shapes&&(_(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}},C.chars[D].t||(E.data.shapes.push({ty:"no"}),E.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),it=function(){var rt=[5,7,15];function C(v){var E=v.t.p;typeof E.a=="number"&&(E.a={a:0,k:E.a}),typeof E.p=="number"&&(E.p={a:0,k:E.p}),typeof E.r=="number"&&(E.r={a:0,k:E.r})}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===5&&C(v[E])}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),Tt=function(){var rt=[4,1,9];function C(v){var E,Y=v.length,V,ct;for(E=0;E<Y;E+=1)if(v[E].ty==="gr")C(v[E].it);else if(v[E].ty==="fl"||v[E].ty==="st")if(v[E].c.k&&v[E].c.k[0].i)for(ct=v[E].c.k.length,V=0;V<ct;V+=1)v[E].c.k[V].s&&(v[E].c.k[V].s[0]/=255,v[E].c.k[V].s[1]/=255,v[E].c.k[V].s[2]/=255,v[E].c.k[V].s[3]/=255),v[E].c.k[V].e&&(v[E].c.k[V].e[0]/=255,v[E].c.k[V].e[1]/=255,v[E].c.k[V].e[2]/=255,v[E].c.k[V].e[3]/=255);else v[E].c.k[0]/=255,v[E].c.k[1]/=255,v[E].c.k[2]/=255,v[E].c.k[3]/=255}function D(v){var E,Y=v.length;for(E=0;E<Y;E+=1)v[E].ty===4&&C(v[E].shapes)}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}(),ut=function(){var rt=[4,4,18];function C(v){var E,Y=v.length,V,ct;for(E=Y-1;E>=0;E-=1)if(v[E].ty==="sh")if(v[E].ks.k.i)v[E].ks.k.c=v[E].closed;else for(ct=v[E].ks.k.length,V=0;V<ct;V+=1)v[E].ks.k[V].s&&(v[E].ks.k[V].s[0].c=v[E].closed),v[E].ks.k[V].e&&(v[E].ks.k[V].e[0].c=v[E].closed);else v[E].ty==="gr"&&C(v[E].it)}function D(v){var E,Y,V=v.length,ct,gt,xt,Dt;for(Y=0;Y<V;Y+=1){if(E=v[Y],E.hasMask){var Pt=E.masksProperties;for(gt=Pt.length,ct=0;ct<gt;ct+=1)if(Pt[ct].pt.k.i)Pt[ct].pt.k.c=Pt[ct].cl;else for(Dt=Pt[ct].pt.k.length,xt=0;xt<Dt;xt+=1)Pt[ct].pt.k[xt].s&&(Pt[ct].pt.k[xt].s[0].c=Pt[ct].cl),Pt[ct].pt.k[xt].e&&(Pt[ct].pt.k[xt].e[0].c=Pt[ct].cl)}E.ty===4&&C(E.shapes)}}return function(v){if($(rt,v.v)&&(D(v.layers),v.assets)){var E,Y=v.assets.length;for(E=0;E<Y;E+=1)v.assets[E].layers&&D(v.assets[E].layers)}}}();function st(rt){rt.__complete||(Tt(rt),H(rt),j(rt),it(rt),ut(rt),U(rt.layers,rt.assets),M(rt.chars,rt.assets),rt.__complete=!0)}function St(rt){rt.t.a.length===0&&"m"in rt.t.p}var ht={};return ht.completeData=st,ht.checkColors=Tt,ht.checkChars=j,ht.checkPathProperties=it,ht.checkShapes=ut,ht.completeLayers=U,ht}if(p.dataManager||(p.dataManager=P()),p.assetLoader||(p.assetLoader=function(){function U(k){var T=k.getResponseHeader("content-type");return T&&k.responseType==="json"&&T.indexOf("json")!==-1||k.response&&Jn(k.response)==="object"?k.response:k.response&&typeof k.response=="string"?JSON.parse(k.response):k.responseText?JSON.parse(k.responseText):null}function M(k,T,_,N){var $,H=new XMLHttpRequest;try{H.responseType="json"}catch{}H.onreadystatechange=function(){if(H.readyState===4)if(H.status===200)$=U(H),_($);else try{$=U(H),_($)}catch(j){N&&N(j)}};try{H.open(["G","E","T"].join(""),k,!0)}catch{H.open(["G","E","T"].join(""),T+"/"+k,!0)}H.send()}return{load:M}}()),O.data.type==="loadAnimation")p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.dataManager.completeData(U),p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var R=O.data.animation;p.dataManager.completeData(R),p.postMessage({id:O.data.id,payload:R,status:"success"})}else O.data.type==="loadData"&&p.assetLoader.load(O.data.path,O.data.fullPath,function(U){p.postMessage({id:O.data.id,payload:U,status:"success"})},function(){p.postMessage({id:O.data.id,status:"error"})})}),d.onmessage=function(x){var O=x.data,P=O.id,R=s[P];s[P]=null,O.status==="success"?R.onComplete(O.payload):R.onError&&R.onError()})}function b(x,O){r+=1;var P="processId_"+r;return s[P]={onComplete:x,onError:O},P}function w(x,O,P){I();var R=b(O,P);d.postMessage({type:"loadAnimation",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function L(x,O,P){I();var R=b(O,P);d.postMessage({type:"loadData",path:x,fullPath:window.location.origin+window.location.pathname,id:R})}function G(x,O,P){I();var R=b(O,P);d.postMessage({type:"complete",animation:x,id:R})}return{loadAnimation:w,loadData:L,completeAnimation:G}}(),vE=function(){var r=function(){var M=y("canvas");M.width=1,M.height=1;var k=M.getContext("2d");return k.fillStyle="rgba(0,0,0,0)",k.fillRect(0,0,1,1),M}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function d(M,k,T){var _="";if(M.e)_=M.p;else if(k){var N=M.p;N.indexOf("images/")!==-1&&(N=N.split("/")[1]),_=k+N}else _=T,_+=M.u?M.u:"",_+=M.p;return _}function m(M){var k=0,T=setInterval((function(){var _=M.getBBox();(_.width||k>500)&&(this._imageLoaded(),clearInterval(T)),k+=1}).bind(this),50)}function p(M){var k=d(M,this.assetsPath,this.path),T=At("image");jt?this.testImageLoaded(T):T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.setAttributeNS("http://www.w3.org/1999/xlink","href",k),this._elementHelper.append?this._elementHelper.append(T):this._elementHelper.appendChild(T);var _={img:T,assetData:M};return _}function g(M){var k=d(M,this.assetsPath,this.path),T=y("img");T.crossOrigin="anonymous",T.addEventListener("load",this._imageLoaded,!1),T.addEventListener("error",(function(){_.img=r,this._imageLoaded()}).bind(this),!1),T.src=k;var _={img:T,assetData:M};return _}function I(M){var k={assetData:M},T=d(M,this.assetsPath,this.path);return Ta.loadData(T,(function(_){k.img=_,this._footageLoaded()}).bind(this),(function(){k.img={},this._footageLoaded()}).bind(this)),k}function b(M,k){this.imagesLoadedCb=k;var T,_=M.length;for(T=0;T<_;T+=1)M[T].layers||(!M[T].t||M[T].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(M[T]))):M[T].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(M[T]))))}function w(M){this.path=M||""}function L(M){this.assetsPath=M||""}function G(M){for(var k=0,T=this.images.length;k<T;){if(this.images[k].assetData===M)return this.images[k].img;k+=1}return null}function x(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function P(){return this.totalFootages===this.loadedFootagesCount}function R(M,k){M==="svg"?(this._elementHelper=k,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=s.bind(this),this._footageLoaded=a.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 U.prototype={loadAssets:b,setAssetsPath:L,setPath:w,loadedImages:O,loadedFootages:P,destroy:x,getAsset:G,createImgData:g,createImageData:p,imageLoaded:s,footageLoaded:a,setCacheType:R},U}();function Um(){}Um.prototype={triggerEvent:function(s,a){if(this._cbs[s])for(var d=this._cbs[s],m=0;m<d.length;m+=1)d[m](a)},addEventListener:function(s,a){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(a),(function(){this.removeEventListener(s,a)}).bind(this)},removeEventListener:function(s,a){if(!a)this._cbs[s]=null;else if(this._cbs[s]){for(var d=0,m=this._cbs[s].length;d<m;)this._cbs[s][d]===a&&(this._cbs[s].splice(d,1),d-=1,m-=1),d+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var gE=function(){function r(s){for(var a=s.split(`\r
|
|
2
|
+
`),d={},m,p=0,g=0;g<a.length;g+=1)m=a[g].split(":"),m.length===2&&(d[m[0]]=m[1].trim(),p+=1);if(p===0)throw new Error;return d}return function(s){for(var a=[],d=0;d<s.length;d+=1){var m=s[d],p={time:m.tm,duration:m.dr};try{p.payload=JSON.parse(s[d].cm)}catch{try{p.payload=r(s[d].cm)}catch{p.payload={name:s[d].cm}}}a.push(p)}return a}}(),bE=function(){function r(s){this.compositions.push(s)}return function(){function s(a){for(var d=0,m=this.compositions.length;d<m;){if(this.compositions[d].data&&this.compositions[d].data.nm===a)return this.compositions[d].prepareFrame&&this.compositions[d].data.xt&&this.compositions[d].prepareFrame(this.currentFrame),this.compositions[d].compInterface;d+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=r,s}}(),xa={},yE=function(s,a){xa[s]=a};function EE(r){return xa[r]}function TE(){if(xa.canvas)return"canvas";for(var r in xa)if(xa[r])return r;return""}function Aa(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Aa=function(a){return typeof a}:Aa=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Aa(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=Xe(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=mE(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=bE(),this.imagePreloader=new vE,this.audioController=Q(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Er("drawnFrame",0,0,0),this.expressionsPlugin=Zn()};A([Um],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 a=EE(s);this.renderer=new a(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")),Ta.loadAnimation(r.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(r){Ta.completeAnimation(r,this.configAnimation)},vt.prototype.setData=function(r,s){s&&Aa(s)!=="object"&&(s=JSON.parse(s));var a={wrapper:r,animationData:s},d=r.attributes;a.path=d.getNamedItem("data-animation-path")?d.getNamedItem("data-animation-path").value:d.getNamedItem("data-bm-path")?d.getNamedItem("data-bm-path").value:d.getNamedItem("bm-path")?d.getNamedItem("bm-path").value:"",a.animType=d.getNamedItem("data-anim-type")?d.getNamedItem("data-anim-type").value:d.getNamedItem("data-bm-type")?d.getNamedItem("data-bm-type").value:d.getNamedItem("bm-type")?d.getNamedItem("bm-type").value:d.getNamedItem("data-bm-renderer")?d.getNamedItem("data-bm-renderer").value:d.getNamedItem("bm-renderer")?d.getNamedItem("bm-renderer").value:TE()||"canvas";var m=d.getNamedItem("data-anim-loop")?d.getNamedItem("data-anim-loop").value:d.getNamedItem("data-bm-loop")?d.getNamedItem("data-bm-loop").value:d.getNamedItem("bm-loop")?d.getNamedItem("bm-loop").value:"";m==="false"?a.loop=!1:m==="true"?a.loop=!0:m!==""&&(a.loop=parseInt(m,10));var p=d.getNamedItem("data-anim-autoplay")?d.getNamedItem("data-anim-autoplay").value:d.getNamedItem("data-bm-autoplay")?d.getNamedItem("data-bm-autoplay").value:d.getNamedItem("bm-autoplay")?d.getNamedItem("bm-autoplay").value:!0;a.autoplay=p!=="false",a.name=d.getNamedItem("data-name")?d.getNamedItem("data-name").value:d.getNamedItem("data-bm-name")?d.getNamedItem("data-bm-name").value:d.getNamedItem("bm-name")?d.getNamedItem("bm-name").value:"";var g=d.getNamedItem("data-anim-prerender")?d.getNamedItem("data-anim-prerender").value:d.getNamedItem("data-bm-prerender")?d.getNamedItem("data-bm-prerender").value:d.getNamedItem("bm-prerender")?d.getNamedItem("bm-prerender").value:"";g==="false"&&(a.prerender=!1),a.path?this.setParams(a):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,a,d=s.length,m=r.layers,p,g=m.length;for(p=0;p<g;p+=1)for(a=0;a<d;){if(s[a].id===m[p].id){s[a]=m[p];break}a+=1}if((r.chars||r.fonts)&&(this.renderer.globalData.fontManager.addChars(r.chars),this.renderer.globalData.fontManager.addFonts(r.fonts,this.renderer.globalData.defs)),r.assets)for(d=r.assets.length,a=0;a<d;a+=1)this.animationData.assets.push(r.assets[a]);this.animationData.__complete=!1,Ta.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(r){this.animationData=r;var s=Zn();s&&s.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var r=this.animationData.segments;if(!r||r.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=r.shift();this.timeCompleted=s.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Ta.loadData(a,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=gE(r.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var r=Zn();r&&r.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(r,s){var a=typeof r=="number"?r:void 0,d=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(a,d)},vt.prototype.setSubframe=function(r){this.isSubframeEnabled=!!r},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(r){this.triggerRenderFrameError(r)}},vt.prototype.play=function(r){r&&this.name!==r||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(r){r&&this.name!==r||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(r){r&&this.name!==r||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(r){r&&this.name!==r||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(r){for(var s,a=0;a<this.markers.length;a+=1)if(s=this.markers[a],s.payload&&s.payload.name===r)return s;return null},vt.prototype.goToAndStop=function(r,s,a){if(!(a&&this.name!==a)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&this.goToAndStop(m.time,!0)}else s?this.setCurrentRawFrameValue(r):this.setCurrentRawFrameValue(r*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(r,s,a){if(!(a&&this.name!==a)){var d=Number(r);if(isNaN(d)){var m=this.getMarkerData(r);m&&(m.duration?this.playSegments([m.time,m.time+m.duration],!0):this.goToAndStop(m.time,!0))}else this.goToAndStop(d,s,a);this.play()}},vt.prototype.advanceTime=function(r){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+r*this.frameModifier,a=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(a=!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):(a=!0,s=0)):this.setCurrentRawFrameValue(s),a&&(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 a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<r?a=r:this.currentRawFrame+this.firstFrame>s&&(a=s-r)),this.firstFrame=r,this.totalFrames=s-r,this.timeCompleted=this.totalFrames,a!==-1&&this.goToAndStop(a,!0)},vt.prototype.playSegments=function(r,s){if(s&&(this.segments.length=0),Aa(r[0])==="object"){var a,d=r.length;for(a=0;a<d;a+=1)this.segments.push(r[a])}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 a=r.p;a.indexOf("images/")!==-1&&(a=a.split("/")[1]),s=this.assetsPath+a}else s=this.path,s+=r.u?r.u:"",s+=r.p;return s},vt.prototype.getAssetData=function(r){for(var s=0,a=this.assets.length;s<a;){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,a){try{var d=this.renderer.getElementByPath(r);d.updateDocumentData(s,a)}catch{}},vt.prototype.trigger=function(r){if(this._cbs&&this._cbs[r])switch(r){case"enterFrame":this.triggerEvent(r,new Er(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 Dm(r,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(r,new Xn(r,this.frameMult));break;case"segmentStart":this.triggerEvent(r,new Pm(r,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(r,new Fm(r,this));break;default:this.triggerEvent(r)}r==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Er(r,this.currentFrame,this.totalFrames,this.frameMult)),r==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Dm(r,this.loop,this.playCount,this.frameMult)),r==="complete"&&this.onComplete&&this.onComplete.call(this,new Xn(r,this.frameMult)),r==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Pm(r,this.firstFrame,this.totalFrames)),r==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Fm(r,this))},vt.prototype.triggerRenderFrameError=function(r){var s=new cE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},vt.prototype.triggerConfigError=function(r){var s=new hE(r,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var pe=function(){var r={},s=[],a=0,d=0,m=0,p=!0,g=!1;function I(C){for(var D=0,v=C.target;D<d;)s[D].animation===v&&(s.splice(D,1),D-=1,d-=1,v.isPaused||G()),D+=1}function b(C,D){if(!C)return null;for(var v=0;v<d;){if(s[v].elem===C&&s[v].elem!==null)return s[v].animation;v+=1}var E=new vt;return x(E,C),E.setData(C,D),E}function w(){var C,D=s.length,v=[];for(C=0;C<D;C+=1)v.push(s[C].animation);return v}function L(){m+=1,Tt()}function G(){m-=1}function x(C,D){C.addEventListener("destroy",I),C.addEventListener("_active",L),C.addEventListener("_idle",G),s.push({elem:D,animation:C}),d+=1}function O(C){var D=new vt;return x(D,null),D.setParams(C),D}function P(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setSpeed(C,D)}function R(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setDirection(C,D)}function U(C){var D;for(D=0;D<d;D+=1)s[D].animation.play(C)}function M(C){var D=C-a,v;for(v=0;v<d;v+=1)s[v].animation.advanceTime(D);a=C,m&&!g?window.requestAnimationFrame(M):p=!0}function k(C){a=C,window.requestAnimationFrame(M)}function T(C){var D;for(D=0;D<d;D+=1)s[D].animation.pause(C)}function _(C,D,v){var E;for(E=0;E<d;E+=1)s[E].animation.goToAndStop(C,D,v)}function N(C){var D;for(D=0;D<d;D+=1)s[D].animation.stop(C)}function $(C){var D;for(D=0;D<d;D+=1)s[D].animation.togglePause(C)}function H(C){var D;for(D=d-1;D>=0;D-=1)s[D].animation.destroy(C)}function j(C,D,v){var E=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Y,V=E.length;for(Y=0;Y<V;Y+=1)v&&E[Y].setAttribute("data-bm-type",v),b(E[Y],C);if(D&&V===0){v||(v="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var gt=y("div");gt.style.width="100%",gt.style.height="100%",gt.setAttribute("data-bm-type",v),ct.appendChild(gt),b(gt,C)}}function it(){var C;for(C=0;C<d;C+=1)s[C].animation.resize()}function Tt(){!g&&m&&p&&(window.requestAnimationFrame(k),p=!1)}function ut(){g=!0}function st(){g=!1,Tt()}function St(C,D){var v;for(v=0;v<d;v+=1)s[v].animation.setVolume(C,D)}function ht(C){var D;for(D=0;D<d;D+=1)s[D].animation.mute(C)}function rt(C){var D;for(D=0;D<d;D+=1)s[D].animation.unmute(C)}return r.registerAnimation=b,r.loadAnimation=O,r.setSpeed=P,r.setDirection=R,r.play=U,r.pause=T,r.stop=N,r.togglePause=$,r.searchAnimations=j,r.resize=it,r.goToAndStop=_,r.destroy=H,r.freeze=ut,r.unfreeze=st,r.setVolume=St,r.mute=ht,r.unmute=rt,r.getRegisteredAnimations=w,r}(),Sa=function(){var r={};r.getBezierEasing=a;var s={};function a(k,T,_,N,$){var H=$||("bez_"+k+"_"+T+"_"+_+"_"+N).replace(/\./g,"p");if(s[H])return s[H];var j=new M([k,T,_,N]);return s[H]=j,j}var d=4,m=.001,p=1e-7,g=10,I=11,b=1/(I-1),w=typeof Float32Array=="function";function L(k,T){return 1-3*T+3*k}function G(k,T){return 3*T-6*k}function x(k){return 3*k}function O(k,T,_){return((L(T,_)*k+G(T,_))*k+x(T))*k}function P(k,T,_){return 3*L(T,_)*k*k+2*G(T,_)*k+x(T)}function R(k,T,_,N,$){var H,j,it=0;do j=T+(_-T)/2,H=O(j,N,$)-k,H>0?_=j:T=j;while(Math.abs(H)>p&&++it<g);return j}function U(k,T,_,N){for(var $=0;$<d;++$){var H=P(T,_,N);if(H===0)return T;var j=O(T,_,N)-k;T-=j/H}return T}function M(k){this._p=k,this._mSampleValues=w?new Float32Array(I):new Array(I),this._precomputed=!1,this.get=this.get.bind(this)}return M.prototype={get:function(T){var _=this._p[0],N=this._p[1],$=this._p[2],H=this._p[3];return this._precomputed||this._precompute(),_===N&&$===H?T:T===0?0:T===1?1:O(this._getTForX(T),N,H)},_precompute:function(){var T=this._p[0],_=this._p[1],N=this._p[2],$=this._p[3];this._precomputed=!0,(T!==_||N!==$)&&this._calcSampleValues()},_calcSampleValues:function(){for(var T=this._p[0],_=this._p[2],N=0;N<I;++N)this._mSampleValues[N]=O(N*b,T,_)},_getTForX:function(T){for(var _=this._p[0],N=this._p[2],$=this._mSampleValues,H=0,j=1,it=I-1;j!==it&&$[j]<=T;++j)H+=b;--j;var Tt=(T-$[j])/($[j+1]-$[j]),ut=H+Tt*b,st=P(ut,_,N);return st>=m?U(T,ut,_,N):st===0?ut:R(T,H,H+b,_,N)}},r}(),Hm=function(){function r(s){return s.concat(et(s.length))}return{double:r}}(),tl=function(){return function(r,s,a){var d=0,m=r,p=et(m),g={newElement:I,release:b};function I(){var w;return d?(d-=1,w=p[d]):w=s(),w}function b(w){d===m&&(p=Hm.double(p),m*=2),a&&a(w),p[d]=w,d+=1}return g}}(),Gm=function(){function r(){return{addedLength:0,percents:Z("float32",Ea()),lengths:Z("float32",Ea())}}return tl(8,r)}(),Km=function(){function r(){return{lengths:[],totalLength:0}}function s(a){var d,m=a.lengths.length;for(d=0;d<m;d+=1)Gm.release(a.lengths[d]);a.lengths.length=0}return tl(8,r,s)}();function xE(){var r=Math;function s(x,O,P,R,U,M){var k=x*R+O*U+P*M-U*R-M*x-P*O;return k>-.001&&k<.001}function a(x,O,P,R,U,M,k,T,_){if(P===0&&M===0&&_===0)return s(x,O,R,U,k,T);var N=r.sqrt(r.pow(R-x,2)+r.pow(U-O,2)+r.pow(M-P,2)),$=r.sqrt(r.pow(k-x,2)+r.pow(T-O,2)+r.pow(_-P,2)),H=r.sqrt(r.pow(k-R,2)+r.pow(T-U,2)+r.pow(_-M,2)),j;return N>$?N>H?j=N-$-H:j=H-$-N:H>$?j=H-$-N:j=$-N-H,j>-1e-4&&j<1e-4}var d=function(){return function(x,O,P,R){var U=Ea(),M,k,T,_,N,$=0,H,j=[],it=[],Tt=Gm.newElement();for(T=P.length,M=0;M<U;M+=1){for(N=M/(U-1),H=0,k=0;k<T;k+=1)_=qt(1-N,3)*x[k]+3*qt(1-N,2)*N*P[k]+3*(1-N)*qt(N,2)*R[k]+qt(N,3)*O[k],j[k]=_,it[k]!==null&&(H+=qt(j[k]-it[k],2)),it[k]=j[k];H&&(H=Ft(H),$+=H),Tt.percents[M]=N,Tt.lengths[M]=$}return Tt.addedLength=$,Tt}}();function m(x){var O=Km.newElement(),P=x.c,R=x.v,U=x.o,M=x.i,k,T=x._length,_=O.lengths,N=0;for(k=0;k<T-1;k+=1)_[k]=d(R[k],R[k+1],U[k],M[k+1]),N+=_[k].addedLength;return P&&T&&(_[k]=d(R[k],R[0],U[k],M[0]),N+=_[k].addedLength),O.totalLength=N,O}function p(x){this.segmentLength=0,this.points=new Array(x)}function g(x,O){this.partialLength=x,this.point=O}var I=function(){var x={};return function(O,P,R,U){var M=(O[0]+"_"+O[1]+"_"+P[0]+"_"+P[1]+"_"+R[0]+"_"+R[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!x[M]){var k=Ea(),T,_,N,$,H,j=0,it,Tt,ut=null;O.length===2&&(O[0]!==P[0]||O[1]!==P[1])&&s(O[0],O[1],P[0],P[1],O[0]+R[0],O[1]+R[1])&&s(O[0],O[1],P[0],P[1],P[0]+U[0],P[1]+U[1])&&(k=2);var st=new p(k);for(N=R.length,T=0;T<k;T+=1){for(Tt=et(N),H=T/(k-1),it=0,_=0;_<N;_+=1)$=qt(1-H,3)*O[_]+3*qt(1-H,2)*H*(O[_]+R[_])+3*(1-H)*qt(H,2)*(P[_]+U[_])+qt(H,3)*P[_],Tt[_]=$,ut!==null&&(it+=qt(Tt[_]-ut[_],2));it=Ft(it),j+=it,st.points[T]=new g(it,Tt),ut=Tt}st.segmentLength=j,x[M]=st}return x[M]}}();function b(x,O){var P=O.percents,R=O.lengths,U=P.length,M=ae((U-1)*x),k=x*O.addedLength,T=0;if(M===U-1||M===0||k===R[M])return P[M];for(var _=R[M]>k?-1:1,N=!0;N;)if(R[M]<=k&&R[M+1]>k?(T=(k-R[M])/(R[M+1]-R[M]),N=!1):M+=_,M<0||M>=U-1){if(M===U-1)return P[M];N=!1}return P[M]+(P[M+1]-P[M])*T}function w(x,O,P,R,U,M){var k=b(U,M),T=1-k,_=r.round((T*T*T*x[0]+(k*T*T+T*k*T+T*T*k)*P[0]+(k*k*T+T*k*k+k*T*k)*R[0]+k*k*k*O[0])*1e3)/1e3,N=r.round((T*T*T*x[1]+(k*T*T+T*k*T+T*T*k)*P[1]+(k*k*T+T*k*k+k*T*k)*R[1]+k*k*k*O[1])*1e3)/1e3;return[_,N]}var L=Z("float32",8);function G(x,O,P,R,U,M,k){U<0?U=0:U>1&&(U=1);var T=b(U,k);M=M>1?1:M;var _=b(M,k),N,$=x.length,H=1-T,j=1-_,it=H*H*H,Tt=T*H*H*3,ut=T*T*H*3,st=T*T*T,St=H*H*j,ht=T*H*j+H*T*j+H*H*_,rt=T*T*j+H*T*_+T*H*_,C=T*T*_,D=H*j*j,v=T*j*j+H*_*j+H*j*_,E=T*_*j+H*_*_+T*j*_,Y=T*_*_,V=j*j*j,ct=_*j*j+j*_*j+j*j*_,gt=_*_*j+j*_*_+_*j*_,xt=_*_*_;for(N=0;N<$;N+=1)L[N*4]=r.round((it*x[N]+Tt*P[N]+ut*R[N]+st*O[N])*1e3)/1e3,L[N*4+1]=r.round((St*x[N]+ht*P[N]+rt*R[N]+C*O[N])*1e3)/1e3,L[N*4+2]=r.round((D*x[N]+v*P[N]+E*R[N]+Y*O[N])*1e3)/1e3,L[N*4+3]=r.round((V*x[N]+ct*P[N]+gt*R[N]+xt*O[N])*1e3)/1e3;return L}return{getSegmentsLength:m,getNewSegment:G,getPointInSegment:w,buildBezierData:I,pointOnLine2D:s,pointOnLine3D:a}}var Wr=xE(),wo=e,Wm=Math.abs;function Ym(r,s){var a=this.offsetTime,d;this.propType==="multidimensional"&&(d=Z("float32",this.pv.length));for(var m=s.lastIndex,p=m,g=this.keyframes.length-1,I=!0,b,w,L;I;){if(b=this.keyframes[p],w=this.keyframes[p+1],p===g-1&&r>=w.t-a){b.h&&(b=w),m=0;break}if(w.t-a>r){m=p;break}p<g-1?p+=1:(m=0,I=!1)}L=this.keyframesMetadata[p]||{};var G,x,O,P,R,U,M=w.t-a,k=b.t-a,T;if(b.to){L.bezierData||(L.bezierData=Wr.buildBezierData(b.s,w.s||b.e,b.to,b.ti));var _=L.bezierData;if(r>=M||r<k){var N=r>=M?_.points.length-1:0;for(x=_.points[N].point.length,G=0;G<x;G+=1)d[G]=_.points[N].point[G]}else{L.__fnct?U=L.__fnct:(U=Sa.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y,b.n).get,L.__fnct=U),O=U((r-k)/(M-k));var $=_.segmentLength*O,H,j=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastAddedLength:0;for(R=s.lastFrame<r&&s._lastKeyframeIndex===p?s._lastPoint:0,I=!0,P=_.points.length;I;){if(j+=_.points[R].partialLength,$===0||O===0||R===_.points.length-1){for(x=_.points[R].point.length,G=0;G<x;G+=1)d[G]=_.points[R].point[G];break}else if($>=j&&$<j+_.points[R+1].partialLength){for(H=($-j)/_.points[R+1].partialLength,x=_.points[R].point.length,G=0;G<x;G+=1)d[G]=_.points[R].point[G]+(_.points[R+1].point[G]-_.points[R].point[G])*H;break}R<P-1?R+=1:I=!1}s._lastPoint=R,s._lastAddedLength=j-_.points[R].partialLength,s._lastKeyframeIndex=p}}else{var it,Tt,ut,st,St;if(g=b.s.length,T=w.s||b.e,this.sh&&b.h!==1)if(r>=M)d[0]=T[0],d[1]=T[1],d[2]=T[2];else if(r<=k)d[0]=b.s[0],d[1]=b.s[1],d[2]=b.s[2];else{var ht=jm(b.s),rt=jm(T),C=(r-k)/(M-k);SE(d,AE(ht,rt,C))}else for(p=0;p<g;p+=1)b.h!==1&&(r>=M?O=1:r<k?O=0:(b.o.x.constructor===Array?(L.__fnct||(L.__fnct=[]),L.__fnct[p]?U=L.__fnct[p]:(it=b.o.x[p]===void 0?b.o.x[0]:b.o.x[p],Tt=b.o.y[p]===void 0?b.o.y[0]:b.o.y[p],ut=b.i.x[p]===void 0?b.i.x[0]:b.i.x[p],st=b.i.y[p]===void 0?b.i.y[0]:b.i.y[p],U=Sa.getBezierEasing(it,Tt,ut,st).get,L.__fnct[p]=U)):L.__fnct?U=L.__fnct:(it=b.o.x,Tt=b.o.y,ut=b.i.x,st=b.i.y,U=Sa.getBezierEasing(it,Tt,ut,st).get,b.keyframeMetadata=U),O=U((r-k)/(M-k)))),T=w.s||b.e,St=b.h===1?b.s[p]:b.s[p]+(T[p]-b.s[p])*O,this.propType==="multidimensional"?d[p]=St:d=St}return s.lastIndex=m,d}function AE(r,s,a){var d=[],m=r[0],p=r[1],g=r[2],I=r[3],b=s[0],w=s[1],L=s[2],G=s[3],x,O,P,R,U;return O=m*b+p*w+g*L+I*G,O<0&&(O=-O,b=-b,w=-w,L=-L,G=-G),1-O>1e-6?(x=Math.acos(O),P=Math.sin(x),R=Math.sin((1-a)*x)/P,U=Math.sin(a*x)/P):(R=1-a,U=a),d[0]=R*m+U*b,d[1]=R*p+U*w,d[2]=R*g+U*L,d[3]=R*I+U*G,d}function SE(r,s){var a=s[0],d=s[1],m=s[2],p=s[3],g=Math.atan2(2*d*p-2*a*m,1-2*d*d-2*m*m),I=Math.asin(2*a*d+2*m*p),b=Math.atan2(2*a*p-2*d*m,1-2*a*a-2*m*m);r[0]=g/Nt,r[1]=I/Nt,r[2]=b/Nt}function jm(r){var s=r[0]*Nt,a=r[1]*Nt,d=r[2]*Nt,m=Math.cos(s/2),p=Math.cos(a/2),g=Math.cos(d/2),I=Math.sin(s/2),b=Math.sin(a/2),w=Math.sin(d/2),L=m*p*g-I*b*w,G=I*b*g+m*p*w,x=I*p*g+m*b*w,O=m*b*g-I*p*w;return[G,x,O,L]}function qm(){var r=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(r===this._caching.lastFrame||this._caching.lastFrame!==wo&&(this._caching.lastFrame>=a&&r>=a||this._caching.lastFrame<s&&r<s))){this._caching.lastFrame>=r&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var d=this.interpolateValue(r,this._caching);this.pv=d}return this._caching.lastFrame=r,this.pv}function el(r){var s;if(this.propType==="unidimensional")s=r*this.mult,Wm(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var a=0,d=this.v.length;a<d;)s=r[a]*this.mult,Wm(this.v[a]-s)>1e-5&&(this.v[a]=s,this._mdf=!0),a+=1}function rl(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var r,s=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(r=0;r<s;r+=1)a=this.effectsSequence[r](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function il(r){this.effectsSequence.push(r),this.container.addDynamicProperty(this)}function IE(r,s,a,d){this.propType="unidimensional",this.mult=a||1,this.data=s,this.v=a?s.k*a:s.k,this.pv=s.k,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.addEffect=il}function _E(r,s,a,d){this.propType="multidimensional",this.mult=a||1,this.data=s,this._mdf=!1,this.elem=r,this.container=d,this.comp=r.comp,this.k=!1,this.kf=!1,this.frameId=-1;var m,p=s.k.length;for(this.v=Z("float32",p),this.pv=Z("float32",p),this.vel=Z("float32",p),m=0;m<p;m+=1)this.v[m]=s.k[m]*this.mult,this.pv[m]=s.k[m];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=rl,this.setVValue=el,this.addEffect=il}function CE(r,s,a,d){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.frameId=-1,this._caching={lastFrame:wo,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=a||1,this.elem=r,this.container=d,this.comp=r.comp,this.v=wo,this.pv=wo,this._isFirstFrame=!0,this.getValue=rl,this.setVValue=el,this.interpolateValue=Ym,this.effectsSequence=[qm.bind(this)],this.addEffect=il}function kE(r,s,a,d){this.propType="multidimensional";var m,p=s.k.length,g,I,b,w;for(m=0;m<p-1;m+=1)s.k[m].to&&s.k[m].s&&s.k[m+1]&&s.k[m+1].s&&(g=s.k[m].s,I=s.k[m+1].s,b=s.k[m].to,w=s.k[m].ti,(g.length===2&&!(g[0]===I[0]&&g[1]===I[1])&&Wr.pointOnLine2D(g[0],g[1],I[0],I[1],g[0]+b[0],g[1]+b[1])&&Wr.pointOnLine2D(g[0],g[1],I[0],I[1],I[0]+w[0],I[1]+w[1])||g.length===3&&!(g[0]===I[0]&&g[1]===I[1]&&g[2]===I[2])&&Wr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],g[0]+b[0],g[1]+b[1],g[2]+b[2])&&Wr.pointOnLine3D(g[0],g[1],g[2],I[0],I[1],I[2],I[0]+w[0],I[1]+w[1],I[2]+w[2]))&&(s.k[m].to=null,s.k[m].ti=null),g[0]===I[0]&&g[1]===I[1]&&b[0]===0&&b[1]===0&&w[0]===0&&w[1]===0&&(g.length===2||g[2]===I[2]&&b[2]===0&&w[2]===0)&&(s.k[m].to=null,s.k[m].ti=null));this.effectsSequence=[qm.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=r.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=r,this.container=d,this.comp=r.comp,this.getValue=rl,this.setVValue=el,this.interpolateValue=Ym,this.frameId=-1;var L=s.k[0].s.length;for(this.v=Z("float32",L),this.pv=Z("float32",L),m=0;m<L;m+=1)this.v[m]=wo,this.pv[m]=wo;this._caching={lastFrame:wo,lastIndex:0,value:Z("float32",L)},this.addEffect=il}var at=function(){function r(a,d,m,p,g){d.sid&&(d=a.globalData.slotManager.getProp(d));var I;if(!d.k.length)I=new IE(a,d,p,g);else if(typeof d.k[0]=="number")I=new _E(a,d,p,g);else switch(m){case 0:I=new CE(a,d,p,g);break;case 1:I=new kE(a,d,p,g);break;default:break}return I.effectsSequence.length&&g.addDynamicProperty(I),I}var s={getProp:r};return s}();function Ie(){}Ie.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,a=this.dynamicProperties.length;for(s=0;s<a;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 No=function(){function r(){return Z("float32",2)}return tl(8,r)}();function pi(){this.c=!1,this._length=0,this._maxLength=8,this.v=et(this._maxLength),this.o=et(this._maxLength),this.i=et(this._maxLength)}pi.prototype.setPathData=function(r,s){this.c=r,this.setLength(s);for(var a=0;a<s;)this.v[a]=No.newElement(),this.o[a]=No.newElement(),this.i[a]=No.newElement(),a+=1},pi.prototype.setLength=function(r){for(;this._maxLength<r;)this.doubleArrayLength();this._length=r},pi.prototype.doubleArrayLength=function(){this.v=this.v.concat(et(this._maxLength)),this.i=this.i.concat(et(this._maxLength)),this.o=this.o.concat(et(this._maxLength)),this._maxLength*=2},pi.prototype.setXYAt=function(r,s,a,d,m){var p;switch(this._length=Math.max(this._length,d+1),this._length>=this._maxLength&&this.doubleArrayLength(),a){case"v":p=this.v;break;case"i":p=this.i;break;case"o":p=this.o;break;default:p=[];break}(!p[d]||p[d]&&!m)&&(p[d]=No.newElement()),p[d][0]=r,p[d][1]=s},pi.prototype.setTripleAt=function(r,s,a,d,m,p,g,I){this.setXYAt(r,s,"v",g,I),this.setXYAt(a,d,"o",g,I),this.setXYAt(m,p,"i",g,I)},pi.prototype.reverse=function(){var r=new pi;r.setPathData(this.c,this._length);var s=this.v,a=this.o,d=this.i,m=0;this.c&&(r.setTripleAt(s[0][0],s[0][1],d[0][0],d[0][1],a[0][0],a[0][1],0,!1),m=1);var p=this._length-1,g=this._length,I;for(I=m;I<g;I+=1)r.setTripleAt(s[p][0],s[p][1],d[p][0],d[p][1],a[p][0],a[p][1],I,!1),p-=1;return r},pi.prototype.length=function(){return this._length};var Me=function(){function r(){return new pi}function s(m){var p=m._length,g;for(g=0;g<p;g+=1)No.release(m.v[g]),No.release(m.i[g]),No.release(m.o[g]),m.v[g]=null,m.i[g]=null,m.o[g]=null;m._length=0,m.c=!1}function a(m){var p=d.newElement(),g,I=m._length===void 0?m.v.length:m._length;for(p.setLength(I),p.c=m.c,g=0;g<I;g+=1)p.setTripleAt(m.v[g][0],m.v[g][1],m.o[g][0],m.o[g][1],m.i[g][0],m.i[g][1],g);return p}var d=tl(4,r,s);return d.clone=a,d}();function Cc(){this._length=0,this._maxLength=4,this.shapes=et(this._maxLength)}Cc.prototype.addShape=function(r){this._length===this._maxLength&&(this.shapes=this.shapes.concat(et(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=r,this._length+=1},Cc.prototype.releaseShapes=function(){var r;for(r=0;r<this._length;r+=1)Me.release(this.shapes[r]);this._length=0};var _s=function(){var r={newShapeCollection:m,release:p},s=0,a=4,d=et(a);function m(){var g;return s?(s-=1,g=d[s]):g=new Cc,g}function p(g){var I,b=g._length;for(I=0;I<b;I+=1)Me.release(g.shapes[I]);g._length=0,s===a&&(d=Hm.double(d),a*=2),d[s]=g,s+=1}return r}(),ol=function(){var r=-999999;function s(M,k,T){var _=T.lastIndex,N,$,H,j,it,Tt,ut,st,St,ht=this.keyframes;if(M<ht[0].t-this.offsetTime)N=ht[0].s[0],H=!0,_=0;else if(M>=ht[ht.length-1].t-this.offsetTime)N=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],H=!0;else{for(var rt=_,C=ht.length-1,D=!0,v,E,Y;D&&(v=ht[rt],E=ht[rt+1],!(E.t-this.offsetTime>M));)rt<C-1?rt+=1:D=!1;if(Y=this.keyframesMetadata[rt]||{},H=v.h===1,_=rt,!H){if(M>=E.t-this.offsetTime)st=1;else if(M<v.t-this.offsetTime)st=0;else{var V;Y.__fnct?V=Y.__fnct:(V=Sa.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y).get,Y.__fnct=V),st=V((M-(v.t-this.offsetTime))/(E.t-this.offsetTime-(v.t-this.offsetTime)))}$=E.s?E.s[0]:v.e[0]}N=v.s[0]}for(Tt=k._length,ut=N.i[0].length,T.lastIndex=_,j=0;j<Tt;j+=1)for(it=0;it<ut;it+=1)St=H?N.i[j][it]:N.i[j][it]+($.i[j][it]-N.i[j][it])*st,k.i[j][it]=St,St=H?N.o[j][it]:N.o[j][it]+($.o[j][it]-N.o[j][it])*st,k.o[j][it]=St,St=H?N.v[j][it]:N.v[j][it]+($.v[j][it]-N.v[j][it])*st,k.v[j][it]=St}function a(){var M=this.comp.renderedFrame-this.offsetTime,k=this.keyframes[0].t-this.offsetTime,T=this.keyframes[this.keyframes.length-1].t-this.offsetTime,_=this._caching.lastFrame;return _!==r&&(_<k&&M<k||_>T&&M>T)||(this._caching.lastIndex=_<M?this._caching.lastIndex:0,this.interpolateShape(M,this.pv,this._caching)),this._caching.lastFrame=M,this.pv}function d(){this.paths=this.localShapeCollection}function m(M,k){if(M._length!==k._length||M.c!==k.c)return!1;var T,_=M._length;for(T=0;T<_;T+=1)if(M.v[T][0]!==k.v[T][0]||M.v[T][1]!==k.v[T][1]||M.o[T][0]!==k.o[T][0]||M.o[T][1]!==k.o[T][1]||M.i[T][0]!==k.i[T][0]||M.i[T][1]!==k.i[T][1])return!1;return!0}function p(M){m(this.v,M)||(this.v=Me.clone(M),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function g(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var M;this.kf?M=this.pv:this.data.ks?M=this.data.ks.k:M=this.data.pt.k;var k,T=this.effectsSequence.length;for(k=0;k<T;k+=1)M=this.effectsSequence[k](M);this.setVValue(M),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function I(M,k,T){this.propType="shape",this.comp=M.comp,this.container=M,this.elem=M,this.data=k,this.k=!1,this.kf=!1,this._mdf=!1;var _=T===3?k.pt.k:k.ks.k;this.v=Me.clone(_),this.pv=Me.clone(this.v),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=d,this.effectsSequence=[]}function b(M){this.effectsSequence.push(M),this.container.addDynamicProperty(this)}I.prototype.interpolateShape=s,I.prototype.getValue=g,I.prototype.setVValue=p,I.prototype.addEffect=b;function w(M,k,T){this.propType="shape",this.comp=M.comp,this.elem=M,this.container=M,this.offsetTime=M.data.st,this.keyframes=T===3?k.pt.k:k.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var _=this.keyframes[0].s[0].i.length;this.v=Me.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,_),this.pv=Me.clone(this.v),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=r,this.reset=d,this._caching={lastFrame:r,lastIndex:0},this.effectsSequence=[a.bind(this)]}w.prototype.getValue=g,w.prototype.interpolateShape=s,w.prototype.setVValue=p,w.prototype.addEffect=b;var L=function(){var M=he;function k(T,_){this.v=Me.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=_s.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=_.d,this.elem=T,this.comp=T.comp,this.frameId=-1,this.initDynamicPropertyContainer(T),this.p=at.getProp(T,_.p,1,0,this),this.s=at.getProp(T,_.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return k.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var _=this.p.v[0],N=this.p.v[1],$=this.s.v[0]/2,H=this.s.v[1]/2,j=this.d!==3,it=this.v;it.v[0][0]=_,it.v[0][1]=N-H,it.v[1][0]=j?_+$:_-$,it.v[1][1]=N,it.v[2][0]=_,it.v[2][1]=N+H,it.v[3][0]=j?_-$:_+$,it.v[3][1]=N,it.i[0][0]=j?_-$*M:_+$*M,it.i[0][1]=N-H,it.i[1][0]=j?_+$:_-$,it.i[1][1]=N-H*M,it.i[2][0]=j?_+$*M:_-$*M,it.i[2][1]=N+H,it.i[3][0]=j?_-$:_+$,it.i[3][1]=N+H*M,it.o[0][0]=j?_+$*M:_-$*M,it.o[0][1]=N-H,it.o[1][0]=j?_+$:_-$,it.o[1][1]=N+H*M,it.o[2][0]=j?_-$*M:_+$*M,it.o[2][1]=N+H,it.o[3][0]=j?_-$:_+$,it.o[3][1]=N-H*M}},A([Ie],k),k}(),G=function(){function M(k,T){this.v=Me.newElement(),this.v.setPathData(!0,0),this.elem=k,this.comp=k.comp,this.data=T,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),T.sy===1?(this.ir=at.getProp(k,T.ir,0,0,this),this.is=at.getProp(k,T.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(k,T.pt,0,0,this),this.p=at.getProp(k,T.p,1,0,this),this.r=at.getProp(k,T.r,0,Nt,this),this.or=at.getProp(k,T.or,0,0,this),this.os=at.getProp(k,T.os,0,.01,this),this.localShapeCollection=_s.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return M.prototype={reset:d,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var T=Math.floor(this.pt.v)*2,_=Math.PI*2/T,N=!0,$=this.or.v,H=this.ir.v,j=this.os.v,it=this.is.v,Tt=2*Math.PI*$/(T*2),ut=2*Math.PI*H/(T*2),st,St,ht,rt,C=-Math.PI/2;C+=this.r.v;var D=this.data.d===3?-1:1;for(this.v._length=0,st=0;st<T;st+=1){St=N?$:H,ht=N?j:it,rt=N?Tt:ut;var v=St*Math.cos(C),E=St*Math.sin(C),Y=v===0&&E===0?0:E/Math.sqrt(v*v+E*E),V=v===0&&E===0?0:-v/Math.sqrt(v*v+E*E);v+=+this.p.v[0],E+=+this.p.v[1],this.v.setTripleAt(v,E,v-Y*rt*ht*D,E-V*rt*ht*D,v+Y*rt*ht*D,E+V*rt*ht*D,st,!0),N=!N,C+=_*D}},convertPolygonToPath:function(){var T=Math.floor(this.pt.v),_=Math.PI*2/T,N=this.or.v,$=this.os.v,H=2*Math.PI*N/(T*4),j,it=-Math.PI*.5,Tt=this.data.d===3?-1:1;for(it+=this.r.v,this.v._length=0,j=0;j<T;j+=1){var ut=N*Math.cos(it),st=N*Math.sin(it),St=ut===0&&st===0?0:st/Math.sqrt(ut*ut+st*st),ht=ut===0&&st===0?0:-ut/Math.sqrt(ut*ut+st*st);ut+=+this.p.v[0],st+=+this.p.v[1],this.v.setTripleAt(ut,st,ut-St*H*$*Tt,st-ht*H*$*Tt,ut+St*H*$*Tt,st+ht*H*$*Tt,j,!0),it+=_*Tt}this.paths.length=0,this.paths[0]=this.v}},A([Ie],M),M}(),x=function(){function M(k,T){this.v=Me.newElement(),this.v.c=!0,this.localShapeCollection=_s.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=k,this.comp=k.comp,this.frameId=-1,this.d=T.d,this.initDynamicPropertyContainer(k),this.p=at.getProp(k,T.p,1,0,this),this.s=at.getProp(k,T.s,1,0,this),this.r=at.getProp(k,T.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return M.prototype={convertRectToPath:function(){var T=this.p.v[0],_=this.p.v[1],N=this.s.v[0]/2,$=this.s.v[1]/2,H=Ne(N,$,this.r.v),j=H*(1-he);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(T+N,_-$+H,T+N,_-$+H,T+N,_-$+j,0,!0),this.v.setTripleAt(T+N,_+$-H,T+N,_+$-j,T+N,_+$-H,1,!0),H!==0?(this.v.setTripleAt(T+N-H,_+$,T+N-H,_+$,T+N-j,_+$,2,!0),this.v.setTripleAt(T-N+H,_+$,T-N+j,_+$,T-N+H,_+$,3,!0),this.v.setTripleAt(T-N,_+$-H,T-N,_+$-H,T-N,_+$-j,4,!0),this.v.setTripleAt(T-N,_-$+H,T-N,_-$+j,T-N,_-$+H,5,!0),this.v.setTripleAt(T-N+H,_-$,T-N+H,_-$,T-N+j,_-$,6,!0),this.v.setTripleAt(T+N-H,_-$,T+N-j,_-$,T+N-H,_-$,7,!0)):(this.v.setTripleAt(T-N,_+$,T-N+j,_+$,T-N,_+$,2),this.v.setTripleAt(T-N,_-$,T-N,_-$+j,T-N,_-$,3))):(this.v.setTripleAt(T+N,_-$+H,T+N,_-$+j,T+N,_-$+H,0,!0),H!==0?(this.v.setTripleAt(T+N-H,_-$,T+N-H,_-$,T+N-j,_-$,1,!0),this.v.setTripleAt(T-N+H,_-$,T-N+j,_-$,T-N+H,_-$,2,!0),this.v.setTripleAt(T-N,_-$+H,T-N,_-$+H,T-N,_-$+j,3,!0),this.v.setTripleAt(T-N,_+$-H,T-N,_+$-j,T-N,_+$-H,4,!0),this.v.setTripleAt(T-N+H,_+$,T-N+H,_+$,T-N+j,_+$,5,!0),this.v.setTripleAt(T+N-H,_+$,T+N-j,_+$,T+N-H,_+$,6,!0),this.v.setTripleAt(T+N,_+$-H,T+N,_+$-H,T+N,_+$-j,7,!0)):(this.v.setTripleAt(T-N,_-$,T-N+j,_-$,T-N,_-$,1,!0),this.v.setTripleAt(T-N,_+$,T-N,_+$-j,T-N,_+$,2,!0),this.v.setTripleAt(T+N,_+$,T+N-j,_+$,T+N,_+$,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:d},A([Ie],M),M}();function O(M,k,T){var _;if(T===3||T===4){var N=T===3?k.pt:k.ks,$=N.k;$.length?_=new w(M,k,T):_=new I(M,k,T)}else T===5?_=new x(M,k):T===6?_=new L(M,k):T===7&&(_=new G(M,k));return _.k&&M.addDynamicProperty(_),_}function P(){return I}function R(){return w}var U={};return U.getShapeProp=O,U.getConstructorFunction=P,U.getKeyframedConstructorFunction=R,U}();var Le=function(){var r=Math.cos,s=Math.sin,a=Math.tan,d=Math.round;function m(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function p(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function g(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(1,0,0,0,0,E,-Y,0,0,Y,E,0,0,0,0,1)}function I(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,0,Y,0,0,1,0,0,-Y,0,E,0,0,0,0,1)}function b(v){if(v===0)return this;var E=r(v),Y=s(v);return this._t(E,-Y,0,0,Y,E,0,0,0,0,1,0,0,0,0,1)}function w(v,E){return this._t(1,E,v,1,0,0)}function L(v,E){return this.shear(a(v),a(E))}function G(v,E){var Y=r(E),V=s(E);return this._t(Y,V,0,0,-V,Y,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(v),1,0,0,0,0,1,0,0,0,0,1)._t(Y,-V,0,0,V,Y,0,0,0,0,1,0,0,0,0,1)}function x(v,E,Y){return!Y&&Y!==0&&(Y=1),v===1&&E===1&&Y===1?this:this._t(v,0,0,0,0,E,0,0,0,0,Y,0,0,0,0,1)}function O(v,E,Y,V,ct,gt,xt,Dt,Pt,me,Qe,jr,Je,_e,hr,Gt){return this.props[0]=v,this.props[1]=E,this.props[2]=Y,this.props[3]=V,this.props[4]=ct,this.props[5]=gt,this.props[6]=xt,this.props[7]=Dt,this.props[8]=Pt,this.props[9]=me,this.props[10]=Qe,this.props[11]=jr,this.props[12]=Je,this.props[13]=_e,this.props[14]=hr,this.props[15]=Gt,this}function P(v,E,Y){return Y=Y||0,v!==0||E!==0||Y!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,v,E,Y,1):this}function R(v,E,Y,V,ct,gt,xt,Dt,Pt,me,Qe,jr,Je,_e,hr,Gt){var pt=this.props;if(v===1&&E===0&&Y===0&&V===0&&ct===0&>===1&&xt===0&&Dt===0&&Pt===0&&me===0&&Qe===1&&jr===0)return pt[12]=pt[12]*v+pt[15]*Je,pt[13]=pt[13]*gt+pt[15]*_e,pt[14]=pt[14]*Qe+pt[15]*hr,pt[15]*=Gt,this._identityCalculated=!1,this;var fi=pt[0],Xi=pt[1],vi=pt[2],qr=pt[3],gi=pt[4],bi=pt[5],tr=pt[6],Zi=pt[7],Qi=pt[8],Dr=pt[9],Ji=pt[10],Pr=pt[11],Ro=pt[12],ml=pt[13],ul=pt[14],fl=pt[15];return pt[0]=fi*v+Xi*ct+vi*Pt+qr*Je,pt[1]=fi*E+Xi*gt+vi*me+qr*_e,pt[2]=fi*Y+Xi*xt+vi*Qe+qr*hr,pt[3]=fi*V+Xi*Dt+vi*jr+qr*Gt,pt[4]=gi*v+bi*ct+tr*Pt+Zi*Je,pt[5]=gi*E+bi*gt+tr*me+Zi*_e,pt[6]=gi*Y+bi*xt+tr*Qe+Zi*hr,pt[7]=gi*V+bi*Dt+tr*jr+Zi*Gt,pt[8]=Qi*v+Dr*ct+Ji*Pt+Pr*Je,pt[9]=Qi*E+Dr*gt+Ji*me+Pr*_e,pt[10]=Qi*Y+Dr*xt+Ji*Qe+Pr*hr,pt[11]=Qi*V+Dr*Dt+Ji*jr+Pr*Gt,pt[12]=Ro*v+ml*ct+ul*Pt+fl*Je,pt[13]=Ro*E+ml*gt+ul*me+fl*_e,pt[14]=Ro*Y+ml*xt+ul*Qe+fl*hr,pt[15]=Ro*V+ml*Dt+ul*jr+fl*Gt,this._identityCalculated=!1,this}function U(v){var E=v.props;return this.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15])}function M(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function k(v){for(var E=0;E<16;){if(v.props[E]!==this.props[E])return!1;E+=1}return!0}function T(v){var E;for(E=0;E<16;E+=1)v.props[E]=this.props[E];return v}function _(v){var E;for(E=0;E<16;E+=1)this.props[E]=v[E]}function N(v,E,Y){return{x:v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],y:v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],z:v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}}function $(v,E,Y){return v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12]}function H(v,E,Y){return v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13]}function j(v,E,Y){return v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]}function it(){var v=this.props[0]*this.props[5]-this.props[1]*this.props[4],E=this.props[5]/v,Y=-this.props[1]/v,V=-this.props[4]/v,ct=this.props[0]/v,gt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/v,xt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/v,Dt=new Le;return Dt.props[0]=E,Dt.props[1]=Y,Dt.props[4]=V,Dt.props[5]=ct,Dt.props[12]=gt,Dt.props[13]=xt,Dt}function Tt(v){var E=this.getInverseMatrix();return E.applyToPointArray(v[0],v[1],v[2]||0)}function ut(v){var E,Y=v.length,V=[];for(E=0;E<Y;E+=1)V[E]=Tt(v[E]);return V}function st(v,E,Y){var V=Z("float32",6);if(this.isIdentity())V[0]=v[0],V[1]=v[1],V[2]=E[0],V[3]=E[1],V[4]=Y[0],V[5]=Y[1];else{var ct=this.props[0],gt=this.props[1],xt=this.props[4],Dt=this.props[5],Pt=this.props[12],me=this.props[13];V[0]=v[0]*ct+v[1]*xt+Pt,V[1]=v[0]*gt+v[1]*Dt+me,V[2]=E[0]*ct+E[1]*xt+Pt,V[3]=E[0]*gt+E[1]*Dt+me,V[4]=Y[0]*ct+Y[1]*xt+Pt,V[5]=Y[0]*gt+Y[1]*Dt+me}return V}function St(v,E,Y){var V;return this.isIdentity()?V=[v,E,Y]:V=[v*this.props[0]+E*this.props[4]+Y*this.props[8]+this.props[12],v*this.props[1]+E*this.props[5]+Y*this.props[9]+this.props[13],v*this.props[2]+E*this.props[6]+Y*this.props[10]+this.props[14]],V}function ht(v,E){if(this.isIdentity())return v+","+E;var Y=this.props;return Math.round((v*Y[0]+E*Y[4]+Y[12])*100)/100+","+Math.round((v*Y[1]+E*Y[5]+Y[13])*100)/100}function rt(){for(var v=0,E=this.props,Y="matrix3d(",V=1e4;v<16;)Y+=d(E[v]*V)/V,Y+=v===15?")":",",v+=1;return Y}function C(v){var E=1e4;return v<1e-6&&v>0||v>-1e-6&&v<0?d(v*E)/E:v}function D(){var v=this.props,E=C(v[0]),Y=C(v[1]),V=C(v[4]),ct=C(v[5]),gt=C(v[12]),xt=C(v[13]);return"matrix("+E+","+Y+","+V+","+ct+","+gt+","+xt+")"}return function(){this.reset=m,this.rotate=p,this.rotateX=g,this.rotateY=I,this.rotateZ=b,this.skew=L,this.skewFromAxis=G,this.shear=w,this.scale=x,this.setTransform=O,this.translate=P,this.transform=R,this.multiply=U,this.applyToPoint=N,this.applyToX=$,this.applyToY=H,this.applyToZ=j,this.applyToPointArray=St,this.applyToTriplePoints=st,this.applyToPointStringified=ht,this.toCSS=rt,this.to2dCSS=D,this.clone=T,this.cloneFromProps=_,this.equals=k,this.inversePoints=ut,this.inversePoint=Tt,this.getInverseMatrix=it,this._t=this.transform,this.isIdentity=M,this._identity=!0,this._identityCalculated=!1,this.props=Z("float32",16),this.reset()}}();function sl(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(a){return typeof a}:sl=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},sl(r)}var Bt={},al="__[STANDALONE]__",Xm="__[ANIMATIONDATA]__",Zm="";function wE(r){c(r)}function Qm(){al===!0?pe.searchAnimations(Xm,al,Zm):pe.searchAnimations()}function NE(r){pE(r)}function ME(r){fE(r)}function LE(r){return al===!0&&(r.animationData=JSON.parse(Xm)),pe.loadAnimation(r)}function OE(r){if(typeof r=="string")switch(r){case"high":Qn(200);break;default:case"medium":Qn(50);break;case"low":Qn(10);break}else!isNaN(r)&&r>1&&Qn(r);Ea()>=50?gr(!1):gr(!0)}function RE(){return typeof navigator<"u"}function DE(r,s){r==="expressions"&&uE(s)}function PE(r){switch(r){case"propertyFactory":return at;case"shapePropertyFactory":return ol;case"matrix":return Le;default:return null}}Bt.play=pe.play,Bt.pause=pe.pause,Bt.setLocationHref=wE,Bt.togglePause=pe.togglePause,Bt.setSpeed=pe.setSpeed,Bt.setDirection=pe.setDirection,Bt.stop=pe.stop,Bt.searchAnimations=Qm,Bt.registerAnimation=pe.registerAnimation,Bt.loadAnimation=LE,Bt.setSubframeRendering=NE,Bt.resize=pe.resize,Bt.goToAndStop=pe.goToAndStop,Bt.destroy=pe.destroy,Bt.setQuality=OE,Bt.inBrowser=RE,Bt.installPlugin=DE,Bt.freeze=pe.freeze,Bt.unfreeze=pe.unfreeze,Bt.setVolume=pe.setVolume,Bt.mute=pe.mute,Bt.unmute=pe.unmute,Bt.getRegisteredAnimations=pe.getRegisteredAnimations,Bt.useWebWorker=o,Bt.setIDPrefix=ME,Bt.__getFactory=PE,Bt.version="5.12.2";function FE(){document.readyState==="complete"&&(clearInterval(zE),Qm())}function $E(r){for(var s=Jm.split("&"),a=0;a<s.length;a+=1){var d=s[a].split("=");if(decodeURIComponent(d[0])==r)return decodeURIComponent(d[1])}return null}var Jm="";if(al){var tu=document.getElementsByTagName("script"),VE=tu.length-1,eu=tu[VE]||{src:""};Jm=eu.src?eu.src.replace(/^[^\?]+\??/,""):"",Zm=$E("renderer")}var zE=setInterval(FE,100);try{!((typeof rn>"u"?"undefined":sl(rn))==="object"&&typeof Hl<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=Bt)}catch{}var Gi=function(){var r={},s={};r.registerModifier=a,r.getModifier=d;function a(m,p){s[m]||(s[m]=p)}function d(m,p,g){return new s[m](p,g)}return r}();function Tr(){}Tr.prototype.initModifierProperties=function(){},Tr.prototype.addShapeToModifier=function(){},Tr.prototype.addShape=function(r){if(!this.closed){r.sh.container.addDynamicProperty(r.sh);var s={shape:r.sh,data:r,localShapeCollection:_s.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&r.setAsAnimated()}},Tr.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)},Tr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},A([Ie],Tr);function Rr(){}A([Tr],Rr),Rr.prototype.initModifierProperties=function(r,s){this.s=at.getProp(r,s.s,0,.01,this),this.e=at.getProp(r,s.e,0,.01,this),this.o=at.getProp(r,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Rr.prototype.addShapeToModifier=function(r){r.pathsData=[]},Rr.prototype.calculateShapeEdges=function(r,s,a,d,m){var p=[];s<=1?p.push({s:r,e:s}):r>=1?p.push({s:r-1,e:s-1}):(p.push({s:r,e:1}),p.push({s:0,e:s-1}));var g=[],I,b=p.length,w;for(I=0;I<b;I+=1)if(w=p[I],!(w.e*m<d||w.s*m>d+a)){var L,G;w.s*m<=d?L=0:L=(w.s*m-d)/a,w.e*m>=d+a?G=1:G=(w.e*m-d)/a,g.push([L,G])}return g.length||g.push([0,0]),g},Rr.prototype.releasePathsData=function(r){var s,a=r.length;for(s=0;s<a;s+=1)Km.release(r[s]);return r.length=0,r},Rr.prototype.processShapes=function(r){var s,a;if(this._mdf||r){var d=this.o.v%360/360;if(d<0&&(d+=1),this.s.v>1?s=1+d:this.s.v<0?s=0+d:s=this.s.v+d,this.e.v>1?a=1+d:this.e.v<0?a=0+d:a=this.e.v+d,s>a){var m=s;s=a,a=m}s=Math.round(s*1e4)*1e-4,a=Math.round(a*1e4)*1e-4,this.sValue=s,this.eValue=a}else s=this.sValue,a=this.eValue;var p,g,I=this.shapes.length,b,w,L,G,x,O=0;if(a===s)for(g=0;g<I;g+=1)this.shapes[g].localShapeCollection.releaseShapes(),this.shapes[g].shape._mdf=!0,this.shapes[g].shape.paths=this.shapes[g].localShapeCollection,this._mdf&&(this.shapes[g].pathsData.length=0);else if(a===1&&s===0||a===0&&s===1){if(this._mdf)for(g=0;g<I;g+=1)this.shapes[g].pathsData.length=0,this.shapes[g].shape._mdf=!0}else{var P=[],R,U;for(g=0;g<I;g+=1)if(R=this.shapes[g],!R.shape._mdf&&!this._mdf&&!r&&this.m!==2)R.shape.paths=R.localShapeCollection;else{if(p=R.shape.paths,w=p._length,x=0,!R.shape._mdf&&R.pathsData.length)x=R.totalShapeLength;else{for(L=this.releasePathsData(R.pathsData),b=0;b<w;b+=1)G=Wr.getSegmentsLength(p.shapes[b]),L.push(G),x+=G.totalLength;R.totalShapeLength=x,R.pathsData=L}O+=x,R.shape._mdf=!0}var M=s,k=a,T=0,_;for(g=I-1;g>=0;g-=1)if(R=this.shapes[g],R.shape._mdf){for(U=R.localShapeCollection,U.releaseShapes(),this.m===2&&I>1?(_=this.calculateShapeEdges(s,a,R.totalShapeLength,T,O),T+=R.totalShapeLength):_=[[M,k]],w=_.length,b=0;b<w;b+=1){M=_[b][0],k=_[b][1],P.length=0,k<=1?P.push({s:R.totalShapeLength*M,e:R.totalShapeLength*k}):M>=1?P.push({s:R.totalShapeLength*(M-1),e:R.totalShapeLength*(k-1)}):(P.push({s:R.totalShapeLength*M,e:R.totalShapeLength}),P.push({s:0,e:R.totalShapeLength*(k-1)}));var N=this.addShapes(R,P[0]);if(P[0].s!==P[0].e){if(P.length>1){var $=R.shape.paths.shapes[R.shape.paths._length-1];if($.c){var H=N.pop();this.addPaths(N,U),N=this.addShapes(R,P[1],H)}else this.addPaths(N,U),N=this.addShapes(R,P[1])}this.addPaths(N,U)}}R.shape.paths=U}}},Rr.prototype.addPaths=function(r,s){var a,d=r.length;for(a=0;a<d;a+=1)s.addShape(r[a])},Rr.prototype.addSegment=function(r,s,a,d,m,p,g){m.setXYAt(s[0],s[1],"o",p),m.setXYAt(a[0],a[1],"i",p+1),g&&m.setXYAt(r[0],r[1],"v",p),m.setXYAt(d[0],d[1],"v",p+1)},Rr.prototype.addSegmentFromArray=function(r,s,a,d){s.setXYAt(r[1],r[5],"o",a),s.setXYAt(r[2],r[6],"i",a+1),d&&s.setXYAt(r[0],r[4],"v",a),s.setXYAt(r[3],r[7],"v",a+1)},Rr.prototype.addShapes=function(r,s,a){var d=r.pathsData,m=r.shape.paths.shapes,p,g=r.shape.paths._length,I,b,w=0,L,G,x,O,P=[],R,U=!0;for(a?(G=a._length,R=a._length):(a=Me.newElement(),G=0,R=0),P.push(a),p=0;p<g;p+=1){for(x=d[p].lengths,a.c=m[p].c,b=m[p].c?x.length:x.length+1,I=1;I<b;I+=1)if(L=x[I-1],w+L.addedLength<s.s)w+=L.addedLength,a.c=!1;else if(w>s.e){a.c=!1;break}else s.s<=w&&s.e>=w+L.addedLength?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[I],m[p].v[I],a,G,U),U=!1):(O=Wr.getNewSegment(m[p].v[I-1],m[p].v[I],m[p].o[I-1],m[p].i[I],(s.s-w)/L.addedLength,(s.e-w)/L.addedLength,x[I-1]),this.addSegmentFromArray(O,a,G,U),U=!1,a.c=!1),w+=L.addedLength,G+=1;if(m[p].c&&x.length){if(L=x[I-1],w<=s.e){var M=x[I-1].addedLength;s.s<=w&&s.e>=w+M?(this.addSegment(m[p].v[I-1],m[p].o[I-1],m[p].i[0],m[p].v[0],a,G,U),U=!1):(O=Wr.getNewSegment(m[p].v[I-1],m[p].v[0],m[p].o[I-1],m[p].i[0],(s.s-w)/M,(s.e-w)/M,x[I-1]),this.addSegmentFromArray(O,a,G,U),U=!1,a.c=!1)}else a.c=!1;w+=L.addedLength,G+=1}if(a._length&&(a.setXYAt(a.v[R][0],a.v[R][1],"i",R),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),w>s.e)break;p<g-1&&(a=Me.newElement(),U=!0,P.push(a),G=0)}return P};function Ia(){}A([Tr],Ia),Ia.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=at.getProp(r,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ia.prototype.processPath=function(r,s){var a=s/100,d=[0,0],m=r._length,p=0;for(p=0;p<m;p+=1)d[0]+=r.v[p][0],d[1]+=r.v[p][1];d[0]/=m,d[1]/=m;var g=Me.newElement();g.c=r.c;var I,b,w,L,G,x;for(p=0;p<m;p+=1)I=r.v[p][0]+(d[0]-r.v[p][0])*a,b=r.v[p][1]+(d[1]-r.v[p][1])*a,w=r.o[p][0]+(d[0]-r.o[p][0])*-a,L=r.o[p][1]+(d[1]-r.o[p][1])*-a,G=r.i[p][0]+(d[0]-r.i[p][0])*-a,x=r.i[p][1]+(d[1]-r.i[p][1])*-a,g.setTripleAt(I,b,w,L,G,x,p);return g},Ia.prototype.processShapes=function(r){var s,a,d=this.shapes.length,m,p,g=this.amount.v;if(g!==0){var I,b;for(a=0;a<d;a+=1){if(I=this.shapes[a],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var kc=function(){var r=[0,0];function s(b){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&b.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&b.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&b.skewFromAxis(-this.sk.v,this.sa.v),this.r?b.rotate(-this.r.v):b.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?b.translate(this.px.v,this.py.v,-this.pz.v):b.translate(this.px.v,this.py.v,0):b.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(b){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||b){var w;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var L,G;if(w=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(L=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/w,0),G=this.p.getValueAtTime(this.p.keyframes[0].t/w,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(L=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/w,0),G=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(L=this.p.pv,G=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){L=[],G=[];var x=this.px,O=this.py;x._caching.lastFrame+x.offsetTime<=x.keyframes[0].t?(L[0]=x.getValueAtTime((x.keyframes[0].t+.01)/w,0),L[1]=O.getValueAtTime((O.keyframes[0].t+.01)/w,0),G[0]=x.getValueAtTime(x.keyframes[0].t/w,0),G[1]=O.getValueAtTime(O.keyframes[0].t/w,0)):x._caching.lastFrame+x.offsetTime>=x.keyframes[x.keyframes.length-1].t?(L[0]=x.getValueAtTime(x.keyframes[x.keyframes.length-1].t/w,0),L[1]=O.getValueAtTime(O.keyframes[O.keyframes.length-1].t/w,0),G[0]=x.getValueAtTime((x.keyframes[x.keyframes.length-1].t-.01)/w,0),G[1]=O.getValueAtTime((O.keyframes[O.keyframes.length-1].t-.01)/w,0)):(L=[x.pv,O.pv],G[0]=x.getValueAtTime((x._caching.lastFrame+x.offsetTime-.01)/w,x.offsetTime),G[1]=O.getValueAtTime((O._caching.lastFrame+O.offsetTime-.01)/w,O.offsetTime))}else G=r,L=G;this.v.rotate(-Math.atan2(L[1]-G[1],L[0]-G[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function d(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function m(){}function p(b){this._addDynamicProperty(b),this.elem.addDynamicProperty(b),this._isDirty=!0}function g(b,w,L){if(this.elem=b,this.frameId=-1,this.propType="transform",this.data=w,this.v=new Le,this.pre=new Le,this.appliedTransformations=0,this.initDynamicPropertyContainer(L||b),w.p&&w.p.s?(this.px=at.getProp(b,w.p.x,0,0,this),this.py=at.getProp(b,w.p.y,0,0,this),w.p.z&&(this.pz=at.getProp(b,w.p.z,0,0,this))):this.p=at.getProp(b,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=at.getProp(b,w.rx,0,Nt,this),this.ry=at.getProp(b,w.ry,0,Nt,this),this.rz=at.getProp(b,w.rz,0,Nt,this),w.or.k[0].ti){var G,x=w.or.k.length;for(G=0;G<x;G+=1)w.or.k[G].to=null,w.or.k[G].ti=null}this.or=at.getProp(b,w.or,1,Nt,this),this.or.sh=!0}else this.r=at.getProp(b,w.r||{k:0},0,Nt,this);w.sk&&(this.sk=at.getProp(b,w.sk,0,Nt,this),this.sa=at.getProp(b,w.sa,0,Nt,this)),this.a=at.getProp(b,w.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(b,w.s||{k:[100,100,100]},1,.01,this),w.o?this.o=at.getProp(b,w.o,0,.01,b):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}g.prototype={applyToMatrix:s,getValue:a,precalculateMatrix:d,autoOrient:m},A([Ie],g),g.prototype.addDynamicProperty=p,g.prototype._addDynamicProperty=Ie.prototype.addDynamicProperty;function I(b,w,L){return new g(b,w,L)}return{getTransformProperty:I}}();function Yr(){}A([Tr],Yr),Yr.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.c=at.getProp(r,s.c,0,null,this),this.o=at.getProp(r,s.o,0,null,this),this.tr=kc.getTransformProperty(r,s.tr,this),this.so=at.getProp(r,s.tr.so,0,.01,this),this.eo=at.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 Le,this.rMatrix=new Le,this.sMatrix=new Le,this.tMatrix=new Le,this.matrix=new Le},Yr.prototype.applyTransforms=function(r,s,a,d,m,p){var g=p?-1:1,I=d.s.v[0]+(1-d.s.v[0])*(1-m),b=d.s.v[1]+(1-d.s.v[1])*(1-m);r.translate(d.p.v[0]*g*m,d.p.v[1]*g*m,d.p.v[2]),s.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),s.rotate(-d.r.v*g*m),s.translate(d.a.v[0],d.a.v[1],d.a.v[2]),a.translate(-d.a.v[0],-d.a.v[1],d.a.v[2]),a.scale(p?1/I:I,p?1/b:b),a.translate(d.a.v[0],d.a.v[1],d.a.v[2])},Yr.prototype.init=function(r,s,a,d){for(this.elem=r,this.arr=s,this.pos=a,this.elemsData=d,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(r),this.initModifierProperties(r,s[a]);a>0;)a-=1,this._elements.unshift(s[a]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Yr.prototype.resetElements=function(r){var s,a=r.length;for(s=0;s<a;s+=1)r[s]._processed=!1,r[s].ty==="gr"&&this.resetElements(r[s].it)},Yr.prototype.cloneElements=function(r){var s=JSON.parse(JSON.stringify(r));return this.resetElements(s),s},Yr.prototype.changeGroupRender=function(r,s){var a,d=r.length;for(a=0;a<d;a+=1)r[a]._render=s,r[a].ty==="gr"&&this.changeGroupRender(r[a].it,s)},Yr.prototype.processShapes=function(r){var s,a,d,m,p,g=!1;if(this._mdf||r){var I=Math.ceil(this.c.v);if(this._groups.length<I){for(;this._groups.length<I;){var b={it:this.cloneElements(this._elements),ty:"gr"};b.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,b),this._groups.splice(0,0,b),this._currentCopies+=1}this.elem.reloadShapes(),g=!0}p=0;var w;for(d=0;d<=this._groups.length-1;d+=1){if(w=p<I,this._groups[d]._render=w,this.changeGroupRender(this._groups[d].it,w),!w){var L=this.elemsData[d].it,G=L[L.length-1];G.transform.op.v!==0?(G.transform.op._mdf=!0,G.transform.op.v=0):G.transform.op._mdf=!1}p+=1}this._currentCopies=I;var x=this.o.v,O=x%1,P=x>0?Math.floor(x):Math.ceil(x),R=this.pMatrix.props,U=this.rMatrix.props,M=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var k=0;if(x>0){for(;k<P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,O,!1),k+=O)}else if(x<0){for(;k>P;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;O&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-O,!0),k-=O)}d=this.data.m===1?0:this._currentCopies-1,m=this.data.m===1?1:-1,p=this._currentCopies;for(var T,_;p;){if(s=this.elemsData[d].it,a=s[s.length-1].transform.mProps.v.props,_=a.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(d/(this._currentCopies-1)),k!==0){for((d!==0&&m===1||d!==this._currentCopies-1&&m===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(M[0],M[1],M[2],M[3],M[4],M[5],M[6],M[7],M[8],M[9],M[10],M[11],M[12],M[13],M[14],M[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),T=0;T<_;T+=1)a[T]=this.matrix.props[T];this.matrix.reset()}else for(this.matrix.reset(),T=0;T<_;T+=1)a[T]=this.matrix.props[T];k+=1,p-=1,d+=m}}else for(p=this._currentCopies,d=0,m=1;p;)s=this.elemsData[d].it,a=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,p-=1,d+=m;return g},Yr.prototype.addShape=function(){};function _a(){}A([Tr],_a),_a.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.rd=at.getProp(r,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},_a.prototype.processPath=function(r,s){var a=Me.newElement();a.c=r.c;var d,m=r._length,p,g,I,b,w,L,G=0,x,O,P,R,U,M;for(d=0;d<m;d+=1)p=r.v[d],I=r.o[d],g=r.i[d],p[0]===I[0]&&p[1]===I[1]&&p[0]===g[0]&&p[1]===g[1]?(d===0||d===m-1)&&!r.c?(a.setTripleAt(p[0],p[1],I[0],I[1],g[0],g[1],G),G+=1):(d===0?b=r.v[m-1]:b=r.v[d-1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,U=p[0]+(b[0]-p[0])*L,x=U,M=p[1]-(p[1]-b[1])*L,O=M,P=x-(x-p[0])*he,R=O-(O-p[1])*he,a.setTripleAt(x,O,P,R,U,M,G),G+=1,d===m-1?b=r.v[0]:b=r.v[d+1],w=Math.sqrt(Math.pow(p[0]-b[0],2)+Math.pow(p[1]-b[1],2)),L=w?Math.min(w/2,s)/w:0,P=p[0]+(b[0]-p[0])*L,x=P,R=p[1]+(b[1]-p[1])*L,O=R,U=x-(x-p[0])*he,M=O-(O-p[1])*he,a.setTripleAt(x,O,P,R,U,M,G),G+=1):(a.setTripleAt(r.v[d][0],r.v[d][1],r.o[d][0],r.o[d][1],r.i[d][0],r.i[d][1],G),G+=1);return a},_a.prototype.processShapes=function(r){var s,a,d=this.shapes.length,m,p,g=this.rd.v;if(g!==0){var I,b;for(a=0;a<d;a+=1){if(I=this.shapes[a],b=I.localShapeCollection,!(!I.shape._mdf&&!this._mdf&&!r))for(b.releaseShapes(),I.shape._mdf=!0,s=I.shape.paths.shapes,p=I.shape.paths._length,m=0;m<p;m+=1)b.addShape(this.processPath(s[m],g));I.shape.paths=I.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nl(r,s){return Math.abs(r-s)*1e5<=Math.min(Math.abs(r),Math.abs(s))}function wc(r){return Math.abs(r)<=1e-5}function ru(r,s,a){return r*(1-a)+s*a}function Ki(r,s,a){return[ru(r[0],s[0],a),ru(r[1],s[1],a)]}function BE(r,s,a){if(r===0)return[];var d=s*s-4*r*a;if(d<0)return[];var m=-s/(2*r);if(d===0)return[m];var p=Math.sqrt(d)/(2*r);return[m-p,m+p]}function iu(r,s,a,d){return[-r+3*s-3*a+d,3*r-6*s+3*a,-3*r+3*s,r]}function ou(r){return new oe(r,r,r,r,!1)}function oe(r,s,a,d,m){m&&ks(r,s)&&(s=Ki(r,d,1/3)),m&&ks(a,d)&&(a=Ki(r,d,2/3));var p=iu(r[0],s[0],a[0],d[0]),g=iu(r[1],s[1],a[1],d[1]);this.a=[p[0],g[0]],this.b=[p[1],g[1]],this.c=[p[2],g[2]],this.d=[p[3],g[3]],this.points=[r,s,a,d]}oe.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]]},oe.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]]},oe.prototype.tangentAngle=function(r){var s=this.derivative(r);return Math.atan2(s[1],s[0])},oe.prototype.normalAngle=function(r){var s=this.derivative(r);return Math.atan2(s[0],s[1])},oe.prototype.inflectionPoints=function(){var r=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(wc(r))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/r,a=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/r;if(a<0)return[];var d=Math.sqrt(a);return wc(d)?d>0&&d<1?[s]:[]:[s-d,s+d].filter(function(m){return m>0&&m<1})},oe.prototype.split=function(r){if(r<=0)return[ou(this.points[0]),this];if(r>=1)return[this,ou(this.points[this.points.length-1])];var s=Ki(this.points[0],this.points[1],r),a=Ki(this.points[1],this.points[2],r),d=Ki(this.points[2],this.points[3],r),m=Ki(s,a,r),p=Ki(a,d,r),g=Ki(m,p,r);return[new oe(this.points[0],s,m,g,!0),new oe(g,p,d,this.points[3],!0)]};function su(r,s){var a=r.points[0][s],d=r.points[r.points.length-1][s];if(a>d){var m=d;d=a,a=m}for(var p=BE(3*r.a[s],2*r.b[s],r.c[s]),g=0;g<p.length;g+=1)if(p[g]>0&&p[g]<1){var I=r.point(p[g])[s];I<a?a=I:I>d&&(d=I)}return{min:a,max:d}}oe.prototype.bounds=function(){return{x:su(this,0),y:su(this,1)}},oe.prototype.boundingBox=function(){var r=this.bounds();return{left:r.x.min,right:r.x.max,top:r.y.min,bottom:r.y.max,width:r.x.max-r.x.min,height:r.y.max-r.y.min,cx:(r.x.max+r.x.min)/2,cy:(r.y.max+r.y.min)/2}};function ll(r,s,a){var d=r.boundingBox();return{cx:d.cx,cy:d.cy,width:d.width,height:d.height,bez:r,t:(s+a)/2,t1:s,t2:a}}function au(r){var s=r.bez.split(.5);return[ll(s[0],r.t1,r.t),ll(s[1],r.t,r.t2)]}function UE(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 Ca(r,s,a,d,m,p){if(UE(r,s)){if(a>=p||r.width<=d&&r.height<=d&&s.width<=d&&s.height<=d){m.push([r.t,s.t]);return}var g=au(r),I=au(s);Ca(g[0],I[0],a+1,d,m,p),Ca(g[0],I[1],a+1,d,m,p),Ca(g[1],I[0],a+1,d,m,p),Ca(g[1],I[1],a+1,d,m,p)}}oe.prototype.intersections=function(r,s,a){s===void 0&&(s=2),a===void 0&&(a=7);var d=[];return Ca(ll(this,0,1),ll(r,0,1),0,s,d,a),d},oe.shapeSegment=function(r,s){var a=(s+1)%r.length();return new oe(r.v[s],r.o[s],r.i[a],r.v[a],!0)},oe.shapeSegmentInverted=function(r,s){var a=(s+1)%r.length();return new oe(r.v[a],r.i[a],r.o[s],r.v[s],!0)};function Nc(r,s){return[r[1]*s[2]-r[2]*s[1],r[2]*s[0]-r[0]*s[2],r[0]*s[1]-r[1]*s[0]]}function dl(r,s,a,d){var m=[r[0],r[1],1],p=[s[0],s[1],1],g=[a[0],a[1],1],I=[d[0],d[1],1],b=Nc(Nc(m,p),Nc(g,I));return wc(b[2])?null:[b[0]/b[2],b[1]/b[2]]}function Cs(r,s,a){return[r[0]+Math.cos(s)*a,r[1]-Math.sin(s)*a]}function Mc(r,s){return Math.hypot(r[0]-s[0],r[1]-s[1])}function ks(r,s){return nl(r[0],s[0])&&nl(r[1],s[1])}function ka(){}A([Tr],ka),ka.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amplitude=at.getProp(r,s.s,0,null,this),this.frequency=at.getProp(r,s.r,0,null,this),this.pointsType=at.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 nu(r,s,a,d,m,p,g){var I=a-Math.PI/2,b=a+Math.PI/2,w=s[0]+Math.cos(a)*d*m,L=s[1]-Math.sin(a)*d*m;r.setTripleAt(w,L,w+Math.cos(I)*p,L-Math.sin(I)*p,w+Math.cos(b)*g,L-Math.sin(b)*g,r.length())}function HE(r,s){var a=[s[0]-r[0],s[1]-r[1]],d=-Math.PI*.5,m=[Math.cos(d)*a[0]-Math.sin(d)*a[1],Math.sin(d)*a[0]+Math.cos(d)*a[1]];return m}function GE(r,s){var a=s===0?r.length()-1:s-1,d=(s+1)%r.length(),m=r.v[a],p=r.v[d],g=HE(m,p);return Math.atan2(0,1)-Math.atan2(g[1],g[0])}function lu(r,s,a,d,m,p,g){var I=GE(s,a),b=s.v[a%s._length],w=s.v[a===0?s._length-1:a-1],L=s.v[(a+1)%s._length],G=p===2?Math.sqrt(Math.pow(b[0]-w[0],2)+Math.pow(b[1]-w[1],2)):0,x=p===2?Math.sqrt(Math.pow(b[0]-L[0],2)+Math.pow(b[1]-L[1],2)):0;nu(r,s.v[a%s._length],I,g,d,x/((m+1)*2),G/((m+1)*2),p)}function KE(r,s,a,d,m,p){for(var g=0;g<d;g+=1){var I=(g+1)/(d+1),b=m===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,w=s.normalAngle(I),L=s.point(I);nu(r,L,w,p,a,b/((d+1)*2),b/((d+1)*2),m),p=-p}return p}ka.prototype.processPath=function(r,s,a,d){var m=r._length,p=Me.newElement();if(p.c=r.c,r.c||(m-=1),m===0)return p;var g=-1,I=oe.shapeSegment(r,0);lu(p,r,0,s,a,d,g);for(var b=0;b<m;b+=1)g=KE(p,I,s,a,d,-g),b===m-1&&!r.c?I=null:I=oe.shapeSegment(r,(b+1)%m),lu(p,r,b+1,s,a,d,g);return p},ka.prototype.processShapes=function(r){var s,a,d=this.shapes.length,m,p,g=this.amplitude.v,I=Math.max(0,Math.round(this.frequency.v)),b=this.pointsType.v;if(g!==0){var w,L;for(a=0;a<d;a+=1){if(w=this.shapes[a],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,I,b));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Lc(r,s,a){var d=Math.atan2(s[0]-r[0],s[1]-r[1]);return[Cs(r,d,a),Cs(s,d,a)]}function ws(r,s){var a,d,m,p,g,I,b;b=Lc(r.points[0],r.points[1],s),a=b[0],d=b[1],b=Lc(r.points[1],r.points[2],s),m=b[0],p=b[1],b=Lc(r.points[2],r.points[3],s),g=b[0],I=b[1];var w=dl(a,d,m,p);w===null&&(w=d);var L=dl(g,I,m,p);return L===null&&(L=g),new oe(a,w,L,I)}function du(r,s,a,d,m){var p=s.points[3],g=a.points[0];if(d===3||ks(p,g))return p;if(d===2){var I=-s.tangentAngle(1),b=-a.tangentAngle(0)+Math.PI,w=dl(p,Cs(p,I+Math.PI/2,100),g,Cs(g,I+Math.PI/2,100)),L=w?Mc(w,p):Mc(p,g)/2,G=Cs(p,I,2*L*he);return r.setXYAt(G[0],G[1],"o",r.length()-1),G=Cs(g,b,2*L*he),r.setTripleAt(g[0],g[1],g[0],g[1],G[0],G[1],r.length()),g}var x=ks(p,s.points[2])?s.points[0]:s.points[2],O=ks(g,a.points[1])?a.points[3]:a.points[1],P=dl(x,p,g,O);return P&&Mc(P,p)<m?(r.setTripleAt(P[0],P[1],P[0],P[1],P[0],P[1],r.length()),P):p}function cu(r,s){var a=r.intersections(s);return a.length&&nl(a[0][0],1)&&a.shift(),a.length?a[0]:null}function hu(r,s){var a=r.slice(),d=s.slice(),m=cu(r[r.length-1],s[0]);return m&&(a[r.length-1]=r[r.length-1].split(m[0])[0],d[0]=s[0].split(m[1])[1]),r.length>1&&s.length>1&&(m=cu(r[0],s[s.length-1]),m)?[[r[0].split(m[0])[0]],[s[s.length-1].split(m[1])[1]]]:[a,d]}function WE(r){for(var s,a=1;a<r.length;a+=1)s=hu(r[a-1],r[a]),r[a-1]=s[0],r[a]=s[1];return r.length>1&&(s=hu(r[r.length-1],r[0]),r[r.length-1]=s[0],r[0]=s[1]),r}function pu(r,s){var a=r.inflectionPoints(),d,m,p,g;if(a.length===0)return[ws(r,s)];if(a.length===1||nl(a[1],1))return p=r.split(a[0]),d=p[0],m=p[1],[ws(d,s),ws(m,s)];p=r.split(a[0]),d=p[0];var I=(a[1]-a[0])/(1-a[0]);return p=p[1].split(I),g=p[0],m=p[1],[ws(d,s),ws(g,s),ws(m,s)]}function wa(){}A([Tr],wa),wa.prototype.initModifierProperties=function(r,s){this.getValue=this.processKeys,this.amount=at.getProp(r,s.a,0,null,this),this.miterLimit=at.getProp(r,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},wa.prototype.processPath=function(r,s,a,d){var m=Me.newElement();m.c=r.c;var p=r.length();r.c||(p-=1);var g,I,b,w=[];for(g=0;g<p;g+=1)b=oe.shapeSegment(r,g),w.push(pu(b,s));if(!r.c)for(g=p-1;g>=0;g-=1)b=oe.shapeSegmentInverted(r,g),w.push(pu(b,s));w=WE(w);var L=null,G=null;for(g=0;g<w.length;g+=1){var x=w[g];for(G&&(L=du(m,G,x[0],a,d)),G=x[x.length-1],I=0;I<x.length;I+=1)b=x[I],L&&ks(b.points[0],L)?m.setXYAt(b.points[1][0],b.points[1][1],"o",m.length()-1):m.setTripleAt(b.points[0][0],b.points[0][1],b.points[1][0],b.points[1][1],b.points[0][0],b.points[0][1],m.length()),m.setTripleAt(b.points[3][0],b.points[3][1],b.points[3][0],b.points[3][1],b.points[2][0],b.points[2][1],m.length()),L=b.points[3]}return w.length&&du(m,G,w[0][0],a,d),m},wa.prototype.processShapes=function(r){var s,a,d=this.shapes.length,m,p,g=this.amount.v,I=this.miterLimit.v,b=this.lineJoin;if(g!==0){var w,L;for(a=0;a<d;a+=1){if(w=this.shapes[a],L=w.localShapeCollection,!(!w.shape._mdf&&!this._mdf&&!r))for(L.releaseShapes(),w.shape._mdf=!0,s=w.shape.paths.shapes,p=w.shape.paths._length,m=0;m<p;m+=1)L.addShape(this.processPath(s[m],g,b,I));w.shape.paths=w.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function mu(r){for(var s=r.fStyle?r.fStyle.split(" "):[],a="normal",d="normal",m=s.length,p,g=0;g<m;g+=1)switch(p=s[g].toLowerCase(),p){case"italic":d="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:d,weight:r.fWeight||a}}var Mo=function(){var r=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var d=127988,m=917631,p=917601,g=917626,I=65039,b=8205,w=127462,L=127487,G=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function x(C){var D=C.split(","),v,E=D.length,Y=[];for(v=0;v<E;v+=1)D[v]!=="sans-serif"&&D[v]!=="monospace"&&Y.push(D[v]);return Y.join(",")}function O(C,D){var v=y("span");v.setAttribute("aria-hidden",!0),v.style.fontFamily=D;var E=y("span");E.innerText="giItT1WQy@!-/#",v.style.position="absolute",v.style.left="-10000px",v.style.top="-10000px",v.style.fontSize="300px",v.style.fontVariant="normal",v.style.fontStyle="normal",v.style.fontWeight="normal",v.style.letterSpacing="0",v.appendChild(E),document.body.appendChild(v);var Y=E.offsetWidth;return E.style.fontFamily=x(C)+", "+D,{node:E,w:Y,parent:v}}function P(){var C,D=this.fonts.length,v,E,Y=D;for(C=0;C<D;C+=1)this.fonts[C].loaded?Y-=1:this.fonts[C].fOrigin==="n"||this.fonts[C].origin===0?this.fonts[C].loaded=!0:(v=this.fonts[C].monoCase.node,E=this.fonts[C].monoCase.w,v.offsetWidth!==E?(Y-=1,this.fonts[C].loaded=!0):(v=this.fonts[C].sansCase.node,E=this.fonts[C].sansCase.w,v.offsetWidth!==E&&(Y-=1,this.fonts[C].loaded=!0)),this.fonts[C].loaded&&(this.fonts[C].sansCase.parent.parentNode.removeChild(this.fonts[C].sansCase.parent),this.fonts[C].monoCase.parent.parentNode.removeChild(this.fonts[C].monoCase.parent)));Y!==0&&Date.now()-this.initTime<r?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function R(C,D){var v=document.body&&D?"svg":"canvas",E,Y=mu(C);if(v==="svg"){var V=At("text");V.style.fontSize="100px",V.setAttribute("font-family",C.fFamily),V.setAttribute("font-style",Y.style),V.setAttribute("font-weight",Y.weight),V.textContent="1",C.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",C.fClass)):V.style.fontFamily=C.fFamily,D.appendChild(V),E=V}else{var ct=new OffscreenCanvas(500,500).getContext("2d");ct.font=Y.style+" "+Y.weight+" 100px "+C.fFamily,E=ct}function gt(xt){return v==="svg"?(E.textContent=xt,E.getComputedTextLength()):E.measureText(xt).width}return{measureText:gt}}function U(C,D){if(!C){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=C.list;return}if(!document.body){this.isLoaded=!0,C.list.forEach(function(Qe){Qe.helper=R(Qe),Qe.cache={}}),this.fonts=C.list;return}var v=C.list,E,Y=v.length,V=Y;for(E=0;E<Y;E+=1){var ct=!0,gt,xt;if(v[E].loaded=!1,v[E].monoCase=O(v[E].fFamily,"monospace"),v[E].sansCase=O(v[E].fFamily,"sans-serif"),!v[E].fPath)v[E].loaded=!0,V-=1;else if(v[E].fOrigin==="p"||v[E].origin===3){if(gt=document.querySelectorAll('style[f-forigin="p"][f-family="'+v[E].fFamily+'"], style[f-origin="3"][f-family="'+v[E].fFamily+'"]'),gt.length>0&&(ct=!1),ct){var Dt=y("style");Dt.setAttribute("f-forigin",v[E].fOrigin),Dt.setAttribute("f-origin",v[E].origin),Dt.setAttribute("f-family",v[E].fFamily),Dt.type="text/css",Dt.innerText="@font-face {font-family: "+v[E].fFamily+"; font-style: normal; src: url('"+v[E].fPath+"');}",D.appendChild(Dt)}}else if(v[E].fOrigin==="g"||v[E].origin===1){for(gt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),xt=0;xt<gt.length;xt+=1)gt[xt].href.indexOf(v[E].fPath)!==-1&&(ct=!1);if(ct){var Pt=y("link");Pt.setAttribute("f-forigin",v[E].fOrigin),Pt.setAttribute("f-origin",v[E].origin),Pt.type="text/css",Pt.rel="stylesheet",Pt.href=v[E].fPath,document.body.appendChild(Pt)}}else if(v[E].fOrigin==="t"||v[E].origin===2){for(gt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),xt=0;xt<gt.length;xt+=1)v[E].fPath===gt[xt].src&&(ct=!1);if(ct){var me=y("link");me.setAttribute("f-forigin",v[E].fOrigin),me.setAttribute("f-origin",v[E].origin),me.setAttribute("rel","stylesheet"),me.setAttribute("href",v[E].fPath),D.appendChild(me)}}v[E].helper=R(v[E],D),v[E].cache={},this.fonts.push(v[E])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function M(C){if(C){this.chars||(this.chars=[]);var D,v=C.length,E,Y=this.chars.length,V;for(D=0;D<v;D+=1){for(E=0,V=!1;E<Y;)this.chars[E].style===C[D].style&&this.chars[E].fFamily===C[D].fFamily&&this.chars[E].ch===C[D].ch&&(V=!0),E+=1;V||(this.chars.push(C[D]),Y+=1)}}}function k(C,D,v){for(var E=0,Y=this.chars.length;E<Y;){if(this.chars[E].ch===C&&this.chars[E].style===D&&this.chars[E].fFamily===v)return this.chars[E];E+=1}return(typeof C=="string"&&C.charCodeAt(0)!==13||!C)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",C,D,v)),s}function T(C,D,v){var E=this.getFontByName(D),Y=C;if(!E.cache[Y]){var V=E.helper;if(C===" "){var ct=V.measureText("|"+C+"|"),gt=V.measureText("||");E.cache[Y]=(ct-gt)/100}else E.cache[Y]=V.measureText(C)/100}return E.cache[Y]*v}function _(C){for(var D=0,v=this.fonts.length;D<v;){if(this.fonts[D].fName===C)return this.fonts[D];D+=1}return this.fonts[0]}function N(C){var D=0,v=C.charCodeAt(0);if(v>=55296&&v<=56319){var E=C.charCodeAt(1);E>=56320&&E<=57343&&(D=(v-55296)*1024+E-56320+65536)}return D}function $(C,D){var v=C.toString(16)+D.toString(16);return G.indexOf(v)!==-1}function H(C){return C===b}function j(C){return C===I}function it(C){var D=N(C);return D>=w&&D<=L}function Tt(C){return it(C.substr(0,2))&&it(C.substr(2,2))}function ut(C){return a.indexOf(C)!==-1}function st(C,D){var v=N(C.substr(D,2));if(v!==d)return!1;var E=0;for(D+=2;E<5;){if(v=N(C.substr(D,2)),v<p||v>g)return!1;E+=1,D+=2}return N(C.substr(D,2))===m}function St(){this.isLoaded=!0}var ht=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ht.isModifier=$,ht.isZeroWidthJoiner=H,ht.isFlagEmoji=Tt,ht.isRegionalCode=it,ht.isCombinedCharacter=ut,ht.isRegionalFlag=st,ht.isVariationSelector=j,ht.BLACK_FLAG_CODE_POINT=d;var rt={addChars:M,addFonts:U,getCharData:k,getFontByName:_,measureText:T,checkLoadedFonts:P,setIsLoaded:St};return ht.prototype=rt,ht}();function uu(r){this.animationData=r}uu.prototype.getProp=function(r){return this.animationData.slots&&this.animationData.slots[r.sid]?Object.assign(r,this.animationData.slots[r.sid].p):r};function YE(r){return new uu(r)}function cl(){}cl.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,a=this.renderableComponents.length;for(s=0;s<a;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 Oc=function(){var r={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return r[s]||""}}();function jE(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function qE(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function XE(r,s,a){this.p=at.getProp(s,r.v,1,0,a)}function ZE(r,s,a){this.p=at.getProp(s,r.v,1,0,a)}function QE(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function JE(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function tT(r,s,a){this.p=at.getProp(s,r.v,0,0,a)}function eT(){this.p={}}function fu(r,s){var a=r.ef||[];this.effectElements=[];var d,m=a.length,p;for(d=0;d<m;d+=1)p=new Na(a[d],s),this.effectElements.push(p)}function Na(r,s){this.init(r,s)}A([Ie],Na),Na.prototype.getValue=Na.prototype.iterateDynamicProperties,Na.prototype.init=function(r,s){this.data=r,this.effectElements=[],this.initDynamicPropertyContainer(s);var a,d=this.data.ef.length,m,p=this.data.ef;for(a=0;a<d;a+=1){switch(m=null,p[a].ty){case 0:m=new jE(p[a],s,this);break;case 1:m=new qE(p[a],s,this);break;case 2:m=new XE(p[a],s,this);break;case 3:m=new ZE(p[a],s,this);break;case 4:case 7:m=new tT(p[a],s,this);break;case 10:m=new QE(p[a],s,this);break;case 11:m=new JE(p[a],s,this);break;case 5:m=new fu(p[a],s,this);break;default:m=new eT(p[a],s,this);break}m&&this.effectElements.push(m)}};function Wi(){}Wi.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,a=this.data.masksProperties.length;s<a;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=Bm();if(s){var a=s("layer"),d=s("effects"),m=s("shape"),p=s("text"),g=s("comp");this.layerInterface=a(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var I=d.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(I),this.data.ty===0||this.data.xt?this.compInterface=g(this):this.data.ty===4?(this.layerInterface.shapeInterface=m(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=p(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=Oc(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=s},initBaseData:function(s,a,d){this.globalData=a,this.comp=d,this.data=s,this.layerId=Xe(),this.data.sr||(this.data.sr=1),this.effectsManager=new fu(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Yi(){}Yi.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,a){var d,m=this.dynamicProperties.length;for(d=0;d<m;d+=1)(a||this._isParent&&this.dynamicProperties[d].propType==="transform")&&(this.dynamicProperties[d].getValue(),this.dynamicProperties[d]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function ji(r,s,a){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(r,s,a)}ji.prototype.prepareFrame=function(){},A([cl,Wi,Yi],ji),ji.prototype.getBaseElement=function(){return null},ji.prototype.renderFrame=function(){},ji.prototype.destroy=function(){},ji.prototype.initExpressions=function(){var r=Bm();if(r){var s=r("footage");this.layerInterface=s(this)}},ji.prototype.getFootageData=function(){return this.footageData};function Ze(r,s,a){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(r.refId),this.initBaseData(r,s,a),this._isPlaying=!1,this._canPlay=!1;var d=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(d),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=r.tm?at.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,r.au&&r.au.lv?r.au.lv:{k:[100]},1,.01,this)}Ze.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 a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},A([cl,Wi,Yi],Ze),Ze.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))},Ze.prototype.show=function(){},Ze.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ze.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ze.prototype.resume=function(){this._canPlay=!0},Ze.prototype.setRate=function(r){this.audio.rate(r)},Ze.prototype.volume=function(r){this._volumeMultiplier=r,this._previousVolume=r*this._volume,this.audio.volume(this._previousVolume)},Ze.prototype.getBaseElement=function(){return null},Ze.prototype.destroy=function(){},Ze.prototype.sourceRectAtTime=function(){},Ze.prototype.initExpressions=function(){};function Oe(){}Oe.prototype.checkLayers=function(r){var s,a=this.layers.length,d;for(this.completeLayers=!0,s=a-1;s>=0;s-=1)this.elements[s]||(d=this.layers[s],d.ip-d.st<=r-this.layers[s].st&&d.op-d.st>r-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},Oe.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)}},Oe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Oe.prototype.createAudio=function(r){return new Ze(r,this.globalData,this)},Oe.prototype.createFootage=function(r){return new ji(r,this.globalData,this)},Oe.prototype.buildAllItems=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.buildItem(r);this.checkPendingElements()},Oe.prototype.includeLayers=function(r){this.completeLayers=!1;var s,a=r.length,d,m=this.layers.length;for(s=0;s<a;s+=1)for(d=0;d<m;){if(this.layers[d].id===r[s].id){this.layers[d]=r[s];break}d+=1}},Oe.prototype.setProjectInterface=function(r){this.globalData.projectInterface=r},Oe.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Oe.prototype.buildElementParenting=function(r,s,a){for(var d=this.elements,m=this.layers,p=0,g=m.length;p<g;)m[p].ind==s&&(!d[p]||d[p]===!0?(this.buildItem(p),this.addPendingElement(r)):(a.push(d[p]),d[p].setAsParent(),m[p].parent!==void 0?this.buildElementParenting(r,m[p].parent,a):r.setHierarchy(a))),p+=1},Oe.prototype.addPendingElement=function(r){this.pendingElements.push(r)},Oe.prototype.searchExtraCompositions=function(r){var s,a=r.length;for(s=0;s<a;s+=1)if(r[s].xt){var d=this.createComp(r[s]);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}},Oe.prototype.getElementById=function(r){var s,a=this.elements.length;for(s=0;s<a;s+=1)if(this.elements[s].data.ind===r)return this.elements[s];return null},Oe.prototype.getElementByPath=function(r){var s=r.shift(),a;if(typeof s=="number")a=this.elements[s];else{var d,m=this.elements.length;for(d=0;d<m;d+=1)if(this.elements[d].data.nm===s){a=this.elements[d];break}}return r.length===0?a:a.getElementByPath(r)},Oe.prototype.setupGlobalData=function(r,s){this.globalData.fontManager=new Mo,this.globalData.slotManager=YE(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 rT={TRANSFORM_EFFECT:"transformEFfect"};function Ns(){}Ns.prototype={initTransform:function(){var s=new Le;this.finalTransform={mProp:this.data.ks?kc.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,a=this.finalTransform.mat,d=0,m=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;d<m;){if(this.hierarchy[d].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}d+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,a.cloneFromProps(s),d=0;d<m;d+=1)a.multiply(this.hierarchy[d].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<a;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var d=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(d),s=1;s<a;s+=1){var m=this.localTransforms[s].matrix;d.multiply(m)}d.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var p=this.finalTransform.localOpacity;for(s=0;s<a;s+=1)p*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=p}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(rT.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Le;var a=0,d=s.length;for(a=0;a<d;a+=1)this.localTransforms.push(s[a])}}},globalToLocal:function(s){var a=[];a.push(this.finalTransform);for(var d=!0,m=this.comp;d;)m.finalTransform?(m.data.hasMask&&a.splice(0,0,m.finalTransform),m=m.comp):d=!1;var p,g=a.length,I;for(p=0;p<g;p+=1)I=a[p].mat.applyToPointArray(0,0,0),s=[s[0]-I[0],s[1]-I[1],0];return s},mHelper:new Le};function Lo(r,s,a){this.data=r,this.element=s,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var d=this.globalData.defs,m,p=this.masksProperties?this.masksProperties.length:0;this.viewData=et(p),this.solidPath="";var g,I=this.masksProperties,b=0,w=[],L,G,x=Xe(),O,P,R,U,M="clipPath",k="clip-path";for(m=0;m<p;m+=1)if((I[m].mode!=="a"&&I[m].mode!=="n"||I[m].inv||I[m].o.k!==100||I[m].o.x)&&(M="mask",k="mask"),(I[m].mode==="s"||I[m].mode==="i")&&b===0?(O=At("rect"),O.setAttribute("fill","#ffffff"),O.setAttribute("width",this.element.comp.data.w||0),O.setAttribute("height",this.element.comp.data.h||0),w.push(O)):O=null,g=At("path"),I[m].mode==="n")this.viewData[m]={op:at.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),elem:g,lastPath:""},d.appendChild(g);else{b+=1,g.setAttribute("fill",I[m].mode==="s"?"#000000":"#ffffff"),g.setAttribute("clip-rule","nonzero");var T;if(I[m].x.k!==0?(M="mask",k="mask",U=at.getProp(this.element,I[m].x,0,null,this.element),T=Xe(),P=At("filter"),P.setAttribute("id",T),R=At("feMorphology"),R.setAttribute("operator","erode"),R.setAttribute("in","SourceGraphic"),R.setAttribute("radius","0"),P.appendChild(R),d.appendChild(P),g.setAttribute("stroke",I[m].mode==="s"?"#000000":"#ffffff")):(R=null,U=null),this.storedData[m]={elem:g,x:U,expan:R,lastPath:"",lastOperator:"",filterId:T,lastRadius:0},I[m].mode==="i"){G=w.length;var _=At("g");for(L=0;L<G;L+=1)_.appendChild(w[L]);var N=At("mask");N.setAttribute("mask-type","alpha"),N.setAttribute("id",x+"_"+b),N.appendChild(g),d.appendChild(N),_.setAttribute("mask","url("+f()+"#"+x+"_"+b+")"),w.length=0,w.push(_)}else w.push(g);I[m].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[m]={elem:g,lastPath:"",op:at.getProp(this.element,I[m].o,0,.01,this.element),prop:ol.getShapeProp(this.element,I[m],3),invRect:O},this.viewData[m].prop.k||this.drawPath(I[m],this.viewData[m].prop.v,this.viewData[m])}for(this.maskElement=At(M),p=w.length,m=0;m<p;m+=1)this.maskElement.appendChild(w[m]);b>0&&(this.maskElement.setAttribute("id",x),this.element.maskedElement.setAttribute(k,"url("+f()+"#"+x+")"),d.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Lo.prototype.getMaskProperty=function(r){return this.viewData[r].prop},Lo.prototype.renderFrame=function(r){var s=this.element.finalTransform.mat,a,d=this.masksProperties.length;for(a=0;a<d;a+=1)if((this.viewData[a].prop._mdf||r)&&this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]),(this.viewData[a].op._mdf||r)&&this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v),this.masksProperties[a].mode!=="n"&&(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||r)&&this.viewData[a].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[a].x&&(this.storedData[a].x._mdf||r))){var m=this.storedData[a].expan;this.storedData[a].x.v<0?(this.storedData[a].lastOperator!=="erode"&&(this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+f()+"#"+this.storedData[a].filterId+")")),m.setAttribute("radius",-this.storedData[a].x.v)):(this.storedData[a].lastOperator!=="dilate"&&(this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null)),this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2))}},Lo.prototype.getMaskelement=function(){return this.maskElement},Lo.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},Lo.prototype.drawPath=function(r,s,a){var d=" M"+s.v[0][0]+","+s.v[0][1],m,p;for(p=s._length,m=1;m<p;m+=1)d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[m][0]+","+s.i[m][1]+" "+s.v[m][0]+","+s.v[m][1];if(s.c&&p>1&&(d+=" C"+s.o[m-1][0]+","+s.o[m-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),a.lastPath!==d){var g="";a.elem&&(s.c&&(g=r.inv?this.solidPath+d:d),a.elem.setAttribute("d",g)),a.lastPath=d}},Lo.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ma=function(){var r={};r.createFilter=s,r.createAlphaToLuminanceFilter=a;function s(d,m){var p=At("filter");return p.setAttribute("id",d),m!==!0&&(p.setAttribute("filterUnits","objectBoundingBox"),p.setAttribute("x","0%"),p.setAttribute("y","0%"),p.setAttribute("width","100%"),p.setAttribute("height","100%")),p}function a(){var d=At("feColorMatrix");return d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),d}return r}(),vu=function(){var r={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(r.maskType=!1),/firefox/i.test(navigator.userAgent)&&(r.svgLumaHidden=!1),r}(),hl={},gu="filter_result_";function Rc(r){var s,a="SourceGraphic",d=r.data.ef?r.data.ef.length:0,m=Xe(),p=Ma.createFilter(m,!0),g=0;this.filters=[];var I;for(s=0;s<d;s+=1){I=null;var b=r.data.ef[s].ty;if(hl[b]){var w=hl[b].effect;I=new w(p,r.effectsManager.effectElements[s],r,gu+g,a),a=gu+g,hl[b].countsAsEffect&&(g+=1)}I&&this.filters.push(I)}g&&(r.globalData.defs.appendChild(p),r.layerElement.setAttribute("filter","url("+f()+"#"+m+")")),this.filters.length&&r.addRenderableComponent(this)}Rc.prototype.renderFrame=function(r){var s,a=this.filters.length;for(s=0;s<a;s+=1)this.filters[s].renderFrame(r)},Rc.prototype.getEffects=function(r){var s,a=this.filters.length,d=[];for(s=0;s<a;s+=1)this.filters[s].type===r&&d.push(this.filters[s]);return d};function TI(r,s,a){hl[r]={effect:s,countsAsEffect:a}}function La(){}La.prototype={initRendererElement:function(){this.layerElement=At("g")},createContainerElements:function(){this.matteElement=At("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var a=At("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),s=a,this.globalData.defs.appendChild(a)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var d=At("clipPath"),m=At("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=Xe();if(d.setAttribute("id",p),d.appendChild(m),this.globalData.defs.appendChild(d),this.checkMasks()){var g=At("g");g.setAttribute("clip-path","url("+f()+"#"+p+")"),g.appendChild(this.layerElement),this.transformedElement=g,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+f()+"#"+p+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Lo(this.data,this,this.globalData),this.renderableEffectsManager=new Rc(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var a=this.layerId+"_"+s,d,m,p,g;if(s===1||s===3){var I=At("mask");I.setAttribute("id",a),I.setAttribute("mask-type",s===3?"luminance":"alpha"),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),I.appendChild(p),this.globalData.defs.appendChild(I),!vu.maskType&&s===1&&(I.setAttribute("mask-type","luminance"),d=Xe(),m=Ma.createFilter(d),this.globalData.defs.appendChild(m),m.appendChild(Ma.createAlphaToLuminanceFilter()),g=At("g"),g.appendChild(p),I.appendChild(g),g.setAttribute("filter","url("+f()+"#"+d+")"))}else if(s===2){var b=At("mask");b.setAttribute("id",a),b.setAttribute("mask-type","alpha");var w=At("g");b.appendChild(w),d=Xe(),m=Ma.createFilter(d);var L=At("feComponentTransfer");L.setAttribute("in","SourceGraphic"),m.appendChild(L);var G=At("feFuncA");G.setAttribute("type","table"),G.setAttribute("tableValues","1.0 0.0"),L.appendChild(G),this.globalData.defs.appendChild(m);var x=At("rect");x.setAttribute("width",this.comp.data.w),x.setAttribute("height",this.comp.data.h),x.setAttribute("x","0"),x.setAttribute("y","0"),x.setAttribute("fill","#ffffff"),x.setAttribute("opacity","0"),w.setAttribute("filter","url("+f()+"#"+d+")"),w.appendChild(x),p=At("use"),p.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(p),vu.maskType||(b.setAttribute("mask-type","luminance"),m.appendChild(Ma.createAlphaToLuminanceFilter()),g=At("g"),w.appendChild(x),g.appendChild(this.layerElement),w.appendChild(g)),this.globalData.defs.appendChild(b)}this.matteMasks[s]=a}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+f()+"#"+s+")")}};function Ms(){}Ms.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Oa(){}(function(){var r={initElement:function(a,d,m){this.initFrame(),this.initBaseData(a,d,m),this.initTransform(a,d,m),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.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(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};A([cl,W(r)],Oa)})();function Ra(r,s,a){this.assetData=s.getAssetData(r.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(r,s,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}A([Wi,Ns,La,Ms,Yi,Oa],Ra),Ra.prototype.createContent=function(){var r=this.globalData.getAssetsPath(this.assetData);this.innerElem=At("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this.layerElement.appendChild(this.innerElem)},Ra.prototype.sourceRectAtTime=function(){return this.sourceRect};function iT(r,s){this.elem=r,this.pos=s}function bu(){}bu.prototype={addShapeToModifiers:function(s){var a,d=this.shapeModifiers.length;for(a=0;a<d;a+=1)this.shapeModifiers[a].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var a=0,d=this.shapeModifiers.length;a<d;)if(this.shapeModifiers[a].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,a=this.shapes.length;for(s=0;s<a;s+=1)this.shapes[s].sh.reset();a=this.shapeModifiers.length;var d;for(s=a-1;s>=0&&(d=this.shapeModifiers[s].processShapes(this._isFirstFrame),!d);s-=1);}},searchProcessedElement:function(s){for(var a=this.processedElements,d=0,m=a.length;d<m;){if(a[d].elem===s)return a[d].pos;d+=1}return 0},addProcessedElement:function(s,a){for(var d=this.processedElements,m=d.length;m;)if(m-=1,d[m].elem===s){d[m].pos=a;return}d.push(new iT(s,a))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var yu={1:"butt",2:"round",3:"square"},Eu={1:"miter",2:"round",3:"bevel"};function Tu(r,s,a){this.caches=[],this.styles=[],this.transformers=r,this.lStr="",this.sh=a,this.lvl=s,this._isAnimated=!!a.k;for(var d=0,m=r.length;d<m;){if(r[d].mProps.dynamicProperties.length){this._isAnimated=!0;break}d+=1}}Tu.prototype.setAsAnimated=function(){this._isAnimated=!0};function xu(r,s){this.data=r,this.type=r.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=r.hd===!0,this.pElem=At("path"),this.msElem=null}xu.prototype.reset=function(){this.d="",this._mdf=!1};function pl(r,s,a,d){this.elem=r,this.frameId=-1,this.dataProps=et(s.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=Z("float32",s.length?s.length-1:0),this.dashoffset=Z("float32",1),this.initDynamicPropertyContainer(d);var m,p=s.length||0,g;for(m=0;m<p;m+=1)g=at.getProp(r,s[m].v,0,0,this),this.k=g.k||this.k,this.dataProps[m]={n:s[m].n,p:g};this.k||this.getValue(!0),this._isAnimated=this.k}pl.prototype.getValue=function(r){if(!(this.elem.globalData.frameId===this.frameId&&!r)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||r,this._mdf)){var s=0,a=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<a;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},A([Ie],pl);function Au(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(r,s.o,0,.01,this),this.w=at.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.c=at.getProp(r,s.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}A([Ie],Au);function Su(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(r,s.o,0,.01,this),this.c=at.getProp(r,s.c,1,255,this),this.style=a}A([Ie],Su);function Iu(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.style=a}A([Ie],Iu);function Da(r,s,a){this.data=s,this.c=Z("uint8c",s.p*4);var d=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=Z("float32",d),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=d,this.initDynamicPropertyContainer(a),this.prop=at.getProp(r,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Da.prototype.comparePoints=function(r,s){for(var a=0,d=this.o.length/2,m;a<d;){if(m=Math.abs(r[a*4]-r[s*4+a*2]),m>.01)return!1;a+=1}return!0},Da.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},Da.prototype.getValue=function(r){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||r){var s,a=this.data.p*4,d,m;for(s=0;s<a;s+=1)d=s%4===0?100:255,m=Math.round(this.prop.v[s]*d),this.c[s]!==m&&(this.c[s]=m,this._cmdf=!r);if(this.o.length)for(a=this.prop.v.length,s=this.data.p*4;s<a;s+=1)d=s%2===0?100:1,m=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==m&&(this.o[s-this.data.p*4]=m,this._omdf=!r);this._mdf=!r}},A([Ie],Da);function Ls(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.initGradientData(r,s,a)}Ls.prototype.initGradientData=function(r,s,a){this.o=at.getProp(r,s.o,0,.01,this),this.s=at.getProp(r,s.s,1,null,this),this.e=at.getProp(r,s.e,1,null,this),this.h=at.getProp(r,s.h||{k:0},0,.01,this),this.a=at.getProp(r,s.a||{k:0},0,Nt,this),this.g=new Da(r,s.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,s),this.setGradientOpacity(s,a),this._isAnimated=!!this._isAnimated},Ls.prototype.setGradientData=function(r,s){var a=Xe(),d=At(s.t===1?"linearGradient":"radialGradient");d.setAttribute("id",a),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse");var m=[],p,g,I;for(I=s.g.p*4,g=0;g<I;g+=4)p=At("stop"),d.appendChild(p),m.push(p);r.setAttribute(s.ty==="gf"?"fill":"stroke","url("+f()+"#"+a+")"),this.gf=d,this.cst=m},Ls.prototype.setGradientOpacity=function(r,s){if(this.g._hasOpacity&&!this.g._collapsable){var a,d,m,p=At("mask"),g=At("path");p.appendChild(g);var I=Xe(),b=Xe();p.setAttribute("id",b);var w=At(r.t===1?"linearGradient":"radialGradient");w.setAttribute("id",I),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),m=r.g.k.k[0].s?r.g.k.k[0].s.length:r.g.k.k.length;var L=this.stops;for(d=r.g.p*4;d<m;d+=2)a=At("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(a),L.push(a);g.setAttribute(r.ty==="gf"?"fill":"stroke","url("+f()+"#"+I+")"),r.ty==="gs"&&(g.setAttribute("stroke-linecap",yu[r.lc||2]),g.setAttribute("stroke-linejoin",Eu[r.lj||2]),r.lj===1&&g.setAttribute("stroke-miterlimit",r.ml)),this.of=w,this.ms=p,this.ost=L,this.maskId=b,s.msElem=g}},A([Ie],Ls);function _u(r,s,a){this.initDynamicPropertyContainer(r),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(r,s.w,0,null,this),this.d=new pl(r,s.d||{},"svg",this),this.initGradientData(r,s,a),this._isAnimated=!!this._isAnimated}A([Ls,Ie],_u);function oT(){this.it=[],this.prevViewData=[],this.gr=At("g")}function sT(r,s,a){this.transform={mProps:r,op:s,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Cu=function(s,a,d,m){if(a===0)return"";var p=s.o,g=s.i,I=s.v,b,w=" M"+m.applyToPointStringified(I[0][0],I[0][1]);for(b=1;b<a;b+=1)w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[b][0],g[b][1])+" "+m.applyToPointStringified(I[b][0],I[b][1]);return d&&a&&(w+=" C"+m.applyToPointStringified(p[b-1][0],p[b-1][1])+" "+m.applyToPointStringified(g[0][0],g[0][1])+" "+m.applyToPointStringified(I[0][0],I[0][1]),w+="z"),w},aT=function(){var r=new Le,s=new Le,a={createRenderFunction:d};function d(G){switch(G.ty){case"fl":return I;case"gf":return w;case"gs":return b;case"st":return L;case"sh":case"el":case"rc":case"sr":return g;case"tr":return m;case"no":return p;default:return null}}function m(G,x,O){(O||x.transform.op._mdf)&&x.transform.container.setAttribute("opacity",x.transform.op.v),(O||x.transform.mProps._mdf)&&x.transform.container.setAttribute("transform",x.transform.mProps.v.to2dCSS())}function p(){}function g(G,x,O){var P,R,U,M,k,T,_=x.styles.length,N=x.lvl,$,H,j,it;for(T=0;T<_;T+=1){if(M=x.sh._mdf||O,x.styles[T].lvl<N){for(H=s.reset(),j=N-x.styles[T].lvl,it=x.transformers.length-1;!M&&j>0;)M=x.transformers[it].mProps._mdf||M,j-=1,it-=1;if(M)for(j=N-x.styles[T].lvl,it=x.transformers.length-1;j>0;)H.multiply(x.transformers[it].mProps.v),j-=1,it-=1}else H=r;if($=x.sh.paths,R=$._length,M){for(U="",P=0;P<R;P+=1)k=$.shapes[P],k&&k._length&&(U+=Cu(k,k._length,k.c,H));x.caches[T]=U}else U=x.caches[T];x.styles[T].d+=G.hd===!0?"":U,x.styles[T]._mdf=M||x.styles[T]._mdf}}function I(G,x,O){var P=x.style;(x.c._mdf||O)&&P.pElem.setAttribute("fill","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("fill-opacity",x.o.v)}function b(G,x,O){w(G,x,O),L(G,x,O)}function w(G,x,O){var P=x.gf,R=x.g._hasOpacity,U=x.s.v,M=x.e.v;if(x.o._mdf||O){var k=G.ty==="gf"?"fill-opacity":"stroke-opacity";x.style.pElem.setAttribute(k,x.o.v)}if(x.s._mdf||O){var T=G.t===1?"x1":"cx",_=T==="x1"?"y1":"cy";P.setAttribute(T,U[0]),P.setAttribute(_,U[1]),R&&!x.g._collapsable&&(x.of.setAttribute(T,U[0]),x.of.setAttribute(_,U[1]))}var N,$,H,j;if(x.g._cmdf||O){N=x.cst;var it=x.g.c;for(H=N.length,$=0;$<H;$+=1)j=N[$],j.setAttribute("offset",it[$*4]+"%"),j.setAttribute("stop-color","rgb("+it[$*4+1]+","+it[$*4+2]+","+it[$*4+3]+")")}if(R&&(x.g._omdf||O)){var Tt=x.g.o;for(x.g._collapsable?N=x.cst:N=x.ost,H=N.length,$=0;$<H;$+=1)j=N[$],x.g._collapsable||j.setAttribute("offset",Tt[$*2]+"%"),j.setAttribute("stop-opacity",Tt[$*2+1])}if(G.t===1)(x.e._mdf||O)&&(P.setAttribute("x2",M[0]),P.setAttribute("y2",M[1]),R&&!x.g._collapsable&&(x.of.setAttribute("x2",M[0]),x.of.setAttribute("y2",M[1])));else{var ut;if((x.s._mdf||x.e._mdf||O)&&(ut=Math.sqrt(Math.pow(U[0]-M[0],2)+Math.pow(U[1]-M[1],2)),P.setAttribute("r",ut),R&&!x.g._collapsable&&x.of.setAttribute("r",ut)),x.e._mdf||x.h._mdf||x.a._mdf||O){ut||(ut=Math.sqrt(Math.pow(U[0]-M[0],2)+Math.pow(U[1]-M[1],2)));var st=Math.atan2(M[1]-U[1],M[0]-U[0]),St=x.h.v;St>=1?St=.99:St<=-1&&(St=-.99);var ht=ut*St,rt=Math.cos(st+x.a.v)*ht+U[0],C=Math.sin(st+x.a.v)*ht+U[1];P.setAttribute("fx",rt),P.setAttribute("fy",C),R&&!x.g._collapsable&&(x.of.setAttribute("fx",rt),x.of.setAttribute("fy",C))}}}function L(G,x,O){var P=x.style,R=x.d;R&&(R._mdf||O)&&R.dashStr&&(P.pElem.setAttribute("stroke-dasharray",R.dashStr),P.pElem.setAttribute("stroke-dashoffset",R.dashoffset[0])),x.c&&(x.c._mdf||O)&&P.pElem.setAttribute("stroke","rgb("+ae(x.c.v[0])+","+ae(x.c.v[1])+","+ae(x.c.v[2])+")"),(x.o._mdf||O)&&P.pElem.setAttribute("stroke-opacity",x.o.v),(x.w._mdf||O)&&(P.pElem.setAttribute("stroke-width",x.w.v),P.msElem&&P.msElem.setAttribute("stroke-width",x.w.v))}return a}();function ne(r,s,a){this.shapes=[],this.shapesData=r.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(r,s,a),this.prevViewData=[]}A([Wi,Ns,La,bu,Ms,Yi,Oa],ne),ne.prototype.initSecondaryElement=function(){},ne.prototype.identityMatrix=new Le,ne.prototype.buildExpressionInterface=function(){},ne.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},ne.prototype.filterUniqueShapes=function(){var r,s=this.shapes.length,a,d,m=this.stylesList.length,p,g=[],I=!1;for(d=0;d<m;d+=1){for(p=this.stylesList[d],I=!1,g.length=0,r=0;r<s;r+=1)a=this.shapes[r],a.styles.indexOf(p)!==-1&&(g.push(a),I=a._isAnimated||I);g.length>1&&I&&this.setShapesAsAnimated(g)}},ne.prototype.setShapesAsAnimated=function(r){var s,a=r.length;for(s=0;s<a;s+=1)r[s].setAsAnimated()},ne.prototype.createStyleElement=function(r,s){var a,d=new xu(r,s),m=d.pElem;if(r.ty==="st")a=new Au(this,r,d);else if(r.ty==="fl")a=new Su(this,r,d);else if(r.ty==="gf"||r.ty==="gs"){var p=r.ty==="gf"?Ls:_u;a=new p(this,r,d),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),m.setAttribute("mask","url("+f()+"#"+a.maskId+")"))}else r.ty==="no"&&(a=new Iu(this,r,d));return(r.ty==="st"||r.ty==="gs")&&(m.setAttribute("stroke-linecap",yu[r.lc||2]),m.setAttribute("stroke-linejoin",Eu[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"]=Oc(r.bm)),this.stylesList.push(d),this.addToAnimatedContents(r,a),a},ne.prototype.createGroupElement=function(r){var s=new oT;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"]=Oc(r.bm)),s},ne.prototype.createTransformElement=function(r,s){var a=kc.getTransformProperty(this,r,this),d=new sT(a,a.o,s);return this.addToAnimatedContents(r,d),d},ne.prototype.createShapeElement=function(r,s,a){var d=4;r.ty==="rc"?d=5:r.ty==="el"?d=6:r.ty==="sr"&&(d=7);var m=ol.getShapeProp(this,r,d,this),p=new Tu(s,a,m);return this.shapes.push(p),this.addShapeToModifiers(p),this.addToAnimatedContents(r,p),p},ne.prototype.addToAnimatedContents=function(r,s){for(var a=0,d=this.animatedContents.length;a<d;){if(this.animatedContents[a].element===s)return;a+=1}this.animatedContents.push({fn:aT.createRenderFunction(r),element:s,data:r})},ne.prototype.setElementStyles=function(r){var s=r.styles,a,d=this.stylesList.length;for(a=0;a<d;a+=1)this.stylesList[a].closed||s.push(this.stylesList[a])},ne.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()},ne.prototype.searchShapes=function(r,s,a,d,m,p,g){var I=[].concat(p),b,w=r.length-1,L,G,x=[],O=[],P,R,U;for(b=w;b>=0;b-=1){if(U=this.searchProcessedElement(r[b]),U?s[b]=a[U-1]:r[b]._render=g,r[b].ty==="fl"||r[b].ty==="st"||r[b].ty==="gf"||r[b].ty==="gs"||r[b].ty==="no")U?s[b].style.closed=!1:s[b]=this.createStyleElement(r[b],m),r[b]._render&&s[b].style.pElem.parentNode!==d&&d.appendChild(s[b].style.pElem),x.push(s[b].style);else if(r[b].ty==="gr"){if(!U)s[b]=this.createGroupElement(r[b]);else for(G=s[b].it.length,L=0;L<G;L+=1)s[b].prevViewData[L]=s[b].it[L];this.searchShapes(r[b].it,s[b].it,s[b].prevViewData,s[b].gr,m+1,I,g),r[b]._render&&s[b].gr.parentNode!==d&&d.appendChild(s[b].gr)}else r[b].ty==="tr"?(U||(s[b]=this.createTransformElement(r[b],d)),P=s[b].transform,I.push(P)):r[b].ty==="sh"||r[b].ty==="rc"||r[b].ty==="el"||r[b].ty==="sr"?(U||(s[b]=this.createShapeElement(r[b],I,m)),this.setElementStyles(s[b])):r[b].ty==="tm"||r[b].ty==="rd"||r[b].ty==="ms"||r[b].ty==="pb"||r[b].ty==="zz"||r[b].ty==="op"?(U?(R=s[b],R.closed=!1):(R=Gi.getModifier(r[b].ty),R.init(this,r[b]),s[b]=R,this.shapeModifiers.push(R)),O.push(R)):r[b].ty==="rp"&&(U?(R=s[b],R.closed=!0):(R=Gi.getModifier(r[b].ty),s[b]=R,R.init(this,r,b,s),this.shapeModifiers.push(R),g=!1),O.push(R));this.addProcessedElement(r[b],b+1)}for(w=x.length,b=0;b<w;b+=1)x[b].closed=!0;for(w=O.length,b=0;b<w;b+=1)O[b].closed=!0},ne.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"))},ne.prototype.renderShape=function(){var r,s=this.animatedContents.length,a;for(r=0;r<s;r+=1)a=this.animatedContents[r],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0&&a.fn(a.data,a.element,this._isFirstFrame)},ne.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Dc(r,s,a,d,m,p){this.o=r,this.sw=s,this.sc=a,this.fc=d,this.m=m,this.p=p,this._mdf={o:!0,sw:!!s,sc:!!a,fc:!!d,m:!0,p:!0}}Dc.prototype.update=function(r,s,a,d,m,p){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var g=!1;return this.o!==r&&(this.o=r,this._mdf.o=!0,g=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,g=!0),this.sc!==a&&(this.sc=a,this._mdf.sc=!0,g=!0),this.fc!==d&&(this.fc=d,this._mdf.fc=!0,g=!0),this.m!==m&&(this.m=m,this._mdf.m=!0,g=!0),p.length&&(this.p[0]!==p[0]||this.p[1]!==p[1]||this.p[4]!==p[4]||this.p[5]!==p[5]||this.p[12]!==p[12]||this.p[13]!==p[13])&&(this.p=p,this._mdf.p=!0,g=!0),g};function ze(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)}ze.prototype.defaultBoxWidth=[0,0],ze.prototype.copyData=function(r,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a]);return r},ze.prototype.setCurrentData=function(r){r.__complete||this.completeTextData(r),this.currentData=r,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},ze.prototype.searchProperty=function(){return this.searchKeyframes()},ze.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ze.prototype.addEffect=function(r){this.effectsSequence.push(r),this.elem.addDynamicProperty(this)},ze.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,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var d,m=this.effectsSequence.length,p=r||this.data.d.k[this.keysIndex].s;for(d=0;d<m;d+=1)a!==this.keysIndex?p=this.effectsSequence[d](p,p.t):p=this.effectsSequence[d](this.currentData,p.t);s!==p&&this.setCurrentData(p),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},ze.prototype.getKeyframeValue=function(){for(var r=this.data.d.k,s=this.elem.comp.renderedFrame,a=0,d=r.length;a<=d-1&&!(a===d-1||r[a+1].t>s);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},ze.prototype.buildFinalText=function(r){for(var s=[],a=0,d=r.length,m,p,g=!1,I=!1,b="";a<d;)g=I,I=!1,m=r.charCodeAt(a),b=r.charAt(a),Mo.isCombinedCharacter(m)?g=!0:m>=55296&&m<=56319?Mo.isRegionalFlag(r,a)?b=r.substr(a,14):(p=r.charCodeAt(a+1),p>=56320&&p<=57343&&(Mo.isModifier(m,p)?(b=r.substr(a,2),g=!0):Mo.isFlagEmoji(r.substr(a,4))?b=r.substr(a,4):b=r.substr(a,2))):m>56319?(p=r.charCodeAt(a+1),Mo.isVariationSelector(m)&&(g=!0)):Mo.isZeroWidthJoiner(m)&&(g=!0,I=!0),g?(s[s.length-1]+=b,g=!1):s.push(b),a+=b.length;return s},ze.prototype.completeTextData=function(r){r.__complete=!0;var s=this.elem.globalData.fontManager,a=this.data,d=[],m,p,g,I=0,b,w=a.m.g,L=0,G=0,x=0,O=[],P=0,R=0,U,M,k=s.getFontByName(r.f),T,_=0,N=mu(k);r.fWeight=N.weight,r.fStyle=N.style,r.finalSize=r.s,r.finalText=this.buildFinalText(r.t),p=r.finalText.length,r.finalLineHeight=r.lh;var $=r.tr/1e3*r.finalSize,H;if(r.sz)for(var j=!0,it=r.sz[0],Tt=r.sz[1],ut,st;j;){st=this.buildFinalText(r.t),ut=0,P=0,p=st.length,$=r.tr/1e3*r.finalSize;var St=-1;for(m=0;m<p;m+=1)H=st[m].charCodeAt(0),g=!1,st[m]===" "?St=m:(H===13||H===3)&&(P=0,g=!0,ut+=r.finalLineHeight||r.finalSize*1.2),s.chars?(T=s.getCharData(st[m],k.fStyle,k.fFamily),_=g?0:T.w*r.finalSize/100):_=s.measureText(st[m],r.f,r.finalSize),P+_>it&&st[m]!==" "?(St===-1?p+=1:m=St,ut+=r.finalLineHeight||r.finalSize*1.2,st.splice(m,St===m?1:0,"\r"),St=-1,P=0):(P+=_,P+=$);ut+=k.ascent*r.finalSize/100,this.canResize&&r.finalSize>this.minimumFontSize&&Tt<ut?(r.finalSize-=1,r.finalLineHeight=r.finalSize*r.lh/r.s):(r.finalText=st,p=r.finalText.length,j=!1)}P=-$,_=0;var ht=0,rt;for(m=0;m<p;m+=1)if(g=!1,rt=r.finalText[m],H=rt.charCodeAt(0),H===13||H===3?(ht=0,O.push(P),R=P>R?P:R,P=-2*$,b="",g=!0,x+=1):b=rt,s.chars?(T=s.getCharData(rt,k.fStyle,s.getFontByName(r.f).fFamily),_=g?0:T.w*r.finalSize/100):_=s.measureText(b,r.f,r.finalSize),rt===" "?ht+=_+$:(P+=_+$+ht,ht=0),d.push({l:_,an:_,add:L,n:g,anIndexes:[],val:b,line:x,animatorJustifyOffset:0}),w==2){if(L+=_,b===""||b===" "||m===p-1){for((b===""||b===" ")&&(L-=_);G<=m;)d[G].an=L,d[G].ind=I,d[G].extra=_,G+=1;I+=1,L=0}}else if(w==3){if(L+=_,b===""||m===p-1){for(b===""&&(L-=_);G<=m;)d[G].an=L,d[G].ind=I,d[G].extra=_,G+=1;L=0,I+=1}}else d[I].ind=I,d[I].extra=0,I+=1;if(r.l=d,R=P>R?P:R,O.push(P),r.sz)r.boxWidth=r.sz[0],r.justifyOffset=0;else switch(r.boxWidth=R,r.j){case 1:r.justifyOffset=-r.boxWidth;break;case 2:r.justifyOffset=-r.boxWidth/2;break;default:r.justifyOffset=0}r.lineWidths=O;var C=a.a,D,v;M=C.length;var E,Y,V=[];for(U=0;U<M;U+=1){for(D=C[U],D.a.sc&&(r.strokeColorAnim=!0),D.a.sw&&(r.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(r.fillColorAnim=!0),Y=0,E=D.s.b,m=0;m<p;m+=1)v=d[m],v.anIndexes[U]=Y,(E==1&&v.val!==""||E==2&&v.val!==""&&v.val!==" "||E==3&&(v.n||v.val==" "||m==p-1)||E==4&&(v.n||m==p-1))&&(D.s.rn===1&&V.push(Y),Y+=1);a.a[U].s.totalChars=Y;var ct=-1,gt;if(D.s.rn===1)for(m=0;m<p;m+=1)v=d[m],ct!=v.anIndexes[U]&&(ct=v.anIndexes[U],gt=V.splice(Math.floor(Math.random()*V.length),1)[0]),v.anIndexes[U]=gt}r.yOffset=r.finalLineHeight||r.finalSize*1.2,r.ls=r.ls||0,r.ascent=k.ascent*r.finalSize/100},ze.prototype.updateDocumentData=function(r,s){s=s===void 0?this.keysIndex:s;var a=this.copyData({},this.data.d.k[s].s);a=this.copyData(a,r),this.data.d.k[s].s=a,this.recalculate(s),this.setCurrentData(a),this.elem.addDynamicProperty(this)},ze.prototype.recalculate=function(r){var s=this.data.d.k[r].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},ze.prototype.canResizeFont=function(r){this.canResize=r,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},ze.prototype.setMinimumFontSize=function(r){this.minimumFontSize=Math.floor(r)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var nT=function(){var r=Math.max,s=Math.min,a=Math.floor;function d(p,g){this._currentTextLength=-1,this.k=!1,this.data=g,this.elem=p,this.comp=p.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(p),this.s=at.getProp(p,g.s||{k:0},0,0,this),"e"in g?this.e=at.getProp(p,g.e,0,0,this):this.e={v:100},this.o=at.getProp(p,g.o||{k:0},0,0,this),this.xe=at.getProp(p,g.xe||{k:0},0,0,this),this.ne=at.getProp(p,g.ne||{k:0},0,0,this),this.sm=at.getProp(p,g.sm||{k:100},0,0,this),this.a=at.getProp(p,g.a,0,.01,this),this.dynamicProperties.length||this.getValue()}d.prototype={getMult:function(g){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var I=0,b=0,w=1,L=1;this.ne.v>0?I=this.ne.v/100:b=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:L=1+this.xe.v/100;var G=Sa.getBezierEasing(I,b,w,L).get,x=0,O=this.finalS,P=this.finalE,R=this.data.sh;if(R===2)P===O?x=g>=P?1:0:x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=G(x);else if(R===3)P===O?x=g>=P?0:1:x=1-r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x=G(x);else if(R===4)P===O?x=0:(x=r(0,s(.5/(P-O)+(g-O)/(P-O),1)),x<.5?x*=2:x=1-2*(x-.5)),x=G(x);else if(R===5){if(P===O)x=0;else{var U=P-O;g=s(r(0,g+.5-O),P-O);var M=-U/2+g,k=U/2;x=Math.sqrt(1-M*M/(k*k))}x=G(x)}else R===6?(P===O?x=0:(g=s(r(0,g+.5-O),P-O),x=(1+Math.cos(Math.PI+Math.PI*2*g/(P-O)))/2),x=G(x)):(g>=a(O)&&(g-O<0?x=r(0,s(s(P,1)-(O-g),1)):x=r(0,s(P-g,1))),x=G(x));if(this.sm.v!==100){var T=this.sm.v*.01;T===0&&(T=1e-8);var _=.5-T*.5;x<_?x=0:(x=(x-_)/T,x>1&&(x=1))}return x*this.a.v},getValue:function(g){this.iterateDynamicProperties(),this._mdf=g||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,g&&this.data.r===2&&(this.e.v=this._currentTextLength);var I=this.data.r===2?1:100/this.data.totalChars,b=this.o.v/I,w=this.s.v/I+b,L=this.e.v/I+b;if(w>L){var G=w;w=L,L=G}this.finalS=w,this.finalE=L}},A([Ie],d);function m(p,g,I){return new d(p,g,I)}return{getTextSelectorProp:m}}();function lT(r,s,a){var d={propType:!1},m=at.getProp,p=s.a;this.a={r:p.r?m(r,p.r,0,Nt,a):d,rx:p.rx?m(r,p.rx,0,Nt,a):d,ry:p.ry?m(r,p.ry,0,Nt,a):d,sk:p.sk?m(r,p.sk,0,Nt,a):d,sa:p.sa?m(r,p.sa,0,Nt,a):d,s:p.s?m(r,p.s,1,.01,a):d,a:p.a?m(r,p.a,1,0,a):d,o:p.o?m(r,p.o,0,.01,a):d,p:p.p?m(r,p.p,1,0,a):d,sw:p.sw?m(r,p.sw,0,0,a):d,sc:p.sc?m(r,p.sc,1,0,a):d,fc:p.fc?m(r,p.fc,1,0,a):d,fh:p.fh?m(r,p.fh,0,0,a):d,fs:p.fs?m(r,p.fs,0,.01,a):d,fb:p.fb?m(r,p.fb,0,.01,a):d,t:p.t?m(r,p.t,0,0,a):d},this.s=nT.getTextSelectorProp(r,s.s,a),this.s.t=s.s.t}function Oo(r,s,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=r,this._renderType=s,this._elem=a,this._animatorsData=et(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}Oo.prototype.searchProperties=function(){var r,s=this._textData.a.length,a,d=at.getProp;for(r=0;r<s;r+=1)a=this._textData.a[r],this._animatorsData[r]=new lT(this._elem,a,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:d(this._elem,this._textData.p.a,0,0,this),f:d(this._elem,this._textData.p.f,0,0,this),l:d(this._elem,this._textData.p.l,0,0,this),r:d(this._elem,this._textData.p.r,0,0,this),p:d(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=d(this._elem,this._textData.m.a,1,0,this)},Oo.prototype.getMeasures=function(r,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,d=this._animatorsData,m=this._textData,p=this.mHelper,g=this._renderType,I=this.renderedLetters.length,b,w,L,G,x=r.l,O,P,R,U,M,k,T,_,N,$,H,j,it,Tt,ut;if(this._hasMaskedPath){if(ut=this._pathData.m,!this._pathData.n||this._pathData._mdf){var st=ut.v;this._pathData.r.v&&(st=st.reverse()),O={tLength:0,segments:[]},G=st._length-1;var St;for(j=0,L=0;L<G;L+=1)St=Wr.buildBezierData(st.v[L],st.v[L+1],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[L+1][0]-st.v[L+1][0],st.i[L+1][1]-st.v[L+1][1]]),O.tLength+=St.segmentLength,O.segments.push(St),j+=St.segmentLength;L=G,ut.v.c&&(St=Wr.buildBezierData(st.v[L],st.v[0],[st.o[L][0]-st.v[L][0],st.o[L][1]-st.v[L][1]],[st.i[0][0]-st.v[0][0],st.i[0][1]-st.v[0][1]]),O.tLength+=St.segmentLength,O.segments.push(St),j+=St.segmentLength),this._pathData.pi=O}if(O=this._pathData.pi,P=this._pathData.f.v,T=0,k=1,U=0,M=!0,$=O.segments,P<0&&ut.v.c)for(O.tLength<Math.abs(P)&&(P=-Math.abs(P)%O.tLength),T=$.length-1,N=$[T].points,k=N.length-1;P<0;)P+=N[k].partialLength,k-=1,k<0&&(T-=1,N=$[T].points,k=N.length-1);N=$[T].points,_=N[k-1],R=N[k],H=R.partialLength}G=x.length,b=0,w=0;var ht=r.finalSize*1.2*.714,rt=!0,C,D,v,E,Y;E=d.length;var V,ct=-1,gt,xt,Dt,Pt=P,me=T,Qe=k,jr=-1,Je,_e,hr,Gt,pt,fi,Xi,vi,qr="",gi=this.defaultPropsArray,bi;if(r.j===2||r.j===1){var tr=0,Zi=0,Qi=r.j===2?-.5:-1,Dr=0,Ji=!0;for(L=0;L<G;L+=1)if(x[L].n){for(tr&&(tr+=Zi);Dr<L;)x[Dr].animatorJustifyOffset=tr,Dr+=1;tr=0,Ji=!0}else{for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(Ji&&r.j===2&&(Zi+=C.t.v*Qi),D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?tr+=C.t.v*V[0]*Qi:tr+=C.t.v*V*Qi);Ji=!1}for(tr&&(tr+=Zi);Dr<L;)x[Dr].animatorJustifyOffset=tr,Dr+=1}for(L=0;L<G;L+=1){if(p.reset(),Je=1,x[L].n)b=0,w+=r.yOffset,w+=rt?1:0,P=Pt,rt=!1,this._hasMaskedPath&&(T=me,k=Qe,N=$[T].points,_=N[k-1],R=N[k],H=R.partialLength,U=0),qr="",vi="",fi="",bi="",gi=this.defaultPropsArray;else{if(this._hasMaskedPath){if(jr!==x[L].line){switch(r.j){case 1:P+=j-r.lineWidths[x[L].line];break;case 2:P+=(j-r.lineWidths[x[L].line])/2;break;default:break}jr=x[L].line}ct!==x[L].ind&&(x[ct]&&(P+=x[ct].extra),P+=x[L].an/2,ct=x[L].ind),P+=a[0]*x[L].an*.005;var Pr=0;for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=C.p.v[0]*V[0]:Pr+=C.p.v[0]*V),C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?Pr+=C.a.v[0]*V[0]:Pr+=C.a.v[0]*V);for(M=!0,this._pathData.a.v&&(P=x[0].an*.5+(j-this._pathData.f.v-x[0].an*.5-x[x.length-1].an*.5)*ct/(G-1),P+=this._pathData.f.v);M;)U+H>=P+Pr||!N?(it=(P+Pr-U)/R.partialLength,xt=_.point[0]+(R.point[0]-_.point[0])*it,Dt=_.point[1]+(R.point[1]-_.point[1])*it,p.translate(-a[0]*x[L].an*.005,-(a[1]*ht)*.01),M=!1):N&&(U+=R.partialLength,k+=1,k>=N.length&&(k=0,T+=1,$[T]?N=$[T].points:ut.v.c?(k=0,T=0,N=$[T].points):(U-=R.partialLength,N=null)),N&&(_=R,R=N[k],H=R.partialLength));gt=x[L].an/2-x[L].add,p.translate(-gt,0,0)}else gt=x[L].an/2-x[L].add,p.translate(-gt,0,0),p.translate(-a[0]*x[L].an*.005,-a[1]*ht*.01,0);for(v=0;v<E;v+=1)C=d[v].a,C.t.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),(b!==0||r.j!==0)&&(this._hasMaskedPath?V.length?P+=C.t.v*V[0]:P+=C.t.v*V:V.length?b+=C.t.v*V[0]:b+=C.t.v*V));for(r.strokeWidthAnim&&(hr=r.sw||0),r.strokeColorAnim&&(r.sc?_e=[r.sc[0],r.sc[1],r.sc[2]]:_e=[0,0,0]),r.fillColorAnim&&r.fc&&(Gt=[r.fc[0],r.fc[1],r.fc[2]]),v=0;v<E;v+=1)C=d[v].a,C.a.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.translate(-C.a.v[0]*V[0],-C.a.v[1]*V[1],C.a.v[2]*V[2]):p.translate(-C.a.v[0]*V,-C.a.v[1]*V,C.a.v[2]*V));for(v=0;v<E;v+=1)C=d[v].a,C.s.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),V.length?p.scale(1+(C.s.v[0]-1)*V[0],1+(C.s.v[1]-1)*V[1],1):p.scale(1+(C.s.v[0]-1)*V,1+(C.s.v[1]-1)*V,1));for(v=0;v<E;v+=1){if(C=d[v].a,D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),C.sk.propType&&(V.length?p.skewFromAxis(-C.sk.v*V[0],C.sa.v*V[1]):p.skewFromAxis(-C.sk.v*V,C.sa.v*V)),C.r.propType&&(V.length?p.rotateZ(-C.r.v*V[2]):p.rotateZ(-C.r.v*V)),C.ry.propType&&(V.length?p.rotateY(C.ry.v*V[1]):p.rotateY(C.ry.v*V)),C.rx.propType&&(V.length?p.rotateX(C.rx.v*V[0]):p.rotateX(C.rx.v*V)),C.o.propType&&(V.length?Je+=(C.o.v*V[0]-Je)*V[0]:Je+=(C.o.v*V-Je)*V),r.strokeWidthAnim&&C.sw.propType&&(V.length?hr+=C.sw.v*V[0]:hr+=C.sw.v*V),r.strokeColorAnim&&C.sc.propType)for(pt=0;pt<3;pt+=1)V.length?_e[pt]+=(C.sc.v[pt]-_e[pt])*V[0]:_e[pt]+=(C.sc.v[pt]-_e[pt])*V;if(r.fillColorAnim&&r.fc){if(C.fc.propType)for(pt=0;pt<3;pt+=1)V.length?Gt[pt]+=(C.fc.v[pt]-Gt[pt])*V[0]:Gt[pt]+=(C.fc.v[pt]-Gt[pt])*V;C.fh.propType&&(V.length?Gt=zm(Gt,C.fh.v*V[0]):Gt=zm(Gt,C.fh.v*V)),C.fs.propType&&(V.length?Gt=$m(Gt,C.fs.v*V[0]):Gt=$m(Gt,C.fs.v*V)),C.fb.propType&&(V.length?Gt=Vm(Gt,C.fb.v*V[0]):Gt=Vm(Gt,C.fb.v*V))}}for(v=0;v<E;v+=1)C=d[v].a,C.p.propType&&(D=d[v].s,V=D.getMult(x[L].anIndexes[v],m.a[v].s.totalChars),this._hasMaskedPath?V.length?p.translate(0,C.p.v[1]*V[0],-C.p.v[2]*V[1]):p.translate(0,C.p.v[1]*V,-C.p.v[2]*V):V.length?p.translate(C.p.v[0]*V[0],C.p.v[1]*V[1],-C.p.v[2]*V[2]):p.translate(C.p.v[0]*V,C.p.v[1]*V,-C.p.v[2]*V));if(r.strokeWidthAnim&&(fi=hr<0?0:hr),r.strokeColorAnim&&(Xi="rgb("+Math.round(_e[0]*255)+","+Math.round(_e[1]*255)+","+Math.round(_e[2]*255)+")"),r.fillColorAnim&&r.fc&&(vi="rgb("+Math.round(Gt[0]*255)+","+Math.round(Gt[1]*255)+","+Math.round(Gt[2]*255)+")"),this._hasMaskedPath){if(p.translate(0,-r.ls),p.translate(0,a[1]*ht*.01+w,0),this._pathData.p.v){Tt=(R.point[1]-_.point[1])/(R.point[0]-_.point[0]);var Ro=Math.atan(Tt)*180/Math.PI;R.point[0]<_.point[0]&&(Ro+=180),p.rotate(-Ro*Math.PI/180)}p.translate(xt,Dt,0),P-=a[0]*x[L].an*.005,x[L+1]&&ct!==x[L+1].ind&&(P+=x[L].an/2,P+=r.tr*.001*r.finalSize)}else{switch(p.translate(b,w,0),r.ps&&p.translate(r.ps[0],r.ps[1]+r.ascent,0),r.j){case 1:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line]),0,0);break;case 2:p.translate(x[L].animatorJustifyOffset+r.justifyOffset+(r.boxWidth-r.lineWidths[x[L].line])/2,0,0);break;default:break}p.translate(0,-r.ls),p.translate(gt,0,0),p.translate(a[0]*x[L].an*.005,a[1]*ht*.01,0),b+=x[L].l+r.tr*.001*r.finalSize}g==="html"?qr=p.toCSS():g==="svg"?qr=p.to2dCSS():gi=[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]],bi=Je}I<=L?(Y=new Dc(bi,fi,Xi,vi,qr,gi),this.renderedLetters.push(Y),I+=1,this.lettersChangedFlag=!0):(Y=this.renderedLetters[L],this.lettersChangedFlag=Y.update(bi,fi,Xi,vi,qr,gi)||this.lettersChangedFlag)}}},Oo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Oo.prototype.mHelper=new Le,Oo.prototype.defaultPropsArray=[],A([Ie],Oo);function xr(){}xr.prototype.initElement=function(r,s,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(r,s,a),this.textProperty=new ze(this,r.t,this.dynamicProperties),this.textAnimator=new Oo(r.t,this.renderType,this),this.initTransform(r,s,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},xr.prototype.prepareFrame=function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)},xr.prototype.createPathShape=function(r,s){var a,d=s.length,m,p="";for(a=0;a<d;a+=1)s[a].ty==="sh"&&(m=s[a].ks.k,p+=Cu(m,m.i.length,!0,r));return p},xr.prototype.updateDocumentData=function(r,s){this.textProperty.updateDocumentData(r,s)},xr.prototype.canResizeFont=function(r){this.textProperty.canResizeFont(r)},xr.prototype.setMinimumFontSize=function(r){this.textProperty.setMinimumFontSize(r)},xr.prototype.applyTextPropertiesToMatrix=function(r,s,a,d,m){switch(r.ps&&s.translate(r.ps[0],r.ps[1]+r.ascent,0),s.translate(0,-r.ls,0),r.j){case 1:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[a]),0,0);break;case 2:s.translate(r.justifyOffset+(r.boxWidth-r.lineWidths[a])/2,0,0);break;default:break}s.translate(d,m,0)},xr.prototype.buildColor=function(r){return"rgb("+Math.round(r[0]*255)+","+Math.round(r[1]*255)+","+Math.round(r[2]*255)+")"},xr.prototype.emptyProp=new Dc,xr.prototype.destroy=function(){},xr.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var dT={shapes:[]};function mi(r,s,a){this.textSpans=[],this.renderType="svg",this.initElement(r,s,a)}A([Wi,Ns,La,Ms,Yi,Oa,xr],mi),mi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=At("text"))},mi.prototype.buildTextContents=function(r){for(var s=0,a=r.length,d=[],m="";s<a;)r[s]==="\r"||r[s]===""?(d.push(m),m=""):m+=r[s],s+=1;return d.push(m),d},mi.prototype.buildShapeData=function(r,s){if(r.shapes&&r.shapes.length){var a=r.shapes[0];if(a.it){var d=a.it[a.it.length-1];d.s&&(d.s.k[0]=s,d.s.k[1]=s)}}return r},mi.prototype.buildNewText=function(){this.addDynamicProperty(this);var r,s,a=this.textProperty.currentData;this.renderedLetters=et(a?a.l.length:0),a.fc?this.layerElement.setAttribute("fill",this.buildColor(a.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var d=this.globalData.fontManager.getFontByName(a.f);if(d.fClass)this.layerElement.setAttribute("class",d.fClass);else{this.layerElement.setAttribute("font-family",d.fFamily);var m=a.fWeight,p=a.fStyle;this.layerElement.setAttribute("font-style",p),this.layerElement.setAttribute("font-weight",m)}this.layerElement.setAttribute("aria-label",a.t);var g=a.l||[],I=!!this.globalData.fontManager.chars;s=g.length;var b,w=this.mHelper,L="",G=this.data.singleShape,x=0,O=0,P=!0,R=a.tr*.001*a.finalSize;if(G&&!I&&!a.sz){var U=this.textContainer,M="start";switch(a.j){case 1:M="end";break;case 2:M="middle";break;default:M="start";break}U.setAttribute("text-anchor",M),U.setAttribute("letter-spacing",R);var k=this.buildTextContents(a.finalText);for(s=k.length,O=a.ps?a.ps[1]+a.ascent:0,r=0;r<s;r+=1)b=this.textSpans[r].span||At("tspan"),b.textContent=k[r],b.setAttribute("x",0),b.setAttribute("y",O),b.style.display="inherit",U.appendChild(b),this.textSpans[r]||(this.textSpans[r]={span:null,glyph:null}),this.textSpans[r].span=b,O+=a.finalLineHeight;this.layerElement.appendChild(U)}else{var T=this.textSpans.length,_;for(r=0;r<s;r+=1){if(this.textSpans[r]||(this.textSpans[r]={span:null,childSpan:null,glyph:null}),!I||!G||r===0){if(b=T>r?this.textSpans[r].span:At(I?"g":"text"),T<=r){if(b.setAttribute("stroke-linecap","butt"),b.setAttribute("stroke-linejoin","round"),b.setAttribute("stroke-miterlimit","4"),this.textSpans[r].span=b,I){var N=At("g");b.appendChild(N),this.textSpans[r].childSpan=N}this.textSpans[r].span=b,this.layerElement.appendChild(b)}b.style.display="inherit"}if(w.reset(),G&&(g[r].n&&(x=-R,O+=a.yOffset,O+=P?1:0,P=!1),this.applyTextPropertiesToMatrix(a,w,g[r].line,x,O),x+=g[r].l||0,x+=R),I){_=this.globalData.fontManager.getCharData(a.finalText[r],d.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var $;if(_.t===1)$=new Pa(_.data,this.globalData,this);else{var H=dT;_.data&&_.data.shapes&&(H=this.buildShapeData(_.data,a.finalSize)),$=new ne(H,this.globalData,this)}if(this.textSpans[r].glyph){var j=this.textSpans[r].glyph;this.textSpans[r].childSpan.removeChild(j.layerElement),j.destroy()}this.textSpans[r].glyph=$,$._debug=!0,$.prepareFrame(0),$.renderFrame(),this.textSpans[r].childSpan.appendChild($.layerElement),_.t===1&&this.textSpans[r].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else G&&b.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),b.textContent=g[r].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}G&&b&&b.setAttribute("d",L)}for(;r<this.textSpans.length;)this.textSpans[r].span.style.display="none",r+=1;this._sizeChanged=!0},mi.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},mi.prototype.getValue=function(){var r,s=this.textSpans.length,a;for(this.renderedFrame=this.comp.renderedFrame,r=0;r<s;r+=1)a=this.textSpans[r].glyph,a&&(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf&&(this._mdf=!0))},mi.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,a=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;s=d.length;var m,p,g;for(r=0;r<s;r+=1)d[r].n||(m=a[r],p=this.textSpans[r].span,g=this.textSpans[r].glyph,g&&g.renderFrame(),m._mdf.m&&p.setAttribute("transform",m.m),m._mdf.o&&p.setAttribute("opacity",m.o),m._mdf.sw&&p.setAttribute("stroke-width",m.sw),m._mdf.sc&&p.setAttribute("stroke",m.sc),m._mdf.fc&&p.setAttribute("fill",m.fc))}};function Pc(r,s,a){this.initElement(r,s,a)}A([Ra],Pc),Pc.prototype.createContent=function(){var r=At("rect");r.setAttribute("width",this.data.sw),r.setAttribute("height",this.data.sh),r.setAttribute("fill",this.data.sc),this.layerElement.appendChild(r)};function qi(r,s,a){this.initFrame(),this.initBaseData(r,s,a),this.initFrame(),this.initTransform(r,s,a),this.initHierarchy()}qi.prototype.prepareFrame=function(r){this.prepareProperties(r,!0)},qi.prototype.renderFrame=function(){},qi.prototype.getBaseElement=function(){return null},qi.prototype.destroy=function(){},qi.prototype.sourceRectAtTime=function(){},qi.prototype.hide=function(){},A([Wi,Ns,Ms,Yi],qi);function Ee(){}A([Oe],Ee),Ee.prototype.createNull=function(r){return new qi(r,this.globalData,this)},Ee.prototype.createShape=function(r){return new ne(r,this.globalData,this)},Ee.prototype.createText=function(r){return new mi(r,this.globalData,this)},Ee.prototype.createImage=function(r){return new Ra(r,this.globalData,this)},Ee.prototype.createSolid=function(r){return new Pc(r,this.globalData,this)},Ee.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 a=At("clipPath"),d=At("rect");d.setAttribute("width",r.w),d.setAttribute("height",r.h),d.setAttribute("x",0),d.setAttribute("y",0);var m=Xe();a.setAttribute("id",m),a.appendChild(d),this.layerElement.setAttribute("clip-path","url("+f()+"#"+m+")"),s.appendChild(a),this.layers=r.layers,this.elements=et(r.layers.length)},Ee.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},Ee.prototype.updateContainerSize=function(){},Ee.prototype.findIndexByInd=function(r){var s=0,a=this.layers.length;for(s=0;s<a;s+=1)if(this.layers[s].ind===r)return s;return-1},Ee.prototype.buildItem=function(r){var s=this.elements;if(!(s[r]||this.layers[r].ty===99)){s[r]=!0;var a=this.createItem(this.layers[r]);if(s[r]=a,Zn()&&(this.layers[r].ty===0&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,r),this.layers[r].tt){var d="tp"in this.layers[r]?this.findIndexByInd(this.layers[r].tp):r-1;if(d===-1)return;if(!this.elements[d]||this.elements[d]===!0)this.buildItem(d),this.addPendingElement(a);else{var m=s[d],p=m.getMatte(this.layers[r].tt);a.setMatte(p)}}}},Ee.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var r=this.pendingElements.pop();if(r.checkParenting(),r.data.tt)for(var s=0,a=this.elements.length;s<a;){if(this.elements[s]===r){var d="tp"in r.data?this.findIndexByInd(r.data.tp):s-1,m=this.elements[d],p=m.getMatte(this.layers[s].tt);r.setMatte(p);break}s+=1}}},Ee.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,a=this.layers.length;for(this.completeLayers||this.checkLayers(r),s=a-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<a;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},Ee.prototype.appendElementInPos=function(r,s){var a=r.getBaseElement();if(a){for(var d=0,m;d<s;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement()&&(m=this.elements[d].getBaseElement()),d+=1;m?this.layerElement.insertBefore(a,m):this.layerElement.appendChild(a)}},Ee.prototype.hide=function(){this.layerElement.style.display="none"},Ee.prototype.show=function(){this.layerElement.style.display="block"};function ui(){}A([Wi,Ns,Ms,Yi,Oa],ui),ui.prototype.initElement=function(r,s,a){this.initFrame(),this.initBaseData(r,s,a),this.initTransform(r,s,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},ui.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 a,d=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=d-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},ui.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()},ui.prototype.setElements=function(r){this.elements=r},ui.prototype.getElements=function(){return this.elements},ui.prototype.destroyElements=function(){var r,s=this.layers.length;for(r=0;r<s;r+=1)this.elements[r]&&this.elements[r].destroy()},ui.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Pa(r,s,a){this.layers=r.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?et(this.layers.length):[],this.initElement(r,s,a),this.tm=r.tm?at.getProp(this,r.tm,0,s.frameRate,this):{_placeholder:!0}}A([Ee,ui,La],Pa),Pa.prototype.createComp=function(r){return new Pa(r,this.globalData,this)};function Fc(r,s){this.animationItem=r,this.layers=null,this.renderedFrame=-1,this.svgElement=At("svg");var a="";if(s&&s.title){var d=At("title"),m=Xe();d.setAttribute("id",m),d.textContent=s.title,this.svgElement.appendChild(d),a+=m}if(s&&s.description){var p=At("desc"),g=Xe();p.setAttribute("id",g),p.textContent=s.description,this.svgElement.appendChild(p),a+=" "+g}a&&this.svgElement.setAttribute("aria-labelledby",a);var I=At("defs");this.svgElement.appendChild(I);var b=At("g");this.svgElement.appendChild(b),this.layerElement=b,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:I,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return A([Ee],Fc),Fc.prototype.createComp=function(r){return new Pa(r,this.globalData,this)},yE("svg",Fc),Gi.registerModifier("tm",Rr),Gi.registerModifier("pb",Ia),Gi.registerModifier("rp",Yr),Gi.registerModifier("rd",_a),Gi.registerModifier("zz",ka),Gi.registerModifier("op",wa),Bt})});var vl=globalThis,gl=vl.ShadowRoot&&(vl.ShadyCSS===void 0||vl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vc=Symbol(),wu=new WeakMap,Fa=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==Vc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(gl&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=wu.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&wu.set(t,i))}return i}toString(){return this.cssText}},Nu=n=>new Fa(typeof n=="string"?n:n+"",void 0,Vc),B=(n,...i)=>{let t=n.length===1?n[0]:i.reduce((e,o,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[l+1],n[0]);return new Fa(t,n,Vc)},zc=(n,i)=>{if(gl)n.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),o=vl.litNonce;o!==void 0&&e.setAttribute("nonce",o),e.textContent=t.cssText,n.appendChild(e)}},bl=gl?n=>n:n=>n instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Nu(t)})(n):n;var{is:gT,defineProperty:bT,getOwnPropertyDescriptor:yT,getOwnPropertyNames:ET,getOwnPropertySymbols:TT,getPrototypeOf:xT}=Object,to=globalThis,Mu=to.trustedTypes,AT=Mu?Mu.emptyScript:"",Bc=to.reactiveElementPolyfillSupport,$a=(n,i)=>n,Va={toAttribute(n,i){switch(i){case Boolean:n=n?AT:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,i){let t=n;switch(i){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}},yl=(n,i)=>!gT(n,i),Lu={attribute:!0,type:String,converter:Va,reflect:!1,hasChanged:yl},Ou,Ru;(Ou=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ru=to.litPropertyMetadata)!=null||(to.litPropertyMetadata=new WeakMap);var yi=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Lu){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),o=this.getPropertyDescriptor(i,e,t);o!==void 0&&bT(this.prototype,i,o)}}static getPropertyDescriptor(i,t,e){var c;let{get:o,set:l}=(c=yT(this.prototype,i))!=null?c:{get(){return this[t]},set(f){this[t]=f}};return{get(){return o==null?void 0:o.call(this)},set(f){let y=o==null?void 0:o.call(this);l.call(this,f),this.requestUpdate(i,y,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Lu}static _$Ei(){if(this.hasOwnProperty($a("elementProperties")))return;let i=xT(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty($a("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($a("properties"))){let t=this.properties,e=[...ET(t),...TT(t)];for(let o of e)this.createProperty(o,t[o])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,o]of t)this.elementProperties.set(e,o)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let o=this._$Eu(t,e);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let o of e)t.unshift(bl(o))}else i!==void 0&&t.push(bl(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return zc(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostConnected)==null?void 0:o.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var l;let e=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,e);if(o!==void 0&&e.reflect===!0){let c=(((l=e.converter)==null?void 0:l.toAttribute)!==void 0?e.converter:Va).toAttribute(t,e.type);this._$Em=i,c==null?this.removeAttribute(o):this.setAttribute(o,c),this._$Em=null}}_$AK(i,t){var l;let e=this.constructor,o=e._$Eh.get(i);if(o!==void 0&&this._$Em!==o){let c=e.getPropertyOptions(o),f=typeof c.converter=="function"?{fromAttribute:c.converter}:((l=c.converter)==null?void 0:l.fromAttribute)!==void 0?c.converter:Va;this._$Em=o,this[o]=f.fromAttribute(t,c.type),this._$Em=null}}requestUpdate(i,t,e){var o;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((o=e.hasChanged)!=null?o:yl)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var o;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[c,f]of this._$Ep)this[c]=f;this._$Ep=void 0}let l=this.constructor.elementProperties;if(l.size>0)for(let[c,f]of l)f.wrapped!==!0||this._$AL.has(c)||this[c]===void 0||this.P(c,this[c],f)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(l=>{var c;return(c=l.hostUpdate)==null?void 0:c.call(l)}),this.update(t)):this._$EU()}catch(l){throw i=!1,this._$EU(),l}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostUpdated)==null?void 0:o.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},Du;yi.elementStyles=[],yi.shadowRootOptions={mode:"open"},yi[$a("elementProperties")]=new Map,yi[$a("finalized")]=new Map,Bc==null||Bc({ReactiveElement:yi}),((Du=to.reactiveElementVersions)!=null?Du:to.reactiveElementVersions=[]).push("2.0.4");var Ba=globalThis,El=Ba.trustedTypes,Pu=El?El.createPolicy("lit-html",{createHTML:n=>n}):void 0,Gc="$lit$",Ei=`lit$${Math.random().toFixed(9).slice(2)}$`,Kc="?"+Ei,ST=`<${Kc}>`,Fo=document,Ua=()=>Fo.createComment(""),Ha=n=>n===null||typeof n!="object"&&typeof n!="function",Wc=Array.isArray,Hu=n=>Wc(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Uc=`[
|
|
3
3
|
\f\r]`,za=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fu=/-->/g,$u=/>/g,Do=RegExp(`>|${Uc}(?:([^\\s"'>=/]+)(${Uc}*=${Uc}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Vu=/'/g,zu=/"/g,Gu=/^(?:script|style|textarea|title)$/i,Yc=n=>(i,...t)=>({_$litType$:n,strings:i,values:t}),S=Yc(1),II=Yc(2),_I=Yc(3),Re=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Bu=new WeakMap,Po=Fo.createTreeWalker(Fo,129);function Ku(n,i){if(!Wc(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pu!==void 0?Pu.createHTML(i):i}var Wu=(n,i)=>{let t=n.length-1,e=[],o,l=i===2?"<svg>":i===3?"<math>":"",c=za;for(let f=0;f<t;f++){let y=n[f],A,F,W=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,F=c.exec(y),F!==null);)Q=c.lastIndex,c===za?F[1]==="!--"?c=Fu:F[1]!==void 0?c=$u:F[2]!==void 0?(Gu.test(F[2])&&(o=RegExp("</"+F[2],"g")),c=Do):F[3]!==void 0&&(c=Do):c===Do?F[0]===">"?(c=o!=null?o:za,W=-1):F[1]===void 0?W=-2:(W=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?Do:F[3]==='"'?zu:Vu):c===zu||c===Vu?c=Do:c===Fu||c===$u?c=za:(c=Do,o=void 0);let Z=c===Do&&n[f+1].startsWith("/>")?" ":"";l+=c===za?y+AT:W>=0?(e.push(A),y.slice(0,W)+Gc+y.slice(W)+Ei+Z):y+Ei+(W===-2?f:Z)}return[Ku(n,l+(n[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),e]},Ga=class n{constructor({strings:i,_$litType$:t},e){let o;this.parts=[];let l=0,c=0,f=i.length-1,y=this.parts,[A,F]=Wu(i,t);if(this.el=n.createElement(A,e),Po.currentNode=this.el.content,t===2||t===3){let W=this.el.content.firstChild;W.replaceWith(...W.childNodes)}for(;(o=Po.nextNode())!==null&&y.length<f;){if(o.nodeType===1){if(o.hasAttributes())for(let W of o.getAttributeNames())if(W.endsWith(Gc)){let Q=F[c++],Z=o.getAttribute(W).split(Ei),et=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:et[2],strings:Z,ctor:et[1]==="."?xl:et[1]==="?"?Al:et[1]==="@"?Sl:Vo}),o.removeAttribute(W)}else W.startsWith(Ei)&&(y.push({type:6,index:l}),o.removeAttribute(W));if(Gu.test(o.tagName)){let W=o.textContent.split(Ei),Q=W.length-1;if(Q>0){o.textContent=El?El.emptyScript:"";for(let Z=0;Z<Q;Z++)o.append(W[Z],Ua()),Po.nextNode(),y.push({type:2,index:++l});o.append(W[Q],Ua())}}}else if(o.nodeType===8)if(o.data===Kc)y.push({type:2,index:l});else{let W=-1;for(;(W=o.data.indexOf(Ei,W+1))!==-1;)y.push({type:7,index:l}),W+=Ei.length-1}l++}}static createElement(i,t){let e=Fo.createElement("template");return e.innerHTML=i,e}};function $o(n,i,t=n,e){var c,f,y;if(i===Re)return i;let o=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Ha(i)?void 0:i._$litDirective$;return(o==null?void 0:o.constructor)!==l&&((f=o==null?void 0:o._$AO)==null||f.call(o,!1),l===void 0?o=void 0:(o=new l(n),o._$AT(n,t,e)),e!==void 0?((y=t.o)!=null?y:t.o=[])[e]=o:t.l=o),o!==void 0&&(i=$o(n,o._$AS(n,i.values),o,e)),i}var Tl=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var A;let{el:{content:t},parts:e}=this._$AD,o=((A=i==null?void 0:i.creationScope)!=null?A:Fo).importNode(t,!0);Po.currentNode=o;let l=Po.nextNode(),c=0,f=0,y=e[0];for(;y!==void 0;){if(c===y.index){let F;y.type===2?F=new Os(l,l.nextSibling,this,i):y.type===1?F=new y.ctor(l,y.name,y.strings,this,i):y.type===6&&(F=new Il(l,this,i)),this._$AV.push(F),y=e[++f]}c!==(y==null?void 0:y.index)&&(l=Po.nextNode(),c++)}return Po.currentNode=Fo,o}p(i){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(i,e,t),t+=e.strings.length-2):e._$AI(i[t])),t++}},Os=class n{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,e,o){var l;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=e,this.options=o,this.v=(l=o==null?void 0:o.isConnected)!=null?l:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=$o(this,i,t),Ha(i)?i===K||i==null||i===""?(this._$AH!==K&&this._$AR(),this._$AH=K):i!==this._$AH&&i!==Re&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Hu(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==K&&Ha(this._$AH)?this._$AA.nextSibling.data=i:this.T(Fo.createTextNode(i)),this._$AH=i}$(i){var l;let{values:t,_$litType$:e}=i,o=typeof e=="number"?this._$AC(i):(e.el===void 0&&(e.el=Ga.createElement(Ku(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===o)this._$AH.p(t);else{let c=new Tl(o,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(i){let t=Bu.get(i.strings);return t===void 0&&Bu.set(i.strings,t=new Ga(i)),t}k(i){Wc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,o=0;for(let l of i)o===t.length?t.push(e=new n(this.O(Ua()),this.O(Ua()),this,this.options)):e=t[o],e._$AI(l),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(i=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);i&&i!==this._$AB;){let o=i.nextSibling;i.remove(),i=o}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},Vo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,e,o,l){this.type=1,this._$AH=K,this._$AN=void 0,this.element=i,this.name=t,this._$AM=o,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}_$AI(i,t=this,e,o){let l=this.strings,c=!1;if(l===void 0)i=$o(this,i,t,0),c=!Ha(i)||i!==this._$AH&&i!==Re,c&&(this._$AH=i);else{let f=i,y,A;for(i=l[0],y=0;y<l.length-1;y++)A=$o(this,f[e+y],t,y),A===Re&&(A=this._$AH[y]),c||(c=!Ha(A)||A!==this._$AH[y]),A===K?i=K:i!==K&&(i+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!o&&this.j(i)}j(i){i===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},xl=class extends Vo{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===K?void 0:i}},Al=class extends Vo{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==K)}},Sl=class extends Vo{constructor(i,t,e,o,l){super(i,t,e,o,l),this.type=5}_$AI(i,t=this){var c;if((i=(c=$o(this,i,t,0))!=null?c:K)===Re)return;let e=this._$AH,o=i===K&&e!==K||i.capture!==e.capture||i.once!==e.once||i.passive!==e.passive,l=i!==K&&(e===K||o);o&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,i):this._$AH.handleEvent(i)}},Il=class{constructor(i,t,e){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(i){$o(this,i)}},Yu={M:Gc,P:Ei,A:Kc,C:1,L:Wu,R:Tl,D:Hu,V:$o,I:Os,H:Vo,N:Al,U:Sl,B:xl,F:Il},Hc=Ba.litHtmlPolyfillSupport,Uu;Hc==null||Hc(Ga,Os),((Uu=Ba.litHtmlVersions)!=null?Uu:Ba.litHtmlVersions=[]).push("3.2.0");var ju=(n,i,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:i,o=e._$litPart$;if(o===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=o=new Os(i.insertBefore(Ua(),f),f,void 0,t!=null?t:{})}return o._$AI(n),o};var eo=class extends yi{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=ju(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return Re}},qu;eo._$litElement$=!0,eo.finalized=!0,(qu=globalThis.litElementHydrateSupport)==null||qu.call(globalThis,{LitElement:eo});var jc=globalThis.litElementPolyfillSupport;jc==null||jc({LitElement:eo});var Xu;((Xu=globalThis.litElementVersions)!=null?Xu:globalThis.litElementVersions=[]).push("4.1.0");var ST={attribute:!0,type:String,converter:Va,reflect:!1,hasChanged:yl},IT=(n=ST,i,t)=>{let{kind:e,metadata:o}=t,l=globalThis.litPropertyMetadata.get(o);if(l===void 0&&globalThis.litPropertyMetadata.set(o,l=new Map),l.set(t.name,n),e==="accessor"){let{name:c}=t;return{set(f){let y=i.get.call(this);i.set.call(this,f),this.requestUpdate(c,y,n)},init(f){return f!==void 0&&this.P(c,void 0,n),f}}}if(e==="setter"){let{name:c}=t;return function(f){let y=this[c];i.call(this,f),this.requestUpdate(c,y,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(i,t)=>typeof t=="object"?IT(n,i,t):((e,o,l)=>{let c=o.hasOwnProperty(l);return o.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(o,l):void 0})(n,i,t)}function nt(n){return u({...n,state:!0,attribute:!1})}function Zu(n){return(i,t)=>{let e=typeof i=="function"?i:i[t];Object.assign(e,n)}}var Xr=(n,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(n,i,t),t);function Ut(n,i){return(t,e,o)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(n))!=null?y:null};if(i){let{get:c,set:f}=typeof e=="object"?t:o!=null?o:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return Xr(t,e,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return Xr(t,e,{get(){return l(this)}})}}var qc;function Qu(n){return(i,t)=>Xr(i,t,{get(){var e;return((e=this.renderRoot)!=null?e:qc!=null?qc:qc=document.createDocumentFragment()).querySelectorAll(n)}})}function Kt(n){return(i,t)=>{let{slot:e,selector:o}=n!=null?n:{},l="slot"+(e?`[name=${e}]`:":not([name])");return Xr(i,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(n))!=null?A:[];return o===void 0?f:f.filter(F=>F.matches(o))}})}}function Ju(n){return(i,t)=>{let{slot:e}=n!=null?n:{},o="slot"+(e?`[name=${e}]`:":not([name])");return Xr(i,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(o);return(f=l==null?void 0:l.assignedNodes(n))!=null?f:[]}})}}var _T={PREFIX:"mdc",SEPARATOR:"-"},CT={NAMESPACE:_T},Xc=CT;var kT=n=>[Xc.NAMESPACE.PREFIX,n].join(Xc.NAMESPACE.SEPARATOR),z={constructTagName:kT};var tt={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 tf=z.constructTagName("buttonsimple"),zo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ka={SIZE:zo[32],TYPE:Rs.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Ti=z.constructTagName("button"),$t={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Wa={40:40,32:32,28:28,24:24},Ar={64:64,52:52,20:20,...Wa},Bo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},er={VARIANT:$t.PRIMARY,SIZE:Wa[32],COLOR:Bo.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var _l=n=>{class i extends n{constructor(){super(...arguments);this.variant=er.VARIANT;this.color=er.COLOR;this.typeInternal=er.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values($t).includes(o)?o:er.VARIANT)}setColor(o){!Object.values(Bo).includes(o)||this.variant===$t.TERTIARY?this.setAttribute("color",`${er.COLOR}`):this.setAttribute("color",o)}setSize(o){let c=this.typeInternal===Ds.ICON?Object.values(Ar).includes(o)&&!(o===Ar[20]&&this.variant!==$t.TERTIARY):Object.values(Wa).includes(o);this.setAttribute("size",c?`${o}`:`${er.SIZE}`)}inferButtonType(){var A,F,W,Q,Z,et;let o=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,l=(Q=(W=this.shadowRoot)==null?void 0:W.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,c=this.prefixIcon||l&&l>0,f=(et=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:et.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,y=this.postfixIcon||f&&f>0;o&&(c||y)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(c||y)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),h([u({type:String})],i.prototype,"variant",2),h([u({type:String})],i.prototype,"color",2),h([nt()],i.prototype,"typeInternal",2),i};var ef=B`
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Vu=/'/g,zu=/"/g,Gu=/^(?:script|style|textarea|title)$/i,Yc=n=>(i,...t)=>({_$litType$:n,strings:i,values:t}),S=Yc(1),CI=Yc(2),kI=Yc(3),Re=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Bu=new WeakMap,Po=Fo.createTreeWalker(Fo,129);function Ku(n,i){if(!Wc(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pu!==void 0?Pu.createHTML(i):i}var Wu=(n,i)=>{let t=n.length-1,e=[],o,l=i===2?"<svg>":i===3?"<math>":"",c=za;for(let f=0;f<t;f++){let y=n[f],A,F,W=-1,Q=0;for(;Q<y.length&&(c.lastIndex=Q,F=c.exec(y),F!==null);)Q=c.lastIndex,c===za?F[1]==="!--"?c=Fu:F[1]!==void 0?c=$u:F[2]!==void 0?(Gu.test(F[2])&&(o=RegExp("</"+F[2],"g")),c=Do):F[3]!==void 0&&(c=Do):c===Do?F[0]===">"?(c=o!=null?o:za,W=-1):F[1]===void 0?W=-2:(W=c.lastIndex-F[2].length,A=F[1],c=F[3]===void 0?Do:F[3]==='"'?zu:Vu):c===zu||c===Vu?c=Do:c===Fu||c===$u?c=za:(c=Do,o=void 0);let Z=c===Do&&n[f+1].startsWith("/>")?" ":"";l+=c===za?y+ST:W>=0?(e.push(A),y.slice(0,W)+Gc+y.slice(W)+Ei+Z):y+Ei+(W===-2?f:Z)}return[Ku(n,l+(n[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),e]},Ga=class n{constructor({strings:i,_$litType$:t},e){let o;this.parts=[];let l=0,c=0,f=i.length-1,y=this.parts,[A,F]=Wu(i,t);if(this.el=n.createElement(A,e),Po.currentNode=this.el.content,t===2||t===3){let W=this.el.content.firstChild;W.replaceWith(...W.childNodes)}for(;(o=Po.nextNode())!==null&&y.length<f;){if(o.nodeType===1){if(o.hasAttributes())for(let W of o.getAttributeNames())if(W.endsWith(Gc)){let Q=F[c++],Z=o.getAttribute(W).split(Ei),et=/([.?@])?(.*)/.exec(Q);y.push({type:1,index:l,name:et[2],strings:Z,ctor:et[1]==="."?xl:et[1]==="?"?Al:et[1]==="@"?Sl:Vo}),o.removeAttribute(W)}else W.startsWith(Ei)&&(y.push({type:6,index:l}),o.removeAttribute(W));if(Gu.test(o.tagName)){let W=o.textContent.split(Ei),Q=W.length-1;if(Q>0){o.textContent=El?El.emptyScript:"";for(let Z=0;Z<Q;Z++)o.append(W[Z],Ua()),Po.nextNode(),y.push({type:2,index:++l});o.append(W[Q],Ua())}}}else if(o.nodeType===8)if(o.data===Kc)y.push({type:2,index:l});else{let W=-1;for(;(W=o.data.indexOf(Ei,W+1))!==-1;)y.push({type:7,index:l}),W+=Ei.length-1}l++}}static createElement(i,t){let e=Fo.createElement("template");return e.innerHTML=i,e}};function $o(n,i,t=n,e){var c,f,y;if(i===Re)return i;let o=e!==void 0?(c=t.o)==null?void 0:c[e]:t.l,l=Ha(i)?void 0:i._$litDirective$;return(o==null?void 0:o.constructor)!==l&&((f=o==null?void 0:o._$AO)==null||f.call(o,!1),l===void 0?o=void 0:(o=new l(n),o._$AT(n,t,e)),e!==void 0?((y=t.o)!=null?y:t.o=[])[e]=o:t.l=o),o!==void 0&&(i=$o(n,o._$AS(n,i.values),o,e)),i}var Tl=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var A;let{el:{content:t},parts:e}=this._$AD,o=((A=i==null?void 0:i.creationScope)!=null?A:Fo).importNode(t,!0);Po.currentNode=o;let l=Po.nextNode(),c=0,f=0,y=e[0];for(;y!==void 0;){if(c===y.index){let F;y.type===2?F=new Os(l,l.nextSibling,this,i):y.type===1?F=new y.ctor(l,y.name,y.strings,this,i):y.type===6&&(F=new Il(l,this,i)),this._$AV.push(F),y=e[++f]}c!==(y==null?void 0:y.index)&&(l=Po.nextNode(),c++)}return Po.currentNode=Fo,o}p(i){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(i,e,t),t+=e.strings.length-2):e._$AI(i[t])),t++}},Os=class n{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this.v}constructor(i,t,e,o){var l;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=e,this.options=o,this.v=(l=o==null?void 0:o.isConnected)!=null?l:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=$o(this,i,t),Ha(i)?i===K||i==null||i===""?(this._$AH!==K&&this._$AR(),this._$AH=K):i!==this._$AH&&i!==Re&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Hu(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==K&&Ha(this._$AH)?this._$AA.nextSibling.data=i:this.T(Fo.createTextNode(i)),this._$AH=i}$(i){var l;let{values:t,_$litType$:e}=i,o=typeof e=="number"?this._$AC(i):(e.el===void 0&&(e.el=Ga.createElement(Ku(e.h,e.h[0]),this.options)),e);if(((l=this._$AH)==null?void 0:l._$AD)===o)this._$AH.p(t);else{let c=new Tl(o,this),f=c.u(this.options);c.p(t),this.T(f),this._$AH=c}}_$AC(i){let t=Bu.get(i.strings);return t===void 0&&Bu.set(i.strings,t=new Ga(i)),t}k(i){Wc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,o=0;for(let l of i)o===t.length?t.push(e=new n(this.O(Ua()),this.O(Ua()),this,this.options)):e=t[o],e._$AI(l),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(i=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);i&&i!==this._$AB;){let o=i.nextSibling;i.remove(),i=o}}setConnected(i){var t;this._$AM===void 0&&(this.v=i,(t=this._$AP)==null||t.call(this,i))}},Vo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,e,o,l){this.type=1,this._$AH=K,this._$AN=void 0,this.element=i,this.name=t,this._$AM=o,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}_$AI(i,t=this,e,o){let l=this.strings,c=!1;if(l===void 0)i=$o(this,i,t,0),c=!Ha(i)||i!==this._$AH&&i!==Re,c&&(this._$AH=i);else{let f=i,y,A;for(i=l[0],y=0;y<l.length-1;y++)A=$o(this,f[e+y],t,y),A===Re&&(A=this._$AH[y]),c||(c=!Ha(A)||A!==this._$AH[y]),A===K?i=K:i!==K&&(i+=(A!=null?A:"")+l[y+1]),this._$AH[y]=A}c&&!o&&this.j(i)}j(i){i===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},xl=class extends Vo{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===K?void 0:i}},Al=class extends Vo{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==K)}},Sl=class extends Vo{constructor(i,t,e,o,l){super(i,t,e,o,l),this.type=5}_$AI(i,t=this){var c;if((i=(c=$o(this,i,t,0))!=null?c:K)===Re)return;let e=this._$AH,o=i===K&&e!==K||i.capture!==e.capture||i.once!==e.once||i.passive!==e.passive,l=i!==K&&(e===K||o);o&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,i):this._$AH.handleEvent(i)}},Il=class{constructor(i,t,e){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(i){$o(this,i)}},Yu={M:Gc,P:Ei,A:Kc,C:1,L:Wu,R:Tl,D:Hu,V:$o,I:Os,H:Vo,N:Al,U:Sl,B:xl,F:Il},Hc=Ba.litHtmlPolyfillSupport,Uu;Hc==null||Hc(Ga,Os),((Uu=Ba.litHtmlVersions)!=null?Uu:Ba.litHtmlVersions=[]).push("3.2.0");var ju=(n,i,t)=>{var l,c;let e=(l=t==null?void 0:t.renderBefore)!=null?l:i,o=e._$litPart$;if(o===void 0){let f=(c=t==null?void 0:t.renderBefore)!=null?c:null;e._$litPart$=o=new Os(i.insertBefore(Ua(),f),f,void 0,t!=null?t:{})}return o._$AI(n),o};var eo=class extends yi{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this.o=ju(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this.o)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.o)==null||i.setConnected(!1)}render(){return Re}},qu;eo._$litElement$=!0,eo.finalized=!0,(qu=globalThis.litElementHydrateSupport)==null||qu.call(globalThis,{LitElement:eo});var jc=globalThis.litElementPolyfillSupport;jc==null||jc({LitElement:eo});var Xu;((Xu=globalThis.litElementVersions)!=null?Xu:globalThis.litElementVersions=[]).push("4.1.0");var IT={attribute:!0,type:String,converter:Va,reflect:!1,hasChanged:yl},_T=(n=IT,i,t)=>{let{kind:e,metadata:o}=t,l=globalThis.litPropertyMetadata.get(o);if(l===void 0&&globalThis.litPropertyMetadata.set(o,l=new Map),l.set(t.name,n),e==="accessor"){let{name:c}=t;return{set(f){let y=i.get.call(this);i.set.call(this,f),this.requestUpdate(c,y,n)},init(f){return f!==void 0&&this.P(c,void 0,n),f}}}if(e==="setter"){let{name:c}=t;return function(f){let y=this[c];i.call(this,f),this.requestUpdate(c,y,n)}}throw Error("Unsupported decorator location: "+e)};function u(n){return(i,t)=>typeof t=="object"?_T(n,i,t):((e,o,l)=>{let c=o.hasOwnProperty(l);return o.constructor.createProperty(l,c?{...e,wrapped:!0}:e),c?Object.getOwnPropertyDescriptor(o,l):void 0})(n,i,t)}function nt(n){return u({...n,state:!0,attribute:!1})}function Zu(n){return(i,t)=>{let e=typeof i=="function"?i:i[t];Object.assign(e,n)}}var Xr=(n,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(n,i,t),t);function Ut(n,i){return(t,e,o)=>{let l=c=>{var f,y;return(y=(f=c.renderRoot)==null?void 0:f.querySelector(n))!=null?y:null};if(i){let{get:c,set:f}=typeof e=="object"?t:o!=null?o:(()=>{let y=Symbol();return{get(){return this[y]},set(A){this[y]=A}}})();return Xr(t,e,{get(){let y=c.call(this);return y===void 0&&(y=l(this),(y!==null||this.hasUpdated)&&f.call(this,y)),y}})}return Xr(t,e,{get(){return l(this)}})}}var qc;function Qu(n){return(i,t)=>Xr(i,t,{get(){var e;return((e=this.renderRoot)!=null?e:qc!=null?qc:qc=document.createDocumentFragment()).querySelectorAll(n)}})}function Kt(n){return(i,t)=>{let{slot:e,selector:o}=n!=null?n:{},l="slot"+(e?`[name=${e}]`:":not([name])");return Xr(i,t,{get(){var y,A;let c=(y=this.renderRoot)==null?void 0:y.querySelector(l),f=(A=c==null?void 0:c.assignedElements(n))!=null?A:[];return o===void 0?f:f.filter(F=>F.matches(o))}})}}function Ju(n){return(i,t)=>{let{slot:e}=n!=null?n:{},o="slot"+(e?`[name=${e}]`:":not([name])");return Xr(i,t,{get(){var c,f;let l=(c=this.renderRoot)==null?void 0:c.querySelector(o);return(f=l==null?void 0:l.assignedNodes(n))!=null?f:[]}})}}var CT={PREFIX:"mdc",SEPARATOR:"-"},kT={NAMESPACE:CT},Xc=kT;var wT=n=>[Xc.NAMESPACE.PREFIX,n].join(Xc.NAMESPACE.SEPARATOR),z={constructTagName:wT};var tt={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 tf=z.constructTagName("buttonsimple"),zo={12:12,14:14,16:16,20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Rs={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Ka={SIZE:zo[32],TYPE:Rs.BUTTON,ROLE:tt.BUTTON,ARIA_STATE_KEY:"aria-pressed"};var Ti=z.constructTagName("button"),$t={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Wa={40:40,32:32,28:28,24:24},Ar={64:64,52:52,20:20,...Wa},Bo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ds={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},er={VARIANT:$t.PRIMARY,SIZE:Wa[32],COLOR:Bo.DEFAULT,TYPE_INTERNAL:Ds.ICON,TYPE:Rs.BUTTON,INVERTED:!1};var _l=n=>{class i extends n{constructor(){super(...arguments);this.variant=er.VARIANT;this.color=er.COLOR;this.typeInternal=er.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values($t).includes(o)?o:er.VARIANT)}setColor(o){!Object.values(Bo).includes(o)||this.variant===$t.TERTIARY?this.setAttribute("color",`${er.COLOR}`):this.setAttribute("color",o)}setSize(o){let c=this.typeInternal===Ds.ICON?Object.values(Ar).includes(o)&&!(o===Ar[20]&&this.variant!==$t.TERTIARY):Object.values(Wa).includes(o);this.setAttribute("size",c?`${o}`:`${er.SIZE}`)}inferButtonType(){var A,F,W,Q,Z,et;let o=(F=(A=this.shadowRoot)==null?void 0:A.querySelector("slot:not([name])"))==null?void 0:F.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,l=(Q=(W=this.shadowRoot)==null?void 0:W.querySelector('slot[name="prefix"]'))==null?void 0:Q.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,c=this.prefixIcon||l&&l>0,f=(et=(Z=this.shadowRoot)==null?void 0:Z.querySelector('slot[name="postfix"]'))==null?void 0:et.assignedNodes().filter(lt=>{var dt;return lt.nodeType!==Node.TEXT_NODE||((dt=lt.textContent)==null?void 0:dt.trim())}).length,y=this.postfixIcon||f&&f>0;o&&(c||y)?(this.typeInternal=Ds.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(c||y)?(this.typeInternal=Ds.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ds.PILL,this.setAttribute("data-btn-type","pill"))}}return h([u({type:String,attribute:"prefix-icon",reflect:!0})],i.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon",reflect:!0})],i.prototype,"postfixIcon",2),h([u({type:String})],i.prototype,"variant",2),h([u({type:String})],i.prototype,"color",2),h([nt()],i.prototype,"typeInternal",2),i};var ef=B`
|
|
5
5
|
:host {
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
:host *::after {
|
|
12
12
|
box-sizing: inherit;
|
|
13
13
|
}
|
|
14
|
-
`;var Cl=class extends eo{static register(i){customElements.get(i)||customElements.define(i,this)}};Cl.styles=[ef];var rf=Cl;var X=rf;var ro=class extends Event{constructor(i,t,e){super("context-request",{bubbles:!0,composed:!0}),this.context=i,this.callback=t,this.subscribe=e!=null?e:!1}};var Ps=class{constructor(i,t,e,o){var l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=i,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(l=c.subscribe)!=null?l:!1}else this.context=t,this.callback=e,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ro(this.context,this.t,this.subscribe))}};var kl=class{get value(){return this.o}set value(i){this.setValue(i)}setValue(i,t=!1){let e=t||!Object.is(i,this.o);this.o=i,e&&this.updateObservers()}constructor(i){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},i!==void 0&&(this.value=i)}addCallback(i,t,e){if(!e)return void i(this.value);this.subscriptions.has(i)||this.subscriptions.set(i,{disposer:()=>{this.subscriptions.delete(i)},consumerHost:t});let{disposer:o}=this.subscriptions.get(i);i(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var Zc=class extends Event{constructor(i){super("context-provider",{bubbles:!0,composed:!0}),this.context=i}},Fs=class extends kl{constructor(i,t,e){var o,l;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let y=new Set;for(let[A,{consumerHost:F}]of this.subscriptions)y.has(A)||(y.add(A),F.dispatchEvent(new ro(this.context,A,!0)));c.stopPropagation()},this.host=i,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(l=(o=this.host).addController)==null||l.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Zc(this.context))}};var
|
|
14
|
+
`;var Cl=class extends eo{static register(i){customElements.get(i)||customElements.define(i,this)}};Cl.styles=[ef];var rf=Cl;var X=rf;var ro=class extends Event{constructor(i,t,e){super("context-request",{bubbles:!0,composed:!0}),this.context=i,this.callback=t,this.subscribe=e!=null?e:!1}};var Ps=class{constructor(i,t,e,o){var l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(c,f)=>{this.unsubscribe&&(this.unsubscribe!==f&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(c,f)),this.unsubscribe=f},this.host=i,t.context!==void 0){let c=t;this.context=c.context,this.callback=c.callback,this.subscribe=(l=c.subscribe)!=null?l:!1}else this.context=t,this.callback=e,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ro(this.context,this.t,this.subscribe))}};var kl=class{get value(){return this.o}set value(i){this.setValue(i)}setValue(i,t=!1){let e=t||!Object.is(i,this.o);this.o=i,e&&this.updateObservers()}constructor(i){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},i!==void 0&&(this.value=i)}addCallback(i,t,e){if(!e)return void i(this.value);this.subscriptions.has(i)||this.subscriptions.set(i,{disposer:()=>{this.subscriptions.delete(i)},consumerHost:t});let{disposer:o}=this.subscriptions.get(i);i(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var Zc=class extends Event{constructor(i){super("context-provider",{bubbles:!0,composed:!0}),this.context=i}},Fs=class extends kl{constructor(i,t,e){var o,l;super(t.context!==void 0?t.initialValue:e),this.onContextRequest=c=>{let f=c.composedPath()[0];c.context===this.context&&f!==this.host&&(c.stopPropagation(),this.addCallback(c.callback,f,c.subscribe))},this.onProviderRequest=c=>{let f=c.composedPath()[0];if(c.context!==this.context||f===this.host)return;let y=new Set;for(let[A,{consumerHost:F}]of this.subscriptions)y.has(A)||(y.add(A),F.dispatchEvent(new ro(this.context,A,!0)));c.stopPropagation()},this.host=i,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(l=(o=this.host).addController)==null||l.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Zc(this.context))}};var NT=B`
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
18
|
-
`,of=wT;var wl=class extends X{constructor({context:i,initialValue:t}){super(),this.context=new Fs(this,{context:i,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};wl.styles=[...X.styles,of];var sf=wl;var Te=sf;var De=n=>{class i extends n{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(o){super.firstUpdated(o),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],i.prototype,"autoFocusOnMount",2),i};var Jt=n=>{class i extends n{}return h([u({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var Zr=n=>{class i extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var Ct={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var NT=n=>{let{host:i,context:t,subscribe:e,callback:o,syncProperties:l}=n,c=(o||l)&&(f=>{l&&l.forEach(y=>{i.requestUpdate(y)}),o==null||o(f)});return new Ps(i,{context:t,callback:c,subscribe:e!=null?e:!0})},MT={consume:NT},xe=MT;var af=(n,i)=>!!(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING),nf=(n,i)=>!!(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING),LT=n=>n.getClientRects().length===0,OT=n=>{let{width:i,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:o}=n;return e+o+t+i===0},lf=n=>{if(!(n instanceof Element))return!1;let i=getComputedStyle(n),{overflowX:t,overflowY:e}=i;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},RT=n=>OT(n)||LT(n),DT=n=>{let{display:i,opacity:t,visibility:e}=n.style;return i==="none"||t==="0"||e==="hidden"||e==="collapse"},PT=n=>{let i=getComputedStyle(n);return i.visibility==="hidden"||i.height==="0"||i.display==="none"},FT=n=>getComputedStyle(n).display==="contents",$T=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||DT(n)||!FT(n)&&(PT(n)||RT(n)),VT=n=>n.disabled,zT=n=>n.getAttribute("tabindex")!=="-1",BT=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),UT=(n,i)=>i.some(t=>n.matches(t));var $s=(n,i={})=>{var f,y;if(!n)return[];let t=new Set((f=i==null?void 0:i.excludedElements)!=null?f:[]),e=(y=i==null?void 0:i.includeSelectors)!=null?y:[],o=new Set,l=A=>!(A instanceof HTMLSlotElement)&&($T(A)||VT(A))?"stop":UT(A,e)||zT(A)&&BT(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&o.add(A);let F=[];A instanceof HTMLElement&&A.shadowRoot?F=Array.from(A.shadowRoot.children):A.children.length&&(F=Array.from(A.children)),F.forEach(W=>{let Q=W,Z=l(Q);Z==="focusable"&&o.add(Q),Z!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(lt=>{lt instanceof HTMLElement&&c(lt)}):c(Q))})};return c(n),[...o]},Ya=(n=document)=>{var t;let i=n instanceof Document?n.activeElement:n;for(;(t=i==null?void 0:i.shadowRoot)!=null&&t.activeElement;)i=i.shadowRoot.activeElement;return i},df=n=>"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",Qc=n=>{let i=n.getRootNode();return i!==document&&i instanceof ShadowRoot?Qc(i.host):n},cf=n=>{let i=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,i.push(t);else break}return i};var xi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};xi.stack=new Set,xi.currentKeydownListener=null;var Nl=z.constructTagName("spatialnavigationprovider");var Jc={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 HT=Nl,th=HT;var hf=n=>{let{x:i,y:t,width:e,height:o,left:l,top:c,right:f,bottom:y}=n.getBoundingClientRect(),A=i+e/2,F=t+o/2;return{x:i,y:t,width:e,height:o,left:l,top:c,right:f,bottom:y,xMid:A,yMid:F}},GT=(n,i,t)=>Math.abs(t==="horizontal"?i.yMid-n.yMid:i.xMid-n.xMid),KT=(n,i)=>i==="horizontal"?n.height/2:n.width/2,WT=(n,i,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,i.bottom)-Math.max(n.top,i.top)):Math.max(0,Math.min(n.right,i.right)-Math.max(n.left,i.left)),YT=(n,i,t)=>i==="horizontal"?t/n.height:t/n.width,jT=(n,i,t,e)=>{let o=i.xMid-n.xMid,l=i.yMid-n.yMid,c=Math.sqrt(o*o+l*l),f=GT(n,i,t)+KT(n,t)*e.orthogonalWeight[t],y=WT(n,i,t),A=YT(n,t,y)*e.alignWeight;return c+f-A-Math.sqrt(y)},pf=(n,i,t,e)=>{if(!n||i.length===0)return[];if(i.length===1)return i[0]===n?[]:[{candidate:i[0],distance:0}];let o=hf(n),l=t==="left"||t==="right"?"horizontal":"vertical";return i.reduce((c,f)=>{if(f===n)return c;let y=hf(f);if(t==="left"&&y.right>o.xMid||t==="right"&&y.left<o.xMid||t==="up"&&y.bottom>o.yMid||t==="down"&&y.top<o.yMid)return c;let A=jT(o,y,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Uo=class extends UIEvent{constructor(i,t,e){super(i,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var ja=class extends Te{constructor(){super({context:th});this.navigationKeyMapping=Jc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Jc.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],o=new Uo("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(o)),o.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Uo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Ya();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return th}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,o])=>[o,e]))},this.context.updateObservers())}initActiveElement(t){let e=$s(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let o=t[0];o&&this.setActiveElementAndFocus(o)}}focusNext(t,e){let o=xi.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===o||y===this.root||lf(y)){c.push(...$s(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||y===o||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,e){var o;if(t){let l=new Uo("navbeforefocus",t,e);if((o=this.getActiveElement())==null||o.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var y,A;if(t.length===0)return;let o=this.getActiveElement(),l=Ya();if((!o||!t.includes(o)||o!==l)&&(l&&t.includes(l)?o=l:[o]=t,this.setActiveElement(o)),o!==Ya())return o;let c=`data-spatial-${e}`;if(l){let F=cf(l).find(Q=>Q.hasAttribute(c)),W=F==null?void 0:F.getAttribute(c);if(F&&W){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(W);if(Q)return Q}}return(A=pf(o,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new Uo("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=Ya();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(o=>o.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],ja.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],ja.prototype,"distanceCalculationWeights",2);var eh=ja;eh.register(Nl);var mf=eh;var q={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},qT={[Ct.ARROW_UP]:q.UP,[Ct.ARROW_DOWN]:q.DOWN,[Ct.ARROW_LEFT]:q.LEFT,[Ct.ARROW_RIGHT]:q.RIGHT,[Ct.ENTER]:q.ENTER,[Ct.SPACE]:q.SPACE,[Ct.ESCAPE]:q.ESCAPE,[Ct.TAB]:q.TAB,[Ct.HOME]:q.HOME,[Ct.END]:q.END},te={DEFAULT:"default",SPATIAL:"spatial"},wt=n=>{class i extends n{constructor(){super(...arguments);this.spatialNavigationContext=xe.consume({host:this,context:mf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?te.SPATIAL:te.DEFAULT}getActionForKeyEvent(o,l=!1){var y,A,F;let f=((F=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?F:qT)[o.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===q.LEFT)return q.RIGHT;if(f===q.RIGHT)return q.LEFT}return f}isDirectionAction(o){return o===q.UP||o===q.DOWN||o===q.LEFT||o===q.RIGHT}}return i};var Lt=n=>{class i extends n{constructor(...o){super(...o);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=o=>{this.keyDownEventHandledFlag&&o.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return i};var bt=B`
|
|
18
|
+
`,of=NT;var wl=class extends X{constructor({context:i,initialValue:t}){super(),this.context=new Fs(this,{context:i,initialValue:t})}render(){return this.updateContext(),S`<slot></slot>`}};wl.styles=[...X.styles,of];var sf=wl;var Te=sf;var De=n=>{class i extends n{constructor(){super(...arguments);this.elementToAutoFocus=null;this.autoFocusOnMount=!1}async firstUpdated(o){super.firstUpdated(o),this.autoFocusOnMount&&(await this.updateComplete,(this.elementToAutoFocus||this).focus())}}return h([u({type:Boolean,reflect:!0,attribute:"auto-focus-on-mount"})],i.prototype,"autoFocusOnMount",2),i};var Jt=n=>{class i extends n{}return h([u({reflect:!0,type:Boolean})],i.prototype,"disabled",2),i};var Zr=n=>{class i extends n{constructor(){super(...arguments);this.tabIndex=0}}return h([u({reflect:!0,type:Number})],i.prototype,"tabIndex",2),i};var Ct={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT_TAB:"Shift+Tab",SPACE:" ",TAB:"Tab"};var MT=n=>{let{host:i,context:t,subscribe:e,callback:o,syncProperties:l}=n,c=(o||l)&&(f=>{l&&l.forEach(y=>{i.requestUpdate(y)}),o==null||o(f)});return new Ps(i,{context:t,callback:c,subscribe:e!=null?e:!0})},LT={consume:MT},xe=LT;var af=(n,i)=>!!(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING),nf=(n,i)=>!!(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING),OT=n=>n.getClientRects().length===0,RT=n=>{let{width:i,height:t}=n.getBoundingClientRect(),{offsetWidth:e,offsetHeight:o}=n;return e+o+t+i===0},lf=n=>{if(!(n instanceof Element))return!1;let i=getComputedStyle(n),{overflowX:t,overflowY:e}=i;return t==="auto"||t==="scroll"||e==="auto"||e==="scroll"},DT=n=>RT(n)||OT(n),PT=n=>{let{display:i,opacity:t,visibility:e}=n.style;return i==="none"||t==="0"||e==="hidden"||e==="collapse"},FT=n=>{let i=getComputedStyle(n);return i.visibility==="hidden"||i.height==="0"||i.display==="none"},$T=n=>getComputedStyle(n).display==="contents",VT=n=>n.hasAttribute("hidden")||n.getAttribute("aria-hidden")==="true"||PT(n)||!$T(n)&&(FT(n)||DT(n)),zT=n=>n.disabled,BT=n=>n.getAttribute("tabindex")!=="-1",UT=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),HT=(n,i)=>i.some(t=>n.matches(t));var $s=(n,i={})=>{var f,y;if(!n)return[];let t=new Set((f=i==null?void 0:i.excludedElements)!=null?f:[]),e=(y=i==null?void 0:i.includeSelectors)!=null?y:[],o=new Set,l=A=>!(A instanceof HTMLSlotElement)&&(VT(A)||zT(A))?"stop":HT(A,e)||BT(A)&&UT(A)?"focusable":"continue",c=A=>{if(t.has(A))return;A instanceof HTMLElement&&l(A)==="focusable"&&o.add(A);let F=[];A instanceof HTMLElement&&A.shadowRoot?F=Array.from(A.shadowRoot.children):A.children.length&&(F=Array.from(A.children)),F.forEach(W=>{let Q=W,Z=l(Q);Z==="focusable"&&o.add(Q),Z!=="stop"&&(Q.shadowRoot?c(Q.shadowRoot):Q.tagName==="SLOT"?Q.assignedElements({flatten:!0}).forEach(lt=>{lt instanceof HTMLElement&&c(lt)}):c(Q))})};return c(n),[...o]},Ya=(n=document)=>{var t;let i=n instanceof Document?n.activeElement:n;for(;(t=i==null?void 0:i.shadowRoot)!=null&&t.activeElement;)i=i.shadowRoot.activeElement;return i},df=n=>"isWidthOverflowing"in n&&typeof n.isWidthOverflowing=="function",Qc=n=>{let i=n.getRootNode();return i!==document&&i instanceof ShadowRoot?Qc(i.host):n},cf=n=>{let i=[n],t=n;for(;t;){let e=t.getRootNode();if(e instanceof ShadowRoot)t=e.host,i.push(t);else break}return i};var xi=class{static get stackArray(){return Array.from(this.stack)}static getActiveTrap(){return this.stackArray.at(-1)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};xi.stack=new Set,xi.currentKeydownListener=null;var Nl=z.constructTagName("spatialnavigationprovider");var Jc={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 GT=Nl,th=GT;var hf=n=>{let{x:i,y:t,width:e,height:o,left:l,top:c,right:f,bottom:y}=n.getBoundingClientRect(),A=i+e/2,F=t+o/2;return{x:i,y:t,width:e,height:o,left:l,top:c,right:f,bottom:y,xMid:A,yMid:F}},KT=(n,i,t)=>Math.abs(t==="horizontal"?i.yMid-n.yMid:i.xMid-n.xMid),WT=(n,i)=>i==="horizontal"?n.height/2:n.width/2,YT=(n,i,t)=>t==="horizontal"?Math.max(0,Math.min(n.bottom,i.bottom)-Math.max(n.top,i.top)):Math.max(0,Math.min(n.right,i.right)-Math.max(n.left,i.left)),jT=(n,i,t)=>i==="horizontal"?t/n.height:t/n.width,qT=(n,i,t,e)=>{let o=i.xMid-n.xMid,l=i.yMid-n.yMid,c=Math.sqrt(o*o+l*l),f=KT(n,i,t)+WT(n,t)*e.orthogonalWeight[t],y=YT(n,i,t),A=jT(n,t,y)*e.alignWeight;return c+f-A-Math.sqrt(y)},pf=(n,i,t,e)=>{if(!n||i.length===0)return[];if(i.length===1)return i[0]===n?[]:[{candidate:i[0],distance:0}];let o=hf(n),l=t==="left"||t==="right"?"horizontal":"vertical";return i.reduce((c,f)=>{if(f===n)return c;let y=hf(f);if(t==="left"&&y.right>o.xMid||t==="right"&&y.left<o.xMid||t==="up"&&y.bottom>o.yMid||t==="down"&&y.top<o.yMid)return c;let A=qT(o,y,l,e);return c.push({candidate:f,distance:A}),c},[]).sort((c,f)=>c.distance-f.distance)};var Uo=class extends UIEvent{constructor(i,t,e){super(i,{bubbles:!0,cancelable:!0,composed:!0,view:window}),this.action=e,this.relatedTarget=t}};var ja=class extends Te{constructor(){super({context:th});this.navigationKeyMapping=Jc.SPATIAL_NAVIGATION_KEY_MAPPING;this.distanceCalculationWeights=Jc.WEIGHTS;this.root=this;this.initialHistoryLength=window.history.length;this.handleKeyDown=t=>{var c;if(t.shiftKey||t.ctrlKey||t.altKey||t.metaKey||!this.navigationKeys.includes(t.key))return;let e=this.context.value.keyToActionMap[t.key],o=new Uo("navbeforeprocess",this,e);if(t.target&&((c=t.composedPath()[0]||t.target)==null||c.dispatchEvent(o)),o.defaultPrevented)return;let l=!1;switch(e){case"up":l=this.focusNext(t,"up");break;case"down":l=this.focusNext(t,"down");break;case"left":l=this.focusNext(t,"left");break;case"right":l=this.focusNext(t,"right");break;case"enter":l=this.pressEnter();break;case"escape":l=this.goBack();break;default:}l?t.preventDefault():this.dispatchEvent(new Uo("navnotarget",this,e))};this.activeElementObserverCallback=()=>{let t=this.getActiveElement();if(!t||!t.isConnected)if(this.root.contains(document.activeElement)){let e=Ya();e&&this.setActiveElement(e)}else this.initActiveElement(t)};this.handleFocus=t=>{this.initActiveElement(t.target)};this.activeElementObserver=new MutationObserver(this.activeElementObserverCallback)}get navigationKeys(){return[this.navigationKeyMapping.up,this.navigationKeyMapping.down,this.navigationKeyMapping.left,this.navigationKeyMapping.right,this.navigationKeyMapping.enter,this.navigationKeyMapping.escape]}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("focus",this.handleFocus),this.initActiveElement()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("focus",this.handleFocus),this.activeElement=void 0,this.activeElementObserver.disconnect()}static get Context(){return th}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,o])=>[o,e]))},this.context.updateObservers())}initActiveElement(t){let e=$s(this.root);this.findActiveElement(e,t)}findActiveElement(t,e){if(!e||!t.includes(e)){let o=t[0];o&&this.setActiveElementAndFocus(o)}}focusNext(t,e){let o=xi.getActiveTrap(),l=null,c=[],f=t.composedPath();f=f.includes(this.root)?f:[this.root];for(let y of f)if(y===o||y===this.root||lf(y)){c.push(...$s(y,{excludedElements:l?[l]:void 0,includeSelectors:["[data-spatial-focusable]"]}));let A=this.focusNextInFocusableAria(c,e);if(A||y===o||y===this.root)return A&&this.emitNavBeforeFocusEvent(A,e),!!A;l=y}return!1}emitNavBeforeFocusEvent(t,e){var o;if(t){let l=new Uo("navbeforefocus",t,e);if((o=this.getActiveElement())==null||o.dispatchEvent(l),!l.defaultPrevented)return this.setActiveElementAndFocus(t),!0}return!1}focusNextInFocusableAria(t,e){var y,A;if(t.length===0)return;let o=this.getActiveElement(),l=Ya();if((!o||!t.includes(o)||o!==l)&&(l&&t.includes(l)?o=l:[o]=t,this.setActiveElement(o)),o!==Ya())return o;let c=`data-spatial-${e}`;if(l){let F=cf(l).find(Q=>Q.hasAttribute(c)),W=F==null?void 0:F.getAttribute(c);if(F&&W){let Q=(y=F.getRootNode())==null?void 0:y.getElementById(W);if(Q)return Q}}return(A=pf(o,t,e,this.distanceCalculationWeights)[0])==null?void 0:A.candidate}emitGoBackEvent(t){let e=new Uo("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=Ya();return t instanceof HTMLElement?(t.click(),!0):!1}goBack(){let t=$s(this.root).find(o=>o.hasAttribute("data-spatial-go-back")),e=this.emitGoBackEvent(t);return t&&!e?(t.click(),!0):window.history.length>this.initialHistoryLength?(window.history.back(),!0):!1}};h([u({attribute:!1})],ja.prototype,"navigationKeyMapping",2),h([u({attribute:!1})],ja.prototype,"distanceCalculationWeights",2);var eh=ja;eh.register(Nl);var mf=eh;var q={ENTER:"enter",ESCAPE:"escape",UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right",SPACE:"space",TAB:"tab",HOME:"home",END:"end"},XT={[Ct.ARROW_UP]:q.UP,[Ct.ARROW_DOWN]:q.DOWN,[Ct.ARROW_LEFT]:q.LEFT,[Ct.ARROW_RIGHT]:q.RIGHT,[Ct.ENTER]:q.ENTER,[Ct.SPACE]:q.SPACE,[Ct.ESCAPE]:q.ESCAPE,[Ct.TAB]:q.TAB,[Ct.HOME]:q.HOME,[Ct.END]:q.END},te={DEFAULT:"default",SPATIAL:"spatial"},wt=n=>{class i extends n{constructor(){super(...arguments);this.spatialNavigationContext=xe.consume({host:this,context:mf.Context})}getKeyboardNavMode(){var l;return((l=this.spatialNavigationContext)==null?void 0:l.value)?te.SPATIAL:te.DEFAULT}getActionForKeyEvent(o,l=!1){var y,A,F;let f=((F=(A=(y=this.spatialNavigationContext)==null?void 0:y.value)==null?void 0:A.keyToActionMap)!=null?F:XT)[o.key];if(l){if(!(window.getComputedStyle(this).direction==="rtl"))return f;if(f===q.LEFT)return q.RIGHT;if(f===q.RIGHT)return q.LEFT}return f}isDirectionAction(o){return o===q.UP||o===q.DOWN||o===q.LEFT||o===q.RIGHT}}return i};var Lt=n=>{class i extends n{constructor(...o){super(...o);this.keyDownEventHandledFlag=!1;this.keyDownEventHandledHandler=()=>{setTimeout(()=>{this.keyDownEventHandledFlag=!1})};this.handleNavBeforeProcessEvent=o=>{this.keyDownEventHandledFlag&&o.preventDefault()};this.addEventListener("keydown",this.keyDownEventHandledHandler),this.addEventListener("navbeforeprocess",this.handleNavBeforeProcessEvent)}keyDownEventHandled(){this.keyDownEventHandledFlag=!0}get isKeyDownEventHandled(){return this.keyDownEventHandledFlag}}return i};var bt=B`
|
|
19
19
|
:host {
|
|
20
20
|
align-items: center;
|
|
21
21
|
display: flex;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
`];var
|
|
81
|
+
`];var ZT=[bt,B`
|
|
82
82
|
:host {
|
|
83
83
|
--mdc-button-height: unset;
|
|
84
84
|
--mdc-button-background: transparent;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
:host([size='20']) {
|
|
132
132
|
--mdc-button-height: 1.25rem;
|
|
133
133
|
}
|
|
134
|
-
`,...yt()],uf=
|
|
134
|
+
`,...yt()],uf=ZT;var pr=class extends Lt(wt(De(Zr(Jt(X))))){constructor(){super();this.size=Ka.SIZE;this.role=Ka.ROLE;this.type=Ka.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||Ka.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Rs.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Rs.RESET&&this.form&&this.form.reset()}setActive(t,e){this.ariaStateKey&&this.ariaStateKey.split(",").filter(l=>l.trim().startsWith("aria-")).forEach(l=>{e===!0?t.setAttribute(l.trim(),"true"):e===!1?t.setAttribute(l.trim(),"false"):t.removeAttribute(l.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===q.ENTER||e===q.SPACE)&&(this.classList.add("pressed"),e===q.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}handleKeyUp(t){let e=this.getActionForKeyEvent(t);if(e===q.ENTER||e===q.SPACE){let o=this.classList.contains("pressed");this.classList.remove("pressed"),e===q.SPACE&&o&&this.triggerClickEvent()}}render(){return S` <slot></slot> `}};pr.formAssociated=!0,pr.styles=[...X.styles,...uf],h([u({type:Boolean,reflect:!0})],pr.prototype,"active",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],pr.prototype,"softDisabled",2),h([u({type:Number,reflect:!0})],pr.prototype,"size",2),h([u({type:String,reflect:!0})],pr.prototype,"role",2),h([u({type:String,reflect:!0})],pr.prototype,"ariaStateKey",2),h([u({reflect:!0})],pr.prototype,"type",2),h([u({type:String,reflect:!0})],pr.prototype,"name",2),h([u({type:String,reflect:!0})],pr.prototype,"value",2);var ue=pr;var Ml=n=>{class i extends n{get overflowElement(){return this}isWidthOverflowing(){let e=this.overflowElement;return e.scrollWidth>e.clientWidth}}return i};var QT=B`
|
|
135
135
|
:host {
|
|
136
136
|
--mdc-button-prefix-icon-size: 1rem;
|
|
137
137
|
--mdc-button-postfix-icon-size: 1rem;
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
:host::part(postfix-icon) {
|
|
417
417
|
flex-shrink: 0;
|
|
418
418
|
}
|
|
419
|
-
`,ff=[
|
|
419
|
+
`,ff=[QT];var Ho=n=>{let i=n.split("-"),t=["bold","filled","regular","light"];return i.filter(e=>!t.includes(e)).join("-")};var Jr=class extends Ml(_l(ue)){constructor(){super(...arguments);this.size=er.SIZE;this.inverted=er.INVERTED;this.role=tt.BUTTON}get overflowElement(){return this.buttonTextPart}update(t){super.update(t),t.has("active")&&this.inferFilledIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(t){t?(this.prefixIcon&&(this.prefixFilledIconName=`${Ho(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Ho(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return S`
|
|
420
420
|
<slot name="prefix" part="prefix">
|
|
421
421
|
${this.prefixFilledIconName?S` <mdc-icon
|
|
422
422
|
name="${this.prefixFilledIconName}"
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
length-unit="rem"
|
|
433
433
|
></mdc-icon>`:""}
|
|
434
434
|
</slot>
|
|
435
|
-
`}};Jr.styles=[...ue.styles,...ff],h([Ut('slot[part="button-text"]')],Jr.prototype,"buttonTextPart",2),h([u({type:Number})],Jr.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Jr.prototype,"inverted",2),h([u({type:String,reflect:!0})],Jr.prototype,"role",2),h([nt()],Jr.prototype,"prefixFilledIconName",2),h([nt()],Jr.prototype,"postfixFilledIconName",2);var Go=Jr;var Ll=z.constructTagName("iconprovider"),vf=["svg"],gf=["em","rem","px","%"],
|
|
435
|
+
`}};Jr.styles=[...ue.styles,...ff],h([Ut('slot[part="button-text"]')],Jr.prototype,"buttonTextPart",2),h([u({type:Number})],Jr.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Jr.prototype,"inverted",2),h([u({type:String,reflect:!0})],Jr.prototype,"role",2),h([nt()],Jr.prototype,"prefixFilledIconName",2),h([nt()],Jr.prototype,"postfixFilledIconName",2);var Go=Jr;var Ll=z.constructTagName("iconprovider"),vf=["svg"],gf=["em","rem","px","%"],JT={px:16,em:1,rem:1,"%":100},Ai={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:JT.em,ICON_SET:"momentum-icons"};var Ol=class{};Ol.context=Ll;var Rl=Ol;var ti=class extends Te{constructor(){super({context:Rl.context,initialValue:new Rl});this.iconSet=Ai.ICON_SET;this.fileExtension=Ai.FILE_EXTENSION;this.lengthUnit=Ai.LENGTH_UNIT;this.size=Ai.SIZE}static get Context(){return Rl.context}updateValuesInContext(){this.fileExtension&&vf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ai.FILE_EXTENSION,this.context.value.fileExtension=Ai.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&&gf.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ai.LENGTH_UNIT,this.context.value.lengthUnit=Ai.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})],ti.prototype,"iconSet",2),h([u({type:String})],ti.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],ti.prototype,"fileExtension",2),h([u({type:String,attribute:"length-unit",reflect:!0})],ti.prototype,"lengthUnit",2),h([u({type:Number,reflect:!0})],ti.prototype,"size",2),h([u({type:String,attribute:"cache-strategy"})],ti.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],ti.prototype,"cacheName",2);var qa=ti;var tx=[bt,B`
|
|
436
436
|
:host {
|
|
437
437
|
--mdc-icon-fill-color: currentColor;
|
|
438
438
|
--mdc-icon-size: var(--computed-icon-size);
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
width: 100%;
|
|
448
448
|
fill: var(--mdc-icon-fill-color);
|
|
449
449
|
}
|
|
450
|
-
`,...yt()],bf=
|
|
450
|
+
`,...yt()],bf=tx;var Xa={},yf=async n=>(Xa[n]===void 0&&(Xa[n]=new Map),{async set(i,t){Xa[n].set(i.url,await t.text())},async get(i){return Xa[n].get(i.url)},async delete(i){Xa[n].delete(i.url)}}),Ef=async n=>{let i=await caches.open(n);return{set:async(t,e)=>{await i.put(t,e)},get:async t=>{let e=await i.match(t);return e==null?void 0:e.text()},delete:async t=>{await i.delete(t)}}},Dl=async(n,i)=>i==="in-memory-cache"?yf(n):Ef(n);var Tf=async n=>fetch(n).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the icon!");return i}),xf=async({url:n,name:i,fileExtension:t,cacheStrategy:e,cacheName:o,renewSignal:l})=>{let c=l(),f=new Request(`${n}/${i}.${t}`,{signal:c});return!o||!e||!["in-memory-cache","web-cache-api"].includes(e)?Tf(f).then(y=>y.text()):Dl(o,e).then(y=>y.get(f).then(A=>A||Tf(f.clone()).then(F=>{var W;return F.status<400&&F.headers.has("content-type")?(W=y.set)==null?void 0:W.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Icon ${i}, ${A}`)}))};var Af=z.constructTagName("icon"),rh={NAME:void 0,SIZE:1};var mr=class extends X{constructor(){super();this.name=rh.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.iconProviderContext=xe.consume({host:this,context:qa.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:o,cacheName:l,iconSet:c,cacheStrategy:f}=this.iconProviderContext.value;if(c==="custom-icons"&&o&&e&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return xf({url:o,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIconElement(A);this.handleIconLoadedSuccess(F)}).catch(A=>{this.handleIconLoadedFailure(A)})}if(c==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(y=>{this.handleIconLoadedSuccess(y.default())}).catch(y=>{this.handleIconLoadedFailure(y)})}let t=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(t),Promise.reject(t)}handleIconLoadedSuccess(t){this.iconData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIconLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let e=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",e)}}get computedIconSize(){var t,e;return(e=(t=this.size)!=null?t:this.sizeFromContext)!=null?e:rh.SIZE}updated(t){var e,o,l,c;super.updated(t),t.has("name")&&this.getIconData().catch(f=>{f.name!=="AbortError"&&this.onerror&&this.onerror(f)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?"img":null),(t.has("size")||t.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((e=this.iconProviderContext.value)==null?void 0:e.lengthUnit)&&(this.lengthUnitFromContext=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((l=this.iconProviderContext.value)==null?void 0:l.size)&&(this.sizeFromContext=(c=this.iconProviderContext.value)==null?void 0:c.size,this.updateSize())}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.iconData} `}};mr.styles=[...X.styles,...bf],h([nt()],mr.prototype,"iconData",2),h([nt()],mr.prototype,"lengthUnitFromContext",2),h([nt()],mr.prototype,"sizeFromContext",2),h([u({type:String,reflect:!0})],mr.prototype,"name",2),h([u({type:Number})],mr.prototype,"size",2),h([u({type:String,attribute:"length-unit"})],mr.prototype,"lengthUnit",2),h([u({type:String,attribute:"aria-label"})],mr.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],mr.prototype,"ariaLabelledby",2),h([nt()],mr.prototype,"abortController",2);var ih=mr;ih.register(Af);var ex=ih;Go.register(Ti);var rx=Go;var Sf=B`
|
|
451
451
|
:host::part(text) {
|
|
452
452
|
font-size: unset;
|
|
453
453
|
font-weight: unset;
|
|
@@ -690,14 +690,14 @@
|
|
|
690
690
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
|
691
691
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
|
692
692
|
}
|
|
693
|
-
`;var
|
|
693
|
+
`;var ix=[B`
|
|
694
694
|
:host {
|
|
695
695
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
|
696
696
|
|
|
697
697
|
display: block;
|
|
698
698
|
font-family: var(--mdc-text-font-family);
|
|
699
699
|
}
|
|
700
|
-
`,Sf],If=
|
|
700
|
+
`,Sf],If=ix;var Za=z.constructTagName("text"),ot={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},mt={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Ce={TYPE:ot.BODY_MIDSIZE_MEDIUM,TEXT_ELEMENT_TAGNAME:mt.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ko=class extends Ml(X){constructor(){super(...arguments);this.type=Ce.TYPE;this.tagname=Ce.TEXT_ELEMENT_TAGNAME}get overflowElement(){return[mt.SPAN,mt.SMALL].includes(this.tagname)?this:this.textPartElement}render(){switch(this.tagname){case mt.H1:return S`<h1 part=${Ce.CSS_PART_TEXT}><slot></slot></h1>`;case mt.H2:return S`<h2 part=${Ce.CSS_PART_TEXT}><slot></slot></h2>`;case mt.H3:return S`<h3 part=${Ce.CSS_PART_TEXT}><slot></slot></h3>`;case mt.H4:return S`<h4 part=${Ce.CSS_PART_TEXT}><slot></slot></h4>`;case mt.H5:return S`<h5 part=${Ce.CSS_PART_TEXT}><slot></slot></h5>`;case mt.H6:return S`<h6 part=${Ce.CSS_PART_TEXT}><slot></slot></h6>`;case mt.DIV:return S`<div part=${Ce.CSS_PART_TEXT}><slot></slot></div>`;case mt.SPAN:return S`<span part=${Ce.CSS_PART_TEXT}><slot></slot></span>`;case mt.SMALL:return S`<small part=${Ce.CSS_PART_TEXT}><slot></slot></small>`;case mt.P:default:return S`<p part=${Ce.CSS_PART_TEXT}><slot></slot></p>`}}};Ko.styles=[...X.styles,...If],h([Ut(`[part='${Ce.CSS_PART_TEXT}']`)],Ko.prototype,"textPartElement",2),h([u({attribute:"type",reflect:!0,type:String})],Ko.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Ko.prototype,"tagname",2);var oh=Ko;oh.register(Za);var ox=oh;var J=n=>n!=null?n:K;var ke=[];for(let n=0;n<256;++n)ke.push((n+256).toString(16).slice(1));function _f(n,i=0){return(ke[n[i+0]]+ke[n[i+1]]+ke[n[i+2]]+ke[n[i+3]]+"-"+ke[n[i+4]]+ke[n[i+5]]+"-"+ke[n[i+6]]+ke[n[i+7]]+"-"+ke[n[i+8]]+ke[n[i+9]]+"-"+ke[n[i+10]]+ke[n[i+11]]+ke[n[i+12]]+ke[n[i+13]]+ke[n[i+14]]+ke[n[i+15]]).toLowerCase()}var sh,sx=new Uint8Array(16);function ah(){if(!sh){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sh=crypto.getRandomValues.bind(crypto)}return sh(sx)}var ax=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nh={randomUUID:ax};function nx(n,i,t){var o,l,c;if(nh.randomUUID&&!i&&!n)return nh.randomUUID();n=n||{};let e=(c=(l=n.random)!=null?l:(o=n.rng)==null?void 0:o.call(n))!=null?c:ah();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,i){if(t=t||0,t<0||t+16>i.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)i[t+f]=e[f];return i}return _f(e)}var Pe=nx;var Cf=z.constructTagName("accordiongroup"),lh={SMALL:"small",LARGE:"large"},lx={BORDERLESS:"borderless",CONTAINED:"contained",STACKED:"stacked"},Qa={SIZE:lh.SMALL,VARIANT:lx.STACKED};var Pl=z.constructTagName("accordionbutton"),Ja={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},dx={DEFAULT:"default",BORDERLESS:"borderless"},tn={LEADING:"leading",TRAILING:"trailing"},ei={EXPANDED:!1,SIZE:lh.SMALL,DATA_ARIA_LEVEL:3,VARIANT:dx.DEFAULT,ICON_NAME:Ja.ARROW_UP,TOGGLE_POSITION:tn.TRAILING};var cx=B`
|
|
701
701
|
:host {
|
|
702
702
|
--mdc-accordionbutton-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
703
703
|
--mdc-accordionbutton-hover-color: var(--mds-color-theme-background-primary-hover);
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
:host([variant='default']:not([expanded]))::part(header-section) {
|
|
815
815
|
border-bottom: none;
|
|
816
816
|
}
|
|
817
|
-
`,kf=[
|
|
817
|
+
`,kf=[cx,...yt(!0)];var Fr=class extends Lt(wt(Jt(X))){constructor(){super(...arguments);this.size=ei.SIZE;this.variant=ei.VARIANT;this.dataAriaLevel=ei.DATA_ARIA_LEVEL;this.expanded=ei.EXPANDED;this.togglePosition=ei.TOGGLE_POSITION;this.headSectionId=`head-section-${Pe()}`;this.bodySectionId=`body-section-${Pe()}`}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===q.ENTER||e===q.SPACE)&&(this.handleHeaderClick(),this.keyDownEventHandled())}renderIcon(t){return t?S`<mdc-icon name="${t}" length-unit="rem" size="1"></mdc-icon>`:K}renderHeadingText(){return this.headerText?S`<mdc-text
|
|
818
818
|
id="${this.headSectionId}"
|
|
819
819
|
type="${ot.BODY_LARGE_REGULAR}"
|
|
820
820
|
tagname=${mt.SPAN}
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
role="${tt.REGION}"
|
|
851
851
|
>
|
|
852
852
|
<slot></slot>
|
|
853
|
-
</div>`:K}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=ei.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=ei.SIZE),t.has("variant")&&!this.variant&&(this.variant=ei.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=ei.TOGGLE_POSITION)}render(){return S` ${this.renderHeader()} ${this.renderBody()} `}};Fr.styles=[...X.styles,...kf],h([u({type:String,reflect:!0})],Fr.prototype,"size",2),h([u({type:String,reflect:!0})],Fr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Fr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],Fr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Fr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Fr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],Fr.prototype,"togglePosition",2);var Vs=Fr;var
|
|
853
|
+
</div>`:K}updated(t){super.updated(t),t.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`),t.has("dataAriaLevel")&&!this.dataAriaLevel&&(this.dataAriaLevel=ei.DATA_ARIA_LEVEL),t.has("size")&&!this.size&&(this.size=ei.SIZE),t.has("variant")&&!this.variant&&(this.variant=ei.VARIANT),t.has("togglePosition")&&!this.togglePosition&&(this.togglePosition=ei.TOGGLE_POSITION)}render(){return S` ${this.renderHeader()} ${this.renderBody()} `}};Fr.styles=[...X.styles,...kf],h([u({type:String,reflect:!0})],Fr.prototype,"size",2),h([u({type:String,reflect:!0})],Fr.prototype,"variant",2),h([u({type:Number,reflect:!0,attribute:"data-aria-level"})],Fr.prototype,"dataAriaLevel",2),h([u({type:Boolean,reflect:!0})],Fr.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Fr.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],Fr.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"toggle-position"})],Fr.prototype,"togglePosition",2);var Vs=Fr;var hx=B`
|
|
854
854
|
:host::part(header-section) {
|
|
855
855
|
display: flex;
|
|
856
856
|
align-items: center;
|
|
@@ -864,7 +864,7 @@
|
|
|
864
864
|
:host::part(toggle-button) {
|
|
865
865
|
margin: 0.125rem;
|
|
866
866
|
}
|
|
867
|
-
`,wf=[
|
|
867
|
+
`,wf=[hx];var oo=class extends Vs{handleHeaderShownEvent(i){i.stopPropagation()}update(i){super.update(i),i.has("disabled")&&[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}renderToggleButton(){return S`
|
|
868
868
|
<mdc-button
|
|
869
869
|
part="toggle-button"
|
|
870
870
|
?disabled="${this.disabled}"
|
|
@@ -890,7 +890,7 @@
|
|
|
890
890
|
${i?K:this.renderToggleButton()}
|
|
891
891
|
</div>
|
|
892
892
|
</div>
|
|
893
|
-
`}};oo.styles=[...Vs.styles,...wf],h([Kt({slot:"leading-controls"})],oo.prototype,"leadingControlsSlot",2),h([Kt({slot:"trailing-controls"})],oo.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],oo.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],oo.prototype,"closeButtonAriaLabel",2);var dh=oo;var Fl=z.constructTagName("accordion");dh.register(Fl);var
|
|
893
|
+
`}};oo.styles=[...Vs.styles,...wf],h([Kt({slot:"leading-controls"})],oo.prototype,"leadingControlsSlot",2),h([Kt({slot:"trailing-controls"})],oo.prototype,"trailingControlsSlot",2),h([u({type:String,attribute:"open-button-aria-label",reflect:!0})],oo.prototype,"openButtonAriaLabel",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],oo.prototype,"closeButtonAriaLabel",2);var dh=oo;var Fl=z.constructTagName("accordion");dh.register(Fl);var px=dh;var mx=B`
|
|
894
894
|
:host {
|
|
895
895
|
--mdc-accordiongroup-items-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
896
896
|
|
|
@@ -934,7 +934,7 @@
|
|
|
934
934
|
:host([variant='borderless']) ::slotted(mdc-accordionbutton[expanded]) {
|
|
935
935
|
border-bottom: 1px solid var(--mdc-accordiongroup-items-border-color);
|
|
936
936
|
}
|
|
937
|
-
`,Nf=[
|
|
937
|
+
`,Nf=[mx,...yt()];var Si=class extends X{constructor(){super();this.size=Qa.SIZE;this.variant=Qa.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(o=>{o.setAttribute(t,e)}),[...this.accordionButtonItems].forEach(o=>{o.setAttribute(t,e)})}updated(t){super.updated(t),t.has("size")&&(this.size||(this.size=Qa.SIZE),this.setChildrenAccordionAttributes("size",this.size)),t.has("variant")&&(this.variant||(this.variant=Qa.VARIANT),this.setChildrenAccordionAttributes("variant",this.variant))}render(){return S` <slot></slot> `}};Si.styles=[...X.styles,...Nf],h([u({type:String,reflect:!0})],Si.prototype,"size",2),h([u({type:String,reflect:!0})],Si.prototype,"variant",2),h([u({type:Boolean,reflect:!0,attribute:"allow-multiple"})],Si.prototype,"allowMultiple",2),h([Kt({selector:Fl})],Si.prototype,"accordionItems",2),h([Kt({selector:Pl})],Si.prototype,"accordionButtonItems",2);var ch=Si;ch.register(Cf);var ux=ch;Vs.register(Pl);var fx=Vs;var le=n=>{class i extends n{}return h([u({type:String,attribute:"icon-name",reflect:!0})],i.prototype,"iconName",2),i};var vx=B`
|
|
938
938
|
:host {
|
|
939
939
|
height: 1.5rem;
|
|
940
940
|
gap: 0.25rem;
|
|
@@ -1047,16 +1047,16 @@
|
|
|
1047
1047
|
--mdc-chip-icon-color: ButtonText;
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
`,Mf=[bt,
|
|
1050
|
+
`,Mf=[bt,vx,...yt()];var Lf=z.constructTagName("alertchip"),Wo={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},zs={VARIANT:Wo.NEUTRAL,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:zo[24],ROLE:tt.BUTTON};var Of=n=>({[Wo.ERROR]:"error-legacy-badge-filled",[Wo.INFORMATIONAL]:"info-badge-filled",[Wo.NEUTRAL]:"dnd-presence-badge-filled",[Wo.SUCCESS]:"check-circle-badge-filled",[Wo.WARNING]:"warning-badge-filled"})[n];var Bs=class extends le(ue){constructor(){super(...arguments);this.variant=zs.VARIANT}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=zs.SIZE,this.role=zs.ROLE}render(){return S`
|
|
1051
1051
|
<mdc-icon part="icon" name="${this.iconName||Of(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
|
1052
1052
|
${this.label?S`<mdc-text part="label" type="${zs.TEXT_TYPE}" tagname="${zs.TAG_NAME}"
|
|
1053
1053
|
>${this.label}</mdc-text
|
|
1054
1054
|
>`:K}
|
|
1055
|
-
`}};Bs.styles=[...X.styles,...Mf],h([u({type:String,reflect:!0})],Bs.prototype,"variant",2),h([u({type:String})],Bs.prototype,"label",2);var hh=Bs;hh.register(Lf);var
|
|
1055
|
+
`}};Bs.styles=[...X.styles,...Mf],h([u({type:String,reflect:!0})],Bs.prototype,"variant",2),h([u({type:String})],Bs.prototype,"label",2);var hh=Bs;hh.register(Lf);var gx=hh;var{I:bx}=Yu;var $l=n=>n.strings===void 0,Rf=()=>document.createComment(""),Us=(n,i,t)=>{var l;let e=n._$AA.parentNode,o=i===void 0?n._$AB:i._$AA;if(t===void 0){let c=e.insertBefore(Rf(),o),f=e.insertBefore(Rf(),o);t=new bx(c,f,n,n.options)}else{let c=t._$AB.nextSibling,f=t._$AM,y=f!==n;if(y){let A;(l=t._$AQ)==null||l.call(t,n),t._$AM=n,t._$AP!==void 0&&(A=n._$AU)!==f._$AU&&t._$AP(A)}if(c!==o||y){let A=t._$AA;for(;A!==c;){let F=A.nextSibling;e.insertBefore(A,o),A=F}}}return t},so=(n,i,t=n)=>(n._$AI(i,t),n),yx={},Vl=(n,i=yx)=>n._$AH=i,Df=n=>n._$AH,zl=n=>{var e;(e=n._$AP)==null||e.call(n,!1,!0);let i=n._$AA,t=n._$AB.nextSibling;for(;i!==t;){let o=i.nextSibling;i.remove(),i=o}};var ur={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ii=n=>(...i)=>({_$litDirective$:n,values:i}),ri=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,e){this.t=i,this._$AM=t,this.i=e}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var en=(n,i)=>{var e;let t=n._$AN;if(t===void 0)return!1;for(let o of t)(e=o._$AO)==null||e.call(o,i,!1),en(o,i);return!0},Bl=n=>{let i,t;do{if((i=n._$AM)===void 0)break;t=i._$AN,t.delete(n),n=i}while((t==null?void 0:t.size)===0)},Pf=n=>{for(let i;i=n._$AM;n=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(n))break;t.add(n),xx(i)}};function Ex(n){this._$AN!==void 0?(Bl(this),this._$AM=n,Pf(this)):this._$AM=n}function Tx(n,i=!1,t=0){let e=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(i)if(Array.isArray(e))for(let l=t;l<e.length;l++)en(e[l],!1),Bl(e[l]);else e!=null&&(en(e,!1),Bl(e));else en(this,n)}var xx=n=>{var i,t;n.type==ur.CHILD&&((i=n._$AP)!=null||(n._$AP=Tx),(t=n._$AQ)!=null||(n._$AQ=Ex))},Ul=class extends ri{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),Pf(this),this.isConnected=i._$AU}_$AO(i,t=!0){var e,o;i!==this.isConnected&&(this.isConnected=i,i?(e=this.reconnected)==null||e.call(this):(o=this.disconnected)==null||o.call(this)),t&&(en(this,i),Bl(this))}setValue(i){if($l(this.t))this.t._$AI(i,this);else{let t=[...this.t._$AH];t[this.i]=i,this.t._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Ff=()=>new mh,mh=class{},ph=new WeakMap,$f=Ii(class extends Ul{render(n){return K}update(n,[i]){var e;let t=i!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=i,this.ht=(e=n.options)==null?void 0:e.host,this.rt(this.ct=n.element)),K}rt(n){var i;if(this.isConnected||(n=void 0),typeof this.Y=="function"){let t=(i=this.ht)!=null?i:globalThis,e=ph.get(t);e===void 0&&(e=new WeakMap,ph.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,i,t;return typeof this.Y=="function"?(i=ph.get((n=this.ht)!=null?n:globalThis))==null?void 0:i.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Uf=vT(Vf());var uh={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 Ax=[bt,B`
|
|
1056
1056
|
:host svg {
|
|
1057
1057
|
display: block;
|
|
1058
1058
|
}
|
|
1059
|
-
`],zf=
|
|
1059
|
+
`],zf=Ax;var Bf=z.constructTagName("animation"),fh={AUTO_PLAY:!0,LOOP:"true"};var _i=class extends X{constructor(){super(...arguments);this.loop=fh.LOOP;this.autoplay=fh.AUTO_PLAY;this.ariaLabel=null;this.ariaLabelledby=null;this.containerRef=Ff();this.onCompleteHandler=()=>{let t=new CustomEvent("complete",{detail:{name:this.name},bubbles:!0});this.dispatchEvent(t)}}get animation(){return this.lottieInstance}getLoopValue(){return this.loop==="true"?!0:this.loop==="false"?!1:this.loop?Number(this.loop):!0}onLoadSuccessHandler(t){this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy()),this.containerRef.value&&(this.lottieInstance=Uf.default.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:this.getLoopValue(),autoplay:this.autoplay,animationData:t,name:this.name}),this.lottieInstance.addEventListener("complete",this.onCompleteHandler)),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,cancelable:!0,detail:{name:this.name}}))}onLoadFailHandler(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}getAnimationData(){this.name&&uh[this.name]?import(`@momentum-design/animations/dist/lottie${uh[this.name].replace(/^\.\/lottie/,"")}`).then(e=>this.onLoadSuccessHandler(e.default)).catch(e=>this.onLoadFailHandler(e)):this.onLoadFailHandler(new Error(`Invalid animation name: ${this.name}`))}updated(t){super.updated(t),(t.has("name")||t.has("loop")||t.has("autoplay"))&&this.getAnimationData(),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?tt.IMG:null)}disconnectedCallback(){super.disconnectedCallback(),this.lottieInstance&&(this.lottieInstance.removeEventListener("complete",this.onCompleteHandler),this.lottieInstance.destroy(),this.lottieInstance=void 0)}render(){return S`<div aria-hidden="true" ${$f(this.containerRef)}></div>`}};_i.styles=[...X.styles,...zf],h([u({type:String,reflect:!0})],_i.prototype,"name",2),h([u({type:String,reflect:!0})],_i.prototype,"loop",2),h([u({type:Boolean,reflect:!0})],_i.prototype,"autoplay",2),h([u({type:String,attribute:"aria-label"})],_i.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],_i.prototype,"ariaLabelledby",2);var vh=_i;vh.register(Bf);var Sx=vh;var Gl=n=>{class i extends n{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(o){this.isFocusTrapActivated=o}activateFocusTrap(){this.setIsFocusTrapActivated(!0),xi.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),xi.deactivate(this),this.focusTrapIndex=-1}setFocusableElements(){this.shadowRoot&&(this.focusableElements=$s(this.shadowRoot))}setInitialFocus(o=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus({preventScroll:!0}))}calculateNextIndex(o,l){let{length:c}=this.focusableElements;if(o===-1)return l>0?0:c-1;let f=o+l;return this.shouldFocusTrapWrap?(f<0&&(f=c-1),f>=c&&(f=0)):(f<0&&(f=0),f>=c&&(f=c-1)),f}getDeepActiveElement(){var l;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((l=o.shadowRoot)!=null&&l.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(l=>this.isEqualFocusNode(o,l))}isEqualFocusNode(o,l){return o.nodeType>=0?l.isEqualNode(o)&&l===o:!1}trapFocus(o){if(this.setFocusableElements(),this.focusableElements.length===0)return;let l=this.getDeepActiveElement(),c=this.findElement(l);o.shiftKey?this.focusTrapIndex=this.calculateNextIndex(c,-1):this.focusTrapIndex=this.calculateNextIndex(c,1);let y=this.focusableElements[this.focusTrapIndex];y.tagName!=="IFRAME"&&y&&(o.preventDefault(),y.focus())}handleTabKeydown(o){this.isFocusTrapActivated&&o.key==="Tab"&&this.trapFocus(o)}}return h([u({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var Kl=n=>{class i extends n{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var Wl=z.constructTagName("link"),Yl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},jl={LARGE:1,MIDSIZE:.875,SMALL:.75},Hf={LINK_SIZE:Yl.LARGE};var Gf=z.constructTagName("card"),gh={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},Ix={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ae={VARIANT:gh.BORDER,ORIENTATION:Ix.VERTICAL,TITLE_TYPE:ot.HEADING_SMALL_BOLD,SUBTITLE_TYPE:ot.BODY_MIDSIZE_MEDIUM,TAGNAME:mt.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Wl,BUTTON:Ti};var Hs=n=>{class i extends n{updateFooterButtonColors(e){let o=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];o==null||o.forEach(l=>{e===gh.PROMOTIONAL?l.setAttribute("color",Bo.PROMOTIONAL):l.setAttribute("color",Bo.DEFAULT)})}handleFooterSlot(e,o){var c,f,y;let l=[];e===Ae.LINK&&((c=this.footerLink)!=null&&c.length)?l=this.footerLink:e===Ae.BUTTON&&o===$t.PRIMARY&&((f=this.footerButtonPrimary)!=null&&f.length)?l=this.footerButtonPrimary:e===Ae.BUTTON&&o===$t.SECONDARY&&((y=this.footerButtonSecondary)!=null&&y.length)&&(l=this.footerButtonSecondary);for(let A=1;A<l.length;A+=1)l[A].remove();l.forEach(A=>{A.matches(e)||A.remove(),o&&A.setAttribute("variant",o)})}renderFooter(){return S` <slot name="footer">
|
|
1060
1060
|
<div part="footer">
|
|
1061
1061
|
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(Ae.LINK)}></slot>
|
|
1062
1062
|
<slot
|
|
@@ -1068,7 +1068,7 @@
|
|
|
1068
1068
|
@slotchange=${()=>this.handleFooterSlot(Ae.BUTTON,$t.PRIMARY)}
|
|
1069
1069
|
></slot>
|
|
1070
1070
|
</div>
|
|
1071
|
-
</slot>`}}return h([Kt({slot:"footer-link"})],i.prototype,"footerLink",2),h([Kt({slot:"footer-button-primary"})],i.prototype,"footerButtonPrimary",2),h([Kt({slot:"footer-button-secondary"})],i.prototype,"footerButtonSecondary",2),i};var Be=[],Kf=1e3,
|
|
1071
|
+
</slot>`}}return h([Kt({slot:"footer-link"})],i.prototype,"footerLink",2),h([Kt({slot:"footer-button-primary"})],i.prototype,"footerButtonPrimary",2),h([Kt({slot:"footer-button-secondary"})],i.prototype,"footerButtonSecondary",2),i};var Be=[],Kf=1e3,_x=3,bh=-2,yh=-1,ao=class{constructor(i){this.host=i,i.addController(this)}hostConnected(){}hostDisconnected(){this.remove([this.host])}get length(){return Be.length}pushHost(){var i,t;return this.has(this.host)?!1:(Be.push(this.host),(t=(i=this.host).onComponentStackChanged)==null||t.call(i,"added"),!0)}popHost(){return this.popItem(this.host)}popItem(i){if(!this.has(i))return;let t=Be.filter(l=>l.stackGroupName===i.stackGroupName),e=t.indexOf(i),o=[];for(let l=t.length-1;l>=e;l-=1){let c=t[l];(c===i||c.triggerID!==i.triggerID)&&o.push(c)}return this.remove(o),i}pop(){var t;let i=Be.pop();return(t=i==null?void 0:i.onComponentStackChanged)==null||t.call(i,"removed"),i}popUntil(i){let t=[];for(let e=Be.length-1;e>=0;e-=1){let o=Be[e],l=i(o,e);if(l===!1)break;l!=="skip"&&t.push(o)}return this.remove(t)}peek(){return Be.at(-1)}remove(i){var o,l;let t=i.filter(c=>Be.includes(c)),e=t.reduce((c,f)=>Math.min(c,Be.indexOf(f)),1/0);t.forEach(c=>{Be.splice(Be.indexOf(c),1)}),t.forEach(c=>{var f;(f=c==null?void 0:c.onComponentStackChanged)==null||f.call(c,"removed")});for(let c=e;c<Be.length;c+=1)(l=(o=Be[c]).onComponentStackChanged)==null||l.call(o,"moved");return t}has(i){return Be.includes(i)}getHostDepth(){return this.getElementDepth(this.host)}getElementDepth(i){return Be.indexOf(i)}getHostZIndex(){return this.getItemZIndex(this.host)}getItemZIndex(i){let t=this.getElementDepth(i);return t>=0?Kf+t*_x:Kf}isHostOnTop(){return this.peek()===this.host}clear(){this.popUntil(()=>!0)}};var ql=n=>{class i extends n{constructor(){super(...arguments);this.isBackdropInvisible=!1;this.backdropElement=null;this.triggerElementCache=null}update(o){var l;if(super.update(o),o.has("zIndex")&&this.backdropElement){this.backdropElement.style.zIndex=`${this.zIndex+bh}`;let c=(l=this.triggerElementCache)==null?void 0:l.deref();c&&(c.style.zIndex=`${this.zIndex+yh}`)}}createBackdrop(o){let l=document.createElement("div");l.classList.add(`${o}-backdrop`);let c=document.createElement("style"),f=this.isBackdropInvisible?"transparent":getComputedStyle(this).getPropertyValue("--mdc-backdrop-mixin-background-color")||"var(--mds-color-theme-common-overlays-secondary-normal)";c.textContent=`
|
|
1072
1072
|
.${o}-backdrop {
|
|
1073
1073
|
position: fixed;
|
|
1074
1074
|
top: 0;
|
|
@@ -1078,7 +1078,7 @@
|
|
|
1078
1078
|
background: ${f};
|
|
1079
1079
|
z-index: ${this.zIndex+bh};
|
|
1080
1080
|
}
|
|
1081
|
-
`,l.appendChild(c);let A=document.getElementById(this.backdropAppendTo)||this.parentElement;A==null||A.appendChild(l),this.backdropElement=l}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(o){o&&(this.triggerElementCache=new WeakRef(o),this.elementOriginalStyle={zIndex:o.style.zIndex,position:o.style.position},o.style.zIndex=`${this.zIndex+yh}`,["fixed","absolute"].includes(window.getComputedStyle(o).position)||(o.style.position="relative"))}moveElementBackAfterBackdropRemoval(o){!o||!this.elementOriginalStyle||(o.style.zIndex=this.elementOriginalStyle.zIndex,o.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return i};var Xl=z.constructTagName("responsivesettingsprovider"),$r={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},Wf=["float","dialog"],Yf=["unknown","mobile","desktop","tablet"];var Zl=class{constructor(i={}){this.media=$r.MEDIA;this.forceFullscreenDialog=$r.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=$r.POPOVER_POSITIONING;Object.assign(this,i)}};Zl.context=Xl;var Ql=Zl;var Gs=class extends Te{constructor(){super({context:Ql.context,initialValue:new Ql({media:$r.MEDIA,popoverPositioning:$r.POPOVER_POSITIONING,forceFullscreenDialog:$r.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=$r.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=$r.POPOVER_POSITIONING;this.privateMedia=$r.MEDIA}static get Context(){return Ql.context}set popoverPositioning(t){Wf.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){Yf.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,e,o;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((e=this.context.value)==null?void 0:e.popoverPositioning)!==this.privatePopoverPositioning||((o=this.context.value)==null?void 0:o.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};h([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Gs.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Gs.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Gs.prototype,"media",1);var Eh=Gs;Eh.register(Xl);var Th=Eh;var jf=z.constructTagName("dialog"),xh={DEFAULT:"default",PROMOTIONAL:"promotional"},Ir={VISIBLE:!1,Z_INDEX:1e3,ROLE:tt.DIALOG,SIZE:"small",HEADER_TAG_NAME:mt.H2,DESCRIPTION_TAG_NAME:mt.P,CANCEL_ICON:"cancel-bold",VARIANT:xh.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var
|
|
1081
|
+
`,l.appendChild(c);let A=document.getElementById(this.backdropAppendTo)||this.parentElement;A==null||A.appendChild(l),this.backdropElement=l}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(o){o&&(this.triggerElementCache=new WeakRef(o),this.elementOriginalStyle={zIndex:o.style.zIndex,position:o.style.position},o.style.zIndex=`${this.zIndex+yh}`,["fixed","absolute"].includes(window.getComputedStyle(o).position)||(o.style.position="relative"))}moveElementBackAfterBackdropRemoval(o){!o||!this.elementOriginalStyle||(o.style.zIndex=this.elementOriginalStyle.zIndex,o.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0,this.triggerElementCache=null)}}return i};var Xl=z.constructTagName("responsivesettingsprovider"),$r={FORCE_FULLSCREEN_DIALOG:!1,POPOVER_POSITIONING:"float",MEDIA:"unknown"},Wf=["float","dialog"],Yf=["unknown","mobile","desktop","tablet"];var Zl=class{constructor(i={}){this.media=$r.MEDIA;this.forceFullscreenDialog=$r.FORCE_FULLSCREEN_DIALOG;this.popoverPositioning=$r.POPOVER_POSITIONING;Object.assign(this,i)}};Zl.context=Xl;var Ql=Zl;var Gs=class extends Te{constructor(){super({context:Ql.context,initialValue:new Ql({media:$r.MEDIA,popoverPositioning:$r.POPOVER_POSITIONING,forceFullscreenDialog:$r.FORCE_FULLSCREEN_DIALOG})});this.forceFullscreenDialog=$r.FORCE_FULLSCREEN_DIALOG;this.privatePopoverPositioning=$r.POPOVER_POSITIONING;this.privateMedia=$r.MEDIA}static get Context(){return Ql.context}set popoverPositioning(t){Wf.includes(t)&&(this.privatePopoverPositioning=t)}get popoverPositioning(){return this.privatePopoverPositioning}set media(t){Yf.includes(t)&&(this.privateMedia=t)}get media(){return this.privateMedia}updateContext(){var t,e,o;(((t=this.context.value)==null?void 0:t.media)!==this.privateMedia||((e=this.context.value)==null?void 0:e.popoverPositioning)!==this.privatePopoverPositioning||((o=this.context.value)==null?void 0:o.forceFullscreenDialog)!==this.forceFullscreenDialog)&&(this.context.value.media=this.media,this.context.value.popoverPositioning=this.popoverPositioning,this.context.value.forceFullscreenDialog=this.forceFullscreenDialog,this.context.updateObservers())}};h([u({type:Boolean,attribute:"force-fullscreen-dialog",reflect:!0})],Gs.prototype,"forceFullscreenDialog",2),h([u({type:String,attribute:"popover-positioning",reflect:!0})],Gs.prototype,"popoverPositioning",1),h([u({type:String,attribute:"media",reflect:!0})],Gs.prototype,"media",1);var Eh=Gs;Eh.register(Xl);var Th=Eh;var jf=z.constructTagName("dialog"),xh={DEFAULT:"default",PROMOTIONAL:"promotional"},Ir={VISIBLE:!1,Z_INDEX:1e3,ROLE:tt.DIALOG,SIZE:"small",HEADER_TAG_NAME:mt.H2,DESCRIPTION_TAG_NAME:mt.P,CANCEL_ICON:"cancel-bold",VARIANT:xh.DEFAULT,DISABLE_ARIA_HAS_POPUP:!1,FOCUS_TRAP:!0,HIDE_BACKDROP:!1};var s1=[tt.DIALOG,tt.ALERTDIALOG];var no=class{static dispatchDialogEvent(i,t,e=!0){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:e}))}static onShowDialog(i){this.dispatchDialogEvent("shown",i)}static onHideDialog(i){this.dispatchDialogEvent("hidden",i)}static onCloseDialog(i,t=!0){this.dispatchDialogEvent("close",i,t)}static onCreatedDialog(i){this.dispatchDialogEvent("created",i)}static onDestroyedDialog(i){this.dispatchDialogEvent("destroyed",i)}};var Cx=B`
|
|
1082
1082
|
:host {
|
|
1083
1083
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
1084
1084
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -1231,7 +1231,7 @@
|
|
|
1231
1231
|
mdc-text::part(text) {
|
|
1232
1232
|
margin: 0;
|
|
1233
1233
|
}
|
|
1234
|
-
`,qf=[
|
|
1234
|
+
`,qf=[Cx];var ee=class extends Lt(wt(ql(Kl(Gl(Hs(X)))))){constructor(){super(...arguments);this.responsiveSettingsContext=xe.consume({host:this,context:Th.Context,subscribe:!0,syncProperties:["size"]});this.depthManager=new ao(this);this.id="";this.visible=Ir.VISIBLE;this.internalSize=Ir.SIZE;this.variant=Ir.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabel=null;this.ariaLabelledby=null;this.ariaDescribedby=null;this.ariaDescription=null;this.headerTagName=Ir.HEADER_TAG_NAME;this.descriptionTagName=Ir.DESCRIPTION_TAG_NAME;this.role=Ir.ROLE;this.disableAriaHasPopup=Ir.DISABLE_ARIA_HAS_POPUP;this.focusTrap=Ir.FOCUS_TRAP;this.hideBackdrop=Ir.HIDE_BACKDROP;this.stackGroupName="";this.preventScroll=!0;this.triggerElement=null;this.lastActiveElement=null;this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(t.preventDefault(),t.stopPropagation(),this.keyDownEventHandled(),this.closeDialog())}}get zIndex(){return Number.isInteger(this.internalZIndex)?this.internalZIndex:this.depthManager.getHostZIndex()}set zIndex(t){this.internalZIndex=t}get size(){var t,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(),no.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(),no.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=Ir.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(),no.onCloseDialog(this,!1)}onComponentStackChanged(t){t==="removed"?this.visible=!1:t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var o,l,c,f,y;t!==e&&(e&&!t?(this.depthManager.pushHost()&&this.requestUpdate("zIndex"),this.lastActiveElement=document.activeElement,this.hideBackdrop||(this.removeBackdrop(),this.createBackdrop("dialog")),this.activatePreventScroll(),await this.updateComplete,this.focusTrap&&((o=this.activateFocusTrap)==null||o.call(this)),(l=this.setInitialFocus)==null||l.call(this),(c=this.triggerElement)==null||c.setAttribute("aria-expanded","true"),no.onShowDialog(this)):!e&&t&&(this.depthManager.popHost(),this.removeBackdrop(),(f=this.triggerElement)==null||f.setAttribute("aria-expanded","false"),this.deactivatePreventScroll(),(y=this.deactivateFocusTrap)==null||y.call(this),this.focusBackToTrigger(),no.onHideDialog(this)))}focusBackToTrigger(){this.triggerElement?this.triggerElement.focus():this.lastActiveElement&&this.lastActiveElement.focus&&this.lastActiveElement.focus()}renderHeader(){return this.headerText?S` <div part="header-section">
|
|
1235
1235
|
<div part="header">
|
|
1236
1236
|
<slot name="header-prefix"></slot>
|
|
1237
1237
|
<mdc-text
|
|
@@ -1262,7 +1262,7 @@
|
|
|
1262
1262
|
@click="${this.closeDialog}"
|
|
1263
1263
|
></mdc-button>
|
|
1264
1264
|
${this.renderBody()} ${this.renderFooter()}
|
|
1265
|
-
`}};ee.styles=[...X.styles,...qf],h([u({type:String,reflect:!0})],ee.prototype,"id",2),h([u({type:String,reflect:!0})],ee.prototype,"triggerID",2),h([u({type:Boolean,reflect:!0})],ee.prototype,"visible",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],ee.prototype,"zIndex",1),h([u({type:String,reflect:!0})],ee.prototype,"size",1),h([u({type:String,reflect:!0})],ee.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],ee.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],ee.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],ee.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],ee.prototype,"ariaDescribedby",2),h([u({type:String,reflect:!0,attribute:"aria-description"})],ee.prototype,"ariaDescription",2),h([u({type:String,reflect:!0,attribute:"header-text"})],ee.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"description-text"})],ee.prototype,"descriptionText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],ee.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"description-tag-name"})],ee.prototype,"descriptionTagName",2),h([u({type:String,reflect:!0})],ee.prototype,"role",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],ee.prototype,"disableAriaHasPopup",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],ee.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],ee.prototype,"hideBackdrop",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],ee.prototype,"stackGroupName",2);var Ks=ee;var
|
|
1265
|
+
`}};ee.styles=[...X.styles,...qf],h([u({type:String,reflect:!0})],ee.prototype,"id",2),h([u({type:String,reflect:!0})],ee.prototype,"triggerID",2),h([u({type:Boolean,reflect:!0})],ee.prototype,"visible",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],ee.prototype,"zIndex",1),h([u({type:String,reflect:!0})],ee.prototype,"size",1),h([u({type:String,reflect:!0})],ee.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],ee.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],ee.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],ee.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],ee.prototype,"ariaDescribedby",2),h([u({type:String,reflect:!0,attribute:"aria-description"})],ee.prototype,"ariaDescription",2),h([u({type:String,reflect:!0,attribute:"header-text"})],ee.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"description-text"})],ee.prototype,"descriptionText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],ee.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"description-tag-name"})],ee.prototype,"descriptionTagName",2),h([u({type:String,reflect:!0})],ee.prototype,"role",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-haspopup"})],ee.prototype,"disableAriaHasPopup",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],ee.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"hide-backdrop"})],ee.prototype,"hideBackdrop",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],ee.prototype,"stackGroupName",2);var Ks=ee;var kx=B`
|
|
1266
1266
|
:host {
|
|
1267
1267
|
--mdc-announcementdialog-illustration-background-color: var(--mds-color-theme-background-solid-secondary-normal);
|
|
1268
1268
|
|
|
@@ -1311,7 +1311,7 @@
|
|
|
1311
1311
|
margin-inline-end: 0;
|
|
1312
1312
|
}
|
|
1313
1313
|
}
|
|
1314
|
-
`,Xf=[
|
|
1314
|
+
`,Xf=[kx];var Zf=z.constructTagName("announcementdialog");var Qf={SIZE:"medium"};var Ws=class extends Ks{get size(){var i,t;return(t=(i=this.responsiveSettingsContext)==null?void 0:i.value)!=null&&t.forceFullscreenDialog?"fullscreen":this.internalSize}set size(i){this.internalSize=i}constructor(){super(),this.internalSize=Qf.SIZE}connectedCallback(){super.connectedCallback(),this.variant=xh.DEFAULT}renderHeader(){return S`${K}`}renderBody(){return S`
|
|
1315
1315
|
<div part="body">
|
|
1316
1316
|
<div part="illustration-container">
|
|
1317
1317
|
<slot name="illustration-container">
|
|
@@ -1331,7 +1331,7 @@
|
|
|
1331
1331
|
</slot>
|
|
1332
1332
|
</div>
|
|
1333
1333
|
</div>
|
|
1334
|
-
`}};Ws.styles=[...Ks.styles,...Xf],h([u({type:String,reflect:!0})],Ws.prototype,"illustration",2),h([u({type:String,reflect:!0})],Ws.prototype,"size",1);var Ah=Ws;var Jl=z.constructTagName("illustrationprovider"),Jf=["svg"],on={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var td=class{};td.context=Jl;var ed=td;var lo=class extends Te{constructor(){super({context:ed.context,initialValue:new ed});this.illustrationSet=on.ILLUSTRATION_SET;this.fileExtension=on.FILE_EXTENSION}static get Context(){return ed.context}updateValuesInContext(){this.fileExtension&&Jf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=on.FILE_EXTENSION,this.context.value.fileExtension=on.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})],lo.prototype,"illustrationSet",2),h([u({type:String})],lo.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],lo.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],lo.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],lo.prototype,"cacheName",2);var sn=lo;var
|
|
1334
|
+
`}};Ws.styles=[...Ks.styles,...Xf],h([u({type:String,reflect:!0})],Ws.prototype,"illustration",2),h([u({type:String,reflect:!0})],Ws.prototype,"size",1);var Ah=Ws;var Jl=z.constructTagName("illustrationprovider"),Jf=["svg"],on={FILE_EXTENSION:"svg",ILLUSTRATION_SET:"momentum-illustrations"};var td=class{};td.context=Jl;var ed=td;var lo=class extends Te{constructor(){super({context:ed.context,initialValue:new ed});this.illustrationSet=on.ILLUSTRATION_SET;this.fileExtension=on.FILE_EXTENSION}static get Context(){return ed.context}updateValuesInContext(){this.fileExtension&&Jf.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=on.FILE_EXTENSION,this.context.value.fileExtension=on.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})],lo.prototype,"illustrationSet",2),h([u({type:String})],lo.prototype,"url",2),h([u({type:String,attribute:"file-extension",reflect:!0})],lo.prototype,"fileExtension",2),h([u({type:String,attribute:"cache-strategy"})],lo.prototype,"cacheStrategy",2),h([u({type:String,attribute:"cache-name"})],lo.prototype,"cacheName",2);var sn=lo;var wx=[bt,B`
|
|
1335
1335
|
:host {
|
|
1336
1336
|
--mdc-illustration-size: auto;
|
|
1337
1337
|
}
|
|
@@ -1339,7 +1339,7 @@
|
|
|
1339
1339
|
height: var(--mdc-illustration-size);
|
|
1340
1340
|
width: var(--mdc-illustration-size);
|
|
1341
1341
|
}
|
|
1342
|
-
`],tv=
|
|
1342
|
+
`],tv=wx;var ev=async n=>fetch(n).then(i=>{if(!i.ok)throw new Error("There was a problem while fetching the illustration!");return i}),rv=async({url:n,name:i,fileExtension:t,cacheStrategy:e,cacheName:o,renewSignal:l})=>{let c=l(),f=new Request(`${n}/${i}.${t}`,{signal:c});return!o||!e||!["in-memory-cache","web-cache-api"].includes(e)?ev(f).then(y=>y.text()):Dl(o,e).then(y=>y.get(f).then(A=>A||ev(f.clone()).then(F=>{var W;return F.status<400&&F.headers.has("content-type")?(W=y.set)==null?void 0:W.call(y,f,F.clone()).then(()=>F.text()):F.text()})).catch(A=>{throw new Error(`Error in caching the Illustration ${i}, ${A}`)}))};var iv=z.constructTagName("illustration"),ov={NAME:void 0};var Ci=class extends X{constructor(){super();this.name=ov.NAME;this.ariaLabel=null;this.ariaLabelledby=null;this.illustrationProviderContext=xe.consume({host:this,context:sn.Context});this.abortController=new AbortController}prepareIllustrationElement(t){let e=new DOMParser().parseFromString(t,"text/html").body.children[0];return this.name&&e.setAttribute("data-name",this.name),e.setAttribute("part","illustration"),e.setAttribute("aria-hidden","true"),e}async getIllustrationData(){if(this.illustrationProviderContext.value){let{fileExtension:e,url:o,cacheName:l,illustrationSet:c,cacheStrategy:f}=this.illustrationProviderContext.value;if(c==="custom-illustrations"&&o&&e&&this.name){let y=()=>{var A;return(A=this.abortController)==null||A.abort(),this.abortController=new AbortController,this.abortController.signal};return rv({url:o,name:this.name,fileExtension:e,cacheName:l,cacheStrategy:f,renewSignal:y}).then(A=>{let F=this.prepareIllustrationElement(A);this.handleIllustrationLoadedSuccess(F)}).catch(A=>{this.handleIllustrationLoadedFailure(A)})}if(c==="momentum-illustrations"&&this.name)return import(`@momentum-design/illustrations/dist/ts/${this.name}.ts`).then(y=>{this.handleIllustrationLoadedSuccess(y.default())}).catch(y=>{this.handleIllustrationLoadedFailure(y)})}let t=new Error("IllustrationProvider not found or not properly set up.");return this.handleIllustrationLoadedFailure(t),Promise.reject(t)}handleIllustrationLoadedSuccess(t){this.illustrationData=t;let e=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(e)}handleIllustrationLoadedFailure(t){let e=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:t}});this.dispatchEvent(e)}updated(t){super.updated(t),t.has("name")&&this.getIllustrationData().catch(e=>{e.name!=="AbortError"&&this.onerror&&this.onerror(e)}),(t.has("ariaLabel")||t.has("ariaLabelledby"))&&(this.role=this.ariaLabel||this.ariaLabelledby?tt.IMG:null)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){return S` ${this.illustrationData} `}};Ci.styles=[...X.styles,...tv],h([nt()],Ci.prototype,"illustrationData",2),h([u({type:String,reflect:!0})],Ci.prototype,"name",2),h([u({type:String,attribute:"aria-label"})],Ci.prototype,"ariaLabel",2),h([u({type:String,attribute:"aria-labelledby"})],Ci.prototype,"ariaLabelledby",2),h([nt()],Ci.prototype,"abortController",2);var Sh=Ci;Sh.register(iv);var Nx=Sh;Ah.register(Zf);var Mx=Ah;var Lx=B`
|
|
1343
1343
|
:host {
|
|
1344
1344
|
--mdc-appheader-height: 4rem;
|
|
1345
1345
|
}
|
|
@@ -1373,7 +1373,7 @@
|
|
|
1373
1373
|
justify-content: flex-end;
|
|
1374
1374
|
flex: 1;
|
|
1375
1375
|
}
|
|
1376
|
-
`,sv=[
|
|
1376
|
+
`,sv=[Lx];var rd=class extends X{render(){return S`
|
|
1377
1377
|
<header part="container">
|
|
1378
1378
|
<div part="leading-section">
|
|
1379
1379
|
<slot name="leading"></slot>
|
|
@@ -1383,7 +1383,7 @@
|
|
|
1383
1383
|
<slot name="trailing"></slot>
|
|
1384
1384
|
</div>
|
|
1385
1385
|
</header>
|
|
1386
|
-
`}};rd.styles=[...X.styles,...sv];var Ih=rd;var av=z.constructTagName("appheader");Ih.register(av);var
|
|
1386
|
+
`}};rd.styles=[...X.styles,...sv];var Ih=rd;var av=z.constructTagName("appheader");Ih.register(av);var Ox=Ih;var nv=z.constructTagName("avatar"),Ue={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},_h=99,Rx="user-regular",Xt={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Ys={TYPE:Ue.PHOTO,SIZE:Xt[32],ICON_NAME:Rx};var id=n=>{class i extends n{constructor(){super(...arguments);this.size=Ys.SIZE;this.isTyping=!1}}return h([u({type:String})],i.prototype,"src",2),h([u({type:String})],i.prototype,"initials",2),h([u({type:String})],i.prototype,"presence",2),h([u({type:Number,reflect:!0,attribute:"size"})],i.prototype,"size",2),h([u({type:Number})],i.prototype,"counter",2),h([u({type:Boolean,attribute:"is-typing"})],i.prototype,"isTyping",2),i};var Dx=[bt,B`
|
|
1387
1387
|
:host {
|
|
1388
1388
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
|
1389
1389
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
|
@@ -1540,7 +1540,7 @@
|
|
|
1540
1540
|
outline: 0.125rem solid;
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
|
-
`],lv=
|
|
1543
|
+
`],lv=Dx;var dv=z.constructTagName("presence"),Fe={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"},de={24:24,32:32,48:48,64:64,72:72,88:88,124:124},js={TYPE:Fe.ACTIVE,SIZE:de[32]};var cv=n=>({[Xt[124]]:de[124],[Xt[88]]:de[88],[Xt[72]]:de[72],[Xt[64]]:de[64],[Xt[48]]:de[48],[Xt[32]]:de[32],[Xt[24]]:de[24]})[n]||de[32],hv=n=>({[Xt[124]]:4.75,[Xt[88]]:3,[Xt[72]]:2.5,[Xt[64]]:2.25,[Xt[48]]:1.75,[Xt[32]]:1.25,[Xt[24]]:1})[n]||1.25,pv=n=>({[Xt[124]]:ot.HEADING_XLARGE_MEDIUM,[Xt[88]]:ot.HEADING_LARGE_MEDIUM,[Xt[72]]:ot.HEADING_MIDSIZE_MEDIUM,[Xt[64]]:ot.HEADING_SMALL_MEDIUM,[Xt[48]]:ot.HEADING_SMALL_MEDIUM,[Xt[32]]:ot.BODY_MIDSIZE_MEDIUM,[Xt[24]]:ot.BODY_SMALL_MEDIUM})[n]||ot.BODY_MIDSIZE_MEDIUM;var an=class extends id(le(X)){constructor(){super(...arguments);this.isPhotoLoaded=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-hidden")||this.setAttribute("aria-hidden","true")}getPresenceTemplateBasedOnType(t){return t===Ue.COUNTER&&(this.counter||this.counter===0)||this.isTyping?K:this.presence?S`
|
|
1544
1544
|
<mdc-presence part="presence" type="${this.presence}" size="${cv(this.size)}"></mdc-presence>
|
|
1545
1545
|
`:K}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 S`
|
|
1546
1546
|
<img
|
|
@@ -1556,7 +1556,7 @@
|
|
|
1556
1556
|
`}textTemplate(t){return S` <mdc-text type="${pv(this.size)}" tagname="span"> ${t} </mdc-text> `}generateCounterText(t){return t<0?"0":t>_h?`${_h}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let e="";return t===Ue.TEXT&&this.initials&&(e=this.generateInitialsText(this.initials)),t===Ue.COUNTER&&(this.counter||this.counter===0)&&(e=this.generateCounterText(this.counter)),this.textTemplate(e)}getTypeBasedOnInputs(){return this.src?Ue.PHOTO:this.iconName?Ue.ICON:this.initials?Ue.TEXT:this.counter||this.counter===0?Ue.COUNTER:Ue.ICON}getTemplateBasedOnType(t){switch(t){case Ue.PHOTO:return this.photoTemplate();case Ue.TEXT:case Ue.COUNTER:return this.generateTextContent(t);case Ue.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?S`<div part="loading-wrapper"><div part="loader"></div></div>`:K}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?K:t===Ue.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():K}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return S`
|
|
1557
1557
|
${this.getPhotoPlaceHolderContent(t)} ${this.getTemplateBasedOnType(t)} ${this.getLoadingContent()}
|
|
1558
1558
|
${this.getPresenceTemplateBasedOnType(t)}
|
|
1559
|
-
`}};an.styles=[...X.styles,...lv],h([nt()],an.prototype,"isPhotoLoaded",2);var Ch=an;var
|
|
1559
|
+
`}};an.styles=[...X.styles,...lv],h([nt()],an.prototype,"isPhotoLoaded",2);var Ch=an;var Px=[bt,B`
|
|
1560
1560
|
:host {
|
|
1561
1561
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
|
1562
1562
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
|
@@ -1650,7 +1650,7 @@
|
|
|
1650
1650
|
:host::part(mdc-presence-icon__scheduled) {
|
|
1651
1651
|
color: var(--mdc-presence-scheduled-background-color);
|
|
1652
1652
|
}
|
|
1653
|
-
`],mv=
|
|
1653
|
+
`],mv=Px;var uv=n=>{switch(n){case Fe.AWAY:return"recents-presence-badge-filled";case Fe.AWAY_CALLING:return"away-calling-presence-filled";case Fe.BUSY:return"busy-presence-bold";case Fe.DND:return"dnd-presence-badge-filled";case Fe.MEETING:return"camera-filled";case Fe.ON_CALL:return"handset-filled";case Fe.ON_DEVICE:return"generic-device-video-badge-filled";case Fe.ON_MOBILE:return"phone-badge-filled";case Fe.PAUSE:return"pause-badge-filled";case Fe.PTO:return"pto-presence-filled";case Fe.PRESENTING:return"share-screen-badge-filled";case Fe.QUIET:return"quiet-hours-presence-filled";case Fe.SCHEDULED:return"meetings-presence-badge-filled";case Fe.ACTIVE:default:return"active-presence-small-filled"}},fv=n=>({[de[124]]:2.25,[de[88]]:1.625,[de[72]]:1.3125,[de[64]]:1.1875,[de[48]]:.875,[de[32]]:.875,[de[24]]:.875})[n]||.875;var Yo=class extends X{constructor(){super(...arguments);this.type=js.TYPE;this.size=js.SIZE;this.currentIconType=js.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(de).includes(t)?`${t}`:js.SIZE.toString())}get icon(){let t=uv(this.type);return t==="active-presence-small-filled"&&(this.type=js.TYPE),t}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return S`
|
|
1654
1654
|
<div part="presence-content">
|
|
1655
1655
|
<mdc-icon
|
|
1656
1656
|
part="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
|
@@ -1660,7 +1660,7 @@
|
|
|
1660
1660
|
@error="${this.handleOnError}"
|
|
1661
1661
|
></mdc-icon>
|
|
1662
1662
|
</div>
|
|
1663
|
-
`}};Yo.styles=[...X.styles,...mv],h([u({type:String,reflect:!0})],Yo.prototype,"type",2),h([u({type:Number,reflect:!0})],Yo.prototype,"size",2),h([nt()],Yo.prototype,"currentIconType",2);var kh=Yo;kh.register(dv);var
|
|
1663
|
+
`}};Yo.styles=[...X.styles,...mv],h([u({type:String,reflect:!0})],Yo.prototype,"type",2),h([u({type:Number,reflect:!0})],Yo.prototype,"size",2),h([nt()],Yo.prototype,"currentIconType",2);var kh=Yo;kh.register(dv);var Fx=kh;Ch.register(nv);var $x=Ch;var Vx=[bt,B`
|
|
1664
1664
|
:host {
|
|
1665
1665
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
|
1666
1666
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
|
@@ -1699,7 +1699,7 @@
|
|
|
1699
1699
|
--mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatarbutton-loading-indicator-foreground-color);
|
|
1700
1700
|
--mdc-avatar-loading-overlay-background-color: var(--mdc-avatarbutton-loading-overlay-background-color);
|
|
1701
1701
|
}
|
|
1702
|
-
`,...yt()],vv
|
|
1702
|
+
`,...yt()],vv=Vx;var nn=class extends id(le(ue)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role=tt.BUTTON,this.type=er.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(Xt).includes(t)?`${t}`:Ys.SIZE.toString())}render(){return S`
|
|
1703
1703
|
<div part="overlay" aria-hidden="true"></div>
|
|
1704
1704
|
<mdc-avatar
|
|
1705
1705
|
exportparts="content, photo, presence, loading-wrapper, loader"
|
|
@@ -1711,7 +1711,7 @@
|
|
|
1711
1711
|
size="${J(this.size)}"
|
|
1712
1712
|
src="${J(this.src)}"
|
|
1713
1713
|
></mdc-avatar>
|
|
1714
|
-
`}};nn.styles=[...vv],h([u({type:String,attribute:"aria-label"})],nn.prototype,"ariaLabel",2);var wh=nn;var gv=z.constructTagName("avatarbutton");wh.register(gv);var
|
|
1714
|
+
`}};nn.styles=[...vv],h([u({type:String,attribute:"aria-label"})],nn.prototype,"ariaLabel",2);var wh=nn;var gv=z.constructTagName("avatarbutton");wh.register(gv);var zx=wh;var bv=z.constructTagName("badge"),_r={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},od={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Nh={PRIMARY:"primary",SECONDARY:"secondary"},ki={TYPE:_r.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Nh.PRIMARY,ICON_SIZE:1,OVERLAY:!1};var Bx=[bt,B`
|
|
1715
1715
|
:host {
|
|
1716
1716
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
|
1717
1717
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
|
@@ -1790,7 +1790,7 @@
|
|
|
1790
1790
|
outline: none;
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
|
-
`],yv=
|
|
1793
|
+
`],yv=Bx;var ii=class extends le(X){constructor(){super(...arguments);this.variant=ki.VARIANT;this.maxCounter=ki.MAX_COUNTER;this.overlay=ki.OVERLAY;this.ariaLabel=null}getCounterText(t,e){return e===void 0||typeof e!="number"||t===0?"":e>t?`${t}+`:t>ki.MAX_COUNTER_LIMIT||e>ki.MAX_COUNTER_LIMIT?`${ki.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t){return S`
|
|
1794
1794
|
<mdc-icon
|
|
1795
1795
|
part="badge-icon ${this.overlay?"badge-overlay":""}"
|
|
1796
1796
|
name="${J(t)}"
|
|
@@ -1804,7 +1804,7 @@
|
|
|
1804
1804
|
>
|
|
1805
1805
|
${this.getCounterText(this.maxCounter,this.counter)}
|
|
1806
1806
|
</mdc-text>
|
|
1807
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Nh).includes(this.variant)&&(this.variant=ki.VARIANT);let{iconName:t,type:e}=this;switch(e){case _r.ICON:return this.getBadgeIcon(t||"");case _r.COUNTER:return this.getBadgeCounterText();case _r.SUCCESS:return this.getBadgeIcon(od.SUCCESS_ICON_NAME);case _r.WARNING:return this.getBadgeIcon(od.WARNING_ICON_NAME);case _r.ERROR:return this.getBadgeIcon(od.ERROR_ICON_NAME);case _r.DOT:default:return this.type=_r.DOT,this.getBadgeDot()}}};ii.styles=[...X.styles,...yv],h([u({type:String,reflect:!0})],ii.prototype,"type",2),h([u({type:String,reflect:!0})],ii.prototype,"variant",2),h([u({type:Number})],ii.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],ii.prototype,"maxCounter",2),h([u({type:Boolean})],ii.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],ii.prototype,"ariaLabel",2);var Mh=ii;Mh.register(bv);var
|
|
1807
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role=tt.IMG:this.role=null}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){this.variant&&!Object.values(Nh).includes(this.variant)&&(this.variant=ki.VARIANT);let{iconName:t,type:e}=this;switch(e){case _r.ICON:return this.getBadgeIcon(t||"");case _r.COUNTER:return this.getBadgeCounterText();case _r.SUCCESS:return this.getBadgeIcon(od.SUCCESS_ICON_NAME);case _r.WARNING:return this.getBadgeIcon(od.WARNING_ICON_NAME);case _r.ERROR:return this.getBadgeIcon(od.ERROR_ICON_NAME);case _r.DOT:default:return this.type=_r.DOT,this.getBadgeDot()}}};ii.styles=[...X.styles,...yv],h([u({type:String,reflect:!0})],ii.prototype,"type",2),h([u({type:String,reflect:!0})],ii.prototype,"variant",2),h([u({type:Number})],ii.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],ii.prototype,"maxCounter",2),h([u({type:Boolean})],ii.prototype,"overlay",2),h([u({type:String,attribute:"aria-label"})],ii.prototype,"ariaLabel",2);var Mh=ii;Mh.register(bv);var Ux=Mh;var Hx=B`
|
|
1808
1808
|
:host {
|
|
1809
1809
|
display: block;
|
|
1810
1810
|
height: 100%;
|
|
@@ -1818,7 +1818,7 @@
|
|
|
1818
1818
|
width: 100%;
|
|
1819
1819
|
object-fit: contain;
|
|
1820
1820
|
}
|
|
1821
|
-
`,Ev=[
|
|
1821
|
+
`,Ev=[Hx];var jo=class extends X{async getBrandVisualData(){if(this.name)return import(`@momentum-design/brand-visuals/dist/ts/${this.name}.ts`).then(t=>{this.handleBrandVisualLoadedSuccess(t.default())}).catch(t=>{this.handleBrandVisualLoadedFailure(t)});let i=new Error("No brandvisual name provided.");return this.handleBrandVisualLoadedFailure(i),Promise.reject(i)}updated(i){super.updated(i),i.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)}),i.has("altText")&&this.brandVisualData&&(this.brandVisualData=this.injectHtmlAttributes(this.brandVisualData,{alt:this.altText}))}injectTemplateAttributes(i,t,e){let c=new DOMParser().parseFromString(i.strings[0],"text/html").querySelector(t);return c&&Object.entries(e).forEach(([f,y])=>{c.setAttribute(f,y)}),c||i}injectHtmlAttributes(i,t){return Object.entries(t).forEach(([e,o])=>{i.setAttribute(e,o)}),i}handleBrandVisualLoadedSuccess(i){this.brandVisualData=this.injectTemplateAttributes(i,"img",{alt:this.altText});let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(i){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:i}});this.dispatchEvent(t)}render(){return S` ${this.brandVisualData} `}};jo.styles=[...X.styles,...Ev],h([nt()],jo.prototype,"brandVisualData",2),h([u({type:String,reflect:!0})],jo.prototype,"name",2),h([u({type:String,reflect:!0,attribute:"alt-text"})],jo.prototype,"altText",2);var Lh=jo;var Tv=z.constructTagName("brandvisual");Lh.register(Tv);var Gx=Lh;var Kx=B`
|
|
1822
1822
|
:host {
|
|
1823
1823
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
1824
1824
|
--mdc-bullet-size: 0.25rem;
|
|
@@ -1838,7 +1838,7 @@
|
|
|
1838
1838
|
:host([size='large']) {
|
|
1839
1839
|
--mdc-bullet-size: 1rem;
|
|
1840
1840
|
}
|
|
1841
|
-
`,xv=[
|
|
1841
|
+
`,xv=[Kx];var Av=z.constructTagName("bullet"),Sv={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var ln=class extends X{constructor(){super(...arguments);this.size=Sv.SMALL}};ln.styles=[...X.styles,...xv],h([u({type:String,reflect:!0})],ln.prototype,"size",2);var Oh=ln;Oh.register(Av);var Wx=Oh;var Iv=z.constructTagName("buttongroup"),Yx={40:40,32:32,28:28,24:24},jx={HORIZONTAL:"horizontal",VERTICAL:"vertical"},qx={PRIMARY:"primary",SECONDARY:"secondary"},sd={SIZE:Yx[28],VARIANT:qx.PRIMARY,ORIENTATION:jx.HORIZONTAL};var Xx=B`
|
|
1842
1842
|
:host {
|
|
1843
1843
|
--mdc-buttongroup-border-radius: 1.25rem;
|
|
1844
1844
|
--mdc-buttongroup-border-color: var(--mds-color-theme-outline-button-normal);
|
|
@@ -1938,7 +1938,7 @@
|
|
|
1938
1938
|
:host([compact][orientation='horizontal'][size='40']) ::slotted(mdc-button) {
|
|
1939
1939
|
width: 2.5rem;
|
|
1940
1940
|
}
|
|
1941
|
-
`,_v=[bt,
|
|
1941
|
+
`,_v=[bt,Xx];var wi=class extends X{constructor(){super(...arguments);this.orientation=sd.ORIENTATION;this.variant=sd.VARIANT;this.size=sd.SIZE;this.compact=!1}handleSlotChange(){this.buttons.forEach(t=>{t.setAttribute("size",this.size.toString()),t.setAttribute("variant",this.variant)})}updated(t){super.updated(t),(t.has("size")||t.has("variant"))&&this.handleSlotChange()}render(){return S`<div part="container"><slot @slotchange=${this.handleSlotChange}></slot></div>`}};wi.styles=[...X.styles,..._v],h([u({type:String,reflect:!0})],wi.prototype,"orientation",2),h([u({type:String,reflect:!0})],wi.prototype,"variant",2),h([u({type:Number,reflect:!0})],wi.prototype,"size",2),h([u({type:Boolean,reflect:!0})],wi.prototype,"compact",2),h([Kt({selector:"mdc-button"})],wi.prototype,"buttons",2);var Rh=wi;Rh.register(Iv);var Zx=Rh;var re=n=>{class i extends n{constructor(){super(...arguments);this.dataAriaLabel=null}}return h([u({type:String,reflect:!0,attribute:"data-aria-label"})],i.prototype,"dataAriaLabel",2),i};var Cv=z.constructTagName("linksimple"),qs={INLINE:!1,INVERTED:!1};var Qx=[bt,B`
|
|
1942
1942
|
:host {
|
|
1943
1943
|
--mdc-link-border-radius: 0.25rem;
|
|
1944
1944
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
|
@@ -2017,7 +2017,7 @@
|
|
|
2017
2017
|
:host([inline])::part(anchor) {
|
|
2018
2018
|
text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
|
|
2019
2019
|
}
|
|
2020
|
-
`,...yt(!0)],kv=
|
|
2020
|
+
`,...yt(!0)],kv=Qx;var He=class extends re(Jt(X)){constructor(){super(...arguments);this.inline=qs.INLINE;this.inverted=qs.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,o,l;this.disabled||(l=(o=(e=(t=this.shadowRoot)==null?void 0:t.querySelector)==null?void 0:e.call(t,"a"))==null?void 0:o.click)==null||l.call(o)}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 S`<slot></slot>`}render(){var t;return S`
|
|
2021
2021
|
<a
|
|
2022
2022
|
class="mdc-focus-ring"
|
|
2023
2023
|
part="anchor"
|
|
@@ -2034,7 +2034,7 @@
|
|
|
2034
2034
|
>
|
|
2035
2035
|
${this.renderAnchorContent()}
|
|
2036
2036
|
</a>
|
|
2037
|
-
`}};He.styles=[...X.styles,...kv],He.shadowRootOptions={...X.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],He.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],He.prototype,"inverted",2),h([u({type:String,reflect:!0})],He.prototype,"href",2),h([u({type:String,reflect:!0})],He.prototype,"target",2),h([u({type:String,reflect:!0})],He.prototype,"rel",2),h([u({type:String,reflect:!0})],He.prototype,"download",2),h([u({type:String,reflect:!0})],He.prototype,"ping",2),h([u({type:String,reflect:!0})],He.prototype,"hreflang",2),h([u({type:String,reflect:!0})],He.prototype,"type",2),h([u({type:String,reflect:!0})],He.prototype,"referrerpolicy",2);var oi=He;var
|
|
2037
|
+
`}};He.styles=[...X.styles,...kv],He.shadowRootOptions={...X.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],He.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],He.prototype,"inverted",2),h([u({type:String,reflect:!0})],He.prototype,"href",2),h([u({type:String,reflect:!0})],He.prototype,"target",2),h([u({type:String,reflect:!0})],He.prototype,"rel",2),h([u({type:String,reflect:!0})],He.prototype,"download",2),h([u({type:String,reflect:!0})],He.prototype,"ping",2),h([u({type:String,reflect:!0})],He.prototype,"hreflang",2),h([u({type:String,reflect:!0})],He.prototype,"type",2),h([u({type:String,reflect:!0})],He.prototype,"referrerpolicy",2);var oi=He;var Jx=B`
|
|
2038
2038
|
:host {
|
|
2039
2039
|
border: unset;
|
|
2040
2040
|
}
|
|
@@ -2088,11 +2088,11 @@
|
|
|
2088
2088
|
:host([variant='secondary'][soft-disabled])::part(anchor) {
|
|
2089
2089
|
border-color: var(--mdc-button-border-color);
|
|
2090
2090
|
}
|
|
2091
|
-
`,wv=[
|
|
2091
|
+
`,wv=[Jx,...yt(!0)];var Xs=class extends _l(oi){constructor(){super(...arguments);this.size=er.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.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 S`
|
|
2092
2092
|
${this.prefixIcon?S`<mdc-icon name="${this.prefixIcon}" part="prefix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2093
2093
|
<slot @slotchange="${this.inferButtonType}" part="button-text"></slot>
|
|
2094
2094
|
${this.postfixIcon?S`<mdc-icon name="${this.postfixIcon}" part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
|
2095
|
-
`}};Xs.styles=[...Go.styles,...wv],h([u({type:Number,reflect:!0})],Xs.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xs.prototype,"softDisabled",2);var Dh=Xs;var Nv=z.constructTagName("buttonlink");Dh.register(Nv);var
|
|
2095
|
+
`}};Xs.styles=[...Go.styles,...wv],h([u({type:Number,reflect:!0})],Xs.prototype,"size",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xs.prototype,"softDisabled",2);var Dh=Xs;var Nv=z.constructTagName("buttonlink");Dh.register(Nv);var tA=Dh;var ad=n=>{class i extends n{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=Ae.VARIANT;this.orientation=Ae.ORIENTATION;this.titleTagName=Ae.TAGNAME;this.subtitleTagName=Ae.TAGNAME}renderImage(){return this.imageSrc?S`<div part="image-wrapper">
|
|
2096
2096
|
<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />
|
|
2097
2097
|
</div>`:K}renderIcon(){return this.iconName?S`<mdc-icon
|
|
2098
2098
|
part="icon"
|
|
@@ -2110,7 +2110,7 @@
|
|
|
2110
2110
|
>${this.subtitle}</mdc-text
|
|
2111
2111
|
>`:K}
|
|
2112
2112
|
</slot>
|
|
2113
|
-
</div>`}}return h([u({type:String,attribute:"card-title",reflect:!0})],i.prototype,"cardTitle",2),h([u({type:String,reflect:!0})],i.prototype,"subtitle",2),h([u({type:String,attribute:"image-src",reflect:!0})],i.prototype,"imageSrc",2),h([u({type:String,attribute:"image-alt",reflect:!0})],i.prototype,"imageAlt",2),h([u({type:String,reflect:!0})],i.prototype,"variant",2),h([u({type:String,reflect:!0})],i.prototype,"orientation",2),h([u({type:String,attribute:"title-tag-name",reflect:!0})],i.prototype,"titleTagName",2),h([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],i.prototype,"subtitleTagName",2),h([u({type:String,attribute:"icon-name",reflect:!0})],i.prototype,"iconName",2),i};var
|
|
2113
|
+
</div>`}}return h([u({type:String,attribute:"card-title",reflect:!0})],i.prototype,"cardTitle",2),h([u({type:String,reflect:!0})],i.prototype,"subtitle",2),h([u({type:String,attribute:"image-src",reflect:!0})],i.prototype,"imageSrc",2),h([u({type:String,attribute:"image-alt",reflect:!0})],i.prototype,"imageAlt",2),h([u({type:String,reflect:!0})],i.prototype,"variant",2),h([u({type:String,reflect:!0})],i.prototype,"orientation",2),h([u({type:String,attribute:"title-tag-name",reflect:!0})],i.prototype,"titleTagName",2),h([u({type:String,attribute:"subtitle-tag-name",reflect:!0})],i.prototype,"subtitleTagName",2),h([u({type:String,attribute:"icon-name",reflect:!0})],i.prototype,"iconName",2),i};var eA=B`
|
|
2114
2114
|
:host {
|
|
2115
2115
|
--mdc-card-width: 20rem;
|
|
2116
2116
|
align-items: stretch;
|
|
@@ -2219,7 +2219,7 @@
|
|
|
2219
2219
|
mdc-text::part(text) {
|
|
2220
2220
|
margin: 0;
|
|
2221
2221
|
}
|
|
2222
|
-
`,Mv=[bt,
|
|
2222
|
+
`,Mv=[bt,eA];var dn=class extends ad(Hs(X)){constructor(){super(...arguments);this.handleIconButtons=()=>{var t;(t=this.iconButtons)==null||t.forEach(e=>{e.matches(Ae.BUTTON)&&(e.setAttribute("variant",$t.TERTIARY),e.setAttribute("size","32"))})}}update(t){super.update(t),t.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return S`<div part="header">
|
|
2223
2223
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2224
2224
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
|
2225
2225
|
</div>`}render(){return S`
|
|
@@ -2233,7 +2233,7 @@
|
|
|
2233
2233
|
</div>
|
|
2234
2234
|
${this.renderFooter()}
|
|
2235
2235
|
</div>
|
|
2236
|
-
`}};dn.styles=[...X.styles,...Mv],h([Kt({slot:"icon-button"})],dn.prototype,"iconButtons",2);var Vr=dn;Vr.register(Gf);var
|
|
2236
|
+
`}};dn.styles=[...X.styles,...Mv],h([Kt({slot:"icon-button"})],dn.prototype,"iconButtons",2);var Vr=dn;Vr.register(Gf);var rA=Vr;var iA=B`
|
|
2237
2237
|
:host {
|
|
2238
2238
|
cursor: pointer;
|
|
2239
2239
|
user-select: none;
|
|
@@ -2255,7 +2255,7 @@
|
|
|
2255
2255
|
:host([disabled])::part(image) {
|
|
2256
2256
|
opacity: 0.5;
|
|
2257
2257
|
}
|
|
2258
|
-
`,Lv=[
|
|
2258
|
+
`,Lv=[iA,...yt()];var nd=class extends ad(ue){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}render(){return S`
|
|
2259
2259
|
<slot name="image"> ${this.renderImage()} </slot>
|
|
2260
2260
|
<div part="body">
|
|
2261
2261
|
<div part="header">${this.renderIcon()} ${this.renderTitle()}</div>
|
|
@@ -2263,7 +2263,7 @@
|
|
|
2263
2263
|
<slot name="body"></slot>
|
|
2264
2264
|
<slot name="after-body"></slot>
|
|
2265
2265
|
</div>
|
|
2266
|
-
`}};nd.styles=[...Vr.styles,...Lv];var Ph=nd;var Ov=z.constructTagName("cardbutton");Ph.register(Ov);var
|
|
2266
|
+
`}};nd.styles=[...Vr.styles,...Lv];var Ph=nd;var Ov=z.constructTagName("cardbutton");Ph.register(Ov);var oA=Ph;var Rv=z.constructTagName("cardcheckbox"),Fh={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},ld={CHECK:"check",CHECKBOX:"checkbox"},dd={SELECTION_TYPE:ld.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var sA=B`
|
|
2267
2267
|
:host {
|
|
2268
2268
|
cursor: pointer;
|
|
2269
2269
|
user-select: none;
|
|
@@ -2320,7 +2320,7 @@
|
|
|
2320
2320
|
:host([disabled])::part(check-icon) {
|
|
2321
2321
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
2322
2322
|
}
|
|
2323
|
-
`,Dv=[
|
|
2323
|
+
`,Dv=[sA,...yt()];var Zs=class extends Lt(wt(Jt(Zr(Vr)))){constructor(){super();this.checked=!1;this.selectionType=dd.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=tt.CHECKBOX}update(t){super.update(t),t.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),t.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyDown(t){let e=this.getActionForKeyEvent(t);e===q.ENTER&&(this.toggleChecked(),this.keyDownEventHandled(),t.preventDefault()),e===q.SPACE&&t.preventDefault()}toggleOnSpace(t){this.getActionForKeyEvent(t)===q.SPACE&&(t.preventDefault(),this.toggleChecked())}renderSelection(){let t=this.checked?Fh.CHECKED:Fh.DEFAULT;switch(this.selectionType){case ld.CHECK:return S`<mdc-icon
|
|
2324
2324
|
part="check check-icon"
|
|
2325
2325
|
size="${dd.ICON_SIZE}"
|
|
2326
2326
|
length-unit="${dd.ICON_LENGTH_UNIT}"
|
|
@@ -2337,7 +2337,7 @@
|
|
|
2337
2337
|
<slot name="body"></slot>
|
|
2338
2338
|
<slot name="after-body"></slot>
|
|
2339
2339
|
</div>
|
|
2340
|
-
`}};Zs.styles=[...Vr.styles,...Dv],h([u({type:Boolean,reflect:!0})],Zs.prototype,"checked",2),h([u({type:String,attribute:"selection-type",reflect:!0})],Zs.prototype,"selectionType",2);var $h=Zs;var
|
|
2340
|
+
`}};Zs.styles=[...Vr.styles,...Dv],h([u({type:Boolean,reflect:!0})],Zs.prototype,"checked",2),h([u({type:String,attribute:"selection-type",reflect:!0})],Zs.prototype,"selectionType",2);var $h=Zs;var aA=[B`
|
|
2341
2341
|
:host {
|
|
2342
2342
|
--mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2343
2343
|
--mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-normal);
|
|
@@ -2415,7 +2415,7 @@
|
|
|
2415
2415
|
--mdc-staticcheckbox-icon-color: GrayText;
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
|
-
`],Pv=
|
|
2418
|
+
`],Pv=aA;var Fv=z.constructTagName("popover"),Mt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Se={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},qo={TONAL:"tonal",CONTRAST:"contrast"},Vh={ABSOLUTE:"absolute",FIXED:"fixed"},nA={VIEWPORT:"viewport",DOCUMENT:"document"},Et={PLACEMENT:Mt.BOTTOM,TRIGGER:Se.CLICK,COLOR:qo.TONAL,STRATEGY:Vh.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:nA.VIEWPORT,BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,DISABLE_FLIP:!1,SIZE:!1,DELAY:"0,0",ROLE:tt.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1},Ni={OPEN:"open",HOVER:"hover",CLOSE:"close"};var $v=z.constructTagName("formfieldwrapper"),Wt={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},Yt={VALIDATION:Wt.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id",ICON_SIZE:20,INFO_ICON:"info-badge-filled",TOGGLETIP_PLACEMENT:Mt.TOP,TOGGLETIP_STRATEGY:Vh.ABSOLUTE},cn={TAGNAME:mt.SPAN,TYPE:ot.BODY_MIDSIZE_REGULAR,HEADER_TYPE:ot.BODY_MIDSIZE_BOLD};var Vv=z.constructTagName("checkbox"),cd={CHECKED:"check-bold",INDETERMINATE:"minus-bold"},zv={ERROR:Wt.ERROR,DEFAULT:Wt.DEFAULT};var Bv=z.constructTagName("staticcheckbox");var co=class extends Jt(X){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?S`
|
|
2419
2419
|
<mdc-icon
|
|
2420
2420
|
part="checkbox-icon"
|
|
2421
2421
|
name="${this.indeterminate?cd.INDETERMINATE:cd.CHECKED}"
|
|
@@ -2423,7 +2423,7 @@
|
|
|
2423
2423
|
length-unit="rem"
|
|
2424
2424
|
></mdc-icon>
|
|
2425
2425
|
`:K;return S`<slot></slot>
|
|
2426
|
-
<div part="icon-container">${t}</div>`}};co.styles=[...X.styles,...Pv],h([u({type:Boolean,reflect:!0})],co.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],co.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],co.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],co.prototype,"softDisabled",2);var zh=co;zh.register(Bv);var
|
|
2426
|
+
<div part="icon-container">${t}</div>`}};co.styles=[...X.styles,...Pv],h([u({type:Boolean,reflect:!0})],co.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],co.prototype,"indeterminate",2),h([u({type:Boolean,reflect:!0})],co.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],co.prototype,"softDisabled",2);var zh=co;zh.register(Bv);var lA=zh;$h.register(Rv);var dA=$h;var cA=B`
|
|
2427
2427
|
:host {
|
|
2428
2428
|
cursor: pointer;
|
|
2429
2429
|
user-select: none;
|
|
@@ -2476,7 +2476,7 @@
|
|
|
2476
2476
|
:host([disabled])::part(image) {
|
|
2477
2477
|
opacity: 0.5;
|
|
2478
2478
|
}
|
|
2479
|
-
`,Uv=[
|
|
2479
|
+
`,Uv=[cA,...yt()];var Qs=class extends Lt(wt(Jt(Zr(Vr)))){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=tt.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===q.SPACE){t.preventDefault();return}if(this.disabled)return;let l=this.getAllCardsWithinSameGroup().filter(f=>!f.disabled),c=l.indexOf(this);if(e===q.DOWN||q.RIGHT===e){let f=(c+1)%l.length;this.updateCardRadio(l,f),this.keyDownEventHandled()}else if(e===q.UP||q.LEFT===e){let f=(c-1+l.length)%l.length;this.updateCardRadio(l,f),this.keyDownEventHandled()}e===q.ENTER&&(this.toggleChecked(),this.keyDownEventHandled())}toggleOnSpace(t){this.getActionForKeyEvent(t)===q.SPACE&&this.toggleChecked()}renderHeader(){return S`<div part="header">
|
|
2480
2480
|
${this.renderIcon()} ${this.renderTitle()}
|
|
2481
2481
|
<mdc-staticradio part="check" ?checked="${this.checked}" ?disabled="${this.disabled}"></mdc-staticradio>
|
|
2482
2482
|
</div>`}render(){return S`
|
|
@@ -2487,7 +2487,7 @@
|
|
|
2487
2487
|
<slot name="body"></slot>
|
|
2488
2488
|
<slot name="after-body"></slot>
|
|
2489
2489
|
</div>
|
|
2490
|
-
`}};Qs.styles=[...Vr.styles,...Uv],h([u({type:Boolean,reflect:!0})],Qs.prototype,"checked",2),h([u({type:String})],Qs.prototype,"name",2);var Bh=Qs;var hd=z.constructTagName("cardradio");var
|
|
2490
|
+
`}};Qs.styles=[...Vr.styles,...Uv],h([u({type:Boolean,reflect:!0})],Qs.prototype,"checked",2),h([u({type:String})],Qs.prototype,"name",2);var Bh=Qs;var hd=z.constructTagName("cardradio");var hA=[B`
|
|
2491
2491
|
:host {
|
|
2492
2492
|
--mdc-staticradio-inner-circle-size: 0.375rem;
|
|
2493
2493
|
--mdc-staticradio-outer-circle-size: 1rem;
|
|
@@ -2584,8 +2584,8 @@
|
|
|
2584
2584
|
--mdc-staticradio-outer-circle-background-color: GrayText;
|
|
2585
2585
|
}
|
|
2586
2586
|
}
|
|
2587
|
-
`],Hv=
|
|
2588
|
-
<span part="radio-icon" class="radio-icon"></span>`}};Xo.styles=[...X.styles,...Hv],h([u({type:Boolean,reflect:!0})],Xo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Xo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xo.prototype,"softDisabled",2);var Uh=Xo;var Gv=z.constructTagName("staticradio");Uh.register(Gv);var hA=Uh;Bh.register(hd);var pA=Bh;var si=Math.min,Ge=Math.max,pn=Math.round,mn=Math.floor,zr=n=>({x:n,y:n}),mA={left:"right",right:"left",bottom:"top",top:"bottom"},uA={start:"end",end:"start"};function md(n,i,t){return Ge(n,si(i,t))}function Zo(n,i){return typeof n=="function"?n(i):n}function Mi(n){return n.split("-")[0]}function Qo(n){return n.split("-")[1]}function Hh(n){return n==="x"?"y":"x"}function ud(n){return n==="y"?"height":"width"}var fA=new Set(["top","bottom"]);function ai(n){return fA.has(Mi(n))?"y":"x"}function fd(n){return Hh(ai(n))}function Yv(n,i,t){t===void 0&&(t=!1);let e=Qo(n),o=fd(n),l=ud(o),c=o==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[l]>i.floating[l]&&(c=hn(c)),[c,hn(c)]}function jv(n){let i=hn(n);return[pd(n),i,pd(i)]}function pd(n){return n.replace(/start|end/g,i=>uA[i])}var Kv=["left","right"],Wv=["right","left"],vA=["top","bottom"],gA=["bottom","top"];function bA(n,i,t){switch(n){case"top":case"bottom":return t?i?Wv:Kv:i?Kv:Wv;case"left":case"right":return i?vA:gA;default:return[]}}function qv(n,i,t,e){let o=Qo(n),l=bA(Mi(n),t==="start",e);return o&&(l=l.map(c=>c+"-"+o),i&&(l=l.concat(l.map(pd)))),l}function hn(n){return n.replace(/left|right|bottom|top/g,i=>mA[i])}function yA(n){return{top:0,right:0,bottom:0,left:0,...n}}function Gh(n){return typeof n!="number"?yA(n):{top:n,right:n,bottom:n,left:n}}function Jo(n){let{x:i,y:t,width:e,height:o}=n;return{width:e,height:o,top:t,left:i,right:i+e,bottom:t+o,x:i,y:t}}function Xv(n,i,t){let{reference:e,floating:o}=n,l=ai(i),c=fd(i),f=ud(c),y=Mi(i),A=l==="y",F=e.x+e.width/2-o.width/2,W=e.y+e.height/2-o.height/2,Q=e[f]/2-o[f]/2,Z;switch(y){case"top":Z={x:F,y:e.y-o.height};break;case"bottom":Z={x:F,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:W};break;case"left":Z={x:e.x-o.width,y:W};break;default:Z={x:e.x,y:e.y}}switch(Qo(i)){case"start":Z[c]-=Q*(t&&A?-1:1);break;case"end":Z[c]+=Q*(t&&A?-1:1);break}return Z}var Zv=async(n,i,t)=>{let{placement:e="bottom",strategy:o="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(i)),A=await c.getElementRects({reference:n,floating:i,strategy:o}),{x:F,y:W}=Xv(A,e,y),Q=e,Z={},et=0;for(let lt=0;lt<f.length;lt++){let{name:dt,fn:ft}=f[lt],{x:It,y:kt,data:jt,reset:Ht}=await ft({x:F,y:W,initialPlacement:e,placement:Q,strategy:o,middlewareData:Z,rects:A,platform:c,elements:{reference:n,floating:i}});F=It!=null?It:F,W=kt!=null?kt:W,Z={...Z,[dt]:{...Z[dt],...jt}},Ht&&et<=50&&(et++,typeof Ht=="object"&&(Ht.placement&&(Q=Ht.placement),Ht.rects&&(A=Ht.rects===!0?await c.getElementRects({reference:n,floating:i,strategy:o}):Ht.rects),{x:F,y:W}=Xv(A,Q,y)),lt=-1)}return{x:F,y:W,placement:Q,strategy:o,middlewareData:Z}};async function vd(n,i){var t;i===void 0&&(i={});let{x:e,y:o,platform:l,rects:c,elements:f,strategy:y}=n,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:W="floating",altBoundary:Q=!1,padding:Z=0}=Zo(i,n),et=Gh(Z),dt=f[Q?W==="floating"?"reference":"floating":W],ft=Jo(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(dt)))==null||t?dt:dt.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:y})),It=W==="floating"?{x:e,y:o,width:c.floating.width,height:c.floating.height}:c.reference,kt=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),jt=await(l.isElement==null?void 0:l.isElement(kt))?await(l.getScale==null?void 0:l.getScale(kt))||{x:1,y:1}:{x:1,y:1},Ht=Jo(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:kt,strategy:y}):It);return{top:(ft.top-Ht.top+et.top)/jt.y,bottom:(Ht.bottom-ft.bottom+et.bottom)/jt.y,left:(ft.left-Ht.left+et.left)/jt.x,right:(Ht.right-ft.right+et.right)/jt.x}}var Qv=n=>({name:"arrow",options:n,async fn(i){let{x:t,y:e,placement:o,rects:l,platform:c,elements:f,middlewareData:y}=i,{element:A,padding:F=0}=Zo(n,i)||{};if(A==null)return{};let W=Gh(F),Q={x:t,y:e},Z=fd(o),et=ud(Z),lt=await c.getDimensions(A),dt=Z==="y",ft=dt?"top":"left",It=dt?"bottom":"right",kt=dt?"clientHeight":"clientWidth",jt=l.reference[et]+l.reference[Z]-Q[Z]-l.floating[et],Ht=Q[Z]-l.reference[Z],qt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Ft=qt?qt[kt]:0;(!Ft||!await(c.isElement==null?void 0:c.isElement(qt)))&&(Ft=f.floating[kt]||l.floating[et]);let ae=jt/2-Ht/2,cr=Ft/2-lt[et]/2-1,Ne=si(W[ft],cr),je=si(W[It],cr),Ve=Ne,qe=Ft-lt[et]-je,Nt=Ft/2-lt[et]/2+ae,he=md(Ve,Nt,qe),gr=!y.arrow&&Qo(o)!=null&&Nt!==he&&l.reference[et]/2-(Nt<Ve?Ne:je)-lt[et]/2<0,br=gr?Nt<Ve?Nt-Ve:Nt-qe:0;return{[Z]:Q[Z]+br,data:{[Z]:he,centerOffset:Nt-he-br,...gr&&{alignmentOffset:br}},reset:gr}}});var Jv=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var t,e;let{placement:o,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:A}=i,{mainAxis:F=!0,crossAxis:W=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:lt=!0,...dt}=Zo(n,i);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ft=Mi(o),It=ai(f),kt=Mi(f)===f,jt=await(y.isRTL==null?void 0:y.isRTL(A.floating)),Ht=Q||(kt||!lt?[hn(f)]:jv(f)),qt=et!=="none";!Q&&qt&&Ht.push(...qv(f,lt,et,jt));let Ft=[f,...Ht],ae=await vd(i,dt),cr=[],Ne=((e=l.flip)==null?void 0:e.overflows)||[];if(F&&cr.push(ae[ft]),W){let Nt=Yv(o,c,jt);cr.push(ae[Nt[0]],ae[Nt[1]])}if(Ne=[...Ne,{placement:o,overflows:cr}],!cr.every(Nt=>Nt<=0)){var je,Ve;let Nt=(((je=l.flip)==null?void 0:je.index)||0)+1,he=Ft[Nt];if(he&&(!(W==="alignment"?It!==ai(he):!1)||Ne.every(yr=>yr.overflows[0]>0&&ai(yr.placement)===It)))return{data:{index:Nt,overflows:Ne},reset:{placement:he}};let gr=(Ve=Ne.filter(br=>br.overflows[0]<=0).sort((br,yr)=>br.overflows[1]-yr.overflows[1])[0])==null?void 0:Ve.placement;if(!gr)switch(Z){case"bestFit":{var qe;let br=(qe=Ne.filter(yr=>{if(qt){let Er=ai(yr.placement);return Er===It||Er==="y"}return!0}).map(yr=>[yr.placement,yr.overflows.filter(Er=>Er>0).reduce((Er,Xn)=>Er+Xn,0)]).sort((yr,Er)=>yr[1]-Er[1])[0])==null?void 0:qe[0];br&&(gr=br);break}case"initialPlacement":gr=f;break}if(o!==gr)return{reset:{placement:gr}}}return{}}}};var EA=new Set(["left","top"]);async function TA(n,i){let{placement:t,platform:e,elements:o}=n,l=await(e.isRTL==null?void 0:e.isRTL(o.floating)),c=Mi(t),f=Qo(t),y=ai(t)==="y",A=EA.has(c)?-1:1,F=l&&y?-1:1,W=Zo(i,n),{mainAxis:Q,crossAxis:Z,alignmentAxis:et}=typeof W=="number"?{mainAxis:W,crossAxis:0,alignmentAxis:null}:{mainAxis:W.mainAxis||0,crossAxis:W.crossAxis||0,alignmentAxis:W.alignmentAxis};return f&&typeof et=="number"&&(Z=f==="end"?et*-1:et),y?{x:Z*F,y:Q*A}:{x:Q*A,y:Z*F}}var tg=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var t,e;let{x:o,y:l,placement:c,middlewareData:f}=i,y=await TA(i,n);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:o+y.x,y:l+y.y,data:{...y,placement:c}}}}},eg=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){let{x:t,y:e,placement:o}=i,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:dt=>{let{x:ft,y:It}=dt;return{x:ft,y:It}}},...y}=Zo(n,i),A={x:t,y:e},F=await vd(i,y),W=ai(Mi(o)),Q=Hh(W),Z=A[Q],et=A[W];if(l){let dt=Q==="y"?"top":"left",ft=Q==="y"?"bottom":"right",It=Z+F[dt],kt=Z-F[ft];Z=md(It,Z,kt)}if(c){let dt=W==="y"?"top":"left",ft=W==="y"?"bottom":"right",It=et+F[dt],kt=et-F[ft];et=md(It,et,kt)}let lt=f.fn({...i,[Q]:Z,[W]:et});return{...lt,data:{x:lt.x-t,y:lt.y-e,enabled:{[Q]:l,[W]:c}}}}}};var rg=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var t,e;let{placement:o,rects:l,platform:c,elements:f}=i,{apply:y=()=>{},...A}=Zo(n,i),F=await vd(i,A),W=Mi(o),Q=Qo(o),Z=ai(o)==="y",{width:et,height:lt}=l.floating,dt,ft;W==="top"||W==="bottom"?(dt=W,ft=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ft=W,dt=Q==="end"?"top":"bottom");let It=lt-F.top-F.bottom,kt=et-F.left-F.right,jt=si(lt-F[dt],It),Ht=si(et-F[ft],kt),qt=!i.middlewareData.shift,Ft=jt,ae=Ht;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ae=kt),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(Ft=It),qt&&!Q){let Ne=Ge(F.left,0),je=Ge(F.right,0),Ve=Ge(F.top,0),qe=Ge(F.bottom,0);Z?ae=et-2*(Ne!==0||je!==0?Ne+je:Ge(F.left,F.right)):Ft=lt-2*(Ve!==0||qe!==0?Ve+qe:Ge(F.top,F.bottom))}await y({...i,availableWidth:ae,availableHeight:Ft});let cr=await c.getDimensions(f.floating);return et!==cr.width||lt!==cr.height?{reset:{rects:!0}}:{}}}};function gd(){return typeof window<"u"}function ts(n){return og(n)?(n.nodeName||"").toLowerCase():"#document"}function rr(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function Br(n){var i;return(i=(og(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function og(n){return gd()?n instanceof Node||n instanceof rr(n).Node:!1}function Cr(n){return gd()?n instanceof Element||n instanceof rr(n).Element:!1}function Ur(n){return gd()?n instanceof HTMLElement||n instanceof rr(n).HTMLElement:!1}function ig(n){return!gd()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof rr(n).ShadowRoot}var xA=new Set(["inline","contents"]);function ta(n){let{overflow:i,overflowX:t,overflowY:e,display:o}=kr(n);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!xA.has(o)}var AA=new Set(["table","td","th"]);function sg(n){return AA.has(ts(n))}var SA=[":popover-open",":modal"];function un(n){return SA.some(i=>{try{return n.matches(i)}catch{return!1}})}var IA=["transform","translate","scale","rotate","perspective"],_A=["transform","translate","scale","rotate","perspective","filter"],CA=["paint","layout","strict","content"];function bd(n){let i=yd(),t=Cr(n)?kr(n):n;return IA.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||_A.some(e=>(t.willChange||"").includes(e))||CA.some(e=>(t.contain||"").includes(e))}function ag(n){let i=Li(n);for(;Ur(i)&&!es(i);){if(bd(i))return i;if(un(i))return null;i=Li(i)}return null}function yd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var kA=new Set(["html","body","#document"]);function es(n){return kA.has(ts(n))}function kr(n){return rr(n).getComputedStyle(n)}function fn(n){return Cr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Li(n){if(ts(n)==="html")return n;let i=n.assignedSlot||n.parentNode||ig(n)&&n.host||Br(n);return ig(i)?i.host:i}function ng(n){let i=Li(n);return es(i)?n.ownerDocument?n.ownerDocument.body:n.body:Ur(i)&&ta(i)?i:ng(i)}function Js(n,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let o=ng(n),l=o===((e=n.ownerDocument)==null?void 0:e.body),c=rr(o);if(l){let f=Ed(c);return i.concat(c,c.visualViewport||[],ta(o)?o:[],f&&t?Js(f):[])}return i.concat(o,Js(o,[],t))}function Ed(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function cg(n){let i=kr(n),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,o=Ur(n),l=o?n.offsetWidth:t,c=o?n.offsetHeight:e,f=pn(t)!==l||pn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Wh(n){return Cr(n)?n:n.contextElement}function ea(n){let i=Wh(n);if(!Ur(i))return zr(1);let t=i.getBoundingClientRect(),{width:e,height:o,$:l}=cg(i),c=(l?pn(t.width):t.width)/e,f=(l?pn(t.height):t.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var wA=zr(0);function hg(n){let i=rr(n);return!yd()||!i.visualViewport?wA:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function NA(n,i,t){return i===void 0&&(i=!1),!t||i&&t!==rr(n)?!1:i}function rs(n,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let o=n.getBoundingClientRect(),l=Wh(n),c=zr(1);i&&(e?Cr(e)&&(c=ea(e)):c=ea(n));let f=NA(l,t,e)?hg(l):zr(0),y=(o.left+f.x)/c.x,A=(o.top+f.y)/c.y,F=o.width/c.x,W=o.height/c.y;if(l){let Q=rr(l),Z=e&&Cr(e)?rr(e):e,et=Q,lt=Ed(et);for(;lt&&e&&Z!==et;){let dt=ea(lt),ft=lt.getBoundingClientRect(),It=kr(lt),kt=ft.left+(lt.clientLeft+parseFloat(It.paddingLeft))*dt.x,jt=ft.top+(lt.clientTop+parseFloat(It.paddingTop))*dt.y;y*=dt.x,A*=dt.y,F*=dt.x,W*=dt.y,y+=kt,A+=jt,et=rr(lt),lt=Ed(et)}}return Jo({width:F,height:W,x:y,y:A})}function Yh(n,i){let t=fn(n).scrollLeft;return i?i.left+t:rs(Br(n)).left+t}function pg(n,i,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),o=e.left+i.scrollLeft-(t?0:Yh(n,e)),l=e.top+i.scrollTop;return{x:o,y:l}}function MA(n){let{elements:i,rect:t,offsetParent:e,strategy:o}=n,l=o==="fixed",c=Br(e),f=i?un(i.floating):!1;if(e===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},A=zr(1),F=zr(0),W=Ur(e);if((W||!W&&!l)&&((ts(e)!=="body"||ta(c))&&(y=fn(e)),Ur(e))){let Z=rs(e);A=ea(e),F.x=Z.x+e.clientLeft,F.y=Z.y+e.clientTop}let Q=c&&!W&&!l?pg(c,y,!0):zr(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-y.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-y.scrollTop*A.y+F.y+Q.y}}function LA(n){return Array.from(n.getClientRects())}function OA(n){let i=Br(n),t=fn(n),e=n.ownerDocument.body,o=Ge(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),l=Ge(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Yh(n),f=-t.scrollTop;return kr(e).direction==="rtl"&&(c+=Ge(i.clientWidth,e.clientWidth)-o),{width:o,height:l,x:c,y:f}}function RA(n,i){let t=rr(n),e=Br(n),o=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,y=0;if(o){l=o.width,c=o.height;let A=yd();(!A||A&&i==="fixed")&&(f=o.offsetLeft,y=o.offsetTop)}return{width:l,height:c,x:f,y}}var DA=new Set(["absolute","fixed"]);function PA(n,i){let t=rs(n,!0,i==="fixed"),e=t.top+n.clientTop,o=t.left+n.clientLeft,l=Ur(n)?ea(n):zr(1),c=n.clientWidth*l.x,f=n.clientHeight*l.y,y=o*l.x,A=e*l.y;return{width:c,height:f,x:y,y:A}}function lg(n,i,t){let e;if(i==="viewport")e=RA(n,t);else if(i==="document")e=OA(Br(n));else if(Cr(i))e=PA(i,t);else{let o=hg(n);e={x:i.x-o.x,y:i.y-o.y,width:i.width,height:i.height}}return Jo(e)}function mg(n,i){let t=Li(n);return t===i||!Cr(t)||es(t)?!1:kr(t).position==="fixed"||mg(t,i)}function FA(n,i){let t=i.get(n);if(t)return t;let e=Js(n,[],!1).filter(f=>Cr(f)&&ts(f)!=="body"),o=null,l=kr(n).position==="fixed",c=l?Li(n):n;for(;Cr(c)&&!es(c);){let f=kr(c),y=bd(c);!y&&f.position==="fixed"&&(o=null),(l?!y&&!o:!y&&f.position==="static"&&!!o&&DA.has(o.position)||ta(c)&&!y&&mg(n,c))?e=e.filter(F=>F!==c):o=f,c=Li(c)}return i.set(n,e),e}function $A(n){let{element:i,boundary:t,rootBoundary:e,strategy:o}=n,c=[...t==="clippingAncestors"?un(i)?[]:FA(i,this._c):[].concat(t),e],f=c[0],y=c.reduce((A,F)=>{let W=lg(i,F,o);return A.top=Ge(W.top,A.top),A.right=si(W.right,A.right),A.bottom=si(W.bottom,A.bottom),A.left=Ge(W.left,A.left),A},lg(i,f,o));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function VA(n){let{width:i,height:t}=cg(n);return{width:i,height:t}}function zA(n,i,t){let e=Ur(i),o=Br(i),l=t==="fixed",c=rs(n,!0,l,i),f={scrollLeft:0,scrollTop:0},y=zr(0);function A(){y.x=Yh(o)}if(e||!e&&!l)if((ts(i)!=="body"||ta(o))&&(f=fn(i)),e){let Z=rs(i,!0,l,i);y.x=Z.x+i.clientLeft,y.y=Z.y+i.clientTop}else o&&A();l&&!e&&o&&A();let F=o&&!e&&!l?pg(o,f):zr(0),W=c.left+f.scrollLeft-y.x-F.x,Q=c.top+f.scrollTop-y.y-F.y;return{x:W,y:Q,width:c.width,height:c.height}}function Kh(n){return kr(n).position==="static"}function dg(n,i){if(!Ur(n)||kr(n).position==="fixed")return null;if(i)return i(n);let t=n.offsetParent;return Br(n)===t&&(t=t.ownerDocument.body),t}function ug(n,i){let t=rr(n);if(un(n))return t;if(!Ur(n)){let o=Li(n);for(;o&&!es(o);){if(Cr(o)&&!Kh(o))return o;o=Li(o)}return t}let e=dg(n,i);for(;e&&sg(e)&&Kh(e);)e=dg(e,i);return e&&es(e)&&Kh(e)&&!bd(e)?t:e||ag(n)||t}var BA=async function(n){let i=this.getOffsetParent||ug,t=this.getDimensions,e=await t(n.floating);return{reference:zA(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function UA(n){return kr(n).direction==="rtl"}var HA={convertOffsetParentRelativeRectToViewportRelativeRect:MA,getDocumentElement:Br,getClippingRect:$A,getOffsetParent:ug,getElementRects:BA,getClientRects:LA,getDimensions:VA,getScale:ea,isElement:Cr,isRTL:UA};function fg(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function GA(n,i){let t=null,e,o=Br(n);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let A=n.getBoundingClientRect(),{left:F,top:W,width:Q,height:Z}=A;if(f||i(),!Q||!Z)return;let et=mn(W),lt=mn(o.clientWidth-(F+Q)),dt=mn(o.clientHeight-(W+Z)),ft=mn(F),kt={rootMargin:-et+"px "+-lt+"px "+-dt+"px "+-ft+"px",threshold:Ge(0,si(1,y))||1},jt=!0;function Ht(qt){let Ft=qt[0].intersectionRatio;if(Ft!==y){if(!jt)return c();Ft?c(!1,Ft):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Ft===1&&!fg(A,n.getBoundingClientRect())&&c(),jt=!1}try{t=new IntersectionObserver(Ht,{...kt,root:o.ownerDocument})}catch{t=new IntersectionObserver(Ht,kt)}t.observe(n)}return c(!0),l}function vg(n,i,t,e){e===void 0&&(e={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,A=Wh(n),F=o||l?[...A?Js(A):[],...Js(i)]:[];F.forEach(ft=>{o&&ft.addEventListener("scroll",t,{passive:!0}),l&&ft.addEventListener("resize",t)});let W=A&&f?GA(A,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(ft=>{let[It]=ft;It&&It.target===A&&Z&&(Z.unobserve(i),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var kt;(kt=Z)==null||kt.observe(i)})),t()}),A&&!y&&Z.observe(A),Z.observe(i));let et,lt=y?rs(n):null;y&&dt();function dt(){let ft=rs(n);lt&&!fg(lt,ft)&&t(),lt=ft,et=requestAnimationFrame(dt)}return t(),()=>{var ft;F.forEach(It=>{o&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),W==null||W(),(ft=Z)==null||ft.disconnect(),Z=null,y&&cancelAnimationFrame(et)}}var gg=tg;var bg=eg,yg=Jv,Eg=rg;var Tg=Qv;var xg=(n,i,t)=>{let e=new Map,o={platform:HA,...t},l={...o.platform,_c:e};return Zv(n,i,{...o,platform:l})};var Td=class{constructor(i){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;i.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(i,t,e,...o){this.nameToIntervalId.has(i)&&clearInterval(this.nameToIntervalId.get(i));let l=window.setInterval(t,e,...o);return this.nameToIntervalId.set(i,l),l}clearInterval(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,i);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(i,t,e,...o){this.nameToTimeoutId.has(i)&&clearTimeout(this.nameToTimeoutId.get(i));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(i)},e,...o);return this.nameToTimeoutId.set(i,l),l}clearTimeout(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,i);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(i,t){var e;if(typeof t=="number"){let o=t;return[(e=[...i.entries()].find(([,c])=>c===t))==null?void 0:e[0],o]}return[t,i.get(t)]}};var Oi=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var KA=B`
|
|
2587
|
+
`],Hv=hA;var Xo=class extends Jt(X){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return S` <slot></slot>
|
|
2588
|
+
<span part="radio-icon" class="radio-icon"></span>`}};Xo.styles=[...X.styles,...Hv],h([u({type:Boolean,reflect:!0})],Xo.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],Xo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Xo.prototype,"softDisabled",2);var Uh=Xo;var Gv=z.constructTagName("staticradio");Uh.register(Gv);var pA=Uh;Bh.register(hd);var mA=Bh;var si=Math.min,Ge=Math.max,pn=Math.round,mn=Math.floor,zr=n=>({x:n,y:n}),uA={left:"right",right:"left",bottom:"top",top:"bottom"},fA={start:"end",end:"start"};function md(n,i,t){return Ge(n,si(i,t))}function Zo(n,i){return typeof n=="function"?n(i):n}function Mi(n){return n.split("-")[0]}function Qo(n){return n.split("-")[1]}function Hh(n){return n==="x"?"y":"x"}function ud(n){return n==="y"?"height":"width"}var vA=new Set(["top","bottom"]);function ai(n){return vA.has(Mi(n))?"y":"x"}function fd(n){return Hh(ai(n))}function Yv(n,i,t){t===void 0&&(t=!1);let e=Qo(n),o=fd(n),l=ud(o),c=o==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[l]>i.floating[l]&&(c=hn(c)),[c,hn(c)]}function jv(n){let i=hn(n);return[pd(n),i,pd(i)]}function pd(n){return n.replace(/start|end/g,i=>fA[i])}var Kv=["left","right"],Wv=["right","left"],gA=["top","bottom"],bA=["bottom","top"];function yA(n,i,t){switch(n){case"top":case"bottom":return t?i?Wv:Kv:i?Kv:Wv;case"left":case"right":return i?gA:bA;default:return[]}}function qv(n,i,t,e){let o=Qo(n),l=yA(Mi(n),t==="start",e);return o&&(l=l.map(c=>c+"-"+o),i&&(l=l.concat(l.map(pd)))),l}function hn(n){return n.replace(/left|right|bottom|top/g,i=>uA[i])}function EA(n){return{top:0,right:0,bottom:0,left:0,...n}}function Gh(n){return typeof n!="number"?EA(n):{top:n,right:n,bottom:n,left:n}}function Jo(n){let{x:i,y:t,width:e,height:o}=n;return{width:e,height:o,top:t,left:i,right:i+e,bottom:t+o,x:i,y:t}}function Xv(n,i,t){let{reference:e,floating:o}=n,l=ai(i),c=fd(i),f=ud(c),y=Mi(i),A=l==="y",F=e.x+e.width/2-o.width/2,W=e.y+e.height/2-o.height/2,Q=e[f]/2-o[f]/2,Z;switch(y){case"top":Z={x:F,y:e.y-o.height};break;case"bottom":Z={x:F,y:e.y+e.height};break;case"right":Z={x:e.x+e.width,y:W};break;case"left":Z={x:e.x-o.width,y:W};break;default:Z={x:e.x,y:e.y}}switch(Qo(i)){case"start":Z[c]-=Q*(t&&A?-1:1);break;case"end":Z[c]+=Q*(t&&A?-1:1);break}return Z}var Zv=async(n,i,t)=>{let{placement:e="bottom",strategy:o="absolute",middleware:l=[],platform:c}=t,f=l.filter(Boolean),y=await(c.isRTL==null?void 0:c.isRTL(i)),A=await c.getElementRects({reference:n,floating:i,strategy:o}),{x:F,y:W}=Xv(A,e,y),Q=e,Z={},et=0;for(let lt=0;lt<f.length;lt++){let{name:dt,fn:ft}=f[lt],{x:It,y:kt,data:jt,reset:Ht}=await ft({x:F,y:W,initialPlacement:e,placement:Q,strategy:o,middlewareData:Z,rects:A,platform:c,elements:{reference:n,floating:i}});F=It!=null?It:F,W=kt!=null?kt:W,Z={...Z,[dt]:{...Z[dt],...jt}},Ht&&et<=50&&(et++,typeof Ht=="object"&&(Ht.placement&&(Q=Ht.placement),Ht.rects&&(A=Ht.rects===!0?await c.getElementRects({reference:n,floating:i,strategy:o}):Ht.rects),{x:F,y:W}=Xv(A,Q,y)),lt=-1)}return{x:F,y:W,placement:Q,strategy:o,middlewareData:Z}};async function vd(n,i){var t;i===void 0&&(i={});let{x:e,y:o,platform:l,rects:c,elements:f,strategy:y}=n,{boundary:A="clippingAncestors",rootBoundary:F="viewport",elementContext:W="floating",altBoundary:Q=!1,padding:Z=0}=Zo(i,n),et=Gh(Z),dt=f[Q?W==="floating"?"reference":"floating":W],ft=Jo(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(dt)))==null||t?dt:dt.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:F,strategy:y})),It=W==="floating"?{x:e,y:o,width:c.floating.width,height:c.floating.height}:c.reference,kt=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),jt=await(l.isElement==null?void 0:l.isElement(kt))?await(l.getScale==null?void 0:l.getScale(kt))||{x:1,y:1}:{x:1,y:1},Ht=Jo(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:It,offsetParent:kt,strategy:y}):It);return{top:(ft.top-Ht.top+et.top)/jt.y,bottom:(Ht.bottom-ft.bottom+et.bottom)/jt.y,left:(ft.left-Ht.left+et.left)/jt.x,right:(Ht.right-ft.right+et.right)/jt.x}}var Qv=n=>({name:"arrow",options:n,async fn(i){let{x:t,y:e,placement:o,rects:l,platform:c,elements:f,middlewareData:y}=i,{element:A,padding:F=0}=Zo(n,i)||{};if(A==null)return{};let W=Gh(F),Q={x:t,y:e},Z=fd(o),et=ud(Z),lt=await c.getDimensions(A),dt=Z==="y",ft=dt?"top":"left",It=dt?"bottom":"right",kt=dt?"clientHeight":"clientWidth",jt=l.reference[et]+l.reference[Z]-Q[Z]-l.floating[et],Ht=Q[Z]-l.reference[Z],qt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(A)),Ft=qt?qt[kt]:0;(!Ft||!await(c.isElement==null?void 0:c.isElement(qt)))&&(Ft=f.floating[kt]||l.floating[et]);let ae=jt/2-Ht/2,cr=Ft/2-lt[et]/2-1,Ne=si(W[ft],cr),je=si(W[It],cr),Ve=Ne,qe=Ft-lt[et]-je,Nt=Ft/2-lt[et]/2+ae,he=md(Ve,Nt,qe),gr=!y.arrow&&Qo(o)!=null&&Nt!==he&&l.reference[et]/2-(Nt<Ve?Ne:je)-lt[et]/2<0,br=gr?Nt<Ve?Nt-Ve:Nt-qe:0;return{[Z]:Q[Z]+br,data:{[Z]:he,centerOffset:Nt-he-br,...gr&&{alignmentOffset:br}},reset:gr}}});var Jv=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var t,e;let{placement:o,middlewareData:l,rects:c,initialPlacement:f,platform:y,elements:A}=i,{mainAxis:F=!0,crossAxis:W=!0,fallbackPlacements:Q,fallbackStrategy:Z="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:lt=!0,...dt}=Zo(n,i);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let ft=Mi(o),It=ai(f),kt=Mi(f)===f,jt=await(y.isRTL==null?void 0:y.isRTL(A.floating)),Ht=Q||(kt||!lt?[hn(f)]:jv(f)),qt=et!=="none";!Q&&qt&&Ht.push(...qv(f,lt,et,jt));let Ft=[f,...Ht],ae=await vd(i,dt),cr=[],Ne=((e=l.flip)==null?void 0:e.overflows)||[];if(F&&cr.push(ae[ft]),W){let Nt=Yv(o,c,jt);cr.push(ae[Nt[0]],ae[Nt[1]])}if(Ne=[...Ne,{placement:o,overflows:cr}],!cr.every(Nt=>Nt<=0)){var je,Ve;let Nt=(((je=l.flip)==null?void 0:je.index)||0)+1,he=Ft[Nt];if(he&&(!(W==="alignment"?It!==ai(he):!1)||Ne.every(yr=>yr.overflows[0]>0&&ai(yr.placement)===It)))return{data:{index:Nt,overflows:Ne},reset:{placement:he}};let gr=(Ve=Ne.filter(br=>br.overflows[0]<=0).sort((br,yr)=>br.overflows[1]-yr.overflows[1])[0])==null?void 0:Ve.placement;if(!gr)switch(Z){case"bestFit":{var qe;let br=(qe=Ne.filter(yr=>{if(qt){let Er=ai(yr.placement);return Er===It||Er==="y"}return!0}).map(yr=>[yr.placement,yr.overflows.filter(Er=>Er>0).reduce((Er,Xn)=>Er+Xn,0)]).sort((yr,Er)=>yr[1]-Er[1])[0])==null?void 0:qe[0];br&&(gr=br);break}case"initialPlacement":gr=f;break}if(o!==gr)return{reset:{placement:gr}}}return{}}}};var TA=new Set(["left","top"]);async function xA(n,i){let{placement:t,platform:e,elements:o}=n,l=await(e.isRTL==null?void 0:e.isRTL(o.floating)),c=Mi(t),f=Qo(t),y=ai(t)==="y",A=TA.has(c)?-1:1,F=l&&y?-1:1,W=Zo(i,n),{mainAxis:Q,crossAxis:Z,alignmentAxis:et}=typeof W=="number"?{mainAxis:W,crossAxis:0,alignmentAxis:null}:{mainAxis:W.mainAxis||0,crossAxis:W.crossAxis||0,alignmentAxis:W.alignmentAxis};return f&&typeof et=="number"&&(Z=f==="end"?et*-1:et),y?{x:Z*F,y:Q*A}:{x:Q*A,y:Z*F}}var tg=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var t,e;let{x:o,y:l,placement:c,middlewareData:f}=i,y=await xA(i,n);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:o+y.x,y:l+y.y,data:{...y,placement:c}}}}},eg=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){let{x:t,y:e,placement:o}=i,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:dt=>{let{x:ft,y:It}=dt;return{x:ft,y:It}}},...y}=Zo(n,i),A={x:t,y:e},F=await vd(i,y),W=ai(Mi(o)),Q=Hh(W),Z=A[Q],et=A[W];if(l){let dt=Q==="y"?"top":"left",ft=Q==="y"?"bottom":"right",It=Z+F[dt],kt=Z-F[ft];Z=md(It,Z,kt)}if(c){let dt=W==="y"?"top":"left",ft=W==="y"?"bottom":"right",It=et+F[dt],kt=et-F[ft];et=md(It,et,kt)}let lt=f.fn({...i,[Q]:Z,[W]:et});return{...lt,data:{x:lt.x-t,y:lt.y-e,enabled:{[Q]:l,[W]:c}}}}}};var rg=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var t,e;let{placement:o,rects:l,platform:c,elements:f}=i,{apply:y=()=>{},...A}=Zo(n,i),F=await vd(i,A),W=Mi(o),Q=Qo(o),Z=ai(o)==="y",{width:et,height:lt}=l.floating,dt,ft;W==="top"||W==="bottom"?(dt=W,ft=Q===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(ft=W,dt=Q==="end"?"top":"bottom");let It=lt-F.top-F.bottom,kt=et-F.left-F.right,jt=si(lt-F[dt],It),Ht=si(et-F[ft],kt),qt=!i.middlewareData.shift,Ft=jt,ae=Ht;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ae=kt),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(Ft=It),qt&&!Q){let Ne=Ge(F.left,0),je=Ge(F.right,0),Ve=Ge(F.top,0),qe=Ge(F.bottom,0);Z?ae=et-2*(Ne!==0||je!==0?Ne+je:Ge(F.left,F.right)):Ft=lt-2*(Ve!==0||qe!==0?Ve+qe:Ge(F.top,F.bottom))}await y({...i,availableWidth:ae,availableHeight:Ft});let cr=await c.getDimensions(f.floating);return et!==cr.width||lt!==cr.height?{reset:{rects:!0}}:{}}}};function gd(){return typeof window<"u"}function ts(n){return og(n)?(n.nodeName||"").toLowerCase():"#document"}function rr(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function Br(n){var i;return(i=(og(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function og(n){return gd()?n instanceof Node||n instanceof rr(n).Node:!1}function Cr(n){return gd()?n instanceof Element||n instanceof rr(n).Element:!1}function Ur(n){return gd()?n instanceof HTMLElement||n instanceof rr(n).HTMLElement:!1}function ig(n){return!gd()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof rr(n).ShadowRoot}var AA=new Set(["inline","contents"]);function ta(n){let{overflow:i,overflowX:t,overflowY:e,display:o}=kr(n);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!AA.has(o)}var SA=new Set(["table","td","th"]);function sg(n){return SA.has(ts(n))}var IA=[":popover-open",":modal"];function un(n){return IA.some(i=>{try{return n.matches(i)}catch{return!1}})}var _A=["transform","translate","scale","rotate","perspective"],CA=["transform","translate","scale","rotate","perspective","filter"],kA=["paint","layout","strict","content"];function bd(n){let i=yd(),t=Cr(n)?kr(n):n;return _A.some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||CA.some(e=>(t.willChange||"").includes(e))||kA.some(e=>(t.contain||"").includes(e))}function ag(n){let i=Li(n);for(;Ur(i)&&!es(i);){if(bd(i))return i;if(un(i))return null;i=Li(i)}return null}function yd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var wA=new Set(["html","body","#document"]);function es(n){return wA.has(ts(n))}function kr(n){return rr(n).getComputedStyle(n)}function fn(n){return Cr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Li(n){if(ts(n)==="html")return n;let i=n.assignedSlot||n.parentNode||ig(n)&&n.host||Br(n);return ig(i)?i.host:i}function ng(n){let i=Li(n);return es(i)?n.ownerDocument?n.ownerDocument.body:n.body:Ur(i)&&ta(i)?i:ng(i)}function Js(n,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let o=ng(n),l=o===((e=n.ownerDocument)==null?void 0:e.body),c=rr(o);if(l){let f=Ed(c);return i.concat(c,c.visualViewport||[],ta(o)?o:[],f&&t?Js(f):[])}return i.concat(o,Js(o,[],t))}function Ed(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function cg(n){let i=kr(n),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,o=Ur(n),l=o?n.offsetWidth:t,c=o?n.offsetHeight:e,f=pn(t)!==l||pn(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Wh(n){return Cr(n)?n:n.contextElement}function ea(n){let i=Wh(n);if(!Ur(i))return zr(1);let t=i.getBoundingClientRect(),{width:e,height:o,$:l}=cg(i),c=(l?pn(t.width):t.width)/e,f=(l?pn(t.height):t.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var NA=zr(0);function hg(n){let i=rr(n);return!yd()||!i.visualViewport?NA:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function MA(n,i,t){return i===void 0&&(i=!1),!t||i&&t!==rr(n)?!1:i}function rs(n,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let o=n.getBoundingClientRect(),l=Wh(n),c=zr(1);i&&(e?Cr(e)&&(c=ea(e)):c=ea(n));let f=MA(l,t,e)?hg(l):zr(0),y=(o.left+f.x)/c.x,A=(o.top+f.y)/c.y,F=o.width/c.x,W=o.height/c.y;if(l){let Q=rr(l),Z=e&&Cr(e)?rr(e):e,et=Q,lt=Ed(et);for(;lt&&e&&Z!==et;){let dt=ea(lt),ft=lt.getBoundingClientRect(),It=kr(lt),kt=ft.left+(lt.clientLeft+parseFloat(It.paddingLeft))*dt.x,jt=ft.top+(lt.clientTop+parseFloat(It.paddingTop))*dt.y;y*=dt.x,A*=dt.y,F*=dt.x,W*=dt.y,y+=kt,A+=jt,et=rr(lt),lt=Ed(et)}}return Jo({width:F,height:W,x:y,y:A})}function Yh(n,i){let t=fn(n).scrollLeft;return i?i.left+t:rs(Br(n)).left+t}function pg(n,i,t){t===void 0&&(t=!1);let e=n.getBoundingClientRect(),o=e.left+i.scrollLeft-(t?0:Yh(n,e)),l=e.top+i.scrollTop;return{x:o,y:l}}function LA(n){let{elements:i,rect:t,offsetParent:e,strategy:o}=n,l=o==="fixed",c=Br(e),f=i?un(i.floating):!1;if(e===c||f&&l)return t;let y={scrollLeft:0,scrollTop:0},A=zr(1),F=zr(0),W=Ur(e);if((W||!W&&!l)&&((ts(e)!=="body"||ta(c))&&(y=fn(e)),Ur(e))){let Z=rs(e);A=ea(e),F.x=Z.x+e.clientLeft,F.y=Z.y+e.clientTop}let Q=c&&!W&&!l?pg(c,y,!0):zr(0);return{width:t.width*A.x,height:t.height*A.y,x:t.x*A.x-y.scrollLeft*A.x+F.x+Q.x,y:t.y*A.y-y.scrollTop*A.y+F.y+Q.y}}function OA(n){return Array.from(n.getClientRects())}function RA(n){let i=Br(n),t=fn(n),e=n.ownerDocument.body,o=Ge(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),l=Ge(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Yh(n),f=-t.scrollTop;return kr(e).direction==="rtl"&&(c+=Ge(i.clientWidth,e.clientWidth)-o),{width:o,height:l,x:c,y:f}}function DA(n,i){let t=rr(n),e=Br(n),o=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,y=0;if(o){l=o.width,c=o.height;let A=yd();(!A||A&&i==="fixed")&&(f=o.offsetLeft,y=o.offsetTop)}return{width:l,height:c,x:f,y}}var PA=new Set(["absolute","fixed"]);function FA(n,i){let t=rs(n,!0,i==="fixed"),e=t.top+n.clientTop,o=t.left+n.clientLeft,l=Ur(n)?ea(n):zr(1),c=n.clientWidth*l.x,f=n.clientHeight*l.y,y=o*l.x,A=e*l.y;return{width:c,height:f,x:y,y:A}}function lg(n,i,t){let e;if(i==="viewport")e=DA(n,t);else if(i==="document")e=RA(Br(n));else if(Cr(i))e=FA(i,t);else{let o=hg(n);e={x:i.x-o.x,y:i.y-o.y,width:i.width,height:i.height}}return Jo(e)}function mg(n,i){let t=Li(n);return t===i||!Cr(t)||es(t)?!1:kr(t).position==="fixed"||mg(t,i)}function $A(n,i){let t=i.get(n);if(t)return t;let e=Js(n,[],!1).filter(f=>Cr(f)&&ts(f)!=="body"),o=null,l=kr(n).position==="fixed",c=l?Li(n):n;for(;Cr(c)&&!es(c);){let f=kr(c),y=bd(c);!y&&f.position==="fixed"&&(o=null),(l?!y&&!o:!y&&f.position==="static"&&!!o&&PA.has(o.position)||ta(c)&&!y&&mg(n,c))?e=e.filter(F=>F!==c):o=f,c=Li(c)}return i.set(n,e),e}function VA(n){let{element:i,boundary:t,rootBoundary:e,strategy:o}=n,c=[...t==="clippingAncestors"?un(i)?[]:$A(i,this._c):[].concat(t),e],f=c[0],y=c.reduce((A,F)=>{let W=lg(i,F,o);return A.top=Ge(W.top,A.top),A.right=si(W.right,A.right),A.bottom=si(W.bottom,A.bottom),A.left=Ge(W.left,A.left),A},lg(i,f,o));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function zA(n){let{width:i,height:t}=cg(n);return{width:i,height:t}}function BA(n,i,t){let e=Ur(i),o=Br(i),l=t==="fixed",c=rs(n,!0,l,i),f={scrollLeft:0,scrollTop:0},y=zr(0);function A(){y.x=Yh(o)}if(e||!e&&!l)if((ts(i)!=="body"||ta(o))&&(f=fn(i)),e){let Z=rs(i,!0,l,i);y.x=Z.x+i.clientLeft,y.y=Z.y+i.clientTop}else o&&A();l&&!e&&o&&A();let F=o&&!e&&!l?pg(o,f):zr(0),W=c.left+f.scrollLeft-y.x-F.x,Q=c.top+f.scrollTop-y.y-F.y;return{x:W,y:Q,width:c.width,height:c.height}}function Kh(n){return kr(n).position==="static"}function dg(n,i){if(!Ur(n)||kr(n).position==="fixed")return null;if(i)return i(n);let t=n.offsetParent;return Br(n)===t&&(t=t.ownerDocument.body),t}function ug(n,i){let t=rr(n);if(un(n))return t;if(!Ur(n)){let o=Li(n);for(;o&&!es(o);){if(Cr(o)&&!Kh(o))return o;o=Li(o)}return t}let e=dg(n,i);for(;e&&sg(e)&&Kh(e);)e=dg(e,i);return e&&es(e)&&Kh(e)&&!bd(e)?t:e||ag(n)||t}var UA=async function(n){let i=this.getOffsetParent||ug,t=this.getDimensions,e=await t(n.floating);return{reference:BA(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function HA(n){return kr(n).direction==="rtl"}var GA={convertOffsetParentRelativeRectToViewportRelativeRect:LA,getDocumentElement:Br,getClippingRect:VA,getOffsetParent:ug,getElementRects:UA,getClientRects:OA,getDimensions:zA,getScale:ea,isElement:Cr,isRTL:HA};function fg(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function KA(n,i){let t=null,e,o=Br(n);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,y){f===void 0&&(f=!1),y===void 0&&(y=1),l();let A=n.getBoundingClientRect(),{left:F,top:W,width:Q,height:Z}=A;if(f||i(),!Q||!Z)return;let et=mn(W),lt=mn(o.clientWidth-(F+Q)),dt=mn(o.clientHeight-(W+Z)),ft=mn(F),kt={rootMargin:-et+"px "+-lt+"px "+-dt+"px "+-ft+"px",threshold:Ge(0,si(1,y))||1},jt=!0;function Ht(qt){let Ft=qt[0].intersectionRatio;if(Ft!==y){if(!jt)return c();Ft?c(!1,Ft):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Ft===1&&!fg(A,n.getBoundingClientRect())&&c(),jt=!1}try{t=new IntersectionObserver(Ht,{...kt,root:o.ownerDocument})}catch{t=new IntersectionObserver(Ht,kt)}t.observe(n)}return c(!0),l}function vg(n,i,t,e){e===void 0&&(e={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:y=!1}=e,A=Wh(n),F=o||l?[...A?Js(A):[],...Js(i)]:[];F.forEach(ft=>{o&&ft.addEventListener("scroll",t,{passive:!0}),l&&ft.addEventListener("resize",t)});let W=A&&f?KA(A,t):null,Q=-1,Z=null;c&&(Z=new ResizeObserver(ft=>{let[It]=ft;It&&It.target===A&&Z&&(Z.unobserve(i),cancelAnimationFrame(Q),Q=requestAnimationFrame(()=>{var kt;(kt=Z)==null||kt.observe(i)})),t()}),A&&!y&&Z.observe(A),Z.observe(i));let et,lt=y?rs(n):null;y&&dt();function dt(){let ft=rs(n);lt&&!fg(lt,ft)&&t(),lt=ft,et=requestAnimationFrame(dt)}return t(),()=>{var ft;F.forEach(It=>{o&&It.removeEventListener("scroll",t),l&&It.removeEventListener("resize",t)}),W==null||W(),(ft=Z)==null||ft.disconnect(),Z=null,y&&cancelAnimationFrame(et)}}var gg=tg;var bg=eg,yg=Jv,Eg=rg;var Tg=Qv;var xg=(n,i,t)=>{let e=new Map,o={platform:GA,...t},l={...o.platform,_c:e};return Zv(n,i,{...o,platform:l})};var Td=class{constructor(i){this.nameToIntervalId=new Map;this.nameToTimeoutId=new Map;i.addController(this)}hostDisconnected(){[...this.nameToIntervalId.values()].forEach(clearInterval),this.nameToIntervalId.clear(),[...this.nameToTimeoutId.values()].forEach(clearTimeout),this.nameToTimeoutId.clear()}setInterval(i,t,e,...o){this.nameToIntervalId.has(i)&&clearInterval(this.nameToIntervalId.get(i));let l=window.setInterval(t,e,...o);return this.nameToIntervalId.set(i,l),l}clearInterval(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToIntervalId,i);e!==void 0&&clearInterval(e),t&&this.nameToIntervalId.delete(t)}setTimeout(i,t,e,...o){this.nameToTimeoutId.has(i)&&clearTimeout(this.nameToTimeoutId.get(i));let l=window.setTimeout((...c)=>{t(...c),this.nameToTimeoutId.delete(i)},e,...o);return this.nameToTimeoutId.set(i,l),l}clearTimeout(i){let[t,e]=this.getNameAndIdFromIdentifier(this.nameToTimeoutId,i);e!==void 0&&window.clearTimeout(e),t&&this.nameToTimeoutId.delete(t)}getNameAndIdFromIdentifier(i,t){var e;if(typeof t=="number"){let o=t;return[(e=[...i.entries()].find(([,c])=>c===t))==null?void 0:e[0],o]}return[t,i.get(t)]}};var Oi=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var WA=B`
|
|
2589
2589
|
:host {
|
|
2590
2590
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
|
2591
2591
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -2709,7 +2709,7 @@
|
|
|
2709
2709
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
|
2710
2710
|
border-bottom-left-radius: 100%;
|
|
2711
2711
|
}
|
|
2712
|
-
`,Ag=[KA];var Ad=z.constructTagName("popoverportal"),xd=class extends X{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.onDisconnect)==null||i.call(this)}};var Sd=class{constructor(i){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(e=>{let o=parseInt(e,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${e}`);return o});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){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 o=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,y=this.popover.offsetWidth||0,A=i.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(o.top-l.bottom,l.top-o.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-o.right,o.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break}}}setupAppendTo(){var i,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(Ad),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(i=this.popover.parentElement)==null?void 0:i.appendChild)==null||t.call(i,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var i,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===tt.DIALOG||this.popover.role===tt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var i,t,e;this.popover.disableAriaExpanded||((i=this.popover.triggerElement)==null||i.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(i,t){var F;if(!this.popover.arrowElement)return;let e=t.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=i,f=this.popover.arrowElement.getBoundingClientRect(),y=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let W=y!=null&&y[o]?12-Math.abs(f[o]-y[o]):0;Math.round(W)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}};var _t=class extends Lt(wt(ql(Kl(Gl(X))))){constructor(){super();this.depthManager=new ao(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.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 Td(this);this.parseTrigger=()=>{var l;let o=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(Se).includes(c)).length>0?this.trigger:Et.TRIGGER;o==="mouseenter"&&(this.interactive?o="mouseenter click":o="mouseenter focusin"),this.trigger=o};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),o=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!o||l)&&(this.hide(),Oi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Oi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,o,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(o=this.triggerElement)==null?void 0:o.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ni.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ni.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ni.HOVER),this.timers.clearTimeout(Ni.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ni.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ni.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)),o=this.boundaryRoot,l=[bg({boundary:e,rootBoundary:o,padding:this.boundaryPadding})];if(this.disableFlip||l.push(yg({boundary:e,rootBoundary:o})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(Eg({boundary:e,rootBoundary:o,apply({availableHeight:A}){y&&(Object.assign(y.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(Tg({element:this.arrowElement,padding:12}))}l.push(gg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=vg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:W,placement:Q}=await xg(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),W.arrow&&this.arrowElement&&this.utils.updateArrowStyle(W.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Sd(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),Oi.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(),Oi.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(qo).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:o}=this;t===e||!o||(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(o)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(o.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,y,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Oi.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(o),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(o.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(o==null||o.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Oi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ni.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ni.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(o=>(o==null?void 0:o.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
|
|
2712
|
+
`,Ag=[WA];var Ad=z.constructTagName("popoverportal"),xd=class extends X{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this.onDisconnect)==null||i.call(this)}};var Sd=class{constructor(i){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=i}setupDelay(){try{let[i,t]=this.popover.delay.split(",").map(e=>{let o=parseInt(e,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${e}`);return o});return[i,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(i){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 o=this.popover.getBoundingClientRect(),l=e.getBoundingClientRect(),c=0;if(!l)return;let f=this.popover.offsetHeight||0,y=this.popover.offsetWidth||0,A=i.split("-")[0];switch(A==="top"||A==="bottom"?c=Math.max(0,Math.max(o.top-l.bottom,l.top-o.bottom)):(A==="left"||A==="right")&&(c=Math.max(0,Math.max(l.left-o.right,o.left-l.right))),c+=1,A){case"top":t.style.height=`${c}px`,t.style.bottom=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break;case"left":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.right=`calc(-1.5 * (${c}px))`;break;case"right":t.style.height=`${f}px`,t.style.width=`${c}px`,t.style.left=`calc(-0.5 * (${c}px))`;break;case"bottom":default:t.style.height=`${c}px`,t.style.top=`calc(-1 * (${c}px))`,t.style.left="50%",t.style.width=`${y}px`;break}}}setupAppendTo(){var i,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(Ad),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(i=this.popover.parentElement)==null?void 0:i.appendChild)==null||t.call(i,this.portalElement),e.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var i,t,e;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((i=this.popover.triggerElement)==null?void 0:i.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),!this.popover.ariaLabelledby&&!this.popover.ariaLabel&&(this.popover.ariaLabelledby=((e=this.popover.triggerElement)==null?void 0:e.id)||""))}updateAriaModal(){this.popover.role===tt.DIALOG||this.popover.role===tt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var i,t,e;this.popover.disableAriaExpanded||((i=this.popover.triggerElement)==null||i.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(i,t){var F;if(!this.popover.arrowElement)return;let e=t.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:l,y:c}=i,f=this.popover.arrowElement.getBoundingClientRect(),y=(F=this.popover.arrowElement.offsetParent)==null?void 0:F.getBoundingClientRect();if(!this.arrowPixelChange){let W=y!=null&&y[o]?12-Math.abs(f[o]-y[o]):0;Math.round(W)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let A=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",e),Object.assign(this.popover.arrowElement.style,{left:l!=null?`${l}px`:"",top:c!=null?`${c}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-A}px`})}updatePopoverStyle(i,t){Object.assign(this.popover.style,{left:`${i}px`,top:`${t}px`})}};var _t=class extends Lt(wt(ql(Kl(Gl(X))))){constructor(){super();this.depthManager=new ao(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.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 Td(this);this.parseTrigger=()=>{var l;let o=(((l=this.trigger)==null?void 0:l.split(" "))||[]).filter(c=>Object.values(Se).includes(c)).length>0?this.trigger:Et.TRIGGER;o==="mouseenter"&&(this.interactive?o="mouseenter click":o="mouseenter focusin"),this.trigger=o};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&(document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.hideOnBlur&&document.addEventListener("focusout",this.handleFocusOut,{capture:!0})),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),o=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!o||l)&&(this.hide(),Oi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||this.getActionForKeyEvent(t)!==q.ESCAPE||!this.depthManager.isHostOnTop()||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),Oi.onEscapeKeyPressed(this),this.keyDownEventHandled())};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{if(this.isEventFromTrigger(t)){if(this.hideOnBlur){let{relatedTarget:e}=t;this.contains(e)||this.hide();return}this.isHovered||this.hide()}};this.handleFocusIn=t=>{var e,o,l,c;this.isEventFromTrigger(t)&&((e=this.triggerElement)!=null&&e.matches(":focus-visible")||(c=(l=(o=this.triggerElement)==null?void 0:o.shadowRoot)==null?void 0:l.querySelector(".mdc-focus-ring"))!=null&&c.matches(":focus-visible")||this.isHovered)&&this.show()};this.cancelOpenDelay=()=>{this.timers.clearTimeout(Ni.OPEN)};this.startCloseDelay=()=>{this.cancelOpenDelay(),this.interactive?this.timers.setTimeout(Ni.HOVER,()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.timers.clearTimeout(Ni.HOVER),this.timers.clearTimeout(Ni.CLOSE)};this.hide=()=>{this.cancelOpenDelay();let t=()=>{this.visible=!1};this.closeDelay>0?this.timers.setTimeout(Ni.CLOSE,t,this.closeDelay):(this.timers.clearTimeout(Ni.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)),o=this.boundaryRoot,l=[bg({boundary:e,rootBoundary:o,padding:this.boundaryPadding})];if(this.disableFlip||l.push(yg({boundary:e,rootBoundary:o})),this.size){let f=A=>{this.style.setProperty("--mdc-popover-internal-available-height",`${A}px`)},y=this.renderRoot.querySelector('[part="popover-content"]');l.push(Eg({boundary:e,rootBoundary:o,apply({availableHeight:A}){y&&(Object.assign(y.style,{maxHeight:`${A}px`,overflowY:"auto"}),f(A))},padding:50}))}let c=0;if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let f=this.arrowElement.offsetHeight;c=Math.sqrt(2*f**2)/2,l.push(Tg({element:this.arrowElement,padding:12}))}l.push(gg(typeof this.offset=="number"?this.offset+c:this.offset)),this.floatingUICleanupFunction=vg(t,this,async()=>{let{triggerElement:f}=this;if(!f)return;let y=this.adjustPlacementForRtl(this.placement),{x:A,y:F,middlewareData:W,placement:Q}=await xg(f,this,{placement:y,middleware:l,strategy:this.strategy});this.utils.updatePopoverStyle(A,F),W.arrow&&this.arrowElement&&this.utils.updateArrowStyle(W.arrow,Q),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(Q)},{animationFrame:this.animationFrame})};this.show=this.show.bind(this),this.utils=new Sd(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),Oi.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(),Oi.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(qo).includes(this.color)?this.color:Et.COLOR),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}onComponentStackChanged(t){t==="removed"?this.hide():t==="moved"&&this.requestUpdate("zIndex")}async isOpenUpdated(t,e){var l,c;let{triggerElement:o}=this;t===e||!o||(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(o)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(o.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var f,y,A;this.interactive&&this.focusTrap&&((f=this.activateFocusTrap)==null||f.call(this),(A=this.setInitialFocus)==null||A.call(this,(y=this.elementIndexToReceiveFocus)!=null?y:0))},0),Oi.onShowPopover(this)):(this.depthManager.popHost(),(l=this.floatingUICleanupFunction)==null||l.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(o),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(o.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(c=this.deactivateFocusTrap)==null||c.call(this),this.focusBackToTrigger&&(o==null||o.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),Oi.onHidePopover(this)))}show(){if(this.shouldSuppressOpening||(this.cancelCloseDelay(),this.visible))return;let t=()=>{this.visible=!0};this.openDelay>0?this.timers.setTimeout(Ni.OPEN,t,this.openDelay):(this.timers.clearTimeout(Ni.OPEN),t())}isEventFromTrigger(t){var e;return this.triggerID?t.composed?t.composedPath().some(o=>(o==null?void 0:o.id)===this.triggerID):((e=t.target)==null?void 0:e.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case Mt.LEFT:return Mt.RIGHT;case Mt.LEFT_START:return Mt.RIGHT_START;case Mt.LEFT_END:return Mt.RIGHT_END;case Mt.RIGHT:return Mt.LEFT;case Mt.RIGHT_START:return Mt.LEFT_START;case Mt.RIGHT_END:return Mt.LEFT_END;default:return t}}render(){return this.style.zIndex=`${this.zIndex}`,S`
|
|
2713
2713
|
<div part="popover-hover-bridge"></div>
|
|
2714
2714
|
${this.closeButton?S` <mdc-button
|
|
2715
2715
|
part="popover-close"
|
|
@@ -2723,7 +2723,7 @@
|
|
|
2723
2723
|
<div part="popover-content">
|
|
2724
2724
|
<slot></slot>
|
|
2725
2725
|
</div>
|
|
2726
|
-
`}};_t.styles=[...X.styles,...Ag],h([u({type:String,reflect:!0})],_t.prototype,"id",2),h([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),h([u({type:String,reflect:!0})],_t.prototype,"trigger",2),h([u({type:String,reflect:!0})],_t.prototype,"placement",2),h([u({type:String,reflect:!0})],_t.prototype,"color",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],_t.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),h([u({type:String,reflect:!0})],_t.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],_t.prototype,"strategy",2),h([u({type:String,reflect:!0})],_t.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],_t.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],_t.prototype,"stackGroupName",2);var ir=_t;var Sg=z.constructTagName("toggletip"),is={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:Se.CLICK,SHOW_ARROW:!0};var
|
|
2726
|
+
`}};_t.styles=[...X.styles,...Ag],h([u({type:String,reflect:!0})],_t.prototype,"id",2),h([u({type:String,reflect:!0})],_t.prototype,"triggerID",2),h([u({type:String,reflect:!0})],_t.prototype,"trigger",2),h([u({type:String,reflect:!0})],_t.prototype,"placement",2),h([u({type:String,reflect:!0})],_t.prototype,"color",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"visible",2),h([u({type:Number,reflect:!0,converter:{toAttribute(t){return typeof t=="number"?t.toString():""}}})],_t.prototype,"offset",2),h([u({type:String,reflect:!0,attribute:"boundary"})],_t.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"boundary-root"})],_t.prototype,"boundaryRoot",2),h([u({type:Number,reflect:!0,attribute:"boundary-padding"})],_t.prototype,"boundaryPadding",2),h([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],_t.prototype,"focusTrap",2),h([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],_t.prototype,"preventScroll",2),h([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],_t.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"interactive",2),h([u({type:String,reflect:!0})],_t.prototype,"delay",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],_t.prototype,"hideOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],_t.prototype,"propagateEventOnEscape",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],_t.prototype,"hideOnBlur",2),h([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],_t.prototype,"hideOnOutsideClick",2),h([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],_t.prototype,"focusBackToTrigger",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"backdrop",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],_t.prototype,"backdropAppendTo",2),h([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],_t.prototype,"isBackdropInvisible",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],_t.prototype,"disableFlip",2),h([u({type:Boolean,reflect:!0})],_t.prototype,"size",2),h([u({type:Number,reflect:!0,attribute:"z-index"})],_t.prototype,"zIndex",1),h([u({type:String,reflect:!0,attribute:"append-to"})],_t.prototype,"appendTo",2),h([u({type:String,attribute:"close-button-aria-label",reflect:!0})],_t.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0})],_t.prototype,"strategy",2),h([u({type:String,reflect:!0})],_t.prototype,"role",2),h([u({type:String,reflect:!0,attribute:"aria-labelledby"})],_t.prototype,"ariaLabelledby",2),h([u({type:String,reflect:!0,attribute:"aria-describedby"})],_t.prototype,"ariaDescribedby",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2),h([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],_t.prototype,"keepConnectedTooltipOpen",2),h([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],_t.prototype,"animationFrame",2),h([u({type:Number,attribute:"element-index-to-receive-focus",reflect:!0})],_t.prototype,"elementIndexToReceiveFocus",2),h([u({type:String,attribute:"stack-group-name",reflect:!0})],_t.prototype,"stackGroupName",2);var ir=_t;var Sg=z.constructTagName("toggletip"),is={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:Mt.TOP,CLICK:Se.CLICK,SHOW_ARROW:!0};var YA=B`
|
|
2727
2727
|
:host {
|
|
2728
2728
|
--mdc-toggletip-max-width: 400px;
|
|
2729
2729
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -2753,7 +2753,7 @@
|
|
|
2753
2753
|
:host([close-button]:dir(rtl))::part(popover-content) {
|
|
2754
2754
|
margin-left: 2rem;
|
|
2755
2755
|
}
|
|
2756
|
-
`,Ig=[
|
|
2756
|
+
`,Ig=[YA];var ho=class extends ir{constructor(){super(...arguments);this.currentAnnouncement="";this.placement=is.PLACEMENT}connectedCallback(){var t;super.connectedCallback(),this.closeButton=(t=this.closeButton)!=null?t:is.CLOSE_BUTTON,this.closeButtonAriaLabel=is.CLOSE_BUTTON_ARIA_LABEL,this.trigger=is.CLICK,this.showArrow=is.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0}getToggleTipText(){var t,e;return((e=(t=this.defaultSlotNodes)==null?void 0:t.map(o=>o.textContent).join(" "))==null?void 0:e.trim())||""}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=is.PLACEMENT)}update(t){super.update(t),t.has("placement")&&this.onPlacementUpdated(),t.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return S`
|
|
2757
2757
|
${super.render()}
|
|
2758
2758
|
<mdc-screenreaderannouncer
|
|
2759
2759
|
identity="${J(this.screenreaderAnnouncerIdentity)}"
|
|
@@ -2761,12 +2761,12 @@
|
|
|
2761
2761
|
delay="300"
|
|
2762
2762
|
>
|
|
2763
2763
|
</mdc-screenreaderannouncer>
|
|
2764
|
-
`}};ho.styles=[...ir.styles,...Ig],h([Ju()],ho.prototype,"defaultSlotNodes",2),h([nt()],ho.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],ho.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],ho.prototype,"placement",2);var jh=ho;function Id(n,i=500){let t,e=(...o)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,n(...o)},i)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var _g=z.constructTagName("screenreaderannouncer"),
|
|
2764
|
+
`}};ho.styles=[...ir.styles,...Ig],h([Ju()],ho.prototype,"defaultSlotNodes",2),h([nt()],ho.prototype,"currentAnnouncement",2),h([u({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],ho.prototype,"screenreaderAnnouncerIdentity",2),h([u({type:String,reflect:!0})],ho.prototype,"placement",2);var jh=ho;function Id(n,i=500){let t,e=(...o)=>{t!==void 0&&window.clearTimeout(t),t=window.setTimeout(()=>{t=void 0,n(...o)},i)};return e.cancel=()=>{t!==void 0&&(window.clearTimeout(t),t=void 0)},e}var _g=z.constructTagName("screenreaderannouncer"),jA={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},os={ARIA_LIVE:jA.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4,DEBOUNCE:500};var qA=[B`
|
|
2765
2765
|
:host {
|
|
2766
2766
|
display: none;
|
|
2767
2767
|
visibility: hidden;
|
|
2768
2768
|
}
|
|
2769
|
-
`],Cg=
|
|
2769
|
+
`],Cg=qA;var ni=class extends X{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=os.ARIA_LIVE;this.delay=os.DELAY;this.timeout=os.TIMEOUT;this.debounceTime=os.DEBOUNCE;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce({announcement:t,delay:e,timeout:o,ariaLive:l}){var c;if(t.length>0){let f=`mdc-screenreaderannouncer-announcement-${Pe()}`,y=document.createElement("div");y.setAttribute("id",f),y.setAttribute("aria-live",l!=null?l:this.dataAriaLive),(c=this.getElementByIdAcrossShadowRoot(this.identity))==null||c.appendChild(y);let A=window.setTimeout(()=>{let F=document.createElement("p");F.textContent=t,y.appendChild(F),this.ariaLiveAnnouncementIds.push(f);let W=window.setTimeout(()=>{y.remove()},o!=null?o:this.timeout);this.timeOutIds.push(W)},e!=null?e:this.delay);this.timeOutIds.push(A)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(t=>{window.clearTimeout(t)}),this.ariaLiveAnnouncementIds.forEach(t=>{var e;(e=this.getElementByIdAcrossShadowRoot(t))==null||e.remove()})}getElementByIdAcrossShadowRoot(t){var l;let e=document.getElementById(t);if(e)return e;let o=this.findModalAncestor();return((l=o==null?void 0:o.shadowRoot)==null?void 0:l.getElementById(t))||null}createAnnouncementAriaLiveRegion(){let t=this.getElementByIdAcrossShadowRoot(this.identity);if(!t){t=document.createElement("div"),t.id=this.identity;let e=document.createElement("style");e.textContent=`
|
|
2770
2770
|
.mdc-screenreaderannouncer__visually-hidden {
|
|
2771
2771
|
clip: rect(0 0 0 0);
|
|
2772
2772
|
clip-path: inset(50%);
|
|
@@ -2776,7 +2776,7 @@
|
|
|
2776
2776
|
white-space: nowrap;
|
|
2777
2777
|
width: 1px;
|
|
2778
2778
|
}
|
|
2779
|
-
`,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let o=this.findModalAncestor();o!=null&&o.shadowRoot?o.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let o=t.getRootNode();if(o instanceof ShadowRoot&&o.host)t=o.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Id(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=os.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=os.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};ni.styles=[...X.styles,...Cg],h([u({type:String,reflect:!0})],ni.prototype,"announcement",2),h([u({type:String,reflect:!0})],ni.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],ni.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],ni.prototype,"delay",2),h([u({type:Number,reflect:!0})],ni.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],ni.prototype,"debounceTime",2);var qh=ni;qh.register(_g);var
|
|
2779
|
+
`,t.appendChild(e),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let o=this.findModalAncestor();o!=null&&o.shadowRoot?o.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let e=t.closest('[aria-modal="true"]');if(e)return e;let o=t.getRootNode();if(o instanceof ShadowRoot&&o.host)t=o.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Id(()=>{this.announcement&&this.announcement.length>0&&(this.announce({announcement:this.announcement,delay:this.delay,timeout:this.timeout,ariaLive:this.dataAriaLive}),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=os.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var e;t.has("identity")&&this.identity.length===0&&(this.identity=os.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((e=this.debouncedAnnounce)==null||e.call(this))}};ni.styles=[...X.styles,...Cg],h([u({type:String,reflect:!0})],ni.prototype,"announcement",2),h([u({type:String,reflect:!0})],ni.prototype,"identity",2),h([u({type:String,reflect:!0,attribute:"data-aria-live"})],ni.prototype,"dataAriaLive",2),h([u({type:Number,reflect:!0})],ni.prototype,"delay",2),h([u({type:Number,reflect:!0})],ni.prototype,"timeout",2),h([u({type:Number,reflect:!0,attribute:"debounce-time"})],ni.prototype,"debounceTime",2);var qh=ni;qh.register(_g);var XA=qh;jh.register(Sg);var ZA=jh;var ce=n=>{class i extends n{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return i.formAssociated=!0,h([u({reflect:!0,type:String})],i.prototype,"name",2),h([u({reflect:!0,type:String})],i.prototype,"value",2),h([u({reflect:!0,type:String,attribute:"validation-message"})],i.prototype,"validationMessage",2),h([Ut("input")],i.prototype,"inputElement",2),i};var QA=B`
|
|
2780
2780
|
:host {
|
|
2781
2781
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
|
|
2782
2782
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
|
|
@@ -2860,7 +2860,7 @@
|
|
|
2860
2860
|
pointer-events: none;
|
|
2861
2861
|
cursor: default;
|
|
2862
2862
|
}
|
|
2863
|
-
`,kg=[bt,
|
|
2863
|
+
`,kg=[bt,QA];var wg=n=>({[Wt.ERROR]:"error-legacy-badge-filled",[Wt.WARNING]:"warning-badge-filled",[Wt.SUCCESS]:"check-circle-badge-filled",[Wt.PRIORITY]:"priority-badge-filled",[Wt.DEFAULT]:""})[n]||"";var or=class extends Jt(X){constructor(){super(...arguments);this.inputId=`mdc-el-${Pe()}`;this.required=!1;this.helpTextType=Yt.VALIDATION;this.toggletipPlacement=Yt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Yt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?S`<label for="${this.inputId}" id="${Yt.HEADING_ID}" part="label">${this.label}</label>`:S` <mdc-text
|
|
2864
2864
|
id="${Yt.HEADING_ID}"
|
|
2865
2865
|
tagname="${cn.TAGNAME}"
|
|
2866
2866
|
type="${cn.HEADER_TYPE}"
|
|
@@ -2902,7 +2902,7 @@
|
|
|
2902
2902
|
</div>`}renderHelperText(){return this.helpText?S`<div part="help-text-container">
|
|
2903
2903
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
|
2904
2904
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
|
2905
|
-
</div>`:K}};or.styles=[...X.styles,...kg],h([u({reflect:!0,type:String})],or.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],or.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],or.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],or.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],or.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],or.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],or.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],or.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],or.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],or.prototype,"softDisabled",2);var Zt=or;var
|
|
2905
|
+
</div>`:K}};or.styles=[...X.styles,...kg],h([u({reflect:!0,type:String})],or.prototype,"label",2),h([u({type:Boolean,reflect:!0,attribute:"required"})],or.prototype,"required",2),h([u({reflect:!0,attribute:"help-text-type"})],or.prototype,"helpTextType",2),h([u({type:String,reflect:!0,attribute:"help-text"})],or.prototype,"helpText",2),h([u({type:String,reflect:!0,attribute:"toggletip-text"})],or.prototype,"toggletipText",2),h([u({type:String,reflect:!0,attribute:"toggletip-placement"})],or.prototype,"toggletipPlacement",2),h([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],or.prototype,"toggletipStrategy",2),h([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],or.prototype,"infoIconAriaLabel",2),h([u({type:Boolean,reflect:!0})],or.prototype,"readonly",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],or.prototype,"softDisabled",2);var Zt=or;var JA=[B`
|
|
2906
2906
|
:host {
|
|
2907
2907
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
2908
2908
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -2972,7 +2972,7 @@
|
|
|
2972
2972
|
:host([soft-disabled]) {
|
|
2973
2973
|
pointer-events: none;
|
|
2974
2974
|
}
|
|
2975
|
-
`,...yt(!0)],Ng=
|
|
2975
|
+
`,...yt(!0)],Ng=JA;var po=class extends Lt(wt(De(ce(re(Zt))))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.helpTextType=zv.DEFAULT;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:K}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}click(){super.click(),this.toggleState()}handleKeyDown(t){var o;let e=this.getActionForKeyEvent(t);this.getKeyboardNavMode()===te.DEFAULT&&((this.readonly||this.softDisabled)&&e===q.SPACE&&t.preventDefault(),e===q.ENTER&&((o=this.form)==null||o.requestSubmit(),t.preventDefault(),this.keyDownEventHandled())),this.getKeyboardNavMode()===te.SPATIAL&&!(this.readonly||this.softDisabled)&&e===q.ENTER&&(this.toggleState(),this.keyDownEventHandled())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return S`
|
|
2976
2976
|
<mdc-staticcheckbox
|
|
2977
2977
|
part="static-checkbox"
|
|
2978
2978
|
class="mdc-focus-ring"
|
|
@@ -3002,7 +3002,7 @@
|
|
|
3002
3002
|
/>
|
|
3003
3003
|
</mdc-staticcheckbox>
|
|
3004
3004
|
${this.renderLabelAndHelperText()}
|
|
3005
|
-
`}};po.styles=[...Zt.styles,...Ng],po.shadowRootOptions={...Zt.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],po.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],po.prototype,"indeterminate",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],po.prototype,"helpTextType",2);var Xh=po;Xh.register(Vv);var
|
|
3005
|
+
`}};po.styles=[...Zt.styles,...Ng],po.shadowRootOptions={...Zt.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],po.prototype,"checked",2),h([u({type:Boolean,reflect:!0})],po.prototype,"indeterminate",2),h([u({type:String,reflect:!0,attribute:"help-text-type"})],po.prototype,"helpTextType",2);var Xh=po;Xh.register(Vv);var t0=Xh;var Mg=z.constructTagName("staticchip"),Zh={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",ORANGE:"orange",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},_d={COLOR:Zh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN};var e0=B`
|
|
3006
3006
|
:host {
|
|
3007
3007
|
height: 1.5rem;
|
|
3008
3008
|
gap: 0.25rem;
|
|
@@ -3074,12 +3074,12 @@
|
|
|
3074
3074
|
--mdc-chip-border-color: var(--mds-color-theme-outline-label-violet);
|
|
3075
3075
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-violet-normal);
|
|
3076
3076
|
}
|
|
3077
|
-
`,Lg=[bt,
|
|
3077
|
+
`,Lg=[bt,e0];var ra=class extends le(X){constructor(){super(...arguments);this.color=_d.COLOR}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:K}render(){return S`
|
|
3078
3078
|
${this.renderIcon()}
|
|
3079
3079
|
${this.label?S`<mdc-text part="label" type="${_d.TEXT_TYPE}" tagname="${_d.TAG_NAME}"
|
|
3080
3080
|
>${this.label}</mdc-text
|
|
3081
3081
|
>`:K}
|
|
3082
|
-
`}};ra.styles=[...X.styles,...Lg],h([u({type:String,reflect:!0})],ra.prototype,"color",2),h([u({type:String})],ra.prototype,"label",2);var vn=ra;var Og=z.constructTagName("chip"),ia={COLOR:Zh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:zo[24],ROLE:tt.BUTTON};var
|
|
3082
|
+
`}};ra.styles=[...X.styles,...Lg],h([u({type:String,reflect:!0})],ra.prototype,"color",2),h([u({type:String})],ra.prototype,"label",2);var vn=ra;var Og=z.constructTagName("chip"),ia={COLOR:Zh.DEFAULT,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:zo[24],ROLE:tt.BUTTON};var r0=B`
|
|
3083
3083
|
:host {
|
|
3084
3084
|
cursor: pointer;
|
|
3085
3085
|
height: 1.5rem;
|
|
@@ -3173,12 +3173,12 @@
|
|
|
3173
3173
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3174
3174
|
cursor: auto;
|
|
3175
3175
|
}
|
|
3176
|
-
`,Rg=[bt,
|
|
3176
|
+
`,Rg=[bt,r0,...yt()];var oa=class extends le(ue){constructor(){super(...arguments);this.color=ia.COLOR}connectedCallback(){super.connectedCallback(),this.role=ia.ROLE,this.size=ia.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?S` <mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `:K}render(){return S`
|
|
3177
3177
|
${this.renderIcon()}
|
|
3178
3178
|
${this.label?S`<mdc-text part="label" type="${ia.TEXT_TYPE}" tagname="${ia.TAG_NAME}"
|
|
3179
3179
|
>${this.label}</mdc-text
|
|
3180
3180
|
>`:K}
|
|
3181
|
-
`}};oa.styles=[...vn.styles,...Rg],h([u({type:String,reflect:!0})],oa.prototype,"color",2),h([u({type:String})],oa.prototype,"label",2);var sa=oa;sa.register(Og);var
|
|
3181
|
+
`}};oa.styles=[...vn.styles,...Rg],h([u({type:String,reflect:!0})],oa.prototype,"color",2),h([u({type:String})],oa.prototype,"label",2);var sa=oa;sa.register(Og);var i0=sa;var Dg=z.constructTagName("coachmark"),ss={COLOR:qo.CONTRAST,TRIGGER:Se.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var as=class extends ir{constructor(){super(...arguments);this.trigger=ss.TRIGGER;this.showArrow=ss.ARROW;this.closeButton=ss.CLOSE_BUTTON;this.disableAriaExpanded=ss.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=ss.COLOR,this.showArrow=ss.ARROW}};h([u({type:String,reflect:!0})],as.prototype,"trigger",2),h([u({type:Boolean,attribute:"show-arrow"})],as.prototype,"showArrow",2),h([u({type:Boolean,reflect:!0,attribute:"close-button"})],as.prototype,"closeButton",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],as.prototype,"disableAriaExpanded",2);var Qh=as;Qh.register(Dg);var o0=Qh;var Cd=z.constructTagName("controltypeprovider"),kd={CONTROL_TYPE:"uncontrolled"},wd=["controlled","uncontrolled"];var s0=Cd,Jh=s0;var Nd=class extends Te{constructor(){super({context:Jh});this.innerControlType=kd.CONTROL_TYPE}static get Context(){return Jh}set controlType(t){wd.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})],Nd.prototype,"controlType",1);var tp=Nd;tp.register(Cd);var ep=tp;var Hr=Ii(class extends ri{constructor(n){var i;if(super(n),n.type!==ur.ATTRIBUTE||n.name!=="class"||((i=n.strings)==null?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(i=>n[i]).join(" ")+" "}update(n,[i]){var e,o;if(this.st===void 0){this.st=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(l=>l!=="")));for(let l in i)i[l]&&!((e=this.nt)!=null&&e.has(l))&&this.st.add(l);return this.render(i)}let t=n.element.classList;for(let l of this.st)l in i||(t.remove(l),this.st.delete(l));for(let l in i){let c=!!i[l];c===this.st.has(l)||(o=this.nt)!=null&&o.has(l)||(c?(t.add(l),this.st.add(l)):(t.remove(l),this.st.delete(l)))}return Re}});function fr(n){let i=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),e=String(n.getDate()).padStart(2,"0");return`${i}-${t}-${e}`}function Vt(n){if(!n||!/^\d{4}-\d{2}-\d{2}$/.test(n))return null;let i=n.split("-"),t=parseInt(i[0],10),e=parseInt(i[1],10),o=parseInt(i[2],10),l=new Date(t,e-1,o);return l.getFullYear()!==t||l.getMonth()!==e-1||l.getDate()!==o?null:l}function li(n,i,t=1){return new Date(n,i-1,t)}function ns(){let n=new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate())}function vr(n,i){let t=new Date(n);return t.setDate(t.getDate()+i),t}function Ld(n,i){let t=n.getMonth()+i,e=new Date(n.getFullYear(),t,1),o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),o)),e}function rp(n,i){let t=n.getFullYear()+i,e=new Date(t,n.getMonth(),1),o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return e.setDate(Math.min(n.getDate(),o)),e}function Od(n,i){return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate()}function Ri(n,i){return n.getTime()<i.getTime()}function mo(n,i){return n.getTime()>i.getTime()}function Rd(n,i){return n.getTime()<=i.getTime()}function Pg(n){return new Date(n.getFullYear(),n.getMonth(),1)}function ip(n){return new Date(n.getFullYear(),n.getMonth()+1,0)}function Dd(n,i){return new Date(n,i,0).getDate()}function Fg(n){let i=n.getDay();return i===0?7:i}function gn(n,i=1){let t=n.getDay(),l=((t===0?7:t)-(i===7?7:i)+7)%7;return vr(n,-l)}function $g(n,i="narrow"){let t=new Intl.DateTimeFormat(n,{weekday:i}),e=new Date(2026,0,5),o=[];for(let l=0;l<7;l+=1)o.push(t.format(vr(e,l)));return o}function ls(n){var o,l;try{let c=new Intl.Locale(n),f=(l=c.weekInfo)!=null?l:(o=c.getWeekInfo)==null?void 0:o.call(c);if(f!=null&&f.firstDay)return f.firstDay}catch{}let i=["en","ja","ko","zh","pt-BR"],t=n.split("-")[0].toLowerCase(),e=n.toLowerCase();return i.includes(t)||i.includes(e)?7:1}function Vg(n,i,t){let e=li(n,i,1);return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)}function zg(n,i){let t=Vt(n);return t?new Intl.DateTimeFormat(i,{dateStyle:"full"}).format(t):""}function Md(n,i){let t=Vt(n);return t?new Intl.DateTimeFormat(i,{dateStyle:"medium"}).format(t):""}function Bg(n,i,t){let e=Vt(n),o=Vt(i);if(!e||!o)return"";try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).formatRange(e,o)}catch{return`${Md(n,t)} \u2013 ${Md(i,t)}`}}function Pd(n){let t=new Intl.DateTimeFormat(n,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2e3,11,31)),e=[],o="/";for(let l of t)l.type==="month"&&!e.includes("month")&&e.push("month"),l.type==="day"&&!e.includes("day")&&e.push("day"),l.type==="year"&&!e.includes("year")&&e.push("year"),l.type==="literal"&&l.value.trim()&&(o=l.value.trim());return e.length!==3?{order:["month","day","year"],separator:o}:{order:e,separator:o}}var Ug=z.constructTagName("calendar"),ie={SINGLE:"single",WEEK:"week",RANGE:"range"},op={CHEVRON_LEFT:"arrow-left-bold",CHEVRON_RIGHT:"arrow-right-bold"},Hg=6,sp=7,ap={SELECTION_MODE:ie.SINGLE,LOCALE:"en-US"};var a0=B`
|
|
3182
3182
|
:host {
|
|
3183
3183
|
--mdc-calendar-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
3184
3184
|
--mdc-calendar-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -3354,7 +3354,7 @@
|
|
|
3354
3354
|
.calendar-today-button mdc-button {
|
|
3355
3355
|
width: auto;
|
|
3356
3356
|
}
|
|
3357
|
-
`,Gg=[Qr,
|
|
3357
|
+
`,Gg=[Qr,a0];function Kg(n){let i=$g(n,"narrow"),t=ls(n),e=t===7?6:t-1;return e===0?i:[...i.slice(e),...i.slice(0,e)]}function Wg(n,i,t,e,o,l,c,f){let y=li(n,i,1),A=ns(),F=ls(t),W=Fg(y),Q;F===7?Q=W===7?0:W:(Q=W-F,Q<0&&(Q+=7));let Z=vr(y,-Q),et=c?Vt(c):void 0,lt=f?Vt(f):void 0,dt=o?Vt(o):void 0,ft=l?Vt(l):void 0,It=new Set(e),kt=[];for(let jt=0;jt<Hg;jt+=1){let Ht=[];for(let qt=0;qt<sp;qt+=1){let Ft=vr(Z,jt*sp+qt),ae=fr(Ft),cr=Ft.getMonth()+1===i&&Ft.getFullYear()===n,Ne=Od(Ft,A),je=It.has(ae),Ve=!1;et&&Ri(Ft,et)&&(Ve=!0),lt&&mo(Ft,lt)&&(Ve=!0);let qe=!1,Nt=!1,he=!1;dt&&ft&&(Nt=Od(Ft,dt),he=Od(Ft,ft),qe=Rd(dt,Ft)&&Rd(Ft,ft)),Ht.push({date:ae,day:Ft.getDate(),isCurrentMonth:cr,isToday:Ne,isSelected:je,isInRange:qe,isRangeStart:Nt,isRangeEnd:he,isDisabled:Ve})}kt.push({days:Ht})}return kt}function Fd(n,i){let t=Vt(n);if(!t)return{start:"",end:""};let e=gn(t,ls(i)),o=vr(e,6);return{start:fr(e),end:fr(o)}}function np(n,i,t){return Vg(n,i,t)}function Yg(n,i){let t=Vt(n),e=Vt(i);if(!t||!e)return[];let o=[],l=t;for(;Rd(l,e);)o.push(fr(l)),l=vr(l,1);return o}function jg(n,i){return Md(n,i)}function bn(n,i,t){return Bg(n,i,t)}var fe=class extends Lt(wt(X)){constructor(){super(...arguments);this.value="";this.endValue="";this.selectionMode=ap.SELECTION_MODE;this.locale=ap.LOCALE;this.showTodayButton=!1;this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayMonth=new Date().getMonth()+1;this.displayYear=new Date().getFullYear();this.focusedDate="";this.gridHasFocus=!1;this.rangeSelectionPhase="start"}connectedCallback(){super.connectedCallback(),this.initializeDisplay()}willUpdate(t){if(super.willUpdate(t),t.has("selectionMode")&&(this.rangeSelectionPhase="start"),t.has("value")&&this.value){let e=Vt(this.value);e&&(this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear())}}initializeDisplay(){if(this.value){let c=Vt(this.value);if(c){this.displayMonth=c.getMonth()+1,this.displayYear=c.getFullYear(),this.focusedDate=this.value;return}}let t=ns(),e=this.min?Vt(this.min):void 0,o=this.max?Vt(this.max):void 0,l=t;e&&Ri(t,e)?l=e:o&&mo(t,o)&&(l=o),this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear(),this.focusedDate=fr(l)}get calendarGrid(){let t=this.getSelectedDates(),e=this.getRangeStart(),o=this.getRangeEnd();return Wg(this.displayYear,this.displayMonth,this.locale,t,e,o,this.min,this.max)}getSelectedDates(){return this.value?(this.selectionMode===ie.WEEK||this.selectionMode===ie.RANGE)&&this.value&&this.endValue?Yg(this.value,this.endValue):[this.value]:[]}getRangeStart(){if((this.selectionMode===ie.WEEK||this.selectionMode===ie.RANGE)&&this.value)return this.value}getRangeEnd(){if((this.selectionMode===ie.WEEK||this.selectionMode===ie.RANGE)&&this.endValue)return this.endValue}canNavigatePrev(){if(!this.min)return!0;let t=li(this.displayYear,this.displayMonth,1),e=Vt(this.min);return e?mo(t,Pg(e)):!0}canNavigateNext(){if(!this.max)return!0;let t=ip(li(this.displayYear,this.displayMonth,1)),e=Vt(this.max);return e?Ri(t,ip(e)):!0}navigateMonth(t){if(t<0&&!this.canNavigatePrev()||t>0&&!this.canNavigateNext())return;let e=Ld(li(this.displayYear,this.displayMonth,1),t);this.displayMonth=e.getMonth()+1,this.displayYear=e.getFullYear(),this.focusedDate=fr(li(this.displayYear,this.displayMonth,1)),this.dispatchEvent(new CustomEvent("month-changed",{detail:{month:this.displayMonth,year:this.displayYear},bubbles:!0,composed:!0}))}handleDayClick(t){t.isDisabled||this.selectDate(t.date)}selectDate(t){switch(this.selectionMode){case ie.SINGLE:{this.value=t,this.focusedDate=t,this.dispatchDateSelected(t);break}case ie.WEEK:{let{start:e,end:o}=Fd(t,this.locale);this.value=e,this.endValue=o,this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:e,endDate:o},bubbles:!0,composed:!0}));break}case ie.RANGE:{if(this.rangeSelectionPhase==="start")this.value=t,this.endValue="",this.rangeSelectionPhase="end",this.focusedDate=t;else{let e=Vt(this.value),o=Vt(t);e&&o&&Ri(o,e)?(this.endValue=this.value,this.value=t):this.endValue=t,this.rangeSelectionPhase="start",this.focusedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t,startDate:this.value,endDate:this.endValue},bubbles:!0,composed:!0}))}break}default:break}}dispatchDateSelected(t){this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}handleGridKeydown(t){let e=this.focusedDate?Vt(this.focusedDate):ns();if(!e)return;let o=this.getActionForKeyEvent(t),l;switch(o){case q.LEFT:t.preventDefault(),l=vr(e,-1);break;case q.RIGHT:t.preventDefault(),l=vr(e,1);break;case q.UP:t.preventDefault(),l=vr(e,-7);break;case q.DOWN:t.preventDefault(),l=vr(e,7);break;case q.HOME:{t.preventDefault();let c=ls(this.locale);l=gn(e,c);break}case q.END:{t.preventDefault();let c=ls(this.locale);l=vr(gn(e,c),6);break}case q.ENTER:case q.SPACE:t.preventDefault(),this.keyDownEventHandled(),this.focusedDate&&!this.isDateDisabled(this.focusedDate)&&this.selectDate(this.focusedDate);return;default:if(t.key===Ct.PAGE_UP){t.preventDefault(),l=t.shiftKey?rp(e,-1):Ld(e,-1);break}if(t.key===Ct.PAGE_DOWN){t.preventDefault(),l=t.shiftKey?rp(e,1):Ld(e,1);break}return}if(this.keyDownEventHandled(),l){let c=fr(l);if(this.isDateDisabled(c))return;this.focusedDate=c,(l.getMonth()+1!==this.displayMonth||l.getFullYear()!==this.displayYear)&&(this.displayMonth=l.getMonth()+1,this.displayYear=l.getFullYear()),this.updateComplete.then(()=>{var y;let f=(y=this.shadowRoot)==null?void 0:y.querySelector(`[data-date="${c}"]`);f==null||f.focus()}).catch(()=>{})}}getGridAriaLabel(){return this.selectionMode===ie.WEEK&&this.value&&this.endValue?`Calendar, ${bn(this.value,this.endValue,this.locale)}`:`Calendar, ${np(this.displayYear,this.displayMonth,this.locale)}`}renderHeader(){let t=np(this.displayYear,this.displayMonth,this.locale),e=!this.canNavigatePrev(),o=!this.canNavigateNext();return S`
|
|
3358
3358
|
<div class="calendar-header">
|
|
3359
3359
|
<mdc-text type="body-midsize-bold" tagname="span">${t}</mdc-text>
|
|
3360
3360
|
<div class="calendar-header-nav">
|
|
@@ -3417,7 +3417,7 @@
|
|
|
3417
3417
|
>${this.localeTodayLabel}</mdc-button
|
|
3418
3418
|
>
|
|
3419
3419
|
</div>
|
|
3420
|
-
`}render(){return S` ${this.renderHeader()} ${this.renderGrid()} ${this.renderTodayButton()} `}};fe.styles=[...X.styles,...Gg],h([u({type:String,reflect:!0})],fe.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"end-value"})],fe.prototype,"endValue",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],fe.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],fe.prototype,"locale",2),h([u({type:String,reflect:!0})],fe.prototype,"min",2),h([u({type:String,reflect:!0})],fe.prototype,"max",2),h([u({type:Boolean,reflect:!0,attribute:"show-today-button"})],fe.prototype,"showTodayButton",2),h([u({type:String,attribute:"locale-today-label"})],fe.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],fe.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],fe.prototype,"localeNextMonthLabel",2),h([nt()],fe.prototype,"displayMonth",2),h([nt()],fe.prototype,"displayYear",2),h([nt()],fe.prototype,"focusedDate",2),h([nt()],fe.prototype,"gridHasFocus",2),h([nt()],fe.prototype,"rangeSelectionPhase",2);var lp=fe;lp.register(Ug);var
|
|
3420
|
+
`}render(){return S` ${this.renderHeader()} ${this.renderGrid()} ${this.renderTodayButton()} `}};fe.styles=[...X.styles,...Gg],h([u({type:String,reflect:!0})],fe.prototype,"value",2),h([u({type:String,reflect:!0,attribute:"end-value"})],fe.prototype,"endValue",2),h([u({type:String,reflect:!0,attribute:"selection-mode"})],fe.prototype,"selectionMode",2),h([u({type:String,reflect:!0})],fe.prototype,"locale",2),h([u({type:String,reflect:!0})],fe.prototype,"min",2),h([u({type:String,reflect:!0})],fe.prototype,"max",2),h([u({type:Boolean,reflect:!0,attribute:"show-today-button"})],fe.prototype,"showTodayButton",2),h([u({type:String,attribute:"locale-today-label"})],fe.prototype,"localeTodayLabel",2),h([u({type:String,attribute:"locale-prev-month-label"})],fe.prototype,"localePrevMonthLabel",2),h([u({type:String,attribute:"locale-next-month-label"})],fe.prototype,"localeNextMonthLabel",2),h([nt()],fe.prototype,"displayMonth",2),h([nt()],fe.prototype,"displayYear",2),h([nt()],fe.prototype,"focusedDate",2),h([nt()],fe.prototype,"gridHasFocus",2),h([nt()],fe.prototype,"rangeSelectionPhase",2);var lp=fe;lp.register(Ug);var n0=lp;ir.register(Fv);xd.register(Ad);var l0=ir;var qg=z.constructTagName("datepicker"),yn={DEFAULT:"default",INPUT:"input"},dp="calendar-empty-bold",En="datepicker-triggerid",$d={VARIANT:yn.INPUT,LOCALE:"en-US",DISABLE_FLIP:!1};var d0=B`
|
|
3421
3421
|
:host {
|
|
3422
3422
|
--mdc-datepicker-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
3423
3423
|
--mdc-datepicker-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -3589,7 +3589,7 @@
|
|
|
3589
3589
|
--mdc-datepicker-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
3590
3590
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
3591
3591
|
}
|
|
3592
|
-
`,Xg=[
|
|
3592
|
+
`,Xg=[d0,...yt(!0)];function Tn(n){return Pd(n).order}function Zg(n){return Pd(n).separator}function Qg(n){if(!n)return null;let i=Vt(n);return i?{month:String(i.getMonth()+1).padStart(2,"0"),day:String(i.getDate()).padStart(2,"0"),year:String(i.getFullYear()).padStart(4,"0")}:null}function Jg(n,i,t){let e=parseInt(n,10),o=parseInt(i,10),l=parseInt(t,10);if(Number.isNaN(e)||Number.isNaN(o)||Number.isNaN(l)||e<1||e>12||o<1||o>31||l<1)return"";let c=Dd(l,e);if(o>c)return"";let f=li(l,e,o);return fr(f)}function tb(n){let{order:i,separator:t}=Pd(n),e={month:"mm",day:"dd",year:"yyyy"};return i.map(o=>e[o]).join(` ${t} `)}function cp(n,i,t){switch(n){case"month":return 12;case"day":return i&&t?Dd(t,i):i?Dd(2e3,i):31;case"year":return 9999;default:return 0}}function hp(n){switch(n){case"month":return 1;case"day":return 1;case"year":return 1;default:return 0}}var zt=class extends ce(re(Zt)){constructor(){super(...arguments);this.variant=$d.VARIANT;this.value="";this.selectionMode=ie.SINGLE;this.locale=$d.LOCALE;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=$d.DISABLE_FLIP;this.localeMonthLabel="";this.localeDayLabel="";this.localeYearLabel="";this.localeCalendarLabel="";this.localeSpinbuttonDescription="";this.localeTodayLabel="";this.localePrevMonthLabel="";this.localeNextMonthLabel="";this.displayPopover=!1;this.internalMonth="";this.internalDay="";this.internalYear="";this.endValue="";this.pendingDigits=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.parseValueToInternal(),this.syncFormValue()}).catch(t=>{this.onerror&&this.onerror(t)})}disconnectedCallback(){super.disconnectedCallback(),this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}willUpdate(t){super.willUpdate(t),t.has("value")&&!this.displayPopover?(this.parseValueToInternal(),this.syncFormValue()):t.has("endValue")&&!this.displayPopover&&this.syncFormValue()}parseValueToInternal(){let t=Qg(this.value);t?(this.internalMonth=t.month,this.internalDay=t.day,this.internalYear=t.year):(this.internalMonth="",this.internalDay="",this.internalYear="")}internalToValue(){return Jg(this.internalMonth,this.internalDay,this.internalYear)}syncFormValue(){let t=this.value||this.internalToValue();if(this.internals)if(this.name&&this.endValue){let e=new FormData;e.append(this.name,t||""),e.append(`${this.name}-end`,this.endValue),this.internals.setFormValue(e)}else this.internals.setFormValue(t||null)}commitValue(){let t=this.internalToValue();if(t&&t!==this.value){let e=Vt(t);if(e){let o=this.min?Vt(this.min):void 0,l=this.max?Vt(this.max):void 0;if(o&&Ri(e,o)||l&&mo(e,l))return}this.value=t,this.syncFormValue(),this.notifyValueChange()}}notifyValueChange(){let t={value:this.value,endValue:this.endValue};this.dispatchEvent(new CustomEvent("input",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}flushPendingInput(){this.pendingDigitTimeout&&(clearTimeout(this.pendingDigitTimeout),this.pendingDigitTimeout=void 0),this.pendingDigits="",this.commitValue()}formResetCallback(){this.value="",this.endValue="",this.parseValueToInternal(),this.syncFormValue()}formStateRestoreCallback(t){if(t instanceof FormData){let e=this.name||"";this.value=t.get(e)||"",this.endValue=t.get(`${e}-end`)||""}else typeof t=="string"&&(this.value=t,this.endValue="");this.parseValueToInternal(),this.syncFormValue()}handleCalendarButtonClick(){this.disabled||this.readonly||(this.displayPopover||this.flushPendingInput(),this.displayPopover=!this.displayPopover)}handleSelectTriggerClick(){this.disabled||this.readonly||(this.displayPopover=!this.displayPopover)}handleSelectKeydown(t){this.disabled||this.readonly||(t.key===Ct.ENTER||t.key===Ct.SPACE||t.key===Ct.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 o=t.shadowRoot.querySelector('.calendar-day[tabindex="0"]');o==null||o.focus()}},0)}handleDateSelected(t){let{detail:e}=t,o=this.effectiveSelectionMode;o===ie.WEEK||o===ie.RANGE?e.startDate&&e.endDate?(this.value=e.startDate,this.endValue=e.endDate):(this.value=e.date,this.endValue=""):(this.value=e.date,this.endValue=""),this.parseValueToInternal(),this.syncFormValue(),this.notifyValueChange();let l=o===ie.RANGE&&this.value&&this.endValue;(o!==ie.RANGE||l)&&(this.displayPopover=!1,this.focusBackToTrigger())}getSpinbuttonInput(t){switch(t){case"month":return this.monthInput;case"day":return this.dayInput;case"year":return this.yearInput;default:return null}}getFieldValue(t){switch(t){case"month":return this.internalMonth;case"day":return this.internalDay;case"year":return this.internalYear;default:return""}}setFieldValue(t,e){let o=t==="year"?4:2,l=String(e).padStart(o,"0");switch(t){case"month":this.internalMonth=l;break;case"day":this.internalDay=l;break;case"year":this.internalYear=l;break;default:break}this.requestUpdate()}handleSpinbuttonKeydown(t,e){if(this.readonly)return;let o=parseInt(this.internalMonth,10)||void 0,l=parseInt(this.internalYear,10)||void 0,c=hp(e),f=cp(e,o,l),y=parseInt(this.getFieldValue(e),10)||0;switch(t.key){case Ct.ARROW_UP:{t.preventDefault();let A=y>=f?c:y+1;this.setFieldValue(e,A),this.commitValue();break}case Ct.ARROW_DOWN:{t.preventDefault();let A=y<=c?f:y-1;this.setFieldValue(e,A),this.commitValue();break}case Ct.ARROW_LEFT:{t.preventDefault(),this.advanceToPrevField(e);break}case Ct.ARROW_RIGHT:{t.preventDefault(),this.advanceToNextField(e);break}case Ct.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,c,f)):t.preventDefault();break}}}handleDigitInput(t,e,o,l){this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t;let c=e==="year"?4:2;if(this.pendingDigits.length>=c){let f=parseInt(this.pendingDigits,10);f>l&&(f=l),f<o&&(f=o),this.setFieldValue(e,f),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else if(e!=="year"){let f=parseInt(this.pendingDigits,10),y=Math.floor(l/10);if(f>y){let A=f;A>l&&(A=l),A<o&&(A=o),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{let A=f;A<o&&(A=o),this.setFieldValue(e,A),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}else{let f=parseInt(this.pendingDigits,10);this.setFieldValue(e,f),this.pendingDigitTimeout=setTimeout(()=>{this.pendingDigits="",this.commitValue()},1e3)}}advanceToNextField(t){let e=Tn(this.locale),o=e.indexOf(t);if(o<e.length-1){let l=e[o+1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(l);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}advanceToPrevField(t){let e=Tn(this.locale),o=e.indexOf(t);if(o>0){let l=e[o-1];this.updateComplete.then(()=>{let c=this.getSpinbuttonInput(l);c==null||c.focus(),c==null||c.select()}).catch(()=>{})}}handleSpinbuttonFocus(t){t.target.select(),this.pendingDigits="",this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout)}handleSpinbuttonAreaClick(t){if(t.target.getAttribute("role")!=="spinbutton"){let o=Tn(this.locale),l=this.getSpinbuttonInput(o[0]);l==null||l.focus(),l==null||l.select()}}handleBaseKeydown(t){t.key===Ct.ESCAPE&&this.displayPopover&&(this.displayPopover=!1)}focusBackToTrigger(){this.updateComplete.then(()=>{var t,e;if(this.variant===yn.INPUT){let o=(t=this.shadowRoot)==null?void 0:t.querySelector('[part~="icon-container"]');o==null||o.focus()}else{let o=(e=this.shadowRoot)==null?void 0:e.getElementById(En);o==null||o.focus()}}).catch(()=>{})}get effectiveSelectionMode(){return this.selectionMode===ie.WEEK?ie.WEEK:this.variant===yn.DEFAULT?ie.RANGE:this.selectionMode}getDisplayText(){if(!this.value)return"";if(this.effectiveSelectionMode===ie.WEEK){let{start:t,end:e}=Fd(this.value,this.locale);return bn(t,e,this.locale)}return this.effectiveSelectionMode===ie.RANGE&&this.endValue?bn(this.value,this.endValue,this.locale):jg(this.value,this.locale)}renderSpinbutton(t){let e=this.getFieldValue(t),o=parseInt(this.internalMonth,10)||void 0,l=parseInt(this.internalYear,10)||void 0,c=hp(t),f=cp(t,o,l),y={month:this.localeMonthLabel,day:this.localeDayLabel,year:this.localeYearLabel},A={month:"mm",day:"dd",year:"yyyy"};return S`
|
|
3593
3593
|
<input
|
|
3594
3594
|
id="${t}-spinbutton"
|
|
3595
3595
|
part="spinbutton spinbutton-${t}"
|
|
@@ -3704,7 +3704,7 @@
|
|
|
3704
3704
|
${this.renderPopover()}
|
|
3705
3705
|
</div>
|
|
3706
3706
|
${this.helpText?this.renderHelperText():K}
|
|
3707
|
-
`}};zt.styles=[...Zt.styles,...Xg],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([Ut("#month-spinbutton")],zt.prototype,"monthInput",2),h([Ut("#day-spinbutton")],zt.prototype,"dayInput",2),h([Ut("#year-spinbutton")],zt.prototype,"yearInput",2),h([nt()],zt.prototype,"displayPopover",2),h([nt()],zt.prototype,"internalMonth",2),h([nt()],zt.prototype,"internalDay",2),h([nt()],zt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],zt.prototype,"endValue",2);var pp=zt;pp.register(qg);var
|
|
3707
|
+
`}};zt.styles=[...Zt.styles,...Xg],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([Ut("#month-spinbutton")],zt.prototype,"monthInput",2),h([Ut("#day-spinbutton")],zt.prototype,"dayInput",2),h([Ut("#year-spinbutton")],zt.prototype,"yearInput",2),h([nt()],zt.prototype,"displayPopover",2),h([nt()],zt.prototype,"internalMonth",2),h([nt()],zt.prototype,"internalDay",2),h([nt()],zt.prototype,"internalYear",2),h([u({type:String,reflect:!0,attribute:"end-value"})],zt.prototype,"endValue",2);var pp=zt;pp.register(qg);var c0=pp;Ks.register(jf);var h0=Ks;var xn=z.constructTagName("divider"),ds={HORIZONTAL:"horizontal",VERTICAL:"vertical"},An={SOLID:"solid",GRADIENT:"gradient"},wr={POSITIVE:"positive",NEGATIVE:"negative"},Sn={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},cs={ORIENTATION:ds.HORIZONTAL,VARIANT:An.SOLID,ARROW_DIRECTION:wr.NEGATIVE,BUTTON_DIRECTION:wr.NEGATIVE};var p0=[bt,B`
|
|
3708
3708
|
:host {
|
|
3709
3709
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
3710
3710
|
--mdc-divider-width: 0.0625rem;
|
|
@@ -3905,11 +3905,11 @@
|
|
|
3905
3905
|
:host([data-hidden]) {
|
|
3906
3906
|
display: none;
|
|
3907
3907
|
}
|
|
3908
|
-
`],eb=
|
|
3908
|
+
`],eb=p0;var uo=class extends X{constructor(){super(...arguments);this.orientation=cs.ORIENTATION;this.variant=cs.VARIANT;this.arrowDirection=cs.ARROW_DIRECTION;this.buttonPosition=cs.BUTTON_DIRECTION}setVariant(t){this.setAttribute("variant",Object.values(An).includes(t)?t:cs.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(ds).includes(t)?t:cs.ORIENTATION)}ensureValidDirections(){let t=this.orientation===ds.HORIZONTAL?wr.NEGATIVE:wr.POSITIVE;Object.values(wr).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(wr).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let e=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",e)}}getArrowIcon(){let t=this.orientation===ds.HORIZONTAL,e=this.arrowDirection===wr.POSITIVE;return t?e?Sn.UP:Sn.DOWN:e?Sn.RIGHT:Sn.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var c;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(e.length>1)return;let o=e.some(f=>f.tagName===Za.toUpperCase()),l=e.some(f=>f.tagName===Ti.toUpperCase());o&&!l?this.setAttribute("data-type","mdc-text-divider"):!o&&l&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return S`
|
|
3909
3909
|
<div></div>
|
|
3910
3910
|
<slot @slotchange=${this.inferDividerType}></slot>
|
|
3911
3911
|
<div></div>
|
|
3912
|
-
`}};uo.styles=[...X.styles,...eb],h([u({type:String,reflect:!0})],uo.prototype,"orientation",2),h([u({type:String,reflect:!0})],uo.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],uo.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],uo.prototype,"buttonPosition",2);var mp=uo;mp.register(xn);var
|
|
3912
|
+
`}};uo.styles=[...X.styles,...eb],h([u({type:String,reflect:!0})],uo.prototype,"orientation",2),h([u({type:String,reflect:!0})],uo.prototype,"variant",2),h([u({type:String,attribute:"arrow-direction",reflect:!0})],uo.prototype,"arrowDirection",2),h([u({type:String,attribute:"button-position",reflect:!0})],uo.prototype,"buttonPosition",2);var mp=uo;mp.register(xn);var m0=mp;var u0=B`
|
|
3913
3913
|
:host([selected]) {
|
|
3914
3914
|
border: 2px solid;
|
|
3915
3915
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
|
@@ -3931,7 +3931,7 @@
|
|
|
3931
3931
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
|
3932
3932
|
cursor: auto;
|
|
3933
3933
|
}
|
|
3934
|
-
`,rb=[
|
|
3934
|
+
`,rb=[u0];var ib=z.constructTagName("filterchip"),up={ICON_NAME:"check-bold",COLOR:"default"};var In=class extends sa{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=up.COLOR}setSelected(t){t?(this.iconName=up.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(t){super.update(t),t.has("selected")&&this.setSelected(this.selected)}};In.styles=[...sa.styles,...rb],h([u({type:Boolean,reflect:!0})],In.prototype,"selected",2);var fp=In;fp.register(ib);var f0=fp;var v0=B`
|
|
3935
3935
|
:host {
|
|
3936
3936
|
display: flex;
|
|
3937
3937
|
flex-direction: column;
|
|
@@ -3943,10 +3943,10 @@
|
|
|
3943
3943
|
flex-direction: column;
|
|
3944
3944
|
gap: 0.25rem;
|
|
3945
3945
|
}
|
|
3946
|
-
`,ob=[
|
|
3946
|
+
`,ob=[v0];var Vd=class extends Zt{constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){var t;super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0,this.role=this.isRadio?tt.RADIOGROUP:tt.GROUP,this.ariaDescription=(t=this.helpText)!=null?t:"",this.ariaLabel=this.label||""}update(t){super.update(t),t.has("label")&&!this.ariaLabel&&(this.ariaLabel=this.label||"")}render(){return S`
|
|
3947
3947
|
<div part="group-header">${this.renderLabel()} ${this.renderHelperText()}</div>
|
|
3948
3948
|
<slot></slot>
|
|
3949
|
-
`}};Vd.styles=[...Zt.styles,...ob];var vp=Vd;var sb=z.constructTagName("formfieldgroup");vp.register(sb);var zd=vp;qa.register(Ll);var
|
|
3949
|
+
`}};Vd.styles=[...Zt.styles,...ob];var vp=Vd;var sb=z.constructTagName("formfieldgroup");vp.register(sb);var zd=vp;qa.register(Ll);var g0=qa;sn.register(Jl);var b0=sn;var hs=Ii(class extends ri{constructor(n){if(super(n),n.type!==ur.PROPERTY&&n.type!==ur.ATTRIBUTE&&n.type!==ur.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!$l(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[i]){if(i===Re||i===K)return i;let t=n.element,e=n.name;if(n.type===ur.PROPERTY){if(i===t[e])return Re}else if(n.type===ur.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return Re}else if(n.type===ur.ATTRIBUTE&&t.getAttribute(e)===i+"")return Re;return Vl(n),i}});Zt.register($v);var sr=Zt;var ab=z.constructTagName("input"),Bd={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},aa={OFF:"off",ON:"on"},fo={PASSWORD:"password",TEXT:"text",SEARCH:"search"},nb={MAX_LENGTH:10,VALIDATION:Wt.ERROR},Di={VALIDATION:Wt.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:$t.TERTIARY,CLEAR_BUTTON_SIZE:Ar[20],PREFIX_TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:mt.SPAN,AUTO_COMPLETE:aa.OFF,INPUT_TYPE:fo.TEXT};var y0=[B`
|
|
3950
3950
|
:host {
|
|
3951
3951
|
--mdc-input-text-color: var(--mds-color-theme-text-primary-normal);
|
|
3952
3952
|
--mdc-input-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -4067,7 +4067,7 @@
|
|
|
4067
4067
|
opacity: 0;
|
|
4068
4068
|
pointer-events: none;
|
|
4069
4069
|
}
|
|
4070
|
-
`,...yt(!0)],lb=
|
|
4070
|
+
`,...yt(!0)],lb=y0;var ve=class extends wt(De(ce(re(sr)))){constructor(){super(...arguments);this.placeholder="";this.trailingButton=!1;this.autocapitalize=Bd.OFF;this.autocomplete=aa.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,o){super.attributeChangedCallback(t,e,o),t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(l=>{this.onerror&&this.onerror(l)})}setInputValidity(){this.inputElement.setCustomValidity(""),!this.inputElement.validity.valid&&this.validationMessage&&this.inputElement.setCustomValidity(this.validationMessage),this.setValidity()}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity(),this.checkValidity()}onChange(t){this.updateValue(),this.setInputValidity();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}handleKeyDown(t){var e;this.getActionForKeyEvent(t)===q.ENTER&&this.getKeyboardNavMode()===te.DEFAULT&&((e=this.form)==null||e.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?S`
|
|
4071
4071
|
<mdc-icon
|
|
4072
4072
|
part="leading-icon"
|
|
4073
4073
|
name=${this.leadingIcon}
|
|
@@ -4130,7 +4130,7 @@
|
|
|
4130
4130
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
|
4131
4131
|
</div>
|
|
4132
4132
|
${this.helpText?this.renderHelperText():K}
|
|
4133
|
-
`}};ve.styles=[...sr.styles,...lb],ve.shadowRootOptions={...sr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],ve.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],ve.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],ve.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],ve.prototype,"trailingButton",2),h([u({type:Number})],ve.prototype,"maxlength",2),h([u({type:Number})],ve.prototype,"minlength",2),h([u({type:String})],ve.prototype,"autocapitalize",2),h([u({type:String})],ve.prototype,"autocomplete",2),h([u({type:String})],ve.prototype,"dirname",2),h([u({type:String})],ve.prototype,"pattern",2),h([u({type:String})],ve.prototype,"list",2),h([u({type:Number})],ve.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],ve.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],ve.prototype,"dataAriaDescribedby",2);var Gr=ve;Gr.register(ab);var
|
|
4133
|
+
`}};ve.styles=[...sr.styles,...lb],ve.shadowRootOptions={...sr.shadowRootOptions,delegatesFocus:!0},h([u({type:String})],ve.prototype,"placeholder",2),h([u({type:String,attribute:"prefix-text"})],ve.prototype,"prefixText",2),h([u({type:String,attribute:"leading-icon"})],ve.prototype,"leadingIcon",2),h([u({type:Boolean,attribute:"trailing-button"})],ve.prototype,"trailingButton",2),h([u({type:Number})],ve.prototype,"maxlength",2),h([u({type:Number})],ve.prototype,"minlength",2),h([u({type:String})],ve.prototype,"autocapitalize",2),h([u({type:String})],ve.prototype,"autocomplete",2),h([u({type:String})],ve.prototype,"dirname",2),h([u({type:String})],ve.prototype,"pattern",2),h([u({type:String})],ve.prototype,"list",2),h([u({type:Number})],ve.prototype,"size",2),h([u({type:String,attribute:"clear-aria-label"})],ve.prototype,"clearAriaLabel",2),h([u({type:String,reflect:!0,attribute:"data-aria-describedby"})],ve.prototype,"dataAriaDescribedby",2);var Gr=ve;Gr.register(ab);var E0=Gr;var T0=B`
|
|
4134
4134
|
:host {
|
|
4135
4135
|
height: 1.5rem;
|
|
4136
4136
|
gap: 0.25rem;
|
|
@@ -4166,7 +4166,7 @@
|
|
|
4166
4166
|
width: 1.25rem;
|
|
4167
4167
|
height: 1.25rem;
|
|
4168
4168
|
}
|
|
4169
|
-
`,db=[bt,
|
|
4169
|
+
`,db=[bt,T0];var Ud=z.constructTagName("inputchip"),Hd={TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,CLOSE_ICON:"cancel-bold"};var ps=class extends le(Jt(X)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderPrefix(){return S`
|
|
4170
4170
|
<slot name="prefix">
|
|
4171
4171
|
${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" length-unit="rem" size="1"></mdc-icon>`:K}
|
|
4172
4172
|
</slot>
|
|
@@ -4184,7 +4184,7 @@
|
|
|
4184
4184
|
size="20"
|
|
4185
4185
|
@click="${this.handleClose}"
|
|
4186
4186
|
></mdc-button>
|
|
4187
|
-
`}};ps.styles=[...X.styles,...db],h([u({type:String})],ps.prototype,"label",2),h([u({type:Boolean})],ps.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],ps.prototype,"clearAriaLabel",2);var gp=ps;gp.register(Ud);var
|
|
4187
|
+
`}};ps.styles=[...X.styles,...db],h([u({type:String})],ps.prototype,"label",2),h([u({type:Boolean})],ps.prototype,"error",2),h([u({type:String,attribute:"clear-aria-label"})],ps.prototype,"clearAriaLabel",2);var gp=ps;gp.register(Ud);var x0=gp;var A0=B`
|
|
4188
4188
|
:host([icon-name])::part(text) {
|
|
4189
4189
|
margin-inline-end: 0.25rem;
|
|
4190
4190
|
}
|
|
@@ -4255,7 +4255,7 @@
|
|
|
4255
4255
|
text-decoration: var(--mds-font-apps-body-small-regular-underline-text-decoration);
|
|
4256
4256
|
text-transform: var(--mds-font-apps-body-small-regular-underline-text-case);
|
|
4257
4257
|
}
|
|
4258
|
-
`,cb=[
|
|
4258
|
+
`,cb=[A0];var _n=class extends le(oi){constructor(){super(...arguments);this.size=Hf.LINK_SIZE}getIconSize(){switch(this.size){case Yl.SMALL:return jl.SMALL;case Yl.MIDSIZE:return jl.MIDSIZE;default:return jl.LARGE}}renderAnchorContent(){return S`<span part="text"><slot></slot></span>${this.iconName?S`<mdc-icon part="icon" name="${this.iconName}" size="${this.getIconSize()}" length-unit="rem"></mdc-icon>`:K}`}};_n.styles=[...oi.styles,...cb],h([u({type:String,reflect:!0})],_n.prototype,"size",2);var bp=_n;bp.register(Wl);var S0=bp;var hb=z.constructTagName("linkbutton"),na={12:12,14:14,16:16},la={SIZE:na[16],ROLE:tt.BUTTON,INLINE:qs.INLINE,INVERTED:qs.INVERTED};var pb=n=>{switch(n){case na[12]:return .75;case na[14]:return .875;default:return 1}};var I0=B`
|
|
4259
4259
|
:host {
|
|
4260
4260
|
gap: 0.25rem;
|
|
4261
4261
|
cursor: pointer;
|
|
@@ -4354,10 +4354,10 @@
|
|
|
4354
4354
|
color: var(--mdc-link-color-disabled);
|
|
4355
4355
|
pointer-events: none;
|
|
4356
4356
|
}
|
|
4357
|
-
`,mb=[
|
|
4357
|
+
`,mb=[I0,...yt()];var ms=class extends le(ue){constructor(){super(...arguments);this.size=la.SIZE;this.inline=la.INLINE;this.inverted=la.INVERTED}connectedCallback(){super.connectedCallback(),this.active=void 0,this.role=la.ROLE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(na).includes(t)?`${t}`:la.SIZE.toString())}render(){return S`
|
|
4358
4358
|
<slot></slot>
|
|
4359
4359
|
${this.iconName?S` <mdc-icon name=${this.iconName} size=${pb(this.size)} length-unit="rem"></mdc-icon> `:K}
|
|
4360
|
-
`}};ms.styles=[...oi.styles,...mb],h([u({type:Number,reflect:!0})],ms.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ms.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],ms.prototype,"inverted",2);var yp=ms;yp.register(hb);var
|
|
4360
|
+
`}};ms.styles=[...oi.styles,...mb],h([u({type:Number,reflect:!0})],ms.prototype,"size",2),h([u({type:Boolean,reflect:!0})],ms.prototype,"inline",2),h([u({type:Boolean,reflect:!0})],ms.prototype,"inverted",2);var yp=ms;yp.register(hb);var _0=yp;oi.register(Cv);var C0=oi;var Qt={CREATED:"created",FIRST_UPDATE_COMPLETED:"first-update-completed",DESTROYED:"destroyed",MODIFIED:"modified"};var vo=n=>{class i extends Lt(wt(n)){constructor(...o){super(...o);this.loop="true";this.propagateAllKeyEvents=!1;this.initialFocus=0;this.orientation="vertical";this.handleItemCreation=o=>{var f;let{target:l}=o,c=o instanceof CustomEvent&&((f=o.detail)==null?void 0:f.lifecycle);this.navItems.length===0&&l instanceof X&&c&&l.setAttribute("tabindex","0")};this.handleNavigationClick=o=>{let l=o.target,c=this.getCurrentIndex(l);if(c!==-1){let f=!(this.navItems.at(c)!==l&&document.activeElement===o.target);this.resetTabIndexAndSetFocus(c,void 0,f,!1)}};this.handleNavBeforeFocus=o=>{let l=Qc(o.relatedTarget);if(this!==l&&!this.contains(document.activeElement)&&this.contains(l)){o.preventDefault();let c=this.navItems.find(y=>y.contains(l)),f=this.getCurrentIndex(c);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(o){super.firstUpdated(o),this.setInitialFocus()}setInitialFocus(){let o=Math.max(Math.min(this.initialFocus,this.navItems.length-1),0);this.resetTabIndexAndSetFocus(o,void 0,!1)}handleNavigationKeyDown(o){let l=this.getActionForKeyEvent(o,!0),c=this.orientation==="vertical",f=new Set(c?[q.DOWN,q.UP,q.HOME,q.END]:[q.LEFT,q.RIGHT,q.HOME,q.END]);if(!l||!f.has(l))return;let y=o.target,A=this.getCurrentIndex(y);if(A===-1)return;this.resetTabIndexes(A);let F=!1;switch(l){case q.HOME:{F=this.resetTabIndexAndSetFocus(0,A);break}case q.END:{F=this.resetTabIndexAndSetFocus(this.navItems.length-1,A);break}case q.DOWN:case q.RIGHT:{let W=this.shouldLoop()?0:A,Q=A+1===this.navItems.length?W:A+1;F=this.resetTabIndexAndSetFocus(Q,A);break}case q.UP:case q.LEFT:{let W=this.shouldLoop()?this.navItems.length-1:A,Q=A-1===-1?W:A-1;F=this.resetTabIndexAndSetFocus(Q,A);break}default:break}F&&(this.keyDownEventHandled(),this.propagateAllKeyEvents||(o.stopPropagation(),o.preventDefault()))}getCurrentIndex(o){return o?this.navItems.findIndex(l=>l===o||!!(l.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)):-1}resetTabIndexes(o,l=!0){var c;if(this.navItems.length>0){this.navItems.forEach(A=>A.setAttribute("tabindex","-1"));let f=this.navItems.at(o)?o:0,y=(c=this.navItems.at(f))!=null?c:this.navItems.find(Boolean);y&&(y.setAttribute("tabindex","0"),l&&y.focus())}}resetTabIndexAndSetFocus(o,l,c=!0,f=!0){var F;let{navItems:y}=this;if(y.length===0)return!1;let A=(F=y.at(o))!=null?F:y.find(Boolean);return o===0&&l===0&&y.length===1?!0:o===l&&A&&A.getAttribute("tabindex")==="0"?!1:(l===void 0?y.forEach(W=>W.setAttribute("tabindex","-1")):y.at(l)&&y.at(l).setAttribute("tabindex","-1"),A.setAttribute("tabindex","0"),c&&(A.focus({preventScroll:!0}),f&&A.scrollIntoView({block:"nearest"})),!0)}shouldLoop(){return this.getKeyboardNavMode()===te.SPATIAL?!1:this.loop!=="false"}}return i};var Gd=z.constructTagName("listitem"),Cn={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},ub={VARIANT:Cn.FULL_WIDTH};var k0=n=>!!n,Nr=class{constructor(i,t){this.cache=[];this.itemCreationHandler=i=>{i.stopPropagation(),this.addItem(i.target,void 0)};this.itemDestroyHandler=i=>{i.stopPropagation(),this.delete(i.detail.originalTarget)};this.host=i,i.addController(this),this.isValidItem=(t==null?void 0:t.isValidItem)||k0,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(i){this.addItem(i,void 0)}addAt(i,t){this.addItem(i,t)}getIndexToInsertInCache(i){if(!this.cache.length||!af(this.cache.at(-1),i))return-1;let t=0,e=this.cache.length-1;for(;t<=e;){let o=Math.floor((t+e)/2);nf(this.cache[o],i)?t=o+1:e=o-1}return t}addItem(i,t=void 0){var o;let e=i;if(this.isValidItem(e)&&!this.cache.includes(e)){let l=t===void 0?this.getIndexToInsertInCache(e):t;this.onStoreUpdate&&((o=this.onStoreUpdate)==null||o.call(this,e,"added",l===-1?this.cache.length:l,this.cache.slice())),l===-1?this.cache.push(e):l>=0&&this.cache.splice(l,0,e)}}delete(i){var e;let t=this.cache.indexOf(i);t!==-1&&(this.onStoreUpdate&&((e=this.onStoreUpdate)==null||e.call(this,i,"removed",t,this.cache.slice())),this.cache.splice(t,1))}reset(i){this.cache.length=0,i&&this.cache.push(...i)}};var di=n=>{class i extends n{constructor(...o){super(...o);this.handleItemCreation=o=>{let l=o.target;l&&l.addEventListener(Qt.DESTROYED,this.handleItemRemovedEvent)};this.handleItemRemovedEvent=o=>{o.stopImmediatePropagation(),o.target&&o.type===Qt.DESTROYED&&(o.target.removeEventListener(Qt.DESTROYED,this.handleItemRemovedEvent),this.dispatchEvent(new CustomEvent(o.type,{bubbles:o.bubbles,composed:o.composed,detail:{originalTarget:o.target}})))};this.addEventListener(Qt.CREATED,this.handleItemCreation)}}return i};var w0=B`
|
|
4361
4361
|
:host {
|
|
4362
4362
|
display: flex;
|
|
4363
4363
|
flex-direction: column;
|
|
@@ -4383,11 +4383,11 @@
|
|
|
4383
4383
|
scroll-padding-left: 0.25rem;
|
|
4384
4384
|
scroll-padding-right: 0.25rem;
|
|
4385
4385
|
}
|
|
4386
|
-
`,fb=[
|
|
4386
|
+
`,fb=[w0];var vb=z.constructTagName("list");var kn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},Kd={LOOP:"true",INITIAL_FOCUS:0,ORIENTATION:kn.VERTICAL};var us=class extends vo(di(X)){constructor(){super();this.loop=Kd.LOOP;this.initialFocus=Kd.INITIAL_FOCUS;this.orientation=Kd.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("focusin",this.handleFocusEvent),this.addEventListener("focusout",this.handleFocusEvent),this.itemsStore=new Nr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}get navItems(){return this.itemsStore.items}onElementStoreUpdate(t,e,o){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=o+1;l>=this.navItems.length&&(l=o-1),this.resetTabIndexes(l,this.focusWithin)}}handleFocusEvent(t){t.type==="focusout"&&t.relatedTarget===null||(this.focusWithin=t.type==="focusin")}isValidItem(t){return t.matches(`${Gd}:not([disabled])`)}render(){return S`
|
|
4387
4387
|
<slot name="list-header"></slot>
|
|
4388
4388
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
4389
4389
|
<slot part="container" role="presentation"></slot>
|
|
4390
|
-
`}};us.styles=[...X.styles,...fb],h([u({type:String,reflect:!0})],us.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],us.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],us.prototype,"orientation",2);var Pi=us;Pi.register(vb);var Ep=Pi;var
|
|
4390
|
+
`}};us.styles=[...X.styles,...fb],h([u({type:String,reflect:!0})],us.prototype,"loop",2),h([u({type:Number,reflect:!0,attribute:"initial-focus"})],us.prototype,"initialFocus",2),h([u({type:String,reflect:!0})],us.prototype,"orientation",2);var Pi=us;Pi.register(vb);var Ep=Pi;var N0=B`
|
|
4391
4391
|
:host {
|
|
4392
4392
|
--mdc-listheader-padding: 0.5rem 0.75rem;
|
|
4393
4393
|
--mdc-listheader-gap: 0.5rem;
|
|
@@ -4414,7 +4414,7 @@
|
|
|
4414
4414
|
:host::part(postfix-icon) {
|
|
4415
4415
|
flex-shrink: 0;
|
|
4416
4416
|
}
|
|
4417
|
-
`,gb=[
|
|
4417
|
+
`,gb=[N0];var go=class extends X{constructor(){super(...arguments);this.disabled=!1}render(){return S`
|
|
4418
4418
|
${this.prefixIcon?S`<mdc-icon
|
|
4419
4419
|
part="prefix-icon"
|
|
4420
4420
|
name="${this.prefixIcon}"
|
|
@@ -4433,7 +4433,7 @@
|
|
|
4433
4433
|
size="1"
|
|
4434
4434
|
length-unit="rem"
|
|
4435
4435
|
></mdc-icon>`:K}
|
|
4436
|
-
`}};go.styles=[...X.styles,...gb],h([u({type:String,attribute:"prefix-icon"})],go.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],go.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],go.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],go.prototype,"disabled",2);var Tp=go;var bb=z.constructTagName("listheader");Tp.register(bb);var
|
|
4436
|
+
`}};go.styles=[...X.styles,...gb],h([u({type:String,attribute:"prefix-icon"})],go.prototype,"prefixIcon",2),h([u({type:String,attribute:"postfix-icon"})],go.prototype,"postfixIcon",2),h([u({type:String,attribute:"header-text"})],go.prototype,"headerText",2),h([u({type:Boolean,reflect:!0})],go.prototype,"disabled",2);var Tp=go;var bb=z.constructTagName("listheader");Tp.register(bb);var M0=Tp;var Wd=n=>{class i extends 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}}))}dispatchModifiedEvent(e){this.dispatchEvent(new CustomEvent(Qt.MODIFIED,{detail:{change:e,lifecycle:!0},bubbles:!0,composed:!0}))}}return i};var wn=class{static dispatchListItemEvent(i,t){t.dispatchEvent(new Event(i,{composed:!0,bubbles:!0}))}static onDisableListItem(i){this.dispatchListItemEvent("disabled",i)}static onEnableListItem(i){this.dispatchListItemEvent("enabled",i)}static onCreatedListItem(i){setTimeout(()=>{this.dispatchListItemEvent("created",i)},0)}static onDestroyedListItem(i){this.dispatchListItemEvent("destroyed",i)}};var L0=B`
|
|
4437
4437
|
:host {
|
|
4438
4438
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
4439
4439
|
--mdc-listitem-default-active-background-color: var(--mds-color-theme-background-primary-active);
|
|
@@ -4546,7 +4546,7 @@
|
|
|
4546
4546
|
flex-direction: row;
|
|
4547
4547
|
flex-shrink: 0;
|
|
4548
4548
|
}
|
|
4549
|
-
`,yb=[
|
|
4549
|
+
`,yb=[L0,...yt()];var Ke=class extends Lt(wt(Jt(Zr(Wd(X))))){constructor(){super();this.variant=ub.VARIANT;this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("click",this.handleClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=this.role||tt.LISTITEM}handleClick(t){this.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}handleKeyDown(t){let e=this.getActionForKeyEvent(t);!t.defaultPrevented&&e===q.ENTER&&(this.isEventFromInsideListItem(t)||(this.keyDownEventHandled(),t.preventDefault(),this.triggerClickEvent(t)))}handleKeyUp(t){let e=this.getActionForKeyEvent(t);!t.defaultPrevented&&e===q.SPACE&&(this.isEventFromInsideListItem(t)||(t.preventDefault(),this.triggerClickEvent(t)))}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,o){return S`
|
|
4550
4550
|
<slot name="${t}">
|
|
4551
4551
|
${o?S`<mdc-text part="${t}" type="${e}" tagname="${mt.SPAN}">${o}</mdc-text>`:K}
|
|
4552
4552
|
</slot>
|
|
@@ -4578,7 +4578,7 @@
|
|
|
4578
4578
|
${this.renderTrailingControls()}
|
|
4579
4579
|
</div>
|
|
4580
4580
|
</slot>
|
|
4581
|
-
`}};Ke.styles=[...X.styles,...yb],h([Kt({slot:"leading-controls"})],Ke.prototype,"leadingControlsSlot",2),h([Kt({slot:"trailing-controls"})],Ke.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],Ke.prototype,"variant",2),h([u({type:String,reflect:!0})],Ke.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Ke.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],Ke.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],Ke.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],Ke.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ke.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],Ke.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],Ke.prototype,"active",2);var Fi=Ke;Fi.register(Gd);var
|
|
4581
|
+
`}};Ke.styles=[...X.styles,...yb],h([Kt({slot:"leading-controls"})],Ke.prototype,"leadingControlsSlot",2),h([Kt({slot:"trailing-controls"})],Ke.prototype,"trailingControlsSlot",2),h([u({type:String,reflect:!0})],Ke.prototype,"variant",2),h([u({type:String,reflect:!0})],Ke.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Ke.prototype,"secondaryLabel",2),h([u({type:String,reflect:!0,attribute:"tertiary-label"})],Ke.prototype,"tertiaryLabel",2),h([u({type:String,reflect:!0,attribute:"side-header-text"})],Ke.prototype,"sideHeaderText",2),h([u({type:String,reflect:!0,attribute:"subline-text"})],Ke.prototype,"sublineText",2),h([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],Ke.prototype,"softDisabled",2),h([u({type:Number,reflect:!0,attribute:"data-index"})],Ke.prototype,"dataIndex",2),h([u({type:Boolean,reflect:!0,attribute:"active"})],Ke.prototype,"active",2);var Fi=Ke;Fi.register(Gd);var O0=Fi;var R0=B`
|
|
4582
4582
|
:host {
|
|
4583
4583
|
--mdc-marker-width: 0.25rem;
|
|
4584
4584
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -4603,7 +4603,7 @@
|
|
|
4603
4603
|
var(--mdc-marker-striped-background-color) 0.375rem
|
|
4604
4604
|
);
|
|
4605
4605
|
}
|
|
4606
|
-
`,Eb=[
|
|
4606
|
+
`,Eb=[R0];var Tb=z.constructTagName("marker"),xb={SOLID:"solid",STRIPED:"striped"};var Nn=class extends X{constructor(){super(...arguments);this.variant=xb.SOLID}};Nn.styles=[...X.styles,...Eb],h([u({type:String,reflect:!0})],Nn.prototype,"variant",2);var xp=Nn;xp.register(Tb);var D0=xp;var ge=z.constructTagName("menupopover"),Ap={PLACEMENT:Mt.BOTTOM_START,ORIENTATION:"vertical"};var $i=z.constructTagName("menusection"),Ab={DIVIDER_VARIANT:"solid"};var bo=z.constructTagName("sidenavigation"),ar={FIXED_EXPANDED:"fixed-expanded",FIXED_COLLAPSED:"fixed-collapsed",FLEXIBLE:"flexible",FLEXIBLE_ON_HOVER:"flexible-on-hover",HIDDEN:"hidden"},Yd={VARIANT:ar.FLEXIBLE};var Mn=z.constructTagName("menubar"),Sb={ORIENTATION:"vertical"};var P0=B`
|
|
4607
4607
|
:host {
|
|
4608
4608
|
display: flex;
|
|
4609
4609
|
}
|
|
@@ -4615,7 +4615,7 @@
|
|
|
4615
4615
|
:host([aria-orientation='vertical']) {
|
|
4616
4616
|
flex-direction: column;
|
|
4617
4617
|
}
|
|
4618
|
-
`,Ib=[
|
|
4618
|
+
`,Ib=[P0];var Ln=class extends Lt(wt(X)){constructor(){super();this.depthManager=new ao(this);this.handleClick=t=>{if(t.composed&&t.composedPath().find(e=>e===this)){let e=t.target;if(!e||!this.isTopLevelMenuItem(e))return;let o=this.menuItems.filter(c=>c!==e);this.getVisibleSubMenusOfItems(o).forEach(c=>{c.hide()})}};this.addEventListener("keydown",this.handleKeyDown.bind(this))}async connectedCallback(){var t;super.connectedCallback(),this.role=tt.MENUBAR,this.ariaOrientation=Sb.ORIENTATION,document.addEventListener("click",this.handleClick,{capture:!0}),await this.updateComplete,(t=this.menusections)==null||t.forEach(e=>{e.setAttribute("divider-variant","gradient")})}async disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClick,{capture:!0})}get menuItems(){var c,f;let t=(c=this.shadowRoot)==null?void 0:c.querySelector("slot"),e=(f=t==null?void 0:t.assignedElements({flatten:!0}))!=null?f:[],o=[],l=y=>{y.role===tt.MENUITEM&&!y.hasAttribute("disabled")?o.push(y):y.tagName.toLowerCase()===$i&&Array.from(y.children).forEach(l)};return e.forEach(l),o}getVisibleSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(o=>{var f;let l=o.getAttribute("id");if(!l)return;let c=(f=document.querySelector)==null?void 0:f.call(document,`${ge}[triggerid="${l}"]`);c&&c.visible&&e.push(c)}),e}getAllPopovers(){var l,c;if(!this.menuItems.length)return[];let t=(c=(l=this.menuItems[0])==null?void 0:l.closest(bo))!=null?c:this;if(!t)return[];let e=[],o=f=>{f.querySelectorAll(`${ge}`).forEach(y=>{e.push(y)}),f.querySelectorAll("slot").forEach(y=>{y.assignedElements({flatten:!0}).forEach(o)})};return o(t),e}update(t){super.update(t)}firstUpdated(t){super.firstUpdated(t),this.resetTabIndexAndSetActiveTabIndex(this.menuItems),this.updatePopoverPlacement()}resetTabIndexAndSetActiveTabIndex(t){t.forEach((e,o)=>{let l=o===0?"0":"-1";e==null||e.setAttribute("tabindex",l)})}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t||e===t.parentElement)}getSubmenu(t){if(t)return this.getAllPopovers().find(e=>e.getAttribute("triggerid")===t)}showSubmenu(t){if(!t||!this.menuItems.find(l=>l.getAttribute("id")===t))return;let o=this.getSubmenu(t);o&&o.show()}updatePopoverPlacement(){let t=Mt.RIGHT_START;this.getAllPopovers().forEach(e=>{e.setAttribute("placement",t)})}updateTabIndexAndFocus(t,e,o){var l,c;o<0||e<0||(e!==o&&((l=t[e])==null||l.setAttribute("tabindex","-1"),(c=t[o])==null||c.setAttribute("tabindex","0")),t[o]&&(t[o].focus(),this.keyDownEventHandled()))}navigateToMenuItem(t,e,o=!1){var y;let{length:l}=this.menuItems;if(l===0)return;let c=t;if(this.getKeyboardNavMode()===te.DEFAULT?c=e==="prev"?(t-1+l)%l:(t+1)%l:c=e==="prev"?Math.max(0,t-1):Math.min(t+1,l-1),c!==t&&(this.keyDownEventHandled(),this.updateTabIndexAndFocus(this.menuItems,t,c),o)){let A=(y=this.menuItems[c])==null?void 0:y.getAttribute("id");this.getSubmenu(A)&&!this.menuItems[c].hasAttribute("soft-disabled")&&(this.showSubmenu(A),this.keyDownEventHandled())}}isTopLevelMenuItem(t){var c;let e=t.parentElement;if(!e||t.role!==tt.MENUITEM)return!1;let o=e.tagName.toLowerCase(),l=(c=e.parentElement)==null?void 0:c.tagName.toLowerCase();return o===Mn||o===bo||o===$i&&(l===Mn||l===bo)}isNestedMenuItem(t){return!!t.closest(ge)&&t.role===tt.MENUITEM}async closeAllMenuPopovers(){let t=this.depthManager.popUntil(e=>this.contains(e));await Promise.all(t.map(e=>e.updateComplete))}async crossMenubarNavigationOnLeft(t){if(t.role===tt.MENUITEM){let o=t.closest(ge),l=o==null?void 0:o.getAttribute("triggerid"),c=this.menuItems.find(f=>f.getAttribute("id")===l);if(c){this.isTopLevelMenuItem(c)&&(o==null||o.hide()),await(o==null?void 0:o.updateComplete);let f=this.getCurrentIndex(c);this.navigateToMenuItem(f,"prev",!0)}}}async crossMenubarNavigationOnRight(t){if(this.isTopLevelMenuItem(t)&&this.getSubmenu(t.id)&&!t.hasAttribute("soft-disabled"))this.showSubmenu(t.id),this.keyDownEventHandled();else if(this.isNestedMenuItem(t)&&!this.getSubmenu(t.id)){await this.closeAllMenuPopovers();let e=this.getParentMenuItemIndex(t);this.keyDownEventHandled(),e>=0&&this.navigateToMenuItem(e,"next",!0)}}getParentMenuItemIndex(t){let e=t.parentElement;for(;e;){if(e.tagName.toLowerCase()===ge){let o=e.getAttribute("triggerid"),l=this.menuItems.find(c=>c.getAttribute("id")===o);if(l)return this.isTopLevelMenuItem(l)?this.menuItems.findIndex(c=>c===l):this.getParentMenuItemIndex(l)}e=e.parentElement}return-1}async handleKeyDown(t){let e=this.getCurrentIndex(t.target);switch(this.getActionForKeyEvent(t,!0)){case q.HOME:this.updateTabIndexAndFocus(this.menuItems,e,0);break;case q.END:this.updateTabIndexAndFocus(this.menuItems,e,this.menuItems.length-1);break;case q.LEFT:{let l=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnLeft(l);break}case q.RIGHT:{let l=e>=0?this.menuItems[e]:t.target;await this.crossMenubarNavigationOnRight(l);break}case q.UP:{this.navigateToMenuItem(e,"prev"),t.preventDefault();break}case q.DOWN:{this.navigateToMenuItem(e,"next"),t.preventDefault();break}default:break}}render(){return S`<slot></slot>`}};Ln.styles=[...X.styles,...Ib],h([Kt({selector:"mdc-menusection",flatten:!0})],Ln.prototype,"menusections",2);var Sp=Ln;Sp.register(Mn);var F0=Sp;var On=z.constructTagName("menuitem"),Rn={LEFT:"arrow-left-bold",RIGHT:"arrow-right-bold"},Ip={POSITIVE:"positive",NEGATIVE:"negative"},_p={LEADING:"leading",TRAILING:"trailing"};var $0=B`
|
|
4619
4619
|
:host(:dir(rtl))::part(trailing-arrow),
|
|
4620
4620
|
:host(:dir(rtl))::part(leading-arrow) {
|
|
4621
4621
|
transform: rotate(180deg);
|
|
@@ -4624,7 +4624,7 @@
|
|
|
4624
4624
|
:host::part(leading-arrow) {
|
|
4625
4625
|
--mdc-icon-size: 1rem;
|
|
4626
4626
|
}
|
|
4627
|
-
`,_b=[
|
|
4627
|
+
`,_b=[$0];var yo=class extends Fi{handleKeyDown(i){this.getActionForKeyEvent(i)===q.ENTER&&(this.triggerClickEvent(i),i.preventDefault(),this.keyDownEventHandled())}handleKeyUp(i){this.getActionForKeyEvent(i)===q.SPACE&&(this.triggerClickEvent(i),i.preventDefault())}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEM,this.variant=Cn.INSET_RECTANGLE}renderTrailingControls(){let i=this.arrowDirection===Ip.NEGATIVE?Rn.LEFT:Rn.RIGHT;return S`
|
|
4628
4628
|
<slot
|
|
4629
4629
|
name="trailing-controls"
|
|
4630
4630
|
@click=${this.stopEventPropagation}
|
|
@@ -4640,7 +4640,7 @@
|
|
|
4640
4640
|
@keydown=${this.stopEventPropagation}
|
|
4641
4641
|
></slot>
|
|
4642
4642
|
${this.arrowPosition===_p.LEADING?S`<mdc-icon name="${i}" length-unit="rem" part="leading-arrow"></mdc-icon>`:K}
|
|
4643
|
-
`}};yo.styles=[...Fi.styles,..._b],h([u({type:String,reflect:!0,attribute:"arrow-position"})],yo.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],yo.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],yo.prototype,"name",2),h([u({type:String,reflect:!0})],yo.prototype,"value",2);var Mr=yo;Mr.register(On);var
|
|
4643
|
+
`}};yo.styles=[...Fi.styles,..._b],h([u({type:String,reflect:!0,attribute:"arrow-position"})],yo.prototype,"arrowPosition",2),h([u({type:String,reflect:!0,attribute:"arrow-direction"})],yo.prototype,"arrowDirection",2),h([u({type:String,reflect:!0})],yo.prototype,"name",2),h([u({type:String,reflect:!0})],yo.prototype,"value",2);var Mr=yo;Mr.register(On);var V0=Mr;var Cb=z.constructTagName("statictoggle"),z0={DEFAULT:"default",COMPACT:"compact"},Cp={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},kb={compact:.75,default:1.25},wb={SIZE:z0.DEFAULT};var B0=[B`
|
|
4644
4644
|
:host {
|
|
4645
4645
|
--mdc-statictoggle-width: 3rem;
|
|
4646
4646
|
--mdc-statictoggle-height: 1.5rem;
|
|
@@ -4735,7 +4735,7 @@
|
|
|
4735
4735
|
border: 1px solid GrayText;
|
|
4736
4736
|
}
|
|
4737
4737
|
}
|
|
4738
|
-
`],Nb=
|
|
4738
|
+
`],Nb=B0;var Eo=class extends Jt(X){constructor(){super(...arguments);this.checked=!1;this.size=wb.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return S`
|
|
4739
4739
|
<slot></slot>
|
|
4740
4740
|
<div part="slider">
|
|
4741
4741
|
<mdc-icon
|
|
@@ -4745,7 +4745,7 @@
|
|
|
4745
4745
|
size="${kb[this.size]}"
|
|
4746
4746
|
></mdc-icon>
|
|
4747
4747
|
</div>
|
|
4748
|
-
`}};Eo.styles=[...X.styles,...Nb],h([u({type:Boolean,reflect:!0})],Eo.prototype,"checked",2),h([u({type:String,reflect:!0})],Eo.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Eo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Eo.prototype,"softDisabled",2);var kp=Eo;kp.register(Cb);var
|
|
4748
|
+
`}};Eo.styles=[...X.styles,...Nb],h([u({type:Boolean,reflect:!0})],Eo.prototype,"checked",2),h([u({type:String,reflect:!0})],Eo.prototype,"size",2),h([u({type:Boolean,reflect:!0})],Eo.prototype,"readonly",2),h([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],Eo.prototype,"softDisabled",2);var kp=Eo;kp.register(Cb);var U0=kp;var Dn=z.constructTagName("tooltip"),Lr={DESCRIPTION:"description",LABEL:"label",NONE:"none"},We={ARIA_HIDDEN:"true",BACKDROP:!1,DELAY:"0,0",DISABLE_ARIA_EXPANDED:!0,HIDE_ON_BLUR:!0,HIDE_ON_ESCAPE:!0,TRIGGER:`${Se.MOUSEENTER} ${Se.FOCUSIN}`,OFFSET:4,PLACEMENT:Mt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Lr.DESCRIPTION,ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS:!1};var H0=B`
|
|
4749
4749
|
:host {
|
|
4750
4750
|
--mdc-tooltip-max-width: 400px;
|
|
4751
4751
|
--mdc-tooltip-padding: 0.75rem;
|
|
@@ -4769,14 +4769,14 @@
|
|
|
4769
4769
|
:host([color='contrast'])::part(popover-content) {
|
|
4770
4770
|
color: var(--mdc-tooltip-text-color-contrast);
|
|
4771
4771
|
}
|
|
4772
|
-
`,Mb=[
|
|
4772
|
+
`,Mb=[H0];var da=class extends ir{constructor(){super(...arguments);this.tooltipType=We.TOOLTIP_TYPE;this.onlyShowWhenTriggerOverflows=We.ONLY_SHOW_WHEN_TRIGGER_OVERFLOWS}connectedCallback(){super.connectedCallback(),this.role=tt.TOOLTIP,this.ariaHidden=We.ARIA_HIDDEN,this.backdrop=We.BACKDROP,this.delay=this.delay||We.DELAY,this.disableAriaExpanded=We.DISABLE_ARIA_EXPANDED,this.hideOnBlur=We.HIDE_ON_BLUR,this.hideOnEscape=We.HIDE_ON_ESCAPE,this.offset=this.offset||We.OFFSET,this.placement=this.placement||We.PLACEMENT,this.trigger=We.TRIGGER,this.closeButton=Et.CLOSE_BUTTON,this.disableFlip=Et.DISABLE_FLIP,this.focusBackToTrigger=Et.FOCUS_BACK,this.focusTrap=Et.FOCUS_TRAP,this.hideOnOutsideClick=Et.HIDE_ON_CLICK_OUTSIDE,this.interactive=Et.INTERACTIVE,this.preventScroll=Et.PREVENT_SCROLL,this.size=Et.SIZE}setTooltipType(t){this.setAttribute("tooltip-type",Object.values(Lr).includes(t)?t:We.TOOLTIP_TYPE)}async onIdUpdated(){if(this.id.length===0&&(this.id=`mdc-tooltip-${Pe()}`),await this.updateComplete,this.triggerElement)switch(this.tooltipType){case Lr.DESCRIPTION:this.triggerElement.setAttribute("aria-describedby",this.id);break;case Lr.LABEL:this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Mt).includes(this.placement)||(this.placement=We.PLACEMENT)}onTooltipTypeUpdated(t){let e=t.get("tooltipType");if(Object.values(Lr).includes(this.tooltipType)||this.setTooltipType(We.TOOLTIP_TYPE),this.triggerElement)switch(this.tooltipType){case Lr.DESCRIPTION:e===Lr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby"),this.triggerElement.setAttribute("aria-describedby",this.id);break;case Lr.LABEL:e===Lr.DESCRIPTION&&this.triggerElement.removeAttribute("aria-describedby"),this.triggerElement.setAttribute("aria-labelledby",this.id);break;default:e===Lr.DESCRIPTION?this.triggerElement.removeAttribute("aria-describedby"):e===Lr.LABEL&&this.triggerElement.removeAttribute("aria-labelledby");break}}async isOpenUpdated(t,e){let{triggerElement:o}=this;t===e||!o||(e||this.depthManager.remove([this]),await super.isOpenUpdated(t,e))}async update(t){super.update(t),t.has("id")&&await this.onIdUpdated(),t.has("placement")&&this.onPlacementUpdated(),t.has("tooltipType")&&this.onTooltipTypeUpdated(t)}show(){this.onlyShowWhenTriggerOverflows&&this.triggerElement&&df(this.triggerElement)&&!this.triggerElement.isWidthOverflowing()||super.show()}};da.styles=[...ir.styles,...Mb],h([u({type:String,attribute:"tooltip-type",reflect:!0})],da.prototype,"tooltipType",2),h([u({type:Boolean,attribute:"only-show-when-trigger-overflows",reflect:!0})],da.prototype,"onlyShowWhenTriggerOverflows",2);var wp=da;wp.register(Dn);var G0=wp;var Lb=z.constructTagName("toggle"),Pn={DEFAULT:"default",COMPACT:"compact"};var Np={SIZE:Pn.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var To=n=>{class i extends n{constructor(){super(...arguments);this.controlTypeProviderContext=xe.consume({host:this,context:ep.Context})}willUpdate(){this.controlType&&wd.includes(this.controlType)||(this.controlTypeProviderContext.value?this.controlType=this.controlTypeProviderContext.value:this.controlType=kd.CONTROL_TYPE)}}return h([u({type:String,attribute:"control-type",reflect:!0})],i.prototype,"controlType",2),i};var jd=z.constructTagName("menuitemcheckbox"),Fn={NONE:"none",CHECKBOX:"checkbox",CHECKMARK:"checkmark",TOGGLE:"toggle"},Ob={INDICATOR:Fn.CHECKBOX};var K0=B`
|
|
4773
4773
|
:host::part(checkmark-icon) {
|
|
4774
4774
|
--mdc-icon-fill-color: currentColor;
|
|
4775
4775
|
}
|
|
4776
4776
|
:host .hidden-checkmark {
|
|
4777
4777
|
visibility: hidden;
|
|
4778
4778
|
}
|
|
4779
|
-
`,Rb=[
|
|
4779
|
+
`,Rb=[K0];var ca=class extends To(Mr){constructor(){super();this.checked=!1;this.indicator=Ob.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMCHECKBOX}handleMouseClick(){this.disabled||this.softDisabled||(this.controlType!=="controlled"&&(this.checked=!this.checked),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`)}staticCheckbox(){return this.indicator===Fn.CHECKBOX?S`
|
|
4780
4780
|
<mdc-staticcheckbox
|
|
4781
4781
|
slot="leading-controls"
|
|
4782
4782
|
?checked="${this.checked}"
|
|
@@ -4818,14 +4818,14 @@
|
|
|
4818
4818
|
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
|
4819
4819
|
</div>
|
|
4820
4820
|
</slot>
|
|
4821
|
-
`}};ca.styles=[...Mr.styles,...Rb],h([u({type:Boolean,reflect:!0})],ca.prototype,"checked",2),h([u({type:String,reflect:!0})],ca.prototype,"indicator",2);var Mp=ca;Mp.register(jd);var
|
|
4821
|
+
`}};ca.styles=[...Mr.styles,...Rb],h([u({type:Boolean,reflect:!0})],ca.prototype,"checked",2),h([u({type:String,reflect:!0})],ca.prototype,"indicator",2);var Mp=ca;Mp.register(jd);var W0=Mp;var qd=z.constructTagName("menuitemradio"),Xd={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},Db={INDICATOR:Xd.RADIO};var Y0=B`
|
|
4822
4822
|
:host::part(checkmark-icon) {
|
|
4823
4823
|
--mdc-icon-fill-color: currentColor;
|
|
4824
4824
|
}
|
|
4825
4825
|
:host .hidden-checkmark {
|
|
4826
4826
|
visibility: hidden;
|
|
4827
4827
|
}
|
|
4828
|
-
`,Pb=[
|
|
4828
|
+
`,Pb=[Y0];var ha=class extends To(Mr){constructor(){super();this.checked=!1;this.indicator=Db.INDICATOR;this.addEventListener("click",this.handleMouseClick.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.MENUITEMRADIO}getAllRadiosWithinSameGroup(){let t=this.closest(`${$i}, ${ge}`);return!t||!this.name?[]:Array.from(t.querySelectorAll(`${this.tagName}[name="${this.name}"]`))}updateOtherRadiosCheckedState(){this.getAllRadiosWithinSameGroup().forEach(e=>{e!==this&&e.removeAttribute("checked")})}handleMouseClick(){this.disabled||this.softDisabled||this.checked||(this.controlType!=="controlled"&&(this.updateOtherRadiosCheckedState(),this.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.disabled||this.softDisabled||super.click()}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=`${this.checked}`,t.get("checked")===!1&&this.checked&&this.updateOtherRadiosCheckedState())}renderStaticRadio(){return this.indicator===Xd.RADIO?S`
|
|
4829
4829
|
<mdc-staticradio
|
|
4830
4830
|
slot="leading-controls"
|
|
4831
4831
|
?checked="${this.checked}"
|
|
@@ -4859,7 +4859,7 @@
|
|
|
4859
4859
|
${this.renderCheckmarkIcon()}
|
|
4860
4860
|
</div>
|
|
4861
4861
|
</slot>
|
|
4862
|
-
`}};ha.styles=[...Mr.styles,...Pb],h([u({type:Boolean,reflect:!0})],ha.prototype,"checked",2),h([u({type:String,reflect:!0})],ha.prototype,"indicator",2);var Lp=ha;Lp.register(qd);var
|
|
4862
|
+
`}};ha.styles=[...Mr.styles,...Pb],h([u({type:Boolean,reflect:!0})],ha.prototype,"checked",2),h([u({type:String,reflect:!0})],ha.prototype,"indicator",2);var Lp=ha;Lp.register(qd);var j0=Lp;var xo=z.constructTagName("navmenuitem"),Fb={DOT:_r.DOT,COUNTER:_r.COUNTER},$b={RIGHT_ARROW:"arrow-right-bold"},Op={MAX_COUNTER:99,TEXT_TYPE:ot.BODY_MIDSIZE_REGULAR,TAG_NAME:mt.SPAN,SIZE:zo[24],VARIANT:ar.FLEXIBLE,CANNOT_ACTIVATE:!1};var q0=B`
|
|
4863
4863
|
:host::part(popover-content) {
|
|
4864
4864
|
padding: 0.75rem 0.5rem;
|
|
4865
4865
|
}
|
|
@@ -4867,7 +4867,7 @@
|
|
|
4867
4867
|
::slotted(mdc-divider) {
|
|
4868
4868
|
margin-block: 0.25rem;
|
|
4869
4869
|
}
|
|
4870
|
-
`,Vb=[
|
|
4870
|
+
`,Vb=[q0];var $n=n=>{var t;if(!n)return!1;let i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();return i===tt.MENUITEM||i===tt.MENUITEMCHECKBOX||i===tt.MENUITEMRADIO},Rp=n=>{var i;return((i=n==null?void 0:n.tagName)==null?void 0:i.toLowerCase())===ge};var Vn=class extends ir{constructor(){super();this.placement=Ap.PLACEMENT;this.menuItems=[];this.menuItemsWithSubMenus=[];this.onOutsidePopoverClick=t=>{if(!this.depthManager.isHostOnTop())return;let e=t.composedPath(),o=this.contains(t.target)||e.includes(this.triggerElement)||e.includes(this),l=this.backdropElement?e.includes(this.backdropElement):!1;(!o||l)&&this.closeAllMenuPopovers()};this.togglePopoverVisible=t=>{var e;(e=this.triggerElement)!=null&&e.hasAttribute("soft-disabled")||(t.composedPath().find(o=>o.tagName===this.tagName)===this&&this.handleMouseClick(t),this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show()))};this.handleItemCreation=t=>{let e=t.target;$n(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 o=t.target,l=this.getCurrentIndex(o);if(l===-1)return;switch(this.resetTabIndexes(l),this.getActionForKeyEvent(t,!0)){case q.HOME:{this.resetTabIndexAndSetFocus(0,l),e=!0;break}case q.END:{this.resetTabIndexAndSetFocus(this.menuItems.length-1,l),e=!0;break}case q.DOWN:{let f=l+1===this.menuItems.length?0:l+1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case q.UP:{let f=l-1===-1?this.menuItems.length-1:l-1;this.resetTabIndexAndSetFocus(f,l),e=!0;break}case q.RIGHT:{let f=this.getSubMenuPopoverOfTarget(o);f&&(f.show(),e=!0);break}case q.LEFT:{Rp(this.parentElement)&&(this.hide(),this.resetTabIndexAndSetFocus(0,l),e=!0);break}case q.ESCAPE:{this.depthManager.isHostOnTop()&&(this.resetTabIndexAndSetFocus(0,l),e=!0);break}case q.ENTER:{!this.getSubMenuPopoverOfTarget(o)&&!o.hasAttribute("soft-disabled")&&(this.closeAllMenuPopovers(),this.fireMenuItemAction(o),e=!0);break}case q.SPACE:{e=!0;break}default:break}e&&(this.keyDownEventHandled(),t.stopPropagation(),t.preventDefault())};this.handleKeyUp=t=>{let e=!1,o=t.target;switch(this.getActionForKeyEvent(t)){case q.SPACE:{!o.matches(`${qd}, ${jd}`)&&!o.hasAttribute("soft-disabled")&&(this.getSubMenuPopoverOfTarget(o)||(this.closeAllMenuPopovers(),this.fireMenuItemAction(o),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 o,l;let e=t.getAttribute("id");return e?(l=(o=this.parentElement)==null?void 0:o.querySelector)==null?void 0:l.call(o,`${ge}[triggerid="${e}"]`):null}collectMenuItems(){var o;let t=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),e=(t==null?void 0:t.assignedElements({flatten:!0}))||[];this.menuItems=e.map(l=>l.tagName.toLowerCase()===$i?Array.from(l.children).filter(c=>$n(c)):$n(l)?l:[]).flat().filter(l=>!!l&&!l.hasAttribute("disabled")),this.menuItemsWithSubMenus=this.menuItems.filter(l=>this.getSubMenuPopoverOfTarget(l))}getOpenSubMenusOfItems(t){let e=[];return!t||t.length===0||t.forEach(o=>{let l=this.getSubMenuPopoverOfTarget(o);l&&l.visible&&e.push(l)}),e}connectedCallback(){super.connectedCallback(),this.role=tt.MENU,this.ariaOrientation=Ap.ORIENTATION,this.backdrop=!1,this.color=qo.TONAL,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0,this.focusTrap=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.interactive=!0,this.showArrow=!1,this.closeButton=!1,this.closeButtonAriaLabel=null}async isOpenUpdated(t,e){return t===e||!this.triggerElement?Promise.resolve():(e&&(this.backdrop=![On,xo].includes(this.triggerElement.tagName.toLowerCase())),e===!1&&this.menuItemsWithSubMenus.forEach(o=>{let l=this.getSubMenuPopoverOfTarget(o);l&&l.hide()}),this.resetMenuNavigation(),super.isOpenUpdated(t,e))}async firstUpdated(t){await super.firstUpdated(t),this.collectMenuItems(),this.resetTabIndexes(0)}resetTabIndexes(t){this.menuItems.length>0&&(this.menuItems.forEach(e=>e.setAttribute("tabindex","-1")),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}getCurrentIndex(t){return this.menuItems.findIndex(e=>e===t)}resetTabIndexAndSetFocus(t,e){t!==e&&(this.menuItems[e].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.menuItems[t].focus())}closeAllMenuPopovers(t){this.depthManager.popUntil(e=>e!==t&&Rp(e))}closeOtherSubMenusOnSameLevel(t){let e=this.menuItemsWithSubMenus.filter(l=>l!==t);this.getOpenSubMenusOfItems(e).forEach(l=>{l.hide()})}fireMenuItemAction(t){t.matches(On)&&t.dispatchEvent(new Event("action",{bubbles:!0,composed:!0}))}handleMouseClick(t){let e=t.target;if(!(!$n(e)||!t.isTrusted||e.hasAttribute("soft-disabled"))){if(this.getSubMenuPopoverOfTarget(e)){this.closeOtherSubMenusOnSameLevel(e);return}this.closeAllMenuPopovers(),this.fireMenuItemAction(e)}}};Vn.styles=[...ir.styles,...Vb],h([u({type:String,reflect:!0})],Vn.prototype,"placement",2);var Dp=Vn;Dp.register(ge);var X0=Dp;var Zd=class{constructor(i,t){this.variant=i,this.expanded=t}hasSiblingWithTriggerId(i){var o,l;let t=i==null?void 0:i.getAttribute("id");return t?Array.from((l=(o=i==null?void 0:i.parentElement)==null?void 0:o.children)!=null?l:[]).some(c=>c!==i&&c.tagName.toLowerCase()===ge&&c.getAttribute("triggerid")===t):!1}getParentNavMenuItems(i){if(!i)return[];let t=[],e=i;for(;e;){let o=e==null?void 0:e.closest(ge);if(!o)break;let l=o.getAttribute("triggerid");if(!l)break;let c=document.getElementById(l);if(c&&c.tagName.toLowerCase()===xo)t.push(c),e=c;else break}return t}setCurrentActiveNavMenuItem(i){var l;let t=((l=this.currentActiveNavMenuItem)==null?void 0:l.navId)===(i==null?void 0:i.navId),e=(i==null?void 0:i.cannotActivate)||this.hasSiblingWithTriggerId(i)||(i==null?void 0:i.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")})),!i))return;this.currentActiveNavMenuItem=i,i!=null&&i.disableAriaCurrent||i.setAttribute("aria-current","page"),i.setAttribute("active",""),this.getParentNavMenuItems(i).forEach(c=>{c.hasActiveChild=!0,c.setAttribute("active","")})}};Zd.context=bo;var Qd=Zd;var Z0=B`
|
|
4871
4871
|
:host {
|
|
4872
4872
|
--mdc-sidenavigation-expanded-width: 14.5rem;
|
|
4873
4873
|
--mdc-sidenavigation-expanded-left-padding: 1rem;
|
|
@@ -5005,7 +5005,7 @@
|
|
|
5005
5005
|
:host([data-grabber-visible][variant='flexible-on-hover'])::part(vertical-divider-button) {
|
|
5006
5006
|
opacity: 1;
|
|
5007
5007
|
}
|
|
5008
|
-
`,zb=[
|
|
5008
|
+
`,zb=[Z0];var Vi=class extends Te{constructor(){super({context:Qd.context,initialValue:new Qd(Yd.VARIANT,!0)});this.variant=Yd.VARIANT;this.footerText="";this.hideFixedSectionDivider=!1;this.isHovered=!1;this.isFocused=!1;this.handleMouseEnter=()=>{this.isHovered=!0,this.showGrabberButton()};this.handleMouseLeave=()=>{this.isHovered=!1,this.isFocused||this.hideGrabberButton()};this.handleFocusIn=t=>{if(!this.isFocused){if(this.navMenuItems.find(e=>e===t.target)&&!t.target.matches(":focus-visible"))return;this.isFocused=!0,this.showGrabberButton()}};this.handleFocusOut=t=>{this.contains(t.relatedTarget)||(this.isFocused=!1,this.isHovered||this.hideGrabberButton())};this.setupFlexibleOnHoverListeners=()=>{this.variant===ar.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 o=this.findNav(this.navMenuItems,t.detail.navId);this.context.value.setCurrentActiveNavMenuItem(o)}};this.findNav=(t,e)=>t.find(o=>o.navId===e);this.addEventListener("activechange",this.handleNestedNavMenuItemActiveChange.bind(this))}connectedCallback(){super.connectedCallback(),this.role=tt.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 Qd.context}updated(t){if(super.updated(t),t.has("variant"))switch(this.setVariant(this.variant),this.removeFlexibleOnHoverListeners(),this.setupFlexibleOnHoverListeners(),this.variant){case ar.FIXED_EXPANDED:this.expanded=!0;break;case ar.FIXED_COLLAPSED:this.expanded=!1;break;default:}(t.has("variant")||t.has("expanded"))&&this.updateContext()}firstUpdated(t){super.firstUpdated(t),(this.variant===ar.FLEXIBLE||this.variant===ar.FLEXIBLE_ON_HOVER)&&this.expanded===void 0&&(this.expanded=!0,this.updateContext())}updateContext(){(this.context.value.variant!==this.variant||this.context.value.expanded!==this.expanded)&&(this.context.value.variant=this.variant,this.context.value.expanded=this.expanded,this.context.updateObservers())}get navMenuItems(){return Array.from(this.querySelectorAll(`${xo}:not([disabled])`))}setVariant(t){this.setAttribute("variant",Object.values(ar).includes(t)?t:Yd.VARIANT)}toggleSideNavigation(t){this.expanded=!this.expanded,this.expanded===!1&&this.variant===ar.FLEXIBLE_ON_HOVER&&t.pointerType==="mouse"&&(this.isHovered=!1,this.isFocused=!1,this.hideGrabberButton()),this.dispatchEvent(new CustomEvent("toggle",{detail:{expanded:this.expanded}}))}preventScrollOnSpace(t){t.key===Ct.SPACE&&t.preventDefault()}render(){var t;return this.variant===ar.HIDDEN?S``:S`
|
|
5009
5009
|
<div part="side-navigation-container" id="side-nav-container">
|
|
5010
5010
|
<div part="scrollable-section" tabindex="-1" @keydown=${this.preventScrollOnSpace}>
|
|
5011
5011
|
<slot name="scrollable-section">
|
|
@@ -5049,7 +5049,7 @@
|
|
|
5049
5049
|
aria-controls="side-nav-container"
|
|
5050
5050
|
></mdc-button>
|
|
5051
5051
|
</mdc-divider>`:K}
|
|
5052
|
-
`}};Vi.styles=[...X.styles,...zb],h([u({type:String,reflect:!0})],Vi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],Vi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],Vi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Vi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Vi.prototype,"hideFixedSectionDivider",2);var fs=Vi;var
|
|
5052
|
+
`}};Vi.styles=[...X.styles,...zb],h([u({type:String,reflect:!0})],Vi.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"footer-text"})],Vi.prototype,"footerText",2),h([u({type:Boolean,reflect:!0,attribute:"expanded"})],Vi.prototype,"expanded",2),h([u({type:String,reflect:!0,attribute:"grabber-btn-aria-label"})],Vi.prototype,"grabberBtnAriaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"hide-fixed-section-divider"})],Vi.prototype,"hideFixedSectionDivider",2);var fs=Vi;var Q0=B`
|
|
5053
5053
|
:host {
|
|
5054
5054
|
--mdc-menusection-divider-margin-block: 0.25rem;
|
|
5055
5055
|
--mdc-menusection-gap: 0rem;
|
|
@@ -5070,7 +5070,7 @@
|
|
|
5070
5070
|
:host::part(align-header) {
|
|
5071
5071
|
--mdc-listheader-padding: var(--mdc-menusection-header-padding);
|
|
5072
5072
|
}
|
|
5073
|
-
`,Bb=[
|
|
5073
|
+
`,Bb=[Q0];var ci=class extends X{constructor(){super(...arguments);this.ariaLabel=null;this.headerText=null;this.showDivider=!1;this.dividerVariant=Ab.DIVIDER_VARIANT;this.hideHeaderText=!1;this.sideNavigationContext=xe.consume({host:this,context:fs.Context})}connectedCallback(){super.connectedCallback(),this.setAttribute("role",tt.GROUP)}update(t){var l;super.update(t),(t.has("ariaLabel")||t.has("headerText"))&&(!this.ariaLabel||this.ariaLabel===t.get("headerText"))&&(this.ariaLabel=this.headerText||"");let e=(l=this.sideNavigationContext)==null?void 0:l.value;if(!e)return;let{expanded:o}=e;this.hideHeaderText=!o}renderHeader(){var t,e;return this.headerText?S` <mdc-listheader
|
|
5074
5074
|
part="header ${(e=(t=this.sideNavigationContext)==null?void 0:t.value)!=null&&e.expanded?"align-header":""}"
|
|
5075
5075
|
header-text="${this.headerText}"
|
|
5076
5076
|
prefix-icon="${J(this.prefixIcon)}"
|
|
@@ -5079,7 +5079,7 @@
|
|
|
5079
5079
|
${this.hideHeaderText?null:this.renderHeader()}
|
|
5080
5080
|
<slot part="container"></slot>
|
|
5081
5081
|
${this.showDivider?S`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
|
5082
|
-
`}};ci.styles=[...X.styles,...Bb],h([u({type:String,reflect:!0,attribute:"aria-label"})],ci.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],ci.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],ci.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],ci.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],ci.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],ci.prototype,"hideHeaderText",2);var Pp=ci;Pp.register($i);var
|
|
5082
|
+
`}};ci.styles=[...X.styles,...Bb],h([u({type:String,reflect:!0,attribute:"aria-label"})],ci.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],ci.prototype,"headerText",2),h([u({type:String,attribute:"prefix-icon"})],ci.prototype,"prefixIcon",2),h([u({type:Boolean,reflect:!0,attribute:"show-divider"})],ci.prototype,"showDivider",2),h([u({type:String,reflect:!0,attribute:"divider-variant"})],ci.prototype,"dividerVariant",2),h([u({type:Boolean,reflect:!0,attribute:"hide-header-text"})],ci.prototype,"hideHeaderText",2);var Pp=ci;Pp.register($i);var J0=Pp;var tS=[bt,B`
|
|
5083
5083
|
:host {
|
|
5084
5084
|
--mdc-navmenuitem-in-sidenav-expanded-width: var(--mdc-sidenavigation-expanded-width, 100%);
|
|
5085
5085
|
--mdc-navmenuitem-in-sidenav-expanded-margin-left: var(--mdc-sidenavigation-expanded-left-padding, 1rem);
|
|
@@ -5270,7 +5270,7 @@
|
|
|
5270
5270
|
background-color: ButtonText;
|
|
5271
5271
|
}
|
|
5272
5272
|
}
|
|
5273
|
-
`,...yt()],Ub=
|
|
5273
|
+
`,...yt()],Ub=tS;var se=class extends Mr{constructor(){super();this.cannotActivate=Op.CANNOT_ACTIVATE;this.maxCounter=Op.MAX_COUNTER;this.ariaLabel=null;this.tooltipPlacement="right";this.tooltipAppearance="when-collapsed";this.hasActiveChild=!1;this.sideNavigationContext=xe.consume({host:this,context:fs.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())}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}firstUpdated(t){super.firstUpdated(t),this.active&&!this.disableAriaCurrent&&!this.cannotActivate&&this.setAttribute("aria-current","page")}updated(t){var o;super.updated(t),(t.has("tooltipText")||t.has("showLabel")||t.has("hasActiveChild"))&&this.renderDynamicTooltip(),t.has("showLabel")&&!this.showLabel&&!this.getAttribute("aria-label")&&this.label&&this.setAttribute("aria-label",this.label);let e=(o=this.sideNavigationContext)==null?void 0:o.value;e&&(this.showLabel=this.isNested()?!0:e.expanded)}renderDynamicTooltip(){var e;if(this.removeTooltip(),this.hasActiveChild&&!this.isActiveParentTooltipText||!this.hasActiveChild&&(!this.tooltipText||this.tooltipAppearance==="when-collapsed"&&this.showLabel))return;this.id||(this.id=`mdc-navmenuitem-${Pe()}`);let t=document.createElement(Dn);t.id=`mdc-navmenuitem-tooltip-${Pe()}`,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(`${Dn}[triggerid="${this.id}"]`);t&&t.remove()}isNested(){let t=this.parentElement;for(;t;){if(t.tagName.toLowerCase()===ge)return!0;t=t.parentElement}return!1}handleClickEvent(){this.disabled||this.cannotActivate||this.emitNavMenuItemActiveChange(this.active)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Ho(this.iconName)}-filled`}renderBadge(t){return Object.values(Fb).includes(this.badgeType)?S`
|
|
5274
5274
|
<mdc-badge
|
|
5275
5275
|
part="${t?"":"badge"}"
|
|
5276
5276
|
type="${J(this.badgeType)}"
|
|
@@ -5301,7 +5301,7 @@
|
|
|
5301
5301
|
${this.renderBadge(this.showLabel)}
|
|
5302
5302
|
`:K}
|
|
5303
5303
|
${t!=null&&t.hasSiblingWithTriggerId(this)?S` <mdc-icon name=${$b.RIGHT_ARROW} length-unit="rem" part="trailing-arrow"> </mdc-icon>`:K}
|
|
5304
|
-
`}};se.styles=[...Mr.styles,...Ub],h([u({type:Boolean,reflect:!0})],se.prototype,"active",2),h([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],se.prototype,"cannotActivate",2),h([u({type:String,attribute:"icon-name",reflect:!0})],se.prototype,"iconName",2),h([u({type:String,reflect:!0,attribute:"badge-type"})],se.prototype,"badgeType",2),h([u({type:Number,reflect:!0})],se.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],se.prototype,"maxCounter",2),h([u({type:String,reflect:!0,attribute:"nav-id"})],se.prototype,"navId",2),h([u({type:Boolean,reflect:!0,attribute:"show-label"})],se.prototype,"showLabel",2),h([u({type:String,attribute:"aria-label"})],se.prototype,"ariaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],se.prototype,"disableAriaCurrent",2),h([u({type:String,reflect:!0,attribute:"tooltip-text"})],se.prototype,"tooltipText",2),h([u({type:String,reflect:!0,attribute:"tooltip-placement"})],se.prototype,"tooltipPlacement",2),h([u({type:String,reflect:!0,attribute:"tooltip-type"})],se.prototype,"tooltipType",2),h([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],se.prototype,"tooltipAppearance",2),h([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],se.prototype,"tooltipBoundaryPadding",2),h([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],se.prototype,"isActiveParentTooltipText",2),h([nt()],se.prototype,"hasActiveChild",2);var Fp=se;Fp.register(xo);var
|
|
5304
|
+
`}};se.styles=[...Mr.styles,...Ub],h([u({type:Boolean,reflect:!0})],se.prototype,"active",2),h([u({type:Boolean,reflect:!0,attribute:"cannot-activate"})],se.prototype,"cannotActivate",2),h([u({type:String,attribute:"icon-name",reflect:!0})],se.prototype,"iconName",2),h([u({type:String,reflect:!0,attribute:"badge-type"})],se.prototype,"badgeType",2),h([u({type:Number,reflect:!0})],se.prototype,"counter",2),h([u({type:Number,attribute:"max-counter",reflect:!0})],se.prototype,"maxCounter",2),h([u({type:String,reflect:!0,attribute:"nav-id"})],se.prototype,"navId",2),h([u({type:Boolean,reflect:!0,attribute:"show-label"})],se.prototype,"showLabel",2),h([u({type:String,attribute:"aria-label"})],se.prototype,"ariaLabel",2),h([u({type:Boolean,reflect:!0,attribute:"disable-aria-current"})],se.prototype,"disableAriaCurrent",2),h([u({type:String,reflect:!0,attribute:"tooltip-text"})],se.prototype,"tooltipText",2),h([u({type:String,reflect:!0,attribute:"tooltip-placement"})],se.prototype,"tooltipPlacement",2),h([u({type:String,reflect:!0,attribute:"tooltip-type"})],se.prototype,"tooltipType",2),h([u({type:String,reflect:!0,attribute:"tooltip-appearance"})],se.prototype,"tooltipAppearance",2),h([u({type:Number,reflect:!0,attribute:"tooltip-boundary-padding"})],se.prototype,"tooltipBoundaryPadding",2),h([u({type:String,reflect:!0,attribute:"is-active-parent-tooltip-text"})],se.prototype,"isActiveParentTooltipText",2),h([nt()],se.prototype,"hasActiveChild",2);var Fp=se;Fp.register(xo);var eS=Fp;var Hb="check-bold",Or=z.constructTagName("option");var Jd=z.constructTagName("optgroup"),$p="header-id";var rS=B`
|
|
5305
5305
|
:host {
|
|
5306
5306
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
|
5307
5307
|
}
|
|
@@ -5317,7 +5317,7 @@
|
|
|
5317
5317
|
:host([data-hidden]) {
|
|
5318
5318
|
display: none;
|
|
5319
5319
|
}
|
|
5320
|
-
`,Gb=[
|
|
5320
|
+
`,Gb=[rS];var pa=class extends re(Jt(X)){setDisabledForAllOptions(){this.options.forEach(i=>{this.disabled?i.setAttribute("disabled",""):i.removeAttribute("disabled")})}updated(i){super.updated(i),i.has("disabled")&&this.setDisabledForAllOptions()}render(){var t;let i=this.label?S`
|
|
5321
5321
|
<mdc-text
|
|
5322
5322
|
id="${$p}"
|
|
5323
5323
|
part="header-text"
|
|
@@ -5334,7 +5334,7 @@
|
|
|
5334
5334
|
${i}
|
|
5335
5335
|
<slot role="${tt.PRESENTATION}"></slot>
|
|
5336
5336
|
</div>
|
|
5337
|
-
`}};pa.styles=[...X.styles,...Gb],h([u({type:String,reflect:!0})],pa.prototype,"label",2),h([Kt({selector:Or})],pa.prototype,"options",2);var Vp=pa;Vp.register(Jd);var
|
|
5337
|
+
`}};pa.styles=[...X.styles,...Gb],h([u({type:String,reflect:!0})],pa.prototype,"label",2),h([Kt({selector:Or})],pa.prototype,"options",2);var Vp=pa;Vp.register(Jd);var iS=Vp;var oS=[Qr,B`
|
|
5338
5338
|
:host {
|
|
5339
5339
|
--mdc-listitem-column-gap: 0.75rem;
|
|
5340
5340
|
--mdc-option-icon-width: 1rem;
|
|
@@ -5363,7 +5363,7 @@
|
|
|
5363
5363
|
:host([data-hidden]) {
|
|
5364
5364
|
display: none;
|
|
5365
5365
|
}
|
|
5366
|
-
`],Kb=
|
|
5366
|
+
`],Kb=oS;var vs=class extends ce(Fi){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role=tt.OPTION,this.variant=Cn.INSET_RECTANGLE,this.setAttribute("aria-selected",`${this.selected}`),this.setAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.sideHeaderText=void 0,this.sublineText=void 0}update(t){super.update(t),t.has("selected")&&(this.setAttribute("aria-selected",`${this.selected}`),this.dispatchModifiedEvent(this.selected?"selected":"unselected"))}renderIcon(t,e){return S` <mdc-icon length-unit="rem" slot="${t}" name="${e}"></mdc-icon> `}render(){let t=this.selected?this.renderIcon("trailing-controls",Hb):K;return S`
|
|
5367
5367
|
<div part="leading">
|
|
5368
5368
|
<slot name="leading-controls">
|
|
5369
5369
|
${this.prefixIcon?this.renderIcon("leading-controls",this.prefixIcon):K}
|
|
@@ -5374,7 +5374,11 @@
|
|
|
5374
5374
|
</div>
|
|
5375
5375
|
</div>
|
|
5376
5376
|
<div part="trailing">${t}</div>
|
|
5377
|
-
`}};vs.styles=[...Fi.styles,...Kb],h([u({type:Boolean,reflect:!0})],vs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],vs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],vs.prototype,"ariaLabel",2);var zp=vs;zp.register(Or);var
|
|
5377
|
+
`}};vs.styles=[...Fi.styles,...Kb],h([u({type:Boolean,reflect:!0})],vs.prototype,"selected",2),h([u({type:String,reflect:!0,attribute:"prefix-icon"})],vs.prototype,"prefixIcon",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],vs.prototype,"ariaLabel",2);var zp=vs;zp.register(Or);var sS=zp;var Bp={HIDE_BOLD:"hide-bold",SHOW_BOLD:"show-bold"},Wb=z.constructTagName("password");var aS=[B`
|
|
5378
|
+
input::-ms-reveal {
|
|
5379
|
+
display: none;
|
|
5380
|
+
}
|
|
5381
|
+
`],Yb=aS;var gs=class extends Gr{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?S`
|
|
5378
5382
|
<mdc-button
|
|
5379
5383
|
part="trailing-button"
|
|
5380
5384
|
class="own-focus-ring ${e?"":"hidden"}"
|
|
@@ -5385,7 +5389,7 @@
|
|
|
5385
5389
|
aria-label=${this.showPassword?this.hideButtonAriaLabel:this.showButtonAriaLabel}
|
|
5386
5390
|
prefix-icon=${this.showPassword?Bp.HIDE_BOLD:Bp.SHOW_BOLD}
|
|
5387
5391
|
></mdc-button>
|
|
5388
|
-
`:K}renderInputElement(t,e){let o=this.showPassword?fo.TEXT:fo.PASSWORD;return super.renderInputElement(o,e)}};gs.styles=[...Gr.styles],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],gs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],gs.prototype,"hideButtonAriaLabel",2),h([nt()],gs.prototype,"showPassword",2);var Up=gs;Up.register(Wb);var
|
|
5392
|
+
`:K}renderInputElement(t,e){let o=this.showPassword?fo.TEXT:fo.PASSWORD;return super.renderInputElement(o,e)}};gs.styles=[...Gr.styles,...Yb],h([u({type:String,attribute:"show-button-aria-label",reflect:!0})],gs.prototype,"showButtonAriaLabel",2),h([u({type:String,attribute:"hide-button-aria-label",reflect:!0})],gs.prototype,"hideButtonAriaLabel",2),h([nt()],gs.prototype,"showPassword",2);var Up=gs;Up.register(Wb);var nS=Up;var tc=z.constructTagName("progressbar"),ec={DEFAULT:"default",INLINE:"inline"},jb={VARIANT:ec.DEFAULT,VALIDATION:Wt.DEFAULT};var lS=[bt,B`
|
|
5389
5393
|
:host {
|
|
5390
5394
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
5391
5395
|
--mdc-progressbar-progress-background-color: var(--mds-color-theme-control-active-normal);
|
|
@@ -5458,7 +5462,7 @@
|
|
|
5458
5462
|
border: var(--mdc-progressbar-border);
|
|
5459
5463
|
}
|
|
5460
5464
|
}
|
|
5461
|
-
`],
|
|
5465
|
+
`],qb=lS;var bs=class extends re(sr){constructor(){super(...arguments);this.variant=jb.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var l;let t=this.getValidationVariant(),e=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return S`
|
|
5462
5466
|
<div
|
|
5463
5467
|
part="progress-container ${e?"gap":""}"
|
|
5464
5468
|
role="${tt.PROGRESSBAR}"
|
|
@@ -5478,7 +5482,7 @@
|
|
|
5478
5482
|
</div>
|
|
5479
5483
|
${this.renderProgressbar()} ${this.renderHelperText()}
|
|
5480
5484
|
`}
|
|
5481
|
-
`}};bs.styles=[...sr.styles,...
|
|
5485
|
+
`}};bs.styles=[...sr.styles,...qb],h([u({type:String,reflect:!0})],bs.prototype,"variant",2),h([u({type:String,reflect:!0})],bs.prototype,"value",2),h([u({type:Boolean,attribute:"error"})],bs.prototype,"error",2);var zn=bs;zn.register(tc);var dS=zn;var Xb=z.constructTagName("progressspinner"),be={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},Hp={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Gp=n=>{if(n===0)return 0;let i=n/100*be.CIRCUMFERENCE-be.GAP_SIZE;return Math.max(i,.1*n)},Zb=n=>{let i=be.CIRCUMFERENCE-Gp(n)-2*be.GAP_SIZE;return n===0?be.CIRCUMFERENCE:i<0?0:i},Qb=n=>n===0?0:be.GAP_SIZE*.5,Jb=(n,i)=>{let t=i+be.GAP_SIZE*1.5;return n===0?0:t};var cS=B`
|
|
5482
5486
|
:host {
|
|
5483
5487
|
--mdc-spinner-size: 3rem;
|
|
5484
5488
|
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
|
@@ -5525,7 +5529,7 @@
|
|
|
5525
5529
|
color: var(--mdc-progress-error-color);
|
|
5526
5530
|
margin: calc(1 / 6 * var(--mdc-spinner-size));
|
|
5527
5531
|
}
|
|
5528
|
-
`,
|
|
5532
|
+
`,ty=[cS];var rc=class extends zn{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.required=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var l;let i=Gp(this.clampedValue),t=Zb(this.clampedValue),e=Qb(this.clampedValue),o=Jb(this.clampedValue,i);return S`
|
|
5529
5533
|
<div
|
|
5530
5534
|
part="spinner-container ${this.variant}"
|
|
5531
5535
|
role="${tt.PROGRESSBAR}"
|
|
@@ -5571,7 +5575,7 @@
|
|
|
5571
5575
|
size="${be.SUCCESS_ICON_SIZE}"
|
|
5572
5576
|
length-unit="${be.ICON_LENGTH_UNIT}"
|
|
5573
5577
|
></mdc-icon>
|
|
5574
|
-
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};rc.styles=[...X.styles,...
|
|
5578
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():S` ${this.renderProgressSpinner()}`}};rc.styles=[...X.styles,...ty];var Kp=rc;Kp.register(Xb);var hS=Kp;var pS=[bt,B`
|
|
5575
5579
|
:host {
|
|
5576
5580
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
5577
5581
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -5643,7 +5647,7 @@
|
|
|
5643
5647
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
|
5644
5648
|
}
|
|
5645
5649
|
}
|
|
5646
|
-
`,...yt(!0)],
|
|
5650
|
+
`,...yt(!0)],ey=pS;var Bn=class extends Lt(wt(De(ce(Zt)))){constructor(){super();this.checked=!1;this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.role=tt.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(){return Array.from(document.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(o=>o.setComponentValidity(e))}).catch(o=>{var l;return(l=this.onerror)==null?void 0:l.call(this,o)})}setActualFormValue(){let t=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(t,!0),this.internals.setFormValue(this.value||"on");else{let e=t.some(c=>c.required),o=t.some(c=>c.checked),l=e&&!o;this.setGroupValidity(t,!l),this.internals.setFormValue(null)}}handleChange(t=!1){if(this.checked||this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(o=>{o.checked=!1}),this.checked=!0,t&&super.click(),this.emitCheckedChangeEvent()}click(){this.handleChange(!0)}updateRadio(t,e){let o=t[e];o.focus(),o.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===q.SPACE&&t.preventDefault();let l=this.getAllRadiosWithinSameGroup().filter(y=>!y.disabled),c=l.indexOf(this);if(this.getKeyboardNavMode()===te.SPATIAL){e===q.ENTER&&(this.updateRadio(l,c),this.keyDownEventHandled()),this.updateTabIndex();return}if(e===q.DOWN||e===q.RIGHT){let y=(c+1)%l.length;this.updateRadio(l,y)}else if(e===q.UP||e===q.LEFT){let y=(c-1+l.length)%l.length;this.updateRadio(l,y)}else e===q.SPACE&&this.updateRadio(l,c);this.updateTabIndex(),e===q.ENTER&&((f=this.form)==null||f.requestSubmit())}updateTabIndex(){let t=this.getKeyboardNavMode()===te.SPATIAL,e=this.getAllRadiosWithinSameGroup(),o=e.find(c=>c.checked),l=e.find(c=>!c.disabled);e.forEach(c=>{c.tabIndex=-1,(t||c===o||!o&&c===l)&&(c.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({})}render(){return S`
|
|
5647
5651
|
<slot name="indicator">
|
|
5648
5652
|
<mdc-staticradio
|
|
5649
5653
|
part="radio-indicator"
|
|
@@ -5659,7 +5663,7 @@
|
|
|
5659
5663
|
<div part="label-text">
|
|
5660
5664
|
<slot name="label">${this.renderLabelElement()}</slot>
|
|
5661
5665
|
</div>
|
|
5662
|
-
`}};Bn.styles=[...Zt.styles,...
|
|
5666
|
+
`}};Bn.styles=[...Zt.styles,...ey],h([u({type:Boolean,reflect:!0})],Bn.prototype,"checked",2);var Wp=Bn;var ic=z.constructTagName("radio");Wp.register(ic);var mS=Wp;var uS=new RegExp(`^(${ic}|${hd})$`,"i"),Un=class extends zd{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var t;Array.from(((t=this.shadowRoot)==null?void 0:t.querySelectorAll("slot"))||[]).flatMap(e=>e.assignedElements({flatten:!0})).filter(e=>uS.test(e.tagName)).forEach(e=>{e.hasAttribute("name")||e.setAttribute("name",this.name),e.toggleAttribute("required",this.required)})}};Un.styles=[...zd.styles],h([u({type:String})],Un.prototype,"name",2);var Yp=Un;var ry=z.constructTagName("radiogroup");Yp.register(ry);var fS=Yp;var vS=B`
|
|
5663
5667
|
:host::part(filters-container) {
|
|
5664
5668
|
display: flex;
|
|
5665
5669
|
gap: 0.25rem;
|
|
@@ -5689,7 +5693,7 @@
|
|
|
5689
5693
|
position: relative;
|
|
5690
5694
|
scrollbar-width: none;
|
|
5691
5695
|
}
|
|
5692
|
-
`,
|
|
5696
|
+
`,iy=[vS];var oy=z.constructTagName("searchfield"),Hn={TYPE:fo.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:Ud};var ys=class extends Lt(Gr){constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1;this.handleFilterContainerClick=()=>{this.inputElement.focus()};this.handleFilterContainerKeyDown=t=>{this.getActionForKeyEvent(t)===q.ENTER&&(this.handleFilterContainerClick(),this.keyDownEventHandled())};this.handleFilterContainerKeyUp=t=>{this.getActionForKeyEvent(t)===q.SPACE&&this.handleFilterContainerClick()}}handleKeyDown(t){super.handleKeyDown(t),this.getActionForKeyEvent(t)===q.ESCAPE&&(this.clearInputText(),this.keyDownEventHandled())}connectedCallback(){super.connectedCallback(),this.leadingIcon=Hn.ICON,this.trailingButton=Hn.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.required=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var t;this.hasInputChips=!!((t=this.inputChips)!=null&&t.length),this.inputChips&&this.inputChips.forEach(e=>{e.matches(Hn.INPUT_CHIP_TAG)||e.remove()})}firstUpdated(t){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1},super.firstUpdated(t)}clearInputText(){var t;super.clearInputText(),(t=this.inputChips)==null||t.forEach(e=>{e.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return S`
|
|
5693
5697
|
${this.renderLabelElement()}
|
|
5694
5698
|
<div
|
|
5695
5699
|
class="${Hr({"mdc-focus-ring":this.isInputFocused})}"
|
|
@@ -5709,7 +5713,7 @@
|
|
|
5709
5713
|
</div>
|
|
5710
5714
|
${this.renderTrailingButton(this.hasInputChips)}
|
|
5711
5715
|
</div>
|
|
5712
|
-
`}};ys.styles=[...Gr.styles,...
|
|
5716
|
+
`}};ys.styles=[...Gr.styles,...iy],h([Kt({slot:"filters"})],ys.prototype,"inputChips",2),h([nt()],ys.prototype,"isInputFocused",2),h([nt()],ys.prototype,"hasInputChips",2);var ma=ys;ma.register(oy);var gS=ma;var bS=B`
|
|
5713
5717
|
:host {
|
|
5714
5718
|
--mdc-searchpopover-width: 100%;
|
|
5715
5719
|
--mdc-searchpopover-popover-width: var(--mdc-searchpopover-width);
|
|
@@ -5729,7 +5733,7 @@
|
|
|
5729
5733
|
min-width: auto;
|
|
5730
5734
|
padding: 0.75rem 0.5rem;
|
|
5731
5735
|
}
|
|
5732
|
-
`,
|
|
5736
|
+
`,sy=[bS];var ay=z.constructTagName("searchpopover"),jp={TYPE:fo.TEXT,DISPLAY_POPOVER:!1},qp="searchpopover-container-triggerid",oc="searchpopover-popoverid";var Ao=class extends ma{constructor(){super(...arguments);this.displayPopover=jp.DISPLAY_POPOVER;this.placement=Mt.BOTTOM_START;this.popoverZIndex=void 0}renderInputElement(){var e,o;let t=this.hasInputChips?"":this.placeholder;return S`<input
|
|
5733
5737
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
|
5734
5738
|
part="input-text"
|
|
5735
5739
|
id="${this.inputId}"
|
|
@@ -5797,7 +5801,7 @@
|
|
|
5797
5801
|
>
|
|
5798
5802
|
<slot></slot>
|
|
5799
5803
|
</mdc-popover>
|
|
5800
|
-
`}};Ao.styles=[...ma.styles,...
|
|
5804
|
+
`}};Ao.styles=[...ma.styles,...sy],h([u({type:Boolean,reflect:!0,attribute:"display-popover"})],Ao.prototype,"displayPopover",2),h([u({type:String,reflect:!0})],Ao.prototype,"placement",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],Ao.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"popover-aria-label"})],Ao.prototype,"popoverAriaLabel",2);var Xp=Ao;Xp.register(ay);var yS=Xp;var ny=z.constructTagName("select"),Zp={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},sc="select-base-triggerid",ly="select-listbox",dy={DISABLE_FLIP:!1};var ES=B`
|
|
5801
5805
|
:host {
|
|
5802
5806
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
5803
5807
|
--mdc-select-text-color: var(--mds-color-theme-text-secondary-normal);
|
|
@@ -5907,7 +5911,7 @@
|
|
|
5907
5911
|
:host([soft-disabled])::part(base-text) {
|
|
5908
5912
|
--mdc-select-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
5909
5913
|
}
|
|
5910
|
-
`,
|
|
5914
|
+
`,cy=[ES,...yt(!0)];var nr=class extends vo(wt(di(De(ce(re(Zt)))))){constructor(){super();this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.disableFlip=dy.DISABLE_FLIP;this.displayPopover=!1;this.initialSelectedOption=null;this.debounceTime=500;this.searchString="";this.onStoreUpdate=(t,e,o,l)=>{switch(e){case"added":t.setAttribute("tabindex",o===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&this.resetTabIndexes(o);break;case"removed":{if(o===-1||l.length===0)return;let c=o+1;if(c>=l.length&&(c=o-1),c===-1&&this.displayPopover){this.displayPopover=!1,this.handleNativeInputFocus();return}if(t.tabIndex===0&&this.resetTabIndexes(c),t.hasAttribute("selected")){let f=null;this.placeholder||(f=o===0?l[c]:l[0]),this.setSelectedOption(f)}break}default:break}};this.isValidItem=t=>t.matches(`${Or}:not([disabled])`);this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Nr(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,o){var l;if(super.attributeChangedCallback(t,e,o),t==="value"&&o!==""&&o!==e&&o!==((l=this.selectedOption)==null?void 0:l.value)&&this.navItems.length){let c=this.getFirstSelectedOption(),f=this.getFirstOption(),y=this.navItems.find(F=>F.value===o),A=null;if(y)A=y;else if(this.placeholder)A=null;else if(f)A=f;else if(c)A=c;else return;this.updateComplete.then(()=>{this.setSelectedOption(A)}).catch(F=>{this.onerror&&this.onerror(F)})}}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getFirstOption(){return this.navItems[0]}handleModifiedEvent(t){let e=t.target,o=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{o&&o!==this.selectedOption?this.setSelectedOption(o):this.setSelectedOption(e);break}case"unselected":{o?this.setSelectedOption(o):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 o=this.getFirstOption();this.setSelectedOption(o),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===Or.toUpperCase()&&!e.hasAttribute("disabled")&&!e.hasAttribute("soft-disabled")&&(this.setSelectedOption(e),e.isKeyDownEventHandled&&this.keyDownEventHandled(),this.displayPopover=!1,this.fireEvents())}setSelectedOption(t){var e,o,l;t!==this.selectedOption&&(this.updateSelectedInChildOptions(t),this.resetTabIndexes(this.navItems.indexOf(t)),this.selectedOption=t,this.value=(o=(e=this.selectedOption)==null?void 0:e.value)!=null?o:"",this.internals.setFormValue(this.value),(l=this.inputElement)==null||l.setAttribute("value",this.value),this.setInputValidity())}updateSelectedInChildOptions(t){t==null||t.setAttribute("selected","true"),this.navItems.forEach(e=>{e!==t&&e.removeAttribute("selected")})}fireEvents(){this.dispatchInput(this.selectedOption),this.dispatchChange(this.selectedOption)}setInputValidity(){var t,e;!this.selectedOption&&this.required&&this.validationMessage?(t=this.inputElement)==null||t.setCustomValidity(this.validationMessage):(e=this.inputElement)==null||e.setCustomValidity(""),this.setValidity()}formResetCallback(){var e;let t=this.initialSelectedOption||null;((e=this.selectedOption)==null?void 0:e.value)!==(t==null?void 0:t.value)&&(this.setSelectedOption(t),this.fireEvents())}formStateRestoreCallback(t){var o;let e=this.navItems.find(l=>l.value===t||l.label===t);((o=this.selectedOption)==null?void 0:o.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=Id(()=>{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(o=>{var l;return(l=o.getAttribute("label"))==null?void 0:l.toLowerCase().startsWith(e.toLowerCase())})}handleSelectedOptionBasedOnFilter(t){let e=this.navItems.findIndex(f=>f.tabIndex===0)+1,o=[...this.navItems.slice(e),...this.navItems.slice(0,e)],l=this.filterOptionsBySearchKey(o,t),c=null;if(l.length)[c]=l;else if(t.split("").every(f=>f===t[0])){let f=this.navItems[e],y=this.filterOptionsBySearchKey(o,t[0]),A=y.filter(F=>F===f);c=A.length?A[0]:y[0]}this.navItems.indexOf(c)!==-1&&this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.indexOf(c))}handleKeydownCombobox(t){if(this.disabled||this.softDisabled||this.readonly)return;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===te.DEFAULT)switch(e){case q.DOWN:case q.UP:case q.ENTER:this.displayPopover||this.keyDownEventHandled(),this.displayPopover=!0,t.preventDefault(),t.stopPropagation();break;case q.SPACE:t.preventDefault(),t.stopPropagation();break;case q.HOME:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(0),t.preventDefault(),t.stopPropagation();break}case q.END:{this.displayPopover=!0,this.resetTabIndexAndSetFocusAfterUpdate(this.navItems.length-1),t.preventDefault(),t.stopPropagation();break}default:{t.key.length===1&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&(this.displayPopover=!0,this.handleSelectedOptionByKeyInput(t.key),t.preventDefault(),t.stopPropagation());break}}else e===q.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()===te.DEFAULT&&e===q.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()===te.DEFAULT&&t.key.length===1&&this.handleSelectedOptionByKeyInput(t.key)}render(){var t,e,o,l,c,f;return S`
|
|
5911
5915
|
${this.renderLabel()}
|
|
5912
5916
|
<div part="container">
|
|
5913
5917
|
<div
|
|
@@ -5919,7 +5923,7 @@
|
|
|
5919
5923
|
tabindex="${this.disabled?"-1":"0"}"
|
|
5920
5924
|
class="${this.disabled?"":"mdc-focus-ring"}"
|
|
5921
5925
|
role="${tt.COMBOBOX}"
|
|
5922
|
-
aria-controls="${
|
|
5926
|
+
aria-controls="${ly}"
|
|
5923
5927
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
|
5924
5928
|
aria-labelledby="${this.label?Yt.HEADING_ID:""}"
|
|
5925
5929
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
|
@@ -5991,7 +5995,7 @@
|
|
|
5991
5995
|
</mdc-popover>
|
|
5992
5996
|
</div>
|
|
5993
5997
|
${this.renderHelperText()}
|
|
5994
|
-
`}};nr.styles=[...Zt.styles,...
|
|
5998
|
+
`}};nr.styles=[...Zt.styles,...cy],h([u({type:String})],nr.prototype,"placeholder",2),h([u({type:String,reflect:!0})],nr.prototype,"placement",2),h([u({type:String,reflect:!0,attribute:"boundary"})],nr.prototype,"boundary",2),h([u({type:String,reflect:!0,attribute:"strategy"})],nr.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],nr.prototype,"popoverZIndex",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],nr.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],nr.prototype,"backdropAppendTo",2),h([Ut(`[id="${sc}"]`)],nr.prototype,"visualCombobox",2),h([nt()],nr.prototype,"selectedOption",2),h([nt()],nr.prototype,"displayPopover",2);var Qp=nr;Qp.register(ny);var TS=Qp;var Jp=class extends X{connectedCallback(){super.connectedCallback(),this.role=tt.LISTBOX}createRenderRoot(){return this}},tm=Jp;var ac=z.constructTagName("selectlistbox");tm.register(ac);var xS=tm;fs.register(bo);var AS=fs;var hy=z.constructTagName("skeleton"),py={BUTTON:"button",CIRCULAR:"circular",RECTANGULAR:"rectangular",ROUNDED:"rounded"},my={VARIANT:py.RECTANGULAR};var SS=B`
|
|
5995
5999
|
:host {
|
|
5996
6000
|
--mdc-skeleton-background-color: var(--mds-color-theme-background-skeleton-normal);
|
|
5997
6001
|
--mdc-skeleton-height: 100%;
|
|
@@ -6028,7 +6032,7 @@
|
|
|
6028
6032
|
::slotted(*) {
|
|
6029
6033
|
visibility: hidden;
|
|
6030
6034
|
}
|
|
6031
|
-
`,
|
|
6035
|
+
`,uy=SS;var Gn=class extends X{constructor(){super(...arguments);this.variant=my.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 S`<slot @slotchange=${this.checkSlotContent}></slot>`}};Gn.styles=[...X.styles,uy],h([u({type:String,reflect:!0})],Gn.prototype,"variant",2);var em=Gn;em.register(hy);var IS=em;var _S=[bt,B`
|
|
6032
6036
|
:host {
|
|
6033
6037
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
|
6034
6038
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
|
@@ -6092,11 +6096,11 @@
|
|
|
6092
6096
|
stroke-dashoffset: -292;
|
|
6093
6097
|
}
|
|
6094
6098
|
}
|
|
6095
|
-
`],
|
|
6099
|
+
`],fy=_S;var vy=z.constructTagName("spinner"),CS={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},kS={STANDALONE:"standalone",BUTTON:"button"},nc={VARIANT:kS.STANDALONE,SIZE:CS.MIDSIZE,INVERTED:!1};var So=class extends X{constructor(){super(...arguments);this.inverted=nc.INVERTED;this.size=nc.SIZE;this.ariaLabel=null;this.variant=nc.VARIANT}updated(t){super.updated(t),t.has("ariaLabel")&&(this.role=this.ariaLabel?tt.IMG:null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return S`
|
|
6096
6100
|
<svg part="container" viewBox="0 0 100 100">
|
|
6097
6101
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
|
6098
6102
|
</svg>
|
|
6099
|
-
`}};So.styles=[...X.styles,...
|
|
6103
|
+
`}};So.styles=[...X.styles,...fy],h([u({type:Boolean,reflect:!0})],So.prototype,"inverted",2),h([u({type:String,reflect:!0})],So.prototype,"size",2),h([u({type:String,attribute:"aria-label"})],So.prototype,"ariaLabel",2),h([u({type:String,reflect:!0})],So.prototype,"variant",2);var rm=So;rm.register(vy);var wS=rm;vn.register(Mg);var NS=vn;var MS={COMPLETE:"complete",INCOMPLETE:"incomplete"},im={VERTICAL:"vertical",HORIZONTAL:"horizontal"},om={STATUS:MS.INCOMPLETE,ORIENTATION:im.HORIZONTAL},gy=z.constructTagName("stepperconnector");var by=z.constructTagName("stepperitem"),sm={INLINE:"inline",STACKED:"stacked"},zi={COMPLETED:"completed",CURRENT:"current",ERROR_CURRENT:"error-current",ERROR_INCOMPLETE:"error-incomplete",NOT_STARTED:"not-started"},lc={COMPLETED:"check-bold",ERROR:"error-legacy-badge-filled",PENCIL:"edit-bold"},am={VARIANT:sm.INLINE,STATUS:zi.NOT_STARTED};var dc=z.constructTagName("stepper"),Kn={ORIENTATION:im.HORIZONTAL,VARIANT:sm.INLINE};var cc=class{constructor(i,t){this.orientation=i,this.variant=t}};cc.context=dc;var hc=cc;var LS=B`
|
|
6100
6104
|
:host {
|
|
6101
6105
|
gap: 0.5rem;
|
|
6102
6106
|
}
|
|
@@ -6133,7 +6137,7 @@
|
|
|
6133
6137
|
padding-top: 0.9375rem;
|
|
6134
6138
|
margin: 0 -3rem;
|
|
6135
6139
|
}
|
|
6136
|
-
`,
|
|
6140
|
+
`,yy=[bt,LS];var ua=class extends Te{constructor(){super({context:hc.context,initialValue:new hc(Kn.ORIENTATION,Kn.VARIANT)});this.orientation=Kn.ORIENTATION;this.variant=Kn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=tt.LIST}static get Context(){return hc.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 S` <slot></slot> `}};ua.styles=[...X.styles,...yy],h([u({type:String,reflect:!0})],ua.prototype,"orientation",2),h([u({type:String,reflect:!0})],ua.prototype,"variant",2);var Es=ua;Es.register(dc);var OS=Es;var RS=B`
|
|
6137
6141
|
:host {
|
|
6138
6142
|
--mdc-stepperconnector-complete-background: var(--mds-color-theme-outline-theme-normal);
|
|
6139
6143
|
--mdc-stepperconnector-incomplete-background: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -6168,7 +6172,7 @@
|
|
|
6168
6172
|
border-left: 1px solid var(--mdc-stepperconnector-complete-background);
|
|
6169
6173
|
}
|
|
6170
6174
|
}
|
|
6171
|
-
`,
|
|
6175
|
+
`,Ey=[RS];var fa=class extends X{constructor(){super(...arguments);this.status=om.STATUS;this.orientation=om.ORIENTATION;this.stepperContext=xe.consume({host:this,context:Es.Context})}updated(t){var o;super.updated(t);let e=(o=this.stepperContext)==null?void 0:o.value;!e||!e.orientation||(this.orientation=e.orientation)}render(){return S` <div part="connector"></div> `}};fa.styles=[...X.styles,...Ey],h([u({type:String,reflect:!0})],fa.prototype,"status",2),h([u({type:String,reflect:!0})],fa.prototype,"orientation",2);var nm=fa;nm.register(gy);var DS=nm;var PS=B`
|
|
6172
6176
|
:host {
|
|
6173
6177
|
gap: 0.5rem;
|
|
6174
6178
|
border-radius: 0.25rem;
|
|
@@ -6324,7 +6328,7 @@
|
|
|
6324
6328
|
:host([status='error-incomplete']:active) {
|
|
6325
6329
|
--mdc-stepperitem-help-text-color: var(--mds-color-theme-text-error-active);
|
|
6326
6330
|
}
|
|
6327
|
-
`,
|
|
6331
|
+
`,Ty=[bt,PS,...yt()];var Bi=class extends Lt(wt(Zr(X))){constructor(){super();this.variant=am.VARIANT;this.status=am.STATUS;this.label="";this.stepperContext=xe.consume({host:this,context:Es.Context});this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this))}updated(t){var o;super.updated(t);let e=(o=this.stepperContext)==null?void 0:o.value;!e||!e.variant||(this.variant=e.variant)}connectedCallback(){super.connectedCallback(),this.role=tt.LISTITEM}handleKeyDown(t){let e=this.getActionForKeyEvent(t);(e===q.ENTER||e===q.SPACE)&&(this.classList.add("pressed"),e===q.ENTER&&(this.triggerClickEvent(),this.keyDownEventHandled()),t.preventDefault())}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t)}handleKeyUp(t){let e=this.getActionForKeyEvent(t);(e===q.ENTER||e===q.SPACE)&&(this.classList.remove("pressed"),e===q.SPACE&&this.triggerClickEvent())}renderStatusIcon(){return this.status===zi.COMPLETED?S`<mdc-icon part="status-icon" name=${lc.COMPLETED} length-unit="rem" size="1"></mdc-icon>`:this.status===zi.ERROR_CURRENT||this.status===zi.CURRENT?S`<mdc-icon part="status-icon" name=${lc.PENCIL} length-unit="rem" size="1"></mdc-icon>`:this.stepNumber&&(this.status===zi.NOT_STARTED||this.status===zi.ERROR_INCOMPLETE)?S`<mdc-text part="step-number" tagname=${mt.SPAN} type=${ot.BODY_MIDSIZE_REGULAR}
|
|
6328
6332
|
>${this.stepNumber}</mdc-text
|
|
6329
6333
|
>`:K}renderHelpText(){if(!this.helpText)return K;let t=S`<mdc-text
|
|
6330
6334
|
part="help-text"
|
|
@@ -6340,7 +6344,7 @@
|
|
|
6340
6344
|
>${this.label}</mdc-text
|
|
6341
6345
|
>`:K}
|
|
6342
6346
|
${this.renderHelpText()}
|
|
6343
|
-
</div>`}};Bi.styles=[...X.styles,...
|
|
6347
|
+
</div>`}};Bi.styles=[...X.styles,...Ty],h([u({type:String,reflect:!0})],Bi.prototype,"variant",2),h([u({type:String,reflect:!0})],Bi.prototype,"status",2),h([u({type:String,reflect:!0})],Bi.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"help-text"})],Bi.prototype,"helpText",2),h([u({type:Number,reflect:!0,attribute:"step-number"})],Bi.prototype,"stepNumber",2);var lm=Bi;lm.register(by);var FS=lm;var va=z.constructTagName("tab"),dm={GLASS:"glass",LINE:"line",PILL:"pill"},pc={VARIANT:dm.PILL,ACTIVE:!1};var $S=[bt,B`
|
|
6344
6348
|
:host {
|
|
6345
6349
|
--mdc-tab-content-gap: 0.5rem;
|
|
6346
6350
|
--mdc-tab-height: 2rem;
|
|
@@ -6570,7 +6574,7 @@
|
|
|
6570
6574
|
--mdc-tab-background-color: var(--mds-color-theme-button-secondary-active-normal);
|
|
6571
6575
|
--mdc-tab-color: var(--mds-color-theme-text-primary-disabled);
|
|
6572
6576
|
}
|
|
6573
|
-
`,...yt()],
|
|
6577
|
+
`,...yt()],xy=$S;var Io=class extends le(Wd(ue)){constructor(){super(...arguments);this.active=pc.ACTIVE;this.variant=pc.VARIANT;this.handleTabActiveChange=t=>{let e=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:t},bubbles:!0});this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.role=tt.TAB,this.size=void 0,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(dm).includes(t)?t:pc.VARIANT)}getFilledIconName(){return!this.iconName||this.iconName.endsWith("-filled")?void 0:`${Ho(this.iconName)}-filled`}executeAction(){this.handleTabActiveChange(this.active)}update(t){super.update(t),t.has("variant")&&this.setVariant(this.variant)}render(){return S`
|
|
6574
6578
|
<div part="container">
|
|
6575
6579
|
<div part="leading">
|
|
6576
6580
|
<slot name="prefix">
|
|
@@ -6602,7 +6606,7 @@
|
|
|
6602
6606
|
<slot name="postfix"></slot>
|
|
6603
6607
|
</div>
|
|
6604
6608
|
<div part="indicator"></div>
|
|
6605
|
-
`}};Io.styles=[...ue.styles,...
|
|
6609
|
+
`}};Io.styles=[...ue.styles,...xy],h([u({type:Boolean,reflect:!0})],Io.prototype,"active",2),h([u({type:String,reflect:!0})],Io.prototype,"text",2),h([u({type:String,reflect:!0})],Io.prototype,"variant",2),h([u({type:String,reflect:!0,attribute:"tab-id"})],Io.prototype,"tabId",2);var Ui=Io;Ui.register(va);var mc=Ui;var cm=n=>n.at(0),Ay=n=>n.at(n.length-1),Sy=(n,i)=>n.find(t=>t.tabId===i),hm=n=>n.find(i=>i.active);var uc=n=>{class i extends n{constructor(...e){super(...e),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.navItems||!this.activeTabId)return;let o=Sy(this.navItems,this.activeTabId);if(!(o instanceof mc))return;this.setActiveTab(o),this.fireTabChangeEvent(o)}}setActiveTab(e){var o;(o=this.navItems)==null||o.forEach(l=>{l===e?l.setAttribute("active",""):l.removeAttribute("active")})}fireTabChangeEvent(e){let o=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(o)}async handleNestedTabActiveChange(e){e.stopPropagation();let o=e.target;o instanceof mc&&(this.activeTabId=o.tabId)}}return h([u({type:String,attribute:"active-tab-id",reflect:!0})],i.prototype,"activeTabId",2),i};var VS=[Qr,B`
|
|
6606
6610
|
:host {
|
|
6607
6611
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
|
6608
6612
|
--mdc-tablist-gap: 0.5rem;
|
|
@@ -6632,7 +6636,7 @@
|
|
|
6632
6636
|
:host mdc-button[prefix-icon='arrow-right-regular'] {
|
|
6633
6637
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
|
6634
6638
|
}
|
|
6635
|
-
`],
|
|
6639
|
+
`],Iy=[...VS];var _y=z.constructTagName("tablist"),ga={FORWARD:"forward",BACKWARD:"backward"};var Hi=class extends vo(di(Lt(wt(uc(X))))){constructor(){super();this.orientation="horizontal";this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.itemsStore=new Nr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onElementStoreUpdate.bind(this)})}get navItems(){return this.itemsStore.items}isRtl(){var t;return((t=document.querySelector("html"))==null?void 0:t.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"}isValidItem(t){return t.matches(`${va}:not([disabled])`)}onElementStoreUpdate(t,e,o){if(e==="added")t.tabIndex=-1,this.navItems.length===0&&(t.tabIndex=0);else if(e==="removed"&&t.tabIndex===0){let l=o+1;l>=this.navItems.length&&(l=o-1);let c=this.navItems.at(l);c instanceof Ui&&c.focus(),this.resetTabIndexes(l,!1)}}resetTabIndexAndSetFocus(t,e){var c;let o=super.resetTabIndexAndSetFocus(t,e,!1,!1),l=(c=this.navItems)==null?void 0:c.at(t);return l instanceof Ui&&l.focus(),this.handleArrowButtonVisibility(),o}async firstUpdated(){var o,l;if(!this.navItems)return;if(Array.isArray(this.navItems)&&this.navItems.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let t=this.navItems.map(c=>c.tabId);new Set(t).size!==this.navItems.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=cm(this.navItems))==null?void 0:o.tabId),(l=this.tabsContainer)==null||l.addEventListener("focusin",this.handleFocus.bind(this))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.tabsContainer)==null||t.removeEventListener("focusin",this.handleFocus)}async handleFocus(t){if(t.relatedTarget instanceof Ui||!(t.target instanceof Ui))return;let e=hm(this.navItems||[]);if(!(e instanceof Ui))return;let o=this.navItems.findIndex(l=>l===e);this.resetTabIndexAndSetFocus(o,void 0)}shouldShowArrowButton(t){return t===ga.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton}switchFocus(){var t,e;!this.showBackwardArrowButton&&!this.showForwardArrowButton?(t=hm(this.navItems||[]))==null||t.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((e=this.notFocusedArrowButton)==null||e.focus())}handleArrowButtonVisibility(){var W,Q,Z;if(!this.navItems||!this.tabsContainer)return;let t=!1;((W=this.shadowRoot)==null?void 0:W.activeElement)instanceof Go&&(t=!0);let e=cm(this.navItems),o=Ay(this.navItems);if(!e||!o)return;let l=e.getBoundingClientRect().left,c=(Q=this.tabsContainer)==null?void 0:Q.getBoundingClientRect().left,f=o.getBoundingClientRect().right,y=(Z=this.tabsContainer)==null?void 0:Z.getBoundingClientRect().right,A=e.getBoundingClientRect().right,F=o.getBoundingClientRect().left;if(!this.isRtl()){l<=c?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,f>y?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus();return}A>y?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,F<c?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,t&&this.switchFocus()}async scrollTabs(t){var l;let e=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(l=this.tabsContainer)==null||l.scrollBy({left:this.tabsContainer.clientWidth*(t===ga.FORWARD?e:o),behavior:"instant"}),this.handleArrowButtonVisibility()}render(){let t=this.isRtl()?"left":"right",e=this.isRtl()?"right":"left",o=l=>S` ${this.shouldShowArrowButton(l)?S`<mdc-button
|
|
6636
6640
|
variant="tertiary"
|
|
6637
6641
|
prefix-icon="arrow-${l===ga.FORWARD?t:e}-regular"
|
|
6638
6642
|
aria-label="Scroll tabs ${l===ga.FORWARD?t:e}"
|
|
@@ -6641,7 +6645,7 @@
|
|
|
6641
6645
|
<div part="container" role="${tt.TABLIST}" tabindex="-1" aria-label="${J(this.dataAriaLabel)}">
|
|
6642
6646
|
<slot></slot>
|
|
6643
6647
|
</div>
|
|
6644
|
-
${o(ga.FORWARD)}`}};Hi.styles=[...X.styles,...
|
|
6648
|
+
${o(ga.FORWARD)}`}};Hi.styles=[...X.styles,...Iy],h([u({type:String,attribute:"data-aria-label"})],Hi.prototype,"dataAriaLabel",2),h([Ut('[part="container"]')],Hi.prototype,"tabsContainer",2),h([Ut("mdc-button:not(:focus-visible)")],Hi.prototype,"notFocusedArrowButton",2),h([nt()],Hi.prototype,"showForwardArrowButton",2),h([nt()],Hi.prototype,"showBackwardArrowButton",2);var pm=Hi;pm.register(_y);var zS=pm;var Cy=z.constructTagName("textarea"),mm={HARD:"hard",SOFT:"soft"},ky={OFF:"off",ON:"on"},Wn={CHARACTER_COUNTER_TYPE:ot.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:mm.SOFT};var BS=[B`
|
|
6645
6649
|
:host {
|
|
6646
6650
|
--mdc-textarea-text-color: var(--mds-color-theme-text-primary-normal);
|
|
6647
6651
|
--mdc-textarea-border-color: var(--mds-color-theme-outline-input-normal);
|
|
@@ -6766,7 +6770,7 @@
|
|
|
6766
6770
|
:host([disabled])::part(resize-button) {
|
|
6767
6771
|
cursor: default;
|
|
6768
6772
|
}
|
|
6769
|
-
`,...yt(!0)],
|
|
6773
|
+
`,...yt(!0)],wy=BS;var ye=class extends Lt(wt(De(ce(re(sr))))){constructor(){super(...arguments);this.rows=Wn.ROWS;this.wrap=mm.SOFT;this.autocapitalize=Bd.OFF;this.autocomplete=ky.OFF;this.resizable=!1;this.characterLimitExceedingFired=!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||Wn.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,o=parseFloat(window.getComputedStyle(this.textarea).lineHeight),l=Math.round(e/o);this.rows=Math.max(1,this.resizeStartRows+l)};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===Wt.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(t){this.value=t}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(t=>{this.onerror&&this.onerror(t)})}updated(t){super.updated(t),t.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange()),t.has("helpText")&&this.announceMaxLengthWarning()}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value),this.announceMaxLengthWarning()}announceMaxLengthWarning(){this.ariaLiveAnnouncer="",!(!this.maxCharacterLimit||this.value.length===0)&&(this.helpText&&this.value.length>this.maxCharacterLimit?this.updateComplete.then(()=>{this.ariaLiveAnnouncer=this.helpText}).catch(()=>{}):this.characterLimitAnnouncement&&this.value.length<=this.maxCharacterLimit&&(this.ariaLiveAnnouncer=this.characterLimitAnnouncement.replace("%{number-of-characters}",this.value.length.toString()).replace("%{max-character-limit}",this.maxCharacterLimit.toString())))}onChange(t){this.updateValue();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}renderCharacterCounter(){return this.maxCharacterLimit?S`
|
|
6770
6774
|
<mdc-text part="character-counter" tagname="span" type=${Wn.CHARACTER_COUNTER_TYPE}>
|
|
6771
6775
|
${this.value.length}/${this.maxCharacterLimit}
|
|
6772
6776
|
</mdc-text>
|
|
@@ -6817,7 +6821,7 @@
|
|
|
6817
6821
|
`:K}
|
|
6818
6822
|
</div>
|
|
6819
6823
|
${this.renderTextareaFooter()}
|
|
6820
|
-
`}};ye.styles=[...sr.styles,...
|
|
6824
|
+
`}};ye.styles=[...sr.styles,...wy],h([u({type:String})],ye.prototype,"placeholder",2),h([u({type:Number,reflect:!0})],ye.prototype,"rows",2),h([u({type:Number})],ye.prototype,"cols",2),h([u({type:String})],ye.prototype,"wrap",2),h([u({type:String})],ye.prototype,"autocapitalize",2),h([u({type:String})],ye.prototype,"autocomplete",2),h([u({type:String})],ye.prototype,"dirname",2),h([u({type:Number})],ye.prototype,"maxlength",2),h([u({type:Number})],ye.prototype,"minlength",2),h([u({type:Number,attribute:"max-character-limit"})],ye.prototype,"maxCharacterLimit",2),h([u({type:String,attribute:"character-limit-announcement"})],ye.prototype,"characterLimitAnnouncement",2),h([u({type:Boolean,reflect:!0})],ye.prototype,"resizable",2),h([u({type:String,attribute:"resize-button-aria-label"})],ye.prototype,"resizeButtonAriaLabel",2),h([Ut("textarea")],ye.prototype,"inputElement",2),h([nt()],ye.prototype,"ariaLiveAnnouncer",2);var um=ye;um.register(Cy);var US=um;var Ny=z.constructTagName("timepicker"),fm={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},_o={TWELVE_HOUR:"12h",TWENTY_FOUR_HOUR:"24h"},vm="timepicker-triggerid",gm="timepicker-listbox",$e={TIME_FORMAT:_o.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 HS=B`
|
|
6821
6825
|
:host {
|
|
6822
6826
|
--mdc-timepicker-background-color: var(--mds-color-theme-background-primary-ghost);
|
|
6823
6827
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -6999,7 +7003,7 @@
|
|
|
6999
7003
|
--mdc-timepicker-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
7000
7004
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
7001
7005
|
}
|
|
7002
|
-
`,
|
|
7006
|
+
`,My=[HS,...yt(!0)];var Rt=class extends ce(re(Zt)){constructor(){super(...arguments);this.timeFormat=$e.TIME_FORMAT;this.interval=$e.INTERVAL;this.placement=Mt.BOTTOM_START;this.strategy=Et.STRATEGY;this.disableFlip=$e.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(){let t=this.getTimeOptions(),e=this.internalToValue(),o=t.findIndex(l=>l.value===e);this.focusedOptionIndex=o>=0?o:0,this.updateComplete.then(()=>{this.focusCurrentMenuItem()}).catch(()=>{})}focusCurrentMenuItem(){var o;let t=(o=this.shadowRoot)==null?void 0:o.querySelector(`#${gm}`);if(!t)return;let e=t.querySelectorAll("mdc-option");e[this.focusedOptionIndex]&&e[this.focusedOptionIndex].focus()}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),o=parseInt(t[2],10);e<0||e>23||o<0||o>59||(this.internalMinutes=String(o).padStart(2,"0"),this.timeFormat===_o.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===_o.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 o=0;o<24*60;o+=e){let l=Math.floor(o/60),c=o%60,f=`${String(l).padStart(2,"0")}:${String(c).padStart(2,"0")}`,y;if(this.timeFormat===_o.TWELVE_HOUR){let W=l<12?this.localeAmLabel:this.localePmLabel,Q=l%12;Q===0&&(Q=12);let Z=c===0?"00":String(c);y=`${Q}:${Z} ${W}`}else y=`${l}:${String(c).padStart(2,"0")}`;let A=!this.min||f>=this.min,F=!this.max||f<=this.max;A&&F&&t.push({label:y,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())}handleSpinbuttonAreaClick(t){var o,l;this.disabled||this.softDisabled||this.readonly||t.target.getAttribute("role")==="spinbutton"||((o=this.hoursInput)==null||o.focus(),(l=this.hoursInput)==null||l.select())}handleBaseKeydown(t){var e;this.disabled||this.softDisabled||this.readonly||t.key===Ct.ESCAPE&&this.displayPopover&&(this.displayPopover=!1,(e=this.dropdownButton)==null||e.focus(),t.preventDefault(),t.stopPropagation())}handleListboxKeydown(t){var l;let e=this.getTimeOptions(),o=e.length;if(o!==0)switch(t.key){case Ct.ARROW_DOWN:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex+1)%o,this.focusCurrentMenuItem();break}case Ct.ARROW_UP:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex=(this.focusedOptionIndex-1+o)%o,this.focusCurrentMenuItem();break}case Ct.ENTER:{t.preventDefault(),t.stopPropagation(),this.focusedOptionIndex>=0&&this.focusedOptionIndex<o&&this.handleOptionClick(e[this.focusedOptionIndex].value);break}case Ct.ESCAPE:{t.preventDefault(),t.stopPropagation(),this.displayPopover=!1,(l=this.dropdownButton)==null||l.focus();break}default:break}}handleHoursKeydown(t){this.handleSpinbuttonKeydown(t,"hours")}handleMinutesKeydown(t){this.handleSpinbuttonKeydown(t,"minutes")}handlePeriodKeydown(t){var e,o;switch(t.key){case Ct.ARROW_UP:case Ct.ARROW_DOWN:t.preventDefault(),this.internalPeriod=this.internalPeriod==="AM"?"PM":"AM",this.commitValue(),this.requestUpdate();break;case Ct.TAB:break;case Ct.ARROW_LEFT:t.preventDefault(),(e=this.minutesInput)==null||e.focus(),(o=this.minutesInput)==null||o.select();break;default:{t.preventDefault();let l=this.localeAmLabel.charAt(0).toLowerCase(),c=this.localePmLabel.charAt(0).toLowerCase(),f=t.key.toLowerCase();f===l?(this.internalPeriod="AM",this.commitValue(),this.requestUpdate()):f===c&&(this.internalPeriod="PM",this.commitValue(),this.requestUpdate());break}}}handleSpinbuttonKeydown(t,e){var A,F,W,Q,Z,et;let o=this.timeFormat===_o.TWELVE_HOUR,l,c;e==="hours"?(l=o?$e.MIN_HOUR_12:$e.MIN_HOUR_24,c=o?$e.MAX_HOUR_12:$e.MAX_HOUR_24):(l=$e.MIN_MINUTE,c=$e.MAX_MINUTE);let f=e==="hours"?this.internalHours:this.internalMinutes,y=f?parseInt(f,10):l;switch(t.key){case Ct.ARROW_UP:{t.preventDefault(),y=y>=c?l:y+1,this.setSpinbuttonValue(e,y),this.commitValue();break}case Ct.ARROW_DOWN:{t.preventDefault(),y=y<=l?c:y-1,this.setSpinbuttonValue(e,y),this.commitValue();break}case Ct.ARROW_RIGHT:{t.preventDefault(),e==="hours"?((A=this.minutesInput)==null||A.focus(),(F=this.minutesInput)==null||F.select()):o&&((W=this.periodInput)==null||W.focus(),(Q=this.periodInput)==null||Q.select());break}case Ct.ARROW_LEFT:{t.preventDefault(),e==="minutes"&&((Z=this.hoursInput)==null||Z.focus(),(et=this.hoursInput)==null||et.select());break}case Ct.TAB:break;default:{/^\d$/.test(t.key)?(t.preventDefault(),this.handleDigitInput(t.key,e,l,c)):t.preventDefault();break}}}handleDigitInput(t,e,o,l){if(this.pendingDigitTimeout&&clearTimeout(this.pendingDigitTimeout),this.pendingDigits+=t,this.pendingDigits.length>=2){let c=parseInt(this.pendingDigits,10);c>l&&(c=l),c<o&&(c=o),this.setSpinbuttonValue(e,c),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else{let c=parseInt(this.pendingDigits,10),f=Math.floor(l/10);if(c>f){let y=c;y>l&&(y=l),y<o&&(y=o),this.setSpinbuttonValue(e,y),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)}else this.setSpinbuttonValue(e,c),this.pendingDigitTimeout=setTimeout(()=>{let y=c;y<o&&(y=o),this.setSpinbuttonValue(e,y),this.pendingDigits="",this.commitValue(),this.advanceToNextField(e)},1e3)}}setSpinbuttonValue(t,e){let o=String(e).padStart(2,"0");t==="hours"?this.internalHours=o:this.internalMinutes=o,this.requestUpdate()}advanceToNextField(t){t==="hours"?this.updateComplete.then(()=>{var e,o;(e=this.minutesInput)==null||e.focus(),(o=this.minutesInput)==null||o.select()}).catch(()=>{}):this.timeFormat===_o.TWELVE_HOUR&&this.updateComplete.then(()=>{var e,o;(e=this.periodInput)==null||e.focus(),(o=this.periodInput)==null||o.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(o=>S`
|
|
7003
7007
|
<mdc-option
|
|
7004
7008
|
label="${o.label}"
|
|
7005
7009
|
?selected="${o.value===e}"
|
|
@@ -7128,7 +7132,7 @@
|
|
|
7128
7132
|
</mdc-popover>
|
|
7129
7133
|
</div>
|
|
7130
7134
|
${this.helpText?this.renderHelperText():K}
|
|
7131
|
-
`}};Rt.styles=[...Zt.styles,...
|
|
7135
|
+
`}};Rt.styles=[...Zt.styles,...My],h([u({type:String,reflect:!0,attribute:"time-format"})],Rt.prototype,"timeFormat",2),h([u({type:Number,reflect:!0})],Rt.prototype,"interval",2),h([u({type:String,reflect:!0})],Rt.prototype,"placement",2),h([u({type:String,reflect:!0})],Rt.prototype,"strategy",2),h([u({type:Boolean,reflect:!0,attribute:"disable-flip"})],Rt.prototype,"disableFlip",2),h([u({type:String,reflect:!0,attribute:"append-to"})],Rt.prototype,"appendTo",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],Rt.prototype,"backdropAppendTo",2),h([u({type:String,reflect:!0})],Rt.prototype,"min",2),h([u({type:String,reflect:!0})],Rt.prototype,"max",2),h([u({type:String,attribute:"locale-hours-label"})],Rt.prototype,"localeHoursLabel",2),h([u({type:String,attribute:"locale-minutes-label"})],Rt.prototype,"localeMinutesLabel",2),h([u({type:String,attribute:"locale-period-label"})],Rt.prototype,"localePeriodLabel",2),h([u({type:String,attribute:"locale-hours-placeholder"})],Rt.prototype,"localeHoursPlaceholder",2),h([u({type:String,attribute:"locale-minutes-placeholder"})],Rt.prototype,"localeMinutesPlaceholder",2),h([u({type:String,attribute:"locale-period-placeholder"})],Rt.prototype,"localePeriodPlaceholder",2),h([u({type:String,attribute:"locale-am-label"})],Rt.prototype,"localeAmLabel",2),h([u({type:String,attribute:"locale-pm-label"})],Rt.prototype,"localePmLabel",2),h([u({type:String,attribute:"locale-show-time-picker-label"})],Rt.prototype,"localeShowTimePickerLabel",2),h([u({type:String,attribute:"locale-time-options-label"})],Rt.prototype,"localeTimeOptionsLabel",2),h([u({type:String,attribute:"locale-spinbutton-description"})],Rt.prototype,"localeSpinbuttonDescription",2),h([Ut('mdc-button[part="icon-container"]')],Rt.prototype,"dropdownButton",2),h([Ut("#hours-spinbutton")],Rt.prototype,"hoursInput",2),h([Ut("#minutes-spinbutton")],Rt.prototype,"minutesInput",2),h([Ut("#period-spinbutton")],Rt.prototype,"periodInput",2),h([nt()],Rt.prototype,"displayPopover",2),h([nt()],Rt.prototype,"internalHours",2),h([nt()],Rt.prototype,"internalMinutes",2),h([nt()],Rt.prototype,"internalPeriod",2),h([nt()],Rt.prototype,"focusedOptionIndex",2);var bm=Rt;bm.register(Ny);var GS=bm;var KS=[B`
|
|
7132
7136
|
:host {
|
|
7133
7137
|
display: block;
|
|
7134
7138
|
position: relative;
|
|
@@ -7142,7 +7146,7 @@
|
|
|
7142
7146
|
:host::part(typewriter-hidden) {
|
|
7143
7147
|
display: none;
|
|
7144
7148
|
}
|
|
7145
|
-
`],
|
|
7149
|
+
`],Ly=KS;var Oy=z.constructTagName("typewriter"),Ts={VERY_SLOW:240,SLOW:120,NORMAL:60,FAST:20,VERY_FAST:1},hi={TYPE:Ce.TYPE,TEXT_ELEMENT_TAGNAME:Ce.TEXT_ELEMENT_TAGNAME,CSS_PART_TEXT:"text",CSS_PART_CONTAINER:"container",CSS_PART_HIDDEN:"typewriter-hidden",CHILDREN:"",SPEED:"normal",CUSTOM_EVENT:{TYPING_COMPLETE:"typing-complete"}};var Kr=class extends X{constructor(){super(...arguments);this.type=hi.TYPE;this.tagname=hi.TEXT_ELEMENT_TAGNAME;this.speed=hi.SPEED;this.maxQueueSize=Number.MAX_SAFE_INTEGER;this.displayedText="";this.originalText="";this.currentIndex=0;this.typingTimeout=null;this.pendingTimeouts=new Set;this.textChunkQueue=[];this.previousTextContent="";this.typingComplete=!0}connectedCallback(){super.connectedCallback(),this.createTimeout(()=>{this.captureAndProcessContent()},0)}disconnectedCallback(){this.clearTypingAnimation(),this.clearAllTimeouts(),super.disconnectedCallback()}createTimeout(t,e){let o=window.setTimeout(()=>{this.pendingTimeouts.delete(o),t()},e);return this.pendingTimeouts.add(o),o}clearAllTimeouts(){this.pendingTimeouts.forEach(t=>clearTimeout(t)),this.pendingTimeouts.clear()}clearQueue(){this.textChunkQueue.length=0}addTextChunk(t,e,o){t&&(this.maxQueueSize<Number.MAX_SAFE_INTEGER&&this.textChunkQueue.length>=this.maxQueueSize&&this.textChunkQueue.splice(0,this.textChunkQueue.length-this.maxQueueSize+1),this.textChunkQueue.push({text:t,speed:e,instant:o}),this.processChunkQueue())}addInstantTextChunk(t){this.addTextChunk(t,void 0,!0)}processChunkQueue(){this.textChunkQueue.length>0&&this.processNextChunk()}processNextChunk(){if(this.textChunkQueue.length===0)return;let t=this.textChunkQueue.shift(),e=this.speed;t.speed!==void 0&&(this.speed=t.speed),this.originalText+=t.text,this.typingComplete=!1,t.instant?(this.displayedText=this.originalText,this.currentIndex=this.originalText.length,this.typingComplete=!0,this.requestUpdate(),t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(hi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))):this.startTypingAnimation(()=>{t.speed!==void 0&&(this.speed=e),this.textChunkQueue.length>0?this.createTimeout(()=>{this.processNextChunk()},0):this.dispatchEvent(new CustomEvent(hi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0}))})}getTypingDelayMs(){let t=this.speed;switch(t){case"slow":return Ts.SLOW;case"fast":return Ts.FAST;case"very-slow":return Ts.VERY_SLOW;case"very-fast":return Ts.VERY_FAST;case"normal":return Ts.NORMAL;default:{let e=parseInt(t,10);return Number.isNaN(e)?Ts.NORMAL:Math.max(10,e)}}}updated(t){super.updated(t),t.has("speed")&&!this.typingComplete&&this.textChunkQueue.length===0&&this.startTypingAnimation()}captureAndProcessContent(){var o;let t=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!t)return;let e=t.assignedNodes().filter(l=>l.nodeType===Node.TEXT_NODE||l.nodeType===Node.ELEMENT_NODE).map(l=>l.textContent||"").join("");e!==this.previousTextContent&&(this.displayedText===""||!e.includes(this.displayedText)?(this.originalText=e,this.displayedText="",this.currentIndex=0,this.typingComplete=!1):(this.originalText=e,this.typingComplete=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{content:this.originalText,isTyping:!this.typingComplete}})),this.previousTextContent=e,this.startTypingAnimation())}startTypingAnimation(t){if(this.clearTypingAnimation(),this.displayedText===this.originalText){this.typingComplete=!0,t&&this.createTimeout(()=>{t()},0);return}this.currentIndex=this.displayedText.length,this.typingComplete=!1;let e=()=>{if(this.currentIndex<this.originalText.length){let o=this.originalText[this.currentIndex],l=this.displayedText+o;l!==this.displayedText&&(this.displayedText=l,this.requestUpdate()),this.currentIndex+=1,this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}else this.clearTypingAnimation(),this.typingComplete=!0,t?this.createTimeout(()=>{t()},0):this.createTimeout(()=>{this.dispatchEvent(new CustomEvent(hi.CUSTOM_EVENT.TYPING_COMPLETE,{bubbles:!0,composed:!0,detail:{finalContent:this.originalText}}))},0)};this.typingTimeout=window.setTimeout(e,this.getTypingDelayMs())}clearTypingAnimation(){this.typingTimeout!==null&&(clearTimeout(this.typingTimeout),this.typingTimeout=null)}handleSlotChange(){this.captureAndProcessContent()}render(){return S`
|
|
7146
7150
|
<div part="${hi.CSS_PART_CONTAINER}" aria-live="polite" aria-busy="${!this.typingComplete}">
|
|
7147
7151
|
<mdc-text
|
|
7148
7152
|
part="${hi.CSS_PART_TEXT}"
|
|
@@ -7153,7 +7157,7 @@
|
|
|
7153
7157
|
>
|
|
7154
7158
|
<slot @slotchange=${this.handleSlotChange} part="${hi.CSS_PART_HIDDEN}"></slot>
|
|
7155
7159
|
</div>
|
|
7156
|
-
`}};Kr.styles=[...X.styles,...
|
|
7160
|
+
`}};Kr.styles=[...X.styles,...Ly],h([u({attribute:"type",reflect:!0,type:String})],Kr.prototype,"type",2),h([u({attribute:"tagname",reflect:!0,type:String})],Kr.prototype,"tagname",2),h([u({attribute:"speed",reflect:!0})],Kr.prototype,"speed",2),h([u({attribute:"max-queue-size",type:Number,reflect:!0})],Kr.prototype,"maxQueueSize",2),h([nt()],Kr.prototype,"displayedText",2),h([nt()],Kr.prototype,"originalText",2),h([nt()],Kr.prototype,"typingComplete",2);var ym=Kr;ym.register(Oy);var WS=ym;var fc=z.constructTagName("themeprovider"),Em={THEMECLASS:"mds-theme-stable-darkWebex"};var vc=class{constructor(i){this.themeclass=i}};vc.context=fc;var gc=vc;var YS=B`
|
|
7157
7161
|
:host {
|
|
7158
7162
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
|
7159
7163
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
|
@@ -7177,7 +7181,7 @@
|
|
|
7177
7181
|
* {
|
|
7178
7182
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
|
7179
7183
|
}
|
|
7180
|
-
`,
|
|
7184
|
+
`,Ry=[YS];var ba=class extends Te{constructor(){super({context:gc.context,initialValue:new gc(Em.THEMECLASS)});this.themeclass=Em.THEMECLASS}static get Context(){return gc.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};ba.styles=[...Te.styles,...Ry],h([nt()],ba.prototype,"currentThemeClass",2),h([u({type:String})],ba.prototype,"themeclass",2);var Tm=ba;Tm.register(fc);var jS=Tm;var Dy=z.constructTagName("toast"),Yn={CUSTOM:"custom",SUCCESS:"success",WARNING:"warning",ERROR:"error"},bc={SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},lr={HEADER_TAG_NAME:"h2",CANCEL_ICON:"cancel-bold",ARROW_UP_BOLD:"arrow-up-bold",ARROW_DOWN_BOLD:"arrow-down-bold",PREFIX_ICON_SIZE:1.5,CLOSE_ICON_SIZE:Ar[20],BUTTON:Ti,PRIMARY_BUTTON:$t.PRIMARY,SECONDARY_BUTTON:$t.SECONDARY,TERTIARY_BUTTON:$t.TERTIARY,VARIANT:Yn.CUSTOM};var Py=n=>{switch(n){case Yn.SUCCESS:return bc.SUCCESS_ICON_NAME;case Yn.WARNING:return bc.WARNING_ICON_NAME;case Yn.ERROR:return bc.ERROR_ICON_NAME;default:return null}};var qS=B`
|
|
7181
7185
|
:host {
|
|
7182
7186
|
--mdc-toast-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
7183
7187
|
--mdc-toast-border-color: var(--mds-color-theme-outline-primary-normal);
|
|
@@ -7262,7 +7266,7 @@
|
|
|
7262
7266
|
mdc-text::part(text) {
|
|
7263
7267
|
margin: 0;
|
|
7264
7268
|
}
|
|
7265
|
-
`,
|
|
7269
|
+
`,Fy=[qS];var Ye=class extends Hs(X){constructor(){super(...arguments);this.variant=lr.VARIANT;this.headerTagName=lr.HEADER_TAG_NAME;this.ariaLabel=null;this.isDetailVisible=!1;this.hasDetailedSlot=!1;this.hasFooterButtons=""}closeToast(){let t=new CustomEvent("close",{bubbles:!0,composed:!0,detail:{id:this.id}});this.dispatchEvent(t)}toggleDetailVisibility(){this.isDetailVisible=!this.isDetailVisible}updateDetailedSlotPresence(){var t,e;this.hasDetailedSlot=(e=(t=this.detailedElements)==null?void 0:t.some(o=>{var l;return(l=o.textContent)==null?void 0:l.trim()}))!=null?e:!1}updateFooterButtonsPresence(){var t,e,o,l;this.hasFooterButtons=((e=(t=this.footerButtonPrimary)==null?void 0:t.length)!=null?e:0)>0||((l=(o=this.footerButtonSecondary)==null?void 0:o.length)!=null?l:0)>0||this.shouldRenderToggleButton()?"has-footer-buttons":""}firstUpdated(t){super.firstUpdated(t),this.updateDetailedSlotPresence()}renderIcon(t){return t?S`
|
|
7266
7270
|
<mdc-icon name="${t}" size="${lr.PREFIX_ICON_SIZE}" part="toast-prefix-icon"></mdc-icon>
|
|
7267
7271
|
`:K}shouldRenderToggleButton(){return this.hasDetailedSlot&&this.showMoreText&&this.showLessText}renderToggleDetailButton(){return this.shouldRenderToggleButton()?S`
|
|
7268
7272
|
<mdc-button
|
|
@@ -7291,7 +7295,7 @@
|
|
|
7291
7295
|
</div>
|
|
7292
7296
|
</slot>`}render(){var t;return S`
|
|
7293
7297
|
<div part="content-container">
|
|
7294
|
-
${this.variant===lr.VARIANT?S`<slot name="content-prefix"></slot>`:S`${this.renderIcon((t=
|
|
7298
|
+
${this.variant===lr.VARIANT?S`<slot name="content-prefix"></slot>`:S`${this.renderIcon((t=Py(this.variant))!=null?t:"")}`}
|
|
7295
7299
|
<div part="toast-content">
|
|
7296
7300
|
${this.renderHeader()}
|
|
7297
7301
|
<slot name="toast-body-normal"></slot>
|
|
@@ -7309,7 +7313,7 @@
|
|
|
7309
7313
|
></mdc-button>
|
|
7310
7314
|
</div>
|
|
7311
7315
|
${this.renderFooter()}
|
|
7312
|
-
`}};Ye.styles=[...X.styles,...
|
|
7316
|
+
`}};Ye.styles=[...X.styles,...Fy],h([u({type:String,reflect:!0})],Ye.prototype,"variant",2),h([u({type:String,attribute:"close-button-aria-label"})],Ye.prototype,"closeButtonAriaLabel",2),h([u({type:String,reflect:!0,attribute:"header-text"})],Ye.prototype,"headerText",2),h([u({type:String,reflect:!0,attribute:"header-tag-name"})],Ye.prototype,"headerTagName",2),h([u({type:String,reflect:!0,attribute:"aria-label"})],Ye.prototype,"ariaLabel",2),h([u({type:String,reflect:!0,attribute:"show-more-text"})],Ye.prototype,"showMoreText",2),h([u({type:String,reflect:!0,attribute:"show-less-text"})],Ye.prototype,"showLessText",2),h([nt()],Ye.prototype,"isDetailVisible",2),h([nt()],Ye.prototype,"hasDetailedSlot",2),h([Kt({slot:"toast-body-detailed",flatten:!0})],Ye.prototype,"detailedElements",2),h([nt()],Ye.prototype,"hasFooterButtons",2);var xm=Ye;xm.register(Dy);var XS=xm;var ZS=[bt,B`
|
|
7313
7317
|
:host {
|
|
7314
7318
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
7315
7319
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
@@ -7387,7 +7391,7 @@
|
|
|
7387
7391
|
:host([soft-disabled]) {
|
|
7388
7392
|
pointer-events: none;
|
|
7389
7393
|
}
|
|
7390
|
-
`,...yt(!0)]
|
|
7394
|
+
`,...yt(!0)],$y=ZS;var xs=class extends wt(To(De(ce(re(sr))))){constructor(){super(...arguments);this.checked=!1;this.size=Np.SIZE;this.renderLabelAndHelperText=()=>this.label?S`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:K}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 o;let e=this.getActionForKeyEvent(t);(this.readonly||this.softDisabled)&&e===q.SPACE&&t.preventDefault(),e===q.ENTER&&this.getKeyboardNavMode()===te.DEFAULT&&((o=this.form)==null||o.requestSubmit())}handleChange(t){this.toggleState();let e=t.constructor;this.dispatchEvent(new e(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Pn).includes(t)?t:Np.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return S`
|
|
7391
7395
|
<mdc-statictoggle
|
|
7392
7396
|
?checked="${this.checked}"
|
|
7393
7397
|
?disabled="${this.disabled}"
|
|
@@ -7417,10 +7421,10 @@
|
|
|
7417
7421
|
/>
|
|
7418
7422
|
</mdc-statictoggle>
|
|
7419
7423
|
${this.renderLabelAndHelperText()}
|
|
7420
|
-
`}};xs.styles=[...sr.styles
|
|
7424
|
+
`}};xs.styles=[...sr.styles,...$y],xs.shadowRootOptions={...sr.shadowRootOptions,delegatesFocus:!0},h([u({type:Boolean,reflect:!0})],xs.prototype,"checked",2),h([u({type:String,reflect:!0})],xs.prototype,"size",2);var Am=xs;Am.register(Lb);var QS=Am;function As(n,i,t){var c;let e=(c=t.initialDeps)!=null?c:[],o;function l(){var f,y,A,F;let W;t.key&&((f=t.debug)!=null&&f.call(t))&&(W=Date.now());let Q=n();if(!(Q.length!==e.length||Q.some((lt,dt)=>e[dt]!==lt)))return o;e=Q;let et;if(t.key&&((y=t.debug)!=null&&y.call(t))&&(et=Date.now()),o=i(...Q),t.key&&((A=t.debug)!=null&&A.call(t))){let lt=Math.round((Date.now()-W)*100)/100,dt=Math.round((Date.now()-et)*100)/100,ft=dt/16,It=(kt,jt)=>{for(kt=String(kt);kt.length<jt;)kt=" "+kt;return kt};console.info(`%c\u23F1 ${It(dt,5)} /${It(lt,5)} ms`,`
|
|
7421
7425
|
font-size: .6rem;
|
|
7422
7426
|
font-weight: bold;
|
|
7423
|
-
color: hsl(${Math.max(0,Math.min(120-120*ft,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,o),o}return l.updateDeps=f=>{e=f},l}function Sm(n,i){if(n===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return n}var $y=(n,i)=>Math.abs(n-i)<1.01,Vy=(n,i,t)=>{let e;return function(...o){n.clearTimeout(e),e=n.setTimeout(()=>i.apply(this,o),t)}};var zy=n=>{let{offsetWidth:i,offsetHeight:t}=n;return{width:i,height:t}},ZS=n=>n,Im=n=>{let i=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),e=[];for(let o=i;o<=t;o++)e.push(o);return e},Hy=(n,i)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let o=c=>{let{width:f,height:y}=c;i({width:Math.round(f),height:Math.round(y)})};if(o(zy(t)),!e.ResizeObserver)return()=>{};let l=new e.ResizeObserver(c=>{let f=()=>{let y=c[0];if(y!=null&&y.borderBoxSize){let A=y.borderBoxSize[0];if(A){o({width:A.inlineSize,height:A.blockSize});return}}o(zy(t))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},By={passive:!0};var Uy=typeof window>"u"?!0:"onscrollend"in window,Gy=(n,i)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let o=0,l=n.options.useScrollendEvent&&Uy?()=>{}:Vy(e,()=>{i(o,!1)},n.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:W,isRtl:Q}=n.options;o=W?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),i(o,F)},f=c(!0),y=c(!1);y(),t.addEventListener("scroll",f,By);let A=n.options.useScrollendEvent&&Uy;return A&&t.addEventListener("scrollend",y,By),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",y)}};var QS=(n,i,t)=>{if(i!=null&&i.borderBoxSize){let e=i.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return n[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Ky=(n,{adjustments:i=0,behavior:t},e)=>{var o,l;let c=n+i;(l=(o=e.scrollElement)==null?void 0:o.scrollTo)==null||l.call(o,{[e.options.horizontal?"left":"top"]:c,behavior:t})},yc=class{constructor(i){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(o=>{o.forEach(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var o;(o=e())==null||o.disconnect(),t=null},observe:o=>{var l;return(l=e())==null?void 0:l.observe(o,{box:"border-box"})},unobserve:o=>{var l;return(l=e())==null?void 0:l.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,o])=>{typeof o>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ZS,rangeExtractor:Im,onChange:()=>{},measureElement:QS,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,o;(o=(e=this.options).onChange)==null||o.call(e,this,t)},this.maybeNotify=As(()=>(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 o;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=(o=(t=this.scrollElement)==null?void 0:t.window)!=null?o:null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let o=new Map,l=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(o.has(f.lane))continue;let y=l.get(f.lane);if(y==null||f.end>y.end?l.set(f.lane,f):f.end<y.end&&o.set(f.lane,!0),o.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=As(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,o,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:o,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=As(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:o,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,y);for(let F=y;F<t;F++){let W=l(F),Q=this.options.lanes===1?A[F-1]:this.getFurthestMeasurement(A,F),Z=Q?Q.end+this.options.gap:e+o,et=f.get(W),lt=typeof et=="number"?et:this.options.estimateSize(F),dt=Z+lt,ft=Q?Q.lane:F%this.options.lanes;A[F]={index:F,start:Z,size:lt,end:dt,key:W,lane:ft}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=As(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,o,l)=>this.range=t.length>0&&e>0?JS({measurements:t,outerSize:e,scrollOffset:o,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=As(()=>{let t=null,e=null,o=this.calculateRange();return o&&(t=o.startIndex,e=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,o,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,overscan:e,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,o=t.getAttribute(e);return o?parseInt(o,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let o=this.indexFromElement(t),l=this.measurementsCache[o];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(o,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let o=this.measurementsCache[t];if(!o)return;let l=(f=this.itemSizeCache.get(o.key))!=null?f:o.size,c=e-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,c,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,o)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(o))});return}this._measureElement(t,void 0)},this.getVirtualItems=As(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let o=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],y=e[f];o.push(y)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return Sm(e[Wy(0,e.length-1,o=>Sm(e[o]).start,t)])},this.getOffsetForAlignment=(t,e,o=0)=>{let l=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+l?"end":"start"),e==="center"?t+=(o-l)/2:e==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;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 o=this.measurementsCache[t];if(!o)return;let l=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(o.end>=c+l-this.options.scrollPaddingEnd)e="end";else if(o.start<=c+this.options.scrollPaddingStart)e="start";else return[c,e];let f=e==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,o.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:o}={})=>{o==="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:o})},this.scrollToIndex=(t,{align:e="auto",behavior:o}={})=>{o==="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 l=0,c=10,f=A=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,A);if(!F){console.warn("Failed to get offset for index:",t);return}let[W,Q]=F;this._scrollToOffset(W,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{let Z=this.getScrollOffset(),et=this.getOffsetForIndex(t,Q);if(!et){console.warn("Failed to get offset for index:",t);return}$y(et[0],Z)||y(Q)})},y=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} 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 l;var t;let e=this.getMeasurements(),o;if(e.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=(l=(t=e[e.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(y=>y===null);){let y=e[f];c[y.lane]===null&&(c[y.lane]=y.end),f--}o=Math.max(...c.filter(y=>y!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Wy=(n,i,t,e)=>{for(;n<=i;){let o=(n+i)/2|0,l=t(o);if(l<e)n=o+1;else if(l>e)i=o-1;else return o}return n>0?n-1:0};function JS({measurements:n,outerSize:i,scrollOffset:t,lanes:e}){let o=n.length-1,l=y=>n[y].start;if(n.length<=e)return{startIndex:0,endIndex:o};let c=Wy(0,o,l,t),f=c;if(e===1)for(;f<o&&n[f].end<t+i;)f++;else if(e>1){let y=Array(e).fill(0);for(;f<o&&y.some(F=>F<t+i);){let F=n[f];y[F.lane]=F.end,f++}let A=Array(e).fill(t+i);for(;c>=0&&A.some(F=>F>=t);){let F=n[c];A[F.lane]=F.start,c--}c=Math.max(0,c-c%e),f=Math.min(o,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var _m=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let e={...t,onChange:(o,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,o,l)}};this.virtualizer=new yc(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Ec=class extends _m{constructor(i,t){super(i,{observeElementRect:Hy,observeElementOffset:Gy,scrollToFn:Ky,...t})}};var tI={includeEnd:!1},Tc=class{constructor(i,t,e={}){let o={...tI,...e};this.start=i,this.end=t,this.includeEnd=o.includeEnd}includes(i){let{start:t,end:e,includeEnd:o}=this,l=Math.min(t,e),c=Math.max(t,e);return o?i>=l&&i<=c:i>=l&&i<c}iter(i=1){if(i<=0)throw new Error("Step must be a positive non-zero number");let t=i*(this.start<=this.end?1:-1),{includeEnd:e,end:o}=this,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(e?f>o:f>=o)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var xc=class{constructor(i,t,e){this.getIndex=()=>0;this.items=i,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(i){return this.items.find(t=>this.getIndex(t)===i)}map(i,t){return this.items.map((e,o,l)=>i.call(t,e,this.getIndex(e),l))}forEach(i,t){this.items.forEach((e,o,l)=>{i.call(t,e,this.getIndex(e),l)})}findIndex(i,t){let e=this.items.find((o,l,c)=>i.call(t,o,this.getIndex(o),c));return e?this.getIndex(e):-1}find(i,t){return this.items.find((e,o,l)=>i.call(t,e,this.getIndex(e),l))}};var eI=[B`
|
|
7427
|
+
color: hsl(${Math.max(0,Math.min(120-120*ft,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(F=t==null?void 0:t.onChange)==null||F.call(t,o),o}return l.updateDeps=f=>{e=f},l}function Sm(n,i){if(n===void 0)throw new Error(`Unexpected undefined${i?`: ${i}`:""}`);return n}var Vy=(n,i)=>Math.abs(n-i)<1.01,zy=(n,i,t)=>{let e;return function(...o){n.clearTimeout(e),e=n.setTimeout(()=>i.apply(this,o),t)}};var By=n=>{let{offsetWidth:i,offsetHeight:t}=n;return{width:i,height:t}},JS=n=>n,Im=n=>{let i=Math.max(n.startIndex-n.overscan,0),t=Math.min(n.endIndex+n.overscan,n.count-1),e=[];for(let o=i;o<=t;o++)e.push(o);return e},Gy=(n,i)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let o=c=>{let{width:f,height:y}=c;i({width:Math.round(f),height:Math.round(y)})};if(o(By(t)),!e.ResizeObserver)return()=>{};let l=new e.ResizeObserver(c=>{let f=()=>{let y=c[0];if(y!=null&&y.borderBoxSize){let A=y.borderBoxSize[0];if(A){o({width:A.inlineSize,height:A.blockSize});return}}o(By(t))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},Uy={passive:!0};var Hy=typeof window>"u"?!0:"onscrollend"in window,Ky=(n,i)=>{let t=n.scrollElement;if(!t)return;let e=n.targetWindow;if(!e)return;let o=0,l=n.options.useScrollendEvent&&Hy?()=>{}:zy(e,()=>{i(o,!1)},n.options.isScrollingResetDelay),c=F=>()=>{let{horizontal:W,isRtl:Q}=n.options;o=W?t.scrollLeft*(Q&&-1||1):t.scrollTop,l(),i(o,F)},f=c(!0),y=c(!1);y(),t.addEventListener("scroll",f,Uy);let A=n.options.useScrollendEvent&&Hy;return A&&t.addEventListener("scrollend",y,Uy),()=>{t.removeEventListener("scroll",f),A&&t.removeEventListener("scrollend",y)}};var tI=(n,i,t)=>{if(i!=null&&i.borderBoxSize){let e=i.borderBoxSize[0];if(e)return Math.round(e[t.options.horizontal?"inlineSize":"blockSize"])}return n[t.options.horizontal?"offsetWidth":"offsetHeight"]};var Wy=(n,{adjustments:i=0,behavior:t},e)=>{var o,l;let c=n+i;(l=(o=e.scrollElement)==null?void 0:o.scrollTo)==null||l.call(o,{[e.options.horizontal?"left":"top"]:c,behavior:t})},yc=class{constructor(i){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(o=>{o.forEach(l=>{let c=()=>{this._measureElement(l.target,l)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var o;(o=e())==null||o.disconnect(),t=null},observe:o=>{var l;return(l=e())==null?void 0:l.observe(o,{box:"border-box"})},unobserve:o=>{var l;return(l=e())==null?void 0:l.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([e,o])=>{typeof o>"u"&&delete t[e]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:JS,rangeExtractor:Im,onChange:()=>{},measureElement:tI,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,o;(o=(e=this.options).onChange)==null||o.call(e,this,t)},this.maybeNotify=As(()=>(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 o;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=(o=(t=this.scrollElement)==null?void 0:t.window)!=null?o:null,this.elementsCache.forEach(l=>{this.observer.observe(l)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,l=>{this.scrollRect=l,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(l,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<l?"forward":"backward":null,this.scrollOffset=l,this.isScrolling=c,this.maybeNotify()}))}},this.getSize=()=>{var t;return this.options.enabled?(this.scrollRect=(t=this.scrollRect)!=null?t:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var t;return this.options.enabled?(this.scrollOffset=(t=this.scrollOffset)!=null?t:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(t,e)=>{let o=new Map,l=new Map;for(let c=e-1;c>=0;c--){let f=t[c];if(o.has(f.lane))continue;let y=l.get(f.lane);if(y==null||f.end>y.end?l.set(f.lane,f):f.end<y.end&&o.set(f.lane,!0),o.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=As(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,e,o,l,c)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:o,getItemKey:l,enabled:c}),{key:!1}),this.getMeasurements=As(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:e,scrollMargin:o,getItemKey:l,enabled:c},f)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(F=>{this.itemSizeCache.set(F.key,F.size)}));let y=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let A=this.measurementsCache.slice(0,y);for(let F=y;F<t;F++){let W=l(F),Q=this.options.lanes===1?A[F-1]:this.getFurthestMeasurement(A,F),Z=Q?Q.end+this.options.gap:e+o,et=f.get(W),lt=typeof et=="number"?et:this.options.estimateSize(F),dt=Z+lt,ft=Q?Q.lane:F%this.options.lanes;A[F]={index:F,start:Z,size:lt,end:dt,key:W,lane:ft}}return this.measurementsCache=A,A},{key:!1,debug:()=>this.options.debug}),this.calculateRange=As(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,e,o,l)=>this.range=t.length>0&&e>0?eI({measurements:t,outerSize:e,scrollOffset:o,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=As(()=>{let t=null,e=null,o=this.calculateRange();return o&&(t=o.startIndex,e=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,e]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,e]},(t,e,o,l,c)=>l===null||c===null?[]:t({startIndex:l,endIndex:c,overscan:e,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{let e=this.options.indexAttribute,o=t.getAttribute(e);return o?parseInt(o,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{let o=this.indexFromElement(t),l=this.measurementsCache[o];if(!l)return;let c=l.key,f=this.elementsCache.get(c);f!==t&&(f&&this.observer.unobserve(f),this.observer.observe(t),this.elementsCache.set(c,t)),t.isConnected&&this.resizeItem(o,this.options.measureElement(t,e,this))},this.resizeItem=(t,e)=>{var f;let o=this.measurementsCache[t];if(!o)return;let l=(f=this.itemSizeCache.get(o.key))!=null?f:o.size,c=e-l;c!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,c,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,e)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((e,o)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(o))});return}this._measureElement(t,void 0)},this.getVirtualItems=As(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,e)=>{let o=[];for(let l=0,c=t.length;l<c;l++){let f=t[l],y=e[f];o.push(y)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{let e=this.getMeasurements();if(e.length!==0)return Sm(e[Yy(0,e.length-1,o=>Sm(e[o]).start,t)])},this.getOffsetForAlignment=(t,e,o=0)=>{let l=this.getSize(),c=this.getScrollOffset();e==="auto"&&(e=t>=c+l?"end":"start"),e==="center"?t+=(o-l)/2:e==="end"&&(t-=l);let f=this.getTotalSize()+this.options.scrollMargin-l;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 o=this.measurementsCache[t];if(!o)return;let l=this.getSize(),c=this.getScrollOffset();if(e==="auto")if(o.end>=c+l-this.options.scrollPaddingEnd)e="end";else if(o.start<=c+this.options.scrollPaddingStart)e="start";else return[c,e];let f=e==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,e,o.size),e]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(t,{align:e="start",behavior:o}={})=>{o==="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:o})},this.scrollToIndex=(t,{align:e="auto",behavior:o}={})=>{o==="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 l=0,c=10,f=A=>{if(!this.targetWindow)return;let F=this.getOffsetForIndex(t,A);if(!F){console.warn("Failed to get offset for index:",t);return}let[W,Q]=F;this._scrollToOffset(W,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{let Z=this.getScrollOffset(),et=this.getOffsetForIndex(t,Q);if(!et){console.warn("Failed to get offset for index:",t);return}Vy(et[0],Z)||y(Q)})},y=A=>{this.targetWindow&&(l++,l<c?this.targetWindow.requestAnimationFrame(()=>f(A)):console.warn(`Failed to scroll to index ${t} after ${c} 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 l;var t;let e=this.getMeasurements(),o;if(e.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=(l=(t=e[e.length-1])==null?void 0:t.end)!=null?l:0;else{let c=Array(this.options.lanes).fill(null),f=e.length-1;for(;f>=0&&c.some(y=>y===null);){let y=e[f];c[y.lane]===null&&(c[y.lane]=y.end),f--}o=Math.max(...c.filter(y=>y!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:e,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(i)}},Yy=(n,i,t,e)=>{for(;n<=i;){let o=(n+i)/2|0,l=t(o);if(l<e)n=o+1;else if(l>e)i=o-1;else return o}return n>0?n-1:0};function eI({measurements:n,outerSize:i,scrollOffset:t,lanes:e}){let o=n.length-1,l=y=>n[y].start;if(n.length<=e)return{startIndex:0,endIndex:o};let c=Yy(0,o,l,t),f=c;if(e===1)for(;f<o&&n[f].end<t+i;)f++;else if(e>1){let y=Array(e).fill(0);for(;f<o&&y.some(F=>F<t+i);){let F=n[f];y[F.lane]=F.end,f++}let A=Array(e).fill(t+i);for(;c>=0&&A.some(F=>F>=t);){let F=n[c];A[F.lane]=F.start,c--}c=Math.max(0,c-c%e),f=Math.min(o,f+(e-1-f%e))}return{startIndex:c,endIndex:f}}var _m=class{constructor(i,t){this.cleanup=()=>{},(this.host=i).addController(this);let e={...t,onChange:(o,l)=>{var c;this.host.updateComplete.then(()=>this.host.requestUpdate()),(c=t.onChange)==null||c.call(t,o,l)}};this.virtualizer=new yc(e)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Ec=class extends _m{constructor(i,t){super(i,{observeElementRect:Gy,observeElementOffset:Ky,scrollToFn:Wy,...t})}};var rI={includeEnd:!1},Tc=class{constructor(i,t,e={}){let o={...rI,...e};this.start=i,this.end=t,this.includeEnd=o.includeEnd}includes(i){let{start:t,end:e,includeEnd:o}=this,l=Math.min(t,e),c=Math.max(t,e);return o?i>=l&&i<=c:i>=l&&i<c}iter(i=1){if(i<=0)throw new Error("Step must be a positive non-zero number");let t=i*(this.start<=this.end?1:-1),{includeEnd:e,end:o}=this,l=this.start,c=!1;return{next:()=>{if(c)return{value:void 0,done:!0};let f=l;return l+=t,(e?f>o:f>=o)?(c=!0,{value:void 0,done:!0}):{value:f,done:!1}}}}[Symbol.iterator](){return this.iter()}};var xc=class{constructor(i,t,e){this.getIndex=()=>0;this.items=i,this.getIndex=t,this.lengthFn=e}get length(){return this.lengthFn()}at(i){return this.items.find(t=>this.getIndex(t)===i)}map(i,t){return this.items.map((e,o,l)=>i.call(t,e,this.getIndex(e),l))}forEach(i,t){this.items.forEach((e,o,l)=>{i.call(t,e,this.getIndex(e),l)})}findIndex(i,t){let e=this.items.find((o,l,c)=>i.call(t,o,this.getIndex(o),c));return e?this.getIndex(e):-1}find(i,t){return this.items.find((e,o,l)=>i.call(t,e,this.getIndex(e),l))}};var iI=[B`
|
|
7424
7428
|
:host {
|
|
7425
7429
|
height: 100%;
|
|
7426
7430
|
}
|
|
@@ -7450,7 +7454,7 @@
|
|
|
7450
7454
|
::slotted(mdc-listitem) {
|
|
7451
7455
|
position: relative;
|
|
7452
7456
|
}
|
|
7453
|
-
`],
|
|
7457
|
+
`],jy=iI;var qy=z.constructTagName("virtualizedlist"),Irt=z.constructTagName("virtualizedwrapper"),jn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0,getItemKey:n=>n},LOOP:"false",SCROLL_ANCHORING:!1,IS_AT_BOTTOM_THRESHOLD:16};var dr=class extends re(Pi){constructor(){super();this.virtualizerProps=jn.VIRTUALIZER_PROPS;this.loop=jn.LOOP;this.scrollAnchoring=jn.SCROLL_ANCHORING;this.observeSizeChanges=!1;this.revertList=!1;this.atBottomThreshold=jn.IS_AT_BOTTOM_THRESHOLD;this.virtualizer=null;this.virtualizedNavItems=null;this.virtualizerController=null;this.selectedIndex=this.initialFocus;this.selectedKey=null;this.firstIndex=0;this.firstKey=null;this.hiddenIndexes=[];this.atBottomValue="no";this.atBottomTimer=-1;this.lastScrollPosition=0;this.endOfScrollQueue=[];this.resizeObserver=null;this.handleElementFirstUpdateCompleted=t=>{var e,o;this.observeSizeChanges&&this.navItems.find(l=>l===t.target)!==void 0&&((o=(e=this.virtualizer)==null?void 0:e.measureElement)==null||o.call(e,t.target))};this.orientation=kn.VERTICAL,this.addEventListener("wheel",this.handleWheelEvent.bind(this)),this.addEventListener(Qt.FIRST_UPDATE_COMPLETED,this.handleElementFirstUpdateCompleted.bind(this))}get virtualItems(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getVirtualItems())!=null?e:[]}get navItems(){var t,e,o,l;if(((t=this.virtualizedNavItems)==null?void 0:t.items)!==super.navItems){let c=(l=(o=(e=this.virtualizer)==null?void 0:e.options)==null?void 0:o.indexAttribute)!=null?l:"data-index";this.virtualizedNavItems=new xc(super.navItems,f=>Number(f.getAttribute(c)),()=>this.virtualizerProps.count)}return this.virtualizedNavItems}get atBottom(){return this.atBottomValue}set atBottom(t){(this.atBottomValue!==t||t==="yes"&&this.atBottomTimer===-1)&&(this.atBottomValue=t,t==="yes"?this.scrollToBottom():this.clearScrollToBottomTimer())}get totalListHeight(){var t,e;return(e=(t=this.virtualizer)==null?void 0:t.getTotalSize())!=null?e:0}connectedCallback(){this.virtualizerController=new Ec(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!==kn.VERTICAL&&(this.orientation=kn.VERTICAL),t.has("virtualizerProps")&&await this.handleVirtualizerPropsUpdate(t.get("virtualizerProps")),t.has("observeSizeChanges")&&this.navItems.forEach(e=>{var o,l;this.observeSizeChanges&&((l=(o=this.virtualizer)==null?void 0:o.measureElement)==null||l.call(o,e))}),t.has("scrollAnchoring")&&(this.scrollAnchoring?this.checkAtBottom():this.atBottom="no"),t.has("revertList")&&this.revertList&&this.scrollAnchoring&&(this.atBottom="yes"),t.has("atBottomThreshold")&&this.scrollAnchoring&&this.checkAtBottom()}async handleVirtualizerPropsUpdate(t){var l,c;let{virtualizer:e}=this;if(!e)return;let o=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&&o.length>0){let f=Math.abs(this.virtualizerProps.count-((l=t==null?void 0:t.count)!=null?l:0)),y=this.selectedIndex,A=this.firstKey,F=new Tc(y-f,y+f,{includeEnd:!0}),W=(c=Array.from(F).find(Z=>e.options.getItemKey(Z)===this.selectedKey))!=null?c:this.selectedIndex;if(this.setSelectedIndex(W),this.requestUpdate(),await this.updateComplete,this.atBottom==="yes"){this.scrollToBottom();return}if(this.focusWithin&&y!==this.selectedIndex||!this.focusWithin&&this.firstKey!==A){let Z=e.measurementsCache[this.selectedIndex].end-o[y].end;this.scrollRef.scrollTop+=Z}}}setInitialFocus(){setTimeout(async()=>{if(!this.virtualizer)return;let{scrollToIndex:t}=this.virtualizer;if(this.setSelectedIndex(this.initialFocus),this.selectedIndex>=this.navItems.length)return;t(this.selectedIndex,{align:"center"}),this.navItems.find(this.isElementSelected,this)&&this.resetTabIndexes(this.selectedIndex,!1)},0)}emitChangeEvent(){var e,o,l,c,f;(o=(e=this.virtualizerProps).onChange)==null||o.call(e,this.virtualizer,this.virtualizer.isScrolling);let t={virtualizer:this.virtualizer,virtualItems:(f=(c=(l=this.virtualizer)==null?void 0:l.getVirtualItems)==null?void 0:c.call(l))!=null?f:[]};this.dispatchEvent(new CustomEvent("virtualitemschange",{detail:t,bubbles:!1,cancelable:!1}))}virtualizerRangeExtractor(t){var y,A,F,W;let{navItems:e,virtualizerProps:o,virtualizer:l}=this,c=(A=(y=o.rangeExtractor)==null?void 0:y.call(o,t))!=null?A:Im(t);return this.hiddenIndexes.forEach(Q=>{let Z=e.at(Q);Z&&(Z.removeAttribute("data-virtualized-hidden"),Z.style.removeProperty("--mdc-virtualizedlist-hidden-top"))}),this.firstIndex=t.startIndex,this.firstKey=(W=(F=this.virtualizer)==null?void 0:F.options.getItemKey(this.firstIndex))!=null?W:null,this.hiddenIndexes.length=0,[this.selectedIndex-1,this.selectedIndex,this.selectedIndex+1].forEach(Q=>{var Z;c.includes(Q)||(Q<t.startIndex&&Q>=0&&(c.unshift(Q),this.hiddenIndexes.push(Q)),Q>t.endIndex&&Q<((Z=l==null?void 0:l.options.count)!=null?Z:0)&&(c.push(Q),this.hiddenIndexes.push(Q)))}),this.updateHiddenItemsPosition(t),c.sort((Q,Z)=>Q-Z),c}updateHiddenItemsPosition(t){let{navItems:e,virtualizerProps:o,virtualizer:l}=this;if(!l||o.count===0)return;let{measurementsCache:c}=l;this.hiddenIndexes.forEach(f=>{let y=e.at(f);if(y){let A=Math.max(t.startIndex-t.overscan,0),F=c[A],W=c[f];y.setAttribute("data-virtualized-hidden","true"),y.style.setProperty("--mdc-virtualizedlist-hidden-top",`${W.start-F.start}px`)}})}isElementSelected(t){var e;return((e=this.virtualizer)==null?void 0:e.indexFromElement(t))===this.selectedIndex}setSelectedIndex(t){if(this.virtualizer){let{count:e,getItemKey:o}=this.virtualizer.options;this.selectedIndex=Math.max(0,Math.min(e-1,t)),this.selectedKey=o(t)}}onElementStoreUpdate(t,e){if(e==="added"){let o=this.isElementSelected(t);t.tabIndex=o?0:-1,this.setAriaSetSize(t)}else e==="removed"&&t.tabIndex===0&&queueMicrotask(()=>{this.resetTabIndexes(this.selectedIndex,this.focusWithin)})}async onVListStateChangeHandler(t,e){this.syncUI(),await this.updateComplete,this.requestUpdate(),!e&&this.endOfScrollQueue.length>0&&(this.endOfScrollQueue.forEach(o=>o()),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:o}=this.scrollRef;this.scrollAnchoring&&this.virtualizer&&this.atBottom==="no"&&e>t-this.atBottomThreshold&&!this.virtualizer.isScrolling&&(this.atBottom=e-o<=t+this.atBottomThreshold?"yes":"no")}handleNavigationKeyDown(t){var o,l,c,f;switch(this.getActionForKeyEvent(t)){case q.HOME:{(l=(o=this.virtualizer)==null?void 0:o.scrollToIndex)==null||l.call(o,0,{align:"start"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(0));break}case q.END:{let y=this.virtualizerProps.count-1;(f=(c=this.virtualizer)==null?void 0:c.scrollToIndex)==null||f.call(c,y,{align:"end"}),this.endOfScrollQueue.push(()=>this.resetTabIndexes(y));break}case q.UP:{this.atBottom="re-evaluate";break}default:}super.handleNavigationKeyDown(t)}resetTabIndexes(t,e=!0){super.resetTabIndexes(t,e),this.setSelectedIndex(t)}resetTabIndexAndSetFocus(t,e,o=!0,l=o){if(this.navItems.find(y=>{var A;return((A=this.virtualizer)==null?void 0:A.indexFromElement(y))===t})===void 0)return this.scrollToIndex(t,{}),this.endOfScrollQueue.push(()=>{super.resetTabIndexAndSetFocus(t,e,o,l),this.setSelectedIndex(t)}),!0;let f=super.resetTabIndexAndSetFocus(t,e,o,l);return this.setSelectedIndex(t),f}setAriaSetSize(t){var e,o;t.setAttribute("aria-setsize",`${(o=(e=this.virtualizer)==null?void 0:e.options.count)!=null?o:-1}`)}scrollToBottom(){if(this.clearScrollToBottomTimer(),this.atBottom==="yes"&&this.scrollRef){let{clientHeight:t,scrollHeight:e,scrollTop:o}=this.scrollRef;this.totalListHeight>t&&(this.scrollRef.scrollTop+=e-t-o),this.atBottomTimer=requestAnimationFrame(this.scrollToBottom.bind(this))}}clearScrollToBottomTimer(){cancelAnimationFrame(this.atBottomTimer),this.atBottomTimer=-1}scrollToIndex(t,e){var o,l;(l=(o=this.virtualizer).scrollToIndex)==null||l.call(o,t,e),this.atBottom=this.scrollAnchoring&&t+1===this.virtualizerProps.count?"yes":"no"}syncUI(){var l;let t=this.virtualItems.find(({index:c})=>!this.hiddenIndexes.includes(c)),e=(l=t==null?void 0:t.start)!=null?l:0;window.getComputedStyle(this);let o=0;this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&(o=this.scrollRef.clientHeight-this.totalListHeight),this.wrapperRef.style.height=`${this.totalListHeight}px`,this.containerRef.style.transform=`translateY(${o+e}px)`}handleWheelEvent(t){t.deltaY<0&&(this.atBottom="re-evaluate")}handleResizeObserverCallback(){requestAnimationFrame(()=>{this.revertList&&this.scrollRef.clientHeight>=this.totalListHeight&&this.syncUI()})}render(){var t;return S`
|
|
7454
7458
|
<slot name="list-header"></slot>
|
|
7455
7459
|
<div part="scroll" tabindex="-1" @scroll="${this.onScrollHandler}">
|
|
7456
7460
|
<div part="wrapper">
|
|
@@ -7459,7 +7463,7 @@
|
|
|
7459
7463
|
</div>
|
|
7460
7464
|
</div>
|
|
7461
7465
|
</div>
|
|
7462
|
-
`}};dr.styles=[...Pi.styles,...
|
|
7466
|
+
`}};dr.styles=[...Pi.styles,...jy],h([u({type:Object})],dr.prototype,"virtualizerProps",2),h([u({type:String,reflect:!0})],dr.prototype,"loop",2),h([u({type:Boolean,attribute:"scroll-anchoring",reflect:!0})],dr.prototype,"scrollAnchoring",2),h([u({type:Boolean,reflect:!0,attribute:"observe-size-changes"})],dr.prototype,"observeSizeChanges",2),h([u({type:Boolean,reflect:!0,attribute:"revert-list"})],dr.prototype,"revertList",2),h([u({type:Number,reflect:!0,attribute:"at-bottom-threshold"})],dr.prototype,"atBottomThreshold",2),h([Ut('[part="scroll"]',!0)],dr.prototype,"scrollRef",2),h([Ut('[part="wrapper"]',!0)],dr.prototype,"wrapperRef",2),h([Ut('[part="container"]',!0)],dr.prototype,"containerRef",2),h([Zu({passive:!0})],dr.prototype,"onScrollHandler",1);var Cm=dr;Cm.register(qy);var oI=Cm;ue.register(tf);var sI=ue;var Xy=z.constructTagName("combobox"),km={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"},Zy="list";var wm="combobox-trigger-id";var Co=class{static dispatchComboboxEvent(i,t,e,o=!0){i.dispatchEvent(new CustomEvent(t,{detail:{value:e==null?void 0:e.value,label:e==null?void 0:e.label},composed:!0,bubbles:o}))}static onInputCombobox(i,t){this.dispatchComboboxEvent(i,"input",t)}static onChangeCombobox(i,t){this.dispatchComboboxEvent(i,"change",t)}};var aI=B`
|
|
7463
7467
|
:host {
|
|
7464
7468
|
--mdc-combobox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
7465
7469
|
--mdc-combobox-icon-color: var(--mds-color-theme-text-primary-normal);
|
|
@@ -7568,7 +7572,7 @@
|
|
|
7568
7572
|
--mdc-icon-fill-color: ButtonText;
|
|
7569
7573
|
}
|
|
7570
7574
|
}
|
|
7571
|
-
`,
|
|
7575
|
+
`,Qy=[aI];var we=class extends Lt(wt(di(De(ce(re(To(Zt))))))){constructor(){super();this.lastCommittedValue="";this.placement=Mt.BOTTOM_START;this.boundary=Et.BOUNDARY;this.strategy=Et.STRATEGY;this.popoverZIndex=void 0;this.isOpen=!1;this.filteredValue="";this.initialSelectedOption=null;this.handleUpdateError=t=>{this.onerror&&this.onerror(t)};this.onStoreUpdate=(t,e,o,l)=>{switch(e){case"added":t.setAttribute("tabindex",o===0&&l.length===0?"0":"-1"),t.hasAttribute("selected")&&(this.navItems.forEach(c=>c.setAttribute("tabindex","-1")),t.setAttribute("tabindex","0"));break;case"removed":{let c=t;if(c&&(!this.isValidItem(c)||c.tabIndex!==0))return;let f=this.navItems.findIndex(A=>A===c);if(f===-1)return;let y=f+1;y>=this.navItems.length&&(y=f-1)}break;default:break}};this.handleModifiedEvent=t=>{if(this.controlType==="controlled"){this.updateHiddenOptions();return}let e=this.getFirstSelectedOption();switch(t.detail.change){case"selected":{if(t.target.hasAttribute("disabled"))return;e&&e.value!==this.value&&this.setSelectedValue(e,!1);break}case"unselected":{e&&this.setSelectedValue(e,!1);break}default:break}};this.addEventListener(Qt.MODIFIED,this.handleModifiedEvent),this.itemsStore=new Nr(this,{isValidItem:this.isValidItem,onStoreUpdate:this.onStoreUpdate})}get navItems(){return this.itemsStore.items}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(this.handleUpdateError)}isValidItem(t){return t.matches(Or)}openPopover(){this.isOpen=!0}closePopover(){this.isOpen=!1}compareOptionWithValue(t,e){return(t.getAttribute("label")||"").toLowerCase().startsWith(e==null?void 0:e.toLowerCase())}getFirstSelectedOption(){return this.navItems.find(t=>t.hasAttribute("selected"))}getVisibleOptions(t){return this.navItems.filter(e=>this.compareOptionWithValue(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,o=!1){let l=(t==null?void 0:t.getAttribute("label"))||"",c=(t==null?void 0:t.getAttribute("value"))||"";if(!(this.value===c&&this.filteredValue===l)){if(this.controlType==="controlled"&&!o){e&&(Co.onInputCombobox(this,t),Co.onChangeCombobox(this,t));return}this.filteredValue=l,this.value=c,this.lastCommittedValue=c,this.internals.setFormValue(this.value),this.updateHiddenOptions(),this.updateSelectedOption(t),this.resetFocusedOption(),this.setInputValidity(),this.resetHelpText(),e&&!o&&t&&(Co.onInputCombobox(this,t),Co.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=Wt.DEFAULT)}attributeChangedCallback(t,e,o){if(super.attributeChangedCallback(t,e,o),t==="value"&&this.navItems.length&&!(e===null&&o==="")){let l=null;if(o!==""){let c=this.getFirstSelectedOption(),f=this.navItems.find(y=>y.value===o);if(f)l=f;else if(c)l=c;else if(this.placeholder)l=null;else return}this.updateComplete.then(()=>{this.setSelectedValue(l,!1,!0)}).catch(this.handleUpdateError)}t==="validation-message"&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(this.handleUpdateError)}async firstUpdated(t){await this.updateComplete,this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t);let e=this.getFirstSelectedOption();e&&this.controlType!=="controlled"?(this.initialSelectedOption=e,this.setSelectedValue(e)):this.value?this.updateValueBasedSelection():this.placeholder&&this.setInputValidity(),this.lastCommittedValue=this.value,this.navItems.forEach(o=>{o.setAttribute("tabindex","-1")})}updateValueBasedSelection(){let t=this.navItems.find(e=>e.value===this.value);t&&this.setSelectedValue(t,!1,!0)}updated(t){super.updated(t),(t.has("slottedListboxes")||t.has("isOpen"))&&(this.visualCombobox&&"ariaControlsElements"in this.visualCombobox&&(this.visualCombobox.ariaControlsElements=this.slottedListboxes),this.dropDownButton&&"ariaControlsElements"in this.dropDownButton&&(this.dropDownButton.ariaControlsElements=this.slottedListboxes)),(t.has("disabled")||t.has("readonly"))&&(this.disabled||this.readonly)&&this.closePopover(),t.has("value")&&this.updateValueBasedSelection()}setInputValidity(){var t,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(o=>o.value===t||o.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 o=this.querySelector(`mdc-tooltip[triggerid="${e}"]`);o==null||o.setAttribute("visible","")}closeTooltipIfExists(t){let e=t.getAttribute("id");if(!e)return;let o=this.querySelector(`mdc-tooltip[triggerid="${e}"][visible]`);o&&o.removeAttribute("visible")}handleBlurChange(){let t=this.getVisibleOptions(this.filteredValue),e=t.findIndex(l=>l.hasAttribute("data-focused"));if(e!==-1){this.setSelectedValue(t[e]),this.closePopover();return}let o=this.navItems.find(l=>(l.getAttribute("label")||"").toLowerCase()===this.filteredValue.toLowerCase());if(o){this.setSelectedValue(o),this.closePopover();return}if(this.filteredValue!=="")if(this.lastCommittedValue){let l=this.navItems.find(c=>c.value===this.lastCommittedValue);this.setSelectedValue(l)}else this.invalidCustomValueText&&!this.getFirstSelectedOption()&&(this.helpText=this.invalidCustomValueText,this.helpTextType=Wt.ERROR,this.setInputValidity());else this.setSelectedValue(null);this.closePopover()}updateFocusAndScrollIntoView(t,e,o){var l;this.updateOptionAttributes(t[e],!1),this.updateOptionAttributes(t[o],!0),(l=t[o])==null||l.scrollIntoView({block:"nearest"})}handleInputKeydown(t){let e=this.getVisibleOptions(this.filteredValue).filter(c=>!c.hasAttribute("disabled")),o=e.findIndex(c=>c.hasAttribute("data-focused")),l=this.getKeyboardNavMode()===te.SPATIAL;switch(this.getActionForKeyEvent(t)){case q.DOWN:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=e.length-1===o?0:o+1;this.updateFocusAndScrollIntoView(e,o,c),t.preventDefault(),this.keyDownEventHandled();break}case q.UP:{if(!l)this.openPopover();else if(!this.isOpen)break;let c=o===-1||o===0?e.length-1:o-1;this.updateFocusAndScrollIntoView(e,o,c),t.preventDefault(),this.keyDownEventHandled();break}case q.ENTER:{if(l&&!this.isOpen)this.openPopover();else{if(o===-1)return;this.setSelectedValue(e[o]),this.isOpen&&this.closePopover()}this.keyDownEventHandled();break}case q.ESCAPE:{o!==-1&&this.updateOptionAttributes(e[o],!1),e.length&&this.shouldDisplayPopover(e.length)||(this.resetSelectedValue(),this.controlType!=="controlled"&&(this.filteredValue="")),this.keyDownEventHandled();break}case q.TAB:{this.closePopover(),this.keyDownEventHandled();break}case q.HOME:case q.END:{this.resetFocusedOption(),this.keyDownEventHandled();break}default:break}}updateHiddenOptions(){let t=new Map,e=new Set;this.navItems.forEach(o=>{var f;let l=this.compareOptionWithValue(o,this.filteredValue);l?o.removeAttribute("data-hidden"):o.setAttribute("data-hidden","");let c=o.parentElement;if(c&&c.matches(Jd)){let y=c;e.add(y),l&&t.set(y,((f=t.get(y))!=null?f:0)+1)}}),e.forEach(o=>{var f;let l=((f=t.get(o))!=null?f:0)>0,c=o.nextElementSibling;l?(o.removeAttribute("data-hidden"),c&&c.matches(xn)&&c.removeAttribute("data-hidden")):(o.setAttribute("data-hidden",""),c&&c.matches(xn)&&c.setAttribute("data-hidden",""))})}handleInputChange(t){var e;t.preventDefault(),t.stopPropagation(),this.filteredValue=t.target.value,this.resetFocusedOption(),this.updateHiddenOptions(),(e=this.getFirstSelectedOption())==null||e.removeAttribute("selected"),this.isOpen===!1&&this.openPopover(),Co.onInputCombobox(this,{value:this.filteredValue})}handleOptionsClick(t){var o;t.preventDefault(),t.stopPropagation();let e=(o=t.target.closest(Or))!=null?o:null;e&&!e.hasAttribute("disabled")&&(this.setSelectedValue(e),this.closePopover(),this.focusComboboxBase())}shouldDisplayPopover(t){return this.disabled||this.readonly?!1:t||this.noResultText?this.isOpen:!1}renderNativeInput(){return S`
|
|
7572
7576
|
<input
|
|
7573
7577
|
id="${this.inputId}"
|
|
7574
7578
|
name="${this.name}"
|
|
@@ -7600,7 +7604,7 @@
|
|
|
7600
7604
|
@input=${this.handleInputChange}
|
|
7601
7605
|
@keydown=${this.handleInputKeydown}
|
|
7602
7606
|
@blur="${this.handleBlurChange}"
|
|
7603
|
-
aria-autocomplete="${
|
|
7607
|
+
aria-autocomplete="${Zy}"
|
|
7604
7608
|
aria-describedby="${J(this.helpText?Yt.HELPER_TEXT_ID:"")}"
|
|
7605
7609
|
aria-disabled="${this.disabled?"true":"false"}"
|
|
7606
7610
|
aria-expanded="${this.isOpen?"true":"false"}"
|
|
@@ -7663,7 +7667,7 @@
|
|
|
7663
7667
|
</mdc-popover>
|
|
7664
7668
|
</div>
|
|
7665
7669
|
${this.renderHelperText()}
|
|
7666
|
-
`}};we.styles=[...Gr.styles,...Zt.styles,...
|
|
7670
|
+
`}};we.styles=[...Gr.styles,...Zt.styles,...Qy],h([u({type:String})],we.prototype,"placeholder",2),h([u({type:String,reflect:!0})],we.prototype,"placement",2),h([u({type:String,attribute:"no-result-text",reflect:!0})],we.prototype,"noResultText",2),h([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],we.prototype,"invalidCustomValueText",2),h([u({type:String,reflect:!0})],we.prototype,"boundary",2),h([u({type:String,reflect:!0})],we.prototype,"strategy",2),h([u({type:Number,reflect:!0,attribute:"popover-z-index"})],we.prototype,"popoverZIndex",2),h([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],we.prototype,"backdropAppendTo",2),h([Ut(`[role="${tt.COMBOBOX}"]`)],we.prototype,"visualCombobox",2),h([Ut('[part="combobox-button"]')],we.prototype,"dropDownButton",2),h([Kt({selector:ac})],we.prototype,"slottedListboxes",2),h([nt()],we.prototype,"isOpen",2),h([nt()],we.prototype,"filteredValue",2);var Nm=we;Nm.register(Xy);var nI=Nm;var Jy=(n,i,t)=>{let e=new Map;for(let o=i;o<=t;o++)e.set(n[o],o);return e},tE=Ii(class extends ri{constructor(n){if(super(n),n.type!==ur.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,i,t){let e;t===void 0?t=i:i!==void 0&&(e=i);let o=[],l=[],c=0;for(let f of n)o[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:o}}render(n,i,t){return this.dt(n,i,t).values}update(n,[i,t,e]){var lt;let o=Df(n),{values:l,keys:c}=this.dt(i,t,e);if(!Array.isArray(o))return this.ut=c,l;let f=(lt=this.ut)!=null?lt:this.ut=[],y=[],A,F,W=0,Q=o.length-1,Z=0,et=l.length-1;for(;W<=Q&&Z<=et;)if(o[W]===null)W++;else if(o[Q]===null)Q--;else if(f[W]===c[Z])y[Z]=so(o[W],l[Z]),W++,Z++;else if(f[Q]===c[et])y[et]=so(o[Q],l[et]),Q--,et--;else if(f[W]===c[et])y[et]=so(o[W],l[et]),Us(n,y[et+1],o[W]),W++,et--;else if(f[Q]===c[Z])y[Z]=so(o[Q],l[Z]),Us(n,o[W],o[Q]),Q--,Z++;else if(A===void 0&&(A=Jy(c,Z,et),F=Jy(f,W,Q)),A.has(f[W]))if(A.has(f[Q])){let dt=F.get(c[Z]),ft=dt!==void 0?o[dt]:null;if(ft===null){let It=Us(n,o[W]);so(It,l[Z]),y[Z]=It}else y[Z]=so(ft,l[Z]),Us(n,o[W],ft),o[dt]=null;Z++}else zl(o[Q]),Q--;else zl(o[W]),W++;for(;Z<=et;){let dt=Us(n,y[et+1]);so(dt,l[Z]),y[Z++]=dt}for(;W<=Q;){let dt=o[W++];dt!==null&&zl(dt)}return this.ut=c,Vl(n,y),Re}});var eE=z.constructTagName("slider"),lI={START:"start",END:"end",UNDEFINED:void 0},ko={MIN:0,MAX:100,STEP:1,STATE:lI.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var dI=B`
|
|
7667
7671
|
:host {
|
|
7668
7672
|
width: 100%;
|
|
7669
7673
|
--mdc-slider-tooltip-left: 0;
|
|
@@ -7885,7 +7889,7 @@
|
|
|
7885
7889
|
border: 1px solid;
|
|
7886
7890
|
}
|
|
7887
7891
|
}
|
|
7888
|
-
`,
|
|
7892
|
+
`,rE=[Qr,dI];var Ot=class extends Lt(wt(X)){constructor(){super();this.thumbFocused=ko.STATE;this.thumbHovered=ko.STATE;this.range=!1;this.min=ko.MIN;this.max=ko.MAX;this.step=ko.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 o;let e=this.getActionForKeyEvent(t);if(this.getKeyboardNavMode()===te.SPATIAL){if(this.softDisabled)return;let l=(o=this.shadowRoot)==null?void 0:o.activeElement,c=(l==null?void 0:l.tagName)==="INPUT";if(t.preventDefault(),!c){this.spatialNavEditMode=!1;return}if(!this.spatialNavEditMode&&e===q.ENTER){this.spatialNavEditMode=!0,this.keyDownEventHandled();return}this.spatialNavEditMode&&((e===q.ENTER||e===q.ESCAPE||e===q.UP||e===q.DOWN)&&(this.spatialNavEditMode=!1,(e===q.ENTER||e===q.ESCAPE)&&this.keyDownEventHandled()),e===q.LEFT&&(l==null||l.stepDown(),this.keyDownEventHandled(),this.handleInput(l)),e===q.RIGHT&&(l==null||l.stepUp(),this.keyDownEventHandled(),this.handleInput(l)))}else this.softDisabled&&e!==q.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 o=e.indexOf(t),l=e[o];if(o===0){if(!this.valueEnd)return;let c=Number(l.value);c>this.valueEnd?(l.value=String(this.valueEnd),this.valueStart=this.valueEnd):c>=this.min&&c<this.valueEnd?this.valueStart=c:c<this.min&&(l.value=String(this.min),this.valueStart=this.min)}else{if(!this.valueStart)return;let c=Number(l.value);c<this.valueStart?(l.value=String(this.valueStart),this.valueEnd=this.valueStart):c<=this.max&&c>this.valueStart?this.valueEnd=c:c>this.max&&(l.value=String(this.max),this.valueEnd=this.max)}}iconTemplate(t,e){return typeof t=="string"&&t.length>0?S`<mdc-icon
|
|
7889
7893
|
name="${t}"
|
|
7890
7894
|
part="${e}"
|
|
7891
7895
|
length-unit="${ko.ICON_LENGTH_UNIT}"
|
|
@@ -7901,7 +7905,7 @@
|
|
|
7901
7905
|
${e} ${y}%,
|
|
7902
7906
|
${e} 100%
|
|
7903
7907
|
)`}else{if(!this.inputElements[0])return;let o=Number(this.inputElements[0].value),l=Number(this.inputElements[0].max)||1,c=Math.max(0,Math.min(100,(o-this.min)/(l-this.min)*100));this.inputElements[0].style.background=`linear-gradient(to right, ${t} ${c}%, ${e} ${c}%)`}}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),o=[];if(this.inputElements[0]){let c=(Number(this.inputElements[0].value)-this.min)/(this.max-this.min);o.push(c)}if(this.range&&this.inputElements[1]){let c=(Number(this.inputElements[1].value)-this.min)/(this.max-this.min);o.push(c)}return o.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?S` <div part="slider-ticks">
|
|
7904
|
-
${
|
|
7908
|
+
${tE(t,e=>e,e=>S`<span part="slider-tick" style=${this.getTickStyles(e)}></span>`)}
|
|
7905
7909
|
</div>`:K}render(){var t,e,o,l,c,f,y,A,F,W,Q,Z,et,lt,dt,ft,It;return S`
|
|
7906
7910
|
${this.label?S`<label part="slider-label" for="single-slider">${this.label}</label>`:null}
|
|
7907
7911
|
<div part="slider-track">
|
|
@@ -7992,7 +7996,7 @@
|
|
|
7992
7996
|
${this.labelStart?S`<span part="slider-label-start">${this.labelStart}</span>`:null}
|
|
7993
7997
|
${this.labelEnd?S`<span part="slider-label-end">${this.labelEnd}</span>`:null}
|
|
7994
7998
|
</div>
|
|
7995
|
-
`}};Ot.styles=[...X.styles,...
|
|
7999
|
+
`}};Ot.styles=[...X.styles,...rE],h([nt()],Ot.prototype,"thumbFocused",2),h([nt()],Ot.prototype,"thumbHovered",2),h([u({reflect:!0,type:Boolean})],Ot.prototype,"range",2),h([u({reflect:!0,type:Number})],Ot.prototype,"min",2),h([u({reflect:!0,type:Number})],Ot.prototype,"max",2),h([u({reflect:!0,type:Boolean})],Ot.prototype,"disabled",2),h([u({reflect:!0,type:Boolean,attribute:"soft-disabled"})],Ot.prototype,"softDisabled",2),h([u({reflect:!0,type:String,attribute:"leading-icon"})],Ot.prototype,"leadingIcon",2),h([u({reflect:!0,type:String,attribute:"trailing-icon"})],Ot.prototype,"trailingIcon",2),h([u({reflect:!0,type:Number})],Ot.prototype,"value",2),h([u({reflect:!0,type:Number,attribute:"value-start"})],Ot.prototype,"valueStart",2),h([u({reflect:!0,type:Number,attribute:"value-end"})],Ot.prototype,"valueEnd",2),h([u({reflect:!0,type:Number})],Ot.prototype,"step",2),h([u({reflect:!0,type:String})],Ot.prototype,"label",2),h([u({reflect:!0,type:String,attribute:"label-start"})],Ot.prototype,"labelStart",2),h([u({reflect:!0,type:String,attribute:"label-end"})],Ot.prototype,"labelEnd",2),h([u({reflect:!0,type:String,attribute:"value-label"})],Ot.prototype,"valueLabel",2),h([u({reflect:!0,type:String,attribute:"value-label-start"})],Ot.prototype,"valueLabelStart",2),h([u({reflect:!0,type:String,attribute:"value-label-end"})],Ot.prototype,"valueLabelEnd",2),h([u({reflect:!0,type:String})],Ot.prototype,"name",2),h([u({reflect:!0,type:String,attribute:"name-start"})],Ot.prototype,"nameStart",2),h([u({reflect:!0,type:String,attribute:"name-end"})],Ot.prototype,"nameEnd",2),h([u({reflect:!0,type:String,attribute:"data-aria-label"})],Ot.prototype,"dataAriaLabel",2),h([u({reflect:!0,type:String,attribute:"start-aria-label"})],Ot.prototype,"startAriaLabel",2),h([u({reflect:!0,type:String,attribute:"end-aria-label"})],Ot.prototype,"endAriaLabel",2),h([u({reflect:!0,type:String,attribute:"data-aria-valuetext"})],Ot.prototype,"dataAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"start-aria-valuetext"})],Ot.prototype,"startAriaValuetext",2),h([u({reflect:!0,type:String,attribute:"end-aria-valuetext"})],Ot.prototype,"endAriaValueText",2),h([u({reflect:!0,type:Boolean,attribute:"hide-tooltip"})],Ot.prototype,"hideTooltip",2),h([Qu('input[type="range"]')],Ot.prototype,"inputElements",2);var Mm=Ot;Mm.register(eE);var cI=Mm;var hI=B`
|
|
7996
8000
|
:host {
|
|
7997
8001
|
--mdc-listbox-max-height: auto;
|
|
7998
8002
|
|
|
@@ -8009,7 +8013,7 @@
|
|
|
8009
8013
|
::slotted(mdc-option) {
|
|
8010
8014
|
width: 100%;
|
|
8011
8015
|
}
|
|
8012
|
-
`,
|
|
8016
|
+
`,iE=[hI];var Ss=class extends vo(di(X)){constructor(){super();this.loop="false";this.name=void 0;this.value=void 0;this.itemsStore=new Nr(this,{isValidItem:this.isValidItem});this.handleDestroyEvent=()=>{this.handleNoSelection()};this.addEventListener("click",this.handleClick),this.addEventListener("modified",this.handleModifiedEvent),this.addEventListener("destroyed",this.handleDestroyEvent)}connectedCallback(){super.connectedCallback(),this.role=tt.LISTBOX}handleModifiedEvent(t){let e=t.target;switch(t.detail.change){case"enabled":this.itemsStore.add(e);break;case"disabled":this.itemsStore.delete(e);break;case"selected":this.setSelectedOption(e,!1,!1);break;case"unselected":this.handleNoSelection();break;default:break}}handleNoSelection(){this.getFirstSelectedOption()||(this.selectedOption=void 0,this.value=void 0)}get navItems(){return this.itemsStore.items}isValidItem(t){return t.matches(`${Or}:not([disabled])`)}handleClick(t){let e=t.target;this.isValidItem(e)&&this.setSelectedOption(e)}getFirstSelectedOption(){return this.itemsStore.items.find(t=>t.matches("[selected]"))}updated(t){if(t.has("value")){let e=this.itemsStore.items.find(o=>o.value===this.value);e?this.setSelectedOption(e,!1):this.setSelectedOption(null,!1)}}setSelectedOption(t,e=!0,o=!0){t!=null&&t.disabled||t!=null&&t.softDisabled||(o&&this.updateSelectedInChildOptions(t),this.selectedOption=t,this.value=t==null?void 0:t.value,e&&this.fireEvents())}updateSelectedInChildOptions(t){this.itemsStore.items.forEach(e=>e.removeAttribute("selected")),t==null||t.toggleAttribute("selected",!0)}fireEvents(){this.selectedOption&&this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}render(){return S`<slot part="container"></slot>`}};Ss.styles=[...Ep.styles,...iE],h([u({type:String,reflect:!0})],Ss.prototype,"name",2),h([u({type:String,reflect:!0})],Ss.prototype,"value",2),h([nt()],Ss.prototype,"selectedOption",2);var Lm=Ss;var oE=z.constructTagName("listbox");Lm.register(oE);var pI=Lm;var sE=z.constructTagName("banner"),ya={CUSTOM:"custom",INFORMATIONAL:"informational",WARNING:"warning",ERROR:"error",SUCCESS:"success"},qn={INFORMATIONAL_ICON_NAME:"info-circle-bold",SUCCESS_ICON_NAME:"check-circle-bold",WARNING_ICON_NAME:"warning-bold",ERROR_ICON_NAME:"error-legacy-bold"},Ac={VARIANT:ya.CUSTOM,PREFIX_ICON_SIZE:1.25};var mI=B`
|
|
8013
8017
|
:host {
|
|
8014
8018
|
--mdc-banner-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
|
8015
8019
|
--mdc-banner-border-color: var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -8092,7 +8096,7 @@
|
|
|
8092
8096
|
gap: var(--mdc-banner-gap);
|
|
8093
8097
|
flex-wrap: wrap;
|
|
8094
8098
|
}
|
|
8095
|
-
`,
|
|
8099
|
+
`,aE=[mI];var nE=n=>{switch(n){case ya.INFORMATIONAL:return qn.INFORMATIONAL_ICON_NAME;case ya.SUCCESS:return qn.SUCCESS_ICON_NAME;case ya.WARNING:return qn.WARNING_ICON_NAME;case ya.ERROR:return qn.ERROR_ICON_NAME;default:return null}};var Is=class extends X{constructor(){super(...arguments);this.variant=Ac.VARIANT}renderIcon(t){return t?S`
|
|
8096
8100
|
<mdc-icon name="${t}" size="${Ac.PREFIX_ICON_SIZE}" part="leading-icon" length-unit="rem"></mdc-icon>
|
|
8097
8101
|
`:K}getTextLabel(){return this.label?S`
|
|
8098
8102
|
<mdc-text
|
|
@@ -8111,7 +8115,7 @@
|
|
|
8111
8115
|
<slot name="content">
|
|
8112
8116
|
<div part="leading">
|
|
8113
8117
|
<slot name="leading-icon">
|
|
8114
|
-
${this.variant!==Ac.VARIANT?this.renderIcon(
|
|
8118
|
+
${this.variant!==Ac.VARIANT?this.renderIcon(nE(this.variant)):K}
|
|
8115
8119
|
</slot>
|
|
8116
8120
|
<slot name="leading-text">
|
|
8117
8121
|
<div part="leading-text">${this.getTextLabel()}</div>
|
|
@@ -8121,7 +8125,7 @@
|
|
|
8121
8125
|
<slot name="trailing-actions"></slot>
|
|
8122
8126
|
</div>
|
|
8123
8127
|
</slot>
|
|
8124
|
-
`}};Is.styles=[...X.styles,...
|
|
8128
|
+
`}};Is.styles=[...X.styles,...aE],h([u({type:String,reflect:!0})],Is.prototype,"variant",2),h([u({type:String,reflect:!0})],Is.prototype,"label",2),h([u({type:String,reflect:!0,attribute:"secondary-label"})],Is.prototype,"secondaryLabel",2);var Om=Is;Om.register(sE);var uI=Om;var fI=B`
|
|
8125
8129
|
:host {
|
|
8126
8130
|
--mdc-verticaltablist-width: 100%;
|
|
8127
8131
|
|
|
@@ -8142,10 +8146,10 @@
|
|
|
8142
8146
|
--mdc-tab-line-active-indicator-width: 0.125rem;
|
|
8143
8147
|
--mdc-tab-content-justification: space-between;
|
|
8144
8148
|
}
|
|
8145
|
-
`,
|
|
8149
|
+
`,lE=[fI];var Sc=class extends uc(Pi){constructor(){super(...arguments);this.orientation="vertical"}isValidItem(t){return t.matches(`${va}:not([disabled])`)}onElementStoreUpdate(t,e,o){super.onElementStoreUpdate(t,e,o),e==="added"&&t.setAttribute("variant","line")}connectedCallback(){super.connectedCallback(),this.role=tt.TABLIST,this.setAttribute("aria-orientation","vertical")}render(){return S`
|
|
8146
8150
|
<!-- make the container slot role presentation to keep it ignored in a11y tree -->
|
|
8147
8151
|
<slot part="container" role="presentation"></slot>
|
|
8148
|
-
`}};Sc.styles=[...Pi.styles,...
|
|
8152
|
+
`}};Sc.styles=[...Pi.styles,...lE];var Rm=Sc;var dE=z.constructTagName("verticaltablist");Rm.register(dE);var vI=Rm;})();
|
|
8149
8153
|
/*! Bundled license information:
|
|
8150
8154
|
|
|
8151
8155
|
lottie-web/build/player/lottie_light.js:
|