@fluid-topics/ft-select 0.1.16 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,85 +1,78 @@
1
1
  !function(t){
2
2
  /**
3
3
  * @license
4
- * Copyright 2019 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
6
16
  */
7
- const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new Map;class o{constructor(t,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=r.get(this.cssText);return e&&void 0===t&&(r.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const n=t=>new o("string"==typeof t?t:t+"",i),s=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new o(r,i)},a=(t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),r=window.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return n(e)})(t):t
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=h(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Xe){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
8
18
  /**
9
19
  * @license
10
20
  * Copyright 2017 Google LLC
11
21
  * SPDX-License-Identifier: BSD-3-Clause
12
- */;var l;const p=window.trustedTypes,d=p?p.emptyScript:"",u=window.reactiveElementPolyfillSupport,f={toAttribute(t,e){switch(e){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},h=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:h};class y extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const r=this._$Eh(i,e);void 0!==r&&(this._$Eu.set(r,i),t.push(r))})),t}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return a(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=m){var r,o;const n=this.constructor._$Eh(t,i);if(void 0!==n&&!0===i.reflect){const s=(null!==(o=null===(r=i.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==o?o:f.toAttribute)(e,i.type);this._$Ei=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$Ei=null}}_$AK(t,e){var i,r,o;const n=this.constructor,s=n._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=n.getPropertyOptions(s),a=t.converter,c=null!==(o=null!==(r=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==r?r:"function"==typeof a?a:null)&&void 0!==o?o:f.fromAttribute;this._$Ei=s,this[s]=c(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||h)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
22
+ */const e=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function i(t){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,i,o):e(t,i)
13
23
  /**
14
24
  * @license
15
25
  * Copyright 2017 Google LLC
16
26
  * SPDX-License-Identifier: BSD-3-Clause
17
- */
18
- var v;y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:y}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,b=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,$=`<${w}>`,O=document,S=(t="")=>O.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,C=t=>{var e;return E(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,A=/>/g,M=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,T=/'/g,F=/"/g,z=/^(?:script|style|textarea|title)$/i,U=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),j=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),D=new WeakMap,B=O.createTreeWalker(O,129,null,!1),I=(t,e)=>{const i=t.length-1,r=[];let o,n=2===e?"<svg>":"",s=R;for(let e=0;e<i;e++){const i=t[e];let a,c,l=-1,p=0;for(;p<i.length&&(s.lastIndex=p,c=s.exec(i),null!==c);)p=s.lastIndex,s===R?"!--"===c[1]?s=N:void 0!==c[1]?s=A:void 0!==c[2]?(z.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=M):void 0!==c[3]&&(s=M):s===M?">"===c[0]?(s=null!=o?o:R,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?M:'"'===c[3]?F:T):s===F||s===T?s=M:s===N||s===A?s=R:(s=M,o=void 0);const d=s===M&&t[e+1].startsWith("/>")?" ":"";n+=s===R?i+$:l>=0?(r.push(a),i.slice(0,l)+"$lit$"+i.slice(l)+x+d):i+x+(-2===l?(r.push(void 0),e):d)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(a):a,r]};class P{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const s=t.length-1,a=this.parts,[c,l]=I(t,e);if(this.el=P.createElement(c,i),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=B.nextNode())&&a.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=l[n++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?G:"@"===e[1]?q:V})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(z.test(r.tagName)){const t=r.textContent.split(x),e=t.length-1;if(e>0){r.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],S()),B.nextNode(),a.push({type:2,index:++o});r.append(t[e],S())}}}else if(8===r.nodeType)if(r.data===w)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)a.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=O.createElement("template");return i.innerHTML=t,i}}function L(t,e,i=t,r){var o,n,s,a;if(e===j)return e;let c=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const l=k(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==l&&(null===(n=null==c?void 0:c._$AO)||void 0===n||n.call(c,!1),void 0===l?c=void 0:(c=new l(t),c._$AT(t,i,r)),void 0!==r?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[r]=c:i._$Cu=c),void 0!==c&&(e=L(t,c._$AS(t,e.values),c,r)),e}class H{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:O).importNode(i,!0);B.currentNode=o;let n=B.nextNode(),s=0,a=0,c=r[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new W(n,n.nextSibling,this,t):1===c.type?e=new c.ctor(n,c.name,c.strings,this,t):6===c.type&&(e=new X(n,this,t)),this.v.push(e),c=r[++a]}s!==(null==c?void 0:c.index)&&(n=B.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 W{constructor(t,e,i,r){var o;this.type=2,this._$AH=_,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=L(this,t,e),k(t)?t===_||null==t||""===t?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==j&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):C(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!==_&&k(this._$AH)?this._$AA.nextSibling.data=t:this.S(O.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=P.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 H(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new P(t)),e}A(t){E(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 W(this.M(S()),this.M(S()),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 V{constructor(t,e,i,r,o){this.type=1,this._$AH=_,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=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(void 0===o)t=L(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const r=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=L(this,r[i+s],e,s),a===j&&(a=this._$AH[s]),n||(n=!k(a)||a!==this._$AH[s]),a===_?t=_:t!==_&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}n&&!r&&this.k(t)}k(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends V{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===_?void 0:t}}const Z=g?g.emptyScript:"";class G extends V{constructor(){super(...arguments),this.type=4}k(t){t&&t!==_?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class q extends V{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=L(this,t,e,0))&&void 0!==i?i:_)===j)return;const r=this._$AH,o=t===_&&r!==_||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==_&&(r===_||o);o&&this.element.removeEventListener(this.name,this,r),n&&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 X{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){L(this,t)}}const J={P:"$lit$",V:x,L:w,I:1,N:I,R:H,D:C,j:L,H:W,O:V,F:G,B:q,W:K,Z:X},Y=window.litHtmlPolyfillSupport;
27
+ */}function o(t){return i({...t,state:!0})}
19
28
  /**
20
29
  * @license
21
30
  * Copyright 2017 Google LLC
22
31
  * SPDX-License-Identifier: BSD-3-Clause
23
32
  */
24
- var Q,tt;null==Y||Y(P,W),(null!==(v=globalThis.litHtmlVersions)&&void 0!==v?v:globalThis.litHtmlVersions=[]).push("2.1.3");class et extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var r,o;const n=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let s=n._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;n._$litPart$=s=new W(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return j}}et.finalized=!0,et._$litElement$=!0,null===(Q=globalThis.litElementHydrateSupport)||void 0===Q||Q.call(globalThis,{LitElement:et});const it=globalThis.litElementPolyfillSupport;null==it||it({LitElement:et}),(null!==(tt=globalThis.litElementVersions)&&void 0!==tt?tt:globalThis.litElementVersions=[]).push("3.1.2");
25
33
  /**
26
34
  * @license
27
35
  * Copyright 2017 Google LLC
28
36
  * SPDX-License-Identifier: BSD-3-Clause
29
37
  */
30
- const rt=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(e){window.customElements.define(t,e)}}})(t,e)
38
+ function s(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(n.finisher=function(e){t(e,o)}),n}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
31
39
  /**
32
40
  * @license
33
- * Copyright 2017 Google LLC
41
+ * Copyright 2021 Google LLC
34
42
  * SPDX-License-Identifier: BSD-3-Clause
35
- */,ot=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function nt(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):ot(t,e)
43
+ */var n;null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;const r=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
36
44
  /**
37
45
  * @license
38
- * Copyright 2017 Google LLC
46
+ * Copyright 2019 Google LLC
39
47
  * SPDX-License-Identifier: BSD-3-Clause
40
- */}function st(t){return nt({...t,state:!0})}
48
+ */,l=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),p=new Map;class c{constructor(t,e){if(this._$cssResult$=!0,e!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=p.get(this.cssText);return l&&void 0===t&&(p.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const h=t=>new c("string"==typeof t?t:t+"",a),f=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new c(i,a)},d=(t,e)=>{l?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},u=l?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
41
49
  /**
42
50
  * @license
43
51
  * Copyright 2017 Google LLC
44
52
  * SPDX-License-Identifier: BSD-3-Clause
45
- */
53
+ */;var y;const x=window.trustedTypes,v=x?x.emptyScript:"",g=window.reactiveElementPolyfillSupport,b={toAttribute(t,e){switch(e){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},m=(t,e)=>e!==t&&(e==e||t==t),w={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:m};class $ extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(u(t))}else void 0!==t&&e.push(u(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return d(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=w){var o,s;const n=this.constructor._$Eh(t,i);if(void 0!==n&&!0===i.reflect){const r=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:b.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Ei=null}}_$AK(t,e){var i,o,s;const n=this.constructor,r=n._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=n.getPropertyOptions(r),l=t.converter,a=null!==(s=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==s?s:b.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||m)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
46
54
  /**
47
55
  * @license
48
56
  * Copyright 2017 Google LLC
49
57
  * SPDX-License-Identifier: BSD-3-Clause
50
58
  */
51
- function at(t,e){return(({finisher:t,descriptor:e})=>(i,r)=>{var o;if(void 0===r){const r=null!==(o=i.originalKey)&&void 0!==o?o:i.key,n=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(i.key)}:{...i,key:r};return null!=t&&(n.finisher=function(e){t(e,r)}),n}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,r,e(r)),null==t||t(o,r)}})({descriptor:i=>{const r={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;r.get=function(){var i,r;return void 0===this[e]&&(this[e]=null!==(r=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==r?r:null),this[e]}}return r}})}
52
- /**
53
- * @license
54
- * Copyright 2021 Google LLC
55
- * SPDX-License-Identifier: BSD-3-Clause
56
- */var ct;null===(ct=window.HTMLSlotElement)||void 0===ct||ct.prototype.assignedElements;
59
+ var O;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:$}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.2.2");const S=globalThis.trustedTypes,C=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,k=`lit$${(Math.random()+"").slice(9)}$`,E="?"+k,N=`<${E}>`,R=document,M=(t="")=>R.createComment(t),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,F=t=>{var e;return z(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,D=/>/g,B=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,L=/'/g,T=/"/g,_=/^(?:script|style|textarea|title)$/i,P=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),H=new WeakMap,K=R.createTreeWalker(R,129,null,!1),Z=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=j;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===j?"!--"===a[1]?r=A:void 0!==a[1]?r=D:void 0!==a[2]?(_.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=B):void 0!==a[3]&&(r=B):r===B?">"===a[0]?(r=null!=s?s:j,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?B:'"'===a[3]?T:L):r===T||r===L?r=B:r===A||r===D?r=j:(r=B,s=void 0);const h=r===B&&t[e+1].startsWith("/>")?" ":"";n+=r===j?i+N:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+k+h):i+k+(-2===p?(o.push(void 0),e):h)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(l):l,o]};class V{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=Z(t,e);if(this.el=V.createElement(a,i),K.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=K.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(k)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(k),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?tt:"@"===e[1]?et:Y})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(k),e=t.length-1;if(e>0){o.textContent=S?S.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],M()),K.nextNode(),l.push({type:2,index:++s});o.append(t[e],M())}}}else if(8===o.nodeType)if(o.data===E)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)l.push({type:7,index:s}),t+=k.length-1}s++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function q(t,e,i=t,o){var s,n,r,l;if(e===I)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=U(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=q(t,a._$AS(t,e.values),a,o)),e}class X{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:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);K.currentNode=s;let n=K.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new J(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new it(n,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=K.nextNode(),r++)}return s}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 J{constructor(t,e,i,o){var s;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}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=q(this,t,e),U(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==I&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):F(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!==W&&U(this._$AH)?this._$AA.nextSibling.data=t:this.S(R.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new X(s,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new V(t)),e}A(t){z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new J(this.M(M()),this.M(M()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$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 Y{constructor(t,e,i,o,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=q(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==I,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=q(this,o[i+r],e,r),l===I&&(l=this._$AH[r]),n||(n=!U(l)||l!==this._$AH[r]),l===W?t=W:t!==W&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.k(t)}k(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends Y{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===W?void 0:t}}const Q=S?S.emptyScript:"";class tt extends Y{constructor(){super(...arguments),this.type=4}k(t){t&&t!==W?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class et extends Y{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=q(this,t,e,0))&&void 0!==i?i:W)===I)return;const o=this._$AH,s=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==W&&(o===W||s);s&&this.element.removeEventListener(this.name,this,o),n&&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 it{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){q(this,t)}}const ot={P:"$lit$",V:k,L:E,I:1,N:Z,R:X,D:F,j:q,H:J,O:Y,F:tt,B:et,W:G,Z:it},st=window.litHtmlPolyfillSupport;
57
60
  /**
58
61
  * @license
59
62
  * Copyright 2017 Google LLC
60
63
  * SPDX-License-Identifier: BSD-3-Clause
61
64
  */
62
- const lt=1,pt=2,dt=t=>(...e)=>({_$litDirective$:t,values:e});class ut{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
63
- /**
64
- * @license
65
- * Copyright 2018 Google LLC
66
- * SPDX-License-Identifier: BSD-3-Clause
67
- */const ft=dt(class extends ut{constructor(t){var e;if(super(t),t.type!==lt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,r;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const o=t.element.classList;this.st.forEach((t=>{t in e||(o.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(r=this.et)||void 0===r?void 0:r.has(t))||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return j}}),{H:ht}=J,mt=()=>document.createComment(""),yt=(t,e,i)=>{var r;const o=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(mt(),n),r=o.insertBefore(mt(),n);i=new ht(e,r,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(r=i._$AQ)||void 0===r||r.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==n||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,n),t=e}}}return i},vt=(t,e,i=t)=>(t._$AI(e,i),t),gt={},bt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const r=t._$AB.nextSibling;for(;i!==r;){const t=i.nextSibling;i.remove(),i=t}},xt=(t,e,i)=>{const r=new Map;for(let o=e;o<=i;o++)r.set(t[o],o);return r},wt=dt(class extends ut{constructor(t){if(super(t),t.type!==pt)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let r;void 0===i?i=e:void 0!==e&&(r=e);const o=[],n=[];let s=0;for(const e of t)o[s]=r?r(e,s):s,n[s]=i(e,s),s++;return{values:n,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,r]){var o;const n=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,r);if(!Array.isArray(n))return this.at=a,s;const c=null!==(o=this.at)&&void 0!==o?o:this.at=[],l=[];let p,d,u=0,f=n.length-1,h=0,m=s.length-1;for(;u<=f&&h<=m;)if(null===n[u])u++;else if(null===n[f])f--;else if(c[u]===a[h])l[h]=vt(n[u],s[h]),u++,h++;else if(c[f]===a[m])l[m]=vt(n[f],s[m]),f--,m--;else if(c[u]===a[m])l[m]=vt(n[u],s[m]),yt(t,l[m+1],n[u]),u++,m--;else if(c[f]===a[h])l[h]=vt(n[f],s[h]),yt(t,n[u],n[f]),f--,h++;else if(void 0===p&&(p=xt(a,h,m),d=xt(c,u,f)),p.has(c[u]))if(p.has(c[f])){const e=d.get(a[h]),i=void 0!==e?n[e]:null;if(null===i){const e=yt(t,n[u]);vt(e,s[h]),l[h]=e}else l[h]=vt(i,s[h]),yt(t,n[u],i),n[e]=null;h++}else bt(n[f]),f--;else bt(n[u]),u++;for(;h<=m;){const e=yt(t,l[m+1]);vt(e,s[h]),l[h++]=e}for(;u<=f;){const t=n[u++];null!==t&&bt(t)}return this.at=a,((t,e=gt)=>{t._$AH=e})(t,l),j}});
68
- /**
69
- * @license
70
- * Copyright 2020 Google LLC
71
- * SPDX-License-Identifier: BSD-3-Clause
72
- */(function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,r=[];!(i=t.next()).done;)r.push(i.value);t=r}return t}var r="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,n=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,r){return e=t(e,i),r&&Reflect.setPrototypeOf(e,r.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=r(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var a;t:{var c={};try{c.__proto__={a:!0},a=c.a;break t}catch(t){}a=!1}o=a?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var l=o;if(!ShadowRoot.prototype.createElement){var p,d=window.HTMLElement,u=window.customElements.define,f=window.customElements.get,h=window.customElements,m=new WeakMap,y=new WeakMap,v=new WeakMap,g=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var r=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(x(i,o,r),r={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:r,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:o},this.l.set(t,r),this.o.set(i,r),(o=f.call(h,t))||(o=b(t),u.call(h,t,o)),this===window.customElements&&(v.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var n=(o=e(o)).next();!n.done;n=o.next())n=n.value,y.delete(n),$(n,r,!0)}return void 0!==(r=this.i.get(t))&&(r.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){S.push(this),h.upgrade.apply(h,arguments),S.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var r=this.h.get(e);r||this.h.set(e,r=new Set),i?r.add(t):r.delete(t)},window.HTMLElement=function(){var t=p;if(t)return p=void 0,t;var e=v.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(d,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=d.prototype;var b=function(t){function e(){var e=Reflect.construct(d,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=S[S.length-1])instanceof CustomElementRegistry){var r=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(r=g.get(i))?void 0:r.getRootNode())||document)}r=i.customElements}return(i=(r=r||window.customElements).j(t))?$(e,i):y.set(e,r),e}return n.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=m.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):y.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=m.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):y.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=m.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=m.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},x=function(t,e,i){if(0!==e.size&&void 0!==i){var r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);r.call(this,t,o),i.call(this,t,n,o)}else r.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t),i.call(this,t,r,null)}else o.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===d?Object.setPrototypeOf(t,window.HTMLElement):w(e)},$=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),p=t;try{new e.g}catch(t){w(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=O.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var S=[document],k=function(t,e,i){var r=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){S.push(this);var t=r.apply(i||this,arguments);return void 0!==t&&g.set(t,this),S.pop(),t}};k(ShadowRoot,"createElement",document),k(ShadowRoot,"importNode",document),k(Element,"insertAdjacentHTML");var E=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){S.push(this),e.set.call(this,t),S.pop()}}))};if(E(Element),E(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var C=new WeakMap,R=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=R.call.apply(R,[this].concat(i(e))),C.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,r=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=C.get(this),!0!==m.get(o).formAssociated)throw new DOMException("Failed to execute "+r+" on 'ElementInternals': The target element is not a form-associated custom element.");null==r||r.call.apply(r,[this].concat(i(e)))}}));var N=function(t){var e=s(Array,[].concat(i(t)),this.constructor);return e.h=t,e},A=N,M=Array;if(A.prototype=r(M.prototype),A.prototype.constructor=A,l)l(A,M);else for(var T in M)if("prototype"!=T)if(Object.defineProperties){var F=Object.getOwnPropertyDescriptor(M,T);F&&Object.defineProperty(A,T,F)}else A[T]=M[T];A.u=M.prototype,n.Object.defineProperty(N.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var z=function(t){var e=this,i=new Map;t.forEach((function(t,r){var o=t.getAttribute("name"),n=i.get(o)||[];e[+r]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new N(t))}))};z.prototype.namedItem=function(t){return this[t]};var U=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=U.get.call(this,[]),i=[],r=(t=e(t)).next();!r.done;r=t.next()){r=r.value;var o=m.get(r);o&&!0!==o.formAssociated||i.push(r)}return new z(i)}})}}}).call("object"==typeof globalThis?globalThis:window);try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,r)=>{try{e.bind(window.customElements)(t,i,r)}catch(e){console.warn(t,i,r,e)}}}const $t=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class Ot{constructor(t,e,i,r,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=r,this.context=o,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new Ot(t,e,void 0,i)}static extend(t,e,i){return new Ot(t,e.category,e,i)}static external(t,e){return new Ot(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return s`var(${n(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):n(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function St(t,e){return n(`${t.name}: ${e}`)}const kt={colorPrimary:Ot.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Ot.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Ot.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Ot.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Ot.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Ot.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ot.create("--ft-color-error","COLOR","#B00020"),colorOutline:Ot.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ot.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Ot.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Ot.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Ot.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ot.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ot.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ot.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ot.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ot.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ot.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ot.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ot.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ot.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ot.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ot.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ot.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Ot.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Ot.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ot.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Ot.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ot.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ot.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ot.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ot.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ot.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ot.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ot.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ot.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ot.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ot.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ot.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ot.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ot.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ot.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ot.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ot.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Ot.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Ot.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Ot.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Ot.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Ot.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Ot.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Ot.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Ot.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Ot.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Ot.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Ot.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Ot.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Ot.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Ot.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Ot.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ot.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ot.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Ot.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
65
+ var nt,rt;null==st||st(V,J),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.1.3");class lt extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new J(e.insertBefore(M(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return I}}lt.finalized=!0,lt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:lt});const at=globalThis.litElementPolyfillSupport;null==at||at({LitElement:lt}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.1.2");class pt{constructor(t,e,i,o,s){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new pt(t,e,void 0,i)}static extend(t,e,i){return new pt(t,e.category,e,i)}static external(t,e){return new pt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return f`var(${h(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):h(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function ct(t,e){return h(`${t.name}: ${e}`)}const ht={colorPrimary:pt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:pt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:pt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:pt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:pt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:pt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:pt.create("--ft-color-error","COLOR","#B00020"),colorOutline:pt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:pt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:pt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:pt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:pt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:pt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:pt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:pt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:pt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:pt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:pt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:pt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:pt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:pt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:pt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:pt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:pt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:pt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:pt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:pt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:pt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:pt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:pt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:pt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:pt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:pt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:pt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:pt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:pt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:pt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:pt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:pt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:pt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:pt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:pt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:pt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:pt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:pt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:pt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:pt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:pt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:pt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:pt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:pt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:pt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:pt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:pt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:pt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:pt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:pt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:pt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:pt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:pt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:pt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:pt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
73
66
  /**
74
67
  * @license
75
68
  * Copyright 2021 Google LLC
76
69
  * SPDX-License-Identifier: BSD-3-Clause
77
- */class Et extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:r}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...r,customElements:t.registry});return a(o,this.constructor.elementStyles),o}}}(et)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),U`
78
- ${t.map((t=>U`
70
+ */class ft extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return d(s,this.constructor.elementStyles),s}}}(lt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),P`
71
+ ${t.map((t=>P`
79
72
  <style>${t}</style>
80
73
  `))}
81
74
  ${this.getTemplate()}
82
- `}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var Ct,Rt;s`
75
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var dt,ut;f`
83
76
  .ft-no-text-select {
84
77
  -webkit-touch-callout: none;
85
78
  -webkit-user-select: none;
@@ -88,570 +81,411 @@ const lt=1,pt=2,dt=t=>(...e)=>({_$litDirective$:t,values:e});class ut{constructo
88
81
  -ms-user-select: none;
89
82
  user-select: none;
90
83
  }
91
- `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Rt=null===(Ct=window.safari)||void 0===Ct?void 0:Ct.pushNotification)||void 0===Rt||Rt.toString());
84
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ut=null===(dt=window.safari)||void 0===dt?void 0:dt.pushNotification)||void 0===ut||ut.toString());
92
85
  /**
93
86
  * @license
94
- * Copyright 2020 Google LLC
87
+ * Copyright 2017 Google LLC
95
88
  * SPDX-License-Identifier: BSD-3-Clause
96
89
  */
97
- const Nt=t=>({_$litStatic$:t}),At=new Map,Mt=(t=>(e,...i)=>{var r;const o=i.length;let n,s;const a=[],c=[];let l,p=0,d=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(s=i[p],n=null===(r=s)||void 0===r?void 0:r._$litStatic$);)l+=n+e[++p],d=!0;c.push(s),a.push(l),p++}if(p===o&&a.push(e[o]),d){const t=a.join("$$lit$$");void 0===(e=At.get(t))&&(a.raw=a,At.set(t,e=a)),i=c}return t(e,...i)})(U);var Tt,Ft=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>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"}(Tt||(Tt={}));const zt=Ot.extend("--ft-typography-font-family",kt.titleFont),Ut=Ot.extend("--ft-typography-font-family",kt.contentFont),jt={fontFamily:Ut,fontSize:Ot.create("--ft-typography-font-size","SIZE","16px"),fontWeight:Ot.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:Ot.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:Ot.create("--ft-typography-line-height","SIZE","24px"),textTransform:Ot.create("--ft-typography-text-transform","UNKNOWN","inherit")},_t=Ot.extend("--ft-typography-title-font-family",zt),Dt=Ot.extend("--ft-typography-title-font-size",jt.fontSize,"20px"),Bt=Ot.extend("--ft-typography-title-font-weight",jt.fontWeight,"normal"),It=Ot.extend("--ft-typography-title-letter-spacing",jt.letterSpacing,"0.15px"),Pt=Ot.extend("--ft-typography-title-line-height",jt.lineHeight,"24px"),Lt=Ot.extend("--ft-typography-title-text-transform",jt.textTransform,"inherit"),Ht=Ot.extend("--ft-typography-title-dense-font-family",zt),Wt=Ot.extend("--ft-typography-title-dense-font-size",jt.fontSize,"14px"),Vt=Ot.extend("--ft-typography-title-dense-font-weight",jt.fontWeight,"normal"),Kt=Ot.extend("--ft-typography-title-dense-letter-spacing",jt.letterSpacing,"0.105px"),Zt=Ot.extend("--ft-typography-title-dense-line-height",jt.lineHeight,"24px"),Gt=Ot.extend("--ft-typography-title-dense-text-transform",jt.textTransform,"inherit"),qt=Ot.extend("--ft-typography-subtitle1-font-family",Ut),Xt=Ot.extend("--ft-typography-subtitle1-font-size",jt.fontSize,"16px"),Jt=Ot.extend("--ft-typography-subtitle1-font-weight",jt.fontWeight,"600"),Yt=Ot.extend("--ft-typography-subtitle1-letter-spacing",jt.letterSpacing,"0.144px"),Qt=Ot.extend("--ft-typography-subtitle1-line-height",jt.lineHeight,"24px"),te=Ot.extend("--ft-typography-subtitle1-text-transform",jt.textTransform,"inherit"),ee=Ot.extend("--ft-typography-subtitle2-font-family",Ut),ie=Ot.extend("--ft-typography-subtitle2-font-size",jt.fontSize,"14px"),re=Ot.extend("--ft-typography-subtitle2-font-weight",jt.fontWeight,"normal"),oe=Ot.extend("--ft-typography-subtitle2-letter-spacing",jt.letterSpacing,"0.098px"),ne=Ot.extend("--ft-typography-subtitle2-line-height",jt.lineHeight,"24px"),se=Ot.extend("--ft-typography-subtitle2-text-transform",jt.textTransform,"inherit"),ae={fontFamily:Ot.extend("--ft-typography-body1-font-family",Ut),fontSize:Ot.extend("--ft-typography-body1-font-size",jt.fontSize,"16px"),fontWeight:Ot.extend("--ft-typography-body1-font-weight",jt.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-body1-letter-spacing",jt.letterSpacing,"0.496px"),lineHeight:Ot.extend("--ft-typography-body1-line-height",jt.lineHeight,"24px"),textTransform:Ot.extend("--ft-typography-body1-text-transform",jt.textTransform,"inherit")},ce=Ot.extend("--ft-typography-body2-font-family",Ut),le=Ot.extend("--ft-typography-body2-font-size",jt.fontSize,"14px"),pe=Ot.extend("--ft-typography-body2-font-weight",jt.fontWeight,"normal"),de=Ot.extend("--ft-typography-body2-letter-spacing",jt.letterSpacing,"0.252px"),ue=Ot.extend("--ft-typography-body2-line-height",jt.lineHeight,"20px"),fe=Ot.extend("--ft-typography-body2-text-transform",jt.textTransform,"inherit"),he={fontFamily:Ot.extend("--ft-typography-caption-font-family",Ut),fontSize:Ot.extend("--ft-typography-caption-font-size",jt.fontSize,"12px"),fontWeight:Ot.extend("--ft-typography-caption-font-weight",jt.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-caption-letter-spacing",jt.letterSpacing,"0.396px"),lineHeight:Ot.extend("--ft-typography-caption-line-height",jt.lineHeight,"16px"),textTransform:Ot.extend("--ft-typography-caption-text-transform",jt.textTransform,"inherit")},me=Ot.extend("--ft-typography-breadcrumb-font-family",Ut),ye=Ot.extend("--ft-typography-breadcrumb-font-size",jt.fontSize,"10px"),ve=Ot.extend("--ft-typography-breadcrumb-font-weight",jt.fontWeight,"normal"),ge=Ot.extend("--ft-typography-breadcrumb-letter-spacing",jt.letterSpacing,"0.33px"),be=Ot.extend("--ft-typography-breadcrumb-line-height",jt.lineHeight,"16px"),xe=Ot.extend("--ft-typography-breadcrumb-text-transform",jt.textTransform,"inherit"),we=Ot.extend("--ft-typography-overline-font-family",Ut),$e=Ot.extend("--ft-typography-overline-font-size",jt.fontSize,"10px"),Oe=Ot.extend("--ft-typography-overline-font-weight",jt.fontWeight,"normal"),Se=Ot.extend("--ft-typography-overline-letter-spacing",jt.letterSpacing,"1.5px"),ke=Ot.extend("--ft-typography-overline-line-height",jt.lineHeight,"16px"),Ee=Ot.extend("--ft-typography-overline-text-transform",jt.textTransform,"uppercase"),Ce=Ot.extend("--ft-typography-button-font-family",Ut),Re=Ot.extend("--ft-typography-button-font-size",jt.fontSize,"14px"),Ne=Ot.extend("--ft-typography-button-font-weight",jt.fontWeight,"600"),Ae=Ot.extend("--ft-typography-button-letter-spacing",jt.letterSpacing,"1.246px"),Me=Ot.extend("--ft-typography-button-line-height",jt.lineHeight,"16px"),Te=Ot.extend("--ft-typography-button-text-transform",jt.textTransform,"uppercase"),Fe=s`
90
+ const yt=1,xt=2,vt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
91
+ /**
92
+ * @license
93
+ * Copyright 2018 Google LLC
94
+ * SPDX-License-Identifier: BSD-3-Clause
95
+ */const bt=vt(class extends gt{constructor(t){var e;if(super(t),t.type!==yt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const s=t.element.classList;this.st.forEach((t=>{t in e||(s.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return I}}),{H:mt}=ot,wt=()=>document.createComment(""),$t=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(wt(),n),o=s.insertBefore(wt(),n);i=new mt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Ot=(t,e,i=t)=>(t._$AI(e,i),t),St={},Ct=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},kt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Et=vt(class extends gt{constructor(t){if(super(t),t.type!==xt)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.at=l,r;const a=null!==(s=this.at)&&void 0!==s?s:this.at=[],p=[];let c,h,f=0,d=n.length-1,u=0,y=r.length-1;for(;f<=d&&u<=y;)if(null===n[f])f++;else if(null===n[d])d--;else if(a[f]===l[u])p[u]=Ot(n[f],r[u]),f++,u++;else if(a[d]===l[y])p[y]=Ot(n[d],r[y]),d--,y--;else if(a[f]===l[y])p[y]=Ot(n[f],r[y]),$t(t,p[y+1],n[f]),f++,y--;else if(a[d]===l[u])p[u]=Ot(n[d],r[u]),$t(t,n[f],n[d]),d--,u++;else if(void 0===c&&(c=kt(l,u,y),h=kt(a,f,d)),c.has(a[f]))if(c.has(a[d])){const e=h.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=$t(t,n[f]);Ot(e,r[u]),p[u]=e}else p[u]=Ot(i,r[u]),$t(t,n[f],i),n[e]=null;u++}else Ct(n[d]),d--;else Ct(n[f]),f++;for(;u<=y;){const e=$t(t,p[y+1]);Ot(e,r[u]),p[u++]=e}for(;f<=d;){const t=n[f++];null!==t&&Ct(t)}return this.at=l,((t,e=St)=>{t._$AH=e})(t,p),I}}),Nt=t=>({_$litStatic$:t}),Rt=new Map,Mt=(t=>(e,...i)=>{var o;const s=i.length;let n,r;const l=[],a=[];let p,c=0,h=!1;for(;c<s;){for(p=e[c];c<s&&void 0!==(r=i[c],n=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=n+e[++c],h=!0;a.push(r),l.push(p),c++}if(c===s&&l.push(e[s]),h){const t=l.join("$$lit$$");void 0===(e=Rt.get(t))&&(l.raw=l,Rt.set(t,e=l)),i=a}return t(e,...i)})(P);
96
+ /**
97
+ * @license
98
+ * Copyright 2020 Google LLC
99
+ * SPDX-License-Identifier: BSD-3-Clause
100
+ */var Ut,zt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!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"}(Ut||(Ut={}));const Ft=pt.extend("--ft-typography-font-family",ht.titleFont),jt=pt.extend("--ft-typography-font-family",ht.contentFont),At={fontFamily:jt,fontSize:pt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:pt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:pt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:pt.create("--ft-typography-line-height","SIZE","24px"),textTransform:pt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Dt=pt.extend("--ft-typography-title-font-family",Ft),Bt=pt.extend("--ft-typography-title-font-size",At.fontSize,"20px"),Lt=pt.extend("--ft-typography-title-font-weight",At.fontWeight,"normal"),Tt=pt.extend("--ft-typography-title-letter-spacing",At.letterSpacing,"0.15px"),_t=pt.extend("--ft-typography-title-line-height",At.lineHeight,"24px"),Pt=pt.extend("--ft-typography-title-text-transform",At.textTransform,"inherit"),It=pt.extend("--ft-typography-title-dense-font-family",Ft),Wt=pt.extend("--ft-typography-title-dense-font-size",At.fontSize,"14px"),Ht=pt.extend("--ft-typography-title-dense-font-weight",At.fontWeight,"normal"),Kt=pt.extend("--ft-typography-title-dense-letter-spacing",At.letterSpacing,"0.105px"),Zt=pt.extend("--ft-typography-title-dense-line-height",At.lineHeight,"24px"),Vt=pt.extend("--ft-typography-title-dense-text-transform",At.textTransform,"inherit"),qt=pt.extend("--ft-typography-subtitle1-font-family",jt),Xt=pt.extend("--ft-typography-subtitle1-font-size",At.fontSize,"16px"),Jt=pt.extend("--ft-typography-subtitle1-font-weight",At.fontWeight,"600"),Yt=pt.extend("--ft-typography-subtitle1-letter-spacing",At.letterSpacing,"0.144px"),Gt=pt.extend("--ft-typography-subtitle1-line-height",At.lineHeight,"24px"),Qt=pt.extend("--ft-typography-subtitle1-text-transform",At.textTransform,"inherit"),te=pt.extend("--ft-typography-subtitle2-font-family",jt),ee=pt.extend("--ft-typography-subtitle2-font-size",At.fontSize,"14px"),ie=pt.extend("--ft-typography-subtitle2-font-weight",At.fontWeight,"normal"),oe=pt.extend("--ft-typography-subtitle2-letter-spacing",At.letterSpacing,"0.098px"),se=pt.extend("--ft-typography-subtitle2-line-height",At.lineHeight,"24px"),ne=pt.extend("--ft-typography-subtitle2-text-transform",At.textTransform,"inherit"),re={fontFamily:pt.extend("--ft-typography-body1-font-family",jt),fontSize:pt.extend("--ft-typography-body1-font-size",At.fontSize,"16px"),fontWeight:pt.extend("--ft-typography-body1-font-weight",At.fontWeight,"normal"),letterSpacing:pt.extend("--ft-typography-body1-letter-spacing",At.letterSpacing,"0.496px"),lineHeight:pt.extend("--ft-typography-body1-line-height",At.lineHeight,"24px"),textTransform:pt.extend("--ft-typography-body1-text-transform",At.textTransform,"inherit")},le=pt.extend("--ft-typography-body2-font-family",jt),ae=pt.extend("--ft-typography-body2-font-size",At.fontSize,"14px"),pe=pt.extend("--ft-typography-body2-font-weight",At.fontWeight,"normal"),ce=pt.extend("--ft-typography-body2-letter-spacing",At.letterSpacing,"0.252px"),he=pt.extend("--ft-typography-body2-line-height",At.lineHeight,"20px"),fe=pt.extend("--ft-typography-body2-text-transform",At.textTransform,"inherit"),de={fontFamily:pt.extend("--ft-typography-caption-font-family",jt),fontSize:pt.extend("--ft-typography-caption-font-size",At.fontSize,"12px"),fontWeight:pt.extend("--ft-typography-caption-font-weight",At.fontWeight,"normal"),letterSpacing:pt.extend("--ft-typography-caption-letter-spacing",At.letterSpacing,"0.396px"),lineHeight:pt.extend("--ft-typography-caption-line-height",At.lineHeight,"16px"),textTransform:pt.extend("--ft-typography-caption-text-transform",At.textTransform,"inherit")},ue=pt.extend("--ft-typography-breadcrumb-font-family",jt),ye=pt.extend("--ft-typography-breadcrumb-font-size",At.fontSize,"10px"),xe=pt.extend("--ft-typography-breadcrumb-font-weight",At.fontWeight,"normal"),ve=pt.extend("--ft-typography-breadcrumb-letter-spacing",At.letterSpacing,"0.33px"),ge=pt.extend("--ft-typography-breadcrumb-line-height",At.lineHeight,"16px"),be=pt.extend("--ft-typography-breadcrumb-text-transform",At.textTransform,"inherit"),me=pt.extend("--ft-typography-overline-font-family",jt),we=pt.extend("--ft-typography-overline-font-size",At.fontSize,"10px"),$e=pt.extend("--ft-typography-overline-font-weight",At.fontWeight,"normal"),Oe=pt.extend("--ft-typography-overline-letter-spacing",At.letterSpacing,"1.5px"),Se=pt.extend("--ft-typography-overline-line-height",At.lineHeight,"16px"),Ce=pt.extend("--ft-typography-overline-text-transform",At.textTransform,"uppercase"),ke=pt.extend("--ft-typography-button-font-family",jt),Ee=pt.extend("--ft-typography-button-font-size",At.fontSize,"14px"),Ne=pt.extend("--ft-typography-button-font-weight",At.fontWeight,"600"),Re=pt.extend("--ft-typography-button-letter-spacing",At.letterSpacing,"1.246px"),Me=pt.extend("--ft-typography-button-line-height",At.lineHeight,"16px"),Ue=pt.extend("--ft-typography-button-text-transform",At.textTransform,"uppercase"),ze=f`
98
101
  .ft-typography--title {
99
- font-family: ${_t};
100
- font-size: ${Dt};
101
- font-weight: ${Bt};
102
- letter-spacing: ${It};
103
- line-height: ${Pt};
104
- text-transform: ${Lt};
102
+ font-family: ${Dt};
103
+ font-size: ${Bt};
104
+ font-weight: ${Lt};
105
+ letter-spacing: ${Tt};
106
+ line-height: ${_t};
107
+ text-transform: ${Pt};
105
108
  }
106
- `,ze=s`
109
+ `,Fe=f`
107
110
  .ft-typography--title-dense {
108
- font-family: ${Ht};
111
+ font-family: ${It};
109
112
  font-size: ${Wt};
110
- font-weight: ${Vt};
113
+ font-weight: ${Ht};
111
114
  letter-spacing: ${Kt};
112
115
  line-height: ${Zt};
113
- text-transform: ${Gt};
116
+ text-transform: ${Vt};
114
117
  }
115
- `,Ue=s`
118
+ `,je=f`
116
119
  .ft-typography--subtitle1 {
117
120
  font-family: ${qt};
118
121
  font-size: ${Xt};
119
122
  font-weight: ${Jt};
120
123
  letter-spacing: ${Yt};
121
- line-height: ${Qt};
122
- text-transform: ${te};
124
+ line-height: ${Gt};
125
+ text-transform: ${Qt};
123
126
  }
124
- `,je=s`
127
+ `,Ae=f`
125
128
  .ft-typography--subtitle2 {
126
- font-family: ${ee};
127
- font-size: ${ie};
128
- font-weight: ${re};
129
+ font-family: ${te};
130
+ font-size: ${ee};
131
+ font-weight: ${ie};
129
132
  letter-spacing: ${oe};
130
- line-height: ${ne};
131
- text-transform: ${se};
133
+ line-height: ${se};
134
+ text-transform: ${ne};
132
135
  }
133
136
 
134
- `,_e=s`
137
+ `,De=f`
135
138
  .ft-typography--body1 {
136
- font-family: ${ae.fontFamily};
137
- font-size: ${ae.fontSize};
138
- font-weight: ${ae.fontWeight};
139
- letter-spacing: ${ae.letterSpacing};
140
- line-height: ${ae.lineHeight};
141
- text-transform: ${ae.textTransform};
139
+ font-family: ${re.fontFamily};
140
+ font-size: ${re.fontSize};
141
+ font-weight: ${re.fontWeight};
142
+ letter-spacing: ${re.letterSpacing};
143
+ line-height: ${re.lineHeight};
144
+ text-transform: ${re.textTransform};
142
145
  }
143
- `,De=s`
146
+ `,Be=f`
144
147
  .ft-typography--body2 {
145
- font-family: ${ce};
146
- font-size: ${le};
148
+ font-family: ${le};
149
+ font-size: ${ae};
147
150
  font-weight: ${pe};
148
- letter-spacing: ${de};
149
- line-height: ${ue};
151
+ letter-spacing: ${ce};
152
+ line-height: ${he};
150
153
  text-transform: ${fe};
151
154
  }
152
- `,Be=s`
155
+ `,Le=f`
153
156
  .ft-typography--caption {
154
- font-family: ${he.fontFamily};
155
- font-size: ${he.fontSize};
156
- font-weight: ${he.fontWeight};
157
- letter-spacing: ${he.letterSpacing};
158
- line-height: ${he.lineHeight};
159
- text-transform: ${he.textTransform};
157
+ font-family: ${de.fontFamily};
158
+ font-size: ${de.fontSize};
159
+ font-weight: ${de.fontWeight};
160
+ letter-spacing: ${de.letterSpacing};
161
+ line-height: ${de.lineHeight};
162
+ text-transform: ${de.textTransform};
160
163
  }
161
- `,Ie=s`
164
+ `,Te=f`
162
165
  .ft-typography--breadcrumb {
163
- font-family: ${me};
166
+ font-family: ${ue};
164
167
  font-size: ${ye};
165
- font-weight: ${ve};
166
- letter-spacing: ${ge};
167
- line-height: ${be};
168
- text-transform: ${xe};
168
+ font-weight: ${xe};
169
+ letter-spacing: ${ve};
170
+ line-height: ${ge};
171
+ text-transform: ${be};
169
172
  }
170
- `,Pe=s`
173
+ `,_e=f`
171
174
  .ft-typography--overline {
172
- font-family: ${we};
173
- font-size: ${$e};
174
- font-weight: ${Oe};
175
- letter-spacing: ${Se};
176
- line-height: ${ke};
177
- text-transform: ${Ee};
175
+ font-family: ${me};
176
+ font-size: ${we};
177
+ font-weight: ${$e};
178
+ letter-spacing: ${Oe};
179
+ line-height: ${Se};
180
+ text-transform: ${Ce};
178
181
  }
179
- `,Le=s`
182
+ `,Pe=f`
180
183
  .ft-typography--button {
181
- font-family: ${Ce};
182
- font-size: ${Re};
184
+ font-family: ${ke};
185
+ font-size: ${Ee};
183
186
  font-weight: ${Ne};
184
- letter-spacing: ${Ae};
187
+ letter-spacing: ${Re};
185
188
  line-height: ${Me};
186
- text-transform: ${Te};
189
+ text-transform: ${Ue};
187
190
  }
188
- `;let He=class extends Et{constructor(){super(...arguments),this.variant=Tt.body1}getStyles(){return[Fe,ze,Ue,je,_e,De,Be,Ie,Pe,Le,s`
189
- .ft-typography {
190
- vertical-align: inherit;
191
- }
192
- `]}getTemplate(){return this.element?Mt`
191
+ `;class Ie extends ft{constructor(){super(...arguments),this.variant=Ut.body1}render(){return this.element?Mt`
193
192
  <${Nt(this.element)}
194
193
  class="ft-typography ft-typography--${this.variant}">
195
194
  <slot></slot>
196
195
  </${Nt(this.element)}>
197
196
  `:Mt`
198
197
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
199
- `}};Ft([nt()],He.prototype,"element",void 0),Ft([nt()],He.prototype,"variant",void 0),He=Ft([$t("ft-typography")],He);var We=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const Ve={fontSize:Ot.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:Ot.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:Ot.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:Ot.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:Ot.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:Ot.extend("--ft-input-label-border-color",kt.colorOutline),textColor:Ot.extend("--ft-input-label-text-color",kt.colorOnSurfaceMedium),disabledTextColor:Ot.extend("--ft-input-label-disabled-text-color",kt.colorOnSurfaceDisabled),colorSurface:Ot.external(kt.colorSurface,"Design system"),borderRadiusS:Ot.external(kt.borderRadiusS,"Design system")};let Ke=class extends Et{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}getStyles(){return[Be,s`
200
- .ft-input-label {
201
- position: absolute;
202
- inset: 0;
203
- display: flex;
204
- }
205
-
206
- .ft-input-label {
207
- border-color: ${Ve.borderColor};
208
- }
209
-
210
- .ft-input-label:before,
211
- .ft-input-label:after {
212
- content: "";
213
- display: flex;
214
- border-bottom-width: 1px;
215
- border-bottom-style: solid;
216
- border-color: inherit;
217
- }
218
-
219
- .ft-input-label:before {
220
- width: ${Ve.horizontalSpacing};
221
- flex-shrink: 0;
222
- }
223
-
224
- .ft-input-label:after {
225
- flex-grow: 1;
226
- flex-shrink: 1;
227
- }
228
-
229
- .ft-input-label--text {
230
- display: flex;
231
- flex-shrink: 1;
232
- position: relative;
233
- border-bottom-width: 1px;
234
- border-bottom-style: solid;
235
- border-color: inherit;
236
- color: ${Ve.textColor};
237
- transition: font-size 250ms, line-height 250ms, color 250ms;
238
- ${St(he.fontSize,Ve.fontSize)};
239
- ${St(he.lineHeight,Ve.fontSize)};
240
- }
241
-
242
- .ft-input-label--disabled .ft-input-label--text {
243
- color: ${Ve.disabledTextColor};
244
- }
245
-
246
- .ft-input-label--hidden-text {
247
- padding: 0 4px;
248
- opacity: 0;
249
- }
250
-
251
- .ft-input-label--floating-text {
252
- position: absolute;
253
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
254
- transition: top 250ms;
255
- width: calc(100% - 8px);
256
- overflow: hidden;
257
- white-space: nowrap;
258
- text-overflow: ellipsis;
259
- padding: ${Ve.verticalSpacing} 4px;
260
- margin: calc(${Ve.verticalSpacing} * -1) 0;
261
- }
262
-
263
- .ft-input-label--raised .ft-input-label--text {
264
- ${St(he.fontSize,Ve.raisedFontSize)};
265
- ${St(he.lineHeight,Ve.raisedFontSize)};
266
- }
267
-
268
- .ft-input-label--raised .ft-input-label--floating-text {
269
- top: ${Ve.verticalSpacing};
270
- }
271
-
272
- .ft-input-label--outlined .ft-input-label--text,
273
- .ft-input-label--outlined:before,
274
- .ft-input-label--outlined:after {
275
- border-top-width: 1px;
276
- border-top-style: solid;
277
- }
278
-
279
- .ft-input-label--outlined:before {
280
- border-left-width: 1px;
281
- border-left-style: solid;
282
- border-radius: ${Ve.borderRadiusS} 0 0 ${Ve.borderRadiusS};
283
- }
284
-
285
- .ft-input-label--outlined:after {
286
- border-right-width: 1px;
287
- border-right-style: solid;
288
- border-radius: 0 ${Ve.borderRadiusS} ${Ve.borderRadiusS} 0;
289
- }
290
-
291
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
292
- padding: 2px 4px;
293
- z-index: ${Ve.raisedZIndex};
294
- background-color: ${Ve.colorSurface};
295
- border-radius: ${Ve.borderRadiusS};
296
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
297
- }
298
-
299
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
300
- border-top: none;
301
- }
302
- `]}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 U`
303
- <div class="${ft(t)}">
304
- ${this.text?U`
198
+ `}}Ie.styles=[ze,Fe,je,Ae,De,Be,Le,Te,_e,Pe,f`
199
+ .ft-typography {
200
+ vertical-align: inherit;
201
+ }
202
+ `],zt([i()],Ie.prototype,"element",void 0),zt([i()],Ie.prototype,"variant",void 0),r("ft-typography")(Ie);var We=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const He={fontSize:pt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:pt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:pt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:pt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:pt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:pt.extend("--ft-input-label-border-color",ht.colorOutline),textColor:pt.extend("--ft-input-label-text-color",ht.colorOnSurfaceMedium),disabledTextColor:pt.extend("--ft-input-label-disabled-text-color",ht.colorOnSurfaceDisabled),colorSurface:pt.external(ht.colorSurface,"Design system"),borderRadiusS:pt.external(ht.borderRadiusS,"Design system")};class Ke extends ft{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}render(){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 P`
203
+ <div class="${bt(t)}">
204
+ ${this.text?P`
305
205
  <div class="ft-input-label--text ft-typography--caption">
306
206
  <span class="ft-input-label--floating-text">${this.text}</span>
307
207
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
308
208
  </div>
309
209
  `:null}
310
210
  </div>
311
- `}};Ke.elementDefinitions={},We([nt({type:String})],Ke.prototype,"text",void 0),We([nt({type:Boolean})],Ke.prototype,"raised",void 0),We([nt({type:Boolean})],Ke.prototype,"outlined",void 0),We([nt({type:Boolean})],Ke.prototype,"disabled",void 0),Ke=We([$t("ft-input-label")],Ke);
312
- /*! *****************************************************************************
313
- Copyright (c) Microsoft Corporation.
314
-
315
- Permission to use, copy, modify, and/or distribute this software for any
316
- purpose with or without fee is hereby granted.
317
-
318
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
319
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
320
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
321
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
322
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
323
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
324
- PERFORMANCE OF THIS SOFTWARE.
325
- ***************************************************************************** */
326
- var Ze=function(t,e){return Ze=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])},Ze(t,e)};var Ge=function(){return Ge=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},Ge.apply(this,arguments)};function qe(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}function Xe(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.")}
327
- /**
328
- * @license
329
- * Copyright 2018 Google Inc.
330
- *
331
- * Permission is hereby granted, free of charge, to any person obtaining a copy
332
- * of this software and associated documentation files (the "Software"), to deal
333
- * in the Software without restriction, including without limitation the rights
334
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
335
- * copies of the Software, and to permit persons to whom the Software is
336
- * furnished to do so, subject to the following conditions:
337
- *
338
- * The above copyright notice and this permission notice shall be included in
339
- * all copies or substantial portions of the Software.
340
- *
341
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
342
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
343
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
344
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
345
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
346
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
347
- * THE SOFTWARE.
348
- */
349
- /**
350
- * @license
351
- * Copyright 2018 Google LLC
352
- * SPDX-License-Identifier: Apache-2.0
353
- */
354
- const Je=()=>{},Ye={get passive(){return!1}};document.addEventListener("x",Je,Ye),document.removeEventListener("x",Je);
355
- /**
356
- * @license
357
- * Copyright 2018 Google LLC
358
- * SPDX-License-Identifier: Apache-2.0
359
- */
360
- class Qe extends et{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()}}
361
- /**
362
- * @license
363
- * Copyright 2016 Google Inc.
364
- *
365
- * Permission is hereby granted, free of charge, to any person obtaining a copy
366
- * of this software and associated documentation files (the "Software"), to deal
367
- * in the Software without restriction, including without limitation the rights
368
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
369
- * copies of the Software, and to permit persons to whom the Software is
370
- * furnished to do so, subject to the following conditions:
371
- *
372
- * The above copyright notice and this permission notice shall be included in
373
- * all copies or substantial portions of the Software.
374
- *
375
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
376
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
377
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
378
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
379
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
380
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
381
- * THE SOFTWARE.
382
- */var ti=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}(),ei={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"},ii={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"},ri={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
383
- /**
384
- * @license
385
- * Copyright 2016 Google Inc.
386
- *
387
- * Permission is hereby granted, free of charge, to any person obtaining a copy
388
- * of this software and associated documentation files (the "Software"), to deal
389
- * in the Software without restriction, including without limitation the rights
390
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
391
- * copies of the Software, and to permit persons to whom the Software is
392
- * furnished to do so, subject to the following conditions:
393
- *
394
- * The above copyright notice and this permission notice shall be included in
395
- * all copies or substantial portions of the Software.
396
- *
397
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
398
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
399
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
400
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
401
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
402
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
403
- * THE SOFTWARE.
404
- */
405
- /**
406
- * @license
407
- * Copyright 2016 Google Inc.
408
- *
409
- * Permission is hereby granted, free of charge, to any person obtaining a copy
410
- * of this software and associated documentation files (the "Software"), to deal
411
- * in the Software without restriction, including without limitation the rights
412
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
413
- * copies of the Software, and to permit persons to whom the Software is
414
- * furnished to do so, subject to the following conditions:
415
- *
416
- * The above copyright notice and this permission notice shall be included in
417
- * all copies or substantial portions of the Software.
418
- *
419
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
420
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
421
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
422
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
423
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
424
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
425
- * THE SOFTWARE.
426
- */
427
- var oi=["touchstart","pointerdown","mousedown","keydown"],ni=["touchend","pointerup","mouseup","contextmenu"],si=[],ai=function(t){function e(i){var r=t.call(this,Ge(Ge({},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}Ze(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ei},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ii},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return ri},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,n=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(n),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=Xe(oi),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerInteractionHandler(n,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=Xe(ni),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerDocumentInteractionHandler(n,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=Xe(oi),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=Xe(ni),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&&si.length>0&&si.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(si.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){si=[],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,n=e.cssClasses,s=n.FG_DEACTIVATION,a=n.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",p="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),u=d.startPoint,f=d.endPoint;l=u.x+"px, "+u.y+"px",p=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(r,l),this.adapter.updateCssVariable(o,p),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,n=e.x,s=e.y,a=n+i.left,c=s+i.top;if("touchstart"===t.type){var l=t;r=l.changedTouches[0].pageX-a,o=l.changedTouches[0].pageY-c}else{var p=t;r=p.pageX-a,o=p.pageY-c}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.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,n=r.isActivated;(o||!n)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),ri.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=Ge({},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,n=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(n,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}(ti),ci=ai;
428
- /**
429
- * @license
430
- * Copyright 2018 Google LLC
431
- * SPDX-License-Identifier: BSD-3-Clause
432
- */
433
- const li=dt(class extends ut{constructor(t){var e;if(super(t),t.type!==lt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const r=t[i];return null==r?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const r=e[t];null!=r&&(this.ct.add(t),t.includes("-")?i.setProperty(t,r):i[t]=r)}return j}});
434
- /**
435
- * @license
436
- * Copyright 2018 Google LLC
437
- * SPDX-License-Identifier: Apache-2.0
438
- */class pi extends Qe{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=ci}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),e=this.selected&&(this.primary||!this.accent),i={"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":e,"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 U`
439
- <div class="mdc-ripple-surface mdc-ripple-upgraded ${ft(i)}"
440
- style="${li({"--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>`}}qe([at(".mdc-ripple-surface")],pi.prototype,"mdcRoot",void 0),qe([nt({type:Boolean})],pi.prototype,"primary",void 0),qe([nt({type:Boolean})],pi.prototype,"accent",void 0),qe([nt({type:Boolean})],pi.prototype,"unbounded",void 0),qe([nt({type:Boolean})],pi.prototype,"disabled",void 0),qe([nt({type:Boolean})],pi.prototype,"activated",void 0),qe([nt({type:Boolean})],pi.prototype,"selected",void 0),qe([nt({type:Boolean})],pi.prototype,"internalUseStateLayerCustomProperties",void 0),qe([st()],pi.prototype,"hovering",void 0),qe([st()],pi.prototype,"bgFocused",void 0),qe([st()],pi.prototype,"fgActivation",void 0),qe([st()],pi.prototype,"fgDeactivation",void 0),qe([st()],pi.prototype,"fgScale",void 0),qe([st()],pi.prototype,"fgSize",void 0),qe([st()],pi.prototype,"translateStart",void 0),qe([st()],pi.prototype,"translateEnd",void 0),qe([st()],pi.prototype,"leftPos",void 0),qe([st()],pi.prototype,"topPos",void 0);
441
- /**
442
- * @license
443
- * Copyright 2021 Google LLC
444
- * SPDX-LIcense-Identifier: Apache-2.0
445
- */
446
- const di=s`.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)}`
447
- /**
448
- * @license
449
- * Copyright 2018 Google LLC
450
- * SPDX-License-Identifier: Apache-2.0
451
- */;let ui=class extends pi{};ui.styles=[di],ui=qe([rt("mwc-ripple")],ui);
452
- /**
453
- * @license
454
- * Copyright 2020 Google LLC
455
- * SPDX-License-Identifier: Apache-2.0
456
- */
457
- class fi{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 hi=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const mi={color:Ot.extend("--ft-ripple-color",kt.colorContent),primaryColor:Ot.extend("--ft-ripple-primary-color",Ot.extend("--ft-ripple-color",kt.colorPrimary)),secondaryColor:Ot.extend("--ft-ripple-secondary-color",Ot.extend("--ft-ripple-color",kt.colorSecondary)),opacityContentOnSurfacePressed:Ot.external(kt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ot.external(kt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ot.external(kt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ot.external(kt.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:Ot.external(kt.opacityContentOnSurfaceDragged,"Design system")};let yi=class extends Et{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return s`
458
- :host {
459
- display: contents;
460
-
461
- --mdc-ripple-color: ${mi.color};
462
- --mdc-ripple-press-opacity: ${mi.opacityContentOnSurfacePressed};
463
- --mdc-ripple-hover-opacity: ${mi.opacityContentOnSurfaceHover};
464
- --mdc-ripple-focus-opacity: ${mi.opacityContentOnSurfaceFocused};
465
- --mdc-ripple-selected-opacity: ${mi.opacityContentOnSurfaceSelected};
466
- --mdc-ripple-activated-opacity: ${mi.opacityContentOnSurfaceDragged};
467
- }
468
-
469
- mwc-ripple.ft-ripple--secondary {
470
- --mdc-ripple-color: ${mi.secondaryColor};
471
- }
472
-
473
- mwc-ripple.ft-ripple--primary {
474
- --mdc-ripple-color: ${mi.primaryColor};
475
- }
476
- `}getTemplate(){return U`
477
- <mwc-ripple
478
- class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
479
- ?unbounded=${this.unbounded}
480
- ?activated=${this.activated}
481
- ?selected=${this.selected}
482
- ?disabled=${this.disabled}
483
- ></mwc-ripple>
484
- `}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 fi((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"),n=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",n),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",n),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};yi.elementDefinitions={"mwc-ripple":ui},hi([nt({type:Boolean})],yi.prototype,"primary",void 0),hi([nt({type:Boolean})],yi.prototype,"secondary",void 0),hi([nt({type:Boolean})],yi.prototype,"unbounded",void 0),hi([nt({type:Boolean})],yi.prototype,"activated",void 0),hi([nt({type:Boolean})],yi.prototype,"selected",void 0),hi([nt({type:Boolean})],yi.prototype,"disabled",void 0),hi([at("mwc-ripple")],yi.prototype,"mwcRipple",void 0),yi=hi([$t("ft-ripple")],yi);
485
- /**
486
- * @license
487
- * Copyright 2021 Google LLC
488
- * SPDX-LIcense-Identifier: Apache-2.0
489
- */
490
- const vi=s`: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"}`
491
- /**
492
- * @license
493
- * Copyright 2018 Google LLC
494
- * SPDX-License-Identifier: Apache-2.0
495
- */;let gi=class extends et{render(){return U`<span><slot></slot></span>`}};gi.styles=[vi],gi=qe([rt("mwc-icon")],gi);var bi=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};t.FtSelectOption=class extends Et{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}getTemplate(){return U``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}},t.FtSelectOption.elementDefinitions={},bi([nt({type:String})],t.FtSelectOption.prototype,"label",void 0),bi([nt({type:Object,converter:t=>t})],t.FtSelectOption.prototype,"value",void 0),bi([nt({type:Boolean,reflect:!0})],t.FtSelectOption.prototype,"selected",void 0),t.FtSelectOption=bi([$t("ft-select-option")],t.FtSelectOption);const xi={labelSize:Ot.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:Ot.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:Ot.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:Ot.extend("--ft-select-selected-option-color",kt.colorOnSurface),helperColor:Ot.extend("--ft-select-helper-color",kt.colorOnSurfaceMedium),optionsColor:Ot.extend("--ft-select-options-color",kt.colorOnSurface),optionsZIndex:Ot.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:Ot.external(kt.colorSurface,"Design system"),colorOnSurfaceDisabled:Ot.external(kt.colorOnSurfaceDisabled,"Design system"),colorPrimary:Ot.external(kt.colorPrimary,"Design system"),borderRadiusS:Ot.external(kt.borderRadiusS,"Design system"),elevation02:Ot.external(kt.elevation02,"Design system")};t.FtSelect=class extends Et{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[De,Be,s`
496
- *:focus {
497
- outline: none;
498
- }
499
-
500
- .ft-select {
501
- display: flex;
502
- flex-direction: column;
503
- align-items: stretch;
504
- }
505
-
506
- .ft-select--main-panel {
507
- position: relative;
508
- display: flex;
509
- height: calc(4 * ${xi.verticalSpacing} + ${xi.labelSize} + ${xi.selectedOptionSize});
510
- }
511
-
512
- .ft-select--input-panel {
513
- flex-grow: 1;
514
- position: relative;
515
- display: flex;
516
- align-items: center;
517
- overflow: hidden;
518
- padding-left: 16px;
519
- padding-right: 8px;
520
- gap: 8px;
521
- color: ${xi.selectedOptionColor};
522
- ${St(mi.color,xi.selectedOptionColor)};
523
- }
524
-
525
- .ft-select--input-panel,
526
- .ft-select--option {
527
- ${St(mi.opacityContentOnSurfaceHover,"0.08")};
528
- ${St(mi.opacityContentOnSurfaceDragged,"0.04")};
529
- }
211
+ `}}Ke.elementDefinitions={},Ke.styles=[Le,f`
212
+ .ft-input-label {
213
+ position: absolute;
214
+ inset: 0;
215
+ display: flex;
216
+ }
530
217
 
531
- .ft-select--disabled .ft-select--input-panel,
532
- .ft-select--disabled .ft-select--option {
533
- color: ${xi.colorOnSurfaceDisabled};
534
- }
218
+ .ft-input-label {
219
+ border-color: ${He.borderColor};
220
+ }
535
221
 
536
- .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
537
- .ft-select:not(.ft-select--disabled) .ft-select--option {
538
- cursor: pointer;
539
- }
222
+ .ft-input-label:before,
223
+ .ft-input-label:after {
224
+ content: "";
225
+ display: flex;
226
+ border-bottom-width: 1px;
227
+ border-bottom-style: solid;
228
+ border-color: inherit;
229
+ }
540
230
 
541
- ft-input-label {
542
- ${St(Ve.fontSize,xi.selectedOptionSize)};
543
- ${St(Ve.raisedFontSize,xi.labelSize)};
544
- ${St(Ve.verticalSpacing,xi.verticalSpacing)};
545
- }
231
+ .ft-input-label:before {
232
+ width: ${He.horizontalSpacing};
233
+ flex-shrink: 0;
234
+ }
546
235
 
547
- .ft-select:not(.ft-select--disabled):focus-within mwc-icon {
548
- color: ${xi.colorPrimary};
549
- }
236
+ .ft-input-label:after {
237
+ flex-grow: 1;
238
+ flex-shrink: 1;
239
+ }
550
240
 
551
- .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
552
- ${St(Ve.borderColor,xi.colorPrimary)};
553
- ${St(Ve.textColor,xi.colorPrimary)};
554
- }
241
+ .ft-input-label--text {
242
+ display: flex;
243
+ flex-shrink: 1;
244
+ position: relative;
245
+ border-bottom-width: 1px;
246
+ border-bottom-style: solid;
247
+ border-color: inherit;
248
+ color: ${He.textColor};
249
+ transition: font-size 250ms, line-height 250ms, color 250ms;
250
+ ${ct(de.fontSize,He.fontSize)};
251
+ ${ct(de.lineHeight,He.fontSize)};
252
+ }
555
253
 
556
- .ft-select--selected-option {
557
- display: block;
558
- flex-grow: 1;
559
- flex-shrink: 1;
560
- overflow: hidden;
561
- white-space: nowrap;
562
- text-overflow: ellipsis;
563
- ${St(ae.fontSize,xi.selectedOptionSize)};
564
- ${St(ae.lineHeight,xi.selectedOptionSize)};
565
- }
254
+ .ft-input-label--disabled .ft-input-label--text {
255
+ color: ${He.disabledTextColor};
256
+ }
566
257
 
567
- mwc-icon {
568
- flex-shrink: 0;
569
- }
258
+ .ft-input-label--hidden-text {
259
+ padding: 0 4px;
260
+ opacity: 0;
261
+ }
570
262
 
571
- slot {
572
- display: none;
573
- }
263
+ .ft-input-label--floating-text {
264
+ position: absolute;
265
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
266
+ transition: top 250ms;
267
+ width: calc(100% - 8px);
268
+ overflow: hidden;
269
+ white-space: nowrap;
270
+ text-overflow: ellipsis;
271
+ padding: ${He.verticalSpacing} 4px;
272
+ margin: calc(${He.verticalSpacing} * -1) 0;
273
+ }
574
274
 
575
- .ft-select--filled .ft-select--input-panel {
576
- border-radius: ${xi.borderRadiusS} ${xi.borderRadiusS} 0 0;
577
- }
275
+ .ft-input-label--raised .ft-input-label--text {
276
+ ${ct(de.fontSize,He.raisedFontSize)};
277
+ ${ct(de.lineHeight,He.raisedFontSize)};
278
+ }
578
279
 
579
- .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
580
- align-self: stretch;
581
- padding-top: calc(${xi.labelSize} + 2 * ${xi.verticalSpacing});
582
- }
280
+ .ft-input-label--raised .ft-input-label--floating-text {
281
+ top: ${He.verticalSpacing};
282
+ }
583
283
 
584
- .ft-select--outlined .ft-select--input-panel {
585
- border-radius: ${xi.borderRadiusS};
586
- }
284
+ .ft-input-label--outlined .ft-input-label--text,
285
+ .ft-input-label--outlined:before,
286
+ .ft-input-label--outlined:after {
287
+ border-top-width: 1px;
288
+ border-top-style: solid;
289
+ }
587
290
 
588
- .ft-select--options {
589
- display: none;
590
- position: absolute;
591
- top: 100%;
592
- left: 0;
593
- right: 0;
594
- color: ${xi.optionsColor};
595
- background: ${xi.colorSurface};
596
- z-index: ${xi.optionsZIndex};
597
- box-shadow: ${xi.elevation02};
598
- }
291
+ .ft-input-label--outlined:before {
292
+ border-left-width: 1px;
293
+ border-left-style: solid;
294
+ border-radius: ${He.borderRadiusS} 0 0 ${He.borderRadiusS};
295
+ }
599
296
 
600
- .ft-select--options-displayed .ft-select--options {
601
- display: block;
602
- }
297
+ .ft-input-label--outlined:after {
298
+ border-right-width: 1px;
299
+ border-right-style: solid;
300
+ border-radius: 0 ${He.borderRadiusS} ${He.borderRadiusS} 0;
301
+ }
603
302
 
604
- .ft-select--option {
605
- position: relative;
606
- padding: 4px 16px;
607
- min-height: 32px;
608
- display: flex;
609
- align-items: center;
610
- }
303
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
304
+ padding: 2px 4px;
305
+ z-index: ${He.raisedZIndex};
306
+ background-color: ${He.colorSurface};
307
+ border-radius: ${He.borderRadiusS};
308
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
309
+ }
611
310
 
612
- .ft-select--helper-text {
613
- padding: 0 12px 0 16px;
614
- color: ${xi.helperColor};
615
- }
616
- `]}getTemplate(){var t,e,i,r,o;let n=!this.disabled&&this.optionsDisplayed&&this.hasOptions,s=this.disabled||!this.hasOptions;const a=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,c={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":s,"ft-select--options-displayed":n,"ft-select--has-option-selected":a,"ft-select--no-label":!this.label};return U`
617
- <div class="${ft(c)}" part="container">
311
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
312
+ border-top: none;
313
+ }
314
+ `],We([i({type:String})],Ke.prototype,"text",void 0),We([i({type:Boolean})],Ke.prototype,"raised",void 0),We([i({type:Boolean})],Ke.prototype,"outlined",void 0),We([i({type:Boolean})],Ke.prototype,"disabled",void 0),r("ft-input-label")(Ke);var Ze=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ve={color:pt.extend("--ft-ripple-color",ht.colorContent),primaryColor:pt.extend("--ft-ripple-primary-color",pt.extend("--ft-ripple-color",ht.colorPrimary)),secondaryColor:pt.extend("--ft-ripple-secondary-color",pt.extend("--ft-ripple-color",ht.colorSecondary)),opacityContentOnSurfacePressed:pt.external(ht.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pt.external(ht.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pt.external(ht.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pt.external(ht.opacityContentOnSurfaceSelected,"Design system")};class qe extends ft{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return P`
315
+ <style>
316
+ .ft-ripple .ft-ripple--effect,
317
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
318
+ width: ${this.rippleSize}px;
319
+ height: ${this.rippleSize}px;
320
+ }
321
+
322
+ .ft-ripple .ft-ripple--effect {
323
+ left: ${this.originX}px;
324
+ top: ${this.originY}px;
325
+ }
326
+ </style>
327
+ <div class="${bt(t)}">
328
+ <div class="ft-ripple--background"></div>
329
+ <div class="ft-ripple--effect"></div>
330
+ </div>
331
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}qe.elementDefinitions={},qe.styles=f`
332
+ :host {
333
+ display: contents;
334
+ }
335
+
336
+ .ft-ripple {
337
+ position: absolute;
338
+ inset: 0;
339
+ pointer-events: none;
340
+ }
341
+
342
+ .ft-ripple:not(.ft-ripple--unbounded) {
343
+ overflow: hidden;
344
+ }
345
+
346
+ .ft-ripple .ft-ripple--background,
347
+ .ft-ripple .ft-ripple--effect {
348
+ position: absolute;
349
+ opacity: 0;
350
+ background-color: ${Ve.color};
351
+ }
352
+
353
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background,
354
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
355
+ background-color: ${Ve.secondaryColor};
356
+ }
357
+
358
+ .ft-ripple.ft-ripple--primary .ft-ripple--background,
359
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
360
+ background-color: ${Ve.primaryColor};
361
+ }
362
+
363
+ .ft-ripple .ft-ripple--background {
364
+ top: 0;
365
+ left: 0;
366
+ height: 100%;
367
+ width: 100%;
368
+ }
369
+
370
+ .ft-ripple .ft-ripple--effect,
371
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
372
+ border-radius: 50%;
373
+ }
374
+
375
+ .ft-ripple .ft-ripple--effect {
376
+ transform: translate(-50%, -50%) scale(0.15);
377
+ transition: transform 300ms ease, opacity 75ms linear;
378
+ }
379
+
380
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
381
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
382
+ left: 50%;
383
+ top: 50%;
384
+ }
385
+
386
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
387
+ transform: translate(-50%, -50%);
388
+ }
389
+
390
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
391
+ opacity: ${Ve.opacityContentOnSurfaceHover};
392
+ }
393
+
394
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
395
+ opacity: ${Ve.opacityContentOnSurfaceSelected};
396
+ }
397
+
398
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
399
+ opacity: ${Ve.opacityContentOnSurfaceFocused};
400
+ }
401
+
402
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
403
+ opacity: ${Ve.opacityContentOnSurfacePressed};
404
+ transform: translate(-50%, -50%) scale(1);
405
+ }
406
+ `,Ze([i({type:Boolean})],qe.prototype,"primary",void 0),Ze([i({type:Boolean})],qe.prototype,"secondary",void 0),Ze([i({type:Boolean})],qe.prototype,"unbounded",void 0),Ze([i({type:Boolean})],qe.prototype,"activated",void 0),Ze([i({type:Boolean})],qe.prototype,"selected",void 0),Ze([i({type:Boolean})],qe.prototype,"disabled",void 0),Ze([o()],qe.prototype,"hovered",void 0),Ze([o()],qe.prototype,"focused",void 0),Ze([o()],qe.prototype,"pressed",void 0),Ze([o()],qe.prototype,"rippling",void 0),Ze([o()],qe.prototype,"rippleSize",void 0),Ze([o()],qe.prototype,"originX",void 0),Ze([o()],qe.prototype,"originY",void 0),Ze([s(".ft-ripple")],qe.prototype,"ripple",void 0),Ze([s(".ft-ripple--effect")],qe.prototype,"rippleEffect",void 0),r("ft-ripple")(qe);
407
+ /**
408
+ * @license
409
+ * Copyright 2017 Google LLC
410
+ * SPDX-License-Identifier: BSD-3-Clause
411
+ */
412
+ class Xe extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===W||null==t)return this.vt=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Xe.directiveName="unsafeHTML",Xe.resultType=1;const Je=vt(Xe);var Ye,Ge;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Ye||(Ye={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ge||(Ge={})),new Map([...["abw"].map((t=>[t,Ge.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ge.AUDIO])),...["avi"].map((t=>[t,Ge.AVI])),...["chm","xhs"].map((t=>[t,Ge.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ge.CODE])),...["csv"].map((t=>[t,Ge.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ge.DITA])),...["epub"].map((t=>[t,Ge.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ge.EXCEL])),...["flac"].map((t=>[t,Ge.FLAC])),...["gif"].map((t=>[t,Ge.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ge.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ge.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ge.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ge.JPEG])),...["json"].map((t=>[t,Ge.JSON])),...["m4a","m4p"].map((t=>[t,Ge.M4A])),...["mov","qt"].map((t=>[t,Ge.MOV])),...["mp3"].map((t=>[t,Ge.MP3])),...["mp4","m4v"].map((t=>[t,Ge.MP4])),...["ogg","oga"].map((t=>[t,Ge.OGG])),...["pdf","ps"].map((t=>[t,Ge.PDF])),...["png"].map((t=>[t,Ge.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ge.POWERPOINT])),...["rar"].map((t=>[t,Ge.RAR])),...["stp"].map((t=>[t,Ge.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ge.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ge.VIDEO])),...["wav"].map((t=>[t,Ge.WAV])),...["wma"].map((t=>[t,Ge.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ge.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ge.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ge.YAML])),...["zip"].map((t=>[t,Ge.ZIP]))]);var Qe,ti=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qe||(Qe={}));const ei=pt.create("--ft-icon-font-size","SIZE","24px"),ii=pt.extend("--ft-icon-fluid-topics-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),oi=pt.extend("--ft-icon-file-format-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),si=pt.extend("--ft-icon-material-font-family",pt.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class ni extends ft{constructor(){super(...arguments),this.variant=Qe.fluid_topics}render(){return P`
413
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
414
+ ${Je(this.getIcon())}
415
+ <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
416
+ </i>
417
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===Qe.file_format?null!==(t=Ge[i.toUpperCase()])&&void 0!==t?t:i:this.variant===Qe.fluid_topics?null!==(e=Ye[i.toUpperCase()])&&void 0!==e?e:i:W}}ni.elementDefinitions={},ni.styles=f`
418
+ :host, i.ft-icon {
419
+ display: inline-block;
420
+ width: ${ei};
421
+ height: ${ei};
422
+ text-align: center;
423
+ }
424
+
425
+ i.ft-icon {
426
+ font-size: ${ei};
427
+ line-height: 1;
428
+ font-weight: normal;
429
+ text-transform: none;
430
+ font-style: normal;
431
+ font-variant: normal;
432
+ speak: none;
433
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
434
+ text-rendering: auto;
435
+ -webkit-font-smoothing: antialiased;
436
+ -moz-osx-font-smoothing: grayscale;
437
+ }
438
+
439
+ .ft-icon--fluid-topics {
440
+ font-family: ${ii}, ft-icons, fticons, sans-serif;
441
+ }
442
+
443
+ .ft-icon--file-format {
444
+ font-family: ${oi}, ft-mime, sans-serif;
445
+ }
446
+
447
+ .ft-icon--material {
448
+ font-family: ${si}, "Material Icons", sans-serif;
449
+ }
450
+ `,ti([i()],ni.prototype,"variant",void 0),ti([s("slot")],ni.prototype,"slottedContent",void 0),r("ft-icon")(ni);var ri=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class li extends ft{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return P``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}li.elementDefinitions={},ri([i({type:String})],li.prototype,"label",void 0),ri([i({type:Object,converter:t=>t})],li.prototype,"value",void 0),ri([i({type:Boolean,reflect:!0})],li.prototype,"selected",void 0);const ai={labelSize:pt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:pt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:pt.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:pt.extend("--ft-select-selected-option-color",ht.colorOnSurface),helperColor:pt.extend("--ft-select-helper-color",ht.colorOnSurfaceMedium),optionsColor:pt.extend("--ft-select-options-color",ht.colorOnSurface),optionsZIndex:pt.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:pt.external(ht.colorSurface,"Design system"),colorOnSurfaceDisabled:pt.external(ht.colorOnSurfaceDisabled,"Design system"),colorPrimary:pt.external(ht.colorPrimary,"Design system"),borderRadiusS:pt.external(ht.borderRadiusS,"Design system"),elevation02:pt.external(ht.elevation02,"Design system")};class pi extends ft{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)}render(){var t,e,i,o,s;let n=!this.disabled&&this.optionsDisplayed&&this.hasOptions,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label};return P`
451
+ <div class="${bt(a)}" part="container">
618
452
  <div class="ft-select--main-panel" part="main-panel">
619
453
  <ft-input-label text="${this.label}"
620
454
  part="label"
621
- ?disabled=${s}
455
+ ?disabled=${r}
622
456
  ?outlined=${this.outlined}
623
- ?raised=${a||n}
457
+ ?raised=${l||n}
624
458
  ></ft-input-label>
625
459
  <div class="ft-select--input-panel"
626
460
  part="selected-value"
627
- tabindex="${s?"-1":"0"}"
461
+ tabindex="${r?"-1":"0"}"
628
462
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
629
463
  @keydown=${this.onMainPanelKeyDown}
630
464
  aria-label="${this.label}"
631
465
  aria-haspopup="listbox"
632
466
  aria-expanded="${n}">
633
- <ft-ripple ?disabled=${s} ?activated=${!this.outlined}></ft-ripple>
467
+ <ft-ripple ?disabled=${r} ?activated=${!this.outlined}></ft-ripple>
634
468
  <ft-typography variant="body1" class="ft-select--selected-option">
635
- ${null!==(o=null===(r=this.selectedOption)||void 0===r?void 0:r.label)&&void 0!==o?o:""}
469
+ ${null!==(s=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==s?s:""}
636
470
  </ft-typography>
637
- <mwc-icon>${n?"expand_less":"expand_more"}</mwc-icon>
471
+ <ft-icon variant="material">${n?"expand_less":"expand_more"}</ft-icon>
638
472
  </div>
639
473
  <div class="ft-select--options"
640
474
  part="options"
641
475
  @keydown=${this.onOptionsKeyDown}
642
476
  innerrole="listbox">
643
- ${wt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
477
+ ${Et(this.options,(t=>t.value),(t=>this.renderOption(t)))}
644
478
  </div>
645
479
  </div>
646
- ${this.helper?U`
480
+ ${this.helper?P`
647
481
  <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
648
482
  </ft-typography>`:void 0}
649
483
  </div>
650
484
  <slot @slotchange=${this.updateOptionsFromSlot}
651
485
  @option-change=${this.updateOptionsFromSlot}
652
486
  ></slot>
653
- `}renderOption(t){let e=this.selectedOption===t;return U`
654
- <div class="${ft({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
487
+ `}renderOption(t){let e=this.selectedOption===t;return P`
488
+ <div class="${bt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
655
489
  part="option"
656
490
  tabindex="0"
657
491
  @keydown=${e=>this.onOptionKeyDown(e,t)}
@@ -659,4 +493,125 @@ const vi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
659
493
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
660
494
  ${t.label}
661
495
  </div>
662
- `}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,n;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!==(n=null===(o=this.focusedOption)||void 0===o?void 0:o.nextElementSibling)&&void 0!==n?n: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":Ke,"ft-typography":He,"ft-ripple":yi,"mwc-icon":gi},bi([nt({type:String})],t.FtSelect.prototype,"label",void 0),bi([nt({type:String})],t.FtSelect.prototype,"helper",void 0),bi([nt({type:Boolean})],t.FtSelect.prototype,"outlined",void 0),bi([nt({type:Boolean})],t.FtSelect.prototype,"disabled",void 0),bi([nt({type:Array})],t.FtSelect.prototype,"options",void 0),bi([st()],t.FtSelect.prototype,"selectedOption",void 0),bi([st()],t.FtSelect.prototype,"optionsDisplayed",void 0),bi([st()],t.FtSelect.prototype,"focusOptions",void 0),bi([at(".ft-select")],t.FtSelect.prototype,"container",void 0),bi([at(".ft-select--input-panel")],t.FtSelect.prototype,"mainPanel",void 0),bi([at(".ft-select--option:first-child")],t.FtSelect.prototype,"firstOption",void 0),bi([at(".ft-select--option:focus")],t.FtSelect.prototype,"focusedOption",void 0),bi([at(".ft-select--option.ft-select--option-selected")],t.FtSelect.prototype,"selectedOptionElement",void 0),bi([at(".ft-select--option:last-child")],t.FtSelect.prototype,"lastOption",void 0),bi([at("slot")],t.FtSelect.prototype,"optionsSlot",void 0),t.FtSelect=bi([$t("ft-select")],t.FtSelect),t.FtSelectCssVariables=xi,Object.defineProperty(t,"t",{value:!0})}({});
496
+ `}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,o,s,n;let r;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(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.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)}}pi.elementDefinitions={"ft-input-label":Ke,"ft-typography":Ie,"ft-ripple":qe,"ft-icon":ni},pi.styles=[Be,Le,f`
497
+ *:focus {
498
+ outline: none;
499
+ }
500
+
501
+ .ft-select {
502
+ display: flex;
503
+ flex-direction: column;
504
+ align-items: stretch;
505
+ }
506
+
507
+ .ft-select--main-panel {
508
+ position: relative;
509
+ display: flex;
510
+ height: calc(4 * ${ai.verticalSpacing} + ${ai.labelSize} + ${ai.selectedOptionSize});
511
+ }
512
+
513
+ .ft-select--input-panel {
514
+ flex-grow: 1;
515
+ position: relative;
516
+ display: flex;
517
+ align-items: center;
518
+ overflow: hidden;
519
+ padding-left: 16px;
520
+ padding-right: 8px;
521
+ gap: 8px;
522
+ color: ${ai.selectedOptionColor};
523
+ ${ct(Ve.color,ai.selectedOptionColor)};
524
+ }
525
+
526
+ .ft-select--input-panel,
527
+ .ft-select--option {
528
+ ${ct(Ve.opacityContentOnSurfaceHover,"0.08")};
529
+ ${ct(Ve.opacityContentOnSurfacePressed,"0.04")};
530
+ }
531
+
532
+ .ft-select--disabled .ft-select--input-panel,
533
+ .ft-select--disabled .ft-select--option {
534
+ color: ${ai.colorOnSurfaceDisabled};
535
+ }
536
+
537
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
538
+ .ft-select:not(.ft-select--disabled) .ft-select--option {
539
+ cursor: pointer;
540
+ }
541
+
542
+ ft-input-label {
543
+ ${ct(He.fontSize,ai.selectedOptionSize)};
544
+ ${ct(He.raisedFontSize,ai.labelSize)};
545
+ ${ct(He.verticalSpacing,ai.verticalSpacing)};
546
+ }
547
+
548
+ .ft-select:not(.ft-select--disabled):focus-within ft-icon {
549
+ color: ${ai.colorPrimary};
550
+ }
551
+
552
+ .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
553
+ ${ct(He.borderColor,ai.colorPrimary)};
554
+ ${ct(He.textColor,ai.colorPrimary)};
555
+ }
556
+
557
+ .ft-select--selected-option {
558
+ display: block;
559
+ flex-grow: 1;
560
+ flex-shrink: 1;
561
+ overflow: hidden;
562
+ white-space: nowrap;
563
+ text-overflow: ellipsis;
564
+ ${ct(re.fontSize,ai.selectedOptionSize)};
565
+ ${ct(re.lineHeight,ai.selectedOptionSize)};
566
+ }
567
+
568
+ ft-icon {
569
+ flex-shrink: 0;
570
+ }
571
+
572
+ slot {
573
+ display: none;
574
+ }
575
+
576
+ .ft-select--filled .ft-select--input-panel {
577
+ border-radius: ${ai.borderRadiusS} ${ai.borderRadiusS} 0 0;
578
+ }
579
+
580
+ .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
581
+ align-self: stretch;
582
+ padding-top: calc(${ai.labelSize} + 2 * ${ai.verticalSpacing});
583
+ }
584
+
585
+ .ft-select--outlined .ft-select--input-panel {
586
+ border-radius: ${ai.borderRadiusS};
587
+ }
588
+
589
+ .ft-select--options {
590
+ display: none;
591
+ position: absolute;
592
+ top: 100%;
593
+ left: 0;
594
+ right: 0;
595
+ color: ${ai.optionsColor};
596
+ background: ${ai.colorSurface};
597
+ z-index: ${ai.optionsZIndex};
598
+ box-shadow: ${ai.elevation02};
599
+ }
600
+
601
+ .ft-select--options-displayed .ft-select--options {
602
+ display: block;
603
+ }
604
+
605
+ .ft-select--option {
606
+ position: relative;
607
+ padding: 4px 16px;
608
+ min-height: 32px;
609
+ display: flex;
610
+ align-items: center;
611
+ }
612
+
613
+ .ft-select--helper-text {
614
+ padding: 0 12px 0 16px;
615
+ color: ${ai.helperColor};
616
+ }
617
+ `],ri([i({type:String})],pi.prototype,"label",void 0),ri([i({type:String})],pi.prototype,"helper",void 0),ri([i({type:Boolean})],pi.prototype,"outlined",void 0),ri([i({type:Boolean})],pi.prototype,"disabled",void 0),ri([i({type:Array})],pi.prototype,"options",void 0),ri([o()],pi.prototype,"selectedOption",void 0),ri([o()],pi.prototype,"optionsDisplayed",void 0),ri([o()],pi.prototype,"focusOptions",void 0),ri([s(".ft-select")],pi.prototype,"container",void 0),ri([s(".ft-select--input-panel")],pi.prototype,"mainPanel",void 0),ri([s(".ft-select--option:first-child")],pi.prototype,"firstOption",void 0),ri([s(".ft-select--option:focus")],pi.prototype,"focusedOption",void 0),ri([s(".ft-select--option.ft-select--option-selected")],pi.prototype,"selectedOptionElement",void 0),ri([s(".ft-select--option:last-child")],pi.prototype,"lastOption",void 0),ri([s("slot")],pi.prototype,"optionsSlot",void 0),r("ft-select")(pi),r("ft-select-option")(li),t.FtSelect=pi,t.FtSelectCssVariables=ai,t.FtSelectOption=li,Object.defineProperty(t,"t",{value:!0})}({});