@fluid-topics/ft-reader-toc 1.1.2 → 1.1.4
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-toc.light.js +63 -63
- package/build/ft-reader-toc.min.js +203 -203
- package/package.json +7 -7
|
@@ -12,80 +12,80 @@
|
|
|
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,
|
|
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||[]);h(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 p=o.call(i,t);p||(p=f(t),e.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(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,p=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},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=p(o)||window.customElements,r=i._getDefinition(e);return r?u(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)}},h=(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)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(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 m=(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(m(Element,"innerHTML"),m(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(Qi){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 e=globalThis,
|
|
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:p,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,d=globalThis,u=d.trustedTypes,y=u?u.emptyScript:"",g=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={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}},x=(t,e)=>!s(t,e),v={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let O=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=v){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)??v}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(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=[...p(t),...f(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:m).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:m;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??x)(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){}};O.elementStyles=[],O.shadowRootOptions={mode:"open"},O[b("elementProperties")]=new Map,O[b("finalized")]=new Map,g?.({ReactiveElement:O}),(d.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 S={attribute:!0,type:String,converter:
|
|
31
|
+
const S={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},N=(t=S,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)};function w(t){return(e,o)=>"object"==typeof o?N(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)
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
|
34
34
|
* Copyright 2017 Google LLC
|
|
35
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
*/}function
|
|
36
|
+
*/}function C(t){return w({...t,state:!0,attribute:!1})}
|
|
37
37
|
/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/const
|
|
41
|
+
*/const $=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
|
|
42
42
|
/**
|
|
43
43
|
* @license
|
|
44
44
|
* Copyright 2017 Google LLC
|
|
45
45
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
|
-
*/;function
|
|
46
|
+
*/;function E(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 $(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 $(0,0,{get(){return n(this)}})}}
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2017 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/
|
|
51
|
+
*/class R{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}}function k(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(!k(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(!k(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(!k(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const U=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function I(t,e){const o=()=>JSON.parse(JSON.stringify(t));return w({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)=>!k(t,e),...null!=e?e:{}})}
|
|
52
52
|
/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright 2017 Google LLC
|
|
55
55
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56
|
-
*/const L=globalThis,W=L.trustedTypes,z=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,
|
|
56
|
+
*/const L=globalThis,W=L.trustedTypes,z=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,A="?"+F,Z=`<${A}>`,B=document,M=()=>B.createComment(""),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,H=t=>P(t)||"function"==typeof t?.[Symbol.iterator],T="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,G=/>/g,V=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,X=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),Q=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),et=new WeakMap,ot=B.createTreeWalker(B,129);function it(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==z?z.createHTML(e):e}const rt=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=j;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,p=0;for(;p<o.length&&(a.lastIndex=p,l=a.exec(o),null!==l);)p=a.lastIndex,a===j?"!--"===l[1]?a=_:void 0!==l[1]?a=G:void 0!==l[2]?(J.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=V):void 0!==l[3]&&(a=V):a===V?">"===l[0]?(a=r??j,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?V:'"'===l[3]?X:Y):a===X||a===Y?a=V:a===_||a===G?a=j:(a=V,r=void 0);const f=a===V&&t[e+1].startsWith("/>")?" ":"";n+=a===j?o+Z:c>=0?(i.push(s),o.slice(0,c)+K+o.slice(c)+F+f):o+F+(-2===c?e:f)}return[it(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let nt=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,p]=rt(e,o);if(this.el=t.createElement(c,i),ot.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ot.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(K)){const e=p[a++],o=r.getAttribute(t).split(F),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?pt:"?"===i[1]?ft:"@"===i[1]?ht:ct}),r.removeAttribute(t)}else t.startsWith(F)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(J.test(r.tagName)){const t=r.textContent.split(F),e=t.length-1;if(e>0){r.textContent=W?W.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],M()),ot.nextNode(),l.push({type:2,index:++n});r.append(t[e],M())}}}else if(8===r.nodeType)if(r.data===A)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(F,t+1));)l.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,e){const o=B.createElement("template");return o.innerHTML=t,o}};function at(t,e,o=t,i){if(e===Q)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=D(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=at(t,r._$AS(t,e.values),r,i)),e}let st=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??B).importNode(e,!0);ot.currentNode=i;let r=ot.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new lt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new dt(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=ot.nextNode(),n++)}return ot.currentNode=B,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++}},lt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=tt,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=at(this,t,e),D(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):H(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!==tt&&D(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.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=nt.createElement(it(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new st(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new nt(t)),e}T(e){P(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(M()),this.k(M()),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))}},ct=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=tt,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=tt}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=at(this,t,e,0),n=!D(t)||t!==this._$AH&&t!==Q,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=at(this,i[o+a],e,a),s===Q&&(s=this._$AH[a]),n||=!D(s)||s!==this._$AH[a],s===tt?t=tt:t!==tt&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},pt=class extends ct{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===tt?void 0:t}},ft=class extends ct{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},ht=class extends ct{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=at(this,t,e,0)??tt)===Q)return;const o=this._$AH,i=t===tt&&o!==tt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==tt&&(o===tt||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)}},dt=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){at(this,t)}};const ut={j:K,P:F,A,C:1,M:rt,L:st,R:H,V:at,D:lt,I:ct,H:ft,N:ht,U:pt,B:dt},yt=L.litHtmlPolyfillSupport;yt?.(nt,lt),(L.litHtmlVersions??=[]).push("3.1.0");
|
|
57
57
|
/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2019 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
61
|
*/
|
|
62
|
-
const gt=globalThis,bt=gt.ShadowRoot&&(void 0===gt.ShadyCSS||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),xt=new WeakMap;let vt=class{constructor(t,o
|
|
62
|
+
const gt=globalThis,bt=gt.ShadowRoot&&(void 0===gt.ShadyCSS||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),xt=new WeakMap;let vt=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==mt)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(bt&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=xt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&xt.set(e,t))}return t}toString(){return this.cssText}};const Ot=t=>new vt("string"==typeof t?t:t+"",void 0,mt),St=(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 vt(o,t,mt)},Nt=bt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return Ot(e)})(t):t
|
|
63
63
|
/**
|
|
64
64
|
* @license
|
|
65
65
|
* Copyright 2017 Google LLC
|
|
66
66
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
67
|
-
*/,{is:wt,defineProperty:Ct,getOwnPropertyDescriptor:$t,getOwnPropertyNames:Et,getOwnPropertySymbols:Rt,getPrototypeOf:
|
|
67
|
+
*/,{is:wt,defineProperty:Ct,getOwnPropertyDescriptor:$t,getOwnPropertyNames:Et,getOwnPropertySymbols:Rt,getPrototypeOf:kt}=Object,Ut=globalThis,It=Ut.trustedTypes,Lt=It?It.emptyScript:"",Wt=Ut.reactiveElementPolyfillSupport,zt=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?Lt: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}},Ft=(t,e)=>!wt(t,e),At={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Ft};Symbol.metadata??=Symbol("metadata"),Ut.litPropertyMetadata??=new WeakMap;class Zt 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=At){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&&Ct(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=$t(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)??At}static _$Ei(){if(this.hasOwnProperty(zt("elementProperties")))return;const t=kt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(zt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zt("properties"))){const t=this.properties,e=[...Et(t),...Rt(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(Nt(t))}else void 0!==t&&e.push(Nt(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,e)=>{if(bt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=gt.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(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:Kt).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:Kt;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??Ft)(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){}}Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Zt[zt("elementProperties")]=new Map,Zt[zt("finalized")]=new Map,Wt?.({ReactiveElement:Zt}),(Ut.reactiveElementVersions??=[]).push("2.0.2");
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
70
70
|
* Copyright 2017 Google LLC
|
|
71
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
72
|
*/
|
|
73
|
-
const Bt=globalThis,Mt=Bt.trustedTypes,Dt=Mt?Mt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Pt="$lit$",Ht=`lit$${(Math.random()+"").slice(9)}$`,
|
|
73
|
+
const Bt=globalThis,Mt=Bt.trustedTypes,Dt=Mt?Mt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Pt="$lit$",Ht=`lit$${(Math.random()+"").slice(9)}$`,Tt="?"+Ht,jt=`<${Tt}>`,_t=document,Gt=()=>_t.createComment(""),Vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Yt=Array.isArray,Xt="[ \t\n\f\r]",Jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qt=/-->/g,Qt=/>/g,te=RegExp(`>|${Xt}(?:([^\\s"'>=/]+)(${Xt}*=${Xt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,oe=/"/g,ie=/^(?:script|style|textarea|title)$/i,re=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ne=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),se=new WeakMap,le=_t.createTreeWalker(_t,129);function ce(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Dt?Dt.createHTML(e):e}const pe=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Jt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,p=0;for(;p<o.length&&(a.lastIndex=p,l=a.exec(o),null!==l);)p=a.lastIndex,a===Jt?"!--"===l[1]?a=qt:void 0!==l[1]?a=Qt:void 0!==l[2]?(ie.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=te):void 0!==l[3]&&(a=te):a===te?">"===l[0]?(a=r??Jt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?te:'"'===l[3]?oe:ee):a===oe||a===ee?a=te:a===qt||a===Qt?a=Jt:(a=te,r=void 0);const f=a===te&&t[e+1].startsWith("/>")?" ":"";n+=a===Jt?o+jt:c>=0?(i.push(s),o.slice(0,c)+Pt+o.slice(c)+Ht+f):o+Ht+(-2===c?e:f)}return[ce(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class fe{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]=pe(t,e);if(this.el=fe.createElement(l,o),le.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=le.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Pt)){const e=c[n++],o=i.getAttribute(t).split(Ht),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?ye:"?"===a[1]?ge:"@"===a[1]?be:ue}),i.removeAttribute(t)}else t.startsWith(Ht)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(ie.test(i.tagName)){const t=i.textContent.split(Ht),e=t.length-1;if(e>0){i.textContent=Mt?Mt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Gt()),le.nextNode(),s.push({type:2,index:++r});i.append(t[e],Gt())}}}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(Ht,t+1));)s.push({type:7,index:r}),t+=Ht.length-1}r++}}static createElement(t,e){const o=_t.createElement("template");return o.innerHTML=t,o}}function he(t,e,o=t,i){if(e===ne)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Vt(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=he(t,r._$AS(t,e.values),r,i)),e}class de{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ae,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=he(this,t,e),Vt(t)?t===ae||null==t||""===t?(this._$AH!==ae&&this._$AR(),this._$AH=ae):t!==this._$AH&&t!==ne&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Yt(t)||"function"==typeof t?.[Symbol.iterator])(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!==ae&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.$(_t.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=fe.createElement(ce(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new 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??_t).importNode(e,!0);le.currentNode=i;let r=le.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new de(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new me(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=le.nextNode(),n++)}return le.currentNode=_t,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++}}(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=se.get(t.strings);return void 0===e&&se.set(t.strings,e=new fe(t)),e}T(t){Yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new de(this.k(Gt()),this.k(Gt()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$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))}}class ue{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ae,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=ae}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=he(this,t,e,0),n=!Vt(t)||t!==this._$AH&&t!==ne,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=he(this,i[o+a],e,a),s===ne&&(s=this._$AH[a]),n||=!Vt(s)||s!==this._$AH[a],s===ae?t=ae:t!==ae&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ye extends ue{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ae?void 0:t}}class ge extends ue{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ae)}}class be extends ue{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=he(this,t,e,0)??ae)===ne)return;const o=this._$AH,i=t===ae&&o!==ae||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ae&&(o===ae||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)}}class me{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){he(this,t)}}const xe=Bt.litHtmlPolyfillSupport;xe?.(fe,de),(Bt.litHtmlVersions??=[]).push("3.1.0");
|
|
74
74
|
/**
|
|
75
75
|
* @license
|
|
76
76
|
* Copyright 2017 Google LLC
|
|
77
77
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
78
78
|
*/
|
|
79
|
-
let Oo=class extends At{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 o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,e)=>{const i=e?.renderBefore??o;let r=i._$litPart$;if(void 0===r){const t=e?.renderBefore??null;i._$litPart$=r=new uo(o.insertBefore(Gt(),t),t,void 0,e??{})}return r._$AI(t),r})(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return no}};Oo._$litElement$=!0,Oo.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Oo});const No=globalThis.litElementPolyfillSupport;No?.({LitElement:Oo}),(globalThis.litElementVersions??=[]).push("4.0.2");const So=t=>"string"==typeof t?Ot(t):t;class wo{static create(t,o,e,i){const r=t=>So(null!=t?t:i),n=Nt`var(${So(t)}, ${r(i)})`;return n.name=t,n.description=o,n.category=e,n.defaultValue=i,n.defaultCssValue=r,n.get=o=>Nt`var(${So(t)}, ${r(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,o,e,i){const r=t=>e.get(null!=t?t:i),n=Nt`var(${So(t)}, ${r(i)})`;return n.name=t,n.description=o,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=r,n.get=o=>Nt`var(${So(t)}, ${r(o)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:e.lastResortDefaultValue(),n}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):So(null!=o?o:t.lastResortDefaultValue()),i=Nt`var(${So(t.name)}, ${e(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=o,i.defaultCssValue=e,i.get=o=>Nt`var(${So(t.name)}, ${e(o)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function Co(t,o){return So(`${t.name}: ${o}`)}const $o={colorWhite:wo.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:wo.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:wo.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:wo.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:wo.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:wo.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:wo.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:wo.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:wo.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:wo.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:wo.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:wo.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:wo.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:wo.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:wo.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:wo.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:wo.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:wo.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:wo.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:wo.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:wo.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:wo.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:wo.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:wo.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:wo.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:wo.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:wo.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:wo.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:wo.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:wo.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:wo.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:wo.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:wo.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:wo.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:wo.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:wo.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:wo.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:wo.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:wo.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:wo.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:wo.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:wo.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:wo.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:wo.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:wo.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:wo.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:wo.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:wo.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:wo.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:wo.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:wo.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:wo.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:wo.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:wo.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:wo.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:wo.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:wo.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:wo.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:wo.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:wo.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:wo.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:wo.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:wo.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:wo.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:wo.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:wo.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:wo.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:wo.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:wo.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:wo.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:wo.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:wo.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:wo.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:wo.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:wo.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:wo.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:wo.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:wo.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:wo.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:wo.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:wo.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:wo.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:wo.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:wo.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:wo.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:wo.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:wo.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:wo.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:wo.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:wo.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:wo.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:wo.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:wo.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:wo.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:wo.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:wo.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:wo.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:wo.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:wo.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:wo.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:wo.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:wo.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:wo.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:wo.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:wo.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:wo.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:wo.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:wo.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:wo.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:wo.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:wo.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:wo.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:wo.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:wo.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:wo.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:wo.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:wo.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:wo.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:wo.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:wo.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:wo.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:wo.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:wo.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:wo.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:wo.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:wo.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:wo.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:wo.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:wo.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:wo.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:wo.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:wo.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:wo.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:wo.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:wo.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:wo.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:wo.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:wo.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:wo.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:wo.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:wo.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:wo.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:wo.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:wo.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:wo.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:wo.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:wo.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:wo.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:wo.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:wo.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:wo.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:wo.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:wo.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:wo.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:wo.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:wo.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:wo.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:wo.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:wo.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:wo.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:wo.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:wo.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:wo.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:wo.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:wo.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:wo.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:wo.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:wo.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:wo.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:wo.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:wo.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:wo.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:wo.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:wo.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:wo.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:wo.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:wo.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:wo.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:wo.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:wo.create("--ft-icon-size-6","","SIZE","48px"),opacity0:wo.create("--ft-opacity-0","","NUMBER","0"),opacity8:wo.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:wo.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:wo.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:wo.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:wo.create("--ft-opacity-80","","NUMBER","0.8")},Eo={display:{fontFamily:wo.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:wo.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:wo.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:wo.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:wo.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:wo.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:wo.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:wo.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:wo.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:wo.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:wo.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:wo.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:wo.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:wo.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:wo.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:wo.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:wo.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:wo.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:wo.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:wo.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:wo.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:wo.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:wo.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:wo.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:wo.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:wo.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:wo.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:wo.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:wo.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:wo.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:wo.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:wo.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:wo.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:wo.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:wo.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:wo.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:wo.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:wo.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:wo.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:wo.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:wo.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:wo.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:wo.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:wo.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:wo.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:wo.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:wo.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:wo.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:wo.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:wo.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:wo.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:wo.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:wo.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:wo.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:wo.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:wo.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:wo.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:wo.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:wo.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:wo.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:wo.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:wo.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ro={backgroundActionPrimary:wo.extend("--ft-background-action-primary","Used as backgorund of primary action components.",$o.colorBrand0),backgroundErrorPrimary:wo.extend("--ft-background-error-primary","Used as background of error components.",$o.colorRed0),backgroundErrorSubtle:wo.extend("--ft-background-error-subtle","Used as background of subtle error components.",$o.colorRed10),backgroundInfoPrimary:wo.extend("--ft-background-info-primary","Used as background of information components.",$o.colorCyan200),backgroundInfoSubtle:wo.extend("--ft-background-info-subtle","Used as background of subtle information components.",$o.colorCyan10),backgroundWarningPrimary:wo.extend("--ft-background-warning-primary","Used as background of warning components.",$o.colorOrange300),backgroundWarningSubtle:wo.extend("--ft-background-warning-subtle","Used as background of subtle information components.",$o.colorOrange10),backgroundSuccessPrimary:wo.extend("--ft-background-success-primary","Used as background of success components.",$o.colorGreen200),backgroundSuccessSubtle:wo.extend("--ft-background-success-subtle","Used as background of subtle success components.",$o.colorGreen10),backgroundGlobalSurface:wo.extend("--ft-background-global-surface","Used as app background.",$o.colorWhite),backgroundGlobalOnSurface:wo.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",$o.colorGray10),backgroundGlobalOnSurfaceDark:wo.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",$o.colorGray30),contentActionPrimary:wo.extend("--ft-content-action-primary","Used on label of primary action on light surface.",$o.colorBrand0),contentWarningPrimary:wo.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",$o.colorOrange300),contentWarningIconOnly:wo.extend("--ft-content-warning-icon-only","Used on warning status icons alone",$o.colorOrange0),contentErrorPrimary:wo.extend("--ft-content-error-primary","Used on label of error messages on light surface.",$o.colorRed0),contentErrorIconOnly:wo.extend("--ft-content-error-icon-only","Used on error status icons alone",$o.colorRed0),contentInfoPrimary:wo.extend("--ft-content-info-primary","Used on label of information messages on light surface.",$o.colorCyan200),contentInfoIconOnly:wo.extend("--ft-content-info-icon-only","Used on info status icons alone",$o.colorCyan0),contentSuccessIconOnly:wo.extend("--ft-content-success-icon-only","Used on success status icons alone",$o.colorGreen0),contentSuccessPrimary:wo.extend("--ft-content-success-primary","Used on label of success messages on light surface.",$o.colorGreen200),contentGlobalPrimary:wo.extend("--ft-content-global-primary","Used for main content on the page.",$o.colorGray500),contentGlobalSecondary:wo.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",$o.colorGray200),contentGlobalSubtle:wo.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",$o.colorGray0),contentGlobalOnColor:wo.extend("--ft-content-global-on-color","Used for content on a dominant color.",$o.colorWhite),borderActionPrimary:wo.extend("--ft-border-action-primary","Used as border for primary action components.",$o.colorBrand0),borderActionFocusRing:wo.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",$o.colorCyan0),borderWarningPrimary:wo.extend("--ft-border-warning-primary","Used as border for warning components.",$o.colorOrange30),borderSuccessPrimary:wo.extend("--ft-border-success-primary","Used as border for success components.",$o.colorGreen30),borderErrorPrimary:wo.extend("--ft-border-error-primary","Used as border for error components.",$o.colorRed30),borderInfoPrimary:wo.extend("--ft-border-info-primary","Used as border for information components.",$o.colorCyan30),borderGlobalSubtle:wo.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",$o.colorGray30),borderGlobalPrimary:wo.extend("--ft-border-global-primary","Used as border for element like input.",$o.colorGray50),borderInputPrimary:wo.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",$o.colorGray80)},Uo={largeHeight:wo.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:wo.extend("--ft-button-large-horizontal-padding","",$o.spacing4),largeGap:wo.extend("--ft-button-large-gap","",$o.spacing2),largeBorderRadius:wo.extend("--ft-button-large-border-radius","",$o.borderRadiusS),largeIconSize:wo.extend("--ft-button-large-icon-size","",$o.iconSize3),largeBorderWidth:wo.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:wo.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:wo.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:wo.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:wo.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:wo.extend("--ft-button-small-horizontal-padding","",$o.spacing3),smallGap:wo.extend("--ft-button-small-gap","",$o.spacing2),smallBorderRadius:wo.extend("--ft-button-small-border-radius","",$o.borderRadiusS),smallIconSize:wo.extend("--ft-button-small-icon-size","",$o.iconSize2),smallBorderWidth:wo.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:wo.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:wo.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:wo.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:wo.extend("--ft-button-primary-background-color","",Ro.backgroundActionPrimary),primaryColor:wo.extend("--ft-button-primary-color","",Ro.contentGlobalOnColor),primaryIconColor:wo.extend("--ft-button-primary-icon-color","",Ro.contentGlobalOnColor),primaryStateLayerColor:wo.extend("--ft-button-primary-state-layer-color","",Ro.contentGlobalOnColor),primaryStateLayerOpacityHover:wo.extend("--ft-button-primary-state-layer-opacity-hover","",$o.opacity16),primaryStateLayerOpacityFocus:wo.extend("--ft-button-primary-state-layer-opacity-focus","",$o.opacity16),primaryStateLayerOpacityActive:wo.extend("--ft-button-primary-state-layer-opacity-active","",$o.opacity24),primaryComponentOpacityDisabled:wo.extend("--ft-button-primary-component-opacity-disabled","",$o.opacity40),focusFocusRingColor:wo.extend("--ft-button-focus-focus-ring-color","",Ro.borderActionFocusRing),tertiaryBackgroundColor:wo.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:wo.extend("--ft-button-tertiary-color","",Ro.contentActionPrimary),tertiaryIconColor:wo.extend("--ft-button-tertiary-icon-color","",Ro.contentActionPrimary),tertiaryStateLayerColor:wo.extend("--ft-button-tertiary-state-layer-color","",Ro.contentActionPrimary),tertiaryStateLayerOpacityHover:wo.extend("--ft-button-tertiary-state-layer-opacity-hover","",$o.opacity8),tertiaryStateLayerOpacityFocus:wo.extend("--ft-button-tertiary-state-layer-opacity-focus","",$o.opacity8),tertiaryStateLayerOpacityActive:wo.extend("--ft-button-tertiary-state-layer-opacity-active","",$o.opacity16),tertiaryComponentOpacityDisabled:wo.extend("--ft-button-tertiary-component-opacity-disabled","",$o.opacity40),secondaryBackgroundColor:wo.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:wo.extend("--ft-button-secondary-color","",Ro.contentActionPrimary),secondaryIconColor:wo.extend("--ft-button-secondary-icon-color","",Ro.contentActionPrimary),secondaryStateLayerColor:wo.extend("--ft-button-secondary-state-layer-color","",Ro.contentActionPrimary),secondaryStateLayerOpacityHover:wo.extend("--ft-button-secondary-state-layer-opacity-hover","",$o.opacity8),secondaryStateLayerOpacityFocus:wo.extend("--ft-button-secondary-state-layer-opacity-focus","",$o.opacity8),secondaryStateLayerOpacityActive:wo.extend("--ft-button-secondary-state-layer-opacity-active","",$o.opacity16),secondaryComponentOpacityDisabled:wo.extend("--ft-button-secondary-component-opacity-disabled","",$o.opacity40),secondaryBorderColor:wo.extend("--ft-button-secondary-border-color","",Ro.borderActionPrimary),neutralBackgroundColor:wo.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:wo.extend("--ft-button-neutral-icon-color","",Ro.contentGlobalSecondary),neutralColor:wo.extend("--ft-button-neutral-color","",Ro.contentGlobalSecondary),neutralStateLayerColor:wo.extend("--ft-button-neutral-state-layer-color","",Ro.contentGlobalSecondary),neutralStateLayerOpacityHover:wo.extend("--ft-button-neutral-state-layer-opacity-hover","",$o.opacity8),neutralStateLayerOpacityFocus:wo.extend("--ft-button-neutral-state-layer-opacity-focus","",$o.opacity8),neutralStateLayerOpacityActive:wo.extend("--ft-button-neutral-state-layer-opacity-active","",$o.opacity16),neutralComponentOpacityDisabled:wo.extend("--ft-button-neutral-component-opacity-disabled","",$o.opacity40)};wo.extend("--ft-tabs-top-left-border-radius","",$o.borderRadiusS),wo.extend("--ft-tabs-top-right-border-radius","",$o.borderRadiusS),wo.extend("--ft-tabs-label-horizontal-padding","",$o.spacing4),wo.extend("--ft-tabs-label-vertical-padding","",$o.spacing3),wo.extend("--ft-tabs-label-gap","",$o.spacing1),wo.extend("--ft-switch-group-horizontal-padding","",$o.spacing1),wo.extend("--ft-switch-group-vertical-padding","",$o.spacing1),wo.extend("--ft-switch-group-gap","",$o.spacing1),wo.extend("--ft-switch-group-background-color","",Ro.backgroundGlobalSurface),wo.extend("--ft-switch-group-border-color","",Ro.borderGlobalSubtle),wo.create("--ft-switch-group-border-radius","","SIZE","6px"),wo.extend("--ft-switch-label-horizontal-padding","",$o.spacing2),wo.extend("--ft-switch-label-vertical-padding","",$o.spacing1),wo.extend("--ft-switch-icon-horizontal-padding","",$o.spacing1),wo.extend("--ft-switch-icon-vertical-padding","",$o.spacing1),wo.create("--ft-switch-focus-outline-width","","SIZE","2px"),wo.extend("--ft-switch-focus-focus-ring-color","",Ro.borderActionFocusRing),wo.extend("--ft-switch-option-border-radius","",$o.borderRadiusS),wo.extend("--ft-switch-off-state-layer-opacity-hover","",$o.opacity8),wo.extend("--ft-switch-off-state-layer-opacity-focus","",$o.opacity8),wo.extend("--ft-switch-off-state-layer-opacity-active","",$o.opacity16),wo.extend("--ft-switch-off-component-opacity-disabled","",$o.opacity40),wo.extend("--ft-switch-off-color","",Ro.contentGlobalSubtle),wo.extend("--ft-switch-off-state-layer-color","",Ro.contentGlobalSubtle),wo.extend("--ft-chart-1-light","for area color charts",$o.colorBrand40),wo.extend("--ft-chart-1-base","for line charts",$o.colorBrand0),wo.extend("--ft-chart-2-light","for area color charts",$o.colorYellow60),wo.extend("--ft-chart-2-base","for line charts",$o.colorYellow100),wo.extend("--ft-chart-3-light","",$o.colorUltramarine40),wo.extend("--ft-chart-3-base","",$o.colorUltramarine70),wo.extend("--ft-chart-4-light","",$o.colorCyan50),wo.extend("--ft-chart-4-base","",$o.colorCyan100),wo.extend("--ft-chart-5-light","",$o.colorRed40),wo.extend("--ft-chart-5-base","",$o.colorRed60),wo.extend("--ft-chart-6-light","",$o.colorGreen40),wo.extend("--ft-chart-6-base","",$o.colorGreen70),wo.extend("--ft-chart-7-light","",$o.colorOrange70),wo.extend("--ft-chart-7-base","",$o.colorOrange100),wo.extend("--ft-chart-8-light","",$o.colorAvocado70),wo.extend("--ft-chart-8-base","",$o.colorAvocado200),wo.extend("--ft-chart-9-light","",$o.colorBrown50),wo.extend("--ft-chart-9-base","",$o.colorBrown200),wo.extend("--ft-chart-10-light","",$o.colorGray50),wo.extend("--ft-chart-10-base","",$o.colorGray80),wo.extend("--ft-chart-monochrome-10","",$o.colorBrand10),wo.extend("--ft-chart-monochrome-20","",$o.colorBrand20),wo.extend("--ft-chart-monochrome-30","",$o.colorBrand40),wo.extend("--ft-chart-monochrome-40","",$o.colorBrand60),wo.extend("--ft-chart-monochrome-50","",$o.colorBrand0),wo.extend("--ft-chart-monochrome-60","",$o.colorBrand200),wo.extend("--ft-chip-large-horizontal-padding","",$o.spacing4),wo.extend("--ft-chip-large-vertical-padding","",$o.spacing2),wo.extend("--ft-chip-large-gap","",$o.spacing1),wo.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),wo.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),wo.extend("--ft-chip-large-border-radius","",$o.borderRadiusPill),wo.create("--ft-chip-large-border-width","","SIZE","1px"),wo.extend("--ft-chip-large-icon-size","",$o.iconSize3),wo.extend("--ft-chip-medium-horizontal-padding","",$o.spacing3),wo.extend("--ft-chip-medium-vertical-padding","",$o.spacing1),wo.extend("--ft-chip-medium-gap","",$o.spacing1),wo.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),wo.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),wo.extend("--ft-chip-medium-border-radius","",$o.borderRadiusPill),wo.create("--ft-chip-medium-border-width","","SIZE","1px"),wo.extend("--ft-chip-medium-icon-size","",$o.iconSize2),wo.extend("--ft-chip-small-horizontal-padding","",$o.spacing2),wo.extend("--ft-chip-small-vertical-padding","",$o.spacing05),wo.extend("--ft-chip-small-gap","",$o.spacing1),wo.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),wo.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),wo.extend("--ft-chip-small-border-radius","",$o.borderRadiusPill),wo.create("--ft-chip-small-border-width","","SIZE","1px"),wo.extend("--ft-chip-small-icon-size","",$o.iconSize1),wo.extend("--ft-chip-neutral-background-color","",Ro.backgroundGlobalOnSurface),wo.extend("--ft-chip-neutral-color","",Ro.contentGlobalPrimary),wo.extend("--ft-chip-neutral-border-color","",Ro.borderGlobalSubtle),wo.extend("--ft-chip-info-background-color","",Ro.backgroundInfoSubtle),wo.extend("--ft-chip-info-color","",Ro.contentInfoPrimary),wo.extend("--ft-chip-info-border-color","",Ro.borderInfoPrimary),wo.extend("--ft-chip-success-background-color","",Ro.backgroundSuccessSubtle),wo.extend("--ft-chip-success-color","",Ro.contentSuccessPrimary),wo.extend("--ft-chip-success-border-color","",Ro.borderSuccessPrimary),wo.extend("--ft-chip-warning-background-color","",Ro.backgroundWarningSubtle),wo.extend("--ft-chip-warning-color","",Ro.contentWarningPrimary),wo.extend("--ft-chip-warning-border-color","",Ro.borderWarningPrimary),wo.extend("--ft-chip-error-background-color","",Ro.backgroundErrorSubtle),wo.extend("--ft-chip-error-color","",Ro.contentErrorPrimary),wo.extend("--ft-chip-error-border-color","",Ro.borderErrorPrimary),wo.create("--ft-notice-border-width","","SIZE","1px"),wo.extend("--ft-notice-horizontal-padding","",$o.spacing2),wo.extend("--ft-notice-vertical-padding","",$o.spacing1),wo.extend("--ft-notice-border-radius","",$o.borderRadiusS),wo.extend("--ft-notice-gap","",$o.spacing2),wo.extend("--ft-notice-icon-size","",$o.iconSize3),wo.extend("--ft-notice-info-background-color","",Ro.backgroundInfoSubtle),wo.extend("--ft-notice-info-border-color","",Ro.borderInfoPrimary),wo.extend("--ft-notice-info-color","",Ro.contentInfoPrimary),wo.extend("--ft-notice-warning-background-color","",Ro.backgroundWarningSubtle),wo.extend("--ft-notice-warning-border-color","",Ro.borderWarningPrimary),wo.extend("--ft-notice-warning-color","",Ro.contentWarningPrimary),wo.extend("--ft-checkbox-label-color","",Ro.contentGlobalPrimary),wo.extend("--ft-checkbox-checked-background-color","",Ro.contentActionPrimary),wo.extend("--ft-checkbox-checked-state-layer-color","",Ro.contentActionPrimary),wo.extend("--ft-checkbox-checked-color","",Ro.contentGlobalOnColor),wo.extend("--ft-checkbox-checked-state-layer-opacity-hover","",$o.opacity16),wo.extend("--ft-checkbox-checked-state-layer-opacity-focus","",$o.opacity16),wo.extend("--ft-checkbox-checked-state-layer-opacity-active","",$o.opacity24),wo.extend("--ft-checkbox-checked-component-opacity-disabled","",$o.opacity40),wo.extend("--ft-checkbox-unchecked-border-color","",$o.colorGray80),wo.extend("--ft-checkbox-unchecked-state-layer-color","",$o.colorGray80),wo.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",$o.opacity16),wo.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",$o.opacity16),wo.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",$o.opacity24),wo.extend("--ft-checkbox-unchecked-component-opacity-disabled","",$o.opacity40),wo.extend("--ft-checkbox-focus-focus-ring-color","",Ro.borderActionFocusRing),wo.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),wo.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),wo.extend("--ft-checkbox-gap","",$o.spacing3),wo.extend("--ft-toggle-off-state-layer-opacity-hover","",$o.opacity16),wo.extend("--ft-toggle-off-state-layer-opacity-focus","",$o.opacity16),wo.extend("--ft-toggle-off-state-layer-opacity-active","",$o.opacity24),wo.extend("--ft-toggle-off-component-opacity-disabled","",$o.opacity40),wo.extend("--ft-toggle-off-background-color","",Ro.contentGlobalSubtle),wo.extend("--ft-toggle-off-icon-color","",Ro.contentGlobalSubtle),wo.extend("--ft-toggle-off-state-layer-color","",Ro.contentGlobalSubtle),wo.extend("--ft-toggle-on-state-layer-opacity-hover","",$o.opacity16),wo.extend("--ft-toggle-on-state-layer-opacity-focus","",$o.opacity16),wo.extend("--ft-toggle-on-state-layer-opacity-active","",$o.opacity24),wo.extend("--ft-toggle-on-component-opacity-disabled","",$o.opacity40),wo.extend("--ft-toggle-on-background-color","",Ro.contentActionPrimary),wo.extend("--ft-toggle-on-icon-color","",Ro.contentActionPrimary),wo.extend("--ft-toggle-on-state-layer-color","",Ro.contentActionPrimary),wo.extend("--ft-toggle-label-color","",Ro.contentGlobalPrimary),wo.extend("--ft-toggle-focus-focus-ring-color","",Ro.borderActionFocusRing),wo.extend("--ft-toggle-gap","",$o.spacing3),wo.extend("--ft-radio-label-color","",Ro.contentGlobalPrimary),wo.extend("--ft-radio-selected-color","",Ro.contentActionPrimary),wo.extend("--ft-radio-selected-state-layer-color","",Ro.contentActionPrimary),wo.extend("--ft-radio-selected-state-layer-opacity-hover","",$o.opacity16),wo.extend("--ft-radio-selected-state-layer-opacity-focus","",$o.opacity16),wo.extend("--ft-radio-selected-state-layer-opacity-active","",$o.opacity24),wo.extend("--ft-radio-selected-component-opacity-disabled","",$o.opacity40),wo.extend("--ft-radio-unselected-state-layer-color","",$o.colorGray80),wo.extend("--ft-radio-unselected-state-layer-opacity-hover","",$o.opacity16),wo.extend("--ft-radio-unselected-state-layer-opacity-focus","",$o.opacity16),wo.extend("--ft-radio-unselected-state-layer-opacity-active","",$o.opacity24),wo.extend("--ft-radio-unselected-component-opacity-disabled","",$o.opacity40),wo.extend("--ft-radio-focus-focus-ring-color","",Ro.borderActionFocusRing),wo.create("--ft-radio-focus-outline-offset","","SIZE","3px"),wo.create("--ft-radio-focus-outline-width","","SIZE","2px"),wo.extend("--ft-radio-gap","",$o.spacing3),wo.extend("--ft-notification-icon-size","",$o.iconSize4),wo.extend("--ft-notification-horizontal-padding","",$o.spacing4),wo.extend("--ft-notification-vertical-padding","",$o.spacing4),wo.extend("--ft-notification-info-background-color","",Ro.backgroundInfoSubtle),wo.extend("--ft-notification-info-color","",Ro.contentInfoPrimary),wo.extend("--ft-notification-info-border-color","",Ro.borderInfoPrimary),wo.extend("--ft-notification-success-background-color","",Ro.backgroundSuccessSubtle),wo.extend("--ft-notification-success-color","",Ro.contentSuccessPrimary),wo.extend("--ft-notification-success-border-color","",Ro.borderSuccessPrimary),wo.extend("--ft-notification-warning-background-color","",Ro.backgroundWarningSubtle),wo.extend("--ft-notification-warning-color","",Ro.contentWarningPrimary),wo.extend("--ft-notification-warning-border-color","",Ro.borderWarningPrimary),wo.extend("--ft-notification-error-background-color","",Ro.backgroundErrorSubtle),wo.extend("--ft-notification-error-color","",Ro.contentErrorPrimary),wo.extend("--ft-notification-error-border-color","",Ro.borderErrorPrimary),wo.extend("--ft-notification-border-radius","",$o.borderRadiusPill),wo.create("--ft-notification-border-width","","SIZE","1px"),wo.extend("--ft-notification-gap-leading","",$o.spacing2),wo.extend("--ft-notification-gap-trailing","",$o.spacing8);const ko={colorPrimary:wo.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:wo.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:wo.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:wo.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:wo.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:wo.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:wo.create("--ft-color-error","","COLOR","#B00020"),colorOutline:wo.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:wo.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:wo.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:wo.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:wo.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:wo.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:wo.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:wo.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:wo.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:wo.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:wo.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:wo.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:wo.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:wo.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:wo.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:wo.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:wo.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:wo.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:wo.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:wo.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:wo.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:wo.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:wo.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:wo.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:wo.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:wo.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:wo.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:wo.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:wo.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:wo.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:wo.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:wo.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:wo.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:wo.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:wo.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:wo.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:wo.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:wo.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:wo.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:wo.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:wo.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:wo.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:wo.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:wo.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:wo.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:wo.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:wo.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:wo.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:wo.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:wo.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:wo.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:wo.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:wo.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:wo.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:wo.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")},Io=window,Lo=Io.ShadowRoot&&(void 0===Io.ShadyCSS||Io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;
|
|
79
|
+
let ve=class extends Zt{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,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new de(e.insertBefore(Gt(),t),t,void 0,o??{})}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 ne}};ve._$litElement$=!0,ve.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ve});const Oe=globalThis.litElementPolyfillSupport;Oe?.({LitElement:ve}),(globalThis.litElementVersions??=[]).push("4.0.2");const Se=t=>"string"==typeof t?Ot(t):t;class Ne{static create(t,e,o,i){const r=t=>Se(null!=t?t:i),n=St`var(${Se(t)}, ${r(i)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=i,n.defaultCssValue=r,n.get=e=>St`var(${Se(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=St`var(${Se(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=>St`var(${Se(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):Se(null!=e?e:t.lastResortDefaultValue()),i=St`var(${Se(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=>St`var(${Se(t.name)}, ${o(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}function we(t,e){return Se(`${t.name}: ${e}`)}const Ce={colorWhite:Ne.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ne.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ne.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ne.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ne.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ne.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ne.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ne.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ne.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ne.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ne.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ne.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ne.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ne.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ne.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ne.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ne.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ne.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ne.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ne.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ne.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ne.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ne.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ne.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ne.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ne.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ne.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ne.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ne.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ne.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ne.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ne.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ne.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ne.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ne.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ne.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ne.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ne.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ne.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ne.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ne.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ne.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ne.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ne.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ne.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ne.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ne.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ne.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ne.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ne.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ne.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ne.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ne.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ne.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ne.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ne.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ne.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ne.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ne.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ne.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ne.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ne.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ne.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ne.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ne.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ne.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ne.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ne.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ne.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ne.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ne.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ne.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ne.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ne.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ne.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ne.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ne.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ne.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ne.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ne.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ne.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ne.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ne.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ne.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ne.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ne.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ne.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ne.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ne.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ne.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ne.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ne.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ne.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ne.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ne.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ne.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ne.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ne.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ne.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ne.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ne.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ne.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ne.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ne.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ne.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ne.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ne.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ne.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ne.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ne.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ne.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ne.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ne.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ne.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ne.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ne.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ne.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ne.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ne.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ne.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ne.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ne.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ne.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ne.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ne.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ne.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ne.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ne.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ne.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ne.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ne.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ne.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ne.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ne.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ne.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ne.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ne.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ne.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ne.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ne.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ne.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ne.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ne.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ne.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ne.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ne.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ne.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ne.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ne.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ne.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ne.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ne.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ne.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ne.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ne.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ne.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ne.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ne.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ne.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ne.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ne.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ne.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ne.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ne.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ne.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ne.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ne.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ne.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ne.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ne.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ne.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ne.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ne.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ne.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ne.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ne.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ne.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ne.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ne.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ne.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ne.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ne.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ne.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ne.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ne.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ne.create("--ft-opacity-80","","NUMBER","0.8")},$e={display:{fontFamily:Ne.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ne.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ne.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ne.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ne.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ne.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Ne.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ne.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ne.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ne.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Ne.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ne.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ne.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ne.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Ne.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ne.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ne.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ne.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ne.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ne.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ne.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ne.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ne.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ne.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ne.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ne.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ne.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ne.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ne.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ne.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ne.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ne.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ne.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ne.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ne.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ne.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ne.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ne.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ne.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ne.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ne.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ne.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ne.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ne.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ne.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ne.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ne.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ne.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ne.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ne.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ne.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ne.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ne.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ne.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ne.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ne.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ne.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ne.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ne.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ne.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ne.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ne.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ne.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ne.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ne.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ne.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ne.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ne.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ne.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ne.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ne.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ne.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ne.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ne.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ne.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ne.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ne.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ne.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ne.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ne.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ne.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ne.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ne.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ne.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ne.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ne.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ne.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ne.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ne.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ne.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ne.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ne.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ne.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ne.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ne.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ne.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ne.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ne.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ne.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ne.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ne.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ne.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ne.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ne.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ne.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ne.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ne.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ne.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ne.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ne.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ne.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ne.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ne.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ne.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ne.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ne.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ne.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ee={backgroundActionPrimary:Ne.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ce.colorBrand0),backgroundErrorPrimary:Ne.extend("--ft-background-error-primary","Used as background of error components.",Ce.colorRed0),backgroundErrorSubtle:Ne.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ce.colorRed10),backgroundInfoPrimary:Ne.extend("--ft-background-info-primary","Used as background of information components.",Ce.colorCyan200),backgroundInfoSubtle:Ne.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ce.colorCyan10),backgroundWarningPrimary:Ne.extend("--ft-background-warning-primary","Used as background of warning components.",Ce.colorOrange300),backgroundWarningSubtle:Ne.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ce.colorOrange10),backgroundSuccessPrimary:Ne.extend("--ft-background-success-primary","Used as background of success components.",Ce.colorGreen200),backgroundSuccessSubtle:Ne.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ce.colorGreen10),backgroundGlobalSurface:Ne.extend("--ft-background-global-surface","Used as app background.",Ce.colorWhite),backgroundGlobalOnSurface:Ne.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ce.colorGray10),backgroundGlobalOnSurfaceDark:Ne.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ce.colorGray30),contentActionPrimary:Ne.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ce.colorBrand0),contentWarningPrimary:Ne.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ce.colorOrange300),contentWarningIconOnly:Ne.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ce.colorOrange0),contentErrorPrimary:Ne.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ce.colorRed0),contentErrorIconOnly:Ne.extend("--ft-content-error-icon-only","Used on error status icons alone",Ce.colorRed0),contentInfoPrimary:Ne.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ce.colorCyan200),contentInfoIconOnly:Ne.extend("--ft-content-info-icon-only","Used on info status icons alone",Ce.colorCyan0),contentSuccessIconOnly:Ne.extend("--ft-content-success-icon-only","Used on success status icons alone",Ce.colorGreen0),contentSuccessPrimary:Ne.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ce.colorGreen200),contentGlobalPrimary:Ne.extend("--ft-content-global-primary","Used for main content on the page.",Ce.colorGray500),contentGlobalSecondary:Ne.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ce.colorGray200),contentGlobalSubtle:Ne.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ce.colorGray0),contentGlobalOnColor:Ne.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ce.colorWhite),borderActionPrimary:Ne.extend("--ft-border-action-primary","Used as border for primary action components.",Ce.colorBrand0),borderActionFocusRing:Ne.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ce.colorCyan0),borderWarningPrimary:Ne.extend("--ft-border-warning-primary","Used as border for warning components.",Ce.colorOrange30),borderSuccessPrimary:Ne.extend("--ft-border-success-primary","Used as border for success components.",Ce.colorGreen30),borderErrorPrimary:Ne.extend("--ft-border-error-primary","Used as border for error components.",Ce.colorRed30),borderInfoPrimary:Ne.extend("--ft-border-info-primary","Used as border for information components.",Ce.colorCyan30),borderGlobalSubtle:Ne.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ce.colorGray30),borderGlobalPrimary:Ne.extend("--ft-border-global-primary","Used as border for element like input.",Ce.colorGray50),borderInputPrimary:Ne.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ce.colorGray80)},Re={largeHeight:Ne.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ne.extend("--ft-button-large-horizontal-padding","",Ce.spacing4),largeGap:Ne.extend("--ft-button-large-gap","",Ce.spacing2),largeBorderRadius:Ne.extend("--ft-button-large-border-radius","",Ce.borderRadiusS),largeIconSize:Ne.extend("--ft-button-large-icon-size","",Ce.iconSize3),largeBorderWidth:Ne.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ne.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ne.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ne.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ne.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ne.extend("--ft-button-small-horizontal-padding","",Ce.spacing3),smallGap:Ne.extend("--ft-button-small-gap","",Ce.spacing2),smallBorderRadius:Ne.extend("--ft-button-small-border-radius","",Ce.borderRadiusS),smallIconSize:Ne.extend("--ft-button-small-icon-size","",Ce.iconSize2),smallBorderWidth:Ne.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ne.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ne.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ne.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ne.extend("--ft-button-primary-background-color","",Ee.backgroundActionPrimary),primaryColor:Ne.extend("--ft-button-primary-color","",Ee.contentGlobalOnColor),primaryIconColor:Ne.extend("--ft-button-primary-icon-color","",Ee.contentGlobalOnColor),primaryStateLayerColor:Ne.extend("--ft-button-primary-state-layer-color","",Ee.contentGlobalOnColor),primaryStateLayerOpacityHover:Ne.extend("--ft-button-primary-state-layer-opacity-hover","",Ce.opacity16),primaryStateLayerOpacityFocus:Ne.extend("--ft-button-primary-state-layer-opacity-focus","",Ce.opacity16),primaryStateLayerOpacityActive:Ne.extend("--ft-button-primary-state-layer-opacity-active","",Ce.opacity24),primaryComponentOpacityDisabled:Ne.extend("--ft-button-primary-component-opacity-disabled","",Ce.opacity40),focusFocusRingColor:Ne.extend("--ft-button-focus-focus-ring-color","",Ee.borderActionFocusRing),tertiaryBackgroundColor:Ne.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ne.extend("--ft-button-tertiary-color","",Ee.contentActionPrimary),tertiaryIconColor:Ne.extend("--ft-button-tertiary-icon-color","",Ee.contentActionPrimary),tertiaryStateLayerColor:Ne.extend("--ft-button-tertiary-state-layer-color","",Ee.contentActionPrimary),tertiaryStateLayerOpacityHover:Ne.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ce.opacity8),tertiaryStateLayerOpacityFocus:Ne.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ce.opacity8),tertiaryStateLayerOpacityActive:Ne.extend("--ft-button-tertiary-state-layer-opacity-active","",Ce.opacity16),tertiaryComponentOpacityDisabled:Ne.extend("--ft-button-tertiary-component-opacity-disabled","",Ce.opacity40),secondaryBackgroundColor:Ne.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Ne.extend("--ft-button-secondary-color","",Ee.contentActionPrimary),secondaryIconColor:Ne.extend("--ft-button-secondary-icon-color","",Ee.contentActionPrimary),secondaryStateLayerColor:Ne.extend("--ft-button-secondary-state-layer-color","",Ee.contentActionPrimary),secondaryStateLayerOpacityHover:Ne.extend("--ft-button-secondary-state-layer-opacity-hover","",Ce.opacity8),secondaryStateLayerOpacityFocus:Ne.extend("--ft-button-secondary-state-layer-opacity-focus","",Ce.opacity8),secondaryStateLayerOpacityActive:Ne.extend("--ft-button-secondary-state-layer-opacity-active","",Ce.opacity16),secondaryComponentOpacityDisabled:Ne.extend("--ft-button-secondary-component-opacity-disabled","",Ce.opacity40),secondaryBorderColor:Ne.extend("--ft-button-secondary-border-color","",Ee.borderActionPrimary),neutralBackgroundColor:Ne.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ne.extend("--ft-button-neutral-icon-color","",Ee.contentGlobalSecondary),neutralColor:Ne.extend("--ft-button-neutral-color","",Ee.contentGlobalSecondary),neutralStateLayerColor:Ne.extend("--ft-button-neutral-state-layer-color","",Ee.contentGlobalSecondary),neutralStateLayerOpacityHover:Ne.extend("--ft-button-neutral-state-layer-opacity-hover","",Ce.opacity8),neutralStateLayerOpacityFocus:Ne.extend("--ft-button-neutral-state-layer-opacity-focus","",Ce.opacity8),neutralStateLayerOpacityActive:Ne.extend("--ft-button-neutral-state-layer-opacity-active","",Ce.opacity16),neutralComponentOpacityDisabled:Ne.extend("--ft-button-neutral-component-opacity-disabled","",Ce.opacity40)};Ne.extend("--ft-tabs-top-left-border-radius","",Ce.borderRadiusS),Ne.extend("--ft-tabs-top-right-border-radius","",Ce.borderRadiusS),Ne.extend("--ft-tabs-label-horizontal-padding","",Ce.spacing4),Ne.extend("--ft-tabs-label-vertical-padding","",Ce.spacing3),Ne.extend("--ft-tabs-label-gap","",Ce.spacing1),Ne.extend("--ft-switch-group-horizontal-padding","",Ce.spacing1),Ne.extend("--ft-switch-group-vertical-padding","",Ce.spacing1),Ne.extend("--ft-switch-group-gap","",Ce.spacing1),Ne.extend("--ft-switch-group-background-color","",Ee.backgroundGlobalSurface),Ne.extend("--ft-switch-group-border-color","",Ee.borderGlobalSubtle),Ne.create("--ft-switch-group-border-radius","","SIZE","6px"),Ne.extend("--ft-switch-label-horizontal-padding","",Ce.spacing2),Ne.extend("--ft-switch-label-vertical-padding","",Ce.spacing1),Ne.extend("--ft-switch-icon-horizontal-padding","",Ce.spacing1),Ne.extend("--ft-switch-icon-vertical-padding","",Ce.spacing1),Ne.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ne.extend("--ft-switch-focus-focus-ring-color","",Ee.borderActionFocusRing),Ne.extend("--ft-switch-option-border-radius","",Ce.borderRadiusS),Ne.extend("--ft-switch-off-state-layer-opacity-hover","",Ce.opacity8),Ne.extend("--ft-switch-off-state-layer-opacity-focus","",Ce.opacity8),Ne.extend("--ft-switch-off-state-layer-opacity-active","",Ce.opacity16),Ne.extend("--ft-switch-off-component-opacity-disabled","",Ce.opacity40),Ne.extend("--ft-switch-off-color","",Ee.contentGlobalSubtle),Ne.extend("--ft-switch-off-state-layer-color","",Ee.contentGlobalSubtle),Ne.extend("--ft-chart-1-light","for area color charts",Ce.colorBrand40),Ne.extend("--ft-chart-1-base","for line charts",Ce.colorBrand0),Ne.extend("--ft-chart-2-light","for area color charts",Ce.colorYellow60),Ne.extend("--ft-chart-2-base","for line charts",Ce.colorYellow100),Ne.extend("--ft-chart-3-light","",Ce.colorUltramarine40),Ne.extend("--ft-chart-3-base","",Ce.colorUltramarine70),Ne.extend("--ft-chart-4-light","",Ce.colorCyan50),Ne.extend("--ft-chart-4-base","",Ce.colorCyan100),Ne.extend("--ft-chart-5-light","",Ce.colorRed40),Ne.extend("--ft-chart-5-base","",Ce.colorRed60),Ne.extend("--ft-chart-6-light","",Ce.colorGreen40),Ne.extend("--ft-chart-6-base","",Ce.colorGreen70),Ne.extend("--ft-chart-7-light","",Ce.colorOrange70),Ne.extend("--ft-chart-7-base","",Ce.colorOrange100),Ne.extend("--ft-chart-8-light","",Ce.colorAvocado70),Ne.extend("--ft-chart-8-base","",Ce.colorAvocado200),Ne.extend("--ft-chart-9-light","",Ce.colorBrown50),Ne.extend("--ft-chart-9-base","",Ce.colorBrown200),Ne.extend("--ft-chart-10-light","",Ce.colorGray50),Ne.extend("--ft-chart-10-base","",Ce.colorGray80),Ne.extend("--ft-chart-monochrome-10","",Ce.colorBrand10),Ne.extend("--ft-chart-monochrome-20","",Ce.colorBrand20),Ne.extend("--ft-chart-monochrome-30","",Ce.colorBrand40),Ne.extend("--ft-chart-monochrome-40","",Ce.colorBrand60),Ne.extend("--ft-chart-monochrome-50","",Ce.colorBrand0),Ne.extend("--ft-chart-monochrome-60","",Ce.colorBrand200),Ne.extend("--ft-chip-large-horizontal-padding","",Ce.spacing4),Ne.extend("--ft-chip-large-vertical-padding","",Ce.spacing2),Ne.extend("--ft-chip-large-gap","",Ce.spacing1),Ne.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ne.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ne.extend("--ft-chip-large-border-radius","",Ce.borderRadiusPill),Ne.create("--ft-chip-large-border-width","","SIZE","1px"),Ne.extend("--ft-chip-large-icon-size","",Ce.iconSize3),Ne.extend("--ft-chip-medium-horizontal-padding","",Ce.spacing3),Ne.extend("--ft-chip-medium-vertical-padding","",Ce.spacing1),Ne.extend("--ft-chip-medium-gap","",Ce.spacing1),Ne.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ne.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ne.extend("--ft-chip-medium-border-radius","",Ce.borderRadiusPill),Ne.create("--ft-chip-medium-border-width","","SIZE","1px"),Ne.extend("--ft-chip-medium-icon-size","",Ce.iconSize2),Ne.extend("--ft-chip-small-horizontal-padding","",Ce.spacing2),Ne.extend("--ft-chip-small-vertical-padding","",Ce.spacing05),Ne.extend("--ft-chip-small-gap","",Ce.spacing1),Ne.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ne.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ne.extend("--ft-chip-small-border-radius","",Ce.borderRadiusPill),Ne.create("--ft-chip-small-border-width","","SIZE","1px"),Ne.extend("--ft-chip-small-icon-size","",Ce.iconSize1),Ne.extend("--ft-chip-neutral-background-color","",Ee.backgroundGlobalOnSurface),Ne.extend("--ft-chip-neutral-color","",Ee.contentGlobalPrimary),Ne.extend("--ft-chip-neutral-border-color","",Ee.borderGlobalSubtle),Ne.extend("--ft-chip-info-background-color","",Ee.backgroundInfoSubtle),Ne.extend("--ft-chip-info-color","",Ee.contentInfoPrimary),Ne.extend("--ft-chip-info-border-color","",Ee.borderInfoPrimary),Ne.extend("--ft-chip-success-background-color","",Ee.backgroundSuccessSubtle),Ne.extend("--ft-chip-success-color","",Ee.contentSuccessPrimary),Ne.extend("--ft-chip-success-border-color","",Ee.borderSuccessPrimary),Ne.extend("--ft-chip-warning-background-color","",Ee.backgroundWarningSubtle),Ne.extend("--ft-chip-warning-color","",Ee.contentWarningPrimary),Ne.extend("--ft-chip-warning-border-color","",Ee.borderWarningPrimary),Ne.extend("--ft-chip-error-background-color","",Ee.backgroundErrorSubtle),Ne.extend("--ft-chip-error-color","",Ee.contentErrorPrimary),Ne.extend("--ft-chip-error-border-color","",Ee.borderErrorPrimary),Ne.create("--ft-notice-border-width","","SIZE","1px"),Ne.extend("--ft-notice-horizontal-padding","",Ce.spacing2),Ne.extend("--ft-notice-vertical-padding","",Ce.spacing1),Ne.extend("--ft-notice-border-radius","",Ce.borderRadiusS),Ne.extend("--ft-notice-gap","",Ce.spacing2),Ne.extend("--ft-notice-icon-size","",Ce.iconSize3),Ne.extend("--ft-notice-info-background-color","",Ee.backgroundInfoSubtle),Ne.extend("--ft-notice-info-border-color","",Ee.borderInfoPrimary),Ne.extend("--ft-notice-info-color","",Ee.contentInfoPrimary),Ne.extend("--ft-notice-warning-background-color","",Ee.backgroundWarningSubtle),Ne.extend("--ft-notice-warning-border-color","",Ee.borderWarningPrimary),Ne.extend("--ft-notice-warning-color","",Ee.contentWarningPrimary),Ne.extend("--ft-checkbox-label-color","",Ee.contentGlobalPrimary),Ne.extend("--ft-checkbox-checked-background-color","",Ee.contentActionPrimary),Ne.extend("--ft-checkbox-checked-state-layer-color","",Ee.contentActionPrimary),Ne.extend("--ft-checkbox-checked-color","",Ee.contentGlobalOnColor),Ne.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ce.opacity16),Ne.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ce.opacity16),Ne.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ce.opacity24),Ne.extend("--ft-checkbox-checked-component-opacity-disabled","",Ce.opacity40),Ne.extend("--ft-checkbox-unchecked-border-color","",Ce.colorGray80),Ne.extend("--ft-checkbox-unchecked-state-layer-color","",Ce.colorGray80),Ne.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ce.opacity16),Ne.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ce.opacity16),Ne.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ce.opacity24),Ne.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ce.opacity40),Ne.extend("--ft-checkbox-focus-focus-ring-color","",Ee.borderActionFocusRing),Ne.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ne.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ne.extend("--ft-checkbox-gap","",Ce.spacing3),Ne.extend("--ft-toggle-off-state-layer-opacity-hover","",Ce.opacity16),Ne.extend("--ft-toggle-off-state-layer-opacity-focus","",Ce.opacity16),Ne.extend("--ft-toggle-off-state-layer-opacity-active","",Ce.opacity24),Ne.extend("--ft-toggle-off-component-opacity-disabled","",Ce.opacity40),Ne.extend("--ft-toggle-off-background-color","",Ee.contentGlobalSubtle),Ne.extend("--ft-toggle-off-icon-color","",Ee.contentGlobalSubtle),Ne.extend("--ft-toggle-off-state-layer-color","",Ee.contentGlobalSubtle),Ne.extend("--ft-toggle-on-state-layer-opacity-hover","",Ce.opacity16),Ne.extend("--ft-toggle-on-state-layer-opacity-focus","",Ce.opacity16),Ne.extend("--ft-toggle-on-state-layer-opacity-active","",Ce.opacity24),Ne.extend("--ft-toggle-on-component-opacity-disabled","",Ce.opacity40),Ne.extend("--ft-toggle-on-background-color","",Ee.contentActionPrimary),Ne.extend("--ft-toggle-on-icon-color","",Ee.contentActionPrimary),Ne.extend("--ft-toggle-on-state-layer-color","",Ee.contentActionPrimary),Ne.extend("--ft-toggle-label-color","",Ee.contentGlobalPrimary),Ne.extend("--ft-toggle-focus-focus-ring-color","",Ee.borderActionFocusRing),Ne.extend("--ft-toggle-gap","",Ce.spacing3),Ne.extend("--ft-radio-label-color","",Ee.contentGlobalPrimary),Ne.extend("--ft-radio-selected-color","",Ee.contentActionPrimary),Ne.extend("--ft-radio-selected-state-layer-color","",Ee.contentActionPrimary),Ne.extend("--ft-radio-selected-state-layer-opacity-hover","",Ce.opacity16),Ne.extend("--ft-radio-selected-state-layer-opacity-focus","",Ce.opacity16),Ne.extend("--ft-radio-selected-state-layer-opacity-active","",Ce.opacity24),Ne.extend("--ft-radio-selected-component-opacity-disabled","",Ce.opacity40),Ne.extend("--ft-radio-unselected-state-layer-color","",Ce.colorGray80),Ne.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ce.opacity16),Ne.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ce.opacity16),Ne.extend("--ft-radio-unselected-state-layer-opacity-active","",Ce.opacity24),Ne.extend("--ft-radio-unselected-component-opacity-disabled","",Ce.opacity40),Ne.extend("--ft-radio-focus-focus-ring-color","",Ee.borderActionFocusRing),Ne.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ne.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ne.extend("--ft-radio-gap","",Ce.spacing3),Ne.extend("--ft-notification-icon-size","",Ce.iconSize4),Ne.extend("--ft-notification-horizontal-padding","",Ce.spacing4),Ne.extend("--ft-notification-vertical-padding","",Ce.spacing4),Ne.extend("--ft-notification-info-background-color","",Ee.backgroundInfoSubtle),Ne.extend("--ft-notification-info-color","",Ee.contentInfoPrimary),Ne.extend("--ft-notification-info-border-color","",Ee.borderInfoPrimary),Ne.extend("--ft-notification-success-background-color","",Ee.backgroundSuccessSubtle),Ne.extend("--ft-notification-success-color","",Ee.contentSuccessPrimary),Ne.extend("--ft-notification-success-border-color","",Ee.borderSuccessPrimary),Ne.extend("--ft-notification-warning-background-color","",Ee.backgroundWarningSubtle),Ne.extend("--ft-notification-warning-color","",Ee.contentWarningPrimary),Ne.extend("--ft-notification-warning-border-color","",Ee.borderWarningPrimary),Ne.extend("--ft-notification-error-background-color","",Ee.backgroundErrorSubtle),Ne.extend("--ft-notification-error-color","",Ee.contentErrorPrimary),Ne.extend("--ft-notification-error-border-color","",Ee.borderErrorPrimary),Ne.extend("--ft-notification-border-radius","",Ce.borderRadiusPill),Ne.create("--ft-notification-border-width","","SIZE","1px"),Ne.extend("--ft-notification-gap-leading","",Ce.spacing2),Ne.extend("--ft-notification-gap-trailing","",Ce.spacing8);const ke={colorPrimary:Ne.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ne.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ne.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ne.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ne.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ne.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ne.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ne.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ne.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ne.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ne.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ne.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ne.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ne.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ne.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ne.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ne.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ne.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ne.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ne.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ne.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ne.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ne.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ne.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ne.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ne.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ne.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ne.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ne.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ne.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ne.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ne.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ne.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ne.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ne.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ne.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ne.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ne.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ne.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ne.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ne.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ne.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ne.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ne.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ne.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:Ne.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:Ne.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:Ne.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:Ne.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:Ne.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:Ne.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:Ne.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:Ne.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:Ne.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:Ne.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ne.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ne.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ne.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ne.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ne.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ne.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ne.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")},Ue=window,Ie=Ue.ShadowRoot&&(void 0===Ue.ShadyCSS||Ue.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;
|
|
80
80
|
/**
|
|
81
81
|
* @license
|
|
82
82
|
* Copyright 2019 Google LLC
|
|
83
83
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
84
|
-
*/class
|
|
84
|
+
*/class Le extends ve{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)=>{Ie?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Ue.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var We,ze=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 Ke=Symbol("constructorPrototype"),Fe=Symbol("constructorName"),Ae=Symbol("exportpartsDebouncer");class Ze extends Le{constructor(){super(),this[We]=new R(5),this[Fe]=this.constructor.name,this[Ke]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fe]&&Object.setPrototypeOf(this,this[Ke])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ae].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,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 p=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}We=Ae,ze([w()],Ze.prototype,"exportpartsPrefix",void 0),ze([I([])],Ze.prototype,"exportpartsPrefixes",void 0),ze([w()],Ze.prototype,"customStylesheet",void 0);const Be=Ne.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");St`
|
|
85
85
|
.highlight-html-match {
|
|
86
|
-
background: ${
|
|
86
|
+
background: ${Be};
|
|
87
87
|
}
|
|
88
|
-
`;const
|
|
88
|
+
`;const Me=St`
|
|
89
89
|
.ft-no-text-select {
|
|
90
90
|
-webkit-touch-callout: none;
|
|
91
91
|
-webkit-user-select: none;
|
|
@@ -94,7 +94,7 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
94
94
|
-ms-user-select: none;
|
|
95
95
|
user-select: none;
|
|
96
96
|
}
|
|
97
|
-
`;
|
|
97
|
+
`;St`
|
|
98
98
|
.ft-word-wrap {
|
|
99
99
|
white-space: normal;
|
|
100
100
|
word-wrap: break-word;
|
|
@@ -106,7 +106,7 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
106
106
|
-webkit-hyphens: auto;
|
|
107
107
|
hyphens: auto
|
|
108
108
|
}
|
|
109
|
-
`;const
|
|
109
|
+
`;const De=St`
|
|
110
110
|
.ft-safari-ellipsis-fix {
|
|
111
111
|
margin-right: 0;
|
|
112
112
|
|
|
@@ -117,64 +117,64 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
117
117
|
display: inline-block;
|
|
118
118
|
width: 0;
|
|
119
119
|
}
|
|
120
|
-
`;class
|
|
120
|
+
`;class Pe{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()}}}const He=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!k(t,e),attribute:!1,...e};w(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}};function Te(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var je,_e,Ge;const Ve=Symbol("internalReduxEventsUnsubscribers"),Ye=Symbol("internalStoresUnsubscribers"),Xe=Symbol("internalStores");class Je extends Ze{constructor(){super(...arguments),this[je]=new Map,this[_e]=new Map,this[Ge]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Xe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xe].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Xe].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Te(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[Xe].delete(e)}setupStore(t,e){this[Xe].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xe].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.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[Ye].has(t.store):this[Ye].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Ye].set(t,e.subscribe((()=>this.updateFromStores()))),Te(e)&&e.eventBus&&(null===(o=this.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[Ve].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ye].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ve].forEach((t=>t())),this[Ve]=[]}unsubscribeFromStore(t){this[Ye].has(t)&&this[Ye].get(t)(),this[Ye].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}je=Ye,_e=Xe,Ge=Ve,window.ftReduxStores||(window.ftReduxStores={});const qe=Symbol("elementInternals");var Qe,to,eo;const oo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(eo=null===(to=null===(Qe=window.safari)||void 0===Qe?void 0:Qe.pushNotification)||void 0===to?void 0:to.toString())&&void 0!==eo?eo:""),io=1,ro=2,no=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
121
121
|
/**
|
|
122
122
|
* @license
|
|
123
123
|
* Copyright 2017 Google LLC
|
|
124
124
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
125
|
-
*/let
|
|
125
|
+
*/let ao=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)}};
|
|
126
126
|
/**
|
|
127
127
|
* @license
|
|
128
128
|
* Copyright 2020 Google LLC
|
|
129
129
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
130
|
-
*/const{D:
|
|
130
|
+
*/const{D:so}=ut,lo=()=>document.createComment(""),co=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(lo(),r),n=i.insertBefore(lo(),r);o=new so(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},po=(t,e,o=t)=>(t._$AI(e,o),t),fo={},ho=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}},uo=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},yo=no(class extends ao{constructor(t){if(super(t),t.type!==ro)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,p,f=0,h=r.length-1,d=0,u=n.length-1;for(;f<=h&&d<=u;)if(null===r[f])f++;else if(null===r[h])h--;else if(s[f]===a[d])l[d]=po(r[f],n[d]),f++,d++;else if(s[h]===a[u])l[u]=po(r[h],n[u]),h--,u--;else if(s[f]===a[u])l[u]=po(r[f],n[u]),co(t,l[u+1],r[f]),f++,u--;else if(s[h]===a[d])l[d]=po(r[h],n[d]),co(t,r[f],r[h]),h--,d++;else if(void 0===c&&(c=uo(a,d,u),p=uo(s,f,h)),c.has(s[f]))if(c.has(s[h])){const e=p.get(a[d]),o=void 0!==e?r[e]:null;if(null===o){const e=co(t,r[f]);po(e,n[d]),l[d]=e}else l[d]=po(o,n[d]),co(t,r[f],o),r[e]=null;d++}else ho(r[h]),h--;else ho(r[f]),f++;for(;d<=u;){const e=co(t,l[u+1]);po(e,n[d]),l[d++]=e}for(;f<=h;){const t=r[f++];null!==t&&ho(t)}return this.dt=a,((t,e=fo)=>{t._$AH=e})(t,l),Q}}),go=no(class extends ao{constructor(t){if(super(t),t.type!==io||"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 Q}}),bo="important",mo=" !"+bo,xo=no(class extends ao{constructor(t){if(super(t),t.type!==io||"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(mo);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?bo:""):o[t]=i}}return Q}});
|
|
131
131
|
/**
|
|
132
132
|
* @license
|
|
133
133
|
* Copyright 2017 Google LLC
|
|
134
134
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
|
-
*/var
|
|
135
|
+
*/var vo;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(vo||(vo={}));var Oo=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 So extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const No=Symbol("registerInterval");class wo 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[No]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[No]):this.dispatchEvent(new So)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=No,Oo([C()],o.prototype,"stateManager",void 0),o}(Je)){}
|
|
136
136
|
/**
|
|
137
137
|
* @license
|
|
138
138
|
* Copyright 2020 Google LLC
|
|
139
139
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
140
|
-
*/const
|
|
140
|
+
*/const Co=Symbol.for(""),$o=t=>{if(t?.r===Co)return t?._$litStatic$},Eo=t=>({_$litStatic$:t,r:Co}),Ro=new Map,ko=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=$o(n));)l+=r+e[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),p){const t=a.join("$$lit$$");void 0===(e=Ro.get(t))&&(a.raw=a,Ro.set(t,e=a)),o=s}return t(e,...o)})(q);var Uo;!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"}(Uo||(Uo={}));const Io=Ne.extend("--ft-typography-font-family","",ke.titleFont),Lo=Ne.extend("--ft-typography-font-family","",ke.contentFont),Wo={fontFamily:Lo,fontSize:Ne.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ne.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ne.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ne.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ne.create("--ft-typography-text-transform","","UNKNOWN","inherit")},zo=Ne.extend("--ft-typography-title-font-family","",Io),Ko=Ne.extend("--ft-typography-title-font-size","",Wo.fontSize,"20px"),Fo=Ne.extend("--ft-typography-title-font-weight","",Wo.fontWeight,"normal"),Ao=Ne.extend("--ft-typography-title-letter-spacing","",Wo.letterSpacing,"0.15px"),Zo=Ne.extend("--ft-typography-title-line-height","",Wo.lineHeight,"1.2"),Bo=Ne.extend("--ft-typography-title-text-transform","",Wo.textTransform,"inherit"),Mo=Ne.extend("--ft-typography-title-dense-font-family","",Io),Do=Ne.extend("--ft-typography-title-dense-font-size","",Wo.fontSize,"14px"),Po=Ne.extend("--ft-typography-title-dense-font-weight","",Wo.fontWeight,"normal"),Ho=Ne.extend("--ft-typography-title-dense-letter-spacing","",Wo.letterSpacing,"0.105px"),To=Ne.extend("--ft-typography-title-dense-line-height","",Wo.lineHeight,"1.7"),jo=Ne.extend("--ft-typography-title-dense-text-transform","",Wo.textTransform,"inherit"),_o=Ne.extend("--ft-typography-subtitle1-font-family","",Lo),Go=Ne.extend("--ft-typography-subtitle1-font-size","",Wo.fontSize,"16px"),Vo=Ne.extend("--ft-typography-subtitle1-font-weight","",Wo.fontWeight,"600"),Yo=Ne.extend("--ft-typography-subtitle1-letter-spacing","",Wo.letterSpacing,"0.144px"),Xo=Ne.extend("--ft-typography-subtitle1-line-height","",Wo.lineHeight,"1.5"),Jo=Ne.extend("--ft-typography-subtitle1-text-transform","",Wo.textTransform,"inherit"),qo=Ne.extend("--ft-typography-subtitle2-font-family","",Lo),Qo=Ne.extend("--ft-typography-subtitle2-font-size","",Wo.fontSize,"14px"),ti=Ne.extend("--ft-typography-subtitle2-font-weight","",Wo.fontWeight,"normal"),ei=Ne.extend("--ft-typography-subtitle2-letter-spacing","",Wo.letterSpacing,"0.098px"),oi=Ne.extend("--ft-typography-subtitle2-line-height","",Wo.lineHeight,"1.7"),ii=Ne.extend("--ft-typography-subtitle2-text-transform","",Wo.textTransform,"inherit"),ri=Ne.extend("--ft-typography-body1-font-family","",Lo),ni=Ne.extend("--ft-typography-body1-font-size","",Wo.fontSize,"16px"),ai=Ne.extend("--ft-typography-body1-font-weight","",Wo.fontWeight,"normal"),si=Ne.extend("--ft-typography-body1-letter-spacing","",Wo.letterSpacing,"0.496px"),li=Ne.extend("--ft-typography-body1-line-height","",Wo.lineHeight,"1.5"),ci=Ne.extend("--ft-typography-body1-text-transform","",Wo.textTransform,"inherit"),pi=Ne.extend("--ft-typography-body2-font-family","",Lo),fi=Ne.extend("--ft-typography-body2-font-size","",Wo.fontSize,"14px"),hi=Ne.extend("--ft-typography-body2-font-weight","",Wo.fontWeight,"normal"),di=Ne.extend("--ft-typography-body2-letter-spacing","",Wo.letterSpacing,"0.252px"),ui=Ne.extend("--ft-typography-body2-line-height","",Wo.lineHeight,"1.4"),yi=Ne.extend("--ft-typography-body2-text-transform","",Wo.textTransform,"inherit"),gi=Ne.extend("--ft-typography-caption-font-family","",Lo),bi=Ne.extend("--ft-typography-caption-font-size","",Wo.fontSize,"12px"),mi=Ne.extend("--ft-typography-caption-font-weight","",Wo.fontWeight,"normal"),xi=Ne.extend("--ft-typography-caption-letter-spacing","",Wo.letterSpacing,"0.396px"),vi=Ne.extend("--ft-typography-caption-line-height","",Wo.lineHeight,"1.33"),Oi=Ne.extend("--ft-typography-caption-text-transform","",Wo.textTransform,"inherit"),Si=Ne.extend("--ft-typography-breadcrumb-font-family","",Lo),Ni=Ne.extend("--ft-typography-breadcrumb-font-size","",Wo.fontSize,"10px"),wi=Ne.extend("--ft-typography-breadcrumb-font-weight","",Wo.fontWeight,"normal"),Ci=Ne.extend("--ft-typography-breadcrumb-letter-spacing","",Wo.letterSpacing,"0.33px"),$i=Ne.extend("--ft-typography-breadcrumb-line-height","",Wo.lineHeight,"1.6"),Ei=Ne.extend("--ft-typography-breadcrumb-text-transform","",Wo.textTransform,"inherit"),Ri=Ne.extend("--ft-typography-overline-font-family","",Lo),ki=Ne.extend("--ft-typography-overline-font-size","",Wo.fontSize,"10px"),Ui=Ne.extend("--ft-typography-overline-font-weight","",Wo.fontWeight,"normal"),Ii=Ne.extend("--ft-typography-overline-letter-spacing","",Wo.letterSpacing,"1.5px"),Li=Ne.extend("--ft-typography-overline-line-height","",Wo.lineHeight,"1.6"),Wi=Ne.extend("--ft-typography-overline-text-transform","",Wo.textTransform,"uppercase"),zi={fontFamily:Ne.extend("--ft-typography-button-font-family","",Lo),fontSize:Ne.extend("--ft-typography-button-font-size","",Wo.fontSize,"14px"),fontWeight:Ne.extend("--ft-typography-button-font-weight","",Wo.fontWeight,"600"),letterSpacing:Ne.extend("--ft-typography-button-letter-spacing","",Wo.letterSpacing,"1.246px"),lineHeight:Ne.extend("--ft-typography-button-line-height","",Wo.lineHeight,"1.15"),textTransform:Ne.extend("--ft-typography-button-text-transform","",Wo.textTransform,"uppercase")},Ki=St`
|
|
141
141
|
.ft-typography--title {
|
|
142
|
-
font-family: ${
|
|
143
|
-
font-size: ${
|
|
144
|
-
font-weight: ${
|
|
145
|
-
letter-spacing: ${
|
|
146
|
-
line-height: ${
|
|
147
|
-
text-transform: ${
|
|
148
|
-
}
|
|
149
|
-
`,Fi=
|
|
142
|
+
font-family: ${zo};
|
|
143
|
+
font-size: ${Ko};
|
|
144
|
+
font-weight: ${Fo};
|
|
145
|
+
letter-spacing: ${Ao};
|
|
146
|
+
line-height: ${Zo};
|
|
147
|
+
text-transform: ${Bo};
|
|
148
|
+
}
|
|
149
|
+
`,Fi=St`
|
|
150
150
|
.ft-typography--title-dense {
|
|
151
|
-
font-family: ${
|
|
152
|
-
font-size: ${
|
|
153
|
-
font-weight: ${
|
|
154
|
-
letter-spacing: ${
|
|
155
|
-
line-height: ${
|
|
156
|
-
text-transform: ${
|
|
157
|
-
}
|
|
158
|
-
`,
|
|
151
|
+
font-family: ${Mo};
|
|
152
|
+
font-size: ${Do};
|
|
153
|
+
font-weight: ${Po};
|
|
154
|
+
letter-spacing: ${Ho};
|
|
155
|
+
line-height: ${To};
|
|
156
|
+
text-transform: ${jo};
|
|
157
|
+
}
|
|
158
|
+
`,Ai=St`
|
|
159
159
|
.ft-typography--subtitle1 {
|
|
160
|
-
font-family: ${
|
|
161
|
-
font-size: ${
|
|
162
|
-
font-weight: ${
|
|
163
|
-
letter-spacing: ${
|
|
164
|
-
line-height: ${
|
|
165
|
-
text-transform: ${
|
|
166
|
-
}
|
|
167
|
-
`,
|
|
160
|
+
font-family: ${_o};
|
|
161
|
+
font-size: ${Go};
|
|
162
|
+
font-weight: ${Vo};
|
|
163
|
+
letter-spacing: ${Yo};
|
|
164
|
+
line-height: ${Xo};
|
|
165
|
+
text-transform: ${Jo};
|
|
166
|
+
}
|
|
167
|
+
`,Zi=St`
|
|
168
168
|
.ft-typography--subtitle2 {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
169
|
+
font-family: ${qo};
|
|
170
|
+
font-size: ${Qo};
|
|
171
171
|
font-weight: ${ti};
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
172
|
+
letter-spacing: ${ei};
|
|
173
|
+
line-height: ${oi};
|
|
174
174
|
text-transform: ${ii};
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
`,Bi=
|
|
177
|
+
`,Bi=St`
|
|
178
178
|
.ft-typography--body1 {
|
|
179
179
|
font-family: ${ri};
|
|
180
180
|
font-size: ${ni};
|
|
@@ -183,16 +183,16 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
183
183
|
line-height: ${li};
|
|
184
184
|
text-transform: ${ci};
|
|
185
185
|
}
|
|
186
|
-
`,Mi=
|
|
186
|
+
`,Mi=St`
|
|
187
187
|
.ft-typography--body2 {
|
|
188
188
|
font-family: ${pi};
|
|
189
|
-
font-size: ${
|
|
190
|
-
font-weight: ${
|
|
189
|
+
font-size: ${fi};
|
|
190
|
+
font-weight: ${hi};
|
|
191
191
|
letter-spacing: ${di};
|
|
192
192
|
line-height: ${ui};
|
|
193
193
|
text-transform: ${yi};
|
|
194
194
|
}
|
|
195
|
-
`,Di=
|
|
195
|
+
`,Di=St`
|
|
196
196
|
.ft-typography--caption {
|
|
197
197
|
font-family: ${gi};
|
|
198
198
|
font-size: ${bi};
|
|
@@ -201,25 +201,25 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
201
201
|
line-height: ${vi};
|
|
202
202
|
text-transform: ${Oi};
|
|
203
203
|
}
|
|
204
|
-
`,Pi=
|
|
204
|
+
`,Pi=St`
|
|
205
205
|
.ft-typography--breadcrumb {
|
|
206
|
-
font-family: ${
|
|
207
|
-
font-size: ${
|
|
206
|
+
font-family: ${Si};
|
|
207
|
+
font-size: ${Ni};
|
|
208
208
|
font-weight: ${wi};
|
|
209
209
|
letter-spacing: ${Ci};
|
|
210
210
|
line-height: ${$i};
|
|
211
211
|
text-transform: ${Ei};
|
|
212
212
|
}
|
|
213
|
-
`,Hi=
|
|
213
|
+
`,Hi=St`
|
|
214
214
|
.ft-typography--overline {
|
|
215
215
|
font-family: ${Ri};
|
|
216
|
-
font-size: ${
|
|
217
|
-
font-weight: ${
|
|
216
|
+
font-size: ${ki};
|
|
217
|
+
font-weight: ${Ui};
|
|
218
218
|
letter-spacing: ${Ii};
|
|
219
219
|
line-height: ${Li};
|
|
220
220
|
text-transform: ${Wi};
|
|
221
221
|
}
|
|
222
|
-
`,
|
|
222
|
+
`,Ti=St`
|
|
223
223
|
.ft-typography--button {
|
|
224
224
|
font-family: ${zi.fontFamily};
|
|
225
225
|
font-size: ${zi.fontSize};
|
|
@@ -228,27 +228,27 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
228
228
|
line-height: ${zi.lineHeight};
|
|
229
229
|
text-transform: ${zi.textTransform};
|
|
230
230
|
}
|
|
231
|
-
`,
|
|
231
|
+
`,ji=St`
|
|
232
232
|
.ft-typography {
|
|
233
233
|
vertical-align: inherit;
|
|
234
234
|
}
|
|
235
|
-
`,_i=[Object.keys(
|
|
235
|
+
`,_i=[Object.keys($e).map((t=>function(t){const e=$e[t];return St`
|
|
236
236
|
.ft-typography--${Ot(t)} {
|
|
237
|
-
font-family: ${
|
|
238
|
-
font-size: ${
|
|
239
|
-
font-weight: ${
|
|
240
|
-
letter-spacing: ${
|
|
241
|
-
line-height: ${
|
|
242
|
-
text-transform: ${
|
|
237
|
+
font-family: ${e.fontFamily};
|
|
238
|
+
font-size: ${e.fontSize};
|
|
239
|
+
font-weight: ${e.fontWeight};
|
|
240
|
+
letter-spacing: ${e.letterSpacing};
|
|
241
|
+
line-height: ${e.lineHeight};
|
|
242
|
+
text-transform: ${e.textCase};
|
|
243
243
|
}
|
|
244
|
-
`}(t)))];var Gi=function(t,o,
|
|
245
|
-
<${
|
|
244
|
+
`}(t)))];var Gi=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 Vi extends Ze{constructor(){super(...arguments),this.variant=Uo.body1}render(){return this.element?ko`
|
|
245
|
+
<${Eo(this.element)}
|
|
246
246
|
class="ft-typography ft-typography--${this.variant}">
|
|
247
247
|
<slot></slot>
|
|
248
|
-
</${
|
|
249
|
-
`:
|
|
248
|
+
</${Eo(this.element)}>
|
|
249
|
+
`:ko`
|
|
250
250
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
251
|
-
`}}Vi.styles=[Ki,Fi,Zi,
|
|
251
|
+
`}}Vi.styles=[Ki,Fi,Ai,Zi,Bi,Mi,Di,Pi,Hi,Ti,ji,..._i],Gi([w()],Vi.prototype,"element",void 0),Gi([w()],Vi.prototype,"variant",void 0),U("ft-typography")(Vi);const Yi=Ne.extend("--ft-reader-internal-link-outline-color","",ke.colorPrimary),Xi=St`
|
|
252
252
|
:host {
|
|
253
253
|
display: contents;
|
|
254
254
|
}
|
|
@@ -261,19 +261,19 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
261
261
|
text-decoration: none;
|
|
262
262
|
color: inherit;
|
|
263
263
|
}
|
|
264
|
-
`;var Ji=function(t,o,
|
|
265
|
-
<a class=${
|
|
264
|
+
`;var Ji=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 qi extends wo{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=go({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return re`
|
|
265
|
+
<a class=${e}
|
|
266
266
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
267
267
|
@click=${t=>this.onLinkClick(t)}>
|
|
268
268
|
<slot></slot>
|
|
269
269
|
</a>
|
|
270
|
-
`}onLinkClick(t){var
|
|
270
|
+
`}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}qi.styles=Xi,Ji([w()],qi.prototype,"tocId",void 0),Ji([w()],qi.prototype,"section",void 0),Ji([w({type:Number})],qi.prototype,"pageNumber",void 0),Ji([w({type:Boolean})],qi.prototype,"removeStyle",void 0),U("ft-reader-internal-link")(qi);
|
|
271
271
|
/**
|
|
272
272
|
* @license
|
|
273
273
|
* Copyright 2017 Google LLC
|
|
274
274
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
275
275
|
*/
|
|
276
|
-
class Qi extends
|
|
276
|
+
class Qi extends ao{constructor(t){if(super(t),this.et=tt,t.type!==ro)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.vt=void 0,this.et=t;if(t===Q)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:[]}}}Qi.directiveName="unsafeHTML",Qi.resultType=1;const tr=no(Qi);var er,or;!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.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=""}(er||(er={})),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=""}(or||(or={})),new Map([...["abw"].map((t=>[t,or.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,or.AUDIO])),...["avi"].map((t=>[t,or.AVI])),...["chm","xhs"].map((t=>[t,or.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,or.CODE])),...["csv"].map((t=>[t,or.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,or.DITA])),...["epub"].map((t=>[t,or.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,or.EXCEL])),...["flac"].map((t=>[t,or.FLAC])),...["gif"].map((t=>[t,or.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,or.GZIP])),...["html","htm","xhtml"].map((t=>[t,or.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,or.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,or.JPEG])),...["json"].map((t=>[t,or.JSON])),...["m4a","m4p"].map((t=>[t,or.M4A])),...["mov","qt"].map((t=>[t,or.MOV])),...["mp3"].map((t=>[t,or.MP3])),...["mp4","m4v"].map((t=>[t,or.MP4])),...["ogg","oga"].map((t=>[t,or.OGG])),...["pdf","ps"].map((t=>[t,or.PDF])),...["png"].map((t=>[t,or.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,or.POWERPOINT])),...["rar"].map((t=>[t,or.RAR])),...["stp"].map((t=>[t,or.STP])),...["txt","rtf","md","mdown"].map((t=>[t,or.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,or.VIDEO])),...["wav"].map((t=>[t,or.WAV])),...["wma"].map((t=>[t,or.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,or.WORD])),...["xml","xsl","rdf"].map((t=>[t,or.XML])),...["yaml","yml","x-yaml"].map((t=>[t,or.YAML])),...["zip"].map((t=>[t,or.ZIP]))]);const ir={size:Ne.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ne.extend("--ft-icon-fluid-topics-font-family","",Ne.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ne.extend("--ft-icon-file-format-font-family","",Ne.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ne.extend("--ft-icon-material-font-family","",Ne.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ne.create("--ft-icon-vertical-align","","UNKNOWN","unset")},rr=St`
|
|
277
277
|
:host, i.ft-icon {
|
|
278
278
|
display: inline-flex;
|
|
279
279
|
align-items: center;
|
|
@@ -321,12 +321,12 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
321
321
|
.ft-icon--material {
|
|
322
322
|
font-family: ${ir.materialFontFamily}, "Material Icons", sans-serif;
|
|
323
323
|
}
|
|
324
|
-
`;var nr;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(nr||(nr={}));var ar=function(t,o,
|
|
324
|
+
`;var nr;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(nr||(nr={}));var ar=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 sr extends Ze{constructor(){super(...arguments),this.resolvedIcon=ae}render(){const t=this.variant&&Object.values(nr).includes(this.variant)?this.variant:nr.fluid_topics,e=t!==nr.material||!!this.value;return re`
|
|
325
325
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
326
326
|
${tr(this.resolvedIcon)}
|
|
327
|
-
<slot ?hidden=${
|
|
327
|
+
<slot ?hidden=${e}></slot>
|
|
328
328
|
</i>
|
|
329
|
-
`}get textContent(){var t,
|
|
329
|
+
`}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 nr.file_format:this.resolvedIcon=null!==(t=or[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case nr.material:this.resolvedIcon=this.value||ae;break;default:this.resolvedIcon=null!==(e=er[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}sr.elementDefinitions={},sr.styles=rr,ar([w()],sr.prototype,"variant",void 0),ar([w()],sr.prototype,"value",void 0),ar([C()],sr.prototype,"resolvedIcon",void 0),ar([E("slot")],sr.prototype,"slottedContent",void 0),U("ft-icon")(sr);const lr=Ne.extend("--ft-ripple-color","",ke.colorContent),cr={color:lr,backgroundColor:Ne.extend("--ft-ripple-background-color","",lr),opacityContentOnSurfacePressed:Ne.external(ke.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ne.external(ke.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ne.external(ke.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ne.external(ke.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ne.create("--ft-ripple-border-radius","","SIZE","0px")},pr=Ne.extend("--ft-ripple-color","",ke.colorPrimary),fr=pr,hr=Ne.extend("--ft-ripple-background-color","",pr),dr=Ne.extend("--ft-ripple-color","",ke.colorSecondary),ur=dr,yr=Ne.extend("--ft-ripple-background-color","",dr),gr=St`
|
|
330
330
|
:host {
|
|
331
331
|
display: contents;
|
|
332
332
|
}
|
|
@@ -389,11 +389,11 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
392
|
-
background-color: ${
|
|
392
|
+
background-color: ${hr};
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
396
|
-
background-color: ${
|
|
396
|
+
background-color: ${fr};
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
.ft-ripple .ft-ripple--background {
|
|
@@ -438,7 +438,7 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
438
438
|
opacity: ${cr.opacityContentOnSurfacePressed};
|
|
439
439
|
transform: translate(-50%, -50%) scale(1);
|
|
440
440
|
}
|
|
441
|
-
`,br={color:
|
|
441
|
+
`,br={color:Ne.extend("--ft-loader-color","",ke.colorPrimary),size:Ne.create("--ft-loader-size","","SIZE","80px")},mr=St`
|
|
442
442
|
:host {
|
|
443
443
|
line-height: 0;
|
|
444
444
|
}
|
|
@@ -507,7 +507,7 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
507
507
|
transform: translate(calc(0.35 * ${br.size}), 0);
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
`,xr=
|
|
510
|
+
`,xr=Ne.extend("--ft-button-color","",ke.colorPrimary),vr={backgroundColor:Ne.extend("--ft-button-background-color","",ke.colorSurface),borderRadius:Ne.extend("--ft-button-border-radius","",ke.borderRadiusL),color:xr,fontSize:Ne.extend("--ft-button-font-size","",zi.fontSize),iconSize:Ne.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ne.extend("--ft-button-ripple-color","",xr),verticalPadding:Ne.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ne.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ne.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ne.external(ke.colorOpacityDisabled,"Design system")},Or=Ne.extend("--ft-button-primary-color","",Ne.extend("--ft-button-color","",ke.colorOnPrimary)),Sr={backgroundColor:Ne.extend("--ft-button-primary-background-color","",Ne.extend("--ft-button-background-color","",ke.colorPrimary)),color:Or,rippleColor:Ne.extend("--ft-button-primary-ripple-color","",Or)},Nr=Ne.extend("--ft-button-dense-border-radius","",Ne.extend("--ft-button-border-radius","",ke.borderRadiusM)),wr=Ne.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Cr=Ne.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),$r=Ne.create("--ft-button-dense-icon-padding","","SIZE","4px"),Er=[St`
|
|
511
511
|
:host {
|
|
512
512
|
display: inline-block;
|
|
513
513
|
max-width: 100%;
|
|
@@ -549,8 +549,8 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
549
549
|
|
|
550
550
|
--ft-button-internal-line-height: max(calc(${vr.fontSize} + 2px), ${vr.iconSize});
|
|
551
551
|
--ft-button-internal-color: ${vr.color};
|
|
552
|
-
${
|
|
553
|
-
${
|
|
552
|
+
${we(ir.size,vr.iconSize)};
|
|
553
|
+
${we(cr.color,vr.rippleColor)};
|
|
554
554
|
|
|
555
555
|
border-radius: ${vr.borderRadius};
|
|
556
556
|
padding: ${vr.verticalPadding} ${vr.horizontalPadding};
|
|
@@ -566,7 +566,7 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
566
566
|
|
|
567
567
|
.ft-button.ft-button--dense {
|
|
568
568
|
padding: ${wr} ${Cr};
|
|
569
|
-
border-radius: ${
|
|
569
|
+
border-radius: ${Nr};
|
|
570
570
|
gap: ${$r};
|
|
571
571
|
}
|
|
572
572
|
|
|
@@ -592,9 +592,9 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
.ft-button.ft-button--primary {
|
|
595
|
-
background-color: ${
|
|
596
|
-
--ft-button-internal-color: ${
|
|
597
|
-
${
|
|
595
|
+
background-color: ${Sr.backgroundColor};
|
|
596
|
+
--ft-button-internal-color: ${Sr.color};
|
|
597
|
+
${we(cr.color,Sr.rippleColor)};
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
.ft-button:focus {
|
|
@@ -608,8 +608,8 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
608
608
|
text-overflow: ellipsis;
|
|
609
609
|
display: block;
|
|
610
610
|
margin: 0 ${vr.iconPadding};
|
|
611
|
-
${
|
|
612
|
-
${
|
|
611
|
+
${we(zi.fontSize,"1em")};
|
|
612
|
+
${we(zi.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-button--dense .ft-button--label {
|
|
@@ -641,21 +641,21 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
ft-loader {
|
|
644
|
-
${
|
|
645
|
-
${
|
|
644
|
+
${we(br.size,vr.iconSize)};
|
|
645
|
+
${we(br.color,"var(--ft-button-internal-color)")};
|
|
646
646
|
}
|
|
647
|
-
`,
|
|
647
|
+
`,Me];var Rr=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 kr extends Ze{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 R(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 R(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 re`
|
|
648
648
|
<style>
|
|
649
649
|
.ft-ripple .ft-ripple--effect {
|
|
650
650
|
left: ${this.originX}px;
|
|
651
651
|
top: ${this.originY}px;
|
|
652
652
|
}
|
|
653
653
|
</style>
|
|
654
|
-
<div class="${
|
|
654
|
+
<div class="${go(t)}">
|
|
655
655
|
<div class="ft-ripple--background"></div>
|
|
656
656
|
<div class="ft-ripple--effect"></div>
|
|
657
657
|
</div>
|
|
658
|
-
`}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 o
|
|
658
|
+
`}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)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),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()}}kr.elementDefinitions={},kr.styles=gr,Rr([w({type:Boolean})],kr.prototype,"primary",void 0),Rr([w({type:Boolean})],kr.prototype,"secondary",void 0),Rr([w({type:Boolean})],kr.prototype,"unbounded",void 0),Rr([w({type:Boolean})],kr.prototype,"activated",void 0),Rr([w({type:Boolean})],kr.prototype,"selected",void 0),Rr([w({type:Boolean})],kr.prototype,"disabled",void 0),Rr([C()],kr.prototype,"hovered",void 0),Rr([C()],kr.prototype,"focused",void 0),Rr([C()],kr.prototype,"pressed",void 0),Rr([C()],kr.prototype,"rippling",void 0),Rr([C()],kr.prototype,"originX",void 0),Rr([C()],kr.prototype,"originY",void 0),Rr([E(".ft-ripple")],kr.prototype,"ripple",void 0),Rr([E(".ft-ripple--effect")],kr.prototype,"rippleEffect",void 0),U("ft-ripple")(kr);const Ur=Ne.create("--ft-tooltip-distance","","SIZE","4px"),Ir=Ne.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Lr=Ne.create("--ft-tooltip-background-color","","COLOR","#666666"),Wr=Ne.create("--ft-tooltip-z-index","","NUMBER","100"),zr=Ne.external(ke.borderRadiusS,"Design system"),Kr=Ne.create("--ft-tooltip-max-width","","SIZE","150px"),Fr=St`
|
|
659
659
|
.ft-tooltip--container {
|
|
660
660
|
display: block;
|
|
661
661
|
}
|
|
@@ -672,7 +672,7 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
672
672
|
width: max-content;
|
|
673
673
|
max-width: ${Kr};
|
|
674
674
|
text-align: center;
|
|
675
|
-
padding: ${
|
|
675
|
+
padding: ${Ur};
|
|
676
676
|
z-index: ${Wr};
|
|
677
677
|
}
|
|
678
678
|
|
|
@@ -684,7 +684,7 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
684
684
|
position: relative;
|
|
685
685
|
word-break: break-word;
|
|
686
686
|
}
|
|
687
|
-
`;var Zr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ar extends Bo{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 o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ro`
|
|
687
|
+
`,Ar=["start","end"],Zr=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Ar[0],e+"-"+Ar[1])),[]),Br=Math.min,Mr=Math.max,Dr=Math.round,Pr=t=>({x:t,y:t}),Hr={left:"right",right:"left",bottom:"top",top:"bottom"},Tr={start:"end",end:"start"};function jr(t,e,o){return Mr(t,Br(e,o))}function _r(t,e){return"function"==typeof t?t(e):t}function Gr(t){return t.split("-")[0]}function Vr(t){return t.split("-")[1]}function Yr(t){return"x"===t?"y":"x"}function Xr(t){return"y"===t?"height":"width"}function Jr(t){return["top","bottom"].includes(Gr(t))?"y":"x"}function qr(t){return Yr(Jr(t))}function Qr(t){return t.replace(/left|right|bottom|top/g,(t=>Hr[t]))}function tn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function en(t,e,o){let{reference:i,floating:r}=t;const n=Jr(e),a=qr(e),s=Xr(a),l=Gr(e),c="y"===n,p=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let d;switch(l){case"top":d={x:p,y:i.y-r.height};break;case"bottom":d={x:p,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-r.width,y:f};break;default:d={x:i.x,y:i.y}}switch(Vr(e)){case"start":d[a]-=h*(o&&c?-1:1);break;case"end":d[a]+=h*(o&&c?-1:1)}return d}async function on(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:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=_r(e,t),u=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}}(d),y=s[h?"floating"===f?"reference":"floating":f],g=tn(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:p,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},v=tn(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-v.top+u.top)/x.y,bottom:(v.bottom-g.bottom+u.bottom)/x.y,left:(g.left-v.left+u.left)/x.x,right:(v.right-g.right+u.right)/x.x}}function rn(t,e,o){return(t?[...o.filter((e=>Vr(e)===t)),...o.filter((e=>Vr(e)!==t))]:o.filter((t=>Gr(t)===t))).filter((o=>!t||(Vr(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Tr[t]))}(o)!==o)))}const nn=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:p=!1,alignment:f,allowedPlacements:h=Zr,autoAlignment:d=!0,...u}=_r(t,e),y=void 0!==f||h===Zr?rn(f||null,d,h):h,g=await on(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const x=function(t,e,o){void 0===o&&(o=!1);const i=Vr(t),r=qr(t),n=Xr(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Qr(a)),[a,Qr(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const v=[g[Gr(m)],g[x[0]],g[x[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:v}],S=y[b+1];if(S)return{data:{index:b+1,overflows:O},reset:{placement:S}};const N=O.map((t=>{const e=Vr(t.placement);return[t.placement,e&&p?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),w=N.filter((t=>t[2].slice(0,Vr(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=w[0])?void 0:r[0])||N[0][0];return C!==s?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function an(t){return cn(t)?(t.nodeName||"").toLowerCase():"#document"}function sn(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function ln(t){var e;return null==(e=(cn(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function cn(t){return t instanceof Node||t instanceof sn(t).Node}function pn(t){return t instanceof Element||t instanceof sn(t).Element}function fn(t){return t instanceof HTMLElement||t instanceof sn(t).HTMLElement}function hn(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof sn(t).ShadowRoot)}function dn(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=mn(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function un(t){return["table","td","th"].includes(an(t))}function yn(t){const e=gn(),o=mn(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 gn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function bn(t){return["html","body","#document"].includes(an(t))}function mn(t){return sn(t).getComputedStyle(t)}function xn(t){return pn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vn(t){if("html"===an(t))return t;const e=t.assignedSlot||t.parentNode||hn(t)&&t.host||ln(t);return hn(e)?e.host:e}function On(t){const e=vn(t);return bn(e)?t.ownerDocument?t.ownerDocument.body:t.body:fn(e)&&dn(e)?e:On(e)}function Sn(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=On(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=sn(r);return n?e.concat(a,a.visualViewport||[],dn(r)?r:[],a.frameElement&&o?Sn(a.frameElement):[]):e.concat(r,Sn(r,[],o))}function Nn(t){const e=mn(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=fn(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Dr(o)!==n||Dr(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function wn(t){return pn(t)?t:t.contextElement}function Cn(t){const e=wn(t);if(!fn(e))return Pr(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Nn(e);let a=(n?Dr(o.width):o.width)/i,s=(n?Dr(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const $n=Pr(0);function En(t){const e=sn(t);return gn()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:$n}function Rn(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=wn(t);let a=Pr(1);e&&(i?pn(i)&&(a=Cn(i)):a=Cn(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==sn(t))&&e}(n,o,i)?En(n):Pr(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,p=r.width/a.x,f=r.height/a.y;if(n){const t=sn(n),e=i&&pn(i)?sn(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Cn(o),e=o.getBoundingClientRect(),i=mn(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,p*=t.x,f*=t.y,l+=r,c+=n,o=sn(o).frameElement}}return tn({width:p,height:f,x:l,y:c})}function kn(t){return Rn(ln(t)).left+xn(t).scrollLeft}function Un(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=sn(t),i=ln(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=gn();(!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=ln(t),o=xn(t),i=t.ownerDocument.body,r=Mr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Mr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+kn(t);const s=-o.scrollTop;return"rtl"===mn(i).direction&&(a+=Mr(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(ln(t));else if(pn(e))i=function(t,e){const o=Rn(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=fn(t)?Cn(t):Pr(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=En(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return tn(i)}function In(t,e){const o=vn(t);return!(o===e||!pn(o)||bn(o))&&("fixed"===mn(o).position||In(o,e))}function Ln(t,e,o){const i=fn(e),r=ln(e),n="fixed"===o,a=Rn(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Pr(0);if(i||!i&&!n)if(("body"!==an(e)||dn(r))&&(s=xn(e)),i){const t=Rn(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=kn(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Wn(t,e){return fn(t)&&"fixed"!==mn(t).position?e?e(t):t.offsetParent:null}function zn(t,e){const o=sn(t);if(!fn(t))return o;let i=Wn(t,e);for(;i&&un(i)&&"static"===mn(i).position;)i=Wn(i,e);return i&&("html"===an(i)||"body"===an(i)&&"static"===mn(i).position&&!yn(i))?o:i||function(t){let e=vn(t);for(;fn(e)&&!bn(e);){if(yn(e))return e;e=vn(e)}return null}(t)||o}const Kn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=fn(o),n=ln(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Pr(1);const l=Pr(0);if((r||!r&&"fixed"!==i)&&(("body"!==an(o)||dn(n))&&(a=xn(o)),fn(o))){const t=Rn(o);s=Cn(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:ln,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=Sn(t,[],!1).filter((t=>pn(t)&&"body"!==an(t))),r=null;const n="fixed"===mn(t).position;let a=n?vn(t):t;for(;pn(a)&&!bn(a);){const e=mn(a),o=yn(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||dn(a)&&!o&&In(t,a))?i=i.filter((t=>t!==a)):r=e,a=vn(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=Un(e,o,r);return t.top=Mr(i.top,t.top),t.right=Br(i.right,t.right),t.bottom=Br(i.bottom,t.bottom),t.left=Mr(i.left,t.left),t}),Un(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:zn,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||zn,n=this.getDimensions;return{reference:Ln(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 Nn(t)},getScale:Cn,isElement:pn,isRTL:function(t){return"rtl"===mn(t).direction}},Fn=(t,e,o)=>{const i=new Map,r={platform:Kn,...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:p,y:f}=en(c,i,l),h=i,d={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:x}=await y({x:p,y:f,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});p=null!=g?g:p,f=null!=b?b:f,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:p,y:f}=en(c,h,l))),o=-1)}return{x:p,y:f,placement:h,strategy:r,middlewareData:d}})(t,e,{...r,platform:n})};var An=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 Zn extends Ze{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 R,this.revealDebouncer=new R}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return re`
|
|
688
688
|
<div part="container"
|
|
689
689
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
690
690
|
@mouseenter=${this.onHover}
|
|
@@ -702,37 +702,37 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
702
702
|
</div>
|
|
703
703
|
</div>
|
|
704
704
|
</div>
|
|
705
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((
|
|
705
|
+
`}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()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Fn(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=_r(t,e),c={x:o,y:i},p=await on(e,l),f=Jr(Gr(r)),h=Yr(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=jr(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=jr(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...e,[h]:d,[f]:u});return{...y,data:{x:y.x-o,y:y.y-i}}}}),nn({allowedPlacements:[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())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Zn.elementDefinitions={"ft-typography":Vi},Zn.styles=Fr,An([w()],Zn.prototype,"text",void 0),An([w({type:Boolean})],Zn.prototype,"manual",void 0),An([w({type:Boolean})],Zn.prototype,"inline",void 0),An([w({type:Number})],Zn.prototype,"delay",void 0),An([w()],Zn.prototype,"position",void 0),An([function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],Zn.prototype,"slotNodes",void 0),An([E(".ft-tooltip--container")],Zn.prototype,"container",void 0),An([E(".ft-tooltip")],Zn.prototype,"tooltip",void 0),An([E(".ft-tooltip--content")],Zn.prototype,"tooltipContent",void 0),An([C()],Zn.prototype,"visible",void 0),U("ft-tooltip")(Zn);class Bn extends Ze{render(){return re`
|
|
706
706
|
<div class="ft-loader">
|
|
707
707
|
<div></div>
|
|
708
708
|
<div></div>
|
|
709
709
|
<div></div>
|
|
710
710
|
<div></div>
|
|
711
711
|
</div>
|
|
712
|
-
`}}
|
|
712
|
+
`}}Bn.styles=mr,U("ft-loader")(Bn);var Mn=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 Dn extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[qe].form}constructor(...t){super(t),this[qe]=this.attachInternals(),this[qe].role=e}setFormValue(t){this[qe].setFormValue(t)}}}(Ze,"button")){constructor(){super(...arguments),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.onclick=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(re`
|
|
713
713
|
<button part="button"
|
|
714
|
-
class="${
|
|
714
|
+
class="${go(this.buttonClasses)}"
|
|
715
715
|
aria-label="${this.getLabel()}"
|
|
716
716
|
?disabled=${this.isDisabled()}>
|
|
717
717
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
718
718
|
<ft-typography part="label"
|
|
719
719
|
variant=${this.typographyVariant}
|
|
720
720
|
element="span"
|
|
721
|
-
class="ft-button--label ${
|
|
721
|
+
class="ft-button--label ${oo?"ft-safari-ellipsis-fix":""}"
|
|
722
722
|
?hidden=${!this.hasTextContent()}>
|
|
723
723
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
724
724
|
</ft-typography>
|
|
725
725
|
${this.resolveIcon()}
|
|
726
726
|
</button>
|
|
727
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
727
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?re`
|
|
728
728
|
<ft-tooltip part="tooltip"
|
|
729
729
|
text="${this.getLabel()}"
|
|
730
730
|
position="${this.tooltipPosition}">
|
|
731
731
|
${t}
|
|
732
732
|
</ft-tooltip>
|
|
733
|
-
`:t}resolveIcon(){return this.loading?
|
|
734
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
735
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
733
|
+
`:t}resolveIcon(){return this.loading?re`
|
|
734
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?re`
|
|
735
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ae}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}}Dn.elementDefinitions={"ft-ripple":kr,"ft-tooltip":Zn,"ft-typography":Vi,"ft-icon":sr,"ft-loader":Bn},Mn([w({type:String,reflect:!0})],Dn.prototype,"role",void 0),Mn([w()],Dn.prototype,"type",void 0),Mn([w({type:Boolean})],Dn.prototype,"disabled",void 0),Mn([w()],Dn.prototype,"label",void 0),Mn([w()],Dn.prototype,"icon",void 0),Mn([w()],Dn.prototype,"iconVariant",void 0),Mn([w({type:Boolean})],Dn.prototype,"trailingIcon",void 0),Mn([w({type:Boolean})],Dn.prototype,"loading",void 0),Mn([w()],Dn.prototype,"tooltipPosition",void 0),Mn([w({type:Boolean})],Dn.prototype,"hideTooltip",void 0),Mn([w({type:Boolean})],Dn.prototype,"forceTooltip",void 0),Mn([E(".ft-button")],Dn.prototype,"button",void 0),Mn([E(".ft-button--label slot")],Dn.prototype,"slottedContent",void 0);var Pn=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 Hn extends Dn{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"}}Hn.styles=[De,Er],Pn([w({type:Boolean})],Hn.prototype,"primary",void 0),Pn([w({type:Boolean})],Hn.prototype,"outlined",void 0),Pn([w({type:Boolean})],Hn.prototype,"dense",void 0),Pn([w({type:Boolean})],Hn.prototype,"round",void 0);const Tn=[St`
|
|
736
736
|
:host {
|
|
737
737
|
display: inline-block;
|
|
738
738
|
max-width: 100%;
|
|
@@ -782,7 +782,7 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
782
782
|
}
|
|
783
783
|
|
|
784
784
|
.ft-button:focus-visible {
|
|
785
|
-
outline-color: ${
|
|
785
|
+
outline-color: ${Re.focusFocusRingColor};
|
|
786
786
|
outline-style: solid;
|
|
787
787
|
}
|
|
788
788
|
|
|
@@ -811,146 +811,146 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
811
811
|
/** Primary styles **/
|
|
812
812
|
|
|
813
813
|
.ft-button--primary {
|
|
814
|
-
${
|
|
814
|
+
${we(br.color,Re.primaryIconColor)};
|
|
815
815
|
|
|
816
|
-
${
|
|
817
|
-
${
|
|
818
|
-
${
|
|
819
|
-
${
|
|
820
|
-
${
|
|
816
|
+
${we(cr.color,Re.primaryStateLayerColor)};
|
|
817
|
+
${we(cr.opacityContentOnSurfaceHover,Re.primaryStateLayerOpacityHover)};
|
|
818
|
+
${we(cr.opacityContentOnSurfaceFocused,Re.primaryStateLayerOpacityFocus)};
|
|
819
|
+
${we(cr.opacityContentOnSurfaceSelected,Re.primaryStateLayerOpacityActive)};
|
|
820
|
+
${we(cr.opacityContentOnSurfacePressed,Re.primaryStateLayerOpacityActive)};
|
|
821
821
|
|
|
822
|
-
background-color: ${
|
|
823
|
-
color: ${
|
|
822
|
+
background-color: ${Re.primaryBackgroundColor};
|
|
823
|
+
color: ${Re.primaryColor};
|
|
824
824
|
border-style: none;
|
|
825
825
|
}
|
|
826
826
|
|
|
827
827
|
.ft-button--primary[disabled] {
|
|
828
|
-
opacity: ${
|
|
828
|
+
opacity: ${Re.primaryComponentOpacityDisabled};
|
|
829
829
|
}
|
|
830
830
|
|
|
831
831
|
.ft-button--primary ft-icon {
|
|
832
|
-
color: ${
|
|
832
|
+
color: ${Re.primaryIconColor};
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
/** Secondary styles **/
|
|
836
836
|
|
|
837
837
|
.ft-button--secondary {
|
|
838
|
-
${
|
|
838
|
+
${we(br.color,Re.secondaryIconColor)};
|
|
839
839
|
|
|
840
|
-
${
|
|
841
|
-
${
|
|
842
|
-
${
|
|
843
|
-
${
|
|
844
|
-
${
|
|
840
|
+
${we(cr.color,Re.secondaryStateLayerColor)};
|
|
841
|
+
${we(cr.opacityContentOnSurfaceHover,Re.secondaryStateLayerOpacityHover)};
|
|
842
|
+
${we(cr.opacityContentOnSurfaceFocused,Re.secondaryStateLayerOpacityFocus)};
|
|
843
|
+
${we(cr.opacityContentOnSurfaceSelected,Re.secondaryStateLayerOpacityActive)};
|
|
844
|
+
${we(cr.opacityContentOnSurfacePressed,Re.secondaryStateLayerOpacityActive)};
|
|
845
845
|
|
|
846
|
-
background-color: ${
|
|
847
|
-
color: ${
|
|
848
|
-
border-color: ${
|
|
846
|
+
background-color: ${Re.secondaryBackgroundColor};
|
|
847
|
+
color: ${Re.secondaryColor};
|
|
848
|
+
border-color: ${Re.secondaryBorderColor};
|
|
849
849
|
border-style: solid;
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
.ft-button--secondary[disabled] {
|
|
853
|
-
opacity: ${
|
|
853
|
+
opacity: ${Re.secondaryComponentOpacityDisabled};
|
|
854
854
|
}
|
|
855
855
|
|
|
856
856
|
.ft-button--secondary ft-icon {
|
|
857
|
-
color: ${
|
|
857
|
+
color: ${Re.secondaryIconColor};
|
|
858
858
|
}
|
|
859
859
|
|
|
860
860
|
/** Tertiary styles **/
|
|
861
861
|
|
|
862
862
|
.ft-button--tertiary {
|
|
863
|
-
${
|
|
863
|
+
${we(br.color,Re.tertiaryIconColor)};
|
|
864
864
|
|
|
865
|
-
${
|
|
866
|
-
${
|
|
867
|
-
${
|
|
868
|
-
${
|
|
869
|
-
${
|
|
865
|
+
${we(cr.color,Re.tertiaryStateLayerColor)};
|
|
866
|
+
${we(cr.opacityContentOnSurfaceHover,Re.tertiaryStateLayerOpacityHover)};
|
|
867
|
+
${we(cr.opacityContentOnSurfaceFocused,Re.tertiaryStateLayerOpacityFocus)};
|
|
868
|
+
${we(cr.opacityContentOnSurfaceSelected,Re.tertiaryStateLayerOpacityActive)};
|
|
869
|
+
${we(cr.opacityContentOnSurfacePressed,Re.tertiaryStateLayerOpacityActive)};
|
|
870
870
|
|
|
871
|
-
background-color: ${
|
|
872
|
-
color: ${
|
|
871
|
+
background-color: ${Re.tertiaryBackgroundColor};
|
|
872
|
+
color: ${Re.tertiaryColor};
|
|
873
873
|
border-style: none;
|
|
874
874
|
}
|
|
875
875
|
|
|
876
876
|
.ft-button--tertiary[disabled] {
|
|
877
|
-
opacity: ${
|
|
877
|
+
opacity: ${Re.tertiaryComponentOpacityDisabled};
|
|
878
878
|
}
|
|
879
879
|
|
|
880
880
|
.ft-button--tertiary ft-icon {
|
|
881
|
-
color: ${
|
|
881
|
+
color: ${Re.tertiaryIconColor};
|
|
882
882
|
}
|
|
883
883
|
|
|
884
884
|
/** Neutral styles **/
|
|
885
885
|
|
|
886
886
|
.ft-button--neutral {
|
|
887
|
-
${
|
|
887
|
+
${we(br.color,Re.neutralIconColor)};
|
|
888
888
|
|
|
889
|
-
${
|
|
890
|
-
${
|
|
891
|
-
${
|
|
892
|
-
${
|
|
893
|
-
${
|
|
889
|
+
${we(cr.backgroundColor,Re.neutralStateLayerColor)};
|
|
890
|
+
${we(cr.opacityContentOnSurfaceHover,Re.neutralStateLayerOpacityHover)};
|
|
891
|
+
${we(cr.opacityContentOnSurfaceFocused,Re.neutralStateLayerOpacityFocus)};
|
|
892
|
+
${we(cr.opacityContentOnSurfaceSelected,Re.neutralStateLayerOpacityActive)};
|
|
893
|
+
${we(cr.opacityContentOnSurfacePressed,Re.neutralStateLayerOpacityActive)};
|
|
894
894
|
|
|
895
|
-
background-color: ${
|
|
896
|
-
color: ${
|
|
895
|
+
background-color: ${Re.neutralBackgroundColor};
|
|
896
|
+
color: ${Re.neutralColor};
|
|
897
897
|
border-style: none;
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
.ft-button--neutral[disabled] {
|
|
901
|
-
opacity: ${
|
|
901
|
+
opacity: ${Re.neutralComponentOpacityDisabled};
|
|
902
902
|
}
|
|
903
903
|
|
|
904
904
|
.ft-button--neutral ft-icon {
|
|
905
|
-
color: ${
|
|
905
|
+
color: ${Re.neutralIconColor};
|
|
906
906
|
}
|
|
907
907
|
|
|
908
908
|
/** Large styles **/
|
|
909
909
|
|
|
910
910
|
.ft-button--large {
|
|
911
|
-
${
|
|
912
|
-
${
|
|
913
|
-
|
|
914
|
-
height: ${
|
|
915
|
-
padding: 0 ${
|
|
916
|
-
gap: ${
|
|
917
|
-
border-radius: ${
|
|
918
|
-
border-width: ${
|
|
911
|
+
${we(ir.size,Re.largeIconSize)};
|
|
912
|
+
${we(br.size,Re.largeIconSize)};
|
|
913
|
+
|
|
914
|
+
height: ${Re.largeHeight};
|
|
915
|
+
padding: 0 ${Re.largeHorizontalPadding};
|
|
916
|
+
gap: ${Re.largeGap};
|
|
917
|
+
border-radius: ${Re.largeBorderRadius};
|
|
918
|
+
border-width: ${Re.largeBorderWidth};
|
|
919
919
|
}
|
|
920
920
|
|
|
921
921
|
.ft-button--large:focus-visible {
|
|
922
|
-
outline-width: ${
|
|
923
|
-
outline-offset: ${
|
|
922
|
+
outline-width: ${Re.largeFocusOutlineWidth};
|
|
923
|
+
outline-offset: ${Re.largeFocusOutlineOffset};
|
|
924
924
|
}
|
|
925
925
|
|
|
926
926
|
.ft-button--large.ft-button--icon-only {
|
|
927
|
-
width: ${
|
|
927
|
+
width: ${Re.largeIconOnlyWidth};
|
|
928
928
|
padding: unset;
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
/** Small styles **/
|
|
932
932
|
|
|
933
933
|
.ft-button--small {
|
|
934
|
-
${
|
|
935
|
-
${
|
|
936
|
-
|
|
937
|
-
height: ${
|
|
938
|
-
padding: 0 ${
|
|
939
|
-
gap: ${
|
|
940
|
-
border-radius: ${
|
|
941
|
-
border-width: ${
|
|
934
|
+
${we(ir.size,Re.smallIconSize)};
|
|
935
|
+
${we(br.size,Re.smallIconSize)};
|
|
936
|
+
|
|
937
|
+
height: ${Re.smallHeight};
|
|
938
|
+
padding: 0 ${Re.smallHorizontalPadding};
|
|
939
|
+
gap: ${Re.smallGap};
|
|
940
|
+
border-radius: ${Re.smallBorderRadius};
|
|
941
|
+
border-width: ${Re.smallBorderWidth};
|
|
942
942
|
}
|
|
943
943
|
|
|
944
944
|
.ft-button--small:focus-visible {
|
|
945
|
-
outline-width: ${
|
|
946
|
-
outline-offset: ${
|
|
945
|
+
outline-width: ${Re.smallFocusOutlineWidth};
|
|
946
|
+
outline-offset: ${Re.smallFocusOutlineOffset};
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
.ft-button--small.ft-button--icon-only {
|
|
950
|
-
width: ${
|
|
950
|
+
width: ${Re.smallIconOnlyWidth};
|
|
951
951
|
padding: unset;
|
|
952
952
|
}
|
|
953
|
-
`,
|
|
953
|
+
`,Me];var jn,_n=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 Gn extends Dn{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?Uo.caption1medium:Uo.body2medium}}Gn.styles=[De,Tn],_n([w({type:Boolean})],Gn.prototype,"primary",void 0),_n([w({type:Boolean})],Gn.prototype,"secondary",void 0),_n([w({type:Boolean})],Gn.prototype,"tertiary",void 0),_n([w({type:Boolean})],Gn.prototype,"neutral",void 0),_n([w({type:Boolean})],Gn.prototype,"small",void 0),U("ft-button")(Hn),U("ftds-button")(Gn),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(jn||(jn={}));const Vn=St`
|
|
954
954
|
.ft-size-watcher--pixel {
|
|
955
955
|
width: 0;
|
|
956
956
|
height: 0;
|
|
@@ -969,34 +969,34 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
969
969
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
970
970
|
width: 100%;
|
|
971
971
|
}
|
|
972
|
-
`;var
|
|
972
|
+
`;var Yn=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 Xn extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class Jn extends Ze{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=jn.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new R}render(){return re`
|
|
973
973
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
974
974
|
<div class="ft-size-watcher--watcher"></div>
|
|
975
975
|
</div>
|
|
976
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=
|
|
976
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=jn.S:this.size<976?this.category=jn.M:this.size<1024?this.category=jn.L:this.size<1440?this.category=jn.XL:this.category=jn.XXL,this.dispatchEvent(new Xn(this.size,this.category)))}),this.debounceTimeout)}}Jn.elementDefinitions={},Jn.styles=Vn,Yn([w({type:Number})],Jn.prototype,"debounceTimeout",void 0),Yn([w({type:Boolean})],Jn.prototype,"local",void 0),Yn([w({type:Number,reflect:!0})],Jn.prototype,"size",void 0),Yn([w({type:String,reflect:!0})],Jn.prototype,"category",void 0),Yn([E(".ft-size-watcher--watcher")],Jn.prototype,"watcher",void 0),U("ft-size-watcher")(Jn);const qn={expand:"Expand {0}",collapse:"Collapse {0}",expandAll:"Expand all",expandAllLong:"Expand all table of contents",collapseAll:"Collapse all",collapseAllLong:"Collapse all table of contents"},Qn={tabulationSize:Ne.create("--ft-reader-toc-tabulation-size","","SIZE","16px"),verticalSpacing:Ne.create("--ft-reader-toc-vertical-spacing","","SIZE","4px"),textColor:Ne.extend("--ft-reader-toc-text-color","",ke.colorOnSurface),hoverColor:Ne.extend("--ft-reader-toc-hover-color","",ke.colorPrimary),highlightedTextColor:Ne.extend("--ft-reader-toc-highlighted-text-color","",ke.colorPrimary),highlightedFontWeight:Ne.create("--ft-reader-toc-highlighted-font-weight","","UNKNOWN","bold"),highlightedBackgroundColor:Ne.create("--ft-reader-toc-highlighted-background-color","","COLOR","transparent"),iconFontSize:Ne.create("--ft-reader-toc-icon-font-size","","SIZE","16px")},ta=St`
|
|
977
977
|
.ft-reader-toc {
|
|
978
|
-
color: ${
|
|
978
|
+
color: ${Qn.textColor};
|
|
979
979
|
}
|
|
980
980
|
|
|
981
981
|
.ft-reader-toc--node-highlighted > .ft-reader-toc--link-container {
|
|
982
|
-
background-color: ${
|
|
983
|
-
color: ${
|
|
984
|
-
${
|
|
982
|
+
background-color: ${Qn.highlightedBackgroundColor};
|
|
983
|
+
color: ${Qn.highlightedTextColor};
|
|
984
|
+
${we(Wo.fontWeight,Qn.highlightedFontWeight)}
|
|
985
985
|
}
|
|
986
986
|
|
|
987
987
|
.ft-reader-toc--link-container {
|
|
988
988
|
display: flex;
|
|
989
989
|
gap: 4px;
|
|
990
|
-
padding: ${
|
|
990
|
+
padding: ${Qn.verticalSpacing} 4px; /* left padding is override on inline style */
|
|
991
991
|
align-items: center;
|
|
992
992
|
}
|
|
993
993
|
|
|
994
994
|
.ft-reader-toc--link-container ft-reader-internal-link:hover {
|
|
995
|
-
color: ${
|
|
995
|
+
color: ${Qn.hoverColor};
|
|
996
996
|
}
|
|
997
997
|
|
|
998
998
|
ft-button {
|
|
999
|
-
${
|
|
999
|
+
${we(vr.iconSize,Qn.iconFontSize)};
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
1002
|
.ft-reader-toc--toggle-container {
|
|
@@ -1004,11 +1004,11 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
1006
|
.ft-reader-toc-mobile .ft-reader-toc--toggle-container {
|
|
1007
|
-
width: calc(${
|
|
1007
|
+
width: calc(${Qn.iconFontSize} + 12px); /*--ft-button-internal-horizontal-padding: 8px; in ft-button NOT dense*/
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
1010
|
.ft-reader-toc-desktop .ft-reader-toc--toggle-container {
|
|
1011
|
-
width: calc(${
|
|
1011
|
+
width: calc(${Qn.iconFontSize} + 4px); /*--ft-button-internal-horizontal-padding: 4px; in ft-button dense*/
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
1014
|
.ft-reader-toc-expanded .ft-reader-toc--toggle-container {
|
|
@@ -1031,20 +1031,20 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
1031
1031
|
.ft-reader-toc-expand-collapse-all-justify ft-button {
|
|
1032
1032
|
flex-grow: 1;
|
|
1033
1033
|
}
|
|
1034
|
-
`;var
|
|
1035
|
-
${this.hideIfEmpty&&this.empty?
|
|
1034
|
+
`;var ea=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 oa extends wo{constructor(){super(...arguments),this.expanded=!1,this.iconVariant=nr.fluid_topics,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.expandCollapseAll=!1,this.expandCollapseAllHideLabel=!1,this.expandCollapseAllTrailingIcon=!1,this.expandCollapseAllAlignment="left",this.expandCollapseAllHideIcon=!1,this.collapseAllIcon="ICON_COLLAPSE",this.expandAllIcon="ICON_EXPAND",this.autoCollapse=!1,this.scope="pages",this.hideIfEmpty=!1,this.empty=!0,this.labels={},this.labelResolver=new Pe(qn,{}),this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.expandAll=!1,this.viewportSize=jn.M,this.nodesToExpandExist=!1}get isCurrentPageToc(){return"current-page"===this.scope}update(t){var e,o,i;super.update(t),t.has("toc")&&(this.nodesToExpandExist=(null!==(e=this.toc)&&void 0!==e?e:[]).some((t=>t.children.length>0))),t.has("labels")&&(this.labelResolver=new Pe(qn,this.labels)),t.has("highlightedTocIds")&&!this.expanded&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes(null!==(o=this.highlightedTocIds)&&void 0!==o?o:[])),this.empty=0===(null!==(i=this.toc)&&void 0!==i?i:[]).length}render(){var t;const e={"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===jn.S,"ft-reader-toc-desktop":this.viewportSize!==jn.S,"ft-reader-toc-loaded":null!=this.currentPage,"ft-reader-toc-expanded":this.expanded};return re`
|
|
1035
|
+
${this.hideIfEmpty&&this.empty?re`
|
|
1036
1036
|
<style>
|
|
1037
1037
|
:host {
|
|
1038
1038
|
display: none !important;
|
|
1039
1039
|
}
|
|
1040
1040
|
</style>
|
|
1041
|
-
`:
|
|
1042
|
-
<div class=${
|
|
1041
|
+
`:ae}
|
|
1042
|
+
<div class=${go(e)}>
|
|
1043
1043
|
<ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
|
|
1044
1044
|
${this.renderExpandCollapseAll()}
|
|
1045
|
-
${
|
|
1045
|
+
${yo(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
|
|
1046
1046
|
</div>
|
|
1047
|
-
`}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?
|
|
1047
|
+
`}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?re`
|
|
1048
1048
|
<div part="expand-collapse-all-container"
|
|
1049
1049
|
class="ft-reader-toc-expand-collapse-all-container ft-reader-toc-expand-collapse-all-${this.expandCollapseAllAlignment}">
|
|
1050
1050
|
<ft-button
|
|
@@ -1059,16 +1059,16 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
1059
1059
|
${this.expandCollapseAllHideLabel?"":this.labelResolver.resolve(this.expandAll?"collapseAll":"expandAll")}
|
|
1060
1060
|
</ft-button>
|
|
1061
1061
|
</div>
|
|
1062
|
-
`:
|
|
1062
|
+
`:ae}renderNode(t){var e,o,i;const r=null===(e=this.highlightedTocIds)||void 0===e?void 0:e.includes(t.tocId),n=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),a=t.children.length>0,s=this.isCurrentPageToc?(null!==(i=null===(o=this.currentPage)||void 0===o?void 0:o.breadcrumb.length)&&void 0!==i?i:0)+1:0,l=t.depth-1-s,c={"padding-left":`calc( ${Qn.tabulationSize} * ${l} + 4px)`};return re`
|
|
1063
1063
|
<div class="ft-reader-toc--node ${r?"ft-reader-toc--node-highlighted":""}">
|
|
1064
|
-
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${
|
|
1065
|
-
${this.nodesToExpandExist&&!this.expanded?
|
|
1064
|
+
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${xo(c)}>
|
|
1065
|
+
${this.nodesToExpandExist&&!this.expanded?re`
|
|
1066
1066
|
<div class="ft-reader-toc--toggle-container">
|
|
1067
|
-
${a?
|
|
1067
|
+
${a?re`
|
|
1068
1068
|
<ft-button
|
|
1069
1069
|
part="expand-collapse-node"
|
|
1070
1070
|
round hideTooltip
|
|
1071
|
-
?dense=${this.viewportSize!==
|
|
1071
|
+
?dense=${this.viewportSize!==jn.S}
|
|
1072
1072
|
label="${this.labelResolver.resolve(n?"collapse":"expand",t.title)}"
|
|
1073
1073
|
.iconVariant="${this.iconVariant}"
|
|
1074
1074
|
icon="${n?this.collapseIcon||"MINUS":this.expandIcon||"PLUS"}"
|
|
@@ -1078,9 +1078,9 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
1078
1078
|
aria-expanded="${n}"
|
|
1079
1079
|
>
|
|
1080
1080
|
</ft-button>
|
|
1081
|
-
`:
|
|
1081
|
+
`:ae}
|
|
1082
1082
|
</div>
|
|
1083
|
-
`:
|
|
1083
|
+
`:ae}
|
|
1084
1084
|
<ft-reader-internal-link
|
|
1085
1085
|
part="node-link"
|
|
1086
1086
|
tocId="${t.tocId}"
|
|
@@ -1088,11 +1088,11 @@ class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Erro
|
|
|
1088
1088
|
<ft-typography part="node-label" variant="body2">${t.title}</ft-typography>
|
|
1089
1089
|
</ft-reader-internal-link>
|
|
1090
1090
|
</div>
|
|
1091
|
-
${a?
|
|
1091
|
+
${a?re`
|
|
1092
1092
|
<div class="ft-reader-toc--node-children" id="${t.tocId}-children"
|
|
1093
1093
|
?hidden=${!n}>
|
|
1094
|
-
${n?
|
|
1094
|
+
${n?yo(t.children,(t=>t.tocId),(t=>this.renderNode(t))):ae}
|
|
1095
1095
|
</div>
|
|
1096
|
-
`:
|
|
1096
|
+
`:ae}
|
|
1097
1097
|
</div>
|
|
1098
|
-
`}buildAutomaticallyExpandedNodes(t){var o
|
|
1098
|
+
`}buildAutomaticallyExpandedNodes(t){var e,o;let i=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let r of t){let t=r;for(;t&&!i.has(t);)i.add(t),this.manuallyCollapsedNodes.delete(t),t=null===(o=null===(e=this.service)||void 0===e?void 0:e.getTocNodeNow(t))||void 0===o?void 0:o.parentTocId}return i}manuallyToggle(t,e){e?(this.manuallyCollapsedNodes.add(t),this.manuallyExpandedNodes.delete(t)):(this.manuallyExpandedNodes.add(t),this.manuallyCollapsedNodes.delete(t)),this.requestUpdate()}onViewportSizeChange(t){this.viewportSize=t.detail.category}toggleExpandCollapseAll(){this.expandAll=!this.expandAll,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set}getExpandCollapseAllTooltipPosition(){switch(this.expandCollapseAllAlignment){case"right":return"left";case"left":return"right";default:return"bottom"}}}oa.elementDefinitions={"ft-button":Hn,"ft-reader-internal-link":qi,"ft-size-watcher":Jn,"ft-typography":Vi},oa.styles=ta,ea([w({type:Boolean})],oa.prototype,"expanded",void 0),ea([w()],oa.prototype,"iconVariant",void 0),ea([w()],oa.prototype,"collapseIcon",void 0),ea([w()],oa.prototype,"expandIcon",void 0),ea([w({type:Boolean})],oa.prototype,"expandCollapseAll",void 0),ea([w({type:Boolean})],oa.prototype,"expandCollapseAllHideLabel",void 0),ea([w({type:Boolean})],oa.prototype,"expandCollapseAllTrailingIcon",void 0),ea([w()],oa.prototype,"expandCollapseAllAlignment",void 0),ea([w({type:Boolean})],oa.prototype,"expandCollapseAllHideIcon",void 0),ea([w()],oa.prototype,"expandCollapseAllIconVariant",void 0),ea([w()],oa.prototype,"collapseAllIcon",void 0),ea([w()],oa.prototype,"expandAllIcon",void 0),ea([w({type:Boolean})],oa.prototype,"autoCollapse",void 0),ea([w()],oa.prototype,"scope",void 0),ea([w({type:Boolean})],oa.prototype,"hideIfEmpty",void 0),ea([w({type:Boolean,reflect:!0})],oa.prototype,"empty",void 0),ea([I({})],oa.prototype,"labels",void 0),ea([He({selector:(t,e)=>{var o,i,r;return e.isCurrentPageToc?(null===(o=t.paginationConfiguration)||void 0===o?void 0:o.splitCurrentPageToc)?null===(i=t.currentPage)||void 0===i?void 0:i.toc:void 0:(null===(r=t.paginationConfiguration)||void 0===r?void 0:r.splitCurrentPageToc)?t.pagesToc:t.toc}})],oa.prototype,"toc",void 0),ea([He({selector:t=>{var e;return null===(e=t.paginationConfiguration)||void 0===e?void 0:e.splitCurrentPageToc}})],oa.prototype,"splitToc",void 0),ea([He()],oa.prototype,"currentPage",void 0),ea([He({selector:(t,e)=>{var o,i;return(null===(o=t.paginationConfiguration)||void 0===o?void 0:o.splitCurrentPageToc)&&!e.isCurrentPageToc?[null===(i=t.currentPage)||void 0===i?void 0:i.rootTocId]:t.visibleTopics}})],oa.prototype,"highlightedTocIds",void 0),ea([C({hasChanged:(t,e)=>!k(t,e)})],oa.prototype,"automaticallyExpandedNodes",void 0),ea([C({hasChanged:(t,e)=>!k(t,e)})],oa.prototype,"manuallyExpandedNodes",void 0),ea([C({hasChanged:(t,e)=>!k(t,e)})],oa.prototype,"manuallyCollapsedNodes",void 0),ea([C()],oa.prototype,"expandAll",void 0),ea([C()],oa.prototype,"viewportSize",void 0),U("ft-reader-toc")(oa),t.DEFAULT_LABELS=qn,t.FtReaderToc=oa,t.FtReaderTocCssVariables=Qn,t.styles=ta}({});
|