@fluid-topics/ft-reader-feedback 1.1.28 → 1.1.30
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.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);d(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=a.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Qa){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t,e,i,o){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=o}static extractResultMetadata(t){var e,i;return(null!==(i=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==i?i:null==t?void 0:t.topic).metadata.map((t=>r.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],i=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?i.push(`... > ${t[t.length-1]}`):i.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:i.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){const i=this.allResults.flatMap((e=>r.extractResultMetadata(e).filter((e=>e.key===t)))).filter(((t,e,i)=>i.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findMatchingResult(t,e.value),metadata:e}))).sort(((i,o)=>this.compareMetadata(i.metadata.value,o.metadata.value,t,e)))}compareMetadata(t,e,i,o){let r=this.metadataDescriptors.find((t=>i==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let i=t.localeCompare(e,o,{numeric:!0});return a?-1*i:i}return 0}findMatchingResult(t,e){var i,o;let n=r.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),a=[...n.filter((e=>e.key!==t)),{key:t,value:e,displayValue:e}];return null!==(o=null!==(i=this.findResultMatchingMetadata(a))&&void 0!==i?i:this.findResultMatchingMetadata([{key:t,value:e,displayValue:e}]))&&void 0!==o?o:this.allResults[0]}findResultMatchingMetadata(t){return this.allResults.find((e=>this.resultMatchesMetadata(e,t)))}resultMatchesMetadata(t,e){let i=r.extractResultMetadata(t);return e.every((t=>i.some((e=>e.key==t.key&&e.value==t.value))))}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);d(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=a.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ts){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t,e,i,o){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=o}static extractResultMetadata(t){var e,i;return(null!==(i=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==i?i:null==t?void 0:t.topic).metadata.map((t=>r.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],i=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?i.push(`... > ${t[t.length-1]}`):i.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:i.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){const i=this.allResults.flatMap((e=>r.extractResultMetadata(e).filter((e=>e.key===t)))).filter(((t,e,i)=>i.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findMatchingResult(t,e.value),metadata:e}))).sort(((i,o)=>this.compareMetadata(i.metadata.value,o.metadata.value,t,e)))}compareMetadata(t,e,i,o){let r=this.metadataDescriptors.find((t=>i==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let i=t.localeCompare(e,o,{numeric:!0});return a?-1*i:i}return 0}findMatchingResult(t,e){var i,o;let n=r.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),a=[...n.filter((e=>e.key!==t)),{key:t,value:e,displayValue:e}];return null!==(o=null!==(i=this.findResultMatchingMetadata(a))&&void 0!==i?i:this.findResultMatchingMetadata([{key:t,value:e,displayValue:e}]))&&void 0!==o?o:this.allResults[0]}findResultMatchingMetadata(t){return this.allResults.find((e=>this.resultMatchesMetadata(e,t)))}resultMatchesMetadata(t,e){let i=r.extractResultMetadata(t);return e.every((t=>i.some((e=>e.key==t.key&&e.value==t.value))))}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -59,45 +59,45 @@ const E={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N},k=(t=E,e,
|
|
|
59
59
|
* Copyright 2017 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
61
|
*/
|
|
62
|
-
function T(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const _=t=>new Promise((e=>setTimeout(e,t)));function W(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!
|
|
62
|
+
function T(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const _=t=>new Promise((e=>setTimeout(e,t)));async function W(t,e=10,i=2e4){let o,r,n=await t();for(o=r=performance.now();null==n&&(!i||r-o<i);)await _(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function D(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!D(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!D(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=i;0!=o--;){var n=r[o];if(!D(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const F=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function M(t,e){const i=()=>JSON.parse(JSON.stringify(t));return I({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!D(t,e),...null!=e?e:{}})}
|
|
63
63
|
/**
|
|
64
64
|
* @license
|
|
65
65
|
* Copyright 2017 Google LLC
|
|
66
66
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
67
|
-
*/const
|
|
67
|
+
*/const P=globalThis,z=P.trustedTypes,j=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",K=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+K,H=`<${Z}>`,G=document,V=()=>G.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Y=Array.isArray,X=t=>Y(t)||"function"==typeof t?.[Symbol.iterator],J="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,it=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,rt=/"/g,nt=/^(?:script|style|textarea|title)$/i,at=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),st=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),ct=new WeakMap,ft=G.createTreeWalker(G,129);function ht(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==j?j.createHTML(e):e}const dt=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=Q;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===Q?"!--"===l[1]?a=tt:void 0!==l[1]?a=et:void 0!==l[2]?(nt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=it):void 0!==l[3]&&(a=it):a===it?">"===l[0]?(a=r??Q,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?it:'"'===l[3]?rt:ot):a===rt||a===ot?a=it:a===tt||a===et?a=Q:(a=it,r=void 0);const h=a===it&&t[e+1].startsWith("/>")?" ":"";n+=a===Q?i+H:c>=0?(o.push(s),i.slice(0,c)+B+i.slice(c)+K+h):i+K+(-2===c?e:h)}return[ht(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let ut=class t{constructor({strings:e,_$litType$:i},o){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,f]=dt(e,i);if(this.el=t.createElement(c,o),ft.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ft.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(B)){const e=f[a++],i=r.getAttribute(t).split(K),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?vt:"?"===o[1]?mt:"@"===o[1]?xt:bt}),r.removeAttribute(t)}else t.startsWith(K)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(nt.test(r.tagName)){const t=r.textContent.split(K),e=t.length-1;if(e>0){r.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],V()),ft.nextNode(),l.push({type:2,index:++n});r.append(t[e],V())}}}else if(8===r.nodeType)if(r.data===Z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(K,t+1));)l.push({type:7,index:n}),t+=K.length-1}n++}}static createElement(t,e){const i=G.createElement("template");return i.innerHTML=t,i}};function pt(t,e,i=t,o){if(e===st)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=q(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,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=pt(t,r._$AS(t,e.values),r,o)),e}let yt=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:i}=this._$AD,o=(t?.creationScope??G).importNode(e,!0);ft.currentNode=o;let r=ft.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new gt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new wt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ft.nextNode(),n++)}return ft.currentNode=G,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},gt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=lt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.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=pt(this,t,e),q(t)?t===lt||null==t||""===t?(this._$AH!==lt&&this._$AR(),this._$AH=lt):t!==this._$AH&&t!==st&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):X(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!==lt&&q(this._$AH)?this._$AA.nextSibling.data=t:this.$(G.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ut.createElement(ht(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new yt(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new ut(t)),e}T(e){Y(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(V()),this.k(V()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.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))}},bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=lt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=lt}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=pt(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==st,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=pt(this,o[i+a],e,a),s===st&&(s=this._$AH[a]),n||=!q(s)||s!==this._$AH[a],s===lt?t=lt:t!==lt&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},vt=class extends bt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===lt?void 0:t}},mt=class extends bt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==lt)}},xt=class extends bt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=pt(this,t,e,0)??lt)===st)return;const i=this._$AH,o=t===lt&&i!==lt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==lt&&(i===lt||o);o&&this.element.removeEventListener(this.name,this,i),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)}},wt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pt(this,t)}};const Ot={j:B,P:K,A:Z,C:1,M:dt,L:yt,R:X,V:pt,D:gt,I:bt,H:mt,N:xt,U:vt,B:wt},St=P.litHtmlPolyfillSupport;St?.(ut,gt),(P.litHtmlVersions??=[]).push("3.1.0");
|
|
68
68
|
/**
|
|
69
69
|
* @license
|
|
70
70
|
* Copyright 2019 Google LLC
|
|
71
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
72
|
*/
|
|
73
|
-
const
|
|
73
|
+
const Nt=globalThis,$t=Nt.ShadowRoot&&(void 0===Nt.ShadyCSS||Nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ct=Symbol(),Et=new WeakMap;let kt=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ct)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if($t&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Et.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Et.set(e,t))}return t}toString(){return this.cssText}};const It=t=>new kt("string"==typeof t?t:t+"",void 0,Ct),Rt=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new kt(i,t,Ct)},Ut=$t?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return It(e)})(t):t
|
|
74
74
|
/**
|
|
75
75
|
* @license
|
|
76
76
|
* Copyright 2017 Google LLC
|
|
77
77
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
78
|
-
*/,{is:
|
|
78
|
+
*/,{is:Lt,defineProperty:At,getOwnPropertyDescriptor:Tt,getOwnPropertyNames:_t,getOwnPropertySymbols:Wt,getPrototypeOf:Dt}=Object,Ft=globalThis,Mt=Ft.trustedTypes,Pt=Mt?Mt.emptyScript:"",zt=Ft.reactiveElementPolyfillSupport,jt=(t,e)=>t,Bt={toAttribute(t,e){switch(e){case Boolean:t=t?Pt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Kt=(t,e)=>!Lt(t,e),Zt={attribute:!0,type:String,converter:Bt,reflect:!1,hasChanged:Kt};Symbol.metadata??=Symbol("metadata"),Ft.litPropertyMetadata??=new WeakMap;let Ht=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=Zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&At(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=Tt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const n=o?.call(this);r.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Zt}static _$Ei(){if(this.hasOwnProperty(jt("elementProperties")))return;const t=Dt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(jt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(jt("properties"))){const t=this.properties,e=[..._t(t),...Wt(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(Ut(t))}else void 0!==t&&e.push(Ut(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if($t)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=Nt.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.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,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:Bt).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Bt;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Kt)(o?r:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.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,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],i)}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){}};Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[jt("elementProperties")]=new Map,Ht[jt("finalized")]=new Map,zt?.({ReactiveElement:Ht}),(Ft.reactiveElementVersions??=[]).push("2.0.2");
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
* Copyright 2017 Google LLC
|
|
82
82
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
83
83
|
*/
|
|
84
|
-
const
|
|
84
|
+
const Gt=globalThis,Vt=Gt.trustedTypes,qt=Vt?Vt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Yt="$lit$",Xt=`lit$${(Math.random()+"").slice(9)}$`,Jt="?"+Xt,Qt=`<${Jt}>`,te=document,ee=()=>te.createComment(""),ie=t=>null===t||"object"!=typeof t&&"function"!=typeof t,oe=Array.isArray,re="[ \t\n\f\r]",ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ae=/-->/g,se=/>/g,le=RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ce=/'/g,fe=/"/g,he=/^(?:script|style|textarea|title)$/i,de=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),ue=Symbol.for("lit-noChange"),pe=Symbol.for("lit-nothing"),ye=new WeakMap,ge=te.createTreeWalker(te,129);function be(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==qt?qt.createHTML(e):e}class ve{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=((t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=ne;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===ne?"!--"===l[1]?a=ae:void 0!==l[1]?a=se:void 0!==l[2]?(he.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=le):void 0!==l[3]&&(a=le):a===le?">"===l[0]?(a=r??ne,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?le:'"'===l[3]?fe:ce):a===fe||a===ce?a=le:a===ae||a===se?a=ne:(a=le,r=void 0);const h=a===le&&t[e+1].startsWith("/>")?" ":"";n+=a===ne?i+Qt:c>=0?(o.push(s),i.slice(0,c)+Yt+i.slice(c)+Xt+h):i+Xt+(-2===c?e:h)}return[be(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=ve.createElement(l,i),ge.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ge.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(Yt)){const e=c[n++],i=o.getAttribute(t).split(Xt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?Oe:"?"===a[1]?Se:"@"===a[1]?Ne:we}),o.removeAttribute(t)}else t.startsWith(Xt)&&(s.push({type:6,index:r}),o.removeAttribute(t));if(he.test(o.tagName)){const t=o.textContent.split(Xt),e=t.length-1;if(e>0){o.textContent=Vt?Vt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],ee()),ge.nextNode(),s.push({type:2,index:++r});o.append(t[e],ee())}}}else if(8===o.nodeType)if(o.data===Jt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(Xt,t+1));)s.push({type:7,index:r}),t+=Xt.length-1}r++}}static createElement(t,e){const i=te.createElement("template");return i.innerHTML=t,i}}function me(t,e,i=t,o){if(e===ue)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=ie(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,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=me(t,r._$AS(t,e.values),r,o)),e}let xe=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=pe,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.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=me(this,t,e),ie(t)?t===pe||null==t||""===t?(this._$AH!==pe&&this._$AR(),this._$AH=pe):t!==this._$AH&&t!==ue&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>oe(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!==pe&&ie(this._$AH)?this._$AA.nextSibling.data=t:this.$(te.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ve.createElement(be(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)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:i}=this._$AD,o=(t?.creationScope??te).importNode(e,!0);ge.currentNode=o;let r=ge.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new xe(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new $e(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ge.nextNode(),n++)}return ge.currentNode=te,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=ye.get(t.strings);return void 0===e&&ye.set(t.strings,e=new ve(t)),e}T(e){oe(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(ee()),this.k(ee()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.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))}},we=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=pe,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=pe}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=me(this,t,e,0),n=!ie(t)||t!==this._$AH&&t!==ue,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=me(this,o[i+a],e,a),s===ue&&(s=this._$AH[a]),n||=!ie(s)||s!==this._$AH[a],s===pe?t=pe:t!==pe&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===pe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Oe=class extends we{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===pe?void 0:t}},Se=class extends we{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==pe)}},Ne=class extends we{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=me(this,t,e,0)??pe)===ue)return;const i=this._$AH,o=t===pe&&i!==pe||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==pe&&(i===pe||o);o&&this.element.removeEventListener(this.name,this,i),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)}},$e=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){me(this,t)}};const Ce=Gt.litHtmlPolyfillSupport;Ce?.(ve,xe),(Gt.litHtmlVersions??=[]).push("3.1.0");
|
|
85
85
|
/**
|
|
86
86
|
* @license
|
|
87
87
|
* Copyright 2017 Google LLC
|
|
88
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
89
|
*/
|
|
90
|
-
let Ce=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,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new me(e.insertBefore(te(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return de}};Ce._$litElement$=!0,Ce.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ce});const Ee=globalThis.litElementPolyfillSupport;Ee?.({LitElement:Ce}),(globalThis.litElementVersions??=[]).push("4.0.2");const ke=t=>"string"==typeof t?kt(t):t;class Ie{static create(t,e,i,o){const r=t=>ke(null!=t?t:o),n=It`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>It`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=It`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>It`var(${ke(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ke(null!=e?e:t.lastResortDefaultValue()),o=It`var(${ke(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>It`var(${ke(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Re(t,e){return ke(`${t.name}: ${e}`)}const Ue={colorWhite:Ie.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ie.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ie.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ie.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ie.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ie.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ie.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ie.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ie.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ie.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ie.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ie.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ie.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ie.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ie.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ie.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ie.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ie.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ie.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ie.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ie.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ie.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ie.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ie.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ie.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ie.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ie.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ie.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ie.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ie.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ie.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ie.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ie.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ie.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ie.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ie.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ie.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ie.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ie.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ie.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ie.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ie.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ie.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ie.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ie.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ie.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ie.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ie.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ie.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ie.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ie.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ie.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ie.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ie.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ie.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ie.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ie.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ie.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ie.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ie.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ie.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ie.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ie.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ie.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ie.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ie.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ie.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ie.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ie.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ie.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ie.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ie.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ie.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ie.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ie.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ie.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ie.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ie.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ie.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ie.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ie.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ie.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ie.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ie.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ie.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ie.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ie.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ie.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ie.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ie.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ie.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ie.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ie.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ie.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ie.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ie.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ie.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ie.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ie.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ie.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ie.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ie.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ie.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ie.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ie.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ie.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ie.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ie.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ie.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ie.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ie.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ie.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ie.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ie.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ie.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ie.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ie.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ie.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ie.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ie.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ie.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ie.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ie.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ie.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ie.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ie.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ie.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ie.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ie.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ie.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ie.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ie.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ie.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ie.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ie.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ie.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ie.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ie.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ie.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ie.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ie.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ie.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ie.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ie.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ie.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ie.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ie.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ie.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ie.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ie.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ie.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ie.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ie.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ie.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ie.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ie.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ie.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ie.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ie.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ie.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ie.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ie.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ie.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ie.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ie.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ie.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ie.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ie.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ie.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ie.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ie.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ie.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ie.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ie.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ie.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ie.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ie.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ie.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ie.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ie.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ie.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ie.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ie.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ie.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ie.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ie.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:Ie.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:Ie.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:Ie.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:Ie.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:Ie.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:Ie.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:Ie.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:Ie.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:Ie.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Le={display:{fontFamily:Ie.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ie.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ie.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ie.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ie.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ie.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:Ie.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ie.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ie.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ie.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:Ie.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ie.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ie.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ie.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:Ie.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ie.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ie.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ie.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ie.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ie.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ie.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ie.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ie.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ie.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ie.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ie.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ie.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ie.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ie.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ie.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ie.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ie.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ie.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ie.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ie.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ie.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ie.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ie.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ie.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ie.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ie.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ie.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ie.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ie.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ie.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ie.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ie.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ie.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ie.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ie.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:Ie.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ie.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:Ie.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:Ie.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ie.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:Ie.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:Ie.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ie.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ie.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:Ie.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:Ie.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:Ie.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ie.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ie.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ie.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},Ae={backgroundActionPrimary:Ie.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ue.colorBrand0),backgroundErrorPrimary:Ie.extend("--ft-background-error-primary","Used as background of error components.",Ue.colorRed0),backgroundErrorSubtle:Ie.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ue.colorRed10),backgroundInfoPrimary:Ie.extend("--ft-background-info-primary","Used as background of information components.",Ue.colorCyan200),backgroundInfoSubtle:Ie.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ue.colorCyan10),backgroundWarningPrimary:Ie.extend("--ft-background-warning-primary","Used as background of warning components.",Ue.colorOrange300),backgroundWarningSubtle:Ie.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ue.colorOrange10),backgroundSuccessPrimary:Ie.extend("--ft-background-success-primary","Used as background of success components.",Ue.colorGreen200),backgroundSuccessSubtle:Ie.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ue.colorGreen10),backgroundGlobalSurface:Ie.extend("--ft-background-global-surface","Used as app background.",Ue.colorWhite),backgroundGlobalOnSurface:Ie.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ue.colorGray10),backgroundGlobalOnSurfaceDark:Ie.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ue.colorGray30),contentActionPrimary:Ie.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ue.colorBrand0),contentWarningPrimary:Ie.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ue.colorOrange300),contentWarningIconOnly:Ie.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ue.colorOrange0),contentErrorPrimary:Ie.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ue.colorRed0),contentErrorIconOnly:Ie.extend("--ft-content-error-icon-only","Used on error status icons alone",Ue.colorRed0),contentInfoPrimary:Ie.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ue.colorCyan200),contentInfoIconOnly:Ie.extend("--ft-content-info-icon-only","Used on info status icons alone",Ue.colorCyan0),contentSuccessPrimary:Ie.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ue.colorGreen200),contentSuccessIconOnly:Ie.extend("--ft-content-success-icon-only","Used on success status icons alone",Ue.colorGreen0),contentGlobalPrimary:Ie.extend("--ft-content-global-primary","Used for main content on the page.",Ue.colorGray500),contentGlobalSecondary:Ie.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ue.colorGray200),contentGlobalSubtle:Ie.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ue.colorGray0),contentGlobalOnColor:Ie.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ue.colorWhite),borderActionPrimary:Ie.extend("--ft-border-action-primary","Used as border for primary action components.",Ue.colorBrand0),borderActionFocusRing:Ie.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ue.colorCyan0),borderWarningPrimary:Ie.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Ue.colorOrange300),borderWarningSubtle:Ie.extend("--ft-border-warning-subtle","Used as border for warning components.",Ue.colorOrange30),borderSuccessPrimary:Ie.extend("--ft-border-success-primary","Used as border for success buttons.",Ue.colorGreen200),borderSuccessSubtle:Ie.extend("--ft-border-success-subtle","Used as border for success components.",Ue.colorGreen30),borderErrorPrimary:Ie.extend("--ft-border-error-primary","Used as border for text fields in error states.",Ue.colorRed0),borderErrorSubtle:Ie.extend("--ft-border-error-subtle","Used as border for error components.",Ue.colorRed30),borderInfoPrimary:Ie.extend("--ft-border-info-primary","Used as border for buttons in info color.",Ue.colorCyan200),borderInfoSubtle:Ie.extend("--ft-border-info-subtle","Used as border for information components.",Ue.colorCyan30),borderGlobalPrimary:Ie.extend("--ft-border-global-primary","Used as border for element like input.",Ue.colorGray50),borderGlobalSubtle:Ie.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ue.colorGray30),borderInputPrimary:Ie.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ue.colorGray80)},Te={largeHeight:Ie.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ie.extend("--ft-button-large-horizontal-padding","",Ue.spacing4),largeGap:Ie.extend("--ft-button-large-gap","",Ue.spacing2),largeBorderRadius:Ie.extend("--ft-button-large-border-radius","",Ue.borderRadiusS),largeIconSize:Ie.extend("--ft-button-large-icon-size","",Ue.iconSize3),largeBorderWidth:Ie.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ie.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ie.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ie.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ie.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ie.extend("--ft-button-small-horizontal-padding","",Ue.spacing3),smallGap:Ie.extend("--ft-button-small-gap","",Ue.spacing2),smallBorderRadius:Ie.extend("--ft-button-small-border-radius","",Ue.borderRadiusS),smallIconSize:Ie.extend("--ft-button-small-icon-size","",Ue.iconSize2),smallBorderWidth:Ie.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ie.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ie.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ie.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ie.extend("--ft-button-primary-background-color","",Ae.backgroundActionPrimary),primaryColor:Ie.extend("--ft-button-primary-color","",Ae.contentGlobalOnColor),primaryIconColor:Ie.extend("--ft-button-primary-icon-color","",Ae.contentGlobalOnColor),primaryStateLayerColor:Ie.extend("--ft-button-primary-state-layer-color","",Ae.contentGlobalOnColor),primaryStateLayerOpacityHover:Ie.extend("--ft-button-primary-state-layer-opacity-hover","",Ue.opacity16),primaryStateLayerOpacityFocus:Ie.extend("--ft-button-primary-state-layer-opacity-focus","",Ue.opacity16),primaryStateLayerOpacityActive:Ie.extend("--ft-button-primary-state-layer-opacity-active","",Ue.opacity24),primaryComponentOpacityDisabled:Ie.extend("--ft-button-primary-component-opacity-disabled","",Ue.opacity40),focusFocusRingColor:Ie.extend("--ft-button-focus-focus-ring-color","",Ae.borderActionFocusRing),tertiaryBackgroundColor:Ie.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ie.extend("--ft-button-tertiary-color","",Ae.contentActionPrimary),tertiaryIconColor:Ie.extend("--ft-button-tertiary-icon-color","",Ae.contentActionPrimary),tertiaryStateLayerColor:Ie.extend("--ft-button-tertiary-state-layer-color","",Ae.contentActionPrimary),tertiaryStateLayerOpacityHover:Ie.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ue.opacity8),tertiaryStateLayerOpacityFocus:Ie.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ue.opacity8),tertiaryStateLayerOpacityActive:Ie.extend("--ft-button-tertiary-state-layer-opacity-active","",Ue.opacity16),tertiaryComponentOpacityDisabled:Ie.extend("--ft-button-tertiary-component-opacity-disabled","",Ue.opacity40),secondaryBackgroundColor:Ie.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Ie.extend("--ft-button-secondary-color","",Ae.contentActionPrimary),secondaryIconColor:Ie.extend("--ft-button-secondary-icon-color","",Ae.contentActionPrimary),secondaryStateLayerColor:Ie.extend("--ft-button-secondary-state-layer-color","",Ae.contentActionPrimary),secondaryStateLayerOpacityHover:Ie.extend("--ft-button-secondary-state-layer-opacity-hover","",Ue.opacity8),secondaryStateLayerOpacityFocus:Ie.extend("--ft-button-secondary-state-layer-opacity-focus","",Ue.opacity8),secondaryStateLayerOpacityActive:Ie.extend("--ft-button-secondary-state-layer-opacity-active","",Ue.opacity16),secondaryComponentOpacityDisabled:Ie.extend("--ft-button-secondary-component-opacity-disabled","",Ue.opacity40),secondaryBorderColor:Ie.extend("--ft-button-secondary-border-color","",Ae.borderActionPrimary),neutralBackgroundColor:Ie.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ie.extend("--ft-button-neutral-icon-color","",Ae.contentGlobalSecondary),neutralColor:Ie.extend("--ft-button-neutral-color","",Ae.contentGlobalSecondary),neutralStateLayerColor:Ie.extend("--ft-button-neutral-state-layer-color","",Ae.contentGlobalSecondary),neutralStateLayerOpacityHover:Ie.extend("--ft-button-neutral-state-layer-opacity-hover","",Ue.opacity8),neutralStateLayerOpacityFocus:Ie.extend("--ft-button-neutral-state-layer-opacity-focus","",Ue.opacity8),neutralStateLayerOpacityActive:Ie.extend("--ft-button-neutral-state-layer-opacity-active","",Ue.opacity16),neutralComponentOpacityDisabled:Ie.extend("--ft-button-neutral-component-opacity-disabled","",Ue.opacity40)};Ie.extend("--ft-floating-menu-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-floating-menu-vertical-padding","",Ue.spacing4),Ie.extend("--ft-floating-menu-off-icon-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-floating-menu-off-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-floating-menu-on-color","",Ae.contentActionPrimary),Ie.extend("--ft-floating-menu-on-icon-color","",Ae.contentActionPrimary),Ie.extend("--ft-floating-menu-on-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-floating-menu-gap","",Ue.spacing3),Ie.extend("--ft-floating-menu-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),Ie.extend("--ft-floating-menu-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-floating-menu-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-floating-menu-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-floating-menu-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-floating-menu-icon-size","",Ue.iconSize3),Ie.extend("--ft-floating-menu-background-color","",Ae.backgroundGlobalOnSurface),Ie.extend("--ft-tabs-top-left-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-tabs-top-right-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-tabs-label-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-tabs-label-vertical-padding","",Ue.spacing3),Ie.extend("--ft-tabs-label-gap","",Ue.spacing1),Ie.extend("--ft-tabs-icon-horizontal-padding","",Ue.spacing1),Ie.extend("--ft-tabs-icon-vertical-padding","",Ue.spacing4),Ie.create("--ft-tabs-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-tabs-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.extend("--ft-tabs-off-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-tabs-off-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-tabs-off-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-tabs-off-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-tabs-off-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-tabs-off-state-layer-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-tabs-on-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-tabs-on-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-tabs-on-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-tabs-on-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-tabs-on-color","",Ae.contentActionPrimary),Ie.extend("--ft-tabs-on-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-collapsible-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-collapsible-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-collapsible-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-collapsible-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-collapsible-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-collapsible-vertical-padding","",Ue.spacing3),Ie.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),Ie.extend("--ft-collapsible-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.extend("--ft-collapsible-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-collapsible-state-layer-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-collapsible-background-color","",Ae.backgroundGlobalOnSurface),Ie.extend("--ft-collapsible-border-color","",Ae.borderGlobalSubtle),Ie.extend("--ft-collapsible-icon-size","",Ue.iconSize3),Ie.extend("--ft-switch-group-horizontal-padding","",Ue.spacing1),Ie.extend("--ft-switch-group-vertical-padding","",Ue.spacing1),Ie.extend("--ft-switch-group-gap","",Ue.spacing1),Ie.extend("--ft-switch-group-background-color","",Ae.backgroundGlobalSurface),Ie.extend("--ft-switch-group-border-color","",Ae.borderGlobalSubtle),Ie.create("--ft-switch-group-border-radius","","SIZE","6px"),Ie.extend("--ft-switch-label-horizontal-padding","",Ue.spacing2),Ie.extend("--ft-switch-label-vertical-padding","",Ue.spacing1),Ie.extend("--ft-switch-icon-horizontal-padding","",Ue.spacing1),Ie.extend("--ft-switch-icon-vertical-padding","",Ue.spacing1),Ie.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-switch-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.extend("--ft-switch-option-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-switch-off-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-switch-off-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-switch-off-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-switch-off-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-switch-off-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-switch-off-state-layer-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-switch-on-state-layer-opacity-hover","",Ue.opacity8),Ie.extend("--ft-switch-on-state-layer-opacity-focus","",Ue.opacity8),Ie.extend("--ft-switch-on-state-layer-opacity-active","",Ue.opacity16),Ie.extend("--ft-switch-on-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-switch-on-color","",Ae.contentActionPrimary),Ie.extend("--ft-switch-on-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-chart-1-light","for area color charts",Ue.colorBrand40),Ie.extend("--ft-chart-1-base","for line charts",Ue.colorBrand0),Ie.extend("--ft-chart-2-light","for area color charts",Ue.colorYellow60),Ie.extend("--ft-chart-2-base","for line charts",Ue.colorYellow100),Ie.extend("--ft-chart-3-light","",Ue.colorUltramarine40),Ie.extend("--ft-chart-3-base","",Ue.colorUltramarine70),Ie.extend("--ft-chart-4-light","",Ue.colorCyan50),Ie.extend("--ft-chart-4-base","",Ue.colorCyan100),Ie.extend("--ft-chart-5-light","",Ue.colorRed40),Ie.extend("--ft-chart-5-base","",Ue.colorRed60),Ie.extend("--ft-chart-6-light","",Ue.colorGreen40),Ie.extend("--ft-chart-6-base","",Ue.colorGreen70),Ie.extend("--ft-chart-7-light","",Ue.colorOrange70),Ie.extend("--ft-chart-7-base","",Ue.colorOrange100),Ie.extend("--ft-chart-8-light","",Ue.colorAvocado70),Ie.extend("--ft-chart-8-base","",Ue.colorAvocado200),Ie.extend("--ft-chart-9-light","",Ue.colorBrown50),Ie.extend("--ft-chart-9-base","",Ue.colorBrown200),Ie.extend("--ft-chart-10-light","",Ue.colorGray50),Ie.extend("--ft-chart-10-base","",Ue.colorGray80),Ie.extend("--ft-chart-monochrome-10","",Ue.colorBrand10),Ie.extend("--ft-chart-monochrome-20","",Ue.colorBrand20),Ie.extend("--ft-chart-monochrome-30","",Ue.colorBrand40),Ie.extend("--ft-chart-monochrome-40","",Ue.colorBrand60),Ie.extend("--ft-chart-monochrome-50","",Ue.colorBrand0),Ie.extend("--ft-chart-monochrome-60","",Ue.colorBrand200),Ie.extend("--ft-chip-large-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-chip-large-vertical-padding","",Ue.spacing2),Ie.extend("--ft-chip-large-gap","",Ue.spacing1),Ie.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ie.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-chip-large-border-radius","",Ue.borderRadiusPill),Ie.create("--ft-chip-large-border-width","","SIZE","1px"),Ie.extend("--ft-chip-large-icon-size","",Ue.iconSize3),Ie.extend("--ft-chip-medium-horizontal-padding","",Ue.spacing3),Ie.extend("--ft-chip-medium-vertical-padding","",Ue.spacing1),Ie.extend("--ft-chip-medium-gap","",Ue.spacing1),Ie.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ie.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-chip-medium-border-radius","",Ue.borderRadiusPill),Ie.create("--ft-chip-medium-border-width","","SIZE","1px"),Ie.extend("--ft-chip-medium-icon-size","",Ue.iconSize2),Ie.extend("--ft-chip-small-horizontal-padding","",Ue.spacing2),Ie.extend("--ft-chip-small-vertical-padding","",Ue.spacing05),Ie.extend("--ft-chip-small-gap","",Ue.spacing1),Ie.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ie.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-chip-small-border-radius","",Ue.borderRadiusPill),Ie.create("--ft-chip-small-border-width","","SIZE","1px"),Ie.extend("--ft-chip-small-icon-size","",Ue.iconSize1),Ie.extend("--ft-chip-neutral-background-color","",Ae.backgroundGlobalOnSurface),Ie.extend("--ft-chip-neutral-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-chip-neutral-border-color","",Ae.borderGlobalSubtle),Ie.extend("--ft-chip-info-background-color","",Ae.backgroundInfoSubtle),Ie.extend("--ft-chip-info-color","",Ae.contentInfoPrimary),Ie.extend("--ft-chip-info-border-color","",Ae.borderInfoSubtle),Ie.extend("--ft-chip-success-background-color","",Ae.backgroundSuccessSubtle),Ie.extend("--ft-chip-success-color","",Ae.contentSuccessPrimary),Ie.extend("--ft-chip-success-border-color","",Ae.borderSuccessSubtle),Ie.extend("--ft-chip-warning-background-color","",Ae.backgroundWarningSubtle),Ie.extend("--ft-chip-warning-color","",Ae.contentWarningPrimary),Ie.extend("--ft-chip-warning-border-color","",Ae.borderWarningSubtle),Ie.extend("--ft-chip-error-background-color","",Ae.backgroundErrorSubtle),Ie.extend("--ft-chip-error-color","",Ae.contentErrorPrimary),Ie.extend("--ft-chip-error-border-color","",Ae.borderErrorSubtle),Ie.create("--ft-notice-border-width","","SIZE","1px"),Ie.extend("--ft-notice-horizontal-padding","",Ue.spacing2),Ie.extend("--ft-notice-vertical-padding","",Ue.spacing1),Ie.extend("--ft-notice-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-notice-gap","",Ue.spacing2),Ie.extend("--ft-notice-icon-size","",Ue.iconSize3),Ie.extend("--ft-notice-info-background-color","",Ae.backgroundInfoSubtle),Ie.extend("--ft-notice-info-border-color","",Ae.borderInfoSubtle),Ie.extend("--ft-notice-info-color","",Ae.contentInfoPrimary),Ie.extend("--ft-notice-warning-background-color","",Ae.backgroundWarningSubtle),Ie.extend("--ft-notice-warning-border-color","",Ae.borderWarningSubtle),Ie.extend("--ft-notice-warning-color","",Ae.contentWarningPrimary),Ie.extend("--ft-checkbox-label-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-checkbox-checked-background-color","",Ae.contentActionPrimary),Ie.extend("--ft-checkbox-checked-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-checkbox-checked-color","",Ae.contentGlobalOnColor),Ie.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-checkbox-checked-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-checkbox-unchecked-border-color","",Ue.colorGray80),Ie.extend("--ft-checkbox-unchecked-state-layer-color","",Ue.colorGray80),Ie.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-checkbox-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ie.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-checkbox-gap","",Ue.spacing3),Ie.extend("--ft-toggle-off-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-toggle-off-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-toggle-off-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-toggle-off-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-toggle-off-background-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-toggle-off-icon-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-toggle-off-state-layer-color","",Ae.contentGlobalSubtle),Ie.extend("--ft-toggle-on-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-toggle-on-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-toggle-on-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-toggle-on-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-toggle-on-background-color","",Ae.contentActionPrimary),Ie.extend("--ft-toggle-on-icon-color","",Ae.contentActionPrimary),Ie.extend("--ft-toggle-on-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-toggle-label-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-toggle-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.extend("--ft-toggle-gap","",Ue.spacing3),Ie.extend("--ft-radio-label-color","",Ae.contentGlobalPrimary),Ie.extend("--ft-radio-selected-color","",Ae.contentActionPrimary),Ie.extend("--ft-radio-selected-state-layer-color","",Ae.contentActionPrimary),Ie.extend("--ft-radio-selected-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-radio-selected-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-radio-selected-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-radio-selected-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-radio-unselected-state-layer-color","",Ue.colorGray80),Ie.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ue.opacity16),Ie.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ue.opacity16),Ie.extend("--ft-radio-unselected-state-layer-opacity-active","",Ue.opacity24),Ie.extend("--ft-radio-unselected-component-opacity-disabled","",Ue.opacity40),Ie.extend("--ft-radio-focus-focus-ring-color","",Ae.borderActionFocusRing),Ie.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ie.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ie.extend("--ft-radio-gap","",Ue.spacing3),Ie.extend("--ft-notification-icon-size","",Ue.iconSize4),Ie.extend("--ft-notification-horizontal-padding","",Ue.spacing4),Ie.extend("--ft-notification-vertical-padding","",Ue.spacing4),Ie.extend("--ft-notification-info-background-color","",Ae.backgroundInfoSubtle),Ie.extend("--ft-notification-info-color","",Ae.contentInfoPrimary),Ie.extend("--ft-notification-info-border-color","",Ae.borderInfoSubtle),Ie.extend("--ft-notification-success-background-color","",Ae.backgroundSuccessSubtle),Ie.extend("--ft-notification-success-color","",Ae.contentSuccessPrimary),Ie.extend("--ft-notification-success-border-color","",Ae.borderSuccessSubtle),Ie.extend("--ft-notification-warning-background-color","",Ae.backgroundWarningSubtle),Ie.extend("--ft-notification-warning-color","",Ae.contentWarningPrimary),Ie.extend("--ft-notification-warning-border-color","",Ae.borderWarningSubtle),Ie.extend("--ft-notification-error-background-color","",Ae.backgroundErrorSubtle),Ie.extend("--ft-notification-error-color","",Ae.contentErrorPrimary),Ie.extend("--ft-notification-error-border-color","",Ae.borderErrorSubtle),Ie.extend("--ft-notification-border-radius","",Ue.borderRadiusPill),Ie.create("--ft-notification-border-width","","SIZE","1px"),Ie.extend("--ft-notification-gap-leading","",Ue.spacing2),Ie.extend("--ft-notification-gap-trailing","",Ue.spacing8),Ie.extend("--ft-tooltip-horizontal-padding","",Ue.spacing2),Ie.extend("--ft-tooltip-vertical-padding","",Ue.spacing2),Ie.extend("--ft-tooltip-border-radius","",Ue.borderRadiusS),Ie.extend("--ft-tooltip-label","",Ae.contentGlobalOnColor),Ie.extend("--ft-tooltip-background","",Ae.contentGlobalPrimary),Ie.extend("--ft-tooltip-background-opacity","",Ue.opacity80),Ie.extend("--ft-tooltip-shadow","",Ue.shadowElevation03);const _e={colorPrimary:Ie.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ie.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ie.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ie.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ie.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ie.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ie.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ie.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ie.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ie.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ie.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ie.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ie.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ie.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ie.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ie.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ie.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ie.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ie.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ie.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ie.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ie.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ie.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ie.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ie.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ie.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ie.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ie.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ie.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ie.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ie.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ie.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ie.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ie.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ie.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ie.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ie.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ie.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ie.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ie.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ie.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ie.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ie.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ie.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ie.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:Ie.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:Ie.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:Ie.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:Ie.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:Ie.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:Ie.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:Ie.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:Ie.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:Ie.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:Ie.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ie.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ie.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ie.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ie.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ie.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ie.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ie.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class We extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}const De=["start","end"],Fe=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+De[0],e+"-"+De[1])),[]),Me=Math.min,Pe=Math.max,ze=Math.round,je=t=>({x:t,y:t}),Be={left:"right",right:"left",bottom:"top",top:"bottom"},Ke={start:"end",end:"start"};function Ze(t,e,i){return Pe(t,Me(e,i))}function He(t,e){return"function"==typeof t?t(e):t}function Ge(t){return t.split("-")[0]}function Ve(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Ye(t){return"y"===t?"height":"width"}function Xe(t){return["top","bottom"].includes(Ge(t))?"y":"x"}function Je(t){return qe(Xe(t))}function Qe(t){return t.replace(/left|right|bottom|top/g,(t=>Be[t]))}function ti(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ei(t,e,i){let{reference:o,floating:r}=t;const n=Xe(e),a=Je(e),s=Ye(a),l=Ge(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Ve(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function ii(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=He(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[d?"floating"===h?"reference":"floating":h],g=ti(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=ti(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function oi(t,e,i){return(t?[...i.filter((e=>Ve(e)===t)),...i.filter((e=>Ve(e)!==t))]:i.filter((t=>Ge(t)===t))).filter((i=>!t||(Ve(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ke[t]))}(i)!==i)))}const ri=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=Fe,autoAlignment:u=!0,...p}=He(t,e),y=void 0!==h||d===Fe?oi(h||null,u,d):d,g=await ii(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=Ve(t),r=Je(t),n=Ye(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Qe(a)),[a,Qe(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ge(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ve(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,Ve(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:w},reset:{placement:$}}:{}}}};function ni(t){return li(t)?(t.nodeName||"").toLowerCase():"#document"}function ai(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function si(t){var e;return null==(e=(li(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function li(t){return t instanceof Node||t instanceof ai(t).Node}function ci(t){return t instanceof Element||t instanceof ai(t).Element}function fi(t){return t instanceof HTMLElement||t instanceof ai(t).HTMLElement}function hi(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ai(t).ShadowRoot)}function di(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=bi(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function ui(t){return["table","td","th"].includes(ni(t))}function pi(t){const e=yi(),i=bi(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function yi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function gi(t){return["html","body","#document"].includes(ni(t))}function bi(t){return ai(t).getComputedStyle(t)}function vi(t){return ci(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function mi(t){if("html"===ni(t))return t;const e=t.assignedSlot||t.parentNode||hi(t)&&t.host||si(t);return hi(e)?e.host:e}function xi(t){const e=mi(t);return gi(e)?t.ownerDocument?t.ownerDocument.body:t.body:fi(e)&&di(e)?e:xi(e)}function wi(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=xi(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=ai(r);return n?e.concat(a,a.visualViewport||[],di(r)?r:[],a.frameElement&&i?wi(a.frameElement):[]):e.concat(r,wi(r,[],i))}function Oi(t){const e=bi(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=fi(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=ze(i)!==n||ze(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Si(t){return ci(t)?t:t.contextElement}function Ni(t){const e=Si(t);if(!fi(e))return je(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Oi(e);let a=(n?ze(i.width):i.width)/o,s=(n?ze(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const $i=je(0);function Ci(t){const e=ai(t);return yi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:$i}function Ei(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Si(t);let a=je(1);e&&(o?ci(o)&&(a=Ni(o)):a=Ni(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==ai(t))&&e}(n,i,o)?Ci(n):je(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=ai(n),e=o&&ci(o)?ai(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=Ni(i),e=i.getBoundingClientRect(),o=bi(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=ai(i).frameElement}}return ti({width:f,height:h,x:l,y:c})}function ki(t){return Ei(si(t)).left+vi(t).scrollLeft}function Ii(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=ai(t),o=si(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=yi();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=si(t),i=vi(t),o=t.ownerDocument.body,r=Pe(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Pe(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+ki(t);const s=-i.scrollTop;return"rtl"===bi(o).direction&&(a+=Pe(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(si(t));else if(ci(e))o=function(t,e){const i=Ei(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=fi(t)?Ni(t):je(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=Ci(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ti(o)}function Ri(t,e){const i=mi(t);return!(i===e||!ci(i)||gi(i))&&("fixed"===bi(i).position||Ri(i,e))}function Ui(t,e,i){const o=fi(e),r=si(e),n="fixed"===i,a=Ei(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=je(0);if(o||!o&&!n)if(("body"!==ni(e)||di(r))&&(s=vi(e)),o){const t=Ei(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ki(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Li(t,e){return fi(t)&&"fixed"!==bi(t).position?e?e(t):t.offsetParent:null}function Ai(t,e){const i=ai(t);if(!fi(t))return i;let o=Li(t,e);for(;o&&ui(o)&&"static"===bi(o).position;)o=Li(o,e);return o&&("html"===ni(o)||"body"===ni(o)&&"static"===bi(o).position&&!pi(o))?i:o||function(t){let e=mi(t);for(;fi(e)&&!gi(e);){if(pi(e))return e;e=mi(e)}return null}(t)||i}const Ti={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=fi(i),n=si(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=je(1);const l=je(0);if((r||!r&&"fixed"!==o)&&(("body"!==ni(i)||di(n))&&(a=vi(i)),fi(i))){const t=Ei(i);s=Ni(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:si,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n="clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=wi(t,[],!1).filter((t=>ci(t)&&"body"!==ni(t))),r=null;const n="fixed"===bi(t).position;let a=n?mi(t):t;for(;ci(a)&&!gi(a);){const e=bi(a),i=pi(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||di(a)&&!i&&Ri(t,a))?o=o.filter((t=>t!==a)):r=e,a=mi(a)}return e.set(t,o),o}(e,this._c):[].concat(i),a=[...n,o],s=a[0],l=a.reduce(((t,i)=>{const o=Ii(e,i,r);return t.top=Pe(o.top,t.top),t.right=Me(o.right,t.right),t.bottom=Me(o.bottom,t.bottom),t.left=Pe(o.left,t.left),t}),Ii(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ai,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ai,n=this.getDimensions;return{reference:Ui(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Oi(t)},getScale:Ni,isElement:ci,isRTL:function(t){return"rtl"===bi(t).direction}},_i=(t,e,i)=>{const o=new Map,r={platform:Ti,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=ei(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=ei(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Wi(t){return function(t){for(let e=t;e;e=Di(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Di(t);e;e=Di(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Di(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}
|
|
90
|
+
let Ee=class extends Ht{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new xe(e.insertBefore(ee(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ue}};Ee._$litElement$=!0,Ee.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ee});const ke=globalThis.litElementPolyfillSupport;ke?.({LitElement:Ee}),(globalThis.litElementVersions??=[]).push("4.0.2");const Ie=t=>"string"==typeof t?It(t):t;class Re{static create(t,e,i,o){const r=t=>Ie(null!=t?t:o),n=Rt`var(${Ie(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${Ie(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=Rt`var(${Ie(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${Ie(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):Ie(null!=e?e:t.lastResortDefaultValue()),o=Rt`var(${Ie(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>Rt`var(${Ie(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Ue(t,e){return Ie(`${t.name}: ${e}`)}const Le={colorWhite:Re.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Re.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Re.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Re.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Re.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Re.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Re.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Re.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Re.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Re.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Re.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Re.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Re.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Re.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Re.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Re.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Re.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Re.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Re.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Re.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Re.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Re.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Re.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Re.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Re.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Re.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Re.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Re.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Re.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Re.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Re.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Re.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Re.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Re.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Re.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Re.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Re.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Re.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Re.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Re.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Re.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Re.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Re.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Re.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Re.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Re.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Re.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Re.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Re.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Re.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Re.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Re.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Re.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Re.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Re.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Re.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Re.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Re.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Re.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Re.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Re.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Re.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Re.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Re.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Re.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Re.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Re.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Re.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Re.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Re.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Re.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Re.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Re.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Re.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Re.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Re.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Re.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Re.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Re.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Re.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Re.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Re.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Re.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Re.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Re.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Re.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Re.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Re.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Re.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Re.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Re.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Re.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Re.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Re.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Re.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Re.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Re.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Re.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Re.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Re.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Re.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Re.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Re.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Re.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Re.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Re.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Re.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Re.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Re.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Re.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Re.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Re.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Re.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Re.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Re.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Re.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Re.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Re.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Re.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Re.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Re.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Re.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Re.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Re.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Re.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Re.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Re.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Re.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Re.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Re.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Re.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Re.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Re.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Re.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Re.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Re.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Re.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Re.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Re.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Re.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Re.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Re.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Re.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Re.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Re.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Re.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Re.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Re.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Re.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Re.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Re.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Re.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Re.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Re.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Re.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Re.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Re.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Re.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Re.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Re.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Re.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Re.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Re.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Re.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Re.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Re.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Re.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Re.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Re.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Re.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Re.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Re.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Re.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Re.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Re.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Re.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Re.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Re.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Re.create("--ft-opacity-0","","NUMBER","0"),opacity8:Re.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Re.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Re.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Re.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Re.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:Re.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:Re.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:Re.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:Re.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:Re.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:Re.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:Re.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:Re.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:Re.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Ae={display:{fontFamily:Re.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Re.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Re.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:Re.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Re.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:Re.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Re.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:Re.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Re.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Re.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Re.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Re.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Re.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Re.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Re.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Re.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Re.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Re.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Re.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Re.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Re.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Re.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Re.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Re.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Re.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Re.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Re.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:Re.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:Re.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:Re.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},Te={backgroundActionPrimary:Re.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Le.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Le.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Le.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Le.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Le.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Le.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Le.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Le.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Le.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Le.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Le.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Le.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Le.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Le.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Le.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Le.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Le.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Le.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Le.colorCyan0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Le.colorGreen200),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Le.colorGreen0),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Le.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Le.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Le.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Le.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Le.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Le.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Le.colorOrange300),borderWarningSubtle:Re.extend("--ft-border-warning-subtle","Used as border for warning components.",Le.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success buttons.",Le.colorGreen200),borderSuccessSubtle:Re.extend("--ft-border-success-subtle","Used as border for success components.",Le.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for text fields in error states.",Le.colorRed0),borderErrorSubtle:Re.extend("--ft-border-error-subtle","Used as border for error components.",Le.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for buttons in info color.",Le.colorCyan200),borderInfoSubtle:Re.extend("--ft-border-info-subtle","Used as border for information components.",Le.colorCyan30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Le.colorGray50),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Le.colorGray30),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Le.colorGray80)},_e={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Le.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Le.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Le.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Le.iconSize3),largeBorderWidth:Re.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Re.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Re.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Re.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Re.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Re.extend("--ft-button-small-horizontal-padding","",Le.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Le.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Le.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Le.iconSize2),smallBorderWidth:Re.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Re.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Re.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Re.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Re.extend("--ft-button-primary-background-color","",Te.backgroundActionPrimary),primaryColor:Re.extend("--ft-button-primary-color","",Te.contentGlobalOnColor),primaryIconColor:Re.extend("--ft-button-primary-icon-color","",Te.contentGlobalOnColor),primaryStateLayerColor:Re.extend("--ft-button-primary-state-layer-color","",Te.contentGlobalOnColor),primaryStateLayerOpacityHover:Re.extend("--ft-button-primary-state-layer-opacity-hover","",Le.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Le.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Le.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Le.opacity40),focusFocusRingColor:Re.extend("--ft-button-focus-focus-ring-color","",Te.borderActionFocusRing),tertiaryBackgroundColor:Re.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Re.extend("--ft-button-tertiary-color","",Te.contentActionPrimary),tertiaryIconColor:Re.extend("--ft-button-tertiary-icon-color","",Te.contentActionPrimary),tertiaryStateLayerColor:Re.extend("--ft-button-tertiary-state-layer-color","",Te.contentActionPrimary),tertiaryStateLayerOpacityHover:Re.extend("--ft-button-tertiary-state-layer-opacity-hover","",Le.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Le.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Le.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Le.opacity40),secondaryBackgroundColor:Re.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Re.extend("--ft-button-secondary-color","",Te.contentActionPrimary),secondaryIconColor:Re.extend("--ft-button-secondary-icon-color","",Te.contentActionPrimary),secondaryStateLayerColor:Re.extend("--ft-button-secondary-state-layer-color","",Te.contentActionPrimary),secondaryStateLayerOpacityHover:Re.extend("--ft-button-secondary-state-layer-opacity-hover","",Le.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Le.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Le.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Le.opacity40),secondaryBorderColor:Re.extend("--ft-button-secondary-border-color","",Te.borderActionPrimary),neutralBackgroundColor:Re.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Re.extend("--ft-button-neutral-icon-color","",Te.contentGlobalSecondary),neutralColor:Re.extend("--ft-button-neutral-color","",Te.contentGlobalSecondary),neutralStateLayerColor:Re.extend("--ft-button-neutral-state-layer-color","",Te.contentGlobalSecondary),neutralStateLayerOpacityHover:Re.extend("--ft-button-neutral-state-layer-opacity-hover","",Le.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Le.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Le.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Le.opacity40)};Re.extend("--ft-floating-menu-horizontal-padding","",Le.spacing4),Re.extend("--ft-floating-menu-vertical-padding","",Le.spacing4),Re.extend("--ft-floating-menu-off-icon-color","",Te.contentGlobalPrimary),Re.extend("--ft-floating-menu-off-color","",Te.contentGlobalPrimary),Re.extend("--ft-floating-menu-on-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-on-icon-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-gap","",Le.spacing3),Re.extend("--ft-floating-menu-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),Re.extend("--ft-floating-menu-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-floating-menu-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-floating-menu-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-floating-menu-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-floating-menu-icon-size","",Le.iconSize3),Re.extend("--ft-floating-menu-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-tabs-top-left-border-radius","",Le.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Le.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Le.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Le.spacing3),Re.extend("--ft-tabs-label-gap","",Le.spacing1),Re.extend("--ft-tabs-icon-horizontal-padding","",Le.spacing1),Re.extend("--ft-tabs-icon-vertical-padding","",Le.spacing4),Re.create("--ft-tabs-focus-outline-width","","SIZE","2px"),Re.extend("--ft-tabs-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-tabs-off-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-tabs-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-tabs-off-color","",Te.contentGlobalSubtle),Re.extend("--ft-tabs-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-tabs-on-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-tabs-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-tabs-on-color","",Te.contentActionPrimary),Re.extend("--ft-tabs-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-collapsible-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-collapsible-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-collapsible-horizontal-padding","",Le.spacing4),Re.extend("--ft-collapsible-vertical-padding","",Le.spacing3),Re.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),Re.extend("--ft-collapsible-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-collapsible-color","",Te.contentGlobalPrimary),Re.extend("--ft-collapsible-state-layer-color","",Te.contentGlobalPrimary),Re.extend("--ft-collapsible-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-collapsible-border-color","",Te.borderGlobalSubtle),Re.extend("--ft-collapsible-icon-size","",Le.iconSize3),Re.extend("--ft-switch-group-horizontal-padding","",Le.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Le.spacing1),Re.extend("--ft-switch-group-gap","",Le.spacing1),Re.extend("--ft-switch-group-background-color","",Te.backgroundGlobalSurface),Re.extend("--ft-switch-group-border-color","",Te.borderGlobalSubtle),Re.create("--ft-switch-group-border-radius","","SIZE","6px"),Re.extend("--ft-switch-label-horizontal-padding","",Le.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Le.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Le.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Le.spacing1),Re.create("--ft-switch-focus-outline-width","","SIZE","2px"),Re.extend("--ft-switch-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-switch-option-border-radius","",Le.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-switch-off-color","",Te.contentGlobalSubtle),Re.extend("--ft-switch-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-switch-on-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-switch-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-switch-on-color","",Te.contentActionPrimary),Re.extend("--ft-switch-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-chart-1-light","for area color charts",Le.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Le.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Le.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Le.colorYellow100),Re.extend("--ft-chart-3-light","",Le.colorUltramarine40),Re.extend("--ft-chart-3-base","",Le.colorUltramarine70),Re.extend("--ft-chart-4-light","",Le.colorCyan50),Re.extend("--ft-chart-4-base","",Le.colorCyan100),Re.extend("--ft-chart-5-light","",Le.colorRed40),Re.extend("--ft-chart-5-base","",Le.colorRed60),Re.extend("--ft-chart-6-light","",Le.colorGreen40),Re.extend("--ft-chart-6-base","",Le.colorGreen70),Re.extend("--ft-chart-7-light","",Le.colorOrange70),Re.extend("--ft-chart-7-base","",Le.colorOrange100),Re.extend("--ft-chart-8-light","",Le.colorAvocado70),Re.extend("--ft-chart-8-base","",Le.colorAvocado200),Re.extend("--ft-chart-9-light","",Le.colorBrown50),Re.extend("--ft-chart-9-base","",Le.colorBrown200),Re.extend("--ft-chart-10-light","",Le.colorGray50),Re.extend("--ft-chart-10-base","",Le.colorGray80),Re.extend("--ft-chart-monochrome-10","",Le.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Le.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Le.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Le.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Le.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Le.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Le.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Le.spacing2),Re.extend("--ft-chip-large-gap","",Le.spacing1),Re.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-large-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Le.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Le.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Le.spacing1),Re.extend("--ft-chip-medium-gap","",Le.spacing1),Re.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-medium-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Le.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Le.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Le.spacing05),Re.extend("--ft-chip-small-gap","",Le.spacing1),Re.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-small-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Le.iconSize1),Re.extend("--ft-chip-neutral-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-chip-neutral-color","",Te.contentGlobalPrimary),Re.extend("--ft-chip-neutral-border-color","",Te.borderGlobalSubtle),Re.extend("--ft-chip-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-chip-info-color","",Te.contentInfoPrimary),Re.extend("--ft-chip-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-chip-success-background-color","",Te.backgroundSuccessSubtle),Re.extend("--ft-chip-success-color","",Te.contentSuccessPrimary),Re.extend("--ft-chip-success-border-color","",Te.borderSuccessSubtle),Re.extend("--ft-chip-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-chip-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-chip-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-chip-error-background-color","",Te.backgroundErrorSubtle),Re.extend("--ft-chip-error-color","",Te.contentErrorPrimary),Re.extend("--ft-chip-error-border-color","",Te.borderErrorSubtle),Re.create("--ft-notice-border-width","","SIZE","1px"),Re.extend("--ft-notice-horizontal-padding","",Le.spacing2),Re.extend("--ft-notice-vertical-padding","",Le.spacing1),Re.extend("--ft-notice-border-radius","",Le.borderRadiusS),Re.extend("--ft-notice-gap","",Le.spacing2),Re.extend("--ft-notice-icon-size","",Le.iconSize3),Re.extend("--ft-notice-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-notice-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-notice-info-color","",Te.contentInfoPrimary),Re.extend("--ft-notice-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-notice-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-notice-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-checkbox-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-checkbox-checked-background-color","",Te.contentActionPrimary),Re.extend("--ft-checkbox-checked-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-checkbox-checked-color","",Te.contentGlobalOnColor),Re.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Le.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Le.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-checkbox-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Re.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Re.extend("--ft-checkbox-gap","",Le.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-toggle-off-background-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-off-icon-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-on-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-toggle-on-background-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-on-icon-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-toggle-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-toggle-gap","",Le.spacing3),Re.extend("--ft-radio-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-radio-selected-color","",Te.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Le.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-radio-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Re.create("--ft-radio-focus-outline-width","","SIZE","2px"),Re.extend("--ft-radio-gap","",Le.spacing3),Re.extend("--ft-notification-icon-size","",Le.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Le.spacing4),Re.extend("--ft-notification-vertical-padding","",Le.spacing4),Re.extend("--ft-notification-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-notification-info-color","",Te.contentInfoPrimary),Re.extend("--ft-notification-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-notification-success-background-color","",Te.backgroundSuccessSubtle),Re.extend("--ft-notification-success-color","",Te.contentSuccessPrimary),Re.extend("--ft-notification-success-border-color","",Te.borderSuccessSubtle),Re.extend("--ft-notification-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-notification-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-notification-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-notification-error-background-color","",Te.backgroundErrorSubtle),Re.extend("--ft-notification-error-color","",Te.contentErrorPrimary),Re.extend("--ft-notification-error-border-color","",Te.borderErrorSubtle),Re.extend("--ft-notification-border-radius","",Le.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Le.spacing2),Re.extend("--ft-notification-gap-trailing","",Le.spacing8),Re.extend("--ft-tooltip-horizontal-padding","",Le.spacing2),Re.extend("--ft-tooltip-vertical-padding","",Le.spacing2),Re.extend("--ft-tooltip-border-radius","",Le.borderRadiusS),Re.extend("--ft-tooltip-label","",Te.contentGlobalOnColor),Re.extend("--ft-tooltip-background","",Te.contentGlobalPrimary),Re.extend("--ft-tooltip-background-opacity","",Le.opacity80),Re.extend("--ft-tooltip-shadow","",Le.shadowElevation03);const We={colorPrimary:Re.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Re.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Re.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Re.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Re.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Re.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Re.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Re.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Re.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Re.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Re.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Re.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Re.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Re.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Re.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Re.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Re.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Re.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Re.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Re.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Re.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Re.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Re.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Re.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Re.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Re.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Re.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Re.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Re.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Re.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Re.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Re.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Re.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Re.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Re.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Re.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Re.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Re.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Re.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Re.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Re.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Re.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Re.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Re.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Re.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:Re.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:Re.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:Re.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:Re.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:Re.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:Re.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:Re.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:Re.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:Re.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:Re.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Re.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Re.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Re.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Re.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Re.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class De extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}const Fe=["start","end"],Me=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Fe[0],e+"-"+Fe[1])),[]),Pe=Math.min,ze=Math.max,je=Math.round,Be=t=>({x:t,y:t}),Ke={left:"right",right:"left",bottom:"top",top:"bottom"},Ze={start:"end",end:"start"};function He(t,e,i){return ze(t,Pe(e,i))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function qe(t){return t.split("-")[1]}function Ye(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Je(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Qe(t){return Ye(Je(t))}function ti(t){return t.replace(/left|right|bottom|top/g,(t=>Ke[t]))}function ei(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ii(t,e,i){let{reference:o,floating:r}=t;const n=Je(e),a=Qe(e),s=Xe(a),l=Ve(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(qe(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function oi(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=Ge(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[d?"floating"===h?"reference":"floating":h],g=ei(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=ei(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function ri(t,e,i){return(t?[...i.filter((e=>qe(e)===t)),...i.filter((e=>qe(e)!==t))]:i.filter((t=>Ve(t)===t))).filter((i=>!t||(qe(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ze[t]))}(i)!==i)))}const ni=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=Me,autoAlignment:u=!0,...p}=Ge(t,e),y=void 0!==h||d===Me?ri(h||null,u,d):d,g=await oi(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=qe(t),r=Qe(t),n=Xe(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=ti(a)),[a,ti(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ve(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=qe(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,qe(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:w},reset:{placement:$}}:{}}}};function ai(t){return ci(t)?(t.nodeName||"").toLowerCase():"#document"}function si(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function li(t){var e;return null==(e=(ci(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ci(t){return t instanceof Node||t instanceof si(t).Node}function fi(t){return t instanceof Element||t instanceof si(t).Element}function hi(t){return t instanceof HTMLElement||t instanceof si(t).HTMLElement}function di(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof si(t).ShadowRoot)}function ui(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=vi(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function pi(t){return["table","td","th"].includes(ai(t))}function yi(t){const e=gi(),i=vi(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function gi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function bi(t){return["html","body","#document"].includes(ai(t))}function vi(t){return si(t).getComputedStyle(t)}function mi(t){return fi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xi(t){if("html"===ai(t))return t;const e=t.assignedSlot||t.parentNode||di(t)&&t.host||li(t);return di(e)?e.host:e}function wi(t){const e=xi(t);return bi(e)?t.ownerDocument?t.ownerDocument.body:t.body:hi(e)&&ui(e)?e:wi(e)}function Oi(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=wi(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=si(r);return n?e.concat(a,a.visualViewport||[],ui(r)?r:[],a.frameElement&&i?Oi(a.frameElement):[]):e.concat(r,Oi(r,[],i))}function Si(t){const e=vi(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=hi(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=je(i)!==n||je(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Ni(t){return fi(t)?t:t.contextElement}function $i(t){const e=Ni(t);if(!hi(e))return Be(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Si(e);let a=(n?je(i.width):i.width)/o,s=(n?je(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ci=Be(0);function Ei(t){const e=si(t);return gi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ci}function ki(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Ni(t);let a=Be(1);e&&(o?fi(o)&&(a=$i(o)):a=$i(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==si(t))&&e}(n,i,o)?Ei(n):Be(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=si(n),e=o&&fi(o)?si(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=$i(i),e=i.getBoundingClientRect(),o=vi(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=si(i).frameElement}}return ei({width:f,height:h,x:l,y:c})}function Ii(t){return ki(li(t)).left+mi(t).scrollLeft}function Ri(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=si(t),o=li(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=gi();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=li(t),i=mi(t),o=t.ownerDocument.body,r=ze(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=ze(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+Ii(t);const s=-i.scrollTop;return"rtl"===vi(o).direction&&(a+=ze(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(li(t));else if(fi(e))o=function(t,e){const i=ki(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=hi(t)?$i(t):Be(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=Ei(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ei(o)}function Ui(t,e){const i=xi(t);return!(i===e||!fi(i)||bi(i))&&("fixed"===vi(i).position||Ui(i,e))}function Li(t,e,i){const o=hi(e),r=li(e),n="fixed"===i,a=ki(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Be(0);if(o||!o&&!n)if(("body"!==ai(e)||ui(r))&&(s=mi(e)),o){const t=ki(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ii(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ai(t,e){return hi(t)&&"fixed"!==vi(t).position?e?e(t):t.offsetParent:null}function Ti(t,e){const i=si(t);if(!hi(t))return i;let o=Ai(t,e);for(;o&&pi(o)&&"static"===vi(o).position;)o=Ai(o,e);return o&&("html"===ai(o)||"body"===ai(o)&&"static"===vi(o).position&&!yi(o))?i:o||function(t){let e=xi(t);for(;hi(e)&&!bi(e);){if(yi(e))return e;e=xi(e)}return null}(t)||i}const _i={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=hi(i),n=li(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=Be(1);const l=Be(0);if((r||!r&&"fixed"!==o)&&(("body"!==ai(i)||ui(n))&&(a=mi(i)),hi(i))){const t=ki(i);s=$i(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:li,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n="clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=Oi(t,[],!1).filter((t=>fi(t)&&"body"!==ai(t))),r=null;const n="fixed"===vi(t).position;let a=n?xi(t):t;for(;fi(a)&&!bi(a);){const e=vi(a),i=yi(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||ui(a)&&!i&&Ui(t,a))?o=o.filter((t=>t!==a)):r=e,a=xi(a)}return e.set(t,o),o}(e,this._c):[].concat(i),a=[...n,o],s=a[0],l=a.reduce(((t,i)=>{const o=Ri(e,i,r);return t.top=ze(o.top,t.top),t.right=Pe(o.right,t.right),t.bottom=Pe(o.bottom,t.bottom),t.left=ze(o.left,t.left),t}),Ri(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ti,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ti,n=this.getDimensions;return{reference:Li(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Si(t)},getScale:$i,isElement:fi,isRTL:function(t){return"rtl"===vi(t).direction}},Wi=(t,e,i)=>{const o=new Map,r={platform:_i,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=ii(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=ii(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Di(t){return function(t){for(let e=t;e;e=Fi(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Fi(t);e;e=Fi(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Fi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}
|
|
91
91
|
/**
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2019 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
95
|
*/
|
|
96
|
-
const
|
|
96
|
+
const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class zi extends Ee{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Pi?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Mi.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var ji,Bi=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Ki=Symbol("constructorPrototype"),Zi=Symbol("constructorName"),Hi=Symbol("exportpartsDebouncer");class Gi extends zi{constructor(){super(),this[ji]=new n(5),this[Zi]=this.constructor.name,this[Ki]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zi]&&Object.setPrototypeOf(this,this[Ki])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Hi].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}ji=Hi,Bi([I()],Gi.prototype,"exportpartsPrefix",void 0),Bi([M([])],Gi.prototype,"exportpartsPrefixes",void 0),Bi([I()],Gi.prototype,"customStylesheet",void 0);const Vi=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
|
|
97
97
|
.highlight-html-match {
|
|
98
|
-
background: ${
|
|
98
|
+
background: ${Vi};
|
|
99
99
|
}
|
|
100
|
-
`;const
|
|
100
|
+
`;const qi=Rt`
|
|
101
101
|
.ft-no-text-select {
|
|
102
102
|
-webkit-touch-callout: none;
|
|
103
103
|
-webkit-user-select: none;
|
|
@@ -106,7 +106,7 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
106
106
|
-ms-user-select: none;
|
|
107
107
|
user-select: none;
|
|
108
108
|
}
|
|
109
|
-
`;
|
|
109
|
+
`;Rt`
|
|
110
110
|
.ft-word-wrap {
|
|
111
111
|
white-space: normal;
|
|
112
112
|
word-wrap: break-word;
|
|
@@ -118,7 +118,7 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
118
118
|
-webkit-hyphens: auto;
|
|
119
119
|
hyphens: auto
|
|
120
120
|
}
|
|
121
|
-
`;const
|
|
121
|
+
`;const Yi=Rt`
|
|
122
122
|
.ft-safari-ellipsis-fix {
|
|
123
123
|
margin-right: 0;
|
|
124
124
|
|
|
@@ -129,7 +129,7 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
129
129
|
display: inline-block;
|
|
130
130
|
width: 0;
|
|
131
131
|
}
|
|
132
|
-
`;class Yi{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const Xi=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!W(t,e),attribute:!1,...e};I(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class Ji{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Qi(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var to,eo,io;const oo=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),no=Symbol("internalStores");class ao extends Hi{constructor(){super(...arguments),this[to]=new Map,this[eo]=new Map,this[io]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[no].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[no].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[no].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Qi(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[no].delete(e)}setupStore(t,e){this[no].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[no].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[ro].has(t.store):this[ro].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ro].set(t,e.subscribe((()=>this.updateFromStores()))),Qi(e)&&e.eventBus&&(null===(i=this.reduxConstructor.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[oo].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ro].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oo].forEach((t=>t())),this[oo]=[]}unsubscribeFromStore(t){this[ro].has(t)&&this[ro].get(t)(),this[ro].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function so(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function lo(t){return!!t&&!!t[qo]}function co(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Yo}(t)||Array.isArray(t)||!!t[Vo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Vo])||go(t)||bo(t))}function fo(t,e,i){void 0===i&&(i=!1),0===ho(t)?(i?Object.keys:Xo)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ho(t){var e=t[qo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:go(t)?2:bo(t)?3:0}function uo(t,e){return 2===ho(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function po(t,e,i){var o=ho(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function yo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function go(t){return Ko&&t instanceof Map}function bo(t){return Zo&&t instanceof Set}function vo(t){return t.o||t.t}function mo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Jo(t);delete e[qo];for(var i=Xo(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function xo(t,e){return void 0===e&&(e=!1),Oo(t)||lo(t)||!co(t)||(ho(t)>1&&(t.set=t.add=t.clear=t.delete=wo),Object.freeze(t),e&&fo(t,(function(t,e){return xo(e,!0)}),!0)),t}function wo(){so(2)}function Oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function So(t){var e=Qo[t];return e||so(18,t),e}function No(){return jo}function $o(t,e){e&&(So("Patches"),t.u=[],t.s=[],t.v=e)}function Co(t){Eo(t),t.p.forEach(Io),t.p=null}function Eo(t){t===jo&&(jo=t.l)}function ko(t){return jo={p:[],l:jo,h:t,m:!0,_:0}}function Io(t){var e=t[qo];0===e.i||1===e.i?e.j():e.g=!0}function Ro(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||So("ES5").S(e,t,o),o?(i[qo].P&&(Co(e),so(4)),co(t)&&(t=Uo(e,t),e.l||Ao(e,t)),e.u&&So("Patches").M(i[qo].t,t,e.u,e.s)):t=Uo(e,i,[]),Co(e),e.u&&e.v(e.u,e.s),t!==Go?t:void 0}function Uo(t,e,i){if(Oo(e))return e;var o=e[qo];if(!o)return fo(e,(function(r,n){return Lo(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ao(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=mo(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),fo(n,(function(e,n){return Lo(t,o,r,e,n,i,a)})),Ao(t,r,!1),i&&t.u&&So("Patches").N(o,i,t.u,t.s)}return o.o}function Lo(t,e,i,o,r,n,a){if(lo(r)){var s=Uo(t,r,n&&e&&3!==e.i&&!uo(e.R,o)?n.concat(o):void 0);if(po(i,o,s),!lo(s))return;t.m=!1}else a&&i.add(r);if(co(r)&&!Oo(r)){if(!t.h.D&&t._<1)return;Uo(t,r),e&&e.A.l||Ao(t,r)}}function Ao(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&xo(e,i)}function To(t,e){var i=t[qo];return(i?vo(i):t)[e]}function _o(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Wo(t){t.P||(t.P=!0,t.l&&Wo(t.l))}function Do(t){t.o||(t.o=mo(t.t))}function Fo(t,e,i){var o=go(e)?So("MapSet").F(e,i):bo(e)?So("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:No(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=tr;i&&(r=[o],n=er);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):So("ES5").J(e,i);return(i?i.A:No()).p.push(o),o}function Mo(t){return lo(t)||so(22,t),function t(e){if(!co(e))return e;var i,o=e[qo],r=ho(e);if(o){if(!o.P&&(o.i<4||!So("ES5").K(o)))return o.t;o.I=!0,i=Po(e,r),o.I=!1}else i=Po(e,r);return fo(i,(function(e,r){o&&function(t,e){return 2===ho(t)?t.get(e):t[e]}(o.t,e)===r||po(i,e,t(r))})),3===r?new Set(i):i}(t)}function Po(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return mo(t)}to=ro,eo=no,io=oo,ao.reduxProperties=new Map,ao.reduxReactiveProperties=new Set,ao.reduxEventListeners=new Map;var zo,jo,Bo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ko="undefined"!=typeof Map,Zo="undefined"!=typeof Set,Ho="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Go=Bo?Symbol.for("immer-nothing"):((zo={})["immer-nothing"]=!0,zo),Vo=Bo?Symbol.for("immer-draftable"):"__$immer_draftable",qo=Bo?Symbol.for("immer-state"):"__$immer_state",Yo=""+Object.prototype.constructor,Xo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Jo=Object.getOwnPropertyDescriptors||function(t){var e={};return Xo(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Qo={},tr={get:function(t,e){if(e===qo)return t;var i=vo(t);if(!uo(i,e))return function(t,e,i){var o,r=_o(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!co(o)?o:o===To(t.t,e)?(Do(t),t.o[e]=Fo(t.A.h,o,t)):o},has:function(t,e){return e in vo(t)},ownKeys:function(t){return Reflect.ownKeys(vo(t))},set:function(t,e,i){var o=_o(vo(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=To(vo(t),e),n=null==r?void 0:r[qo];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(yo(i,r)&&(void 0!==i||uo(t.t,e)))return!0;Do(t),Wo(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==To(t.t,e)||e in t.t?(t.R[e]=!1,Do(t),Wo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=vo(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){so(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){so(12)}},er={};fo(tr,(function(t,e){er[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),er.deleteProperty=function(t,e){return er.set.call(this,t,e,void 0)},er.set=function(t,e,i){return tr.set.call(this,t[0],e,i,t[0])};var ir=function(){function t(t){var e=this;this.O=Ho,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&so(6),void 0!==o&&"function"!=typeof o&&so(7),co(t)){var s=ko(e),l=Fo(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Co(s):Eo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return $o(s,o),Ro(t,s)}),(function(t){throw Co(s),t})):($o(s,o),Ro(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Go&&(a=void 0),e.D&&xo(a,!0),o){var f=[],h=[];So("Patches").M(t,a,f,h),o(f,h)}return a}so(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){co(t)||so(8),lo(t)&&(t=Mo(t));var e=ko(this),i=Fo(this,t,void 0);return i[qo].C=!0,Eo(e),i},e.finishDraft=function(t,e){var i=(t&&t[qo]).A;return $o(i,e),Ro(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ho&&so(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=So("Patches").$;return lo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),or=new ir,rr=or.produce;function nr(t){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(t)}function ar(t){var e=function(t,e){if("object"!==nr(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==nr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===nr(e)?e:String(e)}function sr(t,e,i){return(e=ar(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function lr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function cr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(i),!0).forEach((function(e){sr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):lr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function fr(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}or.produceWithPatches.bind(or),or.setAutoFreeze.bind(or),or.setUseProxies.bind(or),or.applyPatches.bind(or),or.createDraft.bind(or),or.finishDraft.bind(or);var hr="function"==typeof Symbol&&Symbol.observable||"@@observable",dr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ur={INIT:"@@redux/INIT"+dr(),REPLACE:"@@redux/REPLACE"+dr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+dr()}};function pr(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(fr(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(fr(1));return i(pr)(t,e)}if("function"!=typeof t)throw new Error(fr(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(fr(3));return n}function h(t){if("function"!=typeof t)throw new Error(fr(4));if(l)throw new Error(fr(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(fr(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(fr(7));if(void 0===t.type)throw new Error(fr(8));if(l)throw new Error(fr(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:ur.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(fr(10));r=t,d({type:ur.REPLACE})}})[hr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(fr(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[hr]=function(){return this},t},o}function yr(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:ur.INIT}))throw new Error(fr(12));if(void 0===i(void 0,{type:ur.PROBE_UNKNOWN_ACTION()}))throw new Error(fr(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(fr(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function gr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function br(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(fr(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=gr.apply(void 0,n)(i.dispatch),cr(cr({},i),{},{dispatch:o})}}}function vr(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var mr=vr();mr.withExtraArgument=vr;var xr,wr=mr,Or=(xr=function(t,e){return xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},xr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}xr(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Sr=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Nr=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},$r=Object.defineProperty,Cr=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,kr=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Ur=function(t,e,i){return e in t?$r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Lr=function(t,e){for(var i in e||(e={}))Ir.call(e,i)&&Ur(t,i,e[i]);if(kr)for(var o=0,r=kr(e);o<r.length;o++){i=r[o];Rr.call(e,i)&&Ur(t,i,e[i])}return t},Ar=function(t,e){return Cr(t,Er(e))},Tr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?gr:gr.apply(null,arguments)};var _r=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Nr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],t.concat(this))))},e}(Array),Wr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Or(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Nr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],t.concat(this))))},e}(Array);function Dr(t){return co(t)?rr(t,(function(){})):t}function Fr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new _r;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(wr.withExtraArgument(i.extraArgument)):o.push(wr));return o}(t)}}function Mr(t){var e,i=Fr(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=yr(n)}var p=s;"function"==typeof p&&(p=p(i));var y=br.apply(void 0,p),g=gr;c&&(g=Tr(Lr({trace:!1},"object"==typeof c&&c)));var b=new Wr(y),v=b;return Array.isArray(u)?v=Nr([y],u):"function"==typeof u&&(v=u(b)),pr(e,h,g.apply(void 0,v))}function Pr(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Lr(Lr({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function zr(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function jr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Dr(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?zr(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Lr(Lr({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?zr(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Dr(t())};else{var c=Dr(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=Nr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(lo(t))return void 0===(o=i(t,e))?t:o;if(co(t))return rr(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Pr(c,o):Pr(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Br=["name","message","stack","code"],Kr=function(t,e){this.payload=t,this.meta=e},Zr=function(t,e){this.payload=t,this.meta=e},Hr=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Br;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Gr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Pr(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Ar(Lr({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Pr(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Ar(Lr({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Pr(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Hr)(t||"Rejected"),meta:Ar(Lr({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var f,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return Sr(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Kr(t,e)},fulfillWithValue:function(t,e){return new Zr(t,e)}})).then((function(e){if(e instanceof Kr)throw e;return e instanceof Zr?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Kr?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Gr)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Vr="listenerMiddleware";Pr(Vr+"/add"),Pr(Vr+"/removeAll"),Pr(Vr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[qo];return tr.get(e,t)},set:function(e){var i=this[qo];tr.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][qo];if(!r.P)switch(r.i){case 5:o(r)&&Wo(r);break;case 4:i(r)&&Wo(r)}}}function i(t){for(var e=t.t,i=t.k,o=Xo(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==qo){var a=e[n];if(void 0===a&&!uo(e,n))return!0;var s=i[n],l=s&&s[qo];if(l?l.t!==a:!yo(s,a))return!0}}var c=!!e[qo];return o.length!==Xo(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Qo[t]||(Qo[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Jo(i);delete n[qo];for(var a=Xo(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:No(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,qo,{value:n,writable:!0}),r},S:function(t,i,r){r?lo(i)&&i[qo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[qo];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)fo(n,(function(e){e!==qo&&(void 0!==r[e]||uo(r,e)?a[e]||t(n[e]):(a[e]=!0,Wo(i)))})),fo(r,(function(t){void 0!==n[t]||uo(n,t)||(a[t]=!1,Wo(i))}));else if(5===s){if(o(i)&&(Wo(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class qr{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Qi(r))return r;if(null==o)return;const n=jr({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Mr({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new qr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ji,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Yr=Symbol("elementInternals");function Xr(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Yr].form}constructor(...t){super(t),this[Yr]=this.attachInternals(),this[Yr].role=e}setFormValue(t){this[Yr].setFormValue(t)}}}var Jr,Qr,tn;const en=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(tn=null===(Qr=null===(Jr=window.safari)||void 0===Jr?void 0:Jr.pushNotification)||void 0===Qr?void 0:Qr.toString())&&void 0!==tn?tn:"");var on;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(on||(on={}));var rn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class nn extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const an=Symbol("registerInterval");class sn extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[an]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[an]):this.dispatchEvent(new nn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=an,rn([R()],i.prototype,"stateManager",void 0),i}(ao)){}const ln=Ie.extend("--ft-ripple-color","",_e.colorContent),cn={color:ln,backgroundColor:Ie.extend("--ft-ripple-background-color","",ln),opacityContentOnSurfacePressed:Ie.external(_e.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ie.external(_e.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ie.external(_e.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ie.external(_e.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ie.create("--ft-ripple-border-radius","","SIZE","0px")},fn=Ie.extend("--ft-ripple-color","",_e.colorPrimary),hn=fn,dn=Ie.extend("--ft-ripple-background-color","",fn),un=Ie.extend("--ft-ripple-color","",_e.colorSecondary),pn=un,yn=Ie.extend("--ft-ripple-background-color","",un),gn=It`
|
|
132
|
+
`;class Xi{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}const Ji=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!D(t,e),attribute:!1,...e};I(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class Qi{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function to(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var eo,io,oo;const ro=Symbol("internalReduxEventsUnsubscribers"),no=Symbol("internalStoresUnsubscribers"),ao=Symbol("internalStores");class so extends Gi{constructor(){super(...arguments),this[eo]=new Map,this[io]=new Map,this[oo]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ao].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ao].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ao].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:to(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ao].delete(e)}setupStore(t,e){this[ao].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ao].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[no].has(t.store):this[no].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[no].set(t,e.subscribe((()=>this.updateFromStores()))),to(e)&&e.eventBus&&(null===(i=this.reduxConstructor.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[ro].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[no].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ro].forEach((t=>t())),this[ro]=[]}unsubscribeFromStore(t){this[no].has(t)&&this[no].get(t)(),this[no].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function lo(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function co(t){return!!t&&!!t[Yo]}function fo(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Xo}(t)||Array.isArray(t)||!!t[qo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[qo])||bo(t)||vo(t))}function ho(t,e,i){void 0===i&&(i=!1),0===uo(t)?(i?Object.keys:Jo)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function uo(t){var e=t[Yo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bo(t)?2:vo(t)?3:0}function po(t,e){return 2===uo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yo(t,e,i){var o=uo(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function go(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function bo(t){return Zo&&t instanceof Map}function vo(t){return Ho&&t instanceof Set}function mo(t){return t.o||t.t}function xo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Qo(t);delete e[Yo];for(var i=Jo(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function wo(t,e){return void 0===e&&(e=!1),So(t)||co(t)||!fo(t)||(uo(t)>1&&(t.set=t.add=t.clear=t.delete=Oo),Object.freeze(t),e&&ho(t,(function(t,e){return wo(e,!0)}),!0)),t}function Oo(){lo(2)}function So(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function No(t){var e=tr[t];return e||lo(18,t),e}function $o(){return Bo}function Co(t,e){e&&(No("Patches"),t.u=[],t.s=[],t.v=e)}function Eo(t){ko(t),t.p.forEach(Ro),t.p=null}function ko(t){t===Bo&&(Bo=t.l)}function Io(t){return Bo={p:[],l:Bo,h:t,m:!0,_:0}}function Ro(t){var e=t[Yo];0===e.i||1===e.i?e.j():e.g=!0}function Uo(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||No("ES5").S(e,t,o),o?(i[Yo].P&&(Eo(e),lo(4)),fo(t)&&(t=Lo(e,t),e.l||To(e,t)),e.u&&No("Patches").M(i[Yo].t,t,e.u,e.s)):t=Lo(e,i,[]),Eo(e),e.u&&e.v(e.u,e.s),t!==Vo?t:void 0}function Lo(t,e,i){if(So(e))return e;var o=e[Yo];if(!o)return ho(e,(function(r,n){return Ao(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return To(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=xo(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ho(n,(function(e,n){return Ao(t,o,r,e,n,i,a)})),To(t,r,!1),i&&t.u&&No("Patches").N(o,i,t.u,t.s)}return o.o}function Ao(t,e,i,o,r,n,a){if(co(r)){var s=Lo(t,r,n&&e&&3!==e.i&&!po(e.R,o)?n.concat(o):void 0);if(yo(i,o,s),!co(s))return;t.m=!1}else a&&i.add(r);if(fo(r)&&!So(r)){if(!t.h.D&&t._<1)return;Lo(t,r),e&&e.A.l||To(t,r)}}function To(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&wo(e,i)}function _o(t,e){var i=t[Yo];return(i?mo(i):t)[e]}function Wo(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Do(t){t.P||(t.P=!0,t.l&&Do(t.l))}function Fo(t){t.o||(t.o=xo(t.t))}function Mo(t,e,i){var o=bo(e)?No("MapSet").F(e,i):vo(e)?No("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:$o(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=er;i&&(r=[o],n=ir);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):No("ES5").J(e,i);return(i?i.A:$o()).p.push(o),o}function Po(t){return co(t)||lo(22,t),function t(e){if(!fo(e))return e;var i,o=e[Yo],r=uo(e);if(o){if(!o.P&&(o.i<4||!No("ES5").K(o)))return o.t;o.I=!0,i=zo(e,r),o.I=!1}else i=zo(e,r);return ho(i,(function(e,r){o&&function(t,e){return 2===uo(t)?t.get(e):t[e]}(o.t,e)===r||yo(i,e,t(r))})),3===r?new Set(i):i}(t)}function zo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return xo(t)}eo=no,io=ao,oo=ro,so.reduxProperties=new Map,so.reduxReactiveProperties=new Set,so.reduxEventListeners=new Map;var jo,Bo,Ko="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Zo="undefined"!=typeof Map,Ho="undefined"!=typeof Set,Go="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Vo=Ko?Symbol.for("immer-nothing"):((jo={})["immer-nothing"]=!0,jo),qo=Ko?Symbol.for("immer-draftable"):"__$immer_draftable",Yo=Ko?Symbol.for("immer-state"):"__$immer_state",Xo=""+Object.prototype.constructor,Jo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Qo=Object.getOwnPropertyDescriptors||function(t){var e={};return Jo(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},tr={},er={get:function(t,e){if(e===Yo)return t;var i=mo(t);if(!po(i,e))return function(t,e,i){var o,r=Wo(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!fo(o)?o:o===_o(t.t,e)?(Fo(t),t.o[e]=Mo(t.A.h,o,t)):o},has:function(t,e){return e in mo(t)},ownKeys:function(t){return Reflect.ownKeys(mo(t))},set:function(t,e,i){var o=Wo(mo(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=_o(mo(t),e),n=null==r?void 0:r[Yo];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(go(i,r)&&(void 0!==i||po(t.t,e)))return!0;Fo(t),Do(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==_o(t.t,e)||e in t.t?(t.R[e]=!1,Fo(t),Do(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=mo(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){lo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){lo(12)}},ir={};ho(er,(function(t,e){ir[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ir.deleteProperty=function(t,e){return ir.set.call(this,t,e,void 0)},ir.set=function(t,e,i){return er.set.call(this,t[0],e,i,t[0])};var or=function(){function t(t){var e=this;this.O=Go,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&lo(6),void 0!==o&&"function"!=typeof o&&lo(7),fo(t)){var s=Io(e),l=Mo(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Eo(s):ko(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Co(s,o),Uo(t,s)}),(function(t){throw Eo(s),t})):(Co(s,o),Uo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Vo&&(a=void 0),e.D&&wo(a,!0),o){var f=[],h=[];No("Patches").M(t,a,f,h),o(f,h)}return a}lo(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){fo(t)||lo(8),co(t)&&(t=Po(t));var e=Io(this),i=Mo(this,t,void 0);return i[Yo].C=!0,ko(e),i},e.finishDraft=function(t,e){var i=(t&&t[Yo]).A;return Co(i,e),Uo(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Go&&lo(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=No("Patches").$;return co(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),rr=new or,nr=rr.produce;function ar(t){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ar(t)}function sr(t){var e=function(t,e){if("object"!==ar(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==ar(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ar(e)?e:String(e)}function lr(t,e,i){return(e=sr(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function cr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function fr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?cr(Object(i),!0).forEach((function(e){lr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):cr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function hr(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}rr.produceWithPatches.bind(rr),rr.setAutoFreeze.bind(rr),rr.setUseProxies.bind(rr),rr.applyPatches.bind(rr),rr.createDraft.bind(rr),rr.finishDraft.bind(rr);var dr="function"==typeof Symbol&&Symbol.observable||"@@observable",ur=function(){return Math.random().toString(36).substring(7).split("").join(".")},pr={INIT:"@@redux/INIT"+ur(),REPLACE:"@@redux/REPLACE"+ur(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ur()}};function yr(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(hr(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(hr(1));return i(yr)(t,e)}if("function"!=typeof t)throw new Error(hr(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(hr(3));return n}function h(t){if("function"!=typeof t)throw new Error(hr(4));if(l)throw new Error(hr(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(hr(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(hr(7));if(void 0===t.type)throw new Error(hr(8));if(l)throw new Error(hr(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:pr.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(hr(10));r=t,d({type:pr.REPLACE})}})[dr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(hr(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[dr]=function(){return this},t},o}function gr(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:pr.INIT}))throw new Error(hr(12));if(void 0===i(void 0,{type:pr.PROBE_UNKNOWN_ACTION()}))throw new Error(hr(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(hr(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function br(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function vr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(hr(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=br.apply(void 0,n)(i.dispatch),fr(fr({},i),{},{dispatch:o})}}}function mr(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var xr=mr();xr.withExtraArgument=mr;var wr,Or=xr,Sr=(wr=function(t,e){return wr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},wr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}wr(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Nr=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},$r=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},Cr=Object.defineProperty,Er=Object.defineProperties,kr=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Lr=function(t,e,i){return e in t?Cr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Ar=function(t,e){for(var i in e||(e={}))Rr.call(e,i)&&Lr(t,i,e[i]);if(Ir)for(var o=0,r=Ir(e);o<r.length;o++){i=r[o];Ur.call(e,i)&&Lr(t,i,e[i])}return t},Tr=function(t,e){return Er(t,kr(e))},_r="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?br:br.apply(null,arguments)};var Wr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Sr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array),Dr=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Sr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array);function Fr(t){return fo(t)?nr(t,(function(){})):t}function Mr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Wr;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(Or.withExtraArgument(i.extraArgument)):o.push(Or));return o}(t)}}function Pr(t){var e,i=Mr(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,h=void 0===f?void 0:f,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=gr(n)}var p=s;"function"==typeof p&&(p=p(i));var y=vr.apply(void 0,p),g=br;c&&(g=_r(Ar({trace:!1},"object"==typeof c&&c)));var b=new Dr(y),v=b;return Array.isArray(u)?v=$r([y],u):"function"==typeof u&&(v=u(b)),yr(e,h,g.apply(void 0,v))}function zr(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Ar(Ar({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function jr(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Br(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Fr(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?jr(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Ar(Ar({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?jr(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Fr(t())};else{var c=Fr(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=$r([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(co(t))return void 0===(o=i(t,e))?t:o;if(fo(t))return nr(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?zr(c,o):zr(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Kr=["name","message","stack","code"],Zr=function(t,e){this.payload=t,this.meta=e},Hr=function(t,e){this.payload=t,this.meta=e},Gr=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Kr;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Vr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=zr(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Tr(Ar({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=zr(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Tr(Ar({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=zr(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Gr)(t||"Rejected"),meta:Tr(Ar({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var f,h=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return Nr(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Zr(t,e)},fulfillWithValue:function(t,e){return new Hr(t,e)}})).then((function(e){if(e instanceof Zr)throw e;return e instanceof Hr?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Zr?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:h,arg:t,unwrap:function(){return p.then(Vr)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var qr="listenerMiddleware";zr(qr+"/add"),zr(qr+"/removeAll"),zr(qr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Yo];return er.get(e,t)},set:function(e){var i=this[Yo];er.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Yo];if(!r.P)switch(r.i){case 5:o(r)&&Do(r);break;case 4:i(r)&&Do(r)}}}function i(t){for(var e=t.t,i=t.k,o=Jo(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Yo){var a=e[n];if(void 0===a&&!po(e,n))return!0;var s=i[n],l=s&&s[Yo];if(l?l.t!==a:!go(s,a))return!0}}var c=!!e[Yo];return o.length!==Jo(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){tr[t]||(tr[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Qo(i);delete n[Yo];for(var a=Jo(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:$o(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Yo,{value:n,writable:!0}),r},S:function(t,i,r){r?co(i)&&i[Yo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Yo];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ho(n,(function(e){e!==Yo&&(void 0!==r[e]||po(r,e)?a[e]||t(n[e]):(a[e]=!0,Do(i)))})),ho(r,(function(t){void 0!==n[t]||po(n,t)||(a[t]=!1,Do(i))}));else if(5===s){if(o(i)&&(Do(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Yr{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(to(r))return r;if(null==o)return;const n=Br({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Pr({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Yr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Qi,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Xr=Symbol("elementInternals");function Jr(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Xr].form}constructor(...t){super(t),this[Xr]=this.attachInternals(),this[Xr].role=e}setFormValue(t){this[Xr].setFormValue(t)}}}var Qr,tn,en;const on=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(en=null===(tn=null===(Qr=window.safari)||void 0===Qr?void 0:Qr.pushNotification)||void 0===tn?void 0:tn.toString())&&void 0!==en?en:"");var rn;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(rn||(rn={}));var nn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class an extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const sn=Symbol("registerInterval");class ln extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[sn]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[sn]):this.dispatchEvent(new an)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=sn,nn([R()],i.prototype,"stateManager",void 0),i}(so)){}const cn=Re.extend("--ft-ripple-color","",We.colorContent),fn={color:cn,backgroundColor:Re.extend("--ft-ripple-background-color","",cn),opacityContentOnSurfacePressed:Re.external(We.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(We.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(We.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(We.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},hn=Re.extend("--ft-ripple-color","",We.colorPrimary),dn=hn,un=Re.extend("--ft-ripple-background-color","",hn),pn=Re.extend("--ft-ripple-color","",We.colorSecondary),yn=pn,gn=Re.extend("--ft-ripple-background-color","",pn),bn=Rt`
|
|
133
133
|
:host {
|
|
134
134
|
display: contents;
|
|
135
135
|
}
|
|
@@ -142,7 +142,7 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
142
142
|
|
|
143
143
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
144
144
|
overflow: hidden;
|
|
145
|
-
border-radius: ${
|
|
145
|
+
border-radius: ${fn.borderRadius};
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.ft-ripple .ft-ripple--background,
|
|
@@ -176,27 +176,27 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.ft-ripple .ft-ripple--background {
|
|
179
|
-
background-color: ${
|
|
179
|
+
background-color: ${fn.backgroundColor};
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.ft-ripple .ft-ripple--effect {
|
|
183
|
-
background-color: ${
|
|
183
|
+
background-color: ${fn.color};
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
187
|
-
background-color: ${
|
|
187
|
+
background-color: ${gn};
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
191
|
-
background-color: ${
|
|
191
|
+
background-color: ${yn};
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
195
|
-
background-color: ${
|
|
195
|
+
background-color: ${un};
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
199
|
-
background-color: ${
|
|
199
|
+
background-color: ${dn};
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
.ft-ripple .ft-ripple--background {
|
|
@@ -226,32 +226,23 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
229
|
-
opacity: ${
|
|
229
|
+
opacity: ${fn.opacityContentOnSurfaceHover};
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
233
|
-
opacity: ${
|
|
233
|
+
opacity: ${fn.opacityContentOnSurfaceSelected};
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
237
|
-
opacity: ${
|
|
237
|
+
opacity: ${fn.opacityContentOnSurfaceFocused};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
241
|
-
opacity: ${
|
|
241
|
+
opacity: ${fn.opacityContentOnSurfacePressed};
|
|
242
242
|
transform: translate(-50%, -50%) scale(1);
|
|
243
243
|
}
|
|
244
|
-
`;const
|
|
244
|
+
`;const vn=Re.extend("--ft-typography-font-family","",We.titleFont),mn=Re.extend("--ft-typography-font-family","",We.contentFont),xn={fontFamily:mn,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},wn={fontFamily:Re.extend("--ft-typography-title-font-family","",vn),fontSize:Re.extend("--ft-typography-title-font-size","",xn.fontSize,"20px"),fontWeight:Re.extend("--ft-typography-title-font-weight","",xn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-letter-spacing","",xn.letterSpacing,"0.15px"),lineHeight:Re.extend("--ft-typography-title-line-height","",xn.lineHeight,"1.2"),textTransform:Re.extend("--ft-typography-title-text-transform","",xn.textTransform,"inherit")},On={fontFamily:Re.extend("--ft-typography-title-dense-font-family","",vn),fontSize:Re.extend("--ft-typography-title-dense-font-size","",xn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-title-dense-font-weight","",xn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-dense-letter-spacing","",xn.letterSpacing,"0.105px"),lineHeight:Re.extend("--ft-typography-title-dense-line-height","",xn.lineHeight,"1.7"),textTransform:Re.extend("--ft-typography-title-dense-text-transform","",xn.textTransform,"inherit")},Sn=Re.extend("--ft-typography-subtitle1-font-family","",mn),Nn=Re.extend("--ft-typography-subtitle1-font-size","",xn.fontSize,"16px"),$n=Re.extend("--ft-typography-subtitle1-font-weight","",xn.fontWeight,"600"),Cn=Re.extend("--ft-typography-subtitle1-letter-spacing","",xn.letterSpacing,"0.144px"),En=Re.extend("--ft-typography-subtitle1-line-height","",xn.lineHeight,"1.5"),kn=Re.extend("--ft-typography-subtitle1-text-transform","",xn.textTransform,"inherit"),In=Re.extend("--ft-typography-subtitle2-font-family","",mn),Rn=Re.extend("--ft-typography-subtitle2-font-size","",xn.fontSize,"14px"),Un=Re.extend("--ft-typography-subtitle2-font-weight","",xn.fontWeight,"normal"),Ln=Re.extend("--ft-typography-subtitle2-letter-spacing","",xn.letterSpacing,"0.098px"),An=Re.extend("--ft-typography-subtitle2-line-height","",xn.lineHeight,"1.7"),Tn=Re.extend("--ft-typography-subtitle2-text-transform","",xn.textTransform,"inherit"),_n={fontFamily:Re.extend("--ft-typography-body1-font-family","",mn),fontSize:Re.extend("--ft-typography-body1-font-size","",xn.fontSize,"16px"),fontWeight:Re.extend("--ft-typography-body1-font-weight","",xn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body1-letter-spacing","",xn.letterSpacing,"0.496px"),lineHeight:Re.extend("--ft-typography-body1-line-height","",xn.lineHeight,"1.5"),textTransform:Re.extend("--ft-typography-body1-text-transform","",xn.textTransform,"inherit")},Wn=Re.extend("--ft-typography-body2-font-family","",mn),Dn=Re.extend("--ft-typography-body2-font-size","",xn.fontSize,"14px"),Fn=Re.extend("--ft-typography-body2-font-weight","",xn.fontWeight,"normal"),Mn=Re.extend("--ft-typography-body2-letter-spacing","",xn.letterSpacing,"0.252px"),Pn=Re.extend("--ft-typography-body2-line-height","",xn.lineHeight,"1.4"),zn=Re.extend("--ft-typography-body2-text-transform","",xn.textTransform,"inherit"),jn={fontFamily:Re.extend("--ft-typography-caption-font-family","",mn),fontSize:Re.extend("--ft-typography-caption-font-size","",xn.fontSize,"12px"),fontWeight:Re.extend("--ft-typography-caption-font-weight","",xn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-caption-letter-spacing","",xn.letterSpacing,"0.396px"),lineHeight:Re.extend("--ft-typography-caption-line-height","",xn.lineHeight,"1.33"),textTransform:Re.extend("--ft-typography-caption-text-transform","",xn.textTransform,"inherit")},Bn=Re.extend("--ft-typography-breadcrumb-font-family","",mn),Kn=Re.extend("--ft-typography-breadcrumb-font-size","",xn.fontSize,"10px"),Zn=Re.extend("--ft-typography-breadcrumb-font-weight","",xn.fontWeight,"normal"),Hn=Re.extend("--ft-typography-breadcrumb-letter-spacing","",xn.letterSpacing,"0.33px"),Gn=Re.extend("--ft-typography-breadcrumb-line-height","",xn.lineHeight,"1.6"),Vn=Re.extend("--ft-typography-breadcrumb-text-transform","",xn.textTransform,"inherit"),qn=Re.extend("--ft-typography-overline-font-family","",mn),Yn=Re.extend("--ft-typography-overline-font-size","",xn.fontSize,"10px"),Xn=Re.extend("--ft-typography-overline-font-weight","",xn.fontWeight,"normal"),Jn=Re.extend("--ft-typography-overline-letter-spacing","",xn.letterSpacing,"1.5px"),Qn=Re.extend("--ft-typography-overline-line-height","",xn.lineHeight,"1.6"),ta=Re.extend("--ft-typography-overline-text-transform","",xn.textTransform,"uppercase"),ea={fontFamily:Re.extend("--ft-typography-button-font-family","",mn),fontSize:Re.extend("--ft-typography-button-font-size","",xn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",xn.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",xn.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",xn.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",xn.textTransform,"uppercase")},ia=Rt`
|
|
245
245
|
.ft-typography--title {
|
|
246
|
-
font-family: ${xn.fontFamily};
|
|
247
|
-
font-size: ${xn.fontSize};
|
|
248
|
-
font-weight: ${xn.fontWeight};
|
|
249
|
-
letter-spacing: ${xn.letterSpacing};
|
|
250
|
-
line-height: ${xn.lineHeight};
|
|
251
|
-
text-transform: ${xn.textTransform};
|
|
252
|
-
}
|
|
253
|
-
`,ia=It`
|
|
254
|
-
.ft-typography--title-dense {
|
|
255
246
|
font-family: ${wn.fontFamily};
|
|
256
247
|
font-size: ${wn.fontSize};
|
|
257
248
|
font-weight: ${wn.fontWeight};
|
|
@@ -259,85 +250,94 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
259
250
|
line-height: ${wn.lineHeight};
|
|
260
251
|
text-transform: ${wn.textTransform};
|
|
261
252
|
}
|
|
262
|
-
`,oa=
|
|
253
|
+
`,oa=Rt`
|
|
254
|
+
.ft-typography--title-dense {
|
|
255
|
+
font-family: ${On.fontFamily};
|
|
256
|
+
font-size: ${On.fontSize};
|
|
257
|
+
font-weight: ${On.fontWeight};
|
|
258
|
+
letter-spacing: ${On.letterSpacing};
|
|
259
|
+
line-height: ${On.lineHeight};
|
|
260
|
+
text-transform: ${On.textTransform};
|
|
261
|
+
}
|
|
262
|
+
`,ra=Rt`
|
|
263
263
|
.ft-typography--subtitle1 {
|
|
264
|
-
font-family: ${
|
|
265
|
-
font-size: ${
|
|
266
|
-
font-weight: ${
|
|
267
|
-
letter-spacing: ${
|
|
268
|
-
line-height: ${
|
|
269
|
-
text-transform: ${
|
|
270
|
-
}
|
|
271
|
-
`,
|
|
264
|
+
font-family: ${Sn};
|
|
265
|
+
font-size: ${Nn};
|
|
266
|
+
font-weight: ${$n};
|
|
267
|
+
letter-spacing: ${Cn};
|
|
268
|
+
line-height: ${En};
|
|
269
|
+
text-transform: ${kn};
|
|
270
|
+
}
|
|
271
|
+
`,na=Rt`
|
|
272
272
|
.ft-typography--subtitle2 {
|
|
273
|
-
font-family: ${
|
|
274
|
-
font-size: ${
|
|
275
|
-
font-weight: ${
|
|
276
|
-
letter-spacing: ${
|
|
277
|
-
line-height: ${
|
|
278
|
-
text-transform: ${
|
|
273
|
+
font-family: ${In};
|
|
274
|
+
font-size: ${Rn};
|
|
275
|
+
font-weight: ${Un};
|
|
276
|
+
letter-spacing: ${Ln};
|
|
277
|
+
line-height: ${An};
|
|
278
|
+
text-transform: ${Tn};
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
`,
|
|
281
|
+
`,aa=Rt`
|
|
282
282
|
.ft-typography--body1 {
|
|
283
|
-
font-family: ${
|
|
284
|
-
font-size: ${
|
|
285
|
-
font-weight: ${
|
|
286
|
-
letter-spacing: ${
|
|
287
|
-
line-height: ${
|
|
288
|
-
text-transform: ${
|
|
289
|
-
}
|
|
290
|
-
`,
|
|
283
|
+
font-family: ${_n.fontFamily};
|
|
284
|
+
font-size: ${_n.fontSize};
|
|
285
|
+
font-weight: ${_n.fontWeight};
|
|
286
|
+
letter-spacing: ${_n.letterSpacing};
|
|
287
|
+
line-height: ${_n.lineHeight};
|
|
288
|
+
text-transform: ${_n.textTransform};
|
|
289
|
+
}
|
|
290
|
+
`,sa=Rt`
|
|
291
291
|
.ft-typography--body2 {
|
|
292
|
-
font-family: ${
|
|
293
|
-
font-size: ${
|
|
294
|
-
font-weight: ${
|
|
295
|
-
letter-spacing: ${
|
|
296
|
-
line-height: ${
|
|
297
|
-
text-transform: ${
|
|
298
|
-
}
|
|
299
|
-
`,
|
|
292
|
+
font-family: ${Wn};
|
|
293
|
+
font-size: ${Dn};
|
|
294
|
+
font-weight: ${Fn};
|
|
295
|
+
letter-spacing: ${Mn};
|
|
296
|
+
line-height: ${Pn};
|
|
297
|
+
text-transform: ${zn};
|
|
298
|
+
}
|
|
299
|
+
`,la=Rt`
|
|
300
300
|
.ft-typography--caption {
|
|
301
|
-
font-family: ${
|
|
302
|
-
font-size: ${
|
|
303
|
-
font-weight: ${
|
|
304
|
-
letter-spacing: ${
|
|
305
|
-
line-height: ${
|
|
306
|
-
text-transform: ${
|
|
307
|
-
}
|
|
308
|
-
`,
|
|
301
|
+
font-family: ${jn.fontFamily};
|
|
302
|
+
font-size: ${jn.fontSize};
|
|
303
|
+
font-weight: ${jn.fontWeight};
|
|
304
|
+
letter-spacing: ${jn.letterSpacing};
|
|
305
|
+
line-height: ${jn.lineHeight};
|
|
306
|
+
text-transform: ${jn.textTransform};
|
|
307
|
+
}
|
|
308
|
+
`,ca=Rt`
|
|
309
309
|
.ft-typography--breadcrumb {
|
|
310
|
-
font-family: ${
|
|
311
|
-
font-size: ${
|
|
312
|
-
font-weight: ${
|
|
313
|
-
letter-spacing: ${
|
|
314
|
-
line-height: ${
|
|
315
|
-
text-transform: ${
|
|
316
|
-
}
|
|
317
|
-
`,
|
|
310
|
+
font-family: ${Bn};
|
|
311
|
+
font-size: ${Kn};
|
|
312
|
+
font-weight: ${Zn};
|
|
313
|
+
letter-spacing: ${Hn};
|
|
314
|
+
line-height: ${Gn};
|
|
315
|
+
text-transform: ${Vn};
|
|
316
|
+
}
|
|
317
|
+
`,fa=Rt`
|
|
318
318
|
.ft-typography--overline {
|
|
319
|
-
font-family: ${
|
|
320
|
-
font-size: ${
|
|
321
|
-
font-weight: ${
|
|
322
|
-
letter-spacing: ${
|
|
323
|
-
line-height: ${
|
|
324
|
-
text-transform: ${
|
|
325
|
-
}
|
|
326
|
-
`,
|
|
319
|
+
font-family: ${qn};
|
|
320
|
+
font-size: ${Yn};
|
|
321
|
+
font-weight: ${Xn};
|
|
322
|
+
letter-spacing: ${Jn};
|
|
323
|
+
line-height: ${Qn};
|
|
324
|
+
text-transform: ${ta};
|
|
325
|
+
}
|
|
326
|
+
`,ha=Rt`
|
|
327
327
|
.ft-typography--button {
|
|
328
|
-
font-family: ${
|
|
329
|
-
font-size: ${
|
|
330
|
-
font-weight: ${
|
|
331
|
-
letter-spacing: ${
|
|
332
|
-
line-height: ${
|
|
333
|
-
text-transform: ${
|
|
334
|
-
}
|
|
335
|
-
`,
|
|
328
|
+
font-family: ${ea.fontFamily};
|
|
329
|
+
font-size: ${ea.fontSize};
|
|
330
|
+
font-weight: ${ea.fontWeight};
|
|
331
|
+
letter-spacing: ${ea.letterSpacing};
|
|
332
|
+
line-height: ${ea.lineHeight};
|
|
333
|
+
text-transform: ${ea.textTransform};
|
|
334
|
+
}
|
|
335
|
+
`,da=Rt`
|
|
336
336
|
.ft-typography {
|
|
337
337
|
vertical-align: inherit;
|
|
338
338
|
}
|
|
339
|
-
`,
|
|
340
|
-
.ft-typography--${
|
|
339
|
+
`,ua=[Object.keys(Ae).map((t=>function(t){const e=Ae[t];return Rt`
|
|
340
|
+
.ft-typography--${It(t)} {
|
|
341
341
|
font-family: ${e.fontFamily};
|
|
342
342
|
font-size: ${e.fontSize};
|
|
343
343
|
font-weight: ${e.fontWeight};
|
|
@@ -345,7 +345,7 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
345
345
|
line-height: ${e.lineHeight};
|
|
346
346
|
text-transform: ${e.textCase};
|
|
347
347
|
}
|
|
348
|
-
`}(t)))],
|
|
348
|
+
`}(t)))],pa={color:Re.extend("--ft-loader-color","",We.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},ya=Rt`
|
|
349
349
|
:host {
|
|
350
350
|
line-height: 0;
|
|
351
351
|
}
|
|
@@ -354,8 +354,8 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
354
354
|
display: inline-block;
|
|
355
355
|
position: relative;
|
|
356
356
|
|
|
357
|
-
width: ${
|
|
358
|
-
height: ${
|
|
357
|
+
width: ${pa.size};
|
|
358
|
+
height: ${pa.size};
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-loader div {
|
|
@@ -364,7 +364,7 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
364
364
|
width: 25%;
|
|
365
365
|
height: 25%;
|
|
366
366
|
border-radius: 50%;
|
|
367
|
-
background: ${
|
|
367
|
+
background: ${pa.color};
|
|
368
368
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
369
369
|
}
|
|
370
370
|
|
|
@@ -411,10 +411,10 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
411
411
|
transform: translate(0, 0);
|
|
412
412
|
}
|
|
413
413
|
100% {
|
|
414
|
-
transform: translate(calc(0.35 * ${
|
|
414
|
+
transform: translate(calc(0.35 * ${pa.size}), 0);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
`,
|
|
417
|
+
`,ga={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ba=Rt`
|
|
418
418
|
:host, i.ft-icon {
|
|
419
419
|
display: inline-flex;
|
|
420
420
|
align-items: center;
|
|
@@ -423,14 +423,14 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
:host {
|
|
426
|
-
width: ${
|
|
427
|
-
height: ${
|
|
426
|
+
width: ${ga.size};
|
|
427
|
+
height: ${ga.size};
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
i.ft-icon {
|
|
431
431
|
width: 100%;
|
|
432
432
|
height: 100%;
|
|
433
|
-
font-size: ${
|
|
433
|
+
font-size: ${ga.size};
|
|
434
434
|
line-height: 1;
|
|
435
435
|
font-weight: normal;
|
|
436
436
|
text-transform: none;
|
|
@@ -441,28 +441,28 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
441
441
|
text-rendering: auto;
|
|
442
442
|
-webkit-font-smoothing: antialiased;
|
|
443
443
|
-moz-osx-font-smoothing: grayscale;
|
|
444
|
-
vertical-align: ${
|
|
444
|
+
vertical-align: ${ga.verticalAlign};
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
i.ft-icon.ft-icon--fluid-topics {
|
|
448
|
-
font-family: ${
|
|
448
|
+
font-family: ${ga.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
449
449
|
|
|
450
450
|
/* Ugly fix because font is broken */
|
|
451
|
-
font-size: calc(0.75 * ${
|
|
452
|
-
line-height: ${
|
|
451
|
+
font-size: calc(0.75 * ${ga.size});
|
|
452
|
+
line-height: ${ga.size};
|
|
453
453
|
position: relative;
|
|
454
454
|
top: -4%;
|
|
455
455
|
justify-content: center;
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
.ft-icon--file-format {
|
|
459
|
-
font-family: ${
|
|
459
|
+
font-family: ${ga.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
.ft-icon--material {
|
|
463
|
-
font-family: ${
|
|
463
|
+
font-family: ${ga.materialFontFamily}, "Material Icons", sans-serif;
|
|
464
464
|
}
|
|
465
|
-
`,
|
|
465
|
+
`,va=Re.extend("--ft-button-color","",We.colorPrimary),ma={backgroundColor:Re.extend("--ft-button-background-color","",We.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",We.borderRadiusL),color:va,fontSize:Re.extend("--ft-button-font-size","",ea.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",va),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(We.colorOpacityDisabled,"Design system")},xa=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",We.colorOnPrimary)),wa={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",We.colorPrimary)),color:xa,rippleColor:Re.extend("--ft-button-primary-ripple-color","",xa)},Oa=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",We.borderRadiusM)),Sa=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Na=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),$a=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ca=[Rt`
|
|
466
466
|
:host {
|
|
467
467
|
display: inline-block;
|
|
468
468
|
max-width: 100%;
|
|
@@ -473,7 +473,7 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
473
473
|
box-shadow: 0px 0px 0px transparent;
|
|
474
474
|
border: 0px solid transparent;
|
|
475
475
|
text-shadow: 0px 0px 0px transparent;
|
|
476
|
-
font-size: ${
|
|
476
|
+
font-size: ${ma.fontSize};
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
button:hover {
|
|
@@ -502,31 +502,31 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
502
502
|
border: none;
|
|
503
503
|
pointer-events: auto;
|
|
504
504
|
|
|
505
|
-
--ft-button-internal-line-height: max(calc(${
|
|
506
|
-
--ft-button-internal-color: ${
|
|
507
|
-
${
|
|
508
|
-
${
|
|
505
|
+
--ft-button-internal-line-height: max(calc(${ma.fontSize} + 2px), ${ma.iconSize});
|
|
506
|
+
--ft-button-internal-color: ${ma.color};
|
|
507
|
+
${Ue(ga.size,ma.iconSize)};
|
|
508
|
+
${Ue(fn.color,ma.rippleColor)};
|
|
509
509
|
|
|
510
|
-
border-radius: ${
|
|
511
|
-
padding: ${
|
|
512
|
-
background-color: ${
|
|
510
|
+
border-radius: ${ma.borderRadius};
|
|
511
|
+
padding: ${ma.verticalPadding} ${ma.horizontalPadding};
|
|
512
|
+
background-color: ${ma.backgroundColor};
|
|
513
513
|
color: var(--ft-button-internal-color);
|
|
514
514
|
-webkit-mask-image: radial-gradient(white, black);
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
.ft-button.ft-button--outlined {
|
|
518
518
|
border: 1px solid var(--ft-button-internal-color);
|
|
519
|
-
padding: calc(${
|
|
519
|
+
padding: calc(${ma.verticalPadding} - 1px) calc(${ma.horizontalPadding} - 1px);
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.ft-button.ft-button--dense {
|
|
523
|
-
padding: ${
|
|
524
|
-
border-radius: ${
|
|
525
|
-
gap: ${
|
|
523
|
+
padding: ${Sa} ${Na};
|
|
524
|
+
border-radius: ${Oa};
|
|
525
|
+
gap: ${$a};
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
529
|
-
padding: calc(${
|
|
529
|
+
padding: calc(${Sa} - 1px) calc(${Na} - 1px);
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
.ft-button:not([disabled]):hover {
|
|
@@ -534,22 +534,22 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
.ft-button--round {
|
|
537
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
537
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ma.verticalPadding});
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
.ft-button--round.ft-button--dense {
|
|
541
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
541
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Sa});
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
.ft-button[disabled] {
|
|
545
545
|
filter: grayscale(1);
|
|
546
|
-
opacity: ${
|
|
546
|
+
opacity: ${ma.opacityDisabled};
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
.ft-button.ft-button--primary {
|
|
550
|
-
background-color: ${
|
|
551
|
-
--ft-button-internal-color: ${
|
|
552
|
-
${
|
|
550
|
+
background-color: ${wa.backgroundColor};
|
|
551
|
+
--ft-button-internal-color: ${wa.color};
|
|
552
|
+
${Ue(fn.color,wa.rippleColor)};
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
.ft-button:focus {
|
|
@@ -562,13 +562,13 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
562
562
|
white-space: nowrap;
|
|
563
563
|
text-overflow: ellipsis;
|
|
564
564
|
display: block;
|
|
565
|
-
margin: 0 ${
|
|
566
|
-
${
|
|
567
|
-
${
|
|
565
|
+
margin: 0 ${ma.iconPadding};
|
|
566
|
+
${Ue(ea.fontSize,"1em")};
|
|
567
|
+
${Ue(ea.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
.ft-button--dense .ft-button--label {
|
|
571
|
-
margin: 0 ${
|
|
571
|
+
margin: 0 ${$a};
|
|
572
572
|
}
|
|
573
573
|
|
|
574
574
|
.ft-button--label[hidden] {
|
|
@@ -581,13 +581,13 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
.ft-button--label[hidden] + ft-icon {
|
|
584
|
-
margin: 0 calc(${
|
|
585
|
-
padding: 0 ${
|
|
584
|
+
margin: 0 calc(${ma.horizontalPadding} * -1);
|
|
585
|
+
padding: 0 ${ma.verticalPadding};
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
589
|
-
margin: 0 calc(${
|
|
590
|
-
padding: 0 ${
|
|
589
|
+
margin: 0 calc(${Na} * -1);
|
|
590
|
+
padding: 0 ${Sa};
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -596,10 +596,10 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
ft-loader {
|
|
599
|
-
${
|
|
600
|
-
${
|
|
599
|
+
${Ue(pa.size,ma.iconSize)};
|
|
600
|
+
${Ue(pa.color,"var(--ft-button-internal-color)")};
|
|
601
601
|
}
|
|
602
|
-
`,
|
|
602
|
+
`,qi],Ea={textColor:Re.extend("--ft-switch-text-color","",We.colorOnSurfaceHigh),backgroundColor:Re.extend("--ft-switch-background-color","",We.colorSurface),selectedTextColor:Re.extend("--ft-switch-selected-text-color","",We.colorPrimary),selectedBackgroundColor:Re.extend("--ft-switch-selected-background-color","",We.colorPrimary),borderColor:Re.extend("--ft-switch-border-color","",We.colorOutline),borderRadius:Re.extend("--ft-switch-border-radius","",We.borderRadiusL),fontSize:Re.extend("--ft-switch-font-size","",ea.fontSize),iconSize:Re.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Re.extend("--ft-switch-text-color","",We.colorOnSurfaceMedium),rippleColor:Re.extend("--ft-switch-ripple-color","",We.colorPrimary),outlineColor:Re.extend("--ft-switch-outline-color","",We.colorPrimary)},ka={feedbackInputMinWidth:Re.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Re.external(We.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Re.extend("--ft-reader-feedback-send-feedback-color","",We.colorOnPrimary),sendFeedbackBackgroundColor:Re.extend("--ft-reader-feedback-send-feedback-background-color","",We.colorPrimary),filledRatingColor:Re.extend("--ft-reader-feedback-filled-rating-color","",We.colorPrimary),emptyRatingColor:Re.extend("--ft-reader-feedback-empty-rating-color","",We.colorOnSurfaceMedium),mainTitleFontSize:Re.external(wn.fontSize,"Typography"),sectionTitleFontSize:Re.external(On.fontSize,"Typography"),starsBackgroundColor:Re.create("--ft-reader-feedback-stars-background-color","","COLOR",We.colorSurface)},Ia=Rt`
|
|
603
603
|
.ft-reader-feedback {
|
|
604
604
|
box-sizing: border-box;
|
|
605
605
|
display: flex;
|
|
@@ -612,7 +612,7 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
612
612
|
flex-direction: row;
|
|
613
613
|
align-items: center;
|
|
614
614
|
margin-left: -6px;
|
|
615
|
-
${
|
|
615
|
+
${Ue(ma.backgroundColor,ka.starsBackgroundColor)}
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
.ft-reader-feedback--rating, .ft-reader-feedback--feedback {
|
|
@@ -625,14 +625,14 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
.ft-reader-feedback--rating {
|
|
628
|
-
${
|
|
629
|
-
${
|
|
630
|
-
${
|
|
631
|
-
${
|
|
628
|
+
${Ue(ma.color,ka.emptyRatingColor)};
|
|
629
|
+
${Ue(ma.rippleColor,ka.filledRatingColor)};
|
|
630
|
+
${Ue(Ea.textColor,ka.emptyRatingColor)};
|
|
631
|
+
${Ue(Ea.selectedTextColor,ka.filledRatingColor)};
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
635
|
-
${
|
|
635
|
+
${Ue(ma.color,ka.filledRatingColor)};
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
.ft-reader-feedback--feedback {
|
|
@@ -640,53 +640,53 @@ const Fi=window,Mi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShado
|
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
.ft-reader-feedback--rating-date {
|
|
643
|
-
color: ${
|
|
643
|
+
color: ${ka.ratedDateColor};
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
.ft-reader-feedback--feedback ft-text-area {
|
|
647
|
-
min-width: ${
|
|
647
|
+
min-width: ${ka.feedbackInputMinWidth};
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
651
651
|
align-self: flex-end;
|
|
652
|
-
${
|
|
653
|
-
${
|
|
652
|
+
${Ue(ma.color,ka.sendFeedbackColor)};
|
|
653
|
+
${Ue(ma.backgroundColor,ka.sendFeedbackBackgroundColor)};
|
|
654
654
|
}
|
|
655
655
|
`
|
|
656
656
|
/**
|
|
657
657
|
* @license
|
|
658
658
|
* Copyright 2020 Google LLC
|
|
659
659
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
660
|
-
*/,
|
|
661
|
-
<${
|
|
660
|
+
*/,Ra=Symbol.for(""),Ua=t=>{if(t?.r===Ra)return t?._$litStatic$},La=t=>({_$litStatic$:t,r:Ra}),Aa=new Map,Ta=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Ua(n));)l+=r+e[++c],f=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),f){const t=a.join("$$lit$$");void 0===(e=Aa.get(t))&&(a.raw=a,Aa.set(t,e=a)),i=s}return t(e,...i)})(at);var _a;!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"}(_a||(_a={}));var Wa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Da extends Gi{constructor(){super(...arguments),this.variant=_a.body1}render(){return this.element?Ta`
|
|
661
|
+
<${La(this.element)}
|
|
662
662
|
class="ft-typography ft-typography--${this.variant}">
|
|
663
663
|
<slot></slot>
|
|
664
|
-
</${
|
|
665
|
-
`:
|
|
664
|
+
</${La(this.element)}>
|
|
665
|
+
`:Ta`
|
|
666
666
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
667
|
-
`}}
|
|
667
|
+
`}}Da.styles=[ia,oa,ra,na,aa,sa,la,ca,fa,ha,da,...ua],Wa([I()],Da.prototype,"element",void 0),Wa([I()],Da.prototype,"variant",void 0),F("ft-typography")(Da);
|
|
668
668
|
/**
|
|
669
669
|
* @license
|
|
670
670
|
* Copyright 2017 Google LLC
|
|
671
671
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
672
672
|
*/
|
|
673
|
-
const
|
|
673
|
+
const Fa=1,Ma=2,Pa=t=>(...e)=>({_$litDirective$:t,values:e});class za{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
674
674
|
/**
|
|
675
675
|
* @license
|
|
676
676
|
* Copyright 2018 Google LLC
|
|
677
677
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
678
|
-
*/const
|
|
678
|
+
*/const ja=Pa(class extends za{constructor(t){if(super(t),t.type!==Fa||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return st}});var Ba=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ka extends Gi{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new n(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new n(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return de`
|
|
679
679
|
<style>
|
|
680
680
|
.ft-ripple .ft-ripple--effect {
|
|
681
681
|
left: ${this.originX}px;
|
|
682
682
|
top: ${this.originY}px;
|
|
683
683
|
}
|
|
684
684
|
</style>
|
|
685
|
-
<div class="${
|
|
685
|
+
<div class="${ja(t)}">
|
|
686
686
|
<div class="ft-ripple--background"></div>
|
|
687
687
|
<div class="ft-ripple--effect"></div>
|
|
688
688
|
</div>
|
|
689
|
-
`}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,i;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===(i=this.target)||void 0===i||i.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}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)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",i,n),t.addEventListener("touchstart",o,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",i,n),t.removeEventListener("touchstart",o,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,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()}}
|
|
689
|
+
`}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,i;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===(i=this.target)||void 0===i||i.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 i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}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)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",i,n),t.addEventListener("touchstart",o,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",i,n),t.removeEventListener("touchstart",o,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,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()}}Ka.elementDefinitions={},Ka.styles=bn,Ba([I({type:Boolean})],Ka.prototype,"primary",void 0),Ba([I({type:Boolean})],Ka.prototype,"secondary",void 0),Ba([I({type:Boolean})],Ka.prototype,"unbounded",void 0),Ba([I({type:Boolean})],Ka.prototype,"activated",void 0),Ba([I({type:Boolean})],Ka.prototype,"selected",void 0),Ba([I({type:Boolean})],Ka.prototype,"disabled",void 0),Ba([R()],Ka.prototype,"hovered",void 0),Ba([R()],Ka.prototype,"focused",void 0),Ba([R()],Ka.prototype,"pressed",void 0),Ba([R()],Ka.prototype,"rippling",void 0),Ba([R()],Ka.prototype,"originX",void 0),Ba([R()],Ka.prototype,"originY",void 0),Ba([A(".ft-ripple")],Ka.prototype,"ripple",void 0),Ba([A(".ft-ripple--effect")],Ka.prototype,"rippleEffect",void 0),F("ft-ripple")(Ka);const Za=Re.create("--ft-tooltip-distance","","SIZE","4px"),Ha=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ga=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),Va=Re.create("--ft-tooltip-z-index","","NUMBER","100"),qa=Re.external(We.borderRadiusS,"Design system"),Ya=Re.create("--ft-tooltip-max-width","","SIZE","150px"),Xa=Rt`
|
|
690
690
|
.ft-tooltip--container {
|
|
691
691
|
display: block;
|
|
692
692
|
}
|
|
@@ -701,21 +701,21 @@ const Da=1,Fa=2,Ma=t=>(...e)=>({_$litDirective$:t,values:e});class Pa{constructo
|
|
|
701
701
|
box-sizing: border-box;
|
|
702
702
|
overflow: hidden;
|
|
703
703
|
width: max-content;
|
|
704
|
-
max-width: ${
|
|
704
|
+
max-width: ${Ya};
|
|
705
705
|
text-align: center;
|
|
706
|
-
padding: ${
|
|
707
|
-
z-index: ${
|
|
706
|
+
padding: ${Za};
|
|
707
|
+
z-index: ${Va};
|
|
708
708
|
}
|
|
709
709
|
|
|
710
710
|
.ft-tooltip--content {
|
|
711
711
|
padding: 4px 8px;
|
|
712
|
-
border-radius: ${
|
|
713
|
-
background-color: ${
|
|
714
|
-
color: ${
|
|
712
|
+
border-radius: ${qa};
|
|
713
|
+
background-color: ${Ga};
|
|
714
|
+
color: ${Ha};
|
|
715
715
|
position: relative;
|
|
716
716
|
word-break: break-word;
|
|
717
717
|
}
|
|
718
|
-
`;var
|
|
718
|
+
`;var Ja=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Qa extends Gi{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 n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return de`
|
|
719
719
|
<div part="container"
|
|
720
720
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
721
721
|
@mouseenter=${this.onHover}
|
|
@@ -733,18 +733,18 @@ const Da=1,Fa=2,Ma=t=>(...e)=>({_$litDirective$:t,values:e});class Pa{constructo
|
|
|
733
733
|
</div>
|
|
734
734
|
</div>
|
|
735
735
|
</div>
|
|
736
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,e,i){return
|
|
736
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,e,i){return Wi(t,e,{platform:{..._i,getOffsetParent:t=>_i.getOffsetParent(t,Di)},middleware:[(o={crossAxis:!0},void 0===o&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=Ge(o,t),c={x:e,y:i},f=await oi(t,l),h=Je(Ve(r)),d=Ye(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=He(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=He(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...t,[d]:u,[h]:p});return{...y,data:{x:y.x-e,y:y.y-i}}}}),ni({allowedPlacements:[i]})]});var o}(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Qa.elementDefinitions={"ft-typography":Da},Qa.styles=Xa,Ja([I()],Qa.prototype,"text",void 0),Ja([I({type:Boolean})],Qa.prototype,"manual",void 0),Ja([I({type:Boolean})],Qa.prototype,"inline",void 0),Ja([I({type:Number})],Qa.prototype,"delay",void 0),Ja([I()],Qa.prototype,"position",void 0),Ja([T()],Qa.prototype,"slotNodes",void 0),Ja([A(".ft-tooltip--container")],Qa.prototype,"container",void 0),Ja([A(".ft-tooltip")],Qa.prototype,"tooltip",void 0),Ja([A(".ft-tooltip--content")],Qa.prototype,"tooltipContent",void 0),Ja([R()],Qa.prototype,"visible",void 0),Ja([U({passive:!0})],Qa.prototype,"onTouch",null),Ja([U({passive:!0})],Qa.prototype,"onHover",null),Ja([U({passive:!0})],Qa.prototype,"onOut",null),Ja([U({passive:!0})],Qa.prototype,"onClick",null),F("ft-tooltip")(Qa);
|
|
737
737
|
/**
|
|
738
738
|
* @license
|
|
739
739
|
* Copyright 2017 Google LLC
|
|
740
740
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
741
741
|
*/
|
|
742
|
-
class
|
|
742
|
+
class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===lt||null==t)return this.vt=void 0,this.et=t;if(t===st)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ts.directiveName="unsafeHTML",ts.resultType=1;const es=Pa(ts);var is,os,rs;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE=""}(is||(is={})),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=""}(os||(os={})),new Map([...["abw"].map((t=>[t,os.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,os.AUDIO])),...["avi"].map((t=>[t,os.AVI])),...["chm","xhs"].map((t=>[t,os.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,os.CODE])),...["csv"].map((t=>[t,os.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,os.DITA])),...["epub"].map((t=>[t,os.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,os.EXCEL])),...["flac"].map((t=>[t,os.FLAC])),...["gif"].map((t=>[t,os.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,os.GZIP])),...["html","htm","xhtml"].map((t=>[t,os.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,os.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,os.JPEG])),...["json"].map((t=>[t,os.JSON])),...["m4a","m4p"].map((t=>[t,os.M4A])),...["mov","qt"].map((t=>[t,os.MOV])),...["mp3"].map((t=>[t,os.MP3])),...["mp4","m4v"].map((t=>[t,os.MP4])),...["ogg","oga"].map((t=>[t,os.OGG])),...["pdf","ps"].map((t=>[t,os.PDF])),...["png"].map((t=>[t,os.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,os.POWERPOINT])),...["rar"].map((t=>[t,os.RAR])),...["stp"].map((t=>[t,os.STP])),...["txt","rtf","md","mdown"].map((t=>[t,os.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,os.VIDEO])),...["wav"].map((t=>[t,os.WAV])),...["wma"].map((t=>[t,os.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,os.WORD])),...["xml","xsl","rdf"].map((t=>[t,os.XML])),...["yaml","yml","x-yaml"].map((t=>[t,os.YAML])),...["zip"].map((t=>[t,os.ZIP]))]),os.ABW,os.AUDIO,os.AVI,os.CHM,os.CODE,os.CSV,os.DITA,os.EPUB,os.EXCEL,os.FLAC,os.GIF,os.GZIP,os.HTML,os.IMAGE,os.JPEG,os.JSON,os.M4A,os.MOV,os.MP3,os.MP4,os.OGG,os.PDF,os.PNG,os.POWERPOINT,os.RAR,os.STP,os.TEXT,os.UNKNOWN,os.VIDEO,os.WAV,os.WMA,os.WORD,os.XML,os.YAML,os.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(rs||(rs={}));var ns=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class as extends Gi{constructor(){super(...arguments),this.resolvedIcon=pe}render(){const t=this.variant&&Object.values(rs).includes(this.variant)?this.variant:rs.fluid_topics,e=t!==rs.material||!!this.value;return de`
|
|
743
743
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
744
|
-
${
|
|
744
|
+
${es(this.resolvedIcon)}
|
|
745
745
|
<slot ?hidden=${e}></slot>
|
|
746
746
|
</i>
|
|
747
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
747
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case rs.file_format:this.resolvedIcon=null!==(t=os[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case rs.material:this.resolvedIcon=this.value||pe;break;default:this.resolvedIcon=null!==(e=is[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}as.elementDefinitions={},as.styles=ba,ns([I()],as.prototype,"variant",void 0),ns([I()],as.prototype,"value",void 0),ns([R()],as.prototype,"resolvedIcon",void 0),ns([A("slot")],as.prototype,"slottedContent",void 0),F("ft-icon")(as);const ss={borderRadiusLeft:Re.extend("--ft-switch-option-border-radius-left","",We.borderRadiusL),borderRadiusRight:Re.extend("--ft-switch-option-border-radius-right","",We.borderRadiusL),borderWidthLeft:Re.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Re.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Re.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ls=Rt`
|
|
748
748
|
.ft-switch-option {
|
|
749
749
|
position: relative;
|
|
750
750
|
display: inline-block;
|
|
@@ -758,20 +758,20 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
758
758
|
}
|
|
759
759
|
|
|
760
760
|
.ft-switch-option--content {
|
|
761
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
762
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
761
|
+
--ft-switch-option-internal-line-height: calc(${Ea.fontSize} + 2px);
|
|
762
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Ea.iconSize});
|
|
763
763
|
|
|
764
764
|
border-style: solid;
|
|
765
|
-
border-color: ${
|
|
766
|
-
border-width: ${
|
|
767
|
-
border-radius: ${
|
|
765
|
+
border-color: ${Ea.borderColor};
|
|
766
|
+
border-width: ${ss.borderWidthVertical} ${ss.borderWidthRight} ${ss.borderWidthVertical} ${ss.borderWidthLeft};
|
|
767
|
+
border-radius: ${ss.borderRadiusLeft} ${ss.borderRadiusRight} ${ss.borderRadiusRight} ${ss.borderRadiusLeft};
|
|
768
768
|
display: flex;
|
|
769
769
|
align-items: center;
|
|
770
770
|
justify-content: center;
|
|
771
771
|
overflow: hidden;
|
|
772
|
-
${
|
|
772
|
+
${Ue(ga.size,Ea.iconSize)};
|
|
773
773
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
774
|
-
background-color: ${
|
|
774
|
+
background-color: ${Ea.backgroundColor};
|
|
775
775
|
-webkit-mask-image: radial-gradient(white, black);
|
|
776
776
|
}
|
|
777
777
|
|
|
@@ -780,28 +780,28 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
783
|
-
background-color: ${
|
|
784
|
-
border-radius: ${
|
|
783
|
+
background-color: ${Ea.selectedBackgroundColor};
|
|
784
|
+
border-radius: ${ss.borderRadiusLeft} ${ss.borderRadiusRight} ${ss.borderRadiusRight} ${ss.borderRadiusLeft};
|
|
785
785
|
position: absolute;
|
|
786
786
|
inset: 0;
|
|
787
787
|
content: "";
|
|
788
788
|
z-index: 1;
|
|
789
|
-
opacity: ${
|
|
789
|
+
opacity: ${We.opacityPrimaryOnSurfaceSelected};
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
.ft-switch-option--label {
|
|
793
|
-
color: ${
|
|
793
|
+
color: ${Ea.textColor};
|
|
794
794
|
overflow: hidden;
|
|
795
795
|
white-space: nowrap;
|
|
796
796
|
text-overflow: ellipsis;
|
|
797
797
|
display: block;
|
|
798
798
|
margin: 0 8px;
|
|
799
|
-
${
|
|
800
|
-
${
|
|
799
|
+
${Ue(ea.fontSize,Ea.fontSize)};
|
|
800
|
+
${Ue(ea.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
801
801
|
}
|
|
802
802
|
|
|
803
803
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
804
|
-
color: ${
|
|
804
|
+
color: ${Ea.selectedTextColor};
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
.ft-switch-option--label[hidden] {
|
|
@@ -809,7 +809,7 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
.ft-switch-option--ripple {
|
|
812
|
-
${
|
|
812
|
+
${Ue(fn.color,Ea.rippleColor)};
|
|
813
813
|
}
|
|
814
814
|
|
|
815
815
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -822,20 +822,20 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
822
822
|
|
|
823
823
|
ft-icon {
|
|
824
824
|
flex-shrink: 0;
|
|
825
|
-
color: ${
|
|
825
|
+
color: ${Ea.iconColor};
|
|
826
826
|
}
|
|
827
827
|
|
|
828
828
|
.ft-switch-option--selected ft-icon {
|
|
829
|
-
color: ${
|
|
829
|
+
color: ${Ea.selectedTextColor};
|
|
830
830
|
}
|
|
831
|
-
`;var
|
|
832
|
-
<label part="label" for="input" class=${
|
|
831
|
+
`;var cs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fs extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class hs extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class ds extends Gi{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new hs(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(de`
|
|
832
|
+
<label part="label" for="input" class=${ja(t)}
|
|
833
833
|
@click=${this.onChange}>
|
|
834
834
|
<div class="ft-switch-option--content">
|
|
835
835
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
836
836
|
<ft-typography part="text"
|
|
837
837
|
variant="button"
|
|
838
|
-
class="ft-switch-option--label ${
|
|
838
|
+
class="ft-switch-option--label ${on?"ft-safari-ellipsis-fix":""}"
|
|
839
839
|
?hidden=${!this.hasTextContent()}>
|
|
840
840
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
841
841
|
</ft-typography>
|
|
@@ -844,29 +844,29 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
844
844
|
</label>
|
|
845
845
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
846
846
|
.checked=${this.selected}>
|
|
847
|
-
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:
|
|
847
|
+
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:de`
|
|
848
848
|
<ft-tooltip part="tooltip"
|
|
849
849
|
text="${this.getLabel()}"
|
|
850
850
|
position="${this.tooltipPosition}">
|
|
851
851
|
${t}
|
|
852
852
|
</ft-tooltip>
|
|
853
|
-
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new
|
|
853
|
+
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new fs(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?de`
|
|
854
854
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
855
|
-
`:
|
|
856
|
-
<div @keydown=${this.onKeyDown} tabindex="0" class="${
|
|
855
|
+
`:pe}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}ds.elementDefinitions={"ft-ripple":Ka,"ft-typography":Da,"ft-tooltip":Qa,"ft-icon":as},ds.styles=[Yi,ls],cs([I()],ds.prototype,"value",void 0),cs([I()],ds.prototype,"icon",void 0),cs([I()],ds.prototype,"iconVariant",void 0),cs([I()],ds.prototype,"label",void 0),cs([I()],ds.prototype,"tooltipPosition",void 0),cs([I({type:Boolean,reflect:!0})],ds.prototype,"selected",void 0),cs([I({type:Boolean})],ds.prototype,"trailingIcon",void 0),cs([I({type:Boolean})],ds.prototype,"unselectable",void 0),cs([A(".ft-switch-option--content slot")],ds.prototype,"slottedContent",void 0),cs([A(".ft-switch-option--input")],ds.prototype,"input",void 0);var us=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ps extends CustomEvent{constructor(t){super("change",{detail:t})}}class ys extends Gi{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return de`
|
|
856
|
+
<div @keydown=${this.onKeyDown} tabindex="0" class="${ja(t)}">
|
|
857
857
|
<slot @slotchange=${this.onSlotchange}
|
|
858
858
|
@option-change=${this.onOptionChangeByScript}
|
|
859
859
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
860
860
|
></slot>
|
|
861
861
|
</div>
|
|
862
|
-
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof
|
|
862
|
+
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof ds&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new ps(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}ys.elementDefinitions={},ys.styles=Rt`
|
|
863
863
|
:host {
|
|
864
864
|
display: inline-block;
|
|
865
865
|
}
|
|
866
866
|
|
|
867
867
|
.ft-switch {
|
|
868
|
-
border-radius: ${
|
|
869
|
-
outline-color: ${
|
|
868
|
+
border-radius: ${Ea.borderRadius};
|
|
869
|
+
outline-color: ${Ea.outlineColor};
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
.ft-switch slot {
|
|
@@ -875,25 +875,25 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
878
|
-
${
|
|
879
|
-
${
|
|
880
|
-
${
|
|
878
|
+
${Ue(ss.borderRadiusLeft,"0")};
|
|
879
|
+
${Ue(ss.borderRadiusRight,"0")};
|
|
880
|
+
${Ue(ss.borderWidthLeft,"0")};
|
|
881
881
|
}
|
|
882
882
|
|
|
883
883
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
884
|
-
${
|
|
885
|
-
${
|
|
884
|
+
${Ue(ss.borderRadiusLeft,Ea.borderRadius)};
|
|
885
|
+
${Ue(ss.borderWidthLeft,"1px")};
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
889
|
-
${
|
|
889
|
+
${Ue(ss.borderRadiusRight,Ea.borderRadius)};
|
|
890
890
|
}
|
|
891
891
|
|
|
892
892
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
893
893
|
--ft-switch-internal-vertical-padding: 2px;
|
|
894
894
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
895
895
|
}
|
|
896
|
-
`,
|
|
896
|
+
`,us([I({type:Boolean})],ys.prototype,"dense",void 0),us([I({type:Boolean})],ys.prototype,"unselectable",void 0),us([A(".ft-switch slot")],ys.prototype,"slottedContent",void 0),us([R()],ys.prototype,"selectedOption",void 0),us([A(".ft-switch")],ys.prototype,"ftSwitchDiv",void 0),F("ft-switch")(ys),F("ft-switch-option")(ds);const gs=Re.external(We.colorOutline,"Design system"),bs=Re.external(We.colorOnSurfaceMedium,"Design system"),vs=Rt`
|
|
897
897
|
:host {
|
|
898
898
|
display: block;
|
|
899
899
|
}
|
|
@@ -904,17 +904,17 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
904
904
|
|
|
905
905
|
ft-icon {
|
|
906
906
|
transform: rotate(-45deg);
|
|
907
|
-
color: ${
|
|
907
|
+
color: ${gs};
|
|
908
908
|
}
|
|
909
909
|
|
|
910
910
|
.ft-resizer--dragging ft-icon,
|
|
911
911
|
.ft-resizer:hover ft-icon {
|
|
912
|
-
color: ${
|
|
912
|
+
color: ${bs};
|
|
913
913
|
}
|
|
914
|
-
`;var
|
|
914
|
+
`;var ms=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class xs extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class ws extends Gi{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=rs.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return de`
|
|
915
915
|
<style>
|
|
916
916
|
.ft-resizer {
|
|
917
|
-
cursor: ${
|
|
917
|
+
cursor: ${It(this.cursor)}
|
|
918
918
|
}
|
|
919
919
|
</style>
|
|
920
920
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
@@ -922,25 +922,25 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
922
922
|
@touchstart=${this.initDragFromTouch}>
|
|
923
923
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
924
924
|
</div>
|
|
925
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new
|
|
925
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new xs(i,o))}}ws.elementDefinitions={"ft-icon":as},ws.styles=[qi,vs],ms([I({type:Number})],ws.prototype,"initialWidth",void 0),ms([I({type:Number})],ws.prototype,"initialHeight",void 0),ms([I()],ws.prototype,"icon",void 0),ms([I()],ws.prototype,"iconVariant",void 0),ms([I()],ws.prototype,"cursor",void 0),ms([R()],ws.prototype,"dragging",void 0),ms([U({passive:!0})],ws.prototype,"initDragFromMouse",null),ms([U({passive:!0})],ws.prototype,"initDragFromTouch",null),F("ft-resizer")(ws);const Os={fontSize:Re.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Re.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Re.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Re.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Re.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Re.extend("--ft-input-label-border-color","",We.colorOutline),textColor:Re.extend("--ft-input-label-text-color","",We.colorOnSurfaceMedium),disabledTextColor:Re.extend("--ft-input-label-disabled-text-color","",We.colorOnSurfaceDisabled),colorSurface:Re.external(We.colorSurface,"Design system"),borderRadiusS:Re.external(We.borderRadiusS,"Design system"),colorError:Re.external(We.colorError,"Design system")},Ss=Rt`
|
|
926
926
|
.ft-input-label {
|
|
927
927
|
position: absolute;
|
|
928
928
|
inset: 0;
|
|
929
929
|
display: flex;
|
|
930
|
-
background-color: ${
|
|
931
|
-
border-radius: ${
|
|
930
|
+
background-color: ${Os.colorSurface};
|
|
931
|
+
border-radius: ${Os.borderRadiusS} ${Os.borderRadiusS} 0 0;
|
|
932
932
|
}
|
|
933
933
|
|
|
934
934
|
.ft-input-label--outlined {
|
|
935
|
-
border-radius: ${
|
|
935
|
+
border-radius: ${Os.borderRadiusS};
|
|
936
936
|
}
|
|
937
937
|
|
|
938
938
|
.ft-input-label {
|
|
939
|
-
border-color: ${
|
|
939
|
+
border-color: ${Os.borderColor};
|
|
940
940
|
}
|
|
941
941
|
|
|
942
942
|
.ft-input-label.ft-input-label--in-error {
|
|
943
|
-
border-color: ${
|
|
943
|
+
border-color: ${Os.colorError}
|
|
944
944
|
}
|
|
945
945
|
|
|
946
946
|
.ft-input-label:before,
|
|
@@ -953,7 +953,7 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
953
953
|
}
|
|
954
954
|
|
|
955
955
|
.ft-input-label:before {
|
|
956
|
-
width: calc(${
|
|
956
|
+
width: calc(${Os.horizontalSpacing} - 4px);
|
|
957
957
|
flex-shrink: 0;
|
|
958
958
|
}
|
|
959
959
|
|
|
@@ -969,20 +969,20 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
969
969
|
border-bottom-width: 1px;
|
|
970
970
|
border-bottom-style: solid;
|
|
971
971
|
border-color: inherit;
|
|
972
|
-
color: ${
|
|
972
|
+
color: ${Os.textColor};
|
|
973
973
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
974
|
-
max-width: calc(${
|
|
974
|
+
max-width: calc(${Os.labelMaxWidth} - 2 * (${Os.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
975
975
|
text-overflow: ellipsis;
|
|
976
|
-
${
|
|
977
|
-
${
|
|
976
|
+
${Ue(jn.fontSize,Os.fontSize)};
|
|
977
|
+
${Ue(jn.lineHeight,Os.fontSize)};
|
|
978
978
|
}
|
|
979
979
|
|
|
980
980
|
.ft-input-label--in-error .ft-input-label--text {
|
|
981
|
-
color: ${
|
|
981
|
+
color: ${Os.colorError}
|
|
982
982
|
}
|
|
983
983
|
|
|
984
984
|
.ft-input-label--disabled .ft-input-label--text {
|
|
985
|
-
color: ${
|
|
985
|
+
color: ${Os.disabledTextColor};
|
|
986
986
|
}
|
|
987
987
|
|
|
988
988
|
.ft-input-label--hidden-text {
|
|
@@ -999,19 +999,19 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
999
999
|
overflow: hidden;
|
|
1000
1000
|
white-space: nowrap;
|
|
1001
1001
|
text-overflow: ellipsis;
|
|
1002
|
-
padding: ${
|
|
1003
|
-
margin: calc(${
|
|
1002
|
+
padding: ${Os.verticalSpacing} 4px;
|
|
1003
|
+
margin: calc(${Os.verticalSpacing} * -1) 0;
|
|
1004
1004
|
max-width: 100%;
|
|
1005
1005
|
box-sizing: border-box;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
.ft-input-label--raised .ft-input-label--text {
|
|
1009
|
-
${
|
|
1010
|
-
${
|
|
1009
|
+
${Ue(jn.fontSize,Os.raisedFontSize)};
|
|
1010
|
+
${Ue(jn.lineHeight,Os.raisedFontSize)};
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1014
|
-
top: ${
|
|
1014
|
+
top: ${Os.verticalSpacing};
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
1017
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -1024,36 +1024,36 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
1024
1024
|
.ft-input-label--outlined:before {
|
|
1025
1025
|
border-left-width: 1px;
|
|
1026
1026
|
border-left-style: solid;
|
|
1027
|
-
border-radius: ${
|
|
1027
|
+
border-radius: ${Os.borderRadiusS} 0 0 ${Os.borderRadiusS};
|
|
1028
1028
|
}
|
|
1029
1029
|
|
|
1030
1030
|
.ft-input-label--outlined:after {
|
|
1031
1031
|
border-right-width: 1px;
|
|
1032
1032
|
border-right-style: solid;
|
|
1033
|
-
border-radius: 0 ${
|
|
1033
|
+
border-radius: 0 ${Os.borderRadiusS} ${Os.borderRadiusS} 0;
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1037
1037
|
padding: 2px 4px;
|
|
1038
|
-
z-index: ${
|
|
1039
|
-
background-color: ${
|
|
1040
|
-
border-radius: ${
|
|
1038
|
+
z-index: ${Os.raisedZIndex};
|
|
1039
|
+
background-color: ${Os.colorSurface};
|
|
1040
|
+
border-radius: ${Os.borderRadiusS};
|
|
1041
1041
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
1042
1042
|
}
|
|
1043
1043
|
|
|
1044
1044
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1045
1045
|
border-top: none;
|
|
1046
1046
|
}
|
|
1047
|
-
`;var
|
|
1048
|
-
<div class="${
|
|
1049
|
-
${this.text?
|
|
1047
|
+
`;var Ns=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class $s extends Gi{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return de`
|
|
1048
|
+
<div class="${ja(t)}">
|
|
1049
|
+
${this.text?de`
|
|
1050
1050
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1051
1051
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
1052
1052
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1053
1053
|
</div>
|
|
1054
1054
|
`:null}
|
|
1055
1055
|
</div>
|
|
1056
|
-
`}}
|
|
1056
|
+
`}}$s.elementDefinitions={},$s.styles=[la,Ss],Ns([I({type:String})],$s.prototype,"text",void 0),Ns([I({type:Boolean})],$s.prototype,"raised",void 0),Ns([I({type:Boolean})],$s.prototype,"outlined",void 0),Ns([I({type:Boolean})],$s.prototype,"disabled",void 0),Ns([I({type:Boolean})],$s.prototype,"error",void 0),F("ft-input-label")($s);const Cs={fontSize:Re.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-area-helper-color","",We.colorOnSurfaceMedium),colorPrimary:Re.external(We.colorPrimary,"Design system"),colorOnSurface:Re.external(We.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(We.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(We.borderRadiusS,"Design system"),colorError:Re.external(We.colorError,"Design system")},Es=Rt`
|
|
1057
1057
|
*:focus {
|
|
1058
1058
|
outline: none;
|
|
1059
1059
|
}
|
|
@@ -1065,10 +1065,10 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
1067
|
ft-input-label {
|
|
1068
|
-
${
|
|
1069
|
-
${
|
|
1070
|
-
${
|
|
1071
|
-
${
|
|
1068
|
+
${Ue(Os.fontSize,Cs.fontSize)};
|
|
1069
|
+
${Ue(Os.raisedFontSize,Cs.labelSize)};
|
|
1070
|
+
${Ue(Os.verticalSpacing,Cs.verticalSpacing)};
|
|
1071
|
+
${Ue(Os.horizontalSpacing,Cs.horizontalSpacing)};
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
1074
1074
|
.ft-text-area--main-panel {
|
|
@@ -1086,8 +1086,8 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
1088
|
.ft-text-area--input-panel ft-ripple {
|
|
1089
|
-
${
|
|
1090
|
-
${
|
|
1089
|
+
${Ue(fn.opacityContentOnSurfaceHover,"0.08")};
|
|
1090
|
+
${Ue(fn.opacityContentOnSurfacePressed,"0.04")};
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
1093
|
.ft-text-area--input {
|
|
@@ -1099,12 +1099,12 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
1099
1099
|
align-self: stretch;
|
|
1100
1100
|
resize: none;
|
|
1101
1101
|
|
|
1102
|
-
${
|
|
1103
|
-
${
|
|
1104
|
-
color: ${
|
|
1102
|
+
${Ue(_n.fontSize,Cs.fontSize)};
|
|
1103
|
+
${Ue(_n.lineHeight,Cs.fontSize)};
|
|
1104
|
+
color: ${Cs.colorOnSurface};
|
|
1105
1105
|
|
|
1106
|
-
padding: 0 ${
|
|
1107
|
-
margin: calc(${
|
|
1106
|
+
padding: 0 ${Cs.horizontalSpacing};
|
|
1107
|
+
margin: calc(${Cs.verticalSpacing} + ${Cs.labelSize} / 2) 0 ${Cs.verticalSpacing} 0;
|
|
1108
1108
|
|
|
1109
1109
|
border: none;
|
|
1110
1110
|
background: none;
|
|
@@ -1113,7 +1113,7 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
1115
|
.ft-text-area--disabled .ft-text-area--input {
|
|
1116
|
-
color: ${
|
|
1116
|
+
color: ${Cs.colorOnSurfaceDisabled};
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
1119
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -1121,49 +1121,49 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
1121
1121
|
}
|
|
1122
1122
|
|
|
1123
1123
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1124
|
-
${
|
|
1125
|
-
${
|
|
1124
|
+
${Ue(Os.borderColor,Cs.colorPrimary)};
|
|
1125
|
+
${Ue(Os.textColor,Cs.colorPrimary)};
|
|
1126
1126
|
}
|
|
1127
1127
|
|
|
1128
1128
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
1129
|
-
border-radius: ${
|
|
1129
|
+
border-radius: ${Cs.borderRadiusS} ${Cs.borderRadiusS} 0 0;
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
1132
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
1133
1133
|
align-self: stretch;
|
|
1134
|
-
margin-bottom: ${
|
|
1135
|
-
margin-top: calc(${
|
|
1134
|
+
margin-bottom: ${Cs.verticalSpacing};
|
|
1135
|
+
margin-top: calc(${Cs.labelSize} + 2 * ${Cs.verticalSpacing});
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
1138
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
1139
|
-
border-radius: ${
|
|
1139
|
+
border-radius: ${Cs.borderRadiusS};
|
|
1140
1140
|
}
|
|
1141
1141
|
|
|
1142
1142
|
.ft-text-area--helper-text {
|
|
1143
|
-
padding: 0 12px 0 ${
|
|
1144
|
-
color: ${
|
|
1143
|
+
padding: 0 12px 0 ${Cs.horizontalSpacing};
|
|
1144
|
+
color: ${Cs.helperColor};
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
1147
|
.ft-text-area--in-error .ft-text-area--input,
|
|
1148
1148
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
1149
|
-
color: ${
|
|
1149
|
+
color: ${Cs.colorError};
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
1152
|
ft-resizer {
|
|
1153
1153
|
position: absolute;
|
|
1154
1154
|
bottom: 0;
|
|
1155
1155
|
}
|
|
1156
|
-
`;var
|
|
1156
|
+
`;var ks=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Is extends(Jr(Gi,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return de`
|
|
1157
1157
|
<style>
|
|
1158
1158
|
.ft-text-area--main-panel {
|
|
1159
|
-
height: calc(4 * ${
|
|
1159
|
+
height: calc(4 * ${Cs.verticalSpacing} + ${Cs.labelSize} + ${Cs.fontSize} + ${this.height}px);
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
1162
|
ft-resizer {
|
|
1163
1163
|
right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1164
1164
|
}
|
|
1165
1165
|
</style>
|
|
1166
|
-
<div class="${
|
|
1166
|
+
<div class="${ja(t)}">
|
|
1167
1167
|
<div class="ft-text-area--main-panel">
|
|
1168
1168
|
<ft-input-label text="${this.label}"
|
|
1169
1169
|
?disabled=${this.disabled}
|
|
@@ -1173,7 +1173,7 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
1173
1173
|
></ft-input-label>
|
|
1174
1174
|
<div class="ft-text-area--input-panel"
|
|
1175
1175
|
aria-label="${this.label}">
|
|
1176
|
-
${this.outlined?null:
|
|
1176
|
+
${this.outlined?null:de`
|
|
1177
1177
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1178
1178
|
`}
|
|
1179
1179
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -1190,53 +1190,53 @@ class Qa extends Pa{constructor(t){if(super(t),this.et=st,t.type!==Fa)throw Erro
|
|
|
1190
1190
|
initialHeight="${this.height}"
|
|
1191
1191
|
cursor="ns-resize"></ft-resizer>
|
|
1192
1192
|
</div>
|
|
1193
|
-
${this.helper?
|
|
1193
|
+
${this.helper?de`
|
|
1194
1194
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
1195
1195
|
${this.helper}
|
|
1196
1196
|
</ft-typography>`:void 0}
|
|
1197
1197
|
</div>
|
|
1198
|
-
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}
|
|
1198
|
+
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Is.elementDefinitions={"ft-input-label":$s,"ft-resizer":ws,"ft-ripple":Ka,"ft-typography":Da},Is.styles=[aa,Es],ks([I({type:String})],Is.prototype,"label",void 0),ks([I({reflect:!0})],Is.prototype,"value",void 0),ks([I({type:String})],Is.prototype,"helper",void 0),ks([I({type:Boolean})],Is.prototype,"outlined",void 0),ks([I({type:Boolean})],Is.prototype,"disabled",void 0),ks([I({type:Boolean})],Is.prototype,"error",void 0),ks([I({type:Number,reflect:!0})],Is.prototype,"height",void 0),ks([A("textarea")],Is.prototype,"textarea",void 0),ks([R()],Is.prototype,"focused",void 0),F("ft-text-area")(Is);
|
|
1199
1199
|
/**
|
|
1200
1200
|
* @license
|
|
1201
1201
|
* Copyright 2020 Google LLC
|
|
1202
1202
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1203
1203
|
*/
|
|
1204
|
-
const{D:
|
|
1204
|
+
const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Us(),r),n=o.insertBefore(Us(),r);i=new Rs(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},As=(t,e,i=t)=>(t._$AI(e,i),t),Ts={},_s=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Ws=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ds=Pa(class extends za{constructor(t){if(super(t),t.type!==Ma)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,d=r.length-1,u=0,p=n.length-1;for(;h<=d&&u<=p;)if(null===r[h])h++;else if(null===r[d])d--;else if(s[h]===a[u])l[u]=As(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=As(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=As(r[h],n[p]),Ls(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=As(r[d],n[u]),Ls(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Ws(a,u,p),f=Ws(s,h,d)),c.has(s[h]))if(c.has(s[d])){const e=f.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Ls(t,r[h]);As(e,n[u]),l[u]=e}else l[u]=As(i,n[u]),Ls(t,r[h],i),r[e]=null;u++}else _s(r[d]),d--;else _s(r[h]),h++;for(;u<=p;){const e=Ls(t,l[p+1]);As(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&_s(t)}return this.dt=a,((t,e=Ts)=>{t._$AH=e})(t,l),st}});
|
|
1205
1205
|
/**
|
|
1206
1206
|
* @license
|
|
1207
1207
|
* Copyright 2017 Google LLC
|
|
1208
1208
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1209
|
-
*/class
|
|
1209
|
+
*/class Fs extends Gi{render(){return de`
|
|
1210
1210
|
<div class="ft-loader">
|
|
1211
1211
|
<div></div>
|
|
1212
1212
|
<div></div>
|
|
1213
1213
|
<div></div>
|
|
1214
1214
|
<div></div>
|
|
1215
1215
|
</div>
|
|
1216
|
-
`}}
|
|
1216
|
+
`}}Fs.styles=ya,F("ft-loader")(Fs);var Ms=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ps extends(Jr(Gi,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(de`
|
|
1217
1217
|
<button part="button"
|
|
1218
|
-
class="${
|
|
1218
|
+
class="${ja(this.buttonClasses)}"
|
|
1219
1219
|
aria-label="${this.getLabel()}"
|
|
1220
1220
|
?disabled=${this.isDisabled()}>
|
|
1221
1221
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1222
1222
|
<ft-typography part="label"
|
|
1223
1223
|
variant=${this.typographyVariant}
|
|
1224
1224
|
element="span"
|
|
1225
|
-
class="ft-button--label ${
|
|
1225
|
+
class="ft-button--label ${on?"ft-safari-ellipsis-fix":""}"
|
|
1226
1226
|
?hidden=${!this.hasTextContent()}>
|
|
1227
1227
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1228
1228
|
</ft-typography>
|
|
1229
1229
|
${this.resolveIcon()}
|
|
1230
1230
|
</button>
|
|
1231
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
1231
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?de`
|
|
1232
1232
|
<ft-tooltip part="tooltip"
|
|
1233
1233
|
text="${this.getLabel()}"
|
|
1234
1234
|
position="${this.tooltipPosition}">
|
|
1235
1235
|
${t}
|
|
1236
1236
|
</ft-tooltip>
|
|
1237
|
-
`:t}resolveIcon(){return this.loading?
|
|
1238
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1239
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
1237
|
+
`:t}resolveIcon(){return this.loading?de`
|
|
1238
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?de`
|
|
1239
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:pe}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}}Ps.elementDefinitions={"ft-ripple":Ka,"ft-tooltip":Qa,"ft-typography":Da,"ft-icon":as,"ft-loader":Fs},Ms([I({type:String,reflect:!0})],Ps.prototype,"role",void 0),Ms([I()],Ps.prototype,"type",void 0),Ms([I({type:Boolean})],Ps.prototype,"disabled",void 0),Ms([I()],Ps.prototype,"label",void 0),Ms([I()],Ps.prototype,"icon",void 0),Ms([I()],Ps.prototype,"iconVariant",void 0),Ms([I({type:Boolean})],Ps.prototype,"trailingIcon",void 0),Ms([I({type:Boolean})],Ps.prototype,"loading",void 0),Ms([I()],Ps.prototype,"tooltipPosition",void 0),Ms([I({type:Boolean})],Ps.prototype,"hideTooltip",void 0),Ms([I({type:Boolean})],Ps.prototype,"forceTooltip",void 0),Ms([A(".ft-button")],Ps.prototype,"button",void 0),Ms([A(".ft-button--label slot")],Ps.prototype,"slottedContent",void 0);var zs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class js extends Ps{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"}}js.styles=[Yi,Ca],zs([I({type:Boolean})],js.prototype,"primary",void 0),zs([I({type:Boolean})],js.prototype,"outlined",void 0),zs([I({type:Boolean})],js.prototype,"dense",void 0),zs([I({type:Boolean})],js.prototype,"round",void 0);const Bs=[Rt`
|
|
1240
1240
|
:host {
|
|
1241
1241
|
display: inline-block;
|
|
1242
1242
|
max-width: 100%;
|
|
@@ -1286,7 +1286,7 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1286
1286
|
}
|
|
1287
1287
|
|
|
1288
1288
|
.ft-button:focus-visible {
|
|
1289
|
-
outline-color: ${
|
|
1289
|
+
outline-color: ${_e.focusFocusRingColor};
|
|
1290
1290
|
outline-style: solid;
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
@@ -1315,154 +1315,154 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1315
1315
|
/** Primary styles **/
|
|
1316
1316
|
|
|
1317
1317
|
.ft-button--primary {
|
|
1318
|
-
${
|
|
1318
|
+
${Ue(pa.color,_e.primaryIconColor)};
|
|
1319
1319
|
|
|
1320
|
-
${
|
|
1321
|
-
${
|
|
1322
|
-
${
|
|
1323
|
-
${
|
|
1324
|
-
${
|
|
1320
|
+
${Ue(fn.color,_e.primaryStateLayerColor)};
|
|
1321
|
+
${Ue(fn.opacityContentOnSurfaceHover,_e.primaryStateLayerOpacityHover)};
|
|
1322
|
+
${Ue(fn.opacityContentOnSurfaceFocused,_e.primaryStateLayerOpacityFocus)};
|
|
1323
|
+
${Ue(fn.opacityContentOnSurfaceSelected,_e.primaryStateLayerOpacityActive)};
|
|
1324
|
+
${Ue(fn.opacityContentOnSurfacePressed,_e.primaryStateLayerOpacityActive)};
|
|
1325
1325
|
|
|
1326
|
-
background-color: ${
|
|
1327
|
-
color: ${
|
|
1326
|
+
background-color: ${_e.primaryBackgroundColor};
|
|
1327
|
+
color: ${_e.primaryColor};
|
|
1328
1328
|
border-style: none;
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
.ft-button--primary[disabled] {
|
|
1332
|
-
opacity: ${
|
|
1332
|
+
opacity: ${_e.primaryComponentOpacityDisabled};
|
|
1333
1333
|
}
|
|
1334
1334
|
|
|
1335
1335
|
.ft-button--primary ft-icon {
|
|
1336
|
-
color: ${
|
|
1336
|
+
color: ${_e.primaryIconColor};
|
|
1337
1337
|
}
|
|
1338
1338
|
|
|
1339
1339
|
/** Secondary styles **/
|
|
1340
1340
|
|
|
1341
1341
|
.ft-button--secondary {
|
|
1342
|
-
${
|
|
1342
|
+
${Ue(pa.color,_e.secondaryIconColor)};
|
|
1343
1343
|
|
|
1344
|
-
${
|
|
1345
|
-
${
|
|
1346
|
-
${
|
|
1347
|
-
${
|
|
1348
|
-
${
|
|
1344
|
+
${Ue(fn.color,_e.secondaryStateLayerColor)};
|
|
1345
|
+
${Ue(fn.opacityContentOnSurfaceHover,_e.secondaryStateLayerOpacityHover)};
|
|
1346
|
+
${Ue(fn.opacityContentOnSurfaceFocused,_e.secondaryStateLayerOpacityFocus)};
|
|
1347
|
+
${Ue(fn.opacityContentOnSurfaceSelected,_e.secondaryStateLayerOpacityActive)};
|
|
1348
|
+
${Ue(fn.opacityContentOnSurfacePressed,_e.secondaryStateLayerOpacityActive)};
|
|
1349
1349
|
|
|
1350
|
-
background-color: ${
|
|
1351
|
-
color: ${
|
|
1352
|
-
border-color: ${
|
|
1350
|
+
background-color: ${_e.secondaryBackgroundColor};
|
|
1351
|
+
color: ${_e.secondaryColor};
|
|
1352
|
+
border-color: ${_e.secondaryBorderColor};
|
|
1353
1353
|
border-style: solid;
|
|
1354
1354
|
}
|
|
1355
1355
|
|
|
1356
1356
|
.ft-button--secondary[disabled] {
|
|
1357
|
-
opacity: ${
|
|
1357
|
+
opacity: ${_e.secondaryComponentOpacityDisabled};
|
|
1358
1358
|
}
|
|
1359
1359
|
|
|
1360
1360
|
.ft-button--secondary ft-icon {
|
|
1361
|
-
color: ${
|
|
1361
|
+
color: ${_e.secondaryIconColor};
|
|
1362
1362
|
}
|
|
1363
1363
|
|
|
1364
1364
|
/** Tertiary styles **/
|
|
1365
1365
|
|
|
1366
1366
|
.ft-button--tertiary {
|
|
1367
|
-
${
|
|
1367
|
+
${Ue(pa.color,_e.tertiaryIconColor)};
|
|
1368
1368
|
|
|
1369
|
-
${
|
|
1370
|
-
${
|
|
1371
|
-
${
|
|
1372
|
-
${
|
|
1373
|
-
${
|
|
1369
|
+
${Ue(fn.color,_e.tertiaryStateLayerColor)};
|
|
1370
|
+
${Ue(fn.opacityContentOnSurfaceHover,_e.tertiaryStateLayerOpacityHover)};
|
|
1371
|
+
${Ue(fn.opacityContentOnSurfaceFocused,_e.tertiaryStateLayerOpacityFocus)};
|
|
1372
|
+
${Ue(fn.opacityContentOnSurfaceSelected,_e.tertiaryStateLayerOpacityActive)};
|
|
1373
|
+
${Ue(fn.opacityContentOnSurfacePressed,_e.tertiaryStateLayerOpacityActive)};
|
|
1374
1374
|
|
|
1375
|
-
background-color: ${
|
|
1376
|
-
color: ${
|
|
1375
|
+
background-color: ${_e.tertiaryBackgroundColor};
|
|
1376
|
+
color: ${_e.tertiaryColor};
|
|
1377
1377
|
border-style: none;
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
1380
|
.ft-button--tertiary[disabled] {
|
|
1381
|
-
opacity: ${
|
|
1381
|
+
opacity: ${_e.tertiaryComponentOpacityDisabled};
|
|
1382
1382
|
}
|
|
1383
1383
|
|
|
1384
1384
|
.ft-button--tertiary ft-icon {
|
|
1385
|
-
color: ${
|
|
1385
|
+
color: ${_e.tertiaryIconColor};
|
|
1386
1386
|
}
|
|
1387
1387
|
|
|
1388
1388
|
/** Neutral styles **/
|
|
1389
1389
|
|
|
1390
1390
|
.ft-button--neutral {
|
|
1391
|
-
${
|
|
1391
|
+
${Ue(pa.color,_e.neutralIconColor)};
|
|
1392
1392
|
|
|
1393
|
-
${
|
|
1394
|
-
${
|
|
1395
|
-
${
|
|
1396
|
-
${
|
|
1397
|
-
${
|
|
1393
|
+
${Ue(fn.backgroundColor,_e.neutralStateLayerColor)};
|
|
1394
|
+
${Ue(fn.opacityContentOnSurfaceHover,_e.neutralStateLayerOpacityHover)};
|
|
1395
|
+
${Ue(fn.opacityContentOnSurfaceFocused,_e.neutralStateLayerOpacityFocus)};
|
|
1396
|
+
${Ue(fn.opacityContentOnSurfaceSelected,_e.neutralStateLayerOpacityActive)};
|
|
1397
|
+
${Ue(fn.opacityContentOnSurfacePressed,_e.neutralStateLayerOpacityActive)};
|
|
1398
1398
|
|
|
1399
|
-
background-color: ${
|
|
1400
|
-
color: ${
|
|
1399
|
+
background-color: ${_e.neutralBackgroundColor};
|
|
1400
|
+
color: ${_e.neutralColor};
|
|
1401
1401
|
border-style: none;
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
1404
|
.ft-button--neutral[disabled] {
|
|
1405
|
-
opacity: ${
|
|
1405
|
+
opacity: ${_e.neutralComponentOpacityDisabled};
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
1408
|
.ft-button--neutral ft-icon {
|
|
1409
|
-
color: ${
|
|
1409
|
+
color: ${_e.neutralIconColor};
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
1412
|
/** Large styles **/
|
|
1413
1413
|
|
|
1414
1414
|
.ft-button--large {
|
|
1415
|
-
${
|
|
1416
|
-
${
|
|
1415
|
+
${Ue(ga.size,_e.largeIconSize)};
|
|
1416
|
+
${Ue(pa.size,_e.largeIconSize)};
|
|
1417
1417
|
|
|
1418
|
-
height: ${
|
|
1419
|
-
padding: 0 ${
|
|
1420
|
-
gap: ${
|
|
1421
|
-
border-radius: ${
|
|
1422
|
-
border-width: ${
|
|
1418
|
+
height: ${_e.largeHeight};
|
|
1419
|
+
padding: 0 ${_e.largeHorizontalPadding};
|
|
1420
|
+
gap: ${_e.largeGap};
|
|
1421
|
+
border-radius: ${_e.largeBorderRadius};
|
|
1422
|
+
border-width: ${_e.largeBorderWidth};
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
1425
|
.ft-button--large:focus-visible {
|
|
1426
|
-
outline-width: ${
|
|
1427
|
-
outline-offset: ${
|
|
1426
|
+
outline-width: ${_e.largeFocusOutlineWidth};
|
|
1427
|
+
outline-offset: ${_e.largeFocusOutlineOffset};
|
|
1428
1428
|
}
|
|
1429
1429
|
|
|
1430
1430
|
.ft-button--large.ft-button--icon-only {
|
|
1431
|
-
width: ${
|
|
1431
|
+
width: ${_e.largeIconOnlyWidth};
|
|
1432
1432
|
padding: unset;
|
|
1433
1433
|
}
|
|
1434
1434
|
|
|
1435
1435
|
/** Small styles **/
|
|
1436
1436
|
|
|
1437
1437
|
.ft-button--small {
|
|
1438
|
-
${
|
|
1439
|
-
${
|
|
1438
|
+
${Ue(ga.size,_e.smallIconSize)};
|
|
1439
|
+
${Ue(pa.size,_e.smallIconSize)};
|
|
1440
1440
|
|
|
1441
|
-
height: ${
|
|
1442
|
-
padding: 0 ${
|
|
1443
|
-
gap: ${
|
|
1444
|
-
border-radius: ${
|
|
1445
|
-
border-width: ${
|
|
1441
|
+
height: ${_e.smallHeight};
|
|
1442
|
+
padding: 0 ${_e.smallHorizontalPadding};
|
|
1443
|
+
gap: ${_e.smallGap};
|
|
1444
|
+
border-radius: ${_e.smallBorderRadius};
|
|
1445
|
+
border-width: ${_e.smallBorderWidth};
|
|
1446
1446
|
}
|
|
1447
1447
|
|
|
1448
1448
|
.ft-button--small:focus-visible {
|
|
1449
|
-
outline-width: ${
|
|
1450
|
-
outline-offset: ${
|
|
1449
|
+
outline-width: ${_e.smallFocusOutlineWidth};
|
|
1450
|
+
outline-offset: ${_e.smallFocusOutlineOffset};
|
|
1451
1451
|
}
|
|
1452
1452
|
|
|
1453
1453
|
.ft-button--small.ft-button--icon-only {
|
|
1454
|
-
width: ${
|
|
1454
|
+
width: ${_e.smallIconOnlyWidth};
|
|
1455
1455
|
padding: unset;
|
|
1456
1456
|
}
|
|
1457
|
-
`,
|
|
1458
|
-
`,
|
|
1459
|
-
`,
|
|
1457
|
+
`,qi];var Ks=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Zs extends Ps{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?_a.caption1medium:_a.body2medium}}Zs.styles=[Yi,Bs],Ks([I({type:Boolean})],Zs.prototype,"primary",void 0),Ks([I({type:Boolean})],Zs.prototype,"secondary",void 0),Ks([I({type:Boolean})],Zs.prototype,"tertiary",void 0),Ks([I({type:Boolean})],Zs.prototype,"neutral",void 0),Ks([I({type:Boolean})],Zs.prototype,"small",void 0),F("ft-button")(js),F("ftds-button")(Zs);const Hs=Rt`
|
|
1458
|
+
`,Gs=Rt`
|
|
1459
|
+
`,Vs=Yr.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class qs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Vs.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?qs.build(t):null!==(e=qs.API)&&void 0!==e?e:qs.API=qs.build()}static await(t){return new Promise((e=>{let i=qs.get(t);if(i)e(i);else{const o=Vs.subscribe((()=>{i=qs.get(t),i&&(o(),e(i))}))}}))}}var Ys;const Xs=Symbol("clearAfterUnitTest");class Js{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[Ys]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=Vs.getState().uiLocale,Vs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Vs.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};D(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Xi(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>_(0).then((()=>t())).catch((()=>null)))))}}Ys=Xs,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Js((async(t,e)=>(await qs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Js((async(t,e)=>(await qs.await()).getCustomMessageContext(t,e))));const Qs=window.FluidTopicsI18nService,tl=window.FluidTopicsCustomI18nService;var el=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class il extends Gi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>qs.get(),this.cache=new o,this.cleanSessionDebouncer=new n}render(){return de`
|
|
1460
1460
|
<slot></slot>
|
|
1461
|
-
`}update(t){super.update(t),t.has("baseUrl")&&(
|
|
1461
|
+
`}update(t){super.update(t),t.has("baseUrl")&&(Vs.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Vs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Vs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Vs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Vs.actions.noCustom(this.noCustom),t.has("editorMode")&&Vs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Vs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Vs.actions.session(this.session),t.has("availableUiLocales")&&Vs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Qs.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}il.elementDefinitions={},il.styles=Gs,el([I()],il.prototype,"baseUrl",void 0),el([I()],il.prototype,"apiIntegrationIdentifier",void 0),el([I()],il.prototype,"uiLocale",void 0),el([M(null)],il.prototype,"availableUiLocales",void 0),el([M(null)],il.prototype,"metadataConfiguration",void 0),el([I({type:Boolean})],il.prototype,"editorMode",void 0),el([I({type:Boolean})],il.prototype,"noCustom",void 0),el([I({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],il.prototype,"noCustomComponent",void 0),el([I({type:Boolean})],il.prototype,"withManualResources",void 0),el([M([])],il.prototype,"messageContexts",void 0),el([M(void 0)],il.prototype,"session",void 0),el([I({type:Object})],il.prototype,"apiProvider",void 0);class ol{async listMySearches(){var t;return(null===(t=Vs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await qs.await()).listMySearches(Vs.getState().session.profile.userId):[]}}const rl=new o;class nl{async listMyBookmarks(){return rl.get("bookmarks",(async()=>(await qs.await()).listMyBookmarks(Vs.getState().session.profile.userId)))}clearCache(){rl.clear("bookmarks")}}const al=Yr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const sl=new class{constructor(){this.currentSession=Vs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new nl,Vs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Vs.getState();D(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){al.actions.savedSearches(void 0)}clearMyBookmarks(){al.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ol,e=await t.listMySearches();al.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;al.actions.bookmarks(e)}}};F("ft-app-context")(il);var ll=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const cl=Symbol("i18nProperties"),fl=Symbol("i18nUnsubs");function hl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?tl:Qs}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[cl])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[cl])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[cl]&&new Set([...this[cl].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[fl].has(t)||this[fl].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[fl].forEach((t=>t())),this[fl].clear()}}return e=fl,ll([I({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class dl extends(hl(Gi)){}class ul extends(hl(so)){}var pl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class yl extends ul{constructor(){super(),this.editorMode=!1,this.addStore(Vs)}render(){return this.key&&this.context?de`
|
|
1462
1462
|
<span class="ft-i18n">
|
|
1463
1463
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1464
1464
|
</span>
|
|
1465
|
-
`:this.editorMode?"Select a context and a label key.":
|
|
1465
|
+
`:this.editorMode?"Select a context and a label key.":pe}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}yl.elementDefinitions={},yl.styles=Hs,pl([Ji()],yl.prototype,"editorMode",void 0),pl([I()],yl.prototype,"context",void 0),pl([I()],yl.prototype,"key",void 0),pl([M([])],yl.prototype,"args",void 0),pl([I()],yl.prototype,"defaultMessage",void 0);class gl{static build(t){return new gl(t)}static fromGwt(t){return new gl(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Qs.resolveMessage(this.name,e,...t)})}}const bl=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[cl]=null!==(n=i[cl])&&void 0!==n?n:new Map,i[cl].set(o,a)};F("ft-i18n")(yl);const vl=gl.build("integratedFeedbackComponent"),ml={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},xl={fontSize:Re.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-field-helper-color","",We.colorOnSurfaceMedium),colorPrimary:Re.external(We.colorPrimary,"Design system"),colorOnSurface:Re.external(We.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(We.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(We.borderRadiusS,"Design system"),colorError:Re.external(We.colorError,"Design system"),prefixColor:Re.extend("--ft-text-field-prefix-color","",We.colorOnSurfaceMedium),iconColor:Re.extend("--ft-text-field-icon-color","",We.colorOnSurfaceMedium),floatingZIndex:Re.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Re.external(We.colorSurface,"Design system"),colorOutline:Re.external(We.colorOutline,"Design system"),elevation02:Re.external(We.elevation02,"Design system"),suggestSize:Re.create("--ft-text-field-suggest-size","","SIZE","300px")},wl=Rt`
|
|
1466
1466
|
*:focus {
|
|
1467
1467
|
outline: none;
|
|
1468
1468
|
}
|
|
@@ -1475,16 +1475,16 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1475
1475
|
}
|
|
1476
1476
|
|
|
1477
1477
|
ft-input-label {
|
|
1478
|
-
${
|
|
1479
|
-
${
|
|
1480
|
-
${
|
|
1481
|
-
${
|
|
1478
|
+
${Ue(Os.fontSize,xl.fontSize)};
|
|
1479
|
+
${Ue(Os.raisedFontSize,xl.labelSize)};
|
|
1480
|
+
${Ue(Os.verticalSpacing,xl.verticalSpacing)};
|
|
1481
|
+
${Ue(Os.horizontalSpacing,xl.horizontalSpacing)};
|
|
1482
1482
|
}
|
|
1483
1483
|
|
|
1484
1484
|
.ft-text-field--main-panel {
|
|
1485
1485
|
position: relative;
|
|
1486
1486
|
display: flex;
|
|
1487
|
-
height: calc(4 * ${
|
|
1487
|
+
height: calc(4 * ${xl.verticalSpacing} + ${xl.labelSize} + ${xl.fontSize});
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
1490
|
.ft-text-field--input-panel {
|
|
@@ -1493,24 +1493,24 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1493
1493
|
display: flex;
|
|
1494
1494
|
align-items: center;
|
|
1495
1495
|
overflow: hidden;
|
|
1496
|
-
padding: 0 ${
|
|
1496
|
+
padding: 0 ${xl.horizontalSpacing};
|
|
1497
1497
|
|
|
1498
|
-
${
|
|
1499
|
-
${
|
|
1498
|
+
${Ue(_n.fontSize,xl.fontSize)};
|
|
1499
|
+
${Ue(_n.lineHeight,xl.fontSize)};
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
1502
|
.ft-text-field--input-panel ft-ripple {
|
|
1503
|
-
${
|
|
1504
|
-
${
|
|
1503
|
+
${Ue(fn.opacityContentOnSurfaceHover,"0.08")};
|
|
1504
|
+
${Ue(fn.opacityContentOnSurfacePressed,"0.04")};
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
1507
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
1508
1508
|
align-items: flex-end;
|
|
1509
|
-
padding: 0 ${
|
|
1509
|
+
padding: 0 ${xl.horizontalSpacing} ${xl.verticalSpacing} ${xl.horizontalSpacing};
|
|
1510
1510
|
}
|
|
1511
1511
|
|
|
1512
1512
|
.ft-text-field--prefix {
|
|
1513
|
-
color: ${
|
|
1513
|
+
color: ${xl.prefixColor};
|
|
1514
1514
|
margin-right: 2px;
|
|
1515
1515
|
flex-shrink: 1;
|
|
1516
1516
|
overflow: hidden;
|
|
@@ -1529,15 +1529,15 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1529
1529
|
flex-shrink: 1;
|
|
1530
1530
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
1531
1531
|
|
|
1532
|
-
color: ${
|
|
1533
|
-
padding: calc(2 * ${
|
|
1532
|
+
color: ${xl.colorOnSurface};
|
|
1533
|
+
padding: calc(2 * ${xl.verticalSpacing}) 0;
|
|
1534
1534
|
border: none;
|
|
1535
1535
|
background: none;
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
1538
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
1539
1539
|
padding-bottom: 0;
|
|
1540
|
-
padding-top: calc(${
|
|
1540
|
+
padding-top: calc(${xl.labelSize} + 2 * ${xl.verticalSpacing});
|
|
1541
1541
|
}
|
|
1542
1542
|
|
|
1543
1543
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -1546,37 +1546,37 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1546
1546
|
}
|
|
1547
1547
|
|
|
1548
1548
|
.ft-text-field--disabled .ft-text-field--input {
|
|
1549
|
-
color: ${
|
|
1549
|
+
color: ${xl.colorOnSurfaceDisabled};
|
|
1550
1550
|
}
|
|
1551
1551
|
|
|
1552
1552
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1553
|
-
${
|
|
1554
|
-
${
|
|
1553
|
+
${Ue(Os.borderColor,xl.colorPrimary)};
|
|
1554
|
+
${Ue(Os.textColor,xl.colorPrimary)};
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
1557
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
1558
|
-
border-radius: ${
|
|
1558
|
+
border-radius: ${xl.borderRadiusS} ${xl.borderRadiusS} 0 0;
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
1561
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
1562
|
-
border-radius: ${
|
|
1562
|
+
border-radius: ${xl.borderRadiusS};
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
1565
|
.ft-text-field--helper-text {
|
|
1566
|
-
padding: 0 12px 0 ${
|
|
1567
|
-
color: ${
|
|
1566
|
+
padding: 0 12px 0 ${xl.horizontalSpacing};
|
|
1567
|
+
color: ${xl.helperColor};
|
|
1568
1568
|
}
|
|
1569
1569
|
|
|
1570
1570
|
.ft-text-field--in-error .ft-text-field--input,
|
|
1571
1571
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
1572
1572
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
1573
|
-
color: ${
|
|
1573
|
+
color: ${xl.colorError};
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
1576
|
.ft-text-field--icon {
|
|
1577
1577
|
align-self: center;
|
|
1578
1578
|
margin-left: 8px;
|
|
1579
|
-
color: ${
|
|
1579
|
+
color: ${xl.iconColor};
|
|
1580
1580
|
}
|
|
1581
1581
|
|
|
1582
1582
|
.ft-text-field--container {
|
|
@@ -1589,13 +1589,13 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1589
1589
|
position: absolute;
|
|
1590
1590
|
left: 0;
|
|
1591
1591
|
right: 0;
|
|
1592
|
-
z-index: ${
|
|
1593
|
-
background: ${
|
|
1594
|
-
border: 1px solid ${
|
|
1595
|
-
border-radius: 0 0 ${
|
|
1596
|
-
box-shadow: ${
|
|
1592
|
+
z-index: ${xl.floatingZIndex};
|
|
1593
|
+
background: ${xl.colorSurface};
|
|
1594
|
+
border: 1px solid ${xl.colorOutline};
|
|
1595
|
+
border-radius: 0 0 ${xl.borderRadiusS} ${xl.borderRadiusS};
|
|
1596
|
+
box-shadow: ${xl.elevation02};
|
|
1597
1597
|
outline: none;
|
|
1598
|
-
max-height: ${
|
|
1598
|
+
max-height: ${xl.suggestSize};
|
|
1599
1599
|
overflow-y: auto;
|
|
1600
1600
|
}
|
|
1601
1601
|
|
|
@@ -1612,14 +1612,14 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
1614
1614
|
.ft-text-field--with-icon {
|
|
1615
|
-
${
|
|
1615
|
+
${Ue(Os.labelMaxWidth,`calc(100% - ${ga.size} - ${Os.horizontalSpacing})`)};
|
|
1616
1616
|
}
|
|
1617
1617
|
|
|
1618
1618
|
.ft-text-field--with-password ft-icon:hover {
|
|
1619
1619
|
cursor: pointer;
|
|
1620
1620
|
}
|
|
1621
|
-
`;var
|
|
1622
|
-
<div class="${
|
|
1621
|
+
`;var Ol=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Sl extends(Jr(Gi,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=is.EYE_SLASH,this.passwordRevealedIcon=is.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return de`
|
|
1622
|
+
<div class="${ja(t)}">
|
|
1623
1623
|
<div class="ft-text-field--main-panel"
|
|
1624
1624
|
@keydown=${this.handleKeyboardNavigation}
|
|
1625
1625
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1629,16 +1629,16 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1629
1629
|
?raised=${this.focused||""!=this.value}
|
|
1630
1630
|
?error=${this.error}></ft-input-label>
|
|
1631
1631
|
<div class="ft-text-field--input-panel">
|
|
1632
|
-
${this.outlined?
|
|
1632
|
+
${this.outlined?pe:de`
|
|
1633
1633
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1634
1634
|
`}
|
|
1635
|
-
${this.prefix?
|
|
1635
|
+
${this.prefix?de`
|
|
1636
1636
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
1637
1637
|
${this.prefix}
|
|
1638
1638
|
</ft-typography>
|
|
1639
|
-
`:
|
|
1639
|
+
`:pe}
|
|
1640
1640
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
1641
|
-
maxlength=${(t=>t??
|
|
1641
|
+
maxlength=${(t=>t??lt)(this.maxLength||void 0)}
|
|
1642
1642
|
aria-label="${this.label}"
|
|
1643
1643
|
class="ft-typography--body1 ft-text-field--input"
|
|
1644
1644
|
part="input"
|
|
@@ -1654,23 +1654,23 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1654
1654
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1655
1655
|
</div>
|
|
1656
1656
|
</div>
|
|
1657
|
-
${this.helper?
|
|
1657
|
+
${this.helper?de`
|
|
1658
1658
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1659
1659
|
${this.helper}
|
|
1660
1660
|
</ft-typography>
|
|
1661
|
-
`:
|
|
1661
|
+
`:pe}
|
|
1662
1662
|
</div>
|
|
1663
|
-
`}renderPasswordIcon(){return
|
|
1663
|
+
`}renderPasswordIcon(){return de`
|
|
1664
1664
|
<ft-icon class="ft-text-field--icon"
|
|
1665
1665
|
.variant=${this.iconVariant}
|
|
1666
1666
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1667
1667
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1668
|
-
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?
|
|
1668
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?de`
|
|
1669
1669
|
<ft-icon class="ft-text-field--icon"
|
|
1670
1670
|
.variant=${this.iconVariant}
|
|
1671
1671
|
.value=${this.icon}
|
|
1672
1672
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
1673
|
-
`:
|
|
1673
|
+
`:pe}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Sl.elementDefinitions={"ft-input-label":$s,"ft-ripple":Ka,"ft-typography":Da,"ft-icon":as},Sl.styles=[aa,wl],Ol([I()],Sl.prototype,"label",void 0),Ol([I({noAccessor:!0})],Sl.prototype,"value",null),Ol([R()],Sl.prototype,"dispatchedValue",void 0),Ol([I()],Sl.prototype,"helper",void 0),Ol([I({type:Boolean})],Sl.prototype,"outlined",void 0),Ol([I({type:Boolean})],Sl.prototype,"disabled",void 0),Ol([I({type:Boolean})],Sl.prototype,"error",void 0),Ol([I()],Sl.prototype,"prefix",void 0),Ol([I()],Sl.prototype,"icon",void 0),Ol([I()],Sl.prototype,"passwordHiddenIcon",void 0),Ol([I()],Sl.prototype,"passwordRevealedIcon",void 0),Ol([I()],Sl.prototype,"iconVariant",void 0),Ol([I({type:Boolean})],Sl.prototype,"filterSuggestions",void 0),Ol([I({type:Number})],Sl.prototype,"maxLength",void 0),Ol([I({type:Boolean})],Sl.prototype,"password",void 0),Ol([R()],Sl.prototype,"focused",void 0),Ol([R()],Sl.prototype,"hidePassword",void 0),Ol([R()],Sl.prototype,"suggestionsOnTop",void 0),Ol([R()],Sl.prototype,"hideSuggestions",void 0),Ol([R()],Sl.prototype,"visibleSuggestions",void 0),Ol([A(".ft-text-field--main-panel")],Sl.prototype,"mainPanel",void 0),Ol([A(".ft-text-field--input")],Sl.prototype,"input",void 0),Ol([A(".ft-text-field--suggestions")],Sl.prototype,"suggestionsContainer",void 0),Ol([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Sl.prototype,"suggestions",void 0);const Nl=Rt`
|
|
1674
1674
|
.ft-text-field-suggestion {
|
|
1675
1675
|
position: relative;
|
|
1676
1676
|
padding: 8px 16px;
|
|
@@ -1695,7 +1695,7 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1695
1695
|
slot {
|
|
1696
1696
|
pointer-events: none;
|
|
1697
1697
|
}
|
|
1698
|
-
`;var
|
|
1698
|
+
`;var $l=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Cl extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class El extends Gi{render(){return de`
|
|
1699
1699
|
<div class="ft-text-field-suggestion"
|
|
1700
1700
|
tabindex="-1"
|
|
1701
1701
|
@keydown=${this.onKeyDown}
|
|
@@ -1707,17 +1707,17 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1707
1707
|
<slot></slot>
|
|
1708
1708
|
</ft-typography>
|
|
1709
1709
|
</div>
|
|
1710
|
-
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new $l(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Cl.elementDefinitions={"ft-ripple":Ba,"ft-typography":Wa,"ft-icon":ns},Cl.styles=Sl,Nl([I()],Cl.prototype,"value",void 0),Nl([A(".ft-text-field-suggestion")],Cl.prototype,"container",void 0),Nl([T()],Cl.prototype,"assignedNodes",void 0),D("ft-text-field")(Ol),D("ft-text-field-suggestion")(Cl);class El{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class kl{convertPaginatedToc(t){return new El(t).build()}}var Il,Rl,Ul,Ll,Al,Tl,_l,Wl,Dl,Fl,Ml,Pl,zl,jl,Bl,Kl,Zl,Hl;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,i={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Il||(Il={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Rl||(Rl={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Ul||(Ul={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Ll||(Ll={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Al||(Al={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Tl||(Tl={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(_l||(_l={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Wl||(Wl={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Dl||(Dl={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Fl||(Fl={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ml||(Ml={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Pl||(Pl={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(zl||(zl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(jl||(jl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Bl||(Bl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Kl||(Kl={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Zl||(Zl={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Hl||(Hl={}));const Gl={[Zl.PERSONAL_BOOK_SHARE_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.HTML_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.PDF_EXPORT_USER]:[Zl.PERSONAL_BOOK_USER],[Zl.KHUB_ADMIN]:[Zl.CONTENT_PUBLISHER],[Zl.ADMIN]:[Zl.KHUB_ADMIN,Zl.USERS_ADMIN,Zl.PORTAL_ADMIN],[Zl.DEVELOPER]:[Zl.BETA_USER,Zl.DEBUG_USER]};function Vl(t,e){return t===e||(Gl[t]??[]).some((t=>Vl(t,e)))}function ql(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Vl(t,e)))}class Yl{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return ql(null!==(e=null===(t=Gs.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,i)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Gs.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case on.FEEDBACK:return ql(null!=e?e:[],Zl.FEEDBACK_USER);case on.RATING:return ql(null!=e?e:[],Zl.RATING_USER)&&null!=i&&i!==_l.NO_RATING;case on.PRINT:return ql(null!=e?e:[],Zl.PRINT_USER);case on.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case on.COLLECTIONS:return ql(null!=e?e:[],Zl.COLLECTION_USER);case on.PERSONAL_BOOKS:return ql(null!=e?e:[],Zl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Xl extends Yl{static async build(t){return new Xl(new kl,await Vs.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,i){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:i,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Jl extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Ql extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class tc extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class ec extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class ic extends Event{constructor(){super("ft-reader-map-not-found")}}class oc extends Event{constructor(){super("ft-reader-map-unauthorized")}}class rc extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}class nc{static build(t,e){return new nc((t=>qr.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=e?e:Xl.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new n(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return async function(t,e=10,i=2e4){let o,r,n=await t();for(o=r=performance.now();null==n&&(!i||r-o<i);)await _(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}((()=>this.service))}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.metadataForSwitchToRelatives=new Set,this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}fetchRelatives(){var t,e,i;const o=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==o&&o.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(i=this.store.getState().configuration)||void 0===i?void 0:i.relativePivotMetadata,o).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,e;this.store.getState().relatives&&(this.clusteringHelper=new r(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(e=null===(t=Gs.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t,e){var i,o,r;if(t&&e){const n=this.store.getState().configuration.relativeTopicPivotMetadata,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(t,n,e.values);if(await this.setMapId(t),null===(r=null===(o=null===(i=null==s?void 0:s.results)||void 0===i?void 0:i[0])||void 0===o?void 0:o.entries)||void 0===r?void 0:r[0]){const t=s.results[0].entries[0].topic.tocId;await this.navigateToTopic(t)}else this.store.eventBus.dispatchEvent(new rc)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const ac=It`
|
|
1711
|
-
`;var
|
|
1710
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Cl(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}El.elementDefinitions={"ft-ripple":Ka,"ft-typography":Da,"ft-icon":as},El.styles=Nl,$l([I()],El.prototype,"value",void 0),$l([A(".ft-text-field-suggestion")],El.prototype,"container",void 0),$l([T()],El.prototype,"assignedNodes",void 0),F("ft-text-field")(Sl),F("ft-text-field-suggestion")(El);class kl{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class Il{convertPaginatedToc(t){return new kl(t).build()}}var Rl,Ul,Ll,Al,Tl,_l,Wl,Dl,Fl,Ml,Pl,zl,jl,Bl,Kl,Zl,Hl,Gl;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,i={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Rl||(Rl={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ul||(Ul={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Ll||(Ll={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Al||(Al={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Tl||(Tl={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(_l||(_l={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Wl||(Wl={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Dl||(Dl={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Fl||(Fl={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ml||(Ml={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Pl||(Pl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zl||(zl={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(jl||(jl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Bl||(Bl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Kl||(Kl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Zl||(Zl={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Hl||(Hl={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Gl||(Gl={}));const Vl={[Hl.PERSONAL_BOOK_SHARE_USER]:[Hl.PERSONAL_BOOK_USER],[Hl.HTML_EXPORT_USER]:[Hl.PERSONAL_BOOK_USER],[Hl.PDF_EXPORT_USER]:[Hl.PERSONAL_BOOK_USER],[Hl.KHUB_ADMIN]:[Hl.CONTENT_PUBLISHER],[Hl.ADMIN]:[Hl.KHUB_ADMIN,Hl.USERS_ADMIN,Hl.PORTAL_ADMIN],[Hl.DEVELOPER]:[Hl.BETA_USER,Hl.DEBUG_USER]};function ql(t,e){return t===e||(Vl[t]??[]).some((t=>ql(t,e)))}function Yl(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>ql(t,e)))}class Xl{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Yl(null!==(e=null===(t=Vs.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,i)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Vs.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case rn.FEEDBACK:return Yl(null!=e?e:[],Hl.FEEDBACK_USER);case rn.RATING:return Yl(null!=e?e:[],Hl.RATING_USER)&&null!=i&&i!==Wl.NO_RATING;case rn.PRINT:return Yl(null!=e?e:[],Hl.PRINT_USER);case rn.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case rn.COLLECTIONS:return Yl(null!=e?e:[],Hl.COLLECTION_USER);case rn.PERSONAL_BOOKS:return Yl(null!=e?e:[],Hl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Jl extends Xl{static async build(t){return new Jl(new Il,await qs.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,i){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:i,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Ql{static build(t,e){return new Ql((t=>Yr.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=e?e:Jl.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new n(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return W((()=>this.service))}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.metadataForSwitchToRelatives=new Set,this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}fetchRelatives(){var t,e,i;const o=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==o&&o.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(i=this.store.getState().configuration)||void 0===i?void 0:i.relativePivotMetadata,o).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,e;this.store.getState().relatives&&(this.clusteringHelper=new r(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(e=null===(t=Vs.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var e,i,o;const r=await W((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),n=this.store.getState().mapId,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(n,r,[t]);if(null===(o=null===(i=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===i?void 0:i.entries)||void 0===o?void 0:o[0]){const t=s.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const tc=Rt`
|
|
1711
|
+
`;class ec extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class ic extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class oc extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class rc extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class nc extends Event{constructor(){super("ft-reader-map-not-found")}}class ac extends Event{constructor(){super("ft-reader-map-unauthorized")}}class sc extends Event{constructor(){super("ft-reader-map-forbidden")}}class lc extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var cc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fc extends so{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new n(5),this.navigationDebouncer=new n(10),this.addStore(Vs)}render(){return de`
|
|
1712
1712
|
${this.importStyleIfNeeded()}
|
|
1713
1713
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1714
|
-
`}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?
|
|
1714
|
+
`}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?pe:de`
|
|
1715
1715
|
<style>
|
|
1716
1716
|
@import "${i}"
|
|
1717
1717
|
</style>
|
|
1718
|
-
`}get stateManager(){return null==this._stateManager&&(this._stateManager=
|
|
1718
|
+
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Ql.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new ec(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new oc(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new ic(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.dispatchEvent(new lc)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new ac):403===e.status?this.dispatchEvent(new sc):404===e.status?this.dispatchEvent(new nc):this.dispatchEvent(new rc(t))}reloadBookmarks(){sl.reloadBookmarks()}reloadRating(){var t;null===(t=this.stateManager.service)||void 0===t||t.reloadRating()}}var hc;fc.styles=tc,cc([Ji({store:Vs.name})],fc.prototype,"baseUrl",void 0),cc([I()],fc.prototype,"mapId",void 0),cc([I()],fc.prototype,"tocId",void 0),cc([I()],fc.prototype,"section",void 0),cc([I()],fc.prototype,"topicPivot",void 0),cc([I()],fc.prototype,"searchInDocumentQuery",void 0),cc([I({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:hc}})],fc.prototype,"page",void 0),cc([Ji({store:"reader"})],fc.prototype,"map",void 0),cc([Ji({store:"reader"})],fc.prototype,"toc",void 0),cc([Ji({store:"reader"})],fc.prototype,"visibleTopics",void 0),cc([Ji({store:"reader"})],fc.prototype,"currentPage",void 0),cc([Ji({store:"reader"})],fc.prototype,"scrollTarget",void 0),cc([I({attribute:!1})],fc.prototype,"readerServiceProvider",void 0),F("ft-reader-context")(fc);var dc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class uc extends(hl(ln)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(vl,ml)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(rn.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(rn.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.canAccessFeedback||this.canAccessRating?de`
|
|
1719
1719
|
<div class="ft-reader-feedback">
|
|
1720
|
-
${this.hideTitle?
|
|
1720
|
+
${this.hideTitle?pe:de`
|
|
1721
1721
|
<ft-typography variant="title" part="main-title">
|
|
1722
1722
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1723
1723
|
</ft-typography>
|
|
@@ -1725,7 +1725,7 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1725
1725
|
${this.renderRatingSection()}
|
|
1726
1726
|
${this.renderFeedbackSection()}
|
|
1727
1727
|
</div>
|
|
1728
|
-
`:
|
|
1728
|
+
`:pe}renderRatingSection(){return this.canAccessRating?de`
|
|
1729
1729
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1730
1730
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1731
1731
|
${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
@@ -1735,11 +1735,11 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1735
1735
|
${this.renderRatingDate()}
|
|
1736
1736
|
</ft-typography>
|
|
1737
1737
|
</div>
|
|
1738
|
-
`:
|
|
1738
|
+
`:pe}renderRatingDate(){const t=this.ratingDate;if(null==t)return vl.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return vl.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?vl.messages.ratedToday():vl.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return de`
|
|
1739
1739
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1740
|
-
${
|
|
1740
|
+
${Ds(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return de`
|
|
1741
1741
|
<ft-button round part="rating-stars-${o}"
|
|
1742
|
-
label="${
|
|
1742
|
+
label="${vl.messages.starsRating(o)}"
|
|
1743
1743
|
tooltipPosition="top"
|
|
1744
1744
|
.iconVariant=${this.iconVariant}
|
|
1745
1745
|
icon="${i?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -1748,7 +1748,7 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1748
1748
|
></ft-button>
|
|
1749
1749
|
`}))}
|
|
1750
1750
|
</div>
|
|
1751
|
-
`;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return
|
|
1751
|
+
`;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return de`
|
|
1752
1752
|
<ft-switch unselectable
|
|
1753
1753
|
@change=${t=>this.rate(t.detail)}
|
|
1754
1754
|
part="rating rating-like">
|
|
@@ -1756,63 +1756,63 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1756
1756
|
?selected=${e}
|
|
1757
1757
|
.iconVariant=${this.iconVariant}
|
|
1758
1758
|
icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1759
|
-
${
|
|
1759
|
+
${vl.messages.like()}
|
|
1760
1760
|
</ft-switch-option>
|
|
1761
1761
|
<ft-switch-option .value=${0}
|
|
1762
1762
|
?selected=${t}
|
|
1763
1763
|
.iconVariant=${this.iconVariant}
|
|
1764
1764
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1765
|
-
${
|
|
1765
|
+
${vl.messages.dislike()}
|
|
1766
1766
|
</ft-switch-option>
|
|
1767
1767
|
</ft-switch>
|
|
1768
|
-
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return
|
|
1768
|
+
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return de`
|
|
1769
1769
|
<ft-switch unselectable
|
|
1770
1770
|
@change=${t=>this.rate(t.detail)}
|
|
1771
1771
|
part="rating rating-dichotomous">
|
|
1772
1772
|
<ft-switch-option .value=${1}
|
|
1773
1773
|
?selected=${o}>
|
|
1774
|
-
${
|
|
1774
|
+
${vl.messages.dichotomousYes()}
|
|
1775
1775
|
</ft-switch-option>
|
|
1776
1776
|
<ft-switch-option .value=${0}
|
|
1777
1777
|
?selected=${i}>
|
|
1778
|
-
${
|
|
1778
|
+
${vl.messages.dichotomousNo()}
|
|
1779
1779
|
</ft-switch-option>
|
|
1780
1780
|
</ft-switch>
|
|
1781
|
-
`}return
|
|
1781
|
+
`}return pe}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i;if(this.canAccessFeedback){const o=this.feedbackMailLinkBuilder(this.feedbackMessage);let r=de`
|
|
1782
1782
|
<ft-button primary
|
|
1783
1783
|
type="submit" name="submit"
|
|
1784
1784
|
class="ft-reader-feedback--send-feedback"
|
|
1785
1785
|
?disabled=${!this.feedbackMessage||!this.validFromEmail()}
|
|
1786
1786
|
part="send-feedback">
|
|
1787
|
-
${
|
|
1787
|
+
${vl.messages.okButton()}
|
|
1788
1788
|
</ft-button>
|
|
1789
|
-
`;return o&&(r=
|
|
1789
|
+
`;return o&&(r=de`
|
|
1790
1790
|
<a class="ft-reader-feedback--feedback-link" href="${o}">
|
|
1791
1791
|
${r}
|
|
1792
1792
|
</a>
|
|
1793
|
-
`),
|
|
1793
|
+
`),de`
|
|
1794
1794
|
<form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
|
|
1795
1795
|
@submit="${t=>this.onFormSubmitEvent(t,!!o)}">
|
|
1796
1796
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1797
1797
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1798
1798
|
</ft-typography>
|
|
1799
|
-
${null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers)?
|
|
1799
|
+
${null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers)?de`
|
|
1800
1800
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1801
1801
|
class="ft-reader-feedback--from-input"
|
|
1802
|
-
label=${
|
|
1802
|
+
label=${vl.messages.feedbackfromEmail()}
|
|
1803
1803
|
@change=${t=>this.from=t.detail.trim()}
|
|
1804
1804
|
?error=${this.from&&!this.validFromEmail()}
|
|
1805
|
-
helper=${this.from&&!this.validFromEmail()?
|
|
1805
|
+
helper=${this.from&&!this.validFromEmail()?vl.messages.feedbackfromEmailInvalid():""}
|
|
1806
1806
|
/>
|
|
1807
|
-
`:
|
|
1807
|
+
`:pe}
|
|
1808
1808
|
<ft-text-area outlined
|
|
1809
1809
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1810
|
-
label="${
|
|
1810
|
+
label="${vl.messages.feedbackInputLabel()}"
|
|
1811
1811
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1812
1812
|
></ft-text-area>
|
|
1813
1813
|
${r}
|
|
1814
1814
|
</form>
|
|
1815
|
-
`}return
|
|
1815
|
+
`}return pe}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}uc.elementDefinitions={"ft-button":js,"ft-typography":Da,"ft-switch":ys,"ft-switch-option":ds,"ft-text-area":Is,"ft-text-field":Sl},uc.styles=Ia,dc([I({type:Boolean})],uc.prototype,"editorMode",void 0),dc([I({type:Boolean})],uc.prototype,"hideTitle",void 0),dc([I({type:Boolean})],uc.prototype,"ratingAllowed",void 0),dc([I({attribute:!1})],uc.prototype,"i18nProperties",void 0),dc([I({attribute:!1})],uc.prototype,"ratingSummary",void 0),dc([I({attribute:!1})],uc.prototype,"session",void 0),dc([A(".ft-reader-feedback--feedback-input")],uc.prototype,"feedbackInput",void 0),dc([R()],uc.prototype,"from",void 0),dc([R()],uc.prototype,"feedbackMessage",void 0),dc([I()],uc.prototype,"iconVariant",void 0),dc([I()],uc.prototype,"emptyStarIcon",void 0),dc([I()],uc.prototype,"filledStarIcon",void 0),dc([I()],uc.prototype,"emptyLikeIcon",void 0),dc([I()],uc.prototype,"filledLikeIcon",void 0),dc([I()],uc.prototype,"emptyDislikeIcon",void 0),dc([I()],uc.prototype,"filledDislikeIcon",void 0),dc([Ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],uc.prototype,"configuration",void 0),dc([I()],uc.prototype,"feedbackMailLinkBuilder",void 0);const pc=gl.fromGwt("server");class yc{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${pc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}const gc=gl.build("inDesignerFeedbackComponent"),bc={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var vc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class mc extends(hl(ln)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=rs.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new yc,this.i18nProperties={feedbackMainTitle:vl.properties.mapFeedbackMainTitle(),ratingSectionTitle:vl.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:vl.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:vl.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(Vs)}render(){return de`
|
|
1816
1816
|
<ft-reader-feedback
|
|
1817
1817
|
ratingAllowed
|
|
1818
1818
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1832,7 +1832,7 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1832
1832
|
@send-feedback=${this.sendFeedback}
|
|
1833
1833
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1834
1834
|
></ft-reader-feedback>
|
|
1835
|
-
`}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(
|
|
1835
|
+
`}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(gc,bc),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new De({type:"error",message:vl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:gc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new De({type:"info",message:gc.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:vl.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new De({type:"error",message:vl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}mc.elementDefinitions={"ft-reader-feedback":uc},vc([Ji({store:Vs.name})],mc.prototype,"session",void 0),vc([Ji({store:"reader"})],mc.prototype,"map",void 0),vc([Ji({store:Vs.name})],mc.prototype,"editorMode",void 0),vc([Ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],mc.prototype,"configuration",void 0),vc([R()],mc.prototype,"ratingSummary",void 0),vc([I({type:Boolean})],mc.prototype,"hideTitle",void 0),vc([I()],mc.prototype,"iconVariant",void 0),vc([I()],mc.prototype,"emptyStarIcon",void 0),vc([I()],mc.prototype,"filledStarIcon",void 0),vc([I()],mc.prototype,"emptyLikeIcon",void 0),vc([I()],mc.prototype,"filledLikeIcon",void 0),vc([I()],mc.prototype,"emptyDislikeIcon",void 0),vc([I()],mc.prototype,"filledDislikeIcon",void 0),vc([A("ft-reader-feedback")],mc.prototype,"readerFeedback",void 0),vc([bl(pc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],mc.prototype,"mailSubject",void 0);var xc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class wc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Oc=Symbol("registerInterval");class Sc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Oc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Oc]):this.dispatchEvent(new wc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Oc,xc([R()],i.prototype,"tocNode",void 0),xc([R()],i.prototype,"disableContextInteractions",void 0),i}(ln)){}var Nc=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class $c extends(hl(Sc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=rs.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new yc,this.i18nProperties={feedbackMainTitle:vl.properties.topicFeedbackMainTitle(),ratingSectionTitle:vl.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:vl.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:vl.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(Vs)}render(){var t;return de`
|
|
1836
1836
|
<ft-reader-feedback
|
|
1837
1837
|
.i18nProperties=${this.i18nProperties}
|
|
1838
1838
|
?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
|
|
@@ -1852,4 +1852,4 @@ const{D:Is}=wt,Rs=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.par
|
|
|
1852
1852
|
@send-feedback=${this.sendFeedback}
|
|
1853
1853
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1854
1854
|
></ft-reader-feedback>
|
|
1855
|
-
`}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(
|
|
1855
|
+
`}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(gc,bc),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new De({type:"error",message:vl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:gc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:vl.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new De({type:"info",message:gc.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new De({type:"error",message:vl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}$c.elementDefinitions={"ft-reader-feedback":uc},Nc([Ji({store:Vs.name})],$c.prototype,"session",void 0),Nc([Ji({store:"reader"})],$c.prototype,"map",void 0),Nc([Ji({store:Vs.name})],$c.prototype,"editorMode",void 0),Nc([Ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],$c.prototype,"configuration",void 0),Nc([R()],$c.prototype,"ratingSummary",void 0),Nc([I({type:Boolean})],$c.prototype,"hideTitle",void 0),Nc([I()],$c.prototype,"iconVariant",void 0),Nc([I()],$c.prototype,"emptyStarIcon",void 0),Nc([I()],$c.prototype,"filledStarIcon",void 0),Nc([I()],$c.prototype,"emptyLikeIcon",void 0),Nc([I()],$c.prototype,"filledLikeIcon",void 0),Nc([I()],$c.prototype,"emptyDislikeIcon",void 0),Nc([I()],$c.prototype,"filledDislikeIcon",void 0),Nc([A("ft-reader-feedback")],$c.prototype,"readerFeedback",void 0),Nc([bl(pc.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],$c.prototype,"mailSubject",void 0),F("ft-reader-map-feedback")(mc),F("ft-reader-topic-feedback")($c),t.FtReaderFeedbackCssVariables=ka,t.FtReaderMapFeedback=mc,t.FtReaderTopicFeedback=$c,t.styles=Ia}({});
|