@fluid-topics/ft-select 0.1.6 → 0.1.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.
@@ -0,0 +1,568 @@
1
+ !function(t,e,i,r,o,a,s){
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ var p;const n=globalThis.trustedTypes,c=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,d="?"+l,f=`<${d}>`,u=document,h=(t="")=>u.createComment(t),m=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,b=/>/g,$=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,x=/'/g,w=/"/g,k=/^(?:script|style|textarea|title)$/i,S=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),A=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),O=new WeakMap,T=u.createTreeWalker(u,129,null,!1),_=(t,e)=>{const i=t.length-1,r=[];let o,a=2===e?"<svg>":"",s=g;for(let e=0;e<i;e++){const i=t[e];let p,n,c=-1,d=0;for(;d<i.length&&(s.lastIndex=d,n=s.exec(i),null!==n);)d=s.lastIndex,s===g?"!--"===n[1]?s=v:void 0!==n[1]?s=b:void 0!==n[2]?(k.test(n[2])&&(o=RegExp("</"+n[2],"g")),s=$):void 0!==n[3]&&(s=$):s===$?">"===n[0]?(s=null!=o?o:g,c=-1):void 0===n[1]?c=-2:(c=s.lastIndex-n[2].length,p=n[1],s=void 0===n[3]?$:'"'===n[3]?w:x):s===w||s===x?s=$:s===v||s===b?s=g:(s=$,o=void 0);const u=s===$&&t[e+1].startsWith("/>")?" ":"";a+=s===g?i+f:c>=0?(r.push(p),i.slice(0,c)+"$lit$"+i.slice(c)+l+u):i+l+(-2===c?(r.push(void 0),e):u)}const p=a+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==c?c.createHTML(p):p,r]};class E{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const s=t.length-1,p=this.parts,[c,f]=_(t,e);if(this.el=E.createElement(c,i),T.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=T.nextNode())&&p.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(l)){const i=f[a++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(l),e=/([.?@])?(.*)/.exec(i);p.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?j:"?"===e[1]?B:"@"===e[1]?N:F})}else p.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(k.test(r.tagName)){const t=r.textContent.split(l),e=t.length-1;if(e>0){r.textContent=n?n.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],h()),T.nextNode(),p.push({type:2,index:++o});r.append(t[e],h())}}}else if(8===r.nodeType)if(r.data===d)p.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(l,t+1));)p.push({type:7,index:o}),t+=l.length-1}o++}}static createElement(t,e){const i=u.createElement("template");return i.innerHTML=t,i}}function C(t,e,i=t,r){var o,a,s,p;if(e===A)return e;let n=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const c=m(e)?void 0:e._$litDirective$;return(null==n?void 0:n.constructor)!==c&&(null===(a=null==n?void 0:n._$AO)||void 0===a||a.call(n,!1),void 0===c?n=void 0:(n=new c(t),n._$AT(t,i,r)),void 0!==r?(null!==(s=(p=i)._$Cl)&&void 0!==s?s:p._$Cl=[])[r]=n:i._$Cu=n),void 0!==n&&(e=C(t,n._$AS(t,e.values),n,r)),e}class I{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:u).importNode(i,!0);T.currentNode=o;let a=T.nextNode(),s=0,p=0,n=r[0];for(;void 0!==n;){if(s===n.index){let e;2===n.type?e=new D(a,a.nextSibling,this,t):1===n.type?e=new n.ctor(a,n.name,n.strings,this,t):6===n.type&&(e=new M(a,this,t)),this.v.push(e),n=r[++p]}s!==(null==n?void 0:n.index)&&(a=T.nextNode(),s++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class D{constructor(t,e,i,r){var o;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),m(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==A&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return y(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&m(this._$AH)?this._$AA.nextSibling.data=t:this.S(u.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=E.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new I(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=O.get(t.strings);return void 0===e&&O.set(t.strings,e=new E(t)),e}A(t){y(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new D(this.M(h()),this.M(h()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class F{constructor(t,e,i,r,o){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(void 0===o)t=C(this,t,e,0),a=!m(t)||t!==this._$AH&&t!==A,a&&(this._$AH=t);else{const r=t;let s,p;for(t=o[0],s=0;s<o.length-1;s++)p=C(this,r[i+s],e,s),p===A&&(p=this._$AH[s]),a||(a=!m(p)||p!==this._$AH[s]),p===z?t=z:t!==z&&(t+=(null!=p?p:"")+o[s+1]),this._$AH[s]=p}a&&!r&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class j extends F{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const R=n?n.emptyScript:"";class B extends F{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,R):this.element.removeAttribute(this.name)}}class N extends F{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=C(this,t,e,0))&&void 0!==i?i:z)===A)return;const r=this._$AH,o=t===z&&r!==z||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==z&&(r===z||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class M{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(E,D),(null!==(p=globalThis.litHtmlVersions)&&void 0!==p?p:globalThis.litHtmlVersions=[]).push("2.1.3");
8
+ /**
9
+ * @license
10
+ * Copyright 2020 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */
13
+ const U=t=>({_$litStatic$:t}),P=new Map,G=(t=>(e,...i)=>{var r;const o=i.length;let a,s;const p=[],n=[];let c,l=0,d=!1;for(;l<o;){for(c=e[l];l<o&&void 0!==(s=i[l],a=null===(r=s)||void 0===r?void 0:r._$litStatic$);)c+=a+e[++l],d=!0;n.push(s),p.push(c),l++}if(l===o&&p.push(e[o]),d){const t=p.join("$$lit$$");void 0===(e=P.get(t))&&(p.raw=p,P.set(t,e=p)),i=n}return t(e,...i)})(S);var V,Z=function(t,e,i,r){for(var o,a=arguments.length,s=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(o=t[p])&&(s=(a<3?o(s):a>3?o(e,i,s):o(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(V||(V={}));const L=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.titleFont),q=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.contentFont),W={fontFamily:q,fontSize:a.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:a.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:a.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:a.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:a.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},K=a.FtCssVariable.extend("--ft-typography-title-font-family",L),X=a.FtCssVariable.extend("--ft-typography-title-font-size",W.fontSize,"20px"),Y=a.FtCssVariable.extend("--ft-typography-title-font-weight",W.fontWeight,"normal"),J=a.FtCssVariable.extend("--ft-typography-title-letter-spacing",W.letterSpacing,"0.15px"),Q=a.FtCssVariable.extend("--ft-typography-title-line-height",W.lineHeight,"24px"),tt=a.FtCssVariable.extend("--ft-typography-title-text-transform",W.textTransform,"inherit"),et=a.FtCssVariable.extend("--ft-typography-title-dense-font-family",L),it=a.FtCssVariable.extend("--ft-typography-title-dense-font-size",W.fontSize,"14px"),rt=a.FtCssVariable.extend("--ft-typography-title-dense-font-weight",W.fontWeight,"normal"),ot=a.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",W.letterSpacing,"0.105px"),at=a.FtCssVariable.extend("--ft-typography-title-dense-line-height",W.lineHeight,"24px"),st=a.FtCssVariable.extend("--ft-typography-title-dense-text-transform",W.textTransform,"inherit"),pt=a.FtCssVariable.extend("--ft-typography-subtitle1-font-family",q),nt=a.FtCssVariable.extend("--ft-typography-subtitle1-font-size",W.fontSize,"16px"),ct=a.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",W.fontWeight,"600"),lt=a.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",W.letterSpacing,"0.144px"),dt=a.FtCssVariable.extend("--ft-typography-subtitle1-line-height",W.lineHeight,"24px"),ft=a.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",W.textTransform,"inherit"),ut=a.FtCssVariable.extend("--ft-typography-subtitle2-font-family",q),ht=a.FtCssVariable.extend("--ft-typography-subtitle2-font-size",W.fontSize,"14px"),mt=a.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",W.fontWeight,"normal"),yt=a.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",W.letterSpacing,"0.098px"),gt=a.FtCssVariable.extend("--ft-typography-subtitle2-line-height",W.lineHeight,"24px"),vt=a.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",W.textTransform,"inherit"),bt={fontFamily:a.FtCssVariable.extend("--ft-typography-body1-font-family",q),fontSize:a.FtCssVariable.extend("--ft-typography-body1-font-size",W.fontSize,"16px"),fontWeight:a.FtCssVariable.extend("--ft-typography-body1-font-weight",W.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-body1-letter-spacing",W.letterSpacing,"0.496px"),lineHeight:a.FtCssVariable.extend("--ft-typography-body1-line-height",W.lineHeight,"24px"),textTransform:a.FtCssVariable.extend("--ft-typography-body1-text-transform",W.textTransform,"inherit")},$t=a.FtCssVariable.extend("--ft-typography-body2-font-family",q),xt=a.FtCssVariable.extend("--ft-typography-body2-font-size",W.fontSize,"14px"),wt=a.FtCssVariable.extend("--ft-typography-body2-font-weight",W.fontWeight,"normal"),kt=a.FtCssVariable.extend("--ft-typography-body2-letter-spacing",W.letterSpacing,"0.252px"),St=a.FtCssVariable.extend("--ft-typography-body2-line-height",W.lineHeight,"20px"),At=a.FtCssVariable.extend("--ft-typography-body2-text-transform",W.textTransform,"inherit"),zt={fontFamily:a.FtCssVariable.extend("--ft-typography-caption-font-family",q),fontSize:a.FtCssVariable.extend("--ft-typography-caption-font-size",W.fontSize,"12px"),fontWeight:a.FtCssVariable.extend("--ft-typography-caption-font-weight",W.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-caption-letter-spacing",W.letterSpacing,"0.396px"),lineHeight:a.FtCssVariable.extend("--ft-typography-caption-line-height",W.lineHeight,"16px"),textTransform:a.FtCssVariable.extend("--ft-typography-caption-text-transform",W.textTransform,"inherit")},Ot=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",q),Tt=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",W.fontSize,"10px"),_t=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",W.fontWeight,"normal"),Et=a.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",W.letterSpacing,"0.33px"),Ct=a.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",W.lineHeight,"16px"),It=a.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",W.textTransform,"inherit"),Dt=a.FtCssVariable.extend("--ft-typography-overline-font-family",q),Ft=a.FtCssVariable.extend("--ft-typography-overline-font-size",W.fontSize,"10px"),jt=a.FtCssVariable.extend("--ft-typography-overline-font-weight",W.fontWeight,"normal"),Rt=a.FtCssVariable.extend("--ft-typography-overline-letter-spacing",W.letterSpacing,"1.5px"),Bt=a.FtCssVariable.extend("--ft-typography-overline-line-height",W.lineHeight,"16px"),Nt=a.FtCssVariable.extend("--ft-typography-overline-text-transform",W.textTransform,"uppercase"),Mt=a.FtCssVariable.extend("--ft-typography-button-font-family",q),Ht=a.FtCssVariable.extend("--ft-typography-button-font-size",W.fontSize,"14px"),Ut=a.FtCssVariable.extend("--ft-typography-button-font-weight",W.fontWeight,"600"),Pt=a.FtCssVariable.extend("--ft-typography-button-letter-spacing",W.letterSpacing,"1.246px"),Gt=a.FtCssVariable.extend("--ft-typography-button-line-height",W.lineHeight,"16px"),Vt=a.FtCssVariable.extend("--ft-typography-button-text-transform",W.textTransform,"uppercase"),Zt=e.css`
14
+ .ft-typography--title {
15
+ font-family: ${K};
16
+ font-size: ${X};
17
+ font-weight: ${Y};
18
+ letter-spacing: ${J};
19
+ line-height: ${Q};
20
+ text-transform: ${tt};
21
+ }
22
+ `,Lt=e.css`
23
+ .ft-typography--title-dense {
24
+ font-family: ${et};
25
+ font-size: ${it};
26
+ font-weight: ${rt};
27
+ letter-spacing: ${ot};
28
+ line-height: ${at};
29
+ text-transform: ${st};
30
+ }
31
+ `,qt=e.css`
32
+ .ft-typography--subtitle1 {
33
+ font-family: ${pt};
34
+ font-size: ${nt};
35
+ font-weight: ${ct};
36
+ letter-spacing: ${lt};
37
+ line-height: ${dt};
38
+ text-transform: ${ft};
39
+ }
40
+ `,Wt=e.css`
41
+ .ft-typography--subtitle2 {
42
+ font-family: ${ut};
43
+ font-size: ${ht};
44
+ font-weight: ${mt};
45
+ letter-spacing: ${yt};
46
+ line-height: ${gt};
47
+ text-transform: ${vt};
48
+ }
49
+
50
+ `,Kt=e.css`
51
+ .ft-typography--body1 {
52
+ font-family: ${bt.fontFamily};
53
+ font-size: ${bt.fontSize};
54
+ font-weight: ${bt.fontWeight};
55
+ letter-spacing: ${bt.letterSpacing};
56
+ line-height: ${bt.lineHeight};
57
+ text-transform: ${bt.textTransform};
58
+ }
59
+ `,Xt=e.css`
60
+ .ft-typography--body2 {
61
+ font-family: ${$t};
62
+ font-size: ${xt};
63
+ font-weight: ${wt};
64
+ letter-spacing: ${kt};
65
+ line-height: ${St};
66
+ text-transform: ${At};
67
+ }
68
+ `,Yt=e.css`
69
+ .ft-typography--caption {
70
+ font-family: ${zt.fontFamily};
71
+ font-size: ${zt.fontSize};
72
+ font-weight: ${zt.fontWeight};
73
+ letter-spacing: ${zt.letterSpacing};
74
+ line-height: ${zt.lineHeight};
75
+ text-transform: ${zt.textTransform};
76
+ }
77
+ `,Jt=e.css`
78
+ .ft-typography--breadcrumb {
79
+ font-family: ${Ot};
80
+ font-size: ${Tt};
81
+ font-weight: ${_t};
82
+ letter-spacing: ${Et};
83
+ line-height: ${Ct};
84
+ text-transform: ${It};
85
+ }
86
+ `,Qt=e.css`
87
+ .ft-typography--overline {
88
+ font-family: ${Dt};
89
+ font-size: ${Ft};
90
+ font-weight: ${jt};
91
+ letter-spacing: ${Rt};
92
+ line-height: ${Bt};
93
+ text-transform: ${Nt};
94
+ }
95
+ `,te=e.css`
96
+ .ft-typography--button {
97
+ font-family: ${Mt};
98
+ font-size: ${Ht};
99
+ font-weight: ${Ut};
100
+ letter-spacing: ${Pt};
101
+ line-height: ${Gt};
102
+ text-transform: ${Vt};
103
+ }
104
+ `;let ee=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}getStyles(){return[Zt,Lt,qt,Wt,Kt,Xt,Yt,Jt,Qt,te]}getTemplate(){return this.element?G`
105
+ <${U(this.element)}
106
+ class="ft-typography ft-typography--${this.variant}">
107
+ <slot></slot>
108
+ </${U(this.element)}>
109
+ `:G`
110
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
111
+ `}};Z([i.property()],ee.prototype,"element",void 0),Z([i.property()],ee.prototype,"variant",void 0),ee=Z([a.customElement("ft-typography")],ee);var ie=function(t,e,i,r){for(var o,a=arguments.length,s=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(o=t[p])&&(s=(a<3?o(s):a>3?o(e,i,s):o(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};const re={fontSize:a.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:a.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:a.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:a.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:a.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:a.FtCssVariable.extend("--ft-input-label-border-color",a.designSystemVariables.colorOutline),textColor:a.FtCssVariable.extend("--ft-input-label-text-color",a.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:a.FtCssVariable.extend("--ft-input-label-disabled-text-color",a.designSystemVariables.colorOnSurfaceDisabled),colorSurface:a.FtCssVariable.external(a.designSystemVariables.colorSurface,"Design system"),borderRadiusS:a.FtCssVariable.external(a.designSystemVariables.borderRadiusS,"Design system")};let oe=class extends a.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}getStyles(){return[Yt,e.css`
112
+ .ft-input-label {
113
+ position: absolute;
114
+ inset: 0;
115
+ display: flex;
116
+ }
117
+
118
+ .ft-input-label {
119
+ border-color: ${re.borderColor};
120
+ }
121
+
122
+ .ft-input-label:before,
123
+ .ft-input-label:after {
124
+ content: "";
125
+ display: flex;
126
+ border-bottom-width: 1px;
127
+ border-bottom-style: solid;
128
+ border-color: inherit;
129
+ }
130
+
131
+ .ft-input-label:before {
132
+ width: ${re.horizontalSpacing};
133
+ flex-shrink: 0;
134
+ }
135
+
136
+ .ft-input-label:after {
137
+ flex-grow: 1;
138
+ flex-shrink: 1;
139
+ }
140
+
141
+ .ft-input-label--text {
142
+ display: flex;
143
+ flex-shrink: 1;
144
+ position: relative;
145
+ border-bottom-width: 1px;
146
+ border-bottom-style: solid;
147
+ border-color: inherit;
148
+ color: ${re.textColor};
149
+ transition: font-size 250ms, line-height 250ms, color 250ms;
150
+ ${a.setVariable(zt.fontSize,re.fontSize)};
151
+ ${a.setVariable(zt.lineHeight,re.fontSize)};
152
+ }
153
+
154
+ .ft-input-label--disabled .ft-input-label--text {
155
+ color: ${re.disabledTextColor};
156
+ }
157
+
158
+ .ft-input-label--hidden-text {
159
+ padding: 0 4px;
160
+ opacity: 0;
161
+ }
162
+
163
+ .ft-input-label--floating-text {
164
+ position: absolute;
165
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
166
+ transition: top 250ms;
167
+ width: calc(100% - 8px);
168
+ overflow: hidden;
169
+ white-space: nowrap;
170
+ text-overflow: ellipsis;
171
+ padding: ${re.verticalSpacing} 4px;
172
+ margin: calc(${re.verticalSpacing} * -1) 0;
173
+ }
174
+
175
+ .ft-input-label--raised .ft-input-label--text {
176
+ ${a.setVariable(zt.fontSize,re.raisedFontSize)};
177
+ ${a.setVariable(zt.lineHeight,re.raisedFontSize)};
178
+ }
179
+
180
+ .ft-input-label--raised .ft-input-label--floating-text {
181
+ top: ${re.verticalSpacing};
182
+ }
183
+
184
+ .ft-input-label--outlined .ft-input-label--text,
185
+ .ft-input-label--outlined:before,
186
+ .ft-input-label--outlined:after {
187
+ border-top-width: 1px;
188
+ border-top-style: solid;
189
+ }
190
+
191
+ .ft-input-label--outlined:before {
192
+ border-left-width: 1px;
193
+ border-left-style: solid;
194
+ border-radius: ${re.borderRadiusS} 0 0 ${re.borderRadiusS};
195
+ }
196
+
197
+ .ft-input-label--outlined:after {
198
+ border-right-width: 1px;
199
+ border-right-style: solid;
200
+ border-radius: 0 ${re.borderRadiusS} ${re.borderRadiusS} 0;
201
+ }
202
+
203
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
204
+ padding: 4px;
205
+ z-index: ${re.raisedZIndex};
206
+ background-color: ${re.colorSurface};
207
+ border-radius: ${re.borderRadiusS};
208
+ top: calc(var(--ft-typography-caption-line-height) / -2);
209
+ }
210
+
211
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
212
+ border-top: none;
213
+ }
214
+ `]}getTemplate(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return e.html`
215
+ <div class="${r.classMap(t)}">
216
+ ${this.text?e.html`
217
+ <div class="ft-input-label--text ft-typography--caption">
218
+ <span class="ft-input-label--floating-text">${this.text}</span>
219
+ <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
220
+ </div>
221
+ `:null}
222
+ </div>
223
+ `}};oe.elementDefinitions={},ie([i.property({type:String})],oe.prototype,"text",void 0),ie([i.property({type:Boolean})],oe.prototype,"raised",void 0),ie([i.property({type:Boolean})],oe.prototype,"outlined",void 0),ie([i.property({type:Boolean})],oe.prototype,"disabled",void 0),oe=ie([a.customElement("ft-input-label")],oe);
224
+ /*! *****************************************************************************
225
+ Copyright (c) Microsoft Corporation.
226
+
227
+ Permission to use, copy, modify, and/or distribute this software for any
228
+ purpose with or without fee is hereby granted.
229
+
230
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
231
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
232
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
233
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
234
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
235
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
236
+ PERFORMANCE OF THIS SOFTWARE.
237
+ ***************************************************************************** */
238
+ var ae=function(t,e){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ae(t,e)};var se=function(){return se=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},se.apply(this,arguments)};function pe(t,e,i,r){for(var o,a=arguments.length,s=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(o=t[p])&&(s=(a<3?o(s):a>3?o(e,i,s):o(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s}function ne(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
239
+ /**
240
+ * @license
241
+ * Copyright 2018 Google Inc.
242
+ *
243
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
244
+ * of this software and associated documentation files (the "Software"), to deal
245
+ * in the Software without restriction, including without limitation the rights
246
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
247
+ * copies of the Software, and to permit persons to whom the Software is
248
+ * furnished to do so, subject to the following conditions:
249
+ *
250
+ * The above copyright notice and this permission notice shall be included in
251
+ * all copies or substantial portions of the Software.
252
+ *
253
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
254
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
255
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
256
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
257
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
258
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
259
+ * THE SOFTWARE.
260
+ */
261
+ /**
262
+ * @license
263
+ * Copyright 2018 Google LLC
264
+ * SPDX-License-Identifier: Apache-2.0
265
+ */
266
+ const ce=()=>{},le={get passive(){return!1}};document.addEventListener("x",ce,le),document.removeEventListener("x",ce);
267
+ /**
268
+ * @license
269
+ * Copyright 2018 Google LLC
270
+ * SPDX-License-Identifier: Apache-2.0
271
+ */
272
+ class de extends e.LitElement{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
273
+ /**
274
+ * @license
275
+ * Copyright 2016 Google Inc.
276
+ *
277
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
278
+ * of this software and associated documentation files (the "Software"), to deal
279
+ * in the Software without restriction, including without limitation the rights
280
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
281
+ * copies of the Software, and to permit persons to whom the Software is
282
+ * furnished to do so, subject to the following conditions:
283
+ *
284
+ * The above copyright notice and this permission notice shall be included in
285
+ * all copies or substantial portions of the Software.
286
+ *
287
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
288
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
289
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
290
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
291
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
292
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
293
+ * THE SOFTWARE.
294
+ */var fe=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),ue={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},he={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},me={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
295
+ /**
296
+ * @license
297
+ * Copyright 2016 Google Inc.
298
+ *
299
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
300
+ * of this software and associated documentation files (the "Software"), to deal
301
+ * in the Software without restriction, including without limitation the rights
302
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
303
+ * copies of the Software, and to permit persons to whom the Software is
304
+ * furnished to do so, subject to the following conditions:
305
+ *
306
+ * The above copyright notice and this permission notice shall be included in
307
+ * all copies or substantial portions of the Software.
308
+ *
309
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
310
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
311
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
312
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
313
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
314
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
315
+ * THE SOFTWARE.
316
+ */
317
+ /**
318
+ * @license
319
+ * Copyright 2016 Google Inc.
320
+ *
321
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
322
+ * of this software and associated documentation files (the "Software"), to deal
323
+ * in the Software without restriction, including without limitation the rights
324
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
325
+ * copies of the Software, and to permit persons to whom the Software is
326
+ * furnished to do so, subject to the following conditions:
327
+ *
328
+ * The above copyright notice and this permission notice shall be included in
329
+ * all copies or substantial portions of the Software.
330
+ *
331
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
332
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
333
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
334
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
335
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
336
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
337
+ * THE SOFTWARE.
338
+ */
339
+ var ye=["touchstart","pointerdown","mousedown","keydown"],ge=["touchend","pointerup","mouseup","contextmenu"],ve=[],be=function(t){function e(i){var r=t.call(this,se(se({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ae(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ue},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return he},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return me},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,o=r.ROOT,a=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(a),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=ne(ye),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=ne(ge),o=r.next();!o.done;o=r.next()){var a=o.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=ne(ye),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=ne(ge),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&ve.length>0&&ve.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(ve.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){ve=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,a=e.cssClasses,s=a.FG_DEACTIVATION,p=a.FG_ACTIVATION,n=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,u=d.endPoint;c=f.x+"px, "+f.y+"px",l=u.x+"px, "+u.y+"px"}this.adapter.updateCssVariable(r,c),this.adapter.updateCssVariable(o,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(p),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),n)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,a=e.x,s=e.y,p=a+i.left,n=s+i.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-p,o=c.changedTouches[0].pageY-n}else{var l=t;r=l.pageX-p,o=l.pageY-n}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,a=r.isActivated;(o||!a)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),me.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=se({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,o=t.VAR_TOP,a=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(a,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(fe),$e=be;
340
+ /**
341
+ * @license
342
+ * Copyright 2018 Google LLC
343
+ * SPDX-License-Identifier: Apache-2.0
344
+ */
345
+ class xe extends de{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=$e}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),i=this.selected&&(this.primary||!this.accent),o={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":i,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return e.html`
346
+ <div class="mdc-ripple-surface mdc-ripple-upgraded ${r.classMap(o)}"
347
+ style="${s.styleMap({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}pe([i.query(".mdc-ripple-surface")],xe.prototype,"mdcRoot",void 0),pe([i.property({type:Boolean})],xe.prototype,"primary",void 0),pe([i.property({type:Boolean})],xe.prototype,"accent",void 0),pe([i.property({type:Boolean})],xe.prototype,"unbounded",void 0),pe([i.property({type:Boolean})],xe.prototype,"disabled",void 0),pe([i.property({type:Boolean})],xe.prototype,"activated",void 0),pe([i.property({type:Boolean})],xe.prototype,"selected",void 0),pe([i.property({type:Boolean})],xe.prototype,"internalUseStateLayerCustomProperties",void 0),pe([i.state()],xe.prototype,"hovering",void 0),pe([i.state()],xe.prototype,"bgFocused",void 0),pe([i.state()],xe.prototype,"fgActivation",void 0),pe([i.state()],xe.prototype,"fgDeactivation",void 0),pe([i.state()],xe.prototype,"fgScale",void 0),pe([i.state()],xe.prototype,"fgSize",void 0),pe([i.state()],xe.prototype,"translateStart",void 0),pe([i.state()],xe.prototype,"translateEnd",void 0),pe([i.state()],xe.prototype,"leftPos",void 0),pe([i.state()],xe.prototype,"topPos",void 0);
348
+ /**
349
+ * @license
350
+ * Copyright 2021 Google LLC
351
+ * SPDX-LIcense-Identifier: Apache-2.0
352
+ */
353
+ const we=e.css`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
354
+ /**
355
+ * @license
356
+ * Copyright 2018 Google LLC
357
+ * SPDX-License-Identifier: Apache-2.0
358
+ */;let ke=class extends xe{};ke.styles=[we],ke=pe([i.customElement("mwc-ripple")],ke);
359
+ /**
360
+ * @license
361
+ * Copyright 2020 Google LLC
362
+ * SPDX-License-Identifier: Apache-2.0
363
+ */
364
+ class Se{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var Ae=function(t,e,i,r){for(var o,a=arguments.length,s=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(o=t[p])&&(s=(a<3?o(s):a>3?o(e,i,s):o(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};const ze={color:a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorContent),primaryColor:a.FtCssVariable.extend("--ft-ripple-primary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorPrimary)),secondaryColor:a.FtCssVariable.extend("--ft-ripple-secondary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceDragged,"Design system")};let Oe=class extends a.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return e.css`
365
+ :host {
366
+ display: contents;
367
+
368
+ --mdc-ripple-color: ${ze.color};
369
+ --mdc-ripple-press-opacity: ${ze.opacityContentOnSurfacePressed};
370
+ --mdc-ripple-hover-opacity: ${ze.opacityContentOnSurfaceHover};
371
+ --mdc-ripple-focus-opacity: ${ze.opacityContentOnSurfaceFocused};
372
+ --mdc-ripple-selected-opacity: ${ze.opacityContentOnSurfaceSelected};
373
+ --mdc-ripple-activated-opacity: ${ze.opacityContentOnSurfaceDragged};
374
+ }
375
+
376
+ mwc-ripple.ft-ripple--secondary {
377
+ --mdc-ripple-color: ${ze.secondaryColor};
378
+ }
379
+
380
+ mwc-ripple.ft-ripple--primary {
381
+ --mdc-ripple-color: ${ze.primaryColor};
382
+ }
383
+ `}getTemplate(){return e.html`
384
+ <mwc-ripple
385
+ class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
386
+ ?unbounded=${this.unbounded}
387
+ ?activated=${this.activated}
388
+ ?selected=${this.selected}
389
+ ?disabled=${this.disabled}
390
+ ></mwc-ripple>
391
+ `}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple()}endRipple(){var t,e,i;null===(t=this.rippleHandlers)||void 0===t||t.endHover(),null===(e=this.rippleHandlers)||void 0===e||e.endFocus(),null===(i=this.rippleHandlers)||void 0===i||i.endPress()}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentNode;if(e){const t=new Se((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),o=i("touchend","touchcancel"),a=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",o),e.addEventListener("keydown",a),e.addEventListener("focus",t.startFocus),e.addEventListener("blur",t.endFocus),this.onDisconnect=()=>{e.removeEventListener("mouseenter",t.startHover),e.removeEventListener("mouseleave",t.endHover),e.removeEventListener("mousedown",r),e.removeEventListener("touchstart",o),e.removeEventListener("keydown",a),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Oe.elementDefinitions={"mwc-ripple":ke},Ae([i.property({type:Boolean})],Oe.prototype,"primary",void 0),Ae([i.property({type:Boolean})],Oe.prototype,"secondary",void 0),Ae([i.property({type:Boolean})],Oe.prototype,"unbounded",void 0),Ae([i.property({type:Boolean})],Oe.prototype,"activated",void 0),Ae([i.property({type:Boolean})],Oe.prototype,"selected",void 0),Ae([i.property({type:Boolean})],Oe.prototype,"disabled",void 0),Ae([i.query("mwc-ripple")],Oe.prototype,"mwcRipple",void 0),Oe=Ae([a.customElement("ft-ripple")],Oe);
392
+ /**
393
+ * @license
394
+ * Copyright 2021 Google LLC
395
+ * SPDX-LIcense-Identifier: Apache-2.0
396
+ */
397
+ const Te=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
398
+ /**
399
+ * @license
400
+ * Copyright 2018 Google LLC
401
+ * SPDX-License-Identifier: Apache-2.0
402
+ */;let _e=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};_e.styles=[Te],_e=pe([i.customElement("mwc-icon")],_e);var Ee=function(t,e,i,r){for(var o,a=arguments.length,s=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(o=t[p])&&(s=(a<3?o(s):a>3?o(e,i,s):o(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};t.FtSelectOption=class extends a.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}getTemplate(){return e.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}},t.FtSelectOption.elementDefinitions={},Ee([i.property({type:String})],t.FtSelectOption.prototype,"label",void 0),Ee([i.property({type:Object,converter:t=>t})],t.FtSelectOption.prototype,"value",void 0),Ee([i.property({type:Boolean,reflect:!0})],t.FtSelectOption.prototype,"selected",void 0),t.FtSelectOption=Ee([a.customElement("ft-select-option")],t.FtSelectOption);const Ce={labelSize:a.FtCssVariable.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:a.FtCssVariable.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:a.FtCssVariable.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:a.FtCssVariable.extend("--ft-select-selected-option-color",a.designSystemVariables.colorOnSurface),helperColor:a.FtCssVariable.extend("--ft-select-helper-color",a.designSystemVariables.colorOnSurfaceMedium),optionsColor:a.FtCssVariable.extend("--ft-select-options-color",a.designSystemVariables.colorOnSurface),optionsZIndex:a.FtCssVariable.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:a.FtCssVariable.external(a.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:a.FtCssVariable.external(a.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:a.FtCssVariable.external(a.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:a.FtCssVariable.external(a.designSystemVariables.borderRadiusS,"Design system"),elevation02:a.FtCssVariable.external(a.designSystemVariables.elevation02,"Design system")};t.FtSelect=class extends a.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}getStyles(){return[Xt,Yt,e.css`
403
+ *:focus {
404
+ outline: none;
405
+ }
406
+
407
+ .ft-select {
408
+ display: flex;
409
+ flex-direction: column;
410
+ align-items: stretch;
411
+ }
412
+
413
+ .ft-select--main-panel {
414
+ position: relative;
415
+ display: flex;
416
+ height: calc(4 * ${Ce.verticalSpacing} + ${Ce.labelSize} + ${Ce.selectedOptionSize});
417
+ }
418
+
419
+ .ft-select--input-panel {
420
+ flex-grow: 1;
421
+ position: relative;
422
+ display: flex;
423
+ align-items: center;
424
+ overflow: hidden;
425
+ padding-left: 16px;
426
+ padding-right: 8px;
427
+ gap: 8px;
428
+ color: ${Ce.selectedOptionColor};
429
+ ${a.setVariable(ze.color,Ce.selectedOptionColor)};
430
+ }
431
+
432
+ .ft-select--input-panel,
433
+ .ft-select--option {
434
+ ${a.setVariable(ze.opacityContentOnSurfaceHover,"0.08")};
435
+ ${a.setVariable(ze.opacityContentOnSurfaceDragged,"0.04")};
436
+ }
437
+
438
+ .ft-select--disabled .ft-select--input-panel,
439
+ .ft-select--disabled .ft-select--option {
440
+ color: ${Ce.colorOnSurfaceDisabled};
441
+ }
442
+
443
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel {
444
+ cursor: pointer;
445
+ }
446
+
447
+ ft-input-label {
448
+ ${a.setVariable(re.fontSize,Ce.selectedOptionSize)};
449
+ ${a.setVariable(re.raisedFontSize,Ce.labelSize)};
450
+ ${a.setVariable(re.verticalSpacing,Ce.verticalSpacing)};
451
+ }
452
+
453
+ .ft-select:not(.ft-select--disabled):focus-within mwc-icon {
454
+ color: ${Ce.colorPrimary};
455
+ }
456
+
457
+ .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
458
+ ${a.setVariable(re.borderColor,Ce.colorPrimary)};
459
+ ${a.setVariable(re.textColor,Ce.colorPrimary)};
460
+ }
461
+
462
+ .ft-select--selected-option {
463
+ display: block;
464
+ flex-grow: 1;
465
+ flex-shrink: 1;
466
+ overflow: hidden;
467
+ white-space: nowrap;
468
+ text-overflow: ellipsis;
469
+ ${a.setVariable(bt.fontSize,Ce.selectedOptionSize)};
470
+ ${a.setVariable(bt.lineHeight,Ce.selectedOptionSize)};
471
+ }
472
+
473
+ mwc-icon {
474
+ flex-shrink: 0;
475
+ }
476
+
477
+ slot {
478
+ display: none;
479
+ }
480
+
481
+ .ft-select--filled .ft-select--input-panel {
482
+ border-radius: ${Ce.borderRadiusS} ${Ce.borderRadiusS} 0 0;
483
+ }
484
+
485
+ .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
486
+ align-self: stretch;
487
+ padding-top: calc(${Ce.labelSize} + 2 * ${Ce.verticalSpacing});
488
+ }
489
+
490
+ .ft-select--outlined .ft-select--input-panel {
491
+ border-radius: ${Ce.borderRadiusS};
492
+ }
493
+
494
+ .ft-select--options {
495
+ display: none;
496
+ position: absolute;
497
+ top: 100%;
498
+ left: 0;
499
+ right: 0;
500
+ color: ${Ce.optionsColor};
501
+ background: ${Ce.colorSurface};
502
+ z-index: ${Ce.optionsZIndex};
503
+ box-shadow: ${Ce.elevation02};
504
+ }
505
+
506
+ .ft-select--options-displayed .ft-select--options {
507
+ display: block;
508
+ }
509
+
510
+ .ft-select--option {
511
+ position: relative;
512
+ padding: 4px 16px;
513
+ min-height: 32px;
514
+ display: flex;
515
+ align-items: center;
516
+ }
517
+
518
+ .ft-select--helper-text {
519
+ padding: 0 12px 0 16px;
520
+ color: ${Ce.helperColor};
521
+ }
522
+ `]}getTemplate(){var t,i,a,s,p;let n=!this.disabled&&this.optionsDisplayed&&this.hasOptions,c=this.disabled||!this.hasOptions;const l={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":n,"ft-select--has-value":null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value),"ft-select--no-label":!this.label};return e.html`
523
+ <div class="${r.classMap(l)}" part="container">
524
+ <div class="ft-select--main-panel" part="main-panel">
525
+ <ft-input-label text="${this.label}"
526
+ part="label"
527
+ ?disabled=${c}
528
+ ?outlined=${this.outlined}
529
+ ?raised=${null!=(null===(i=this.selectedOption)||void 0===i?void 0:i.value)||n}
530
+ ></ft-input-label>
531
+ <div class="ft-select--input-panel"
532
+ part="selected-value"
533
+ tabindex="${c?"-1":"0"}"
534
+ @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
535
+ @keydown=${this.onMainPanelKeyDown}
536
+ aria-label="${this.label}"
537
+ aria-haspopup="listbox"
538
+ aria-expanded="${n}">
539
+ <ft-ripple ?disabled=${c} ?activated=${!this.outlined}></ft-ripple>
540
+ <ft-typography variant="body1" class="ft-select--selected-option">
541
+ ${null!=(null===(a=this.selectedOption)||void 0===a?void 0:a.value)&&null!==(p=null===(s=this.selectedOption)||void 0===s?void 0:s.label)&&void 0!==p?p:""}
542
+ </ft-typography>
543
+ <mwc-icon>${n?"expand_less":"expand_more"}</mwc-icon>
544
+ </div>
545
+ <div class="ft-select--options"
546
+ part="options"
547
+ @keydown=${this.onOptionsKeyDown}
548
+ innerrole="listbox">
549
+ ${o.repeat(this.options,(t=>t.value),(t=>this.renderOption(t)))}
550
+ </div>
551
+ </div>
552
+ ${this.helper?e.html`
553
+ <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
554
+ </ft-typography>`:void 0}
555
+ </div>
556
+ <slot @slotchange=${this.updateOptionsFromSlot}
557
+ @option-change=${this.updateOptionsFromSlot}
558
+ ></slot>
559
+ `}renderOption(t){let i=this.selectedOption===t;const o={"ft-select--option":!0,"ft-select--option-selected":i,"ft-typography--body2":!0};return e.html`
560
+ <div class="${r.classMap(o)}"
561
+ part="option"
562
+ tabindex="0"
563
+ @keydown=${e=>this.onOptionKeyDown(e,t)}
564
+ @click=${()=>this.selectOption(t)}>
565
+ <ft-ripple ?primary=${i} ?activated=${i}></ft-ripple>
566
+ ${t.label}
567
+ </div>
568
+ `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,r,o,a;let s;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),s=null!==(r=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==r?r:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),s=null!==(a=null===(o=this.focusedOption)||void 0===o?void 0:o.nextElementSibling)&&void 0!==a?a:this.firstOption}null==s||s.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}},t.FtSelect.elementDefinitions={"ft-input-label":oe,"ft-typography":ee,"ft-ripple":Oe,"mwc-icon":_e},Ee([i.property({type:String})],t.FtSelect.prototype,"label",void 0),Ee([i.property({type:String})],t.FtSelect.prototype,"helper",void 0),Ee([i.property({type:Boolean})],t.FtSelect.prototype,"outlined",void 0),Ee([i.property({type:Boolean})],t.FtSelect.prototype,"disabled",void 0),Ee([i.property({type:Array})],t.FtSelect.prototype,"options",void 0),Ee([i.state()],t.FtSelect.prototype,"selectedOption",void 0),Ee([i.state()],t.FtSelect.prototype,"optionsDisplayed",void 0),Ee([i.state()],t.FtSelect.prototype,"focusOptions",void 0),Ee([i.query(".ft-select")],t.FtSelect.prototype,"container",void 0),Ee([i.query(".ft-select--input-panel")],t.FtSelect.prototype,"mainPanel",void 0),Ee([i.query(".ft-select--option:first-child")],t.FtSelect.prototype,"firstOption",void 0),Ee([i.query(".ft-select--option:focus")],t.FtSelect.prototype,"focusedOption",void 0),Ee([i.query(".ft-select--option.ft-select--option-selected")],t.FtSelect.prototype,"selectedOptionElement",void 0),Ee([i.query(".ft-select--option:last-child")],t.FtSelect.prototype,"lastOption",void 0),Ee([i.query("slot")],t.FtSelect.prototype,"optionsSlot",void 0),t.FtSelect=Ee([a.customElement("ft-select")],t.FtSelect),t.FtSelectCssVariables=Ce,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litRepeat,ftGlobals.wcUtils,ftGlobals.litStyleMap);