@fluid-topics/ft-file-drop 0.1.15 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,568 @@
1
+ !function(){
2
+ /**
3
+ * @license
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
16
+ */
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){f(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(t){const i=window.customElements.define;window.customElements.define=(t,e,o)=>{try{i.bind(window.customElements)(t,e,o)}catch(i){console.warn(t,e,o,i)}}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const t=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */function i(i){return(e,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(i,e,o):t(i,e)
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */}function e(t){return i({...t,state:!0})}
33
+ /**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */
38
+ /**
39
+ * @license
40
+ * Copyright 2017 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */
43
+ function o(t,i){return(({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,r=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(r.finisher=function(i){t(i,o)}),r}{const n=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(n,o)}})({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
44
+ /**
45
+ * @license
46
+ * Copyright 2021 Google LLC
47
+ * SPDX-License-Identifier: BSD-3-Clause
48
+ */var n;null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;const r=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)}
49
+ /**
50
+ * @license
51
+ * Copyright 2019 Google LLC
52
+ * SPDX-License-Identifier: BSD-3-Clause
53
+ */,s=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new Map;class h{constructor(t,i){if(this._$cssResult$=!0,i!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=l.get(this.cssText);return s&&void 0===t&&(l.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const c=t=>new h("string"==typeof t?t:t+"",a),p=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(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.")})(e)+t[o+1]),t[0]);return new h(e,a)},d=(t,i)=>{s?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},f=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return c(i)})(t):t
54
+ /**
55
+ * @license
56
+ * Copyright 2017 Google LLC
57
+ * SPDX-License-Identifier: BSD-3-Clause
58
+ */;var u;const y=window.trustedTypes,g=y?y.emptyScript:"",v=window.reactiveElementPolyfillSupport,b={toAttribute(t,i){switch(i){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},m=(t,i)=>i!==t&&(i==i||t==t),x={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:m};class w extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Eh(e,i);void 0!==o&&(this._$Eu.set(o,e),t.push(o))})),t}static createProperty(t,i=x){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||x}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,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(f(t))}else void 0!==t&&i.push(f(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"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 i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return d(i,this.constructor.elementStyles),i}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 i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=x){var o,n;const r=this.constructor._$Eh(t,e);if(void 0!==r&&!0===e.reflect){const s=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:b.toAttribute)(i,e.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,i){var e,o,n;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(n=null!==(o=null===(e=a)||void 0===e?void 0:e.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:b.fromAttribute;this._$Ei=s,this[s]=l(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||m)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,e))):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,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.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,i)=>this._$ES(i,this[i],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
59
+ /**
60
+ * @license
61
+ * Copyright 2017 Google LLC
62
+ * SPDX-License-Identifier: BSD-3-Clause
63
+ */
64
+ var $;w.finalized=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:w}),(null!==(u=globalThis.reactiveElementVersions)&&void 0!==u?u:globalThis.reactiveElementVersions=[]).push("1.2.2");const O=globalThis.trustedTypes,S=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,k="?"+C,E=`<${k}>`,N=document,R=(t="")=>N.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,B=/>/g,L=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,A=/'/g,D=/"/g,T=/^(?:script|style|textarea|title)$/i,j=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),P=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),I=new WeakMap,W=N.createTreeWalker(N,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=U;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===U?"!--"===l[1]?s=F:void 0!==l[1]?s=B:void 0!==l[2]?(T.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=L):void 0!==l[3]&&(s=L):s===L?">"===l[0]?(s=null!=n?n:U,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?L:'"'===l[3]?D:A):s===D||s===A?s=L:s===F||s===B?s=U:(s=L,n=void 0);const p=s===L&&t[i+1].startsWith("/>")?" ":"";r+=s===U?e+E:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+C+p):e+C+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=H(t,i);if(this.el=K.createElement(l,e),W.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=W.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(C)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(C),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?q:"?"===i[1]?G:"@"===i[1]?Q:J})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(T.test(o.tagName)){const t=o.textContent.split(C),i=t.length-1;if(i>0){o.textContent=O?O.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],R()),W.nextNode(),a.push({type:2,index:++n});o.append(t[i],R())}}}else if(8===o.nodeType)if(o.data===k)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)a.push({type:7,index:n}),t+=C.length-1}n++}}static createElement(t,i){const e=N.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var n,r,s,a;if(i===P)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const h=M(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=Z(t,l._$AS(t,i.values),l,o)),i}class V{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:N).importNode(e,!0);W.currentNode=n;let r=W.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new X(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new tt(r,this,t)),this.v.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=W.nextNode(),s++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class X{constructor(t,i,e,o){var n;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Z(this,t,i),M(t)?t===_||null==t||""===t?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==P&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return z(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==_&&M(this._$AH)?this._$AA.nextSibling.data=t:this.S(N.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new V(n,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=I.get(t.strings);return void 0===i&&I.set(t.strings,i=new K(t)),i}A(t){z(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new X(this.M(R()),this.M(R()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class J{constructor(t,i,e,o,n){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=Z(this,t,i,0),r=!M(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Z(this,o[e+s],i,s),a===P&&(a=this._$AH[s]),r||(r=!M(a)||a!==this._$AH[s]),a===_?t=_:t!==_&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.k(t)}k(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends J{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===_?void 0:t}}const Y=O?O.emptyScript:"";class G extends J{constructor(){super(...arguments),this.type=4}k(t){t&&t!==_?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class Q extends J{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Z(this,t,i,0))&&void 0!==e?e:_)===P)return;const o=this._$AH,n=t===_&&o!==_||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==_&&(o===_||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class tt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const it=window.litHtmlPolyfillSupport;
65
+ /**
66
+ * @license
67
+ * Copyright 2017 Google LLC
68
+ * SPDX-License-Identifier: BSD-3-Clause
69
+ */
70
+ var et,ot;null==it||it(K,X),(null!==($=globalThis.litHtmlVersions)&&void 0!==$?$:globalThis.litHtmlVersions=[]).push("2.1.3");class nt extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var o,n;const r=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new X(i.insertBefore(R(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,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 P}}nt.finalized=!0,nt._$litElement$=!0,null===(et=globalThis.litElementHydrateSupport)||void 0===et||et.call(globalThis,{LitElement:nt});const rt=globalThis.litElementPolyfillSupport;null==rt||rt({LitElement:nt}),(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.1.2");class st{constructor(t,i,e,o,n){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=n,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,i,e){return new st(t,i,void 0,e)}static extend(t,i,e){return new st(t,i.category,i,e)}static external(t,i){return new st(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return p`var(${c(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):c(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function at(t,i){return c(`${t.name}: ${i}`)}const lt={colorPrimary:st.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:st.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:st.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:st.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:st.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:st.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:st.create("--ft-color-error","COLOR","#B00020"),colorOutline:st.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:st.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:st.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:st.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:st.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:st.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:st.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:st.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:st.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:st.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:st.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:st.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:st.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:st.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:st.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:st.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:st.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:st.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:st.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:st.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:st.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:st.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:st.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:st.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:st.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:st.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:st.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:st.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:st.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:st.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:st.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:st.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:st.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:st.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:st.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:st.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:st.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:st.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:st.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:st.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:st.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:st.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:st.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:st.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:st.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:st.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:st.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:st.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:st.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:st.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:st.create("--ft-border-radius-XL","SIZE","16px"),titleFont:st.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:st.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:st.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:st.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
71
+ /**
72
+ * @license
73
+ * Copyright 2021 Google LLC
74
+ * SPDX-License-Identifier: BSD-3-Clause
75
+ */class ht extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return d(n,this.constructor.elementStyles),n}}}(nt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),j`
76
+ ${t.map((t=>j`
77
+ <style>${t}</style>
78
+ `))}
79
+ ${this.getTemplate()}
80
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const ct=p`
81
+ .ft-no-text-select {
82
+ -webkit-touch-callout: none;
83
+ -webkit-user-select: none;
84
+ -khtml-user-select: none;
85
+ -moz-user-select: none;
86
+ -ms-user-select: none;
87
+ user-select: none;
88
+ }
89
+ `;var pt,dt,ft;const ut=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(ft=null===(dt=null===(pt=window.safari)||void 0===pt?void 0:pt.pushNotification)||void 0===dt?void 0:dt.toString())&&void 0!==ft?ft:""),yt=1;
90
+ /**
91
+ * @license
92
+ * Copyright 2017 Google LLC
93
+ * SPDX-License-Identifier: BSD-3-Clause
94
+ */
95
+ /**
96
+ * @license
97
+ * Copyright 2018 Google LLC
98
+ * SPDX-License-Identifier: BSD-3-Clause
99
+ */
100
+ const gt=(t=>(...i)=>({_$litDirective$:t,values:i}))(class extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}{constructor(t){var i;if(super(t),t.type!==yt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,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 i)i[t]&&!(null===(e=this.et)||void 0===e?void 0:e.has(t))&&this.st.add(t);return this.render(i)}const n=t.element.classList;this.st.forEach((t=>{t in i||(n.remove(t),this.st.delete(t))}));for(const t in i){const e=!!i[t];e===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return P}});var vt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const bt={color:st.extend("--ft-ripple-color",lt.colorContent),primaryColor:st.extend("--ft-ripple-primary-color",st.extend("--ft-ripple-color",lt.colorPrimary)),secondaryColor:st.extend("--ft-ripple-secondary-color",st.extend("--ft-ripple-color",lt.colorSecondary)),opacityContentOnSurfacePressed:st.external(lt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:st.external(lt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:st.external(lt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:st.external(lt.opacityContentOnSurfaceSelected,"Design system")};class mt extends ht{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 i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.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 j`
101
+ <style>
102
+ .ft-ripple .ft-ripple--effect,
103
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
104
+ width: ${this.rippleSize}px;
105
+ height: ${this.rippleSize}px;
106
+ }
107
+
108
+ .ft-ripple .ft-ripple--effect {
109
+ left: ${this.originX}px;
110
+ top: ${this.originY}px;
111
+ }
112
+ </style>
113
+ <div class="${gt(t)}">
114
+ <div class="ft-ripple--background"></div>
115
+ <div class="ft-ripple--effect"></div>
116
+ </div>
117
+ `}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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",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",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}mt.elementDefinitions={},mt.styles=p`
118
+ :host {
119
+ display: contents;
120
+ }
121
+
122
+ .ft-ripple {
123
+ position: absolute;
124
+ inset: 0;
125
+ pointer-events: none;
126
+ }
127
+
128
+ .ft-ripple:not(.ft-ripple--unbounded) {
129
+ overflow: hidden;
130
+ }
131
+
132
+ .ft-ripple .ft-ripple--background,
133
+ .ft-ripple .ft-ripple--effect {
134
+ position: absolute;
135
+ opacity: 0;
136
+ background-color: ${bt.color};
137
+ }
138
+
139
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background,
140
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
141
+ background-color: ${bt.secondaryColor};
142
+ }
143
+
144
+ .ft-ripple.ft-ripple--primary .ft-ripple--background,
145
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
146
+ background-color: ${bt.primaryColor};
147
+ }
148
+
149
+ .ft-ripple .ft-ripple--background {
150
+ top: 0;
151
+ left: 0;
152
+ height: 100%;
153
+ width: 100%;
154
+ }
155
+
156
+ .ft-ripple .ft-ripple--effect,
157
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
158
+ border-radius: 50%;
159
+ }
160
+
161
+ .ft-ripple .ft-ripple--effect {
162
+ transform: translate(-50%, -50%) scale(0.15);
163
+ transition: transform 300ms ease, opacity 75ms linear;
164
+ }
165
+
166
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
167
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
168
+ left: 50%;
169
+ top: 50%;
170
+ }
171
+
172
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
173
+ transform: translate(-50%, -50%);
174
+ }
175
+
176
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
177
+ opacity: ${bt.opacityContentOnSurfaceHover};
178
+ }
179
+
180
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
181
+ opacity: ${bt.opacityContentOnSurfaceSelected};
182
+ }
183
+
184
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
185
+ opacity: ${bt.opacityContentOnSurfaceFocused};
186
+ }
187
+
188
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
189
+ opacity: ${bt.opacityContentOnSurfacePressed};
190
+ transform: translate(-50%, -50%) scale(1);
191
+ }
192
+ `,vt([i({type:Boolean})],mt.prototype,"primary",void 0),vt([i({type:Boolean})],mt.prototype,"secondary",void 0),vt([i({type:Boolean})],mt.prototype,"unbounded",void 0),vt([i({type:Boolean})],mt.prototype,"activated",void 0),vt([i({type:Boolean})],mt.prototype,"selected",void 0),vt([i({type:Boolean})],mt.prototype,"disabled",void 0),vt([e()],mt.prototype,"hovered",void 0),vt([e()],mt.prototype,"focused",void 0),vt([e()],mt.prototype,"pressed",void 0),vt([e()],mt.prototype,"rippling",void 0),vt([e()],mt.prototype,"rippleSize",void 0),vt([e()],mt.prototype,"originX",void 0),vt([e()],mt.prototype,"originY",void 0),vt([o(".ft-ripple")],mt.prototype,"ripple",void 0),vt([o(".ft-ripple--effect")],mt.prototype,"rippleEffect",void 0),r("ft-ripple")(mt);
193
+ /**
194
+ * @license
195
+ * Copyright 2020 Google LLC
196
+ * SPDX-License-Identifier: BSD-3-Clause
197
+ */
198
+ const xt=t=>({_$litStatic$:t}),wt=new Map,$t=(t=>(i,...e)=>{var o;const n=e.length;let r,s;const a=[],l=[];let h,c=0,p=!1;for(;c<n;){for(h=i[c];c<n&&void 0!==(s=e[c],r=null===(o=s)||void 0===o?void 0:o._$litStatic$);)h+=r+i[++c],p=!0;l.push(s),a.push(h),c++}if(c===n&&a.push(i[n]),p){const t=a.join("$$lit$$");void 0===(i=wt.get(t))&&(a.raw=a,wt.set(t,i=a)),e=l}return t(i,...e)})(j);var Ot,St=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,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"}(Ot||(Ot={}));const Ct=st.extend("--ft-typography-font-family",lt.titleFont),kt=st.extend("--ft-typography-font-family",lt.contentFont),Et={fontFamily:kt,fontSize:st.create("--ft-typography-font-size","SIZE","16px"),fontWeight:st.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:st.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:st.create("--ft-typography-line-height","SIZE","24px"),textTransform:st.create("--ft-typography-text-transform","UNKNOWN","inherit")},Nt=st.extend("--ft-typography-title-font-family",Ct),Rt=st.extend("--ft-typography-title-font-size",Et.fontSize,"20px"),Mt=st.extend("--ft-typography-title-font-weight",Et.fontWeight,"normal"),zt=st.extend("--ft-typography-title-letter-spacing",Et.letterSpacing,"0.15px"),Ut=st.extend("--ft-typography-title-line-height",Et.lineHeight,"24px"),Ft=st.extend("--ft-typography-title-text-transform",Et.textTransform,"inherit"),Bt=st.extend("--ft-typography-title-dense-font-family",Ct),Lt=st.extend("--ft-typography-title-dense-font-size",Et.fontSize,"14px"),At=st.extend("--ft-typography-title-dense-font-weight",Et.fontWeight,"normal"),Dt=st.extend("--ft-typography-title-dense-letter-spacing",Et.letterSpacing,"0.105px"),Tt=st.extend("--ft-typography-title-dense-line-height",Et.lineHeight,"24px"),jt=st.extend("--ft-typography-title-dense-text-transform",Et.textTransform,"inherit"),Pt=st.extend("--ft-typography-subtitle1-font-family",kt),_t=st.extend("--ft-typography-subtitle1-font-size",Et.fontSize,"16px"),It=st.extend("--ft-typography-subtitle1-font-weight",Et.fontWeight,"600"),Wt=st.extend("--ft-typography-subtitle1-letter-spacing",Et.letterSpacing,"0.144px"),Ht=st.extend("--ft-typography-subtitle1-line-height",Et.lineHeight,"24px"),Kt=st.extend("--ft-typography-subtitle1-text-transform",Et.textTransform,"inherit"),Zt=st.extend("--ft-typography-subtitle2-font-family",kt),Vt=st.extend("--ft-typography-subtitle2-font-size",Et.fontSize,"14px"),Xt=st.extend("--ft-typography-subtitle2-font-weight",Et.fontWeight,"normal"),Jt=st.extend("--ft-typography-subtitle2-letter-spacing",Et.letterSpacing,"0.098px"),qt=st.extend("--ft-typography-subtitle2-line-height",Et.lineHeight,"24px"),Yt=st.extend("--ft-typography-subtitle2-text-transform",Et.textTransform,"inherit"),Gt=st.extend("--ft-typography-body1-font-family",kt),Qt=st.extend("--ft-typography-body1-font-size",Et.fontSize,"16px"),ti=st.extend("--ft-typography-body1-font-weight",Et.fontWeight,"normal"),ii=st.extend("--ft-typography-body1-letter-spacing",Et.letterSpacing,"0.496px"),ei=st.extend("--ft-typography-body1-line-height",Et.lineHeight,"24px"),oi=st.extend("--ft-typography-body1-text-transform",Et.textTransform,"inherit"),ni={fontFamily:st.extend("--ft-typography-body2-font-family",kt),fontSize:st.extend("--ft-typography-body2-font-size",Et.fontSize,"14px"),fontWeight:st.extend("--ft-typography-body2-font-weight",Et.fontWeight,"normal"),letterSpacing:st.extend("--ft-typography-body2-letter-spacing",Et.letterSpacing,"0.252px"),lineHeight:st.extend("--ft-typography-body2-line-height",Et.lineHeight,"20px"),textTransform:st.extend("--ft-typography-body2-text-transform",Et.textTransform,"inherit")},ri=st.extend("--ft-typography-caption-font-family",kt),si=st.extend("--ft-typography-caption-font-size",Et.fontSize,"12px"),ai=st.extend("--ft-typography-caption-font-weight",Et.fontWeight,"normal"),li=st.extend("--ft-typography-caption-letter-spacing",Et.letterSpacing,"0.396px"),hi=st.extend("--ft-typography-caption-line-height",Et.lineHeight,"16px"),ci=st.extend("--ft-typography-caption-text-transform",Et.textTransform,"inherit"),pi=st.extend("--ft-typography-breadcrumb-font-family",kt),di=st.extend("--ft-typography-breadcrumb-font-size",Et.fontSize,"10px"),fi=st.extend("--ft-typography-breadcrumb-font-weight",Et.fontWeight,"normal"),ui=st.extend("--ft-typography-breadcrumb-letter-spacing",Et.letterSpacing,"0.33px"),yi=st.extend("--ft-typography-breadcrumb-line-height",Et.lineHeight,"16px"),gi=st.extend("--ft-typography-breadcrumb-text-transform",Et.textTransform,"inherit"),vi=st.extend("--ft-typography-overline-font-family",kt),bi=st.extend("--ft-typography-overline-font-size",Et.fontSize,"10px"),mi=st.extend("--ft-typography-overline-font-weight",Et.fontWeight,"normal"),xi=st.extend("--ft-typography-overline-letter-spacing",Et.letterSpacing,"1.5px"),wi=st.extend("--ft-typography-overline-line-height",Et.lineHeight,"16px"),$i=st.extend("--ft-typography-overline-text-transform",Et.textTransform,"uppercase"),Oi=st.extend("--ft-typography-button-font-family",kt),Si=st.extend("--ft-typography-button-font-size",Et.fontSize,"14px"),Ci=st.extend("--ft-typography-button-font-weight",Et.fontWeight,"600"),ki=st.extend("--ft-typography-button-letter-spacing",Et.letterSpacing,"1.246px"),Ei=st.extend("--ft-typography-button-line-height",Et.lineHeight,"16px"),Ni=st.extend("--ft-typography-button-text-transform",Et.textTransform,"uppercase"),Ri=p`
199
+ .ft-typography--title {
200
+ font-family: ${Nt};
201
+ font-size: ${Rt};
202
+ font-weight: ${Mt};
203
+ letter-spacing: ${zt};
204
+ line-height: ${Ut};
205
+ text-transform: ${Ft};
206
+ }
207
+ `,Mi=p`
208
+ .ft-typography--title-dense {
209
+ font-family: ${Bt};
210
+ font-size: ${Lt};
211
+ font-weight: ${At};
212
+ letter-spacing: ${Dt};
213
+ line-height: ${Tt};
214
+ text-transform: ${jt};
215
+ }
216
+ `,zi=p`
217
+ .ft-typography--subtitle1 {
218
+ font-family: ${Pt};
219
+ font-size: ${_t};
220
+ font-weight: ${It};
221
+ letter-spacing: ${Wt};
222
+ line-height: ${Ht};
223
+ text-transform: ${Kt};
224
+ }
225
+ `,Ui=p`
226
+ .ft-typography--subtitle2 {
227
+ font-family: ${Zt};
228
+ font-size: ${Vt};
229
+ font-weight: ${Xt};
230
+ letter-spacing: ${Jt};
231
+ line-height: ${qt};
232
+ text-transform: ${Yt};
233
+ }
234
+
235
+ `,Fi=p`
236
+ .ft-typography--body1 {
237
+ font-family: ${Gt};
238
+ font-size: ${Qt};
239
+ font-weight: ${ti};
240
+ letter-spacing: ${ii};
241
+ line-height: ${ei};
242
+ text-transform: ${oi};
243
+ }
244
+ `,Bi=p`
245
+ .ft-typography--body2 {
246
+ font-family: ${ni.fontFamily};
247
+ font-size: ${ni.fontSize};
248
+ font-weight: ${ni.fontWeight};
249
+ letter-spacing: ${ni.letterSpacing};
250
+ line-height: ${ni.lineHeight};
251
+ text-transform: ${ni.textTransform};
252
+ }
253
+ `,Li=p`
254
+ .ft-typography--caption {
255
+ font-family: ${ri};
256
+ font-size: ${si};
257
+ font-weight: ${ai};
258
+ letter-spacing: ${li};
259
+ line-height: ${hi};
260
+ text-transform: ${ci};
261
+ }
262
+ `,Ai=p`
263
+ .ft-typography--breadcrumb {
264
+ font-family: ${pi};
265
+ font-size: ${di};
266
+ font-weight: ${fi};
267
+ letter-spacing: ${ui};
268
+ line-height: ${yi};
269
+ text-transform: ${gi};
270
+ }
271
+ `,Di=p`
272
+ .ft-typography--overline {
273
+ font-family: ${vi};
274
+ font-size: ${bi};
275
+ font-weight: ${mi};
276
+ letter-spacing: ${xi};
277
+ line-height: ${wi};
278
+ text-transform: ${$i};
279
+ }
280
+ `,Ti=p`
281
+ .ft-typography--button {
282
+ font-family: ${Oi};
283
+ font-size: ${Si};
284
+ font-weight: ${Ci};
285
+ letter-spacing: ${ki};
286
+ line-height: ${Ei};
287
+ text-transform: ${Ni};
288
+ }
289
+ `;class ji extends ht{constructor(){super(...arguments),this.variant=Ot.body1}render(){return this.element?$t`
290
+ <${xt(this.element)}
291
+ class="ft-typography ft-typography--${this.variant}">
292
+ <slot></slot>
293
+ </${xt(this.element)}>
294
+ `:$t`
295
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
296
+ `}}ji.styles=[Ri,Mi,zi,Ui,Fi,Bi,Li,Ai,Di,Ti,p`
297
+ .ft-typography {
298
+ vertical-align: inherit;
299
+ }
300
+ `],St([i()],ji.prototype,"element",void 0),St([i()],ji.prototype,"variant",void 0),r("ft-typography")(ji);
301
+ /**
302
+ * @license
303
+ * Copyright 2021 Google LLC
304
+ * SPDX-LIcense-Identifier: Apache-2.0
305
+ */
306
+ const Pi=p`: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"}`
307
+ /**
308
+ * @license
309
+ * Copyright 2018 Google LLC
310
+ * SPDX-License-Identifier: Apache-2.0
311
+ */;let _i=class extends nt{render(){return j`<span><slot></slot></span>`}};_i.styles=[Pi],_i=
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
+ function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s}([(t=>i=>"function"==typeof i?((t,i)=>(window.customElements.define(t,i),i))(t,i):((t,i)=>{const{kind:e,elements:o}=i;return{kind:e,elements:o,finisher(i){window.customElements.define(t,i)}}})(t,i))("mwc-icon")],_i);var Ii=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const Wi=st.extend("--ft-chip-color",lt.colorOnSurface),Hi={backgroundColor:st.extend("--ft-chip-background-color",lt.colorSurface),color:Wi,fontSize:st.extend("--ft-chip-font-size",ni.fontSize),iconSize:st.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:st.extend("--ft-chip-ripple-color",Wi),horizontalPadding:st.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:st.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:st.external(lt.colorOutline,"Design system"),opacityDisabled:st.external(lt.colorOpacityDisabled,"Design system")},Ki=st.extend("--ft-chip-highlighted-color",st.extend("--ft-chip-color",lt.colorOnPrimary)),Zi={backgroundColor:st.extend("--ft-chip-highlighted-background-color",st.extend("--ft-chip-background-color",lt.colorPrimary)),color:Ki,rippleColor:st.extend("--ft-chip-highlighted-ripple-color",Ki)},Vi=st.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Xi=st.create("--ft-chip-dense-vertical-padding","SIZE","4px");class Ji extends CustomEvent{constructor(){super("icon-click")}}class qi extends ht{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[ct,p`
327
+ :host {
328
+ display: inline-block;
329
+ max-width: 100%;
330
+ pointer-events: none;
331
+ }
332
+
333
+ .ft-chip {
334
+ position: relative;
335
+ display: flex;
336
+ justify-content: center;
337
+ align-items: center;
338
+ width: 100%;
339
+ overflow: hidden;
340
+ box-sizing: border-box;
341
+ pointer-events: auto;
342
+
343
+ --ft-chip-internal-font-size: ${Hi.fontSize};
344
+ --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
345
+ --mdc-icon-size: ${Hi.iconSize};
346
+ --ft-chip-internal-vertical-padding: ${Hi.verticalPadding};
347
+ --ft-chip-internal-horizontal-padding: ${Hi.horizontalPadding};
348
+ --ft-chip-internal-icon-padding: 3px;
349
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), var(--mdc-icon-size));
350
+
351
+ border: 1px solid ${Hi.colorOutline};
352
+ color: ${Hi.color};
353
+ ${at(bt.color,Hi.rippleColor)};
354
+ border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
355
+ padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
356
+ background-color: ${Hi.backgroundColor};
357
+ line-height: var(--ft-chip-internal-content-height);
358
+ }
359
+
360
+ .ft-chip--dense {
361
+ --ft-chip-internal-icon-padding: 3px;
362
+ --ft-chip-internal-vertical-padding: ${Xi};
363
+ --ft-chip-internal-horizontal-padding: ${Vi};
364
+ --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
365
+ }
366
+
367
+ .ft-chip--no-content {
368
+ --ft-chip-internal-horizontal-padding: var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding));
369
+ }
370
+
371
+ .ft-chip--disabled {
372
+ cursor: default;
373
+ pointer-events: none;
374
+ filter: grayscale(1);
375
+ opacity: ${Hi.opacityDisabled};
376
+ }
377
+
378
+ .ft-chip--highlighted {
379
+ border: none;
380
+ padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
381
+ background-color: ${Zi.backgroundColor};
382
+ ${at(bt.color,Zi.rippleColor)};
383
+ color: ${Zi.color};
384
+ }
385
+
386
+ .ft-chip--clickable {
387
+ cursor: pointer;
388
+ -webkit-mask-image: radial-gradient(white, black);
389
+ }
390
+
391
+ .ft-chip:focus {
392
+ outline: none;
393
+ }
394
+
395
+ .ft-chip--icon-container {
396
+ display: inline-flex;
397
+ position: relative;
398
+ overflow: hidden;
399
+ border-radius: 100%;
400
+ justify-content: center;
401
+ align-items: center;
402
+ flex-shrink: 0;
403
+
404
+ padding: var(--ft-chip-internal-icon-padding);
405
+ margin: calc((-1) * var(--ft-chip-internal-icon-padding));
406
+ }
407
+
408
+ .ft-chip--label {
409
+ vertical-align: bottom;
410
+ display: block;
411
+ margin: 0 var(--ft-chip-internal-horizontal-padding);
412
+ ${at(ni.fontSize,"var(--ft-chip-internal-font-size)")};
413
+ ${at(ni.lineHeight,"var(--ft-chip-internal-content-height)")};
414
+ }
415
+
416
+ .ft-chip--safari-fix .ft-chip--label {
417
+ margin-right: 0;
418
+ }
419
+
420
+ .ft-chip:not(.ft-chip--multi-line) .ft-chip--label {
421
+ overflow: hidden;
422
+ white-space: nowrap;
423
+ text-overflow: ellipsis;
424
+ }
425
+
426
+ .ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after {
427
+ content: "\\0000a0";
428
+ display: inline-block;
429
+ width: 0;
430
+ }
431
+
432
+ .ft-chip--no-content .ft-chip--label {
433
+ display: none;
434
+ }
435
+
436
+ .ft-chip--no-content .ft-chip--label + .ft-chip--icon-container {
437
+ width: var(--ft-chip-internal-content-height);
438
+ height: var(--ft-chip-internal-content-height);
439
+ }
440
+
441
+ .ft-chip--icon-container:focus {
442
+ outline: none;
443
+ }
444
+
445
+ .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
446
+ order: -1;
447
+ }
448
+ `]}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":ut};return j`
449
+ <div class="${gt(t)}"
450
+ aria-label="${this.getLabel()}"
451
+ tabindex="${this.interactionsOnChip?0:-1}"
452
+ @keyup=${this.onKeyUp}>
453
+ <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
454
+ <ft-typography variant="body2" element="span" class="ft-chip--label">
455
+ <slot @slotchange=${this.onSlotchange}></slot>
456
+ </ft-typography>
457
+ ${this.internalIcon?this.renderIcon():null}
458
+ </div>
459
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return j`
460
+ <div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}"
461
+ tabindex="${this.interactionsOnIcon?0:-1}"
462
+ @click=${this.onIconClick}
463
+ @keyup=${this.onIconKeyUp}>
464
+ <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
465
+ <mwc-icon>${this.internalIcon}</mwc-icon>
466
+ </div>
467
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ji))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ji))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}qi.elementDefinitions={"ft-ripple":mt,"ft-typography":ji,"mwc-icon":_i},Ii([i({type:Boolean})],qi.prototype,"highlighted",void 0),Ii([i({type:Boolean})],qi.prototype,"removable",void 0),Ii([i({type:Boolean})],qi.prototype,"disabled",void 0),Ii([i({type:Boolean})],qi.prototype,"clickable",void 0),Ii([i({type:Boolean})],qi.prototype,"iconClickable",void 0),Ii([i({type:Boolean})],qi.prototype,"dense",void 0),Ii([i({type:Boolean})],qi.prototype,"multiLine",void 0),Ii([i({type:String})],qi.prototype,"label",void 0),Ii([i({type:String})],qi.prototype,"icon",void 0),Ii([i({type:Boolean})],qi.prototype,"trailingIcon",void 0),Ii([o("ft-typography slot")],qi.prototype,"slottedContent",void 0),r("ft-chip")(qi);var Yi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const Gi={zIndex:st.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:st.extend("--ft-file-drop-hint-background-color",lt.colorSurface),hintColor:st.extend("--ft-file-drop-hint-color",lt.colorPrimary),errorColor:st.extend("--ft-file-drop-error-color",lt.colorError),borderRadius:st.extend("--ft-file-drop-border-radius",lt.borderRadiusL),borderWidth:st.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:st.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:st.extend("--ft-file-drop-visible-border-color",lt.colorOutline),activeBorderColor:st.extend("--ft-file-drop-active-border-color",lt.colorPrimary)};class Qi extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}class te extends ht{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return j`
468
+ <div id="container"
469
+ class="${gt(t)}"
470
+ @dragenter=${this.onDragEnter}
471
+ @dragover=${this.onDragOver}
472
+ @drop=${this.onDrop}>
473
+ <div id="overlay">
474
+ <div id="overlay-background"></div>
475
+ <div id="overlay-content">
476
+ <ft-chip part="drop-hint" icon="upload" ?hidden=${this.fileError}>${this.dropHint}</ft-chip>
477
+ <ft-chip part="error-message" icon="error" ?hidden=${!this.fileError}>
478
+ ${this.fileTypeError}
479
+ </ft-chip>
480
+ </div>
481
+ <div id="overlay-drop" @dragleave=${this.onDragLeave}></div>
482
+ </div>
483
+ <slot></slot>
484
+ </div>
485
+ `}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let i=t.dataTransfer.files[0];!function(t,i,e){if(0==t.length)return!0;let o=t.replace(/\*/g,".*").replace(/,/g,"|").replace(/\./g,"\\."),n=new RegExp(o),r=i.includes(".")?"."+i.split(".").pop():void 0;return!(!r||!n.test(r))||n.test(e)}(this.accept,i.name,i.type)?(this.fileError=!0,setTimeout((()=>{this.dragging=!1,this.fileError=!1}),2e3)):(this.dragging=!1,this.dispatchEvent(new Qi(i)))}}}te.elementDefinitions={"ft-chip":qi},te.styles=p`
486
+ :host {
487
+ display: block;
488
+ position: relative;
489
+ }
490
+
491
+ #container {
492
+ position: absolute;
493
+ inset: 0;
494
+ border: dashed ${Gi.borderWidth} ${Gi.borderColor};
495
+ border-radius: ${Gi.borderRadius};
496
+ }
497
+
498
+ #container.visible {
499
+ border-color: ${Gi.visibleBorderColor}
500
+ }
501
+
502
+ #container.dragging {
503
+ border-color: ${Gi.activeBorderColor}
504
+ }
505
+
506
+ slot {
507
+ position: absolute;
508
+ inset: 0;
509
+ display: block;
510
+ overflow: auto;
511
+ }
512
+
513
+ #overlay {
514
+ display: none;
515
+ position: absolute;
516
+ inset: 0;
517
+ z-index: ${Gi.zIndex};
518
+ }
519
+
520
+ #container.dragging #overlay {
521
+ display: block;
522
+ }
523
+
524
+ #overlay-background {
525
+ z-index: 1;
526
+ position: absolute;
527
+ inset: 0;
528
+ background-color: ${Gi.activeBorderColor};
529
+ opacity: 0.20;
530
+ border-radius: ${Gi.borderRadius};
531
+ }
532
+
533
+ #overlay-drop {
534
+ z-index: 2;
535
+ position: absolute;
536
+ inset: 0;
537
+ }
538
+
539
+ #overlay-content {
540
+ z-index: 1;
541
+ position: absolute;
542
+ inset: 0;
543
+ display: flex;
544
+ align-items: flex-end;
545
+ justify-content: center;
546
+ }
547
+
548
+ #overlay-content ft-chip {
549
+ margin-bottom: 10%;
550
+ ${at(Hi.color,Gi.hintColor)};
551
+ ${at(Hi.iconSize,"32px")};
552
+ ${at(Hi.colorOutline,"transparent")};
553
+ }
554
+
555
+ #overlay-content xft-chip[icon=error] {
556
+ ${at(Hi.color,Gi.errorColor)};
557
+ ${at(Hi.backgroundColor,Gi.hintBackgroundColor)};
558
+ }
559
+
560
+ [hidden] {
561
+ display: none;
562
+ }
563
+ `,Yi([i()],te.prototype,"dropHint",void 0),Yi([i()],te.prototype,"accept",void 0),Yi([i()],te.prototype,"fileTypeError",void 0),Yi([i({type:Boolean})],te.prototype,"visible",void 0),Yi([e()],te.prototype,"dragging",void 0),Yi([e()],te.prototype,"fileError",void 0),r("ft-file-drop")(function t(i){var e;let o;if("elementDefinitions"in i){o={};const e=i.elementDefinitions;for(let i in e)o[i]=t(e[i])}return e=class extends i{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let e=null!==(t=i.styles)&&void 0!==t?t:[];return Array.isArray(e)||(e=[e]),j`
564
+ ${e.map((t=>j`
565
+ <style>${t}</style>
566
+ `))}
567
+ ${super.render()}
568
+ `}},e.styles=void 0,e.elementDefinitions=o,e}(te))}();