@fluid-topics/ft-reader-feedback 1.1.12 → 1.1.13
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(Ja){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=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(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=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,44 +59,44 @@ const C={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S},E=(t=C,e,
|
|
|
59
59
|
* Copyright 2017 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
61
|
*/
|
|
62
|
-
function A(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const _=t=>new Promise((e=>setTimeout(e,t)));function T(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 A(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const _=t=>new Promise((e=>setTimeout(e,t)));async function T(t,e=5,i){return await async function(t,e=5,i){let o,r,n=await t();for(o=r=performance.now();!n&&(!i||r-o<i);)await _(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded")}((async()=>null!=await t()),e,i),await 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(!W(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(!W(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(!W(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const D=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function F(t,e){const i=()=>JSON.parse(JSON.stringify(t));return k({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)=>!W(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,M=P.trustedTypes,j=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,K="?"+B,Z=`<${K}>`,H=document,G=()=>H.createComment(""),V=t=>null===t||"object"!=typeof t&&"function"!=typeof t,q=Array.isArray,Y=t=>q(t)||"function"==typeof t?.[Symbol.iterator],X="[ \t\n\f\r]",J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,tt=/>/g,et=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,ot=/"/g,rt=/^(?:script|style|textarea|title)$/i,nt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),at=Symbol.for("lit-noChange"),st=Symbol.for("lit-nothing"),lt=new WeakMap,ct=H.createTreeWalker(H,129);function ft(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==j?j.createHTML(e):e}const ht=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=J;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===J?"!--"===l[1]?a=Q:void 0!==l[1]?a=tt:void 0!==l[2]?(rt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=et):void 0!==l[3]&&(a=et):a===et?">"===l[0]?(a=r??J,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?et:'"'===l[3]?ot:it):a===ot||a===it?a=et:a===Q||a===tt?a=J:(a=et,r=void 0);const h=a===et&&t[e+1].startsWith("/>")?" ":"";n+=a===J?i+Z:c>=0?(o.push(s),i.slice(0,c)+z+i.slice(c)+B+h):i+B+(-2===c?e:h)}return[ft(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let dt=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]=ht(e,i);if(this.el=t.createElement(c,o),ct.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ct.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(z)){const e=f[a++],i=r.getAttribute(t).split(B),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?bt:"?"===o[1]?vt:"@"===o[1]?mt:gt}),r.removeAttribute(t)}else t.startsWith(B)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(rt.test(r.tagName)){const t=r.textContent.split(B),e=t.length-1;if(e>0){r.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],G()),ct.nextNode(),l.push({type:2,index:++n});r.append(t[e],G())}}}else if(8===r.nodeType)if(r.data===K)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(B,t+1));)l.push({type:7,index:n}),t+=B.length-1}n++}}static createElement(t,e){const i=H.createElement("template");return i.innerHTML=t,i}};function ut(t,e,i=t,o){if(e===at)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=V(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=ut(t,r._$AS(t,e.values),r,o)),e}let pt=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??H).importNode(e,!0);ct.currentNode=o;let r=ct.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new yt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new xt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ct.nextNode(),n++)}return ct.currentNode=H,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++}},yt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=st,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=ut(this,t,e),V(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Y(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!==st&&V(this._$AH)?this._$AA.nextSibling.data=t:this.$(H.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=dt.createElement(ft(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new pt(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=lt.get(t.strings);return void 0===e&<.set(t.strings,e=new dt(t)),e}T(e){q(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(G()),this.k(G()),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))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=st,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=st}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ut(this,t,e,0),n=!V(t)||t!==this._$AH&&t!==at,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ut(this,o[i+a],e,a),s===at&&(s=this._$AH[a]),n||=!V(s)||s!==this._$AH[a],s===st?t=st:t!==st&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},bt=class extends gt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===st?void 0:t}},vt=class extends gt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}},mt=class extends gt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ut(this,t,e,0)??st)===at)return;const i=this._$AH,o=t===st&&i!==st||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==st&&(i===st||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)}},xt=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){ut(this,t)}};const wt={j:z,P:B,A:K,C:1,M:ht,L:pt,R:Y,V:ut,D:yt,I:gt,H:vt,N:mt,U:bt,B:xt},Ot=P.litHtmlPolyfillSupport;Ot?.(dt,yt),(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 St=globalThis,$t=St.ShadowRoot&&(void 0===St.ShadyCSS||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nt=Symbol(),Ct=new WeakMap;let Et=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Nt)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=Ct.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ct.set(e,t))}return t}toString(){return this.cssText}};const kt=t=>new Et("string"==typeof t?t:t+"",void 0,Nt),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 Et(i,t,Nt)},It=$t?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return kt(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:Ut,defineProperty:Lt,getOwnPropertyDescriptor:At,getOwnPropertyNames:_t,getOwnPropertySymbols:Tt,getPrototypeOf:Wt}=Object,Dt=globalThis,Ft=Dt.trustedTypes,Pt=Ft?Ft.emptyScript:"",Mt=Dt.reactiveElementPolyfillSupport,jt=(t,e)=>t,zt={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}},Bt=(t,e)=>!Ut(t,e),Kt={attribute:!0,type:String,converter:zt,reflect:!1,hasChanged:Bt};Symbol.metadata??=Symbol("metadata"),Dt.litPropertyMetadata??=new WeakMap;let Zt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Kt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Lt(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=At(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)??Kt}static _$Ei(){if(this.hasOwnProperty(jt("elementProperties")))return;const t=Wt(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),...Tt(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(It(t))}else void 0!==t&&e.push(It(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=St.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:zt).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:zt;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??Bt)(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){}};Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Zt[jt("elementProperties")]=new Map,Zt[jt("finalized")]=new Map,Mt?.({ReactiveElement:Zt}),(Dt.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 Ht=globalThis,Gt=Ht.trustedTypes,Vt=Gt?Gt.createPolicy("lit-html",{createHTML:t=>t}):void 0,qt="$lit$",Yt=`lit$${(Math.random()+"").slice(9)}$`,Xt="?"+Yt,Jt=`<${Xt}>`,Qt=document,te=()=>Qt.createComment(""),ee=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ie=Array.isArray,oe="[ \t\n\f\r]",re=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ne=/-->/g,ae=/>/g,se=RegExp(`>|${oe}(?:([^\\s"'>=/]+)(${oe}*=${oe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),le=/'/g,ce=/"/g,fe=/^(?:script|style|textarea|title)$/i,he=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),de=Symbol.for("lit-noChange"),ue=Symbol.for("lit-nothing"),pe=new WeakMap,ye=Qt.createTreeWalker(Qt,129);function ge(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Vt?Vt.createHTML(e):e}class be{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=re;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===re?"!--"===l[1]?a=ne:void 0!==l[1]?a=ae:void 0!==l[2]?(fe.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=se):void 0!==l[3]&&(a=se):a===se?">"===l[0]?(a=r??re,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?se:'"'===l[3]?ce:le):a===ce||a===le?a=se:a===ne||a===ae?a=re:(a=se,r=void 0);const h=a===se&&t[e+1].startsWith("/>")?" ":"";n+=a===re?i+Jt:c>=0?(o.push(s),i.slice(0,c)+qt+i.slice(c)+Yt+h):i+Yt+(-2===c?e:h)}return[ge(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=be.createElement(l,i),ye.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ye.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(qt)){const e=c[n++],i=o.getAttribute(t).split(Yt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?we:"?"===a[1]?Oe:"@"===a[1]?Se:xe}),o.removeAttribute(t)}else t.startsWith(Yt)&&(s.push({type:6,index:r}),o.removeAttribute(t));if(fe.test(o.tagName)){const t=o.textContent.split(Yt),e=t.length-1;if(e>0){o.textContent=Gt?Gt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],te()),ye.nextNode(),s.push({type:2,index:++r});o.append(t[e],te())}}}else if(8===o.nodeType)if(o.data===Xt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(Yt,t+1));)s.push({type:7,index:r}),t+=Yt.length-1}r++}}static createElement(t,e){const i=Qt.createElement("template");return i.innerHTML=t,i}}function ve(t,e,i=t,o){if(e===de)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=ee(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=ve(t,r._$AS(t,e.values),r,o)),e}let me=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=ue,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=ve(this,t,e),ee(t)?t===ue||null==t||""===t?(this._$AH!==ue&&this._$AR(),this._$AH=ue):t!==this._$AH&&t!==de&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ie(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!==ue&&ee(this._$AH)?this._$AA.nextSibling.data=t:this.$(Qt.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=be.createElement(ge(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??Qt).importNode(e,!0);ye.currentNode=o;let r=ye.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new me(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=ye.nextNode(),n++)}return ye.currentNode=Qt,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=pe.get(t.strings);return void 0===e&&pe.set(t.strings,e=new be(t)),e}T(e){ie(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(te()),this.k(te()),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))}},xe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=ue,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=ue}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ve(this,t,e,0),n=!ee(t)||t!==this._$AH&&t!==de,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ve(this,o[i+a],e,a),s===de&&(s=this._$AH[a]),n||=!ee(s)||s!==this._$AH[a],s===ue?t=ue:t!==ue&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},we=class extends xe{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ue?void 0:t}},Oe=class extends xe{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ue)}},Se=class extends xe{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ve(this,t,e,0)??ue)===de)return;const i=this._$AH,o=t===ue&&i!==ue||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==ue&&(i===ue||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){ve(this,t)}};const Ne=Ht.litHtmlPolyfillSupport;Ne?.(be,me),(Ht.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 Ne=class extends Kt{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 ve(e.insertBefore(Qt(),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 he}};Ne._$litElement$=!0,Ne.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ne});const Ce=globalThis.litElementPolyfillSupport;Ce?.({LitElement:Ne}),(globalThis.litElementVersions??=[]).push("4.0.2");const Ee=t=>"string"==typeof t?Et(t):t;class ke{static create(t,e,i,o){const r=t=>Ee(null!=t?t:o),n=kt`var(${Ee(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>kt`var(${Ee(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=kt`var(${Ee(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=>kt`var(${Ee(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):Ee(null!=e?e:t.lastResortDefaultValue()),o=kt`var(${Ee(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=>kt`var(${Ee(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Re(t,e){return Ee(`${t.name}: ${e}`)}const Ie={colorWhite:ke.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:ke.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:ke.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:ke.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:ke.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:ke.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:ke.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:ke.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:ke.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:ke.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:ke.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:ke.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:ke.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:ke.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:ke.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:ke.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:ke.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:ke.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:ke.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:ke.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:ke.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:ke.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:ke.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:ke.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:ke.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:ke.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:ke.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:ke.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:ke.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:ke.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:ke.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:ke.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:ke.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:ke.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:ke.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:ke.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:ke.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:ke.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:ke.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:ke.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:ke.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:ke.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:ke.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:ke.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:ke.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:ke.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:ke.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:ke.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:ke.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:ke.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:ke.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:ke.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:ke.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:ke.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:ke.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:ke.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:ke.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:ke.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:ke.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:ke.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:ke.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:ke.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:ke.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:ke.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:ke.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:ke.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:ke.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:ke.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:ke.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:ke.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:ke.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:ke.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:ke.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:ke.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:ke.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:ke.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:ke.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:ke.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:ke.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:ke.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:ke.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:ke.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:ke.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:ke.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:ke.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:ke.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:ke.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:ke.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:ke.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:ke.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:ke.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:ke.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:ke.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:ke.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:ke.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:ke.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:ke.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:ke.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:ke.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:ke.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:ke.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:ke.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:ke.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:ke.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:ke.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:ke.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:ke.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:ke.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:ke.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:ke.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:ke.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:ke.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:ke.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:ke.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:ke.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:ke.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:ke.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:ke.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:ke.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:ke.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:ke.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:ke.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:ke.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:ke.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:ke.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:ke.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:ke.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:ke.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:ke.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:ke.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:ke.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:ke.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:ke.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:ke.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:ke.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:ke.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:ke.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:ke.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:ke.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:ke.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:ke.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:ke.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:ke.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:ke.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:ke.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:ke.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:ke.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:ke.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:ke.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:ke.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:ke.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:ke.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:ke.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:ke.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:ke.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:ke.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:ke.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:ke.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:ke.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:ke.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:ke.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:ke.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:ke.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:ke.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:ke.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:ke.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:ke.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:ke.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:ke.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:ke.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:ke.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:ke.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:ke.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:ke.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:ke.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:ke.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:ke.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:ke.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:ke.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:ke.create("--ft-icon-size-6","","SIZE","48px"),opacity0:ke.create("--ft-opacity-0","","NUMBER","0"),opacity8:ke.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:ke.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:ke.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:ke.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:ke.create("--ft-opacity-80","","NUMBER","0.8")},Ue={display:{fontFamily:ke.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:ke.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:ke.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:ke.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:ke.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:ke.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:ke.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:ke.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:ke.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:ke.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:ke.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:ke.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:ke.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:ke.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:ke.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:ke.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:ke.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:ke.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:ke.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:ke.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:ke.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:ke.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:ke.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:ke.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:ke.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:ke.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:ke.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:ke.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:ke.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:ke.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:ke.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:ke.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:ke.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:ke.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:ke.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:ke.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:ke.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:ke.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:ke.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:ke.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:ke.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:ke.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:ke.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:ke.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:ke.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:ke.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Le={backgroundActionPrimary:ke.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ie.colorBrand0),backgroundErrorPrimary:ke.extend("--ft-background-error-primary","Used as background of error components.",Ie.colorRed0),backgroundErrorSubtle:ke.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ie.colorRed10),backgroundInfoPrimary:ke.extend("--ft-background-info-primary","Used as background of information components.",Ie.colorCyan200),backgroundInfoSubtle:ke.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ie.colorCyan10),backgroundWarningPrimary:ke.extend("--ft-background-warning-primary","Used as background of warning components.",Ie.colorOrange300),backgroundWarningSubtle:ke.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ie.colorOrange10),backgroundSuccessPrimary:ke.extend("--ft-background-success-primary","Used as background of success components.",Ie.colorGreen200),backgroundSuccessSubtle:ke.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ie.colorGreen10),backgroundGlobalSurface:ke.extend("--ft-background-global-surface","Used as app background.",Ie.colorWhite),backgroundGlobalOnSurface:ke.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ie.colorGray10),backgroundGlobalOnSurfaceDark:ke.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ie.colorGray30),contentActionPrimary:ke.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ie.colorBrand0),contentWarningPrimary:ke.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ie.colorOrange300),contentWarningIconOnly:ke.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ie.colorOrange0),contentErrorPrimary:ke.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ie.colorRed0),contentErrorIconOnly:ke.extend("--ft-content-error-icon-only","Used on error status icons alone",Ie.colorRed0),contentInfoPrimary:ke.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ie.colorCyan200),contentInfoIconOnly:ke.extend("--ft-content-info-icon-only","Used on info status icons alone",Ie.colorCyan0),contentSuccessIconOnly:ke.extend("--ft-content-success-icon-only","Used on success status icons alone",Ie.colorGreen0),contentSuccessPrimary:ke.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ie.colorGreen200),contentGlobalPrimary:ke.extend("--ft-content-global-primary","Used for main content on the page.",Ie.colorGray500),contentGlobalSecondary:ke.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ie.colorGray200),contentGlobalSubtle:ke.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ie.colorGray0),contentGlobalOnColor:ke.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ie.colorWhite),borderActionPrimary:ke.extend("--ft-border-action-primary","Used as border for primary action components.",Ie.colorBrand0),borderActionFocusRing:ke.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ie.colorCyan0),borderWarningPrimary:ke.extend("--ft-border-warning-primary","Used as border for warning components.",Ie.colorOrange30),borderSuccessPrimary:ke.extend("--ft-border-success-primary","Used as border for success components.",Ie.colorGreen30),borderErrorPrimary:ke.extend("--ft-border-error-primary","Used as border for error components.",Ie.colorRed30),borderInfoPrimary:ke.extend("--ft-border-info-primary","Used as border for information components.",Ie.colorCyan30),borderGlobalSubtle:ke.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ie.colorGray30),borderGlobalPrimary:ke.extend("--ft-border-global-primary","Used as border for element like input.",Ie.colorGray50),borderInputPrimary:ke.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ie.colorGray80)},Ae={largeHeight:ke.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:ke.extend("--ft-button-large-horizontal-padding","",Ie.spacing4),largeGap:ke.extend("--ft-button-large-gap","",Ie.spacing2),largeBorderRadius:ke.extend("--ft-button-large-border-radius","",Ie.borderRadiusS),largeIconSize:ke.extend("--ft-button-large-icon-size","",Ie.iconSize3),largeBorderWidth:ke.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:ke.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:ke.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:ke.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:ke.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:ke.extend("--ft-button-small-horizontal-padding","",Ie.spacing3),smallGap:ke.extend("--ft-button-small-gap","",Ie.spacing2),smallBorderRadius:ke.extend("--ft-button-small-border-radius","",Ie.borderRadiusS),smallIconSize:ke.extend("--ft-button-small-icon-size","",Ie.iconSize2),smallBorderWidth:ke.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:ke.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:ke.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:ke.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:ke.extend("--ft-button-primary-background-color","",Le.backgroundActionPrimary),primaryColor:ke.extend("--ft-button-primary-color","",Le.contentGlobalOnColor),primaryIconColor:ke.extend("--ft-button-primary-icon-color","",Le.contentGlobalOnColor),primaryStateLayerColor:ke.extend("--ft-button-primary-state-layer-color","",Le.contentGlobalOnColor),primaryStateLayerOpacityHover:ke.extend("--ft-button-primary-state-layer-opacity-hover","",Ie.opacity16),primaryStateLayerOpacityFocus:ke.extend("--ft-button-primary-state-layer-opacity-focus","",Ie.opacity16),primaryStateLayerOpacityActive:ke.extend("--ft-button-primary-state-layer-opacity-active","",Ie.opacity24),primaryComponentOpacityDisabled:ke.extend("--ft-button-primary-component-opacity-disabled","",Ie.opacity40),focusFocusRingColor:ke.extend("--ft-button-focus-focus-ring-color","",Le.borderActionFocusRing),tertiaryBackgroundColor:ke.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:ke.extend("--ft-button-tertiary-color","",Le.contentActionPrimary),tertiaryIconColor:ke.extend("--ft-button-tertiary-icon-color","",Le.contentActionPrimary),tertiaryStateLayerColor:ke.extend("--ft-button-tertiary-state-layer-color","",Le.contentActionPrimary),tertiaryStateLayerOpacityHover:ke.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ie.opacity8),tertiaryStateLayerOpacityFocus:ke.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ie.opacity8),tertiaryStateLayerOpacityActive:ke.extend("--ft-button-tertiary-state-layer-opacity-active","",Ie.opacity16),tertiaryComponentOpacityDisabled:ke.extend("--ft-button-tertiary-component-opacity-disabled","",Ie.opacity40),secondaryBackgroundColor:ke.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:ke.extend("--ft-button-secondary-color","",Le.contentActionPrimary),secondaryIconColor:ke.extend("--ft-button-secondary-icon-color","",Le.contentActionPrimary),secondaryStateLayerColor:ke.extend("--ft-button-secondary-state-layer-color","",Le.contentActionPrimary),secondaryStateLayerOpacityHover:ke.extend("--ft-button-secondary-state-layer-opacity-hover","",Ie.opacity8),secondaryStateLayerOpacityFocus:ke.extend("--ft-button-secondary-state-layer-opacity-focus","",Ie.opacity8),secondaryStateLayerOpacityActive:ke.extend("--ft-button-secondary-state-layer-opacity-active","",Ie.opacity16),secondaryComponentOpacityDisabled:ke.extend("--ft-button-secondary-component-opacity-disabled","",Ie.opacity40),secondaryBorderColor:ke.extend("--ft-button-secondary-border-color","",Le.borderActionPrimary),neutralBackgroundColor:ke.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:ke.extend("--ft-button-neutral-icon-color","",Le.contentGlobalSecondary),neutralColor:ke.extend("--ft-button-neutral-color","",Le.contentGlobalSecondary),neutralStateLayerColor:ke.extend("--ft-button-neutral-state-layer-color","",Le.contentGlobalSecondary),neutralStateLayerOpacityHover:ke.extend("--ft-button-neutral-state-layer-opacity-hover","",Ie.opacity8),neutralStateLayerOpacityFocus:ke.extend("--ft-button-neutral-state-layer-opacity-focus","",Ie.opacity8),neutralStateLayerOpacityActive:ke.extend("--ft-button-neutral-state-layer-opacity-active","",Ie.opacity16),neutralComponentOpacityDisabled:ke.extend("--ft-button-neutral-component-opacity-disabled","",Ie.opacity40)};ke.extend("--ft-tabs-top-left-border-radius","",Ie.borderRadiusS),ke.extend("--ft-tabs-top-right-border-radius","",Ie.borderRadiusS),ke.extend("--ft-tabs-label-horizontal-padding","",Ie.spacing4),ke.extend("--ft-tabs-label-vertical-padding","",Ie.spacing3),ke.extend("--ft-tabs-label-gap","",Ie.spacing1),ke.extend("--ft-switch-group-horizontal-padding","",Ie.spacing1),ke.extend("--ft-switch-group-vertical-padding","",Ie.spacing1),ke.extend("--ft-switch-group-gap","",Ie.spacing1),ke.extend("--ft-switch-group-background-color","",Le.backgroundGlobalSurface),ke.extend("--ft-switch-group-border-color","",Le.borderGlobalSubtle),ke.create("--ft-switch-group-border-radius","","SIZE","6px"),ke.extend("--ft-switch-label-horizontal-padding","",Ie.spacing2),ke.extend("--ft-switch-label-vertical-padding","",Ie.spacing1),ke.extend("--ft-switch-icon-horizontal-padding","",Ie.spacing1),ke.extend("--ft-switch-icon-vertical-padding","",Ie.spacing1),ke.create("--ft-switch-focus-outline-width","","SIZE","2px"),ke.extend("--ft-switch-focus-focus-ring-color","",Le.borderActionFocusRing),ke.extend("--ft-switch-option-border-radius","",Ie.borderRadiusS),ke.extend("--ft-switch-off-state-layer-opacity-hover","",Ie.opacity8),ke.extend("--ft-switch-off-state-layer-opacity-focus","",Ie.opacity8),ke.extend("--ft-switch-off-state-layer-opacity-active","",Ie.opacity16),ke.extend("--ft-switch-off-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-switch-off-color","",Le.contentGlobalSubtle),ke.extend("--ft-switch-off-state-layer-color","",Le.contentGlobalSubtle),ke.extend("--ft-chart-1-light","for area color charts",Ie.colorBrand40),ke.extend("--ft-chart-1-base","for line charts",Ie.colorBrand0),ke.extend("--ft-chart-2-light","for area color charts",Ie.colorYellow60),ke.extend("--ft-chart-2-base","for line charts",Ie.colorYellow100),ke.extend("--ft-chart-3-light","",Ie.colorUltramarine40),ke.extend("--ft-chart-3-base","",Ie.colorUltramarine70),ke.extend("--ft-chart-4-light","",Ie.colorCyan50),ke.extend("--ft-chart-4-base","",Ie.colorCyan100),ke.extend("--ft-chart-5-light","",Ie.colorRed40),ke.extend("--ft-chart-5-base","",Ie.colorRed60),ke.extend("--ft-chart-6-light","",Ie.colorGreen40),ke.extend("--ft-chart-6-base","",Ie.colorGreen70),ke.extend("--ft-chart-7-light","",Ie.colorOrange70),ke.extend("--ft-chart-7-base","",Ie.colorOrange100),ke.extend("--ft-chart-8-light","",Ie.colorAvocado70),ke.extend("--ft-chart-8-base","",Ie.colorAvocado200),ke.extend("--ft-chart-9-light","",Ie.colorBrown50),ke.extend("--ft-chart-9-base","",Ie.colorBrown200),ke.extend("--ft-chart-10-light","",Ie.colorGray50),ke.extend("--ft-chart-10-base","",Ie.colorGray80),ke.extend("--ft-chart-monochrome-10","",Ie.colorBrand10),ke.extend("--ft-chart-monochrome-20","",Ie.colorBrand20),ke.extend("--ft-chart-monochrome-30","",Ie.colorBrand40),ke.extend("--ft-chart-monochrome-40","",Ie.colorBrand60),ke.extend("--ft-chart-monochrome-50","",Ie.colorBrand0),ke.extend("--ft-chart-monochrome-60","",Ie.colorBrand200),ke.extend("--ft-chip-large-horizontal-padding","",Ie.spacing4),ke.extend("--ft-chip-large-vertical-padding","",Ie.spacing2),ke.extend("--ft-chip-large-gap","",Ie.spacing1),ke.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),ke.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),ke.extend("--ft-chip-large-border-radius","",Ie.borderRadiusPill),ke.create("--ft-chip-large-border-width","","SIZE","1px"),ke.extend("--ft-chip-large-icon-size","",Ie.iconSize3),ke.extend("--ft-chip-medium-horizontal-padding","",Ie.spacing3),ke.extend("--ft-chip-medium-vertical-padding","",Ie.spacing1),ke.extend("--ft-chip-medium-gap","",Ie.spacing1),ke.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),ke.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),ke.extend("--ft-chip-medium-border-radius","",Ie.borderRadiusPill),ke.create("--ft-chip-medium-border-width","","SIZE","1px"),ke.extend("--ft-chip-medium-icon-size","",Ie.iconSize2),ke.extend("--ft-chip-small-horizontal-padding","",Ie.spacing2),ke.extend("--ft-chip-small-vertical-padding","",Ie.spacing05),ke.extend("--ft-chip-small-gap","",Ie.spacing1),ke.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),ke.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),ke.extend("--ft-chip-small-border-radius","",Ie.borderRadiusPill),ke.create("--ft-chip-small-border-width","","SIZE","1px"),ke.extend("--ft-chip-small-icon-size","",Ie.iconSize1),ke.extend("--ft-chip-neutral-background-color","",Le.backgroundGlobalOnSurface),ke.extend("--ft-chip-neutral-color","",Le.contentGlobalPrimary),ke.extend("--ft-chip-neutral-border-color","",Le.borderGlobalSubtle),ke.extend("--ft-chip-info-background-color","",Le.backgroundInfoSubtle),ke.extend("--ft-chip-info-color","",Le.contentInfoPrimary),ke.extend("--ft-chip-info-border-color","",Le.borderInfoPrimary),ke.extend("--ft-chip-success-background-color","",Le.backgroundSuccessSubtle),ke.extend("--ft-chip-success-color","",Le.contentSuccessPrimary),ke.extend("--ft-chip-success-border-color","",Le.borderSuccessPrimary),ke.extend("--ft-chip-warning-background-color","",Le.backgroundWarningSubtle),ke.extend("--ft-chip-warning-color","",Le.contentWarningPrimary),ke.extend("--ft-chip-warning-border-color","",Le.borderWarningPrimary),ke.extend("--ft-chip-error-background-color","",Le.backgroundErrorSubtle),ke.extend("--ft-chip-error-color","",Le.contentErrorPrimary),ke.extend("--ft-chip-error-border-color","",Le.borderErrorPrimary),ke.create("--ft-notice-border-width","","SIZE","1px"),ke.extend("--ft-notice-horizontal-padding","",Ie.spacing2),ke.extend("--ft-notice-vertical-padding","",Ie.spacing1),ke.extend("--ft-notice-border-radius","",Ie.borderRadiusS),ke.extend("--ft-notice-gap","",Ie.spacing2),ke.extend("--ft-notice-icon-size","",Ie.iconSize3),ke.extend("--ft-notice-info-background-color","",Le.backgroundInfoSubtle),ke.extend("--ft-notice-info-border-color","",Le.borderInfoPrimary),ke.extend("--ft-notice-info-color","",Le.contentInfoPrimary),ke.extend("--ft-notice-warning-background-color","",Le.backgroundWarningSubtle),ke.extend("--ft-notice-warning-border-color","",Le.borderWarningPrimary),ke.extend("--ft-notice-warning-color","",Le.contentWarningPrimary),ke.extend("--ft-checkbox-label-color","",Le.contentGlobalPrimary),ke.extend("--ft-checkbox-checked-background-color","",Le.contentActionPrimary),ke.extend("--ft-checkbox-checked-state-layer-color","",Le.contentActionPrimary),ke.extend("--ft-checkbox-checked-color","",Le.contentGlobalOnColor),ke.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-checkbox-checked-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-checkbox-unchecked-border-color","",Ie.colorGray80),ke.extend("--ft-checkbox-unchecked-state-layer-color","",Ie.colorGray80),ke.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-checkbox-focus-focus-ring-color","",Le.borderActionFocusRing),ke.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),ke.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),ke.extend("--ft-checkbox-gap","",Ie.spacing3),ke.extend("--ft-toggle-off-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-toggle-off-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-toggle-off-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-toggle-off-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-toggle-off-background-color","",Le.contentGlobalSubtle),ke.extend("--ft-toggle-off-icon-color","",Le.contentGlobalSubtle),ke.extend("--ft-toggle-off-state-layer-color","",Le.contentGlobalSubtle),ke.extend("--ft-toggle-on-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-toggle-on-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-toggle-on-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-toggle-on-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-toggle-on-background-color","",Le.contentActionPrimary),ke.extend("--ft-toggle-on-icon-color","",Le.contentActionPrimary),ke.extend("--ft-toggle-on-state-layer-color","",Le.contentActionPrimary),ke.extend("--ft-toggle-label-color","",Le.contentGlobalPrimary),ke.extend("--ft-toggle-focus-focus-ring-color","",Le.borderActionFocusRing),ke.extend("--ft-toggle-gap","",Ie.spacing3),ke.extend("--ft-radio-label-color","",Le.contentGlobalPrimary),ke.extend("--ft-radio-selected-color","",Le.contentActionPrimary),ke.extend("--ft-radio-selected-state-layer-color","",Le.contentActionPrimary),ke.extend("--ft-radio-selected-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-radio-selected-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-radio-selected-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-radio-selected-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-radio-unselected-state-layer-color","",Ie.colorGray80),ke.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-radio-unselected-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-radio-unselected-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-radio-focus-focus-ring-color","",Le.borderActionFocusRing),ke.create("--ft-radio-focus-outline-offset","","SIZE","3px"),ke.create("--ft-radio-focus-outline-width","","SIZE","2px"),ke.extend("--ft-radio-gap","",Ie.spacing3),ke.extend("--ft-notification-icon-size","",Ie.iconSize4),ke.extend("--ft-notification-horizontal-padding","",Ie.spacing4),ke.extend("--ft-notification-vertical-padding","",Ie.spacing4),ke.extend("--ft-notification-info-background-color","",Le.backgroundInfoSubtle),ke.extend("--ft-notification-info-color","",Le.contentInfoPrimary),ke.extend("--ft-notification-info-border-color","",Le.borderInfoPrimary),ke.extend("--ft-notification-success-background-color","",Le.backgroundSuccessSubtle),ke.extend("--ft-notification-success-color","",Le.contentSuccessPrimary),ke.extend("--ft-notification-success-border-color","",Le.borderSuccessPrimary),ke.extend("--ft-notification-warning-background-color","",Le.backgroundWarningSubtle),ke.extend("--ft-notification-warning-color","",Le.contentWarningPrimary),ke.extend("--ft-notification-warning-border-color","",Le.borderWarningPrimary),ke.extend("--ft-notification-error-background-color","",Le.backgroundErrorSubtle),ke.extend("--ft-notification-error-color","",Le.contentErrorPrimary),ke.extend("--ft-notification-error-border-color","",Le.borderErrorPrimary),ke.extend("--ft-notification-border-radius","",Ie.borderRadiusPill),ke.create("--ft-notification-border-width","","SIZE","1px"),ke.extend("--ft-notification-gap-leading","",Ie.spacing2),ke.extend("--ft-notification-gap-trailing","",Ie.spacing8);const _e={colorPrimary:ke.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:ke.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:ke.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:ke.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:ke.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:ke.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ke.create("--ft-color-error","","COLOR","#B00020"),colorOutline:ke.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ke.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:ke.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:ke.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:ke.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:ke.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:ke.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ke.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ke.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:ke.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:ke.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ke.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ke.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ke.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ke.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ke.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ke.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:ke.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:ke.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:ke.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:ke.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:ke.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:ke.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ke.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ke.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:ke.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ke.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ke.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ke.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ke.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ke.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ke.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:ke.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ke.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ke.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ke.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ke.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:ke.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:ke.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:ke.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:ke.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ke.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ke.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:ke.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class Te extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
|
|
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 Re{static create(t,e,i,o){const r=t=>ke(null!=t?t:o),n=Rt`var(${ke(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`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=Rt`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=>Rt`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=Rt`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=>Rt`var(${ke(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Ie(t,e){return ke(`${t.name}: ${e}`)}const Ue={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")},Le={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","2rem"),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","600"),lineHeight:Re.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),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","600"),lineHeight:Re.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),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")}},Ae={backgroundActionPrimary:Re.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ue.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Ue.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ue.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Ue.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ue.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Ue.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ue.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Ue.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ue.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Ue.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ue.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ue.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ue.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ue.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ue.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ue.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Ue.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ue.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Ue.colorCyan0),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Ue.colorGreen0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ue.colorGreen200),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Ue.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ue.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ue.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ue.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Ue.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ue.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for warning components.",Ue.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success components.",Ue.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for error components.",Ue.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for information components.",Ue.colorCyan30),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ue.colorGray30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Ue.colorGray50),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ue.colorGray80)},_e={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Ue.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Ue.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Ue.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Ue.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","",Ue.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Ue.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Ue.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Ue.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","",Ae.backgroundActionPrimary),primaryColor:Re.extend("--ft-button-primary-color","",Ae.contentGlobalOnColor),primaryIconColor:Re.extend("--ft-button-primary-icon-color","",Ae.contentGlobalOnColor),primaryStateLayerColor:Re.extend("--ft-button-primary-state-layer-color","",Ae.contentGlobalOnColor),primaryStateLayerOpacityHover:Re.extend("--ft-button-primary-state-layer-opacity-hover","",Ue.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Ue.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Ue.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Ue.opacity40),focusFocusRingColor:Re.extend("--ft-button-focus-focus-ring-color","",Ae.borderActionFocusRing),tertiaryBackgroundColor:Re.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Re.extend("--ft-button-tertiary-color","",Ae.contentActionPrimary),tertiaryIconColor:Re.extend("--ft-button-tertiary-icon-color","",Ae.contentActionPrimary),tertiaryStateLayerColor:Re.extend("--ft-button-tertiary-state-layer-color","",Ae.contentActionPrimary),tertiaryStateLayerOpacityHover:Re.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ue.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ue.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Ue.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Ue.opacity40),secondaryBackgroundColor:Re.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Re.extend("--ft-button-secondary-color","",Ae.contentActionPrimary),secondaryIconColor:Re.extend("--ft-button-secondary-icon-color","",Ae.contentActionPrimary),secondaryStateLayerColor:Re.extend("--ft-button-secondary-state-layer-color","",Ae.contentActionPrimary),secondaryStateLayerOpacityHover:Re.extend("--ft-button-secondary-state-layer-opacity-hover","",Ue.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Ue.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Ue.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Ue.opacity40),secondaryBorderColor:Re.extend("--ft-button-secondary-border-color","",Ae.borderActionPrimary),neutralBackgroundColor:Re.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Re.extend("--ft-button-neutral-icon-color","",Ae.contentGlobalSecondary),neutralColor:Re.extend("--ft-button-neutral-color","",Ae.contentGlobalSecondary),neutralStateLayerColor:Re.extend("--ft-button-neutral-state-layer-color","",Ae.contentGlobalSecondary),neutralStateLayerOpacityHover:Re.extend("--ft-button-neutral-state-layer-opacity-hover","",Ue.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Ue.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Ue.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Ue.opacity40)};Re.extend("--ft-tabs-top-left-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Ue.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Ue.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Ue.spacing3),Re.extend("--ft-tabs-label-gap","",Ue.spacing1),Re.extend("--ft-switch-group-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-group-gap","",Ue.spacing1),Re.extend("--ft-switch-group-background-color","",Ae.backgroundGlobalSurface),Re.extend("--ft-switch-group-border-color","",Ae.borderGlobalSubtle),Re.create("--ft-switch-group-border-radius","","SIZE","6px"),Re.extend("--ft-switch-label-horizontal-padding","",Ue.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Ue.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Ue.spacing1),Re.create("--ft-switch-focus-outline-width","","SIZE","2px"),Re.extend("--ft-switch-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-switch-option-border-radius","",Ue.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Ue.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Ue.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-switch-off-color","",Ae.contentGlobalSubtle),Re.extend("--ft-switch-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-chart-1-light","for area color charts",Ue.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Ue.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Ue.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Ue.colorYellow100),Re.extend("--ft-chart-3-light","",Ue.colorUltramarine40),Re.extend("--ft-chart-3-base","",Ue.colorUltramarine70),Re.extend("--ft-chart-4-light","",Ue.colorCyan50),Re.extend("--ft-chart-4-base","",Ue.colorCyan100),Re.extend("--ft-chart-5-light","",Ue.colorRed40),Re.extend("--ft-chart-5-base","",Ue.colorRed60),Re.extend("--ft-chart-6-light","",Ue.colorGreen40),Re.extend("--ft-chart-6-base","",Ue.colorGreen70),Re.extend("--ft-chart-7-light","",Ue.colorOrange70),Re.extend("--ft-chart-7-base","",Ue.colorOrange100),Re.extend("--ft-chart-8-light","",Ue.colorAvocado70),Re.extend("--ft-chart-8-base","",Ue.colorAvocado200),Re.extend("--ft-chart-9-light","",Ue.colorBrown50),Re.extend("--ft-chart-9-base","",Ue.colorBrown200),Re.extend("--ft-chart-10-light","",Ue.colorGray50),Re.extend("--ft-chart-10-base","",Ue.colorGray80),Re.extend("--ft-chart-monochrome-10","",Ue.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Ue.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Ue.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Ue.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Ue.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Ue.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Ue.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Ue.spacing2),Re.extend("--ft-chip-large-gap","",Ue.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","",Ue.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Ue.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Ue.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Ue.spacing1),Re.extend("--ft-chip-medium-gap","",Ue.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","",Ue.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Ue.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Ue.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Ue.spacing05),Re.extend("--ft-chip-small-gap","",Ue.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","",Ue.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Ue.iconSize1),Re.extend("--ft-chip-neutral-background-color","",Ae.backgroundGlobalOnSurface),Re.extend("--ft-chip-neutral-color","",Ae.contentGlobalPrimary),Re.extend("--ft-chip-neutral-border-color","",Ae.borderGlobalSubtle),Re.extend("--ft-chip-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-chip-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-chip-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-chip-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-chip-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-chip-success-border-color","",Ae.borderSuccessPrimary),Re.extend("--ft-chip-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-chip-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-chip-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-chip-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-chip-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-chip-error-border-color","",Ae.borderErrorPrimary),Re.create("--ft-notice-border-width","","SIZE","1px"),Re.extend("--ft-notice-horizontal-padding","",Ue.spacing2),Re.extend("--ft-notice-vertical-padding","",Ue.spacing1),Re.extend("--ft-notice-border-radius","",Ue.borderRadiusS),Re.extend("--ft-notice-gap","",Ue.spacing2),Re.extend("--ft-notice-icon-size","",Ue.iconSize3),Re.extend("--ft-notice-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notice-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-notice-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notice-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notice-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-notice-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-checkbox-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-checkbox-checked-background-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-checkbox-checked-color","",Ae.contentGlobalOnColor),Re.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Ue.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-checkbox-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Re.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Re.extend("--ft-checkbox-gap","",Ue.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-off-background-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-icon-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-off-state-layer-color","",Ae.contentGlobalSubtle),Re.extend("--ft-toggle-on-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-toggle-on-background-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-icon-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-on-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-toggle-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-toggle-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.extend("--ft-toggle-gap","",Ue.spacing3),Re.extend("--ft-radio-label-color","",Ae.contentGlobalPrimary),Re.extend("--ft-radio-selected-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-color","",Ae.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Ue.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ue.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Ue.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Ue.opacity40),Re.extend("--ft-radio-focus-focus-ring-color","",Ae.borderActionFocusRing),Re.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Re.create("--ft-radio-focus-outline-width","","SIZE","2px"),Re.extend("--ft-radio-gap","",Ue.spacing3),Re.extend("--ft-notification-icon-size","",Ue.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Ue.spacing4),Re.extend("--ft-notification-vertical-padding","",Ue.spacing4),Re.extend("--ft-notification-info-background-color","",Ae.backgroundInfoSubtle),Re.extend("--ft-notification-info-color","",Ae.contentInfoPrimary),Re.extend("--ft-notification-info-border-color","",Ae.borderInfoPrimary),Re.extend("--ft-notification-success-background-color","",Ae.backgroundSuccessSubtle),Re.extend("--ft-notification-success-color","",Ae.contentSuccessPrimary),Re.extend("--ft-notification-success-border-color","",Ae.borderSuccessPrimary),Re.extend("--ft-notification-warning-background-color","",Ae.backgroundWarningSubtle),Re.extend("--ft-notification-warning-color","",Ae.contentWarningPrimary),Re.extend("--ft-notification-warning-border-color","",Ae.borderWarningPrimary),Re.extend("--ft-notification-error-background-color","",Ae.backgroundErrorSubtle),Re.extend("--ft-notification-error-color","",Ae.contentErrorPrimary),Re.extend("--ft-notification-error-border-color","",Ae.borderErrorPrimary),Re.extend("--ft-notification-border-radius","",Ue.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Ue.spacing2),Re.extend("--ft-notification-gap-trailing","",Ue.spacing8);const Te={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 We extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
|
|
91
91
|
/**
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2019 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/const
|
|
95
|
+
*/const De=window,Fe=De.ShadowRoot&&(void 0===De.ShadyCSS||De.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Pe extends Ce{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)=>{Fe?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=De.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Me,je=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 ze=Symbol("constructorPrototype"),Be=Symbol("constructorName"),Ke=Symbol("exportpartsDebouncer");class Ze extends Pe{constructor(){super(),this[Me]=new r(5),this[Be]=this.constructor.name,this[ze]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Be]&&Object.setPrototypeOf(this,this[ze])}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[Ke].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(", "))}}Me=Ke,je([k()],Ze.prototype,"exportpartsPrefix",void 0),je([F([])],Ze.prototype,"exportpartsPrefixes",void 0),je([k()],Ze.prototype,"customStylesheet",void 0);const He=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
|
|
96
96
|
.highlight-html-match {
|
|
97
|
-
background: ${
|
|
97
|
+
background: ${He};
|
|
98
98
|
}
|
|
99
|
-
`;const
|
|
99
|
+
`;const Ge=Rt`
|
|
100
100
|
.ft-no-text-select {
|
|
101
101
|
-webkit-touch-callout: none;
|
|
102
102
|
-webkit-user-select: none;
|
|
@@ -105,7 +105,7 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
105
105
|
-ms-user-select: none;
|
|
106
106
|
user-select: none;
|
|
107
107
|
}
|
|
108
|
-
`;
|
|
108
|
+
`;Rt`
|
|
109
109
|
.ft-word-wrap {
|
|
110
110
|
white-space: normal;
|
|
111
111
|
word-wrap: break-word;
|
|
@@ -117,7 +117,7 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
117
117
|
-webkit-hyphens: auto;
|
|
118
118
|
hyphens: auto
|
|
119
119
|
}
|
|
120
|
-
`;const
|
|
120
|
+
`;const Ve=Rt`
|
|
121
121
|
.ft-safari-ellipsis-fix {
|
|
122
122
|
margin-right: 0;
|
|
123
123
|
|
|
@@ -128,7 +128,7 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
128
128
|
display: inline-block;
|
|
129
129
|
width: 0;
|
|
130
130
|
}
|
|
131
|
-
`;class Ve{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 qe=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!T(t,e),attribute:!1,...e};k(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 Ye{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 Xe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Je,Qe,ti;const ei=Symbol("internalReduxEventsUnsubscribers"),ii=Symbol("internalStoresUnsubscribers"),oi=Symbol("internalStores");class ri extends Ke{constructor(){super(...arguments),this[Je]=new Map,this[Qe]=new Map,this[ti]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[oi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[oi].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[oi].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Xe(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[oi].delete(e)}setupStore(t,e){this[oi].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[oi].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[ii].has(t.store):this[ii].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ii].set(t,e.subscribe((()=>this.updateFromStores()))),Xe(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[ei].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ii].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ei].forEach((t=>t())),this[ei]=[]}unsubscribeFromStore(t){this[ii].has(t)&&this[ii].get(t)(),this[ii].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ni(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 ai(t){return!!t&&!!t[Hi]}function si(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)===Gi}(t)||Array.isArray(t)||!!t[Zi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zi])||ui(t)||pi(t))}function li(t,e,i){void 0===i&&(i=!1),0===ci(t)?(i?Object.keys:Vi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ci(t){var e=t[Hi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ui(t)?2:pi(t)?3:0}function fi(t,e){return 2===ci(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function hi(t,e,i){var o=ci(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function di(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ui(t){return ji&&t instanceof Map}function pi(t){return zi&&t instanceof Set}function yi(t){return t.o||t.t}function gi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qi(t);delete e[Hi];for(var i=Vi(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 bi(t,e){return void 0===e&&(e=!1),mi(t)||ai(t)||!si(t)||(ci(t)>1&&(t.set=t.add=t.clear=t.delete=vi),Object.freeze(t),e&&li(t,(function(t,e){return bi(e,!0)}),!0)),t}function vi(){ni(2)}function mi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function xi(t){var e=Yi[t];return e||ni(18,t),e}function wi(){return Pi}function Oi(t,e){e&&(xi("Patches"),t.u=[],t.s=[],t.v=e)}function Si(t){$i(t),t.p.forEach(Ci),t.p=null}function $i(t){t===Pi&&(Pi=t.l)}function Ni(t){return Pi={p:[],l:Pi,h:t,m:!0,_:0}}function Ci(t){var e=t[Hi];0===e.i||1===e.i?e.j():e.g=!0}function Ei(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||xi("ES5").S(e,t,o),o?(i[Hi].P&&(Si(e),ni(4)),si(t)&&(t=ki(e,t),e.l||Ii(e,t)),e.u&&xi("Patches").M(i[Hi].t,t,e.u,e.s)):t=ki(e,i,[]),Si(e),e.u&&e.v(e.u,e.s),t!==Ki?t:void 0}function ki(t,e,i){if(mi(e))return e;var o=e[Hi];if(!o)return li(e,(function(r,n){return Ri(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ii(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=gi(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),li(n,(function(e,n){return Ri(t,o,r,e,n,i,a)})),Ii(t,r,!1),i&&t.u&&xi("Patches").N(o,i,t.u,t.s)}return o.o}function Ri(t,e,i,o,r,n,a){if(ai(r)){var s=ki(t,r,n&&e&&3!==e.i&&!fi(e.R,o)?n.concat(o):void 0);if(hi(i,o,s),!ai(s))return;t.m=!1}else a&&i.add(r);if(si(r)&&!mi(r)){if(!t.h.D&&t._<1)return;ki(t,r),e&&e.A.l||Ii(t,r)}}function Ii(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&bi(e,i)}function Ui(t,e){var i=t[Hi];return(i?yi(i):t)[e]}function Li(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 Ai(t){t.P||(t.P=!0,t.l&&Ai(t.l))}function _i(t){t.o||(t.o=gi(t.t))}function Ti(t,e,i){var o=ui(e)?xi("MapSet").F(e,i):pi(e)?xi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:wi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Xi;i&&(r=[o],n=Ji);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):xi("ES5").J(e,i);return(i?i.A:wi()).p.push(o),o}function Wi(t){return ai(t)||ni(22,t),function t(e){if(!si(e))return e;var i,o=e[Hi],r=ci(e);if(o){if(!o.P&&(o.i<4||!xi("ES5").K(o)))return o.t;o.I=!0,i=Di(e,r),o.I=!1}else i=Di(e,r);return li(i,(function(e,r){o&&function(t,e){return 2===ci(t)?t.get(e):t[e]}(o.t,e)===r||hi(i,e,t(r))})),3===r?new Set(i):i}(t)}function Di(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return gi(t)}Je=ii,Qe=oi,ti=ei,ri.reduxProperties=new Map,ri.reduxReactiveProperties=new Set,ri.reduxEventListeners=new Map;var Fi,Pi,Mi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ji="undefined"!=typeof Map,zi="undefined"!=typeof Set,Bi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ki=Mi?Symbol.for("immer-nothing"):((Fi={})["immer-nothing"]=!0,Fi),Zi=Mi?Symbol.for("immer-draftable"):"__$immer_draftable",Hi=Mi?Symbol.for("immer-state"):"__$immer_state",Gi=""+Object.prototype.constructor,Vi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qi=Object.getOwnPropertyDescriptors||function(t){var e={};return Vi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Yi={},Xi={get:function(t,e){if(e===Hi)return t;var i=yi(t);if(!fi(i,e))return function(t,e,i){var o,r=Li(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||!si(o)?o:o===Ui(t.t,e)?(_i(t),t.o[e]=Ti(t.A.h,o,t)):o},has:function(t,e){return e in yi(t)},ownKeys:function(t){return Reflect.ownKeys(yi(t))},set:function(t,e,i){var o=Li(yi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Ui(yi(t),e),n=null==r?void 0:r[Hi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(di(i,r)&&(void 0!==i||fi(t.t,e)))return!0;_i(t),Ai(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!==Ui(t.t,e)||e in t.t?(t.R[e]=!1,_i(t),Ai(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=yi(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(){ni(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ni(12)}},Ji={};li(Xi,(function(t,e){Ji[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ji.deleteProperty=function(t,e){return Ji.set.call(this,t,e,void 0)},Ji.set=function(t,e,i){return Xi.set.call(this,t[0],e,i,t[0])};var Qi=function(){function t(t){var e=this;this.O=Bi,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&&ni(6),void 0!==o&&"function"!=typeof o&&ni(7),si(t)){var s=Ni(e),l=Ti(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Si(s):$i(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Oi(s,o),Ei(t,s)}),(function(t){throw Si(s),t})):(Oi(s,o),Ei(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Ki&&(a=void 0),e.D&&bi(a,!0),o){var f=[],h=[];xi("Patches").M(t,a,f,h),o(f,h)}return a}ni(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){si(t)||ni(8),ai(t)&&(t=Wi(t));var e=Ni(this),i=Ti(this,t,void 0);return i[Hi].C=!0,$i(e),i},e.finishDraft=function(t,e){var i=(t&&t[Hi]).A;return Oi(i,e),Ei(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Bi&&ni(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=xi("Patches").$;return ai(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),to=new Qi,eo=to.produce;function io(t){return io="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},io(t)}function oo(t){var e=function(t,e){if("object"!==io(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==io(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===io(e)?e:String(e)}function ro(t,e,i){return(e=oo(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function no(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 ao(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?no(Object(i),!0).forEach((function(e){ro(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):no(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function so(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. "}to.produceWithPatches.bind(to),to.setAutoFreeze.bind(to),to.setUseProxies.bind(to),to.applyPatches.bind(to),to.createDraft.bind(to),to.finishDraft.bind(to);var lo="function"==typeof Symbol&&Symbol.observable||"@@observable",co=function(){return Math.random().toString(36).substring(7).split("").join(".")},fo={INIT:"@@redux/INIT"+co(),REPLACE:"@@redux/REPLACE"+co(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+co()}};function ho(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(so(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(so(1));return i(ho)(t,e)}if("function"!=typeof t)throw new Error(so(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(so(3));return n}function h(t){if("function"!=typeof t)throw new Error(so(4));if(l)throw new Error(so(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(so(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(so(7));if(void 0===t.type)throw new Error(so(8));if(l)throw new Error(so(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:fo.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(so(10));r=t,d({type:fo.REPLACE})}})[lo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(so(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[lo]=function(){return this},t},o}function uo(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:fo.INIT}))throw new Error(so(12));if(void 0===i(void 0,{type:fo.PROBE_UNKNOWN_ACTION()}))throw new Error(so(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(so(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function po(){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 yo(){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(so(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=po.apply(void 0,n)(i.dispatch),ao(ao({},i),{},{dispatch:o})}}}function go(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 bo=go();bo.withExtraArgument=go;var vo,mo=bo,xo=(vo=function(t,e){return vo=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])},vo(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}vo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),wo=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])}}},Oo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},So=Object.defineProperty,$o=Object.defineProperties,No=Object.getOwnPropertyDescriptors,Co=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,Ro=function(t,e,i){return e in t?So(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Io=function(t,e){for(var i in e||(e={}))Eo.call(e,i)&&Ro(t,i,e[i]);if(Co)for(var o=0,r=Co(e);o<r.length;o++){i=r[o];ko.call(e,i)&&Ro(t,i,e[i])}return t},Uo=function(t,e){return $o(t,No(e))},Lo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?po:po.apply(null,arguments)};var Ao=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 xo(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,Oo([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],t.concat(this))))},e}(Array),_o=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 xo(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,Oo([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],t.concat(this))))},e}(Array);function To(t){return si(t)?eo(t,(function(){})):t}function Wo(){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 Ao;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(mo.withExtraArgument(i.extraArgument)):o.push(mo));return o}(t)}}function Do(t){var e,i=Wo(),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=uo(n)}var p=s;"function"==typeof p&&(p=p(i));var y=yo.apply(void 0,p),g=po;c&&(g=Lo(Io({trace:!1},"object"==typeof c&&c)));var b=new _o(y),v=b;return Array.isArray(u)?v=Oo([y],u):"function"==typeof u&&(v=u(b)),ho(e,h,g.apply(void 0,v))}function Fo(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 Io(Io({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 Po(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 Mo(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:To(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Po(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=Io(Io({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Po(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return To(t())};else{var c=To(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=Oo([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(ai(t))return void 0===(o=i(t,e))?t:o;if(si(t))return eo(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?Fo(c,o):Fo(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 jo=["name","message","stack","code"],zo=function(t,e){this.payload=t,this.meta=e},Bo=function(t,e){this.payload=t,this.meta=e},Ko=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=jo;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Zo(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=Fo(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Uo(Io({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Fo(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Uo(Io({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Fo(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Ko)(t||"Rejected"),meta:Uo(Io({},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 wo(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 zo(t,e)},fulfillWithValue:function(t,e){return new Bo(t,e)}})).then((function(e){if(e instanceof zo)throw e;return e instanceof Bo?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 zo?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(Zo)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Ho="listenerMiddleware";Fo(Ho+"/add"),Fo(Ho+"/removeAll"),Fo(Ho+"/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[Hi];return Xi.get(e,t)},set:function(e){var i=this[Hi];Xi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Hi];if(!r.P)switch(r.i){case 5:o(r)&&Ai(r);break;case 4:i(r)&&Ai(r)}}}function i(t){for(var e=t.t,i=t.k,o=Vi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Hi){var a=e[n];if(void 0===a&&!fi(e,n))return!0;var s=i[n],l=s&&s[Hi];if(l?l.t!==a:!di(s,a))return!0}}var c=!!e[Hi];return o.length!==Vi(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){Yi[t]||(Yi[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=qi(i);delete n[Hi];for(var a=Vi(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:wi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Hi,{value:n,writable:!0}),r},S:function(t,i,r){r?ai(i)&&i[Hi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Hi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)li(n,(function(e){e!==Hi&&(void 0!==r[e]||fi(r,e)?a[e]||t(n[e]):(a[e]=!0,Ai(i)))})),li(r,(function(t){void 0!==n[t]||fi(n,t)||(a[t]=!1,Ai(i))}));else if(5===s){if(o(i)&&(Ai(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 Go{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(Xe(r))return r;if(null==o)return;const n=Mo({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Do({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 Go(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ye,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 Vo=Symbol("elementInternals");function qo(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Vo].form}constructor(...t){super(t),this[Vo]=this.attachInternals(),this[Vo].role=e}setFormValue(t){this[Vo].setFormValue(t)}}}var Yo,Xo,Jo;const Qo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Jo=null===(Xo=null===(Yo=window.safari)||void 0===Yo?void 0:Yo.pushNotification)||void 0===Xo?void 0:Xo.toString())&&void 0!==Jo?Jo:"");var tr;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(tr||(tr={}));var er=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 ir extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const or=Symbol("registerInterval");class rr 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[or]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[or]):this.dispatchEvent(new ir)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=or,er([R()],i.prototype,"stateManager",void 0),i}(ri)){}const nr=ke.extend("--ft-ripple-color","",_e.colorContent),ar={color:nr,backgroundColor:ke.extend("--ft-ripple-background-color","",nr),opacityContentOnSurfacePressed:ke.external(_e.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ke.external(_e.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ke.external(_e.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ke.external(_e.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ke.create("--ft-ripple-border-radius","","SIZE","0px")},sr=ke.extend("--ft-ripple-color","",_e.colorPrimary),lr=sr,cr=ke.extend("--ft-ripple-background-color","",sr),fr=ke.extend("--ft-ripple-color","",_e.colorSecondary),hr=fr,dr=ke.extend("--ft-ripple-background-color","",fr),ur=kt`
|
|
131
|
+
`;class qe{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 Ye=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!W(t,e),attribute:!1,...e};k(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 Xe{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 Je(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Qe,ti,ei;const ii=Symbol("internalReduxEventsUnsubscribers"),oi=Symbol("internalStoresUnsubscribers"),ri=Symbol("internalStores");class ni extends Ze{constructor(){super(...arguments),this[Qe]=new Map,this[ti]=new Map,this[ei]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ri].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ri].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ri].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Je(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[ri].delete(e)}setupStore(t,e){this[ri].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ri].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[oi].has(t.store):this[oi].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[oi].set(t,e.subscribe((()=>this.updateFromStores()))),Je(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[ii].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oi].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ii].forEach((t=>t())),this[ii]=[]}unsubscribeFromStore(t){this[oi].has(t)&&this[oi].get(t)(),this[oi].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ai(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 si(t){return!!t&&!!t[Gi]}function li(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)===Vi}(t)||Array.isArray(t)||!!t[Hi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Hi])||pi(t)||yi(t))}function ci(t,e,i){void 0===i&&(i=!1),0===fi(t)?(i?Object.keys:qi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function fi(t){var e=t[Gi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:pi(t)?2:yi(t)?3:0}function hi(t,e){return 2===fi(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function di(t,e,i){var o=fi(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function ui(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function pi(t){return zi&&t instanceof Map}function yi(t){return Bi&&t instanceof Set}function gi(t){return t.o||t.t}function bi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yi(t);delete e[Gi];for(var i=qi(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 vi(t,e){return void 0===e&&(e=!1),xi(t)||si(t)||!li(t)||(fi(t)>1&&(t.set=t.add=t.clear=t.delete=mi),Object.freeze(t),e&&ci(t,(function(t,e){return vi(e,!0)}),!0)),t}function mi(){ai(2)}function xi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wi(t){var e=Xi[t];return e||ai(18,t),e}function Oi(){return Mi}function Si(t,e){e&&(wi("Patches"),t.u=[],t.s=[],t.v=e)}function $i(t){Ni(t),t.p.forEach(Ei),t.p=null}function Ni(t){t===Mi&&(Mi=t.l)}function Ci(t){return Mi={p:[],l:Mi,h:t,m:!0,_:0}}function Ei(t){var e=t[Gi];0===e.i||1===e.i?e.j():e.g=!0}function ki(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||wi("ES5").S(e,t,o),o?(i[Gi].P&&($i(e),ai(4)),li(t)&&(t=Ri(e,t),e.l||Ui(e,t)),e.u&&wi("Patches").M(i[Gi].t,t,e.u,e.s)):t=Ri(e,i,[]),$i(e),e.u&&e.v(e.u,e.s),t!==Zi?t:void 0}function Ri(t,e,i){if(xi(e))return e;var o=e[Gi];if(!o)return ci(e,(function(r,n){return Ii(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ui(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=bi(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ci(n,(function(e,n){return Ii(t,o,r,e,n,i,a)})),Ui(t,r,!1),i&&t.u&&wi("Patches").N(o,i,t.u,t.s)}return o.o}function Ii(t,e,i,o,r,n,a){if(si(r)){var s=Ri(t,r,n&&e&&3!==e.i&&!hi(e.R,o)?n.concat(o):void 0);if(di(i,o,s),!si(s))return;t.m=!1}else a&&i.add(r);if(li(r)&&!xi(r)){if(!t.h.D&&t._<1)return;Ri(t,r),e&&e.A.l||Ui(t,r)}}function Ui(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&vi(e,i)}function Li(t,e){var i=t[Gi];return(i?gi(i):t)[e]}function Ai(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 _i(t){t.P||(t.P=!0,t.l&&_i(t.l))}function Ti(t){t.o||(t.o=bi(t.t))}function Wi(t,e,i){var o=pi(e)?wi("MapSet").F(e,i):yi(e)?wi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:Oi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Ji;i&&(r=[o],n=Qi);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):wi("ES5").J(e,i);return(i?i.A:Oi()).p.push(o),o}function Di(t){return si(t)||ai(22,t),function t(e){if(!li(e))return e;var i,o=e[Gi],r=fi(e);if(o){if(!o.P&&(o.i<4||!wi("ES5").K(o)))return o.t;o.I=!0,i=Fi(e,r),o.I=!1}else i=Fi(e,r);return ci(i,(function(e,r){o&&function(t,e){return 2===fi(t)?t.get(e):t[e]}(o.t,e)===r||di(i,e,t(r))})),3===r?new Set(i):i}(t)}function Fi(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return bi(t)}Qe=oi,ti=ri,ei=ii,ni.reduxProperties=new Map,ni.reduxReactiveProperties=new Set,ni.reduxEventListeners=new Map;var Pi,Mi,ji="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),zi="undefined"!=typeof Map,Bi="undefined"!=typeof Set,Ki="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Zi=ji?Symbol.for("immer-nothing"):((Pi={})["immer-nothing"]=!0,Pi),Hi=ji?Symbol.for("immer-draftable"):"__$immer_draftable",Gi=ji?Symbol.for("immer-state"):"__$immer_state",Vi=""+Object.prototype.constructor,qi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yi=Object.getOwnPropertyDescriptors||function(t){var e={};return qi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Xi={},Ji={get:function(t,e){if(e===Gi)return t;var i=gi(t);if(!hi(i,e))return function(t,e,i){var o,r=Ai(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||!li(o)?o:o===Li(t.t,e)?(Ti(t),t.o[e]=Wi(t.A.h,o,t)):o},has:function(t,e){return e in gi(t)},ownKeys:function(t){return Reflect.ownKeys(gi(t))},set:function(t,e,i){var o=Ai(gi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Li(gi(t),e),n=null==r?void 0:r[Gi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(ui(i,r)&&(void 0!==i||hi(t.t,e)))return!0;Ti(t),_i(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!==Li(t.t,e)||e in t.t?(t.R[e]=!1,Ti(t),_i(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=gi(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(){ai(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ai(12)}},Qi={};ci(Ji,(function(t,e){Qi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qi.deleteProperty=function(t,e){return Qi.set.call(this,t,e,void 0)},Qi.set=function(t,e,i){return Ji.set.call(this,t[0],e,i,t[0])};var to=function(){function t(t){var e=this;this.O=Ki,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&&ai(6),void 0!==o&&"function"!=typeof o&&ai(7),li(t)){var s=Ci(e),l=Wi(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?$i(s):Ni(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Si(s,o),ki(t,s)}),(function(t){throw $i(s),t})):(Si(s,o),ki(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Zi&&(a=void 0),e.D&&vi(a,!0),o){var f=[],h=[];wi("Patches").M(t,a,f,h),o(f,h)}return a}ai(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){li(t)||ai(8),si(t)&&(t=Di(t));var e=Ci(this),i=Wi(this,t,void 0);return i[Gi].C=!0,Ni(e),i},e.finishDraft=function(t,e){var i=(t&&t[Gi]).A;return Si(i,e),ki(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ki&&ai(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=wi("Patches").$;return si(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),eo=new to,io=eo.produce;function oo(t){return oo="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},oo(t)}function ro(t){var e=function(t,e){if("object"!==oo(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==oo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===oo(e)?e:String(e)}function no(t,e,i){return(e=ro(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ao(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 so(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ao(Object(i),!0).forEach((function(e){no(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ao(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function lo(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. "}eo.produceWithPatches.bind(eo),eo.setAutoFreeze.bind(eo),eo.setUseProxies.bind(eo),eo.applyPatches.bind(eo),eo.createDraft.bind(eo),eo.finishDraft.bind(eo);var co="function"==typeof Symbol&&Symbol.observable||"@@observable",fo=function(){return Math.random().toString(36).substring(7).split("").join(".")},ho={INIT:"@@redux/INIT"+fo(),REPLACE:"@@redux/REPLACE"+fo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fo()}};function uo(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(lo(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(lo(1));return i(uo)(t,e)}if("function"!=typeof t)throw new Error(lo(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(lo(3));return n}function h(t){if("function"!=typeof t)throw new Error(lo(4));if(l)throw new Error(lo(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(lo(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(lo(7));if(void 0===t.type)throw new Error(lo(8));if(l)throw new Error(lo(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:ho.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(lo(10));r=t,d({type:ho.REPLACE})}})[co]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(lo(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[co]=function(){return this},t},o}function po(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:ho.INIT}))throw new Error(lo(12));if(void 0===i(void 0,{type:ho.PROBE_UNKNOWN_ACTION()}))throw new Error(lo(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(lo(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function yo(){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 go(){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(lo(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=yo.apply(void 0,n)(i.dispatch),so(so({},i),{},{dispatch:o})}}}function bo(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 vo=bo();vo.withExtraArgument=bo;var mo,xo=vo,wo=(mo=function(t,e){return mo=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])},mo(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}mo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Oo=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])}}},So=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},$o=Object.defineProperty,No=Object.defineProperties,Co=Object.getOwnPropertyDescriptors,Eo=Object.getOwnPropertySymbols,ko=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Io=function(t,e,i){return e in t?$o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Uo=function(t,e){for(var i in e||(e={}))ko.call(e,i)&&Io(t,i,e[i]);if(Eo)for(var o=0,r=Eo(e);o<r.length;o++){i=r[o];Ro.call(e,i)&&Io(t,i,e[i])}return t},Lo=function(t,e){return No(t,Co(e))},Ao="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?yo:yo.apply(null,arguments)};var _o=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 wo(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,So([void 0],t[0].concat(this)))):new(e.bind.apply(e,So([void 0],t.concat(this))))},e}(Array),To=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 wo(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,So([void 0],t[0].concat(this)))):new(e.bind.apply(e,So([void 0],t.concat(this))))},e}(Array);function Wo(t){return li(t)?io(t,(function(){})):t}function Do(){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 _o;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(xo.withExtraArgument(i.extraArgument)):o.push(xo));return o}(t)}}function Fo(t){var e,i=Do(),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=po(n)}var p=s;"function"==typeof p&&(p=p(i));var y=go.apply(void 0,p),g=yo;c&&(g=Ao(Uo({trace:!1},"object"==typeof c&&c)));var b=new To(y),v=b;return Array.isArray(u)?v=So([y],u):"function"==typeof u&&(v=u(b)),uo(e,h,g.apply(void 0,v))}function Po(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 Uo(Uo({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 Mo(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 jo(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:Wo(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Mo(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=Uo(Uo({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Mo(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Wo(t())};else{var c=Wo(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=So([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(si(t))return void 0===(o=i(t,e))?t:o;if(li(t))return io(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?Po(c,o):Po(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 zo=["name","message","stack","code"],Bo=function(t,e){this.payload=t,this.meta=e},Ko=function(t,e){this.payload=t,this.meta=e},Zo=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=zo;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Ho(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=Po(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Lo(Uo({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Po(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Lo(Uo({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Po(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Zo)(t||"Rejected"),meta:Lo(Uo({},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 Oo(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 Bo(t,e)},fulfillWithValue:function(t,e){return new Ko(t,e)}})).then((function(e){if(e instanceof Bo)throw e;return e instanceof Ko?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 Bo?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(Ho)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Go="listenerMiddleware";Po(Go+"/add"),Po(Go+"/removeAll"),Po(Go+"/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[Gi];return Ji.get(e,t)},set:function(e){var i=this[Gi];Ji.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Gi];if(!r.P)switch(r.i){case 5:o(r)&&_i(r);break;case 4:i(r)&&_i(r)}}}function i(t){for(var e=t.t,i=t.k,o=qi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Gi){var a=e[n];if(void 0===a&&!hi(e,n))return!0;var s=i[n],l=s&&s[Gi];if(l?l.t!==a:!ui(s,a))return!0}}var c=!!e[Gi];return o.length!==qi(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){Xi[t]||(Xi[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=Yi(i);delete n[Gi];for(var a=qi(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:Oi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Gi,{value:n,writable:!0}),r},S:function(t,i,r){r?si(i)&&i[Gi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Gi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ci(n,(function(e){e!==Gi&&(void 0!==r[e]||hi(r,e)?a[e]||t(n[e]):(a[e]=!0,_i(i)))})),ci(r,(function(t){void 0!==n[t]||hi(n,t)||(a[t]=!1,_i(i))}));else if(5===s){if(o(i)&&(_i(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 Vo{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(Je(r))return r;if(null==o)return;const n=jo({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Fo({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 Vo(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Xe,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 qo=Symbol("elementInternals");function Yo(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[qo].form}constructor(...t){super(t),this[qo]=this.attachInternals(),this[qo].role=e}setFormValue(t){this[qo].setFormValue(t)}}}var Xo,Jo,Qo;const tr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Qo=null===(Jo=null===(Xo=window.safari)||void 0===Xo?void 0:Xo.pushNotification)||void 0===Jo?void 0:Jo.toString())&&void 0!==Qo?Qo:"");var er;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(er||(er={}));var ir=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 or extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const rr=Symbol("registerInterval");class nr 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[rr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[rr]):this.dispatchEvent(new or)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=rr,ir([R()],i.prototype,"stateManager",void 0),i}(ni)){}const ar=Re.extend("--ft-ripple-color","",Te.colorContent),sr={color:ar,backgroundColor:Re.extend("--ft-ripple-background-color","",ar),opacityContentOnSurfacePressed:Re.external(Te.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(Te.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(Te.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(Te.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},lr=Re.extend("--ft-ripple-color","",Te.colorPrimary),cr=lr,fr=Re.extend("--ft-ripple-background-color","",lr),hr=Re.extend("--ft-ripple-color","",Te.colorSecondary),dr=hr,ur=Re.extend("--ft-ripple-background-color","",hr),pr=Rt`
|
|
132
132
|
:host {
|
|
133
133
|
display: contents;
|
|
134
134
|
}
|
|
@@ -141,7 +141,7 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
141
141
|
|
|
142
142
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
143
143
|
overflow: hidden;
|
|
144
|
-
border-radius: ${
|
|
144
|
+
border-radius: ${sr.borderRadius};
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.ft-ripple .ft-ripple--background,
|
|
@@ -175,27 +175,27 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.ft-ripple .ft-ripple--background {
|
|
178
|
-
background-color: ${
|
|
178
|
+
background-color: ${sr.backgroundColor};
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
.ft-ripple .ft-ripple--effect {
|
|
182
|
-
background-color: ${
|
|
182
|
+
background-color: ${sr.color};
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
186
|
-
background-color: ${
|
|
186
|
+
background-color: ${ur};
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
190
|
-
background-color: ${
|
|
190
|
+
background-color: ${dr};
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
194
|
-
background-color: ${
|
|
194
|
+
background-color: ${fr};
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
198
|
-
background-color: ${
|
|
198
|
+
background-color: ${cr};
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.ft-ripple .ft-ripple--background {
|
|
@@ -225,32 +225,23 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
228
|
-
opacity: ${
|
|
228
|
+
opacity: ${sr.opacityContentOnSurfaceHover};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
232
|
-
opacity: ${
|
|
232
|
+
opacity: ${sr.opacityContentOnSurfaceSelected};
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
236
|
-
opacity: ${
|
|
236
|
+
opacity: ${sr.opacityContentOnSurfaceFocused};
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
240
|
-
opacity: ${
|
|
240
|
+
opacity: ${sr.opacityContentOnSurfacePressed};
|
|
241
241
|
transform: translate(-50%, -50%) scale(1);
|
|
242
242
|
}
|
|
243
|
-
`;const
|
|
243
|
+
`;const yr=Re.extend("--ft-typography-font-family","",Te.titleFont),gr=Re.extend("--ft-typography-font-family","",Te.contentFont),br={fontFamily:gr,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")},vr={fontFamily:Re.extend("--ft-typography-title-font-family","",yr),fontSize:Re.extend("--ft-typography-title-font-size","",br.fontSize,"20px"),fontWeight:Re.extend("--ft-typography-title-font-weight","",br.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-letter-spacing","",br.letterSpacing,"0.15px"),lineHeight:Re.extend("--ft-typography-title-line-height","",br.lineHeight,"1.2"),textTransform:Re.extend("--ft-typography-title-text-transform","",br.textTransform,"inherit")},mr={fontFamily:Re.extend("--ft-typography-title-dense-font-family","",yr),fontSize:Re.extend("--ft-typography-title-dense-font-size","",br.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-title-dense-font-weight","",br.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-dense-letter-spacing","",br.letterSpacing,"0.105px"),lineHeight:Re.extend("--ft-typography-title-dense-line-height","",br.lineHeight,"1.7"),textTransform:Re.extend("--ft-typography-title-dense-text-transform","",br.textTransform,"inherit")},xr=Re.extend("--ft-typography-subtitle1-font-family","",gr),wr=Re.extend("--ft-typography-subtitle1-font-size","",br.fontSize,"16px"),Or=Re.extend("--ft-typography-subtitle1-font-weight","",br.fontWeight,"600"),Sr=Re.extend("--ft-typography-subtitle1-letter-spacing","",br.letterSpacing,"0.144px"),$r=Re.extend("--ft-typography-subtitle1-line-height","",br.lineHeight,"1.5"),Nr=Re.extend("--ft-typography-subtitle1-text-transform","",br.textTransform,"inherit"),Cr=Re.extend("--ft-typography-subtitle2-font-family","",gr),Er=Re.extend("--ft-typography-subtitle2-font-size","",br.fontSize,"14px"),kr=Re.extend("--ft-typography-subtitle2-font-weight","",br.fontWeight,"normal"),Rr=Re.extend("--ft-typography-subtitle2-letter-spacing","",br.letterSpacing,"0.098px"),Ir=Re.extend("--ft-typography-subtitle2-line-height","",br.lineHeight,"1.7"),Ur=Re.extend("--ft-typography-subtitle2-text-transform","",br.textTransform,"inherit"),Lr={fontFamily:Re.extend("--ft-typography-body1-font-family","",gr),fontSize:Re.extend("--ft-typography-body1-font-size","",br.fontSize,"16px"),fontWeight:Re.extend("--ft-typography-body1-font-weight","",br.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body1-letter-spacing","",br.letterSpacing,"0.496px"),lineHeight:Re.extend("--ft-typography-body1-line-height","",br.lineHeight,"1.5"),textTransform:Re.extend("--ft-typography-body1-text-transform","",br.textTransform,"inherit")},Ar=Re.extend("--ft-typography-body2-font-family","",gr),_r=Re.extend("--ft-typography-body2-font-size","",br.fontSize,"14px"),Tr=Re.extend("--ft-typography-body2-font-weight","",br.fontWeight,"normal"),Wr=Re.extend("--ft-typography-body2-letter-spacing","",br.letterSpacing,"0.252px"),Dr=Re.extend("--ft-typography-body2-line-height","",br.lineHeight,"1.4"),Fr=Re.extend("--ft-typography-body2-text-transform","",br.textTransform,"inherit"),Pr={fontFamily:Re.extend("--ft-typography-caption-font-family","",gr),fontSize:Re.extend("--ft-typography-caption-font-size","",br.fontSize,"12px"),fontWeight:Re.extend("--ft-typography-caption-font-weight","",br.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-caption-letter-spacing","",br.letterSpacing,"0.396px"),lineHeight:Re.extend("--ft-typography-caption-line-height","",br.lineHeight,"1.33"),textTransform:Re.extend("--ft-typography-caption-text-transform","",br.textTransform,"inherit")},Mr=Re.extend("--ft-typography-breadcrumb-font-family","",gr),jr=Re.extend("--ft-typography-breadcrumb-font-size","",br.fontSize,"10px"),zr=Re.extend("--ft-typography-breadcrumb-font-weight","",br.fontWeight,"normal"),Br=Re.extend("--ft-typography-breadcrumb-letter-spacing","",br.letterSpacing,"0.33px"),Kr=Re.extend("--ft-typography-breadcrumb-line-height","",br.lineHeight,"1.6"),Zr=Re.extend("--ft-typography-breadcrumb-text-transform","",br.textTransform,"inherit"),Hr=Re.extend("--ft-typography-overline-font-family","",gr),Gr=Re.extend("--ft-typography-overline-font-size","",br.fontSize,"10px"),Vr=Re.extend("--ft-typography-overline-font-weight","",br.fontWeight,"normal"),qr=Re.extend("--ft-typography-overline-letter-spacing","",br.letterSpacing,"1.5px"),Yr=Re.extend("--ft-typography-overline-line-height","",br.lineHeight,"1.6"),Xr=Re.extend("--ft-typography-overline-text-transform","",br.textTransform,"uppercase"),Jr={fontFamily:Re.extend("--ft-typography-button-font-family","",gr),fontSize:Re.extend("--ft-typography-button-font-size","",br.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",br.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",br.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",br.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",br.textTransform,"uppercase")},Qr=Rt`
|
|
244
244
|
.ft-typography--title {
|
|
245
|
-
font-family: ${br.fontFamily};
|
|
246
|
-
font-size: ${br.fontSize};
|
|
247
|
-
font-weight: ${br.fontWeight};
|
|
248
|
-
letter-spacing: ${br.letterSpacing};
|
|
249
|
-
line-height: ${br.lineHeight};
|
|
250
|
-
text-transform: ${br.textTransform};
|
|
251
|
-
}
|
|
252
|
-
`,Qr=kt`
|
|
253
|
-
.ft-typography--title-dense {
|
|
254
245
|
font-family: ${vr.fontFamily};
|
|
255
246
|
font-size: ${vr.fontSize};
|
|
256
247
|
font-weight: ${vr.fontWeight};
|
|
@@ -258,85 +249,94 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
258
249
|
line-height: ${vr.lineHeight};
|
|
259
250
|
text-transform: ${vr.textTransform};
|
|
260
251
|
}
|
|
261
|
-
`,tn=
|
|
252
|
+
`,tn=Rt`
|
|
253
|
+
.ft-typography--title-dense {
|
|
254
|
+
font-family: ${mr.fontFamily};
|
|
255
|
+
font-size: ${mr.fontSize};
|
|
256
|
+
font-weight: ${mr.fontWeight};
|
|
257
|
+
letter-spacing: ${mr.letterSpacing};
|
|
258
|
+
line-height: ${mr.lineHeight};
|
|
259
|
+
text-transform: ${mr.textTransform};
|
|
260
|
+
}
|
|
261
|
+
`,en=Rt`
|
|
262
262
|
.ft-typography--subtitle1 {
|
|
263
|
-
font-family: ${
|
|
264
|
-
font-size: ${
|
|
265
|
-
font-weight: ${
|
|
266
|
-
letter-spacing: ${
|
|
267
|
-
line-height: ${
|
|
268
|
-
text-transform: ${
|
|
269
|
-
}
|
|
270
|
-
`,
|
|
263
|
+
font-family: ${xr};
|
|
264
|
+
font-size: ${wr};
|
|
265
|
+
font-weight: ${Or};
|
|
266
|
+
letter-spacing: ${Sr};
|
|
267
|
+
line-height: ${$r};
|
|
268
|
+
text-transform: ${Nr};
|
|
269
|
+
}
|
|
270
|
+
`,on=Rt`
|
|
271
271
|
.ft-typography--subtitle2 {
|
|
272
|
-
font-family: ${
|
|
273
|
-
font-size: ${
|
|
274
|
-
font-weight: ${
|
|
275
|
-
letter-spacing: ${
|
|
276
|
-
line-height: ${
|
|
277
|
-
text-transform: ${
|
|
272
|
+
font-family: ${Cr};
|
|
273
|
+
font-size: ${Er};
|
|
274
|
+
font-weight: ${kr};
|
|
275
|
+
letter-spacing: ${Rr};
|
|
276
|
+
line-height: ${Ir};
|
|
277
|
+
text-transform: ${Ur};
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
`,
|
|
280
|
+
`,rn=Rt`
|
|
281
281
|
.ft-typography--body1 {
|
|
282
|
-
font-family: ${
|
|
283
|
-
font-size: ${
|
|
284
|
-
font-weight: ${
|
|
285
|
-
letter-spacing: ${
|
|
286
|
-
line-height: ${
|
|
287
|
-
text-transform: ${
|
|
288
|
-
}
|
|
289
|
-
`,
|
|
282
|
+
font-family: ${Lr.fontFamily};
|
|
283
|
+
font-size: ${Lr.fontSize};
|
|
284
|
+
font-weight: ${Lr.fontWeight};
|
|
285
|
+
letter-spacing: ${Lr.letterSpacing};
|
|
286
|
+
line-height: ${Lr.lineHeight};
|
|
287
|
+
text-transform: ${Lr.textTransform};
|
|
288
|
+
}
|
|
289
|
+
`,nn=Rt`
|
|
290
290
|
.ft-typography--body2 {
|
|
291
|
-
font-family: ${
|
|
292
|
-
font-size: ${
|
|
293
|
-
font-weight: ${
|
|
294
|
-
letter-spacing: ${
|
|
295
|
-
line-height: ${
|
|
296
|
-
text-transform: ${
|
|
297
|
-
}
|
|
298
|
-
`,
|
|
291
|
+
font-family: ${Ar};
|
|
292
|
+
font-size: ${_r};
|
|
293
|
+
font-weight: ${Tr};
|
|
294
|
+
letter-spacing: ${Wr};
|
|
295
|
+
line-height: ${Dr};
|
|
296
|
+
text-transform: ${Fr};
|
|
297
|
+
}
|
|
298
|
+
`,an=Rt`
|
|
299
299
|
.ft-typography--caption {
|
|
300
|
-
font-family: ${
|
|
301
|
-
font-size: ${
|
|
302
|
-
font-weight: ${
|
|
303
|
-
letter-spacing: ${
|
|
304
|
-
line-height: ${
|
|
305
|
-
text-transform: ${
|
|
306
|
-
}
|
|
307
|
-
`,
|
|
300
|
+
font-family: ${Pr.fontFamily};
|
|
301
|
+
font-size: ${Pr.fontSize};
|
|
302
|
+
font-weight: ${Pr.fontWeight};
|
|
303
|
+
letter-spacing: ${Pr.letterSpacing};
|
|
304
|
+
line-height: ${Pr.lineHeight};
|
|
305
|
+
text-transform: ${Pr.textTransform};
|
|
306
|
+
}
|
|
307
|
+
`,sn=Rt`
|
|
308
308
|
.ft-typography--breadcrumb {
|
|
309
|
-
font-family: ${
|
|
310
|
-
font-size: ${
|
|
311
|
-
font-weight: ${
|
|
312
|
-
letter-spacing: ${
|
|
313
|
-
line-height: ${
|
|
314
|
-
text-transform: ${
|
|
315
|
-
}
|
|
316
|
-
`,
|
|
309
|
+
font-family: ${Mr};
|
|
310
|
+
font-size: ${jr};
|
|
311
|
+
font-weight: ${zr};
|
|
312
|
+
letter-spacing: ${Br};
|
|
313
|
+
line-height: ${Kr};
|
|
314
|
+
text-transform: ${Zr};
|
|
315
|
+
}
|
|
316
|
+
`,ln=Rt`
|
|
317
317
|
.ft-typography--overline {
|
|
318
|
-
font-family: ${
|
|
319
|
-
font-size: ${
|
|
320
|
-
font-weight: ${
|
|
321
|
-
letter-spacing: ${
|
|
322
|
-
line-height: ${
|
|
323
|
-
text-transform: ${
|
|
324
|
-
}
|
|
325
|
-
`,
|
|
318
|
+
font-family: ${Hr};
|
|
319
|
+
font-size: ${Gr};
|
|
320
|
+
font-weight: ${Vr};
|
|
321
|
+
letter-spacing: ${qr};
|
|
322
|
+
line-height: ${Yr};
|
|
323
|
+
text-transform: ${Xr};
|
|
324
|
+
}
|
|
325
|
+
`,cn=Rt`
|
|
326
326
|
.ft-typography--button {
|
|
327
|
-
font-family: ${
|
|
328
|
-
font-size: ${
|
|
329
|
-
font-weight: ${
|
|
330
|
-
letter-spacing: ${
|
|
331
|
-
line-height: ${
|
|
332
|
-
text-transform: ${
|
|
333
|
-
}
|
|
334
|
-
`,
|
|
327
|
+
font-family: ${Jr.fontFamily};
|
|
328
|
+
font-size: ${Jr.fontSize};
|
|
329
|
+
font-weight: ${Jr.fontWeight};
|
|
330
|
+
letter-spacing: ${Jr.letterSpacing};
|
|
331
|
+
line-height: ${Jr.lineHeight};
|
|
332
|
+
text-transform: ${Jr.textTransform};
|
|
333
|
+
}
|
|
334
|
+
`,fn=Rt`
|
|
335
335
|
.ft-typography {
|
|
336
336
|
vertical-align: inherit;
|
|
337
337
|
}
|
|
338
|
-
`,
|
|
339
|
-
.ft-typography--${
|
|
338
|
+
`,hn=[Object.keys(Le).map((t=>function(t){const e=Le[t];return Rt`
|
|
339
|
+
.ft-typography--${kt(t)} {
|
|
340
340
|
font-family: ${e.fontFamily};
|
|
341
341
|
font-size: ${e.fontSize};
|
|
342
342
|
font-weight: ${e.fontWeight};
|
|
@@ -344,7 +344,7 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
344
344
|
line-height: ${e.lineHeight};
|
|
345
345
|
text-transform: ${e.textCase};
|
|
346
346
|
}
|
|
347
|
-
`}(t)))],
|
|
347
|
+
`}(t)))],dn={color:Re.extend("--ft-loader-color","",Te.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},un=Rt`
|
|
348
348
|
:host {
|
|
349
349
|
line-height: 0;
|
|
350
350
|
}
|
|
@@ -353,8 +353,8 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
353
353
|
display: inline-block;
|
|
354
354
|
position: relative;
|
|
355
355
|
|
|
356
|
-
width: ${
|
|
357
|
-
height: ${
|
|
356
|
+
width: ${dn.size};
|
|
357
|
+
height: ${dn.size};
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
.ft-loader div {
|
|
@@ -363,7 +363,7 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
363
363
|
width: 25%;
|
|
364
364
|
height: 25%;
|
|
365
365
|
border-radius: 50%;
|
|
366
|
-
background: ${
|
|
366
|
+
background: ${dn.color};
|
|
367
367
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
368
368
|
}
|
|
369
369
|
|
|
@@ -410,10 +410,10 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
410
410
|
transform: translate(0, 0);
|
|
411
411
|
}
|
|
412
412
|
100% {
|
|
413
|
-
transform: translate(calc(0.35 * ${
|
|
413
|
+
transform: translate(calc(0.35 * ${dn.size}), 0);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
`,
|
|
416
|
+
`,pn={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")},yn=Rt`
|
|
417
417
|
:host, i.ft-icon {
|
|
418
418
|
display: inline-flex;
|
|
419
419
|
align-items: center;
|
|
@@ -422,14 +422,14 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
:host {
|
|
425
|
-
width: ${
|
|
426
|
-
height: ${
|
|
425
|
+
width: ${pn.size};
|
|
426
|
+
height: ${pn.size};
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
i.ft-icon {
|
|
430
430
|
width: 100%;
|
|
431
431
|
height: 100%;
|
|
432
|
-
font-size: ${
|
|
432
|
+
font-size: ${pn.size};
|
|
433
433
|
line-height: 1;
|
|
434
434
|
font-weight: normal;
|
|
435
435
|
text-transform: none;
|
|
@@ -440,28 +440,28 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
440
440
|
text-rendering: auto;
|
|
441
441
|
-webkit-font-smoothing: antialiased;
|
|
442
442
|
-moz-osx-font-smoothing: grayscale;
|
|
443
|
-
vertical-align: ${
|
|
443
|
+
vertical-align: ${pn.verticalAlign};
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
i.ft-icon.ft-icon--fluid-topics {
|
|
447
|
-
font-family: ${
|
|
447
|
+
font-family: ${pn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
448
448
|
|
|
449
449
|
/* Ugly fix because font is broken */
|
|
450
|
-
font-size: calc(0.75 * ${
|
|
451
|
-
line-height: ${
|
|
450
|
+
font-size: calc(0.75 * ${pn.size});
|
|
451
|
+
line-height: ${pn.size};
|
|
452
452
|
position: relative;
|
|
453
453
|
top: -4%;
|
|
454
454
|
justify-content: center;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
.ft-icon--file-format {
|
|
458
|
-
font-family: ${
|
|
458
|
+
font-family: ${pn.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.ft-icon--material {
|
|
462
|
-
font-family: ${
|
|
462
|
+
font-family: ${pn.materialFontFamily}, "Material Icons", sans-serif;
|
|
463
463
|
}
|
|
464
|
-
`,
|
|
464
|
+
`,gn=Re.extend("--ft-button-color","",Te.colorPrimary),bn={backgroundColor:Re.extend("--ft-button-background-color","",Te.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",Te.borderRadiusL),color:gn,fontSize:Re.extend("--ft-button-font-size","",Jr.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",gn),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(Te.colorOpacityDisabled,"Design system")},vn=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",Te.colorOnPrimary)),mn={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",Te.colorPrimary)),color:vn,rippleColor:Re.extend("--ft-button-primary-ripple-color","",vn)},xn=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",Te.borderRadiusM)),wn=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),On=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Sn=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),$n=[Rt`
|
|
465
465
|
:host {
|
|
466
466
|
display: inline-block;
|
|
467
467
|
max-width: 100%;
|
|
@@ -472,7 +472,7 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
472
472
|
box-shadow: 0px 0px 0px transparent;
|
|
473
473
|
border: 0px solid transparent;
|
|
474
474
|
text-shadow: 0px 0px 0px transparent;
|
|
475
|
-
font-size: ${
|
|
475
|
+
font-size: ${bn.fontSize};
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
button:hover {
|
|
@@ -501,31 +501,31 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
501
501
|
border: none;
|
|
502
502
|
pointer-events: auto;
|
|
503
503
|
|
|
504
|
-
--ft-button-internal-line-height: max(calc(${
|
|
505
|
-
--ft-button-internal-color: ${
|
|
506
|
-
${
|
|
507
|
-
${
|
|
504
|
+
--ft-button-internal-line-height: max(calc(${bn.fontSize} + 2px), ${bn.iconSize});
|
|
505
|
+
--ft-button-internal-color: ${bn.color};
|
|
506
|
+
${Ie(pn.size,bn.iconSize)};
|
|
507
|
+
${Ie(sr.color,bn.rippleColor)};
|
|
508
508
|
|
|
509
|
-
border-radius: ${
|
|
510
|
-
padding: ${
|
|
511
|
-
background-color: ${
|
|
509
|
+
border-radius: ${bn.borderRadius};
|
|
510
|
+
padding: ${bn.verticalPadding} ${bn.horizontalPadding};
|
|
511
|
+
background-color: ${bn.backgroundColor};
|
|
512
512
|
color: var(--ft-button-internal-color);
|
|
513
513
|
-webkit-mask-image: radial-gradient(white, black);
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
.ft-button.ft-button--outlined {
|
|
517
517
|
border: 1px solid var(--ft-button-internal-color);
|
|
518
|
-
padding: calc(${
|
|
518
|
+
padding: calc(${bn.verticalPadding} - 1px) calc(${bn.horizontalPadding} - 1px);
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
.ft-button.ft-button--dense {
|
|
522
|
-
padding: ${
|
|
523
|
-
border-radius: ${
|
|
524
|
-
gap: ${
|
|
522
|
+
padding: ${wn} ${On};
|
|
523
|
+
border-radius: ${xn};
|
|
524
|
+
gap: ${Sn};
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
528
|
-
padding: calc(${
|
|
528
|
+
padding: calc(${wn} - 1px) calc(${On} - 1px);
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
.ft-button:not([disabled]):hover {
|
|
@@ -533,22 +533,22 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
.ft-button--round {
|
|
536
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
536
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${bn.verticalPadding});
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
.ft-button--round.ft-button--dense {
|
|
540
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
540
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${wn});
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
.ft-button[disabled] {
|
|
544
544
|
filter: grayscale(1);
|
|
545
|
-
opacity: ${
|
|
545
|
+
opacity: ${bn.opacityDisabled};
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
.ft-button.ft-button--primary {
|
|
549
|
-
background-color: ${
|
|
550
|
-
--ft-button-internal-color: ${
|
|
551
|
-
${
|
|
549
|
+
background-color: ${mn.backgroundColor};
|
|
550
|
+
--ft-button-internal-color: ${mn.color};
|
|
551
|
+
${Ie(sr.color,mn.rippleColor)};
|
|
552
552
|
}
|
|
553
553
|
|
|
554
554
|
.ft-button:focus {
|
|
@@ -561,13 +561,13 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
561
561
|
white-space: nowrap;
|
|
562
562
|
text-overflow: ellipsis;
|
|
563
563
|
display: block;
|
|
564
|
-
margin: 0 ${
|
|
565
|
-
${
|
|
566
|
-
${
|
|
564
|
+
margin: 0 ${bn.iconPadding};
|
|
565
|
+
${Ie(Jr.fontSize,"1em")};
|
|
566
|
+
${Ie(Jr.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
.ft-button--dense .ft-button--label {
|
|
570
|
-
margin: 0 ${
|
|
570
|
+
margin: 0 ${Sn};
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
.ft-button--label[hidden] {
|
|
@@ -580,13 +580,13 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
.ft-button--label[hidden] + ft-icon {
|
|
583
|
-
margin: 0 calc(${
|
|
584
|
-
padding: 0 ${
|
|
583
|
+
margin: 0 calc(${bn.horizontalPadding} * -1);
|
|
584
|
+
padding: 0 ${bn.verticalPadding};
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
588
|
-
margin: 0 calc(${
|
|
589
|
-
padding: 0 ${
|
|
588
|
+
margin: 0 calc(${On} * -1);
|
|
589
|
+
padding: 0 ${wn};
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -595,10 +595,10 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
ft-loader {
|
|
598
|
-
${
|
|
599
|
-
${
|
|
598
|
+
${Ie(dn.size,bn.iconSize)};
|
|
599
|
+
${Ie(dn.color,"var(--ft-button-internal-color)")};
|
|
600
600
|
}
|
|
601
|
-
`,
|
|
601
|
+
`,Ge],Nn={textColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceHigh),backgroundColor:Re.extend("--ft-switch-background-color","",Te.colorSurface),selectedTextColor:Re.extend("--ft-switch-selected-text-color","",Te.colorPrimary),selectedBackgroundColor:Re.extend("--ft-switch-selected-background-color","",Te.colorPrimary),borderColor:Re.extend("--ft-switch-border-color","",Te.colorOutline),borderRadius:Re.extend("--ft-switch-border-radius","",Te.borderRadiusL),fontSize:Re.extend("--ft-switch-font-size","",Jr.fontSize),iconSize:Re.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Re.extend("--ft-switch-text-color","",Te.colorOnSurfaceMedium),rippleColor:Re.extend("--ft-switch-ripple-color","",Te.colorPrimary),outlineColor:Re.extend("--ft-switch-outline-color","",Te.colorPrimary)},Cn={feedbackInputMinWidth:Re.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Re.external(Te.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Re.extend("--ft-reader-feedback-send-feedback-color","",Te.colorOnPrimary),sendFeedbackBackgroundColor:Re.extend("--ft-reader-feedback-send-feedback-background-color","",Te.colorPrimary),filledRatingColor:Re.extend("--ft-reader-feedback-filled-rating-color","",Te.colorPrimary),emptyRatingColor:Re.extend("--ft-reader-feedback-empty-rating-color","",Te.colorOnSurfaceMedium),mainTitleFontSize:Re.external(vr.fontSize,"Typography"),sectionTitleFontSize:Re.external(mr.fontSize,"Typography")},En=Rt`
|
|
602
602
|
.ft-reader-feedback {
|
|
603
603
|
box-sizing: border-box;
|
|
604
604
|
display: flex;
|
|
@@ -623,14 +623,14 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.ft-reader-feedback--rating {
|
|
626
|
-
${
|
|
627
|
-
${
|
|
628
|
-
${
|
|
629
|
-
${
|
|
626
|
+
${Ie(bn.color,Cn.emptyRatingColor)};
|
|
627
|
+
${Ie(bn.rippleColor,Cn.filledRatingColor)};
|
|
628
|
+
${Ie(Nn.textColor,Cn.emptyRatingColor)};
|
|
629
|
+
${Ie(Nn.selectedTextColor,Cn.filledRatingColor)};
|
|
630
630
|
}
|
|
631
631
|
|
|
632
632
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
633
|
-
${
|
|
633
|
+
${Ie(bn.color,Cn.filledRatingColor)};
|
|
634
634
|
}
|
|
635
635
|
|
|
636
636
|
.ft-reader-feedback--feedback {
|
|
@@ -638,53 +638,53 @@ let Ne=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
.ft-reader-feedback--rating-date {
|
|
641
|
-
color: ${
|
|
641
|
+
color: ${Cn.ratedDateColor};
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
.ft-reader-feedback--feedback ft-text-area {
|
|
645
|
-
min-width: ${
|
|
645
|
+
min-width: ${Cn.feedbackInputMinWidth};
|
|
646
646
|
}
|
|
647
647
|
|
|
648
648
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
649
649
|
align-self: flex-end;
|
|
650
|
-
${
|
|
651
|
-
${
|
|
650
|
+
${Ie(bn.color,Cn.sendFeedbackColor)};
|
|
651
|
+
${Ie(bn.backgroundColor,Cn.sendFeedbackBackgroundColor)};
|
|
652
652
|
}
|
|
653
653
|
`
|
|
654
654
|
/**
|
|
655
655
|
* @license
|
|
656
656
|
* Copyright 2020 Google LLC
|
|
657
657
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
658
|
-
*/,
|
|
659
|
-
<${
|
|
658
|
+
*/,kn=Symbol.for(""),Rn=t=>{if(t?.r===kn)return t?._$litStatic$},In=t=>({_$litStatic$:t,r:kn}),Un=new Map,Ln=(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=Rn(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=Un.get(t))&&(a.raw=a,Un.set(t,e=a)),i=s}return t(e,...i)})(nt);var An;!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"}(An||(An={}));var _n=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 Tn extends Ze{constructor(){super(...arguments),this.variant=An.body1}render(){return this.element?Ln`
|
|
659
|
+
<${In(this.element)}
|
|
660
660
|
class="ft-typography ft-typography--${this.variant}">
|
|
661
661
|
<slot></slot>
|
|
662
|
-
</${
|
|
663
|
-
`:
|
|
662
|
+
</${In(this.element)}>
|
|
663
|
+
`:Ln`
|
|
664
664
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
665
|
-
`}}
|
|
665
|
+
`}}Tn.styles=[Qr,tn,en,on,rn,nn,an,sn,ln,cn,fn,...hn],_n([k()],Tn.prototype,"element",void 0),_n([k()],Tn.prototype,"variant",void 0),D("ft-typography")(Tn);
|
|
666
666
|
/**
|
|
667
667
|
* @license
|
|
668
668
|
* Copyright 2017 Google LLC
|
|
669
669
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
670
670
|
*/
|
|
671
|
-
const
|
|
671
|
+
const Wn=1,Dn=2,Fn=t=>(...e)=>({_$litDirective$:t,values:e});class Pn{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)}}
|
|
672
672
|
/**
|
|
673
673
|
* @license
|
|
674
674
|
* Copyright 2018 Google LLC
|
|
675
675
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
676
|
-
*/const
|
|
676
|
+
*/const Mn=Fn(class extends Pn{constructor(t){if(super(t),t.type!==Wn||"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 at}});var jn=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 zn extends Ze{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,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 he`
|
|
677
677
|
<style>
|
|
678
678
|
.ft-ripple .ft-ripple--effect {
|
|
679
679
|
left: ${this.originX}px;
|
|
680
680
|
top: ${this.originY}px;
|
|
681
681
|
}
|
|
682
682
|
</style>
|
|
683
|
-
<div class="${
|
|
683
|
+
<div class="${Mn(t)}">
|
|
684
684
|
<div class="ft-ripple--background"></div>
|
|
685
685
|
<div class="ft-ripple--effect"></div>
|
|
686
686
|
</div>
|
|
687
|
-
`}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()}}
|
|
687
|
+
`}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()}}zn.elementDefinitions={},zn.styles=pr,jn([k({type:Boolean})],zn.prototype,"primary",void 0),jn([k({type:Boolean})],zn.prototype,"secondary",void 0),jn([k({type:Boolean})],zn.prototype,"unbounded",void 0),jn([k({type:Boolean})],zn.prototype,"activated",void 0),jn([k({type:Boolean})],zn.prototype,"selected",void 0),jn([k({type:Boolean})],zn.prototype,"disabled",void 0),jn([R()],zn.prototype,"hovered",void 0),jn([R()],zn.prototype,"focused",void 0),jn([R()],zn.prototype,"pressed",void 0),jn([R()],zn.prototype,"rippling",void 0),jn([R()],zn.prototype,"originX",void 0),jn([R()],zn.prototype,"originY",void 0),jn([L(".ft-ripple")],zn.prototype,"ripple",void 0),jn([L(".ft-ripple--effect")],zn.prototype,"rippleEffect",void 0),D("ft-ripple")(zn);const Bn=Re.create("--ft-tooltip-distance","","SIZE","4px"),Kn=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Zn=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),Hn=Re.create("--ft-tooltip-z-index","","NUMBER","100"),Gn=Re.external(Te.borderRadiusS,"Design system"),Vn=Re.create("--ft-tooltip-max-width","","SIZE","150px"),qn=Rt`
|
|
688
688
|
.ft-tooltip--container {
|
|
689
689
|
display: block;
|
|
690
690
|
}
|
|
@@ -699,21 +699,21 @@ const Tn=1,Wn=2,Dn=t=>(...e)=>({_$litDirective$:t,values:e});class Fn{constructo
|
|
|
699
699
|
box-sizing: border-box;
|
|
700
700
|
overflow: hidden;
|
|
701
701
|
width: max-content;
|
|
702
|
-
max-width: ${
|
|
702
|
+
max-width: ${Vn};
|
|
703
703
|
text-align: center;
|
|
704
|
-
padding: ${
|
|
705
|
-
z-index: ${
|
|
704
|
+
padding: ${Bn};
|
|
705
|
+
z-index: ${Hn};
|
|
706
706
|
}
|
|
707
707
|
|
|
708
708
|
.ft-tooltip--content {
|
|
709
709
|
padding: 4px 8px;
|
|
710
|
-
border-radius: ${
|
|
711
|
-
background-color: ${
|
|
712
|
-
color: ${
|
|
710
|
+
border-radius: ${Gn};
|
|
711
|
+
background-color: ${Zn};
|
|
712
|
+
color: ${Kn};
|
|
713
713
|
position: relative;
|
|
714
714
|
word-break: break-word;
|
|
715
715
|
}
|
|
716
|
-
`,qn=["start","end"],Yn=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+qn[0],e+"-"+qn[1])),[]),Xn=Math.min,Jn=Math.max,Qn=Math.round,ta=t=>({x:t,y:t}),ea={left:"right",right:"left",bottom:"top",top:"bottom"},ia={start:"end",end:"start"};function oa(t,e,i){return Jn(t,Xn(e,i))}function ra(t,e){return"function"==typeof t?t(e):t}function na(t){return t.split("-")[0]}function aa(t){return t.split("-")[1]}function sa(t){return"x"===t?"y":"x"}function la(t){return"y"===t?"height":"width"}function ca(t){return["top","bottom"].includes(na(t))?"y":"x"}function fa(t){return sa(ca(t))}function ha(t){return t.replace(/left|right|bottom|top/g,(t=>ea[t]))}function da(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ua(t,e,i){let{reference:o,floating:r}=t;const n=ca(e),a=fa(e),s=la(a),l=na(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(aa(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function pa(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}=ra(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=da(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=da(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 ya(t,e,i){return(t?[...i.filter((e=>aa(e)===t)),...i.filter((e=>aa(e)!==t))]:i.filter((t=>na(t)===t))).filter((i=>!t||(aa(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ia[t]))}(i)!==i)))}const ga=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=Yn,autoAlignment:u=!0,...p}=ra(t,e),y=void 0!==h||d===Yn?ya(h||null,u,d):d,g=await pa(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=aa(t),r=fa(t),n=la(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=ha(a)),[a,ha(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[na(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=aa(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])),$=S.filter((t=>t[2].slice(0,aa(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function ba(t){return xa(t)?(t.nodeName||"").toLowerCase():"#document"}function va(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function ma(t){var e;return null==(e=(xa(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function xa(t){return t instanceof Node||t instanceof va(t).Node}function wa(t){return t instanceof Element||t instanceof va(t).Element}function Oa(t){return t instanceof HTMLElement||t instanceof va(t).HTMLElement}function Sa(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof va(t).ShadowRoot)}function $a(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=Ra(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Na(t){return["table","td","th"].includes(ba(t))}function Ca(t){const e=Ea(),i=Ra(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 Ea(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ka(t){return["html","body","#document"].includes(ba(t))}function Ra(t){return va(t).getComputedStyle(t)}function Ia(t){return wa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ua(t){if("html"===ba(t))return t;const e=t.assignedSlot||t.parentNode||Sa(t)&&t.host||ma(t);return Sa(e)?e.host:e}function La(t){const e=Ua(t);return ka(e)?t.ownerDocument?t.ownerDocument.body:t.body:Oa(e)&&$a(e)?e:La(e)}function Aa(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=La(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=va(r);return n?e.concat(a,a.visualViewport||[],$a(r)?r:[],a.frameElement&&i?Aa(a.frameElement):[]):e.concat(r,Aa(r,[],i))}function _a(t){const e=Ra(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Oa(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=Qn(i)!==n||Qn(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Ta(t){return wa(t)?t:t.contextElement}function Wa(t){const e=Ta(t);if(!Oa(e))return ta(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=_a(e);let a=(n?Qn(i.width):i.width)/o,s=(n?Qn(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Da=ta(0);function Fa(t){const e=va(t);return Ea()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Da}function Pa(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Ta(t);let a=ta(1);e&&(o?wa(o)&&(a=Wa(o)):a=Wa(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==va(t))&&e}(n,i,o)?Fa(n):ta(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=va(n),e=o&&wa(o)?va(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=Wa(i),e=i.getBoundingClientRect(),o=Ra(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=va(i).frameElement}}return da({width:f,height:h,x:l,y:c})}function Ma(t){return Pa(ma(t)).left+Ia(t).scrollLeft}function ja(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=va(t),o=ma(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=Ea();(!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=ma(t),i=Ia(t),o=t.ownerDocument.body,r=Jn(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Jn(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+Ma(t);const s=-i.scrollTop;return"rtl"===Ra(o).direction&&(a+=Jn(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(ma(t));else if(wa(e))o=function(t,e){const i=Pa(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=Oa(t)?Wa(t):ta(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=Fa(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return da(o)}function za(t,e){const i=Ua(t);return!(i===e||!wa(i)||ka(i))&&("fixed"===Ra(i).position||za(i,e))}function Ba(t,e,i){const o=Oa(e),r=ma(e),n="fixed"===i,a=Pa(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=ta(0);if(o||!o&&!n)if(("body"!==ba(e)||$a(r))&&(s=Ia(e)),o){const t=Pa(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ma(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ka(t,e){return Oa(t)&&"fixed"!==Ra(t).position?e?e(t):t.offsetParent:null}function Za(t,e){const i=va(t);if(!Oa(t))return i;let o=Ka(t,e);for(;o&&Na(o)&&"static"===Ra(o).position;)o=Ka(o,e);return o&&("html"===ba(o)||"body"===ba(o)&&"static"===Ra(o).position&&!Ca(o))?i:o||function(t){let e=Ua(t);for(;Oa(e)&&!ka(e);){if(Ca(e))return e;e=Ua(e)}return null}(t)||i}const Ha={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=Oa(i),n=ma(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=ta(1);const l=ta(0);if((r||!r&&"fixed"!==o)&&(("body"!==ba(i)||$a(n))&&(a=Ia(i)),Oa(i))){const t=Pa(i);s=Wa(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:ma,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=Aa(t,[],!1).filter((t=>wa(t)&&"body"!==ba(t))),r=null;const n="fixed"===Ra(t).position;let a=n?Ua(t):t;for(;wa(a)&&!ka(a);){const e=Ra(a),i=Ca(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||$a(a)&&!i&&za(t,a))?o=o.filter((t=>t!==a)):r=e,a=Ua(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=ja(e,i,r);return t.top=Jn(o.top,t.top),t.right=Xn(o.right,t.right),t.bottom=Xn(o.bottom,t.bottom),t.left=Jn(o.left,t.left),t}),ja(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Za,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Za,n=this.getDimensions;return{reference:Ba(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 _a(t)},getScale:Wa,isElement:wa,isRTL:function(t){return"rtl"===Ra(t).direction}},Ga=(t,e,i)=>{const o=new Map,r={platform:Ha,...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}=ua(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}=ua(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Va(t){return function(t){for(let e=t;e;e=qa(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=qa(t);e;e=qa(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 qa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Ya=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 Xa extends Ke{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fe`
|
|
716
|
+
`,Yn=["start","end"],Xn=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Yn[0],e+"-"+Yn[1])),[]),Jn=Math.min,Qn=Math.max,ta=Math.round,ea=t=>({x:t,y:t}),ia={left:"right",right:"left",bottom:"top",top:"bottom"},oa={start:"end",end:"start"};function ra(t,e,i){return Qn(t,Jn(e,i))}function na(t,e){return"function"==typeof t?t(e):t}function aa(t){return t.split("-")[0]}function sa(t){return t.split("-")[1]}function la(t){return"x"===t?"y":"x"}function ca(t){return"y"===t?"height":"width"}function fa(t){return["top","bottom"].includes(aa(t))?"y":"x"}function ha(t){return la(fa(t))}function da(t){return t.replace(/left|right|bottom|top/g,(t=>ia[t]))}function ua(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function pa(t,e,i){let{reference:o,floating:r}=t;const n=fa(e),a=ha(e),s=ca(a),l=aa(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(sa(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function ya(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}=na(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=ua(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=ua(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 ga(t,e,i){return(t?[...i.filter((e=>sa(e)===t)),...i.filter((e=>sa(e)!==t))]:i.filter((t=>aa(t)===t))).filter((i=>!t||(sa(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>oa[t]))}(i)!==i)))}const ba=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=Xn,autoAlignment:u=!0,...p}=na(t,e),y=void 0!==h||d===Xn?ga(h||null,u,d):d,g=await ya(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=sa(t),r=ha(t),n=ca(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=da(a)),[a,da(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[aa(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=sa(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])),$=S.filter((t=>t[2].slice(0,sa(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function va(t){return wa(t)?(t.nodeName||"").toLowerCase():"#document"}function ma(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function xa(t){var e;return null==(e=(wa(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function wa(t){return t instanceof Node||t instanceof ma(t).Node}function Oa(t){return t instanceof Element||t instanceof ma(t).Element}function Sa(t){return t instanceof HTMLElement||t instanceof ma(t).HTMLElement}function $a(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ma(t).ShadowRoot)}function Na(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=Ia(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Ca(t){return["table","td","th"].includes(va(t))}function Ea(t){const e=ka(),i=Ia(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 ka(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ra(t){return["html","body","#document"].includes(va(t))}function Ia(t){return ma(t).getComputedStyle(t)}function Ua(t){return Oa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function La(t){if("html"===va(t))return t;const e=t.assignedSlot||t.parentNode||$a(t)&&t.host||xa(t);return $a(e)?e.host:e}function Aa(t){const e=La(t);return Ra(e)?t.ownerDocument?t.ownerDocument.body:t.body:Sa(e)&&Na(e)?e:Aa(e)}function _a(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=Aa(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=ma(r);return n?e.concat(a,a.visualViewport||[],Na(r)?r:[],a.frameElement&&i?_a(a.frameElement):[]):e.concat(r,_a(r,[],i))}function Ta(t){const e=Ia(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Sa(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=ta(i)!==n||ta(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Wa(t){return Oa(t)?t:t.contextElement}function Da(t){const e=Wa(t);if(!Sa(e))return ea(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Ta(e);let a=(n?ta(i.width):i.width)/o,s=(n?ta(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Fa=ea(0);function Pa(t){const e=ma(t);return ka()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Fa}function Ma(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Wa(t);let a=ea(1);e&&(o?Oa(o)&&(a=Da(o)):a=Da(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==ma(t))&&e}(n,i,o)?Pa(n):ea(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=ma(n),e=o&&Oa(o)?ma(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=Da(i),e=i.getBoundingClientRect(),o=Ia(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=ma(i).frameElement}}return ua({width:f,height:h,x:l,y:c})}function ja(t){return Ma(xa(t)).left+Ua(t).scrollLeft}function za(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=ma(t),o=xa(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=ka();(!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=xa(t),i=Ua(t),o=t.ownerDocument.body,r=Qn(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=Qn(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+ja(t);const s=-i.scrollTop;return"rtl"===Ia(o).direction&&(a+=Qn(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(xa(t));else if(Oa(e))o=function(t,e){const i=Ma(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=Sa(t)?Da(t):ea(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=Pa(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ua(o)}function Ba(t,e){const i=La(t);return!(i===e||!Oa(i)||Ra(i))&&("fixed"===Ia(i).position||Ba(i,e))}function Ka(t,e,i){const o=Sa(e),r=xa(e),n="fixed"===i,a=Ma(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=ea(0);if(o||!o&&!n)if(("body"!==va(e)||Na(r))&&(s=Ua(e)),o){const t=Ma(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ja(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Za(t,e){return Sa(t)&&"fixed"!==Ia(t).position?e?e(t):t.offsetParent:null}function Ha(t,e){const i=ma(t);if(!Sa(t))return i;let o=Za(t,e);for(;o&&Ca(o)&&"static"===Ia(o).position;)o=Za(o,e);return o&&("html"===va(o)||"body"===va(o)&&"static"===Ia(o).position&&!Ea(o))?i:o||function(t){let e=La(t);for(;Sa(e)&&!Ra(e);){if(Ea(e))return e;e=La(e)}return null}(t)||i}const Ga={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=Sa(i),n=xa(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=ea(1);const l=ea(0);if((r||!r&&"fixed"!==o)&&(("body"!==va(i)||Na(n))&&(a=Ua(i)),Sa(i))){const t=Ma(i);s=Da(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:xa,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=_a(t,[],!1).filter((t=>Oa(t)&&"body"!==va(t))),r=null;const n="fixed"===Ia(t).position;let a=n?La(t):t;for(;Oa(a)&&!Ra(a);){const e=Ia(a),i=Ea(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Na(a)&&!i&&Ba(t,a))?o=o.filter((t=>t!==a)):r=e,a=La(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=za(e,i,r);return t.top=Qn(o.top,t.top),t.right=Jn(o.right,t.right),t.bottom=Jn(o.bottom,t.bottom),t.left=Qn(o.left,t.left),t}),za(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ha,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ha,n=this.getDimensions;return{reference:Ka(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 Ta(t)},getScale:Da,isElement:Oa,isRTL:function(t){return"rtl"===Ia(t).direction}},Va=(t,e,i)=>{const o=new Map,r={platform:Ga,...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}=pa(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}=pa(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function qa(t){return function(t){for(let e=t;e;e=Ya(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Ya(t);e;e=Ya(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 Ya(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Xa=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 Ja extends Ze{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return he`
|
|
717
717
|
<div part="container"
|
|
718
718
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
719
719
|
@mouseenter=${this.onHover}
|
|
@@ -721,7 +721,7 @@ const Tn=1,Wn=2,Dn=t=>(...e)=>({_$litDirective$:t,values:e});class Fn{constructo
|
|
|
721
721
|
@focusin=${this.onHover}
|
|
722
722
|
@focusout=${this.onOut}
|
|
723
723
|
@touchstart=${this.onTouch}>
|
|
724
|
-
<slot part="slot"></slot>
|
|
724
|
+
<slot part="slot" @click=${this.onClick}></slot>
|
|
725
725
|
<div part="tooltip" role="tooltip" inert
|
|
726
726
|
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
727
727
|
?hidden=${!this.visible}>
|
|
@@ -731,18 +731,18 @@ const Tn=1,Wn=2,Dn=t=>(...e)=>({_$litDirective$:t,values:e});class Fn{constructo
|
|
|
731
731
|
</div>
|
|
732
732
|
</div>
|
|
733
733
|
</div>
|
|
734
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",
|
|
734
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Va(this.slottedElement,this.tooltip,{platform:{...Ga,getOffsetParent:t=>Ga.getOffsetParent(t,qa)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=na(t,e),c={x:i,y:o},f=await ya(e,l),h=fa(aa(r)),d=la(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=ra(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=ra(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...e,[d]:u,[h]:p});return{...y,data:{x:y.x-i,y:y.y-o}}}}),ba({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Ja.elementDefinitions={"ft-typography":Tn},Ja.styles=qn,Xa([k()],Ja.prototype,"text",void 0),Xa([k({type:Boolean})],Ja.prototype,"manual",void 0),Xa([k({type:Boolean})],Ja.prototype,"inline",void 0),Xa([k({type:Number})],Ja.prototype,"delay",void 0),Xa([k()],Ja.prototype,"position",void 0),Xa([A()],Ja.prototype,"slotNodes",void 0),Xa([L(".ft-tooltip--container")],Ja.prototype,"container",void 0),Xa([L(".ft-tooltip")],Ja.prototype,"tooltip",void 0),Xa([L(".ft-tooltip--content")],Ja.prototype,"tooltipContent",void 0),Xa([R()],Ja.prototype,"visible",void 0),Xa([I({passive:!0})],Ja.prototype,"onTouch",null),Xa([I({passive:!0})],Ja.prototype,"onHover",null),Xa([I({passive:!0})],Ja.prototype,"onOut",null),Xa([I({passive:!0})],Ja.prototype,"onClick",null),D("ft-tooltip")(Ja);
|
|
735
735
|
/**
|
|
736
736
|
* @license
|
|
737
737
|
* Copyright 2017 Google LLC
|
|
738
738
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
739
739
|
*/
|
|
740
|
-
class
|
|
740
|
+
class Qa extends Pn{constructor(t){if(super(t),this.et=st,t.type!==Dn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this.vt=void 0,this.et=t;if(t===at)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:[]}}}Qa.directiveName="unsafeHTML",Qa.resultType=1;const ts=Fn(Qa);var es,is,os;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(es||(es={})),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=""}(is||(is={})),new Map([...["abw"].map((t=>[t,is.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,is.AUDIO])),...["avi"].map((t=>[t,is.AVI])),...["chm","xhs"].map((t=>[t,is.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,is.CODE])),...["csv"].map((t=>[t,is.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,is.DITA])),...["epub"].map((t=>[t,is.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,is.EXCEL])),...["flac"].map((t=>[t,is.FLAC])),...["gif"].map((t=>[t,is.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,is.GZIP])),...["html","htm","xhtml"].map((t=>[t,is.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,is.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,is.JPEG])),...["json"].map((t=>[t,is.JSON])),...["m4a","m4p"].map((t=>[t,is.M4A])),...["mov","qt"].map((t=>[t,is.MOV])),...["mp3"].map((t=>[t,is.MP3])),...["mp4","m4v"].map((t=>[t,is.MP4])),...["ogg","oga"].map((t=>[t,is.OGG])),...["pdf","ps"].map((t=>[t,is.PDF])),...["png"].map((t=>[t,is.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,is.POWERPOINT])),...["rar"].map((t=>[t,is.RAR])),...["stp"].map((t=>[t,is.STP])),...["txt","rtf","md","mdown"].map((t=>[t,is.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,is.VIDEO])),...["wav"].map((t=>[t,is.WAV])),...["wma"].map((t=>[t,is.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,is.WORD])),...["xml","xsl","rdf"].map((t=>[t,is.XML])),...["yaml","yml","x-yaml"].map((t=>[t,is.YAML])),...["zip"].map((t=>[t,is.ZIP]))]),is.ABW,is.AUDIO,is.AVI,is.CHM,is.CODE,is.CSV,is.DITA,is.EPUB,is.EXCEL,is.FLAC,is.GIF,is.GZIP,is.HTML,is.IMAGE,is.JPEG,is.JSON,is.M4A,is.MOV,is.MP3,is.MP4,is.OGG,is.PDF,is.PNG,is.POWERPOINT,is.RAR,is.STP,is.TEXT,is.UNKNOWN,is.VIDEO,is.WAV,is.WMA,is.WORD,is.XML,is.YAML,is.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(os||(os={}));var rs=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 ns extends Ze{constructor(){super(...arguments),this.resolvedIcon=ue}render(){const t=this.variant&&Object.values(os).includes(this.variant)?this.variant:os.fluid_topics,e=t!==os.material||!!this.value;return he`
|
|
741
741
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
742
|
-
${
|
|
742
|
+
${ts(this.resolvedIcon)}
|
|
743
743
|
<slot ?hidden=${e}></slot>
|
|
744
744
|
</i>
|
|
745
|
-
`}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
|
|
745
|
+
`}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 os.file_format:this.resolvedIcon=null!==(t=is[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case os.material:this.resolvedIcon=this.value||ue;break;default:this.resolvedIcon=null!==(e=es[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ns.elementDefinitions={},ns.styles=yn,rs([k()],ns.prototype,"variant",void 0),rs([k()],ns.prototype,"value",void 0),rs([R()],ns.prototype,"resolvedIcon",void 0),rs([L("slot")],ns.prototype,"slottedContent",void 0),D("ft-icon")(ns);const as={borderRadiusLeft:Re.extend("--ft-switch-option-border-radius-left","",Te.borderRadiusL),borderRadiusRight:Re.extend("--ft-switch-option-border-radius-right","",Te.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")},ss=Rt`
|
|
746
746
|
.ft-switch-option {
|
|
747
747
|
position: relative;
|
|
748
748
|
display: inline-block;
|
|
@@ -756,20 +756,20 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
.ft-switch-option--content {
|
|
759
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
760
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
759
|
+
--ft-switch-option-internal-line-height: calc(${Nn.fontSize} + 2px);
|
|
760
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Nn.iconSize});
|
|
761
761
|
|
|
762
762
|
border-style: solid;
|
|
763
|
-
border-color: ${
|
|
764
|
-
border-width: ${
|
|
765
|
-
border-radius: ${
|
|
763
|
+
border-color: ${Nn.borderColor};
|
|
764
|
+
border-width: ${as.borderWidthVertical} ${as.borderWidthRight} ${as.borderWidthVertical} ${as.borderWidthLeft};
|
|
765
|
+
border-radius: ${as.borderRadiusLeft} ${as.borderRadiusRight} ${as.borderRadiusRight} ${as.borderRadiusLeft};
|
|
766
766
|
display: flex;
|
|
767
767
|
align-items: center;
|
|
768
768
|
justify-content: center;
|
|
769
769
|
overflow: hidden;
|
|
770
|
-
${
|
|
770
|
+
${Ie(pn.size,Nn.iconSize)};
|
|
771
771
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
772
|
-
background-color: ${
|
|
772
|
+
background-color: ${Nn.backgroundColor};
|
|
773
773
|
-webkit-mask-image: radial-gradient(white, black);
|
|
774
774
|
}
|
|
775
775
|
|
|
@@ -778,28 +778,28 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
781
|
-
background-color: ${
|
|
782
|
-
border-radius: ${
|
|
781
|
+
background-color: ${Nn.selectedBackgroundColor};
|
|
782
|
+
border-radius: ${as.borderRadiusLeft} ${as.borderRadiusRight} ${as.borderRadiusRight} ${as.borderRadiusLeft};
|
|
783
783
|
position: absolute;
|
|
784
784
|
inset: 0;
|
|
785
785
|
content: "";
|
|
786
786
|
z-index: 1;
|
|
787
|
-
opacity: ${
|
|
787
|
+
opacity: ${Te.opacityPrimaryOnSurfaceSelected};
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
.ft-switch-option--label {
|
|
791
|
-
color: ${
|
|
791
|
+
color: ${Nn.textColor};
|
|
792
792
|
overflow: hidden;
|
|
793
793
|
white-space: nowrap;
|
|
794
794
|
text-overflow: ellipsis;
|
|
795
795
|
display: block;
|
|
796
796
|
margin: 0 8px;
|
|
797
|
-
${
|
|
798
|
-
${
|
|
797
|
+
${Ie(Jr.fontSize,Nn.fontSize)};
|
|
798
|
+
${Ie(Jr.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
799
799
|
}
|
|
800
800
|
|
|
801
801
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
802
|
-
color: ${
|
|
802
|
+
color: ${Nn.selectedTextColor};
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
.ft-switch-option--label[hidden] {
|
|
@@ -807,7 +807,7 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
807
807
|
}
|
|
808
808
|
|
|
809
809
|
.ft-switch-option--ripple {
|
|
810
|
-
${
|
|
810
|
+
${Ie(sr.color,Nn.rippleColor)};
|
|
811
811
|
}
|
|
812
812
|
|
|
813
813
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -820,20 +820,20 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
820
820
|
|
|
821
821
|
ft-icon {
|
|
822
822
|
flex-shrink: 0;
|
|
823
|
-
color: ${
|
|
823
|
+
color: ${Nn.iconColor};
|
|
824
824
|
}
|
|
825
825
|
|
|
826
826
|
.ft-switch-option--selected ft-icon {
|
|
827
|
-
color: ${
|
|
827
|
+
color: ${Nn.selectedTextColor};
|
|
828
828
|
}
|
|
829
|
-
`;var
|
|
830
|
-
<label part="label" for="input" class=${
|
|
829
|
+
`;var ls=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 cs extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class fs extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class hs extends Ze{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 fs(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(he`
|
|
830
|
+
<label part="label" for="input" class=${Mn(t)}
|
|
831
831
|
@click=${this.onChange}>
|
|
832
832
|
<div class="ft-switch-option--content">
|
|
833
833
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
834
834
|
<ft-typography part="text"
|
|
835
835
|
variant="button"
|
|
836
|
-
class="ft-switch-option--label ${
|
|
836
|
+
class="ft-switch-option--label ${tr?"ft-safari-ellipsis-fix":""}"
|
|
837
837
|
?hidden=${!this.hasTextContent()}>
|
|
838
838
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
839
839
|
</ft-typography>
|
|
@@ -842,29 +842,29 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
842
842
|
</label>
|
|
843
843
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
844
844
|
.checked=${this.selected}>
|
|
845
|
-
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:
|
|
845
|
+
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:he`
|
|
846
846
|
<ft-tooltip part="tooltip"
|
|
847
847
|
text="${this.getLabel()}"
|
|
848
848
|
position="${this.tooltipPosition}">
|
|
849
849
|
${t}
|
|
850
850
|
</ft-tooltip>
|
|
851
|
-
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new
|
|
851
|
+
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new cs(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?he`
|
|
852
852
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
853
|
-
`:
|
|
854
|
-
<div @keydown=${this.onKeyDown} tabindex="0" class="${
|
|
853
|
+
`:ue}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()}}hs.elementDefinitions={"ft-ripple":zn,"ft-typography":Tn,"ft-tooltip":Ja,"ft-icon":ns},hs.styles=[Ve,ss],ls([k()],hs.prototype,"value",void 0),ls([k()],hs.prototype,"icon",void 0),ls([k()],hs.prototype,"iconVariant",void 0),ls([k()],hs.prototype,"label",void 0),ls([k()],hs.prototype,"tooltipPosition",void 0),ls([k({type:Boolean,reflect:!0})],hs.prototype,"selected",void 0),ls([k({type:Boolean})],hs.prototype,"trailingIcon",void 0),ls([k({type:Boolean})],hs.prototype,"unselectable",void 0),ls([L(".ft-switch-option--content slot")],hs.prototype,"slottedContent",void 0),ls([L(".ft-switch-option--input")],hs.prototype,"input",void 0);var ds=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 us extends CustomEvent{constructor(t){super("change",{detail:t})}}class ps extends Ze{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 he`
|
|
854
|
+
<div @keydown=${this.onKeyDown} tabindex="0" class="${Mn(t)}">
|
|
855
855
|
<slot @slotchange=${this.onSlotchange}
|
|
856
856
|
@option-change=${this.onOptionChangeByScript}
|
|
857
857
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
858
858
|
></slot>
|
|
859
859
|
</div>
|
|
860
|
-
`}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
|
|
860
|
+
`}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 hs&&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 us(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}))}}ps.elementDefinitions={},ps.styles=Rt`
|
|
861
861
|
:host {
|
|
862
862
|
display: inline-block;
|
|
863
863
|
}
|
|
864
864
|
|
|
865
865
|
.ft-switch {
|
|
866
|
-
border-radius: ${
|
|
867
|
-
outline-color: ${
|
|
866
|
+
border-radius: ${Nn.borderRadius};
|
|
867
|
+
outline-color: ${Nn.outlineColor};
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
.ft-switch slot {
|
|
@@ -873,25 +873,25 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
873
873
|
}
|
|
874
874
|
|
|
875
875
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
876
|
-
${
|
|
877
|
-
${
|
|
878
|
-
${
|
|
876
|
+
${Ie(as.borderRadiusLeft,"0")};
|
|
877
|
+
${Ie(as.borderRadiusRight,"0")};
|
|
878
|
+
${Ie(as.borderWidthLeft,"0")};
|
|
879
879
|
}
|
|
880
880
|
|
|
881
881
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
882
|
-
${
|
|
883
|
-
${
|
|
882
|
+
${Ie(as.borderRadiusLeft,Nn.borderRadius)};
|
|
883
|
+
${Ie(as.borderWidthLeft,"1px")};
|
|
884
884
|
}
|
|
885
885
|
|
|
886
886
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
887
|
-
${
|
|
887
|
+
${Ie(as.borderRadiusRight,Nn.borderRadius)};
|
|
888
888
|
}
|
|
889
889
|
|
|
890
890
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
891
891
|
--ft-switch-internal-vertical-padding: 2px;
|
|
892
892
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
893
893
|
}
|
|
894
|
-
`,
|
|
894
|
+
`,ds([k({type:Boolean})],ps.prototype,"dense",void 0),ds([k({type:Boolean})],ps.prototype,"unselectable",void 0),ds([L(".ft-switch slot")],ps.prototype,"slottedContent",void 0),ds([R()],ps.prototype,"selectedOption",void 0),ds([L(".ft-switch")],ps.prototype,"ftSwitchDiv",void 0),D("ft-switch")(ps),D("ft-switch-option")(hs);const ys=Re.external(Te.colorOutline,"Design system"),gs=Re.external(Te.colorOnSurfaceMedium,"Design system"),bs=Rt`
|
|
895
895
|
:host {
|
|
896
896
|
display: block;
|
|
897
897
|
}
|
|
@@ -902,17 +902,17 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
902
902
|
|
|
903
903
|
ft-icon {
|
|
904
904
|
transform: rotate(-45deg);
|
|
905
|
-
color: ${
|
|
905
|
+
color: ${ys};
|
|
906
906
|
}
|
|
907
907
|
|
|
908
908
|
.ft-resizer--dragging ft-icon,
|
|
909
909
|
.ft-resizer:hover ft-icon {
|
|
910
|
-
color: ${
|
|
910
|
+
color: ${gs};
|
|
911
911
|
}
|
|
912
|
-
`;var
|
|
912
|
+
`;var vs=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 ms extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class xs extends Ze{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=os.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 he`
|
|
913
913
|
<style>
|
|
914
914
|
.ft-resizer {
|
|
915
|
-
cursor: ${
|
|
915
|
+
cursor: ${kt(this.cursor)}
|
|
916
916
|
}
|
|
917
917
|
</style>
|
|
918
918
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
@@ -920,25 +920,25 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
920
920
|
@touchstart=${this.initDragFromTouch}>
|
|
921
921
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
922
922
|
</div>
|
|
923
|
-
`}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
|
|
923
|
+
`}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 ms(i,o))}}xs.elementDefinitions={"ft-icon":ns},xs.styles=[Ge,bs],vs([k({type:Number})],xs.prototype,"initialWidth",void 0),vs([k({type:Number})],xs.prototype,"initialHeight",void 0),vs([k()],xs.prototype,"icon",void 0),vs([k()],xs.prototype,"iconVariant",void 0),vs([k()],xs.prototype,"cursor",void 0),vs([R()],xs.prototype,"dragging",void 0),vs([I({passive:!0})],xs.prototype,"initDragFromMouse",null),vs([I({passive:!0})],xs.prototype,"initDragFromTouch",null),D("ft-resizer")(xs);const ws={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","",Te.colorOutline),textColor:Re.extend("--ft-input-label-text-color","",Te.colorOnSurfaceMedium),disabledTextColor:Re.extend("--ft-input-label-disabled-text-color","",Te.colorOnSurfaceDisabled),colorSurface:Re.external(Te.colorSurface,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system")},Os=Rt`
|
|
924
924
|
.ft-input-label {
|
|
925
925
|
position: absolute;
|
|
926
926
|
inset: 0;
|
|
927
927
|
display: flex;
|
|
928
|
-
background-color: ${
|
|
929
|
-
border-radius: ${
|
|
928
|
+
background-color: ${ws.colorSurface};
|
|
929
|
+
border-radius: ${ws.borderRadiusS} ${ws.borderRadiusS} 0 0;
|
|
930
930
|
}
|
|
931
931
|
|
|
932
932
|
.ft-input-label--outlined {
|
|
933
|
-
border-radius: ${
|
|
933
|
+
border-radius: ${ws.borderRadiusS};
|
|
934
934
|
}
|
|
935
935
|
|
|
936
936
|
.ft-input-label {
|
|
937
|
-
border-color: ${
|
|
937
|
+
border-color: ${ws.borderColor};
|
|
938
938
|
}
|
|
939
939
|
|
|
940
940
|
.ft-input-label.ft-input-label--in-error {
|
|
941
|
-
border-color: ${
|
|
941
|
+
border-color: ${ws.colorError}
|
|
942
942
|
}
|
|
943
943
|
|
|
944
944
|
.ft-input-label:before,
|
|
@@ -951,7 +951,7 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
951
951
|
}
|
|
952
952
|
|
|
953
953
|
.ft-input-label:before {
|
|
954
|
-
width: calc(${
|
|
954
|
+
width: calc(${ws.horizontalSpacing} - 4px);
|
|
955
955
|
flex-shrink: 0;
|
|
956
956
|
}
|
|
957
957
|
|
|
@@ -967,20 +967,20 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
967
967
|
border-bottom-width: 1px;
|
|
968
968
|
border-bottom-style: solid;
|
|
969
969
|
border-color: inherit;
|
|
970
|
-
color: ${
|
|
970
|
+
color: ${ws.textColor};
|
|
971
971
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
972
|
-
max-width: calc(${
|
|
972
|
+
max-width: calc(${ws.labelMaxWidth} - 2 * (${ws.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
973
973
|
text-overflow: ellipsis;
|
|
974
|
-
${
|
|
975
|
-
${
|
|
974
|
+
${Ie(Pr.fontSize,ws.fontSize)};
|
|
975
|
+
${Ie(Pr.lineHeight,ws.fontSize)};
|
|
976
976
|
}
|
|
977
977
|
|
|
978
978
|
.ft-input-label--in-error .ft-input-label--text {
|
|
979
|
-
color: ${
|
|
979
|
+
color: ${ws.colorError}
|
|
980
980
|
}
|
|
981
981
|
|
|
982
982
|
.ft-input-label--disabled .ft-input-label--text {
|
|
983
|
-
color: ${
|
|
983
|
+
color: ${ws.disabledTextColor};
|
|
984
984
|
}
|
|
985
985
|
|
|
986
986
|
.ft-input-label--hidden-text {
|
|
@@ -997,19 +997,19 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
997
997
|
overflow: hidden;
|
|
998
998
|
white-space: nowrap;
|
|
999
999
|
text-overflow: ellipsis;
|
|
1000
|
-
padding: ${
|
|
1001
|
-
margin: calc(${
|
|
1000
|
+
padding: ${ws.verticalSpacing} 4px;
|
|
1001
|
+
margin: calc(${ws.verticalSpacing} * -1) 0;
|
|
1002
1002
|
max-width: 100%;
|
|
1003
1003
|
box-sizing: border-box;
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
1006
|
.ft-input-label--raised .ft-input-label--text {
|
|
1007
|
-
${
|
|
1008
|
-
${
|
|
1007
|
+
${Ie(Pr.fontSize,ws.raisedFontSize)};
|
|
1008
|
+
${Ie(Pr.lineHeight,ws.raisedFontSize)};
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
1011
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1012
|
-
top: ${
|
|
1012
|
+
top: ${ws.verticalSpacing};
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
1015
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -1022,36 +1022,36 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
1022
1022
|
.ft-input-label--outlined:before {
|
|
1023
1023
|
border-left-width: 1px;
|
|
1024
1024
|
border-left-style: solid;
|
|
1025
|
-
border-radius: ${
|
|
1025
|
+
border-radius: ${ws.borderRadiusS} 0 0 ${ws.borderRadiusS};
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
1028
|
.ft-input-label--outlined:after {
|
|
1029
1029
|
border-right-width: 1px;
|
|
1030
1030
|
border-right-style: solid;
|
|
1031
|
-
border-radius: 0 ${
|
|
1031
|
+
border-radius: 0 ${ws.borderRadiusS} ${ws.borderRadiusS} 0;
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
1034
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1035
1035
|
padding: 2px 4px;
|
|
1036
|
-
z-index: ${
|
|
1037
|
-
background-color: ${
|
|
1038
|
-
border-radius: ${
|
|
1036
|
+
z-index: ${ws.raisedZIndex};
|
|
1037
|
+
background-color: ${ws.colorSurface};
|
|
1038
|
+
border-radius: ${ws.borderRadiusS};
|
|
1039
1039
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
1042
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1043
1043
|
border-top: none;
|
|
1044
1044
|
}
|
|
1045
|
-
`;var
|
|
1046
|
-
<div class="${
|
|
1047
|
-
${this.text?
|
|
1045
|
+
`;var Ss=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 Ze{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 he`
|
|
1046
|
+
<div class="${Mn(t)}">
|
|
1047
|
+
${this.text?he`
|
|
1048
1048
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1049
1049
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
1050
1050
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1051
1051
|
</div>
|
|
1052
1052
|
`:null}
|
|
1053
1053
|
</div>
|
|
1054
|
-
`}}
|
|
1054
|
+
`}}$s.elementDefinitions={},$s.styles=[an,Os],Ss([k({type:String})],$s.prototype,"text",void 0),Ss([k({type:Boolean})],$s.prototype,"raised",void 0),Ss([k({type:Boolean})],$s.prototype,"outlined",void 0),Ss([k({type:Boolean})],$s.prototype,"disabled",void 0),Ss([k({type:Boolean})],$s.prototype,"error",void 0),D("ft-input-label")($s);const Ns={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","",Te.colorOnSurfaceMedium),colorPrimary:Re.external(Te.colorPrimary,"Design system"),colorOnSurface:Re.external(Te.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(Te.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system")},Cs=Rt`
|
|
1055
1055
|
*:focus {
|
|
1056
1056
|
outline: none;
|
|
1057
1057
|
}
|
|
@@ -1063,10 +1063,10 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
ft-input-label {
|
|
1066
|
-
${
|
|
1067
|
-
${
|
|
1068
|
-
${
|
|
1069
|
-
${
|
|
1066
|
+
${Ie(ws.fontSize,Ns.fontSize)};
|
|
1067
|
+
${Ie(ws.raisedFontSize,Ns.labelSize)};
|
|
1068
|
+
${Ie(ws.verticalSpacing,Ns.verticalSpacing)};
|
|
1069
|
+
${Ie(ws.horizontalSpacing,Ns.horizontalSpacing)};
|
|
1070
1070
|
}
|
|
1071
1071
|
|
|
1072
1072
|
.ft-text-area--main-panel {
|
|
@@ -1084,8 +1084,8 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
1086
1086
|
.ft-text-area--input-panel ft-ripple {
|
|
1087
|
-
${
|
|
1088
|
-
${
|
|
1087
|
+
${Ie(sr.opacityContentOnSurfaceHover,"0.08")};
|
|
1088
|
+
${Ie(sr.opacityContentOnSurfacePressed,"0.04")};
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
1091
|
.ft-text-area--input {
|
|
@@ -1097,12 +1097,12 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
1097
1097
|
align-self: stretch;
|
|
1098
1098
|
resize: none;
|
|
1099
1099
|
|
|
1100
|
-
${
|
|
1101
|
-
${
|
|
1102
|
-
color: ${
|
|
1100
|
+
${Ie(Lr.fontSize,Ns.fontSize)};
|
|
1101
|
+
${Ie(Lr.lineHeight,Ns.fontSize)};
|
|
1102
|
+
color: ${Ns.colorOnSurface};
|
|
1103
1103
|
|
|
1104
|
-
padding: 0 ${
|
|
1105
|
-
margin: calc(${
|
|
1104
|
+
padding: 0 ${Ns.horizontalSpacing};
|
|
1105
|
+
margin: calc(${Ns.verticalSpacing} + ${Ns.labelSize} / 2) 0 ${Ns.verticalSpacing} 0;
|
|
1106
1106
|
|
|
1107
1107
|
border: none;
|
|
1108
1108
|
background: none;
|
|
@@ -1111,7 +1111,7 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
1113
|
.ft-text-area--disabled .ft-text-area--input {
|
|
1114
|
-
color: ${
|
|
1114
|
+
color: ${Ns.colorOnSurfaceDisabled};
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
1117
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -1119,49 +1119,49 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
1121
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1122
|
-
${
|
|
1123
|
-
${
|
|
1122
|
+
${Ie(ws.borderColor,Ns.colorPrimary)};
|
|
1123
|
+
${Ie(ws.textColor,Ns.colorPrimary)};
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
1126
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
1127
|
-
border-radius: ${
|
|
1127
|
+
border-radius: ${Ns.borderRadiusS} ${Ns.borderRadiusS} 0 0;
|
|
1128
1128
|
}
|
|
1129
1129
|
|
|
1130
1130
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
1131
1131
|
align-self: stretch;
|
|
1132
|
-
margin-bottom: ${
|
|
1133
|
-
margin-top: calc(${
|
|
1132
|
+
margin-bottom: ${Ns.verticalSpacing};
|
|
1133
|
+
margin-top: calc(${Ns.labelSize} + 2 * ${Ns.verticalSpacing});
|
|
1134
1134
|
}
|
|
1135
1135
|
|
|
1136
1136
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
1137
|
-
border-radius: ${
|
|
1137
|
+
border-radius: ${Ns.borderRadiusS};
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
1140
|
.ft-text-area--helper-text {
|
|
1141
|
-
padding: 0 12px 0 ${
|
|
1142
|
-
color: ${
|
|
1141
|
+
padding: 0 12px 0 ${Ns.horizontalSpacing};
|
|
1142
|
+
color: ${Ns.helperColor};
|
|
1143
1143
|
}
|
|
1144
1144
|
|
|
1145
1145
|
.ft-text-area--in-error .ft-text-area--input,
|
|
1146
1146
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
1147
|
-
color: ${
|
|
1147
|
+
color: ${Ns.colorError};
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
1150
|
ft-resizer {
|
|
1151
1151
|
position: absolute;
|
|
1152
1152
|
bottom: 0;
|
|
1153
1153
|
}
|
|
1154
|
-
`;var
|
|
1154
|
+
`;var Es=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 ks extends(Yo(Ze,"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 he`
|
|
1155
1155
|
<style>
|
|
1156
1156
|
.ft-text-area--main-panel {
|
|
1157
|
-
height: calc(4 * ${
|
|
1157
|
+
height: calc(4 * ${Ns.verticalSpacing} + ${Ns.labelSize} + ${Ns.fontSize} + ${this.height}px);
|
|
1158
1158
|
}
|
|
1159
1159
|
|
|
1160
1160
|
ft-resizer {
|
|
1161
1161
|
right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1162
1162
|
}
|
|
1163
1163
|
</style>
|
|
1164
|
-
<div class="${
|
|
1164
|
+
<div class="${Mn(t)}">
|
|
1165
1165
|
<div class="ft-text-area--main-panel">
|
|
1166
1166
|
<ft-input-label text="${this.label}"
|
|
1167
1167
|
?disabled=${this.disabled}
|
|
@@ -1171,7 +1171,7 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
1171
1171
|
></ft-input-label>
|
|
1172
1172
|
<div class="ft-text-area--input-panel"
|
|
1173
1173
|
aria-label="${this.label}">
|
|
1174
|
-
${this.outlined?null:
|
|
1174
|
+
${this.outlined?null:he`
|
|
1175
1175
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1176
1176
|
`}
|
|
1177
1177
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -1188,53 +1188,53 @@ class Ja extends Fn{constructor(t){if(super(t),this.et=at,t.type!==Wn)throw Erro
|
|
|
1188
1188
|
initialHeight="${this.height}"
|
|
1189
1189
|
cursor="ns-resize"></ft-resizer>
|
|
1190
1190
|
</div>
|
|
1191
|
-
${this.helper?
|
|
1191
|
+
${this.helper?he`
|
|
1192
1192
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
1193
1193
|
${this.helper}
|
|
1194
1194
|
</ft-typography>`:void 0}
|
|
1195
1195
|
</div>
|
|
1196
|
-
`}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)}}
|
|
1196
|
+
`}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)}}ks.elementDefinitions={"ft-input-label":$s,"ft-resizer":xs,"ft-ripple":zn,"ft-typography":Tn},ks.styles=[rn,Cs],Es([k({type:String})],ks.prototype,"label",void 0),Es([k({reflect:!0})],ks.prototype,"value",void 0),Es([k({type:String})],ks.prototype,"helper",void 0),Es([k({type:Boolean})],ks.prototype,"outlined",void 0),Es([k({type:Boolean})],ks.prototype,"disabled",void 0),Es([k({type:Boolean})],ks.prototype,"error",void 0),Es([k({type:Number,reflect:!0})],ks.prototype,"height",void 0),Es([L("textarea")],ks.prototype,"textarea",void 0),Es([R()],ks.prototype,"focused",void 0),D("ft-text-area")(ks);
|
|
1197
1197
|
/**
|
|
1198
1198
|
* @license
|
|
1199
1199
|
* Copyright 2020 Google LLC
|
|
1200
1200
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1201
1201
|
*/
|
|
1202
|
-
const{D:
|
|
1202
|
+
const{D:Rs}=wt,Is=()=>document.createComment(""),Us=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Is(),r),n=o.insertBefore(Is(),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},Ls=(t,e,i=t)=>(t._$AI(e,i),t),As={},_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}},Ts=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ws=Fn(class extends Pn{constructor(t){if(super(t),t.type!==Dn)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]=Ls(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Ls(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Ls(r[h],n[p]),Us(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Ls(r[d],n[u]),Us(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Ts(a,u,p),f=Ts(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=Us(t,r[h]);Ls(e,n[u]),l[u]=e}else l[u]=Ls(i,n[u]),Us(t,r[h],i),r[e]=null;u++}else _s(r[d]),d--;else _s(r[h]),h++;for(;u<=p;){const e=Us(t,l[p+1]);Ls(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&_s(t)}return this.dt=a,((t,e=As)=>{t._$AH=e})(t,l),at}});
|
|
1203
1203
|
/**
|
|
1204
1204
|
* @license
|
|
1205
1205
|
* Copyright 2017 Google LLC
|
|
1206
1206
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1207
|
-
*/class
|
|
1207
|
+
*/class Ds extends Ze{render(){return he`
|
|
1208
1208
|
<div class="ft-loader">
|
|
1209
1209
|
<div></div>
|
|
1210
1210
|
<div></div>
|
|
1211
1211
|
<div></div>
|
|
1212
1212
|
<div></div>
|
|
1213
1213
|
</div>
|
|
1214
|
-
`}}
|
|
1214
|
+
`}}Ds.styles=un,D("ft-loader")(Ds);var Fs=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(Yo(Ze,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(he`
|
|
1215
1215
|
<button part="button"
|
|
1216
|
-
class="${
|
|
1216
|
+
class="${Mn(this.buttonClasses)}"
|
|
1217
1217
|
aria-label="${this.getLabel()}"
|
|
1218
1218
|
?disabled=${this.isDisabled()}>
|
|
1219
1219
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1220
1220
|
<ft-typography part="label"
|
|
1221
1221
|
variant=${this.typographyVariant}
|
|
1222
1222
|
element="span"
|
|
1223
|
-
class="ft-button--label ${
|
|
1223
|
+
class="ft-button--label ${tr?"ft-safari-ellipsis-fix":""}"
|
|
1224
1224
|
?hidden=${!this.hasTextContent()}>
|
|
1225
1225
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1226
1226
|
</ft-typography>
|
|
1227
1227
|
${this.resolveIcon()}
|
|
1228
1228
|
</button>
|
|
1229
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
1229
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?he`
|
|
1230
1230
|
<ft-tooltip part="tooltip"
|
|
1231
1231
|
text="${this.getLabel()}"
|
|
1232
1232
|
position="${this.tooltipPosition}">
|
|
1233
1233
|
${t}
|
|
1234
1234
|
</ft-tooltip>
|
|
1235
|
-
`:t}resolveIcon(){return this.loading?
|
|
1236
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1237
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:
|
|
1235
|
+
`:t}resolveIcon(){return this.loading?he`
|
|
1236
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?he`
|
|
1237
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ue}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":zn,"ft-tooltip":Ja,"ft-typography":Tn,"ft-icon":ns,"ft-loader":Ds},Fs([k({type:String,reflect:!0})],Ps.prototype,"role",void 0),Fs([k()],Ps.prototype,"type",void 0),Fs([k({type:Boolean})],Ps.prototype,"disabled",void 0),Fs([k()],Ps.prototype,"label",void 0),Fs([k()],Ps.prototype,"icon",void 0),Fs([k()],Ps.prototype,"iconVariant",void 0),Fs([k({type:Boolean})],Ps.prototype,"trailingIcon",void 0),Fs([k({type:Boolean})],Ps.prototype,"loading",void 0),Fs([k()],Ps.prototype,"tooltipPosition",void 0),Fs([k({type:Boolean})],Ps.prototype,"hideTooltip",void 0),Fs([k({type:Boolean})],Ps.prototype,"forceTooltip",void 0),Fs([L(".ft-button")],Ps.prototype,"button",void 0),Fs([L(".ft-button--label slot")],Ps.prototype,"slottedContent",void 0);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 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=[Ve,$n],Ms([k({type:Boolean})],js.prototype,"primary",void 0),Ms([k({type:Boolean})],js.prototype,"outlined",void 0),Ms([k({type:Boolean})],js.prototype,"dense",void 0),Ms([k({type:Boolean})],js.prototype,"round",void 0);const zs=[Rt`
|
|
1238
1238
|
:host {
|
|
1239
1239
|
display: inline-block;
|
|
1240
1240
|
max-width: 100%;
|
|
@@ -1284,7 +1284,7 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
1286
|
.ft-button:focus-visible {
|
|
1287
|
-
outline-color: ${
|
|
1287
|
+
outline-color: ${_e.focusFocusRingColor};
|
|
1288
1288
|
outline-style: solid;
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
@@ -1313,154 +1313,154 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1313
1313
|
/** Primary styles **/
|
|
1314
1314
|
|
|
1315
1315
|
.ft-button--primary {
|
|
1316
|
-
${
|
|
1316
|
+
${Ie(dn.color,_e.primaryIconColor)};
|
|
1317
1317
|
|
|
1318
|
-
${
|
|
1319
|
-
${
|
|
1320
|
-
${
|
|
1321
|
-
${
|
|
1322
|
-
${
|
|
1318
|
+
${Ie(sr.color,_e.primaryStateLayerColor)};
|
|
1319
|
+
${Ie(sr.opacityContentOnSurfaceHover,_e.primaryStateLayerOpacityHover)};
|
|
1320
|
+
${Ie(sr.opacityContentOnSurfaceFocused,_e.primaryStateLayerOpacityFocus)};
|
|
1321
|
+
${Ie(sr.opacityContentOnSurfaceSelected,_e.primaryStateLayerOpacityActive)};
|
|
1322
|
+
${Ie(sr.opacityContentOnSurfacePressed,_e.primaryStateLayerOpacityActive)};
|
|
1323
1323
|
|
|
1324
|
-
background-color: ${
|
|
1325
|
-
color: ${
|
|
1324
|
+
background-color: ${_e.primaryBackgroundColor};
|
|
1325
|
+
color: ${_e.primaryColor};
|
|
1326
1326
|
border-style: none;
|
|
1327
1327
|
}
|
|
1328
1328
|
|
|
1329
1329
|
.ft-button--primary[disabled] {
|
|
1330
|
-
opacity: ${
|
|
1330
|
+
opacity: ${_e.primaryComponentOpacityDisabled};
|
|
1331
1331
|
}
|
|
1332
1332
|
|
|
1333
1333
|
.ft-button--primary ft-icon {
|
|
1334
|
-
color: ${
|
|
1334
|
+
color: ${_e.primaryIconColor};
|
|
1335
1335
|
}
|
|
1336
1336
|
|
|
1337
1337
|
/** Secondary styles **/
|
|
1338
1338
|
|
|
1339
1339
|
.ft-button--secondary {
|
|
1340
|
-
${
|
|
1340
|
+
${Ie(dn.color,_e.secondaryIconColor)};
|
|
1341
1341
|
|
|
1342
|
-
${
|
|
1343
|
-
${
|
|
1344
|
-
${
|
|
1345
|
-
${
|
|
1346
|
-
${
|
|
1342
|
+
${Ie(sr.color,_e.secondaryStateLayerColor)};
|
|
1343
|
+
${Ie(sr.opacityContentOnSurfaceHover,_e.secondaryStateLayerOpacityHover)};
|
|
1344
|
+
${Ie(sr.opacityContentOnSurfaceFocused,_e.secondaryStateLayerOpacityFocus)};
|
|
1345
|
+
${Ie(sr.opacityContentOnSurfaceSelected,_e.secondaryStateLayerOpacityActive)};
|
|
1346
|
+
${Ie(sr.opacityContentOnSurfacePressed,_e.secondaryStateLayerOpacityActive)};
|
|
1347
1347
|
|
|
1348
|
-
background-color: ${
|
|
1349
|
-
color: ${
|
|
1350
|
-
border-color: ${
|
|
1348
|
+
background-color: ${_e.secondaryBackgroundColor};
|
|
1349
|
+
color: ${_e.secondaryColor};
|
|
1350
|
+
border-color: ${_e.secondaryBorderColor};
|
|
1351
1351
|
border-style: solid;
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
1354
|
.ft-button--secondary[disabled] {
|
|
1355
|
-
opacity: ${
|
|
1355
|
+
opacity: ${_e.secondaryComponentOpacityDisabled};
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
1358
|
.ft-button--secondary ft-icon {
|
|
1359
|
-
color: ${
|
|
1359
|
+
color: ${_e.secondaryIconColor};
|
|
1360
1360
|
}
|
|
1361
1361
|
|
|
1362
1362
|
/** Tertiary styles **/
|
|
1363
1363
|
|
|
1364
1364
|
.ft-button--tertiary {
|
|
1365
|
-
${
|
|
1365
|
+
${Ie(dn.color,_e.tertiaryIconColor)};
|
|
1366
1366
|
|
|
1367
|
-
${
|
|
1368
|
-
${
|
|
1369
|
-
${
|
|
1370
|
-
${
|
|
1371
|
-
${
|
|
1367
|
+
${Ie(sr.color,_e.tertiaryStateLayerColor)};
|
|
1368
|
+
${Ie(sr.opacityContentOnSurfaceHover,_e.tertiaryStateLayerOpacityHover)};
|
|
1369
|
+
${Ie(sr.opacityContentOnSurfaceFocused,_e.tertiaryStateLayerOpacityFocus)};
|
|
1370
|
+
${Ie(sr.opacityContentOnSurfaceSelected,_e.tertiaryStateLayerOpacityActive)};
|
|
1371
|
+
${Ie(sr.opacityContentOnSurfacePressed,_e.tertiaryStateLayerOpacityActive)};
|
|
1372
1372
|
|
|
1373
|
-
background-color: ${
|
|
1374
|
-
color: ${
|
|
1373
|
+
background-color: ${_e.tertiaryBackgroundColor};
|
|
1374
|
+
color: ${_e.tertiaryColor};
|
|
1375
1375
|
border-style: none;
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
1378
|
.ft-button--tertiary[disabled] {
|
|
1379
|
-
opacity: ${
|
|
1379
|
+
opacity: ${_e.tertiaryComponentOpacityDisabled};
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
1382
|
.ft-button--tertiary ft-icon {
|
|
1383
|
-
color: ${
|
|
1383
|
+
color: ${_e.tertiaryIconColor};
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
1386
|
/** Neutral styles **/
|
|
1387
1387
|
|
|
1388
1388
|
.ft-button--neutral {
|
|
1389
|
-
${
|
|
1389
|
+
${Ie(dn.color,_e.neutralIconColor)};
|
|
1390
1390
|
|
|
1391
|
-
${
|
|
1392
|
-
${
|
|
1393
|
-
${
|
|
1394
|
-
${
|
|
1395
|
-
${
|
|
1391
|
+
${Ie(sr.backgroundColor,_e.neutralStateLayerColor)};
|
|
1392
|
+
${Ie(sr.opacityContentOnSurfaceHover,_e.neutralStateLayerOpacityHover)};
|
|
1393
|
+
${Ie(sr.opacityContentOnSurfaceFocused,_e.neutralStateLayerOpacityFocus)};
|
|
1394
|
+
${Ie(sr.opacityContentOnSurfaceSelected,_e.neutralStateLayerOpacityActive)};
|
|
1395
|
+
${Ie(sr.opacityContentOnSurfacePressed,_e.neutralStateLayerOpacityActive)};
|
|
1396
1396
|
|
|
1397
|
-
background-color: ${
|
|
1398
|
-
color: ${
|
|
1397
|
+
background-color: ${_e.neutralBackgroundColor};
|
|
1398
|
+
color: ${_e.neutralColor};
|
|
1399
1399
|
border-style: none;
|
|
1400
1400
|
}
|
|
1401
1401
|
|
|
1402
1402
|
.ft-button--neutral[disabled] {
|
|
1403
|
-
opacity: ${
|
|
1403
|
+
opacity: ${_e.neutralComponentOpacityDisabled};
|
|
1404
1404
|
}
|
|
1405
1405
|
|
|
1406
1406
|
.ft-button--neutral ft-icon {
|
|
1407
|
-
color: ${
|
|
1407
|
+
color: ${_e.neutralIconColor};
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
1410
|
/** Large styles **/
|
|
1411
1411
|
|
|
1412
1412
|
.ft-button--large {
|
|
1413
|
-
${
|
|
1414
|
-
${
|
|
1413
|
+
${Ie(pn.size,_e.largeIconSize)};
|
|
1414
|
+
${Ie(dn.size,_e.largeIconSize)};
|
|
1415
1415
|
|
|
1416
|
-
height: ${
|
|
1417
|
-
padding: 0 ${
|
|
1418
|
-
gap: ${
|
|
1419
|
-
border-radius: ${
|
|
1420
|
-
border-width: ${
|
|
1416
|
+
height: ${_e.largeHeight};
|
|
1417
|
+
padding: 0 ${_e.largeHorizontalPadding};
|
|
1418
|
+
gap: ${_e.largeGap};
|
|
1419
|
+
border-radius: ${_e.largeBorderRadius};
|
|
1420
|
+
border-width: ${_e.largeBorderWidth};
|
|
1421
1421
|
}
|
|
1422
1422
|
|
|
1423
1423
|
.ft-button--large:focus-visible {
|
|
1424
|
-
outline-width: ${
|
|
1425
|
-
outline-offset: ${
|
|
1424
|
+
outline-width: ${_e.largeFocusOutlineWidth};
|
|
1425
|
+
outline-offset: ${_e.largeFocusOutlineOffset};
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
1428
|
.ft-button--large.ft-button--icon-only {
|
|
1429
|
-
width: ${
|
|
1429
|
+
width: ${_e.largeIconOnlyWidth};
|
|
1430
1430
|
padding: unset;
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
1433
|
/** Small styles **/
|
|
1434
1434
|
|
|
1435
1435
|
.ft-button--small {
|
|
1436
|
-
${
|
|
1437
|
-
${
|
|
1436
|
+
${Ie(pn.size,_e.smallIconSize)};
|
|
1437
|
+
${Ie(dn.size,_e.smallIconSize)};
|
|
1438
1438
|
|
|
1439
|
-
height: ${
|
|
1440
|
-
padding: 0 ${
|
|
1441
|
-
gap: ${
|
|
1442
|
-
border-radius: ${
|
|
1443
|
-
border-width: ${
|
|
1439
|
+
height: ${_e.smallHeight};
|
|
1440
|
+
padding: 0 ${_e.smallHorizontalPadding};
|
|
1441
|
+
gap: ${_e.smallGap};
|
|
1442
|
+
border-radius: ${_e.smallBorderRadius};
|
|
1443
|
+
border-width: ${_e.smallBorderWidth};
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
1446
|
.ft-button--small:focus-visible {
|
|
1447
|
-
outline-width: ${
|
|
1448
|
-
outline-offset: ${
|
|
1447
|
+
outline-width: ${_e.smallFocusOutlineWidth};
|
|
1448
|
+
outline-offset: ${_e.smallFocusOutlineOffset};
|
|
1449
1449
|
}
|
|
1450
1450
|
|
|
1451
1451
|
.ft-button--small.ft-button--icon-only {
|
|
1452
|
-
width: ${
|
|
1452
|
+
width: ${_e.smallIconOnlyWidth};
|
|
1453
1453
|
padding: unset;
|
|
1454
1454
|
}
|
|
1455
|
-
`,
|
|
1456
|
-
`,
|
|
1457
|
-
`,
|
|
1455
|
+
`,Ge];var Bs=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 Ks 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?An.caption1medium:An.body2medium}}Ks.styles=[Ve,zs],Bs([k({type:Boolean})],Ks.prototype,"primary",void 0),Bs([k({type:Boolean})],Ks.prototype,"secondary",void 0),Bs([k({type:Boolean})],Ks.prototype,"tertiary",void 0),Bs([k({type:Boolean})],Ks.prototype,"neutral",void 0),Bs([k({type:Boolean})],Ks.prototype,"small",void 0),D("ft-button")(js),D("ftds-button")(Ks);const Zs=Rt`
|
|
1456
|
+
`,Hs=Rt`
|
|
1457
|
+
`,Gs=Vo.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Vs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Gs.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?Vs.build(t):null!==(e=Vs.API)&&void 0!==e?e:Vs.API=Vs.build()}static await(t){return new Promise((e=>{let i=Vs.get(t);if(i)e(i);else{const o=Gs.subscribe((()=>{i=Vs.get(t),i&&(o(),e(i))}))}}))}}var qs;const Ys=Symbol("clearAfterUnitTest");class Xs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[qs]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=Gs.getState().uiLocale,Gs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Gs.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};W(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 qe(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)))))}}qs=Ys,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Xs((async(t,e)=>(await Vs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Xs((async(t,e)=>(await Vs.await()).getCustomMessageContext(t,e))));const Js=window.FluidTopicsI18nService,Qs=window.FluidTopicsCustomI18nService;var tl=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 el extends Ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Vs.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return he`
|
|
1458
1458
|
<slot></slot>
|
|
1459
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
1459
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Gs.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Gs.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Gs.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Gs.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Gs.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Gs.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Gs.actions.setSession(this.session),t.has("availableUiLocales")&&Gs.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Js.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}el.elementDefinitions={},el.styles=Hs,tl([k()],el.prototype,"baseUrl",void 0),tl([k()],el.prototype,"apiIntegrationIdentifier",void 0),tl([k()],el.prototype,"uiLocale",void 0),tl([F([])],el.prototype,"availableUiLocales",void 0),tl([k({type:Boolean})],el.prototype,"editorMode",void 0),tl([k({type:Boolean})],el.prototype,"noCustom",void 0),tl([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],el.prototype,"noCustomComponent",void 0),tl([k({type:Boolean})],el.prototype,"withManualResources",void 0),tl([F([])],el.prototype,"messageContexts",void 0),tl([F(void 0)],el.prototype,"session",void 0),tl([k({type:Object})],el.prototype,"apiProvider",void 0);class il{async listMySearches(){var t;return(null===(t=Gs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Vs.await()).listMySearches(Gs.getState().session.profile.userId):[]}}const ol=new o;class rl{async listMyBookmarks(){return ol.get("bookmarks",(async()=>(await Vs.await()).listMyBookmarks(Gs.getState().session.profile.userId)))}clearCache(){ol.clear("bookmarks")}}const nl=Vo.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const al=new class{constructor(){this.currentSession=Gs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rl,Gs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Gs.getState();W(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(){nl.actions.savedSearches(void 0)}clearMyBookmarks(){nl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new il,e=await t.listMySearches();nl.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;nl.actions.bookmarks(e)}}};D("ft-app-context")(el);var sl=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 ll=Symbol("i18nProperties"),cl=Symbol("i18nUnsubs");function fl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Qs:Js}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[ll])||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[ll])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ll]&&new Set([...this[ll].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[cl].has(t)||this[cl].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[cl].forEach((t=>t())),this[cl].clear()}}return e=cl,sl([k({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class hl extends(fl(Ze)){}class dl extends(fl(ni)){}var ul=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 pl extends dl{constructor(){super(),this.editorMode=!1,this.addStore(Gs)}render(){return this.key&&this.context?he`
|
|
1460
1460
|
<span class="ft-i18n">
|
|
1461
1461
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1462
1462
|
</span>
|
|
1463
|
-
`:this.editorMode?"Select a context and a label key.":
|
|
1463
|
+
`:this.editorMode?"Select a context and a label key.":ue}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:""})}}pl.elementDefinitions={},pl.styles=Zs,ul([Ye()],pl.prototype,"editorMode",void 0),ul([k()],pl.prototype,"context",void 0),ul([k()],pl.prototype,"key",void 0),ul([F([])],pl.prototype,"args",void 0),ul([k()],pl.prototype,"defaultMessage",void 0);class yl{static build(t){return new yl(t)}static fromGwt(t){return new yl(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)=>Js.resolveMessage(this.name,e,...t)})}}const gl=(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[ll]=null!==(n=i[ll])&&void 0!==n?n:new Map,i[ll].set(o,a)};D("ft-i18n")(pl);const bl=yl.build("integratedFeedbackComponent"),vl={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"},ml={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","",Te.colorOnSurfaceMedium),colorPrimary:Re.external(Te.colorPrimary,"Design system"),colorOnSurface:Re.external(Te.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(Te.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(Te.borderRadiusS,"Design system"),colorError:Re.external(Te.colorError,"Design system"),prefixColor:Re.extend("--ft-text-field-prefix-color","",Te.colorOnSurfaceMedium),iconColor:Re.extend("--ft-text-field-icon-color","",Te.colorOnSurfaceMedium),floatingZIndex:Re.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Re.external(Te.colorSurface,"Design system"),colorOutline:Re.external(Te.colorOutline,"Design system"),elevation02:Re.external(Te.elevation02,"Design system"),suggestSize:Re.create("--ft-text-field-suggest-size","","SIZE","300px")},xl=Rt`
|
|
1464
1464
|
*:focus {
|
|
1465
1465
|
outline: none;
|
|
1466
1466
|
}
|
|
@@ -1473,16 +1473,16 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
1475
|
ft-input-label {
|
|
1476
|
-
${
|
|
1477
|
-
${
|
|
1478
|
-
${
|
|
1479
|
-
${
|
|
1476
|
+
${Ie(ws.fontSize,ml.fontSize)};
|
|
1477
|
+
${Ie(ws.raisedFontSize,ml.labelSize)};
|
|
1478
|
+
${Ie(ws.verticalSpacing,ml.verticalSpacing)};
|
|
1479
|
+
${Ie(ws.horizontalSpacing,ml.horizontalSpacing)};
|
|
1480
1480
|
}
|
|
1481
1481
|
|
|
1482
1482
|
.ft-text-field--main-panel {
|
|
1483
1483
|
position: relative;
|
|
1484
1484
|
display: flex;
|
|
1485
|
-
height: calc(4 * ${
|
|
1485
|
+
height: calc(4 * ${ml.verticalSpacing} + ${ml.labelSize} + ${ml.fontSize});
|
|
1486
1486
|
}
|
|
1487
1487
|
|
|
1488
1488
|
.ft-text-field--input-panel {
|
|
@@ -1491,24 +1491,24 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1491
1491
|
display: flex;
|
|
1492
1492
|
align-items: center;
|
|
1493
1493
|
overflow: hidden;
|
|
1494
|
-
padding: 0 ${
|
|
1494
|
+
padding: 0 ${ml.horizontalSpacing};
|
|
1495
1495
|
|
|
1496
|
-
${
|
|
1497
|
-
${
|
|
1496
|
+
${Ie(Lr.fontSize,ml.fontSize)};
|
|
1497
|
+
${Ie(Lr.lineHeight,ml.fontSize)};
|
|
1498
1498
|
}
|
|
1499
1499
|
|
|
1500
1500
|
.ft-text-field--input-panel ft-ripple {
|
|
1501
|
-
${
|
|
1502
|
-
${
|
|
1501
|
+
${Ie(sr.opacityContentOnSurfaceHover,"0.08")};
|
|
1502
|
+
${Ie(sr.opacityContentOnSurfacePressed,"0.04")};
|
|
1503
1503
|
}
|
|
1504
1504
|
|
|
1505
1505
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
1506
1506
|
align-items: flex-end;
|
|
1507
|
-
padding: 0 ${
|
|
1507
|
+
padding: 0 ${ml.horizontalSpacing} ${ml.verticalSpacing} ${ml.horizontalSpacing};
|
|
1508
1508
|
}
|
|
1509
1509
|
|
|
1510
1510
|
.ft-text-field--prefix {
|
|
1511
|
-
color: ${
|
|
1511
|
+
color: ${ml.prefixColor};
|
|
1512
1512
|
margin-right: 2px;
|
|
1513
1513
|
flex-shrink: 1;
|
|
1514
1514
|
overflow: hidden;
|
|
@@ -1527,15 +1527,15 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1527
1527
|
flex-shrink: 1;
|
|
1528
1528
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
1529
1529
|
|
|
1530
|
-
color: ${
|
|
1531
|
-
padding: calc(2 * ${
|
|
1530
|
+
color: ${ml.colorOnSurface};
|
|
1531
|
+
padding: calc(2 * ${ml.verticalSpacing}) 0;
|
|
1532
1532
|
border: none;
|
|
1533
1533
|
background: none;
|
|
1534
1534
|
}
|
|
1535
1535
|
|
|
1536
1536
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
1537
1537
|
padding-bottom: 0;
|
|
1538
|
-
padding-top: calc(${
|
|
1538
|
+
padding-top: calc(${ml.labelSize} + 2 * ${ml.verticalSpacing});
|
|
1539
1539
|
}
|
|
1540
1540
|
|
|
1541
1541
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -1544,37 +1544,37 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1544
1544
|
}
|
|
1545
1545
|
|
|
1546
1546
|
.ft-text-field--disabled .ft-text-field--input {
|
|
1547
|
-
color: ${
|
|
1547
|
+
color: ${ml.colorOnSurfaceDisabled};
|
|
1548
1548
|
}
|
|
1549
1549
|
|
|
1550
1550
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1551
|
-
${
|
|
1552
|
-
${
|
|
1551
|
+
${Ie(ws.borderColor,ml.colorPrimary)};
|
|
1552
|
+
${Ie(ws.textColor,ml.colorPrimary)};
|
|
1553
1553
|
}
|
|
1554
1554
|
|
|
1555
1555
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
1556
|
-
border-radius: ${
|
|
1556
|
+
border-radius: ${ml.borderRadiusS} ${ml.borderRadiusS} 0 0;
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
1559
1559
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
1560
|
-
border-radius: ${
|
|
1560
|
+
border-radius: ${ml.borderRadiusS};
|
|
1561
1561
|
}
|
|
1562
1562
|
|
|
1563
1563
|
.ft-text-field--helper-text {
|
|
1564
|
-
padding: 0 12px 0 ${
|
|
1565
|
-
color: ${
|
|
1564
|
+
padding: 0 12px 0 ${ml.horizontalSpacing};
|
|
1565
|
+
color: ${ml.helperColor};
|
|
1566
1566
|
}
|
|
1567
1567
|
|
|
1568
1568
|
.ft-text-field--in-error .ft-text-field--input,
|
|
1569
1569
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
1570
1570
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
1571
|
-
color: ${
|
|
1571
|
+
color: ${ml.colorError};
|
|
1572
1572
|
}
|
|
1573
1573
|
|
|
1574
1574
|
.ft-text-field--icon {
|
|
1575
1575
|
align-self: center;
|
|
1576
1576
|
margin-left: 8px;
|
|
1577
|
-
color: ${
|
|
1577
|
+
color: ${ml.iconColor};
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
1580
|
.ft-text-field--container {
|
|
@@ -1587,13 +1587,13 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1587
1587
|
position: absolute;
|
|
1588
1588
|
left: 0;
|
|
1589
1589
|
right: 0;
|
|
1590
|
-
z-index: ${
|
|
1591
|
-
background: ${
|
|
1592
|
-
border: 1px solid ${
|
|
1593
|
-
border-radius: 0 0 ${
|
|
1594
|
-
box-shadow: ${
|
|
1590
|
+
z-index: ${ml.floatingZIndex};
|
|
1591
|
+
background: ${ml.colorSurface};
|
|
1592
|
+
border: 1px solid ${ml.colorOutline};
|
|
1593
|
+
border-radius: 0 0 ${ml.borderRadiusS} ${ml.borderRadiusS};
|
|
1594
|
+
box-shadow: ${ml.elevation02};
|
|
1595
1595
|
outline: none;
|
|
1596
|
-
max-height: ${
|
|
1596
|
+
max-height: ${ml.suggestSize};
|
|
1597
1597
|
overflow-y: auto;
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
@@ -1610,14 +1610,14 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1610
1610
|
}
|
|
1611
1611
|
|
|
1612
1612
|
.ft-text-field--with-icon {
|
|
1613
|
-
${
|
|
1613
|
+
${Ie(ws.labelMaxWidth,`calc(100% - ${pn.size} - ${ws.horizontalSpacing})`)};
|
|
1614
1614
|
}
|
|
1615
1615
|
|
|
1616
1616
|
.ft-text-field--with-password ft-icon:hover {
|
|
1617
1617
|
cursor: pointer;
|
|
1618
1618
|
}
|
|
1619
|
-
`;var
|
|
1620
|
-
<div class="${
|
|
1619
|
+
`;var wl=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 Ol extends(Yo(Ze,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=es.EYE_SLASH,this.passwordRevealedIcon=es.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 he`
|
|
1620
|
+
<div class="${Mn(t)}">
|
|
1621
1621
|
<div class="ft-text-field--main-panel"
|
|
1622
1622
|
@keydown=${this.handleKeyboardNavigation}
|
|
1623
1623
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1627,16 +1627,16 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1627
1627
|
?raised=${this.focused||""!=this.value}
|
|
1628
1628
|
?error=${this.error}></ft-input-label>
|
|
1629
1629
|
<div class="ft-text-field--input-panel">
|
|
1630
|
-
${this.outlined?
|
|
1630
|
+
${this.outlined?ue:he`
|
|
1631
1631
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1632
1632
|
`}
|
|
1633
|
-
${this.prefix?
|
|
1633
|
+
${this.prefix?he`
|
|
1634
1634
|
<ft-typography class="ft-text-field--prefix" vaiant="body1">
|
|
1635
1635
|
${this.prefix}
|
|
1636
1636
|
</ft-typography>
|
|
1637
|
-
`:
|
|
1637
|
+
`:ue}
|
|
1638
1638
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
1639
|
-
maxlength=${(t=>t??
|
|
1639
|
+
maxlength=${(t=>t??st)(this.maxLength||void 0)}
|
|
1640
1640
|
aria-label="${this.label}"
|
|
1641
1641
|
class="ft-typography--body1 ft-text-field--input"
|
|
1642
1642
|
?disabled=${this.disabled}
|
|
@@ -1651,23 +1651,23 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1651
1651
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1652
1652
|
</div>
|
|
1653
1653
|
</div>
|
|
1654
|
-
${this.helper?
|
|
1654
|
+
${this.helper?he`
|
|
1655
1655
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1656
1656
|
${this.helper}
|
|
1657
1657
|
</ft-typography>
|
|
1658
|
-
`:
|
|
1658
|
+
`:ue}
|
|
1659
1659
|
</div>
|
|
1660
|
-
`}renderPasswordIcon(){return
|
|
1660
|
+
`}renderPasswordIcon(){return he`
|
|
1661
1661
|
<ft-icon class="ft-text-field--icon"
|
|
1662
1662
|
.variant=${this.iconVariant}
|
|
1663
1663
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1664
1664
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1665
|
-
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?
|
|
1665
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?he`
|
|
1666
1666
|
<ft-icon class="ft-text-field--icon"
|
|
1667
1667
|
.variant=${this.iconVariant}
|
|
1668
1668
|
.value=${this.icon}
|
|
1669
1669
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
1670
|
-
`:
|
|
1670
|
+
`:ue}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}}Ol.elementDefinitions={"ft-input-label":$s,"ft-ripple":zn,"ft-typography":Tn,"ft-icon":ns},Ol.styles=[rn,xl],wl([k()],Ol.prototype,"label",void 0),wl([k({noAccessor:!0})],Ol.prototype,"value",null),wl([R()],Ol.prototype,"dispatchedValue",void 0),wl([k()],Ol.prototype,"helper",void 0),wl([k({type:Boolean})],Ol.prototype,"outlined",void 0),wl([k({type:Boolean})],Ol.prototype,"disabled",void 0),wl([k({type:Boolean})],Ol.prototype,"error",void 0),wl([k()],Ol.prototype,"prefix",void 0),wl([k()],Ol.prototype,"icon",void 0),wl([k()],Ol.prototype,"passwordHiddenIcon",void 0),wl([k()],Ol.prototype,"passwordRevealedIcon",void 0),wl([k()],Ol.prototype,"iconVariant",void 0),wl([k({type:Boolean})],Ol.prototype,"filterSuggestions",void 0),wl([k({type:Number})],Ol.prototype,"maxLength",void 0),wl([k({type:Boolean})],Ol.prototype,"password",void 0),wl([R()],Ol.prototype,"focused",void 0),wl([R()],Ol.prototype,"hidePassword",void 0),wl([R()],Ol.prototype,"suggestionsOnTop",void 0),wl([R()],Ol.prototype,"hideSuggestions",void 0),wl([R()],Ol.prototype,"visibleSuggestions",void 0),wl([L(".ft-text-field--main-panel")],Ol.prototype,"mainPanel",void 0),wl([L(".ft-text-field--input")],Ol.prototype,"input",void 0),wl([L(".ft-text-field--suggestions")],Ol.prototype,"suggestionsContainer",void 0),wl([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return U(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"})],Ol.prototype,"suggestions",void 0);const Sl=Rt`
|
|
1671
1671
|
.ft-text-field-suggestion {
|
|
1672
1672
|
position: relative;
|
|
1673
1673
|
padding: 8px 16px;
|
|
@@ -1692,7 +1692,7 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1692
1692
|
slot {
|
|
1693
1693
|
pointer-events: none;
|
|
1694
1694
|
}
|
|
1695
|
-
`;var
|
|
1695
|
+
`;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 Nl extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Cl extends Ze{render(){return he`
|
|
1696
1696
|
<div class="ft-text-field-suggestion"
|
|
1697
1697
|
tabindex="-1"
|
|
1698
1698
|
@keydown=${this.onKeyDown}
|
|
@@ -1704,17 +1704,17 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1704
1704
|
<slot></slot>
|
|
1705
1705
|
</ft-typography>
|
|
1706
1706
|
</div>
|
|
1707
|
-
`}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())}}Nl.elementDefinitions={"ft-ripple":jn,"ft-typography":_n,"ft-icon":rs},Nl.styles=Ol,Sl([k()],Nl.prototype,"value",void 0),Sl([L(".ft-text-field-suggestion")],Nl.prototype,"container",void 0),Sl([A()],Nl.prototype,"assignedNodes",void 0),W("ft-text-field")(wl),W("ft-text-field-suggestion")(Nl);class Cl{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 El{convertPaginatedToc(t){return new Cl(t).build()}}var kl,Rl,Il,Ul,Ll,Al,_l,Tl,Wl,Dl,Fl,Pl,Ml,jl;!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"}(kl||(kl={})),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"}(Il||(Il={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ul||(Ul={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ll||(Ll={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Al||(Al={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(_l||(_l={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Tl||(Tl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Wl||(Wl={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Dl||(Dl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Fl||(Fl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Pl||(Pl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Ml||(Ml={})),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"}(jl||(jl={}));const zl={[jl.PERSONAL_BOOK_SHARE_USER]:[jl.PERSONAL_BOOK_USER],[jl.HTML_EXPORT_USER]:[jl.PERSONAL_BOOK_USER],[jl.PDF_EXPORT_USER]:[jl.PERSONAL_BOOK_USER],[jl.KHUB_ADMIN]:[jl.CONTENT_PUBLISHER],[jl.ADMIN]:[jl.KHUB_ADMIN,jl.USERS_ADMIN,jl.PORTAL_ADMIN],[jl.DEVELOPER]:[jl.BETA_USER,jl.DEBUG_USER]};function Bl(t,e){return t===e||(zl[t]??[]).some((t=>Bl(t,e)))}function Kl(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=>Bl(t,e)))}class Zl{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 Kl(null!==(e=null===(t=Hs.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()))}getAttachmentDownloadLink(t){return this.makeAbsolute(this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content)}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")}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=Hs.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 tr.FEEDBACK:return Kl(null!=e?e:[],jl.FEEDBACK_USER);case tr.RATING:return Kl(null!=e?e:[],jl.RATING_USER)&&null!=i&&i!==Ul.NO_RATING;case tr.PRINT:return Kl(null!=e?e:[],jl.PRINT_USER);case tr.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case tr.COLLECTIONS:return Kl(null!=e?e:[],jl.COLLECTION_USER);case tr.PERSONAL_BOOKS:return Kl(null!=e?e:[],jl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Hl extends Zl{static async build(t){return new Hl(new El,await Gs.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((()=>[]))}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 Gl{static build(t,e){return new Gl((t=>Go.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}}))(t.trim()||"context"),null!=e?e:Hl.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(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=5){let i=await t();for(;null==i;)await _(e),i=await t();return i}((()=>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 reload(){var t,e;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(""),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}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)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Vl=kt`
|
|
1708
|
-
`;class
|
|
1707
|
+
`}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 Nl(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":zn,"ft-typography":Tn,"ft-icon":ns},Cl.styles=Sl,$l([k()],Cl.prototype,"value",void 0),$l([L(".ft-text-field-suggestion")],Cl.prototype,"container",void 0),$l([A()],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 Rl,Il,Ul,Ll,Al,_l,Tl,Wl,Dl,Fl,Pl,Ml,jl,zl;!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"}(Il||(Il={})),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.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ll||(Ll={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Al||(Al={})),function(t){t.ASC="ASC",t.DESC="DESC"}(_l||(_l={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Tl||(Tl={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Wl||(Wl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Dl||(Dl={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Fl||(Fl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Pl||(Pl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Ml||(Ml={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(jl||(jl={})),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={}));const Bl={[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 Kl(t,e){return t===e||(Bl[t]??[]).some((t=>Kl(t,e)))}function Zl(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=>Kl(t,e)))}class Hl{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 Zl(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()))}getAttachmentDownloadLink(t){return this.makeAbsolute(this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content)}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")}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 er.FEEDBACK:return Zl(null!=e?e:[],zl.FEEDBACK_USER);case er.RATING:return Zl(null!=e?e:[],zl.RATING_USER)&&null!=i&&i!==Ll.NO_RATING;case er.PRINT:return Zl(null!=e?e:[],zl.PRINT_USER);case er.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case er.COLLECTIONS:return Zl(null!=e?e:[],zl.COLLECTION_USER);case er.PERSONAL_BOOKS:return Zl(null!=e?e:[],zl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Gl extends Hl{static async build(t){return new Gl(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((()=>[]))}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 Vl{static build(t,e){return new Vl((t=>Vo.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}}))(t.trim()||"context"),null!=e?e:Gl.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(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 T((()=>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 reload(){var t,e;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(""),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}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)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const ql=Rt`
|
|
1708
|
+
`;class Yl extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Xl extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Jl extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Ql extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class tc extends Event{constructor(){super("ft-reader-map-not-found")}}class ec extends Event{constructor(){super("ft-reader-map-unauthorized")}}var ic=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 oc extends ni{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new r(5),this.navigationDebouncer=new r(10),this.addStore(Gs)}render(){return he`
|
|
1709
1709
|
${this.importStyleIfNeeded()}
|
|
1710
1710
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1711
|
-
`}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:"")?
|
|
1711
|
+
`}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:"")?ue:he`
|
|
1712
1712
|
<style>
|
|
1713
1713
|
@import "${i}"
|
|
1714
1714
|
</style>
|
|
1715
|
-
`}get stateManager(){return null==this._stateManager&&(this._stateManager=
|
|
1715
|
+
`}get stateManager(){return null==this._stateManager&&(this._stateManager=Vl.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"].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 Yl(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 Jl(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 Xl(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&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;404===e.status?this.dispatchEvent(new tc):401===e.status?this.dispatchEvent(new ec):this.dispatchEvent(new Ql(t))}reloadBookmarks(){al.reloadBookmarks()}}var rc;oc.styles=ql,ic([Ye({store:Gs.name})],oc.prototype,"baseUrl",void 0),ic([k()],oc.prototype,"mapId",void 0),ic([k()],oc.prototype,"tocId",void 0),ic([k()],oc.prototype,"section",void 0),ic([k()],oc.prototype,"searchInDocumentQuery",void 0),ic([k({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:rc}})],oc.prototype,"page",void 0),ic([Ye({store:"reader"})],oc.prototype,"map",void 0),ic([Ye({store:"reader"})],oc.prototype,"toc",void 0),ic([Ye({store:"reader"})],oc.prototype,"visibleTopics",void 0),ic([Ye({store:"reader"})],oc.prototype,"currentPage",void 0),ic([Ye({store:"reader"})],oc.prototype,"scrollTarget",void 0),ic([k({attribute:!1})],oc.prototype,"readerServiceProvider",void 0),D("ft-reader-context")(oc);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 ac extends(fl(nr)){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(bl,vl)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(er.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(er.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?he`
|
|
1716
1716
|
<div class="ft-reader-feedback">
|
|
1717
|
-
${this.hideTitle?
|
|
1717
|
+
${this.hideTitle?ue:he`
|
|
1718
1718
|
<ft-typography variant="title" part="main-title">
|
|
1719
1719
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1720
1720
|
</ft-typography>
|
|
@@ -1722,7 +1722,7 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1722
1722
|
${this.renderRatingSection()}
|
|
1723
1723
|
${this.renderFeedbackSection()}
|
|
1724
1724
|
</div>
|
|
1725
|
-
`:
|
|
1725
|
+
`:ue}renderRatingSection(){return this.canAccessRating?he`
|
|
1726
1726
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1727
1727
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1728
1728
|
${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
@@ -1732,11 +1732,11 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1732
1732
|
${this.renderRatingDate()}
|
|
1733
1733
|
</ft-typography>
|
|
1734
1734
|
</div>
|
|
1735
|
-
`:
|
|
1735
|
+
`:ue}renderRatingDate(){const t=this.ratingDate;if(null==t)return bl.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return bl.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?bl.messages.ratedToday():bl.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return he`
|
|
1736
1736
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1737
|
-
${
|
|
1737
|
+
${Ws(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return he`
|
|
1738
1738
|
<ft-button round part="rating-stars-${o}"
|
|
1739
|
-
label="${
|
|
1739
|
+
label="${bl.messages.starsRating(o)}"
|
|
1740
1740
|
tooltipPosition="top"
|
|
1741
1741
|
.iconVariant=${this.iconVariant}
|
|
1742
1742
|
icon="${i?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -1745,7 +1745,7 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1745
1745
|
></ft-button>
|
|
1746
1746
|
`}))}
|
|
1747
1747
|
</div>
|
|
1748
|
-
`;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return
|
|
1748
|
+
`;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return he`
|
|
1749
1749
|
<ft-switch unselectable
|
|
1750
1750
|
@change=${t=>this.rate(t.detail)}
|
|
1751
1751
|
part="rating rating-like">
|
|
@@ -1753,63 +1753,63 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1753
1753
|
?selected=${e}
|
|
1754
1754
|
.iconVariant=${this.iconVariant}
|
|
1755
1755
|
icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1756
|
-
${
|
|
1756
|
+
${bl.messages.like()}
|
|
1757
1757
|
</ft-switch-option>
|
|
1758
1758
|
<ft-switch-option .value=${0}
|
|
1759
1759
|
?selected=${t}
|
|
1760
1760
|
.iconVariant=${this.iconVariant}
|
|
1761
1761
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1762
|
-
${
|
|
1762
|
+
${bl.messages.dislike()}
|
|
1763
1763
|
</ft-switch-option>
|
|
1764
1764
|
</ft-switch>
|
|
1765
|
-
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return
|
|
1765
|
+
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return he`
|
|
1766
1766
|
<ft-switch unselectable
|
|
1767
1767
|
@change=${t=>this.rate(t.detail)}
|
|
1768
1768
|
part="rating rating-dichotomous">
|
|
1769
1769
|
<ft-switch-option .value=${1}
|
|
1770
1770
|
?selected=${o}>
|
|
1771
|
-
${
|
|
1771
|
+
${bl.messages.dichotomousYes()}
|
|
1772
1772
|
</ft-switch-option>
|
|
1773
1773
|
<ft-switch-option .value=${0}
|
|
1774
1774
|
?selected=${i}>
|
|
1775
|
-
${
|
|
1775
|
+
${bl.messages.dichotomousNo()}
|
|
1776
1776
|
</ft-switch-option>
|
|
1777
1777
|
</ft-switch>
|
|
1778
|
-
`}return
|
|
1778
|
+
`}return ue}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=he`
|
|
1779
1779
|
<ft-button primary
|
|
1780
1780
|
type="submit" name="submit"
|
|
1781
1781
|
class="ft-reader-feedback--send-feedback"
|
|
1782
1782
|
?disabled=${!this.feedbackMessage||!this.validFromEmail()}
|
|
1783
1783
|
part="send-feedback">
|
|
1784
|
-
${
|
|
1784
|
+
${bl.messages.okButton()}
|
|
1785
1785
|
</ft-button>
|
|
1786
|
-
`;return o&&(r=
|
|
1786
|
+
`;return o&&(r=he`
|
|
1787
1787
|
<a class="ft-reader-feedback--feedback-link" href="${o}">
|
|
1788
1788
|
${r}
|
|
1789
1789
|
</a>
|
|
1790
|
-
`),
|
|
1790
|
+
`),he`
|
|
1791
1791
|
<form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
|
|
1792
1792
|
@submit="${t=>this.onFormSubmitEvent(t,!!o)}">
|
|
1793
1793
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1794
1794
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1795
1795
|
</ft-typography>
|
|
1796
|
-
${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)?
|
|
1796
|
+
${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)?he`
|
|
1797
1797
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1798
1798
|
class="ft-reader-feedback--from-input"
|
|
1799
|
-
label=${
|
|
1799
|
+
label=${bl.messages.feedbackfromEmail()}
|
|
1800
1800
|
@change=${t=>this.from=t.detail.trim()}
|
|
1801
1801
|
?error=${this.from&&!this.validFromEmail()}
|
|
1802
|
-
helper=${this.from&&!this.validFromEmail()?
|
|
1802
|
+
helper=${this.from&&!this.validFromEmail()?bl.messages.feedbackfromEmailInvalid():""}
|
|
1803
1803
|
/>
|
|
1804
|
-
`:
|
|
1804
|
+
`:ue}
|
|
1805
1805
|
<ft-text-area outlined
|
|
1806
1806
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1807
|
-
label="${
|
|
1807
|
+
label="${bl.messages.feedbackInputLabel()}"
|
|
1808
1808
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1809
1809
|
></ft-text-area>
|
|
1810
1810
|
${r}
|
|
1811
1811
|
</form>
|
|
1812
|
-
`}return
|
|
1812
|
+
`}return ue}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)}}ac.elementDefinitions={"ft-button":js,"ft-typography":Tn,"ft-switch":ps,"ft-switch-option":hs,"ft-text-area":ks,"ft-text-field":Ol},ac.styles=En,nc([k({type:Boolean})],ac.prototype,"editorMode",void 0),nc([k({type:Boolean})],ac.prototype,"hideTitle",void 0),nc([k({type:Boolean})],ac.prototype,"ratingAllowed",void 0),nc([k({attribute:!1})],ac.prototype,"i18nProperties",void 0),nc([k({attribute:!1})],ac.prototype,"ratingSummary",void 0),nc([k({attribute:!1})],ac.prototype,"session",void 0),nc([L(".ft-reader-feedback--feedback-input")],ac.prototype,"feedbackInput",void 0),nc([R()],ac.prototype,"from",void 0),nc([R()],ac.prototype,"feedbackMessage",void 0),nc([k()],ac.prototype,"iconVariant",void 0),nc([k()],ac.prototype,"emptyStarIcon",void 0),nc([k()],ac.prototype,"filledStarIcon",void 0),nc([k()],ac.prototype,"emptyLikeIcon",void 0),nc([k()],ac.prototype,"filledLikeIcon",void 0),nc([k()],ac.prototype,"emptyDislikeIcon",void 0),nc([k()],ac.prototype,"filledDislikeIcon",void 0),nc([Ye({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ac.prototype,"configuration",void 0),nc([k()],ac.prototype,"feedbackMailLinkBuilder",void 0);const sc=yl.fromGwt("server");class lc{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${sc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}const cc=yl.build("inDesignerFeedbackComponent"),fc={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var hc=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 dc extends(fl(nr)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.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 lc,this.i18nProperties={feedbackMainTitle:bl.properties.mapFeedbackMainTitle(),ratingSectionTitle:bl.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(Gs)}render(){return he`
|
|
1813
1813
|
<ft-reader-feedback
|
|
1814
1814
|
ratingAllowed
|
|
1815
1815
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1829,7 +1829,7 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1829
1829
|
@send-feedback=${this.sendFeedback}
|
|
1830
1830
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1831
1831
|
></ft-reader-feedback>
|
|
1832
|
-
`}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(
|
|
1832
|
+
`}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(cc,fc),["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 We({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new We({type:"info",message:cc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new We({type:"info",message:cc.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new We({type:"info",message:bl.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new We({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}dc.elementDefinitions={"ft-reader-feedback":ac},hc([Ye({store:Gs.name})],dc.prototype,"session",void 0),hc([Ye({store:"reader"})],dc.prototype,"map",void 0),hc([Ye({store:Gs.name})],dc.prototype,"editorMode",void 0),hc([Ye({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],dc.prototype,"configuration",void 0),hc([R()],dc.prototype,"ratingSummary",void 0),hc([k({type:Boolean})],dc.prototype,"hideTitle",void 0),hc([k()],dc.prototype,"iconVariant",void 0),hc([k()],dc.prototype,"emptyStarIcon",void 0),hc([k()],dc.prototype,"filledStarIcon",void 0),hc([k()],dc.prototype,"emptyLikeIcon",void 0),hc([k()],dc.prototype,"filledLikeIcon",void 0),hc([k()],dc.prototype,"emptyDislikeIcon",void 0),hc([k()],dc.prototype,"filledDislikeIcon",void 0),hc([L("ft-reader-feedback")],dc.prototype,"readerFeedback",void 0),hc([gl(sc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],dc.prototype,"mailSubject",void 0);var uc=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 pc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const yc=Symbol("registerInterval");class gc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[yc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[yc]):this.dispatchEvent(new pc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=yc,uc([R()],i.prototype,"tocNode",void 0),uc([R()],i.prototype,"disableContextInteractions",void 0),i}(nr)){}var bc=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 vc extends(fl(gc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=os.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 lc,this.i18nProperties={feedbackMainTitle:bl.properties.topicFeedbackMainTitle(),ratingSectionTitle:bl.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:bl.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:bl.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(Gs)}render(){var t;return he`
|
|
1833
1833
|
<ft-reader-feedback
|
|
1834
1834
|
.i18nProperties=${this.i18nProperties}
|
|
1835
1835
|
?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
|
|
@@ -1849,4 +1849,4 @@ const{D:ks}=xt,Rs=()=>document.createComment(""),Is=(t,e,i)=>{const o=t._$AA.par
|
|
|
1849
1849
|
@send-feedback=${this.sendFeedback}
|
|
1850
1850
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1851
1851
|
></ft-reader-feedback>
|
|
1852
|
-
`}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(
|
|
1852
|
+
`}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(cc,fc),["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 We({type:"error",message:bl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new We({type:"info",message:cc.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 We({type:"info",message:bl.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new We({type:"info",message:cc.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new We({type:"error",message:bl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}vc.elementDefinitions={"ft-reader-feedback":ac},bc([Ye({store:Gs.name})],vc.prototype,"session",void 0),bc([Ye({store:"reader"})],vc.prototype,"map",void 0),bc([Ye({store:Gs.name})],vc.prototype,"editorMode",void 0),bc([Ye({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],vc.prototype,"configuration",void 0),bc([R()],vc.prototype,"ratingSummary",void 0),bc([k({type:Boolean})],vc.prototype,"hideTitle",void 0),bc([k()],vc.prototype,"iconVariant",void 0),bc([k()],vc.prototype,"emptyStarIcon",void 0),bc([k()],vc.prototype,"filledStarIcon",void 0),bc([k()],vc.prototype,"emptyLikeIcon",void 0),bc([k()],vc.prototype,"filledLikeIcon",void 0),bc([k()],vc.prototype,"emptyDislikeIcon",void 0),bc([k()],vc.prototype,"filledDislikeIcon",void 0),bc([L("ft-reader-feedback")],vc.prototype,"readerFeedback",void 0),bc([gl(sc.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]})))],vc.prototype,"mailSubject",void 0),D("ft-reader-map-feedback")(dc),D("ft-reader-topic-feedback")(vc),t.FtReaderFeedbackCssVariables=Cn,t.FtReaderMapFeedback=dc,t.FtReaderTopicFeedback=vc,t.styles=En}({});
|