@fluid-topics/ft-reader-feedback 1.1.41 → 1.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-feedback.js +1 -1
- package/build/ft-reader-feedback.min.js +481 -466
- package/build/{ft-reader-feedback.css.js → ft-reader-feedback.styles.js} +3 -3
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +5 -5
- /package/build/{ft-reader-feedback.css.d.ts → ft-reader-feedback.styles.d.ts} +0 -0
|
@@ -12,92 +12,135 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=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,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);d(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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=a.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),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(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===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),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 a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(es){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t,e,i,o){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=o}static extractResultMetadata(t){var e,i;return(null!==(i=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==i?i:null==t?void 0:t.topic).metadata.map((t=>r.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],i=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?i.push(`... > ${t[t.length-1]}`):i.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:i.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){let i=r.extractResultMetadata(this.selectedResult).find((e=>e.key===t));const o=this.allResults.flatMap((e=>r.extractResultMetadata(e).filter((e=>e.key===t)))).filter((t=>!(t.key===(null==i?void 0:i.key)&&t.value===(null==i?void 0:i.value)))).filter(((t,e,i)=>i.findIndex((e=>e.value===t.value))===e));return o.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((i,o)=>this.compareMetadata(i.metadata.value,o.metadata.value,t,e)))}compareMetadata(t,e,i,o){let r=this.metadataDescriptors.find((t=>i==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let i=t.localeCompare(e,o,{numeric:!0});return a?-1*i:i}return 0}findBestResultForMetadataValue(t,e){const i=this.allResults.filter((i=>r.extractResultMetadata(i).find((i=>i.key===t&&i.value===e))));let o,n=r.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),a=[...n.filter((e=>e.key!==t))],s=-1;for(let t of i){let e=this.countMatchingMetadata(t,a);if(e>s&&(s=e,o=t,e===a.length))break}return o}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}class n{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,r=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)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=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,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=o.call(i,t);h||(h=d(t),e.call(i,t,h)),this===window.customElements&&(a.set(r,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.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 o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=h(o)||window.customElements,r=i._getDefinition(e);return r?p(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},p=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(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,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(El){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
19
19
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
20
|
-
*/const
|
|
20
|
+
*/const e=globalThis,o=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;const n=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==i)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(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return n(e)})(t):t
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/,{is:
|
|
25
|
+
*/,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:d,getPrototypeOf:f}=Object,u=globalThis,p=u.trustedTypes,y=p?p.emptyScript:"",g=u.reactiveElementPolyfillSupport,b=(t,e)=>t,v={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},m=(t,e)=>!s(t,e),x={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:m};Symbol.metadata??=Symbol("metadata"),u.litPropertyMetadata??=new WeakMap;let w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...h(t),...d(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(o)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of i){const i=document.createElement("style"),r=e.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:v).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:v;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??m)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[b("elementProperties")]=new Map,w[b("finalized")]=new Map,g?.({ReactiveElement:w}),(u.reactiveElementVersions??=[]).push("2.0.2");
|
|
26
26
|
/**
|
|
27
27
|
* @license
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
const O=globalThis,S=O.trustedTypes,N=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",C=`lit$${(Math.random()+"").slice(9)}$`,E="?"+C,k=`<${E}>`,R=document,I=()=>R.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,_=t=>U(t)||"function"==typeof t?.[Symbol.iterator],A="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,D=/>/g,F=RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),M=/'/g,B=/"/g,P=/^(?:script|style|textarea|title)$/i,j=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),z=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,H=R.createTreeWalker(R,129);function V(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==N?N.createHTML(e):e}const G=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=T;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,h=0;for(;h<o.length&&(a.lastIndex=h,l=a.exec(o),null!==l);)h=a.lastIndex,a===T?"!--"===l[1]?a=W:void 0!==l[1]?a=D:void 0!==l[2]?(P.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=F):void 0!==l[3]&&(a=F):a===F?">"===l[0]?(a=r??T,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?F:'"'===l[3]?B:M):a===B||a===M?a=F:a===W||a===D?a=T:(a=F,r=void 0);const d=a===F&&t[e+1].startsWith("/>")?" ":"";n+=a===T?o+k:c>=0?(i.push(s),o.slice(0,c)+$+o.slice(c)+C+d):o+C+(-2===c?e:d)}return[V(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let q=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,h]=G(e,o);if(this.el=t.createElement(c,i),H.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=H.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith($)){const e=h[a++],o=r.getAttribute(t).split(C),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q}),r.removeAttribute(t)}else t.startsWith(C)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(P.test(r.tagName)){const t=r.textContent.split(C),e=t.length-1;if(e>0){r.textContent=S?S.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],I()),H.nextNode(),l.push({type:2,index:++n});r.append(t[e],I())}}}else if(8===r.nodeType)if(r.data===E)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(C,t+1));)l.push({type:7,index:n}),t+=C.length-1}n++}}static createElement(t,e){const o=R.createElement("template");return o.innerHTML=t,o}};function Y(t,e,o=t,i){if(e===z)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=L(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=Y(t,r._$AS(t,e.values),r,i)),e}let J=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??R).importNode(e,!0);H.currentNode=i;let r=H.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new X(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new it(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=H.nextNode(),n++)}return H.currentNode=R,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},X=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}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=Y(this,t,e),L(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==z&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==K&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(V(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new J(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=Z.get(t.strings);return void 0===e&&Z.set(t.strings,e=new q(t)),e}T(e){U(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(I()),this.k(I()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},Q=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=K}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=Y(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==z,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Y(this,i[o+a],e,a),s===z&&(s=this._$AH[a]),n||=!L(s)||s!==this._$AH[a],s===K?t=K:t!==K&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},tt=class extends Q{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===K?void 0:t}},et=class extends Q{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}},ot=class extends Q{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=Y(this,t,e,0)??K)===z)return;const o=this._$AH,i=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==K&&(o===K||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},it=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}};const rt={j:$,P:C,A:E,C:1,M:G,L:J,R:_,V:Y,D:X,I:Q,H:et,N:ot,U:tt,B:it},nt=O.litHtmlPolyfillSupport;nt?.(q,X),(O.litHtmlVersions??=[]).push("3.1.0");
|
|
32
|
+
/**
|
|
33
|
+
* @license
|
|
34
|
+
* Copyright 2019 Google LLC
|
|
35
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
+
*/
|
|
37
|
+
const at=globalThis,st=at.ShadowRoot&&(void 0===at.ShadyCSS||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,lt=Symbol(),ct=new WeakMap;let ht=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==lt)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(st&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ct.set(e,t))}return t}toString(){return this.cssText}};const dt=t=>new ht("string"==typeof t?t:t+"",void 0,lt),ft=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>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.")})(o)+t[i+1]),t[0]);return new ht(o,t,lt)},ut=(t,e)=>{if(st)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=at.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}},pt=st?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return dt(e)})(t):t
|
|
32
38
|
/**
|
|
33
39
|
* @license
|
|
34
40
|
* Copyright 2017 Google LLC
|
|
35
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
|
|
42
|
+
*/,{is:yt,defineProperty:gt,getOwnPropertyDescriptor:bt,getOwnPropertyNames:vt,getOwnPropertySymbols:mt,getPrototypeOf:xt}=Object,wt=globalThis,Ot=wt.trustedTypes,St=Ot?Ot.emptyScript:"",Nt=wt.reactiveElementPolyfillSupport,$t=(t,e)=>t,Ct={toAttribute(t,e){switch(e){case Boolean:t=t?St:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Et=(t,e)=>!yt(t,e),kt={attribute:!0,type:String,converter:Ct,reflect:!1,hasChanged:Et};Symbol.metadata??=Symbol("metadata"),wt.litPropertyMetadata??=new WeakMap;let Rt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&>(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=bt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??kt}static _$Ei(){if(this.hasOwnProperty($t("elementProperties")))return;const t=xt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty($t("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($t("properties"))){const t=this.properties,e=[...vt(t),...mt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(pt(t))}else void 0!==t&&e.push(pt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ut(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:Ct).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Ct;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Et)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Rt.elementStyles=[],Rt.shadowRootOptions={mode:"open"},Rt[$t("elementProperties")]=new Map,Rt[$t("finalized")]=new Map,Nt?.({ReactiveElement:Rt}),(wt.reactiveElementVersions??=[]).push("2.0.2");
|
|
37
43
|
/**
|
|
38
44
|
* @license
|
|
39
45
|
* Copyright 2017 Google LLC
|
|
40
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/
|
|
47
|
+
*/
|
|
48
|
+
const It=globalThis,Lt=It.trustedTypes,Ut=Lt?Lt.createPolicy("lit-html",{createHTML:t=>t}):void 0,_t="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Tt="?"+At,Wt=`<${Tt}>`,Dt=document,Ft=()=>Dt.createComment(""),Mt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Bt=Array.isArray,Pt=t=>Bt(t)||"function"==typeof t?.[Symbol.iterator],jt="[ \t\n\f\r]",zt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kt=/-->/g,Zt=/>/g,Ht=RegExp(`>|${jt}(?:([^\\s"'>=/]+)(${jt}*=${jt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Vt=/'/g,Gt=/"/g,qt=/^(?:script|style|textarea|title)$/i,Yt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Jt=Yt(1),Xt=Yt(2),Qt=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),ee=new WeakMap,oe=Dt.createTreeWalker(Dt,129);function ie(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ut?Ut.createHTML(e):e}const re=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=zt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,h=0;for(;h<o.length&&(a.lastIndex=h,l=a.exec(o),null!==l);)h=a.lastIndex,a===zt?"!--"===l[1]?a=Kt:void 0!==l[1]?a=Zt:void 0!==l[2]?(qt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Ht):void 0!==l[3]&&(a=Ht):a===Ht?">"===l[0]?(a=r??zt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Ht:'"'===l[3]?Gt:Vt):a===Gt||a===Vt?a=Ht:a===Kt||a===Zt?a=zt:(a=Ht,r=void 0);const d=a===Ht&&t[e+1].startsWith("/>")?" ":"";n+=a===zt?o+Wt:c>=0?(i.push(s),o.slice(0,c)+_t+o.slice(c)+At+d):o+At+(-2===c?e:d)}return[ie(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class ne{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=re(t,e);if(this.el=ne.createElement(l,o),oe.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=oe.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(_t)){const e=c[n++],o=i.getAttribute(t).split(At),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?he:"?"===a[1]?de:"@"===a[1]?fe:ce}),i.removeAttribute(t)}else t.startsWith(At)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(qt.test(i.tagName)){const t=i.textContent.split(At),e=t.length-1;if(e>0){i.textContent=Lt?Lt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Ft()),oe.nextNode(),s.push({type:2,index:++r});i.append(t[e],Ft())}}}else if(8===i.nodeType)if(i.data===Tt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(At,t+1));)s.push({type:7,index:r}),t+=At.length-1}r++}}static createElement(t,e){const o=Dt.createElement("template");return o.innerHTML=t,o}}function ae(t,e,o=t,i){if(e===Qt)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Mt(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=ae(t,r._$AS(t,e.values),r,i)),e}let se=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??Dt).importNode(e,!0);oe.currentNode=i;let r=oe.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new le(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ue(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=oe.nextNode(),n++)}return oe.currentNode=Dt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},le=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}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=ae(this,t,e),Mt(t)?t===te||null==t||""===t?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==Qt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Pt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==te&&Mt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Dt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ne.createElement(ie(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new se(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ee.get(t.strings);return void 0===e&&ee.set(t.strings,e=new ne(t)),e}T(e){Bt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(Ft()),this.k(Ft()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ce=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=te,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=te}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ae(this,t,e,0),n=!Mt(t)||t!==this._$AH&&t!==Qt,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ae(this,i[o+a],e,a),s===Qt&&(s=this._$AH[a]),n||=!Mt(s)||s!==this._$AH[a],s===te?t=te:t!==te&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},he=class extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===te?void 0:t}},de=class extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}},fe=class extends ce{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ae(this,t,e,0)??te)===Qt)return;const o=this._$AH,i=t===te&&o!==te||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==te&&(o===te||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ue=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ae(this,t)}};const pe={j:_t,P:At,A:Tt,C:1,M:re,L:se,R:Pt,V:ae,D:le,I:ce,H:de,N:fe,U:he,B:ue},ye=It.litHtmlPolyfillSupport;ye?.(ne,le),(It.litHtmlVersions??=[]).push("3.1.0");const ge=(t,e,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new le(e.insertBefore(Ft(),t),t,void 0,o??{})}return r._$AI(t),r
|
|
42
49
|
/**
|
|
43
50
|
* @license
|
|
44
51
|
* Copyright 2017 Google LLC
|
|
45
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
|
-
*/const
|
|
53
|
+
*/};let be=class extends Rt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ge(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qt}};be._$litElement$=!0,be.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:be});const ve=globalThis.litElementPolyfillSupport;ve?.({LitElement:be});(globalThis.litElementVersions??=[]).push("4.0.2");var me=Object.freeze({__proto__:null,CSSResult:ht,LitElement:be,ReactiveElement:Rt,_$LE:{_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL},_$LH:pe,adoptStyles:ut,css:ft,defaultConverter:Ct,getCompatibleStyle:pt,html:Jt,isServer:!1,noChange:Qt,notEqual:Et,nothing:te,render:ge,supportsAdoptingStyleSheets:st,svg:Xt,unsafeCSS:dt});
|
|
47
54
|
/**
|
|
48
55
|
* @license
|
|
49
56
|
* Copyright 2017 Google LLC
|
|
50
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
|
|
58
|
+
*/const xe={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:m},we=(t=xe,e,o)=>{const{kind:i,metadata:r}=o;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};
|
|
52
59
|
/**
|
|
53
60
|
* @license
|
|
54
|
-
* Copyright
|
|
61
|
+
* Copyright 2017 Google LLC
|
|
55
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/
|
|
63
|
+
*/function Oe(t){return(e,o)=>"object"==typeof o?we(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
|
|
57
64
|
/**
|
|
58
65
|
* @license
|
|
59
66
|
* Copyright 2017 Google LLC
|
|
60
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/
|
|
62
|
-
function T(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const _=t=>new Promise((e=>setTimeout(e,t)));async function W(t,e=10,i=2e4){let o,r,n=await t();for(o=r=performance.now();null==n&&(!i||r-o<i);)await _(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}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,r;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=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=i;0!=o--;){var n=r[o];if(!D(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const M=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function F(t,e){const i=()=>JSON.parse(JSON.stringify(t));return I({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!D(t,e),...null!=e?e:{}})}
|
|
68
|
+
*/}function Se(t){return Oe({...t,state:!0,attribute:!1})}
|
|
63
69
|
/**
|
|
64
70
|
* @license
|
|
65
71
|
* Copyright 2017 Google LLC
|
|
66
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
67
|
-
*/
|
|
73
|
+
*/function Ne(t){return(e,o)=>{const i="function"==typeof e?e:e[o];Object.assign(i,t)}}
|
|
68
74
|
/**
|
|
69
75
|
* @license
|
|
70
|
-
* Copyright
|
|
76
|
+
* Copyright 2017 Google LLC
|
|
71
77
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
|
-
*/
|
|
73
|
-
const Nt=globalThis,$t=Nt.ShadowRoot&&(void 0===Nt.ShadyCSS||Nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ct=Symbol(),Et=new WeakMap;let kt=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ct)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($t&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Et.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Et.set(e,t))}return t}toString(){return this.cssText}};const It=t=>new kt("string"==typeof t?t:t+"",void 0,Ct),Rt=(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 kt(i,t,Ct)},Ut=$t?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return It(e)})(t):t
|
|
78
|
+
*/const $e=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
|
|
74
79
|
/**
|
|
75
80
|
* @license
|
|
76
81
|
* Copyright 2017 Google LLC
|
|
77
82
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
78
|
-
|
|
83
|
+
*/;function Ce(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return $e(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return $e(0,0,{get(){return n(this)}})}}
|
|
79
84
|
/**
|
|
80
85
|
* @license
|
|
81
86
|
* Copyright 2017 Google LLC
|
|
82
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
|
+
*/let Ee;
|
|
89
|
+
/**
|
|
90
|
+
* @license
|
|
91
|
+
* Copyright 2021 Google LLC
|
|
92
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
83
93
|
*/
|
|
84
|
-
|
|
94
|
+
function ke(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return $e(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}
|
|
85
95
|
/**
|
|
86
96
|
* @license
|
|
87
97
|
* Copyright 2017 Google LLC
|
|
88
98
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*/
|
|
90
|
-
let Ee=class extends Ht{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new xe(e.insertBefore(ee(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ue}};Ee._$litElement$=!0,Ee.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ee});const ke=globalThis.litElementPolyfillSupport;ke?.({LitElement:Ee}),(globalThis.litElementVersions??=[]).push("4.0.2");const Ie=t=>"string"==typeof t?It(t):t;class Re{static create(t,e,i,o){const r=t=>Ie(null!=t?t:o),n=Rt`var(${Ie(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${Ie(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=Rt`var(${Ie(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${Ie(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):Ie(null!=e?e:t.lastResortDefaultValue()),o=Rt`var(${Ie(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=>Rt`var(${Ie(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Ue(t,e){return Ie(`${t.name}: ${e}`)}const Le={colorWhite:Re.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Re.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Re.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Re.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Re.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Re.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Re.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Re.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Re.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Re.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Re.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Re.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Re.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Re.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Re.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Re.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Re.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Re.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Re.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Re.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Re.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Re.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Re.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Re.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Re.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Re.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Re.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Re.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Re.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Re.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Re.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Re.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Re.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Re.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Re.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Re.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Re.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Re.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Re.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Re.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Re.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Re.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Re.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Re.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Re.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Re.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Re.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Re.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Re.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Re.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Re.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Re.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Re.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Re.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Re.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Re.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Re.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Re.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Re.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Re.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Re.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Re.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Re.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Re.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Re.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Re.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Re.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Re.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Re.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Re.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Re.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Re.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Re.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Re.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Re.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Re.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Re.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Re.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Re.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Re.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Re.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Re.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Re.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Re.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Re.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Re.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Re.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Re.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Re.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Re.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Re.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Re.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Re.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Re.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Re.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Re.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Re.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Re.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Re.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Re.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Re.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Re.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Re.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Re.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Re.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Re.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Re.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Re.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Re.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Re.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Re.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Re.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Re.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Re.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Re.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Re.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Re.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Re.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Re.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Re.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Re.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Re.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Re.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Re.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Re.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Re.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Re.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Re.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Re.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Re.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Re.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Re.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Re.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Re.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Re.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Re.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Re.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Re.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Re.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Re.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Re.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Re.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Re.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Re.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Re.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Re.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Re.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Re.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Re.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Re.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Re.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Re.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Re.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Re.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Re.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Re.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Re.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Re.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Re.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Re.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Re.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Re.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Re.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Re.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Re.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Re.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Re.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Re.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Re.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Re.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Re.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Re.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Re.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Re.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Re.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Re.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Re.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Re.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Re.create("--ft-opacity-0","","NUMBER","0"),opacity8:Re.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Re.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Re.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Re.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Re.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:Re.create("--ft-shadow-elevation-01","","SHADOW","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)"),shadowElevation02:Re.create("--ft-shadow-elevation-02","","SHADOW","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)"),shadowElevation03:Re.create("--ft-shadow-elevation-03","","SHADOW","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)"),shadowElevation04:Re.create("--ft-shadow-elevation-04","","SHADOW","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)"),shadowElevation06:Re.create("--ft-shadow-elevation-06","","SHADOW","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)"),shadowElevation08:Re.create("--ft-shadow-elevation-08","","SHADOW","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)"),shadowElevation12:Re.create("--ft-shadow-elevation-12","","SHADOW","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)"),shadowElevation16:Re.create("--ft-shadow-elevation-16","","SHADOW","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)"),shadowElevation24:Re.create("--ft-shadow-elevation-24","","SHADOW","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)")},Ae={display:{fontFamily:Re.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Re.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Re.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:Re.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Re.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:Re.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Re.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:Re.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Re.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Re.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Re.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Re.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Re.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Re.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Re.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Re.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Re.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Re.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Re.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Re.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Re.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Re.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Re.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Re.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Re.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Re.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Re.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:Re.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:Re.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:Re.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},Te={backgroundActionPrimary:Re.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Le.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Le.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Le.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Le.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Le.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Le.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Le.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Le.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Le.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Le.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Le.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Le.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Le.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Le.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Le.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Le.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Le.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Le.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Le.colorCyan0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Le.colorGreen200),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Le.colorGreen0),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Le.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Le.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Le.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Le.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Le.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Le.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Le.colorOrange300),borderWarningSubtle:Re.extend("--ft-border-warning-subtle","Used as border for warning components.",Le.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success buttons.",Le.colorGreen200),borderSuccessSubtle:Re.extend("--ft-border-success-subtle","Used as border for success components.",Le.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for text fields in error states.",Le.colorRed0),borderErrorSubtle:Re.extend("--ft-border-error-subtle","Used as border for error components.",Le.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for buttons in info color.",Le.colorCyan200),borderInfoSubtle:Re.extend("--ft-border-info-subtle","Used as border for information components.",Le.colorCyan30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Le.colorGray50),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Le.colorGray30),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Le.colorGray80)},_e={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Le.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Le.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Le.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Le.iconSize3),largeBorderWidth:Re.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Re.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Re.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Re.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Re.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Re.extend("--ft-button-small-horizontal-padding","",Le.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Le.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Le.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Le.iconSize2),smallBorderWidth:Re.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Re.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Re.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Re.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Re.extend("--ft-button-primary-background-color","",Te.backgroundActionPrimary),primaryColor:Re.extend("--ft-button-primary-color","",Te.contentGlobalOnColor),primaryIconColor:Re.extend("--ft-button-primary-icon-color","",Te.contentGlobalOnColor),primaryStateLayerColor:Re.extend("--ft-button-primary-state-layer-color","",Te.contentGlobalOnColor),primaryStateLayerOpacityHover:Re.extend("--ft-button-primary-state-layer-opacity-hover","",Le.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Le.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Le.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Le.opacity40),focusFocusRingColor:Re.extend("--ft-button-focus-focus-ring-color","",Te.borderActionFocusRing),tertiaryBackgroundColor:Re.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Re.extend("--ft-button-tertiary-color","",Te.contentActionPrimary),tertiaryIconColor:Re.extend("--ft-button-tertiary-icon-color","",Te.contentActionPrimary),tertiaryStateLayerColor:Re.extend("--ft-button-tertiary-state-layer-color","",Te.contentActionPrimary),tertiaryStateLayerOpacityHover:Re.extend("--ft-button-tertiary-state-layer-opacity-hover","",Le.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Le.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Le.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Le.opacity40),secondaryBackgroundColor:Re.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Re.extend("--ft-button-secondary-color","",Te.contentActionPrimary),secondaryIconColor:Re.extend("--ft-button-secondary-icon-color","",Te.contentActionPrimary),secondaryStateLayerColor:Re.extend("--ft-button-secondary-state-layer-color","",Te.contentActionPrimary),secondaryStateLayerOpacityHover:Re.extend("--ft-button-secondary-state-layer-opacity-hover","",Le.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Le.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Le.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Le.opacity40),secondaryBorderColor:Re.extend("--ft-button-secondary-border-color","",Te.borderActionPrimary),neutralBackgroundColor:Re.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Re.extend("--ft-button-neutral-icon-color","",Te.contentGlobalSecondary),neutralColor:Re.extend("--ft-button-neutral-color","",Te.contentGlobalSecondary),neutralStateLayerColor:Re.extend("--ft-button-neutral-state-layer-color","",Te.contentGlobalSecondary),neutralStateLayerOpacityHover:Re.extend("--ft-button-neutral-state-layer-opacity-hover","",Le.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Le.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Le.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Le.opacity40)};Re.extend("--ft-floating-menu-horizontal-padding","",Le.spacing4),Re.extend("--ft-floating-menu-vertical-padding","",Le.spacing4),Re.extend("--ft-floating-menu-off-icon-color","",Te.contentGlobalPrimary),Re.extend("--ft-floating-menu-off-color","",Te.contentGlobalPrimary),Re.extend("--ft-floating-menu-on-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-on-icon-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-gap","",Le.spacing3),Re.extend("--ft-floating-menu-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),Re.extend("--ft-floating-menu-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-floating-menu-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-floating-menu-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-floating-menu-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-floating-menu-icon-size","",Le.iconSize3),Re.extend("--ft-floating-menu-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-tabs-top-left-border-radius","",Le.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Le.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Le.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Le.spacing3),Re.extend("--ft-tabs-label-gap","",Le.spacing1),Re.extend("--ft-tabs-icon-horizontal-padding","",Le.spacing1),Re.extend("--ft-tabs-icon-vertical-padding","",Le.spacing4),Re.create("--ft-tabs-focus-outline-width","","SIZE","2px"),Re.extend("--ft-tabs-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-tabs-off-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-tabs-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-tabs-off-color","",Te.contentGlobalSubtle),Re.extend("--ft-tabs-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-tabs-on-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-tabs-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-tabs-on-color","",Te.contentActionPrimary),Re.extend("--ft-tabs-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-collapsible-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-collapsible-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-collapsible-horizontal-padding","",Le.spacing4),Re.extend("--ft-collapsible-vertical-padding","",Le.spacing3),Re.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),Re.extend("--ft-collapsible-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-collapsible-color","",Te.contentGlobalPrimary),Re.extend("--ft-collapsible-state-layer-color","",Te.contentGlobalPrimary),Re.extend("--ft-collapsible-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-collapsible-border-color","",Te.borderGlobalSubtle),Re.extend("--ft-collapsible-icon-size","",Le.iconSize3),Re.extend("--ft-switch-group-horizontal-padding","",Le.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Le.spacing1),Re.extend("--ft-switch-group-gap","",Le.spacing1),Re.extend("--ft-switch-group-background-color","",Te.backgroundGlobalSurface),Re.extend("--ft-switch-group-border-color","",Te.borderGlobalSubtle),Re.create("--ft-switch-group-border-radius","","SIZE","6px"),Re.extend("--ft-switch-label-horizontal-padding","",Le.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Le.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Le.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Le.spacing1),Re.create("--ft-switch-focus-outline-width","","SIZE","2px"),Re.extend("--ft-switch-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-switch-option-border-radius","",Le.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-switch-off-color","",Te.contentGlobalSubtle),Re.extend("--ft-switch-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-switch-on-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-switch-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-switch-on-color","",Te.contentActionPrimary),Re.extend("--ft-switch-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-chart-1-light","for area color charts",Le.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Le.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Le.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Le.colorYellow100),Re.extend("--ft-chart-3-light","",Le.colorUltramarine40),Re.extend("--ft-chart-3-base","",Le.colorUltramarine70),Re.extend("--ft-chart-4-light","",Le.colorCyan50),Re.extend("--ft-chart-4-base","",Le.colorCyan100),Re.extend("--ft-chart-5-light","",Le.colorRed40),Re.extend("--ft-chart-5-base","",Le.colorRed60),Re.extend("--ft-chart-6-light","",Le.colorGreen40),Re.extend("--ft-chart-6-base","",Le.colorGreen70),Re.extend("--ft-chart-7-light","",Le.colorOrange70),Re.extend("--ft-chart-7-base","",Le.colorOrange100),Re.extend("--ft-chart-8-light","",Le.colorAvocado70),Re.extend("--ft-chart-8-base","",Le.colorAvocado200),Re.extend("--ft-chart-9-light","",Le.colorBrown50),Re.extend("--ft-chart-9-base","",Le.colorBrown200),Re.extend("--ft-chart-10-light","",Le.colorGray50),Re.extend("--ft-chart-10-base","",Le.colorGray80),Re.extend("--ft-chart-monochrome-10","",Le.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Le.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Le.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Le.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Le.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Le.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Le.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Le.spacing2),Re.extend("--ft-chip-large-gap","",Le.spacing1),Re.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-large-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Le.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Le.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Le.spacing1),Re.extend("--ft-chip-medium-gap","",Le.spacing1),Re.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-medium-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Le.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Le.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Le.spacing05),Re.extend("--ft-chip-small-gap","",Le.spacing1),Re.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-small-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Le.iconSize1),Re.extend("--ft-chip-neutral-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-chip-neutral-color","",Te.contentGlobalPrimary),Re.extend("--ft-chip-neutral-border-color","",Te.borderGlobalSubtle),Re.extend("--ft-chip-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-chip-info-color","",Te.contentInfoPrimary),Re.extend("--ft-chip-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-chip-success-background-color","",Te.backgroundSuccessSubtle),Re.extend("--ft-chip-success-color","",Te.contentSuccessPrimary),Re.extend("--ft-chip-success-border-color","",Te.borderSuccessSubtle),Re.extend("--ft-chip-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-chip-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-chip-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-chip-error-background-color","",Te.backgroundErrorSubtle),Re.extend("--ft-chip-error-color","",Te.contentErrorPrimary),Re.extend("--ft-chip-error-border-color","",Te.borderErrorSubtle),Re.create("--ft-notice-border-width","","SIZE","1px"),Re.extend("--ft-notice-horizontal-padding","",Le.spacing2),Re.extend("--ft-notice-vertical-padding","",Le.spacing1),Re.extend("--ft-notice-border-radius","",Le.borderRadiusS),Re.extend("--ft-notice-gap","",Le.spacing2),Re.extend("--ft-notice-icon-size","",Le.iconSize3),Re.extend("--ft-notice-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-notice-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-notice-info-color","",Te.contentInfoPrimary),Re.extend("--ft-notice-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-notice-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-notice-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-checkbox-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-checkbox-checked-background-color","",Te.contentActionPrimary),Re.extend("--ft-checkbox-checked-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-checkbox-checked-color","",Te.contentGlobalOnColor),Re.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Le.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Le.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-checkbox-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Re.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Re.extend("--ft-checkbox-gap","",Le.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-toggle-off-background-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-off-icon-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-on-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-toggle-on-background-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-on-icon-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-toggle-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-toggle-gap","",Le.spacing3),Re.extend("--ft-radio-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-radio-selected-color","",Te.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Le.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-radio-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Re.create("--ft-radio-focus-outline-width","","SIZE","2px"),Re.extend("--ft-radio-gap","",Le.spacing3),Re.extend("--ft-notification-icon-size","",Le.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Le.spacing4),Re.extend("--ft-notification-vertical-padding","",Le.spacing4),Re.extend("--ft-notification-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-notification-info-color","",Te.contentInfoPrimary),Re.extend("--ft-notification-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-notification-success-background-color","",Te.backgroundSuccessSubtle),Re.extend("--ft-notification-success-color","",Te.contentSuccessPrimary),Re.extend("--ft-notification-success-border-color","",Te.borderSuccessSubtle),Re.extend("--ft-notification-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-notification-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-notification-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-notification-error-background-color","",Te.backgroundErrorSubtle),Re.extend("--ft-notification-error-color","",Te.contentErrorPrimary),Re.extend("--ft-notification-error-border-color","",Te.borderErrorSubtle),Re.extend("--ft-notification-border-radius","",Le.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Le.spacing2),Re.extend("--ft-notification-gap-trailing","",Le.spacing8),Re.extend("--ft-tooltip-horizontal-padding","",Le.spacing2),Re.extend("--ft-tooltip-vertical-padding","",Le.spacing2),Re.extend("--ft-tooltip-border-radius","",Le.borderRadiusS),Re.extend("--ft-tooltip-label","",Te.contentGlobalOnColor),Re.extend("--ft-tooltip-background","",Te.contentGlobalPrimary),Re.extend("--ft-tooltip-background-opacity","",Le.opacity80),Re.extend("--ft-tooltip-shadow","",Le.shadowElevation03);const We={colorPrimary:Re.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Re.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Re.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Re.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Re.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Re.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Re.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Re.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Re.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Re.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Re.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Re.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Re.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Re.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Re.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Re.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Re.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Re.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Re.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Re.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Re.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Re.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Re.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Re.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Re.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Re.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Re.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Re.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Re.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Re.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Re.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Re.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Re.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Re.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Re.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Re.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Re.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Re.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Re.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Re.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Re.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Re.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Re.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Re.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Re.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Re.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Re.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Re.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Re.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class De extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}const Me=["start","end"],Fe=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Me[0],e+"-"+Me[1])),[]),Pe=Math.min,ze=Math.max,Be=Math.round,je=t=>({x:t,y:t}),Ke={left:"right",right:"left",bottom:"top",top:"bottom"},Ze={start:"end",end:"start"};function He(t,e,i){return ze(t,Pe(e,i))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function qe(t){return t.split("-")[1]}function Ye(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Je(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Qe(t){return Ye(Je(t))}function ti(t){return t.replace(/left|right|bottom|top/g,(t=>Ke[t]))}function ei(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ii(t,e,i){let{reference:o,floating:r}=t;const n=Je(e),a=Qe(e),s=Xe(a),l=Ve(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(qe(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function oi(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=Ge(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[d?"floating"===h?"reference":"floating":h],g=ei(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=ei(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function ri(t,e,i){return(t?[...i.filter((e=>qe(e)===t)),...i.filter((e=>qe(e)!==t))]:i.filter((t=>Ve(t)===t))).filter((i=>!t||(qe(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ze[t]))}(i)!==i)))}const ni=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=Fe,autoAlignment:u=!0,...p}=Ge(t,e),y=void 0!==h||d===Fe?ri(h||null,u,d):d,g=await oi(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=qe(t),r=Qe(t),n=Xe(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=ti(a)),[a,ti(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ve(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=qe(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,qe(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:w},reset:{placement:$}}:{}}}};function ai(t){return ci(t)?(t.nodeName||"").toLowerCase():"#document"}function si(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function li(t){var e;return null==(e=(ci(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ci(t){return t instanceof Node||t instanceof si(t).Node}function fi(t){return t instanceof Element||t instanceof si(t).Element}function hi(t){return t instanceof HTMLElement||t instanceof si(t).HTMLElement}function di(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof si(t).ShadowRoot)}function ui(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=vi(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function pi(t){return["table","td","th"].includes(ai(t))}function yi(t){const e=gi(),i=vi(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function gi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function bi(t){return["html","body","#document"].includes(ai(t))}function vi(t){return si(t).getComputedStyle(t)}function mi(t){return fi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xi(t){if("html"===ai(t))return t;const e=t.assignedSlot||t.parentNode||di(t)&&t.host||li(t);return di(e)?e.host:e}function wi(t){const e=xi(t);return bi(e)?t.ownerDocument?t.ownerDocument.body:t.body:hi(e)&&ui(e)?e:wi(e)}function Oi(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=wi(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=si(r);return n?e.concat(a,a.visualViewport||[],ui(r)?r:[],a.frameElement&&i?Oi(a.frameElement):[]):e.concat(r,Oi(r,[],i))}function Si(t){const e=vi(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=hi(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=Be(i)!==n||Be(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Ni(t){return fi(t)?t:t.contextElement}function $i(t){const e=Ni(t);if(!hi(e))return je(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Si(e);let a=(n?Be(i.width):i.width)/o,s=(n?Be(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ci=je(0);function Ei(t){const e=si(t);return gi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ci}function ki(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Ni(t);let a=je(1);e&&(o?fi(o)&&(a=$i(o)):a=$i(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==si(t))&&e}(n,i,o)?Ei(n):je(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=si(n),e=o&&fi(o)?si(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=$i(i),e=i.getBoundingClientRect(),o=vi(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=si(i).frameElement}}return ei({width:f,height:h,x:l,y:c})}function Ii(t){return ki(li(t)).left+mi(t).scrollLeft}function Ri(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=si(t),o=li(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=gi();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=li(t),i=mi(t),o=t.ownerDocument.body,r=ze(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=ze(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+Ii(t);const s=-i.scrollTop;return"rtl"===vi(o).direction&&(a+=ze(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(li(t));else if(fi(e))o=function(t,e){const i=ki(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=hi(t)?$i(t):je(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=Ei(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ei(o)}function Ui(t,e){const i=xi(t);return!(i===e||!fi(i)||bi(i))&&("fixed"===vi(i).position||Ui(i,e))}function Li(t,e,i){const o=hi(e),r=li(e),n="fixed"===i,a=ki(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=je(0);if(o||!o&&!n)if(("body"!==ai(e)||ui(r))&&(s=mi(e)),o){const t=ki(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ii(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ai(t,e){return hi(t)&&"fixed"!==vi(t).position?e?e(t):t.offsetParent:null}function Ti(t,e){const i=si(t);if(!hi(t))return i;let o=Ai(t,e);for(;o&&pi(o)&&"static"===vi(o).position;)o=Ai(o,e);return o&&("html"===ai(o)||"body"===ai(o)&&"static"===vi(o).position&&!yi(o))?i:o||function(t){let e=xi(t);for(;hi(e)&&!bi(e);){if(yi(e))return e;e=xi(e)}return null}(t)||i}const _i={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=hi(i),n=li(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=je(1);const l=je(0);if((r||!r&&"fixed"!==o)&&(("body"!==ai(i)||ui(n))&&(a=mi(i)),hi(i))){const t=ki(i);s=$i(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:li,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n=[..."clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=Oi(t,[],!1).filter((t=>fi(t)&&"body"!==ai(t))),r=null;const n="fixed"===vi(t).position;let a=n?xi(t):t;for(;fi(a)&&!bi(a);){const e=vi(a),i=yi(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||ui(a)&&!i&&Ui(t,a))?o=o.filter((t=>t!==a)):r=e,a=xi(a)}return e.set(t,o),o}(e,this._c):[].concat(i),o],a=n[0],s=n.reduce(((t,i)=>{const o=Ri(e,i,r);return t.top=ze(o.top,t.top),t.right=Pe(o.right,t.right),t.bottom=Pe(o.bottom,t.bottom),t.left=ze(o.left,t.left),t}),Ri(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ti,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ti,n=this.getDimensions;return{reference:Li(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Si(t)},getScale:$i,isElement:fi,isRTL:function(t){return"rtl"===vi(t).direction}},Wi=(t,e,i)=>{const o=new Map,r={platform:_i,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=ii(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=ii(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Di(t){return function(t){for(let e=t;e;e=Mi(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Mi(t);e;e=Mi(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Mi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}
|
|
99
|
+
*/function Re(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return $e(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}var Ie=Object.freeze({__proto__:null,customElement:t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},eventOptions:Ne,property:Oe,query:Ce,queryAll:function(t){return(e,o)=>$e(0,0,{get(){return(this.renderRoot??(Ee??=document.createDocumentFragment())).querySelectorAll(t)}})
|
|
100
|
+
/**
|
|
101
|
+
* @license
|
|
102
|
+
* Copyright 2017 Google LLC
|
|
103
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
104
|
+
*/},queryAssignedElements:ke,queryAssignedNodes:Re,queryAsync:function(t){return(e,o)=>$e(0,0,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})},standardProperty:we,state:Se});
|
|
105
|
+
/**
|
|
106
|
+
* @license
|
|
107
|
+
* Copyright 2017 Google LLC
|
|
108
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
109
|
+
*/const Le=1,Ue=2,_e=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
110
|
+
/**
|
|
111
|
+
* @license
|
|
112
|
+
* Copyright 2020 Google LLC
|
|
113
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
114
|
+
*/const{D:Te}=rt,We=()=>document.createComment(""),De=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(We(),r),n=i.insertBefore(We(),r);o=new Te(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},Fe=(t,e,o=t)=>(t._$AI(e,o),t),Me={},Be=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Pe=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},je=_e(class extends Ae{constructor(t){if(super(t),t.type!==Ue)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,h,d=0,f=r.length-1,u=0,p=n.length-1;for(;d<=f&&u<=p;)if(null===r[d])d++;else if(null===r[f])f--;else if(s[d]===a[u])l[u]=Fe(r[d],n[u]),d++,u++;else if(s[f]===a[p])l[p]=Fe(r[f],n[p]),f--,p--;else if(s[d]===a[p])l[p]=Fe(r[d],n[p]),De(t,l[p+1],r[d]),d++,p--;else if(s[f]===a[u])l[u]=Fe(r[f],n[u]),De(t,r[d],r[f]),f--,u++;else if(void 0===c&&(c=Pe(a,u,p),h=Pe(s,d,f)),c.has(s[d]))if(c.has(s[f])){const e=h.get(a[u]),o=void 0!==e?r[e]:null;if(null===o){const e=De(t,r[d]);Fe(e,n[u]),l[u]=e}else l[u]=Fe(o,n[u]),De(t,r[d],o),r[e]=null;u++}else Be(r[f]),f--;else Be(r[d]),d++;for(;u<=p;){const e=De(t,l[p+1]);Fe(e,n[u]),l[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&Be(t)}return this.dt=a,((t,e=Me)=>{t._$AH=e})(t,l),z}});
|
|
115
|
+
/**
|
|
116
|
+
* @license
|
|
117
|
+
* Copyright 2017 Google LLC
|
|
118
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
119
|
+
*/var ze=Object.freeze({__proto__:null,repeat:je});
|
|
120
|
+
/**
|
|
121
|
+
* @license
|
|
122
|
+
* Copyright 2018 Google LLC
|
|
123
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
124
|
+
*/const Ke=_e(class extends Ae{constructor(t){if(super(t),t.type!==Le||"class"!==t.name||t.strings?.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]){if(void 0===this.it){this.it=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]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return z}});var Ze=Object.freeze({__proto__:null,classMap:Ke});
|
|
125
|
+
/**
|
|
126
|
+
* @license
|
|
127
|
+
* Copyright 2018 Google LLC
|
|
128
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
|
+
*/const He="important",Ve=" !"+He,Ge=_e(class extends Ae{constructor(t){if(super(t),t.type!==Le||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ut.add(t);const e="string"==typeof i&&i.endsWith(Ve);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?He:""):o[t]=i}}return z}});var qe=Object.freeze({__proto__:null,styleMap:Ge});
|
|
130
|
+
/**
|
|
131
|
+
* @license
|
|
132
|
+
* Copyright 2017 Google LLC
|
|
133
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
134
|
+
*/let Ye=class extends Ae{constructor(t){if(super(t),this.et=K,t.type!==Ue)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this.vt=void 0,this.et=t;if(t===z)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ye.directiveName="unsafeHTML",Ye.resultType=1;const Je=_e(Ye);var Xe=Object.freeze({__proto__:null,UnsafeHTMLDirective:Ye,unsafeHTML:Je});class Qe extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class to extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new Qe("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new Qe("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const eo=t=>new to(((e,o)=>t.then(e).catch(o)));var oo=Object.freeze({__proto__:null,CancelablePromise:to,CanceledPromiseError:Qe,cancelable:eo});class io{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof to&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=eo(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}var ro=Object.freeze({__proto__:null,CacheRegistry:io});class no{constructor(t,e,o,i){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=i}static extractResultMetadata(t){var e,o;return(null!==(o=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==o?o:null==t?void 0:t.topic).metadata.map((t=>no.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?o.push(`... > ${t[t.length-1]}`):o.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){let o=no.extractResultMetadata(this.selectedResult).find((e=>e.key===t));const i=this.allResults.flatMap((e=>no.extractResultMetadata(e).filter((e=>e.key===t)))).filter((t=>!(t.key===(null==o?void 0:o.key)&&t.value===(null==o?void 0:o.value)))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((o,i)=>this.compareMetadata(o.metadata.value,i.metadata.value,t,e)))}compareMetadata(t,e,o,i){let r=this.metadataDescriptors.find((t=>o==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,i,{numeric:!0});return a?-1*o:o}return 0}findBestResultForMetadataValue(t,e){const o=this.allResults.filter((o=>no.extractResultMetadata(o).find((o=>o.key===t&&o.value===e))));let i,r=no.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...r.filter((e=>e.key!==t))],a=-1;for(let t of o){let e=this.countMatchingMetadata(t,n);if(e>a&&(a=e,i=t,e===n.length))break}return i}countMatchingMetadata(t,e){return no.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}var ao=Object.freeze({__proto__:null,ClusteringHelper:no});class so{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 o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}var lo=Object.freeze({__proto__:null,Debouncer:so});const co=t=>new Promise((e=>setTimeout(e,t)));async function ho(t,e=10,o=2e4){let i,r,n=await t();for(i=r=performance.now();null==n&&(!o||r-i<o);)await co(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function fo(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,o,i)=>e+o+":"+i)),new Date(t)}function uo(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 o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!uo(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!uo(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[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((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!uo(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}var po=Object.freeze({__proto__:null,dateReviver:function(...t){return function(e,o){return t.includes(e)?fo(o):o}},deepEqual:uo,delay:co,eventPathContainsMatchingElement:function(t,e,o=window.document.body){if(e.length>0){const i=t.composedPath();for(let t of i){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1},flatDeep:function t(e,o){return e.flatMap((e=>[e,...t(o(e),o)]))},last:function(t){return t[t.length-1]},minmax:function(t,e,o){return Math.min(Math.max(t,e),o)},parseDate:fo,waitFor:ho,waitUntil:async function(t,e=10,o=2e4){await ho((async()=>await t()||void 0),e,o)}});const yo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function go(t,e){const o=()=>JSON.parse(JSON.stringify(t));return Oe({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!uo(t,e),...null!=e?e:{}})}function bo(t){return!isNaN(parseFloat(t))}var vo=Object.freeze({__proto__:null,customElement:yo,isNumber:bo,jsonProperty:go,optionalNumberProperty:function(t){return Oe({type:Object,converter:{fromAttribute:t=>{if(null!=t)return bo(t)?+t:void 0},toAttribute:t=>""+t},...null!=t?t:{}})}});const mo=t=>"string"==typeof t?dt(t):t;class xo{static create(t,e,o,i){const r=t=>mo(null!=t?t:i),n=ft`var(${mo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>ft`var(${mo(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,o,i){const r=t=>o.get(null!=t?t:i),n=ft`var(${mo(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>ft`var(${mo(t)}, ${r(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):mo(null!=e?e:t.lastResortDefaultValue()),i=ft`var(${mo(t.name)}, ${o(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=o,i.get=e=>ft`var(${mo(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function wo(t,e){return mo(`${t.name}: ${e}`)}const Oo={colorWhite:xo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:xo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:xo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:xo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:xo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:xo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:xo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:xo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:xo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:xo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:xo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:xo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:xo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:xo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:xo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:xo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:xo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:xo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:xo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:xo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:xo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:xo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:xo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:xo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:xo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:xo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:xo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:xo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:xo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:xo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:xo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:xo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:xo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:xo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:xo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:xo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:xo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:xo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:xo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:xo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:xo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:xo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:xo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:xo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:xo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:xo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:xo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:xo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:xo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:xo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:xo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:xo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:xo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:xo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:xo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:xo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:xo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:xo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:xo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:xo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:xo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:xo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:xo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:xo.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:xo.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:xo.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:xo.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:xo.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:xo.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:xo.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:xo.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:xo.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:xo.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:xo.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:xo.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:xo.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:xo.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:xo.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:xo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:xo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:xo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:xo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:xo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:xo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:xo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:xo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:xo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:xo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:xo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:xo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:xo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:xo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:xo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:xo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:xo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:xo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:xo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:xo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:xo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:xo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:xo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:xo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:xo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:xo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:xo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:xo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:xo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:xo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:xo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:xo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:xo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:xo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:xo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:xo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:xo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:xo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:xo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:xo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:xo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:xo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:xo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:xo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:xo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:xo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:xo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:xo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:xo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:xo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:xo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:xo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:xo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:xo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:xo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:xo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:xo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:xo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:xo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:xo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:xo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:xo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:xo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:xo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:xo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:xo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:xo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:xo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:xo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:xo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:xo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:xo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:xo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:xo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:xo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:xo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:xo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:xo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:xo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:xo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:xo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:xo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:xo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:xo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:xo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:xo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:xo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:xo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:xo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:xo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:xo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:xo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:xo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:xo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:xo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:xo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:xo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:xo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:xo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:xo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:xo.create("--ft-opacity-0","","NUMBER","0"),opacity8:xo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:xo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:xo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:xo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:xo.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:xo.create("--ft-shadow-elevation-01","","SHADOW","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)"),shadowElevation02:xo.create("--ft-shadow-elevation-02","","SHADOW","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)"),shadowElevation03:xo.create("--ft-shadow-elevation-03","","SHADOW","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)"),shadowElevation04:xo.create("--ft-shadow-elevation-04","","SHADOW","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)"),shadowElevation06:xo.create("--ft-shadow-elevation-06","","SHADOW","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)"),shadowElevation08:xo.create("--ft-shadow-elevation-08","","SHADOW","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)"),shadowElevation12:xo.create("--ft-shadow-elevation-12","","SHADOW","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)"),shadowElevation16:xo.create("--ft-shadow-elevation-16","","SHADOW","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)"),shadowElevation24:xo.create("--ft-shadow-elevation-24","","SHADOW","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)")},So={fontFamily:xo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:xo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-display-textCase","","UNKNOWN","none")},No={fontFamily:xo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:xo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},$o={fontFamily:xo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:xo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:xo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Co={fontFamily:xo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:xo.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:xo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:xo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Eo={fontFamily:xo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ko={fontFamily:xo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Ro={fontFamily:xo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:xo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Io={fontFamily:xo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:xo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Lo={fontFamily:xo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Uo={fontFamily:xo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:xo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:xo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:xo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},_o={fontFamily:xo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Ao={fontFamily:xo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},To={fontFamily:xo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:xo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Wo={fontFamily:xo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Do={fontFamily:xo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Fo={fontFamily:xo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:xo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:xo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:xo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Mo={fontFamily:xo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Bo={fontFamily:xo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Po={fontFamily:xo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:xo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},jo={fontFamily:xo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},zo={fontFamily:xo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Ko={fontFamily:xo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:xo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Zo={fontFamily:xo.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:xo.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Ho={fontFamily:xo.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:xo.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Vo={fontFamily:xo.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:xo.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:xo.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:xo.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:xo.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:xo.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:xo.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:xo.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:xo.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Go={display:So,"title-1":No,"title-2":$o,"title-3":Co,"body-1-regular":Eo,"body-1-medium":ko,"body-1-semibold":Ro,"body-2-regular":Io,"body-2-medium":Lo,"body-2-semibold":Uo,"label-1-medium":_o,"label-1-semibold":Ao,"label-1-bold":To,"label-2-medium":Wo,"label-2-semibold":Do,"label-2-bold":Fo,"caption-1-medium":Mo,"caption-1-semibold":Bo,"caption-1-bold":Po,"caption-2-medium":jo,"caption-2-semibold":zo,"caption-2-bold":Ko,"caption-3-medium":Zo,"caption-3-semibold":Ho,"caption-3-bold":Vo},qo={backgroundActionPrimary:xo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Oo.colorBrand0),backgroundErrorPrimary:xo.extend("--ft-background-error-primary","Used as background of error components.",Oo.colorRed0),backgroundErrorSubtle:xo.extend("--ft-background-error-subtle","Used as background of subtle error components.",Oo.colorRed10),backgroundInfoPrimary:xo.extend("--ft-background-info-primary","Used as background of information components.",Oo.colorCyan200),backgroundInfoSubtle:xo.extend("--ft-background-info-subtle","Used as background of subtle information components.",Oo.colorCyan10),backgroundWarningPrimary:xo.extend("--ft-background-warning-primary","Used as background of warning components.",Oo.colorOrange300),backgroundWarningSubtle:xo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Oo.colorOrange10),backgroundSuccessPrimary:xo.extend("--ft-background-success-primary","Used as background of success components.",Oo.colorGreen200),backgroundSuccessSubtle:xo.extend("--ft-background-success-subtle","Used as background of subtle success components.",Oo.colorGreen10),backgroundGlobalSurface:xo.extend("--ft-background-global-surface","Used as app background.",Oo.colorWhite),backgroundGlobalOnSurface:xo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Oo.colorGray10),backgroundGlobalOnSurfaceDark:xo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Oo.colorGray30),contentActionPrimary:xo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Oo.colorBrand0),contentWarningPrimary:xo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Oo.colorOrange300),contentWarningIconOnly:xo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Oo.colorOrange0),contentErrorPrimary:xo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Oo.colorRed0),contentErrorIconOnly:xo.extend("--ft-content-error-icon-only","Used on error status icons alone",Oo.colorRed0),contentInfoPrimary:xo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Oo.colorCyan200),contentInfoIconOnly:xo.extend("--ft-content-info-icon-only","Used on info status icons alone",Oo.colorCyan0),contentSuccessPrimary:xo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Oo.colorGreen200),contentSuccessIconOnly:xo.extend("--ft-content-success-icon-only","Used on success status icons alone",Oo.colorGreen0),contentGlobalPrimary:xo.extend("--ft-content-global-primary","Used for main content on the page.",Oo.colorGray500),contentGlobalSecondary:xo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Oo.colorGray200),contentGlobalSubtle:xo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Oo.colorGray0),contentGlobalOnColor:xo.extend("--ft-content-global-on-color","Used for content on a dominant color.",Oo.colorWhite),borderActionPrimary:xo.extend("--ft-border-action-primary","Used as border for primary action components.",Oo.colorBrand0),borderActionFocusRing:xo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Oo.colorCyan0),borderWarningPrimary:xo.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Oo.colorOrange300),borderWarningSubtle:xo.extend("--ft-border-warning-subtle","Used as border for warning components.",Oo.colorOrange30),borderSuccessPrimary:xo.extend("--ft-border-success-primary","Used as border for success buttons.",Oo.colorGreen200),borderSuccessSubtle:xo.extend("--ft-border-success-subtle","Used as border for success components.",Oo.colorGreen30),borderErrorPrimary:xo.extend("--ft-border-error-primary","Used as border for text fields in error states.",Oo.colorRed0),borderErrorSubtle:xo.extend("--ft-border-error-subtle","Used as border for error components.",Oo.colorRed30),borderInfoPrimary:xo.extend("--ft-border-info-primary","Used as border for buttons in info color.",Oo.colorCyan200),borderInfoSubtle:xo.extend("--ft-border-info-subtle","Used as border for information components.",Oo.colorCyan30),borderGlobalPrimary:xo.extend("--ft-border-global-primary","Used as border for element like input.",Oo.colorGray50),borderGlobalSubtle:xo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Oo.colorGray30),borderInputPrimary:xo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Oo.colorGray80)},Yo={largeHeight:xo.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:xo.extend("--ft-button-large-horizontal-padding","",Oo.spacing4),largeGap:xo.extend("--ft-button-large-gap","",Oo.spacing2),largeBorderRadius:xo.extend("--ft-button-large-border-radius","",Oo.borderRadiusS),largeIconSize:xo.extend("--ft-button-large-icon-size","",Oo.iconSize3),largeBorderWidth:xo.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:xo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:xo.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:xo.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:xo.extend("--ft-button-small-horizontal-padding","",Oo.spacing3),smallGap:xo.extend("--ft-button-small-gap","",Oo.spacing2),smallBorderRadius:xo.extend("--ft-button-small-border-radius","",Oo.borderRadiusS),smallIconSize:xo.extend("--ft-button-small-icon-size","",Oo.iconSize2),smallBorderWidth:xo.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:xo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:xo.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:xo.extend("--ft-button-primary-background-color","",qo.backgroundActionPrimary),primaryColor:xo.extend("--ft-button-primary-color","",qo.contentGlobalOnColor),primaryIconColor:xo.extend("--ft-button-primary-icon-color","",qo.contentGlobalOnColor),primaryStateLayerColor:xo.extend("--ft-button-primary-state-layer-color","",qo.contentGlobalOnColor),primaryStateLayerOpacityHover:xo.extend("--ft-button-primary-state-layer-opacity-hover","",Oo.opacity16),primaryStateLayerOpacityFocus:xo.extend("--ft-button-primary-state-layer-opacity-focus","",Oo.opacity16),primaryStateLayerOpacityActive:xo.extend("--ft-button-primary-state-layer-opacity-active","",Oo.opacity24),primaryComponentOpacityDisabled:xo.extend("--ft-button-primary-component-opacity-disabled","",Oo.opacity40),focusFocusRingColor:xo.extend("--ft-button-focus-focus-ring-color","",qo.borderActionFocusRing),tertiaryBackgroundColor:xo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:xo.extend("--ft-button-tertiary-color","",qo.contentActionPrimary),tertiaryIconColor:xo.extend("--ft-button-tertiary-icon-color","",qo.contentActionPrimary),tertiaryStateLayerColor:xo.extend("--ft-button-tertiary-state-layer-color","",qo.contentActionPrimary),tertiaryStateLayerOpacityHover:xo.extend("--ft-button-tertiary-state-layer-opacity-hover","",Oo.opacity8),tertiaryStateLayerOpacityFocus:xo.extend("--ft-button-tertiary-state-layer-opacity-focus","",Oo.opacity8),tertiaryStateLayerOpacityActive:xo.extend("--ft-button-tertiary-state-layer-opacity-active","",Oo.opacity16),tertiaryComponentOpacityDisabled:xo.extend("--ft-button-tertiary-component-opacity-disabled","",Oo.opacity40),secondaryBackgroundColor:xo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:xo.extend("--ft-button-secondary-color","",qo.contentActionPrimary),secondaryIconColor:xo.extend("--ft-button-secondary-icon-color","",qo.contentActionPrimary),secondaryStateLayerColor:xo.extend("--ft-button-secondary-state-layer-color","",qo.contentActionPrimary),secondaryStateLayerOpacityHover:xo.extend("--ft-button-secondary-state-layer-opacity-hover","",Oo.opacity8),secondaryStateLayerOpacityFocus:xo.extend("--ft-button-secondary-state-layer-opacity-focus","",Oo.opacity8),secondaryStateLayerOpacityActive:xo.extend("--ft-button-secondary-state-layer-opacity-active","",Oo.opacity16),secondaryComponentOpacityDisabled:xo.extend("--ft-button-secondary-component-opacity-disabled","",Oo.opacity40),secondaryBorderColor:xo.extend("--ft-button-secondary-border-color","",qo.borderActionPrimary),neutralBackgroundColor:xo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:xo.extend("--ft-button-neutral-icon-color","",qo.contentGlobalSecondary),neutralColor:xo.extend("--ft-button-neutral-color","",qo.contentGlobalSecondary),neutralStateLayerColor:xo.extend("--ft-button-neutral-state-layer-color","",qo.contentGlobalSecondary),neutralStateLayerOpacityHover:xo.extend("--ft-button-neutral-state-layer-opacity-hover","",Oo.opacity8),neutralStateLayerOpacityFocus:xo.extend("--ft-button-neutral-state-layer-opacity-focus","",Oo.opacity8),neutralStateLayerOpacityActive:xo.extend("--ft-button-neutral-state-layer-opacity-active","",Oo.opacity16),neutralComponentOpacityDisabled:xo.extend("--ft-button-neutral-component-opacity-disabled","",Oo.opacity40)},Jo={horizontalPadding:xo.extend("--ft-floating-menu-horizontal-padding","",Oo.spacing4),verticalPadding:xo.extend("--ft-floating-menu-vertical-padding","",Oo.spacing4),offIconColor:xo.extend("--ft-floating-menu-off-icon-color","",qo.contentGlobalPrimary),offColor:xo.extend("--ft-floating-menu-off-color","",qo.contentGlobalPrimary),onColor:xo.extend("--ft-floating-menu-on-color","",qo.contentActionPrimary),onIconColor:xo.extend("--ft-floating-menu-on-icon-color","",qo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-floating-menu-on-state-layer-color","",qo.contentActionPrimary),gap:xo.extend("--ft-floating-menu-gap","",Oo.spacing3),focusFocusRingColor:xo.extend("--ft-floating-menu-focus-focus-ring-color","",qo.borderActionFocusRing),focusOutlineWidth:xo.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),stateLayerOpacityHover:xo.extend("--ft-floating-menu-state-layer-opacity-hover","",Oo.opacity8),stateLayerOpacityActive:xo.extend("--ft-floating-menu-state-layer-opacity-active","",Oo.opacity16),stateLayerOpacityFocus:xo.extend("--ft-floating-menu-state-layer-opacity-focus","",Oo.opacity8),componentOpacityDisabled:xo.extend("--ft-floating-menu-component-opacity-disabled","",Oo.opacity40),iconSize:xo.extend("--ft-floating-menu-icon-size","",Oo.iconSize3),backgroundColor:xo.extend("--ft-floating-menu-background-color","",qo.backgroundGlobalOnSurface)},Xo={topLeftBorderRadius:xo.extend("--ft-tabs-top-left-border-radius","",Oo.borderRadiusS),topRightBorderRadius:xo.extend("--ft-tabs-top-right-border-radius","",Oo.borderRadiusS),labelHorizontalPadding:xo.extend("--ft-tabs-label-horizontal-padding","",Oo.spacing4),labelVerticalPadding:xo.extend("--ft-tabs-label-vertical-padding","",Oo.spacing3),labelGap:xo.extend("--ft-tabs-label-gap","",Oo.spacing1),iconHorizontalPadding:xo.extend("--ft-tabs-icon-horizontal-padding","",Oo.spacing1),iconVerticalPadding:xo.extend("--ft-tabs-icon-vertical-padding","",Oo.spacing4),focusOutlineWidth:xo.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-tabs-focus-focus-ring-color","",qo.borderActionFocusRing),offStateLayerOpacityHover:xo.extend("--ft-tabs-off-state-layer-opacity-hover","",Oo.opacity8),offStateLayerOpacityFocus:xo.extend("--ft-tabs-off-state-layer-opacity-focus","",Oo.opacity8),offStateLayerOpacityActive:xo.extend("--ft-tabs-off-state-layer-opacity-active","",Oo.opacity16),offComponentOpacityDisabled:xo.extend("--ft-tabs-off-component-opacity-disabled","",Oo.opacity40),offColor:xo.extend("--ft-tabs-off-color","",qo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-tabs-off-state-layer-color","",qo.contentGlobalSubtle),onStateLayerOpacityHover:xo.extend("--ft-tabs-on-state-layer-opacity-hover","",Oo.opacity8),onStateLayerOpacityFocus:xo.extend("--ft-tabs-on-state-layer-opacity-focus","",Oo.opacity8),onStateLayerOpacityActive:xo.extend("--ft-tabs-on-state-layer-opacity-active","",Oo.opacity16),onComponentOpacityDisabled:xo.extend("--ft-tabs-on-component-opacity-disabled","",Oo.opacity40),onColor:xo.extend("--ft-tabs-on-color","",qo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-tabs-on-state-layer-color","",qo.contentActionPrimary)},Qo={stateLayerOpacityHover:xo.extend("--ft-collapsible-state-layer-opacity-hover","",Oo.opacity8),stateLayerOpacityFocus:xo.extend("--ft-collapsible-state-layer-opacity-focus","",Oo.opacity8),stateLayerOpacityActive:xo.extend("--ft-collapsible-state-layer-opacity-active","",Oo.opacity16),componentOpacityDisabled:xo.extend("--ft-collapsible-component-opacity-disabled","",Oo.opacity40),horizontalPadding:xo.extend("--ft-collapsible-horizontal-padding","",Oo.spacing4),verticalPadding:xo.extend("--ft-collapsible-vertical-padding","",Oo.spacing3),focusOutlineWidth:xo.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:xo.extend("--ft-collapsible-focus-focus-ring-color","",qo.borderActionFocusRing),color:xo.extend("--ft-collapsible-color","",qo.contentGlobalPrimary),stateLayerColor:xo.extend("--ft-collapsible-state-layer-color","",qo.contentGlobalPrimary),backgroundColor:xo.extend("--ft-collapsible-background-color","",qo.backgroundGlobalOnSurface),borderColor:xo.extend("--ft-collapsible-border-color","",qo.borderGlobalSubtle),iconSize:xo.extend("--ft-collapsible-icon-size","",Oo.iconSize3)},ti={groupHorizontalPadding:xo.extend("--ft-switch-group-horizontal-padding","",Oo.spacing1),groupVerticalPadding:xo.extend("--ft-switch-group-vertical-padding","",Oo.spacing1),groupGap:xo.extend("--ft-switch-group-gap","",Oo.spacing1),groupBackgroundColor:xo.extend("--ft-switch-group-background-color","",qo.backgroundGlobalSurface),groupBorderColor:xo.extend("--ft-switch-group-border-color","",qo.borderGlobalSubtle),groupBorderRadius:xo.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:xo.extend("--ft-switch-label-horizontal-padding","",Oo.spacing2),labelVerticalPadding:xo.extend("--ft-switch-label-vertical-padding","",Oo.spacing1),iconHorizontalPadding:xo.extend("--ft-switch-icon-horizontal-padding","",Oo.spacing1),iconVerticalPadding:xo.extend("--ft-switch-icon-vertical-padding","",Oo.spacing1),focusOutlineWidth:xo.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:xo.extend("--ft-switch-focus-focus-ring-color","",qo.borderActionFocusRing),optionBorderRadius:xo.extend("--ft-switch-option-border-radius","",Oo.borderRadiusS),offStateLayerOpacityHover:xo.extend("--ft-switch-off-state-layer-opacity-hover","",Oo.opacity8),offStateLayerOpacityFocus:xo.extend("--ft-switch-off-state-layer-opacity-focus","",Oo.opacity8),offStateLayerOpacityActive:xo.extend("--ft-switch-off-state-layer-opacity-active","",Oo.opacity16),offComponentOpacityDisabled:xo.extend("--ft-switch-off-component-opacity-disabled","",Oo.opacity40),offColor:xo.extend("--ft-switch-off-color","",qo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-switch-off-state-layer-color","",qo.contentGlobalSubtle),onStateLayerOpacityHover:xo.extend("--ft-switch-on-state-layer-opacity-hover","",Oo.opacity8),onStateLayerOpacityFocus:xo.extend("--ft-switch-on-state-layer-opacity-focus","",Oo.opacity8),onStateLayerOpacityActive:xo.extend("--ft-switch-on-state-layer-opacity-active","",Oo.opacity16),onComponentOpacityDisabled:xo.extend("--ft-switch-on-component-opacity-disabled","",Oo.opacity40),onColor:xo.extend("--ft-switch-on-color","",qo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-switch-on-state-layer-color","",qo.contentActionPrimary)},ei={color1Light:xo.extend("--ft-chart-1-light","for area color charts",Oo.colorBrand40),color1Base:xo.extend("--ft-chart-1-base","for line charts",Oo.colorBrand0),color2Light:xo.extend("--ft-chart-2-light","for area color charts",Oo.colorYellow60),color2Base:xo.extend("--ft-chart-2-base","for line charts",Oo.colorYellow100),color3Light:xo.extend("--ft-chart-3-light","",Oo.colorUltramarine40),color3Base:xo.extend("--ft-chart-3-base","",Oo.colorUltramarine70),color4Light:xo.extend("--ft-chart-4-light","",Oo.colorCyan50),color4Base:xo.extend("--ft-chart-4-base","",Oo.colorCyan100),color5Light:xo.extend("--ft-chart-5-light","",Oo.colorRed40),color5Base:xo.extend("--ft-chart-5-base","",Oo.colorRed60),color6Light:xo.extend("--ft-chart-6-light","",Oo.colorGreen40),color6Base:xo.extend("--ft-chart-6-base","",Oo.colorGreen70),color7Light:xo.extend("--ft-chart-7-light","",Oo.colorOrange70),color7Base:xo.extend("--ft-chart-7-base","",Oo.colorOrange100),color8Light:xo.extend("--ft-chart-8-light","",Oo.colorAvocado70),color8Base:xo.extend("--ft-chart-8-base","",Oo.colorAvocado200),color9Light:xo.extend("--ft-chart-9-light","",Oo.colorBrown50),color9Base:xo.extend("--ft-chart-9-base","",Oo.colorBrown200),color10Light:xo.extend("--ft-chart-10-light","",Oo.colorGray50),color10Base:xo.extend("--ft-chart-10-base","",Oo.colorGray80),monochrome10:xo.extend("--ft-chart-monochrome-10","",Oo.colorBrand10),monochrome20:xo.extend("--ft-chart-monochrome-20","",Oo.colorBrand20),monochrome30:xo.extend("--ft-chart-monochrome-30","",Oo.colorBrand40),monochrome40:xo.extend("--ft-chart-monochrome-40","",Oo.colorBrand60),monochrome50:xo.extend("--ft-chart-monochrome-50","",Oo.colorBrand0),monochrome60:xo.extend("--ft-chart-monochrome-60","",Oo.colorBrand200)},oi={largeHorizontalPadding:xo.extend("--ft-chip-large-horizontal-padding","",Oo.spacing4),largeVerticalPadding:xo.extend("--ft-chip-large-vertical-padding","",Oo.spacing2),largeGap:xo.extend("--ft-chip-large-gap","",Oo.spacing1),largeFocusOutlineOffset:xo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:xo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:xo.extend("--ft-chip-large-border-radius","",Oo.borderRadiusPill),largeBorderWidth:xo.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:xo.extend("--ft-chip-large-icon-size","",Oo.iconSize3),mediumHorizontalPadding:xo.extend("--ft-chip-medium-horizontal-padding","",Oo.spacing3),mediumVerticalPadding:xo.extend("--ft-chip-medium-vertical-padding","",Oo.spacing1),mediumGap:xo.extend("--ft-chip-medium-gap","",Oo.spacing1),mediumFocusOutlineOffset:xo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:xo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:xo.extend("--ft-chip-medium-border-radius","",Oo.borderRadiusPill),mediumBorderWidth:xo.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:xo.extend("--ft-chip-medium-icon-size","",Oo.iconSize2),smallHorizontalPadding:xo.extend("--ft-chip-small-horizontal-padding","",Oo.spacing2),smallVerticalPadding:xo.extend("--ft-chip-small-vertical-padding","",Oo.spacing05),smallGap:xo.extend("--ft-chip-small-gap","",Oo.spacing1),smallFocusOutlineOffset:xo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:xo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:xo.extend("--ft-chip-small-border-radius","",Oo.borderRadiusPill),smallBorderWidth:xo.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:xo.extend("--ft-chip-small-icon-size","",Oo.iconSize1),neutralBackgroundColor:xo.extend("--ft-chip-neutral-background-color","",qo.backgroundGlobalOnSurface),neutralColor:xo.extend("--ft-chip-neutral-color","",qo.contentGlobalPrimary),neutralBorderColor:xo.extend("--ft-chip-neutral-border-color","",qo.borderGlobalSubtle),infoBackgroundColor:xo.extend("--ft-chip-info-background-color","",qo.backgroundInfoSubtle),infoColor:xo.extend("--ft-chip-info-color","",qo.contentInfoPrimary),infoBorderColor:xo.extend("--ft-chip-info-border-color","",qo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-chip-success-background-color","",qo.backgroundSuccessSubtle),successColor:xo.extend("--ft-chip-success-color","",qo.contentSuccessPrimary),successBorderColor:xo.extend("--ft-chip-success-border-color","",qo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-chip-warning-background-color","",qo.backgroundWarningSubtle),warningColor:xo.extend("--ft-chip-warning-color","",qo.contentWarningPrimary),warningBorderColor:xo.extend("--ft-chip-warning-border-color","",qo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-chip-error-background-color","",qo.backgroundErrorSubtle),errorColor:xo.extend("--ft-chip-error-color","",qo.contentErrorPrimary),errorBorderColor:xo.extend("--ft-chip-error-border-color","",qo.borderErrorSubtle)},ii={borderWidth:xo.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:xo.extend("--ft-notice-horizontal-padding","",Oo.spacing2),verticalPadding:xo.extend("--ft-notice-vertical-padding","",Oo.spacing1),borderRadius:xo.extend("--ft-notice-border-radius","",Oo.borderRadiusS),gap:xo.extend("--ft-notice-gap","",Oo.spacing2),iconSize:xo.extend("--ft-notice-icon-size","",Oo.iconSize3),infoBackgroundColor:xo.extend("--ft-notice-info-background-color","",qo.backgroundInfoSubtle),infoBorderColor:xo.extend("--ft-notice-info-border-color","",qo.borderInfoSubtle),infoColor:xo.extend("--ft-notice-info-color","",qo.contentInfoPrimary),warningBackgroundColor:xo.extend("--ft-notice-warning-background-color","",qo.backgroundWarningSubtle),warningBorderColor:xo.extend("--ft-notice-warning-border-color","",qo.borderWarningSubtle),warningColor:xo.extend("--ft-notice-warning-color","",qo.contentWarningPrimary)},ri={labelColor:xo.extend("--ft-checkbox-label-color","",qo.contentGlobalPrimary),checkedBackgroundColor:xo.extend("--ft-checkbox-checked-background-color","",qo.contentActionPrimary),checkedStateLayerColor:xo.extend("--ft-checkbox-checked-state-layer-color","",qo.contentActionPrimary),checkedColor:xo.extend("--ft-checkbox-checked-color","",qo.contentGlobalOnColor),checkedStateLayerOpacityHover:xo.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Oo.opacity16),checkedStateLayerOpacityFocus:xo.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Oo.opacity16),checkedStateLayerOpacityActive:xo.extend("--ft-checkbox-checked-state-layer-opacity-active","",Oo.opacity24),checkedComponentOpacityDisabled:xo.extend("--ft-checkbox-checked-component-opacity-disabled","",Oo.opacity40),uncheckedBorderColor:xo.extend("--ft-checkbox-unchecked-border-color","",Oo.colorGray80),uncheckedStateLayerColor:xo.extend("--ft-checkbox-unchecked-state-layer-color","",Oo.colorGray80),uncheckedStateLayerOpacityHover:xo.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Oo.opacity16),uncheckedStateLayerOpacityFocus:xo.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Oo.opacity16),uncheckedStateLayerOpacityActive:xo.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Oo.opacity24),uncheckedComponentOpacityDisabled:xo.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Oo.opacity40),focusFocusRingColor:xo.extend("--ft-checkbox-focus-focus-ring-color","",qo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-checkbox-gap","",Oo.spacing3)},ni={offStateLayerOpacityHover:xo.extend("--ft-toggle-off-state-layer-opacity-hover","",Oo.opacity16),offStateLayerOpacityFocus:xo.extend("--ft-toggle-off-state-layer-opacity-focus","",Oo.opacity16),offStateLayerOpacityActive:xo.extend("--ft-toggle-off-state-layer-opacity-active","",Oo.opacity24),offComponentOpacityDisabled:xo.extend("--ft-toggle-off-component-opacity-disabled","",Oo.opacity40),offBackgroundColor:xo.extend("--ft-toggle-off-background-color","",qo.contentGlobalSubtle),offIconColor:xo.extend("--ft-toggle-off-icon-color","",qo.contentGlobalSubtle),offStateLayerColor:xo.extend("--ft-toggle-off-state-layer-color","",qo.contentGlobalSubtle),onStateLayerOpacityHover:xo.extend("--ft-toggle-on-state-layer-opacity-hover","",Oo.opacity16),onStateLayerOpacityFocus:xo.extend("--ft-toggle-on-state-layer-opacity-focus","",Oo.opacity16),onStateLayerOpacityActive:xo.extend("--ft-toggle-on-state-layer-opacity-active","",Oo.opacity24),onComponentOpacityDisabled:xo.extend("--ft-toggle-on-component-opacity-disabled","",Oo.opacity40),onBackgroundColor:xo.extend("--ft-toggle-on-background-color","",qo.contentActionPrimary),onIconColor:xo.extend("--ft-toggle-on-icon-color","",qo.contentActionPrimary),onStateLayerColor:xo.extend("--ft-toggle-on-state-layer-color","",qo.contentActionPrimary),labelColor:xo.extend("--ft-toggle-label-color","",qo.contentGlobalPrimary),focusFocusRingColor:xo.extend("--ft-toggle-focus-focus-ring-color","",qo.borderActionFocusRing),gap:xo.extend("--ft-toggle-gap","",Oo.spacing3)},ai={labelColor:xo.extend("--ft-radio-label-color","",qo.contentGlobalPrimary),selectedColor:xo.extend("--ft-radio-selected-color","",qo.contentActionPrimary),selectedStateLayerColor:xo.extend("--ft-radio-selected-state-layer-color","",qo.contentActionPrimary),selectedStateLayerOpacityHover:xo.extend("--ft-radio-selected-state-layer-opacity-hover","",Oo.opacity16),selectedStateLayerOpacityFocus:xo.extend("--ft-radio-selected-state-layer-opacity-focus","",Oo.opacity16),selectedStateLayerOpacityActive:xo.extend("--ft-radio-selected-state-layer-opacity-active","",Oo.opacity24),selectedComponentOpacityDisabled:xo.extend("--ft-radio-selected-component-opacity-disabled","",Oo.opacity40),unselectedStateLayerColor:xo.extend("--ft-radio-unselected-state-layer-color","",Oo.colorGray80),unselectedStateLayerOpacityHover:xo.extend("--ft-radio-unselected-state-layer-opacity-hover","",Oo.opacity16),unselectedStateLayerOpacityFocus:xo.extend("--ft-radio-unselected-state-layer-opacity-focus","",Oo.opacity16),unselectedStateLayerOpacityActive:xo.extend("--ft-radio-unselected-state-layer-opacity-active","",Oo.opacity24),unselectedComponentOpacityDisabled:xo.extend("--ft-radio-unselected-component-opacity-disabled","",Oo.opacity40),focusFocusRingColor:xo.extend("--ft-radio-focus-focus-ring-color","",qo.borderActionFocusRing),focusOutlineOffset:xo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:xo.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:xo.extend("--ft-radio-gap","",Oo.spacing3)},si={iconSize:xo.extend("--ft-notification-icon-size","",Oo.iconSize4),horizontalPadding:xo.extend("--ft-notification-horizontal-padding","",Oo.spacing4),verticalPadding:xo.extend("--ft-notification-vertical-padding","",Oo.spacing4),infoBackgroundColor:xo.extend("--ft-notification-info-background-color","",qo.backgroundInfoSubtle),infoColor:xo.extend("--ft-notification-info-color","",qo.contentInfoPrimary),infoBorderColor:xo.extend("--ft-notification-info-border-color","",qo.borderInfoSubtle),successBackgroundColor:xo.extend("--ft-notification-success-background-color","",qo.backgroundSuccessSubtle),successColor:xo.extend("--ft-notification-success-color","",qo.contentSuccessPrimary),successBorderColor:xo.extend("--ft-notification-success-border-color","",qo.borderSuccessSubtle),warningBackgroundColor:xo.extend("--ft-notification-warning-background-color","",qo.backgroundWarningSubtle),warningColor:xo.extend("--ft-notification-warning-color","",qo.contentWarningPrimary),warningBorderColor:xo.extend("--ft-notification-warning-border-color","",qo.borderWarningSubtle),errorBackgroundColor:xo.extend("--ft-notification-error-background-color","",qo.backgroundErrorSubtle),errorColor:xo.extend("--ft-notification-error-color","",qo.contentErrorPrimary),errorBorderColor:xo.extend("--ft-notification-error-border-color","",qo.borderErrorSubtle),borderRadius:xo.extend("--ft-notification-border-radius","",Oo.borderRadiusPill),borderWidth:xo.create("--ft-notification-border-width","","SIZE","1px"),gapLeading:xo.extend("--ft-notification-gap-leading","",Oo.spacing2),gapTrailing:xo.extend("--ft-notification-gap-trailing","",Oo.spacing8)},li={horizontalPadding:xo.extend("--ft-tooltip-horizontal-padding","",Oo.spacing2),verticalPadding:xo.extend("--ft-tooltip-vertical-padding","",Oo.spacing2),borderRadius:xo.extend("--ft-tooltip-border-radius","",Oo.borderRadiusS),label:xo.extend("--ft-tooltip-label","",qo.contentGlobalOnColor),background:xo.extend("--ft-tooltip-background","",qo.contentGlobalPrimary),backgroundOpacity:xo.extend("--ft-tooltip-background-opacity","",Oo.opacity80),shadow:xo.extend("--ft-tooltip-shadow","",Oo.shadowElevation03)};var ci=Object.freeze({__proto__:null,FtCssVariableFactory:xo,button:Yo,chart:ei,checkbox:ri,chip:oi,collapsible:Qo,floatingMenu:Jo,foundation:Oo,notice:ii,notification:si,radio:ai,semantic:qo,setVariable:wo,switch_:ti,tabs:Xo,toggle:ni,tooltip:li,typographies:Go,typographyBody1Medium:ko,typographyBody1Regular:Eo,typographyBody1Semibold:Ro,typographyBody2Medium:Lo,typographyBody2Regular:Io,typographyBody2Semibold:Uo,typographyCaption1Bold:Po,typographyCaption1Medium:Mo,typographyCaption1Semibold:Bo,typographyCaption2Bold:Ko,typographyCaption2Medium:jo,typographyCaption2Semibold:zo,typographyCaption3Bold:Vo,typographyCaption3Medium:Zo,typographyCaption3Semibold:Ho,typographyDisplay:So,typographyLabel1Bold:To,typographyLabel1Medium:_o,typographyLabel1Semibold:Ao,typographyLabel2Bold:Fo,typographyLabel2Medium:Wo,typographyLabel2Semibold:Do,typographyTitle1:No,typographyTitle2:$o,typographyTitle3:Co,typographyVariants:["display","title-1","title-2","title-3","body-1","body-2","label-1","label-2","caption-1","caption-2","caption-3"]});const hi={colorPrimary:xo.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:xo.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:xo.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:xo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:xo.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:xo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xo.create("--ft-color-error","","COLOR","#B00020"),colorOutline:xo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xo.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:xo.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:xo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:xo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:xo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:xo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:xo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:xo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:xo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:xo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:xo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:xo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:xo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:xo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:xo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:xo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.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:xo.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:xo.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:xo.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:xo.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:xo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xo.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:xo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var di=Object.freeze({__proto__:null,designSystemVariables:hi});class fi extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class ui extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class pi extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}var yi=Object.freeze({__proto__:null,FtNotificationEvent:fi,PostResizeEvent:pi,PreResizeEvent:ui});const gi=["start","end"],bi=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+gi[0],e+"-"+gi[1])),[]),vi=Math.min,mi=Math.max,xi=Math.round,wi=t=>({x:t,y:t}),Oi={left:"right",right:"left",bottom:"top",top:"bottom"},Si={start:"end",end:"start"};function Ni(t,e,o){return mi(t,vi(e,o))}function $i(t,e){return"function"==typeof t?t(e):t}function Ci(t){return t.split("-")[0]}function Ei(t){return t.split("-")[1]}function ki(t){return"x"===t?"y":"x"}function Ri(t){return"y"===t?"height":"width"}function Ii(t){return["top","bottom"].includes(Ci(t))?"y":"x"}function Li(t){return ki(Ii(t))}function Ui(t){return t.replace(/left|right|bottom|top/g,(t=>Oi[t]))}function _i(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ai(t,e,o){let{reference:i,floating:r}=t;const n=Ii(e),a=Li(e),s=Ri(a),l=Ci(e),c="y"===n,h=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,f=i[s]/2-r[s]/2;let u;switch(l){case"top":u={x:h,y:i.y-r.height};break;case"bottom":u={x:h,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:d};break;case"left":u={x:i.x-r.width,y:d};break;default:u={x:i.x,y:i.y}}switch(Ei(e)){case"start":u[a]-=f*(o&&c?-1:1);break;case"end":u[a]+=f*(o&&c?-1:1)}return u}async function Ti(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:f=!1,padding:u=0}=$i(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[f?"floating"===d?"reference":"floating":d],g=_i(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:h,strategy:l})),b="floating"===d?{...a.floating,x:i,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=_i(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function Wi(t,e,o){return(t?[...o.filter((e=>Ei(e)===t)),...o.filter((e=>Ei(e)!==t))]:o.filter((t=>Ci(t)===t))).filter((o=>!t||(Ei(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Si[t]))}(o)!==o)))}const Di=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:h=!1,alignment:d,allowedPlacements:f=bi,autoAlignment:u=!0,...p}=$i(t,e),y=void 0!==d||f===bi?Wi(d||null,u,f):f,g=await Ti(e,p),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,o){void 0===o&&(o=!1);const i=Ei(t),r=Li(t),n=Ri(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Ui(a)),[a,Ui(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ci(v)],g[m[0]],g[m[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ei(t.placement);return[t.placement,e&&h?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,Ei(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:w},reset:{placement:$}}:{}}}};function Fi(t){return Pi(t)?(t.nodeName||"").toLowerCase():"#document"}function Mi(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Bi(t){var e;return null==(e=(Pi(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Pi(t){return t instanceof Node||t instanceof Mi(t).Node}function ji(t){return t instanceof Element||t instanceof Mi(t).Element}function zi(t){return t instanceof HTMLElement||t instanceof Mi(t).HTMLElement}function Ki(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Mi(t).ShadowRoot)}function Zi(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Yi(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Hi(t){return["table","td","th"].includes(Fi(t))}function Vi(t){const e=Gi(),o=Yi(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Gi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qi(t){return["html","body","#document"].includes(Fi(t))}function Yi(t){return Mi(t).getComputedStyle(t)}function Ji(t){return ji(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xi(t){if("html"===Fi(t))return t;const e=t.assignedSlot||t.parentNode||Ki(t)&&t.host||Bi(t);return Ki(e)?e.host:e}function Qi(t){const e=Xi(t);return qi(e)?t.ownerDocument?t.ownerDocument.body:t.body:zi(e)&&Zi(e)?e:Qi(e)}function tr(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Qi(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Mi(r);return n?e.concat(a,a.visualViewport||[],Zi(r)?r:[],a.frameElement&&o?tr(a.frameElement):[]):e.concat(r,tr(r,[],o))}function er(t){const e=Yi(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=zi(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=xi(o)!==n||xi(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function or(t){return ji(t)?t:t.contextElement}function ir(t){const e=or(t);if(!zi(e))return wi(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=er(e);let a=(n?xi(o.width):o.width)/i,s=(n?xi(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const rr=wi(0);function nr(t){const e=Mi(t);return Gi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:rr}function ar(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=or(t);let a=wi(1);e&&(i?ji(i)&&(a=ir(i)):a=ir(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Mi(t))&&e}(n,o,i)?nr(n):wi(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,h=r.width/a.x,d=r.height/a.y;if(n){const t=Mi(n),e=i&&ji(i)?Mi(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=ir(o),e=o.getBoundingClientRect(),i=Yi(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,h*=t.x,d*=t.y,l+=r,c+=n,o=Mi(o).frameElement}}return _i({width:h,height:d,x:l,y:c})}function sr(t){return ar(Bi(t)).left+Ji(t).scrollLeft}function lr(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Mi(t),i=Bi(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Gi();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Bi(t),o=Ji(t),i=t.ownerDocument.body,r=mi(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=mi(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+sr(t);const s=-o.scrollTop;return"rtl"===Yi(i).direction&&(a+=mi(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Bi(t));else if(ji(e))i=function(t,e){const o=ar(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=zi(t)?ir(t):wi(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=nr(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return _i(i)}function cr(t,e){const o=Xi(t);return!(o===e||!ji(o)||qi(o))&&("fixed"===Yi(o).position||cr(o,e))}function hr(t,e,o){const i=zi(e),r=Bi(e),n="fixed"===o,a=ar(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=wi(0);if(i||!i&&!n)if(("body"!==Fi(e)||Zi(r))&&(s=Ji(e)),i){const t=ar(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=sr(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function dr(t,e){return zi(t)&&"fixed"!==Yi(t).position?e?e(t):t.offsetParent:null}function fr(t,e){const o=Mi(t);if(!zi(t))return o;let i=dr(t,e);for(;i&&Hi(i)&&"static"===Yi(i).position;)i=dr(i,e);return i&&("html"===Fi(i)||"body"===Fi(i)&&"static"===Yi(i).position&&!Vi(i))?o:i||function(t){let e=Xi(t);for(;zi(e)&&!qi(e);){if(Vi(e))return e;e=Xi(e)}return null}(t)||o}const ur={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=zi(o),n=Bi(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=wi(1);const l=wi(0);if((r||!r&&"fixed"!==i)&&(("body"!==Fi(o)||Zi(n))&&(a=Ji(o)),zi(o))){const t=ar(o);s=ir(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Bi,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=tr(t,[],!1).filter((t=>ji(t)&&"body"!==Fi(t))),r=null;const n="fixed"===Yi(t).position;let a=n?Xi(t):t;for(;ji(a)&&!qi(a);){const e=Yi(a),o=Vi(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Zi(a)&&!o&&cr(t,a))?i=i.filter((t=>t!==a)):r=e,a=Xi(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=lr(e,o,r);return t.top=mi(i.top,t.top),t.right=vi(i.right,t.right),t.bottom=vi(i.bottom,t.bottom),t.left=mi(i.left,t.left),t}),lr(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:fr,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||fr,n=this.getDimensions;return{reference:hr(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return er(t)},getScale:ir,isElement:ji,isRTL:function(t){return"rtl"===Yi(t).direction}},pr=(t,e,o)=>{const i=new Map,r={platform:ur,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:d}=Ai(c,i,l),f=i,u={},p=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:v,reset:m}=await y({x:h,y:d,initialPlacement:i,placement:f,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});h=null!=g?g:h,d=null!=b?b:d,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(f=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:h,y:d}=Ai(c,f,l))),o=-1)}return{x:h,y:d,placement:f,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function yr(t){return function(t){for(let e=t;e;e=gr(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=gr(t);e;e=gr(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function gr(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}async function br(t,e,o){return pr(t,e,{platform:{...ur,getOffsetParent:t=>ur.getOffsetParent(t,yr)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=$i(i,t),c={x:e,y:o},h=await Ti(t,l),d=Ii(Ci(r)),f=ki(d);let u=c[f],p=c[d];if(n){const t="y"===f?"bottom":"right";u=Ni(u+h["y"===f?"top":"left"],u,u-h[t])}if(a){const t="y"===d?"bottom":"right";p=Ni(p+h["y"===d?"top":"left"],p,p-h[t])}const y=s.fn({...t,[f]:u,[d]:p});return{...y,data:{x:y.x-e,y:y.y-o}}}}),Di({allowedPlacements:[o]})]});var i}var vr=Object.freeze({__proto__:null,computeOffsetPosition:br});
|
|
91
135
|
/**
|
|
92
136
|
* @license
|
|
93
137
|
* Copyright 2019 Google LLC
|
|
94
138
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/
|
|
96
|
-
const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class zi extends Ee{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Pi?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Fi.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Bi,ji=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Ki=Symbol("constructorPrototype"),Zi=Symbol("constructorName"),Hi=Symbol("exportpartsDebouncer");class Gi extends zi{constructor(){super(),this[Bi]=new n(5),this[Zi]=this.constructor.name,this[Ki]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zi]&&Object.setPrototypeOf(this,this[Ki])}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.insertCustomStylesheet(),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}insertCustomStylesheet(){var t,e;if((null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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(){var t,e,i;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(i=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==i&&i)&&this[Hi].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=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!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Bi=Hi,ji([I()],Gi.prototype,"exportpartsPrefix",void 0),ji([F([])],Gi.prototype,"exportpartsPrefixes",void 0),ji([I()],Gi.prototype,"customStylesheet",void 0);const Vi=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
|
|
139
|
+
*/const mr=window,xr=mr.ShadowRoot&&(void 0===mr.ShadyCSS||mr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class wr extends be{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{xr?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=mr.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Or,Sr=Object.freeze({__proto__:null,ScopedRegistryLitElement:wr}),Nr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const $r=Symbol("constructorPrototype"),Cr=Symbol("constructorName"),Er=Symbol("exportpartsDebouncer");class kr extends wr{constructor(){super(),this[Or]=new so(5),this[Cr]=this.constructor.name,this[$r]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Cr]&&Object.setPrototypeOf(this,this[$r])}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.insertCustomStylesheet(),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}insertCustomStylesheet(){var t,e;if((null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[Er].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Or=Er,Nr([Oe()],kr.prototype,"exportpartsPrefix",void 0),Nr([go([])],kr.prototype,"exportpartsPrefixes",void 0),Nr([Oe()],kr.prototype,"customStylesheet",void 0);var Rr=Object.freeze({__proto__:null,FtLitElement:kr}),Ir=Object.freeze({__proto__:null});class Lr{constructor(t,e=!0,o=[],i=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=i}static matches(t,e){const o="string"==typeof e?[e]:e,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(i){let e=!1;return o.every((o=>!i.call(t,o)||(e=!0,!1))),e}return!1}getContexts(){let t,e=[];return t=void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[],t.forEach((t=>{const o=e.filter((e=>e.contains(t))).length>0;-1!==e.indexOf(t)||o||e.push(t)})),e}getIframeContents(t,e,o=(()=>{})){let i;try{const e=t.contentWindow;if(i=e.document,!e||!i)throw new Error("iframe inaccessible")}catch(t){o()}i&&e(i)}isIframeBlank(t){const e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let i=!1,r=null;const n=()=>{if(!i){i=!0,clearTimeout(r);try{this.isIframeBlank(t)||(t.removeEventListener("load",n),this.getIframeContents(t,e,o))}catch(t){o()}}};t.addEventListener("load",n),r=setTimeout(n,this.iframesTimeout)}onIframeReady(t,e,o){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch(t){o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,(()=>!0),(t=>{o++,this.waitForIframes(t.querySelector("html"),(()=>{--o||e()}))}),(t=>{t||e()}))}forEachIframe(t,e,o,i=(()=>{})){let r=t.querySelectorAll("iframe"),n=r.length,a=0;r=Array.prototype.slice.call(r);const s=()=>{--n<=0&&i(a)};n||s(),r.forEach((t=>{Lr.matches(t,this.exclude)?s():this.onIframeReady(t,(i=>{e(t)&&(a++,o(i)),s()}),s)}))}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new Lr(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){if(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}getIteratorNode(t){const e=t.previousNode();let o;return o=(null===e||t.nextNode())&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,i){let r=!1,n=!1;return i.forEach(((t,e)=>{t.val===o&&(r=e,n=t.handled)})),this.compareNodeIframe(t,e,o)?(!1!==r||n?!1===r||n||(i[r].handled=!0):i.push({val:o,handled:!0}),!0):(!1===r&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,i){t.forEach((t=>{t.handled||this.getIframeContents(t.val,(t=>{this.createInstanceOnIframe(t).forEachNode(e,o,i)}))}))}iterateThroughNodes(t,e,o,i,r){const n=this.createIterator(e,t,i);let a,s,l=[],c=[],h=()=>(({prevNode:s,node:a}=this.getIteratorNode(n)),a);for(;h();)this.iframes&&this.forEachIframe(e,(t=>this.checkIframeFilter(a,s,t,l)),(e=>{this.createInstanceOnIframe(e).forEachNode(t,(t=>c.push(t)),i)})),c.push(a);c.forEach((t=>{o(t)})),this.iframes&&this.handleOpenIframes(l,t,o,i),r()}forEachNode(t,e,o,i=(()=>{})){const r=this.getContexts();let n=r.length;n||i(),r.forEach((r=>{const a=()=>{this.iterateThroughNodes(t,r,e,o,(()=>{--n<=0&&i()}))};this.iframes?this.waitForIframes(r,a):a()}))}}const Ur=function(t){const e=new class{constructor(t){this.ctx=t,this.ie=!1;const e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Lr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){const o=this.opt.log;this.opt.debug&&"object"==typeof o&&"function"==typeof o[e]&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),this.createAccuracyRegExp(t)}createSynonymsRegExp(t){const e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let r in e)if(e.hasOwnProperty(r)){const n=e[r],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(n):this.escapeStr(n);""!==a&&""!==s&&(t=t.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(s)})`,`gm${o}`),i+`(${this.processSynomyms(a)}|`+`${this.processSynomyms(s)})`+i))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return(t=t.replace(/(?:\\)*\?/g,(t=>"\\"===t.charAt(0)?"?":""))).replace(/(?:\\)*\*/g,(t=>"\\"===t.charAt(0)?"*":""))}createWildcardsRegExp(t){let e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,((t,e,o)=>{let i=o.charAt(e+1);return/[(|)\\]/.test(i)||""===i?t:t+"\0"}))}createJoinersRegExp(t){let e=[];const o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){const e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let i=[];return t.split("").forEach((r=>{o.every((o=>{if(-1!==o.indexOf(r)){if(i.indexOf(o)>-1)return!1;t=t.replace(new RegExp(`[${o}]`,`gm${e}`),`[${o}]`),i.push(o)}return!0}))})),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(t){let e=this.opt.accuracy,o="string"==typeof e?e:e.value,i="string"==typeof e?[]:e.limiters,r="";switch(i.forEach((t=>{r+=`|${this.escapeStr(t)}`})),o){case"partially":default:return`()(${t})`;case"complementary":return r="\\s"+(r||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")),`()([^${r}]*${t}[^${r}]*)`;case"exactly":return`(^|\\s${r})(${t})(?=$|\\s${r})`}}getSeparatedKeywords(t){let e=[];return t.forEach((t=>{this.opt.separateWordSearch?t.split(" ").forEach((t=>{t.trim()&&-1===e.indexOf(t)&&e.push(t)})):t.trim()&&-1===e.indexOf(t)&&e.push(t)})),{keywords:e.sort(((t,e)=>e.length-t.length)),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];const e=[];let o=0;return t.sort(((t,e)=>t.start-e.start)).forEach((t=>{let{start:i,end:r,valid:n}=this.callNoMatchOnInvalidRanges(t,o);n&&(t.start=i,t.length=r-i,e.push(t),o=r)})),e}callNoMatchOnInvalidRanges(t,e){let o,i,r=!1;return t&&void 0!==t.start?(o=parseInt(t.start,10),i=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&i-e>0&&i-o>0?r=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:i,valid:r}}checkWhitespaceRanges(t,e,o){let i,r=!0,n=o.length,a=e-n,s=parseInt(t.start,10)-a;return s=s>n?n:s,i=s+parseInt(t.length,10),i>n&&(i=n,this.log(`End range automatically set to the max value of ${n}`)),s<0||i-s<0||s>n||i>n?(r=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):""===o.substring(s,i).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:i,valid:r}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(t=>{o.push({start:e.length,end:(e+=t.textContent).length,node:t})}),(t=>this.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),(()=>{t({value:e,nodes:o})}))}matchesExclude(t){return Lr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){const i=this.opt.element?this.opt.element:"mark",r=t.splitText(e),n=r.splitText(o-e);let a=document.createElement(i);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),n}wrapRangeInMappedTextNode(t,e,o,i,r){t.nodes.every(((n,a)=>{const s=t.nodes[a+1];if(void 0===s||s.start>e){if(!i(n.node))return!1;const s=e-n.start,l=(o>n.end?n.end:o)-n.start,c=t.value.substr(0,n.start),h=t.value.substr(l+n.start);if(n.node=this.wrapRangeInTextNode(n.node,s,l),t.value=c+h,t.nodes.forEach(((e,o)=>{o>=a&&(t.nodes[o].start>0&&o!==a&&(t.nodes[o].start-=l),t.nodes[o].end-=l)})),o-=l,r(n.node.previousSibling,n.start),!(o>n.end))return!1;e=n.end}return!0}))}wrapMatches(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{e.nodes.forEach((e=>{let r;for(e=e.node;null!==(r=t.exec(e.textContent))&&""!==r[n];){if(!o(r[n],e))continue;let a=r.index;if(0!==n)for(let t=1;t<n;t++)a+=r[t].length;e=this.wrapRangeInTextNode(e,a,a+r[n].length),i(e.previousSibling),t.lastIndex=0}})),r()}))}wrapMatchesAcrossElements(t,e,o,i,r){const n=0===e?0:e+1;this.getTextNodes((e=>{let a;for(;null!==(a=t.exec(e.value))&&""!==a[n];){let r=a.index;if(0!==n)for(let t=1;t<n;t++)r+=a[t].length;const s=r+a[n].length;this.wrapRangeInMappedTextNode(e,r,s,(t=>o(a[n],t)),((e,o)=>{t.lastIndex=o,i(e)}))}r()}))}wrapRangeFromIndex(t,e,o,i){this.getTextNodes((r=>{const n=r.value.length;t.forEach(((t,i)=>{let{start:a,end:s,valid:l}=this.checkWhitespaceRanges(t,n,r.value);l&&this.wrapRangeInMappedTextNode(r,a,s,(o=>e(o,t,r.value.substring(a,s),i)),(e=>{o(e,t)}))})),i()}))}unwrapMatches(t){const e=t.parentNode;let o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,i="wrapMatches";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,((t,e)=>this.opt.filter(e,t,o)),(t=>{o++,this.opt.each(t)}),(()=>{0===o&&this.opt.noMatch(t),this.opt.done(o)}))}mark(t,e){this.opt=e;let o=0,i="wrapMatches";const{keywords:r,length:n}=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=this.opt.caseSensitive?"":"i",s=t=>{let e=new RegExp(this.createRegExp(t),`gm${a}`),l=0;this.log(`Searching with expression "${e}"`),this[i](e,1,((e,i)=>this.opt.filter(i,t,o,l)),(t=>{l++,o++,this.opt.each(t)}),(()=>{0===l&&this.opt.noMatch(t),r[n-1]===t?this.opt.done(o):s(r[r.indexOf(t)+1])}))};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),0===n?this.opt.done(o):s(r[0])}markRanges(t,e){this.opt=e;let o=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,((t,e,o,i)=>this.opt.filter(t,e,o,i)),((t,e)=>{o++,this.opt.each(t,e)}),(()=>{this.opt.done(o)}))):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(t=>{this.unwrapMatches(t)}),(t=>{const o=Lr.matches(t,e),i=this.matchesExclude(t);return!o||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}}(t);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this},_r=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Ar=ft`
|
|
97
140
|
.highlight-html-match {
|
|
98
|
-
background: ${
|
|
141
|
+
background: ${_r};
|
|
99
142
|
}
|
|
100
|
-
|
|
143
|
+
`,Tr={className:"highlight-html-match"};var Wr=Object.freeze({__proto__:null,highlightHtml:function(t,e){var o;let i=t.getAttribute("data-highlight-html-query");if((null!=i?i:"")!==(null!=e?e:"")){const i=new Ur(t);if(i.unmark(Tr),e&&e.trim()){i.mark(e.replace(/"[^"]+"/g,""),{...Tr,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>i.mark(t.replace(/"/g,""),{...Tr,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")},highlightHtmlColorCssVariable:_r,highlightHtmlStyles:Ar});const Dr=ft`
|
|
101
144
|
.ft-no-text-select {
|
|
102
145
|
-webkit-touch-callout: none;
|
|
103
146
|
-webkit-user-select: none;
|
|
@@ -106,7 +149,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
106
149
|
-ms-user-select: none;
|
|
107
150
|
user-select: none;
|
|
108
151
|
}
|
|
109
|
-
|
|
152
|
+
`,Fr=ft`
|
|
110
153
|
.ft-word-wrap {
|
|
111
154
|
white-space: normal;
|
|
112
155
|
word-wrap: break-word;
|
|
@@ -118,7 +161,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
118
161
|
-webkit-hyphens: auto;
|
|
119
162
|
hyphens: auto
|
|
120
163
|
}
|
|
121
|
-
|
|
164
|
+
`,Mr=ft`
|
|
122
165
|
.ft-safari-ellipsis-fix {
|
|
123
166
|
margin-right: 0;
|
|
124
167
|
|
|
@@ -129,7 +172,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
129
172
|
display: inline-block;
|
|
130
173
|
width: 0;
|
|
131
174
|
}
|
|
132
|
-
`;class Xi{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(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):null!=t?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 Ji=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!D(t,e),attribute:!1,...e};I(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Qi=t=>(e,i)=>{const o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(i,t)};class to{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function eo(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var io,oo,ro;const no=Symbol("internalReduxEventsUnsubscribers"),ao=Symbol("internalStoresUnsubscribers"),so=Symbol("internalStores");class lo extends Gi{constructor(){super(...arguments),this[io]=new Map,this[oo]=new Map,this[ro]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[so].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[so].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[so].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:eo(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[so].delete(e)}setupStore(t,e){this[so].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[so].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[ao].has(t.store):this[ao].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ao].set(t,e.subscribe((()=>this.updateFromStores()))),eo(e)&&e.eventBus&&(null===(i=this.reduxConstructor.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[no].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ao].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[no].forEach((t=>t())),this[no]=[]}unsubscribeFromStore(t){this[ao].has(t)&&this[ao].get(t)(),this[ao].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function co(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function fo(t){return!!t&&!!t[Xo]}function ho(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Jo}(t)||Array.isArray(t)||!!t[Yo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Yo])||vo(t)||mo(t))}function uo(t,e,i){void 0===i&&(i=!1),0===po(t)?(i?Object.keys:Qo)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function po(t){var e=t[Xo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:vo(t)?2:mo(t)?3:0}function yo(t,e){return 2===po(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function go(t,e,i){var o=po(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function bo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function vo(t){return Ho&&t instanceof Map}function mo(t){return Go&&t instanceof Set}function xo(t){return t.o||t.t}function wo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=tr(t);delete e[Xo];for(var i=Qo(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function Oo(t,e){return void 0===e&&(e=!1),No(t)||fo(t)||!ho(t)||(po(t)>1&&(t.set=t.add=t.clear=t.delete=So),Object.freeze(t),e&&uo(t,(function(t,e){return Oo(e,!0)}),!0)),t}function So(){co(2)}function No(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function $o(t){var e=er[t];return e||co(18,t),e}function Co(){return Ko}function Eo(t,e){e&&($o("Patches"),t.u=[],t.s=[],t.v=e)}function ko(t){Io(t),t.p.forEach(Uo),t.p=null}function Io(t){t===Ko&&(Ko=t.l)}function Ro(t){return Ko={p:[],l:Ko,h:t,m:!0,_:0}}function Uo(t){var e=t[Xo];0===e.i||1===e.i?e.j():e.g=!0}function Lo(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||$o("ES5").S(e,t,o),o?(i[Xo].P&&(ko(e),co(4)),ho(t)&&(t=Ao(e,t),e.l||_o(e,t)),e.u&&$o("Patches").M(i[Xo].t,t,e.u,e.s)):t=Ao(e,i,[]),ko(e),e.u&&e.v(e.u,e.s),t!==qo?t:void 0}function Ao(t,e,i){if(No(e))return e;var o=e[Xo];if(!o)return uo(e,(function(r,n){return To(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return _o(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=wo(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),uo(n,(function(e,n){return To(t,o,r,e,n,i,a)})),_o(t,r,!1),i&&t.u&&$o("Patches").N(o,i,t.u,t.s)}return o.o}function To(t,e,i,o,r,n,a){if(fo(r)){var s=Ao(t,r,n&&e&&3!==e.i&&!yo(e.R,o)?n.concat(o):void 0);if(go(i,o,s),!fo(s))return;t.m=!1}else a&&i.add(r);if(ho(r)&&!No(r)){if(!t.h.D&&t._<1)return;Ao(t,r),e&&e.A.l||_o(t,r)}}function _o(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&Oo(e,i)}function Wo(t,e){var i=t[Xo];return(i?xo(i):t)[e]}function Do(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Mo(t){t.P||(t.P=!0,t.l&&Mo(t.l))}function Fo(t){t.o||(t.o=wo(t.t))}function Po(t,e,i){var o=vo(e)?$o("MapSet").F(e,i):mo(e)?$o("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:Co(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=ir;i&&(r=[o],n=or);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):$o("ES5").J(e,i);return(i?i.A:Co()).p.push(o),o}function zo(t){return fo(t)||co(22,t),function t(e){if(!ho(e))return e;var i,o=e[Xo],r=po(e);if(o){if(!o.P&&(o.i<4||!$o("ES5").K(o)))return o.t;o.I=!0,i=Bo(e,r),o.I=!1}else i=Bo(e,r);return uo(i,(function(e,r){o&&function(t,e){return 2===po(t)?t.get(e):t[e]}(o.t,e)===r||go(i,e,t(r))})),3===r?new Set(i):i}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wo(t)}io=ao,oo=so,ro=no,lo.reduxProperties=new Map,lo.reduxReactiveProperties=new Set,lo.reduxEventListeners=new Map;var jo,Ko,Zo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ho="undefined"!=typeof Map,Go="undefined"!=typeof Set,Vo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,qo=Zo?Symbol.for("immer-nothing"):((jo={})["immer-nothing"]=!0,jo),Yo=Zo?Symbol.for("immer-draftable"):"__$immer_draftable",Xo=Zo?Symbol.for("immer-state"):"__$immer_state",Jo=""+Object.prototype.constructor,Qo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,tr=Object.getOwnPropertyDescriptors||function(t){var e={};return Qo(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},er={},ir={get:function(t,e){if(e===Xo)return t;var i=xo(t);if(!yo(i,e))return function(t,e,i){var o,r=Do(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!ho(o)?o:o===Wo(t.t,e)?(Fo(t),t.o[e]=Po(t.A.h,o,t)):o},has:function(t,e){return e in xo(t)},ownKeys:function(t){return Reflect.ownKeys(xo(t))},set:function(t,e,i){var o=Do(xo(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Wo(xo(t),e),n=null==r?void 0:r[Xo];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(bo(i,r)&&(void 0!==i||yo(t.t,e)))return!0;Fo(t),Mo(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Wo(t.t,e)||e in t.t?(t.R[e]=!1,Fo(t),Mo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=xo(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){co(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){co(12)}},or={};uo(ir,(function(t,e){or[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),or.deleteProperty=function(t,e){return or.set.call(this,t,e,void 0)},or.set=function(t,e,i){return ir.set.call(this,t[0],e,i,t[0])};var rr=function(){function t(t){var e=this;this.O=Vo,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&co(6),void 0!==o&&"function"!=typeof o&&co(7),ho(t)){var s=Ro(e),l=Po(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?ko(s):Io(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Eo(s,o),Lo(t,s)}),(function(t){throw ko(s),t})):(Eo(s,o),Lo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===qo&&(a=void 0),e.D&&Oo(a,!0),o){var f=[],h=[];$o("Patches").M(t,a,f,h),o(f,h)}return a}co(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){ho(t)||co(8),fo(t)&&(t=zo(t));var e=Ro(this),i=Po(this,t,void 0);return i[Xo].C=!0,Io(e),i},e.finishDraft=function(t,e){var i=(t&&t[Xo]).A;return Eo(i,e),Lo(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Vo&&co(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=$o("Patches").$;return fo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),nr=new rr,ar=nr.produce;function sr(t){return sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(t)}function lr(t){var e=function(t,e){if("object"!==sr(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==sr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===sr(e)?e:String(e)}function cr(t,e,i){return(e=lr(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function fr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function hr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?fr(Object(i),!0).forEach((function(e){cr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):fr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function dr(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}nr.produceWithPatches.bind(nr),nr.setAutoFreeze.bind(nr),nr.setUseProxies.bind(nr),nr.applyPatches.bind(nr),nr.createDraft.bind(nr),nr.finishDraft.bind(nr);var ur="function"==typeof Symbol&&Symbol.observable||"@@observable",pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},yr={INIT:"@@redux/INIT"+pr(),REPLACE:"@@redux/REPLACE"+pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pr()}};function gr(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(dr(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(dr(1));return i(gr)(t,e)}if("function"!=typeof t)throw new Error(dr(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(dr(3));return n}function h(t){if("function"!=typeof t)throw new Error(dr(4));if(l)throw new Error(dr(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(dr(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(dr(7));if(void 0===t.type)throw new Error(dr(8));if(l)throw new Error(dr(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:yr.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(dr(10));r=t,d({type:yr.REPLACE})}})[ur]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(dr(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[ur]=function(){return this},t},o}function br(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:yr.INIT}))throw new Error(dr(12));if(void 0===i(void 0,{type:yr.PROBE_UNKNOWN_ACTION()}))throw new Error(dr(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(dr(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function vr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function mr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(dr(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=vr.apply(void 0,n)(i.dispatch),hr(hr({},i),{},{dispatch:o})}}}function xr(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var wr=xr();wr.withExtraArgument=xr;var Or,Sr=wr,Nr=(Or=function(t,e){return Or=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Or(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Or(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),$r=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Cr=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},Er=Object.defineProperty,kr=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Ar=function(t,e,i){return e in t?Er(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Tr=function(t,e){for(var i in e||(e={}))Ur.call(e,i)&&Ar(t,i,e[i]);if(Rr)for(var o=0,r=Rr(e);o<r.length;o++){i=r[o];Lr.call(e,i)&&Ar(t,i,e[i])}return t},_r=function(t,e){return kr(t,Ir(e))},Wr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?vr:vr.apply(null,arguments)};var Dr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Nr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Cr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Cr([void 0],t.concat(this))))},e}(Array),Mr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Nr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Cr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Cr([void 0],t.concat(this))))},e}(Array);function Fr(t){return ho(t)?ar(t,(function(){})):t}function Pr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Dr;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(Sr.withExtraArgument(i.extraArgument)):o.push(Sr));return o}(t)}}function zr(t){var e,i=Pr(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=br(n)}var p=s;"function"==typeof p&&(p=p(i));var y=mr.apply(void 0,p),g=vr;c&&(g=Wr(Tr({trace:!1},"object"==typeof c&&c)));var b=new Mr(y),v=b;return Array.isArray(u)?v=Cr([y],u):"function"==typeof u&&(v=u(b)),gr(e,h,g.apply(void 0,v))}function Br(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Tr(Tr({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function jr(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Kr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Fr(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?jr(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Tr(Tr({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?jr(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Fr(t())};else{var c=Fr(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=Cr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(fo(t))return void 0===(o=i(t,e))?t:o;if(ho(t))return ar(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Br(c,o):Br(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Zr=["name","message","stack","code"],Hr=function(t,e){this.payload=t,this.meta=e},Gr=function(t,e){this.payload=t,this.meta=e},Vr=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Zr;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function qr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Br(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:_r(Tr({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Br(t+"/pending",(function(t,e,i){return{payload:void 0,meta:_r(Tr({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Br(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Vr)(t||"Rejected"),meta:_r(Tr({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var f,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return $r(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Hr(t,e)},fulfillWithValue:function(t,e){return new Gr(t,e)}})).then((function(e){if(e instanceof Hr)throw e;return e instanceof Gr?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Hr?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(qr)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Yr="listenerMiddleware";Br(Yr+"/add"),Br(Yr+"/removeAll"),Br(Yr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Xo];return ir.get(e,t)},set:function(e){var i=this[Xo];ir.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Xo];if(!r.P)switch(r.i){case 5:o(r)&&Mo(r);break;case 4:i(r)&&Mo(r)}}}function i(t){for(var e=t.t,i=t.k,o=Qo(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Xo){var a=e[n];if(void 0===a&&!yo(e,n))return!0;var s=i[n],l=s&&s[Xo];if(l?l.t!==a:!bo(s,a))return!0}}var c=!!e[Xo];return o.length!==Qo(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){er[t]||(er[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=tr(i);delete n[Xo];for(var a=Qo(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:Co(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Xo,{value:n,writable:!0}),r},S:function(t,i,r){r?fo(i)&&i[Xo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Xo];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)uo(n,(function(e){e!==Xo&&(void 0!==r[e]||yo(r,e)?a[e]||t(n[e]):(a[e]=!0,Mo(i)))})),uo(r,(function(t){void 0!==n[t]||yo(n,t)||(a[t]=!1,Mo(i))}));else if(5===s){if(o(i)&&(Mo(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Xr{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(eo(r))return r;if(null==o)return;const n=Kr({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=zr({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Xr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new to,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Jr=Symbol("elementInternals");function Qr(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Jr].form}constructor(...t){super(t),this[Jr]=this.attachInternals(),this[Jr].role=e}setFormValue(t){this[Jr].setFormValue(t)}}}var tn,en,on;const rn=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(on=null===(en=null===(tn=window.safari)||void 0===tn?void 0:tn.pushNotification)||void 0===en?void 0:en.toString())&&void 0!==on?on:"");var nn;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(nn||(nn={}));var an=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class sn extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ln=Symbol("registerInterval");class cn extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[ln]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ln]):this.dispatchEvent(new sn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ln,an([R()],i.prototype,"stateManager",void 0),i}(lo)){}const fn=Re.extend("--ft-ripple-color","",We.colorContent),hn={color:fn,backgroundColor:Re.extend("--ft-ripple-background-color","",fn),opacityContentOnSurfacePressed:Re.external(We.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(We.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(We.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(We.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},dn=Re.extend("--ft-ripple-color","",We.colorPrimary),un=dn,pn=Re.extend("--ft-ripple-background-color","",dn),yn=Re.extend("--ft-ripple-color","",We.colorSecondary),gn=yn,bn=Re.extend("--ft-ripple-background-color","",yn),vn=Rt`
|
|
175
|
+
`;var Br=Object.freeze({__proto__:null,noTextSelect:Dr,safariEllipsisFix:Mr,wordWrap:Fr}),Pr=Object.freeze({__proto__:null});class jr{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}var zr=Object.freeze({__proto__:null,ParametrizedLabelResolver:jr});const Kr=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!uo(t,e),attribute:!1,...e};Oe(r)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},Zr=t=>(e,o)=>{const i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(o,t)};class Hr{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Vr(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Gr,qr,Yr;const Jr=Symbol("internalReduxEventsUnsubscribers"),Xr=Symbol("internalStoresUnsubscribers"),Qr=Symbol("internalStores");class tn extends kr{constructor(){super(...arguments),this[Gr]=new Map,this[qr]=new Map,this[Yr]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[Qr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Qr].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Qr].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Vr(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Qr].delete(e)}setupStore(t,e){this[Qr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Qr].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Xr].has(t.store):this[Xr].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Xr].set(t,e.subscribe((()=>this.updateFromStores()))),Vr(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[Jr].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Xr].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Jr].forEach((t=>t())),this[Jr]=[]}unsubscribeFromStore(t){this[Xr].has(t)&&this[Xr].get(t)(),this[Xr].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function en(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function on(t){return!!t&&!!t[zn]}function rn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Kn}(t)||Array.isArray(t)||!!t[jn]||!!(null===(e=t.constructor)||void 0===e?void 0:e[jn])||hn(t)||dn(t))}function nn(t,e,o){void 0===o&&(o=!1),0===an(t)?(o?Object.keys:Zn)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function an(t){var e=t[zn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:hn(t)?2:dn(t)?3:0}function sn(t,e){return 2===an(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ln(t,e,o){var i=an(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function cn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function hn(t){return Fn&&t instanceof Map}function dn(t){return Mn&&t instanceof Set}function fn(t){return t.o||t.t}function un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Hn(t);delete e[zn];for(var o=Zn(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function pn(t,e){return void 0===e&&(e=!1),gn(t)||on(t)||!rn(t)||(an(t)>1&&(t.set=t.add=t.clear=t.delete=yn),Object.freeze(t),e&&nn(t,(function(t,e){return pn(e,!0)}),!0)),t}function yn(){en(2)}function gn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function bn(t){var e=Vn[t];return e||en(18,t),e}function vn(){return Wn}function mn(t,e){e&&(bn("Patches"),t.u=[],t.s=[],t.v=e)}function xn(t){wn(t),t.p.forEach(Sn),t.p=null}function wn(t){t===Wn&&(Wn=t.l)}function On(t){return Wn={p:[],l:Wn,h:t,m:!0,_:0}}function Sn(t){var e=t[zn];0===e.i||1===e.i?e.j():e.g=!0}function Nn(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||bn("ES5").S(e,t,i),i?(o[zn].P&&(xn(e),en(4)),rn(t)&&(t=$n(e,t),e.l||En(e,t)),e.u&&bn("Patches").M(o[zn].t,t,e.u,e.s)):t=$n(e,o,[]),xn(e),e.u&&e.v(e.u,e.s),t!==Pn?t:void 0}function $n(t,e,o){if(gn(e))return e;var i=e[zn];if(!i)return nn(e,(function(r,n){return Cn(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return En(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=un(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),nn(n,(function(e,n){return Cn(t,i,r,e,n,o,a)})),En(t,r,!1),o&&t.u&&bn("Patches").N(i,o,t.u,t.s)}return i.o}function Cn(t,e,o,i,r,n,a){if(on(r)){var s=$n(t,r,n&&e&&3!==e.i&&!sn(e.R,i)?n.concat(i):void 0);if(ln(o,i,s),!on(s))return;t.m=!1}else a&&o.add(r);if(rn(r)&&!gn(r)){if(!t.h.D&&t._<1)return;$n(t,r),e&&e.A.l||En(t,r)}}function En(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&pn(e,o)}function kn(t,e){var o=t[zn];return(o?fn(o):t)[e]}function Rn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function In(t){t.P||(t.P=!0,t.l&&In(t.l))}function Ln(t){t.o||(t.o=un(t.t))}function Un(t,e,o){var i=hn(e)?bn("MapSet").F(e,o):dn(e)?bn("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:vn(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Gn;o&&(r=[i],n=qn);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):bn("ES5").J(e,o);return(o?o.A:vn()).p.push(i),i}function _n(t){return on(t)||en(22,t),function t(e){if(!rn(e))return e;var o,i=e[zn],r=an(e);if(i){if(!i.P&&(i.i<4||!bn("ES5").K(i)))return i.t;i.I=!0,o=An(e,r),i.I=!1}else o=An(e,r);return nn(o,(function(e,r){i&&function(t,e){return 2===an(t)?t.get(e):t[e]}(i.t,e)===r||ln(o,e,t(r))})),3===r?new Set(o):o}(t)}function An(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return un(t)}Gr=Xr,qr=Qr,Yr=Jr,tn.reduxProperties=new Map,tn.reduxReactiveProperties=new Set,tn.reduxEventListeners=new Map;var Tn,Wn,Dn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Fn="undefined"!=typeof Map,Mn="undefined"!=typeof Set,Bn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Pn=Dn?Symbol.for("immer-nothing"):((Tn={})["immer-nothing"]=!0,Tn),jn=Dn?Symbol.for("immer-draftable"):"__$immer_draftable",zn=Dn?Symbol.for("immer-state"):"__$immer_state",Kn=""+Object.prototype.constructor,Zn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Hn=Object.getOwnPropertyDescriptors||function(t){var e={};return Zn(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Vn={},Gn={get:function(t,e){if(e===zn)return t;var o=fn(t);if(!sn(o,e))return function(t,e,o){var i,r=Rn(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!rn(i)?i:i===kn(t.t,e)?(Ln(t),t.o[e]=Un(t.A.h,i,t)):i},has:function(t,e){return e in fn(t)},ownKeys:function(t){return Reflect.ownKeys(fn(t))},set:function(t,e,o){var i=Rn(fn(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=kn(fn(t),e),n=null==r?void 0:r[zn];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(cn(o,r)&&(void 0!==o||sn(t.t,e)))return!0;Ln(t),In(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==kn(t.t,e)||e in t.t?(t.R[e]=!1,Ln(t),In(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=fn(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){en(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){en(12)}},qn={};nn(Gn,(function(t,e){qn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),qn.deleteProperty=function(t,e){return qn.set.call(this,t,e,void 0)},qn.set=function(t,e,o){return Gn.set.call(this,t[0],e,o,t[0])};var Yn=function(){function t(t){var e=this;this.O=Bn,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&en(6),void 0!==i&&"function"!=typeof i&&en(7),rn(t)){var s=On(e),l=Un(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?xn(s):wn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return mn(s,i),Nn(t,s)}),(function(t){throw xn(s),t})):(mn(s,i),Nn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Pn&&(a=void 0),e.D&&pn(a,!0),i){var h=[],d=[];bn("Patches").M(t,a,h,d),i(h,d)}return a}en(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){rn(t)||en(8),on(t)&&(t=_n(t));var e=On(this),o=Un(this,t,void 0);return o[zn].C=!0,wn(e),o},e.finishDraft=function(t,e){var o=(t&&t[zn]).A;return mn(o,e),Nn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Bn&&en(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=bn("Patches").$;return on(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Jn=new Yn,Xn=Jn.produce;function Qn(t){return Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(t)}function ta(t){var e=function(t,e){if("object"!==Qn(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==Qn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qn(e)?e:String(e)}function ea(t,e,o){return(e=ta(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function oa(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ia(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?oa(Object(o),!0).forEach((function(e){ea(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):oa(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ra(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Jn.produceWithPatches.bind(Jn),Jn.setAutoFreeze.bind(Jn),Jn.setUseProxies.bind(Jn),Jn.applyPatches.bind(Jn),Jn.createDraft.bind(Jn),Jn.finishDraft.bind(Jn);var na="function"==typeof Symbol&&Symbol.observable||"@@observable",aa=function(){return Math.random().toString(36).substring(7).split("").join(".")},sa={INIT:"@@redux/INIT"+aa(),REPLACE:"@@redux/REPLACE"+aa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+aa()}};function la(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ra(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ra(1));return o(la)(t,e)}if("function"!=typeof t)throw new Error(ra(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function h(){if(l)throw new Error(ra(3));return n}function d(t){if("function"!=typeof t)throw new Error(ra(4));if(l)throw new Error(ra(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ra(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ra(7));if(void 0===t.type)throw new Error(ra(8));if(l)throw new Error(ra(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return f({type:sa.INIT}),(i={dispatch:f,subscribe:d,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ra(10));r=t,f({type:sa.REPLACE})}})[na]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ra(11));function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[na]=function(){return this},t},i}function ca(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:sa.INIT}))throw new Error(ra(12));if(void 0===o(void 0,{type:sa.PROBE_UNKNOWN_ACTION()}))throw new Error(ra(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],h=t[l],d=c(h,e);if(void 0===d)throw e&&e.type,new Error(ra(14));r[l]=d,i=i||d!==h}return(i=i||a.length!==Object.keys(t).length)?r:t}}function ha(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function da(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ra(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=ha.apply(void 0,n)(o.dispatch),ia(ia({},o),{},{dispatch:i})}}}function fa(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var ua=fa();ua.withExtraArgument=fa;var pa,ya=ua,ga=(pa=function(t,e){return pa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},pa(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}pa(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ba=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},va=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},ma=Object.defineProperty,xa=Object.defineProperties,wa=Object.getOwnPropertyDescriptors,Oa=Object.getOwnPropertySymbols,Sa=Object.prototype.hasOwnProperty,Na=Object.prototype.propertyIsEnumerable,$a=function(t,e,o){return e in t?ma(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ca=function(t,e){for(var o in e||(e={}))Sa.call(e,o)&&$a(t,o,e[o]);if(Oa)for(var i=0,r=Oa(e);i<r.length;i++){o=r[i];Na.call(e,o)&&$a(t,o,e[o])}return t},Ea=function(t,e){return xa(t,wa(e))},ka="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ha:ha.apply(null,arguments)};var Ra=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return ga(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,va([void 0],t[0].concat(this)))):new(e.bind.apply(e,va([void 0],t.concat(this))))},e}(Array),Ia=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return ga(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,va([void 0],t[0].concat(this)))):new(e.bind.apply(e,va([void 0],t.concat(this))))},e}(Array);function La(t){return rn(t)?Xn(t,(function(){})):t}function Ua(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Ra;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(ya.withExtraArgument(o.extraArgument)):i.push(ya));return i}(t)}}function _a(t){var e,o=Ua(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,h=i.preloadedState,d=void 0===h?void 0:h,f=i.enhancers,u=void 0===f?void 0:f;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ca(n)}var p=s;"function"==typeof p&&(p=p(o));var y=da.apply(void 0,p),g=ha;c&&(g=ka(Ca({trace:!1},"object"==typeof c&&c)));var b=new Ia(y),v=b;return Array.isArray(u)?v=va([y],u):"function"==typeof u&&(v=u(b)),la(e,d,g.apply(void 0,v))}function Aa(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Ca(Ca({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Ta(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Wa(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:La(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ta(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=Ca(Ca({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Ta(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return La(t())};else{var c=La(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var o=va([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(on(t))return void 0===(i=o(t,e))?t:i;if(rn(t))return Xn(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return h.getInitialState=r,h}(i,(function(t){for(var e in h)t.addCase(e,h[e]);for(var o=0,i=a;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=i?Aa(c,i):Aa(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Da=["name","message","stack","code"],Fa=function(t,e){this.payload=t,this.meta=e},Ma=function(t,e){this.payload=t,this.meta=e},Ba=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Da;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Pa(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Aa(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ea(Ca({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Aa(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ea(Ca({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Aa(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Ba)(t||"Rejected"),meta:Ea(Ca({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var h,d=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new a;function u(t){h=t,f.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return ba(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),s(r(d,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:d,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:d,signal:f.signal,abort:u,rejectWithValue:function(t,e){return new Fa(t,e)},fulfillWithValue:function(t,e){return new Ma(t,e)}})).then((function(e){if(e instanceof Fa)throw e;return e instanceof Ma?i(e.payload,d,t,e.meta):i(e,d,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Fa?n(null,d,t,v.payload,v.meta):n(v,d,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:d,arg:t,unwrap:function(){return p.then(Pa)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var ja="listenerMiddleware";Aa(ja+"/add"),Aa(ja+"/removeAll"),Aa(ja+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[zn];return Gn.get(e,t)},set:function(e){var o=this[zn];Gn.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][zn];if(!r.P)switch(r.i){case 5:i(r)&&In(r);break;case 4:o(r)&&In(r)}}}function o(t){for(var e=t.t,o=t.k,i=Zn(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==zn){var a=e[n];if(void 0===a&&!sn(e,n))return!0;var s=o[n],l=s&&s[zn];if(l?l.t!==a:!cn(s,a))return!0}}var c=!!e[zn];return i.length!==Zn(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Vn[t]||(Vn[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Hn(o);delete n[zn];for(var a=Zn(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:vn(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,zn,{value:n,writable:!0}),r},S:function(t,o,r){r?on(o)&&o[zn].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[zn];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)nn(n,(function(e){e!==zn&&(void 0!==r[e]||sn(r,e)?a[e]||t(n[e]):(a[e]=!0,In(o)))})),nn(r,(function(t){void 0!==n[t]||sn(n,t)||(a[t]=!1,In(o))}));else if(5===s){if(i(o)&&(In(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var h=Math.min(n.length,r.length),d=0;d<h;d++)n.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&t(n[d])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class za{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Vr(r))return r;if(null==i)return;const n=Wa({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=_a({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new za(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Hr,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ka=Object.freeze({__proto__:null,FtCommandQueue:Hr,FtLitElementRedux:tn,FtReduxStore:za,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))Vr(e)&&e.clear()},isFtReduxStore:Vr,redux:Kr,reduxEventListener:Zr,reduxReactive:()=>(t,e)=>{var o;const i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),null===(o=i.reduxReactiveProperties)||void 0===o||o.add(e)}});var Za=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o;const i=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");i.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${i.toString()}`).href}});const Ha=Symbol("elementInternals");function Va(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Ha].form}constructor(...t){super(t),this[Ha]=this.attachInternals(),this[Ha].role=e}setFormValue(t){this[Ha].setFormValue(t)}}}var Ga,qa,Ya,Ja,Xa=Object.freeze({__proto__:null,toFtFormComponent:Va});const Qa=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ya=null===(qa=null===(Ga=window.safari)||void 0===Ga?void 0:Ga.pushNotification)||void 0===qa?void 0:qa.toString())&&void 0!==Ya?Ya:""),ts="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;var es;window.ftGlobals=null!==(Ja=window.ftGlobals)&&void 0!==Ja?Ja:{lit:me,litDecorators:Ie,litRepeat:ze,litClassMap:Ze,litStyleMap:qe,litUnsafeHTML:Xe,wcUtils:{...ro,...oo,...ao,...lo,...vo,...di,...yi,...vr,...ci,...Rr,...Ir,...po,...Wr,...Br,...Pr,...zr,...Ka,...Sr,...Za,...Xa,isSafari:Qa,isTouchScreen:ts}},function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(es||(es={}));var os=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class is extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const rs=Symbol("registerInterval");class ns extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[rs]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[rs]):this.dispatchEvent(new is)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=rs,os([Se()],o.prototype,"stateManager",void 0),o}(tn)){}const as=xo.extend("--ft-ripple-color","",hi.colorContent),ss={color:as,backgroundColor:xo.extend("--ft-ripple-background-color","",as),opacityContentOnSurfacePressed:xo.external(hi.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(hi.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(hi.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(hi.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},ls=xo.extend("--ft-ripple-color","",hi.colorPrimary),cs=ls,hs=xo.extend("--ft-ripple-background-color","",ls),ds=xo.extend("--ft-ripple-color","",hi.colorSecondary),fs=ds,us=xo.extend("--ft-ripple-background-color","",ds),ps=ft`
|
|
133
176
|
:host {
|
|
134
177
|
display: contents;
|
|
135
178
|
}
|
|
@@ -142,7 +185,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
142
185
|
|
|
143
186
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
144
187
|
overflow: hidden;
|
|
145
|
-
border-radius: ${
|
|
188
|
+
border-radius: ${ss.borderRadius};
|
|
146
189
|
}
|
|
147
190
|
|
|
148
191
|
.ft-ripple .ft-ripple--background,
|
|
@@ -176,27 +219,27 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
176
219
|
}
|
|
177
220
|
|
|
178
221
|
.ft-ripple .ft-ripple--background {
|
|
179
|
-
background-color: ${
|
|
222
|
+
background-color: ${ss.backgroundColor};
|
|
180
223
|
}
|
|
181
224
|
|
|
182
225
|
.ft-ripple .ft-ripple--effect {
|
|
183
|
-
background-color: ${
|
|
226
|
+
background-color: ${ss.color};
|
|
184
227
|
}
|
|
185
228
|
|
|
186
229
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
187
|
-
background-color: ${
|
|
230
|
+
background-color: ${us};
|
|
188
231
|
}
|
|
189
232
|
|
|
190
233
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
191
|
-
background-color: ${
|
|
234
|
+
background-color: ${fs};
|
|
192
235
|
}
|
|
193
236
|
|
|
194
237
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
195
|
-
background-color: ${
|
|
238
|
+
background-color: ${hs};
|
|
196
239
|
}
|
|
197
240
|
|
|
198
241
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
199
|
-
background-color: ${
|
|
242
|
+
background-color: ${cs};
|
|
200
243
|
}
|
|
201
244
|
|
|
202
245
|
.ft-ripple .ft-ripple--background {
|
|
@@ -226,118 +269,118 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
226
269
|
}
|
|
227
270
|
|
|
228
271
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
229
|
-
opacity: ${
|
|
272
|
+
opacity: ${ss.opacityContentOnSurfaceHover};
|
|
230
273
|
}
|
|
231
274
|
|
|
232
275
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
233
|
-
opacity: ${
|
|
276
|
+
opacity: ${ss.opacityContentOnSurfaceSelected};
|
|
234
277
|
}
|
|
235
278
|
|
|
236
279
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
237
|
-
opacity: ${
|
|
280
|
+
opacity: ${ss.opacityContentOnSurfaceFocused};
|
|
238
281
|
}
|
|
239
282
|
|
|
240
283
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
241
|
-
opacity: ${
|
|
284
|
+
opacity: ${ss.opacityContentOnSurfacePressed};
|
|
242
285
|
transform: translate(-50%, -50%) scale(1);
|
|
243
286
|
}
|
|
244
|
-
`;const
|
|
287
|
+
`;const ys=xo.extend("--ft-typography-font-family","",hi.titleFont),gs=xo.extend("--ft-typography-font-family","",hi.contentFont),bs={fontFamily:gs,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},vs={fontFamily:xo.extend("--ft-typography-title-font-family","",ys),fontSize:xo.extend("--ft-typography-title-font-size","",bs.fontSize,"20px"),fontWeight:xo.extend("--ft-typography-title-font-weight","",bs.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-title-letter-spacing","",bs.letterSpacing,"0.15px"),lineHeight:xo.extend("--ft-typography-title-line-height","",bs.lineHeight,"1.2"),textTransform:xo.extend("--ft-typography-title-text-transform","",bs.textTransform,"inherit")},ms={fontFamily:xo.extend("--ft-typography-title-dense-font-family","",ys),fontSize:xo.extend("--ft-typography-title-dense-font-size","",bs.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-title-dense-font-weight","",bs.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-title-dense-letter-spacing","",bs.letterSpacing,"0.105px"),lineHeight:xo.extend("--ft-typography-title-dense-line-height","",bs.lineHeight,"1.7"),textTransform:xo.extend("--ft-typography-title-dense-text-transform","",bs.textTransform,"inherit")},xs=xo.extend("--ft-typography-subtitle1-font-family","",gs),ws=xo.extend("--ft-typography-subtitle1-font-size","",bs.fontSize,"16px"),Os=xo.extend("--ft-typography-subtitle1-font-weight","",bs.fontWeight,"600"),Ss=xo.extend("--ft-typography-subtitle1-letter-spacing","",bs.letterSpacing,"0.144px"),Ns=xo.extend("--ft-typography-subtitle1-line-height","",bs.lineHeight,"1.5"),$s=xo.extend("--ft-typography-subtitle1-text-transform","",bs.textTransform,"inherit"),Cs=xo.extend("--ft-typography-subtitle2-font-family","",gs),Es=xo.extend("--ft-typography-subtitle2-font-size","",bs.fontSize,"14px"),ks=xo.extend("--ft-typography-subtitle2-font-weight","",bs.fontWeight,"normal"),Rs=xo.extend("--ft-typography-subtitle2-letter-spacing","",bs.letterSpacing,"0.098px"),Is=xo.extend("--ft-typography-subtitle2-line-height","",bs.lineHeight,"1.7"),Ls=xo.extend("--ft-typography-subtitle2-text-transform","",bs.textTransform,"inherit"),Us={fontFamily:xo.extend("--ft-typography-body1-font-family","",gs),fontSize:xo.extend("--ft-typography-body1-font-size","",bs.fontSize,"16px"),fontWeight:xo.extend("--ft-typography-body1-font-weight","",bs.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body1-letter-spacing","",bs.letterSpacing,"0.496px"),lineHeight:xo.extend("--ft-typography-body1-line-height","",bs.lineHeight,"1.5"),textTransform:xo.extend("--ft-typography-body1-text-transform","",bs.textTransform,"inherit")},_s=xo.extend("--ft-typography-body2-font-family","",gs),As=xo.extend("--ft-typography-body2-font-size","",bs.fontSize,"14px"),Ts=xo.extend("--ft-typography-body2-font-weight","",bs.fontWeight,"normal"),Ws=xo.extend("--ft-typography-body2-letter-spacing","",bs.letterSpacing,"0.252px"),Ds=xo.extend("--ft-typography-body2-line-height","",bs.lineHeight,"1.4"),Fs=xo.extend("--ft-typography-body2-text-transform","",bs.textTransform,"inherit"),Ms={fontFamily:xo.extend("--ft-typography-caption-font-family","",gs),fontSize:xo.extend("--ft-typography-caption-font-size","",bs.fontSize,"12px"),fontWeight:xo.extend("--ft-typography-caption-font-weight","",bs.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-caption-letter-spacing","",bs.letterSpacing,"0.396px"),lineHeight:xo.extend("--ft-typography-caption-line-height","",bs.lineHeight,"1.33"),textTransform:xo.extend("--ft-typography-caption-text-transform","",bs.textTransform,"inherit")},Bs=xo.extend("--ft-typography-breadcrumb-font-family","",gs),Ps=xo.extend("--ft-typography-breadcrumb-font-size","",bs.fontSize,"10px"),js=xo.extend("--ft-typography-breadcrumb-font-weight","",bs.fontWeight,"normal"),zs=xo.extend("--ft-typography-breadcrumb-letter-spacing","",bs.letterSpacing,"0.33px"),Ks=xo.extend("--ft-typography-breadcrumb-line-height","",bs.lineHeight,"1.6"),Zs=xo.extend("--ft-typography-breadcrumb-text-transform","",bs.textTransform,"inherit"),Hs=xo.extend("--ft-typography-overline-font-family","",gs),Vs=xo.extend("--ft-typography-overline-font-size","",bs.fontSize,"10px"),Gs=xo.extend("--ft-typography-overline-font-weight","",bs.fontWeight,"normal"),qs=xo.extend("--ft-typography-overline-letter-spacing","",bs.letterSpacing,"1.5px"),Ys=xo.extend("--ft-typography-overline-line-height","",bs.lineHeight,"1.6"),Js=xo.extend("--ft-typography-overline-text-transform","",bs.textTransform,"uppercase"),Xs={fontFamily:xo.extend("--ft-typography-button-font-family","",gs),fontSize:xo.extend("--ft-typography-button-font-size","",bs.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",bs.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",bs.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",bs.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",bs.textTransform,"uppercase")},Qs=ft`
|
|
245
288
|
.ft-typography--title {
|
|
246
|
-
font-family: ${
|
|
247
|
-
font-size: ${
|
|
248
|
-
font-weight: ${
|
|
249
|
-
letter-spacing: ${
|
|
250
|
-
line-height: ${
|
|
251
|
-
text-transform: ${
|
|
252
|
-
}
|
|
253
|
-
`,
|
|
289
|
+
font-family: ${vs.fontFamily};
|
|
290
|
+
font-size: ${vs.fontSize};
|
|
291
|
+
font-weight: ${vs.fontWeight};
|
|
292
|
+
letter-spacing: ${vs.letterSpacing};
|
|
293
|
+
line-height: ${vs.lineHeight};
|
|
294
|
+
text-transform: ${vs.textTransform};
|
|
295
|
+
}
|
|
296
|
+
`,tl=ft`
|
|
254
297
|
.ft-typography--title-dense {
|
|
255
|
-
font-family: ${
|
|
256
|
-
font-size: ${
|
|
257
|
-
font-weight: ${
|
|
258
|
-
letter-spacing: ${
|
|
259
|
-
line-height: ${
|
|
260
|
-
text-transform: ${
|
|
261
|
-
}
|
|
262
|
-
`,
|
|
298
|
+
font-family: ${ms.fontFamily};
|
|
299
|
+
font-size: ${ms.fontSize};
|
|
300
|
+
font-weight: ${ms.fontWeight};
|
|
301
|
+
letter-spacing: ${ms.letterSpacing};
|
|
302
|
+
line-height: ${ms.lineHeight};
|
|
303
|
+
text-transform: ${ms.textTransform};
|
|
304
|
+
}
|
|
305
|
+
`,el=ft`
|
|
263
306
|
.ft-typography--subtitle1 {
|
|
264
|
-
font-family: ${
|
|
265
|
-
font-size: ${
|
|
266
|
-
font-weight: ${
|
|
267
|
-
letter-spacing: ${
|
|
268
|
-
line-height: ${
|
|
269
|
-
text-transform: ${
|
|
270
|
-
}
|
|
271
|
-
`,
|
|
307
|
+
font-family: ${xs};
|
|
308
|
+
font-size: ${ws};
|
|
309
|
+
font-weight: ${Os};
|
|
310
|
+
letter-spacing: ${Ss};
|
|
311
|
+
line-height: ${Ns};
|
|
312
|
+
text-transform: ${$s};
|
|
313
|
+
}
|
|
314
|
+
`,ol=ft`
|
|
272
315
|
.ft-typography--subtitle2 {
|
|
273
|
-
font-family: ${
|
|
274
|
-
font-size: ${
|
|
275
|
-
font-weight: ${
|
|
276
|
-
letter-spacing: ${
|
|
277
|
-
line-height: ${
|
|
278
|
-
text-transform: ${
|
|
316
|
+
font-family: ${Cs};
|
|
317
|
+
font-size: ${Es};
|
|
318
|
+
font-weight: ${ks};
|
|
319
|
+
letter-spacing: ${Rs};
|
|
320
|
+
line-height: ${Is};
|
|
321
|
+
text-transform: ${Ls};
|
|
279
322
|
}
|
|
280
323
|
|
|
281
|
-
`,
|
|
324
|
+
`,il=ft`
|
|
282
325
|
.ft-typography--body1 {
|
|
283
|
-
font-family: ${
|
|
284
|
-
font-size: ${
|
|
285
|
-
font-weight: ${
|
|
286
|
-
letter-spacing: ${
|
|
287
|
-
line-height: ${
|
|
288
|
-
text-transform: ${
|
|
289
|
-
}
|
|
290
|
-
`,
|
|
326
|
+
font-family: ${Us.fontFamily};
|
|
327
|
+
font-size: ${Us.fontSize};
|
|
328
|
+
font-weight: ${Us.fontWeight};
|
|
329
|
+
letter-spacing: ${Us.letterSpacing};
|
|
330
|
+
line-height: ${Us.lineHeight};
|
|
331
|
+
text-transform: ${Us.textTransform};
|
|
332
|
+
}
|
|
333
|
+
`,rl=ft`
|
|
291
334
|
.ft-typography--body2 {
|
|
292
|
-
font-family: ${
|
|
293
|
-
font-size: ${
|
|
294
|
-
font-weight: ${
|
|
295
|
-
letter-spacing: ${
|
|
296
|
-
line-height: ${
|
|
297
|
-
text-transform: ${
|
|
298
|
-
}
|
|
299
|
-
`,
|
|
335
|
+
font-family: ${_s};
|
|
336
|
+
font-size: ${As};
|
|
337
|
+
font-weight: ${Ts};
|
|
338
|
+
letter-spacing: ${Ws};
|
|
339
|
+
line-height: ${Ds};
|
|
340
|
+
text-transform: ${Fs};
|
|
341
|
+
}
|
|
342
|
+
`,nl=ft`
|
|
300
343
|
.ft-typography--caption {
|
|
301
|
-
font-family: ${
|
|
302
|
-
font-size: ${
|
|
303
|
-
font-weight: ${
|
|
304
|
-
letter-spacing: ${
|
|
305
|
-
line-height: ${
|
|
306
|
-
text-transform: ${
|
|
307
|
-
}
|
|
308
|
-
`,
|
|
344
|
+
font-family: ${Ms.fontFamily};
|
|
345
|
+
font-size: ${Ms.fontSize};
|
|
346
|
+
font-weight: ${Ms.fontWeight};
|
|
347
|
+
letter-spacing: ${Ms.letterSpacing};
|
|
348
|
+
line-height: ${Ms.lineHeight};
|
|
349
|
+
text-transform: ${Ms.textTransform};
|
|
350
|
+
}
|
|
351
|
+
`,al=ft`
|
|
309
352
|
.ft-typography--breadcrumb {
|
|
310
|
-
font-family: ${
|
|
311
|
-
font-size: ${
|
|
312
|
-
font-weight: ${
|
|
313
|
-
letter-spacing: ${
|
|
314
|
-
line-height: ${
|
|
315
|
-
text-transform: ${
|
|
316
|
-
}
|
|
317
|
-
`,
|
|
353
|
+
font-family: ${Bs};
|
|
354
|
+
font-size: ${Ps};
|
|
355
|
+
font-weight: ${js};
|
|
356
|
+
letter-spacing: ${zs};
|
|
357
|
+
line-height: ${Ks};
|
|
358
|
+
text-transform: ${Zs};
|
|
359
|
+
}
|
|
360
|
+
`,sl=ft`
|
|
318
361
|
.ft-typography--overline {
|
|
319
|
-
font-family: ${
|
|
320
|
-
font-size: ${
|
|
321
|
-
font-weight: ${
|
|
322
|
-
letter-spacing: ${
|
|
323
|
-
line-height: ${
|
|
324
|
-
text-transform: ${
|
|
325
|
-
}
|
|
326
|
-
`,
|
|
362
|
+
font-family: ${Hs};
|
|
363
|
+
font-size: ${Vs};
|
|
364
|
+
font-weight: ${Gs};
|
|
365
|
+
letter-spacing: ${qs};
|
|
366
|
+
line-height: ${Ys};
|
|
367
|
+
text-transform: ${Js};
|
|
368
|
+
}
|
|
369
|
+
`,ll=ft`
|
|
327
370
|
.ft-typography--button {
|
|
328
|
-
font-family: ${
|
|
329
|
-
font-size: ${
|
|
330
|
-
font-weight: ${
|
|
331
|
-
letter-spacing: ${
|
|
332
|
-
line-height: ${
|
|
333
|
-
text-transform: ${
|
|
334
|
-
}
|
|
335
|
-
`,
|
|
371
|
+
font-family: ${Xs.fontFamily};
|
|
372
|
+
font-size: ${Xs.fontSize};
|
|
373
|
+
font-weight: ${Xs.fontWeight};
|
|
374
|
+
letter-spacing: ${Xs.letterSpacing};
|
|
375
|
+
line-height: ${Xs.lineHeight};
|
|
376
|
+
text-transform: ${Xs.textTransform};
|
|
377
|
+
}
|
|
378
|
+
`,cl=ft`
|
|
336
379
|
.ft-typography {
|
|
337
380
|
vertical-align: inherit;
|
|
338
381
|
}
|
|
339
|
-
`,
|
|
340
|
-
.ft-typography--${
|
|
382
|
+
`,hl=[Object.keys(Go).map((t=>function(t){const e=Go[t];return ft`
|
|
383
|
+
.ft-typography--${dt(t)} {
|
|
341
384
|
font-family: ${e.fontFamily};
|
|
342
385
|
font-size: ${e.fontSize};
|
|
343
386
|
font-weight: ${e.fontWeight};
|
|
@@ -345,7 +388,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
345
388
|
line-height: ${e.lineHeight};
|
|
346
389
|
text-transform: ${e.textCase};
|
|
347
390
|
}
|
|
348
|
-
`}(t)))],
|
|
391
|
+
`}(t)))],dl={color:xo.extend("--ft-loader-color","",hi.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},fl=ft`
|
|
349
392
|
:host {
|
|
350
393
|
line-height: 0;
|
|
351
394
|
}
|
|
@@ -354,8 +397,8 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
354
397
|
display: inline-block;
|
|
355
398
|
position: relative;
|
|
356
399
|
|
|
357
|
-
width: ${
|
|
358
|
-
height: ${
|
|
400
|
+
width: ${dl.size};
|
|
401
|
+
height: ${dl.size};
|
|
359
402
|
}
|
|
360
403
|
|
|
361
404
|
.ft-loader div {
|
|
@@ -364,7 +407,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
364
407
|
width: 25%;
|
|
365
408
|
height: 25%;
|
|
366
409
|
border-radius: 50%;
|
|
367
|
-
background: ${
|
|
410
|
+
background: ${dl.color};
|
|
368
411
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
369
412
|
}
|
|
370
413
|
|
|
@@ -411,10 +454,10 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
411
454
|
transform: translate(0, 0);
|
|
412
455
|
}
|
|
413
456
|
100% {
|
|
414
|
-
transform: translate(calc(0.35 * ${
|
|
457
|
+
transform: translate(calc(0.35 * ${dl.size}), 0);
|
|
415
458
|
}
|
|
416
459
|
}
|
|
417
|
-
`,
|
|
460
|
+
`,ul={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},pl=ft`
|
|
418
461
|
:host, i.ft-icon {
|
|
419
462
|
display: inline-flex;
|
|
420
463
|
align-items: center;
|
|
@@ -423,14 +466,14 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
423
466
|
}
|
|
424
467
|
|
|
425
468
|
:host {
|
|
426
|
-
width: ${
|
|
427
|
-
height: ${
|
|
469
|
+
width: ${ul.size};
|
|
470
|
+
height: ${ul.size};
|
|
428
471
|
}
|
|
429
472
|
|
|
430
473
|
i.ft-icon {
|
|
431
474
|
width: 100%;
|
|
432
475
|
height: 100%;
|
|
433
|
-
font-size: ${
|
|
476
|
+
font-size: ${ul.size};
|
|
434
477
|
line-height: 1;
|
|
435
478
|
font-weight: normal;
|
|
436
479
|
text-transform: none;
|
|
@@ -441,28 +484,28 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
441
484
|
text-rendering: auto;
|
|
442
485
|
-webkit-font-smoothing: antialiased;
|
|
443
486
|
-moz-osx-font-smoothing: grayscale;
|
|
444
|
-
vertical-align: ${
|
|
487
|
+
vertical-align: ${ul.verticalAlign};
|
|
445
488
|
}
|
|
446
489
|
|
|
447
490
|
i.ft-icon.ft-icon--fluid-topics {
|
|
448
|
-
font-family: ${
|
|
491
|
+
font-family: ${ul.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
449
492
|
|
|
450
493
|
/* Ugly fix because font is broken */
|
|
451
|
-
font-size: calc(0.75 * ${
|
|
452
|
-
line-height: ${
|
|
494
|
+
font-size: calc(0.75 * ${ul.size});
|
|
495
|
+
line-height: ${ul.size};
|
|
453
496
|
position: relative;
|
|
454
497
|
top: -4%;
|
|
455
498
|
justify-content: center;
|
|
456
499
|
}
|
|
457
500
|
|
|
458
501
|
.ft-icon--file-format {
|
|
459
|
-
font-family: ${
|
|
502
|
+
font-family: ${ul.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
460
503
|
}
|
|
461
504
|
|
|
462
505
|
.ft-icon--material {
|
|
463
|
-
font-family: ${
|
|
506
|
+
font-family: ${ul.materialFontFamily}, "Material Icons", sans-serif;
|
|
464
507
|
}
|
|
465
|
-
`,
|
|
508
|
+
`,yl=xo.extend("--ft-button-color","",hi.colorPrimary),gl={backgroundColor:xo.extend("--ft-button-background-color","",hi.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",hi.borderRadiusL),color:yl,fontSize:xo.extend("--ft-button-font-size","",Xs.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",yl),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(hi.colorOpacityDisabled,"Design system")},bl=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",hi.colorOnPrimary)),vl={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",hi.colorPrimary)),color:bl,rippleColor:xo.extend("--ft-button-primary-ripple-color","",bl)},ml=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",hi.borderRadiusM)),xl=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),wl=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Ol=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Sl=[ft`
|
|
466
509
|
:host {
|
|
467
510
|
display: inline-block;
|
|
468
511
|
max-width: 100%;
|
|
@@ -473,7 +516,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
473
516
|
box-shadow: 0px 0px 0px transparent;
|
|
474
517
|
border: 0px solid transparent;
|
|
475
518
|
text-shadow: 0px 0px 0px transparent;
|
|
476
|
-
font-size: ${
|
|
519
|
+
font-size: ${gl.fontSize};
|
|
477
520
|
}
|
|
478
521
|
|
|
479
522
|
button:hover {
|
|
@@ -502,31 +545,31 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
502
545
|
border: none;
|
|
503
546
|
pointer-events: auto;
|
|
504
547
|
|
|
505
|
-
--ft-button-internal-line-height: max(calc(${
|
|
506
|
-
--ft-button-internal-color: ${
|
|
507
|
-
${
|
|
508
|
-
${
|
|
548
|
+
--ft-button-internal-line-height: max(calc(${gl.fontSize} + 2px), ${gl.iconSize});
|
|
549
|
+
--ft-button-internal-color: ${gl.color};
|
|
550
|
+
${wo(ul.size,gl.iconSize)};
|
|
551
|
+
${wo(ss.color,gl.rippleColor)};
|
|
509
552
|
|
|
510
|
-
border-radius: ${
|
|
511
|
-
padding: ${
|
|
512
|
-
background-color: ${
|
|
553
|
+
border-radius: ${gl.borderRadius};
|
|
554
|
+
padding: ${gl.verticalPadding} ${gl.horizontalPadding};
|
|
555
|
+
background-color: ${gl.backgroundColor};
|
|
513
556
|
color: var(--ft-button-internal-color);
|
|
514
557
|
-webkit-mask-image: radial-gradient(white, black);
|
|
515
558
|
}
|
|
516
559
|
|
|
517
560
|
.ft-button.ft-button--outlined {
|
|
518
561
|
border: 1px solid var(--ft-button-internal-color);
|
|
519
|
-
padding: calc(${
|
|
562
|
+
padding: calc(${gl.verticalPadding} - 1px) calc(${gl.horizontalPadding} - 1px);
|
|
520
563
|
}
|
|
521
564
|
|
|
522
565
|
.ft-button.ft-button--dense {
|
|
523
|
-
padding: ${
|
|
524
|
-
border-radius: ${
|
|
525
|
-
gap: ${
|
|
566
|
+
padding: ${xl} ${wl};
|
|
567
|
+
border-radius: ${ml};
|
|
568
|
+
gap: ${Ol};
|
|
526
569
|
}
|
|
527
570
|
|
|
528
571
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
529
|
-
padding: calc(${
|
|
572
|
+
padding: calc(${xl} - 1px) calc(${wl} - 1px);
|
|
530
573
|
}
|
|
531
574
|
|
|
532
575
|
.ft-button:not([disabled]):hover {
|
|
@@ -534,22 +577,22 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
534
577
|
}
|
|
535
578
|
|
|
536
579
|
.ft-button--round {
|
|
537
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
580
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${gl.verticalPadding});
|
|
538
581
|
}
|
|
539
582
|
|
|
540
583
|
.ft-button--round.ft-button--dense {
|
|
541
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
584
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${xl});
|
|
542
585
|
}
|
|
543
586
|
|
|
544
587
|
.ft-button[disabled] {
|
|
545
588
|
filter: grayscale(1);
|
|
546
|
-
opacity: ${
|
|
589
|
+
opacity: ${gl.opacityDisabled};
|
|
547
590
|
}
|
|
548
591
|
|
|
549
592
|
.ft-button.ft-button--primary {
|
|
550
|
-
background-color: ${
|
|
551
|
-
--ft-button-internal-color: ${
|
|
552
|
-
${
|
|
593
|
+
background-color: ${vl.backgroundColor};
|
|
594
|
+
--ft-button-internal-color: ${vl.color};
|
|
595
|
+
${wo(ss.color,vl.rippleColor)};
|
|
553
596
|
}
|
|
554
597
|
|
|
555
598
|
.ft-button:focus {
|
|
@@ -562,13 +605,13 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
562
605
|
white-space: nowrap;
|
|
563
606
|
text-overflow: ellipsis;
|
|
564
607
|
display: block;
|
|
565
|
-
margin: 0 ${
|
|
566
|
-
${
|
|
567
|
-
${
|
|
608
|
+
margin: 0 ${gl.iconPadding};
|
|
609
|
+
${wo(Xs.fontSize,"1em")};
|
|
610
|
+
${wo(Xs.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
568
611
|
}
|
|
569
612
|
|
|
570
613
|
.ft-button--dense .ft-button--label {
|
|
571
|
-
margin: 0 ${
|
|
614
|
+
margin: 0 ${Ol};
|
|
572
615
|
}
|
|
573
616
|
|
|
574
617
|
.ft-button--label[hidden] {
|
|
@@ -581,13 +624,13 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
581
624
|
}
|
|
582
625
|
|
|
583
626
|
.ft-button--label[hidden] + ft-icon {
|
|
584
|
-
margin: 0 calc(${
|
|
585
|
-
padding: 0 ${
|
|
627
|
+
margin: 0 calc(${gl.horizontalPadding} * -1);
|
|
628
|
+
padding: 0 ${gl.verticalPadding};
|
|
586
629
|
}
|
|
587
630
|
|
|
588
631
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
589
|
-
margin: 0 calc(${
|
|
590
|
-
padding: 0 ${
|
|
632
|
+
margin: 0 calc(${wl} * -1);
|
|
633
|
+
padding: 0 ${xl};
|
|
591
634
|
}
|
|
592
635
|
|
|
593
636
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -596,10 +639,10 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
596
639
|
}
|
|
597
640
|
|
|
598
641
|
ft-loader {
|
|
599
|
-
${
|
|
600
|
-
${
|
|
642
|
+
${wo(dl.size,gl.iconSize)};
|
|
643
|
+
${wo(dl.color,"var(--ft-button-internal-color)")};
|
|
601
644
|
}
|
|
602
|
-
`,
|
|
645
|
+
`,Dr],Nl={textColor:xo.extend("--ft-switch-text-color","",hi.colorOnSurfaceHigh),backgroundColor:xo.extend("--ft-switch-background-color","",hi.colorSurface),selectedTextColor:xo.extend("--ft-switch-selected-text-color","",hi.colorPrimary),selectedBackgroundColor:xo.extend("--ft-switch-selected-background-color","",hi.colorPrimary),borderColor:xo.extend("--ft-switch-border-color","",hi.colorOutline),borderRadius:xo.extend("--ft-switch-border-radius","",hi.borderRadiusL),fontSize:xo.extend("--ft-switch-font-size","",Xs.fontSize),iconSize:xo.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:xo.extend("--ft-switch-text-color","",hi.colorOnSurfaceMedium),rippleColor:xo.extend("--ft-switch-ripple-color","",hi.colorPrimary),outlineColor:xo.extend("--ft-switch-outline-color","",hi.colorPrimary)},$l={feedbackInputMinWidth:xo.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:xo.external(hi.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:xo.extend("--ft-reader-feedback-send-feedback-color","",hi.colorOnPrimary),sendFeedbackBackgroundColor:xo.extend("--ft-reader-feedback-send-feedback-background-color","",hi.colorPrimary),filledRatingColor:xo.extend("--ft-reader-feedback-filled-rating-color","",hi.colorPrimary),emptyRatingColor:xo.extend("--ft-reader-feedback-empty-rating-color","",hi.colorOnSurfaceMedium),mainTitleFontSize:xo.external(vs.fontSize,"Typography"),sectionTitleFontSize:xo.external(ms.fontSize,"Typography"),starsBackgroundColor:xo.create("--ft-reader-feedback-stars-background-color","","COLOR",hi.colorSurface)},Cl=ft`
|
|
603
646
|
.ft-reader-feedback {
|
|
604
647
|
box-sizing: border-box;
|
|
605
648
|
display: flex;
|
|
@@ -612,7 +655,7 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
612
655
|
flex-direction: row;
|
|
613
656
|
align-items: center;
|
|
614
657
|
margin-left: -6px;
|
|
615
|
-
${
|
|
658
|
+
${wo(gl.backgroundColor,$l.starsBackgroundColor)}
|
|
616
659
|
}
|
|
617
660
|
|
|
618
661
|
.ft-reader-feedback--rating, .ft-reader-feedback--feedback {
|
|
@@ -625,14 +668,14 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
625
668
|
}
|
|
626
669
|
|
|
627
670
|
.ft-reader-feedback--rating {
|
|
628
|
-
${
|
|
629
|
-
${
|
|
630
|
-
${
|
|
631
|
-
${
|
|
671
|
+
${wo(gl.color,$l.emptyRatingColor)};
|
|
672
|
+
${wo(gl.rippleColor,$l.filledRatingColor)};
|
|
673
|
+
${wo(Nl.textColor,$l.emptyRatingColor)};
|
|
674
|
+
${wo(Nl.selectedTextColor,$l.filledRatingColor)};
|
|
632
675
|
}
|
|
633
676
|
|
|
634
677
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
635
|
-
${
|
|
678
|
+
${wo(gl.color,$l.filledRatingColor)};
|
|
636
679
|
}
|
|
637
680
|
|
|
638
681
|
.ft-reader-feedback--feedback {
|
|
@@ -640,16 +683,16 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
640
683
|
}
|
|
641
684
|
|
|
642
685
|
.ft-reader-feedback--rating-date {
|
|
643
|
-
color: ${
|
|
686
|
+
color: ${$l.ratedDateColor};
|
|
644
687
|
}
|
|
645
688
|
|
|
646
689
|
.ft-reader-feedback--feedback ft-text-area {
|
|
647
|
-
min-width: ${
|
|
690
|
+
min-width: ${$l.feedbackInputMinWidth};
|
|
648
691
|
}
|
|
649
692
|
|
|
650
693
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
651
|
-
${
|
|
652
|
-
${
|
|
694
|
+
${wo(gl.color,$l.sendFeedbackColor)};
|
|
695
|
+
${wo(gl.backgroundColor,$l.sendFeedbackBackgroundColor)};
|
|
653
696
|
}
|
|
654
697
|
|
|
655
698
|
[part="buttons-container"] {
|
|
@@ -660,36 +703,25 @@ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
660
703
|
* @license
|
|
661
704
|
* Copyright 2020 Google LLC
|
|
662
705
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
663
|
-
*/,
|
|
664
|
-
<${
|
|
706
|
+
*/,El=Symbol.for(""),kl=t=>{if(t?.r===El)return t?._$litStatic$},Rl=t=>({_$litStatic$:t,r:El}),Il=new Map,Ll=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=kl(n));)l+=r+e[++c],h=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),h){const t=a.join("$$lit$$");void 0===(e=Il.get(t))&&(a.raw=a,Il.set(t,e=a)),o=s}return t(e,...o)})(j);var Ul;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Ul||(Ul={}));var _l=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Al extends kr{constructor(){super(...arguments),this.variant=Ul.body1}render(){return this.element?Ll`
|
|
707
|
+
<${Rl(this.element)}
|
|
665
708
|
class="ft-typography ft-typography--${this.variant}">
|
|
666
709
|
<slot></slot>
|
|
667
|
-
</${
|
|
668
|
-
`:
|
|
710
|
+
</${Rl(this.element)}>
|
|
711
|
+
`:Ll`
|
|
669
712
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
670
|
-
`}}
|
|
671
|
-
/**
|
|
672
|
-
* @license
|
|
673
|
-
* Copyright 2017 Google LLC
|
|
674
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
675
|
-
*/
|
|
676
|
-
const Fa=1,Pa=2,za=t=>(...e)=>({_$litDirective$:t,values:e});class Ba{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)}}
|
|
677
|
-
/**
|
|
678
|
-
* @license
|
|
679
|
-
* Copyright 2018 Google LLC
|
|
680
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
681
|
-
*/const ja=za(class extends Ba{constructor(t){if(super(t),t.type!==Fa||"class"!==t.name||t.strings?.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]){if(void 0===this.it){this.it=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]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return st}});var Ka=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Za extends Gi{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.originX=0,this.originY=0,this.debouncer=new n(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.setupDebouncer=new n(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!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 de`
|
|
713
|
+
`}}Al.styles=[Qs,tl,el,ol,il,rl,nl,al,sl,ll,cl,...hl],_l([Oe()],Al.prototype,"element",void 0),_l([Oe()],Al.prototype,"variant",void 0),yo("ft-typography")(Al);var Tl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Wl extends kr{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.originX=0,this.originY=0,this.debouncer=new so(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.setupDebouncer=new so(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!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 Jt`
|
|
682
714
|
<style>
|
|
683
715
|
.ft-ripple .ft-ripple--effect {
|
|
684
716
|
left: ${this.originX}px;
|
|
685
717
|
top: ${this.originY}px;
|
|
686
718
|
}
|
|
687
719
|
</style>
|
|
688
|
-
<div class="${
|
|
720
|
+
<div class="${Ke(t)}">
|
|
689
721
|
<div class="ft-ripple--background"></div>
|
|
690
722
|
<div class="ft-ripple--effect"></div>
|
|
691
723
|
</div>
|
|
692
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,
|
|
724
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),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)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}Wl.elementDefinitions={},Wl.styles=ps,Tl([Oe({type:Boolean})],Wl.prototype,"primary",void 0),Tl([Oe({type:Boolean})],Wl.prototype,"secondary",void 0),Tl([Oe({type:Boolean})],Wl.prototype,"unbounded",void 0),Tl([Oe({type:Boolean})],Wl.prototype,"activated",void 0),Tl([Oe({type:Boolean})],Wl.prototype,"selected",void 0),Tl([Oe({type:Boolean})],Wl.prototype,"disabled",void 0),Tl([Se()],Wl.prototype,"hovered",void 0),Tl([Se()],Wl.prototype,"focused",void 0),Tl([Se()],Wl.prototype,"pressed",void 0),Tl([Se()],Wl.prototype,"rippling",void 0),Tl([Se()],Wl.prototype,"originX",void 0),Tl([Se()],Wl.prototype,"originY",void 0),Tl([Ce(".ft-ripple")],Wl.prototype,"ripple",void 0),Tl([Ce(".ft-ripple--effect")],Wl.prototype,"rippleEffect",void 0),yo("ft-ripple")(Wl);const Dl=xo.create("--ft-tooltip-distance","","SIZE","4px"),Fl=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ml=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Bl=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Pl=xo.external(hi.borderRadiusS,"Design system"),jl=xo.create("--ft-tooltip-max-width","","SIZE","150px"),zl=ft`
|
|
693
725
|
.ft-tooltip--container {
|
|
694
726
|
display: block;
|
|
695
727
|
}
|
|
@@ -704,21 +736,21 @@ const Fa=1,Pa=2,za=t=>(...e)=>({_$litDirective$:t,values:e});class Ba{constructo
|
|
|
704
736
|
box-sizing: border-box;
|
|
705
737
|
overflow: hidden;
|
|
706
738
|
width: max-content;
|
|
707
|
-
max-width: ${
|
|
739
|
+
max-width: ${jl};
|
|
708
740
|
text-align: center;
|
|
709
|
-
padding: ${
|
|
710
|
-
z-index: ${
|
|
741
|
+
padding: ${Dl};
|
|
742
|
+
z-index: ${Bl};
|
|
711
743
|
}
|
|
712
744
|
|
|
713
745
|
.ft-tooltip--content {
|
|
714
746
|
padding: 4px 8px;
|
|
715
|
-
border-radius: ${
|
|
716
|
-
background-color: ${
|
|
717
|
-
color: ${
|
|
747
|
+
border-radius: ${Pl};
|
|
748
|
+
background-color: ${Ml};
|
|
749
|
+
color: ${Fl};
|
|
718
750
|
position: relative;
|
|
719
751
|
word-break: break-word;
|
|
720
752
|
}
|
|
721
|
-
`;var
|
|
753
|
+
`;var Kl,Zl,Hl,Vl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gl extends kr{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 so,this.revealDebouncer=new so}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Jt`
|
|
722
754
|
<div part="container"
|
|
723
755
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
724
756
|
@mouseenter=${this.onHover}
|
|
@@ -736,18 +768,12 @@ const Fa=1,Pa=2,za=t=>(...e)=>({_$litDirective$:t,values:e});class Ba{constructo
|
|
|
736
768
|
</div>
|
|
737
769
|
</div>
|
|
738
770
|
</div>
|
|
739
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await 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(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",
|
|
740
|
-
/**
|
|
741
|
-
* @license
|
|
742
|
-
* Copyright 2017 Google LLC
|
|
743
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
744
|
-
*/
|
|
745
|
-
class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===lt||null==t)return this.vt=void 0,this.et=t;if(t===st)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}es.directiveName="unsafeHTML",es.resultType=1;const is=za(es);var os,rs,ns;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE=""}(os||(os={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(rs||(rs={})),new Map([...["abw"].map((t=>[t,rs.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,rs.AUDIO])),...["avi"].map((t=>[t,rs.AVI])),...["chm","xhs"].map((t=>[t,rs.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,rs.CODE])),...["csv"].map((t=>[t,rs.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,rs.DITA])),...["epub"].map((t=>[t,rs.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,rs.EXCEL])),...["flac"].map((t=>[t,rs.FLAC])),...["gif"].map((t=>[t,rs.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,rs.GZIP])),...["html","htm","xhtml"].map((t=>[t,rs.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,rs.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,rs.JPEG])),...["json"].map((t=>[t,rs.JSON])),...["m4a","m4p"].map((t=>[t,rs.M4A])),...["mov","qt"].map((t=>[t,rs.MOV])),...["mp3"].map((t=>[t,rs.MP3])),...["mp4","m4v"].map((t=>[t,rs.MP4])),...["ogg","oga"].map((t=>[t,rs.OGG])),...["pdf","ps"].map((t=>[t,rs.PDF])),...["png"].map((t=>[t,rs.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,rs.POWERPOINT])),...["rar"].map((t=>[t,rs.RAR])),...["stp"].map((t=>[t,rs.STP])),...["txt","rtf","md","mdown"].map((t=>[t,rs.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,rs.VIDEO])),...["wav"].map((t=>[t,rs.WAV])),...["wma"].map((t=>[t,rs.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,rs.WORD])),...["xml","xsl","rdf"].map((t=>[t,rs.XML])),...["yaml","yml","x-yaml"].map((t=>[t,rs.YAML])),...["zip"].map((t=>[t,rs.ZIP]))]),rs.ABW,rs.AUDIO,rs.AVI,rs.CHM,rs.CODE,rs.CSV,rs.DITA,rs.EPUB,rs.EXCEL,rs.FLAC,rs.GIF,rs.GZIP,rs.HTML,rs.IMAGE,rs.JPEG,rs.JSON,rs.M4A,rs.MOV,rs.MP3,rs.MP4,rs.OGG,rs.PDF,rs.PNG,rs.POWERPOINT,rs.RAR,rs.STP,rs.TEXT,rs.UNKNOWN,rs.VIDEO,rs.WAV,rs.WMA,rs.WORD,rs.XML,rs.YAML,rs.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ns||(ns={}));var as=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ss extends Gi{constructor(){super(...arguments),this.resolvedIcon=pe}render(){const t=this.variant&&Object.values(ns).includes(this.variant)?this.variant:ns.fluid_topics,e=t!==ns.material||!!this.value;return de`
|
|
771
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await 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(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",br(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),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())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Gl.elementDefinitions={"ft-typography":Al},Gl.styles=zl,Vl([Oe()],Gl.prototype,"text",void 0),Vl([Oe({type:Boolean})],Gl.prototype,"manual",void 0),Vl([Oe({type:Boolean})],Gl.prototype,"inline",void 0),Vl([Oe({type:Number})],Gl.prototype,"delay",void 0),Vl([Oe()],Gl.prototype,"position",void 0),Vl([Re()],Gl.prototype,"slotNodes",void 0),Vl([Ce(".ft-tooltip--container")],Gl.prototype,"container",void 0),Vl([Ce(".ft-tooltip")],Gl.prototype,"tooltip",void 0),Vl([Ce(".ft-tooltip--content")],Gl.prototype,"tooltipContent",void 0),Vl([Se()],Gl.prototype,"visible",void 0),Vl([Ne({passive:!0})],Gl.prototype,"onTouch",null),Vl([Ne({passive:!0})],Gl.prototype,"onHover",null),Vl([Ne({passive:!0})],Gl.prototype,"onOut",null),Vl([Ne({passive:!0})],Gl.prototype,"onClick",null),yo("ft-tooltip")(Gl),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE=""}(Kl||(Kl={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Zl||(Zl={})),new Map([...["abw"].map((t=>[t,Zl.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,Zl.AUDIO])),...["avi"].map((t=>[t,Zl.AVI])),...["chm","xhs"].map((t=>[t,Zl.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,Zl.CODE])),...["csv"].map((t=>[t,Zl.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Zl.DITA])),...["epub"].map((t=>[t,Zl.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Zl.EXCEL])),...["flac"].map((t=>[t,Zl.FLAC])),...["gif"].map((t=>[t,Zl.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Zl.GZIP])),...["html","htm","xhtml"].map((t=>[t,Zl.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,Zl.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Zl.JPEG])),...["json"].map((t=>[t,Zl.JSON])),...["m4a","m4p"].map((t=>[t,Zl.M4A])),...["mov","qt"].map((t=>[t,Zl.MOV])),...["mp3"].map((t=>[t,Zl.MP3])),...["mp4","m4v"].map((t=>[t,Zl.MP4])),...["ogg","oga"].map((t=>[t,Zl.OGG])),...["pdf","ps"].map((t=>[t,Zl.PDF])),...["png"].map((t=>[t,Zl.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Zl.POWERPOINT])),...["rar"].map((t=>[t,Zl.RAR])),...["stp"].map((t=>[t,Zl.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Zl.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,Zl.VIDEO])),...["wav"].map((t=>[t,Zl.WAV])),...["wma"].map((t=>[t,Zl.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Zl.WORD])),...["xml","xsl","rdf"].map((t=>[t,Zl.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Zl.YAML])),...["zip"].map((t=>[t,Zl.ZIP]))]),Zl.ABW,Zl.AUDIO,Zl.AVI,Zl.CHM,Zl.CODE,Zl.CSV,Zl.DITA,Zl.EPUB,Zl.EXCEL,Zl.FLAC,Zl.GIF,Zl.GZIP,Zl.HTML,Zl.IMAGE,Zl.JPEG,Zl.JSON,Zl.M4A,Zl.MOV,Zl.MP3,Zl.MP4,Zl.OGG,Zl.PDF,Zl.PNG,Zl.POWERPOINT,Zl.RAR,Zl.STP,Zl.TEXT,Zl.UNKNOWN,Zl.VIDEO,Zl.WAV,Zl.WMA,Zl.WORD,Zl.XML,Zl.YAML,Zl.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Hl||(Hl={}));var ql=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Yl extends kr{constructor(){super(...arguments),this.resolvedIcon=te}render(){const t=this.variant&&Object.values(Hl).includes(this.variant)?this.variant:Hl.fluid_topics,e=t!==Hl.material||!!this.value;return Jt`
|
|
746
772
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
747
|
-
${
|
|
773
|
+
${Je(this.resolvedIcon)}
|
|
748
774
|
<slot ?hidden=${e}></slot>
|
|
749
775
|
</i>
|
|
750
|
-
`}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
|
|
776
|
+
`}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 o=this.value||this.textContent;switch(this.variant){case Hl.file_format:this.resolvedIcon=null!==(t=Zl[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Hl.material:this.resolvedIcon=this.value||te;break;default:this.resolvedIcon=null!==(e=Kl[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Yl.elementDefinitions={},Yl.styles=pl,ql([Oe()],Yl.prototype,"variant",void 0),ql([Oe()],Yl.prototype,"value",void 0),ql([Se()],Yl.prototype,"resolvedIcon",void 0),ql([Ce("slot")],Yl.prototype,"slottedContent",void 0),yo("ft-icon")(Yl);const Jl={borderRadiusLeft:xo.extend("--ft-switch-option-border-radius-left","",hi.borderRadiusL),borderRadiusRight:xo.extend("--ft-switch-option-border-radius-right","",hi.borderRadiusL),borderWidthLeft:xo.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:xo.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:xo.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Xl=ft`
|
|
751
777
|
.ft-switch-option {
|
|
752
778
|
position: relative;
|
|
753
779
|
display: inline-block;
|
|
@@ -761,20 +787,20 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
761
787
|
}
|
|
762
788
|
|
|
763
789
|
.ft-switch-option--content {
|
|
764
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
765
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
790
|
+
--ft-switch-option-internal-line-height: calc(${Nl.fontSize} + 2px);
|
|
791
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Nl.iconSize});
|
|
766
792
|
|
|
767
793
|
border-style: solid;
|
|
768
|
-
border-color: ${
|
|
769
|
-
border-width: ${
|
|
770
|
-
border-radius: ${
|
|
794
|
+
border-color: ${Nl.borderColor};
|
|
795
|
+
border-width: ${Jl.borderWidthVertical} ${Jl.borderWidthRight} ${Jl.borderWidthVertical} ${Jl.borderWidthLeft};
|
|
796
|
+
border-radius: ${Jl.borderRadiusLeft} ${Jl.borderRadiusRight} ${Jl.borderRadiusRight} ${Jl.borderRadiusLeft};
|
|
771
797
|
display: flex;
|
|
772
798
|
align-items: center;
|
|
773
799
|
justify-content: center;
|
|
774
800
|
overflow: hidden;
|
|
775
|
-
${
|
|
801
|
+
${wo(ul.size,Nl.iconSize)};
|
|
776
802
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
777
|
-
background-color: ${
|
|
803
|
+
background-color: ${Nl.backgroundColor};
|
|
778
804
|
-webkit-mask-image: radial-gradient(white, black);
|
|
779
805
|
}
|
|
780
806
|
|
|
@@ -783,28 +809,28 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
783
809
|
}
|
|
784
810
|
|
|
785
811
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
786
|
-
background-color: ${
|
|
787
|
-
border-radius: ${
|
|
812
|
+
background-color: ${Nl.selectedBackgroundColor};
|
|
813
|
+
border-radius: ${Jl.borderRadiusLeft} ${Jl.borderRadiusRight} ${Jl.borderRadiusRight} ${Jl.borderRadiusLeft};
|
|
788
814
|
position: absolute;
|
|
789
815
|
inset: 0;
|
|
790
816
|
content: "";
|
|
791
817
|
z-index: 1;
|
|
792
|
-
opacity: ${
|
|
818
|
+
opacity: ${hi.opacityPrimaryOnSurfaceSelected};
|
|
793
819
|
}
|
|
794
820
|
|
|
795
821
|
.ft-switch-option--label {
|
|
796
|
-
color: ${
|
|
822
|
+
color: ${Nl.textColor};
|
|
797
823
|
overflow: hidden;
|
|
798
824
|
white-space: nowrap;
|
|
799
825
|
text-overflow: ellipsis;
|
|
800
826
|
display: block;
|
|
801
827
|
margin: 0 8px;
|
|
802
|
-
${
|
|
803
|
-
${
|
|
828
|
+
${wo(Xs.fontSize,Nl.fontSize)};
|
|
829
|
+
${wo(Xs.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
804
830
|
}
|
|
805
831
|
|
|
806
832
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
807
|
-
color: ${
|
|
833
|
+
color: ${Nl.selectedTextColor};
|
|
808
834
|
}
|
|
809
835
|
|
|
810
836
|
.ft-switch-option--label[hidden] {
|
|
@@ -812,7 +838,7 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
812
838
|
}
|
|
813
839
|
|
|
814
840
|
.ft-switch-option--ripple {
|
|
815
|
-
${
|
|
841
|
+
${wo(ss.color,Nl.rippleColor)};
|
|
816
842
|
}
|
|
817
843
|
|
|
818
844
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -825,20 +851,20 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
825
851
|
|
|
826
852
|
ft-icon {
|
|
827
853
|
flex-shrink: 0;
|
|
828
|
-
color: ${
|
|
854
|
+
color: ${Nl.iconColor};
|
|
829
855
|
}
|
|
830
856
|
|
|
831
857
|
.ft-switch-option--selected ft-icon {
|
|
832
|
-
color: ${
|
|
858
|
+
color: ${Nl.selectedTextColor};
|
|
833
859
|
}
|
|
834
|
-
`;var
|
|
835
|
-
<label part="label" for="input" class=${
|
|
860
|
+
`;var Ql=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class tc extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class ec extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class oc extends kr{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new ec(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(Jt`
|
|
861
|
+
<label part="label" for="input" class=${Ke(t)}
|
|
836
862
|
@click=${this.onChange}>
|
|
837
863
|
<div class="ft-switch-option--content">
|
|
838
864
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
839
865
|
<ft-typography part="text"
|
|
840
866
|
variant="button"
|
|
841
|
-
class="ft-switch-option--label ${
|
|
867
|
+
class="ft-switch-option--label ${Qa?"ft-safari-ellipsis-fix":""}"
|
|
842
868
|
?hidden=${!this.hasTextContent()}>
|
|
843
869
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
844
870
|
</ft-typography>
|
|
@@ -847,29 +873,29 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
847
873
|
</label>
|
|
848
874
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
849
875
|
.checked=${this.selected}>
|
|
850
|
-
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:
|
|
876
|
+
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:Jt`
|
|
851
877
|
<ft-tooltip part="tooltip"
|
|
852
878
|
text="${this.getLabel()}"
|
|
853
879
|
position="${this.tooltipPosition}">
|
|
854
880
|
${t}
|
|
855
881
|
</ft-tooltip>
|
|
856
|
-
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new
|
|
882
|
+
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new tc(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Jt`
|
|
857
883
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
858
|
-
`:
|
|
859
|
-
<div @keydown=${this.onKeyDown} tabindex="0" class="${
|
|
884
|
+
`:te}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()}}oc.elementDefinitions={"ft-ripple":Wl,"ft-typography":Al,"ft-tooltip":Gl,"ft-icon":Yl},oc.styles=[Mr,Xl],Ql([Oe()],oc.prototype,"value",void 0),Ql([Oe()],oc.prototype,"icon",void 0),Ql([Oe()],oc.prototype,"iconVariant",void 0),Ql([Oe()],oc.prototype,"label",void 0),Ql([Oe()],oc.prototype,"tooltipPosition",void 0),Ql([Oe({type:Boolean,reflect:!0})],oc.prototype,"selected",void 0),Ql([Oe({type:Boolean})],oc.prototype,"trailingIcon",void 0),Ql([Oe({type:Boolean})],oc.prototype,"unselectable",void 0),Ql([Ce(".ft-switch-option--content slot")],oc.prototype,"slottedContent",void 0),Ql([Ce(".ft-switch-option--input")],oc.prototype,"input",void 0);var ic=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rc extends CustomEvent{constructor(t){super("change",{detail:t})}}class nc extends kr{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}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Jt`
|
|
885
|
+
<div @keydown=${this.onKeyDown} tabindex="0" class="${Ke(t)}">
|
|
860
886
|
<slot @slotchange=${this.onSlotchange}
|
|
861
887
|
@option-change=${this.onOptionChangeByScript}
|
|
862
888
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
863
889
|
></slot>
|
|
864
890
|
</div>
|
|
865
|
-
`}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
|
|
891
|
+
`}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 oc&&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)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new rc(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}nc.elementDefinitions={},nc.styles=ft`
|
|
866
892
|
:host {
|
|
867
893
|
display: inline-block;
|
|
868
894
|
}
|
|
869
895
|
|
|
870
896
|
.ft-switch {
|
|
871
|
-
border-radius: ${
|
|
872
|
-
outline-color: ${
|
|
897
|
+
border-radius: ${Nl.borderRadius};
|
|
898
|
+
outline-color: ${Nl.outlineColor};
|
|
873
899
|
}
|
|
874
900
|
|
|
875
901
|
.ft-switch slot {
|
|
@@ -878,25 +904,25 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
878
904
|
}
|
|
879
905
|
|
|
880
906
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
881
|
-
${
|
|
882
|
-
${
|
|
883
|
-
${
|
|
907
|
+
${wo(Jl.borderRadiusLeft,"0")};
|
|
908
|
+
${wo(Jl.borderRadiusRight,"0")};
|
|
909
|
+
${wo(Jl.borderWidthLeft,"0")};
|
|
884
910
|
}
|
|
885
911
|
|
|
886
912
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
887
|
-
${
|
|
888
|
-
${
|
|
913
|
+
${wo(Jl.borderRadiusLeft,Nl.borderRadius)};
|
|
914
|
+
${wo(Jl.borderWidthLeft,"1px")};
|
|
889
915
|
}
|
|
890
916
|
|
|
891
917
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
892
|
-
${
|
|
918
|
+
${wo(Jl.borderRadiusRight,Nl.borderRadius)};
|
|
893
919
|
}
|
|
894
920
|
|
|
895
921
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
896
922
|
--ft-switch-internal-vertical-padding: 2px;
|
|
897
923
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
898
924
|
}
|
|
899
|
-
`,
|
|
925
|
+
`,ic([Oe({type:Boolean})],nc.prototype,"dense",void 0),ic([Oe({type:Boolean})],nc.prototype,"unselectable",void 0),ic([Ce(".ft-switch slot")],nc.prototype,"slottedContent",void 0),ic([Se()],nc.prototype,"selectedOption",void 0),ic([Ce(".ft-switch")],nc.prototype,"ftSwitchDiv",void 0),yo("ft-switch")(nc),yo("ft-switch-option")(oc);const ac=xo.external(hi.colorOutline,"Design system"),sc=xo.external(hi.colorOnSurfaceMedium,"Design system"),lc=ft`
|
|
900
926
|
:host {
|
|
901
927
|
display: block;
|
|
902
928
|
}
|
|
@@ -907,17 +933,17 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
907
933
|
|
|
908
934
|
ft-icon {
|
|
909
935
|
transform: rotate(-45deg);
|
|
910
|
-
color: ${
|
|
936
|
+
color: ${ac};
|
|
911
937
|
}
|
|
912
938
|
|
|
913
939
|
.ft-resizer--dragging ft-icon,
|
|
914
940
|
.ft-resizer:hover ft-icon {
|
|
915
|
-
color: ${
|
|
941
|
+
color: ${sc};
|
|
916
942
|
}
|
|
917
|
-
`;var
|
|
943
|
+
`;var cc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hc extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class dc extends kr{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Hl.material,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 Jt`
|
|
918
944
|
<style>
|
|
919
945
|
.ft-resizer {
|
|
920
|
-
cursor: ${
|
|
946
|
+
cursor: ${dt(this.cursor)}
|
|
921
947
|
}
|
|
922
948
|
</style>
|
|
923
949
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
@@ -925,25 +951,25 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
925
951
|
@touchstart=${this.initDragFromTouch}>
|
|
926
952
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
927
953
|
</div>
|
|
928
|
-
`}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
|
|
954
|
+
`}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 o=this.fixedWidth+t-this.startX,i=this.fixedHeight+e-this.startY;this.dispatchEvent(new hc(o,i))}}dc.elementDefinitions={"ft-icon":Yl},dc.styles=[Dr,lc],cc([Oe({type:Number})],dc.prototype,"initialWidth",void 0),cc([Oe({type:Number})],dc.prototype,"initialHeight",void 0),cc([Oe()],dc.prototype,"icon",void 0),cc([Oe()],dc.prototype,"iconVariant",void 0),cc([Oe()],dc.prototype,"cursor",void 0),cc([Se()],dc.prototype,"dragging",void 0),cc([Ne({passive:!0})],dc.prototype,"initDragFromMouse",null),cc([Ne({passive:!0})],dc.prototype,"initDragFromTouch",null),yo("ft-resizer")(dc);const fc={fontSize:xo.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:xo.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:xo.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:xo.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:xo.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:xo.extend("--ft-input-label-border-color","",hi.colorOutline),textColor:xo.extend("--ft-input-label-text-color","",hi.colorOnSurfaceMedium),disabledTextColor:xo.extend("--ft-input-label-disabled-text-color","",hi.colorOnSurfaceDisabled),colorSurface:xo.external(hi.colorSurface,"Design system"),borderRadiusS:xo.external(hi.borderRadiusS,"Design system"),colorError:xo.external(hi.colorError,"Design system")},uc=ft`
|
|
929
955
|
.ft-input-label {
|
|
930
956
|
position: absolute;
|
|
931
957
|
inset: 0;
|
|
932
958
|
display: flex;
|
|
933
|
-
background-color: ${
|
|
934
|
-
border-radius: ${
|
|
959
|
+
background-color: ${fc.colorSurface};
|
|
960
|
+
border-radius: ${fc.borderRadiusS} ${fc.borderRadiusS} 0 0;
|
|
935
961
|
}
|
|
936
962
|
|
|
937
963
|
.ft-input-label--outlined {
|
|
938
|
-
border-radius: ${
|
|
964
|
+
border-radius: ${fc.borderRadiusS};
|
|
939
965
|
}
|
|
940
966
|
|
|
941
967
|
.ft-input-label {
|
|
942
|
-
border-color: ${
|
|
968
|
+
border-color: ${fc.borderColor};
|
|
943
969
|
}
|
|
944
970
|
|
|
945
971
|
.ft-input-label.ft-input-label--in-error {
|
|
946
|
-
border-color: ${
|
|
972
|
+
border-color: ${fc.colorError}
|
|
947
973
|
}
|
|
948
974
|
|
|
949
975
|
.ft-input-label:before,
|
|
@@ -956,7 +982,7 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
956
982
|
}
|
|
957
983
|
|
|
958
984
|
.ft-input-label:before {
|
|
959
|
-
width: calc(${
|
|
985
|
+
width: calc(${fc.horizontalSpacing} - 4px);
|
|
960
986
|
flex-shrink: 0;
|
|
961
987
|
}
|
|
962
988
|
|
|
@@ -972,20 +998,20 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
972
998
|
border-bottom-width: 1px;
|
|
973
999
|
border-bottom-style: solid;
|
|
974
1000
|
border-color: inherit;
|
|
975
|
-
color: ${
|
|
1001
|
+
color: ${fc.textColor};
|
|
976
1002
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
977
|
-
max-width: calc(${
|
|
1003
|
+
max-width: calc(${fc.labelMaxWidth} - 2 * (${fc.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
978
1004
|
text-overflow: ellipsis;
|
|
979
|
-
${
|
|
980
|
-
${
|
|
1005
|
+
${wo(Ms.fontSize,fc.fontSize)};
|
|
1006
|
+
${wo(Ms.lineHeight,fc.fontSize)};
|
|
981
1007
|
}
|
|
982
1008
|
|
|
983
1009
|
.ft-input-label--in-error .ft-input-label--text {
|
|
984
|
-
color: ${
|
|
1010
|
+
color: ${fc.colorError}
|
|
985
1011
|
}
|
|
986
1012
|
|
|
987
1013
|
.ft-input-label--disabled .ft-input-label--text {
|
|
988
|
-
color: ${
|
|
1014
|
+
color: ${fc.disabledTextColor};
|
|
989
1015
|
}
|
|
990
1016
|
|
|
991
1017
|
.ft-input-label--hidden-text {
|
|
@@ -1002,19 +1028,19 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
1002
1028
|
overflow: hidden;
|
|
1003
1029
|
white-space: nowrap;
|
|
1004
1030
|
text-overflow: ellipsis;
|
|
1005
|
-
padding: ${
|
|
1006
|
-
margin: calc(${
|
|
1031
|
+
padding: ${fc.verticalSpacing} 4px;
|
|
1032
|
+
margin: calc(${fc.verticalSpacing} * -1) 0;
|
|
1007
1033
|
max-width: 100%;
|
|
1008
1034
|
box-sizing: border-box;
|
|
1009
1035
|
}
|
|
1010
1036
|
|
|
1011
1037
|
.ft-input-label--raised .ft-input-label--text {
|
|
1012
|
-
${
|
|
1013
|
-
${
|
|
1038
|
+
${wo(Ms.fontSize,fc.raisedFontSize)};
|
|
1039
|
+
${wo(Ms.lineHeight,fc.raisedFontSize)};
|
|
1014
1040
|
}
|
|
1015
1041
|
|
|
1016
1042
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1017
|
-
top: ${
|
|
1043
|
+
top: ${fc.verticalSpacing};
|
|
1018
1044
|
}
|
|
1019
1045
|
|
|
1020
1046
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -1027,36 +1053,36 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
1027
1053
|
.ft-input-label--outlined:before {
|
|
1028
1054
|
border-left-width: 1px;
|
|
1029
1055
|
border-left-style: solid;
|
|
1030
|
-
border-radius: ${
|
|
1056
|
+
border-radius: ${fc.borderRadiusS} 0 0 ${fc.borderRadiusS};
|
|
1031
1057
|
}
|
|
1032
1058
|
|
|
1033
1059
|
.ft-input-label--outlined:after {
|
|
1034
1060
|
border-right-width: 1px;
|
|
1035
1061
|
border-right-style: solid;
|
|
1036
|
-
border-radius: 0 ${
|
|
1062
|
+
border-radius: 0 ${fc.borderRadiusS} ${fc.borderRadiusS} 0;
|
|
1037
1063
|
}
|
|
1038
1064
|
|
|
1039
1065
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1040
1066
|
padding: 2px 4px;
|
|
1041
|
-
z-index: ${
|
|
1042
|
-
background-color: ${
|
|
1043
|
-
border-radius: ${
|
|
1067
|
+
z-index: ${fc.raisedZIndex};
|
|
1068
|
+
background-color: ${fc.colorSurface};
|
|
1069
|
+
border-radius: ${fc.borderRadiusS};
|
|
1044
1070
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
1045
1071
|
}
|
|
1046
1072
|
|
|
1047
1073
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1048
1074
|
border-top: none;
|
|
1049
1075
|
}
|
|
1050
|
-
`;var
|
|
1051
|
-
<div class="${
|
|
1052
|
-
${this.text?
|
|
1076
|
+
`;var pc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class yc extends kr{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 Jt`
|
|
1077
|
+
<div class="${Ke(t)}">
|
|
1078
|
+
${this.text?Jt`
|
|
1053
1079
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1054
1080
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
1055
1081
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1056
1082
|
</div>
|
|
1057
1083
|
`:null}
|
|
1058
1084
|
</div>
|
|
1059
|
-
`}}
|
|
1085
|
+
`}}yc.elementDefinitions={},yc.styles=[nl,uc],pc([Oe({type:String})],yc.prototype,"text",void 0),pc([Oe({type:Boolean})],yc.prototype,"raised",void 0),pc([Oe({type:Boolean})],yc.prototype,"outlined",void 0),pc([Oe({type:Boolean})],yc.prototype,"disabled",void 0),pc([Oe({type:Boolean})],yc.prototype,"error",void 0),yo("ft-input-label")(yc);const gc={fontSize:xo.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:xo.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:xo.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:xo.extend("--ft-text-area-helper-color","",hi.colorOnSurfaceMedium),colorPrimary:xo.external(hi.colorPrimary,"Design system"),colorOnSurface:xo.external(hi.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xo.external(hi.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xo.external(hi.borderRadiusS,"Design system"),colorError:xo.external(hi.colorError,"Design system")},bc=ft`
|
|
1060
1086
|
*:focus {
|
|
1061
1087
|
outline: none;
|
|
1062
1088
|
}
|
|
@@ -1068,10 +1094,10 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
1068
1094
|
}
|
|
1069
1095
|
|
|
1070
1096
|
ft-input-label {
|
|
1071
|
-
${
|
|
1072
|
-
${
|
|
1073
|
-
${
|
|
1074
|
-
${
|
|
1097
|
+
${wo(fc.fontSize,gc.fontSize)};
|
|
1098
|
+
${wo(fc.raisedFontSize,gc.labelSize)};
|
|
1099
|
+
${wo(fc.verticalSpacing,gc.verticalSpacing)};
|
|
1100
|
+
${wo(fc.horizontalSpacing,gc.horizontalSpacing)};
|
|
1075
1101
|
}
|
|
1076
1102
|
|
|
1077
1103
|
.ft-text-area--main-panel {
|
|
@@ -1089,8 +1115,8 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
1089
1115
|
}
|
|
1090
1116
|
|
|
1091
1117
|
.ft-text-area--input-panel ft-ripple {
|
|
1092
|
-
${
|
|
1093
|
-
${
|
|
1118
|
+
${wo(ss.opacityContentOnSurfaceHover,"0.08")};
|
|
1119
|
+
${wo(ss.opacityContentOnSurfacePressed,"0.04")};
|
|
1094
1120
|
}
|
|
1095
1121
|
|
|
1096
1122
|
.ft-text-area--input {
|
|
@@ -1102,12 +1128,12 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
1102
1128
|
align-self: stretch;
|
|
1103
1129
|
resize: none;
|
|
1104
1130
|
|
|
1105
|
-
${
|
|
1106
|
-
${
|
|
1107
|
-
color: ${
|
|
1131
|
+
${wo(Us.fontSize,gc.fontSize)};
|
|
1132
|
+
${wo(Us.lineHeight,gc.fontSize)};
|
|
1133
|
+
color: ${gc.colorOnSurface};
|
|
1108
1134
|
|
|
1109
|
-
padding: 0 ${
|
|
1110
|
-
margin: calc(${
|
|
1135
|
+
padding: 0 ${gc.horizontalSpacing};
|
|
1136
|
+
margin: calc(${gc.verticalSpacing} + ${gc.labelSize} / 2) 0 ${gc.verticalSpacing} 0;
|
|
1111
1137
|
|
|
1112
1138
|
border: none;
|
|
1113
1139
|
background: none;
|
|
@@ -1116,7 +1142,7 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
1116
1142
|
}
|
|
1117
1143
|
|
|
1118
1144
|
.ft-text-area--disabled .ft-text-area--input {
|
|
1119
|
-
color: ${
|
|
1145
|
+
color: ${gc.colorOnSurfaceDisabled};
|
|
1120
1146
|
}
|
|
1121
1147
|
|
|
1122
1148
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -1124,49 +1150,49 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
1124
1150
|
}
|
|
1125
1151
|
|
|
1126
1152
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1127
|
-
${
|
|
1128
|
-
${
|
|
1153
|
+
${wo(fc.borderColor,gc.colorPrimary)};
|
|
1154
|
+
${wo(fc.textColor,gc.colorPrimary)};
|
|
1129
1155
|
}
|
|
1130
1156
|
|
|
1131
1157
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
1132
|
-
border-radius: ${
|
|
1158
|
+
border-radius: ${gc.borderRadiusS} ${gc.borderRadiusS} 0 0;
|
|
1133
1159
|
}
|
|
1134
1160
|
|
|
1135
1161
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
1136
1162
|
align-self: stretch;
|
|
1137
|
-
margin-bottom: ${
|
|
1138
|
-
margin-top: calc(${
|
|
1163
|
+
margin-bottom: ${gc.verticalSpacing};
|
|
1164
|
+
margin-top: calc(${gc.labelSize} + 2 * ${gc.verticalSpacing});
|
|
1139
1165
|
}
|
|
1140
1166
|
|
|
1141
1167
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
1142
|
-
border-radius: ${
|
|
1168
|
+
border-radius: ${gc.borderRadiusS};
|
|
1143
1169
|
}
|
|
1144
1170
|
|
|
1145
1171
|
.ft-text-area--helper-text {
|
|
1146
|
-
padding: 0 12px 0 ${
|
|
1147
|
-
color: ${
|
|
1172
|
+
padding: 0 12px 0 ${gc.horizontalSpacing};
|
|
1173
|
+
color: ${gc.helperColor};
|
|
1148
1174
|
}
|
|
1149
1175
|
|
|
1150
1176
|
.ft-text-area--in-error .ft-text-area--input,
|
|
1151
1177
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
1152
|
-
color: ${
|
|
1178
|
+
color: ${gc.colorError};
|
|
1153
1179
|
}
|
|
1154
1180
|
|
|
1155
1181
|
ft-resizer {
|
|
1156
1182
|
position: absolute;
|
|
1157
1183
|
bottom: 0;
|
|
1158
1184
|
}
|
|
1159
|
-
`;var
|
|
1185
|
+
`;var vc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class mc extends(Va(kr,"textbox")){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 Jt`
|
|
1160
1186
|
<style>
|
|
1161
1187
|
.ft-text-area--main-panel {
|
|
1162
|
-
height: calc(4 * ${
|
|
1188
|
+
height: calc(4 * ${gc.verticalSpacing} + ${gc.labelSize} + ${gc.fontSize} + ${this.height}px);
|
|
1163
1189
|
}
|
|
1164
1190
|
|
|
1165
1191
|
ft-resizer {
|
|
1166
1192
|
right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1167
1193
|
}
|
|
1168
1194
|
</style>
|
|
1169
|
-
<div class="${
|
|
1195
|
+
<div class="${Ke(t)}">
|
|
1170
1196
|
<div class="ft-text-area--main-panel">
|
|
1171
1197
|
<ft-input-label text="${this.label}"
|
|
1172
1198
|
?disabled=${this.disabled}
|
|
@@ -1176,7 +1202,7 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
1176
1202
|
></ft-input-label>
|
|
1177
1203
|
<div class="ft-text-area--input-panel"
|
|
1178
1204
|
aria-label="${this.label}">
|
|
1179
|
-
${this.outlined?null:
|
|
1205
|
+
${this.outlined?null:Jt`
|
|
1180
1206
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1181
1207
|
`}
|
|
1182
1208
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -1193,53 +1219,42 @@ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Erro
|
|
|
1193
1219
|
initialHeight="${this.height}"
|
|
1194
1220
|
cursor="ns-resize"></ft-resizer>
|
|
1195
1221
|
</div>
|
|
1196
|
-
${this.helper?
|
|
1222
|
+
${this.helper?Jt`
|
|
1197
1223
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
1198
1224
|
${this.helper}
|
|
1199
1225
|
</ft-typography>`:void 0}
|
|
1200
1226
|
</div>
|
|
1201
|
-
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("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)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
1202
|
-
/**
|
|
1203
|
-
* @license
|
|
1204
|
-
* Copyright 2020 Google LLC
|
|
1205
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1206
|
-
*/
|
|
1207
|
-
const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Ls(),r),n=o.insertBefore(Ls(),r);i=new Us(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Ts=(t,e,i=t)=>(t._$AI(e,i),t),_s={},Ws=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Ds=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ms=za(class extends Ba{constructor(t){if(super(t),t.type!==Pa)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 r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,d=r.length-1,u=0,p=n.length-1;for(;h<=d&&u<=p;)if(null===r[h])h++;else if(null===r[d])d--;else if(s[h]===a[u])l[u]=Ts(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Ts(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Ts(r[h],n[p]),As(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Ts(r[d],n[u]),As(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Ds(a,u,p),f=Ds(s,h,d)),c.has(s[h]))if(c.has(s[d])){const e=f.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=As(t,r[h]);Ts(e,n[u]),l[u]=e}else l[u]=Ts(i,n[u]),As(t,r[h],i),r[e]=null;u++}else Ws(r[d]),d--;else Ws(r[h]),h++;for(;u<=p;){const e=As(t,l[p+1]);Ts(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&Ws(t)}return this.dt=a,((t,e=_s)=>{t._$AH=e})(t,l),st}});
|
|
1208
|
-
/**
|
|
1209
|
-
* @license
|
|
1210
|
-
* Copyright 2017 Google LLC
|
|
1211
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1212
|
-
*/class Fs extends Gi{render(){return de`
|
|
1227
|
+
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("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)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}mc.elementDefinitions={"ft-input-label":yc,"ft-resizer":dc,"ft-ripple":Wl,"ft-typography":Al},mc.styles=[il,bc],vc([Oe({type:String})],mc.prototype,"label",void 0),vc([Oe({reflect:!0})],mc.prototype,"value",void 0),vc([Oe({type:String})],mc.prototype,"helper",void 0),vc([Oe({type:Boolean})],mc.prototype,"outlined",void 0),vc([Oe({type:Boolean})],mc.prototype,"disabled",void 0),vc([Oe({type:Boolean})],mc.prototype,"error",void 0),vc([Oe({type:Number,reflect:!0})],mc.prototype,"height",void 0),vc([Ce("textarea")],mc.prototype,"textarea",void 0),vc([Se()],mc.prototype,"focused",void 0),yo("ft-text-area")(mc);class xc extends kr{render(){return Jt`
|
|
1213
1228
|
<div class="ft-loader">
|
|
1214
1229
|
<div></div>
|
|
1215
1230
|
<div></div>
|
|
1216
1231
|
<div></div>
|
|
1217
1232
|
<div></div>
|
|
1218
1233
|
</div>
|
|
1219
|
-
`}}
|
|
1234
|
+
`}}xc.styles=fl,yo("ft-loader")(xc);var wc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Oc extends(Va(kr,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(Jt`
|
|
1220
1235
|
<button part="button"
|
|
1221
|
-
class="${
|
|
1236
|
+
class="${Ke(this.buttonClasses)}"
|
|
1222
1237
|
aria-label="${this.getLabel()}"
|
|
1223
1238
|
?disabled=${this.isDisabled()}>
|
|
1224
1239
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1225
1240
|
<ft-typography part="label"
|
|
1226
1241
|
variant=${this.typographyVariant}
|
|
1227
1242
|
element="span"
|
|
1228
|
-
class="ft-button--label ${
|
|
1243
|
+
class="ft-button--label ${Qa?"ft-safari-ellipsis-fix":""}"
|
|
1229
1244
|
?hidden=${!this.hasTextContent()}>
|
|
1230
1245
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1231
1246
|
</ft-typography>
|
|
1232
1247
|
${this.resolveIcon()}
|
|
1233
1248
|
</button>
|
|
1234
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
1249
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Jt`
|
|
1235
1250
|
<ft-tooltip part="tooltip"
|
|
1236
1251
|
text="${this.getLabel()}"
|
|
1237
1252
|
position="${this.tooltipPosition}">
|
|
1238
1253
|
${t}
|
|
1239
1254
|
</ft-tooltip>
|
|
1240
|
-
`:t}resolveIcon(){return this.loading?
|
|
1241
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1242
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
1255
|
+
`:t}resolveIcon(){return this.loading?Jt`
|
|
1256
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Jt`
|
|
1257
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:te}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}}Oc.elementDefinitions={"ft-ripple":Wl,"ft-tooltip":Gl,"ft-typography":Al,"ft-icon":Yl,"ft-loader":xc},wc([Oe({type:String,reflect:!0})],Oc.prototype,"role",void 0),wc([Oe()],Oc.prototype,"type",void 0),wc([Oe({type:Boolean})],Oc.prototype,"disabled",void 0),wc([Oe()],Oc.prototype,"label",void 0),wc([Oe()],Oc.prototype,"icon",void 0),wc([Oe()],Oc.prototype,"iconVariant",void 0),wc([Oe({type:Boolean})],Oc.prototype,"trailingIcon",void 0),wc([Oe({type:Boolean})],Oc.prototype,"loading",void 0),wc([Oe()],Oc.prototype,"tooltipPosition",void 0),wc([Oe({type:Boolean})],Oc.prototype,"hideTooltip",void 0),wc([Oe({type:Boolean})],Oc.prototype,"forceTooltip",void 0),wc([Ce(".ft-button")],Oc.prototype,"button",void 0),wc([Ce(".ft-button--label slot")],Oc.prototype,"slottedContent",void 0);var Sc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Nc extends Oc{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}}Nc.styles=[Mr,Sl],Sc([Oe({type:Boolean})],Nc.prototype,"primary",void 0),Sc([Oe({type:Boolean})],Nc.prototype,"outlined",void 0),Sc([Oe({type:Boolean})],Nc.prototype,"dense",void 0),Sc([Oe({type:Boolean})],Nc.prototype,"round",void 0);const $c=[ft`
|
|
1243
1258
|
:host {
|
|
1244
1259
|
display: inline-block;
|
|
1245
1260
|
max-width: 100%;
|
|
@@ -1289,7 +1304,7 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1289
1304
|
}
|
|
1290
1305
|
|
|
1291
1306
|
.ft-button:focus-visible {
|
|
1292
|
-
outline-color: ${
|
|
1307
|
+
outline-color: ${Yo.focusFocusRingColor};
|
|
1293
1308
|
outline-style: solid;
|
|
1294
1309
|
}
|
|
1295
1310
|
|
|
@@ -1318,154 +1333,154 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1318
1333
|
/** Primary styles **/
|
|
1319
1334
|
|
|
1320
1335
|
.ft-button--primary {
|
|
1321
|
-
${
|
|
1336
|
+
${wo(dl.color,Yo.primaryIconColor)};
|
|
1322
1337
|
|
|
1323
|
-
${
|
|
1324
|
-
${
|
|
1325
|
-
${
|
|
1326
|
-
${
|
|
1327
|
-
${
|
|
1338
|
+
${wo(ss.color,Yo.primaryStateLayerColor)};
|
|
1339
|
+
${wo(ss.opacityContentOnSurfaceHover,Yo.primaryStateLayerOpacityHover)};
|
|
1340
|
+
${wo(ss.opacityContentOnSurfaceFocused,Yo.primaryStateLayerOpacityFocus)};
|
|
1341
|
+
${wo(ss.opacityContentOnSurfaceSelected,Yo.primaryStateLayerOpacityActive)};
|
|
1342
|
+
${wo(ss.opacityContentOnSurfacePressed,Yo.primaryStateLayerOpacityActive)};
|
|
1328
1343
|
|
|
1329
|
-
background-color: ${
|
|
1330
|
-
color: ${
|
|
1344
|
+
background-color: ${Yo.primaryBackgroundColor};
|
|
1345
|
+
color: ${Yo.primaryColor};
|
|
1331
1346
|
border-style: none;
|
|
1332
1347
|
}
|
|
1333
1348
|
|
|
1334
1349
|
.ft-button--primary[disabled] {
|
|
1335
|
-
opacity: ${
|
|
1350
|
+
opacity: ${Yo.primaryComponentOpacityDisabled};
|
|
1336
1351
|
}
|
|
1337
1352
|
|
|
1338
1353
|
.ft-button--primary ft-icon {
|
|
1339
|
-
color: ${
|
|
1354
|
+
color: ${Yo.primaryIconColor};
|
|
1340
1355
|
}
|
|
1341
1356
|
|
|
1342
1357
|
/** Secondary styles **/
|
|
1343
1358
|
|
|
1344
1359
|
.ft-button--secondary {
|
|
1345
|
-
${
|
|
1360
|
+
${wo(dl.color,Yo.secondaryIconColor)};
|
|
1346
1361
|
|
|
1347
|
-
${
|
|
1348
|
-
${
|
|
1349
|
-
${
|
|
1350
|
-
${
|
|
1351
|
-
${
|
|
1362
|
+
${wo(ss.color,Yo.secondaryStateLayerColor)};
|
|
1363
|
+
${wo(ss.opacityContentOnSurfaceHover,Yo.secondaryStateLayerOpacityHover)};
|
|
1364
|
+
${wo(ss.opacityContentOnSurfaceFocused,Yo.secondaryStateLayerOpacityFocus)};
|
|
1365
|
+
${wo(ss.opacityContentOnSurfaceSelected,Yo.secondaryStateLayerOpacityActive)};
|
|
1366
|
+
${wo(ss.opacityContentOnSurfacePressed,Yo.secondaryStateLayerOpacityActive)};
|
|
1352
1367
|
|
|
1353
|
-
background-color: ${
|
|
1354
|
-
color: ${
|
|
1355
|
-
border-color: ${
|
|
1368
|
+
background-color: ${Yo.secondaryBackgroundColor};
|
|
1369
|
+
color: ${Yo.secondaryColor};
|
|
1370
|
+
border-color: ${Yo.secondaryBorderColor};
|
|
1356
1371
|
border-style: solid;
|
|
1357
1372
|
}
|
|
1358
1373
|
|
|
1359
1374
|
.ft-button--secondary[disabled] {
|
|
1360
|
-
opacity: ${
|
|
1375
|
+
opacity: ${Yo.secondaryComponentOpacityDisabled};
|
|
1361
1376
|
}
|
|
1362
1377
|
|
|
1363
1378
|
.ft-button--secondary ft-icon {
|
|
1364
|
-
color: ${
|
|
1379
|
+
color: ${Yo.secondaryIconColor};
|
|
1365
1380
|
}
|
|
1366
1381
|
|
|
1367
1382
|
/** Tertiary styles **/
|
|
1368
1383
|
|
|
1369
1384
|
.ft-button--tertiary {
|
|
1370
|
-
${
|
|
1385
|
+
${wo(dl.color,Yo.tertiaryIconColor)};
|
|
1371
1386
|
|
|
1372
|
-
${
|
|
1373
|
-
${
|
|
1374
|
-
${
|
|
1375
|
-
${
|
|
1376
|
-
${
|
|
1387
|
+
${wo(ss.color,Yo.tertiaryStateLayerColor)};
|
|
1388
|
+
${wo(ss.opacityContentOnSurfaceHover,Yo.tertiaryStateLayerOpacityHover)};
|
|
1389
|
+
${wo(ss.opacityContentOnSurfaceFocused,Yo.tertiaryStateLayerOpacityFocus)};
|
|
1390
|
+
${wo(ss.opacityContentOnSurfaceSelected,Yo.tertiaryStateLayerOpacityActive)};
|
|
1391
|
+
${wo(ss.opacityContentOnSurfacePressed,Yo.tertiaryStateLayerOpacityActive)};
|
|
1377
1392
|
|
|
1378
|
-
background-color: ${
|
|
1379
|
-
color: ${
|
|
1393
|
+
background-color: ${Yo.tertiaryBackgroundColor};
|
|
1394
|
+
color: ${Yo.tertiaryColor};
|
|
1380
1395
|
border-style: none;
|
|
1381
1396
|
}
|
|
1382
1397
|
|
|
1383
1398
|
.ft-button--tertiary[disabled] {
|
|
1384
|
-
opacity: ${
|
|
1399
|
+
opacity: ${Yo.tertiaryComponentOpacityDisabled};
|
|
1385
1400
|
}
|
|
1386
1401
|
|
|
1387
1402
|
.ft-button--tertiary ft-icon {
|
|
1388
|
-
color: ${
|
|
1403
|
+
color: ${Yo.tertiaryIconColor};
|
|
1389
1404
|
}
|
|
1390
1405
|
|
|
1391
1406
|
/** Neutral styles **/
|
|
1392
1407
|
|
|
1393
1408
|
.ft-button--neutral {
|
|
1394
|
-
${
|
|
1409
|
+
${wo(dl.color,Yo.neutralIconColor)};
|
|
1395
1410
|
|
|
1396
|
-
${
|
|
1397
|
-
${
|
|
1398
|
-
${
|
|
1399
|
-
${
|
|
1400
|
-
${
|
|
1411
|
+
${wo(ss.backgroundColor,Yo.neutralStateLayerColor)};
|
|
1412
|
+
${wo(ss.opacityContentOnSurfaceHover,Yo.neutralStateLayerOpacityHover)};
|
|
1413
|
+
${wo(ss.opacityContentOnSurfaceFocused,Yo.neutralStateLayerOpacityFocus)};
|
|
1414
|
+
${wo(ss.opacityContentOnSurfaceSelected,Yo.neutralStateLayerOpacityActive)};
|
|
1415
|
+
${wo(ss.opacityContentOnSurfacePressed,Yo.neutralStateLayerOpacityActive)};
|
|
1401
1416
|
|
|
1402
|
-
background-color: ${
|
|
1403
|
-
color: ${
|
|
1417
|
+
background-color: ${Yo.neutralBackgroundColor};
|
|
1418
|
+
color: ${Yo.neutralColor};
|
|
1404
1419
|
border-style: none;
|
|
1405
1420
|
}
|
|
1406
1421
|
|
|
1407
1422
|
.ft-button--neutral[disabled] {
|
|
1408
|
-
opacity: ${
|
|
1423
|
+
opacity: ${Yo.neutralComponentOpacityDisabled};
|
|
1409
1424
|
}
|
|
1410
1425
|
|
|
1411
1426
|
.ft-button--neutral ft-icon {
|
|
1412
|
-
color: ${
|
|
1427
|
+
color: ${Yo.neutralIconColor};
|
|
1413
1428
|
}
|
|
1414
1429
|
|
|
1415
1430
|
/** Large styles **/
|
|
1416
1431
|
|
|
1417
1432
|
.ft-button--large {
|
|
1418
|
-
${
|
|
1419
|
-
${
|
|
1433
|
+
${wo(ul.size,Yo.largeIconSize)};
|
|
1434
|
+
${wo(dl.size,Yo.largeIconSize)};
|
|
1420
1435
|
|
|
1421
|
-
height: ${
|
|
1422
|
-
padding: 0 ${
|
|
1423
|
-
gap: ${
|
|
1424
|
-
border-radius: ${
|
|
1425
|
-
border-width: ${
|
|
1436
|
+
height: ${Yo.largeHeight};
|
|
1437
|
+
padding: 0 ${Yo.largeHorizontalPadding};
|
|
1438
|
+
gap: ${Yo.largeGap};
|
|
1439
|
+
border-radius: ${Yo.largeBorderRadius};
|
|
1440
|
+
border-width: ${Yo.largeBorderWidth};
|
|
1426
1441
|
}
|
|
1427
1442
|
|
|
1428
1443
|
.ft-button--large:focus-visible {
|
|
1429
|
-
outline-width: ${
|
|
1430
|
-
outline-offset: ${
|
|
1444
|
+
outline-width: ${Yo.largeFocusOutlineWidth};
|
|
1445
|
+
outline-offset: ${Yo.largeFocusOutlineOffset};
|
|
1431
1446
|
}
|
|
1432
1447
|
|
|
1433
1448
|
.ft-button--large.ft-button--icon-only {
|
|
1434
|
-
width: ${
|
|
1449
|
+
width: ${Yo.largeIconOnlyWidth};
|
|
1435
1450
|
padding: unset;
|
|
1436
1451
|
}
|
|
1437
1452
|
|
|
1438
1453
|
/** Small styles **/
|
|
1439
1454
|
|
|
1440
1455
|
.ft-button--small {
|
|
1441
|
-
${
|
|
1442
|
-
${
|
|
1456
|
+
${wo(ul.size,Yo.smallIconSize)};
|
|
1457
|
+
${wo(dl.size,Yo.smallIconSize)};
|
|
1443
1458
|
|
|
1444
|
-
height: ${
|
|
1445
|
-
padding: 0 ${
|
|
1446
|
-
gap: ${
|
|
1447
|
-
border-radius: ${
|
|
1448
|
-
border-width: ${
|
|
1459
|
+
height: ${Yo.smallHeight};
|
|
1460
|
+
padding: 0 ${Yo.smallHorizontalPadding};
|
|
1461
|
+
gap: ${Yo.smallGap};
|
|
1462
|
+
border-radius: ${Yo.smallBorderRadius};
|
|
1463
|
+
border-width: ${Yo.smallBorderWidth};
|
|
1449
1464
|
}
|
|
1450
1465
|
|
|
1451
1466
|
.ft-button--small:focus-visible {
|
|
1452
|
-
outline-width: ${
|
|
1453
|
-
outline-offset: ${
|
|
1467
|
+
outline-width: ${Yo.smallFocusOutlineWidth};
|
|
1468
|
+
outline-offset: ${Yo.smallFocusOutlineOffset};
|
|
1454
1469
|
}
|
|
1455
1470
|
|
|
1456
1471
|
.ft-button--small.ft-button--icon-only {
|
|
1457
|
-
width: ${
|
|
1472
|
+
width: ${Yo.smallIconOnlyWidth};
|
|
1458
1473
|
padding: unset;
|
|
1459
1474
|
}
|
|
1460
|
-
`,
|
|
1461
|
-
`,
|
|
1462
|
-
`,
|
|
1475
|
+
`,Dr];var Cc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ec extends Oc{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Ul.caption1medium:Ul.body2medium}}Ec.styles=[Mr,$c],Cc([Oe({type:Boolean})],Ec.prototype,"primary",void 0),Cc([Oe({type:Boolean})],Ec.prototype,"secondary",void 0),Cc([Oe({type:Boolean})],Ec.prototype,"tertiary",void 0),Cc([Oe({type:Boolean})],Ec.prototype,"neutral",void 0),Cc([Oe({type:Boolean})],Ec.prototype,"small",void 0),yo("ft-button")(Nc),yo("ftds-button")(Ec);const kc=ft`
|
|
1476
|
+
`,Rc=ft`
|
|
1477
|
+
`,Ic=za.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1}});class Lc{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ic.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Lc.build(t):null!==(e=Lc.API)&&void 0!==e?e:Lc.API=Lc.build()}static await(t){return new Promise((e=>{let o=Lc.get(t);if(o)e(o);else{const i=Ic.subscribe((()=>{o=Lc.get(t),o&&(i(),e(o))}))}}))}}class Uc{constructor(t=!0,e){var o;this.overrideApi=e;let i=this.constructor;i.commonCache=null!==(o=i.commonCache)&&void 0!==o?o:new io,this.cache=t?i.commonCache:new io}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Lc.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Lc.await()}clearCache(){this.cache.clearAll()}}var _c;const Ac=Symbol("clearAfterUnitTest");class Tc extends Uc{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_c]=()=>{this.defaultMessages={},this.cache=new io,this.listeners={}},this.currentUiLocale=Ic.getState().uiLocale,Ic.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ic.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};uo(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new jr(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>co(0).then((()=>t())).catch((()=>null)))))}}_c=Ac,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Tc{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Tc{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Wc=window.FluidTopicsI18nService,Dc=window.FluidTopicsCustomI18nService;var Fc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mc extends kr{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Lc.get(),this.cache=new io,this.cleanSessionDebouncer=new so}render(){return Jt`
|
|
1463
1478
|
<slot></slot>
|
|
1464
|
-
`}update(t){super.update(t),t.has("baseUrl")&&(
|
|
1479
|
+
`}update(t){super.update(t),t.has("baseUrl")&&(Ic.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Ic.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ic.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Ic.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Ic.actions.noCustom(this.noCustom),t.has("editorMode")&&Ic.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Ic.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Ic.actions.session(this.session),t.has("availableUiLocales")&&Ic.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Wc.addContext(t))),t.has("openExternalDocumentInNewTab")&&Ic.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Mc.elementDefinitions={},Mc.styles=Rc,Fc([Oe()],Mc.prototype,"baseUrl",void 0),Fc([Oe()],Mc.prototype,"apiIntegrationIdentifier",void 0),Fc([Oe()],Mc.prototype,"uiLocale",void 0),Fc([go(null)],Mc.prototype,"availableUiLocales",void 0),Fc([go(null)],Mc.prototype,"metadataConfiguration",void 0),Fc([Oe({type:Boolean})],Mc.prototype,"editorMode",void 0),Fc([Oe({type:Boolean})],Mc.prototype,"noCustom",void 0),Fc([Oe({type:Boolean})],Mc.prototype,"openExternalDocumentInNewTab",void 0),Fc([Oe({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Mc.prototype,"noCustomComponent",void 0),Fc([Oe({type:Boolean})],Mc.prototype,"withManualResources",void 0),Fc([go([])],Mc.prototype,"messageContexts",void 0),Fc([go(void 0)],Mc.prototype,"session",void 0),Fc([Oe({type:Object})],Mc.prototype,"apiProvider",void 0);class Bc extends Uc{async listMySearches(){let t=Ic.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Pc extends Uc{async listMyBookmarks(){let t=Ic.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const jc=za.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const zc=new class{constructor(){this.currentSession=Ic.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Pc,this.savedSearchesService=new Bc,Ic.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Ic.getState();uo(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),jc.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),jc.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();jc.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;jc.actions.bookmarks(e)}}};yo("ft-app-context")(Mc);var Kc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Zc=Symbol("i18nAttributes"),Hc=Symbol("i18nProperties"),Vc=Symbol("i18nUnsubs");function Gc(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Dc:Wc}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e,o;null===(e=this[Zc])||void 0===e||e.forEach(((e,o)=>{var i;const r=this.getI18nAttributeValue(o);(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,r,e)})),null===(o=this[Hc])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Zc])||void 0===e||e.forEach(((e,o)=>{const i=this.getI18nAttributeValue(o);(null==i?void 0:i.context)&&i.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(i.context),this.updateI18nAttributeMessage(o,i,e))})),null===(o=this[Hc])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,i;super.connectedCallback(),new Set([...null!==(e=null===(t=this[Hc])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(i=null===(o=this[Zc])||void 0===o?void 0:o.keys())&&void 0!==i?i:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Vc].has(t)||this[Vc].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Vc].forEach((t=>t())),this[Vc].clear()}}return e=Vc,Kc([Oe({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class qc extends(Gc(kr)){}class Yc extends(Gc(tn)){}var Jc=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xc extends Yc{constructor(){super(),this.editorMode=!1,this.addStore(Ic)}render(){return this.key&&this.context?Jt`
|
|
1465
1480
|
<span class="ft-i18n">
|
|
1466
1481
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1467
1482
|
</span>
|
|
1468
|
-
`:this.editorMode?"Select a context and a label key.":
|
|
1483
|
+
`:this.editorMode?"Select a context and a label key.":te}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Xc.elementDefinitions={},Xc.styles=kc,Jc([Kr()],Xc.prototype,"editorMode",void 0),Jc([Oe()],Xc.prototype,"context",void 0),Jc([Oe()],Xc.prototype,"key",void 0),Jc([go([])],Xc.prototype,"args",void 0),Jc([Oe()],Xc.prototype,"defaultMessage",void 0);class Qc{static build(t){return new Qc(t)}static fromGwt(t){return new Qc(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Wc.resolveMessage(this.name,e,...t)})}}const th=(t,e)=>(o,i)=>{var r,n;o.constructor.createProperty(i,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:i};o[Hc]=null!==(n=o[Hc])&&void 0!==n?n:new Map,o[Hc].set(i,a)};yo("ft-i18n")(Xc);const eh=Qc.build("integratedFeedbackComponent"),oh={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?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",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.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},ih={fontSize:xo.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:xo.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:xo.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:xo.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:xo.extend("--ft-text-field-helper-color","",hi.colorOnSurfaceMedium),colorPrimary:xo.external(hi.colorPrimary,"Design system"),colorOnSurface:xo.external(hi.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xo.external(hi.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xo.external(hi.borderRadiusS,"Design system"),colorError:xo.external(hi.colorError,"Design system"),prefixColor:xo.extend("--ft-text-field-prefix-color","",hi.colorOnSurfaceMedium),iconColor:xo.extend("--ft-text-field-icon-color","",hi.colorOnSurfaceMedium),floatingZIndex:xo.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:xo.external(hi.colorSurface,"Design system"),colorOutline:xo.external(hi.colorOutline,"Design system"),elevation02:xo.external(hi.elevation02,"Design system"),suggestSize:xo.create("--ft-text-field-suggest-size","","SIZE","300px")},rh=ft`
|
|
1469
1484
|
*:focus {
|
|
1470
1485
|
outline: none;
|
|
1471
1486
|
}
|
|
@@ -1478,16 +1493,16 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1478
1493
|
}
|
|
1479
1494
|
|
|
1480
1495
|
ft-input-label {
|
|
1481
|
-
${
|
|
1482
|
-
${
|
|
1483
|
-
${
|
|
1484
|
-
${
|
|
1496
|
+
${wo(fc.fontSize,ih.fontSize)};
|
|
1497
|
+
${wo(fc.raisedFontSize,ih.labelSize)};
|
|
1498
|
+
${wo(fc.verticalSpacing,ih.verticalSpacing)};
|
|
1499
|
+
${wo(fc.horizontalSpacing,ih.horizontalSpacing)};
|
|
1485
1500
|
}
|
|
1486
1501
|
|
|
1487
1502
|
.ft-text-field--main-panel {
|
|
1488
1503
|
position: relative;
|
|
1489
1504
|
display: flex;
|
|
1490
|
-
height: calc(4 * ${
|
|
1505
|
+
height: calc(4 * ${ih.verticalSpacing} + ${ih.labelSize} + ${ih.fontSize});
|
|
1491
1506
|
}
|
|
1492
1507
|
|
|
1493
1508
|
.ft-text-field--input-panel {
|
|
@@ -1496,24 +1511,24 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1496
1511
|
display: flex;
|
|
1497
1512
|
align-items: center;
|
|
1498
1513
|
overflow: hidden;
|
|
1499
|
-
padding: 0 ${
|
|
1514
|
+
padding: 0 ${ih.horizontalSpacing};
|
|
1500
1515
|
|
|
1501
|
-
${
|
|
1502
|
-
${
|
|
1516
|
+
${wo(Us.fontSize,ih.fontSize)};
|
|
1517
|
+
${wo(Us.lineHeight,ih.fontSize)};
|
|
1503
1518
|
}
|
|
1504
1519
|
|
|
1505
1520
|
.ft-text-field--input-panel ft-ripple {
|
|
1506
|
-
${
|
|
1507
|
-
${
|
|
1521
|
+
${wo(ss.opacityContentOnSurfaceHover,"0.08")};
|
|
1522
|
+
${wo(ss.opacityContentOnSurfacePressed,"0.04")};
|
|
1508
1523
|
}
|
|
1509
1524
|
|
|
1510
1525
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
1511
1526
|
align-items: flex-end;
|
|
1512
|
-
padding: 0 ${
|
|
1527
|
+
padding: 0 ${ih.horizontalSpacing} ${ih.verticalSpacing} ${ih.horizontalSpacing};
|
|
1513
1528
|
}
|
|
1514
1529
|
|
|
1515
1530
|
.ft-text-field--prefix {
|
|
1516
|
-
color: ${
|
|
1531
|
+
color: ${ih.prefixColor};
|
|
1517
1532
|
margin-right: 2px;
|
|
1518
1533
|
flex-shrink: 1;
|
|
1519
1534
|
overflow: hidden;
|
|
@@ -1532,15 +1547,15 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1532
1547
|
flex-shrink: 1;
|
|
1533
1548
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
1534
1549
|
|
|
1535
|
-
color: ${
|
|
1536
|
-
padding: calc(2 * ${
|
|
1550
|
+
color: ${ih.colorOnSurface};
|
|
1551
|
+
padding: calc(2 * ${ih.verticalSpacing}) 0;
|
|
1537
1552
|
border: none;
|
|
1538
1553
|
background: none;
|
|
1539
1554
|
}
|
|
1540
1555
|
|
|
1541
1556
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
1542
1557
|
padding-bottom: 0;
|
|
1543
|
-
padding-top: calc(${
|
|
1558
|
+
padding-top: calc(${ih.labelSize} + 2 * ${ih.verticalSpacing});
|
|
1544
1559
|
}
|
|
1545
1560
|
|
|
1546
1561
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -1549,37 +1564,37 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1549
1564
|
}
|
|
1550
1565
|
|
|
1551
1566
|
.ft-text-field--disabled .ft-text-field--input {
|
|
1552
|
-
color: ${
|
|
1567
|
+
color: ${ih.colorOnSurfaceDisabled};
|
|
1553
1568
|
}
|
|
1554
1569
|
|
|
1555
1570
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1556
|
-
${
|
|
1557
|
-
${
|
|
1571
|
+
${wo(fc.borderColor,ih.colorPrimary)};
|
|
1572
|
+
${wo(fc.textColor,ih.colorPrimary)};
|
|
1558
1573
|
}
|
|
1559
1574
|
|
|
1560
1575
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
1561
|
-
border-radius: ${
|
|
1576
|
+
border-radius: ${ih.borderRadiusS} ${ih.borderRadiusS} 0 0;
|
|
1562
1577
|
}
|
|
1563
1578
|
|
|
1564
1579
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
1565
|
-
border-radius: ${
|
|
1580
|
+
border-radius: ${ih.borderRadiusS};
|
|
1566
1581
|
}
|
|
1567
1582
|
|
|
1568
1583
|
.ft-text-field--helper-text {
|
|
1569
|
-
padding: 0 12px 0 ${
|
|
1570
|
-
color: ${
|
|
1584
|
+
padding: 0 12px 0 ${ih.horizontalSpacing};
|
|
1585
|
+
color: ${ih.helperColor};
|
|
1571
1586
|
}
|
|
1572
1587
|
|
|
1573
1588
|
.ft-text-field--in-error .ft-text-field--input,
|
|
1574
1589
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
1575
1590
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
1576
|
-
color: ${
|
|
1591
|
+
color: ${ih.colorError};
|
|
1577
1592
|
}
|
|
1578
1593
|
|
|
1579
1594
|
.ft-text-field--icon {
|
|
1580
1595
|
align-self: center;
|
|
1581
1596
|
margin-left: 8px;
|
|
1582
|
-
color: ${
|
|
1597
|
+
color: ${ih.iconColor};
|
|
1583
1598
|
}
|
|
1584
1599
|
|
|
1585
1600
|
.ft-text-field--container {
|
|
@@ -1592,13 +1607,13 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1592
1607
|
position: absolute;
|
|
1593
1608
|
left: 0;
|
|
1594
1609
|
right: 0;
|
|
1595
|
-
z-index: ${
|
|
1596
|
-
background: ${
|
|
1597
|
-
border: 1px solid ${
|
|
1598
|
-
border-radius: 0 0 ${
|
|
1599
|
-
box-shadow: ${
|
|
1610
|
+
z-index: ${ih.floatingZIndex};
|
|
1611
|
+
background: ${ih.colorSurface};
|
|
1612
|
+
border: 1px solid ${ih.colorOutline};
|
|
1613
|
+
border-radius: 0 0 ${ih.borderRadiusS} ${ih.borderRadiusS};
|
|
1614
|
+
box-shadow: ${ih.elevation02};
|
|
1600
1615
|
outline: none;
|
|
1601
|
-
max-height: ${
|
|
1616
|
+
max-height: ${ih.suggestSize};
|
|
1602
1617
|
overflow-y: auto;
|
|
1603
1618
|
}
|
|
1604
1619
|
|
|
@@ -1615,14 +1630,14 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1615
1630
|
}
|
|
1616
1631
|
|
|
1617
1632
|
.ft-text-field--with-icon {
|
|
1618
|
-
${
|
|
1633
|
+
${wo(fc.labelMaxWidth,`calc(100% - ${ul.size} - ${fc.horizontalSpacing})`)};
|
|
1619
1634
|
}
|
|
1620
1635
|
|
|
1621
1636
|
.ft-text-field--with-password ft-icon:hover {
|
|
1622
1637
|
cursor: pointer;
|
|
1623
1638
|
}
|
|
1624
|
-
`;var
|
|
1625
|
-
<div class="${
|
|
1639
|
+
`;var nh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ah extends(Va(kr,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Kl.EYE_SLASH,this.passwordRevealedIcon=Kl.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return Jt`
|
|
1640
|
+
<div class="${Ke(t)}">
|
|
1626
1641
|
<div class="ft-text-field--main-panel"
|
|
1627
1642
|
@keydown=${this.handleKeyboardNavigation}
|
|
1628
1643
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1632,16 +1647,16 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1632
1647
|
?raised=${this.focused||""!=this.value}
|
|
1633
1648
|
?error=${this.error}></ft-input-label>
|
|
1634
1649
|
<div class="ft-text-field--input-panel">
|
|
1635
|
-
${this.outlined?
|
|
1650
|
+
${this.outlined?te:Jt`
|
|
1636
1651
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1637
1652
|
`}
|
|
1638
|
-
${this.prefix?
|
|
1653
|
+
${this.prefix?Jt`
|
|
1639
1654
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
1640
1655
|
${this.prefix}
|
|
1641
1656
|
</ft-typography>
|
|
1642
|
-
`:
|
|
1657
|
+
`:te}
|
|
1643
1658
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
1644
|
-
maxlength=${(t=>t??
|
|
1659
|
+
maxlength=${(t=>t??K)(this.maxLength||void 0)}
|
|
1645
1660
|
aria-label="${this.label}"
|
|
1646
1661
|
class="ft-typography--body1 ft-text-field--input"
|
|
1647
1662
|
part="input"
|
|
@@ -1657,23 +1672,23 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1657
1672
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1658
1673
|
</div>
|
|
1659
1674
|
</div>
|
|
1660
|
-
${this.helper?
|
|
1675
|
+
${this.helper?Jt`
|
|
1661
1676
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1662
1677
|
${this.helper}
|
|
1663
1678
|
</ft-typography>
|
|
1664
|
-
`:
|
|
1679
|
+
`:te}
|
|
1665
1680
|
</div>
|
|
1666
|
-
`}renderPasswordIcon(){return
|
|
1681
|
+
`}renderPasswordIcon(){return Jt`
|
|
1667
1682
|
<ft-icon class="ft-text-field--icon"
|
|
1668
1683
|
.variant=${this.iconVariant}
|
|
1669
1684
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1670
1685
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1671
|
-
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?
|
|
1686
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?Jt`
|
|
1672
1687
|
<ft-icon class="ft-text-field--icon"
|
|
1673
1688
|
.variant=${this.iconVariant}
|
|
1674
1689
|
.value=${this.icon}
|
|
1675
1690
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
1676
|
-
`:
|
|
1691
|
+
`:te}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,o;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),i=null===(o=this.suggestionsContainer)||void 0===o?void 0:o.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}ah.elementDefinitions={"ft-input-label":yc,"ft-ripple":Wl,"ft-typography":Al,"ft-icon":Yl},ah.styles=[il,rh],nh([Oe()],ah.prototype,"label",void 0),nh([Oe({noAccessor:!0})],ah.prototype,"value",null),nh([Se()],ah.prototype,"dispatchedValue",void 0),nh([Oe()],ah.prototype,"helper",void 0),nh([Oe({type:Boolean})],ah.prototype,"outlined",void 0),nh([Oe({type:Boolean})],ah.prototype,"disabled",void 0),nh([Oe({type:Boolean})],ah.prototype,"error",void 0),nh([Oe()],ah.prototype,"prefix",void 0),nh([Oe()],ah.prototype,"icon",void 0),nh([Oe()],ah.prototype,"passwordHiddenIcon",void 0),nh([Oe()],ah.prototype,"passwordRevealedIcon",void 0),nh([Oe()],ah.prototype,"iconVariant",void 0),nh([Oe({type:Boolean})],ah.prototype,"filterSuggestions",void 0),nh([Oe({type:Number})],ah.prototype,"maxLength",void 0),nh([Oe({type:Boolean})],ah.prototype,"password",void 0),nh([Se()],ah.prototype,"focused",void 0),nh([Se()],ah.prototype,"hidePassword",void 0),nh([Se()],ah.prototype,"suggestionsOnTop",void 0),nh([Se()],ah.prototype,"hideSuggestions",void 0),nh([Se()],ah.prototype,"visibleSuggestions",void 0),nh([Ce(".ft-text-field--main-panel")],ah.prototype,"mainPanel",void 0),nh([Ce(".ft-text-field--input")],ah.prototype,"input",void 0),nh([Ce(".ft-text-field--suggestions")],ah.prototype,"suggestionsContainer",void 0),nh([ke({selector:"ft-text-field-suggestion"})],ah.prototype,"suggestions",void 0);const sh=ft`
|
|
1677
1692
|
.ft-text-field-suggestion {
|
|
1678
1693
|
position: relative;
|
|
1679
1694
|
padding: 8px 16px;
|
|
@@ -1698,7 +1713,7 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1698
1713
|
slot {
|
|
1699
1714
|
pointer-events: none;
|
|
1700
1715
|
}
|
|
1701
|
-
`;var
|
|
1716
|
+
`;var lh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ch extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class hh extends kr{render(){return Jt`
|
|
1702
1717
|
<div class="ft-text-field-suggestion"
|
|
1703
1718
|
tabindex="-1"
|
|
1704
1719
|
@keydown=${this.onKeyDown}
|
|
@@ -1710,17 +1725,17 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1710
1725
|
<slot></slot>
|
|
1711
1726
|
</ft-typography>
|
|
1712
1727
|
</div>
|
|
1713
|
-
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new kl(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Il.elementDefinitions={"ft-ripple":Za,"ft-typography":Ma,"ft-icon":ss},Il.styles=Cl,El([I()],Il.prototype,"value",void 0),El([A(".ft-text-field-suggestion")],Il.prototype,"container",void 0),El([T()],Il.prototype,"assignedNodes",void 0),M("ft-text-field")($l),M("ft-text-field-suggestion")(Il);class Rl{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class Ul{convertPaginatedToc(t){return new Rl(t).build()}}var Ll,Al,Tl,_l,Wl,Dl,Ml,Fl,Pl,zl,Bl,jl,Kl,Zl,Hl,Gl,Vl,ql;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,i={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Ll||(Ll={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Al||(Al={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Tl||(Tl={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(_l||(_l={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Wl||(Wl={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Dl||(Dl={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ml||(Ml={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Fl||(Fl={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Pl||(Pl={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(zl||(zl={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Bl||(Bl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(jl||(jl={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Kl||(Kl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Zl||(Zl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Hl||(Hl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Gl||(Gl={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Vl||(Vl={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(ql||(ql={}));const Yl={[Vl.PERSONAL_BOOK_SHARE_USER]:[Vl.PERSONAL_BOOK_USER],[Vl.HTML_EXPORT_USER]:[Vl.PERSONAL_BOOK_USER],[Vl.PDF_EXPORT_USER]:[Vl.PERSONAL_BOOK_USER],[Vl.KHUB_ADMIN]:[Vl.CONTENT_PUBLISHER],[Vl.ADMIN]:[Vl.KHUB_ADMIN,Vl.USERS_ADMIN,Vl.PORTAL_ADMIN],[Vl.DEVELOPER]:[Vl.BETA_USER,Vl.DEBUG_USER]};function Xl(t,e){return t===e||(Yl[t]??[]).some((t=>Xl(t,e)))}function Jl(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Xl(t,e)))}class Ql extends Xs{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i){super(!1,e),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Jl(null!==(e=null===(t=qs.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,i)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=qs.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case nn.FEEDBACK:return Jl(null!=e?e:[],Vl.FEEDBACK_USER);case nn.RATING:return Jl(null!=e?e:[],Vl.RATING_USER)&&null!=i&&i!==Ml.NO_RATING;case nn.PRINT:return Jl(null!=e?e:[],Vl.PRINT_USER);case nn.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case nn.COLLECTIONS:return Jl(null!=e?e:[],Vl.COLLECTION_USER);case nn.PERSONAL_BOOKS:return Jl(null!=e?e:[],Vl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class tc extends Ql{static async build(t){return new tc(new Ul,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,i){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:i,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class ec{static build(t,e){return new ec((t=>Xr.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=e?e:tc.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new n(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return W((()=>this.service))}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}fetchRelatives(){var t,e,i;const o=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==o&&o.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(i=this.store.getState().configuration)||void 0===i?void 0:i.relativePivotMetadata,o).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,e;this.store.getState().relatives&&(this.clusteringHelper=new r(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(e=null===(t=qs.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var e,i,o;const r=await W((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),n=this.store.getState().mapId,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(n,r,[t]);if(null===(o=null===(i=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===i?void 0:i.entries)||void 0===o?void 0:o[0]){const t=s.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const ic=Rt`
|
|
1714
|
-
`;class
|
|
1728
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new ch(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}hh.elementDefinitions={"ft-ripple":Wl,"ft-typography":Al,"ft-icon":Yl},hh.styles=sh,lh([Oe()],hh.prototype,"value",void 0),lh([Ce(".ft-text-field-suggestion")],hh.prototype,"container",void 0),lh([Re()],hh.prototype,"assignedNodes",void 0),yo("ft-text-field")(ah),yo("ft-text-field-suggestion")(hh);class dh{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),h=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,h[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class fh{convertPaginatedToc(t){return new dh(t).build()}}var uh,ph,yh,gh,bh,vh,mh,xh,wh,Oh,Sh,Nh,$h,Ch,Eh,kh,Rh,Ih;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function d(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=h(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),p.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,i){return new Promise((function(r,n){var a=new y(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(uh||(uh={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ph||(ph={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(yh||(yh={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(gh||(gh={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(bh||(bh={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(vh||(vh={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(mh||(mh={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(xh||(xh={})),function(t){t.ASC="ASC",t.DESC="DESC"}(wh||(wh={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Oh||(Oh={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Sh||(Sh={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Nh||(Nh={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}($h||($h={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ch||(Ch={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Eh||(Eh={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(kh||(kh={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Rh||(Rh={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Ih||(Ih={}));const Lh={[Rh.PERSONAL_BOOK_SHARE_USER]:[Rh.PERSONAL_BOOK_USER],[Rh.HTML_EXPORT_USER]:[Rh.PERSONAL_BOOK_USER],[Rh.PDF_EXPORT_USER]:[Rh.PERSONAL_BOOK_USER],[Rh.KHUB_ADMIN]:[Rh.CONTENT_PUBLISHER],[Rh.ADMIN]:[Rh.KHUB_ADMIN,Rh.USERS_ADMIN,Rh.PORTAL_ADMIN],[Rh.DEVELOPER]:[Rh.BETA_USER,Rh.DEBUG_USER]};function Uh(t,e){return t===e||(Lh[t]??[]).some((t=>Uh(t,e)))}function _h(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Uh(t,e)))}class Ah extends Uc{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return _h(null!==(e=null===(t=Ic.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Ic.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){if(!this.isFeatureAvailable(t))return!1;switch(t){case es.FEEDBACK:return _h(null!=e?e:[],Rh.FEEDBACK_USER);case es.RATING:return _h(null!=e?e:[],Rh.RATING_USER)&&null!=o&&o!==mh.NO_RATING;case es.PRINT:return _h(null!=e?e:[],Rh.PRINT_USER);case es.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case es.COLLECTIONS:return _h(null!=e?e:[],Rh.COLLECTION_USER);case es.PERSONAL_BOOKS:return _h(null!=e?e:[],Rh.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Th extends Ah{static async build(t){return new Th(new fh,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Wh{static build(t,e){return new Wh((t=>za.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=e?e:Th.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new so(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return ho((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,i,r;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(e=this.service)||void 0===e?void 0:e.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(i=this.service)||void 0===i?void 0:i.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(r=this.service)||void 0===r?void 0:r.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof Qe||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,e;this.store.getState().relatives&&(this.clusteringHelper=new no(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(e=null===(t=Ic.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var e,o,i;const r=await ho((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),n=this.store.getState().mapId,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(n,r,[t]);if(null===(i=null===(o=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===o?void 0:o.entries)||void 0===i?void 0:i[0]){const t=s.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const Dh=ft`
|
|
1729
|
+
`;class Fh extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Mh extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Bh extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Ph extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class jh extends Event{constructor(){super("ft-reader-map-not-found")}}class zh extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Kh extends Event{constructor(){super("ft-reader-map-forbidden")}}class Zh extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var Hh=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vh extends tn{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new so(5),this.navigationDebouncer=new so(10),this.mapLoadedEventDebouncer=new so(50),this.addStore(Ic)}render(){return Jt`
|
|
1715
1730
|
${this.importStyleIfNeeded()}
|
|
1716
1731
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1717
|
-
`}importStyleIfNeeded(){var t,e;const
|
|
1732
|
+
`}importStyleIfNeeded(){var t,e;const o=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!o||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?te:Jt`
|
|
1718
1733
|
<style>
|
|
1719
|
-
@import "${
|
|
1734
|
+
@import "${o}"
|
|
1720
1735
|
</style>
|
|
1721
|
-
`}get stateManager(){return null==this._stateManager&&(this._stateManager=
|
|
1736
|
+
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Wh.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Bh(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Mh(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new Zh),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new zh):403===e.status?this.dispatchEvent(new Kh):404===e.status?this.dispatchEvent(new jh):this.dispatchEvent(new Ph(t))}reloadBookmarks(){zc.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new Fh(this.map,this.toc))}))}}var Gh;Vh.styles=Dh,Hh([Kr({store:Ic.name})],Vh.prototype,"baseUrl",void 0),Hh([Oe()],Vh.prototype,"mapId",void 0),Hh([Oe()],Vh.prototype,"tocId",void 0),Hh([Oe()],Vh.prototype,"section",void 0),Hh([Oe()],Vh.prototype,"topicPivot",void 0),Hh([Oe()],Vh.prototype,"searchInDocumentQuery",void 0),Hh([Oe({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Gh}})],Vh.prototype,"page",void 0),Hh([Kr({store:"reader"})],Vh.prototype,"map",void 0),Hh([Kr({store:"reader"})],Vh.prototype,"toc",void 0),Hh([Kr({store:"reader"})],Vh.prototype,"visibleTopics",void 0),Hh([Kr({store:"reader"})],Vh.prototype,"currentPage",void 0),Hh([Kr({store:"reader"})],Vh.prototype,"scrollTarget",void 0),Hh([Oe({attribute:!1})],Vh.prototype,"readerServiceProvider",void 0),yo("ft-reader-context")(Vh);class qh extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}}class Yh extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class Jh extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}}class Xh extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}}class Qh extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}}var td=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ed extends(Gc(ns)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",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.addI18nContext(eh,oh)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(es.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(es.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}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,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,e;const o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof o?fo(o):o}render(){return this.canAccessFeedback||this.canAccessRating?Jt`
|
|
1722
1737
|
<div class="ft-reader-feedback">
|
|
1723
|
-
${this.hideTitle?
|
|
1738
|
+
${this.hideTitle?te:Jt`
|
|
1724
1739
|
<ft-typography variant="title" part="main-title">
|
|
1725
1740
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1726
1741
|
</ft-typography>
|
|
@@ -1728,7 +1743,7 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1728
1743
|
${this.renderRatingSection()}
|
|
1729
1744
|
${this.renderFeedbackSection()}
|
|
1730
1745
|
</div>
|
|
1731
|
-
`:
|
|
1746
|
+
`:te}renderRatingSection(){return this.canAccessRating?Jt`
|
|
1732
1747
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1733
1748
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1734
1749
|
${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
@@ -1738,20 +1753,20 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1738
1753
|
${this.renderRatingDate()}
|
|
1739
1754
|
</ft-typography>
|
|
1740
1755
|
</div>
|
|
1741
|
-
`:
|
|
1756
|
+
`:te}renderRatingDate(){const t=this.ratingDate;if(null==t)return eh.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return eh.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?eh.messages.ratedToday():eh.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return Jt`
|
|
1742
1757
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1743
|
-
${
|
|
1744
|
-
<ft-button round part="rating-stars-${
|
|
1745
|
-
label="${
|
|
1758
|
+
${je(new Array(5),((t,e)=>e),((t,e)=>{let o="STARS"===this.ratingType&&this.ratingValue>e;const i=e+1;return Jt`
|
|
1759
|
+
<ft-button round part="rating-stars-${i}"
|
|
1760
|
+
label="${eh.messages.starsRating(i)}"
|
|
1746
1761
|
tooltipPosition="top"
|
|
1747
1762
|
.iconVariant=${this.iconVariant}
|
|
1748
|
-
icon="${
|
|
1749
|
-
class="ft-reader-feedback--${
|
|
1750
|
-
@click=${()=>this.rate(this.ratingValue===
|
|
1763
|
+
icon="${o?this.filledStarIcon:this.emptyStarIcon}"
|
|
1764
|
+
class="ft-reader-feedback--${o?"active":"inactive"}"
|
|
1765
|
+
@click=${()=>this.rate(this.ratingValue===i?void 0:i)}
|
|
1751
1766
|
></ft-button>
|
|
1752
1767
|
`}))}
|
|
1753
1768
|
</div>
|
|
1754
|
-
`;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return
|
|
1769
|
+
`;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return Jt`
|
|
1755
1770
|
<ft-switch unselectable
|
|
1756
1771
|
@change=${t=>this.rate(t.detail)}
|
|
1757
1772
|
part="rating rating-like">
|
|
@@ -1759,66 +1774,66 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1759
1774
|
?selected=${e}
|
|
1760
1775
|
.iconVariant=${this.iconVariant}
|
|
1761
1776
|
icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1762
|
-
${
|
|
1777
|
+
${eh.messages.like()}
|
|
1763
1778
|
</ft-switch-option>
|
|
1764
1779
|
<ft-switch-option .value=${0}
|
|
1765
1780
|
?selected=${t}
|
|
1766
1781
|
.iconVariant=${this.iconVariant}
|
|
1767
1782
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1768
|
-
${
|
|
1783
|
+
${eh.messages.dislike()}
|
|
1769
1784
|
</ft-switch-option>
|
|
1770
1785
|
</ft-switch>
|
|
1771
|
-
`;case"DICHOTOMOUS":const
|
|
1786
|
+
`;case"DICHOTOMOUS":const o="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,i="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return Jt`
|
|
1772
1787
|
<ft-switch unselectable
|
|
1773
1788
|
@change=${t=>this.rate(t.detail)}
|
|
1774
1789
|
part="rating rating-dichotomous">
|
|
1775
1790
|
<ft-switch-option .value=${1}
|
|
1776
|
-
?selected=${
|
|
1777
|
-
${
|
|
1791
|
+
?selected=${i}>
|
|
1792
|
+
${eh.messages.dichotomousYes()}
|
|
1778
1793
|
</ft-switch-option>
|
|
1779
1794
|
<ft-switch-option .value=${0}
|
|
1780
|
-
?selected=${
|
|
1781
|
-
${
|
|
1795
|
+
?selected=${o}>
|
|
1796
|
+
${eh.messages.dichotomousNo()}
|
|
1782
1797
|
</ft-switch-option>
|
|
1783
1798
|
</ft-switch>
|
|
1784
|
-
`}return
|
|
1799
|
+
`}return te}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,o,i,r;if(this.canAccessFeedback){const n=this.feedbackMailLinkBuilder(this.feedbackMessage);let a=Jt`
|
|
1785
1800
|
<ft-button primary
|
|
1786
1801
|
type="submit" name="submit"
|
|
1787
1802
|
class="ft-reader-feedback--send-feedback"
|
|
1788
1803
|
?disabled=${!this.feedbackMessage||!this.validFromEmail()}
|
|
1789
1804
|
part="send-feedback">
|
|
1790
|
-
${
|
|
1805
|
+
${eh.messages.okButton()}
|
|
1791
1806
|
</ft-button>
|
|
1792
|
-
`;n&&(a=
|
|
1807
|
+
`;n&&(a=Jt`
|
|
1793
1808
|
<a class="ft-reader-feedback--feedback-link" href="${n}">
|
|
1794
1809
|
${a}
|
|
1795
1810
|
</a>
|
|
1796
|
-
`);let s=this.withMoreOptionsButton&&((null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics)||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers))?
|
|
1811
|
+
`);let s=this.withMoreOptionsButton&&((null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics)||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers))?Jt`
|
|
1797
1812
|
<ft-button outlined
|
|
1798
1813
|
type="button" name="more-options"
|
|
1799
1814
|
class="ft-reader-feedback--more-options"
|
|
1800
1815
|
@click="${this.onOpenMoreDetails}"
|
|
1801
1816
|
part="more-options">
|
|
1802
|
-
${
|
|
1817
|
+
${eh.messages.moreOptionsButton()}
|
|
1803
1818
|
</ft-button>
|
|
1804
|
-
`:
|
|
1819
|
+
`:te;return Jt`
|
|
1805
1820
|
<form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
|
|
1806
1821
|
@submit="${t=>this.onFormSubmitEvent(t,!!n)}">
|
|
1807
1822
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1808
1823
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1809
1824
|
</ft-typography>
|
|
1810
|
-
${null==(null===(
|
|
1825
|
+
${null==(null===(i=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===i?void 0:i.userId)&&(null===(r=this.configuration)||void 0===r?void 0:r.mailsSentByFluidTopicsForUnauthenticatedUsers)?Jt`
|
|
1811
1826
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1812
1827
|
class="ft-reader-feedback--from-input"
|
|
1813
|
-
label=${
|
|
1828
|
+
label=${eh.messages.feedbackfromEmail()}
|
|
1814
1829
|
@change=${t=>this.from=t.detail.trim()}
|
|
1815
1830
|
?error=${this.from&&!this.validFromEmail()}
|
|
1816
|
-
helper=${this.from&&!this.validFromEmail()?
|
|
1831
|
+
helper=${this.from&&!this.validFromEmail()?eh.messages.feedbackfromEmailInvalid():""}
|
|
1817
1832
|
/>
|
|
1818
|
-
`:
|
|
1833
|
+
`:te}
|
|
1819
1834
|
<ft-text-area outlined
|
|
1820
1835
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1821
|
-
label="${
|
|
1836
|
+
label="${eh.messages.feedbackInputLabel()}"
|
|
1822
1837
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1823
1838
|
></ft-text-area>
|
|
1824
1839
|
<div part="buttons-container">
|
|
@@ -1826,7 +1841,7 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1826
1841
|
${a}
|
|
1827
1842
|
</div>
|
|
1828
1843
|
</form>
|
|
1829
|
-
`}return
|
|
1844
|
+
`}return te}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new qh({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}ed.elementDefinitions={"ft-button":Nc,"ft-typography":Al,"ft-switch":nc,"ft-switch-option":oc,"ft-text-area":mc,"ft-text-field":ah},ed.styles=Cl,td([Oe({type:Boolean})],ed.prototype,"editorMode",void 0),td([Oe({type:Boolean})],ed.prototype,"hideTitle",void 0),td([Oe({type:Boolean})],ed.prototype,"withMoreOptionsButton",void 0),td([Oe({type:Boolean})],ed.prototype,"ratingAllowed",void 0),td([Oe({attribute:!1})],ed.prototype,"i18nProperties",void 0),td([Oe({attribute:!1})],ed.prototype,"ratingSummary",void 0),td([Oe({attribute:!1})],ed.prototype,"session",void 0),td([Ce(".ft-reader-feedback--feedback-input")],ed.prototype,"feedbackInput",void 0),td([Se()],ed.prototype,"from",void 0),td([Se()],ed.prototype,"feedbackMessage",void 0),td([Oe()],ed.prototype,"iconVariant",void 0),td([Oe()],ed.prototype,"emptyStarIcon",void 0),td([Oe()],ed.prototype,"filledStarIcon",void 0),td([Oe()],ed.prototype,"emptyLikeIcon",void 0),td([Oe()],ed.prototype,"filledLikeIcon",void 0),td([Oe()],ed.prototype,"emptyDislikeIcon",void 0),td([Oe()],ed.prototype,"filledDislikeIcon",void 0),td([Kr({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ed.prototype,"configuration",void 0),td([Oe()],ed.prototype,"feedbackMailLinkBuilder",void 0);const od=Qc.fromGwt("server");class id{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}shouldUseMailer(){var t,e;const o=this.isAuthenticated&&!(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics),i=!this.isAuthenticated&&!(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||i}build(t){var e;if(null!=t&&0===t.length||!this.shouldUseMailer())return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),i=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${null!=t?t:""}\n\n_________________________________________________________________\n${od.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${i}`}}const rd=Qc.build("inDesignerFeedbackComponent"),nd={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var ad=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sd extends(Gc(ns)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Hl.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 id,this.i18nProperties={feedbackMainTitle:eh.properties.mapFeedbackMainTitle(),ratingSectionTitle:eh.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:eh.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:eh.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new so(100),this.sendRatingDebouncer=new so(500),this.addStore(Ic)}render(){return Jt`
|
|
1830
1845
|
<ft-reader-feedback
|
|
1831
1846
|
ratingAllowed
|
|
1832
1847
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1848,7 +1863,7 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1848
1863
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1849
1864
|
@open-more-options=${this.openMoreOptions}
|
|
1850
1865
|
></ft-reader-feedback>
|
|
1851
|
-
`}update(t){var e,i,
|
|
1866
|
+
`}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(rd,nd),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,o,i;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(o=this.service)||void 0===o?void 0:o.rateMap(null===(i=this.ratingSummary)||void 0===i?void 0:i.type,t))}catch{this.dispatchEvent(new fi({type:"error",message:eh.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new fi({type:"info",message:rd.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new fi({type:"info",message:rd.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new fi({type:"info",message:eh.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new fi({type:"error",message:eh.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Qh)}openMoreOptions(){var t,e,o;this.dispatchEvent(new Jh({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||mh.NO_RATING,ratingValue:null===(o=this.ratingSummary)||void 0===o?void 0:o.rating}))}}sd.elementDefinitions={"ft-reader-feedback":ed},ad([Kr({store:Ic.name})],sd.prototype,"session",void 0),ad([Kr({store:"reader"})],sd.prototype,"map",void 0),ad([Kr({store:Ic.name})],sd.prototype,"editorMode",void 0),ad([Kr({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],sd.prototype,"configuration",void 0),ad([Se()],sd.prototype,"ratingSummary",void 0),ad([Oe({type:Boolean})],sd.prototype,"hideTitle",void 0),ad([Oe({type:Boolean})],sd.prototype,"withMoreOptionsButton",void 0),ad([Oe()],sd.prototype,"iconVariant",void 0),ad([Oe()],sd.prototype,"emptyStarIcon",void 0),ad([Oe()],sd.prototype,"filledStarIcon",void 0),ad([Oe()],sd.prototype,"emptyLikeIcon",void 0),ad([Oe()],sd.prototype,"filledLikeIcon",void 0),ad([Oe()],sd.prototype,"emptyDislikeIcon",void 0),ad([Oe()],sd.prototype,"filledDislikeIcon",void 0),ad([Ce("ft-reader-feedback")],sd.prototype,"readerFeedback",void 0),ad([th(od.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],sd.prototype,"mailSubject",void 0),ad([Zr({eventName:"rating-changed"})],sd.prototype,"fetchRatingSummary",null);var ld=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class cd extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const hd=Symbol("registerInterval");class dd extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[hd]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[hd]):this.dispatchEvent(new cd)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=hd,ld([Se()],o.prototype,"tocNode",void 0),ld([Se()],o.prototype,"disableContextInteractions",void 0),o}(ns)){}var fd=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ud extends(Gc(dd)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Hl.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 id,this.i18nProperties={feedbackMainTitle:eh.properties.topicFeedbackMainTitle(),ratingSectionTitle:eh.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:eh.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:eh.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new so(100),this.sendRatingDebouncer=new so(500),this.addStore(Ic)}render(){var t;return Jt`
|
|
1852
1867
|
<ft-reader-feedback
|
|
1853
1868
|
.i18nProperties=${this.i18nProperties}
|
|
1854
1869
|
?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
|
|
@@ -1870,4 +1885,4 @@ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.par
|
|
|
1870
1885
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1871
1886
|
@open-more-options=${this.openMoreOptions}
|
|
1872
1887
|
></ft-reader-feedback>
|
|
1873
|
-
`}update(t){var e,i,
|
|
1888
|
+
`}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(rd,nd),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,o,i;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(o=this.service)||void 0===o?void 0:o.rateTopic(this.tocNode.tocId,null===(i=this.ratingSummary)||void 0===i?void 0:i.type,t))}catch{this.dispatchEvent(new fi({type:"error",message:eh.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new fi({type:"info",message:rd.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new fi({type:"info",message:eh.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new fi({type:"info",message:rd.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new fi({type:"error",message:eh.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new Xh(t))}openMoreOptions(){var t,e,o,i,r,n,a,s;this.dispatchEvent(new Yh({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(o=this.map)||void 0===o?void 0:o.metadata)||[],breadcrumb:(null===(r=null===(i=this.stateManager)||void 0===i?void 0:i.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:mh.NO_RATING)||mh.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}ud.elementDefinitions={"ft-reader-feedback":ed},fd([Kr({store:Ic.name})],ud.prototype,"session",void 0),fd([Kr({store:"reader"})],ud.prototype,"map",void 0),fd([Kr({store:Ic.name})],ud.prototype,"editorMode",void 0),fd([Kr({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ud.prototype,"configuration",void 0),fd([Se()],ud.prototype,"ratingSummary",void 0),fd([Oe({type:Boolean})],ud.prototype,"hideTitle",void 0),fd([Oe({type:Boolean})],ud.prototype,"withMoreOptionsButton",void 0),fd([Oe()],ud.prototype,"iconVariant",void 0),fd([Oe()],ud.prototype,"emptyStarIcon",void 0),fd([Oe()],ud.prototype,"filledStarIcon",void 0),fd([Oe()],ud.prototype,"emptyLikeIcon",void 0),fd([Oe()],ud.prototype,"filledLikeIcon",void 0),fd([Oe()],ud.prototype,"emptyDislikeIcon",void 0),fd([Oe()],ud.prototype,"filledDislikeIcon",void 0),fd([Ce("ft-reader-feedback")],ud.prototype,"readerFeedback",void 0),fd([th(od.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],ud.prototype,"mailSubject",void 0),fd([Zr({eventName:"rating-changed"})],ud.prototype,"fetchRatingSummary",null),yo("ft-reader-map-feedback")(sd),yo("ft-reader-topic-feedback")(ud),t.FtReaderFeedbackCssVariables=$l,t.FtReaderMapFeedback=sd,t.FtReaderTopicFeedback=ud,t.styles=Cl}({});
|