@fluid-topics/ft-reader-feedback 0.3.55

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,1311 @@
1
+ !function(t,e){
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,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=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||[]);p(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=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.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=l;if(e)return l=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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},d=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,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!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)}},p=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(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!==n.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 s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(ii){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const o=(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 n(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):o(t,e)
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */}function s(t){return n({...t,state:!0})}
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */const r=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
33
+ /**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */;function a(t,e){return r({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}})}
38
+ /**
39
+ * @license
40
+ * Copyright 2021 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */var l;const h=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const c=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function d(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!d(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!d(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var s=n[o];if(!d(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
43
+ /**
44
+ * @license
45
+ * Copyright 2019 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),v=new WeakMap;class b{constructor(t,e,i){if(this._$cssResult$=!0,i!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=v.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&v.set(e,t))}return t}toString(){return this.cssText}}const g=t=>new b("string"==typeof t?t:t+"",void 0,u),y=(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 b(i,t,u)},x=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},m=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return g(e)})(t):t
48
+ /**
49
+ * @license
50
+ * Copyright 2017 Google LLC
51
+ * SPDX-License-Identifier: BSD-3-Clause
52
+ */;var $;const w=window,k=w.trustedTypes,S=k?k.emptyScript:"",O=w.reactiveElementPolyfillSupport,_={toAttribute(t,e){switch(e){case Boolean:t=t?S: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}},C=(t,e)=>e!==t&&(e==e||t==t),N={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:C};class R extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=N){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 n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||N}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._$Ev=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(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).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._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.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 x(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||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._$ES)||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)}_$EO(t,e,i=N){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:_).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:_;this._$El=n,this[n]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||C)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}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._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||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._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||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)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
53
+ /**
54
+ * @license
55
+ * Copyright 2017 Google LLC
56
+ * SPDX-License-Identifier: BSD-3-Clause
57
+ */
58
+ var E;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:R}),(null!==($=w.reactiveElementVersions)&&void 0!==$?$:w.reactiveElementVersions=[]).push("1.4.1");const M=window,I=M.trustedTypes,z=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,T=`lit$${(Math.random()+"").slice(9)}$`,F="?"+T,U=`<${F}>`,D=document,j=(t="")=>D.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,L=t=>B(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,W=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Z=/'/g,V=/"/g,G=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),X=new WeakMap,Q=D.createTreeWalker(D,129,null,!1),tt=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=P;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===P?"!--"===l[1]?r=H:void 0!==l[1]?r=W:void 0!==l[2]?(G.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=K):void 0!==l[3]&&(r=K):r===K?">"===l[0]?(r=null!=n?n:P,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?K:'"'===l[3]?V:Z):r===V||r===Z?r=K:r===H||r===W?r=P:(r=K,n=void 0);const d=r===K&&t[e+1].startsWith("/>")?" ":"";s+=r===P?i+U:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+T+d):i+T+(-2===h?(o.push(void 0),e):d)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,o]};class et{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=tt(t,e);if(this.el=et.createElement(l,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(T)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(T),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?lt:"@"===e[1]?ht:st})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(G.test(o.tagName)){const t=o.textContent.split(T),e=t.length-1;if(e>0){o.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],j()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[e],j())}}}else if(8===o.nodeType)if(o.data===F)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(T,t+1));)a.push({type:7,index:n}),t+=T.length-1}n++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,o){var n,s,r,a;if(e===q)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=A(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=it(t,l._$AS(t,e.values),l,o)),e}class ot{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);Q.currentNode=n;let s=Q.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new nt(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new ct(s,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=Q.nextNode(),r++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{constructor(t,e,i,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}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=it(this,t,e),A(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):L(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Y&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new ot(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new et(t)),e}k(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new nt(this.O(j()),this.O(j()),this,this.options)):i=e[o],i._$AI(n),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class st{constructor(t,e,i,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=it(this,t,e,0),s=!A(t)||t!==this._$AH&&t!==q,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=it(this,o[i+r],e,r),a===q&&(a=this._$AH[r]),s||(s=!A(a)||a!==this._$AH[r]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=I?I.emptyScript:"";class lt extends st{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends st{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:Y)===q)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==Y&&(o===Y||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 ct{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){it(this,t)}}const dt={P:"$lit$",A:T,M:F,C:1,L:tt,R:ot,D:L,V:it,I:nt,H:st,N:lt,U:ht,B:rt,F:ct},pt=M.litHtmlPolyfillSupport;null==pt||pt(et,nt),(null!==(E=M.litHtmlVersions)&&void 0!==E?E:M.litHtmlVersions=[]).push("2.4.0");
59
+ /**
60
+ * @license
61
+ * Copyright 2017 Google LLC
62
+ * SPDX-License-Identifier: BSD-3-Clause
63
+ */
64
+ var ft,ut;class vt extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new nt(e.insertBefore(j(),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._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return q}}vt.finalized=!0,vt._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:vt});const bt=globalThis.litElementPolyfillSupport;null==bt||bt({LitElement:vt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.2.2");class gt{static create(t,e,i){let o=t=>g(null!=t?t:i),n=y`var(${g(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${g(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=y`var(${g(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${g(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):g(null!=e?e:t.defaultValue),o=y`var(${g(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${g(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function yt(t,e){return g(`${t.name}: ${e}`)}const xt={colorPrimary:gt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:gt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:gt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:gt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:gt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:gt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:gt.create("--ft-color-error","COLOR","#B00020"),colorOutline:gt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:gt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:gt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:gt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:gt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:gt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:gt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:gt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:gt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:gt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:gt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:gt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:gt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:gt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:gt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:gt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:gt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:gt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:gt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:gt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:gt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:gt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:gt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:gt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:gt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:gt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:gt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:gt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:gt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:gt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:gt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:gt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:gt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:gt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:gt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:gt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:gt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.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:gt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:gt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:gt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:gt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:gt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:gt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:gt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:gt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
65
+ /**
66
+ * @license
67
+ * Copyright 2021 Google LLC
68
+ * SPDX-License-Identifier: BSD-3-Clause
69
+ */var $t=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class wt 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 n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(n,this.constructor.elementStyles),n}}}(vt)){constructor(){super(),this.exportpartsDebouncer=new i(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),J`
70
+ ${t.map((t=>J`
71
+ <style>${t}</style>
72
+ `))}
73
+ ${this.getTemplate()}
74
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}$t([n()],wt.prototype,"exportpartsPrefix",void 0),$t([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return n({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],wt.prototype,"exportpartsPrefixes",void 0),$t([n()],wt.prototype,"customStylesheet",void 0);const kt=y`
75
+ .ft-no-text-select {
76
+ -webkit-touch-callout: none;
77
+ -webkit-user-select: none;
78
+ -khtml-user-select: none;
79
+ -moz-user-select: none;
80
+ -ms-user-select: none;
81
+ user-select: none;
82
+ }
83
+ `;y`
84
+ .ft-word-wrap {
85
+ white-space: normal;
86
+ word-wrap: break-word;
87
+ -ms-word-break: break-all;
88
+ word-break: break-all;
89
+ word-break: break-word;
90
+ -ms-hyphens: auto;
91
+ -moz-hyphens: auto;
92
+ -webkit-hyphens: auto;
93
+ hyphens: auto
94
+ }
95
+ `;const St=y`
96
+ .ft-safari-ellipsis-fix {
97
+ margin-right: 0;
98
+
99
+ }
100
+
101
+ .ft-safari-ellipsis-fix:after {
102
+ content: "\\0000a0";
103
+ display: inline-block;
104
+ width: 0;
105
+ }
106
+ `;class Ot{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):t}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const _t=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged),Ct=(t,e)=>{var i;const o=_t(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!d(t,e),(i,n)=>{var s;i.constructor.createProperty(n,{attribute:!1,hasChanged:e});const r=i;r.reduxProperties=r.reduxProperties||new Map;const a=null!==(s=_t(t)?o.selector:t)&&void 0!==s?s:t=>t[n];r.reduxProperties.set(n,{selector:a,store:o.store})}};class Nt extends wt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Rt(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Rt(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Rt(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var Et,Mt,It;const zt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(It=null===(Mt=null===(Et=window.safari)||void 0===Et?void 0:Et.pushNotification)||void 0===Mt?void 0:Mt.toString())&&void 0!==It?It:"");var Tt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ft extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Ut extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Ft)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Tt([s()],e.prototype,"stateManager",void 0),e}(Nt)){}const Dt={feedbackInputMinWidth:gt.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:gt.external(xt.colorOnSurfaceMedium,"Design system")},jt=y`
107
+ .ft-reader-feedback {
108
+ box-sizing: border-box;
109
+ display: flex;
110
+ flex-direction: column;
111
+ gap: 16px;
112
+ }
113
+
114
+ .ft-reader-feedback--placeholder {
115
+ display: flex;
116
+ flex-direction: row;
117
+ gap: 8px;
118
+ padding: 8px;
119
+ border: 1px dashed #e1e1e1;
120
+ color: #444444;
121
+ background: #f1f1f1;
122
+ border-radius: 4px;
123
+ align-items: center;
124
+ }
125
+
126
+ .ft-reader-feedback--placeholder ft-typography {
127
+ flex-grow: 1;
128
+ }
129
+
130
+ .ft-reader-feedback--placeholder ft-tooltip {
131
+ flex-grow: 0;
132
+ flex-shrink: 0;
133
+ }
134
+
135
+ .ft-reader-feedback--stars {
136
+ display: flex;
137
+ flex-direction: row;
138
+ align-items: center;
139
+ }
140
+
141
+
142
+ .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
143
+ display: flex;
144
+ flex-direction: column;
145
+ }
146
+
147
+ .ft-reader-feedback--rating .ft-reader-feedback--section-title {
148
+ margin-bottom: 8px;
149
+ }
150
+
151
+ .ft-reader-feedback--feedback {
152
+ gap: 8px;
153
+ }
154
+
155
+ .ft-reader-feedback--rating-date {
156
+ color: ${Dt.ratedDateColor};
157
+ }
158
+
159
+ .ft-reader-feedback--feedback ft-text-area {
160
+ min-width: ${Dt.feedbackInputMinWidth};
161
+ }
162
+
163
+ .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
164
+ align-self: flex-end;
165
+ }
166
+ `
167
+ /**
168
+ * @license
169
+ * Copyright 2020 Google LLC
170
+ * SPDX-License-Identifier: BSD-3-Clause
171
+ */,At=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===At)return null==t?void 0:t._$litStatic$},Lt=t=>({_$litStatic$:t,r:At}),Pt=new Map,Ht=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],n=Bt(s));)l+=n+e[++h],c=!0;a.push(s),r.push(l),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Pt.get(t))&&(r.raw=r,Pt.set(t,e=r)),i=a}return t(e,...i)})(J);var Wt;!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"}(Wt||(Wt={}));const Kt=gt.extend("--ft-typography-font-family",xt.titleFont),Zt=gt.extend("--ft-typography-font-family",xt.contentFont),Vt={fontFamily:Zt,fontSize:gt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:gt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:gt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:gt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:gt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Gt=gt.extend("--ft-typography-title-font-family",Kt),Jt=gt.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),qt=gt.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),Yt=gt.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),Xt=gt.extend("--ft-typography-title-line-height",Vt.lineHeight,"1.2"),Qt=gt.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit"),te=gt.extend("--ft-typography-title-dense-font-family",Kt),ee=gt.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),ie=gt.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),oe=gt.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),ne=gt.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"1.7"),se=gt.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit"),re=gt.extend("--ft-typography-subtitle1-font-family",Zt),ae=gt.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),le=gt.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),he=gt.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),ce=gt.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"1.5"),de=gt.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),pe=gt.extend("--ft-typography-subtitle2-font-family",Zt),fe=gt.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),ue=gt.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),ve=gt.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),be=gt.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"1.7"),ge=gt.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),ye={fontFamily:gt.extend("--ft-typography-body1-font-family",Zt),fontSize:gt.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),fontWeight:gt.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),lineHeight:gt.extend("--ft-typography-body1-line-height",Vt.lineHeight,"1.5"),textTransform:gt.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit")},xe=gt.extend("--ft-typography-body2-font-family",Zt),me=gt.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),$e=gt.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),we=gt.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),ke=gt.extend("--ft-typography-body2-line-height",Vt.lineHeight,"1.4"),Se=gt.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit"),Oe={fontFamily:gt.extend("--ft-typography-caption-font-family",Zt),fontSize:gt.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),fontWeight:gt.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),lineHeight:gt.extend("--ft-typography-caption-line-height",Vt.lineHeight,"1.33"),textTransform:gt.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit")},_e=gt.extend("--ft-typography-breadcrumb-font-family",Zt),Ce=gt.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),Ne=gt.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),Re=gt.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),Ee=gt.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"1.6"),Me=gt.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),Ie=gt.extend("--ft-typography-overline-font-family",Zt),ze=gt.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),Te=gt.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),Fe=gt.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),Ue=gt.extend("--ft-typography-overline-line-height",Vt.lineHeight,"1.6"),De=gt.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),je={fontFamily:gt.extend("--ft-typography-button-font-family",Zt),fontSize:gt.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),fontWeight:gt.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),letterSpacing:gt.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),lineHeight:gt.extend("--ft-typography-button-line-height",Vt.lineHeight,"1.15"),textTransform:gt.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase")},Ae=y`
172
+ .ft-typography--title {
173
+ font-family: ${Gt};
174
+ font-size: ${Jt};
175
+ font-weight: ${qt};
176
+ letter-spacing: ${Yt};
177
+ line-height: ${Xt};
178
+ text-transform: ${Qt};
179
+ }
180
+ `,Be=y`
181
+ .ft-typography--title-dense {
182
+ font-family: ${te};
183
+ font-size: ${ee};
184
+ font-weight: ${ie};
185
+ letter-spacing: ${oe};
186
+ line-height: ${ne};
187
+ text-transform: ${se};
188
+ }
189
+ `,Le=y`
190
+ .ft-typography--subtitle1 {
191
+ font-family: ${re};
192
+ font-size: ${ae};
193
+ font-weight: ${le};
194
+ letter-spacing: ${he};
195
+ line-height: ${ce};
196
+ text-transform: ${de};
197
+ }
198
+ `,Pe=y`
199
+ .ft-typography--subtitle2 {
200
+ font-family: ${pe};
201
+ font-size: ${fe};
202
+ font-weight: ${ue};
203
+ letter-spacing: ${ve};
204
+ line-height: ${be};
205
+ text-transform: ${ge};
206
+ }
207
+
208
+ `,He=y`
209
+ .ft-typography--body1 {
210
+ font-family: ${ye.fontFamily};
211
+ font-size: ${ye.fontSize};
212
+ font-weight: ${ye.fontWeight};
213
+ letter-spacing: ${ye.letterSpacing};
214
+ line-height: ${ye.lineHeight};
215
+ text-transform: ${ye.textTransform};
216
+ }
217
+ `,We=y`
218
+ .ft-typography--body2 {
219
+ font-family: ${xe};
220
+ font-size: ${me};
221
+ font-weight: ${$e};
222
+ letter-spacing: ${we};
223
+ line-height: ${ke};
224
+ text-transform: ${Se};
225
+ }
226
+ `,Ke=y`
227
+ .ft-typography--caption {
228
+ font-family: ${Oe.fontFamily};
229
+ font-size: ${Oe.fontSize};
230
+ font-weight: ${Oe.fontWeight};
231
+ letter-spacing: ${Oe.letterSpacing};
232
+ line-height: ${Oe.lineHeight};
233
+ text-transform: ${Oe.textTransform};
234
+ }
235
+ `,Ze=y`
236
+ .ft-typography--breadcrumb {
237
+ font-family: ${_e};
238
+ font-size: ${Ce};
239
+ font-weight: ${Ne};
240
+ letter-spacing: ${Re};
241
+ line-height: ${Ee};
242
+ text-transform: ${Me};
243
+ }
244
+ `,Ve=y`
245
+ .ft-typography--overline {
246
+ font-family: ${Ie};
247
+ font-size: ${ze};
248
+ font-weight: ${Te};
249
+ letter-spacing: ${Fe};
250
+ line-height: ${Ue};
251
+ text-transform: ${De};
252
+ }
253
+ `,Ge=y`
254
+ .ft-typography--button {
255
+ font-family: ${je.fontFamily};
256
+ font-size: ${je.fontSize};
257
+ font-weight: ${je.fontWeight};
258
+ letter-spacing: ${je.letterSpacing};
259
+ line-height: ${je.lineHeight};
260
+ text-transform: ${je.textTransform};
261
+ }
262
+ `,Je=y`
263
+ .ft-typography {
264
+ vertical-align: inherit;
265
+ }
266
+ `;var qe=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ye extends wt{constructor(){super(...arguments),this.variant=Wt.body1}render(){return this.element?Ht`
267
+ <${Lt(this.element)}
268
+ class="ft-typography ft-typography--${this.variant}">
269
+ <slot></slot>
270
+ </${Lt(this.element)}>
271
+ `:Ht`
272
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
273
+ `}}Ye.styles=[Ae,Be,Le,Pe,He,We,Ke,Ze,Ve,Ge,Je],qe([n()],Ye.prototype,"element",void 0),qe([n()],Ye.prototype,"variant",void 0),c("ft-typography")(Ye);
274
+ /**
275
+ * @license
276
+ * Copyright 2017 Google LLC
277
+ * SPDX-License-Identifier: BSD-3-Clause
278
+ */
279
+ const Xe=1,Qe=2,ti=t=>(...e)=>({_$litDirective$:t,values:e});class ei{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)}}
280
+ /**
281
+ * @license
282
+ * Copyright 2017 Google LLC
283
+ * SPDX-License-Identifier: BSD-3-Clause
284
+ */class ii extends ei{constructor(t){if(super(t),this.it=Y,t.type!==Qe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this._t=void 0,this.it=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ii.directiveName="unsafeHTML",ii.resultType=1;const oi=ti(ii);var ni,si;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",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.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="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",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="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(ni||(ni={})),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;"}(si||(si={})),new Map([...["abw"].map((t=>[t,si.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,si.AUDIO])),...["avi"].map((t=>[t,si.AVI])),...["chm","xhs"].map((t=>[t,si.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,si.CODE])),...["csv"].map((t=>[t,si.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,si.DITA])),...["epub"].map((t=>[t,si.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,si.EXCEL])),...["flac"].map((t=>[t,si.FLAC])),...["gif"].map((t=>[t,si.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,si.GZIP])),...["html","htm","xhtml"].map((t=>[t,si.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,si.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,si.JPEG])),...["json"].map((t=>[t,si.JSON])),...["m4a","m4p"].map((t=>[t,si.M4A])),...["mov","qt"].map((t=>[t,si.MOV])),...["mp3"].map((t=>[t,si.MP3])),...["mp4","m4v"].map((t=>[t,si.MP4])),...["ogg","oga"].map((t=>[t,si.OGG])),...["pdf","ps"].map((t=>[t,si.PDF])),...["png"].map((t=>[t,si.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,si.POWERPOINT])),...["rar"].map((t=>[t,si.RAR])),...["stp"].map((t=>[t,si.STP])),...["txt","rtf","md","mdown"].map((t=>[t,si.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,si.VIDEO])),...["wav"].map((t=>[t,si.WAV])),...["wma"].map((t=>[t,si.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,si.WORD])),...["xml","xsl","rdf"].map((t=>[t,si.XML])),...["yaml","yml","x-yaml"].map((t=>[t,si.YAML])),...["zip"].map((t=>[t,si.ZIP]))]);const ri={size:gt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:gt.extend("--ft-icon-fluid-topics-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:gt.extend("--ft-icon-file-format-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:gt.extend("--ft-icon-material-font-family",gt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:gt.create("--ft-icon-vertical-align","UNKNOWN","unset")},ai=y`
285
+ :host, i.ft-icon {
286
+ display: inline-flex;
287
+ align-items: center;
288
+ flex-shrink: 0;
289
+ flex-grow: 0;
290
+ }
291
+
292
+ :host {
293
+ width: ${ri.size};
294
+ height: ${ri.size};
295
+ }
296
+
297
+ i.ft-icon {
298
+ width: 100%;
299
+ height: 100%;
300
+ font-size: ${ri.size};
301
+ line-height: 1;
302
+ font-weight: normal;
303
+ text-transform: none;
304
+ font-style: normal;
305
+ font-variant: normal;
306
+ speak: none;
307
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
308
+ text-rendering: auto;
309
+ -webkit-font-smoothing: antialiased;
310
+ -moz-osx-font-smoothing: grayscale;
311
+ vertical-align: ${ri.verticalAlign};
312
+ }
313
+
314
+ i.ft-icon.ft-icon--fluid-topics {
315
+ font-family: ${ri.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
316
+
317
+ /* Ugly fix because font is broken */
318
+ font-size: calc(0.9 * ${ri.size});
319
+ position: relative;
320
+ top: -5%;
321
+ justify-content: center;
322
+ }
323
+
324
+ .ft-icon--file-format {
325
+ font-family: ${ri.fileFormatFontFamily}, ft-mime, sans-serif;
326
+ }
327
+
328
+ .ft-icon--material {
329
+ font-family: ${ri.materialFontFamily}, "Material Icons", sans-serif;
330
+ }
331
+ `;var li;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(li||(li={}));var hi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ci extends wt{constructor(){super(...arguments),this.variant=li.fluid_topics,this.resolvedIcon=Y}render(){const t="material"!==this.variant||this.value;return J`
332
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
333
+ ${oi(this.resolvedIcon)}
334
+ <slot ?hidden=${t}></slot>
335
+ </i>
336
+ `}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case li.file_format:this.resolvedIcon=null!==(t=si[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case li.fluid_topics:this.resolvedIcon=null!==(e=ni[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Y}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ci.elementDefinitions={},ci.styles=ai,hi([n()],ci.prototype,"variant",void 0),hi([n()],ci.prototype,"value",void 0),hi([s()],ci.prototype,"resolvedIcon",void 0),hi([a("slot")],ci.prototype,"slottedContent",void 0),c("ft-icon")(ci);const di=gt.create("--ft-tooltip-distance","SIZE","4px"),pi=gt.create("--ft-tooltip-color","COLOR","#FFFFFF"),fi=gt.create("--ft-tooltip-background-color","COLOR","#666666"),ui=gt.create("--ft-tooltip-z-index","NUMBER","1"),vi=gt.external(xt.borderRadiusS,"Design system"),bi=gt.create("--ft-tooltip-max-width","SIZE","150px"),gi=y`
337
+ .ft-tooltip--container {
338
+ display: block;
339
+ position: relative;
340
+ }
341
+
342
+ .ft-tooltip--inline {
343
+ display: inline-block;
344
+ max-width: 100%;
345
+ }
346
+
347
+ .ft-tooltip {
348
+ position: absolute;
349
+ box-sizing: border-box;
350
+ overflow: hidden;
351
+ width: max-content;
352
+ max-width: ${bi};
353
+ text-align: center;
354
+ padding: ${di};
355
+ z-index: ${ui};
356
+ }
357
+
358
+ .ft-tooltip--content {
359
+ padding: 4px 8px;
360
+ border-radius: ${vi};
361
+ background-color: ${fi};
362
+ color: ${pi};
363
+ top: -500px;
364
+ left: -500px;
365
+ position: relative;
366
+ word-break: break-word;
367
+ }
368
+ `;var yi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class xi extends wt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return J`
369
+ <div part="container"
370
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
371
+ @mouseenter=${this.onHover}
372
+ @mouseleave=${this.onOut}
373
+ @focusin=${this.onHover}
374
+ @focusout=${this.onOut}
375
+ @touchstart=${this.onTouch}>
376
+ <slot></slot>
377
+ <div part="tooltip" role="tooltip" inert
378
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
379
+ ?hidden=${!this.visible}>
380
+ <div part="tooltip-content" class="ft-tooltip--content">
381
+ <slot name="text"></slot>
382
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
383
+ </div>
384
+ </div>
385
+ </div>
386
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${bi})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}xi.elementDefinitions={"ft-typography":Ye},xi.styles=gi,yi([n()],xi.prototype,"text",void 0),yi([n({type:Boolean})],xi.prototype,"manual",void 0),yi([n({type:Boolean})],xi.prototype,"inline",void 0),yi([n({type:Number})],xi.prototype,"delay",void 0),yi([n()],xi.prototype,"position",void 0),yi([
387
+ /**
388
+ * @license
389
+ * Copyright 2017 Google LLC
390
+ * SPDX-License-Identifier: BSD-3-Clause
391
+ */
392
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?h(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],xi.prototype,"slotNodes",void 0),yi([a(".ft-tooltip--container")],xi.prototype,"container",void 0),yi([a("slot")],xi.prototype,"target",void 0),yi([a(".ft-tooltip")],xi.prototype,"tooltip",void 0),yi([a(".ft-tooltip--content")],xi.prototype,"tooltipContent",void 0),yi([s()],xi.prototype,"visible",void 0),c("ft-tooltip")(xi);
393
+ /**
394
+ * @license
395
+ * Copyright 2018 Google LLC
396
+ * SPDX-License-Identifier: BSD-3-Clause
397
+ */
398
+ const mi=ti(class extends ei{constructor(t){var e;if(super(t),t.type!==Xe||"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.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return q}}),$i=gt.extend("--ft-ripple-color",xt.colorContent),wi={color:$i,backgroundColor:gt.extend("--ft-ripple-background-color",$i),opacityContentOnSurfacePressed:gt.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:gt.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:gt.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:gt.external(xt.opacityContentOnSurfaceSelected,"Design system")},ki=gt.extend("--ft-ripple-color",xt.colorPrimary),Si=ki,Oi=gt.extend("--ft-ripple-background-color",ki),_i=gt.extend("--ft-ripple-color",xt.colorSecondary),Ci=_i,Ni=gt.extend("--ft-ripple-background-color",_i),Ri=y`
399
+ :host {
400
+ display: contents;
401
+ }
402
+
403
+ .ft-ripple {
404
+ position: absolute;
405
+ inset: 0;
406
+ pointer-events: none;
407
+ }
408
+
409
+ .ft-ripple:not(.ft-ripple--unbounded) {
410
+ overflow: hidden;
411
+ }
412
+
413
+ .ft-ripple .ft-ripple--background,
414
+ .ft-ripple .ft-ripple--effect {
415
+ position: absolute;
416
+ opacity: 0;
417
+ }
418
+
419
+ .ft-ripple .ft-ripple--background {
420
+ background-color: ${wi.backgroundColor};
421
+ }
422
+
423
+ .ft-ripple .ft-ripple--effect {
424
+ background-color: ${wi.color};
425
+ }
426
+
427
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
428
+ background-color: ${Ni};
429
+ }
430
+
431
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
432
+ background-color: ${Ci};
433
+ }
434
+
435
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
436
+ background-color: ${Oi};
437
+ }
438
+
439
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
440
+ background-color: ${Si};
441
+ }
442
+
443
+ .ft-ripple .ft-ripple--background {
444
+ top: 0;
445
+ left: 0;
446
+ height: 100%;
447
+ width: 100%;
448
+ transition: opacity 75ms linear;
449
+ }
450
+
451
+ .ft-ripple .ft-ripple--effect,
452
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
453
+ border-radius: 50%;
454
+ }
455
+
456
+ .ft-ripple .ft-ripple--effect {
457
+ transform: translate(-50%, -50%) scale(0.15);
458
+ transition: transform 300ms ease, opacity 75ms linear;
459
+ }
460
+
461
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
462
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
463
+ left: 50%;
464
+ top: 50%;
465
+ }
466
+
467
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
468
+ transform: translate(-50%, -50%);
469
+ }
470
+
471
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
472
+ opacity: ${wi.opacityContentOnSurfaceHover};
473
+ }
474
+
475
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
476
+ opacity: ${wi.opacityContentOnSurfaceSelected};
477
+ }
478
+
479
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
480
+ opacity: ${wi.opacityContentOnSurfaceFocused};
481
+ }
482
+
483
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
484
+ opacity: ${wi.opacityContentOnSurfacePressed};
485
+ transform: translate(-50%, -50%) scale(1);
486
+ }
487
+ `;var Ei=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Mi extends wt{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.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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`
488
+ <style>
489
+ .ft-ripple .ft-ripple--effect,
490
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
491
+ width: ${this.rippleSize}px;
492
+ height: ${this.rippleSize}px;
493
+ }
494
+
495
+ .ft-ripple .ft-ripple--effect {
496
+ left: ${this.originX}px;
497
+ top: ${this.originY}px;
498
+ }
499
+ </style>
500
+ <div class="${mi(t)}">
501
+ <div class="ft-ripple--background"></div>
502
+ <div class="ft-ripple--effect"></div>
503
+ </div>
504
+ `}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){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),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"),n=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",n),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",n),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,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}Mi.elementDefinitions={},Mi.styles=Ri,Ei([n({type:Boolean})],Mi.prototype,"primary",void 0),Ei([n({type:Boolean})],Mi.prototype,"secondary",void 0),Ei([n({type:Boolean})],Mi.prototype,"unbounded",void 0),Ei([n({type:Boolean})],Mi.prototype,"activated",void 0),Ei([n({type:Boolean})],Mi.prototype,"selected",void 0),Ei([n({type:Boolean})],Mi.prototype,"disabled",void 0),Ei([s()],Mi.prototype,"hovered",void 0),Ei([s()],Mi.prototype,"focused",void 0),Ei([s()],Mi.prototype,"pressed",void 0),Ei([s()],Mi.prototype,"rippling",void 0),Ei([s()],Mi.prototype,"rippleSize",void 0),Ei([s()],Mi.prototype,"originX",void 0),Ei([s()],Mi.prototype,"originY",void 0),Ei([a(".ft-ripple")],Mi.prototype,"ripple",void 0),Ei([a(".ft-ripple--effect")],Mi.prototype,"rippleEffect",void 0),c("ft-ripple")(Mi);const Ii={textColor:gt.extend("--ft-switch-text-color",xt.colorOnSurfaceHigh),backgroundColor:gt.extend("--ft-switch-background-color",xt.colorSurface),selectedTextColor:gt.extend("--ft-switch-selected-text-color",xt.colorPrimary),selectedBackgroundColor:gt.extend("--ft-switch-selected-background-color",xt.colorPrimary),borderColor:gt.extend("--ft-switch-border-color",xt.colorOutline),borderRadius:gt.extend("--ft-switch-border-radius",xt.borderRadiusL),fontSize:gt.extend("--ft-switch-font-size",je.fontSize),iconSize:gt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:gt.extend("--ft-switch-text-color",xt.colorOnSurfaceMedium),rippleColor:gt.extend("--ft-switch-ripple-color",xt.colorPrimary),outlineColor:gt.extend("--ft-switch-outline-color",xt.colorPrimary)},zi={borderRadiusLeft:gt.extend("--ft-switch-option-border-radius-left",xt.borderRadiusL),borderRadiusRight:gt.extend("--ft-switch-option-border-radius-right",xt.borderRadiusL),borderWidthLeft:gt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:gt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:gt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Ti=y`
505
+ .ft-switch-option {
506
+ position: relative;
507
+ display: inline-block;
508
+ }
509
+
510
+ .ft-switch-option--input {
511
+ position: absolute;
512
+ opacity: 0;
513
+ width: 0;
514
+ height: 0;
515
+ }
516
+
517
+ .ft-switch-option--content {
518
+ --ft-switch-option-internal-line-height: calc(${Ii.fontSize} + 2px);
519
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Ii.iconSize});
520
+
521
+ border-style: solid;
522
+ border-color: ${Ii.borderColor};
523
+ border-width: ${zi.borderWidthVertical} ${zi.borderWidthRight} ${zi.borderWidthVertical} ${zi.borderWidthLeft};
524
+ border-radius: ${zi.borderRadiusLeft} ${zi.borderRadiusRight} ${zi.borderRadiusRight} ${zi.borderRadiusLeft};
525
+ display: flex;
526
+ align-items: center;
527
+ justify-content: center;
528
+ overflow: hidden;
529
+ ${yt(ri.size,Ii.iconSize)};
530
+ padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
531
+ background-color: ${Ii.backgroundColor};
532
+ -webkit-mask-image: radial-gradient(white, black);
533
+ }
534
+
535
+ .ft-switch-option--content > *:not(ft-ripple) {
536
+ position: relative;
537
+ }
538
+
539
+ .ft-switch-option--input:checked + .ft-switch-option--content:before {
540
+ background-color: ${Ii.selectedBackgroundColor};
541
+ border-radius: ${zi.borderRadiusLeft} ${zi.borderRadiusRight} ${zi.borderRadiusRight} ${zi.borderRadiusLeft};
542
+ position: absolute;
543
+ inset: 0;
544
+ content: "";
545
+ z-index: 1;
546
+ opacity: ${xt.opacityPrimaryOnSurfaceSelected};
547
+ }
548
+
549
+ .ft-switch-option--label {
550
+ color: ${Ii.textColor};
551
+ overflow: hidden;
552
+ white-space: nowrap;
553
+ text-overflow: ellipsis;
554
+ display: block;
555
+ margin: 0 8px;
556
+ ${yt(je.fontSize,Ii.fontSize)};
557
+ ${yt(je.lineHeight,"var(--ft-switch-option-internal-content-height)")}
558
+ }
559
+
560
+ .ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
561
+ color: ${Ii.selectedTextColor};
562
+ }
563
+
564
+ .ft-switch-option--label[hidden] {
565
+ display: none;
566
+ }
567
+
568
+ .ft-switch-option--ripple {
569
+ ${yt(wi.color,Ii.rippleColor)};
570
+ }
571
+
572
+ ft-icon, ft-ripple, ft-typography {
573
+ z-index: 2;
574
+ }
575
+
576
+ .ft-switch-option:not(.ft-switch-option--trailing-icon) ft-icon {
577
+ order: -1;
578
+ }
579
+
580
+ ft-icon {
581
+ flex-shrink: 0;
582
+ color: ${Ii.iconColor};
583
+ }
584
+
585
+ .ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
586
+ color: ${Ii.selectedTextColor};
587
+ }
588
+ `;var Fi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ui extends CustomEvent{constructor(){super("option-change",{bubbles:!0})}}class Di extends wt{constructor(){super(...arguments),this.value="",this.iconVariant=li.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Ui)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(J`
589
+ <label part="label" for="input" class=${mi(t)}>
590
+ <input id="input" type="radio" class="ft-switch-option--input"
591
+ .checked=${this.selected}
592
+ @click=${this.onChange}>
593
+ <div class="ft-switch-option--content">
594
+ <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
595
+ <ft-typography part="text"
596
+ variant="button"
597
+ class="ft-switch-option--label ${zt?"ft-safari-ellipsis-fix":""}"
598
+ ?hidden=${!this.hasTextContent()}>
599
+ <slot @slotchange=${this.onSlotchange}></slot>
600
+ </ft-typography>
601
+ ${this.resolveIcon()}
602
+ </div>
603
+ </label>
604
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:J`
605
+ <ft-tooltip part="tooltip"
606
+ text="${this.getLabel()}"
607
+ position="${this.tooltipPosition}">
608
+ ${t}
609
+ </ft-tooltip>
610
+ `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?J`
611
+ <ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
612
+ `:Y}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Di.elementDefinitions={"ft-ripple":Mi,"ft-typography":Ye,"ft-tooltip":xi,"ft-icon":ci},Di.styles=[St,Ti],Fi([n()],Di.prototype,"value",void 0),Fi([n()],Di.prototype,"icon",void 0),Fi([n()],Di.prototype,"iconVariant",void 0),Fi([n()],Di.prototype,"label",void 0),Fi([n()],Di.prototype,"tooltipPosition",void 0),Fi([n({type:Boolean,reflect:!0})],Di.prototype,"selected",void 0),Fi([n({type:Boolean})],Di.prototype,"trailingIcon",void 0),Fi([n({type:Boolean})],Di.prototype,"unselectable",void 0),Fi([a(".ft-switch-option--content slot")],Di.prototype,"slottedContent",void 0),Fi([a(".ft-switch-option--input")],Di.prototype,"input",void 0);var ji=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ai extends CustomEvent{constructor(t){super("change",{detail:t})}}class Bi extends wt{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Ai(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return J`
613
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${mi(t)}">
614
+ <slot @slotchange=${this.onSlotchange}
615
+ @option-change=${this.onOptionChange}></slot>
616
+ </div>
617
+ `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Di&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Bi.elementDefinitions={},Bi.styles=y`
618
+ :host {
619
+ display: inline-block;
620
+ }
621
+
622
+ .ft-switch {
623
+ border-radius: ${Ii.borderRadius};
624
+ outline-color: ${Ii.outlineColor};
625
+ }
626
+
627
+ .ft-switch slot {
628
+ display: flex;
629
+ align-items: stretch;
630
+ }
631
+
632
+ .ft-switch slot::slotted(ft-switch-option) {
633
+ ${yt(zi.borderRadiusLeft,"0")};
634
+ ${yt(zi.borderRadiusRight,"0")};
635
+ ${yt(zi.borderWidthLeft,"0")};
636
+ }
637
+
638
+ .ft-switch slot::slotted(ft-switch-option:first-child) {
639
+ ${yt(zi.borderRadiusLeft,Ii.borderRadius)};
640
+ ${yt(zi.borderWidthLeft,"1px")};
641
+ }
642
+
643
+ .ft-switch slot::slotted(ft-switch-option:last-child) {
644
+ ${yt(zi.borderRadiusRight,Ii.borderRadius)};
645
+ }
646
+
647
+ .ft-switch--dense slot::slotted(ft-switch-option) {
648
+ --ft-switch-internal-vertical-padding: 2px;
649
+ --ft-switch-internal-horizontal-padding: 4px;
650
+ }
651
+ `,ji([n({type:Boolean})],Bi.prototype,"dense",void 0),ji([n({type:Boolean})],Bi.prototype,"unselectable",void 0),ji([a(".ft-switch slot")],Bi.prototype,"slottedContent",void 0),ji([s()],Bi.prototype,"selectedOption",void 0),ji([a(".ft-switch")],Bi.prototype,"ftSwitchDiv",void 0),c("ft-switch")(Bi),c("ft-switch-option")(Di);const Li=gt.external(xt.colorOutline,"Design system"),Pi=gt.external(xt.colorOnSurfaceMedium,"Design system"),Hi=y`
652
+ :host {
653
+ display: block;
654
+ }
655
+
656
+ .ft-resizer {
657
+ display: flex;
658
+ }
659
+
660
+ ft-icon {
661
+ transform: rotate(-45deg);
662
+ color: ${Li};
663
+ }
664
+
665
+ .ft-resizer--dragging ft-icon,
666
+ .ft-resizer:hover ft-icon {
667
+ color: ${Pi};
668
+ }
669
+ `;var Wi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Zi extends wt{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return J`
670
+ <style>
671
+ .ft-resizer {
672
+ cursor: ${g(this.cursor)}
673
+ }
674
+ </style>
675
+ <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
676
+ @mousedown=${this.initDragFromMouse}
677
+ @touchstart=${this.initDragFromTouch}>
678
+ <ft-icon variant="material">${this.icon}</ft-icon>
679
+ </div>
680
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new Ki(i,o))}}Zi.elementDefinitions={"ft-icon":ci},Zi.styles=[kt,Hi],Wi([n({type:Number})],Zi.prototype,"initialWidth",void 0),Wi([n({type:Number})],Zi.prototype,"initialHeight",void 0),Wi([n()],Zi.prototype,"icon",void 0),Wi([n()],Zi.prototype,"cursor",void 0),Wi([s()],Zi.prototype,"dragging",void 0),c("ft-resizer")(Zi);const Vi={fontSize:gt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:gt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:gt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:gt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:gt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:gt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:gt.extend("--ft-input-label-border-color",xt.colorOutline),textColor:gt.extend("--ft-input-label-text-color",xt.colorOnSurfaceMedium),disabledTextColor:gt.extend("--ft-input-label-disabled-text-color",xt.colorOnSurfaceDisabled),colorSurface:gt.external(xt.colorSurface,"Design system"),borderRadiusS:gt.external(xt.borderRadiusS,"Design system"),colorError:gt.external(xt.colorError,"Design system")},Gi=y`
681
+ .ft-input-label {
682
+ position: absolute;
683
+ inset: 0;
684
+ display: flex;
685
+ background-color: ${Vi.colorSurface};
686
+ border-radius: ${Vi.borderRadiusS} ${Vi.borderRadiusS} 0 0;
687
+ }
688
+
689
+ .ft-input-label--outlined {
690
+ border-radius: ${Vi.borderRadiusS};
691
+ }
692
+
693
+ .ft-input-label {
694
+ border-color: ${Vi.borderColor};
695
+ }
696
+
697
+ .ft-input-label.ft-input-label--in-error {
698
+ border-color: ${Vi.colorError}
699
+ }
700
+
701
+ .ft-input-label:before,
702
+ .ft-input-label:after {
703
+ content: "";
704
+ display: flex;
705
+ border-bottom-width: 1px;
706
+ border-bottom-style: solid;
707
+ border-color: inherit;
708
+ }
709
+
710
+ .ft-input-label:before {
711
+ width: calc(${Vi.horizontalSpacing} - 4px);
712
+ flex-shrink: 0;
713
+ }
714
+
715
+ .ft-input-label:after {
716
+ flex-grow: 1;
717
+ flex-shrink: 1;
718
+ }
719
+
720
+ .ft-input-label--text {
721
+ display: flex;
722
+ flex-shrink: 1;
723
+ position: relative;
724
+ border-bottom-width: 1px;
725
+ border-bottom-style: solid;
726
+ border-color: inherit;
727
+ color: ${Vi.textColor};
728
+ transition: font-size 250ms, line-height 250ms, color 250ms;
729
+ max-width: calc(${Vi.labelMaxWidth} - 2 * (${Vi.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
730
+ text-overflow: ellipsis;
731
+ ${yt(Oe.fontSize,Vi.fontSize)};
732
+ ${yt(Oe.lineHeight,Vi.fontSize)};
733
+ }
734
+
735
+ .ft-input-label--in-error .ft-input-label--text {
736
+ color: ${Vi.colorError}
737
+ }
738
+
739
+ .ft-input-label--disabled .ft-input-label--text {
740
+ color: ${Vi.disabledTextColor};
741
+ }
742
+
743
+ .ft-input-label--hidden-text {
744
+ padding: 0 4px;
745
+ opacity: 0;
746
+ max-width: 100%;
747
+ box-sizing: border-box;
748
+ }
749
+
750
+ .ft-input-label--floating-text {
751
+ position: absolute;
752
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
753
+ transition: top 250ms;
754
+ overflow: hidden;
755
+ white-space: nowrap;
756
+ text-overflow: ellipsis;
757
+ padding: ${Vi.verticalSpacing} 4px;
758
+ margin: calc(${Vi.verticalSpacing} * -1) 0;
759
+ max-width: 100%;
760
+ box-sizing: border-box;
761
+ }
762
+
763
+ .ft-input-label--raised .ft-input-label--text {
764
+ ${yt(Oe.fontSize,Vi.raisedFontSize)};
765
+ ${yt(Oe.lineHeight,Vi.raisedFontSize)};
766
+ }
767
+
768
+ .ft-input-label--raised .ft-input-label--floating-text {
769
+ top: ${Vi.verticalSpacing};
770
+ }
771
+
772
+ .ft-input-label--outlined .ft-input-label--text,
773
+ .ft-input-label--outlined:before,
774
+ .ft-input-label--outlined:after {
775
+ border-top-width: 1px;
776
+ border-top-style: solid;
777
+ }
778
+
779
+ .ft-input-label--outlined:before {
780
+ border-left-width: 1px;
781
+ border-left-style: solid;
782
+ border-radius: ${Vi.borderRadiusS} 0 0 ${Vi.borderRadiusS};
783
+ }
784
+
785
+ .ft-input-label--outlined:after {
786
+ border-right-width: 1px;
787
+ border-right-style: solid;
788
+ border-radius: 0 ${Vi.borderRadiusS} ${Vi.borderRadiusS} 0;
789
+ }
790
+
791
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
792
+ padding: 2px 4px;
793
+ z-index: ${Vi.raisedZIndex};
794
+ background-color: ${Vi.colorSurface};
795
+ border-radius: ${Vi.borderRadiusS};
796
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
797
+ }
798
+
799
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
800
+ border-top: none;
801
+ }
802
+ `;var Ji=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class qi extends wt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!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,"ft-input-label--in-error":this.error};return J`
803
+ <div class="${mi(t)}">
804
+ ${this.text?J`
805
+ <div class="ft-input-label--text ft-typography--caption">
806
+ <span class="ft-input-label--floating-text">${this.text}</span>
807
+ <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
808
+ </div>
809
+ `:null}
810
+ </div>
811
+ `}}qi.elementDefinitions={},qi.styles=[Ke,Gi],Ji([n({type:String})],qi.prototype,"text",void 0),Ji([n({type:Boolean})],qi.prototype,"raised",void 0),Ji([n({type:Boolean})],qi.prototype,"outlined",void 0),Ji([n({type:Boolean})],qi.prototype,"disabled",void 0),Ji([n({type:Boolean})],qi.prototype,"error",void 0),c("ft-input-label")(qi);const Yi={fontSize:gt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:gt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:gt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:gt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:gt.extend("--ft-text-area-helper-color",xt.colorOnSurfaceMedium),colorPrimary:gt.external(xt.colorPrimary,"Design system"),colorOnSurface:gt.external(xt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:gt.external(xt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:gt.external(xt.borderRadiusS,"Design system"),colorError:gt.external(xt.colorError,"Design system")},Xi=y`
812
+ *:focus {
813
+ outline: none;
814
+ }
815
+
816
+ .ft-text-area {
817
+ display: flex;
818
+ flex-direction: column;
819
+ align-items: stretch;
820
+ }
821
+
822
+ ft-input-label {
823
+ ${yt(Vi.fontSize,Yi.fontSize)};
824
+ ${yt(Vi.raisedFontSize,Yi.labelSize)};
825
+ ${yt(Vi.verticalSpacing,Yi.verticalSpacing)};
826
+ ${yt(Vi.horizontalSpacing,Yi.horizontalSpacing)};
827
+ }
828
+
829
+ .ft-text-area--main-panel {
830
+ position: relative;
831
+ display: flex;
832
+ }
833
+
834
+ .ft-text-area--input-panel {
835
+ flex-grow: 1;
836
+ position: relative;
837
+ display: flex;
838
+ align-items: center;
839
+ overflow: hidden;
840
+ gap: 8px;
841
+ }
842
+
843
+ .ft-text-area--input-panel ft-ripple {
844
+ ${yt(wi.opacityContentOnSurfaceHover,"0.08")};
845
+ ${yt(wi.opacityContentOnSurfacePressed,"0.04")};
846
+ }
847
+
848
+ .ft-text-area--input {
849
+ display: block;
850
+ position: relative;
851
+ flex-grow: 1;
852
+ flex-shrink: 1;
853
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
854
+ align-self: stretch;
855
+ resize: none;
856
+
857
+ ${yt(ye.fontSize,Yi.fontSize)};
858
+ ${yt(ye.lineHeight,Yi.fontSize)};
859
+ color: ${Yi.colorOnSurface};
860
+
861
+ padding: 0 ${Yi.horizontalSpacing};
862
+ margin: calc(${Yi.verticalSpacing} + ${Yi.labelSize} / 2) 0 ${Yi.verticalSpacing} 0;
863
+
864
+ border: none;
865
+ background: none;
866
+
867
+ line-height: 1.4;
868
+ }
869
+
870
+ .ft-text-area--disabled .ft-text-area--input {
871
+ color: ${Yi.colorOnSurfaceDisabled};
872
+ }
873
+
874
+ .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
875
+ cursor: pointer;
876
+ }
877
+
878
+ .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
879
+ ${yt(Vi.borderColor,Yi.colorPrimary)};
880
+ ${yt(Vi.textColor,Yi.colorPrimary)};
881
+ }
882
+
883
+ .ft-text-area--filled .ft-text-area--input-panel {
884
+ border-radius: ${Yi.borderRadiusS} ${Yi.borderRadiusS} 0 0;
885
+ }
886
+
887
+ .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
888
+ align-self: stretch;
889
+ margin-bottom: ${Yi.verticalSpacing};
890
+ margin-top: calc(${Yi.labelSize} + 2 * ${Yi.verticalSpacing});
891
+ }
892
+
893
+ .ft-text-area--outlined .ft-text-area--input-panel {
894
+ border-radius: ${Yi.borderRadiusS};
895
+ }
896
+
897
+ .ft-text-area--helper-text {
898
+ padding: 0 12px 0 ${Yi.horizontalSpacing};
899
+ color: ${Yi.helperColor};
900
+ }
901
+
902
+ .ft-text-area--in-error .ft-text-area--input,
903
+ .ft-text-area--in-error .ft-text-area--helper-text {
904
+ color: ${Yi.colorError};
905
+ }
906
+
907
+ ft-resizer {
908
+ position: absolute;
909
+ right: 0;
910
+ bottom: 0;
911
+ }
912
+ `;var Qi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class to extends wt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return J`
913
+ <style>
914
+ .ft-text-area--main-panel {
915
+ height: calc(4 * ${Yi.verticalSpacing} + ${Yi.labelSize} + ${Yi.fontSize} + ${this.height}px);
916
+ }
917
+ </style>
918
+ <div class="${mi(t)}">
919
+ <div class="ft-text-area--main-panel">
920
+ <ft-input-label text="${this.label}"
921
+ ?disabled=${this.disabled}
922
+ ?outlined=${this.outlined}
923
+ ?raised=${this.focused||""!=this.value}
924
+ ?error=${this.error}
925
+ ></ft-input-label>
926
+ <div class="ft-text-area--input-panel"
927
+ aria-label="${this.label}">
928
+ ${this.outlined?null:J`
929
+ <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
930
+ `}
931
+ <textarea class="ft-typography--body1 ft-text-area--input"
932
+ ?disabled=${this.disabled}
933
+ .value=${this.value}
934
+ @change=${this.updateValueFromInputField}
935
+ @keydown=${this.onKeyDown}
936
+ @keyup=${this.liveUpdateValueFromInputField}
937
+ @focus=${()=>this.focused=!0}
938
+ @focusout=${()=>this.focused=!1}>
939
+ </textarea>
940
+ </div>
941
+ <ft-resizer @resize=${this.onResize}
942
+ initialHeight="${this.height}"
943
+ cursor="ns-resize"></ft-resizer>
944
+ </div>
945
+ ${this.helper?J`
946
+ <ft-typography class="ft-text-area--helper-text" variant="caption">
947
+ ${this.helper}
948
+ </ft-typography>`:void 0}
949
+ </div>
950
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}to.elementDefinitions={"ft-input-label":qi,"ft-resizer":Zi,"ft-ripple":Mi,"ft-typography":Ye},to.styles=[He,Xi],Qi([n({type:String})],to.prototype,"label",void 0),Qi([n({reflect:!0})],to.prototype,"value",void 0),Qi([n({type:String})],to.prototype,"helper",void 0),Qi([n({type:Boolean})],to.prototype,"outlined",void 0),Qi([n({type:Boolean})],to.prototype,"disabled",void 0),Qi([n({type:Boolean})],to.prototype,"error",void 0),Qi([n({type:Number,reflect:!0})],to.prototype,"height",void 0),Qi([a("textarea")],to.prototype,"textarea",void 0),Qi([s()],to.prototype,"focused",void 0),c("ft-text-area")(to);
951
+ /**
952
+ * @license
953
+ * Copyright 2020 Google LLC
954
+ * SPDX-License-Identifier: BSD-3-Clause
955
+ */
956
+ const{I:eo}=dt,io=()=>document.createComment(""),oo=(t,e,i)=>{var o;const n=t._$AA.parentNode,s=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(io(),s),o=n.insertBefore(io(),s);i=new eo(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,a=r!==t;if(a){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!==s||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,s),t=e}}}return i},no=(t,e,i=t)=>(t._$AI(e,i),t),so={},ro=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}},ao=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},lo=ti(class extends ei{constructor(t){if(super(t),t.type!==Qe)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],s=[];let r=0;for(const e of t)n[r]=o?o(e,r):r,s[r]=i(e,r),r++;return{values:s,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const s=(t=>t._$AH)(t),{values:r,keys:a}=this.ht(e,i,o);if(!Array.isArray(s))return this.ut=a,r;const l=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],h=[];let c,d,p=0,f=s.length-1,u=0,v=r.length-1;for(;p<=f&&u<=v;)if(null===s[p])p++;else if(null===s[f])f--;else if(l[p]===a[u])h[u]=no(s[p],r[u]),p++,u++;else if(l[f]===a[v])h[v]=no(s[f],r[v]),f--,v--;else if(l[p]===a[v])h[v]=no(s[p],r[v]),oo(t,h[v+1],s[p]),p++,v--;else if(l[f]===a[u])h[u]=no(s[f],r[u]),oo(t,s[p],s[f]),f--,u++;else if(void 0===c&&(c=ao(a,u,v),d=ao(l,p,f)),c.has(l[p]))if(c.has(l[f])){const e=d.get(a[u]),i=void 0!==e?s[e]:null;if(null===i){const e=oo(t,s[p]);no(e,r[u]),h[u]=e}else h[u]=no(i,r[u]),oo(t,s[p],i),s[e]=null;u++}else ro(s[f]),f--;else ro(s[p]),p++;for(;u<=v;){const e=oo(t,h[v+1]);no(e,r[u]),h[u++]=e}for(;p<=f;){const t=s[p++];null!==t&&ro(t)}return this.ut=a,((t,e=so)=>{t._$AH=e})(t,h),q}}),ho={color:gt.extend("--ft-loader-color",xt.colorPrimary),size:gt.create("--ft-loader-size","SIZE","80px")},co=y`
957
+ :host {
958
+ line-height: 0;
959
+ }
960
+
961
+ .ft-loader {
962
+ display: inline-block;
963
+ position: relative;
964
+
965
+ width: ${ho.size};
966
+ height: ${ho.size};
967
+ }
968
+
969
+ .ft-loader div {
970
+ position: absolute;
971
+ top: 37.5%;
972
+ width: 25%;
973
+ height: 25%;
974
+ border-radius: 50%;
975
+ background: ${ho.color};
976
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
977
+ }
978
+
979
+ .ft-loader div:nth-child(1) {
980
+ left: 2.5%;
981
+ animation: appear 0.6s infinite;
982
+ }
983
+
984
+ .ft-loader div:nth-child(2) {
985
+ left: 2.5%;
986
+ animation: move 0.6s infinite;
987
+ }
988
+
989
+ .ft-loader div:nth-child(3) {
990
+ left: 37.5%;
991
+ animation: move 0.6s infinite;
992
+ }
993
+
994
+ .ft-loader div:nth-child(4) {
995
+ left: 72.5%;
996
+ animation: disappear 0.6s infinite;
997
+ }
998
+
999
+ @keyframes appear {
1000
+ 0% {
1001
+ transform: scale(0);
1002
+ }
1003
+ 100% {
1004
+ transform: scale(1);
1005
+ }
1006
+ }
1007
+
1008
+ @keyframes disappear {
1009
+ 0% {
1010
+ transform: scale(1);
1011
+ }
1012
+ 100% {
1013
+ transform: scale(0);
1014
+ }
1015
+ }
1016
+
1017
+ @keyframes move {
1018
+ 0% {
1019
+ transform: translate(0, 0);
1020
+ }
1021
+ 100% {
1022
+ transform: translate(calc(0.35 * ${ho.size}), 0);
1023
+ }
1024
+ }
1025
+ `;
1026
+ /**
1027
+ * @license
1028
+ * Copyright 2017 Google LLC
1029
+ * SPDX-License-Identifier: BSD-3-Clause
1030
+ */class po extends wt{render(){return J`
1031
+ <div class="ft-loader">
1032
+ <div></div>
1033
+ <div></div>
1034
+ <div></div>
1035
+ <div></div>
1036
+ </div>
1037
+ `}}po.styles=co,c("ft-loader")(po);const fo=gt.extend("--ft-button-color",xt.colorPrimary),uo={backgroundColor:gt.extend("--ft-button-background-color",xt.colorSurface),borderRadius:gt.extend("--ft-button-border-radius",xt.borderRadiusL),color:fo,fontSize:gt.extend("--ft-button-font-size",je.fontSize),iconSize:gt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:gt.extend("--ft-button-ripple-color",fo),opacityDisabled:gt.external(xt.colorOpacityDisabled,"Design system")},vo=gt.extend("--ft-button-primary-color",gt.extend("--ft-button-color",xt.colorOnPrimary)),bo={backgroundColor:gt.extend("--ft-button-primary-background-color",gt.extend("--ft-button-background-color",xt.colorPrimary)),color:vo,rippleColor:gt.extend("--ft-button-primary-ripple-color",vo)},go=gt.extend("--ft-button-dense-border-radius",gt.extend("--ft-button-border-radius",xt.borderRadiusM)),yo=[kt,y`
1038
+ :host {
1039
+ display: inline-block;
1040
+ max-width: 100%;
1041
+ pointer-events: none;
1042
+ }
1043
+
1044
+ button {
1045
+ box-shadow: 0px 0px 0px transparent;
1046
+ border: 0px solid transparent;
1047
+ text-shadow: 0px 0px 0px transparent;
1048
+ font-size: ${uo.fontSize};
1049
+ }
1050
+
1051
+ button:hover {
1052
+ box-shadow: 0px 0px 0px transparent;
1053
+ border: 0px solid transparent;
1054
+ text-shadow: 0px 0px 0px transparent;
1055
+ }
1056
+
1057
+ button:active {
1058
+ outline: none;
1059
+ border: none;
1060
+ }
1061
+
1062
+ button:focus {
1063
+ outline: 0;
1064
+ }
1065
+
1066
+ .ft-button {
1067
+ position: relative;
1068
+ display: flex;
1069
+ justify-content: center;
1070
+ align-items: center;
1071
+ width: 100%;
1072
+ overflow: hidden;
1073
+ box-sizing: border-box;
1074
+ border: none;
1075
+ pointer-events: auto;
1076
+
1077
+ --ft-button-internal-line-height: calc(${uo.fontSize} + 2px);
1078
+ --ft-button-internal-color: ${uo.color};
1079
+ ${yt(ri.size,uo.iconSize)};
1080
+ --ft-button-internal-vertical-padding: 6px;
1081
+ --ft-button-internal-horizontal-padding: 8px;
1082
+ ${yt(wi.color,uo.rippleColor)};
1083
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${uo.iconSize});
1084
+
1085
+ border-radius: ${uo.borderRadius};
1086
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
1087
+ background-color: ${uo.backgroundColor};
1088
+ color: var(--ft-button-internal-color);
1089
+ -webkit-mask-image: radial-gradient(white, black);
1090
+ }
1091
+
1092
+ .ft-button:not([disabled]):hover {
1093
+ cursor: pointer;
1094
+ }
1095
+
1096
+ .ft-button--dense {
1097
+ --ft-button-internal-vertical-padding: 2px;
1098
+ --ft-button-internal-horizontal-padding: 4px;
1099
+ border-radius: ${go};
1100
+ }
1101
+
1102
+ .ft-button--round {
1103
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
1104
+ }
1105
+
1106
+ .ft-button[disabled] {
1107
+ filter: grayscale(1);
1108
+ opacity: ${uo.opacityDisabled};
1109
+ }
1110
+
1111
+ .ft-button.ft-button--primary {
1112
+ background-color: ${bo.backgroundColor};
1113
+ --ft-button-internal-color: ${bo.color};
1114
+ ${yt(wi.color,bo.rippleColor)};
1115
+ }
1116
+
1117
+ .ft-button.ft-button--outlined {
1118
+ border: 1px solid var(--ft-button-internal-color);
1119
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
1120
+ }
1121
+
1122
+ .ft-button:focus {
1123
+ outline: none;
1124
+ }
1125
+
1126
+ .ft-button--label {
1127
+ position: relative;
1128
+ overflow: hidden;
1129
+ white-space: nowrap;
1130
+ text-overflow: ellipsis;
1131
+ display: block;
1132
+ margin: 0 var(--ft-button-internal-horizontal-padding);
1133
+ ${yt(je.fontSize,"1em")};
1134
+ ${yt(je.lineHeight,"var(--ft-button-internal-content-height)")};
1135
+ }
1136
+
1137
+ .ft-button--label[hidden] {
1138
+ display: none;
1139
+ }
1140
+
1141
+ ft-icon {
1142
+ flex-shrink: 0;
1143
+ position: relative;
1144
+ }
1145
+
1146
+ .ft-button--label[hidden] + ft-icon {
1147
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
1148
+ padding: 0 var(--ft-button-internal-vertical-padding);
1149
+ }
1150
+
1151
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
1152
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
1153
+ order: -1;
1154
+ }
1155
+
1156
+ ft-loader {
1157
+ ${yt(ho.size,uo.iconSize)};
1158
+ ${yt(ho.color,"var(--ft-button-internal-color)")};
1159
+ }
1160
+ `];var xo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class mo extends wt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=li.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(J`
1161
+ <button part="button"
1162
+ class="${mi(t)}"
1163
+ aria-label="${this.getLabel()}"
1164
+ ?disabled=${this.isDisabled()}>
1165
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1166
+ <ft-typography part="label"
1167
+ variant="button"
1168
+ element="span"
1169
+ class="ft-button--label ${zt?"ft-safari-ellipsis-fix":""}"
1170
+ ?hidden=${!this.hasTextContent()}>
1171
+ <slot @slotchange=${this.onSlotchange}></slot>
1172
+ </ft-typography>
1173
+ ${this.resolveIcon()}
1174
+ </button>
1175
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?J`
1176
+ <ft-tooltip part="tooltip"
1177
+ text="${this.getLabel()}"
1178
+ position="${this.tooltipPosition}">
1179
+ ${t}
1180
+ </ft-tooltip>
1181
+ `:t}resolveIcon(){return this.loading?J`
1182
+ <ft-loader></ft-loader> `:this.icon?J`
1183
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Y}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}mo.elementDefinitions={"ft-ripple":Mi,"ft-tooltip":xi,"ft-typography":Ye,"ft-icon":ci,"ft-loader":po},mo.styles=[St,yo],xo([n({type:Boolean})],mo.prototype,"primary",void 0),xo([n({type:Boolean})],mo.prototype,"outlined",void 0),xo([n({type:Boolean})],mo.prototype,"disabled",void 0),xo([n({type:Boolean})],mo.prototype,"dense",void 0),xo([n({type:Boolean})],mo.prototype,"round",void 0),xo([n({type:String})],mo.prototype,"label",void 0),xo([n({type:String})],mo.prototype,"icon",void 0),xo([n({type:String})],mo.prototype,"iconVariant",void 0),xo([n({type:Boolean})],mo.prototype,"trailingIcon",void 0),xo([n({type:Boolean})],mo.prototype,"loading",void 0),xo([n({type:String})],mo.prototype,"tooltipPosition",void 0),xo([n({type:Boolean})],mo.prototype,"hideTooltip",void 0),xo([n({type:Boolean})],mo.prototype,"forceTooltip",void 0),xo([a(".ft-button")],mo.prototype,"button",void 0),xo([a(".ft-button--label slot")],mo.prototype,"slottedContent",void 0),c("ft-button")(mo);var $o=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class wo extends wt{constructor(){super(...arguments),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.iconVariant=li.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN"}get canAccessFeedback(){return this.user&&this.user.roles.includes("FEEDBACK_USER")}get canAccessRating(){return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType}get userHasRatingRole(){return this.user&&this.user.roles.includes("RATING_USER")}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?J`
1184
+ <div class="ft-reader-feedback">
1185
+ ${this.hideTitle?Y:J`
1186
+ <ft-typography variant="title" part="main-title">
1187
+ ${this.labelResolver.resolve("feedbackMainTitle")}
1188
+ </ft-typography>
1189
+ `}
1190
+ ${this.renderRatingSection()}
1191
+ ${this.renderFeedbackSection()}
1192
+ </div>
1193
+ `:Y}renderRatingSection(){return this.canAccessRating?J`
1194
+ <div class="ft-reader-feedback--rating" part="rating-container">
1195
+ <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1196
+ ${"DICHOTOMOUS"===this.ratingSummary.type?this.labelResolver.resolve("dichotomousRatingSectionTitle"):this.labelResolver.resolve("ratingSectionTitle")}
1197
+ </ft-typography>
1198
+ ${this.renderRating()}
1199
+ <ft-typography variant="caption" class="ft-reader-feedback--rating-date" part="rating-date">
1200
+ ${this.renderRatingDate()}
1201
+ </ft-typography>
1202
+ </div>
1203
+ `:this.placeholderInEditor("Rating unavailable: "+(this.userHasRatingRole?"no rating configured for this content":"missing role RATING_USER"))}renderRatingDate(){const t=this.ratingDate;if(null==t)return this.labelResolver.resolve("notRated");if(t.getTime()>(new Date).getTime()-6e4)return this.labelResolver.resolve("ratedNow");return(new Date).toLocaleDateString()===t.toLocaleDateString()?this.labelResolver.resolve("ratedToday"):this.labelResolver.resolve("ratedOn",t)}renderRating(){switch(this.configuredRatingType){case"STARS":return J`
1204
+ <div class="ft-reader-feedback--stars" part="rating rating-stars">
1205
+ ${lo(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return J`
1206
+ <ft-button round part="rating-stars-${o}"
1207
+ label="${this.labelResolver.resolve("starsRating",o)}"
1208
+ tooltipPosition="top"
1209
+ .iconVariant=${this.iconVariant}
1210
+ icon="${i?this.filledStarIcon:this.emptyStarIcon}"
1211
+ class="ft-reader-feedback--${i?"active":"inactive"}"
1212
+ @click=${()=>this.rate(this.ratingValue===o?void 0:o)}
1213
+ ></ft-button>
1214
+ `}))}
1215
+ </div>
1216
+ `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return J`
1217
+ <ft-switch @change=${t=>this.rate(t.detail)} part="rating rating-like">
1218
+ <ft-switch-option .value=${0}
1219
+ ?selected=${t}
1220
+ .iconVariant=${this.iconVariant}
1221
+ icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1222
+ ${this.labelResolver.resolve("dislike")}
1223
+ </ft-switch-option>
1224
+ <ft-switch-option .value=${1}
1225
+ ?selected=${e}
1226
+ .iconVariant=${this.iconVariant}
1227
+ icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1228
+ ${this.labelResolver.resolve("like")}
1229
+ </ft-switch-option>
1230
+ </ft-switch>
1231
+ `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return J`
1232
+ <ft-switch @change=${t=>this.rate(t.detail)}
1233
+ part="rating rating-dichotomous">
1234
+ <ft-switch-option .value=${0}
1235
+ ?selected=${i}>
1236
+ ${this.labelResolver.resolve("dichotomousNo")}
1237
+ </ft-switch-option>
1238
+ <ft-switch-option .value=${1}
1239
+ ?selected=${o}>
1240
+ ${this.labelResolver.resolve("dichotomousYes")}
1241
+ </ft-switch-option>
1242
+ </ft-switch>
1243
+ `}return Y}rate(t){this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){if(this.canAccessFeedback){const t=this.feedbackMailLinkBuilder(this.feedbackMessage);let e=J`
1244
+ <ft-button primary
1245
+ class="ft-reader-feedback--send-feedback"
1246
+ ?disabled=${!this.feedbackMessage}
1247
+ @click=${()=>t?this.clearFeedbackInput():this.sendFeedback()}
1248
+ part="send-feedback">
1249
+ ${this.labelResolver.resolve("okButton")}
1250
+ </ft-button>
1251
+ `;return t&&(e=J`
1252
+ <a class="ft-reader-feedback--feedback-link" href="${t}">
1253
+ ${e}
1254
+ </a>
1255
+ `),J`
1256
+ <div class="ft-reader-feedback--feedback" part="feedback-container">
1257
+ <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1258
+ ${this.labelResolver.resolve("feedbackSectionTitle")}
1259
+ </ft-typography>
1260
+ <ft-text-area outlined
1261
+ class="ft-reader-feedback--feedback-input" part="feedback-input"
1262
+ label="${this.labelResolver.resolve("feedbackInputLabel")}"
1263
+ @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1264
+ ></ft-text-area>
1265
+ ${e}
1266
+ </div>
1267
+ `}return this.placeholderInEditor("Feedback unavailable: missing role FEEDBACK_USER")}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?J`
1268
+ <div class="ft-reader-feedback--placeholder">
1269
+ <ft-typography variant="caption">${t}</ft-typography>
1270
+ <ft-tooltip position="left"
1271
+ text="This is a placeholder, it will not appear outside this designer.">
1272
+ <ft-icon>INFO</ft-icon>
1273
+ </ft-tooltip>
1274
+ </div>
1275
+ `:Y}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}wo.elementDefinitions={"ft-button":mo,"ft-typography":Ye,"ft-icon":ci,"ft-tooltip":xi,"ft-switch":Bi,"ft-switch-option":Di,"ft-text-area":to},wo.styles=jt,$o([n({attribute:!0})],wo.prototype,"editorMode",void 0),$o([n({type:Boolean})],wo.prototype,"hideTitle",void 0),$o([n({type:Boolean})],wo.prototype,"ratingAllowed",void 0),$o([n({attribute:!1})],wo.prototype,"labelResolver",void 0),$o([n({attribute:!1})],wo.prototype,"ratingSummary",void 0),$o([n({attribute:!1})],wo.prototype,"user",void 0),$o([a(".ft-reader-feedback--feedback-input")],wo.prototype,"feedbackInput",void 0),$o([s()],wo.prototype,"feedbackMessage",void 0),$o([n()],wo.prototype,"iconVariant",void 0),$o([n()],wo.prototype,"emptyStarIcon",void 0),$o([n()],wo.prototype,"filledStarIcon",void 0),$o([n()],wo.prototype,"emptyLikeIcon",void 0),$o([n()],wo.prototype,"filledLikeIcon",void 0),$o([n()],wo.prototype,"emptyDislikeIcon",void 0),$o([n()],wo.prototype,"filledDislikeIcon",void 0),$o([n()],wo.prototype,"feedbackMailLinkBuilder",void 0);const ko={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later."},So={...ko,feedbackMainTitle:"Send feedback",ratingSectionTitle:"Rate this document",dichotomousRatingSectionTitle:"Did it solve your problem?",feedbackSectionTitle:"Write your review",mailSubject:"Feedback about “{0}”"},Oo=new Ot({...ko,feedbackMainTitle:"Send feedback",ratingSectionTitle:"Rate this content",dichotomousRatingSectionTitle:"Did this content solve your problem?",feedbackSectionTitle:"Write your review",mailSubject:"Feedback about “{0}” in “{1}”"},{}),_o=new Ot(So,{});class Co{constructor(t){this.disclaimer=t,this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,n){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=n,this.subjectMetadata=o.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${this.disclaimer}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${n}`}}var No=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ro extends Ut{constructor(){super(...arguments),this.editorMode=!1,this.iconVariant=li.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Co(_o.resolve("mailDisclaimer"))}render(){return null==this.map?Y:J`
1276
+ <ft-reader-feedback
1277
+ ratingAllowed
1278
+ .editorMode=${!0}
1279
+ .labelResolver=${_o}
1280
+ .ratingSummary=${this.ratingSummary}
1281
+ .user=${this.user}
1282
+ .iconVariant=${this.iconVariant}
1283
+ .emptyStarIcon=${this.emptyStarIcon}
1284
+ .filledStarIcon=${this.filledStarIcon}
1285
+ .emptyLikeIcon=${this.emptyLikeIcon}
1286
+ .filledLikeIcon=${this.filledLikeIcon}
1287
+ .emptyDislikeIcon=${this.emptyDislikeIcon}
1288
+ .filledDislikeIcon=${this.filledDislikeIcon}
1289
+ .feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
1290
+ @rate=${this.rate}
1291
+ @send-feedback=${this.sendFeedback}
1292
+ ></ft-reader-feedback>
1293
+ `}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.updateData(),["map","configuration","user"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(_o.resolve("mailSubject",this.map.title),null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}async updateData(){var t,e;this.user=await(null===(t=this.service)||void 0===t?void 0:t.getSession().then((t=>t.profile))),this.map&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}async rate(t){var e,i,o;if(this.ratingSummary)try{null==t.detail?(this.ratingSummary={...this.ratingSummary,rating:void 0},await(null===(e=this.service)||void 0===e?void 0:e.unrateMap())):(this.ratingSummary={...this.ratingSummary,rating:{type:this.ratingSummary.type,value:t.detail,date:new Date}},await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t.detail)))}catch{this.dispatchEvent(new mt({type:"error",message:_o.resolve("ratingFailure")}))}this.updateData()}async sendFeedback(t){var e;try{await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new mt({type:"info",message:_o.resolve("feedbackSuccess")})),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new mt({type:"error",message:_o.resolve("feedbackFailure")}))}}}Ro.elementDefinitions={"ft-reader-feedback":wo},No([Ct()],Ro.prototype,"map",void 0),No([n({attribute:!1})],Ro.prototype,"editorMode",void 0),No([Ct((t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}))],Ro.prototype,"configuration",void 0),No([e.state()],Ro.prototype,"ratingSummary",void 0),No([e.state()],Ro.prototype,"user",void 0),No([n({type:String})],Ro.prototype,"iconVariant",void 0),No([n({type:String})],Ro.prototype,"emptyStarIcon",void 0),No([n({type:String})],Ro.prototype,"filledStarIcon",void 0),No([n({type:String})],Ro.prototype,"emptyLikeIcon",void 0),No([n({type:String})],Ro.prototype,"filledLikeIcon",void 0),No([n({type:String})],Ro.prototype,"emptyDislikeIcon",void 0),No([n({type:String})],Ro.prototype,"filledDislikeIcon",void 0),No([a("ft-reader-feedback")],Ro.prototype,"readerFeedback",void 0);var Eo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Mo extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Io extends(function(t){class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new Mo)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return Eo([s()],e.prototype,"tocNode",void 0),Eo([s()],e.prototype,"disableContextInteractions",void 0),e}(Ut)){}var zo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class To extends Io{constructor(){super(...arguments),this.editorMode=!1,this.iconVariant=li.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Co(Oo.resolve("mailDisclaimer"))}render(){return null==this.map||null==this.tocNode?Y:J`
1294
+ <ft-reader-feedback
1295
+ ?ratingAllowed=${this.tocNode.hasRating}
1296
+ .editorMode=${this.editorMode}
1297
+ .labelResolver=${Oo}
1298
+ .ratingSummary=${this.ratingSummary}
1299
+ .user=${this.user}
1300
+ .iconVariant=${this.iconVariant}
1301
+ .emptyStarIcon=${this.emptyStarIcon}
1302
+ .filledStarIcon=${this.filledStarIcon}
1303
+ .emptyLikeIcon=${this.emptyLikeIcon}
1304
+ .filledLikeIcon=${this.filledLikeIcon}
1305
+ .emptyDislikeIcon=${this.emptyDislikeIcon}
1306
+ .filledDislikeIcon=${this.filledDislikeIcon}
1307
+ .feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
1308
+ @rate=${this.rate}
1309
+ @send-feedback=${this.sendFeedback}
1310
+ ></ft-reader-feedback>
1311
+ `}updated(t){var e,i,o;super.updated(t),t.has("tocNode")&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(Oo.resolve("mailSubject",this.tocNode.title,this.map.title),null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}async updateData(){var t,e;this.user=await(null===(t=this.service)||void 0===t?void 0:t.getSession().then((t=>t.profile))),this.tocNode&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}async rate(t){var e,i,o;if(this.ratingSummary&&this.tocNode)try{null==t.detail?(this.ratingSummary={...this.ratingSummary,rating:void 0},await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId))):(this.ratingSummary={...this.ratingSummary,rating:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t.detail)))}catch{this.dispatchEvent(new mt({type:"error",message:Oo.resolve("ratingFailure")}))}this.updateData()}async sendFeedback(t){var e;try{this.tocNode&&(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new mt({type:"info",message:Oo.resolve("feedbackSuccess")})),this.readerFeedback.clearFeedbackInput())}catch{this.dispatchEvent(new mt({type:"error",message:Oo.resolve("feedbackFailure")}))}}}To.elementDefinitions={"ft-reader-feedback":wo},zo([Ct()],To.prototype,"map",void 0),zo([n({attribute:!1})],To.prototype,"editorMode",void 0),zo([Ct((t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}))],To.prototype,"configuration",void 0),zo([s()],To.prototype,"ratingSummary",void 0),zo([s()],To.prototype,"user",void 0),zo([n()],To.prototype,"iconVariant",void 0),zo([n()],To.prototype,"emptyStarIcon",void 0),zo([n()],To.prototype,"filledStarIcon",void 0),zo([n()],To.prototype,"emptyLikeIcon",void 0),zo([n()],To.prototype,"filledLikeIcon",void 0),zo([n()],To.prototype,"emptyDislikeIcon",void 0),zo([n()],To.prototype,"filledDislikeIcon",void 0),zo([a("ft-reader-feedback")],To.prototype,"readerFeedback",void 0),c("ft-reader-map-feedback")(Ro),c("ft-reader-topic-feedback")(To),t.FtReaderFeedbackCssVariables=Dt,t.FtReaderMapFeedback=Ro,t.FtReaderTopicFeedback=To,t.styles=jt,Object.defineProperty(t,"i",{value:!0})}({},decorators);